Related Experiment Video
Updated: Aug 6, 2026

STFEEG-Tool: A Spatial-Temporal-Frequency EEG Analysis Tool for Motor Imagery Brain-Computer Interfaces
Published on: March 10, 2026
its2s: a Python package for two-stage interrupted time series analysis using machine learning
Lauren Blair Wilner1, Joan A Casey1,2,3, Stephen J Mooney1
1Department of Epidemiology, University of Washington School of Public Health, Seattle, WA, USA.
Abstract:
When randomized controlled trials are infeasible, researchers may leverage natural experiments for causal inference. Interrupted time-series (ITS) designs compare observed post-event trends to counterfactual predictions from pre-event data. Two-stage ITS designs use flexible models to generate optimized counterfactual predictions in the first stage, then estimate intervention effects by comparing observed to predicted outcomes in the second stage. Fitting high-dimensional versions of these models is challenging, requiring systematic infrastructure to ensure rigor and reproducibility. In response, we developed its2s, an open-source Python package implementing the two-stage ITS design with machine learning. its2s allows users to specify an intervention date and training/testing periods, select among built-in model architectures (e.g., Prophet-XGBoost, NeuralProphet), and generate confidence intervals via moving block bootstrap, preserving temporal autocorrelation in residuals. its2s layers defaults, configuration files, and runtime overrides to support workflows ranging from rapid default implementations to highly tailored analyses. We validated its2s using two case studies: a simulation with a 12% policy effect, recovering the true effect as 11.77%, and an analysis of the 2021 Pacific Northwest heat dome, finding 53% excess injury mortality over the following three weeks. its2s provides a flexible, reproducible framework for ITSbased quasi-experimental research, lowering barriers to rigorous machine learning-based counterfactual modeling.
Related Concept Videos
Statistical Software for Data Analysis and Clinical Trials
Comparing the Survival Analysis of Two or More Groups
Statistical Package for the Social Sciences (SPSS)
SPSS streamlines the process from data preparation to analysis and reporting. It is characterized by its user-friendly interface, which conceals...
Introduction To Survival Analysis
The primary goal of survival analysis is to estimate survival time—the time until a...
Steps in Outbreak Investigation
Statistical Analysis System (SAS)
Applications: SAS finds applications in numerous fields, including healthcare for clinical trial analysis, finance for risk assessment, marketing for customer data analysis, and...