STRIDE: Explainable AI and Drift Detection Framework
pip install stride-xai==0.3.0 Copy PIP instructions
A Python Toolkit for Concept Drift Detection, Characterization, and Explanation
Website • Live Dashboard • Springer Chapter • Paper (PDF) • Architecture • Quickstart • Citation
Concept drift in streaming environments degrades machine learning models when underlying data distributions evolve over time. Traditional drift detectors (e.g., DDM, EDDM, ADWIN) signal when classifier accuracy drops, but treat the model and data as black boxes—failing to explain how the distribution shifted or where in the feature space decision boundaries deteriorated.
STRIDE (STReam Insight and Drift Explanation) bridges this diagnostic gap. Presented at ECML PKDD 2026 (Demo Track), STRIDE is an open-source Python framework and interactive dashboard that orchestrates analytical signals across three concurrent layers:
Instead of triggering post-hoc explanations only after significant performance degradation, STRIDE executes a synchronous pipeline that processes incoming windows across all three layers in parallel. This design enables analysts to trace the emergence of drift and observe the evolution of model logic in real time.
Evaluates covariate shifts independent of the predictive model:
Tracks streaming model health and online error rates:
Explains the mechanics of detected drift within the classifier's feature space:
STRIDE includes a reactive Streamlit dashboard designed for interactive forensics and exploratory research.
streamlit run dashboard/app.py The application opens at http://localhost:8501.
STRIDE exposes a clean programmatic API under the stride namespace. After installation (see below), no sys.path manipulation is required:
from stride.datasets import HyperplaneDriftDataset from stride.xai.stats import StatisticalTestsDriftDetector, StatisticalTestType from stride.models import RandomForestModel # 1. Generate a synthetic streaming dataset with rotating hyperplane drift dataset = HyperplaneDriftDataset() X, y = dataset.generate( n_samples_before=1000, n_samples_after=1000, n_features=5, n_drift_features=2, drift_width=100, random_seed=42, ) # 2. Partition into reference (pre-drift) and detection (post-drift) windows X_ref, y_ref = X.iloc[:1000], y.iloc[:1000] X_det, y_det = X.iloc[1000:], y.iloc[1000:] # 3. Train a streaming classifier on the reference window model = RandomForestModel() model.fit(X_ref, y_ref) # 4. Detect and characterize distribution shifts via non-parametric statistical tests detector = StatisticalTestsDriftDetector(X_ref, y_ref, X_det, y_det) has_drift = detector.detect(StatisticalTestType.KolmogorovSmirnov) print(f"Drift detected: {has_drift}") print(f"Per-feature test outcomes: {detector.drift_flags}") Top-level convenience imports are also available directly from stride:
import stride model = stride.RandomForestModel() detector = stride.DescriptiveStatisticsDriftDetector(...) Installation Prerequisites Python 3.10, 3.11, or 3.12 Git From PyPI (Recommended for Users) Install the core package directly from PyPI:
pip install stride-xai Optional capability extras can be installed as needed:
pip install "stride-xai[all]" # All extras (visualizations, XAI, deep learning, dashboard) pip install "stride-xai[dashboard]" # Interactive Streamlit dashboard dependencies pip install "stride-xai[xai]" # SHAP and LIME explainers From Source (Development) Clone the repository:
git clone https://github.com/KubaCzech/STRIDE.git cd STRIDE Create and activate a virtual environment:
# Linux / macOS python3 -m venv .venv source .venv/bin/activate # Windows (PowerShell) python -m venv .venv .venv\Scripts\Activate.ps1 Install the package and its dependencies:
pip install --upgrade pip pip install -r requirements.txt pip install -e . The editable install (-e .) registers the stride package in your environment so that from stride.datasets import ... works without any sys.path manipulation.
Optional extras can be appended in brackets to install additional capability groups:
@inproceedings{nagorka2026stride, title = {{STReam Insight and Drift Explanation (STRIDE): A Python Toolkit for Concept Drift Detection and Explanation}}, author = {Nag{\'o}rka, Wojciech and Redmer, Micha{\l} and Czech, Kuba and Aksoy, Deniz and Stefanowski, Jerzy}, booktitle = {Machine Learning and Knowledge Discovery in Databases. Applied Data Science Track, Demo Track and Industrial Track (ECML PKDD)}, series = {Lecture Notes in Computer Science}, pages = {348--352}, year = {2026}, publisher = {Springer, Cham}, doi = {10.1007/978-3-032-37685-5_32}, url = {https://link.springer.com/chapter/10.1007/978-3-032-37685-5_32} } Authors & Acknowledgments Wojciech Nagórka • Poznań University of Technology Michał Redmer • Poznań University of Technology Kuba Czech • Poznań University of Technology Deniz Aksoy • Poznań University of Technology Jerzy Stefanowski • Poznań University of Technology Funding: The research by Jerzy Stefanowski was funded by the National Science Centre, Poland, under OPUS grant no. 2023/51/B/ST6/00545.
Project Website: https://michalredm.github.io/stride-website/
This project is licensed under the MIT License. See the LICENSE file for details.
Author: Deniz Aksoy, Kuba Czech, Wojciech Nagórka, Michał Redmer
all clustering dashboard deeplearning dev docs drift vis xai
concept-drift data-drift explainable-ai xai stream-learning drift-detection decision-boundary
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.




