融合CNN与ViT模型对江南8种野菜识别分类OA
Identification and Classification of 8 Types of Wild-vegetables in the Jiangnan Region by Integrating CNN and ViT Models
传统的野菜识别主要依赖人工经验,存在耗时、耗力及误判等问题,因此开发高效准确的识别算法成为关键.为解决可食用野菜图像识别问题,对视觉Transformer(Vision Transformer,ViT)的变体模型BiFormer进行改进.引入传统卷积神经网络(Convolutional Neural Network,CNN)代表模型ResNet50的双卷积层残差块,以增强局部特征提取能力;在 MLP层添加Dropout抑制过拟合;同时优化qk_dims参数提升注意力建模效率,最终构建名为Res-BiFormer的改进模型.在包含江南地区8种野菜的1 509张原始图像数据集上,Res-BiFormer识别准确率高达95.77%,较原始BiFormer和ResNet50分别提升4.34%和0.76%;在6 036张数据增强后的大规模数据集上,其准确率进一步较两基准模型分别提升6.96%和3.32%,充分验证了所提模型对不同规模数据集的良好适应性.通过Grad-CAM++技术生成热力图对模型决策过程进行可视化分析,结果表明,Res-BiFormer能够精准聚焦叶片叶脉纹理、边缘轮廓等野菜识别关键特征.研究不仅为可食用野菜识别提供了高效可行的技术方案,其可视化分析方法也为深度学习模型决策机制的解读提供了参考.
The traditional identification of wild vegetables mainly relies on manual experience,which has problems such as time-consuming,labor-intensive and misjudgment.Therefore,developing efficient and accurate identification algorithms has become a key issue.To address the problem of image recognition for ed-ible wild vegetables,the variant model BiFormer of the Vision Transformer(ViT)was improved.The resid-ual blocks of the dual convolutional layers from the traditional Convolutional Neural Network(CNN)repre-sentative model ResNet50 were introduced to enhance the local feature extraction ability.Dropout was added to the MLP layer to prevent overfitting,and the qk_dims parameter was optimized to improve the efficiency of attention modeling.Finally,an improved model named Res-BiFormer was constructed.On a 1 509 image datasets containing 8 types of wild vegetables from the Jiangnan region,the recognition accuracy of Res-Bi-Former reached 95.77%,which was 4.34%and 0.76%higher than that of the original BiFormer and ResNet50 respectively.On a large-scale dataset of 6 036 images after data augmentation,its accuracy further increased by 6.96%and 3.32%compared with the 2 benchmark models,fully verifying the good adaptability of the proposed model to different-sized datasets.Using the Grad-CAM++technique to generate heat maps for visual analysis of the model's decision-making process the results showed that Res-BiFormer could precise-ly focus on key features such as leaf vein textures and edge contours for the identification of wild vegetables.This research not only provided an efficient and feasible technical solution for the identification of edible wild vegetables,but also offered a reference for interpreting the decision-making mechanism of deep learning mod-els through the visualization analysis method.
吴玉强;雷芷若;胡乃娟;吴育宝
南京警察学院信息技术学院,南京 210023||南京农业大学智慧农业学院(人工智能学院),南京 210095南京警察学院信息技术学院,南京 210023江苏省农业科学院农业经济与发展研究所,南京 210014南京警察学院信息技术学院,南京 210023
农业科技
可食用野菜识别Res-BiFormer双卷积层残差块Grad-CAM++
edible wild-vegetable recognitionRes-BiFormerdouble-convolution residual blockGrad-CAM++
《种子》 2026 (2)
185-192,8
中央高校基本科研业务费专项资金项目(LGZD202504)国家重点研发计划子课题(2023YFC330400502)江苏高校"青蓝工程"资助(苏教师函[2025]4号)
评论