Cargando…

Rapid and accurate detection of multi-target walnut appearance quality based on the lightweight improved YOLOv5s_AMM model

INTRODUCTION: Nut quality detection is of paramount importance in primary nut processing. When striving to maintain the imperatives of rapid, efficient, and accurate detection, the precision of identifying small-sized nuts can be substantially compromised. METHODS: We introduced an optimized iterati...

Descripción completa

Detalles Bibliográficos
Autores principales: Zhan, Zicheng, Li, Lixia, Lin, Yuhao, Lv, Zhiyuan, Zhang, Hao, Li, Xiaoqing, Zhang, Fujie, Zeng, Yumin
Formato: Online Artículo Texto
Lenguaje:English
Publicado: Frontiers Media S.A. 2023
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10663328/
https://www.ncbi.nlm.nih.gov/pubmed/38023833
http://dx.doi.org/10.3389/fpls.2023.1247156
_version_ 1785138375660929024
author Zhan, Zicheng
Li, Lixia
Lin, Yuhao
Lv, Zhiyuan
Zhang, Hao
Li, Xiaoqing
Zhang, Fujie
Zeng, Yumin
author_facet Zhan, Zicheng
Li, Lixia
Lin, Yuhao
Lv, Zhiyuan
Zhang, Hao
Li, Xiaoqing
Zhang, Fujie
Zeng, Yumin
author_sort Zhan, Zicheng
collection PubMed
description INTRODUCTION: Nut quality detection is of paramount importance in primary nut processing. When striving to maintain the imperatives of rapid, efficient, and accurate detection, the precision of identifying small-sized nuts can be substantially compromised. METHODS: We introduced an optimized iteration of the YOLOv5s model designed to swiftly and precisely identify both good and bad walnut nuts across multiple targets. The M3-Net network, which is a replacement for the original C3 network in MobileNetV3’s YOLOv5s, reduces the weight of the model. We explored the impact of incorporating the attention mechanism at various positions to enhance model performance. Furthermore, we introduced an attentional convolutional adaptive fusion module (Acmix) within the spatial pyramid pooling layer to improve feature extraction. In addition, we replaced the SiLU activation function in the original Conv module with MetaAconC from the CBM module to enhance feature detection in walnut images across different scales. RESULTS: In comparative trials, the YOLOv5s_AMM model surpassed the standard detection networks, exhibiting an average detection accuracy (mAP) of 80.78%, an increase of 1.81%, while reducing the model size to 20.9 MB (a compression of 22.88%) and achieving a detection speed of 40.42 frames per second. In multi-target walnut detection across various scales, the enhanced model consistently outperformed its predecessor in terms of accuracy, model size, and detection speed. It notably improves the ability to detect multi-target walnut situations, both large and small, while maintaining the accuracy and efficiency. DISCUSSION: The results underscored the superiority of the YOLOv5s_AMM model, which achieved the highest average detection accuracy (mAP) of 80.78%, while boasting the smallest model size at 20.9 MB and the highest frame rate of 40.42 FPS. Our optimized network excels in the rapid, efficient, and accurate detection of mixed multi-target dry walnut quality, accommodating lightweight edge devices. This research provides valuable insights for the detection of multi-target good and bad walnuts during the walnut processing stage.
format Online
Article
Text
id pubmed-10663328
institution National Center for Biotechnology Information
language English
publishDate 2023
publisher Frontiers Media S.A.
record_format MEDLINE/PubMed
spelling pubmed-106633282023-01-01 Rapid and accurate detection of multi-target walnut appearance quality based on the lightweight improved YOLOv5s_AMM model Zhan, Zicheng Li, Lixia Lin, Yuhao Lv, Zhiyuan Zhang, Hao Li, Xiaoqing Zhang, Fujie Zeng, Yumin Front Plant Sci Plant Science INTRODUCTION: Nut quality detection is of paramount importance in primary nut processing. When striving to maintain the imperatives of rapid, efficient, and accurate detection, the precision of identifying small-sized nuts can be substantially compromised. METHODS: We introduced an optimized iteration of the YOLOv5s model designed to swiftly and precisely identify both good and bad walnut nuts across multiple targets. The M3-Net network, which is a replacement for the original C3 network in MobileNetV3’s YOLOv5s, reduces the weight of the model. We explored the impact of incorporating the attention mechanism at various positions to enhance model performance. Furthermore, we introduced an attentional convolutional adaptive fusion module (Acmix) within the spatial pyramid pooling layer to improve feature extraction. In addition, we replaced the SiLU activation function in the original Conv module with MetaAconC from the CBM module to enhance feature detection in walnut images across different scales. RESULTS: In comparative trials, the YOLOv5s_AMM model surpassed the standard detection networks, exhibiting an average detection accuracy (mAP) of 80.78%, an increase of 1.81%, while reducing the model size to 20.9 MB (a compression of 22.88%) and achieving a detection speed of 40.42 frames per second. In multi-target walnut detection across various scales, the enhanced model consistently outperformed its predecessor in terms of accuracy, model size, and detection speed. It notably improves the ability to detect multi-target walnut situations, both large and small, while maintaining the accuracy and efficiency. DISCUSSION: The results underscored the superiority of the YOLOv5s_AMM model, which achieved the highest average detection accuracy (mAP) of 80.78%, while boasting the smallest model size at 20.9 MB and the highest frame rate of 40.42 FPS. Our optimized network excels in the rapid, efficient, and accurate detection of mixed multi-target dry walnut quality, accommodating lightweight edge devices. This research provides valuable insights for the detection of multi-target good and bad walnuts during the walnut processing stage. Frontiers Media S.A. 2023-11-08 /pmc/articles/PMC10663328/ /pubmed/38023833 http://dx.doi.org/10.3389/fpls.2023.1247156 Text en Copyright © 2023 Zhan, Li, Lin, Lv, Zhang, Li, Zhang and Zeng https://creativecommons.org/licenses/by/4.0/This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.
spellingShingle Plant Science
Zhan, Zicheng
Li, Lixia
Lin, Yuhao
Lv, Zhiyuan
Zhang, Hao
Li, Xiaoqing
Zhang, Fujie
Zeng, Yumin
Rapid and accurate detection of multi-target walnut appearance quality based on the lightweight improved YOLOv5s_AMM model
title Rapid and accurate detection of multi-target walnut appearance quality based on the lightweight improved YOLOv5s_AMM model
title_full Rapid and accurate detection of multi-target walnut appearance quality based on the lightweight improved YOLOv5s_AMM model
title_fullStr Rapid and accurate detection of multi-target walnut appearance quality based on the lightweight improved YOLOv5s_AMM model
title_full_unstemmed Rapid and accurate detection of multi-target walnut appearance quality based on the lightweight improved YOLOv5s_AMM model
title_short Rapid and accurate detection of multi-target walnut appearance quality based on the lightweight improved YOLOv5s_AMM model
title_sort rapid and accurate detection of multi-target walnut appearance quality based on the lightweight improved yolov5s_amm model
topic Plant Science
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10663328/
https://www.ncbi.nlm.nih.gov/pubmed/38023833
http://dx.doi.org/10.3389/fpls.2023.1247156
work_keys_str_mv AT zhanzicheng rapidandaccuratedetectionofmultitargetwalnutappearancequalitybasedonthelightweightimprovedyolov5sammmodel
AT lilixia rapidandaccuratedetectionofmultitargetwalnutappearancequalitybasedonthelightweightimprovedyolov5sammmodel
AT linyuhao rapidandaccuratedetectionofmultitargetwalnutappearancequalitybasedonthelightweightimprovedyolov5sammmodel
AT lvzhiyuan rapidandaccuratedetectionofmultitargetwalnutappearancequalitybasedonthelightweightimprovedyolov5sammmodel
AT zhanghao rapidandaccuratedetectionofmultitargetwalnutappearancequalitybasedonthelightweightimprovedyolov5sammmodel
AT lixiaoqing rapidandaccuratedetectionofmultitargetwalnutappearancequalitybasedonthelightweightimprovedyolov5sammmodel
AT zhangfujie rapidandaccuratedetectionofmultitargetwalnutappearancequalitybasedonthelightweightimprovedyolov5sammmodel
AT zengyumin rapidandaccuratedetectionofmultitargetwalnutappearancequalitybasedonthelightweightimprovedyolov5sammmodel