Abstract
In many biological systems it is crucial to detect changes, as accurate as possible, in the parameters that govern their dynamics. In this work we propose a new method to perform an online automatic detection of such changes, making use of a well known nonlinear forecasting algorithm. The approach takes advantage of the characterization of an interval of a signal by the reconstruction of its phase space through time-delay embedding. To this end, the optimal delay and embedding dimension are estimated, and a method is proposed for determining the forecasting parameters, after which it is possible to predict future values of the studied signal. In this novel approach the method is used as a way of detecting changes in the dynamics of a system, given that the forecast is performed using a template of the signal where its parameters remain constant. At this point, the measure of the prediction error is used to detect a change in the dynamics of the system. We also propose a second estimator of this change, namely prediction failure, which is a stronger binary estimator of change in the dynamics. The results are analyzed by a cumulative sum algorithm (CUSUM) to obtain a detection point. In order to test their behavior, both methods are applied to deterministic discrete and continuos synthesized data, and to a simulated biological model.
Introduction
Many complex systems, particularly biological ones like the human brain or heart, are governed by nonlinear laws. These systems often exhibit chaotic behavior, where dynamics follow complex but deterministic rules. A significant challenge in biomedical engineering is the precise detection of when these underlying "rules" or parameters shift—for instance, identifying the subtle changes in brain activity that precede an epileptic seizure.
Traditional linear tools like Fourier analysis often fail in these contexts because they assume signals are composed of simple sine waves, which cannot capture the intricate geometry of chaotic attractors. This research proposes an automatic, online detection system designed to pinpoint these transitions by leveraging nonlinear forecasting as a diagnostic tool.
Methodology: Forecasting as a Diagnostic
The core innovation of this approach is using nonlinear forecasting not just to predict future values, but to measure how much the current system state has drifted from a known stable history. The process involves several key steps:
- Phase Space Reconstruction: Using time-delay embedding, a one-dimensional signal is transformed into a multi-dimensional "attractor" that represents the system's internal state.
- Template Library: A segment of the signal where parameters are known to be constant is used as a reference library.
- Detection Indices:
- Absolute Prediction Error ($e_n$): A continuous measure of the distance between the forecast (based on the library) and the actual observed signal.
- Prediction Failure ($E_n$): A binary indicator. If the current state is so novel that the library contains no similar neighbors within a search radius $\epsilon$, the forecast fails, signaling a significant dynamical shift.
- CUSUM Algorithm: A Cumulative Sum algorithm is applied to these indices to filter noise and automatically identify the exact moment the error trend shifts.
Experimental Results
The method was evaluated using three synthesized datasets representing diverse complex dynamics:
- Henon Map: A discrete-time chaotic system used to test abrupt parameter jumps. As shown in Figure 1, the system detected a change at $n=2011$, just 10 samples after the actual change at $n=2001$.
- Lorenz System: A continuous-time system used to simulate atmospheric-like dynamics. For this continuous flow, the detection point was identified at $n=8072$ for an actual change at $n=8000$ (see Figure 2).
- Sil’nikov-like Chaos: A model simulating brain activity, specifically petit-mal epilepsy. The algorithm successfully flagged a gradual transition centered at $n=6000$ at the point $n=6110$, demonstrating its capability with "fuzzy" real-world transitions.
Discussion and Conclusion
By working in reconstructed phase space, the method captures the underlying geometry of the system. A change in a physical parameter (such as a chemical concentration) alters the "shape" of the attractor, which is more readily detectable than shifts in raw time-series data. The introduction of "Prediction Failure" ($E_n$) provides a robust safeguard; while prediction error might fluctuate due to noise, a total failure to find matching states in the library is a powerful indicator of a new regime.
Future work will focus on optimizing parameter sensitivity (such as the search radius $\epsilon$) and testing the algorithm's robustness against the measurement noise and artifacts typical of real-world clinical EEG and ECG data.
Summary updated