Subscribe to RSS
DOI: 10.1055/a-2775-5314
Construction of a Predictive Model for Cerebrospinal Fluid Leakage After Endoscopic Transsphenoidal Pituitary Tumor Surgery Based on Machine Learning Algorithm
Authors
Funding Information This study was supported by the Medical Science and Technology Program of the Sichuan Provincial Health and Health Commission of the Sichuan Provincial Health (21PJ171).
Abstract
Objective
To develop ML models predicting postoperative CSF leakage after endoscopic transsphenoidal pituitary adenectomy (TSPA).
Methods
Four hundred and twenty patients from five hospitals (January 2021–December 2022) comprised the training cohort; 140 from another hospital were the validation cohort. The training cohort included 60 CSF leak and 360 nonleak cases. Risk factors were analyzed. Decision tree, logistic regression, and SMOTE-based models were built and their diagnostic value compared.
Results
Significant differences (p < 0.05) existed in tumor diameter, tumor texture, operative time, intraoperative diaphragma sellae rupture, reoperation, and intraoperative CSF leakage grade. Logistic regression identified tumor texture, reoperation, intraoperative CSF leakage grade, and diaphragma sellae rupture as risk factors. All models had high AUCs in training: logistic regression (0.792), decision tree (0.835), and SMOTE (0.839). The Delong test showed a decision tree, and SMOTE outperformed logistic regression. SMOTE had the highest sensitivity/specificity. Validation cohort AUCs were: logistic regression (0.775), decision tree (0.809), and SMOTE (0.831), with SMOTE superior. Calibration curves indicated good agreement between predicted and actual values.
Conclusion
Prediction models for CSF leakage postendoscopic TSPA were developed using decision trees, SMOTE, and logistic regression. Model efficacy was evaluated via AUC, specificity, and sensitivity. Comparing algorithms reduced single-algorithm bias, with SMOTE demonstrating the best performance.
Keywords
machine learning algorithm - endoscopic transsphenoidal pituitary tumor surgery - postoperative cerebrospinal fluid leak - predictive modelingData Availability Statement
All data generated or analyzed during this study are included in this published article.
Ethical Approval and Consent to Participate
The study was approved by the Medical Ethics Membership of Deyang People's Hospital (2021-04-059-K01).
Informed Consent
All participants were informed about the study protocol and provided written informed consent to participate in the study. I confirm that all methods were performed in accordance with the relevant guidelines. All procedures were performed in accordance with the ethical standards laid down in the 1964 Declaration of Helsinki and its later amendments.
Publication History
Received: 01 August 2025
Accepted: 16 December 2025
Accepted Manuscript online:
22 December 2025
Article published online:
06 January 2026
© 2026. Thieme. All rights reserved.
Georg Thieme Verlag KG
Oswald-Hesse-Straße 50, 70469 Stuttgart, Germany
-
References
- 1 Guido CB, Sosa LDV, Perez PA. et al. Changes of stem cell niche during experimental pituitary tumor development. J Neuroendocrinol 2021; 33 (12) e13051
- 2 Zhang C, Yang N, Mu L. et al. The application of nasoseptal “rescue” flap technique in endoscopic transsphenoidal pituitary adenoma resection. Neurosurg Rev 2020; 43 (01) 259-263
- 3 Vasudevan K, Saad H, Oyesiku NM. The role of three-dimensional endoscopy in pituitary adenoma surgery. Neurosurg Clin N Am 2019; 30 (04) 421-432
- 4 Stefanidis P, Kyriakopoulos G, Athanasouli F. et al. Postoperative complications after endoscope-assisted transsphenoidal surgery for pituitary adenomas: a case series, systematic review, and meta-analysis of the literature. Hormones (Athens) 2022; 21 (03) 487-499
- 5 Liu J, Li R, Zhao J. et al. Application of a novel versatile mini posterior nasoseptal graft in endoscopic transsphenoidal pituitary adenoma surgery. J Craniofac Surg 2023; 34 (08) 2488-2491
- 6 Riesgo P, Mariño P, Platero A. et al. Postoperative CSF leakages after transsphenoidal surgery for pituitary adenomas: analysis of a series of 302 surgical procedures. Neurocirugia (Astur Engl Ed) 2019; 30 (05) 215-221
- 7 Rech MM, de Macedo Filho L, White AJ. et al. Machine learning models to forecast outcomes of pituitary surgery: a systematic review in quality of reporting and current evidence. Brain Sci 2023; 13 (03) 495
- 8 Lu Dong ZS, Miao F. et al. Analysis of risk factors for cerebrospinal fluid leakage during neuroendoscopic transnasal pituitary tumour resection and exploration of skull base repair. J Xuzhou Med Univ 2022; 42 (05) 313-317
- 9 Tan Juntao XX, He Y. et al. Construction of a prediction model for cirrhosis-related hepatic encephalopathy based on machine learning algorithm. J PLA Med 46 (04) 354-360
- 10 Zheng Jiangyuan ZR, Yan Y. et al. Construction of pre-eclampsia prediction model based on machine learning algorithm. PLA Med J 2022; 47 (08) 802-808
- 11 Chu Hui-Min WJ-J, Pan Y-L. Risk prediction of kidney injury in children with allergic purpura based on machine learning algorithm. Chin J Prevent Med 2022; 23 (01) 62-67
- 12 Wang Lesheng YB. Risk factors for CSF rhinorrhoea after transnasal butterfly approach neuroendoscopic resection of pituitary adenoma. Chin J Clin Neurosurg 2022; 27 (07) 541-543
- 13 Zhang Guangmin QC, Li Q. et al. Analysis of factors affecting cerebrospinal fluid leakage complicating endoscopic pituitary tumour resection by transnasal pterygoid sinus approach. J Clin Surg 2023; 31 (06) 546-549
- 14 Yao Chunxu FT, Niu X. et al. Analysis of intracranial infection complicating pituitary tumour resection after endoscopic transnasal pterygoid sinus approach. J Pract Cancer 2022; 37 (06) 1016-1018 ,1031
- 15 Liu Qi LY, Li J. et al. Analysis of risk factors for cerebrospinal fluid leakage after endoscopic transsphenoidal pituitary tumour resection. J Clin Neurosurg 2020; 17 (05) 516-521
- 16 Sun Yue XN, Dai Wei R. Exploration of immune-related genes in thyroid-related eye disease based on machine learning algorithm. Guangxi Med 2023; 45 (10) 1200-1207
- 17 Wang Yino LJ, Lu H. et al. A study on establishing an efficacy prediction model for postpartum rectus abdominis separation based on machine learning algorithm. Chin J Rehab Med 2023; 38 (05) 689-692
- 18 Alsariera YA, Baashar Y, Alkawsi G, Mustafa A, Alkahtani AA, Ali N. Assessment and evaluation of different machine learning algorithms for predicting student performance. Comput Intell Neurosci 2022; 2022: 4151487
- 19 Brnabic A, Hess LM. Systematic literature review of machine learning methods used in the analysis of real-world data for patient-provider decision making. BMC Med Inform Decis Mak 2021; 21 (01) 54
- 20 Lei Yu ZJC. Construction of an early warning model for restenosis risk after cerebrovascular intervention based on the SMOTE algorithm. J Stroke Neurolog Diseases 2022; 39 (08) 741-745
- 21 Sun Cong DG, Hui G. et al. Construction and validation of a prognostic model based on decision tree algorithm for chronic heart failure patients in Chinese and Western medicine. Chin J Bas Chin Med 2023; 29 (01) 120-126
- 22 Yao Qingdong YH, Meng Y. et al. Role of TCTI ratio in predicting tumour texture in transnasal butterfly approach neuroendoscopic surgery for midline meningiomas of the skull base. Chin J Clin Neurosurg 2022; 27 (04) 260-262
- 23 Qu Yan HL. Review of “Analysis of risk factors for cerebrospinal fluid leakage after endoscopic transsphenoidal pituitary tumour resection.”. J Clin Neurosurg 2020; 17 (05) 521
- 24 Ozawa H, Sekimizu M, Saito S. et al. Risk factor for cerebrospinal fluid leak after endoscopic endonasal skull base surgery: a single-center experience. Acta Otolaryngol 2021; 141 (06) 621-625
- 25 Yamada H, Toda M, Fukumura M. et al. Cerebrospinal fluid leakage due to nasoseptal flap partial necrosis: a pitfall for skull base reconstruction of endoscopic endonasal surgery. Surg Neurol Int 2020; 11: 121
- 26 Zhang Yihua TY, Wang Hao. et al. Application of free middle turbinate mucosal flap in saddle-base reconstruction after transnasal butterfly approach neuroendoscopic surgery for removal of pituitary adenoma. Chin J Clin Neurosurg 2019; 24 (07) 390-392
- 27 Xue H, Wang X, Yang Z, Bi Z, Liu P. Risk factors and outcomes of cerebrospinal fluid leak related to endoscopic pituitary adenoma surgery. Br J Neurosurg 2020; 34 (04) 447-452
