Different Affordances on Facebook and SMS Text Messaging Do Not Impede Generalization of Language-Based Predictive Models

Tingting Liu, Salvatore Giorgi, Xiangyu Tao, Douglas Bellew, Brenda Curtis, Lyle Ungar, Ungar, Lyle · DOI

Abstract

Adaptive mobile device-based health interventions often use machine learning models trained on non-mobile device data, such as social media text, due to the difficulty and high expense of collecting large text message (SMS) data. Therefore, understanding the differences and generalization of models between these platforms is crucial for proper deployment. We examined the psycho-linguistic differences between Facebook and text messages, and their impact on out-of-domain model performance, using a sample of 120 users who shared both. We found that users use Facebook for sharing experiences (e.g., leisure) and SMS for task-oriented and conversational purposes (e.g., plan confirmations), reflecting the differences in the affordances. To examine the downstream effects of these differences, we used pre-trained Facebook-based language models to estimate age, gender, depression, life satisfaction, and stress on both Facebook and SMS. We found no significant differences in correlations between the estimates and self-reports across 6 of 8 models. These results suggest using pre-trained Facebook language models to achieve better accuracy with just-in-time interventions.

Introduction

In the field of mobile health, Just-in-Time Adaptive Interventions (JITAIs) aim to provide support exactly when a user needs it—such as sending a supportive message when a person's texting patterns suggest rising stress. However, building the Natural Language Processing (NLP) models to power these interventions is challenging because large-scale SMS datasets are expensive and legally complex to collect due to privacy concerns.

As a workaround, researchers often train models on public or semi-public social media data (like Facebook) and "transfer" them to the SMS domain. This study investigates whether the different "affordances" of these platforms—Facebook as a public stage for self-presentation versus SMS as a private tool for logistics—break the predictive power of these models. Surprisingly, researchers found that while linguistic styles differ, machine learning models trained on Facebook data generalize remarkably well to SMS for psychological traits.

Methodology

The study utilized a unique "same-user" design, following 120 US-based participants ($M_{age} = 36.46$, 69% female) who provided both their Facebook history and their SMS messages (collected via the AWARE framework on Android). Participants also completed validated self-report surveys for age, gender, depression (PHQ-9), life satisfaction (Cantril’s Ladder), and stress (PSS) to provide a ground truth for model evaluation.

The research pipeline illustrating the analysis of cross-platform differences (RQ1) and the evaluation of model generalization (RQ2).

The researchers employed two main modeling approaches: lexical models using n-grams and the LIWC 2022 dictionary, and embedding models using RoBERTa-based transformers. These were applied across three tasks: applying "off-the-shelf" models to the study data, analyzing feature importance, and measuring generalization "drop-off" by training and testing across domains.

Results and Discussion

Linguistic Differences: Stage vs. Tool

The analysis confirmed that Facebook is primarily used for sharing experiences (using words like "fun," "weekend," "play"), while SMS is task-oriented (using words like "thank," "ok," "plan," and auxiliary verbs). Despite this stylistic shift, the underlying psychological signals remain stable.

Linguistic feature weights for depression across platforms, showing how models rely on different vocabulary in Facebook versus SMS.

In SMS, models relied heavily on functional language and contractions ("i'll", "i'm", "don't") to make predictions, whereas Facebook models relied more on topical content ("family", "anniversary"). This suggests that a model looking for depression identifies patterns that persist even when a user shifts from posting a status to sending a private text.

Model Generalization and Performance

For 6 out of 8 models tested (including depression, stress, and life satisfaction), there was no significant difference in how well the Facebook-trained models performed on SMS versus Facebook. For example, the correlation between model estimates and self-reports for depression was .36 on Facebook and .29 on SMS—a slight but statistically insignificant drop.

However, models for age and gender performed significantly worse on SMS ($r=0.45$ for age) compared to Facebook ($r=0.68$). This suggests that demographic markers are more tied to platform-specific slang and social norms than psychological traits are. Notably, models trained on large Facebook datasets actually achieved higher "out-of-domain" accuracy on SMS than models trained on the smaller SMS dataset itself, highlighting the value of high-volume social media training data.

Limitations and Future Work

While the "same-user" design is powerful, the sample size ($N=120$) is relatively small and skewed (69% female, US-based English speakers). Future work should focus on "fine-tuning" these large Facebook models with small amounts of SMS data to bridge the remaining accuracy gap.

Furthermore, the authors emphasize that while these models can work on SMS, the ethical implications of monitoring private messages are significant. Implementing such tools requires robust "just-in-time" consent frameworks to protect user privacy while providing mental health support.

Summary updated

BibTeX
@inproceedings{liu2023different,
  author = {Tingting Liu and Salvatore Giorgi and Xiangyu Tao and Douglas Bellew and Brenda Curtis and Lyle Ungar and Ungar, Lyle},
  title = {{Different Affordances on Facebook and SMS Text Messaging Do Not Impede Generalization of Language-Based Predictive Models}},
  booktitle = {ICWSM},
  year = {2023},
  doi = {10.1609/icwsm.v17i1.22226},
}
Figure