Factors associated with thyroid nodules and an interpretable machine-learning classification model: development and temporal validation in health checkup cohorts

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.

Authors

Institutions

Publication Details

Journal
Frontiers in Endocrinology
Published
2026-11-27
DOI
https://doi.org/10.3389/fendo.2026.1964022
Primary Topic
Thyroid Cancer Diagnosis and Treatment
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Factors associated with thyroid nodules and an interpretable machine-learning classification model: development and temporal validation in health checkup cohorts

Shenying Fang, Guanpeng Li, Yousheng Jiang, Xiaoshi Lin et al.
Frontiers in Endocrinology
Thyroid Cancer Diagnosis and Treatment
article

Factors associated with thyroid nodules and an interpretable machine-learning classification model: development and temporal validation in health checkup cohorts

Shenying Fang, Guanpeng Li, Yousheng Jiang, Xiaoshi Lin, Hao Li, Jiayi Song, Jinling Peng, Jianqing ZHANG, Lu Zhu, Yuan Liu, Dongting Wu
article en

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.

Frontiers in EndocrinologyVol. 17
Southern University of Science and Technology (CN), Shenzhen Center for Disease Control and Prevention (CN), Southern Medical University Shenzhen Hospital (CN), Southern Medical University (CN)
Thyroid Cancer Diagnosis and Treatment
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon