Detecting river crab and bait using improved YOLOv5s

被引:0
|
作者
Sun Y. [1 ,2 ]
Yuan B. [1 ]
Zhan T. [1 ]
Sun J. [1 ]
Fang Z. [1 ]
Zhao D. [1 ,3 ]
机构
[1] College of Electrical and Information Engineering, Jiangsu University, Zhenjiang
[2] Changzhou Dongfeng Agricultural Machinery Group Co., LTD., Changzhou
[3] Key Laboratory of Agricultural Measurement and Control Technology and Equipment for Machinery Industry, Jiangsu University, Zhenjiang
来源
Nongye Gongcheng Xuebao/Transactions of the Chinese Society of Agricultural Engineering | 2023年 / 39卷 / 22期
关键词
Android deployment; bait; identification; lightweight; river crab; target detection; YOLOv5s;
D O I
10.11975/j.issn.1002-6819.202308197
中图分类号
学科分类号
摘要
An accurate and rapid detection is a high demand to identify the river crab and bait in underwater complex environments. In this study, an improved YOLOv5s was proposed to detect the river crab and bait for the high precision, speed and simple modeling. GhostNet and GhostBottleneck structure were used to rapidly extract the network features of the model. The inference and detection speed were improved with the less complexity and amount of model computation. The model was deployed on the Android, in order to meet the needs of mobile application scenarios for river crab detection. The BiFPN structure was applied in the neck network of YOLOv5s. The fusion ability of the model was enhanced for different scale targets, the robustness of the model, and especially the detection performance of the network for small targets. A lightweight attention mechanism was used in the backbone feature extraction of the YOLOv5s network. The CA attention mechanism module was employed to improve the detection probability of the target region. The relevant feature information was matched with the target channel. The invalid information was suppressed to strengthen the network attention to river crab and bait. The lightweight YOLOv5s-GhostNet model was compared with the YOLOv5s, ShuffleNetv2-YOLOv5s, and MobileNetV3-YOLOv5s models. The results showed that the target average precision of YOLOv5s-GhostNet model was reduced by only 4.6 percentage points, compared with YOLOv5s. The lightweight network was effectively maintained the detection precision of the model for the higher detection speed of river crabs and bait. Ablation experiments were carried out to verify the backbone feature extraction network, feature fusion network BiFPN, and CA attention mechanism. The computational amount was reduced by 48.7%, whereas, the detection speed increased by 27.2%, after improving the backbone feature extraction network with GhostNet. The model complexity was reduced to elevate the detection speed. The BiFPN structure was used to compensate for the loss of mAP that caused by the lightweight network, particularly for the detection rate of river crabs and bait. The addition of CA attention mechanism was improved the anti-interference and feature extraction, while the mAP also increased. River crab and bait datasets were established using laboratory and actual crab pond environments. The improved model was achieved in an average precision of 96.9% and a computational volume of 8.5 GFLOPs, which was higher in the detection precision and smaller in computational volume, compared with the current mainstream single-level target detection algorithms for anchor boxes (e.g., SSD and YOLOv3). The average precision of the model was improved by 2.2 percentage points, while the computation and model memory were reduced by more than 40%, compared with YOLOv5s. The model before and after improvement was deployed to Android phone for testing. It was found that the improved model shared the average detection speed of 148ms/frame on Android phone, which increased by 20.9%, and maintained the better detection, compared with the original. The detection rates of river crabs and bait in the improved model increased by 4.6 and 5.8 percentage points, respectively, which was effectively improved the detection rates than before. Therefore, the improved model can be expected to balance the performance requirements of Android phone for model detection precision and speed. The finding can provide the guidance for the precise determination of baiting amount in river crab culture. © 2023 Chinese Society of Agricultural Engineering. All rights reserved.
引用
收藏
页码:178 / 187
页数:9
相关论文
共 36 条
  • [1] 49, 5, pp. 244-248, (2021)
  • [2] XU Meng, Research on Underwater Sea Cucumber Image Recognition Technology Based on MachineVision, (2020)
  • [3] LIU Haoyu, Research on Detection and Recognition Technology of Underwater Small Target Based on Faster R-CNN, (2021)
  • [4] HAO Kun, WANG Kuo, ZHAO Lu, Et al., Underwater biological detection algorithm based on image enhancement and improved YOLOv3, Journal of Jilin University (Engineering and Technology Edition), 52, 5, pp. 1088-1097, (2022)
  • [5] QIANG Wei, HE Yuyao, GUO Yujin, Et al., Exploring underwater target detection algorithm based on improved SSD, Journal of Northwestern Polytechnical University, 38, 4, pp. 747-754, (2020)
  • [6] CHEN G Q, MAO Z Y, WANG K, Et al., HTDet: A hybrid transformer-based approach for underwater small object detection, Remote Sensing, 15, (2023)
  • [7] XU F Q, WANG H B, PENG J J, Et al., Scale-aware feature pyramid architecture for marine object detection, Neural Computing and Applications, 33, pp. 3637-3653, (2020)
  • [8] SHEN X, SUN X D, WANG H B, Et al., Multi-dimensional, multi-functional and multi-level attention in YOLO for underwater object detection, Neural Computing and Applications, 35, pp. 19935-19960, (2023)
  • [9] GIRSHICK R, DONAHUE J, DARRELL T, Et al., Rich feature hierarchies for accurate object detection and semantic segmentation, 2014 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 580-587, (2014)
  • [10] GIRSHICK R., Fast R-CNN, 2015 IEEE International Conference on Computer Vision (ICCV), pp. 1440-1448, (2015)