Revisiting Backdoor Attacks on Time Series Classification in the Frequency Domain

Yuanmin Huang, Mi Zhang, Zhaoxiang Wang, Wenxuan Li, Min Yang

Introduction

Time series classification (TSC) is a critical component in modern infrastructure, powering applications from power grid monitoring and stock market forecasting to health tracking in wearable devices. As the machine learning community increasingly relies on third-party model hubs, the risk of backdoor attacks has grown significantly. In these attacks, a malicious actor embeds a hidden trigger into a model during training. The model performs normally on clean data but misclassifies inputs containing the specific trigger into a target class chosen by the attacker.

Overview of a backdoor attack where poisoned samples with a specific trigger cause the model to output a target label.

While backdoor attacks are well-studied in computer vision (CV) and natural language processing (NLP), they often fail when directly applied to time series data. Existing methods that use simple "patches" or computationally expensive generative models often result in low attack success rates or significant performance degradation on clean data. This research introduces FreqBack, a novel attack framework that leverages frequency domain analysis to create highly effective and efficient backdoors.

Methodology: The FreqBack Framework

The core insight behind FreqBack is that deep neural networks (DNNs) process time series data through specific frequency lenses. Instead of treating trigger generation as a simple spatial perturbation, FreqBack approaches it as a signal processing challenge.

1. Frequency Heatmap Estimation

The researchers first identify which frequency bands a specific model is most sensitive to. By applying the Discrete Fourier Transform (DFT) to the input data and systematically perturbing different frequency components, they generate a "frequency heatmap." This map highlights the "sweet spots"—the frequencies the model relies on most heavily for its classification decisions.

2. Guided Trigger Generation

Using the frequency heatmap, FreqBack optimizes a trigger to specifically target these sensitive bands. This alignment ensures that the trigger is highly influential to the model's internal representations while remaining nearly invisible in the time domain.

3. Iterative Finetuning

The attack employs an iterative process to embed the backdoor. By co-optimizing the trigger and the model weights, FreqBack ensures the backdoor is deeply integrated without sacrificing the model's accuracy on legitimate, clean samples.

Experimental Evaluation

The effectiveness of FreqBack was tested across eight diverse datasets, including IoT device data (ElectricDevices), health monitoring (Epilepsy, Eye), and financial data (Stock). The study evaluated five different model architectures: LSTM, CNN, TCN, DynamicConv, and BiRNN.

Architectural Sensitivity

A key finding of the study is that different architectures exhibit distinct "frequency signatures." For instance, RNN-based models like LSTMs are predominantly sensitive to low-frequency perturbations, whereas CNNs and Self-Attention models are more susceptible to mid-to-high frequency changes. Previous attacks often failed because their triggers were "frequency-mismatched"—adding high-frequency noise to a model that primarily attends to low-frequency trends.

Frequency sensitivity heatmaps across different model architectures and perturbation scales.

Key Results

  • Superior Performance: FreqBack achieved an Attack Success Rate (ASR) exceeding 90% across all tested architectures and datasets.
  • Efficiency: The method is remarkably fast. Compared to the state-of-the-art TimeTrojan attack, FreqBack is approximately 3,000x faster, reducing trigger generation time from hours to seconds (e.g., 19 seconds vs 34 hours on the UWave dataset).
  • Stealth and Robustness: Because the triggers are precisely targeted, they require minimal perturbation, making them difficult to detect in the time domain. Furthermore, the attack proved resilient against standard defenses like Fine-pruning and Neural Cleanse.

Conclusion

FreqBack demonstrates that the frequency domain is a critical, yet previously overlooked, dimension for understanding and attacking time series models. By aligning triggers with a model's architectural frequency sensitivity, attackers can create backdoors that are both highly effective and extremely efficient. These findings underscore the need for new, frequency-aware defense mechanisms to secure the next generation of time series classification systems.

Summary updated

BibTeX
@inproceedings{huang2025revisiting,
  author = {Yuanmin Huang and Mi Zhang and Zhaoxiang Wang and Wenxuan Li and Min Yang},
  title = {{Revisiting Backdoor Attacks on Time Series Classification in the Frequency Domain}},
  booktitle = {The Web Conference},
  year = {2025},
}
Figure