Using Natural Language Processing to Track Negative Emotions in the Daily Lives of Adolescents

Read full text
Authors: Hadar Fisher, Nigel Jaffe, Kristina Pidvirny, Anna O'Brien Tierney, Diego A. Pizzagalli, Christian A. Webb
Cited by: 1

Abstract

Tracking emotion fluctuations in adolescents’ daily lives is important for understanding mood dynamics and identifying early markers of affective disorders. This study examines whether natural language processing (NLP) methods, including large language models (LLMs), can approximate adolescents’ concurrent self-reported negative affect (NA) from ecological momentary assessment (EMA) narratives. We compared nomothetic (group-level) and idiographic (individualized) models as well as different NLP techniques for capturing within-person emotion fluctuations. EMA text responses from 97 adolescents (ages 14-18, 77.3% female, 22.7% male, N(EMA)=7,680) were analyzed. Text features were extracted using dictionary-based approaches, topic modeling, and emotion ratings derived from a LLM (GPT-4o). Random Forest and Elastic Net Regression models predicted NA from text features, and SHAP values were used to assess feature importance. Key findings, interactive visualizations, and model comparisons are available via the website: https://emotracknlp.streamlit.app/. Idiographic models combining text features from different NLP approaches performed comparably to nomothetic models and to GPT-4 alone in R(2) (Nomothetic:.06-.11, Idiographic:.06-.10, GPT-4:.06-.10) but yielded lower Root Mean Squared Error (Nomothetic:0.52-0.88, Idiographic:0.47-0.76, GPT-4:0.85-1.36), improving within-person precision. Importantly, there were substantial between-person differences in model performance and predictive linguistic features. When selecting the best-performing model for each participant (e.g., nomothetic or idiographic), significant correlations between predicted and observed emotion scores were found for 90.7-94.8% of participants. Findings suggest that while nomothetic models and LLMs offer scalability, idiographic models provide greater predictive precision with sufficient within-person data. A personalized approach selecting optimal models for each individual may enhance emotion monitoring and inform targeted interventions through contextual text insights.

Fields of Study & Subjects

Mental Health via Writing Mental Health Research Topics Digital Mental Health Interventions

Publication details

Journal / source
PubMed Central
Publication date
9 July 2026
Language
EN