CPSC: Conformal Prediction With Shrunken Centroids for Efficient Prediction Reliability Quantification and Data Augmentation, a Case in Alternative Herbal Medicine Classification With Electronic Nose

Li Liu, Xianghao Zhan, Xikai Yang, Xiaoqing Guan, Rumeng Wu, Zhan Wang, Zhiyuan Luo, You Wang, Guang LiIEEE Trans. Instrumentation & Measurement 2022 · DOI

TL;DR

This paper introduces CPSC, a novel conformal prediction framework that improves prediction accuracy and reliability quantification for high-dimensional data. By regularizing class centroids, CPSC offers significant speedups and better performance in classifying herbal medicines using an electronic nose, outperforming the traditional CPKNN method.

What Problem Does This Paper Address?

In machine learning, especially in critical applications like medical diagnosis, the reliability of predictions is as crucial as their accuracy. Traditional methods often struggle with high-dimensional data, leading to increased variance, bias, and computational costs. Conformal prediction (CP) offers a robust way to quantify prediction reliability, but existing CP methods like CPKNN face challenges with high dimensionality due to the "curse of dimensionality" and computationally intensive distance calculations. This paper addresses the need for a more efficient and accurate CP framework that can handle high-dimensional data effectively, particularly in complex classification tasks like identifying herbal medicines.

Methods

The core innovation is the Conformal Prediction with Shrunken Centroids (CPSC) framework. CPSC builds upon the idea of shrunken centroids (SC), a technique that regularizes class centroids by attenuating irrelevant features and shrinking the sample space. This approach aims to:

  • Reduce dimensionality: By shrinking the influence of less informative features.
  • Improve computational efficiency: By using class centroids as references instead of all individual data points.
  • Enhance prediction reliability: By creating a more compact and robust representation of class information.

CPSC integrates this shrunken centroid mechanism into the conformal prediction framework. It defines a nonconformity measurement that leverages the shrunken centroids to evaluate how "strange" a new sample is compared to the training data. This allows for the generation of prediction regions with guaranteed confidence levels. The paper also explores two main tasks:

  1. Offline Prediction: Evaluating CPSC and CPKNN on a fixed dataset for accuracy, reliability, and runtime.
  2. Online Prediction with Data Augmentation: Using the reliability information from CPSC and CPKNN to filter unlabeled data and augment the training set, then assessing the impact on classification accuracy.

Datasets

The study utilizes a dataset of 12 categories of alternative herbal medicines classified using a self-assembled electronic nose system. This system comprises 16 TGS sensors. The raw sensor signals are processed to extract 128 features per sample. The dataset consists of 600 samples in total (12 categories x 50 samples each). For evaluation, the dataset was randomly split into training, validation, and testing sets with a ratio of 4:1:1 for offline prediction, and 1:2:1:1 for online prediction (training, active/unlabeled, validation, testing).

Key Insights and Ideas

  • Shrunken Centroids for Conformal Prediction: The paper demonstrates that integrating the shrunken centroids concept into conformal prediction effectively addresses the limitations of traditional CP methods in high-dimensional settings.
  • Improved Reliability-Accuracy Trade-off: CPSC consistently shows that as prediction credibility increases, accuracy also increases, and CPSC achieves higher accuracy than CPKNN at similar credibility levels. This means CPSC provides more trustworthy predictions.
  • Efficient Data Augmentation: CPSC's ability to filter unlabeled data based on high credibility leads to more effective data augmentation, resulting in a statistically significant improvement in prediction accuracy compared to CPKNN, especially at higher credibility thresholds.
  • Balanced Augmentation: CPSC tends to augment data in a more balanced manner across classes, whereas CPKNN can lead to unbalanced augmentation, potentially favoring certain classes.
  • Computational Advantage: CPSC offers a dramatic reduction in computational cost, making it significantly faster than CPKNN, which is crucial for real-time applications or large datasets.

Key Results

  • Offline Prediction: CPSC achieved a higher median prediction accuracy (0.854) compared to CPKNN (0.763) with statistical significance (p < 0.05). Furthermore, CPSC was significantly faster, with a median runtime of 0.05 seconds compared to CPKNN's 7.5 seconds.
  • Online Prediction with Data Augmentation: CPSC consistently improved prediction accuracy across various credibility thresholds (ε). In contrast, CPKNN showed improvement only within a specific range of ε (0.4-0.7) and even experienced accuracy declines at higher thresholds (ε=0.9).
  • Prediction Dynamics: CPSC generally produced more singleton predictions (single predicted label in the region) and accepted more augmented samples, indicating a more confident and robust prediction process.

Limitations and Future Work

The authors acknowledge several limitations and suggest future research directions:

  • Comparison with Advanced CP Frameworks: The study primarily compares CPSC with CPKNN. Future work could involve comparing CPSC with more advanced CP frameworks like CPSVM and CP-LSTM, which might offer further improvements.
  • Feature Engineering: The study used a specific set of 128 features. CPSC's advantages might be further amplified with different feature sets, especially for datasets with even higher dimensionality.
  • Parameter Tuning: The effectiveness of CPSC relies on proper tuning of its parameters (shrinkage threshold Δ and temperature T). The paper suggests that these parameters can be adjusted based on user expertise and domain knowledge to calibrate reliability.
  • Threshold Selection for Augmentation: The paper highlights the importance of selecting a proper interval for the credibility threshold (ε) to balance the quality and quantity of augmented data. Further research could explore optimal strategies for this selection.

Summary updated

BibTeX
@article{liu2022cpsc,
  author = {Li Liu and Xianghao Zhan and Xikai Yang and Xiaoqing Guan and Rumeng Wu and Zhan Wang and Zhiyuan Luo and You Wang and Guang Li},
  title = {{CPSC: Conformal Prediction With Shrunken Centroids for Efficient Prediction Reliability Quantification and Data Augmentation, a Case in Alternative Herbal Medicine Classification With Electronic Nose}},
  journal = {IEEE Trans. Instrumentation \& Measurement},
  year = {2022},
  doi = {10.1109/tim.2021.3134321},
}
Figure