Development and validation of an explainable web-based machine learning model for predicting early postoperative hypocalcemia in patients with differentiated thyroid cancer.

IF 1.9 3区 医学 Q3 SURGERY
Gland surgery Pub Date : 2026-07-31 Epub Date: 2026-07-23 DOI:10.21037/gs-2026-0211
Jiaqi Ye, Yuanyuan Wang
{"title":"Development and validation of an explainable web-based machine learning model for predicting early postoperative hypocalcemia in patients with differentiated thyroid cancer.","authors":"Jiaqi Ye, Yuanyuan Wang","doi":"10.21037/gs-2026-0211","DOIUrl":null,"url":null,"abstract":"<p><strong>Background: </strong>Early postoperative hypocalcemia is one of the most common complications after surgery for differentiated thyroid cancer (DTC) and may lead to prolonged hospitalization and impaired postoperative recovery. Most existing prediction tools are based on conventional regression methods and may be insufficient to capture complex interactions among clinical variables. This study aimed to develop and validate an interpretable machine learning model and a web-based calculator for early prediction of postoperative hypocalcemia in patients with DTC.</p><p><strong>Methods: </strong>This retrospective cohort study included 1,222 patients with DTC who underwent surgery at a tertiary hospital between February 2021 and October 2025. Candidate predictors were screened using a combined feature selection strategy incorporating least absolute shrinkage and selection operator (LASSO) regression and the Boruta algorithm. Eight machine learning algorithms were developed and compared. Model performance was evaluated using the area under the receiver operating characteristic curve (AUC) and calibration metrics. Model interpretability was assessed using SHapley Additive exPlanations (SHAP), and the optimal model was deployed as a web-based calculator.</p><p><strong>Results: </strong>Seven consensus variables were selected for final model construction. Among the eight algorithms, the light gradient boosting machine (LGBM) achieved the best overall performance in the testing cohort, with an AUC of 0.875 [95% confidence interval (CI): 0.838-0.912] and a Brier score of 0.132, indicating good discrimination and calibration. SHAP analysis showed that bilateral central lymph node dissection (CLND), severe preoperative vitamin D deficiency, and thyroid capsular invasion were the most influential predictors of postoperative hypocalcemia. The final model was implemented as a freely accessible web-based clinical tool.</p><p><strong>Conclusions: </strong>We developed an explainable web-based LGBM model that showed good predictive performance for early postoperative hypocalcemia in patients with DTC. By combining accurate risk estimation with transparent interpretation, this tool may help clinicians identify high-risk patients and support individualized perioperative management.</p>","PeriodicalId":12760,"journal":{"name":"Gland surgery","volume":"15 7","pages":"193"},"PeriodicalIF":1.9000,"publicationDate":"2026-07-31","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC13462814/pdf/","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Gland surgery","FirstCategoryId":"3","ListUrlMain":"https://doi.org/10.21037/gs-2026-0211","RegionNum":3,"RegionCategory":"医学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2026/7/23 0:00:00","PubModel":"Epub","JCR":"Q3","JCRName":"SURGERY","Score":null,"Total":0}
引用次数: 0

Abstract

Background: Early postoperative hypocalcemia is one of the most common complications after surgery for differentiated thyroid cancer (DTC) and may lead to prolonged hospitalization and impaired postoperative recovery. Most existing prediction tools are based on conventional regression methods and may be insufficient to capture complex interactions among clinical variables. This study aimed to develop and validate an interpretable machine learning model and a web-based calculator for early prediction of postoperative hypocalcemia in patients with DTC.

Methods: This retrospective cohort study included 1,222 patients with DTC who underwent surgery at a tertiary hospital between February 2021 and October 2025. Candidate predictors were screened using a combined feature selection strategy incorporating least absolute shrinkage and selection operator (LASSO) regression and the Boruta algorithm. Eight machine learning algorithms were developed and compared. Model performance was evaluated using the area under the receiver operating characteristic curve (AUC) and calibration metrics. Model interpretability was assessed using SHapley Additive exPlanations (SHAP), and the optimal model was deployed as a web-based calculator.

Results: Seven consensus variables were selected for final model construction. Among the eight algorithms, the light gradient boosting machine (LGBM) achieved the best overall performance in the testing cohort, with an AUC of 0.875 [95% confidence interval (CI): 0.838-0.912] and a Brier score of 0.132, indicating good discrimination and calibration. SHAP analysis showed that bilateral central lymph node dissection (CLND), severe preoperative vitamin D deficiency, and thyroid capsular invasion were the most influential predictors of postoperative hypocalcemia. The final model was implemented as a freely accessible web-based clinical tool.

Conclusions: We developed an explainable web-based LGBM model that showed good predictive performance for early postoperative hypocalcemia in patients with DTC. By combining accurate risk estimation with transparent interpretation, this tool may help clinicians identify high-risk patients and support individualized perioperative management.

一种可解释的基于网络的机器学习模型的开发和验证,用于预测分化甲状腺癌患者术后早期低钙血症。
背景:术后早期低钙血症是分化型甲状腺癌(DTC)术后最常见的并发症之一,可能导致住院时间延长和术后恢复受损。大多数现有的预测工具是基于传统的回归方法,可能不足以捕捉临床变量之间复杂的相互作用。本研究旨在开发和验证可解释的机器学习模型和基于网络的计算器,用于早期预测DTC患者术后低钙血症。方法:这项回顾性队列研究纳入了1222名于2021年2月至2025年10月在一家三级医院接受手术的DTC患者。候选预测因子使用结合最小绝对收缩和选择算子(LASSO)回归和Boruta算法的组合特征选择策略进行筛选。开发并比较了八种机器学习算法。使用接收器工作特性曲线下面积(AUC)和校准指标评估模型性能。使用SHapley加性解释(SHAP)评估模型的可解释性,并将最优模型部署为基于网络的计算器。结果:选择了7个共识变量进行最终的模型构建。在8种算法中,光梯度增强机(LGBM)在测试队列中整体表现最好,AUC为0.875[95%置信区间(CI): 0.838-0.912], Brier评分为0.132,表明识别和校准效果良好。SHAP分析显示,双侧中央淋巴结清扫(CLND)、术前严重维生素D缺乏和甲状腺包膜侵犯是术后低钙最重要的预测因素。最终的模型作为一个免费访问的基于网络的临床工具实现。结论:我们建立了一个可解释的基于网络的LGBM模型,该模型对DTC患者术后早期低钙血症具有良好的预测效果。通过将准确的风险估计与透明的解释相结合,该工具可以帮助临床医生识别高危患者并支持个性化的围手术期管理。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
Gland surgery
Gland surgery Medicine-Surgery
CiteScore
3.60
自引率
0.00%
发文量
113
期刊介绍: Gland Surgery (Gland Surg; GS, Print ISSN 2227-684X; Online ISSN 2227-8575) being indexed by PubMed/PubMed Central, is an open access, peer-review journal launched at May of 2012, published bio-monthly since February 2015.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书