DynamicsAndNeuralSystems/catch22
catch22: CAnonical Time-series CHaracteristics
What it solves
Many time-series tasks need to summarize a sequence of numbers into a small set of meaningful numbers. Typical toolboxes compute thousands of features, which is slow and can overfit. catch22 solves this by providing a fixed set of only 22 features that were specifically chosen for their high classification performance across 93 real-world problems. This makes feature extraction fast, reproducible, and less prone to redundancy.
How it works
catch22 computes 22 different statistics that capture key dynamic properties of a time series, such as autocorrelation, distribution shape, extreme events, scaling behavior, and predictability. Each feature has a precise mathematical definition that exactly matches the corresponding feature from the hctsa toolbox (v3.0.0). The core implementation is in C, with wrappers for Python, R, Julia, and MATLAB. Before computing the 22 features, the series is z-scored by default, so the features are insensitive to mean and variance. If those matter, you can use catch24, which adds the mean and standard deviation. For cases where a feature cannot be estimated (e.g., constant series, too-short series), catch22 returns a fixed boundary value instead of NaN, unless masking is disabled. The output is a list of feature values, names, and computation times.
Who it's for
This is for anyone working with time series data who needs a reliable, fast, and compact way to turn raw sequences into numeric summaries. It is especially useful for researchers and data scientists doing classification, clustering, or anomaly detection on temporal measurements, and for those who want to replicate hctsa results without running the full toolbox. The multi-language support makes it easy to integrate into existing workflows in Python, R, Julia, or MATLAB.
Highlights
- Only 22 features, selected for high discriminative power from over 7000 candidates.
- Implemented in C with native bindings for Python, R, Julia, and MATLAB.
- Each feature exactly reproduces its hctsa v3.0.0 definition, verified to a relative tolerance of 10^-9.
- Missing features are masked with boundary values by default, so you always get 22 numbers (or 24 with catch24).
- Can be used from the command line or via a simple API call, e.g.,
catch22_all(x, catch24=True)in Python.
Related
- Project
- Project
- Project
- Project