ORIGINAL RESEARCH article
Front. Artif. Intell.
Sec. Medicine and Public Health
This article is part of the Research TopicArtificial Intelligence and Machine Learning in PediatricsView all 14 articles
Machine Learning Strategies for Predicting Pediatric Suicidal Behaviours in a Brazilian Emergency Setting
Provisionally accepted- 1Computer Science, Federal University of Minas Gerais, Belo Horizonte, Minas Gerais, Brazil
- 2Pediatrics, Federal University of Minas Gerais, Belo Horizonte, Minas Gerais, Brazil
- 3Universidade Presbiteriana Mackenzie, São Paulo, Brazil
Select one of your emails
You have multiple emails registered with Frontiers:
Notify me on publication
Please enter your email address:
If you already have an account, please login
You don't have a Frontiers account ? You can register here
Background: Suicide is a leading cause of death worldwide, yet its prediction remains a challenge. This difficulty arises not only because suicidal behaviour is a rare event in the general population, leading to significant class imbalance in datasets, but also due to its complex, multi-causal nature involving a non-linear interplay of sociodemographic and clinical factors. Furthermore, while the majority of suicides occur in middle-income countries, there is a lack of predictive models tailored to these specific social contexts. This study evaluates machine learning strategies in an enriched clinical setting: a pediatric psychiatric emergency centre in Brazil. Methods: We analyzed a comprehensive database of 2,365 youth seeking emergency care. We benchmarked three machine learning algorithms, namely Logistic Regression, Random Forest, and XGBoost, to predict three outcomes: self-harm, suicidal ideation, and suicide attempts. To address class imbalance, we applied oversampling techniques to the training data. We also used SHAP (SHapley Additive exPlanations) values to quantify each feature's contribution to the predictions. Findings and Interpretation: In this setting, suicide-related behaviours represented 28.7% of the clinical demand. The Random Forest model combined with oversampling was the most effective strategy, achieving sensitivities of 78.04% for suicidal ideation, 71.18% for suicide attempts, and 69.37% for self-harm. Specificity remained consistently above 75%. SHAP value analysis revealed that social determinants were critical predictors, highlighting that social conditions in middle-income populations introduce unique variables that significantly influence suicidal risk. While accuracy for suicide attempts remained a challenge, SHAP provided clear clinical insights into the drivers of risk. Conclusions: Machine learning, specifically Random Forest models together with oversampling and SHAP, demonstrates strong potential for identifying suicidal risk in pediatric emergency settings. By integrating clinical data with social determinants, these models provide a transparent and scalable strategy for early identification in regions with limited specialized psychiatric resources.
Keywords: adolescents, Children, prediction, Risk features, self-harm, suicide attempt, suicide ideation
Received: 08 Jul 2025; Accepted: 16 Jan 2026.
Copyright: © 2026 Carvalho, Couto Da Silva, Lacerda, Meira Jr, Bastos Bispo Ferreira, Malloy Diniz, Serpa, Machado, Miranda and Pappa. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) or licensor are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.
* Correspondence: Debora Marques Miranda
Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.
