双孢蘑菇
高光谱成像
人工智能
计算机科学
卷积神经网络
变压器
支持向量机
蘑菇
蘑菇
编码器
人工神经网络
模式识别(心理学)
预处理器
特征提取
深度学习
计算机视觉
光谱辐射计
作者
Yanpeng Xu,Fengshuang Liu,Jun Fu,Chengyuan Zhang,Shujia Li
摘要
The harvesting and transportation of Agaricus bisporus can lead to surface damage. Non‐destructive detection of mechanical damage in Agaricus bisporus is essential for preserving mushroom freshness, meeting production demands, and minimizing economic losses. It is challenging to accurately detect the damage level of Agaricus bisporus mushrooms in a non‐destructive detection. Therefore, this paper proposes a novel spectral‐spatial transformer (SST) neural network approach. The SST leverages three‐dimensional (3‐D) spectral‐spatial information from hyperspectral images (HSIs) to detect mechanical damage in Agaricus bisporus. The proposed SST method directly extracts spectral‐spatial information and captures spectral local features between adjacent bands through group‐wise spectral embeddings. This grouped information is then fed into the transformer encoder along with positional encoding. Utilizing its multi‐head attention mechanism, the transformer encoder enhances relevant features while suppressing irrelevant ones, thereby improving detection performance. We conducted experiments using support vector machine (SVM), convolutional neural network (CNN), spectral‐spatial feature tokenization transformer (SSFTT), and SST on Agaricus bisporus HSI data. The results demonstrate that SST outperforms SVM and CNN. Specifically, SST achieved an overall accuracy of 98.85% in pixel‐wise classification of Agaricus bisporus. Furthermore, SST accurately identifies both superficial and deep damage, enabling the grading of damaged mushrooms based on the damage ratio, thus fulfilling the requirements of industrial production for Agaricus bisporus. The code of this work is available at https://github.com/Accompagnerzcy/mushroom for the sake of reproducibility.
科研通智能强力驱动
Strongly Powered by AbleSci AI