arXiv:2611.03357cs.LGNov 2026

Manuscript Offprint

arXiv:2611.03357

Multidimensional Suicide Risk Assessment with Machine Learning using Electronic Health Records

Nathan Scollar, Kemal Davaslioglu, Nathan Conger, Sastry Kompella, Yalin E. Sagduyu, Nathaniel D. Bastian

Nathan Scollar1^{1}, Kemal Davaslioglu1^{1}, Nathan Conger1^{1}, Sastry Kompella1^{1}, Yalin E. Sagduyu1^{1}, and Nathaniel D. Bastian2^{2}

1^{1}Nexcepta, Gaithersburg, MD, USA

2^{2}United States Military Academy, West Point, NY, USA

Abstract—Suicide prevention remains a critical public health challenge, and electronic health records (EHRs) provide an opportunity to characterize suicide-related risk indicators using documented clinical, behavioral, medical, and social-contextual information. This paper presents a multidimensional machine learning framework to model and estimate suicide-related outcomes using MIMIC-IV EHR data. We construct clinically motivated diagnosis categories and define a composite outcome from documented codes corresponding to suicidal ideation, suicide attempt, prior suicidal behavior, and intentional self-harm. To address severe class imbalance and reduce age-related confounding, we apply age-matched resampling that retains all positive patients and samples comparison-cohort patients from the same age group. Logistic regression, random forest, and XG-Boost classifiers are evaluated before and after resampling with isotonic calibration. The calibrated XGBoost model achieves the strongest matched-cohort performance, outperforming the other evaluated classifiers. SHAP-based interpretation shows that diagnostic burden, depression-related features, age, personality-disorder history, social determinants related to violence, and medical comorbidity contribute to elevated predicted probabilities. Our results demonstrate that combining broad EHR-derived features, age-matched cohort construction, calibration, and feature-level interpretation provides a practical framework for retrospective suicide-related risk modeling.

Index Terms—Electronic health records, suicide-related risk modeling, age-matched resampling, class imbalance, explainable machine learning

I. INTRODUCTION

Electronic health records (EHRs) provide a valuable foundation for health-risk modeling by capturing clinical, behavioral, and contextual information across patient encounters. Advances in machine learning make it possible to analyze these complex and heterogeneous data to support predictive healthcare analytics and earlier clinical assessment. Suicide prevention is a particularly important application: in 2023, nearly 50,000 Americans died by suicide, while 12.8 million seriously considered suicide, 3.7 million made a plan, and 1.5 million attempted suicide [1]. U.S. suicide rates increased by 37% between 2000 and 2018, briefly declined between 2018 and 2020, and returned to their peak by 2022 [1]. These trends highlight the need for data-driven methods that can characterize suicide-related risk indicators and support more informed clinical assessment.

This paper investigates retrospective suicide-related risk modeling using MIMIC-IV, a large-scale EHR dataset containing emergency department and intensive care unit records from over 200,000 patients [2]. Building on prior machine learning approaches for suicide risk assessment that use structured EHR variables, temporal information, and ensemble learning [3], [4], our objective is to develop a retrospective modeling framework that integrates psychiatric, behavioral, medical, and social-determinant-related features associated with documented suicide-related outcomes. We first perform odds-ratio analysis to identify diagnosis categories with strong univariate associations with the composite outcome, then train and calibrate logistic regression, random forest, and XGBoost classifiers under both imbalanced and age-matched cohort settings. To support interpretability, we use SHAP-based feature attribution to examine which EHR-derived factors contribute most strongly to elevated predicted probabilities [5]. Although mental health diagnoses provide essential information, this framework is designed to capture broader patterns across the documented health profile that may not be represented by psychiatric variables alone.

The novel contributions of this paper are as follows:

  1. Multidimensional EHR Feature Framework: We construct 53 clinically motivated diagnosis categories spanning psychiatric conditions, substance abuse, cognitive and behavioral factors, physical health conditions, and social determinants of health to support retrospective suicide-related risk modeling.

  2. Age-Matched Cohort Construction for Class Imbalance: We introduce an age-matched resampling strategy that retains all positive patients while selecting three negative patients from the same age group for each positive patient, ensuring a consistent 25% positive rate across age groups and reducing confounding associated with age-dependent outcome prevalence.

  3. Calibrated Model Evaluation and Interpretation: We develop an evaluation framework that compares logistic regression, random forest, and XGBoost classifiers before and after age-matched resampling, applies isotonic calibration, and assesses robustness across 20 random seeds. The calibrated XGBoost model achieves the strongest matched-cohort performance, with an F1 score of 0.81 and an Area Under the Precision-Recall Curve (AUPRC) of 0.89. Across the 20-seed robustness analysis, XGBoost maintains stable performance, with

This research was, in part, funded by the U.S. Government. The views and conclusions contained in this document are those of the authors and should not be interpreted as representing the official policies, either expressed or implied, of the U.S. Government.

an average F1 score of 0.81 and AUPRC of 0.89. We further use SHAP-based analysis to interpret predicted probabilities and identify the EHR-derived features that contribute most strongly to model predictions.

The remainder of this paper is organized as follows. Section II reviews related work. Sections III–V describe data preprocessing, exploratory analysis, and age-matched resampling. Section VI presents the modeling framework, Section VII reports the experimental results, and Section VIII concludes the paper.