Biformer Attention and ASF-YOLO for Cordyceps Sinensis Target Recognition
- 1 School of Civil and Architecture Engineering, Panzhihua University, Panzhihua, China
- 2 School of Mathematics and Computer Science, Panzhihua University, Panzhihua, China
Abstract
Cordyceps sinensis, a highly valued traditional Chinese medicine, faces challenges in collection due to inefficiencies in manual searching, strenuous labor, and the impact of subjective expertise. The integration of deep learning into Cordyceps sinensis identification is an unexplored area. To alleviate the manual labor and enhance the precision and speed of identifying Cordyceps sinensis, a novel detection approach that combines attention mechanisms with the ASF-YOLO model has been developed. This approach replaces the Spatial Pyramid Pooling Fast (SPPF) with a Context Augmentation Module (CAM) and swaps the original C3 model with a lighter model, C3-Faster, which is based on FasterNet. Additionally, it incorporates the Bi-level Routing Attention (BiFormer) mechanism and a Context Integration module to better detect smaller targets and increase accuracy. For the detection of tiny Cordyceps sinensis targets against intricate backgrounds, a novel fusion framework, ASF-YOLO, which leverages attention scale sequence fusion, has been introduced to boost detection accuracy further. Through experimental verification, the average accuracy rate (MAP) for Cordyceps sinensis can reach 99.2, 0.6% higher than that of traditional YOLOv5. The enhanced YOLOv5 boasts an average detection accuracy of up to 95% and it could identify some cordyceps sinensis that could not be identified by traditional YOLOv5.
DOI: https://doi.org/10.3844/ajbbsp.2024.376.384
Copyright: © 2024 Ru Yang, Peng Wu and Zhentao Qin. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
- 259 Views
- 180 Downloads
- 0 Citations
Download
Keywords
- Identification of Cordyceps
- Attention Mechanism
- ASF-YOLOs
- Deep Learning