{"title":"Comparative analysis of machine learning algorithms for predicting tibial intramedullary nail length from patient characteristics.","authors":"Yujian Hui, Hengda Hu, Jinghua Xiang, Xingye Du","doi":"10.1186/s10195-025-00869-4","DOIUrl":null,"url":null,"abstract":"<p><strong>Objective: </strong>This study aimed to evaluate the performance of five machine learning algorithms in predicting tibial intramedullary nail length using patient demographic data (gender, height, age, and weight), with the goal of developing a clinically relevant and accurate predictive model.</p><p><strong>Methods: </strong>Retrospective data from 155 patients who underwent tibial intramedullary nailing at the Affiliated Jiangyin Hospital of Nantong University were analyzed. After data cleaning, outlier handling, and gender encoding, the dataset was divided into an 80% training set and 20% testing set. Models were trained and evaluated using root mean squared error (RMSE), mean absolute error (MAE), coefficient of determination (R<sup>2</sup>), and correlation analysis. Key variables included height (cm), weight (kg), age (years), and gender.</p><p><strong>Results: </strong>The XGBoost model demonstrated superior clinical precision, achieving the lowest testing RMSE (9.15 mm) and MAE (7.56 mm), with an R<sup>2</sup> of 0.871, explaining 87.1% of variance in nail length. While the random forest model had the highest R<sup>2</sup> (0.874) and correlation coefficient (r = 0.935), XGBoost outperformed all models in error metrics, critical for minimizing surgical complications. Variable importance analysis identified height as the most influential factor, followed by weight and age. All models achieved acceptable accuracy (≥ 86.21%) within a ± 15 mm error margin, compatible with intraoperative adjustments.</p><p><strong>Conclusions: </strong>Machine learning, particularly XGBoost, significantly improves preoperative prediction of tibial intramedullary nail length compared with traditional methods.</p><p><strong>Level of evidence iv: </strong></p>","PeriodicalId":48603,"journal":{"name":"Journal of Orthopaedics and Traumatology","volume":"26 1","pages":"56"},"PeriodicalIF":3.7000,"publicationDate":"2025-08-18","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC12360990/pdf/","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of Orthopaedics and Traumatology","FirstCategoryId":"3","ListUrlMain":"https://doi.org/10.1186/s10195-025-00869-4","RegionNum":2,"RegionCategory":"医学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"ORTHOPEDICS","Score":null,"Total":0}
引用次数: 0
Abstract
Objective: This study aimed to evaluate the performance of five machine learning algorithms in predicting tibial intramedullary nail length using patient demographic data (gender, height, age, and weight), with the goal of developing a clinically relevant and accurate predictive model.
Methods: Retrospective data from 155 patients who underwent tibial intramedullary nailing at the Affiliated Jiangyin Hospital of Nantong University were analyzed. After data cleaning, outlier handling, and gender encoding, the dataset was divided into an 80% training set and 20% testing set. Models were trained and evaluated using root mean squared error (RMSE), mean absolute error (MAE), coefficient of determination (R2), and correlation analysis. Key variables included height (cm), weight (kg), age (years), and gender.
Results: The XGBoost model demonstrated superior clinical precision, achieving the lowest testing RMSE (9.15 mm) and MAE (7.56 mm), with an R2 of 0.871, explaining 87.1% of variance in nail length. While the random forest model had the highest R2 (0.874) and correlation coefficient (r = 0.935), XGBoost outperformed all models in error metrics, critical for minimizing surgical complications. Variable importance analysis identified height as the most influential factor, followed by weight and age. All models achieved acceptable accuracy (≥ 86.21%) within a ± 15 mm error margin, compatible with intraoperative adjustments.
Conclusions: Machine learning, particularly XGBoost, significantly improves preoperative prediction of tibial intramedullary nail length compared with traditional methods.
期刊介绍:
The Journal of Orthopaedics and Traumatology, the official open access peer-reviewed journal of the Italian Society of Orthopaedics and Traumatology, publishes original papers reporting basic or clinical research in the field of orthopaedic and traumatologic surgery, as well as systematic reviews, brief communications, case reports and letters to the Editor. Narrative instructional reviews and commentaries to original articles may be commissioned by Editors from eminent colleagues. The Journal of Orthopaedics and Traumatology aims to be an international forum for the communication and exchange of ideas concerning the various aspects of orthopaedics and musculoskeletal trauma.