PySAD: A Streaming Anomaly Detection Framework in Python

Selim F. Yilmaz, Suleyman S. Kozat
9/5/2020
cs.LGstat.ML

Official code: selimfirat/pysad (322 stars, Python, BSD-3-Clause, last commit 2026-11-18).

Abstract

Streaming anomaly detection requires algorithms that operate under strict constraints: bounded memory, single-pass processing, and constant-time complexity. We present PySAD, a comprehensive Python framework addressing these challenges through a unified architecture.

Show full abstract

The framework implements 17+ streaming algorithms (LODA, Half-Space Trees, xStream) with specialized components including projectors, probability calibrators, and postprocessors. Unlike existing batch-focused frameworks, PySAD enables efficient real-time processing with bounded memory while maintaining compatibility with PyOD and scikit-learn. Supporting all learning paradigms for univariate and multivariate streams, PySAD provides the most comprehensive streaming anomaly detection toolkit in Python. The source code is publicly available at github.com/selimfirat/pysad.

View on arXivView PDF

Code Implementations(1)

selimfirat/pysadOfficial100%
BSD-3-Clause

Streaming anomaly detection in Python: online detectors (xStream, LODA, RS-Hash, Half-Space Trees, RRCF…) plus calibration and prequential evaluation for real-time data.

322104Python, Jupyter NotebookJun 5, 20202 weeks agoBSD-3-Clause
anomalyanomaly-detectionfraud-detectionhacktoberfestincremental-learning+13 more

Similar Papers

Cite this paper

@article{yilmaz2020pysad,
  title  = {PySAD: A Streaming Anomaly Detection Framework in Python},
  author = {Selim F. Yilmaz and Suleyman S. Kozat},
  year   = {2020},
  eprint = {2009.02572},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2009.02572}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2009.02572.svg)](https://codeofpaper.com/paper/2009.02572)

Discussion