HARMONI-Stack: Adaptive Stacking with Reliability-Weighted Feature Distillation and Bias-Aware Thresholding for Multi-Source Diabetes Detection

PDF (2091KB), PP.439-470

Views: 0 Downloads: 0

Author(s)

Pratap M. S. 1,* G. Arulkumaran 1

1. School of Computer Science and Engineering, REVA University, Bengaluru, India

* Corresponding author.

DOI: https://doi.org/10.5815/ijem.2026.06.23

Received: 7 Aug. 2026 / Revised: 26 Aug. 2026 / Accepted: 23 Sep. 2026 / Published: 8 Dec. 2026

Index Terms

Diabetes mellitus detection, multi-source data harmonization, adaptive stacking ensemble, dynamic weight learning, genetic algorithm feature selection, recursive feature elimination, Bayesian hyperparameter optimization, hierarchical super learner, bias-

Abstract

Machine-learning models for diabetes detection are almost always developed on a single cohort, tuned to a single global decision threshold, and combined through ensembles whose member weights are fixed in advance. Such models report high in-sample accuracy but transfer poorly, because the cohort that trained them also defined their notion of a typical patient. This paper proposes HARMONI-Stack, a hybrid framework that learns from five heterogeneous diabetes sources simultaneously and treats the heterogeneity itself as a modelling signal rather than as noise to be removed. Five public cohorts — the PIMA Indian Diabetes Database, the BRFSS 2021 balanced (50/50) health-indicator set, the BRFSS 2021 three-class health-indicator set, the Diabetes 130-US-Hospitals readmission set, and an independent PIMA-schema replicate — comprising 406,816 raw records, are mapped onto a common 13-attribute canonical schema by a DataHarmonizer that performs schema mapping, unit and ordinal-code standardisation, and per-source reliability scoring. Missing cross-cohort attributes are recovered by multivariate chained-equation imputation, extreme values are clipped at five interquartile ranges to preserve clinical outliers, and class balance is restored inside each training fold to avoid leakage. A three-stage feature distillation pipeline — mutual-information and ANOVA filtering, recursive elimination with cross-validation, and a genetic algorithm with an explicit sparsity penalty — compresses 37 engineered attributes to 16 discriminative predictors at a best fitness of 0.8217. Four Bayesian-optimised base learners (Random Forest, XGBoost, LightGBM, RBF-SVM) generate out-of-fold probabilities that are fused by a Dynamic Weight Learning module in which each member weight is a temperature-scaled softmax of its AUC, recall and PR-AUC. Two meta-learners are then blended in proportion to their validation AUC, and a Bias-Aware Adjustment Layer calibrates a separate decision threshold for each age stratum. On a held-out test partition of 60,703 real patient records the adaptive stack attains AUC-ROC = 0.8222, recall = 0.7552, F1 = 0.5759 and a Brier score of 0.1433, with nested cross-validated AUC of 0.8223 (2-fold nested CV; fold range 0.8223–0.8224). A three-level hierarchical Super Learner with entropy- and disagreement-enriched meta-features reaches AUC = 0.8221, and SHAP attribution identifies the engineered metabolic-risk composite and the age-glucose ratio as the dominant predictors. An ablation in which feature distillation is driven to four attributes degrades AUC to 0.7727, quantifying the cost of over-compression. The framework shows that harmonised multi-source learning, performance-proportional ensemble weighting, subgroup-specific thresholding and post-hoc explanation can be combined into a single pipeline that is both clinically interpretable and stable across populations. Two limitations bound these results and are quantified in the paper. Glucose, diastolic pressure and insulin are directly measured for only 1,536 of 406,816 records, so for the remainder these attributes are reconstructed by chained-equation imputation; the reported discrimination should therefore be read as that attainable from lifestyle, anthropometric and comorbidity data with biochemistry inferred. Second, all five cohorts were visible during development, so 0.8222 is pooled-corpus performance rather than leave-one-cohort-out transfer, and external validation on a cohort with directly measured glycaemia remains outstanding.

Cite This Paper

Pratap M. S., G. Arulkumaran, "HARMONI-Stack: Adaptive Stacking with Reliability-Weighted Feature Distillation and Bias-Aware Thresholding for Multi-Source Diabetes Detection", International Journal of Engineering and Manufacturing (IJEM), Vol.16, No.6, pp.439-470, 2026. DOI:10.5815/ijem.2026.06.23

Reference

[1]W. Li, Y. Peng and K. Peng, "Diabetes prediction model based on GA-XGBoost and stacking ensemble algorithm," PLOS ONE, vol. 19, no. 9, p. e0311222, 2024, doi: 10.1371/journal.pone.0311222.  
[2]S. M. Ganie, P. K. Dutta Pramanik and Z. Zhang, "A stacked ensemble machine learning approach for the prediction of diabetes," Journal of Diabetes and Metabolic Disorders, vol. 23, no. 1, pp. 603–617, 2024, doi: 10.1007/s40200-023-01321-2. 
[3]M. Bhandarkar, Y. V. Bellary, A. Bhole, A. Bhadange and V. Bendre, "Ensemble stacking classifier model for prediction of diabetes," International Journal of Informatics and Communication Technology, vol. 13, no. 3, pp. 499–508, 2024, doi: 10.11591/ijict.v13i3.pp499-508.
[4]K. Iftikhar, N. Javaid, I. Ahmed and N. Alrajeh, "Diabetes prediction using feature selection algorithms and boosting-based machine learning classifiers," Diagnostics, vol. 15, no. 20, p. 2622, 2025, doi: 10.3390/diagnostics15202622.
[5]Elliot Kojo Attipoe, Alimatu Saadia Yussiff, Maame Gyamfua Asante-Mensah, Emmanuel Dortey Tetteh, Regina Esi Turkson, "An ensemble learning approach for diabetes prediction using the stacking method," Computer Science and Information Technologies, vol. 6, no. 2, pp. 145–156, 2025, doi: https://doi.org/10.11591/csit.v6i2.p102-111.
[6]U. Allani, "Interactive diabetes risk prediction using explainable machine learning: a Dash-based approach with SHAP, LIME and comorbidity insights," arXiv preprint, arXiv:2505.05683, 2025, doi: 10.48550/arXiv.2505.05683.
[7]Netayawijit P, Chansanam W, Sorn-In K. “Interpretable Machine Learning Framework for Diabetes Prediction: Integrating SMOTE Balancing with SHAP Explainability for Clinical Decision Support. Healthcare,” 2025; 13(20):2588. https://doi.org/10.3390/healthcare13202588.
[8]Alipour,M , and Alipour,A . "Algorithmic Bias in AI-Based Diabetes Care: Systematic Review of Model Performance, Equity Reporting, and Physiological Label Bias," InfoScience Trends, 2, 5, 2025, 33-46. doi: 10.61186/ist.202502.05.04.  
[9]S. Majyambere, T. Lindgren, C. Twizere and I. Ntakirutimana, "Early type 2 diabetes risk prediction using explainable machine learning in a two-stage approach," Frontiers in Digital Health, vol. 8, p. 1743619, 2026, doi: 10.3389/fdgth.2026.1743619.
[10]Rossi, D., Auriemma Citarella, A., De Marco, F. et al., "D.R.E.A.M.: diabetes risk via explainable AI modeling," Multimedia Tools and Applications, 2026, doi: 10.1007/s11042-026-21240-7. 
[11]A. Ziane, H. El Bouhissi and T. Hanne, "Intelligent diabetes prediction system based on hybrid PSO-GWO feature selection and optimized machine learning," Information, vol. 17, no. 6, p. 533, 2026, doi: 10.3390/info17060533. 
[12]Eebaree DQ, Salih MS, Odeesho DW, Zebari DA, Zebari NA, Bashi OID, Abdulhakeem RM, Yahya YA, "An effective model-based voting classifier for diabetes mellitus classification," Bioengineering, vol. 13, no. 4, p. 480, 2026, doi: 10.3390/bioengineering13040480.  
[13]R. Malluhi, M. Barhamgi, S. Salem, A. Q. Alban and A. Badawy, "Improving trust in AI-driven diabetes prediction: explainability through SHAP and counterfactual analysis," in Web Information Systems Engineering — WISE 2025, Lecture Notes in Computer Science, vol. 16367, Singapore: Springer, 2026, pp. 507–521, doi: 10.1007/978-981-95-7394-3_35.
[14]Syed, A.H.; Taha, A.A.; Osman, A.H.; Baguda, Y.S.; Aljahdali, H.M.; Yunianta, "An interpretable fuzzy distance-based ensemble framework with SHAP analysis for clinically transparent prediction of diabetes," Diagnostics, vol. 16, no. 9, p. 1254, 2026, doi: 10.3390/diagnostics16091254.  
[15]M. Hardegger, R. Dornberger and T. Hanne, "Hybrid feature selection and MLP classifier for diabetes prediction," in Proc. MLCCIM 2025, Lecture Notes in Electrical Engineering, vol. 1515, Singapore: Springer, 2026, pp. 751-764, doi: 10.1007/978-981-95-4897-2_55.  
[16]Pireci Sejdiu, N., Ristevski, B., Veljanovska, K. et al. "HybGANN: an interpretable generative evolutionary model for predicting diabetes from imbalanced data," Discover Artificial Intelligence, 2026, doi: 10.1007/s44163-026-01190-7.
[17]International Diabetes Federation, IDF Diabetes Atlas, 10th ed. Brussels, Belgium: International Diabetes Federation, 2023.
[18]T. Chen and C. Guestrin, "XGBoost: a scalable tree boosting system," in Proc. 22nd ACM SIGKDD Int. Conf. Knowledge Discovery and Data Mining (KDD '16), San Francisco, CA, USA, 2016, pp. 785–794, doi: 10.1145/2939672.2939785.
[19]G. Ke, Q. Meng, T. Finley, T. Wang, W. Chen, W. Ma, Q. Ye and T.-Y. Liu, "LightGBM: a highly efficient gradient boosting decision tree," in Advances in Neural Information Processing Systems, vol. 30, Long Beach, CA, USA, 2017, pp. 3146–3154.
[20]S. M. Lundberg and S.-I. Lee, "A unified approach to interpreting model predictions," in Advances in Neural Information Processing Systems, vol. 30, Long Beach, CA, USA, 2017, pp. 4765–4774.
[21]D. H. Wolpert, "Stacked generalization," Neural Networks, vol. 5, no. 2, pp. 241–259, 1992, doi: 10.1016/S0893-6080(05)80023-1.
[22]M. J. van der Laan, E. C. Polley and A. E. Hubbard, "Super learner," Statistical Applications in Genetics and Molecular Biology, vol. 6, no. 1, Art. no. 25, 2007, doi: 10.2202/1544-6115.1309.
[23]T. Akiba, S. Sano, T. Yanase, T. Ohta and M. Koyama, "Optuna: a next-generation hyperparameter optimization framework," in Proc. 25th ACM SIGKDD Int. Conf. Knowledge Discovery and Data Mining (KDD '19), Anchorage, AK, USA, 2019, pp. 2623–2631, doi: 10.1145/3292500.3330701.
[24]H. Han, W.-Y. Wang and B.-H. Mao, "Borderline-SMOTE: a new over-sampling method in imbalanced data sets learning," in Advances in Intelligent Computing, Lecture Notes in Computer Science, vol. 3644, Berlin, Germany: Springer, 2005, pp. 878–887, doi: 10.1007/11538059_91.
[25]N. V. Chawla, K. W. Bowyer, L. O. Hall and W. P. Kegelmeyer, "SMOTE: synthetic minority over-sampling technique," Journal of Artificial Intelligence Research, vol. 16, pp. 321–357, 2002, doi: 10.1613/jair.953.
[26]S. van Buuren and K. Groothuis-Oudshoorn, "mice: multivariate imputation by chained equations in R," Journal of Statistical Software, vol. 45, no. 3, pp. 1–67, 2011, doi: 10.18637/jss.v045.i03.
[27]M. Hardt, E. Price and N. Srebro, "Equality of opportunity in supervised learning," in Advances in Neural Information Processing Systems, vol. 29, Barcelona, Spain, 2016, pp. 3315–3323.
[28]E. R. DeLong, D. M. DeLong and D. L. Clarke-Pearson, "Comparing the areas under two or more correlated receiver operating characteristic curves: a nonparametric approach," Biometrics, vol. 44, no. 3, pp. 837–845, 1988, doi: 10.2307/2531595.
[29]F.-A. Fortin, F.-M. De Rainville, M.-A. Gardner, M. Parizeau and C. Gagné, "DEAP: evolutionary algorithms made easy," Journal of Machine Learning Research, vol. 13, pp. 2171–2175, 2012.
[30]F. Pedregosa, G. Varoquaux, A. Gramfort, V. Michel, B. Thirion, O. Grisel, M. Blondel, P. Prettenhofer, R. Weiss, V. Dubourg, J. Vanderplas, A. Passos, D. Cournapeau, M. Brucher, M. Perrot and É. Duchesnay, "Scikit-learn: machine learning in Python," Journal of Machine Learning Research, vol. 12, pp. 2825–2830, 2011.
[31]G. Lemaître, F. Nogueira and C. K. Aridas, "Imbalanced-learn: a Python toolbox to tackle the curse of imbalanced datasets in machine learning," Journal of Machine Learning Research, vol. 18, no. 17, pp. 1–5, 2017.
[32]J. W. Smith, J. E. Everhart, W. C. Dickson, W. C. Knowler and R. S. Johannes, "Using the ADAP learning algorithm to forecast the onset of diabetes mellitus," in Proc. Annu. Symp. Computer Applications in Medical Care, Washington, DC, USA, 1988, pp. 261–265, doi: 10.24432/C5T59G.
[33]B. Strack, J. P. DeShazo, C. Gennings, J. L. Olmo, S. Ventura, K. J. Cios and J. N. Clore, "Impact of HbA1c measurement on hospital readmission rates: analysis of 70,000 clinical database patient records," BioMed Research International, vol. 2014, Art. no. 781670, 2014, doi: 10.1155/2014/781670.
[34]Centers for Disease Control and Prevention, "Behavioral Risk Factor Surveillance System (BRFSS) 2021 survey data and diabetes health indicators," Atlanta, GA, USA, 2021.
[35]L. Breiman, "Random forests," Machine Learning, vol. 45, no. 1, pp. 5–32, 2001, doi: 10.1023/A:1010933404324.
[36]P. Geurts, D. Ernst and L. Wehenkel, "Extremely randomized trees," Machine Learning, vol. 63, no. 1, pp. 3–42, 2006, doi: 10.1007/s10994-006-6226-1.
[37]A. Niculescu-Mizil and R. Caruana, "Predicting good probabilities with supervised learning," in Proc. 22nd Int. Conf. Machine Learning (ICML '05), Bonn, Germany, 2005, pp. 625–632, doi: 10.1145/1102351.1102430.
[38]Md. Najmul Islam, Md. Miner Hossain Rimon, Shah Sadek-E-Akbor Shamim, Zarif Mohaimen Fahad, Md. Jehadul Islam Mony, Md. Jalal Uddin Chowdhury, "An improved ensemble-based machine learning model with feature optimization for early diabetes prediction," arXiv preprint, arXiv:2512.02023, 2025, doi: 10.48550/arXiv.2512.02023.
[39]Y. Benjamini and Y. Hochberg, "Controlling the false discovery rate: a practical and powerful approach to multiple testing," Journal of the Royal Statistical Society: Series B, vol. 57, no. 1, pp. 289–300, 1995, doi: 10.1111/j.2517-6161.1995.tb02031.x.