Monitoring Therapeutic Plans and Risk Signals from Clinical Narratives in Mental Health using Natural Language Processing

Authors

  • Margarita Ruiz Olazar Comunera University
  • Andrea Aguilera Comunera University
  • Diego Ihara
  • Fernando Sosa Comunera University
  • Cecilia Scales Comunera University
  • Benjamín Barán

DOI:

https://doi.org/10.32473/flairs.39.1.141853

Keywords:

Mental Health, Electronic Health Records, Natural Language Processing, risk detection

Abstract

Clinical narratives in electronic health records (EHRs) are a key source of information in mental health care, but their unstructured nature limits systematic analysis. We propose an NLP framework to extract therapeutic plan information and identify indirect clinical risk signals from psychiatric narratives in Spanish. Using a retrospective dataset of outpatient consultations, we develop an interpretable approach combining rule-based extraction with a risk model based on TF-IDF and logistic regression, incorporating probability calibration and asymmetric thresholds to prioritize high-risk cases. We compare this approach against a fine-tuned transformer model (RoBERTuito) using patient-level cross-validation. These findings demonstrate that combining interpretability, robust evaluation, and domain-specific considerations enables the development of practical NLP tools for mental health applications using real-world clinical data.

Downloads

Published

06-05-2026

How to Cite

Ruiz Olazar, M., Aguilera, A., Ihara, D., Sosa, F., Scales, C., & Barán, B. (2026). Monitoring Therapeutic Plans and Risk Signals from Clinical Narratives in Mental Health using Natural Language Processing. The International FLAIRS Conference Proceedings, 39(1). https://doi.org/10.32473/flairs.39.1.141853

Issue

Section

Special Track: Applied Natural Language Processing