Abstract
Modern technological advances have expanded the scope of applications requiring analysis of large-scale datastreams that comprise multiple indefinitely long time series. There is an acute need for statistical methodologies that perform online inference and continuously revise the model to reflect the current status of the underlying process. We propose a dynamic statistical inference framework—Dynamic Tracking and Screening (DTS)—that provides accurate estimates of underlying parameters in a dynamic statistical model while rapidly identifying irregular individual streams. By exploiting the sequential features of datastreams, we develop a robust estimation approach under a varying coefficient model framework. The procedure accommodates unequally-spaced design points and updates estimates as new data arrive without storing historical data. We demonstrate the proposed methods through a mobile health example estimating the influence of sleep and physical activity on the mood of medical interns.
Introduction: The Challenge of Streaming Data
In the era of the Internet of Things (IoT) and ubiquitous wearable sensors, researchers are increasingly confronted with massive longitudinal datasets. Consider a study following thousands of medical interns wearing smartwatches: we may wish to understand how sleep duration affects daily mood. However, this relationship is rarely static; it evolves as the residency progresses and varies across individuals.
Standard statistical methods face significant hurdles in this environment:
- Computational Scale: Storing and re-processing the entire history of thousands of users daily is computationally prohibitive.
- Temporal Dynamics: The "rules" governing the system—the regression coefficients—are not fixed; they evolve over time.
- Population Heterogeneity: While most individuals follow a general trend, specific subjects may experience "episodes" (e.g., a health crisis) that cause their behavior to deviate from the norm.
The Dynamic Tracking and Screening (DTS) framework addresses these challenges by performing "online inference"—updating a global model on the fly while pinpointing exactly when and which individuals start behaving irregularly.
The DTS Framework
The core of DTS is built upon Varying Coefficient (VC) models. Rather than assuming a fixed relationship between variables (e.g., a constant effect of sleep on mood), the model treats these coefficients as smooth functions of time.
Recursive Estimation and Memory Efficiency
To handle the scale of modern datastreams, DTS utilizes an exponentially weighted loss function. By applying a weighting function that decays for older data points, the mathematical estimation becomes recursive. This means the model only requires the current data point and the summary from the previous step to update its estimates. Consequently, the storage requirement is $O(pqd^2)$—dependent on the number of streams ($p$) and variables ($d$), but independent of the total length of the time series ($m$).
Robustness and Real-Time Smoothing
To ensure the global trend is not skewed by outliers or irregular streams, DTS employs robust quantile estimation. By focusing on a specific quantile (such as the median), the framework provides a stable estimate of the group norm even when a portion of the population exhibits irregular behavior.
Furthermore, because streaming data lacks "future" observations, DTS utilizes one-sided kernels. While traditional smoothing looks at data both before and after a time point, DTS successfully adapts these techniques to provide accurate "right-now" estimates using only historical and current data. The framework also includes a data-driven choice for the optimal smoothing parameter ($\lambda$) that adapts if the underlying process becomes more volatile.
Dynamic Screening and FDR Control
A critical component of DTS is its ability to flag irregular streams through a multiple testing procedure. The framework incorporates a "warm-up" period—a baseline phase where all subjects are assumed to behave normally. This period allows the model to empirically learn the noise structure of the data, which is more effective than assuming a theoretical distribution (like a Gaussian curve) that rarely fits real-world sensor data. This data-driven thresholding ensures that the False Discovery Rate (FDR) remains controlled even as millions of tests are performed over time.
Results and Applications
The authors validated DTS using both synthetic datastreams and the Intern Health Study (IHS), which tracked 1,565 medical interns over 182 days.
Performance Metrics
- Computational Speed: In simulations with 800 streams and 4,800 time points, DTS processed the data in approximately 68 seconds, compared to over 3.5 hours for traditional methods like HAC.
- Estimation Accuracy: DTS achieved significantly lower Root-Mean Squared Error (RMSE) in parameter estimation compared to pooled averages, particularly in the presence of irregular streams.
- Reliability: The screening process maintained the target FDR (0.1) across various signal patterns, whereas competing methods often experienced spikes in error rates.
Real-World Utility: The Intern Health Study
When applied to the IHS dataset, DTS successfully mapped how the positive impact of sleep and physical activity on mood fluctuated throughout the residency year. Crucially, the framework identified specific days where individual interns deviated significantly from their peers, potentially signaling high-stress episodes or mental health challenges that require intervention.
Limitations and Future Directions
While DTS represents a significant step forward, several areas for future research remain:
- Sub-grouping: The current model assumes a shared underlying structure for all "regular" streams. Future iterations could incorporate clustering to account for diverse sub-populations.
- Jump Detection: The smoothing approach is optimized for gradual changes. Detecting sudden "jumps" or sharp breaks in behavior may require comparing right-sided and left-sided kernels.
- Complex Correlation: Incorporating subject-specific auto-correlation structures into recursive updates remains a technical challenge.
In conclusion, DTS provides a robust, memory-efficient, and scalable solution for real-time statistical inference, offering a powerful tool for researchers working with the "indefinitely long" datastreams of the modern era.
Summary updated