Hyperspectral image (HSI) classification regarding vegetation is hampered by strong intra-class spectral variability and inter-class similarity, and commonly used random pixel splits can introduce spatial-context leakage that inflates test accuracy in patch-based models. To address these issues, we propose a classification framework that couples a leakage-free block partition (LFBP) strategy with class-aware multi-prototype contrastive loss (CAMP-CL). LFBP assigns non-overlapping spatial blocks to training/validation/test sets and reserves a buffer matched to the patch radius to prevent contextual overlap while keeping class distributions balanced. CAMP-CL represents each class with multiple learnable prototypes and performs supervised contrastive learning at the prototype level, encouraging compact yet multimodal intra-class embedding and improved inter-class separation. Experiments conducted on the Matiwan Village airborne HSI dataset under the LFBP protocol show that the proposed method can achieve 91.51% overall accuracy (OA) and 91.49% average accuracy (AA). Compared with the strongest baseline, supervised contrastive learning (SupCon), the proposed method yields consistent gains of 1.07 percentage points (pp) in both OA and AA while improving OA by 5.76 pp over the cross-entropy baseline. The results suggest that CAMP-CL is beneficial for addressing the challenges of HSI classification for fine-grained vegetation, while leakage-free evaluation protocols are important for obtaining more reliable performance estimates in practical settings.
Jia et al. (Sat,) studied this question.