Eur Rev Med Pharmacol Sci 2025; 29 (11): 528-538
DOI: 10.26355/eurrev_202511_37505

Predicting suicidal behavior: a machine learning model

A.-M. Vejnović, V. Tatalović, M. Vujović, N. Janković, A. Dickov, V.M. Jovin, V. Knežević, I. Kelečević

Department of Psychiatry and Psychological Medicine, Faculty of Medicine, University of Novi Sad, Novi Sad, Serbia. ana-marija.vejnovic@mf.uns.ac.rs


OBJECTIVE: Timely response and identification of risk factors are critical components of suicide prevention, enabling appropriate intervention. By applying machine learning to clinical data analysis, predictive models can be developed to classify patients into high- and low-risk groups, which can help prevent loss of life. This study aims to develop a machine learning model to categorize patients based on their risk of suicide attempts.

MATERIALS AND METHODS: We analyzed data from 301 respondents hospitalized at the Clinic of Psychiatry for either suicidal behavior or non-suicidal reasons. They were divided into two groups according to the presence of suicidal behavior. By using machine learning methods, we analyzed the influence of 18 observed features on the development of suicidal behavior. A predictive model was developed to classify individuals into two risk categories – high and low – for the observed population. The k-Nearest Neighbors (kNN) algorithm was used to train the model.

RESULTS: The kNN-based model achieved a classification accuracy of 87%, with sensitivity at 87%, precision at 90% and an F-score of 85% for the tested sample.

CONCLUSIONS: Early identification of risk factors for suicidal behavior remains the most effective strategy for prevention. Classification models may serve as valuable clinical tools for assessing suicide risk, potentially contributing to a reduction in suicide rates in Vojvodina. Expanding the database could improve the functions of the obtained classifier and enable its introduction into medical practice.

Graphical Abstract

Free PDF Download

To cite this article

A.-M. Vejnović, V. Tatalović, M. Vujović, N. Janković, A. Dickov, V.M. Jovin, V. Knežević, I. Kelečević
Predicting suicidal behavior: a machine learning model

Eur Rev Med Pharmacol Sci
Year: 2025
Vol. 29 - N. 11
Pages: 528-538
DOI: 10.26355/eurrev_202511_37505

Publication History

Submission date: 27 Mar 2025

Revised on: 19 Sep 2025

Accepted on: 20 Oct 2025

Published online: 28 Nov 2025