Detecting Emotional Signals of Relationship Well-Being Using AI: A Cross-Sectional Comparison of Transformer-Based and Lexicon-Based Models for Couples Therapy Research
JMIR AI · 2026-11-09 · 5 · e94097-e94097
DOI: 10.2196/94097 ↗Abstrakt
Abstract Background Natural language processing and AI models are increasingly used to extract emotional signals from textual data; however, systematic validation of different computational paradigms in emotionally complex relational contexts remains limited. Such approaches may contribute to digital health research, particularly in the fields of digital mental health and couples therapy, where understanding emotional expressions within romantic relationships is especially relevant. Objective This study aimed to compare a lexicon-based approach (NRC Emotion Lexicon) and a transformer-based model (Pysentimiento) in detecting affective patterns within spontaneous romantic relationship narratives and to evaluate their criterion-related associations with a theory-driven measure of relational well-being. Methods In this cross-sectional exploratory study, 112 Spanish adults completed the Couple Flourishing Measure (CFM) and provided an open-ended description of their romantic relationship. Narratives were analyzed using both computational approaches to generate emotion and sentiment indices. Pearson correlations were computed between model outputs and CFM scores. Steiger Z tests were conducted to compare dependent correlations across models. Results Both approaches showed significant associations with couple flourishing, although the transformer-based model yielded stronger correlations for several affective dimensions, particularly positive sentiment ( r =0.66, 95% CI 0.54-0.76) and negative sentiment ( r =−0.74, 95% CI −0.82 to −0.65). The lexicon-based approach showed smaller associations, primarily for negative emotions. Steiger Z tests identified significant between-model differences for disgust ( P =.04), joy ( P =.01), sadness ( P =.004), surprise ( P =.03), and positive and negative sentiment (both P
EUVIMED