A three-dimensional convolutional neural network with joint spectral-spatial attention for celery adulteration detection using hyperspectral imaging.
Hui Gao, Tong Wu, Yuanxia Fu, Li Xu, Li Li, Li Wang
School of Mathematics and Physics, Bengbu University, Bengbu, Anhui, China.
Key points
From the paper's conclusion- A parameter-efficient three-dimensional convolutional network was constructed in which a joint spectral–spatial attention module reweights wavelengths and spatial positions in series through a gated residual path, feeding shared features to paired classification and regression heads.
Abstract
INTRODUCTION: Stalk celery (Apium graveolens var. dulce) commands a market premium that invites substitution with cheaper Apiaceae relatives, yet conventional authentication is either destructive, slow, or insensitive at the low blending ratios that are hardest to catch. METHODS: We acquired 420 visible-near-infrared hyperspectral cubes (400-1,000 nm) of celery adulterated with parsley, water dropwort, and lower celery petiole across seven mass ratios from 0 to 50%, each dish prepared as an independent weighing-mixing-filling event, and released the dataset under CC-BY. A parameter-efficient three-dimensional convolutional network was constructed in which a joint spectral-spatial attention module reweights wavelengths and spatial positions in series through a gated residual path, feeding shared features to paired classification and regression heads. RESULTS: Averaged over five seeds on dish-level held-out data, the model reached 95.2 ± 0.5% accuracy with a Kappa of 0.944, exceeding PLS-DA, SVM, random forest, 1D-CNN, 2D-CNN, and an attention-free 3D-CNN; the margin over that backbone is significant by a dish-level McNemar test ( p = 0.008). The advantage concentrated at 5-10% adulteration, where accuracy remained 91.7% against 79.2% for the plain backbone. Ratio prediction achieved R 2 = 0.973 and RMSE = 2.14 percentage points. DISCUSSION: Once back-projected onto the original wavelength axis, the learned band weights localized to the chlorophyll a trough, the red edge, and the short-wavelength shoulder of the water band near 950-958 nm, and occluding exactly those windows cost the most accuracy, which supports a pigment-and-moisture reading of the model rather than a claim of chemical species recognition. With 1.42 M parameters and 47 ms of GPU inference per sample, the framework suits portable screening under the acquisition and preparation conditions studied here, although single-provenance sampling, a single instrument, and limited adulterant diversity still bound its generalization.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- A novel microscopic hyperspectral imaging detection method for quantitative powdered food adulteration assessment: A comparative study of CNN-RNN attention models.Talanta · 2026
- Double-Attention Context Interactive Network for Hyperspectral Image ClassificationRemote Sensing · 2026
- Hyperspectral imaging for chlorophyll detection: 1D-2D-COS feature optimization and adaptive deep learning modelingIndustrial Crops and Products · 2026
- Lightweight residual deep learning framework for urea and formalin adulteration detection in milk using hyperspectral imaging.Food additives & contaminants. Part A, Chemistry, analysis, control, exposure & risk assessment · 2026
- Fusing band and feature attention in CNN-LSTM: A dual-attention framework for Hyperspectral-based precise prediction of nicotine levels in cured tobacco leavesIndustrial Crops and Products · 2025
- Squeeze-Excitation Attention-Guided 3D Inception ResNet for Aflatoxin B1 Classification in Almonds Using Hyperspectral ImagingToxins · 2026