TL;DR
This paper introduces the Optimal Sub-Pattern Assignment (OSPA) metric as a novel and versatile approach for Multiple Instance Learning (MIL) tasks like clustering, classification, and novelty detection. By effectively balancing feature and cardinality dissimilarities between sets, OSPA significantly improves performance over existing methods on various benchmarks.
What Problem Does This Paper Address?
Multiple Instance Learning (MIL) deals with data where information is organized into "bags" (sets or multi-sets of elements), and the label is associated with the entire bag, not individual elements. This is common in areas like document analysis (bag-of-words), image categorization (bag-of-visual-words), and 3D point cloud analysis. While MIL has seen progress, fundamental tasks like clustering, classification, and novelty detection for "point pattern" data (sets of points) have been less explored, especially concerning the choice of distance metrics. Existing set distance metrics like Hausdorff and Earth Mover's have limitations, such as insensitivity to cardinality or penalizing outliers too heavily. This paper aims to address these limitations by proposing a new, more flexible set distance metric for MIL.
Methods
The core contribution of this paper is the introduction and application of the Optimal Sub-Pattern Assignment (OSPA) distance to Multiple Instance Learning (MIL) tasks. OSPA is a set distance metric that offers tunable parameters to balance feature dissimilarity and cardinality differences between sets.
- OSPA Distance: Defined by Equation (4), OSPA considers the optimal assignment of elements between two sets, penalizing outliers and incorporating cardinality differences. Its key parameters, $p$ (outlier penalty) and $c$ (cutoff), allow for flexible adaptation to different applications.
- Clustering: The authors integrate OSPA with the Affinity Propagation (AP) algorithm. AP is an exemplar-based clustering method that automatically determines the number of clusters and is generally faster and more accurate than k-medoids. They compare OSPA with Hausdorff and Wasserstein distances within the AP framework.
- Classification: OSPA is incorporated into the k-Nearest Neighbors (k-NN) classifier. The paper proposes a method to learn the optimal OSPA cutoff parameter ($c$) from training data by minimizing the ratio of inter-class to intra-class dissimilarity, making it suitable even for small datasets.
- Novelty Detection: A non-parametric novelty detection approach is proposed using OSPA. A candidate point pattern is classified as novel if its distance to its nearest normal neighbor in the training set exceeds a learned threshold.
Datasets
The paper evaluates its proposed methods on a combination of simulated and real-world datasets:
- Simulated Datasets: Three distinct simulated datasets were generated to test different scenarios:
- Dataset (i): Features well-separated, cardinalities overlapping.
- Dataset (ii): Cardinalities well-separated, features overlapping.
- Dataset (iii): A mix of (i) and (ii).
- Texture Dataset: Images from the "T14 brick1", "T15 brick2", and "T20 upholstery" classes of the Texture images dataset were used. SIFT features were extracted and then compressed to 2D using PCA.
- StudentLife Dataset: WiFi scan data from smartphones of students was used. Each observation was a point pattern of WiFi access point IDs. The data was preprocessed to focus on frequently observed IDs and a limited number of locations.
Key Insights and Ideas
- OSPA's Versatility is Key: The OSPA distance's ability to balance feature and cardinality dissimilarities is its most significant advantage. This flexibility allows it to adapt to diverse MIL problems where either feature similarity or the number of elements plays a crucial role.
- Cardinality Matters: Unlike some traditional set distances, OSPA explicitly accounts for cardinality differences, which is crucial in many real-world scenarios (e.g., comparing transaction logs with different numbers of items).
- AP + OSPA for Clustering: Combining Affinity Propagation with OSPA provides an efficient and effective clustering solution that automatically determines cluster numbers and handles set data well.
- Learned Distances for Classification: The approach to learn the OSPA cutoff parameter from data is a powerful way to tailor the distance metric to the specific classification task, improving performance especially when training data is limited.
- Novelty Detection Benefits from OSPA: OSPA's ability to capture both feature and cardinality differences makes it a strong candidate for novelty detection, outperforming other methods when novelties differ in cardinality.
Key Results
- Clustering: OSPA, especially with moderate cutoffs, consistently outperformed Hausdorff and Wasserstein distances on simulated datasets, particularly when cardinality was a key discriminative factor. For the Texture dataset, OSPA also showed superior performance by effectively incorporating both feature and cardinality information.
- Classification: OSPA generally achieved higher accuracy than Hausdorff and Wasserstein distances across simulated datasets, especially when features overlapped and cardinality differences were significant. For the Texture and StudentLife datasets, OSPA also demonstrated strong performance, often achieving near-perfect classification.
- Novelty Detection: OSPA showed competitive or superior performance to Hausdorff and Wasserstein distances, particularly in scenarios where novelties differed significantly in cardinality from normal data. For instance, on simulated dataset (ii) (cardinality novelty), OSPA significantly outperformed the other methods.
Limitations and Future Work
- Parameter Tuning: While OSPA offers tunable parameters ($p$ and $c$), finding the optimal values can still require experimentation or cross-validation, especially for small datasets. The paper suggests methods for learning these parameters but acknowledges that cross-validation might not be suitable for very small training sets.
- Computational Cost: While AP is generally faster than k-medoids, computing pairwise distances for large datasets can still be computationally intensive.
- No Single Best Distance: The authors emphasize that no single distance metric is universally optimal for all applications. The choice of distance and its parameters should be guided by the specific characteristics of the data and the problem at hand.
- Future Work: The paper implicitly suggests further exploration of OSPA's parameter learning mechanisms and its application to other MIL tasks or more complex data structures. The authors also note that generalizations of the Hausdorff distance exist that avoid outlier penalties, hinting at potential avenues for comparison or integration.
Summary updated