Abstract
Session identification is a common strategy used to develop metrics for web analytics and perform behavioral analyses of user-facing systems. Past work has argued that session identification strategies based on an inactivity threshold are inherently arbitrary or has advocated that thresholds be set at about 30 minutes. In this work, we demonstrate a strong regularity in the temporal rhythms of user-initiated events across several different domains of online activity (including video gaming, search, page views, and volunteer contributions). We describe a methodology for identifying clusters of user activity and argue that the regularity with which these activity clusters appear implies a good rule-of-thumb inactivity threshold of about 1 hour. We conclude with implications that these temporal rhythms may have for system design based on our observations and theories of goal-directed human activity.
Introduction
In web analytics and behavioral science, a "session" is the basic unit of analysis. However, there is no industry consensus on how to define when one session ends and another begins. Most researchers use a "time-oriented heuristic"—if a user is inactive for $X$ minutes, the session is over. Traditionally, $X$ is often set to 30 minutes, a figure derived from a single study in 1995. Subsequent research has called this threshold arbitrary, with some even arguing that sessions do not exist as a useful construct. This paper seeks to ground session identification in empirical data and "Activity Theory," identifying natural regularities in how humans space out their digital actions.
Methodology
The proposed methodology centers on the distribution of inter-activity times—the time elapsed between two consecutive actions by the same user. The process involves:
- Log-Scaling: Plotting inter-activity times on a logarithmic scale to account for activity spanning orders of magnitude (seconds to days).
- Gaussian Mixture Models (GMM): Using Expectation-Maximization to fit multiple clusters to the data. Typically, this reveals a "within-session" cluster (rapid actions) and a "between-session" cluster (gaps between visits).
- Threshold Identification: Defining the optimal threshold as the point where an inter-activity time is equally likely to belong to the "within-session" or "between-session" cluster.
- Theoretical Grounding: Mapping these clusters to Activity Theory (AT), which distinguishes between unconscious operations, goal-directed actions, and longer-term activities.
Empirical Analysis and Insights
The study analyzed ten types of user actions across seven systems, including Wikimedia, AOL Search, Cyclopath, MovieLens, OpenStreetMap (OSM), StackOverflow, and League of Legends (LoL).
Several key insights emerged from this cross-domain analysis:
- The "Natural Valley": Across almost all datasets, a distinct "valley" appears in the distribution between 1 minute and 1 day (see Figure 1). This suggests that sessions are a reflection of human attention rhythms rather than an arbitrary invention.
- The 1-Hour Rule: While the optimal threshold varied by task, it consistently hovered around 60 minutes, challenging the 30-minute industry standard.
- The 24-Hour Heartbeat: Most datasets showed a significant spike at exactly 24 hours, highlighting the extreme regularity of daily human routines.
- "Wikibreaks" and Life Events: For creative work like Wikipedia and OSM, a third "break" cluster appeared at approximately 2.5 months, likely reflecting major life events that cause temporary disengagement.
- System Constraints: In League of Legends, the "within-session" cluster was pushed to 5 minutes, reflecting the system's matchmaking queue time rather than purely human intent.
Key Results
The calculated thresholds for all datasets are summarized in the table below.
- AOL Search: Showed a clear bimodal fit with an optimal threshold of 115 minutes.
- Wikimedia App: Had the lowest threshold at 29 minutes, likely due to the "snacking" nature of mobile information consumption.
- StackOverflow: Presented an unusual fit. Because writing high-quality code answers is high-effort, users rarely post multiple times per session. The "within-session" cluster shifted right, resulting in higher thresholds (91 minutes for answers, 335 for questions).
Discussion and Conclusion
Despite the variety of tasks—from 15-second movie ratings to hour-long gaming sessions—the 1-hour threshold remained a robust demarcator for the end of an active work session. The model's primary limitation lies in "high-effort" activities like StackOverflow, where the time taken for a single action may exceed the typical gap between actions in other systems.
Future work could explore how these temporal rhythms can inform system design. For example, timing notifications or session-restore features to align with natural 1-hour and 24-hour cycles could better support goal-directed human activity.
Summary updated