NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Context-Aware Prediction of User Engagement on Online Social Platforms

Heinrich Peters, Yozen Liu, Francesco Barbieri, Raiyan Abdul Baten, Sandra C. Matz, Maarten W. BosarXiv 2023 · DOI

Introduction

Predicting user engagement is fundamental to the personalization and monetization strategies of modern social platforms. Traditionally, these predictions rely on extensive historical user profiles, a "more data is better" approach that incurs significant infrastructure costs and privacy risks. However, user behavior is often triggered by situational cues—such as location, weather, or connectivity—that are typically ignored by "context-blind" models. This research investigates whether "momentary context" can effectively predict the shift between active use (content creation) and passive use (content consumption), potentially reducing the need for long-term behavioral tracking.

Methods

The researchers modeled the task as a multivariate time-series regression using Deep Long Short-Term Memory (LSTM) neural networks. The study utilized a high-granularity dataset from Snapchat, encompassing over 100 million sessions from 80,000 users.

Feature Engineering and Target Variable

The models incorporated 127 behavioral features and 56 context features categorized into five brackets: socio-demographics, weather, temporal context, location, and connectivity status. Rather than predicting raw usage, the target variable was the ratio of active-to-passive engagement within a given hour, capturing the user's tendency toward specific modes of interaction.

Experimental Design

Ablation studies were conducted to isolate the value of different context brackets. A baseline model trained on behavior alone was compared against models where context features were added incrementally. The researchers also analyzed the impact of sequence length on predictive performance to determine how much historical data is truly necessary.

Key Results

The integration of environmental context significantly enhanced predictive accuracy. The behavioral baseline achieved an $R^2$ of 0.345, while the inclusion of all context features raised the $R^2$ to 0.522—a 51% improvement.

Test performance ($R^2$) across different model specifications, highlighting the significant boost from context features, particularly connectivity.

As shown in Figure 1, smartphone connectivity status (Wi-Fi vs. mobile data) was the most impactful context feature. Using mobile data strongly predicted active use, suggesting users are more likely to share "on-the-go" moments when away from fixed Wi-Fi networks.

Sequence Length and Efficiency

A critical finding was the efficiency of context-aware models. While behavioral models required longer histories to improve, context-aware models reached 88% of their peak performance with a sequence length of just one (the current hour).

Model performance ($R^2$) as a function of sequence length, demonstrating that context-aware models achieve high accuracy with minimal historical data.

Figure 2 illustrates that context acts as a powerful proxy for history. A model using only current context and a single hour of behavior outperformed a context-blind model using a full month of history.

Discussion and Implications

The results suggest that social media behaviors are often automatic responses to situational triggers, supporting the psychological theory of "media habits." This has profound implications for platform design:

  1. Privacy-Preserving Modeling: The high performance of short-sequence models suggests that platforms could move toward "ephemeral modeling." By processing immediate context locally on devices, platforms can maintain high personalization while reducing the need for centralized, long-term data storage.
  2. Computational Efficiency: Reducing the required sequence length significantly lowers the computational overhead for training and inference.
  3. Contextual Personalization: Understanding how connectivity and location drive engagement allows for more nuanced content delivery that aligns with the user's current environment.

Limitations

While the study provides strong evidence for context-aware modeling, it was limited to Snapchat users. Future research should explore whether these patterns hold for consumption-heavy platforms like TikTok or text-based platforms like X. Additionally, using more granular, self-reported psychological states could further refine predictive accuracy.

Summary updated

BibTeX
@misc{peters2023context,
  author = {Heinrich Peters and Yozen Liu and Francesco Barbieri and Raiyan Abdul Baten and Sandra C. Matz and Maarten W. Bos},
  title = {{Context-Aware Prediction of User Engagement on Online Social Platforms}},
  year = {2023},
  eprint = {2310.14533},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.14533},
}
Figure