Purpose: Glycemic emergencies are a frequent cause of hospital admissions and can lead to severe complications, particularly in older or medically complex patients. Anticipating these events is essential for timely intervention and personalized care. This study aimed to identify patients at risk of hypoglycemia or hyperglycemia using routinely collected data from emergency department of 11 hospitals in Spain. Methods: A comprehensive modeling framework was designed to identify glycemic events from clinical data. Multiple supervised learning algorithms were trained and validated using routinely collected patient variables. Model explainability was ensured through the integration of XAI methods, which quantified the contribution of individual clinical features to prediction outcomes. This approach enabled transparent model behavior, supporting clinical understanding and facilitating patient risk stratification. Results: The developed models achieved predictive accuracies between 70% and 74%. Explainability analyses revealed distinct glycemic risk patterns: patients aged 87 years and above were predominantly hypoglycemic, while among younger individuals, those with a body temperature exceeding 36 C, Chronic Kidney Disease (CKD) (creatinine), and platelet counts below were more likely to be hyperglycemic, whereas others tended toward hypoglycemia. Conclusions: These results highlight the predictive value of age, thermoregulation, renal function, and hematologic parameters in assessing glycemic risk. The combination of machine learning and explainability provides interpretable, actionable insights to support early risk stratification and improve outcomes in diabetes care. Trial registration: This retrospective study was approved by the Comité de Ética de la Investigación con medicamentos (CEIm) of Hospital Clínico San Carlos (Madrid, Spain) (Approval code: 19/332-E). The requirement for informed consent was waived. All procedures followed institutional ethics standards, the Declaration of Helsinki, and applicable national regulations. Retrospectively registered.

Exploring the potential of XAI methods in generating clinically meaningful explanations for glycemia prediction in diabetes patients / Rotbei, S., Soler, P.M., Merino-Barbancho, B., Lopez-Perez, L., Anchuelo, A.C., García, L.P., Forés, R.M., Matus, L.M., Albert, R.M., Andicoechea, A.O., Panadero, R.P., San Martín Díez, M.Á., Sánchez, A.B., Barrón, R.S., Irimia, A., Esculano, E.R., Vinceixo, M.C., Chaib, F.B., Tourab, H., Fico, G., et al.. - In: BMC MEDICAL INFORMATICS AND DECISION MAKING. - ISSN 1472-6947. - 26:1(2026). [10.1186/s12911-026-03420-5]

Exploring the potential of XAI methods in generating clinically meaningful explanations for glycemia prediction in diabetes patients

Rotbei, Sayna;Botta, Alessio
2026

Abstract

Purpose: Glycemic emergencies are a frequent cause of hospital admissions and can lead to severe complications, particularly in older or medically complex patients. Anticipating these events is essential for timely intervention and personalized care. This study aimed to identify patients at risk of hypoglycemia or hyperglycemia using routinely collected data from emergency department of 11 hospitals in Spain. Methods: A comprehensive modeling framework was designed to identify glycemic events from clinical data. Multiple supervised learning algorithms were trained and validated using routinely collected patient variables. Model explainability was ensured through the integration of XAI methods, which quantified the contribution of individual clinical features to prediction outcomes. This approach enabled transparent model behavior, supporting clinical understanding and facilitating patient risk stratification. Results: The developed models achieved predictive accuracies between 70% and 74%. Explainability analyses revealed distinct glycemic risk patterns: patients aged 87 years and above were predominantly hypoglycemic, while among younger individuals, those with a body temperature exceeding 36 C, Chronic Kidney Disease (CKD) (creatinine), and platelet counts below were more likely to be hyperglycemic, whereas others tended toward hypoglycemia. Conclusions: These results highlight the predictive value of age, thermoregulation, renal function, and hematologic parameters in assessing glycemic risk. The combination of machine learning and explainability provides interpretable, actionable insights to support early risk stratification and improve outcomes in diabetes care. Trial registration: This retrospective study was approved by the Comité de Ética de la Investigación con medicamentos (CEIm) of Hospital Clínico San Carlos (Madrid, Spain) (Approval code: 19/332-E). The requirement for informed consent was waived. All procedures followed institutional ethics standards, the Declaration of Helsinki, and applicable national regulations. Retrospectively registered.
2026
Exploring the potential of XAI methods in generating clinically meaningful explanations for glycemia prediction in diabetes patients / Rotbei, S., Soler, P.M., Merino-Barbancho, B., Lopez-Perez, L., Anchuelo, A.C., García, L.P., Forés, R.M., Matus, L.M., Albert, R.M., Andicoechea, A.O., Panadero, R.P., San Martín Díez, M.Á., Sánchez, A.B., Barrón, R.S., Irimia, A., Esculano, E.R., Vinceixo, M.C., Chaib, F.B., Tourab, H., Fico, G., et al.. - In: BMC MEDICAL INFORMATICS AND DECISION MAKING. - ISSN 1472-6947. - 26:1(2026). [10.1186/s12911-026-03420-5]
File in questo prodotto:
Non ci sono file associati a questo prodotto.

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11588/1048951
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 0
  • ???jsp.display-item.citation.isi??? ND
social impact