UrbanKisaanEnquire now

HomeResearchAI and imaging

AI and imagingSensors (MDPI) · Dec 2025

Label-efficient hyperspectral classification that transfers to unseen crops and regions

Deep networks score well on the data they were trained on, then stumble on a new farm. This paper shows a lightweight method that needs a fraction of the labels, trains in seconds on a normal CPU and carries over to new crops and regions.

1–10%of pixels need labels to train it
2settings at most to tune for a new image
99.4%accuracy on the Salinas benchmark after one refinement pass

Research question

Can a classifier trained on one hyperspectral scene map crops in another without retraining?

Hyperspectral cameras record hundreds of colour bands per pixel, enough to tell crops, stress and soil apart. The best published models are deep networks with a huge number of settings. They need lots of labelled pixels and often fail when moved to a new region, crop or season, which is exactly what happens in farming.

Methods

Spectral projection, a pixel-wise SVM and kernel-weighted spectral–spatial fusion

Three stages: shrink, classify, smooth.

  1. ShrinkCompress hundreds of colour bands into a few that matter.
  2. ClassifyLabel each pixel with a simple classifier trained on 1 to 10% of the image.
  3. SmoothLet neighbours that look alike vote, then refine without new labels.

Results

Up to 13 points of overall accuracy over a spectral-only SVM in a single pass

On three public benchmarks the method adds 6 to 13 accuracy points over colour-only classification in a single pass.

Figure 1

Accuracy on three public benchmarks

Overall accuracy, %. Colour-only classifier versus this method after one pass and after refinement.

Colour onlyOne passAfter refinement
Indian Pines
79.392.7897
Salinas
87.6197.6999.42
Pavia University
92.2298.1499.44
7580859095100

Data: Tables 3 to 5 and Section 3.4 of the paper. Indian Pines after refinement is reported as about 97%.

Results

Training and inference in under 21 s on a CPU, with no GPU

One extra refinement pass, with no new labels, lifts accuracy to about 97% (Indian Pines) and over 99% (Salinas, Pavia).

Figure 2

Time to train and predict

Seconds, log scale. Indian Pines dataset.

This method, on a CPU
under 21 s
A deep network (SSRN), on a GPU
106 min to train
1 s10 s100 s1,000 s10,000 s

Data: Section 3.4 of the paper. SSRN time as reported by its authors.

Implications

A low-label baseline for domain transfer in agricultural remote sensing

Trained once, it worked on two other image sets and on rice paddies in Piedmont, Italy, without retraining. FarmOS turns every plant photo into spectral readings. Methods that need few labels suit new trials, where labels are scarce.

See FarmOS
1–10%of pixels need labels to train it
2settings at most to tune for a new image
99.4%accuracy on the Salinas benchmark after one refinement pass

The paper

Deep Architectures Fail to Generalize: A Lightweight Alternative for Agricultural Domain Transfer in Hyperspectral Images

Read the abstract

We present a novel framework for hyperspectral satellite image classification that explicitly balances spatial nearness with spectral similarity. The proposed method is trained on closed-set datasets, and it generalizes well to open-set agricultural scenarios that include both class distribution shifts and presence of novel and absence of known classes. This scenario is reflective of real-world agricultural conditions, where geographic regions, crop types, and seasonal dynamics vary widely and labeled data are scarce and expensive. The input data are projected onto a lower-dimensional spectral manifold, and a pixel-wise classifier generates an initial class probability saliency map. A kernel-based spectral-spatial weighting strategy fuses the spatial-spectral features. The proposed approach improves the classification accuracy by 7.22%–15% over spectral-only models on benchmark datasets. Incorporating an additional unsupervised learning refinement step further improves accuracy, surpassing several recent state-of-the-art methods. Requiring only 1%–10% labeled training data and at most two tuneable parameters, the framework operates with minimal computational overhead, qualifying it as a data-efficient and scalable few-shot learning solution. Recent deep architectures although exhibit high accuracy under data rich conditions, often show limited transferability under low-label, open-set agricultural conditions. We demonstrate transferability to new domains, including unseen crop classes (e.g., paddy), seasons, and regions (e.g., Piedmont, Italy), without re-training. Rice paddy fields play a pivotal role in global food security but are also a significant contributor to greenhouse gas emissions, especially methane, and extent mapping is very critical. This work presents a novel perspective on hyperspectral classification and open-set adaptation, suited for sustainable agriculture with limited labels and low-resource domain generalization.

Cite as
Pankajakshan, P., Padmasanan, A., & Sundar, S. (2026). Deep architectures fail to generalize: A lightweight alternative for agricultural domain transfer in hyperspectral images. Sensors, 26(1), 174. https://doi.org/10.3390/s26010174
Published in
Sensors, vol. 26, no. 1, article 174. Published online 26 December 2025
Authors
Praveen Pankajakshan, Aravind Padmasanan, S. Sundar
Institutions
UrbanKisaan; Walmart Global Technology; IIT Madras
Licence
Open access, CC BY 4.0