# Patient complexity profiles in depression: a machine learning approach to personalized mental health

**Authors:** Paula Dagnino, Matias Salinas, Rodrigo Salas

PMC · DOI: 10.3389/fpsyt.2026.1741860 · Frontiers in Psychiatry · 2026-02-10

## TL;DR

This study uses machine learning to identify three distinct complexity profiles in depression patients, helping to guide personalized mental health treatment.

## Contribution

The novel use of machine learning to identify and validate distinct patient complexity profiles in depression for personalized care.

## Key findings

- Three distinct patient complexity profiles (low, moderate, high) were identified using machine learning.
- Each profile showed significant differences in sociodemographic, clinical, and psychosocial indicators.
- Clinical experts confirmed the profiles' interpretability and suggested tailored treatment strategies.

## Abstract

Patient complexity in mental health varies substantially, yet treatment approaches often rely on standardized protocols. Identifying distinct complexity profiles may support stratified care and more personalized intervention planning in depression.

To identify distinct patient complexity profiles in depression across sociodemographic, clinical, and psychosocial indicators and to evaluate their clinical relevance for personalized treatment planning.

We analyzed complete-case data from 270 adults with major depression using a Knowledge Discovery in Databases framework. Twelve indicators were analyzed via Principal Component Analysis followed by K-means clustering. Robustness was evaluated using supervised validation with a Random Forest classifier and SHAP-based interpretability analysis. Between-profile comparisons were conducted, and expert clinicians evaluated clinical relevance.

Model selection supported a three-cluster solution (k = 3: Low-, Moderate-, and High-complexity profiles). The solution was validated using a Random Forest classifier with strong performance (accuracy = 0.91). Statistical comparisons showed that the Low-complexity profile (n = 100, 37.0%) was older and more often partnered and employed, with lower depressive symptoms and better personality functioning. The Moderate-complexity profile (n = 87, 32.2%) was younger, predominantly unpartnered, and had the lowest employment rate and medical comorbidity. The High-complexity profile (n = 83, 30.7%) showed the most severe presentation, characterized by higher depressive symptoms, greater childhood maltreatment, and impaired personality functioning. Clinical experts confirmed interpretability and suggested tailored strategies for each profile.

Machine learning identified clinically meaningful patient complexity profiles with significant differences across multiple domains. These profiles provide a framework for stratified care and personalized intervention planning, moving beyond one-size-fits-all approaches.

## Linked entities

- **Diseases:** depression (MONDO:0002050), major depression (MONDO:0002009)

## Full-text entities

- **Genes:** CBX8 (chromobox 8) [NCBI Gene 57332] {aka PC3, RC1}, ITIH2 (inter-alpha-trypsin inhibitor heavy chain 2) [NCBI Gene 3698] {aka H2P, ITI-HC2, SHAP}, PKD2 (polycystin 2, transient receptor potential cation channel) [NCBI Gene 5311] {aka APKD2, PC2, PKD4, Pc-2, TRPP2}, AP2B1 (adaptor related protein complex 2 subunit beta 1) [NCBI Gene 163] {aka ADTB2, AP105B, AP2-BETA, CLAPB1}
- **Diseases:** psychotic symptoms (MESH:D011618), emotional abuse (MESH:D019966), OPD (MESH:D001523), childhood maltreatment (MESH:D063766), sexual abuse (MESH:D000082002), psychological disorders (MESH:D000067073), Trauma (MESH:D014947), PD (MESH:D010300), physical abuse (MESH:D059445), major depression (MESH:D003865), emotion dysregulation (MESH:D021081), anxiety disorders (MESH:D001008), cognitive impairment (MESH:D003072), impulse control (MESH:D007174), Depression (MESH:D003866), impaired personality functioning (MESH:D010554), eating disorders (MESH:D001068), abuse and neglect (MESH:D058069)
- **Species:** Homo sapiens (human, species) [taxon 9606]

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12930347/full.md

## Figures

5 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12930347/full.md

## References

52 references — full list in the complete paper: https://tomesphere.com/paper/PMC12930347/full.md

---
Source: https://tomesphere.com/paper/PMC12930347