Abstract
Hyperspectral imagery (HSI) one-class classification aims to identify a single target class using only known positive data, significantly reducing annotation requirements. However, classifiers often struggle to balance overfitting and underfitting due to spectral distribution overlap and extreme class imbalance. This paper introduces HOneCls, a weakly supervised deep HSI one-class classifier. By incorporating a novel One-Class Risk Estimator, HOneCls enables a fully convolutional neural network (FCN) to perform robust classification even when targets are rare. Extensive experiments across 20 tasks demonstrate the framework's superior performance over traditional methods.
The Challenge: Overlap and Imbalance
In remote sensing, hyperspectral sensors capture rich spectral detail, theoretically allowing for the distinction of similar materials. However, traditional multi-class classification requires exhaustive labeling, which is often impractical. One-class classification (OCC) offers a solution by focusing only on a "positive" target class (e.g., a specific crop) while treating everything else as "unlabeled."
When applying OCC to hyperspectral data, two primary obstacles emerge:
- Distribution Overlap: Different species often exhibit nearly identical spectral signatures, blurring the boundary between target and background.
- Distribution Imbalance: Target classes frequently occupy only a tiny fraction of the total imagery, leading models to ignore them entirely.
Methodology: The HOneCls Framework
The researchers developed HOneCls to address these "killers" through several key innovations:
- One-Class Risk Estimator: This core component estimates the loss (risk) of the negative class by analyzing the difference between unlabeled data and positive samples, eliminating the need for negative labels.
- Adaptive "Flood Level": To prevent the model from overfitting on unlabeled data, the system uses positive risk as a baseline. This acts as a threshold that prevents the estimated negative risk from reaching nonsensical levels.
- Positive Representation Enhancement: To combat imbalance, a balancing factor ($\alpha_p$) gives rare positive classes more weight. Additionally, a dynamic modulating factor (inspired by Focal Loss) forces the network to focus on "hard" positive samples.
- FreeOCNet Architecture: The underlying model is an FCN featuring Spectral-Spatial Attention (SSA), allowing it to simultaneously process chemical "fingerprints" and spatial context.
Key Insights and Results
The study reveals that the failure of existing methods in HSI is often due to the "imbalance bottleneck." When a class is rare, the gradient signal from positive samples is drowned out by the background. While many researchers seek "unbiased" estimators, this work proves that a specifically biased estimator is more robust for deep learning as it prevents the model from diverging during training.
Performance Highlights
- Accuracy Leap: On the HongHu dataset, HOneCls achieved an average F1-score of 95.61, vastly outperforming the 33.77 score of the next best risk-estimation method.
- Solving the "Zero-Score" Problem: Traditional methods often fail completely (F1-score of 0.00) on extremely rare targets like carrots. HOneCls maintained scores above 93.00 in these scenarios.
- Few-Shot Robustness: The model remained stable even when training samples were reduced to as few as five, indicating high utility for real-world applications where labels are scarce.
Conclusion and Future Work
HOneCls represents a significant step forward in HSI analysis, though it currently requires a "class prior" (an estimate of the target's prevalence). Future research will focus on automatically estimating this prior from unlabeled data, potentially making the system a fully "plug-and-play" solution for satellite and drone imagery analysis.
Summary updated