Machine learning for prediction of childhood mental health problems in social care

Ryan Crowley, Katherine Parkin, Emma Rocheteau, Efthalia Massou, Yasmin Friedmann, Ann John, Rachel Sippy, Píetro Lió, Anna MooreBJPsych 2025

Abstract: Machine learning performance on this prediction task was promising. Predictive performance in social care settings can be bolstered by linking diverse routinely collected data-sets, making available a range of heterogenous risk factors relating to clinical, social and environmental exposures.

Introduction

Childhood mental health problems are a growing concern in the UK, particularly for children in the social care system who are often exposed to Adverse Childhood Experiences (ACEs). Despite their high-risk status, these children frequently face systemic barriers to formal mental health assessments. This study, published in BJPsych Open (2025), investigates the potential of machine learning (ML) to bridge the "artificial intelligence chasm" by identifying mental health risks using large-scale, linked administrative data.

Methodology

The researchers utilized the Secure Anonymised Information Linkage (SAIL) Databank in Wales to construct a cohort of 26,820 children aged 10–17 with social care contact between 2013 and 2020. By linking 18 distinct datasets—including education, health, and social care records—they mapped 158 features representing a holistic biopsychosocial view of each child.

Several ML architectures, including Gradient Boosting Classifiers, Random Forests, and Support Vector Machines (SVM), were evaluated using nested cross-validation to ensure robust performance estimation. To address the class imbalance (only ~20% prevalence of mental health problems), class weighting was applied.

Key Results and Interpretability

The Gradient Boosting Classifier and SVM emerged as the top performers, both achieving an Area Under the Receiver Operating Characteristic (AUROC) curve of 0.75. While the Area Under the Precision-Recall Curve (AUPRC) was lower at 0.47, the models demonstrated significant utility in identifying high-risk individuals.

To ensure transparency, the team employed SHAP (Shapley Additive exPlanations) values to interpret model decisions. This analysis confirmed that the models prioritized clinically relevant factors, such as age, substance misuse, and "looked after" status.

Mean SHAP values showing the top features influencing the model's predictions.

The Sensitivity-Fairness Tradeoff

A critical finding of the study was the presence of "fairness gaps." While the models were highly specific (identifying those without problems), they struggled with sensitivity (True Positive Rate), particularly among minority ethnic groups. For instance, sensitivity was notably lower for Black, Asian, and mixed-ethnicity children compared to their White counterparts.

Fairness metrics across different ethnic and gender groups, demonstrating significant variance in sensitivity (TPR).

These disparities highlight the risk of exacerbating existing health inequalities if such models are deployed without rigorous bias mitigation. The study underscores that high aggregate performance (AUROC) can mask significant underperformance in vulnerable subgroups.

Conclusion and Future Directions

The linkage of diverse administrative data provides a powerful foundation for predicting mental health needs in social care. However, the "fairness gap" remains a significant hurdle for clinical deployment. Future work will focus on improving subgroup fairness, integrating real-time data through the Child and Adolescent Data Resource (CADRE), and conducting external validation to ensure the models generalize across different populations.

Summary updated

BibTeX
@inproceedings{crowley2025machine,
  author = {Ryan Crowley and Katherine Parkin and Emma Rocheteau and Efthalia Massou and Yasmin Friedmann and Ann John and Rachel Sippy and Píetro Lió and Anna Moore},
  title = {{Machine learning for prediction of childhood mental health problems in social care}},
  booktitle = {BJPsych},
  year = {2025},
  doi = {10.1192/bjo.2025.32},
}
Figure