Abstract
We propose a Kullback–Leibler divergence (KLD) filter to extract anomalies within data series generated by a broad class of proximity sensors, along with the anomaly locations and their relative sizes. The technique applies to devices commonly used in engineering practice, such as those mounted on mobile robots for nondestructive inspection of hazardous or other environments that may not be directly accessible to humans. The raw data generated by this class of sensors can be challenging to analyze due to the prevalence of noise over the signal content. The proposed filter is built to detect the difference of information content between data series collected by the sensor and baseline data series. It is applicable in a model-based or model-free context. The performance of the KLD filter is validated in an industrial-norm setup and benchmarked against a peer industrially adopted algorithm.
Introduction
In industrial inspection—such as a robot scanning the interior of a gas pipeline—sensors are frequently bombarded with noise. Distinguishing a structural defect, such as a hairline crack or a small pit, from random electronic or environmental "jitter" is a classic "needle in a haystack" problem.
Traditional anomaly detection methods typically rely on two pillars that often fail in real-world scenarios:
- Statistical Models: These methods assume noise follows a specific pattern, such as a Gaussian distribution. If the actual environmental noise is non-standard or non-stationary, the model fails.
- Fixed Thresholds: These require human operators to set a "cutoff" value. Signals exceeding this threshold are flagged as anomalies. However, setting these thresholds is tedious and often leads to a high rate of false alarms or missed defects in variable environments.
This research introduces a method that is both model-free (adapting to the data's actual distribution) and threshold-free (providing a relative map of information discrepancy rather than a binary yes/no).
Methodology: The KLD Filter
The core of the proposed approach is the application of Kullback–Leibler Divergence (KLD), also known as relative entropy. KLD is a measure from information theory that quantifies how much one probability distribution differs from a reference distribution.
The Sliding Window Approach
The algorithm processes sensor data by comparing local information to a global baseline:
- Global Baseline ($Q$): A probability mass function (PMF) is constructed from the entire dataset. Because anomalies are statistically rare, this global PMF effectively represents the "normal" noisy background of the environment.
- Local Window ($P$): A sliding window of size $(2l+1) \times (2w+1)$ moves across the data grid, centered on a point $\phi_{ij}$. This window captures the local distribution of measurements.
- Information Distance: The filter calculates the KLD between the local window ($P$) and the global baseline ($Q$).
By using a model-free histogram approach, the researchers represent the data distributions using discrete bins rather than fitting them to a curve. This allows the filter to handle complex, non-standard noise profiles without prior assumptions about the noise's statistical nature.
Experimental Validation
The filter was validated using a simulated industrial-norm setup consisting of a 2mm-thick pipe with a 400mm diameter. A laser proximity sensor with a 50 dB signal-to-noise ratio scanned the interior. The test environment included 10 specific anomalies:
- Through-holes and Blind Holes: Defects with diameters of 5, 10, and 15 mm, some penetrating the pipe wall entirely and others only partially.
- Structural Features: A 10mm-wide welding strip was included to test if the filter could distinguish between a known structural feature and a structural defect.
Key Results and Discussion
The KLD filter demonstrated exceptional performance across several metrics:
- Detection Accuracy: The filter successfully identified all 10 holes and the welding strip with zero false positives and zero false negatives.
- Relative Sizing: One of the most significant findings was that the magnitude of the KLD value correlates with the physical size and depth of the defect. Deeper through-holes created a larger "information discrepancy" against the background noise than shallower blind holes, allowing for relative depth estimation.
- Sensitivity: When benchmarked against standard entropy filters and Principal Component Analysis (PCA), the KLD measure proved more sensitive to subtle signal changes, making it superior for catching incipient or beginning-stage faults.
- Spatial Awareness: The sliding window approach allowed the filter to maintain high spatial resolution, preventing nearby defects from being blurred together in the final analysis.
Conclusion
The KLD filter offers a robust, model-free solution for anomaly detection in high-noise environments. By treating anomalies as "information surprises" rather than simple threshold violations, it provides a more nuanced and reliable map of structural integrity.
Future work will focus on automating the selection of window parameters ($l$ and $w$) and developing calibration pipelines to translate relative KLD values into absolute physical measurements, such as exact crack depth in millimeters.
Summary updated