IDEAS home Printed from https://ideas.repec.org/a/ibn/ijspjl/v15y2026i1p12.html

Comparative Performance of Machine Learning Models for Diabetes Prediction Among US Adults Using NHANES Data

Author

Listed:
  • Keshab Raj Dahal
  • Nirajan Budhathoki
  • Anuja Dahal
  • Shreya Dhital

Abstract

This study aimed to compare the performance of six popular machine learning (ML) models for predicting diabetes mellitus among US adults using data from the 2017-March 2020 cycle of the National Health and Nutrition Examination Survey (NHANES). Data from 6,170 NHANES participants aged 20 years and older were analyzed. The target variable was self-reported diabetes status. A comprehensive set of predictors spanning demographics, health behaviors, and body measurements was considered. Descriptive statistics, accounting for NHANES’s complex sampling design, were presented to characterize the study population. To train the ML models, data were preprocessed using min-max normalization and the Synthetic Minority Oversampling Technique (SMOTE) to address class imbalance. Six ML models —logistic regression (LR), k-Nearest neighbors (kNN), support vector machine (SVM), random forest (RF), extreme gradient boosting (XGBoost), and neural networks (NN) —were trained and optimized using grid search and 10-fold cross-validation. Model performance was evaluated using sensitivity, specificity, accuracy, and AUC. Statistical differences in performance matrices were tested using Cochran’s Q and pairwise McNemar’s tests. Regarding models’ predictive ability, the RF model achieved the highest AUC (0.7559) and sensitivity (0.5370), while XGBoost showed the highest specificity (0.8654) and accuracy (0.7909). The NN model had consistent performance (AUC- 0.7482 ± 0.0054; sensitivity- 0.4828 ± 0.0493). A Cochran’s Q test indicated significant differences in all metrics (sensitivity, specificity, accuracy and AUC) across models (p-value < 0.001). Pairwise McNemar’s tests further confirmed multiple statistically significant differences in metrics within some models.

Suggested Citation

  • Keshab Raj Dahal & Nirajan Budhathoki & Anuja Dahal & Shreya Dhital, 2026. "Comparative Performance of Machine Learning Models for Diabetes Prediction Among US Adults Using NHANES Data," International Journal of Statistics and Probability, Canadian Center of Science and Education, vol. 15(1), pages 1-12, April.
  • Handle: RePEc:ibn:ijspjl:v:15:y:2026:i:1:p:12
    as

    Download full text from publisher

    File URL: https://ccsenet.org/journal/index.php/ijsp/article/download/0/0/53013/57805
    Download Restriction: no

    File URL: https://ccsenet.org/journal/index.php/ijsp/article/view/0/53013
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Keshab Raj Dahal & Ankrit Gupta & Nawa Raj Pokhrel, 2024. "Predicting the Direction of NEPSE Index Movement with News Headlines Using Machine Learning," Econometrics, MDPI, vol. 12(2), pages 1-26, June.
    2. Gérard Biau & Erwan Scornet, 2016. "Rejoinder on: A random forest guided tour," TEST: An Official Journal of the Spanish Society of Statistics and Operations Research, Springer;Sociedad de Estadística e Investigación Operativa, vol. 25(2), pages 264-268, June.
    3. Theodossiou, I., 1998. "The effects of low-pay and unemployment on psychological well-being: A logistic regression approach," Journal of Health Economics, Elsevier, vol. 17(1), pages 85-104, January.
    4. Gérard Biau & Erwan Scornet, 2016. "A random forest guided tour," TEST: An Official Journal of the Spanish Society of Statistics and Operations Research, Springer;Sociedad de Estadística e Investigación Operativa, vol. 25(2), pages 197-227, June.
    5. Arnold, Christian & Biedebach, Luka & Küpfer, Andreas & Neunhoeffer, Marcel, 2024. "The role of hyperparameters in machine learning models and how to tune them," Political Science Research and Methods, Cambridge University Press, vol. 12(4), pages 841-848, October.
    6. Aishwariya Dutta & Md. Kamrul Hasan & Mohiuddin Ahmad & Md. Abdul Awal & Md. Akhtarul Islam & Mehedi Masud & Hossam Meshref, 2022. "Early Prediction of Diabetes Using an Ensemble of Machine Learning Models," IJERPH, MDPI, vol. 19(19), pages 1-25, September.
    7. Keshab Raj Dahal & Nawa Raj Pokhrel & Santosh Gaire & Sharad Mahatara & Rajendra P Joshi & Ankrit Gupta & Huta R Banjade & Jeorge Joshi, 2023. "A comparative study on effect of news sentiment on stock price prediction with deep learning architecture," PLOS ONE, Public Library of Science, vol. 18(4), pages 1-19, April.
    8. Nirajan Budhathoki & Ramesh Bhandari & Suraj Bashyal & Carl Lee, 2023. "Predicting asthma using imbalanced data modeling techniques: Evidence from 2019 Michigan BRFSS data," PLOS ONE, Public Library of Science, vol. 18(12), pages 1-17, December.
    9. Jiangang Hao & Tin Kam Ho, 2019. "Machine Learning Made Easy: A Review of Scikit-learn Package in Python Programming Language," Journal of Educational and Behavioral Statistics, , vol. 44(3), pages 348-361, June.
    10. Mohandes, Mohamed A. & Rehman, Shafiqur & Halawani, Talal O., 1998. "A neural networks approach for wind speed prediction," Renewable Energy, Elsevier, vol. 13(3), pages 345-354.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Hou, Lei & Elsworth, Derek & Zhang, Fengshou & Wang, Zhiyuan & Zhang, Jianbo, 2023. "Evaluation of proppant injection based on a data-driven approach integrating numerical and ensemble learning models," Energy, Elsevier, vol. 264(C).
    2. Ma, Zhikai & Huo, Qian & Wang, Wei & Zhang, Tao, 2023. "Voltage-temperature aware thermal runaway alarming framework for electric vehicles via deep learning with attention mechanism in time-frequency domain," Energy, Elsevier, vol. 278(C).
    3. Patrick Krennmair & Timo Schmid, 2022. "Flexible domain prediction using mixed effects random forests," Journal of the Royal Statistical Society Series C, Royal Statistical Society, vol. 71(5), pages 1865-1894, November.
    4. Jie Shi & Arno P. J. M. Siebes & Siamak Mehrkanoon, 2023. "TransCORALNet: A Two-Stream Transformer CORAL Networks for Supply Chain Credit Assessment Cold Start," Papers 2311.18749, arXiv.org.
    5. Bourdouxhe, Axel & Wibail, Lionel & Claessens, Hugues & Dufrêne, Marc, 2023. "Modeling potential natural vegetation: A new light on an old concept to guide nature conservation in fragmented and degraded landscapes," Ecological Modelling, Elsevier, vol. 481(C).
    6. Manuel J. García Rodríguez & Vicente Rodríguez Montequín & Francisco Ortega Fernández & Joaquín M. Villanueva Balsera, 2019. "Public Procurement Announcements in Spain: Regulations, Data Analysis, and Award Price Estimator Using Machine Learning," Complexity, Hindawi, vol. 2019, pages 1-20, November.
    7. Borup, Daniel & Christensen, Bent Jesper & Mühlbach, Nicolaj Søndergaard & Nielsen, Mikkel Slot, 2023. "Targeting predictors in random forest regression," International Journal of Forecasting, Elsevier, vol. 39(2), pages 841-868.
    8. Yiyi Huo & Yingying Fan & Fang Han, 2023. "On the adaptation of causal forests to manifold data," Papers 2311.16486, arXiv.org, revised Dec 2023.
    9. Akshita Bassi & Aditya Manchanda & Rajwinder Singh & Mahesh Patel, 2023. "A comparative study of machine learning algorithms for the prediction of compressive strength of rice husk ash-based concrete," Natural Hazards: Journal of the International Society for the Prevention and Mitigation of Natural Hazards, Springer;International Society for the Prevention and Mitigation of Natural Hazards, vol. 118(1), pages 209-238, August.
    10. Sachin Kumar & Zairu Nisha & Jagvinder Singh & Anuj Kumar Sharma, 2022. "Sensor network driven novel hybrid model based on feature selection and SVR to predict indoor temperature for energy consumption optimisation in smart buildings," International Journal of System Assurance Engineering and Management, Springer;The Society for Reliability, Engineering Quality and Operations Management (SREQOM),India, and Division of Operation and Maintenance, Lulea University of Technology, Sweden, vol. 13(6), pages 3048-3061, December.
    11. Yong-Chao Su & Cheng-Yu Wu & Cheng-Hong Yang & Bo-Sheng Li & Sin-Hua Moi & Yu-Da Lin, 2021. "Machine Learning Data Imputation and Prediction of Foraging Group Size in a Kleptoparasitic Spider," Mathematics, MDPI, vol. 9(4), pages 1-16, February.
    12. Vital, Adilson & Silva, Filipi N. & Oliveira, Osvaldo N. & Amancio, Diego R., 2025. "Predicting citation impact of research papers using GPT and other text embeddings," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 674(C).
    13. Diogenis A. Kiziridis & Anna Mastrogianni & Magdalini Pleniou & Elpida Karadimou & Spyros Tsiftsis & Fotios Xystrakis & Ioannis Tsiripidis, 2022. "Acceleration and Relocation of Abandonment in a Mediterranean Mountainous Landscape: Drivers, Consequences, and Management Implications," Land, MDPI, vol. 11(3), pages 1-23, March.
    14. Escribano, Álvaro & Wang, Dandan, 2021. "Mixed random forest, cointegration, and forecasting gasoline prices," International Journal of Forecasting, Elsevier, vol. 37(4), pages 1442-1462.
    15. Hunish Bansal & Basavraj Chinagundi & Prashant Singh Rana & Neeraj Kumar, 2022. "An Ensemble Machine Learning Technique for Detection of Abnormalities in Knee Movement Sustainability," Sustainability, MDPI, vol. 14(20), pages 1-16, October.
    16. Yigit Aydede & Jan Ditzen, 2022. "Identifying the regional drivers of influenza-like illness in Nova Scotia with dominance analysis," Papers 2212.06684, arXiv.org.
    17. Siyoon Kwon & Hyoseob Noh & Il Won Seo & Sung Hyun Jung & Donghae Baek, 2021. "Identification Framework of Contaminant Spill in Rivers Using Machine Learning with Breakthrough Curve Analysis," IJERPH, MDPI, vol. 18(3), pages 1-26, January.
    18. Sylwester Bejger, 2024. "Machine Learning in Cartel Screening—The Case of Parallel Pricing in a Fuel Wholesale Market," Energies, MDPI, vol. 17(16), pages 1-17, August.
    19. Karim Zkik & Anass Sebbar & Oumaima Fadi & Sachin Kamble & Amine Belhadi, 2024. "Securing blockchain-based crowdfunding platforms: an integrated graph neural networks and machine learning approach," Electronic Commerce Research, Springer, vol. 24(1), pages 497-533, March.
    20. Lotfi Boudabsa & Damir Filipovi'c, 2022. "Ensemble learning for portfolio valuation and risk management," Papers 2204.05926, arXiv.org.

    More about this item

    JEL classification:

    • R00 - Urban, Rural, Regional, Real Estate, and Transportation Economics - - General - - - General
    • Z0 - Other Special Topics - - General

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:ibn:ijspjl:v:15:y:2026:i:1:p:12. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Canadian Center of Science and Education (email available below). General contact details of provider: https://edirc.repec.org/data/cepflch.html .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.