Machine learning algorithms for predicting delayed hyponatremia after transsphenoidal surgery for patients with pituitary adenoma.

in Scientific reports by Kunzhe Lin, Jianping Zhang, Lin Zhao, Liangfeng Wei, Shousen Wang

TLDR

  • Researchers developed a machine learning model to predict delayed hyponatremia after pituitary surgery, using a combination of patient characteristics to identify patients at high risk.

Abstract

This study aimed to develop and validate machine learning (ML) models to predict the occurrence of delayed hyponatremia after transsphenoidal surgery for pituitary adenoma. We retrospectively collected clinical data on patients with pituitary adenomas treated with transsphenoidal surgery between January 2010 and December 2020. From January 2021 to December 2022, patients with pituitary adenomas were prospectively enrolled. We trained seven ML models to predict delayed hyponatremia using the clinical variables in the training set. The final model was internally validated using a test set and a prospective dataset. The SHapley Additive exPlanations (SHAP) algorithm was used to determine the significance of each variable in the occurrence of delayed hyponatremia. In the training dataset, the best predictive performance was observed for XGBoost (area under the ROC curve; AUC = 0.821), followed by Random Forest (AUC = 0.8), Logistic Regression (AUC = 0.793), Support Vector Machine (AUC = 0.776), naïve Bayes (AUC = 0.774), K-Nearest Neighbors (AUC = 0.742), and Decision Tree (AUC = 0.717). The AUC of the XGBoost model for the test and prospective datasets are 0.831 and 0.785, respectively. The differences in pituitary stalk deviation angle, the "measurable pituitary stalk" length before and after surgery, and blood sodium concentration between preoperative and postoperative day 2 were important variables for predicting delayed hyponatremia as determined by the SHAP algorithm. The XGBoost model was best able to predict delayed hyponatremia after transsphenoidal surgery for pituitary adenomas. The differences in pituitary stalk deviation angle, pre- versus postoperative "measurable pituitary stalk" length, and pre- versus postoperative day 2 blood sodium concentrations were important variables for predicting delayed hyponatremia.

Overview

  • The study aimed to develop and validate machine learning models to predict delayed hyponatremia after transsphenoidal surgery for pituitary adenoma.
  • Clinical data was collected on patients with pituitary adenomas treated with transsphenoidal surgery between 2010 and 2022.
  • Seven machine learning models were trained to predict delayed hyponatremia using clinical variables in the training set.

Comparative Analysis & Findings

  • The XGBoost model had the best predictive performance with an area under the ROC curve (AUC) of 0.821, followed by Random Forest (AUC = 0.8), Logistic Regression (AUC = 0.793), and other models.
  • The AUC of the XGBoost model was stable in the test and prospective datasets (0.831 and 0.785, respectively).
  • The SHAP algorithm identified pituitary stalk deviation angle, measurable pituitary stalk length, and blood sodium concentrations as important variables for predicting delayed hyponatremia.

Implications and Future Directions

  • The study's findings can aid in early detection and prevention of delayed hyponatremia, which can lead to improved patient outcomes.
  • Future studies can investigate the application of these models to other surgical procedures and patient populations.
  • The development of personalized prediction models for individual patients could further enhance the accuracy of predicting delayed hyponatremia.