Abstract
This paper presents a new supervised classification algorithm for remotely sensed hyperspectral image (HSI) which integrates spectral and spatial information in a unified Bayesian framework. First, we formulate the HSI classification problem from a Bayesian perspective. Then, we adopt a convolutional neural network (CNN) to learn the posterior class distributions using a patch-wise training strategy to better use the spatial information. Next, spatial information is further considered by placing a spatial smoothness prior on the labels. Finally, we iteratively update the CNN parameters using stochastic gradient decent (SGD) and update the class labels of all pixel vectors using an alpha-expansion min-cut-based algorithm. Compared with other state-of-the-art methods, the proposed classification method achieves better performance on one synthetic dataset and two benchmark HSI datasets in a number of experimental settings.
Introduction
Hyperspectral sensors capture images across hundreds of contiguous spectral bands, providing a rich "spectral signature" for every pixel. Classifying these pixels—identifying specific types of vegetation, soil, or urban materials—is a core task in remote sensing. Historically, methods relied purely on spectral data, often ignoring the spatial reality that neighboring pixels typically belong to the same class. While recent deep learning methods like Convolutional Neural Networks (CNNs) have improved performance by extracting features from local spatial patches, they often lack a global mechanism to explicitly enforce spatial consistency across the entire image map. This research addresses this gap by integrating the discriminative power of deep learning with the structural priors of Markov Random Fields (MRFs) into a single, iteratively optimized Bayesian framework.
Methodology
The proposed framework formulates the classification task as a Bayesian inference problem, solved through a two-part, iteratively updated architecture.
Discriminative CNN
Instead of flattening the data and losing spatial geometry, the model feeds 3D image patches ($k \times k \times d$) directly into a CNN. The CNN extracts joint spectral-spatial features and outputs initial class probabilities for the central pixel of each patch. The architecture, shown in Figure 1, utilizes 3D convolutional filters to preserve the inherent spatial relationships of the raw data.
MRF Spatial Prior and Iterative Optimization
An MRF is applied over the entire image to enforce a spatial smoothness prior. It acts as a penalty function, encouraging neighboring pixels to share the same label and smoothing out noisy, isolated predictions. The authors demonstrated that this MRF-based regularization significantly outperforms simpler post-processing techniques like median filtering or majority voting. Because optimizing the joint objective directly is computationally intractable, the authors employ an alternating optimization strategy.
As illustrated in Figure 2, the process involves:
- Training the CNN using stochastic gradient descent (SGD).
- Using the CNN's output as the data term for the MRF.
- Solving the MRF using an $\alpha$-expansion min-cut algorithm to obtain updated labels.
- Retraining the CNN using these newly smoothed labels.
This synergy creates a positive feedback loop: the CNN learns better features from the "cleaned up" labels provided by the MRF, which in turn allows the MRF to make better global smoothing decisions.
Experimental Results
The method was evaluated on standard real-world benchmarks:
- AVIRIS Indian Pines: A challenging dataset (145x145 pixels, 220 bands, 16 classes) with mixed pixels and imbalanced labels. Using 10% training data, the CNN-MRF achieved an Overall Accuracy (OA) of 96.12%, a ~2% boost over the CNN alone.
- ROSIS Pavia University: An urban land cover dataset (610x340 pixels, 103 bands, 9 classes). With only 40 samples per class, the method achieved an OA of 96.18%.
The proposed CNN-MRF method consistently outperformed both classical regularized methods (like SVM-GC) and recent deep learning models (like SS-DCNN and DC-CNN). Tracking accuracy across epochs showed that OA continues to steadily improve as the MRF graph-cut updates the labels, proving the value of the iterative feedback loop.
Conclusion
This work demonstrates that combining deep learning with graphical models significantly improves HSI classification by effectively capturing both spectral and spatial dependencies. While the iterative process increases computational cost compared to purely feed-forward networks, the gains in accuracy are substantial. Future work will explore unsupervised settings, generative models like VAEs or GANs, and dimensionality reduction techniques to improve computational efficiency on large-scale datasets.
Summary updated