Factors associated with thyroid nodules and an interpretable machine-learning classification model: development and temporal validation in health checkup cohorts
Guanpeng Li, Lu Zhu, Dongting Wu, Yuan Liu, Jinling Peng, Xiaoshi Lin, Yousheng Jiang, Haopeng Li,
Key points
From the paper's conclusion- We therefore aimed to develop and temporally validate an interpretable machine-learning model to identify individuals with prevalent thyroid nodules, characterize factors associated with nodule occurrence and quantify their contributions to model predictions.
Abstract
Background The prevalence of thyroid nodules has increased over recent decades, yet their clinical, metabolic, endocrine, and lifestyle correlates remain incompletely characterized. Integrating routinely collected health information may provide a basis for evaluating pre-ultrasound risk stratification in health-examination settings. We therefore aimed to develop and temporally validate an interpretable machine-learning model to identify individuals with prevalent thyroid nodules, characterize factors associated with nodule occurrence and quantify their contributions to model predictions. Methods This cross-sectional study included 1,452 adults recruited from a health examination program in Shenzhen between 2021 and 2023. A total of 92 recorded measures were analyzed, of which 91 were non-outcome model-input variables. Participants were randomly assigned to a training set (80%) and an internal validation set (20%). A temporally independent validation cohort (n = 259, collected in 2024–2025) was used to assess performance over time. Eight machine learning algorithms—Light Gradient Boosting Machine (LightGBM), Extreme Gradient Boosting (XGBoost), Support Vector Machine (SVM), Naïve Bayes (NB), Deep Neural Network (DNN), Multilayer Perceptron (MLP), Random Forest (RF), and Lasso Logistic Regression (LLR)—were trained and optimized using five-fold cross-validation. Model interpretability was evaluated with Shapley Additive exPlanations (SHAP) to quantify the contribution of each feature to TN classification. Reduced-feature LightGBM models were also evaluated. Results Among the evaluated models, LightGBM achieved an AUROC of 0.94 (95% CI: 0.90–0.97) in internal validation and 0.93 (95% CI: 0.88–0.97) in temporal validation. Moreover, the 20- and 10-feature LightGBM models achieved temporal AUROCs of 0.92 (95% CI: 0.87–0.96) and 0.91 (95% CI: 0.86–0.95), respectively. SHAP analysis identified sleep duration and HbA1c as influential contributors to model output. Higher TSH levels (aOR = 0.76, 95% CI: 0.67–0.87) and iodized-salt consumption (aOR = 0.71, 95% CI: 0.53–0.95) were associated with lower odds of TNs. Conclusions An interpretable, non-imaging LightGBM model based on routinely collected metabolic, endocrine, and lifestyle indicators classified ultrasound-confirmed thyroid nodules with stable discrimination across internal and temporal validation, including when restricted to a reduced feature set. SHAP analysis highlighted HbA1c and sleep duration as important contributors to model predictions. These findings suggest the potential value of non-imaging risk stratification in health-examination settings, warranting prospective evaluation of its applicability to pre-ultrasound assessment.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Interpretable Machine Learning for Predicting Radiation-Induced Hypothyroidism in Head and Neck Cancer: A Dual-Center Retrospective Study.Cancers · 2026
- Incorporating natural language processing-derived features from pathology reports into machine learning models to predict differentiated thyroid cancer recurrence.Frontiers in endocrinology · 2026
- Machine-Learning Prediction of Pediatric Thyroid Nodule Malignancy Using Structured Nodule and Cervical Lymph-Node Ultrasonographic Features.Diagnostics (Basel, Switzerland) · 2026
- Logistic regression withstands comparison with machine learning for thyroid nodule malignancy risk stratification under strict temporal validation.PLOS digital health · 2026
- Analysis of factors associated with thyroid nodules in type 2 diabetes mellitus patients and construction of a prediction modelFrontiers in Medicine · 2026
- Development and validation of an explainable web-based machine learning model for predicting early postoperative hypocalcemia in patients with differentiated thyroid cancer.Gland surgery · 2026