The Area of the Convex Hull of Sampled Curves: a Robust Functional Statistical Depth measure

Guillaume Staerman, Pavlo Mozharovskyi, Stéphan Clémençon

Abstract

This paper introduces ACH Depth, a novel statistical measure for functional data based on the area of their convex hulls. Traditional functional depth measures often rely on point-by-point averaging, which can fail to detect "shape anomalies" that deviate globally but remain near the mean on average. ACH Depth captures the global geometry of curves, offering exceptional robustness and sensitivity to complex anomalies. We evaluate the method on synthetic data and real-world benchmarks, demonstrating its superiority in ranking stability and anomaly detection.

Introduction

In the era of high-frequency sensors and IoT, data is increasingly represented as "functional data"—continuous curves or time-series. A fundamental task in functional data analysis is determining statistical depth, which quantifies how "central" or "representative" an observation is relative to a population. While deep observations represent typical behavior, shallow ones are identified as anomalies.

Existing functional depth measures are primarily "integral-based," calculating depth at discrete time points and averaging the results. This approach suffers from an "averaging effect," where a curve exhibiting wild oscillations (a shape anomaly) may be incorrectly labeled as normal if its average position remains near the mean. Furthermore, many current methods lack robustness to outliers in the training set.

Methodology: Area of the Convex Hull (ACH) Depth

The proposed Area of the Convex Hull (ACH) Depth shifts the focus from point-wise centrality to global geometric properties.

The Core Metric

The depth of a curve $x$ is defined by the ratio of the area of the convex hull of a random sample to the area of the hull when $x$ is added to that sample. If $x$ is central, it likely falls within the existing hull, resulting in a depth score near 1. Conversely, an outlier expands the hull significantly, causing the depth score to drop toward 0.

Computational Efficiency and Stability

Calculating the exact depth for all combinations is computationally prohibitive ($O(n^J)$). The authors utilize incomplete U-statistics, a Monte Carlo approach that averages results over a fixed number of random subsets ($K$). This ensures the algorithm scales to large datasets.

Convergence of ACH Depth scores as a function of subset size J and number of samples K.

As shown in Figure 1, the depth scores stabilize as the number of subsets $K$ increases. Interestingly, the authors found that comparing pairs of curves ($J=2$) provides sufficient ranking quality while maintaining low computational overhead.

Experimental Evaluation

The researchers evaluated ACH Depth using simulated data (Geometric Brownian Motion and smooth trigonometric curves) and real-world benchmarks including NIR spectra (Octane), NMR spectra (Wine), and Electro-oculogram (EOG) signals.

Simulated functional data with injected anomalies (location, isolated, and shape).

Key Results

  • Anomaly Detection: ACH Depth achieved a perfect detection rate (1.0) on the Octane and Wine datasets. On the complex EOG dataset, it significantly outperformed state-of-the-art methods, achieving a score of 0.73 compared to 0.55 for Functional Stahel-Donoho (FSDO).
  • Shape Sensitivity: By considering the area occupied by a curve, ACH is naturally sensitive to oscillations and spikes that integral-based methods miss.
  • Robustness: The measure remains stable even with up to 30% contamination in the training data, a critical feature for unsupervised learning.

Discussion and Conclusion

ACH Depth provides a nuanced, smoothly decreasing ranking of functional observations. While it departs from some classical depth axioms—such as "maximality at center" for certain distributions—the authors argue this better reflects the realities of functional data.

Future work includes optimizing computational scaling for very high-resolution curves (currently $O(p \log p)$) and exploring the use of ACH Depth in constructing "functional boxplots" for advanced data visualization.

Summary updated

BibTeX
@inproceedings{staerman2020area,
  author = {Guillaume Staerman and Pavlo Mozharovskyi and Stéphan Clémençon},
  title = {{The Area of the Convex Hull of Sampled Curves: a Robust Functional Statistical Depth measure}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2020},
}
Figure