Skip to main content

ORIGINAL RESEARCH article

Front. Cell. Infect. Microbiol.

Sec. Clinical Infectious Diseases

Volume 15 - 2025 | doi: 10.3389/fcimb.2025.1461740

This article is part of the Research Topic Immune Insights into Orthopedic Infections: Mechanisms, Biomarkers, and Prevention View all 6 articles

An Explainable Web Application Based on Machine Learning for Predicting Fragility Fracture in People Living with HIV: Data from Beijing Ditan Hospital, China

Provisionally accepted
  • Beijing Ditan Hospital, Capital Medical University, Beijing, China

The final, formatted version of the article will be published soon.

    This study aimed to develop and validate a novel web-based calculator using machine learning algorithms to predict fragility fracture risk in People living with HIV (PLWH), who face increased morbidity and mortality from such fractures.We retrospectively analyzed clinical data from Beijing Ditan Hospital orthopedic department between 2015 and September 2023. The dataset included 1045 patients (2015-2021) for training and 450 patients (2021-September 2023) for external testing. Feature selection was performed using multivariable logistic regression, LASSO, Boruta, and RFE-RF. Six machine learning models (logistic regression, decision trees, SVM, KNN, random forest, and XGBoost) were trained with 10-fold cross-validation and hyperparameter tuning. Model performance was assessed with ROC curves, Decision Curve Analysis, and other metrics. The optimal model was integrated into an online risk assessment calculator. Results The XGBoost model showed the highest predictive performance, with key features including age, smoking, fall history, TDF use, HIV viral load, vitamin D, hemoglobin, albumin, CD4 count, and lumbar spine BMD. It achieved an ROC-AUC of 0.984 (95% CI: 0.977-0.99) in the training set and 0.979 (95% CI: 0.965-0.992) in the external test set. Decision Curve Analysis indicated clinical utility across various threshold probabilities, with calibration curves showing high concordance between predicted and observed risks. SHAP values explained individual risk profiles. The XGBoostpowered web calculator (https://sydtliubo.shinyapps.io/cls2shiny/) enables clinicians and patients to assess fragility fracture risk in PLWH.We developed a web-based risk assessment tool using the XGBoost algorithm for predicting fragility fractures in HIV-positive patients. This tool, with its high accuracy and interpretability, aids in fracture risk stratification and management, potentially reducing the burden of fragility fractures in the HIV population.

    Keywords: fragility fracture, PLWH, Web calculator, machine learning, XGBoost, Shap, Risk Assessment

    Received: 09 Jul 2024; Accepted: 25 Feb 2025.

    Copyright: © 2025 Liu and Zhang. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) or licensor are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

    * Correspondence: Qiang Zhang, Beijing Ditan Hospital, Capital Medical University, Beijing, China

    Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.

    Research integrity at Frontiers

    Man ultramarathon runner in the mountains he trains at sunset

    94% of researchers rate our articles as excellent or good

    Learn more about the work of our research integrity team to safeguard the quality of each article we publish.


    Find out more