Next Article in Journal
Comparative Effects of Neuromuscular- and Strength-Training Protocols on Pathomechanical, Sensory-Perceptual, and Motor-Behavioral Impairments in Patients with Chronic Ankle Instability: Randomized Controlled Trial
Next Article in Special Issue
The Prediction of Peritoneal Carcinomatosis in Patients with Colorectal Cancer Using Machine Learning
Previous Article in Journal
Evaluation of the Relationship between the Weight and Height Percentiles and the Sequence and Chronology of Eruption in Permanent Dentition
Previous Article in Special Issue
New Method to Implement and Analysis of Medical System in Real Time
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Hard Voting Ensemble Approach for the Detection of Type 2 Diabetes in Mexican Population with Non-Glucose Related Features

by
Jorge A. Morgan-Benita
1,
Carlos E. Galván-Tejada
1,
Miguel Cruz
2,
Jorge I. Galván-Tejada
1,
Hamurabi Gamboa-Rosales
1,
Jose G. Arceo-Olague
1,
Huizilopoztli Luna-García
1,* and
José M. Celaya-Padilla
1,*
1
Unidad Académica de Ingeniería Eléctrica, Universidad Autónoma de Zacatecas, Jardín Juárez 147, Centro, Zacatecas 98000, Mexico
2
Unidad de Investigación Médica en Bioquímica, Hospital de Especialidades, Centro Médico Nacional Siglo XXI, Instituto Mexicano del Seguro Social, Av. Cuauhtémoc 330, Col. Doctores, Del. Cuauhtémoc, Mexico City 06720, Mexico
*
Authors to whom correspondence should be addressed.
Healthcare 2022, 10(8), 1362; https://doi.org/10.3390/healthcare10081362
Submission received: 16 June 2022 / Revised: 11 July 2022 / Accepted: 15 July 2022 / Published: 22 July 2022
(This article belongs to the Special Issue Artificial Intelligence Applications in Medicine)

Abstract

:
Type 2 diabetes mellitus (T2DM) represents one of the biggest health problems in Mexico, and it is extremely important to early detect this disease and its complications. For a noninvasive detection of T2DM, a machine learning (ML) approach that uses ensemble classification models with dichotomous output that is also fast and effective for early detection and prediction of T2D can be used. In this article, an ensemble technique by hard voting is designed and implemented using generalized linear regression (GLM), support vector machines (SVM) and artificial neural networks (ANN) for the classification of T2DM patients. In the materials and methods as a first step, the data is balanced, standardized, imputed and integrated into the three models to classify the patients in a dichotomous result. For the selection of features, an implementation of LASSO is developed, with a 10-fold cross-validation and for the final validation, the Area Under the Curve (AUC) is used. The results in LASSO showed 12 features, which are used in the implemented models to obtain the best possible scenario in the developed ensemble model. The algorithm with the best performance of the three is SVM, this model obtained an AUC of 92% ± 3%. The ensemble model built with GLM, SVM and ANN obtained an AUC of 90% ± 3%.

1. Introduction

According to the World Health Organization (WHO), diabetes is “a chronic metabolic disease characterized by high levels of glucose in the blood, which leads over time to serious damage to the heart, blood vessels, eyes, kidneys and nerves” [1], being Type 2 diabetes mellitus (T2DM) the most common type. T2DM develops primarily due to an inactive lifestyle, lack of exercise, and body weight [2]. According to the International Diabetes Federation (IDF), in 2021 there were 537 million cases in the world with ages between 20 and 79 years, 541 million adults are at increased risk of developing T2DM [3]. For more than 60 million people living with T2DM, insulin is essential to reduce the risk of kidney failure, blindness and limb amputation [4]. The proportion of people affected with T2DM that is related to medical complications is alarming, either because of the lack of these drugs or because of their cost. In Mexico, according to the 2020 mortality data given by the Instituto Nacional de Estadística y Geografía INEGI, in Mexico, 1,086,743 deaths were reported, of which 14% (151,019) correspond to deaths from diabetes mellitus. Of these, 52% (78,922) occurred in men and 48% (72,094) in women. Of the total deaths, 98% (144,513) were due to non-insulin-dependent diabetes and 2% (3506) to insulin-dependent diabetes [5].
A vital approach to preventing or treating T2DM is through early diagnosis [6]. One of the most common ways to get this diagnosis is by having a blood test to check your glucose levels and then taking action based on the results. These types of tests are generally invasive, and only carried out after eminent symptoms, take some time and are very impractical and these types of tests tend to be recurrent, which implies a significant amount of money in the long term. The use of surveys to obtain clinical data from the population of a certain region has been shown to be inefficient, expensive, and most of the time, they cannot be trusted by researchers [7]. As this becomes a problem, hospitals and health centers have taken it upon themselves to obtain the data directly from people with a known diagnosis or comorbidity, using the appropriate technique to obtain it, and then recording these results. With related clinical information, profiles with conclusive diagnosis in cases of T2DM and observable factors can be taken and be compared with other clinical profiles of people without diabetes prognosis, but with risk factors (control group). Some risk factors are: overweight, high Low Density Lipoproteins (LDL), cholesterol or irregular systolic blood pressure (SBP), among others [8]. These people should be the initial patients to be compared, as there is a high probability that they are at least prediabetic or may become part of the T2DM risk group in the near future. As the diagnosis and treatment of T2DM takes time and is expensive for these institutions, it is necessary to use specific data to develop low-cost models that help with the prognosis and save time and costs in the process, reducing the progress and complications of a possible illness.
Machine Learning (ML) techniques have been used in recent years to use this data and approach to solve or at least predict different diagnostic problems, such as diabetes [7], COVID-19 [9], heart disease [10], Alzheimer’s [11], among others. An ML model can use certain data given a specific set of parameters and return a prediction as a result, which can be later tested or checked against another set of data or untrained data from the same database to validate the model, using the Area Under the Curve (AUC) among other performance metrics to identify the variation or importance of a certain feature or group of features in the detection of T2DM. The ensemble models are very important as they consist in group or stack different models in order to have more robust results confirming or complementing the final result of the experiments. The ensemble approach such as the work performed by Cohen S. et al., (2021) [12], or contributing in the performance with improved models [13] or treatment of bias [14], provide tools to group and improve models to generate better or more robust results. The use of ML models to support the treatment or monitoring of the physical state of a patient with T2DM presents important advantages, one of the most notable is the reduction of continuous invasive glucose monitoring in insulin dependent people. In the approximation from Daniel N. Thyde et al., (2021) who proposed detecting adherence to once-daily basal insulin injections by machine learning, this approach using logistic regression and convolutional neural networks; the results of this product obtained an average accuracy of 79.7% [15]. This contribution provides a guideline in the sense that it is necessary to make use of this type of tools in order to reduce the invasive and repeated check of traditional glucometers and focus on the variations obtained by continuous glucose monitoring, all this verified in simulated environments (the medtronic virtual patient software is used). Hasan K. et al., (2020) propose an ensemble by weight for diabetes prediction with the use of different models of machine learning: k-nearest Neighbour, Decision Trees, Random Forest, AdaBoost, Naive Bayes, and XGBoost; does data standardization with Z-Score, Principal Component Analysis-based dimensionality reduction, 5-fold cross-validation, and Multilayer Perceptron (MLP) were employed. The weighted ensembling of different ML models is also proposed, to improve the prediction of diabetes where the weights are estimated from the corresponding Area Under ROC Curve (AUC) of 0.950 (95%) [16]. This ensemble uses the PIMA Indian dataset [17]. The proposal of Syed A.H. et al., (2020) is to develop a questionnaire-based cross-sectional study using conventional diabetes risk factors to study prevalence and association between outcomes and exposure. The best performing classifier’s hyper-parameters were further tuned with a 10-fold cross-validation and F1 score to select the final model. The purpose of the study is to estimate the prevalence of the disease and calculate the odds ratio to measure the association between exposure (explanatory variable) and the outcome variable in the questionnaire based on the research plan. A decision tree model is proposed with a final AUC of 0.88 (88%) [7]. Another use of ML models in diabetes, is reflected in the study of Kazuya Fujihara et al., (2021) who propose to develop machine learning models for decision making on the initiation of insulin treatment in Japanese patients with T2DM, their purpose is to examine the ability of machine learning models to predict the initiation of insulin use given by specialists and whether the machine learning approach could support decision making by general practitioners for insulin initiation in patients with T2DM. The models used were logistic regression and neural networks and the results were an AUC of 0.89–0.90 (89–90%) for logistic regression and 0.67–0.74 (67–74%) for ANN [18]. The use of ensemble by stacking and soft voting proposed by Deberneh H. and Kim I. (2021) provides the use of random forest, support vector machine and XGBoost as ML models to predict if a patient is non-diabetic, pre-diabetic or diabetic. The features analyzed in this study have similarities to the experiment presented, some of these features are: plasma glucose (FPG), Glycated hemoglobin(HbA1c), triglycerides, BMI, age, uric acid, sex. The results obtained contains 12 features to construct the models and an accuracy of the ensemble in 78% [19]. Kocbek S. et al., (2022) implements the Least Absolute Shrinkage and Selection Operator (LASSO) for feature selection, with 80–20% split data for training and testing, respectively. To predict undiagnosed T2DM, a Logistic Regression model is used, incorporating features such as: glucose level (FPGL), age, gender, BMI and Waist circumference with the AUC of 0.818 (81.8%) as a single model proving that the LASSO-Logistic Regression combination is a potent prediction tool to help as “interpretable models in healthcare that can contribute to higher trust in prediction models from healthcare experts” [20]. Shaker E. et al., (2019) [21] proposes a framework that classifies Diabetes by combining (ensemble) k-nearest neighbors, naïve Bayes, decision tree, support vector machine, fuzzy decision tree, artificial neural network, and logistic regression and Is evaluated using a real dataset collected from electronic health records of Mansura University Hospitals (Mansura, Egypt). The results achieved are 90% of accuracy, 90.2% of recall = 90.2%, and 94.9% of precision. Kumari et al., (2021) [22] proposed ensemble soft voting classifier gives binary classification and uses the ensemble of three machine learning algorithms viz. random forest, logistic regression, and Naive Bayes for the classification. Empirical evaluation of the proposed methodology has been conducted with state-of-the-art methodologies and base classifiers such as AdaBoost, Logistic Regression, Support Vector machine, Random forest, Naïve Bayes, Bagging, GradientBoost, XGBoost, CatBoost. by taking accuracy, precision, recall, F1-score as the evaluation criteria. The proposed ensemble approach gives the highest accuracy, precision, recall, and F1-score value with 79.04%, 73.48%, 71.45% and 80.6% respectively on the PIMA diabetes dataset. Further, the efficiency of the proposed methodology has also been compared and analysed with breast cancer dataset. The proposed ensemble soft voting classifier has given 97.02% accuracy on the breast cancer dataset. Singh N. et al., (2020) [23] develop a stacking-based evolutionary ensemble learning system “NSGA-II-Stacking” for predicting the onset of Type-2 diabetes mellitus (T2DM) within five years. For this purpose, publicly accessible Pima Indian diabetes (PID) dataset is utilized. As a data pre-processing step, the missing values and outliers are identified and imputed with the median values. For base learner selection, a multi-objective optimization algorithm is utilized which simultaneously maximizes the classification accuracy and minimizes the ensemble complexity. As for model combination, K-nearest neighbor (K-NN) is employed as a meta-classifier that combines the predictions of the base learners. The comparative results demonstrate that the proposed NSGA-II-Stacking method significantly outperforms several individual ML approaches and conventional ensemble approaches. In terms of performance metrics, the proposed system achieves the highest accuracy of 83.8%, sensitivity of 96.1%, specificity of 79.9%, f-measure of 88.5% and area under ROC curve of 85.9%. Liu Y. et al., (2019) [24] proposed the use of machine learning algorithms to improve the accuracy of type 2 diabetes predictions using non-invasive risk score systems. The least absolute shrinkage and selection operator (LASSO), smoothed clipped absolute deviation (SCAD), and minimax concave penalized likelihood (MCP), which are commonly used on selecting variables for high-dimensional models, were used to automatically select significant non-invasive risk factors for Type 2 diabetes. A more conservative model selection method for ultrahigh-dimensional model, the iterative sure independence screening (ISIS) procedure for variable selection in logistic regression and the traditional stepwise logistic regression were also applied to this dataset. Support vector machine, tree-based methods (e.g., decision tree and random forest), and neural network were three commonly used machine learning techniques for diabetes risk prediction, the results of the ensemble model with a feature selector are AUC of 0.802 (0.780, 0.825), Sensitivity of 0.662 (0.614, 0.709) and Specificity of 0.702 (0.676, 0.728). All the studies presented as related work, have developed models with a precision based mainly on Glucose levels (Obtained by fasting plasma glucose (FPG) or oral glucose tolerance test (OGTT)) or the H1A1c and selecting features as complement by making a comparison between several others using stacking, ensemble or reflecting the results of each model individually, it can be asserted that: Dependence on glucose levels or Hb1Ac to diagnose T2DM is a common practice but is not conclusive and strengthening the results of individually validated models with other features is mandatory; for this, the ensemble of models integrates the results of each model used in a single set, identifying the best possible scenario with a selection of features defined by a supported technique, and with the omission of glucose levels and HbA1c as part of the models implemented, there is a possibility of identifying other features that can be considered individually or grouped, to have the potential to become biomarkers of T2DM so that they can be tested, replicated and used in diagnosis by the medical area. The proposal in this study is to implement an ensemble ML model to classify patients with and without T2DM, based on clinical data. Using these data as a non-invasive, practical, extremely rapid and accurate approach similar to FPG, OGTT or HbA1c could be given. This model seeks to have exclusively features non-related with glucose. With the use of multivariate models, which is, the use of multiple features (Non-invasive and non-related glucose features in this work) applied into a model so correlations or patterns can be found, used for the detection of T2DM. The proposed ML ensemble model focuses on classifying the 1787 patients with an input of the 48 availables in the processed database. The dataset for this study is acquired from “Unidad de Investigación Médica en Bioquímica, Centro Médico Nacional Siglo XXI, IMSS”, with the information of Mexican patients. The database contains anthropometric data, medical treatment, complications, lipid profile and blood pressure. It is worth mentioning that there are no public datasets with this type of patients.
This work is divided into 4 sections, Section 1 is this introductory part, Section 2 describes the data, models and the methodology used to carry out the development of the ensemble model and how it is validated. Section 3 shows the results obtained and a detailed analysis is included using the output graphs. Finally, Section 4 shows discussions, conclusion and future work.

2. Materials and Methods

The methodology in Figure 1 is based on the metodology proposed by Akhtar T. et al., (2021) [25] and is explained as follows: the first step is to carry out a preliminary analysis of the sample data, followed by data processing and imputation, preparing the folds and data separation in test and training, performing the selection of features, developing the models and integrating them into the ensemble to finally, validate the models with the test data and extract the AUC, sensibility and specificity.

2.1. Sample

The database was provided by the Centro Médico Nacional Siglo XXI located in Mexico City. All Mexican patients signed an informed consent letter and the protocol meets the Helsinki criteria which were approved by the Ethics Committee of Instituto Mexicano del Seguro Social under the number R-2011-785-018. It includes 1787 patients, 898 positive cases of T2DM and 889 control patients, according to gender, this database includes: 892 men and 895 women. In Figure 2 shows the Starting correlation between the features.

2.2. Data Treatment

This step of the process includes the treatment of data, beginning with data imputation, focusing on missing values and features outside the scope of this study; the next step is the data imputation values included in the database and the final step is the normalization of the data.

2.3. Data Imputation

This work uses an exclusion criteria of working only with the observations that have complete data for all variables and discarding all others, removing all out-of-scope or unusable features [26], the features that identify patients, and IDs were removed, since they were only internal identification data of the patient and a consecutive number, respectively. As in the dataset exists a series of features and patients with missing data, all null or not available data (NA) were removed, since the features identified with NA were exclusive to the cases (patients positive for T2DM) and show nonexistent data in the control patients (patients negative for T2DM) or these data were not collected or recorded, therefore, they were not taken into consideration. Based on this criteria, all medications and their daily intake amount were eliminated: Glibenclamide, Glibenclamide dose, Metformin, Metformin dose, Pioglitazone, Pioglitazone dose, Rosiglitazone, Rosiglitazone dose, Acarbose, Acarbose dose, Insulin and Insulin dose. Data from 3 patients, these patients (in all 3 cases) had no data on the feature Hypertension under treatment; the features Glomerular filtration rate, Age of diagnosis (age at which the positive diagnosis of T2DM is presented, data exclusively in cases), HbA1c and T2DM complications were also eliminated, since there are only present data for patients with T2DM. The T2DM complications feature contains comorbidities associated with T2DM and are also outside the scope of this experiment, as it contains NA in some of the cases and NA in all control patients.
Since the Glucose feature is a well-known biomarker, it is removed from the scope of this experiment in order to review the performance of the other features. This feature in univariate models test had over 90% AUC making it the most important of the features on the dataset analyzed.
All features eliminated are listed in Table 1 and the features analyzed are listed in Table 2 that corresponds to all features included in LASSO and the models.

2.4. Normalization of Data

Since most features in the dataset analyzed have a different range of values, Z-Score is implemented so the features can be compared to one another or be taken as part of the final model more accurately setting them in the same range. The Z-Score consists of: calculating the mean of the values in a feature, calculating the standard deviation of the same values and finally calculating the Z-Score with the following formula [27]:
Z = x x ¯ σ x ,
where x is the raw score, x the mean of all the x and σ the standard deviation of x. This process results in a value in a standard range, which is applied to different features. A generic function whose default method centers and/or scales the features of a numeric matrix has been implemented.

2.5. Feature Selection

LASSO is used in this work as it has the minor P-value of the feature selectors proposed by Liu Y. et al., (2019) [24], the other selectors are: smoothed clipped absolute deviation (SCAD), minimax concave penalized likelihood (MCP), stepwise logistic regression and the iterative sure independence screening (ISIS). The dataset is under 10,000 patients and is under the inclusion criteria of this work as it has several similarities in data set size and features contained, including the T2DM classification (if the patient has T2DM or not), body mass index (BMI),diastolic blood pressure (DBP), age, sex, Waist Circumference (considered a better indicator than the WHR contained in this work), systolic blood pressure (SBP), high density lipids (HDL), low density lipids (LDL), cholesterol, and other features related to glucose. From 22 features presented in Table 2 after the preprocessing and elimination of non-relevant or non-related to glucose features for the inclusion in the selection process, LASSO is implemented, as a fast and solid solution as is presented in the study conducted by Kocbek S. et al., (2022) [20], were sets an adjusted to a generalized linear models and similar through the penalized maximum likelihood. The developed LASSO implementation solves the problem:
min ( β 0 , β ) R p + 1 1 2 N i = 1 N ( y i β 0 x i T β ) 2 + λ P a ( β ) ,
where
P a ( β ) = ( 1 α ) 1 2 β 2 2 + α β 1
= j = 1 p 1 2 ( 1 α ) β j 2 + α | β j |
is the elastic-net penalty as Zou and Hastie (2005) exposes [28]. P α is a compromise between the ridge-regression penalty ( α = 0 ) and the LASSO penalty ( α = 1 ) . β 0 is the constant coefficient and β a vector of coefficients. The elastic-net penalty is controlled by α and bridges the gap between the LASSO regression ( α = 1, the default value) and the Ridge regression ( α = 0). The tuning parameter λ controls the overall strength of the penalty. This implementation used a cross-validation approach, which performed a k-fold cross-validation for glmnet and returns a value for λ [29].
The ridge penalty is known to reduce the coefficients of correlated predictors as they get closer to each other, while LASSO tends to choose one correlated coefficient and discard the others. The elastic-net penalty performed by the glmnet package [29] combines these two: if the predictors are correlated in groups, α = 0.5 tends to select or leave out the entire group of features, resulting in a set of usable hyperparameters for the model.

2.6. Development of Ensemble Model Tests

Once the data treatment is complete and the features are selected, the development of the ensemble model with data partitioning begin, this process is to ensure that the results of the training and tests are as accurate as possible, avoiding overfitting or mismatching. In order to obtain the best ensemble model by hard voting, each model is validated with AUC starting with the development of the Generalized Linear Regression model (GLM), then the Support Vector Machine model (SVM), then an Artificial Neural Network with a single hidden layer is implemented and finally, the comparisons are made to carry out the majority vote process, for the final integration of the ensemble model.

2.7. Data Partition

For data partitioning, it is considered to divide the database into 75% for training and 25% for tests using cross validation. The goal of this split is to get an index of each row to separate the data in this proportion and then assign it to a dataset (partition) and for the configuration of the parameters, a 10-fold is established, as is used by Syed A.H. et al., (2020) [7] in biomedical applications. The percentage of 75% and 25% obtained after the comparisons in the iterations, establishing the best scenario with the models used in the ensemble implemented, the 10-fold cross-validation is enough to balance the training and testing results correctly, giving the best possible AUC results for all three models.

2.8. Ensemble Model

To do the ensemble, the Hard voting method is implemented, which gives us a robust result as the one presented by Deberneh H. and Kim I. (2021) [19] to predict if a patient is non-diabetic or diabetic, although it does not considerably reduce the classification error of the predictions when comparing the AUC result between each model, reaffirms the result repeatedly.
The 3 models implemented for the ensemble are: Generalized Linear Model (GLM), Support Vector Machines (SVM) and Artificial Neural Networks (ANN) as shown in this research performed by Kavakiotis I. et al. [6]. These models were selected because they are well known for making accurate predictions in classification problems and broadly used in clinical data processing; all of these models used the product features of the LASSO implementation.
This model by specifications does not require hyperparameters tuning.

2.9. Generalized Linear Model

The generalized model used is a Logistic Regression (LR), a specific model is built, giving a symbolic description of the linear predictor and a description of the error distribution. Consider the systematic effects of the linear model with:
S ( t ) = 1 ( 1 + e t )
the sigmoid function described (S), keeps the value of within the [ 0 , 1 ] range. It searches a value for the dichotomic classification of 1 when the probability is larger or closer to 1, and 0 when x is smaller [28].
The hyperparameters obtained in LASSO (shown in Table 3), were integrated in this model as part of this experiment.
This model by specifications does not require hyperparameters tuning.

2.10. Support Vector Machines

The radial kernel used in the support vector machine model in this ensemble works similarly to KNN (K-Nearest Neighbors) by fitting the closest observations into the new observation, grouping them based on how much they influence the output of the set. classifier for multiple hyperplanes.
The radial kernel is represented by:
K ( x , x ) = e | | x x | | 2 2 σ 2 ,
where x and x are original observations and new observations, respectively [30].
The hyperparameters obtained in LASSO (shown in Table 3), were integrated in this model as part of this experiment.
The configuration of the hyperparameters in this model is: C o s t   C = 1 , G a m m a   λ = 0.2 and the K e r n e l = R a d i a l .

2.11. Artificial Neural Network

For the ANN model it is fitted to a single hidden layer, possibly with skip layer connections and the problem is solved:
f ( n e t ) = j = 1 n ( w j x j ) ,
donde x is a node of the neural network and w represents the weight of each network layer that connects one node to another [31].
The hyperparameters obtained in LASSO (shown in Table 3), were integrated in this model as part of this experiment. The configuration of the hyperparameters in this model is: w e i g h t s = 1 , s i z e = 1 and e n t r o p h y = l e a s t - s q u a r e s .

2.12. Implementation

All models and methodology are implemented in R, a well-known open source software validated by the scientific community, as well as the following libraries:
  • LASSO is implemented using “glmnet” [29].
  • The Generalized Linear Model is implemented with “caret” [32].
  • For Support Vector Machines “caret” [32] is used.
  • The Artificial Neural Network is implemented in R with “caret” [32].
  • The ensemble is implemented in R with nested decisions (use of if).

3. Results

The data analyzed consisted in 1787 patients, 898 positive cases of T2DM and 889 control patients all of them with the features described in Table 1 and Table 2. The data treatment consisted in data imputation (Section 2.3) and normalization of data (Section 2.4), resulted in a balanced and normalized data and 10 features discarded (Table 1). The 23 features processed in LASSO (Section 2.5) with elastic-net penalty obtained a set of 12 features for the models integrated in the ensemble model, these features are shown in Table 3.
All the results in Tables 6, 8, 10 and 12 were calculated
S e n s i t i v i t y = T p ( T p + F n ) ,
S p e c i f i c i t y = T n ( F p + T n ) ,
P r e c i s i o n = T p ( T p + F p ) ,
N e g a t i v e P r e d i c t i v e V a l u e = T n ( T n + F n ) ,
F a l s e P o s i t i v e R a t e = F p ( F p + T n ) ,
F a l s e N e g a t i v e R a t e = F n ( F n + T p ) ,
A c c u r a c y = ( T p + T n ) ( T p + T n + F p + F n ) ,
F 1 S c o r e = 2 T p ( 2 T p + F p + F n )
where:
  • T p = True positive, number of subjects with T2DM correctly classified.
  • F p = False positive, number of healthy subjects incorrectly classified.
  • T n = True negative, number of healthy subjects correctly classified.
  • F n = False negative, number of subjects with T2DM classified as healthy.
These metrics provide which of the models implemented is best for identifying T2DM patients, in Table 4 shows the description of each metric and in Table 5 shows the structure used to calculate each element presented in the confusion matrix.
The models developed showed good performance in the implementation of the ensemble, the SVM model with a radial kernel had an AUC of 92.8% ± 3% with the 25% test set, in the confusion matrix of the SVM model, is observed that the sensitivity of 0.8750 (87.5%) and is lower than the specificity of 0.9238 (92.38%) as presented in Table 6 and the confusion matrix in Table 7.
The ANN model with a single layer had an AUC of 90.5% ± 3% with the 25% test set, and the confusion matrix of the ANN model, is observed that the sensitivity of 0.8559 (85.59%) is lower than the specificity of 0.9175 (91.75%), this second model shows the lower sensitivity and specificity compared to the SVM model as shown in Table 8 and the confusion matrix in Table 9.
The GLM model had an AUC of 90.5% ± 3% with the 25% test set, in the confusion matrix of the GLM model, is observed that the sensitivity of 0.8487 (84.87%) is lower than the specificity of 0.9167 (91.67%) as it is shown in Table 10 and the confusion matrix shown in Table 11. This model presets the lowest sensitivity and specificity of all models including the ensemble.
The ensemble model with max voting had AUC of 90.5% ± 3%, this AUC shows consistency with the 3 models integrating a robust solution to the classification problem. The confusion matrix of the ensemble model, observed that the sensitivity of 0.8788 (87.88%) is lower than the specificity of 0.9242 (92.42%) shown in Table 12 and the confusion matrix in Table 13, values above average the sensitivity and specificity of the models implemented.
The ensemble model showed an AUC similar to the ANN and GLM models with the 90.5% as average, with the SVM model being 2.3% better than the other models in this case, as shown in Figure 3.

4. Discussion

The proposed methodology shows potential to solve a dichotomic classification problem and it can be determined that the features included in the experiments conducted are directly related for the detection of T2DM, as it is presented in the results. The data partition of 75% for training 25% for blind testing with a 10-fold cross-validation [33] is sufficient to provide consistency in the implementation of LASSO as a feature selection method and all the models implemented, resulted in an AUC in all the implementations proofs consistency along all data analyzed, with the set of 12 features product as hyperparameters used to train and test the models, the features produced by this methodology are:
Salary: With the data analyzed, it can be deduced that people with incomes greater than 5000 Mexican pesos tend to have healthier anthropometric data, lower lipid levels and better blood pressure, having less risk of suffering from T2DM than people with incomes less than 5000 Mexican pesos. This relates statistically in Latin America (low- and middle-income countries specifically) as the low and middle income class is more likely to be in risk of T2DM [34]. From the data of the feature Sex, it is implied that male patients classified as positive are more than female, achieving a direct relationship with the statistics shown in the introduction and the sample, yet this consistency does not present significant interaction with the other features as presents Gou W. et al. in the construction of a microbiome with similar features comparing it with the sex feature [35]. The feature Age values with the highest risk of developing T2DM according to the analyzed data, is between 44 and 58 years old. WHR and BMI derived from the data show that these features are directly related to obesity [36], if the values are in between the risk factor of obesity classes as it shows in the classification of obesity given by Center for Disease Control and Prevention (CDC) [37], these cases will increase the risk to develop the disease of T2DM as the age and the BMI increases [38]. The Urea levels are directly associated with an increased risk of T2DM, another feature with potential use for screening, and presented as key factor in detection of diabetes by Dinh A. et al. [39]. Lipids in treatment are somehow related to T2DM, as it’s variability can be used in diabetes monitoring as supports Lee S. et al. [40], but this feature can be discarded in this experiment as untreated lipid levels and type of medication for treatment are not shown in the data, making it impossible to make comparisons and identify differences or variances, it only shows whether or not medication was used to correct the levels. The HDL feature is a significant predictor for T2DM as it confirms Lai H. et al. [41] showing direct correlation with Triglycerides, SBP and BMI. The Hypertension under treatment, DBP or Diastolic Blood Pressure and uncorrected SBP or medication uncorrected Systolic Blood Pressure are highly correlated with T2DM. In the case of this experiment the different factor is the correction of levels through medication in the hypertension, this correlation was reviewed and compared with no significant difference with the study of Zheng H. et al. [42] where the blood pressure and hypertension weren’t controlled or corrected by medication. Diastolic Blood Pressure is the most relevant feature in the 3 models implemented in this experiment and is a potential biomarker for the detection of T2DM worthy of future studies.
As main findings it can be established that a model without glucose related features have similar performance as the models with glucose related features as it is shown in the Table 14:
The false positive and false negative rates of the ensemble proposed, clearly presents excellent results, as shown in the Table 12, this low rates explain that the model is solid and usable to support accurate diagnostics in real world situations as the scenarios presented in every patient data analyzed.
The AUC of the SVM is slightly better that the rest of the models including the final ensemble, nether less, this could change as the random nature of the partition sets changed, performing worst in some cases, the scenario presented in this work is included as it provided an outcome achieving over 90% AUC.

5. Conclusions

The results obtained were 90% ± 3% in the GLM–SVM–ANN ensemble model using LASSO for feature selection and dividing the data into 75% for training and 25% for testing, validated by 10-fold cross-validation and AUC are satisfactory but conclusive. The percentage of AUC is close to the goal of 95% to be used in a clinical setting, the need to implement new ways of processing the data and still avoid the Glucose feature or use it only as a reference, as proposed, ensures obtaining features with predictive potential.
As a disadvantage, inconsistencies were obtained in some LASSO runs, in this case, throwing a thirteenth feature that varied alternating between: Education, uncorrected LDL and SBP, these features were shown by the randomness product of cross-validation and were not taken as part of the final model. For this reason, otherwise, the features that were selected persisted in each run even with the change of data used in the different samplings that each separation generated by the folds performed.
All models confusion matrices including the final ensemble obtained a 3% to 4% sensitivity higher than the specificity, this behavior is considered within the accepted parameters for the detection of a disease.
The machine learning algorithms and the clinical data used for this methodology, showed potential to identify relationships, predictions and behavior patterns that classify over 90% of the patients accurately with or without T2DM, using biomarkers extracted by non-invasive methods with the same or superior precision than the invasive laboratory blood tests: FPG, OGTT or the H1A1c.

6. Future Work

For future research, it is proposed to delve into the relationship between Diastolic Blood Pressure and T2DM. Another proposal is to use a different type of imputation to have a different approach with some of the discarded features, using other feature selection approaches like genetic algorithms or Boruta and trying new models, hoping to successfully reach or exceed 95% AUC and ultimately discover potential biomarkers.

Author Contributions

Conceptualization, J.A.M.-B.; Data curation, C.E.G.-T., M.C.; Formal analysis, J.A.M.-B., C.E.G.-T., J.M.C.-P.; Funding acquisition, J.G.A.-O., H.G.-R., J.I.G.-T., J.A.M.-B.; Investigation, J.A.M.-B.; Methodology, J.A.M.-B., H.L.-G., J.M.C.-P.; Project administration, J.A.M.-B.; Resources, J.G.A.-O., J.A.M.-B., J.I.G.-T., H.G.-R.; Supervision, C.E.G.-T., H.L.-G., J.M.C.-P.; Validation, C.E.G.-T., J.M.C.-P.; Visualization, J.A.M.-B.; Writing-original draft, J.A.M.-B.; Writing—review & editing, J.A.M.-B., C.E.G.-T., J.M.C.-P. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

The study was conducted in accordance with the Declaration of Helsinki, and the protocol was approved by the Ethics Committee of Instituto Mexicano del Seguro Social and Comisión Nacional de Investigación Científica (R-2011-785-018).

Informed Consent Statement

Informed consent was obtained from all subjects involved in the study.

Data Availability Statement

Not applicable.

Acknowledgments

The authors thanks CONACYT for the support granted in his national scholarship program with CVU number 1152302 and the COZCyT for the support given to the publication of this article.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. World Health Organization. Diabetes. Available online: https://www.who.int/health-topics/diabetes#tab=tab_1 (accessed on 26 April 2022).
  2. World Health Organization. Diabetes. Available online: https://www.who.int/news-room/fact-sheets/detail/diabetes (accessed on 26 April 2022).
  3. International Diabetes Federation. Facts & Figures. Available online: https://www.idf.org/aboutdiabetes/what-is-diabetes/facts-figures.html (accessed on 26 April 2022).
  4. World Health Organization. New WHO Report Maps Barriers to Insulin Availability and Suggests Actions to Promote Universal Access. Available online: https://www.who.int/news/item/12-11-2021-new-who-report-maps-barriers-to-insulin-availability-and-suggests-actions-to-promote-universal-access (accessed on 26 April 2022).
  5. Instituto Nacional de Estadística y Geografía. Sala de Prensa INEGI. Available online: https://www.inegi.org.mx/app/saladeprensa/noticia.html?id=6923 (accessed on 26 April 2022).
  6. Kavakiotis, I.; Tsave, O.; Salifoglou, A.; Maglaveras, N.; Vlahavas, I.; Chouvarda, I. Machine Learning and Data Mining Methods in Diabetes Research. Comput. Struct. Biotechnol. J. 2017, 15, 104–116. [Google Scholar] [CrossRef] [PubMed]
  7. Syed, A.H.; Khan, T. Machine Learning-Based Application for Predicting Risk of Type 2 Diabetes Mellitus (T2DM) in Saudi Arabia: A Retrospective Cross-Sectional Study. IEEE Access 2020, 8, 199539–199561. [Google Scholar] [CrossRef]
  8. Wu, Y.; Ding, Y.; Tanaka, Y.; Zhang, W. Risk Factors Contributing to Type 2 Diabetes and Recent Advances in the Treatment and Prevention. Int. J. Med. Sci. 2014, 11, 1185–1200. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  9. De Moraes Batista, A.F.; Miraglia, J.L.; Rizzi Donato, T.H.; Porto Chiavegatto Filho, A.D. COVID-19 diagnosis prediction in emergency care patients: A machine learning approach. medRxiv 2020. [Google Scholar] [CrossRef] [Green Version]
  10. Kumar, N.; Kumar, D. Machine Learning based Heart Disease Diagnosis using Non-Invasive Methods: A Review. J. Phys. Conf. Ser. 2021, 1950, 012081. [Google Scholar] [CrossRef]
  11. Sánchez-Reyna, A.; Celaya-Padilla, J.; Galván-Tejada, C.; Luna-García, H.; Gamboa-Rosales, H.; Ramirez-Morales, A.; Galván-Tejada, J. Multimodal Early Alzheimer’s Detection, a Genetic Algorithm Approach with Support Vector Machines. Healthcare 2021, 9, 971. [Google Scholar] [CrossRef]
  12. Cohen, S.; Dagan, N.; Cohen-Inger, N.; Ofer, D.; Rokach, L. ICU Survival Prediction Incorporating Test-Time Augmentation to Improve the Accuracy of Ensemble-Based Models. IEEE Access 2021, 9, 91584–91592. [Google Scholar] [CrossRef]
  13. Du, G.; Ma, L.; Hu, J.S.; Zhang, J.; Xiang, Y.; Shao, D.; Wang, H. Prediction of 30-Day Readmission: An Improved Gradient Boosting Decision Tree Approach. J. Med. Imaging Health Inform. 2019, 9, 620–627. [Google Scholar] [CrossRef]
  14. Barda, N.; Yona, G.; Rothblum, G.N.; Greenland, P.; Leibowitz, M.; Balicer, R.; Bachmat, E.; Dagan, N. Addressing bias in prediction models by improving subpopulation calibration. J. Am. Med. Inform. Assoc. 2020, 28, 549–558. [Google Scholar] [CrossRef]
  15. Thyde, D.N.; Mohebbi, A.; Bengtsson, H.; Jensen, M.L.; Mørup, M. Machine Learning-Based Adherence Detection of Type 2 Diabetes Patients on Once-Daily Basal Insulin Injections. J. Diabetes Sci. Technol. 2020, 15, 98–108. [Google Scholar] [CrossRef]
  16. Hasan, M.K.; Alam, M.A.; Das, D.; Hossain, E.; Hasan, M. Diabetes Prediction Using Ensembling of Different Machine Learning Classifiers. IEEE Access 2020, 8, 76516–76531. [Google Scholar] [CrossRef]
  17. National Institute of Diabetes and Digestive and Kidney Diseases. Pima Indians Diabetes Database. Available online: https://www.kaggle.com/datasets/uciml/pima-indians-diabetes-database (accessed on 27 April 2022).
  18. Fujihara, K.; Matsubayashi, Y.; Harada Yamada, M.; Yamamoto, M.; Iizuka, T.; Miyamura, K.; Hasegawa, Y.; Maegawa, H.; Kodama, S.; Yamazaki, T.; et al. Machine Learning Approach to Decision Making for Insulin Initiation in Japanese Patients With Type 2 Diabetes (JDDM 58): Model Development and Validation Study. JMIR Med. Inform. 2021, 9, e22148. [Google Scholar] [CrossRef]
  19. Deberneh, H.M.; Kim, I. Prediction of Type 2 Diabetes Based on Machine Learning Algorithm. Int. J. Environ. Res. Public Health 2021, 18, 3317. [Google Scholar] [CrossRef]
  20. Kocbek, S.; Kocbek, P.; Gosak, L.; Fijačko, N.; Štiglic, G. Extracting New Temporal Features to Improve the Interpretability of Undiagnosed Type 2 Diabetes Mellitus Prediction Models. J. Pers. Med. 2022, 12, 368. [Google Scholar] [CrossRef]
  21. El-Sappagh, S.; Elmogy, M.; Ali, F.; Abuhmed, T.; Islam, S.M.R.; Kwak, K.S. A Comprehensive Medical Decision–Support Framework Based on a Heterogeneous Ensemble Classifier for Diabetes Prediction. Electronics 2019, 8, 635. [Google Scholar] [CrossRef] [Green Version]
  22. Kumari, S.; Kumar, D.; Mittal, M. An ensemble approach for classification and prediction of diabetes mellitus using soft voting classifier. Int. J. Cogn. Comput. Eng. 2021, 2, 40–46. [Google Scholar] [CrossRef]
  23. Singh, N.; Singh, P. Stacking-based multi-objective evolutionary ensemble framework for prediction of diabetes mellitus. Biocybern. Biomed. Eng. 2020, 40, 1–22. [Google Scholar] [CrossRef]
  24. Liu, Y.; Ye, S.; Xiao, X.; Sun, C.; Wang, G.; Wang, G.; Zhang, B. Machine Learning For Tuning, Selection, And Ensemble Of Multiple Risk Scores For Predicting Type 2 Diabetes. Risk Manag. Healthc. Policy 2019, 12, 189–198. [Google Scholar] [CrossRef] [Green Version]
  25. Akhtar, T.; Gilani, S.O.; Mushtaq, Z.; Arif, S.; Jamil, M.; Ayaz, Y.; Butt, S.I.; Waris, A. Effective Voting Ensemble of Homogenous Ensembling with Multiple Attribute-Selection Approaches for Improved Identification of Thyroid Disorder. Electronics 2021, 10, 3026. [Google Scholar] [CrossRef]
  26. Scheffer, J. Dealing with missing data. Res. Lett. Inf. Math. Sci. 2002, 3, 153–160. [Google Scholar]
  27. Wiesen, J.P. Benefits, Drawbacks, and Pitfalls of z-Score Weighting. In Proceedings of the 30th Annual IPMAAC Conference, Las Vegas, NV, USA, 25–28 June 2006. [Google Scholar]
  28. Zou, H.; Hastie, T. Regularization and variable selection via the elastic net. J. R. Stat. Soc. Ser. (Stat. Methodol.) 2005, 67, 301–320. [Google Scholar] [CrossRef] [Green Version]
  29. Friedman, J.; Hastie, T.; Tibshirani, R. Regularization Paths for Generalized Linear Models via Coordinate Descent. J. Stat. Softw. 2010, 33, 1–22. [Google Scholar] [CrossRef] [Green Version]
  30. Amari, S.; Wu, S. Improving support vector machine classifiers by modifying kernel functions. Neural Netw. 1999, 12, 783–789. [Google Scholar] [CrossRef]
  31. Abraham, A. Artificial Neural Networks. In Handbook of Measuring System Design; John Wiley & Sons: Hoboken, NJ, USA, 2005; Available online: https://www.wiley.com/en-us/Handbook+of+Measuring+System+Design%2C+3+Volume+Set-p-9780470021439 (accessed on 26 April 2022).
  32. Kuhn, M. Building Predictive Models in R Using the Caret Package. J. Stat. Softw. 2008, 28, 1–26. [Google Scholar] [CrossRef] [Green Version]
  33. Moreno-Torres, J.G.; Saez, J.A.; Herrera, F. Study on the Impact of Partition-Induced Dataset Shift on k-Fold Cross-Validation. IEEE Trans. Neural Netw. Learn. Syst. 2012, 23, 1304–1312. [Google Scholar] [CrossRef]
  34. Manne-Goehler, J.; Geldsetzer, P.; Agoudavi, K.; Andall-Brereton, G.; Aryal, K.K.; Bicaba, B.W.; Bovet, P.; Brian, G.; Dorobantu, M.; Gathecha, G.; et al. Health system performance for people with diabetes in 28 low- and middle-income countries: A cross-sectional study of nationally representative surveys. PLoS Med. 2019, 16, e1002751. [Google Scholar] [CrossRef] [Green Version]
  35. Gou, W.; Ling, C.; He, Y.; Jiang, Z.; Fu, Y.; Xu, F.; Miao, Z.; Sun, T.; Lin, J.; Zhu, H.; et al. Interpretable Machine Learning Framework Reveals Robust Gut Microbiome Features Associated with Type 2 Diabetes. Diabetes Care 2020, 44, 358–366. [Google Scholar] [CrossRef]
  36. Chatterjee, A.; Gerdes, M.W.; Martinez, S.G. Identification of Risk Factors Associated with Obesity and Overweight—A Machine Learning Overview. Sensors 2020, 20, 2734. [Google Scholar] [CrossRef] [PubMed]
  37. Centers for Disease Control and Prevention. Defining Adult Overweight and Obesity. Available online: https://www.cdc.gov/obesity/basics/adult-defining.html?CDC_AA_refVal=https%3A%2F%2Fwww.cdc.gov%2Fobesity%2Fadult%2Fdefining.html (accessed on 26 April 2022).
  38. Xie, Z.; Nikolayeva, O.; Luo, J.; Li, D. Building Risk Prediction Models for Type 2 Diabetes Using Machine Learning Techniques. Prev. Chronic Dis. 2019, 16, 190109. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  39. Dinh, A.; Miertschin, S.; Young, A.; Mohanty, S.D. A data-driven approach to predicting diabetes and cardiovascular disease with machine learning. BMC Med. Inform. Decis. Mak. 2019, 19, 211. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  40. Lee, S.; Zhou, J.; Wong, W.T.; Liu, T.; Wu, W.K.K.; Wong, I.C.K.; Zhang, Q.; Tse, G. Glycemic and lipid variability for predicting complications and mortality in diabetes mellitus using machine learning. BMC Endocr. Disord. 2021, 21, 94. [Google Scholar] [CrossRef]
  41. Lai, H.; Huang, H.; Keshavjee, K.; Guergachi, A.; Gao, X. Predictive models for diabetes mellitus using machine learning techniques. BMC Endocr. Disord. 2019, 19, 101. [Google Scholar] [CrossRef] [Green Version]
  42. Zheng, H.; Ryzhov, I.O.; Xie, W.; Zhong, J. Personalized Multimorbidity Management for Patients with Type 2 Diabetes Using Reinforcement Learning of Electronic Health Records. Drugs 2021, 81, 471–482. [Google Scholar] [CrossRef]
Figure 1. Flowchart of the proposed methodology.
Figure 1. Flowchart of the proposed methodology.
Healthcare 10 01362 g001
Figure 2. Feature Correlation Heat Map.
Figure 2. Feature Correlation Heat Map.
Healthcare 10 01362 g002
Figure 3. AUC in SVM, ANN, GLM and Ensemble Model.
Figure 3. AUC in SVM, ANN, GLM and Ensemble Model.
Healthcare 10 01362 g003
Table 1. Features discarded.
Table 1. Features discarded.
FeatureDescriptionPossible Values
Age DXDiagnosis age of T2DMNumeric Integer
GlucoseBlood glucose levelsNumeric
HbA1cGlycated HemoglobinNumeric
GFRGlomerular Filtration Rate (blood test that checks how well the kidneys are working)Numeric Integer
GlibenclamideDrug Treatment0—No
1—Yes
MetforminDrug Treatment0—No
1—Yes
PioglitazoneDrug Treatment0—No
1—Yes
RosiglitazoneDrug Treatment0—No
1—Yes
AcarboseDrug Treatment0—No
1—Yes
InsulineDrug Treatment0—No
1—Yes
Complications T2DMComplications associated with T2DMNEUROPATHY—Have neuropathy
RETINOPATHY—Have retinopathy
All features in this table were excluded from the analysis by data imputation.
Table 2. Features description and possible values.
Table 2. Features description and possible values.
FeatureDescriptionPossible Valuesp-Value Univariate Logistic Regression
EducationStudies concluded by the patient1—Elementary School
2—Secondary School
3—Technical level
4—High School
5—Professional
6—Postgraduate
0.00118
SalaryMonthly income1—Less than $2000.00
2—Between $2000.00 and $5000.00
3—More than $5000.00
2 16
SexPatients sex0—Male
1—Female
6.7 16
AgeAge of the patient in yearsNumeric Integer 2 16
WHRWaist Hip RatioNumeric 2.89 5
BMIBody Mass IndexNumeric 9.35 16
UreaWaste product resulting from the breakdown of protein in the patient bodyNumeric Integer 2 16
CreatinineWaste product produced by muscles as part of regular daily activityNumeric0.000456
Lipids treatmentLipid levels in treatment1—Lipid levels in treatment
2—Lipid levels without treatment.
0.956
CholesterolFat-like substance that is found in all cells of the patient bodyNumeric 2 16
HDLHigh Density Lipoprotein (corrected for medication)Numeric 3.77 12
LDLLow Density Lipoprotein (corrected for medication)Numeric 2 16
TriglyceridesType of fat found in the patient bodyNumeric 2 16
TCHOLUTotal Cholesterol (uncorrected)Numeric Integer0.258
HDLUHigh Density Lipoprotein (uncorrected)Numeric Integer 2.12 5
LDLULow Density Lipoprotein (uncorrected)Numeric Integer0.240
TGUTriglycerides (uncorrected)Numeric Integer 2 16
SBPSystolic Blood Pressure (corrected by medication)Numeric Integer 2 16
DBPDiastolic Blood Pressure (corrected by medication)Numeric Integer 2 16
SBPUSystolic Blood Pressure (uncorrected)Numeric Integer 1.28 10
DBPUDiastolic Blood Pressure (uncorrected)Numeric Integer 2 16
HA-TXHypertension Treatment0—Not in hypertension treatment
1—In hypertension treatment
0.959
OutputClassifier of patients0—Patient negative for T2DM
1—Patient positive for T2DM
-
All features in this table were included in the analysis by data imputation.
Table 3. LASSO result Features.
Table 3. LASSO result Features.
FeatureDescriptionPossible Valuesp-Value Multivariate LASSO Selection Logistic Regression
SalaryMonthly income1—Less than $2000.00
2—Between $2000.00 and $5000.00
3—More than $5000.00
2.72 16
SexPatients sex0—Male
1—Female
0.00538
AgeAge of the patient in yearsNumeric Integer 3.05 13
WHRWaist Hip RatioNumeric0.07312
BMIBody Mass IndexNumeric0.00760
UreaWaste product resulting from the breakdown of protein in the patient bodyNumeric Integer 7.43 7
Lipids treatmentLipid levels in treatment1—Lipid levels in treatment
2—Lipid levels without treatment
0.97047
HDLHigh Density Lipoprotein (corrected by medication)Numeric 1.19 7
TriglyceridesType of fat found in the patient bodyNumeric 6.31 5
DBPDiastolic Blood Pressure (corrected by medication)Numeric Integer 2 16
SBPUSystolic Blood Pressure (uncorrected)Numeric Integer 3.56 5
HA-TXHypertension Treatment0—No
1—Yes
0.96440
All features in this table were included in all models as part of the final ensemble.
Table 4. Metrics.
Table 4. Metrics.
MetricDescription
Sensitivity (see Equation (8))Correct identification of patients with T2DM (True Positive)
Specificity (see Equation (9))Correct identification of patients without T2DM (True Negative)
Precision (see Equation (10))Defines what portion of the positive cases of T2DM are actually positive
Negative Predictive Value (see Equation (11))Defines what portion of the negative cases of T2DM are actually negative
False Positive Rate (see Equation (12))The rate of the predicted false values that are actually true
False Negative Rate (see Equation (13))The rate of the predicted true values that are actually false
Accuracy (see Equation (14))The percentage of cases that the model has classified correctly
F1 Score (see Equation (15))The measure of precision that a test has
All metrics in this table were extracted in models as part of the final ensemble.
Table 5. Confusion Matrix structure.
Table 5. Confusion Matrix structure.
True ValuesPredicted (True)Predicted (False)
True T p T n
False F p F n
Table 6. SVM Confusion Matrix Measure Values.
Table 6. SVM Confusion Matrix Measure Values.
MeasureValue
Sensitivity0.8750
Specificity0.9238
Precision0.9269
Negative Predictive Value0.8700
False Positive Rate0.0762
False Negative Rate0.1250
Accuracy0.8982
F1 Score0.9002
Table 7. SVM Confusion Matrix.
Table 7. SVM Confusion Matrix.
True ValuesPredicted (True)Predicted (False)
True20316
False29194
Table 8. ANN Confusion Matrix Measure Values.
Table 8. ANN Confusion Matrix Measure Values.
MeasureValue
Sensitivity0.8559
Specificity0.9175
Precision0.9224
Negative Predictive Value0.8475
False Positive Rate0.0825
False Negative Rate0.1441
Accuracy0.8846
F1 Score0.8879
Table 9. ANN Confusion Matrix.
Table 9. ANN Confusion Matrix.
True ValuesPredicted (True)Predicted (False)
True20217
False34189
Table 10. GLM Confusion Matrix Measure Values.
Table 10. GLM Confusion Matrix Measure Values.
MeasureValue
Sensitivity0.8487
Specificity0.9167
Precision0.9224
Negative Predictive Value0.8386
False Positive Rate0.0833
False Negative Rate0.1513
Accuracy0.8801
F1 Score0.8840
Table 11. GLM Confusion Matrix.
Table 11. GLM Confusion Matrix.
True ValuesPredicted (True)Predicted (False)
True20217
False36187
Table 12. Maxvoting Ensemble Confusion Matrix Measure Values.
Table 12. Maxvoting Ensemble Confusion Matrix Measure Values.
MeasureValue
Sensitivity0.8788
Specificity0.9242
Precision0.9269
Negative Predictive Value0.8744
False Positive Rate0.0758
False Negative Rate0.1212
Accuracy0.9005
F1 Score0.9022
Table 13. Ensemble Model Confusion Matrix.
Table 13. Ensemble Model Confusion Matrix.
True ValuesPredicted (True)Predicted (False)
True20316
False28195
Table 14. Related work comparison.
Table 14. Related work comparison.
AutorML ModelDatasetMetrics
Shaker E. et al., (2019) [21]Ensemble of: k-nearest neighbors, naïve Bayes, decision tree, support vector machine, fuzzy decision tree, artificial neural network, and logistic regressionElectronic health records of Mansura University Hospitals (Mansura, Egypt)90% of accuracy, 90.2% of recall, and 94.9% of precision
Kumari et al., (2021) [22]Ensemble of: random forest, logistic regression, and Naive BayesPIMA diabetes dataset79.04% of accuracy, 73.48% of precision, 71.45% of recall, and 80.6% of F 1 _score
Singh N. et al., (2020) [23]stacking-based evolutionary ensemble learning system “NSGA-II-Stacking”PIMA diabetes datasetaccuracy of 83.8%, sensitivity of 96.1%, specificity of 79.9%, f-measure of 88.5% and area under ROC curve of 85.9%
Liu Y. et al., (2019) [24]Majority voting Ensemble: Support vector machine, tree-based methods and neural networksREACTION study (Risk Evaluation of Cancers in Chinese Diabetic Individuals: A Longitudinal Study)Majority voting with model selection results: AUC of 0.802 (80.2%), Sensitivity of 0.662 (66.2%), Specificity of 0.702 (70.2%)
This Work AuthorsHard voting Ensemble of: generalized liner regression, support vector machines and artificial neural networksCentro Médico Nacional Siglo XXI datasetSensitivity of 0.8788 (87.88%) Specificity of 0.9242 (92.42%) Precision of 0.9269 (92.69%) Area under the ROC curve 90.5%
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Morgan-Benita, J.A.; Galván-Tejada, C.E.; Cruz, M.; Galván-Tejada, J.I.; Gamboa-Rosales, H.; Arceo-Olague, J.G.; Luna-García, H.; Celaya-Padilla, J.M. Hard Voting Ensemble Approach for the Detection of Type 2 Diabetes in Mexican Population with Non-Glucose Related Features. Healthcare 2022, 10, 1362. https://doi.org/10.3390/healthcare10081362

AMA Style

Morgan-Benita JA, Galván-Tejada CE, Cruz M, Galván-Tejada JI, Gamboa-Rosales H, Arceo-Olague JG, Luna-García H, Celaya-Padilla JM. Hard Voting Ensemble Approach for the Detection of Type 2 Diabetes in Mexican Population with Non-Glucose Related Features. Healthcare. 2022; 10(8):1362. https://doi.org/10.3390/healthcare10081362

Chicago/Turabian Style

Morgan-Benita, Jorge A., Carlos E. Galván-Tejada, Miguel Cruz, Jorge I. Galván-Tejada, Hamurabi Gamboa-Rosales, Jose G. Arceo-Olague, Huizilopoztli Luna-García, and José M. Celaya-Padilla. 2022. "Hard Voting Ensemble Approach for the Detection of Type 2 Diabetes in Mexican Population with Non-Glucose Related Features" Healthcare 10, no. 8: 1362. https://doi.org/10.3390/healthcare10081362

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop