ORIGINAL RESEARCH article
Front. Endocrinol.
Sec. Thyroid Endocrinology
Volume 16 - 2025 | doi: 10.3389/fendo.2025.1639639
XGBoost-Based Machine Learning Model Combining Clinical and Ultrasound Data for Personalized Prediction of Thyroid Nodule Malignancy
Provisionally accepted- 1Shaanxi Provincial People's Hospital, Xi'An, China
- 2The Second People's Hospital of Jiaozuo, Jiaozuo, China
- 3Hospital of Ningshan County, Ankang, China
- 4Shaanxi Provincial People's Hospital, Xi'an, China
Select one of your emails
You have multiple emails registered with Frontiers:
Notify me on publication
Please enter your email address:
If you already have an account, please login
You don't have a Frontiers account ? You can register here
Thyroid ultrasound is a primary tool for screening thyroid nodules (TNs), but existing risk stratification systems have limitations. Nowadays, machine learning (ML) offers advanced capabilities to handle high-dimensional data and complex patterns. This study aimed to develop an ML model integrating clinical data and ultrasound features to improve personalized prediction of TN malignancy.Data from 2,014 patients with TNs (2018.01-2024.01) were retrospectively analyzed, with 1,612 in the training set and 402 in the test set. Features included demographic, ultrasound, and thyroid function indices. Random Forest (RF) and Lasso regression were used for feature selection. Furthermore, six ML models (KNN, Logistic Regression, RF, Classification Tree, SVM, and XGBoost) were developed and validated via 10-fold cross-validation, evaluating performance using area under the receiver operating characteristic curve (AUC), accuracy, sensitivity, specificity, calibration curves, and decision curve analysis (DCA). Results 17 variables were influential factors for diagnosing TNs. All six models exhibited satisfactory predictive performance, with their accuracy ranging from 0.761 to 0.851 and AUC from 0.755 to 0.928. Among them, the XGBoost model demonstrated the best performance, achieving an AUC of 0.928, accuracy of 0.851, sensitivity of 0.933, and specificity of 0.650. Calibration curves showed strong agreement between predicted and observed malignancy probabilities, and DCA indicated net clinical benefit across a wide risk threshold range (0.2-0.9). Additionally, we have developed the model as a web-based calculator to facilitate its practical application.The XGBoost model effectively integrates multi-modal data to predict TN malignancy, offering improved accuracy and clinical utility.
Keywords: thyroid nodules, machine learning, XGBoost, diagnosis, web-based calculator
Received: 04 Jun 2025; Accepted: 11 Jul 2025.
Copyright: © 2025 Li, Zhou, Luo, Tan, Yin and Li. 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: Jinahui Li, Shaanxi Provincial People's Hospital, Xi'an, 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.