Identifying Moments of Change from Longitudinal User Text

Adam Tsakalidis, Federico Nanni, Anthony Hills, Jenny Chim, Jiayu Song, Maria Liakata

Abstract

Researchers have introduced a new NLP task: identifying "Moments of Change" (MoC) in a user's mental health by analyzing their social media posts over time. By moving from static classification to longitudinal modeling, they developed a system that can detect sudden mood "switches" and gradual "escalations," providing a more clinically relevant way to monitor well-being online.

Introduction

Most NLP research in mental health focuses on static classification—for example, "Does this user have depression?" or "Is this specific post indicative of self-harm?" While useful, these approaches lack a temporal dimension. In a clinical setting, understanding the trajectory of a patient's mood is often more important than a single snapshot.

The authors address the gap in longitudinal assessment. They argue that to enable timely interventions, we need systems capable of identifying exactly when a user’s behavior or mood shifts. This is challenging because mental health states are often expressed subtly, and "moments of change" are rare events hidden within a sea of "normal" posts.

Defining Moments of Change

The authors define two primary types of MoC:

  1. Switches: Sudden shifts in mood (e.g., from positive to negative).
  2. Escalations: Gradual mood progression (e.g., a slow descent into a darker state).
Examples of Escalation and Switch in a user timeline

Methodology

To tackle this, they moved beyond standard post-level classification. Their key technical approach involves:

  • Timeline-Sensitive Modeling: They utilized a BiLSTM-bert architecture. This model first generates high-quality representations of individual posts using a fine-tuned BERT model and then feeds those representations into a Bidirectional Long Short-Term Memory (BiLSTM) network to capture the sequential, temporal context of the entire timeline.
  • Focal Loss: Because MoCs are rare (class imbalance), they employed an alpha-weighted focal loss to force the model to focus more on the difficult-to-detect "change" labels rather than the majority "no change" class.
  • Novel Evaluation Metrics: Standard precision/recall at the post level doesn't tell the whole story for timelines. They introduced "timeline-level" metrics inspired by image segmentation and change-point detection, measuring how well models capture regions of change within specific temporal windows.

Dataset and Annotation

The study introduces a new longitudinal dataset extracted from TalkLife, a peer-to-peer social network for mental health support. The dataset consists of 500 manually annotated user timelines containing a total of 18,702 posts.

Distribution of posts per timeline (a) and posts per MoC area (b)

Three external annotators with humanities degrees labeled the data. Because MoC detection is subjective and rare, the authors used a "majority agreement" gold standard, resulting in 2,018 Escalations and 885 Switches. Interestingly, they didn't just pick random posts. They used Bayesian Online Change-point Detection on users' posting frequency to identify active periods where a life change was likely occurring, then extracted 7-day windows around those points.

Key Results and Insights

The BiLSTM-bert model outperformed all baselines, achieving a macro-F1 score of 0.580. This represented an 8.6% relative improvement over the best post-level model (BERT with focal loss). Incorporating the longitudinal component led to significant jumps in precision—up to 11.1% in some metrics—compared to treating posts in isolation.

Several key insights emerged from the study:

  • Context is King: A post's meaning changes based on the user's "baseline." A neutral post might be a "Switch" if the user has been consistently positive for weeks. Post-level models miss this; sequential models catch it.
  • Posting Frequency as a Proxy: The authors found that changes in how often someone posts are a strong signal for finding changes in what they are feeling.
  • The Difficulty of "Switches": Sudden mood shifts had the lowest inter-annotator agreement. Humans and models find it much harder to pinpoint the exact moment a mood flips compared to identifying a gradual escalation.
  • Emotion Matters: Models pre-trained on emotion detection (like DeepMoji) showed very high precision but low recall. This suggests that while strong emotional language is a clear indicator of change, many real-world mood shifts are expressed more subtly.

Conclusion and Future Work

While the longitudinal approach shows great promise, it is limited by self-disclosure bias; the system can only detect changes that users choose to express online. Furthermore, the low inter-annotator agreement on "Switches" highlights the inherent subjectivity of defining these moments.

Future directions include integrating specialized models for self-harm detection and exploring transfer learning to adapt the models to different online platforms. The authors also aim to refine the focal loss parameters to better handle the extreme rarity of these events in larger datasets.

Summary updated

BibTeX
@inproceedings{tsakalidis2022identifying,
  author = {Adam Tsakalidis and Federico Nanni and Anthony Hills and Jenny Chim and Jiayu Song and Maria Liakata},
  title = {{Identifying Moments of Change from Longitudinal User Text}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2022},
  url = {https://openreview.net/forum?id=R6w_cbsEZZ},
}
Figure