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

A Toolkit for Analyzing and Visualizing Online Users via Reshare Cascade Modeling

Quyu Kong, Rohit Ram, Marian-Andrei Rizoiu · DOI

Abstract

Modeling online discourse dynamics is a core activity in understanding the spread of information, both offline and online, and emergent online behavior. There is currently a disconnect between the practitioners of online social media analysis -- usually social, political and communication scientists -- and the accessibility to tools capable of examining online discussions of users. Here we present evently, a tool for modeling online reshare cascades, and particularly retweet cascades, using self-exciting processes. It provides a comprehensive set of functionalities for processing raw data from Twitter public APIs, modeling the temporal dynamics of processed retweet cascades and characterizing online users with a wide range of diffusion measures. This tool is designed for researchers with a wide range of computer expertise, and it includes tutorials and detailed documentation. We illustrate the usage of evently with an end-to-end analysis of online user behavior on a topical dataset relating to COVID-19. We show that, by characterizing users solely based on how their content spreads online, we can disentangle influential users and online bots.

Introduction

Social media platforms are primary drivers of public opinion, yet analyzing their dynamics remains technically challenging. A significant gap exists between social science practitioners—who study these phenomena—and the complex mathematical tools required to model information diffusion. Existing models for information diffusion are often shared as one-off scripts with complex dependencies or rigid assumptions. Furthermore, most tools focus on what users post rather than how their content spreads. We identify two major gaps: the lack of a unified, accessible tool for comparing different self-exciting models on real data, and the absence of a way to extract user-level features based on their temporal activity and influence.

To bridge this gap, we introduce evently, an open-source R package designed to model reshare cascades using self-exciting point processes. By providing a unified framework for data processing, modeling, and visualization, evently enables researchers to extract user-level features based on temporal activity and influence.

The evently Pipeline

The evently package facilitates an end-to-end workflow for social media analysis. As shown in Figure 1, the process begins with raw data acquisition from public APIs, followed by preprocessing into reshare cascades. These cascades are then modeled as self-exciting processes, which can be applied to simulations, feature extraction, and popularity prediction.

The evently pipeline: from raw Twitter data to modeling and applications.

Core Methodology: Hawkes Processes

At the heart of evently are Hawkes processes—a class of self-exciting point processes where the occurrence of one event (e.g., a tweet) increases the probability of subsequent events (e.g., retweets). The package supports several model variants:

  • Standard Hawkes Processes: For general self-exciting dynamics.
  • HawkesN: Accounts for finite populations.
  • SEISMIC: A doubly stochastic model optimized for popularity prediction.

Users can choose between exponential kernels for fast decay or power-law kernels for long-tail memory. To ensure efficiency, the package utilizes AMPL for automatic differentiation, allowing for high-performance parameter estimation using solvers like IPOPT without requiring manual gradient calculations.

Characterizing Online Users

A key innovation of evently is its ability to treat diffusion patterns as a "fingerprint" for online users. By jointly fitting multiple cascades from a single user, the tool calculates a Viral Score—the expected size of a new cascade initiated by that user—and a branching factor, which measures the average number of reshares triggered by a single event.

Case Study: COVID-19 Discussions

We demonstrated the tool using a dataset of 1.56 million COVID-19-related tweets from January 2020. After processing, we analyzed 423,443 retweet cascades. By mapping users into a latent space using t-SNE on temporal features extracted by evently, we observed distinct behavioral clusters.

t-SNE visualization of users based on temporal diffusion features, distinguishing bots from influential humans.

As illustrated in Figure 2, users naturally cluster based on their influence and "botness" (validated via external tools like BirdSpotter). Influential human users and automated bots occupy different regions of the latent space, suggesting that temporal diffusion patterns alone are powerful indicators of user identity and impact.

Conclusion

evently provides a robust, accessible toolkit for the social science community, bridging the technical gap in social media modeling. By focusing on the temporal dynamics of information spread, it offers new ways to identify influential actors and distinguish between human and bot behavior. Future developments will aim to expand the range of supported models and explore cross-platform applicability beyond Twitter.

Summary updated

BibTeX
@inproceedings{kong2021toolkit,
  author = {Quyu Kong and Rohit Ram and Marian-Andrei Rizoiu},
  title = {{A Toolkit for Analyzing and Visualizing Online Users via Reshare Cascade Modeling}},
  booktitle = {WSDM},
  year = {2021},
  url = {https://openreview.net/forum?id=abJXjo72cV},
}
Figure