Xu Peng, Sun Wenbin, Xu Kang, Zhang Yunpeng, Tan Qian, Qing Yiren, Yang Ranbing
College of Information and Communication Engineering, Hainan University, Haikou 570228, China.
College of Mechanical and Electrical Engineering, Hainan University, Haikou 570228, China.
Foods. 2022 Dec 27;12(1):144. doi: 10.3390/foods12010144.
Seed quality affects crop yield and the quality of agricultural products, and traditional identification methods are time-consuming, complex, and irreversibly destructive. This study aims to establish a fast, non-destructive, and effective approach for defect detection in maize seeds based on hyperspectral imaging (HSI) technology combined with deep learning. Raw spectra collected from maize seeds (200 each healthy and worm-eaten) were pre-processed using detrending (DE) and multiple scattering correction (MSC) to highlight the spectral differences between samples. A convolutional neural network architecture (CNN-FES) based on a feature selection mechanism was proposed according to the importance of wavelength in the target classification task. The results show that the subset of 24 feature wavelengths selected by the proposed CNN-FES can capture important feature information in the spectral data more effectively than the conventional successive projections algorithm (SPA) and competitive adaptive reweighted sampling (CARS) algorithms. In addition, a convolutional neural network architecture (CNN-ATM) based on an attentional classification mechanism was designed for one-dimensional spectral data classification and compared with three commonly used machine learning methods, linear discriminant analysis (LDA), random forest (RF), and support vector machine (SVM). The results show that the classification performance of the designed CNN-ATM on the full wavelength does not differ much from the above three methods, and the classification accuracy is above 90% on both the training and test sets. Meanwhile, the accuracy, sensitivity, and specificity of CNN-ATM based on feature wavelength modeling can reach up to 97.50%, 98.28%, and 96.77% at the highest, respectively. The study shows that hyperspectral imaging-based defect detection of maize seed is feasible and effective, and the proposed method has great potential for the processing and analysis of complex hyperspectral data.
种子质量影响作物产量和农产品质量,而传统的鉴定方法耗时、复杂且具有不可逆的破坏性。本研究旨在基于高光谱成像(HSI)技术结合深度学习,建立一种快速、无损且有效的玉米种子缺陷检测方法。从玉米种子(健康种子和虫蛀种子各200粒)采集的原始光谱,采用去趋势(DE)和多元散射校正(MSC)进行预处理,以突出样本间的光谱差异。根据波长在目标分类任务中的重要性,提出了一种基于特征选择机制的卷积神经网络架构(CNN-FES)。结果表明,所提出的CNN-FES选择的24个特征波长子集,比传统的连续投影算法(SPA)和竞争性自适应重加权采样(CARS)算法,能更有效地捕捉光谱数据中的重要特征信息。此外,设计了一种基于注意力分类机制的卷积神经网络架构(CNN-ATM)用于一维光谱数据分类,并与三种常用的机器学习方法,即线性判别分析(LDA)、随机森林(RF)和支持向量机(SVM)进行比较。结果表明,设计的CNN-ATM在全波长上的分类性能与上述三种方法差异不大,在训练集和测试集上的分类准确率均高于90%。同时,基于特征波长建模的CNN-ATM的准确率、灵敏度和特异性最高分别可达97.50%、98.28%和96.77%。研究表明,基于高光谱成像的玉米种子缺陷检测是可行且有效的,所提出的方法在复杂高光谱数据的处理和分析方面具有巨大潜力。