A Novel Approach to Speed Up Hampel Filter for Outlier Detection

Outlier detection is a critical task in time series analysis, essential to maintaining data quality and allowing for accurate subsequent analysis. The Hampel filter, a decision filter that replaces outliers in a data window with the median, is widely used for outlier detection in time series due to its simplicity and effectiveness. While effective, its computational complexity, primarily due to the calculation of the Median Absolute Deviation (MAD), poses limitations for large-scale and real-time applications. This paper proposes a novel Hampel filter variant that replaces the MAD with an original estimator (mMAD) that retains statistical robustness but is computationally more efficient. This reduces the filter's computational complexity from O(N·wlogw) to O(N·w), where <i>N</i> is the data length and <i>w</i> the window size. The proposed variant significantly lowers processing time and resource consumption, making it especially suitable for large-scale and real-time data processing while preserving robust outlier detection performance.

Authors

Institutions

Publication Details

Journal
Sensors
Published
2025-05-25
DOI
https://doi.org/10.3390/s25113319
Citations
9
Primary Topic
Anomaly Detection Techniques and Applications
Type
article
Field-Weighted Citation Impact
22.33
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A Novel Approach to Speed Up Hampel Filter for Outlier Detection

Sara Roos Hoefgeest Toribio, Ignacio Álvarez, Mario Roos-Hoefgeest, Alejandro Garnung Menéndez
9 citations
Sensors
Anomaly Detection Techniques and Applications
22.33
article

A Novel Approach to Speed Up Hampel Filter for Outlier Detection

Sara Roos Hoefgeest Toribio, Ignacio Álvarez, Mario Roos-Hoefgeest, Alejandro Garnung Menéndez
article en
9 citations

Abstract

Outlier detection is a critical task in time series analysis, essential to maintaining data quality and allowing for accurate subsequent analysis. The Hampel filter, a decision filter that replaces outliers in a data window with the median, is widely used for outlier detection in time series due to its simplicity and effectiveness. While effective, its computational complexity, primarily due to the calculation of the Median Absolute Deviation (MAD), poses limitations for large-scale and real-time applications. This paper proposes a novel Hampel filter variant that replaces the MAD with an original estimator (mMAD) that retains statistical robustness but is computationally more efficient. This reduces the filter's computational complexity from O(N·wlogw) to O(N·w), where <i>N</i> is the data length and <i>w</i> the window size. The proposed variant significantly lowers processing time and resource consumption, making it especially suitable for large-scale and real-time data processing while preserving robust outlier detection performance.

SensorsVol. 25(11)
Universidad de Oviedo (ES)
Openalex Percentile: Top 1%
Anomaly Detection Techniques and Applications
22.33
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.