- The paper presents a novel reservoir computing-based anomaly detection method that uses the ECDF of output weights to capture subtle regime shifts in nonlinear dynamical systems.
- The approach achieves higher sensitivity to minor parameter changes and noise compared to classical and deep-learning methods, with minimal computational overhead.
- Experimental results on Lorenz attractors and ECG data demonstrate the method’s effectiveness and generalizability for real-time, unsupervised anomaly detection.
Unsupervised Anomaly Detection in Nonlinear Dynamical Systems Using Reservoir Computers
Overview and Methodological Innovations
This paper presents an unsupervised, online anomaly detection algorithm for nonlinear dynamical systems based on reservoir computing (RC), with detection performed via a Kolmogorov-Smirnov (K-S) test on the empirical cumulative distribution function (ECDF) of the readout weights. Unlike prior approaches that use RC primarily for forecasting, this method leverages the trained output weights as a compact fingerprint for the underlying system dynamics. The algorithm operates by training a reservoir computer on sliding windows of data, collecting the ECDFs of the output weights to form a reference band, and then detecting deviations in new samples by comparing their ECDFs against this reference using a statistical test. This paradigm shift emphasizes interpretability and descriptive power of the readout layer and enables sensitivity to regime shifts that are visually or statistically indistinguishable via classical nonlinear measures or contemporary deep-learning anomaly detectors.
Experimental Evaluation: Benchmarking by Sensitivity and Efficiency
The proposed approach is benchmarked against classical nonlinear dynamical system measures (Lyapunov exponent, correlation dimension), deep-learning detectors (Graph Deviation Network [GDN], USAD), and the statistical ARIMA baseline across four distinct scenarios:
- Visually Indistinguishable Attractor Switches: The algorithm demonstrates near-instantaneous detection of regime changes between two Lorenz-like systems with visually indistinguishable attractors—impossible to distinguish reliably using GDN, USAD, or classical Lyapunov/correlation dimension within practical timescales. The RC detector achieves a persistent and stable anomaly detection response with minimal delay and computational overhead.
- Parametric Drift Detection: The RC-based detector resolves parameter changes (Δp∼1) in the Lorenz "p" parameter at sensitivities seven times finer than the best-performing deep-learning baseline (GDN), whose detection threshold is Δp∼7. This illustrates the RC approach's ability to flag subtle changes invisible to competing methods.
- Additive Observational Noise: The method reliably detects noise levels with signal-to-noise ratios up to 45 dB (signal ~ 30,000 times stronger than noise) and exhibits binary detection behaviors for even weaker noise. Deep-learning baselines fail to provide consistent anomaly signals in this regime.
- Clinical ECG Regime Change Detection: Applied to ventricular flutter detection in ECG recordings, the RC detector flagged pathological episodes with an F1 score of 0.70 in a fully unsupervised, online context—trained only on 8s of baseline data and without domain-specific tuning. This result, while not competitive with supervised ECG classifiers, illustrates the robustness and generalizability of the fingerprinting approach.
RC architecture consistently outperforms computationally expensive baselines in both sensitivity and efficiency: training times are reduced by orders of magnitude and no GPU acceleration is required, making the approach suitable for real-time and edge deployments.
Robustness and Generalization
A thorough hyperparameter sweep demonstrates robustness against reservoir size, regularization parameters, and training data coverage as quantified by the natural-measure coverage of chaotic attractors. The method proves stable across physically meaningful hyperparameter ranges, with failures only at extremes that are mechanistically interpretable (e.g., insufficient reservoir expressivity, excessive regularization).
The fingerprinting approach generalizes to structured variants of RC, such as Next Generation Reservoir Computing (NGRC)—which reduces randomness but retains sufficient readout complexity for stable ECDF resolution. In contrast, the minimal reservoir computer (minRC), with sparsely parametrized readouts, does not support reliable fingerprint-based anomaly detection because of instability in ECDF formation.
Practical and Theoretical Implications
This research establishes the output weight distribution of RCs as a statistically powerful and computationally efficient representation of dynamical regime, enabling rapid unsupervised detection of anomalies and regime shifts that evade both classical and modern deep-learning approaches. The method supports streaming, online operation and is inherently adaptable to resource-constrained settings. The ECDF-based approach is not limited to unsupervised detection—given labeled regime fingerprints, it could be extended to supervised classification of dynamical states.
The algorithm's sensitivity to regime changes in high-dimensional chaotic and real-world systems opens new avenues for RC-based analysis, supporting diagnostic tasks without reliance on prediction error or extensive labeled data. While current formulation does not localize anomalies to input features due to input mixing in classical RC, extensions based on more structured RC architectures could provide coordinate-wise diagnostic signals.
Limitations and Future Directions
Key limitations include the statistical, rather than physical, interpretation of coordinate-wise anomaly signals and difficulty in handling categorical data. Future research should address:
- Regime fingerprint behavior under slowly drifting baselines in non-stationary systems (rolling reference bands).
- Attribution of anomalies to specific input coordinates using structured RCs and more refined statistical tests.
- Extension to supervised regime classification and diagnostics in domains such as arrhythmia subtype identification.
- Application to high-dimensional, non-chaotic but nonlinear systems (e.g., industrial process monitoring).
Conclusion
This paper demonstrates that unsupervised regime detection in nonlinear dynamical systems can be achieved with unprecedented sensitivity and computational efficiency by leveraging the fingerprinting of reservoir computer output weights. The proposed method distinguishes visually and statistically indistinguishable attractors, resolves subtle parameter drift, flags weak noise, and identifies regime shifts in real physiological data—all with a simplicity and adaptability well-suited to practical deployment. The algorithm's generality advances the role of RCs beyond forecasting, situating the trained readout as a primary object for characterization and opens new directions for regime identification and anomaly localization in complex systems.
Citation: "Distinguishing indistinguishable attractors: Unsupervised anomaly detection with reservoir computers" (2606.21322)