Manuscript Offprint

arXiv:2608.12227

Domain-Aware Lightweight Spectral-Grouped Convolutions for Hyperspectral Fish Freshness Classification

Kazi Nabiul Alam, Pooneh Bagheri Zadeh, Akbar Sheikh-Akbari

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Hyperspectral imaging (HSI) offers nondestructive assessment of fish freshness by detecting biochemical alterations across spectral bands. However, conventional deep learning approaches do not fully address the particular characteristics of HSI data, such as spectral dominance over spatial textures, ordinal label structure, and a small number of training samples. We propose SGNet (Spectral-Grouped Network), a lightweight architecture that separates spectral and spatial feature extraction using grouped convolutions and a depthwise spatial pathway. A dual attention mechanism that couples channel-wise squeeze-and-excitation with spatial gating adaptively highlights informative features. SGNet achieves 97.8% classification accuracy and 0.64 days mean absolute error (MAE) with just 4.75M parameters when tested on our newly developed 16-day refrigerator-stored salmon fillet dataset. Ablation studies validate the contribution of each component, while comparisons demonstrate a five- to eighteen-fold parameter reduction relative to ResNet-50 and Vision Transformers. Our findings indicate that domain-aware design supports precise, real-time freshness prediction for industrial implementation.

1 Introduction

Fish freshness is a significant determinant of nutritional content, consumer safety, and market value in the global seafood industry [1, 2]. Conventional assessment techniques, such as sensory evaluation, microbiological testing, and chemical analysis, are variously subjective, destructive, or time-intensive, which makes them inappropriate for real-time industrial use [3, 4]. The growing body of research into sensing technologies reflects a clear demand for automated, non-destructive, and rapid quality inspection.

Hyperspectral imaging (HSI) has emerged as an effective tool for evaluating food quality by integrating spatial imaging with extensive spectral data acquired across numerous contiguous wavelength bands [5, 6]. An HSI system operates differently from standard RGB imaging because it is able to identify chemical breakdown products through the analysis of specific spectral bands [7, 8]. These traits make HSI especially useful for estimating fish freshness, since the quality of fish degrades gradually and continuously over time, leaving a measurable spectral signature at each stage of spoilage.

Although classical machine learning methods such as partial least squares discriminant analysis (PLS-DA) and support vector machines (SVM) have demonstrated potential for HSI-based freshness evaluation [9, 10], they depend heavily on manually designed features and prior wavelength selection [11], which limits their capacity to capture detailed spectral-spatial interactions. Deep learning techniques have achieved superior results in hyperspectral image classification according to recent research [12], yet most established models were designed for remote sensing tasks. Such models do not adequately accommodate the characteristics of food quality data, which combine large spectral dimensionality with restricted sample availability and an inherently ordinal label structure. A further difficulty, frequently overlooked, is the substantial redundancy between neighbouring spectral bands; indiscriminate mixing of all bands therefore risks entangling correlated and unrelated wavelength responses, which amplifies noise and encourages overfitting under limited data regimes.

This study introduces SGNet (Spectral-Grouped Convolutional Neural Network), a framework designed around the structure of hyperspectral food data rather than adapted from a remote sensing or natural image backbone. Rather than proposing new primitives, our contribution is a principled composition of efficient operators that jointly respects spectral dominance, ordinal label structure, and severe sample scarcity, together with the analysis and dataset needed to validate it in this regime. Our contributions are as follows:

  • An explicit spectral-spatial factorisation in which grouped pointwise convolution confines cross-band interaction to local channel subsets while a parallel depthwise pathway captures spatial structure, preventing premature entanglement of unrelated wavelength responses.
  • A lightweight dual attention mechanism coupling channel-wise excitation with spatial gating at below 5% of the block parameters, giving selective emphasis without the data appetite of self-attention.
  • A hierarchical encoder, formalised in Algorithm 1, that attains 97.8% accuracy with only 4.75M parameters and is benchmarked against widely used convolutional and transformer architectures retrained under identical conditions.
  • A curated 16-day refrigerated salmon dataset with strict pack-level separation, addressing the scarcity of leakage-controlled hyperspectral freshness data, which we release to support reproducibility.

References (30)

  • Non-destructive and rapid determination of TVB-N content for freshness evaluation of grass carp (Ctenopharyngodon idella) by hyperspectral imaging
  • Hyperspectral imaging in combination with data fusion for rapid evaluation of tilapia fillet freshness
  • Fish quality assessment using hyperspectral imaging and computer vision: A review
  • Prediction of various freshness indicators in fish fillets by one multispectral imaging system
  • Quality evaluation of fish by hyperspectral imaging
  • Detection of fish fillet substitution and mislabeling using multimode hyperspectral imaging techniques
  • Development of hyperspectral imaging coupled with chemometric analysis to monitor K value for evaluation of chemical spoilage in fish fillets
  • Evaluation of the total volatile basic nitrogen (TVB-N) content in fish fillets using hyperspectral imaging coupled with deep learning neural network and meta-analysis
  • Convergence and emerging frontiers
  • Automatic freshness assessment of cod (Gadus morhua) fillets using VIS/NIR spectroscopy
  • Deep learning for hyperspectral image classification: An overview
  • SpectralFormer: Rethinking hyperspectral image classification with transformers
  • Chemometrics and Intelligent Laboratory Systems, 245:105059, 2024
  • Sensors, 23(11):5149, 2023
  • Deep feature extraction and classification of hyperspectral images based on convolutional neural networks
  • Spectral–spatial classification of hyperspectral imagery with 3D convolutional neural network
  • HybridSN: Exploring 3-D–2-D CNN feature hierarchy for hyperspectral image classification
  • Squeeze-and-excitation networks
  • Convolutional block attention module
  • Deep recurrent neural networks for hyperspectral image classification
  • MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications
  • EfficientNet: Rethinking model scaling for convolutional neural networks
  • A ConvNet for the 2020s
  • An image is worth 16x16 words: Transformers for image recognition at scale
  • Swin Transformer: Hierarchical vision transformer using shifted windows
  • Aggregated residual transformations for deep neural networks
  • Rank consistent ordinal regression for neural networks with application to age estimation
  • Focal loss for dense object detection
  • HFQA: Hyperspectral imaging for fish quality assessment — a spatial-spectral benchmark dataset for non-destructive freshness analysis (opens the publisher in a new tab)
  • Deep neural networks for rank-consistent ordinal regression based on conditional probabilities