Abstract
The main aim of this work is to develop and implement an automatic anomaly detection algorithm for meteorological time-series. To achieve this goal, we develop an approach to constructing an ensemble of anomaly detectors in combination with adaptive threshold selection based on artificially generated anomalies. We demonstrate the efficiency of the proposed method by integrating the corresponding implementation into the "Minimax-94" road weather information system.
Introduction: The Challenge of Sensor Data
Effective highway management during winter depends heavily on Road Weather Information Systems (RWIS). These systems utilize sensors to monitor road surface temperature, visibility, and frost, providing critical data to prevent accidents. However, these sensors operate in "aggressive" environments, subjected to extreme temperature swings, mechanical impacts, and connection errors.
Detecting anomalies in this context is difficult due to two primary factors:
- Heterogeneity: Anomalies vary significantly, from single "spikes" to long-term malfunctions. No single algorithm can reliably capture all types.
- The Threshold Problem: Most detection algorithms output a score rather than a binary label. Determining the optimal threshold to trigger an alarm is subjective, especially since labeled real-world anomaly data is scarce.
Methodology
The proposed framework addresses these challenges through a two-pronged approach: Ensemble Learning and Synthetic Anomaly Generation.
The Ensemble Framework
Rather than relying on a single model, the authors combine several "base learners" to create a more resilient consensus. The ensemble includes density-based models like Local Outlier Factor (LOF), tree-based models like Isolation Forest (IForest), and various statistical or regression models such as XGBoost, Multi-Layer Perceptrons (MLP), and One-Class SVM. Scores from these diverse models are aggregated using techniques like simple averaging or Logistic Regression to improve overall robustness.
Synthetic Anomaly Generation and Thresholding
The core innovation of this research is the use of synthetic data to solve the threshold problem. By leveraging domain knowledge of how sensors typically fail, the authors generate "artificial outliers" including single spikes, short-term erratic behavior, and long-term sensor drifts.
By injecting these synthetic anomalies into clean datasets, a "validation set" is created with known labels. The optimal threshold is then selected by maximizing the F1-score on this synthetic data. This allows for automated tuning in systems where labeled historical errors are unavailable.
Key Insights and Results
The study yielded several significant findings:
- Synthetic Data as a Proxy: Thresholds optimized on artificial anomalies were found to be remarkably close to the optimal thresholds for real-world anomalies.
- Ensemble Performance: The ensemble approach consistently outperformed individual models. On meteorological data, the ensemble achieved an F1-score of ~0.77, significantly higher than standalone models like LOF (0.50) or IForest (0.30).
- Real-World Application: Integrated into the "Minimax-94" system, the algorithm detected 75% of occurring anomalies with a manageable 20% false alarm rate, which is sufficient for operational use.
Conclusion and Future Work
While the system is robust, its performance is tied to the accuracy of the synthetic generation logic. Future work will focus on online aggregation for real-time statistical updates and multichannel detection to identify complex anomalies across multiple sensor types (e.g., temperature vs. humidity) simultaneously.
Summary updated