Abstract
Measuring distances between probability distributions is a cornerstone of statistical analysis and machine learning. While the Wasserstein distance (or Earth Mover’s Distance) offers robustness through its weak continuity, its standard application assumes linear relationships within the data space. This paper introduces the Kernel $L^2$-Wasserstein Distance (KWD), which leverages the "kernel trick" to compute Wasserstein distances in high-dimensional, non-linear feature spaces. Applied to the detection of dental artifacts in CT scans, KWD significantly outperforms classical linear metrics, providing a powerful tool for analyzing complex, corrupted datasets.
Introduction
The ability to distinguish between "clean" and "noisy" data is critical in fields like medical imaging, where artifacts can obscure diagnostic information. Traditional metrics like Kullback-Leibler (KL) divergence often struggle with noise sensitivity and discontinuity. The Wasserstein distance provides a more robust alternative by measuring the minimum cost to transform one distribution into another. However, real-world features—such as those extracted from medical images—often exhibit highly non-linear patterns that linear Wasserstein metrics fail to capture. This work addresses this limitation by deriving a computationally efficient way to apply the Wasserstein metric within a kernel space.
Methodology
The core innovation of this work is the derivation of the Kernel $L^2$-Wasserstein Distance (KWD). The approach follows several key steps:
- The Kernel Trick: Instead of explicitly mapping data to a high-dimensional space, the authors utilize a kernel function (specifically the Radial Basis Function) to compute similarities, avoiding the "curse of dimensionality."
- Gaussian Approximation: By treating distributions in the kernel space as Gaussians, the authors utilize the known closed-form solution for the $L^2$-Wasserstein distance between Gaussian distributions.
- Mathematical Reformulation: The authors prove that the complex trace terms in the Gaussian Wasserstein formula—specifically the interaction between different covariance matrices—can be expressed entirely through the Kernel Gram Matrix ($K$) and centering matrices ($J$).
- Regularization: To address potential singularities in covariance matrices when features outnumber samples, a regularization term ($\rho$) is added via the Woodbury formula.
Experimental Evaluation
The proposed method was tested on a dataset of 1,164 axial CT slices from 44 head and neck cancer patients. Slices were categorized as "clean" (888) or "noisy" (276) based on dental artifacts. For each slice, 25 Gray-Level Co-occurrence Matrix (GLCM) texture features were extracted to represent the spatial pixel relationships. The researchers employed unsupervised hierarchical clustering to evaluate how effectively different distance metrics could separate the two classes without prior labeling.
Results and Discussion
The results demonstrate a stark contrast between kernel-based and linear methods. The Kernel Wasserstein Distance achieved a Chi-square statistic of 436, indicating exceptional cluster separation. In comparison, the standard Wasserstein distance achieved a mere 21, and the non-kernel KL divergence reached 91.
The effectiveness of the KWD approach is further visualized through distance matrix heatmaps and dendrograms. The KWD distance matrix reveals two distinct blocks corresponding to the clean and noisy clusters, which the unsupervised algorithm identified with an overall accuracy of 79.6% and a sensitivity of 97.1% for identifying noisy slices.
Interestingly, while KWD and Kernel KL (KKL) divergence showed identical statistical performance in this specific experiment, KWD offers a unique geometric interpretation that may prove more robust in other high-dimensional data scenarios where the "Earth Mover" interpretation is physically meaningful.
Conclusion
The Kernel Wasserstein Distance provides a robust mathematical bridge between Optimal Transport and Kernel Methods. By enabling the comparison of distributions in non-linear feature spaces, it overcomes the limitations of traditional linear metrics. While currently reliant on a Gaussian assumption in the kernel space, the method's success in medical artifact detection suggests broad potential applications in genomics, diverse imaging modalities, and other fields plagued by non-linear noise.
Summary updated