One-day-ahead prediction of severe hyponatremia in patients with cancer using medication and diagnostic trajectories without electrolyte indicators

Intro Hyponatremia is a common complication in patients with cancer and is associated with poor prognosis; however, early detection remains challenging. Existing models often rely on laboratory parameters directly related to sodium levels, limiting early risk identification before electrolyte testing. This study developed a machine learning model to predict severe hyponatremia 1 day before its occurrence using longitudinal prescription and diagnostic data without relying on serum electrolyte variables. Methods T…

One-day-ahead prediction of severe hyponatremia in patients with cancer using medication and diagnostic trajectories without electrolyte indicators
"McArdle Laboratory for Cancer Research" by wackybadger is licensed under CC BY-SA 2.0. To view a copy of this license, visit https://creativecommons.org/licenses/by-sa/2.0/.

In brief

Researchers built machine learning models on records from 33,160 adult cancer patients treated between 2010 and 2021 at a single center, converted to the OMOP common data model. About 8.8 percent of patients developed severe hyponatremia, defined as serum sodium of 125 mmol/L or lower. Models were fed 30 days of time-series data and tested across three feature sets.

The finding matters because it suggests high-risk patients could be spotted before any electrolyte test, for example during treatment planning or when routine monitoring is not done, allowing more targeted testing and earlier clinician action. The authors say this still awaits external validation, and the model was developed at one center.

Main points

  1. The study covered 33,160 adult patients, of whom 2,916 (8.8 percent) developed severe hyponatremia.
  2. XGBoost consistently outperformed the Transformer model across the feature sets.
  3. The medication-focused set reached an AUC of 0.853 and F1-score of 0.411, versus 0.862 and 0.426 with expanded laboratory variables.
  4. SHAP and attention analyses highlighted cisplatin, lung cancer, male sex, dexamethasone, and trimethoprim/sulfamethoxazole as key predictors.

The gain

A gradient-boosting model using only 30-day prescription and diagnosis trajectories predicted severe hyponatremia one day ahead with an AUC of 0.853, close to a lab-inclusive model's 0.862.

The rundown

Existing prediction models usually depend on laboratory values tied to sodium levels, which limits risk identification before electrolyte testing takes place. This study aimed to predict severe hyponatremia a day ahead using only prescription and diagnostic history, without serum electrolyte variables.

Three feature configurations were compared: a baseline set, an information-rich set with expanded laboratory variables, and a medication-focused set. The XGBoost and Transformer architectures were each evaluated, with XGBoost performing better throughout.

Interpretability analyses pointed to specific drugs and patient characteristics driving predictions. The authors conclude the approach could support more targeted electrolyte testing and earlier intervention, pending external validation.

Sources

  1. Peer-reviewedInternational Journal of Medical Informatics2026-10-07

The debate