STUMPY computes matrix profiles efficiently so each subsequence in a series can be matched to its nearest neighbor for downstream mining.
Overview
STUMPY is a Python library focused on time series analysis through the matrix profile: for every subsequence in a series, it finds the closest matching subsequence elsewhere in the same data. That structure supports several standard mining tasks without hand-tuning each algorithm separately.
After the profile is computed, the library supports motif discovery, discord and anomaly search, shapelets, semantic segmentation, streaming updates, approximate profiles, time series chains, summarizing snippets, and pan matrix profiles for window-size choice, among related methods documented in tutorials and API references.
Implementations range from single-machine STUMP and multi-dimensional MSTUMP to distributed STUMPED and MSTUMPED via Dask, plus GPU-STUMP using Numba CUDA when devices are available. Performance work relies on Numba JIT compilation and is benchmarked across CPU core counts and GPU setups in the published tables.
Install via conda-forge, pip, pixi, or uv, with dependencies on NumPy, Numba, and SciPy following NEP 29 Python and NumPy support policy. The project is affiliated with NumFOCUS and publishes full documentation and hands-on tutorials.
Key features
- Matrix profile computation
- Motif and discord discovery
- Multi-dimensional time series
- Dask distributed STUMPED
- GPU acceleration via CUDA
- Semantic segmentation FLUSS
- Time series chains ATSC
- Numba JIT performance
Use cases
- Pattern discovery in sensor data
- Anomaly detection in series
- Segmenting regimes in logs
- Large-scale profile computation with Dask