Graph-Weighted Contrastive Learning for Semi-Supervised Hyperspectral Image Classification
Yuqing Zhang, Qi Han, Ligeng Wang, Kai Cheng, Bo Wang, Kun Zhan1. School of Information Science and Engineering, Lanzhou University2. Key Laboratory of AI and Information Processing, Hechi University3. School of Artificial Intelligence and Smart Manufacturing, Hechi University https://github.com/kun · 2025
Read Graph-Weighted Contrastive Learning for Semi-Supervised Hyperspectral Image Classification by Yuqing Zhang, Qi Han, Ligeng Wang, Kai Cheng, Bo Wang, Kun Zhan1. School of Information Science and Engineering, Lanzhou University2. Key Laboratory of AI and Information Processing, Hechi University3. School of Artificial Intelligence and Smart Manufacturing, Hechi University https://github.com/kun (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2503-15731.txt.
Introduction
Yuqing Zhang, Qi Han, Ligeng Wang, Kai Cheng, Bo Wang, and Kun Zhan present a 2025 method for sorting the pixels of hyperspectral images, which record many narrow color bands per pixel. Most past methods first cut the image into blocks called superpixels and lean on those blocks to learn from few labels. Bad block edges, though, poison the sort for the pixels near them.
Their method skips blocks entirely and lets neural networks learn the image's traits head-on. A graph-weighted contrast scheme teaches the model from the labeled and unlabeled pixels together. It also trains on small batches of nodes at a time, which cuts computing needs and helps with new pixels. On three widely used data sets, the method beat the block-based baselines it was tested against.
Catalog record
| CREATOR | Yuqing Zhang, Qi Han, Ligeng Wang, Kai Cheng, Bo Wang, Kun Zhan1. School of Information Science and Engineering, Lanzhou University2. Key Laboratory of AI and Information Processing, Hechi University3. School of Artificial Intelligence and Smart Manufacturing, Hechi University https://github.com/kun |
|---|---|
| YEAR | 2025 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 47 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2503-15731
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
Graph-Weighted Contrastive Learning for Semi-Supervised Hyperspectral Image Classification Yuqing Zhang, Qi Han, Ligeng Wang, Kai Cheng, Bo Wang, Kun Zhan1. School of Information Science and Engineering, Lanzhou University2. Key Laboratory of AI and Information Processing, Hechi University3. School of Artificial Intelligence and Smart Manufacturing, Hechi University https://github.com/kunzhan/semiHSI Abstract Most existing graph-based semi-supervised hyperspectral image classification methods rely on superpixel partitioning techniques. However, they suffer from misclassification of certain pixels due to inaccuracies in superpixel boundaries, i.e . , the initial inaccuracies in superpixel partitioning limit overall classification performance. In this paper, we propose a novel graph-weighted contrastive learning approach that avoids the use of superpixel partitioning and directly employs neural networks to learn hyperspectral image representation. Furthermore, while many approaches require all graph nodes to be available during training, our approach supports mini-batch training by processing only a subset of nodes at a time, reducing computational complexity and improving generalization to unseen nodes. Experimental results on three widely-used datasets demonstrate the effectiveness of the proposed approach compared to baselines relying on superpixel partitioning. 1 Introduction Graph transductive learning [ 4 , 31 ] , based on graph spectral theory [ 5 ] , offers strong transductive capability. Due to the graph transductive capability in semi-supervised learning, many graph-based methods [ 4 , 22 , 32 , 28 , 25 , 16 , 27 , 11 , 18 ] have been developed for semi-supervised hyperspectral image (HSI) classification. Existing graph-based semi-supervised HSI classification algorithms [ 26 ] are subject to three fundamental limitations: (1) Constructing graphs with image pixels as nodes is challenging due to the computational and storage requirements of large-scale graph matrices; (2) consequently, graphs are often built using superpixels, which limits performance as misclassified pixels can be grouped within the same superpixel; and (3) implementing graph-based HSI classification algorithms in mini-batch training is difficult, as they typically require all nodes to be processed together. Intuitively, the most straightforward approach [ 18 , 10 ] is to construct the graph using HSI pixels as nodes, as shown in Fig. 1 (a). However, HSI contains a large number of pixels, which presents significant challenges for training neural networks. Hong et al . [ 10 ] addressed this issue by proposing miniGCN, which samples subgraphs from the complete graph to enable mini-batch training. However, their graph construction approach relies solely on pixelwise spectral information to calculate edge weights, overlooking the pixel-spatial information that is crucial for accurate HSI classification. In recent years, there has been a growing trend toward constructing smaller graphs at the superpixel level for HSI classification [ 11 , 29 , 28 , 16 , 27 , 22 , 32 , 25 ] , as shown in Fig. 1 (b). This involves first dividing the HSI into multiple superpixels, with superpixel node features being updated during training. The most commonly used superpixel segmentation algorithms include Simple Linear Iterative Clustering (SLIC) [ 1 ] and Entropy Rate Superpixel (ERS) [ 15 ] . Yu et al . [ 29 ] used SLIC [ 1 ] to roughly divide HSI into many superpixels to reduce the computational burden. Jiang et al . [ 13 ] constructed a multi-scale spectral-spatial graph based on ERS [ 15 ] . In addition, Wan et al . [ 25 ] used a superpixel-induced graph, which is transformed from the original 2D image grids. In HSI classification, finer image partitioning leads to smaller superpixel sizes, which are more conducive to accurate pixel-level classification. Consequently, HSI is often segmented into thousands of superpixels. However, since adjacent pixels from different classes are grouped into the same superpixel, pixel-wise missegmentation is inevitable, which constrains classification performance. Figure 1 : Different approaches to applying graphs in semi-supervised HSI classification include: (a) Pixel-level graph has high computational and storage requirement; (b) Superpixel-level graph often suffers from pixel misclassification due to inaccuracies in superpixel partitioning; (c) Our proposed GWCL method eliminates the need for superpixel partitioning and supports mini-batch training, offering a more efficient and accurate solution. Considering the limitations of existing graph-based semi-supervised HSI classification methods, we propose a novel graph-weighted contrastive learning (GWCL) approach that eliminates the reliance on superpixel partitioning and directly utilizes neural networks to learn HSI representations, as illustrated in Fig. 1 (c). At the core of our approach is a newly defined graph-weighted contrastive loss, designed to enhance pixel-wise feature learning. This loss is derived from maximizing the lower bound of mutual information, which captures nonlinear statistical dependencies between variables, serving as a measure of true relationships. To boost classification performance, our approach encourages the encoder to learn features that highlight similarities within the same class while distinguishing between different classes. By maximizing mutual information, we enhance the model’s ability to learn pair-wise similarity between positive pairs [ 21 , 3 , 24 , 9 ] , enabling the use of rich supervisory signals from large volumes of unlabeled pixels. In our approach, we assign pair-wise weights based on the graph structure, using these weights to determine the similarity between positive pairs, as pixels connected by an edge are considered positive pairs. These weights quantify the similarity between pixel representations, effectively capturing the probability that they belong to the same class. By employing this soft, pair-wise weight construction method, the model becomes less sensitive to low-quality positive pairs, relying more on high-quality pairs, which significantly enhances its overall performance. Additionally, to fully leverage both pixel-spectral and pixel-spatial information, we construct a global graph with pixels as nodes. Recognizing that traditional methods often overlook pixel-spatial information in graph construction, our approach incorporates both pixel-spectral and pixel-spatial similarities when calculating edge strengths. Given the computational challenges associated with pixel-level graph matrices, our approach is designed to support mini-batch training, enabling the use of the graph matrix during training while optimizing computational resource usage. GWCL processes pixels directly throughout the entire process, without relying on superpixel partitioning. This approach not only reduces computational costs but also effectively applies the graph matrix during training. Extensive experiments demonstrate that GWCL outperforms a set of related methods, showcasing its superior performance. The contributions of our approach are summarized as follows. • We introduce a novel graph-weighted contrastive learning method for semi-supervised HSI classification, featuring a newly defined graph-weighted contrastive loss derived from maximizing the lower bound of mutual information. • Our approach supports mini-batch training and inference by processing only a subset of nodes, whereas most existing methods require all nodes from the graph to be present during training. This not only reduces computational complexity but also facilitates the use of pair-wise graph weights during the training process. • Experiments on three widely used datasets demonstrate that, under the same selection criteria for labeled pixels, GWCL outperforms methods based on superpixel-level graph HSI classification baselines. The rest of this paper is organized as follows. In Section 2 , we review related work on graph-based methods for HSI classification. Our proposed approach, Graph-Weighted Contrastive Learning, is introduced in Section 3 . The experimental results are presented in Section 4 . Finally, Section 5 provides the conclusion. 2 Related Work In this section, we review graph-based HSI classification methods from two perspectives: pixel-level graph-based and superpixel-level graph-based methods. Based on recent research findings,