Comparative Analysis of Regression Models and Machine Learning Techniques for HbA1c Prediction in Type 2 Diabetes Patients

Authors

  • Asmaa Salah Mohammad Department of Statistics, College of Administration and Economics, University of Kirkuk, Kirkuk, Iraq Author
  • Wakaa Ali Hadba Department of Statistics, College of Administration and Economics, University of Kirkuk, Kirkuk, Iraq Author

Keywords:

Type 2 Diabetes Mellitus, HbA1c Prediction, Machine Learning Ensembles, Random Forest Regression, OLS Residual Diagnostics

Abstract

Accurate prediction of HbA1c is necessary the proper management of Type 2 diabetes, but traditional linear models rarely capture the complexity of nonlinear relationships in medical data. In this paper, a full-fledged two-step model is developed using a real dataset comprising 1,000 patients, extracted from the Medical City Hospital and the Specialized Center for Endocrinology and Diabetes at Al-Kindi Teaching Hospital. Stage one involves a thorough pre-modeling structural validation through five diagnostic checks: linearity, normality, homoscedasticity, independence, and multicollinearity. The Ordinary Least Squares residuals show deviation from normal distribution (W = 0.98006, ρ < 0.001) and positive autocorrelation DW = 1.4494), which explains the lack of predictive power in classical models (R2: 0.249-0.284). In the second step, 12 different models are analyzed using regularization, dimensionality reduction and nonparametric machine learning techniques. Nonparametric modeling proved to be capable of handling such linear restrictions. The best-performing tree-based bagging algorithm, Random Forest, achieved the highest predictive performance, with the highest predictive accuracy (R2 = 0.5710, RMSE = 1.63076). XGBoost comes second (R2 = 0.5364, RMSE = 1.6968). These findings highlight the necessity of data-driven ensemble systems in minimizing chronic disease monitoring gaps and optimizing clinical decision support.

Downloads

Published

2026-08-04