SCLFormer: A synergistic convolution-linear attention transformer for hyperspectral image classification of mechanical damage in maize kernels
Classifying mechanical damage in maize kernels using hyperspectral imaging is crucial for food security and loss reduction. Existing methods are constrained by high computational complexity and limited precision in detecting subtle damages, such as pericarp damage and kernel cracks. To address these challenges, we introduce a novel algorithm, the Synergistic Convolution and Linear Attention Transformer (SCLFormer). By replacing traditional softmax attention with linear attention, we reduce computational complexity from quadratic to linear, thereby enhancing efficiency. Integrating convolutional operations into the encoder enriches local prior information for global feature modeling, improving classification accuracy. SCLFormer achieves an overall accuracy of 97.08 % in classifying maize kernel damage, with over 85 % accuracy for cracked kernel and pericarp damage. Compared to softmax attention, SCLFormer reduces training and testing times by 355.27 s (16.86 %) and 0.71 s (23.67 %), respectively. Additionally, we propose a modular hyperspectral image-level classification framework that can integrate existing pixel-level feature extraction networks to achieve classification accuracies exceeding 80 %, demonstrating the framework's scalability. SCLFormer, serving as the framework's dedicated feature extraction component, provides a robust solution for maize kernel damage classification and exhibits substantial potential for broader spatial-scale applications. This framework establishes a novel technical paradigm for hyperspectral image-wise classification of other agricultural products. • Proposed SCLFormer model for precise classification of maize kernel damage. • Linear attention reduces complexity from quadratic to linear computational cost. • Integrates convolution for enhanced local-global feature modeling and accuracy. • Created a hyperspectral classification framework for integrating pixel-level methods.
Authors
- Fengshuang Liu (ORCID: https://orcid.org/0000-0002-2399-228X)
- Yiqiang Zheng
- Jindai Liu
- Haiming Zhao (ORCID: https://orcid.org/0000-0002-0026-8299)
- Jianhua Fu (ORCID: https://orcid.org/0000-0002-8451-3705)
Institutions
- Jilin University (CN)
- Ministry of Agriculture and Rural Affairs (CN)
- Jilin Agricultural University (CN)
Publication Details
- Journal
- Artificial Intelligence in Agriculture
- Published
- 2025-11-27
- DOI
- https://doi.org/10.1016/j.aiia.2025.11.010
- Primary Topic
- Spectroscopy and Chemometric Analyses
- Type
- article
- Field-Weighted Citation Impact
- 0.00