Spikes as Detectors: Phase-Conditioned Spiking Dynamics for Time-Series Anomaly Detection
Abstract
Most time-series anomaly detectors ask whether an observation can be predicted or reconstructed. We ask a different question: can a detector’s own spiking dynamics become anomaly evidence? We study this question for periodic and quasi-periodic time series and propose SPIRE, a phase-conditioned spiking anomaly detector. SPIRE uses period-aware current formation to expose phase-aligned cross-period residuals to leaky integrate-and-fire (LIF) neurons. We call this conversion eventification. After residual injection, recurrence violations induce abnormal bursts, silences, or phase-shifted spike trains. SPIRE then constructs phase-conditioned normal templates of internal spike states and scores deviations in residual energy, firing-rate patterns, and burst/silence statistics as an evidence source read separately from output-space prediction or reconstruction errors. This separates the operational protocol, including causal current-step detection, one-step prediction, and non-causal reconstruction, from the source of anomaly evidence, namely output errors, internal spike states, or both. Under the official TSB-AD protocol, internal-state evidence is on par with output error on the multivariate split and complementary to it in fusion, and its benefit is regime-dependent. Two matched controls isolate the source of the gain. A ReLU network under an otherwise identical pipeline and a rate-matched stateless binary unit, which keeps the binarization and sparsity of LIF but removes its temporal dynamics, both score significantly lower on both splits. Trained from scratch, SPIRE reaches a VUS-PR of 0.409 on TSB-AD-U with output-error scoring and 0.355 on TSB-AD-M with hybrid scoring, competitive with the strongest from-scratch neural detectors. Phase-conditioned spiking dynamics can thus serve as a first-class, complementary anomaly evidence source for periodic time series, rather than merely an efficient computational substrate. Code is available at https://github.com/Ray-WM/SPIRE.