Language-Aware Domain Generalization Network for Cross-Scene Hyperspectral Image Classification

Yuxiang Zhang, Mengmeng Zhang, Wei Li, Shuai Wang, Ran Tao

TL;DR

LDGnet is a novel framework that improves hyperspectral image (HSI) classification by incorporating linguistic prior knowledge. By aligning visual features with descriptive text in a shared semantic space, the model learns to generalize to entirely new scenes and sensors without ever seeing the target data during training.

What Problem Does This Paper Address?

Hyperspectral imaging (HSI) captures hundreds of narrow spectral bands, providing a "fingerprint" for materials on Earth. However, these fingerprints are fickle. The same patch of grass might look different to a sensor depending on the time of year, weather conditions, or the specific hardware used. This is known as domain shift.

Most existing solutions use Domain Adaptation (DA), which requires researchers to have access to unlabeled data from the "target" scene during the training process. But what if you don't have that data yet? This paper tackles Domain Generalization (DG)—the harder task of training a model on one scene (the Source Domain) so that it works reliably on a completely different, unseen scene (the Target Domain).

The authors noticed a major gap: while humans use descriptive language to identify land covers (e.g., "trees appear as small circles"), HSI models typically ignore this rich source of prior knowledge, relying solely on raw pixel values.

Methods

The authors propose the Language-aware Domain Generalization Network (LDGnet). It uses a dual-stream architecture to fuse vision and language:

  1. Image Encoder: A 3D Convolutional Neural Network (CNN) extracts spatial-spectral features from HSI patches. 3D CNNs are standard here because they treat the spectral bands as a third dimension, capturing the relationship between neighboring pixels and wavelengths.
  2. Text Encoder: A Transformer-based model (initialized from CLIP) processes text descriptions.
  3. Multi-Level Linguistic Supervision: This is the core innovation. The authors use two types of text:
  4. Coarse-grained: Simple templates like "A hyperspectral image of [trees]."
    • Fine-grained: Detailed descriptions of color, shape, and context, such as "The trees are next to residential buildings" or "Trees appear as small circles."
  5. Visual-Linguistic Alignment: Using supervised contrastive learning, the model forces the visual features of a "tree" pixel patch to be close to the linguistic features of "tree" descriptions in a shared semantic space. By anchoring pixels to stable linguistic concepts, the model learns representations that are less sensitive to spectral fluctuations.

Datasets

The model was evaluated on three challenging cross-scene HSI dataset pairs:

  • Houston Dataset: Source (2013) and Target (2018) scenes captured over the University of Houston with different sensors and spectral configurations.
  • Pavia Dataset: Comparing "Pavia University" (Source) and "Pavia Center" (Target) datasets.
  • GID (Gaofen Image Dataset): Using multi-spectral images from Nanchang as the source and Wuhan as the target.

Key Insights and Ideas

  • Language as a Universal Anchor: While the spectral reflectance of a road might change between a sunny day in 2013 and a cloudy day in 2018, the concept of a road (elongated, gray, near buildings) remains constant. Language provides a domain-invariant "ground truth" that pixels alone cannot.
  • The Power of Granularity: Ablation studies showed that fine-grained descriptions (shape, adjacency) significantly boosted performance over simple class labels. This suggests that "teaching" the model the attributes of a class helps it recognize that class in new environments.
  • DG can rival DA: Surprisingly, LDGnet (which never sees the target data) outperformed several state-of-the-art Domain Adaptation methods (which do see the target data). This highlights that a robust, multi-modal representation can be more effective than explicit distribution matching.

Key Results

LDGnet consistently outperformed state-of-the-art transfer learning and domain generalization methods across all tests:

  • Houston 2018: Achieved an Overall Accuracy (OA) of 80.25%, outperforming the best DA method (DSAN) by about 1.7% and other DG methods by over 4%.
  • Pavia Center: Reached 84.83% OA, a significant jump over the 78.94% achieved by the best baseline.
  • Visual Clarity: Classification maps produced by LDGnet showed much less "noise" and better-defined boundaries for classes like "Brick" and "Bare Soil" compared to traditional methods.

Limitations and Future Work

  • Manual Text Creation: Currently, the fine-grained descriptions are manually authored based on prior knowledge. This limits scalability. Future work could explore using Large Language Models (LLMs) to automatically generate these descriptions.
  • Computational Complexity: The inclusion of a Transformer-based text encoder increases the parameter count (33.43M parameters). While only the image encoder is needed during the "test" phase (inference), the training process is more resource-intensive than pure CNN approaches.
  • Fixed Templates: The model relies on specific text templates; exploring how sensitive the model is to different phrasing or "prompt engineering" remains an open question.

Summary updated

BibTeX
@article{zhang2023language,
  author = {Yuxiang Zhang and Mengmeng Zhang and Wei Li and Shuai Wang and Ran Tao},
  title = {{Language-Aware Domain Generalization Network for Cross-Scene Hyperspectral Image Classification}},
  journal = {IEEE Trans. Geosci. Remote. Sens.},
  year = {2023},
  doi = {10.1109/tgrs.2022.3233885},
}
Figure