Python Streaming Anomaly Detection (PySAD)
PySAD is an open-source python framework for anomaly detection on streaming multivariate data.
Features
Online Anomaly Detection
PySAD provides methods for online/sequential anomaly detection, i.e. anomaly detection on streaming data, where model updates itself as a new instance arrives.
Resource-Efficient
Streaming methods efficiently handle the limitied memory and processing time requirements of the data streams so that they can be used in near real-time. The methods can only store an instance or a small window of recent instances.
Streaming Anomaly Detection Tools
PySAD contains stream simulators, evaluators, preprocessors, statistic trackers, postprocessors, probability calibrators and more. In addition to streaming models, PySAD also provides integrations for batch anomaly detectors of the PyOD so that they can be used in the streaming setting.
Comprehensiveness
PySAD serves models that are specifically designed for both univariate and multivariate data. Furthermore, one can experiment via PySAD in supervised, semi-supervised and unsupervised setting.
User Friendly
Users with any experience level can easily use PySAD. One can easily design experiments and combine the tools in the framework. Moreover, the existing methods in PySAD are easy to extend.
Free and Open Source Software (FOSS)
PySAD is distributed under BSD License 2.0 and favors FOSS principles.
Installation
The PySAD framework can be installed via:
pip install -U pysad
Alternatively, you can install the library directly using the source code in Github repository by:
git clone https://github.com/selimfirat/pysad.git
cd pysad
pip install .
Required Dependencies:
- numpy>=1.18.5
- scipy>=1.4.1
- scikit-learn>=0.23.2
- pyod>=0.7.7.1
Optional Dependencies:
- rrcf==0.4.3 (Only required for pysad.models.robust_random_cut_forest.RobustRandomCutForest)
- PyNomaly==0.3.3 (Only required for pysad.models.loop.StreamLocalOutlierProbability)
- mmh3==2.5.1 (Only required for pysad.models.xstream.xStream)
- pandas==1.1.0 (Only required for pysad.utils.pandas_streamer.PandasStreamer)
Quick Links
- Github Repository
- Documentation
- PyPI Package
- Travis CI
- Azure Pipelines
- Circle CI
- Appveyor
- Coveralls
- License
Versioning
Semantic versioning is used for this project.
License
This project is licensed under the BSD License 2.0.
Citing PySAD
If you use PySAD for a scientific publication, we would appreciate citations to the following paper:
@article{pysad, title={PySAD: A Streaming Anomaly Detection Framework in Python}, author={Yilmaz, Selim F and Kozat, Suleyman S}, journal={arXiv preprint arXiv:2009.02572}, year={2020} }