Development of a Novel Interpretable Transformer-Based Deep Learning Model for Predicting Postoperative Hypokalemia in Pituitary Adenomas

Zhuoyuan Li , Jie Wang , Yunfeng Wang , Zheng Peng , Xiaojian Li , Chunlei Chen , Huiying Yan , Wei Jin , Yue Lu , Zong Zhuang , Wei Li , Chunhua Hang

Journal of Evidence-Based Medicine ›› 2025, Vol. 18 ›› Issue (4) : e70089

PDF
Journal of Evidence-Based Medicine ›› 2025, Vol. 18 ›› Issue (4) :e70089 DOI: 10.1111/jebm.70089
ARTICLE
Development of a Novel Interpretable Transformer-Based Deep Learning Model for Predicting Postoperative Hypokalemia in Pituitary Adenomas
Author information +
History +
PDF

Abstract

Aim: Hypokalemia is a prevalent complication following pituitary adenoma (PA) surgery, adversely impacting patient prognosis. Identifying predictors of early postoperative hypokalemia is crucial for managing patients effectively. This study aims to develop an interpretable predictive model to predict postoperative hypokalemia in patients with PA and recognizes individualized significant parameters contributing to the predictive outcomes, thereby facilitating early intervention.

Methods: This retrospective cohort study investigated postoperative hypokalemia in 280 patients with PA. We developed a Transformer-based predictive model, CliTab-Transformer, and compared it with an XGBoost-based model and a multilayer perceptron (MLP)-based deep learning model. Model performance was evaluated using metrics such as accuracy, precision, recall, F1 score, and ROC/PR curves, based on five-fold cross-validation. Model interpretability was assessed using a novel Transformer-Explainability method to identify significant parameters contributing to individual predictions.

Results: CliTab-Transformer outperformed XGBoost and MLP in predicting postoperative hypokalemia, showing higher accuracy (0.836 vs. 0.775 vs. 0.771), F1 score (0.845 vs. 0.792 vs. 0.766), sensitivity (0.838 vs. 0.833 vs. 0.771), and AUC (0.835 vs. 0.807 vs. 0.676). The model's interpretability analysis revealed that the preoperative factors, including gender, hypertension, serum potassium concentration, and disease duration, are significantly predictive of postoperative hypokalemia.

Conclusions: Our model outperforms XGBoost in predicting early postoperative hypokalemia in patients with pituitary adenomas. We systematically explore attention mechanisms in clinical tabular data, demonstrating their effectiveness in capturing complex feature interactions, leading to more individualized, interpretable, and clinically meaningful insights.

Keywords

deep learning / hypokalemia / pituitary adenomas / transformer / XGBoost

Cite this article

Download citation ▾
Zhuoyuan Li, Jie Wang, Yunfeng Wang, Zheng Peng, Xiaojian Li, Chunlei Chen, Huiying Yan, Wei Jin, Yue Lu, Zong Zhuang, Wei Li, Chunhua Hang. Development of a Novel Interpretable Transformer-Based Deep Learning Model for Predicting Postoperative Hypokalemia in Pituitary Adenomas. Journal of Evidence-Based Medicine, 2025, 18(4): e70089 DOI:10.1111/jebm.70089

登录浏览全文

4963

注册一个新账户 忘记密码

References

RIGHTS & PERMISSIONS

2025 Chinese Cochrane Center, West China Hospital of Sichuan University and John Wiley & Sons Australia, Ltd.

PDF

6

Accesses

0

Citation

Detail

Sections
Recommended

/