Temporal Analysis of Patient-Centered Sentiment in Clinical Notes for Patients With Mental Health Conditions: Retrospective Cohort Study.
AbdulRahman Morsy, Carson J Peters, Leslie Miller, Aya Zirikly
Department of Computer Science, School of Engineering and Applied Sciences, George Washington University, Washington, DC, United States. · Center for Excellence in Public Health Leadership, Kennedy Krieger Institute, Baltimore, MD, United States.
Key points
From the paper's conclusion- Temporal sentiment analysis revealed section-dependent patterns in clinical narratives that partially reflected patient-perceived experience. LLM-based approaches improved alignment with patient-centered sentiment, although overall performance remained limited. These findings underscore the need for larger, more robust datasets and modeling strategies for clinical sentiment analysis.
Abstract
BACKGROUND: Clinical notes offer rich, longitudinal insights into patient health trajectories. However, existing clinical sentiment analysis primarily evaluates overall note tone rather than the patient's distinct perspective. This gap is particularly critical in mental health care, where patient-perspective sentiment closely correlates with severe clinical outcomes, including mortality. OBJECTIVE: This study aimed to characterize temporal sentiment trajectories and changes in mental health clinical notes. We are specifically interested in the problem from the patient perspective, as this can differ from the overall and the provider-perspective sentiment. Furthermore, we examine its association with postdischarge mortality to check if there is any correlation. Using large language models (LLMs) and lexicon-based methods, we compared and highlighted the strengths and weaknesses of both approaches. METHODS: We conducted a retrospective analysis of 16,447 clinical notes from 6,382 patients from the Medical Information Mart for Intensive Care IV (MIMIC-IV) database, focusing on the Brief Hospital Course and Discharge Instructions sections for patients with ICD-10 (International Classification of Diseases, Tenth Revision) mental health diagnoses. Sentiment was labeled from 3 perspectives (patient, physician, and general) using 2 LLMs (DeepSeek-7B and Mistral-7B) and compared to lexicon-based tools (ClinSent-lexicon, TextBlob, and VADER [Valence Aware Dictionary and sEntiment Reasoner]). Temporal trends were quantified at the patient level using Kendall τ. Associations between sentiment patterns and mortality were assessed using independent-samples (Welch) t tests. Model performance was evaluated on a manually annotated subset (n=165) using precision, recall, and F1-score. RESULTS: Temporal sentiment trajectories showed substantial directional change among patients with multiple hospital admissions, with greater fluctuations in Discharge Instructions compared to Brief Hospital Course notes. Patient-perspective sentiment was more balanced, while physician and general perspectives were predominantly neutral. LLMs showed better alignment with patient-centered annotations than lexicon-based methods. Discharge-note sentiment trajectories were significantly more negative among patients who died within 30-90 days of discharge than among survivors across both LLMs. CONCLUSIONS: Temporal sentiment analysis revealed section-dependent patterns in clinical narratives that partially reflected patient-perceived experience. LLM-based approaches improved alignment with patient-centered sentiment, although overall performance remained limited. These findings underscore the need for larger, more robust datasets and modeling strategies for clinical sentiment analysis.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Sentiment Scores in Nursing Notes Associated with the Prognosis of Patients Undergoing Cholecystectomy.Journal of visualized experiments : JoVE · 2026
- From Sentiment to Signal: Narrative-Physiology Discordance as a Testable Target for Artificial Intelligence in Critical Care.Medical sciences (Basel, Switzerland) · 2026
- Comparative sentiment and thematic analysis of depression-related discourse between healthcare professionals and non-healthcare individuals on Chinese social media: a computational text analysis study.Frontiers in psychology · 2026
- A Dataset of Psychiatric Hospital Notes with Temporal Information Annotations.LREC ... International Conference on Language Resources & Evaluation : [proceedings]. International Conference on Language Resources & Evaluation · 2026
- Emotion and Cognition Based Mental Health Analysis from Social MediaJournal of Trends in Computer Science and Smart Technology · 2026
- Large Language Models for Mental Health Prediction: Scoping Review of Bias and Clinical Utility Documentation in 2019-2024.JMIR AI · 2026