ObjectiveThis study aimed to use machine learning (ML) to establish risk factor and prediction models of osteonecrosis of the femoral head (ONFH) in patients with femoral neck fractures (FNFs) after internal fixation. MethodsWe retrospectively collected clinical data of patients with FNFs who were followed up for at least 2 years. Only intracapsular FNFs were included. In total, 437 patients and 24 variables were enrolled. The entire dataset was divided into training (89.5 %) and test (10.5 %) datasets. Six models—logistic regression, naive Bayes, decision tree, random forest, multilayer perceptron, and AdaBoost—were established and validated for predicting postoperative ONFH. We compared the area under the receiver operating characteristic curve (AUC), accuracy, recall, and F1 score of different models. In addition, a confusion matrix, density curve, and learning curve were used to evaluate the model performance. ResultsThe logistic regression model performed best at predicting ONFH in patients with FNFs undergoing internal fixation surgery, with an AUC, accuracy, recall, F1 score, and prediction value of 0.84, 0.89, 1.00, 0.94, and 89.1 %, respectively. The learning and density curves demonstrated a good prediction fitting degree and distinct separation. When establishing the ML models, the reduction quality, internal fixation removal, American Society of Anesthesiologists classification, injury mechanism, and displacement distance of the medial cortex were the top five risk factors positively correlated with the occurrence of ONFH. ConclusionsThe logistic regression model had excellent performance in predicting ONFH in patients with FNFs after internal fixation and could provide valuable guidance in clinical decision-making. When choosing treatment options for patients with FNFs, doctors should identify the risk factors and consider using the presented models to help anticipate outcomes and select individualised treatment.
Read full abstract