Cargando…

Prediction Model of Osteonecrosis of the Femoral Head After Femoral Neck Fracture: Machine Learning–Based Development and Validation Study

BACKGROUND: The absolute number of femoral neck fractures (FNFs) is increasing; however, the prediction of traumatic femoral head necrosis remains difficult. Machine learning algorithms have the potential to be superior to traditional prediction methods for the prediction of traumatic femoral head n...

Descripción completa

Detalles Bibliográficos
Autores principales: Wang, Huan, Wu, Wei, Han, Chunxia, Zheng, Jiaqi, Cai, Xinyu, Chang, Shimin, Shi, Junlong, Xu, Nan, Ai, Zisheng
Formato: Online Artículo Texto
Lenguaje:English
Publicado: JMIR Publications 2021
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8663504/
https://www.ncbi.nlm.nih.gov/pubmed/34806984
http://dx.doi.org/10.2196/30079
_version_ 1784613652256522240
author Wang, Huan
Wu, Wei
Han, Chunxia
Zheng, Jiaqi
Cai, Xinyu
Chang, Shimin
Shi, Junlong
Xu, Nan
Ai, Zisheng
author_facet Wang, Huan
Wu, Wei
Han, Chunxia
Zheng, Jiaqi
Cai, Xinyu
Chang, Shimin
Shi, Junlong
Xu, Nan
Ai, Zisheng
author_sort Wang, Huan
collection PubMed
description BACKGROUND: The absolute number of femoral neck fractures (FNFs) is increasing; however, the prediction of traumatic femoral head necrosis remains difficult. Machine learning algorithms have the potential to be superior to traditional prediction methods for the prediction of traumatic femoral head necrosis. OBJECTIVE: The aim of this study is to use machine learning to construct a model for the analysis of risk factors and prediction of osteonecrosis of the femoral head (ONFH) in patients with FNF after internal fixation. METHODS: We retrospectively collected preoperative, intraoperative, and postoperative clinical data of patients with FNF in 4 hospitals in Shanghai and followed up the patients for more than 2.5 years. A total of 259 patients with 43 variables were included in the study. The data were randomly divided into a training set (181/259, 69.8%) and a validation set (78/259, 30.1%). External data (n=376) were obtained from a retrospective cohort study of patients with FNF in 3 other hospitals. Least absolute shrinkage and selection operator regression and the support vector machine algorithm were used for variable selection. Logistic regression, random forest, support vector machine, and eXtreme Gradient Boosting (XGBoost) were used to develop the model on the training set. The validation set was used to tune the model hyperparameters to determine the final prediction model, and the external data were used to compare and evaluate the model performance. We compared the accuracy, discrimination, and calibration of the models to identify the best machine learning algorithm for predicting ONFH. Shapley additive explanations and local interpretable model-agnostic explanations were used to determine the interpretability of the black box model. RESULTS: A total of 11 variables were selected for the models. The XGBoost model performed best on the validation set and external data. The accuracy, sensitivity, and area under the receiver operating characteristic curve of the model on the validation set were 0.987, 0.929, and 0.992, respectively. The accuracy, sensitivity, specificity, and area under the receiver operating characteristic curve of the model on the external data were 0.907, 0.807, 0.935, and 0.933, respectively, and the log-loss was 0.279. The calibration curve demonstrated good agreement between the predicted probability and actual risk. The interpretability of the features and individual predictions were realized using the Shapley additive explanations and local interpretable model-agnostic explanations algorithms. In addition, the XGBoost model was translated into a self-made web-based risk calculator to estimate an individual’s probability of ONFH. CONCLUSIONS: Machine learning performs well in predicting ONFH after internal fixation of FNF. The 6-variable XGBoost model predicted the risk of ONFH well and had good generalization ability on the external data, which can be used for the clinical prediction of ONFH after internal fixation of FNF.
format Online
Article
Text
id pubmed-8663504
institution National Center for Biotechnology Information
language English
publishDate 2021
publisher JMIR Publications
record_format MEDLINE/PubMed
spelling pubmed-86635042022-01-05 Prediction Model of Osteonecrosis of the Femoral Head After Femoral Neck Fracture: Machine Learning–Based Development and Validation Study Wang, Huan Wu, Wei Han, Chunxia Zheng, Jiaqi Cai, Xinyu Chang, Shimin Shi, Junlong Xu, Nan Ai, Zisheng JMIR Med Inform Original Paper BACKGROUND: The absolute number of femoral neck fractures (FNFs) is increasing; however, the prediction of traumatic femoral head necrosis remains difficult. Machine learning algorithms have the potential to be superior to traditional prediction methods for the prediction of traumatic femoral head necrosis. OBJECTIVE: The aim of this study is to use machine learning to construct a model for the analysis of risk factors and prediction of osteonecrosis of the femoral head (ONFH) in patients with FNF after internal fixation. METHODS: We retrospectively collected preoperative, intraoperative, and postoperative clinical data of patients with FNF in 4 hospitals in Shanghai and followed up the patients for more than 2.5 years. A total of 259 patients with 43 variables were included in the study. The data were randomly divided into a training set (181/259, 69.8%) and a validation set (78/259, 30.1%). External data (n=376) were obtained from a retrospective cohort study of patients with FNF in 3 other hospitals. Least absolute shrinkage and selection operator regression and the support vector machine algorithm were used for variable selection. Logistic regression, random forest, support vector machine, and eXtreme Gradient Boosting (XGBoost) were used to develop the model on the training set. The validation set was used to tune the model hyperparameters to determine the final prediction model, and the external data were used to compare and evaluate the model performance. We compared the accuracy, discrimination, and calibration of the models to identify the best machine learning algorithm for predicting ONFH. Shapley additive explanations and local interpretable model-agnostic explanations were used to determine the interpretability of the black box model. RESULTS: A total of 11 variables were selected for the models. The XGBoost model performed best on the validation set and external data. The accuracy, sensitivity, and area under the receiver operating characteristic curve of the model on the validation set were 0.987, 0.929, and 0.992, respectively. The accuracy, sensitivity, specificity, and area under the receiver operating characteristic curve of the model on the external data were 0.907, 0.807, 0.935, and 0.933, respectively, and the log-loss was 0.279. The calibration curve demonstrated good agreement between the predicted probability and actual risk. The interpretability of the features and individual predictions were realized using the Shapley additive explanations and local interpretable model-agnostic explanations algorithms. In addition, the XGBoost model was translated into a self-made web-based risk calculator to estimate an individual’s probability of ONFH. CONCLUSIONS: Machine learning performs well in predicting ONFH after internal fixation of FNF. The 6-variable XGBoost model predicted the risk of ONFH well and had good generalization ability on the external data, which can be used for the clinical prediction of ONFH after internal fixation of FNF. JMIR Publications 2021-11-19 /pmc/articles/PMC8663504/ /pubmed/34806984 http://dx.doi.org/10.2196/30079 Text en ©Huan Wang, Wei Wu, Chunxia Han, Jiaqi Zheng, Xinyu Cai, Shimin Chang, Junlong Shi, Nan Xu, Zisheng Ai. Originally published in JMIR Medical Informatics (https://medinform.jmir.org), 19.11.2021. https://creativecommons.org/licenses/by/4.0/This is an open-access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work, first published in JMIR Medical Informatics, is properly cited. The complete bibliographic information, a link to the original publication on https://medinform.jmir.org/, as well as this copyright and license information must be included.
spellingShingle Original Paper
Wang, Huan
Wu, Wei
Han, Chunxia
Zheng, Jiaqi
Cai, Xinyu
Chang, Shimin
Shi, Junlong
Xu, Nan
Ai, Zisheng
Prediction Model of Osteonecrosis of the Femoral Head After Femoral Neck Fracture: Machine Learning–Based Development and Validation Study
title Prediction Model of Osteonecrosis of the Femoral Head After Femoral Neck Fracture: Machine Learning–Based Development and Validation Study
title_full Prediction Model of Osteonecrosis of the Femoral Head After Femoral Neck Fracture: Machine Learning–Based Development and Validation Study
title_fullStr Prediction Model of Osteonecrosis of the Femoral Head After Femoral Neck Fracture: Machine Learning–Based Development and Validation Study
title_full_unstemmed Prediction Model of Osteonecrosis of the Femoral Head After Femoral Neck Fracture: Machine Learning–Based Development and Validation Study
title_short Prediction Model of Osteonecrosis of the Femoral Head After Femoral Neck Fracture: Machine Learning–Based Development and Validation Study
title_sort prediction model of osteonecrosis of the femoral head after femoral neck fracture: machine learning–based development and validation study
topic Original Paper
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8663504/
https://www.ncbi.nlm.nih.gov/pubmed/34806984
http://dx.doi.org/10.2196/30079
work_keys_str_mv AT wanghuan predictionmodelofosteonecrosisofthefemoralheadafterfemoralneckfracturemachinelearningbaseddevelopmentandvalidationstudy
AT wuwei predictionmodelofosteonecrosisofthefemoralheadafterfemoralneckfracturemachinelearningbaseddevelopmentandvalidationstudy
AT hanchunxia predictionmodelofosteonecrosisofthefemoralheadafterfemoralneckfracturemachinelearningbaseddevelopmentandvalidationstudy
AT zhengjiaqi predictionmodelofosteonecrosisofthefemoralheadafterfemoralneckfracturemachinelearningbaseddevelopmentandvalidationstudy
AT caixinyu predictionmodelofosteonecrosisofthefemoralheadafterfemoralneckfracturemachinelearningbaseddevelopmentandvalidationstudy
AT changshimin predictionmodelofosteonecrosisofthefemoralheadafterfemoralneckfracturemachinelearningbaseddevelopmentandvalidationstudy
AT shijunlong predictionmodelofosteonecrosisofthefemoralheadafterfemoralneckfracturemachinelearningbaseddevelopmentandvalidationstudy
AT xunan predictionmodelofosteonecrosisofthefemoralheadafterfemoralneckfracturemachinelearningbaseddevelopmentandvalidationstudy
AT aizisheng predictionmodelofosteonecrosisofthefemoralheadafterfemoralneckfracturemachinelearningbaseddevelopmentandvalidationstudy