Explainable machine learning for differential diagnosis of diabetic foot infection and osteomyelitis: a two-center study and clinically applicable web calculator using routine blood biomarkers
Open Access
- 11 November 2025
- journal article
- research article
- Published by Springer Nature in BMC Medical Informatics and Decision Making
- Vol. 25 (1) , 1-20
Abstract
Diabetic foot complications, including infections and osteomyelitis, pose significant health risks, with high prevalence and amputation rates. Differentiating diabetic foot infection (DFI) from osteomyelitis (OM) is challenging due to overlapping symptoms and limitations of current diagnostic methods. This study aimed to develop and validate an explainable machine learning (ML) model using routine blood biomarkers to improve differential diagnosis and provide a clinically accessible tool. This retrospective, two-center study included 3,612 patients diagnosed with either DFI (n = 1,699) or OM (n = 1,913). Data from Center 1 (n = 3271) were used for model development (75% training, 25% internal validation), and data from Center 2 (n = 341) served as an independent external validation cohort. A robust feature selection pipeline identified the most predictive routine biomarkers. Multiple machine learning classifiers were trained and evaluated, with the top-performing model selected based on the area under the receiver operating characteristic curve (AUC), Brier score, and other key metrics. Explainable AI (XAI) techniques (SHAP, LIME) were used to ensure model transparency. A web-based calculator was developed for clinical translation. A LightGBM model using only six biomarkers—Age, HbA1c, Creatinine, Albumin, ESR, and Sodium—was selected as the final model. It achieved an AUC of 0.879 (95% CI 0.854–0.902) in internal validation and demonstrated excellent, generalizable performance in the external cohort with an AUC of 0.942 (95% CI 0.936–0.950). The model was well-calibrated and showed significant clinical utility in decision curve analysis. SHAP analysis quantified the specific contribution of each biomarker to individual predictions, enhancing interpretability. The final model was deployed as a user-friendly, publicly accessible web calculator. An externally validated machine learning model based on six routine blood biomarkers can accurately and reliably differentiate DFI from OM. The model demonstrated high discriminative performance and clinical utility. Deployed as a transparent web calculator with integrated explainable AI, this low-cost tool has the potential to aid clinicians in diagnostic decision-making, particularly in resource-limited settings. Not applicable.Keywords
Funding Information
- the Health Care and Medical Research Special Project of the Xinjiang Uygur Autonomous Region (BL202460)
This publication has 51 references indexed in Scilit:
- XAI-FusionNet: Diabetic foot ulcer detection based on multi-scale feature fusion with explainable artificial intelligenceHeliyon, 2024
- DFU_XAI: A Deep Learning-Based Approach to Diabetic Foot Ulcer Detection Using Feature ExplainabilityBiomedical Materials & Devices, 2024
- IWGDF/IDSA guidelines on the diagnosis and treatment of diabetes‐related foot infections (IWGDF/IDSA 2023)Diabetes/Metabolism Research and Reviews, 2023
- DFU_VIRNet: A novel Visible-InfraRed CNN to improve diabetic foot ulcer classification and early detection of ulcer risk zonesBiomedical Signal Processing and Control, 2023
- Diabetic foot disease and the risk of major clinical outcomesDiabetes Research and Clinical Practice, 2023
- Diabetic foot ulcer disease in African continent: ‘From clinical care to implementation’ – Review of diabetic foot in last 60 years – 1960 to 2020Diabetes Research and Clinical Practice, 2022
- A machine learning model for early detection of diabetic foot using thermogram imagesComputers in Biology and Medicine, 2021
- Imaging for detection of osteomyelitis in people with diabetic foot ulcers: A systematic review and meta-analysisEuropean Journal of Radiology, 2020
- Diagnosing diabetic foot osteomyelitisDiabetes/Metabolism Research and Reviews, 2020
- Diabetic foot osteomyelitis: a progress report on diagnosis and a systematic review of treatmentDiabetes/Metabolism Research and Reviews, 2008