Research and Implementation of Millet Ear Detection Method Based on Lightweight YOLOv5
Open Access
Abstract
As the millet ears are dense, small in size, and serious occlusion in the complex grain field scene, the target detection model suitable for this environment requires high computing power, and it is difficult to deploy the real-time detection of millet ears on mobile devices. A lightweight real-time detection method for millet ears is based on YOLOv5. First, the YOLOv5s model is improved by replacing the YOLOv5s backbone feature extraction network with the MobilenetV3 lightweight model to reduce model size. Then, using the multi-feature fusion detection structure, the micro-scale detection layer is augmented to reduce high-level feature maps and low-level feature maps. The Merge-NMS technique is used in post-processing for target information loss to reduce the influence of boundary blur on the detection effect and increase the detection accuracy of small and obstructed targets. Finally, the models reconstructed by different improved methods are trained and tested on the self-built millet ear data set. The AP value of the improved model in this study reaches 97.78%, F1-score is 94.20%, and the model size is only 7.56 MB, which is 53.28% of the standard YoloV5s model size, and has a better detection speed. Compared with other classical target detection models, it shows strong robustness and generalization ability. The lightweight model performs better in the detection of pictures and videos in the Jetson Nano. The results show that the improved lightweight YOLOv5 millet detection model in this study can overcome the influence of complex environments, and significantly improve the detection effect of millet under dense distribution and occlusion conditions. The millet detection model is deployed on the Jetson Nano, and the millet detection system is implemented based on the PyQt5 framework. The detection accuracy and detection speed of the millet detection system can meet the actual needs of intelligent agricultural machinery equipment and has a good application prospect.Keywords
Funding Information
- Scientific and Technological Innovation Programs of Higher Education Institutions in Shanxi (2021L141, 20210302124374, CARS-06-14.5-A28, 2021BQ87, 201901D111219, 2023CYJSTX04-19)
- Fundamental Research Program of Shanxi Province (2021L141, 20210302124374, CARS-06-14.5-A28, 2021BQ87, 201901D111219, 2023CYJSTX04-19)
- China Agriculture Research System (2021L141, 20210302124374, CARS-06-14.5-A28, 2021BQ87, 201901D111219, 2023CYJSTX04-19)
- Doctoral Research Project of Shanxi Agricultural University (2021L141, 20210302124374, CARS-06-14.5-A28, 2021BQ87, 201901D111219, 2023CYJSTX04-19)
- Scientific and Technological Innovation Programs of Higher Education Institutions in Shanxi (2021L141, 20210302124374, CARS-06-14.5-A28, 2021BQ87, 201901D111219, 2023CYJSTX04-19)
- Modern Agro-industry Technology Research System (2021L141, 20210302124374, CARS-06-14.5-A28, 2021BQ87, 201901D111219, 2023CYJSTX04-19)
This publication has 16 references indexed in Scilit:
- An algorithm for automatic identification of multiple developmental stages of rice spikes based on improved Faster R-CNNThe Crop Journal, 2022
- A deep learning method for oriented and small wheat spike detection (OSWSDet) in UAV imagesComputers and Electronics in Agriculture, 2022
- Lightweight convolutional neural network model for field wheat ear disease identificationComputers and Electronics in Agriculture, 2021
- A Wheat Spike Detection Method in UAV Images Based on Improved YOLOv5Remote Sensing, 2021
- A High-Precision Fast Smoky Vehicle Detection Method Based on Improved Yolov5 Network2021
- A Real-Time Apple Targets Detection Method for Picking Robot Based on Improved YOLOv5Remote Sensing, 2021
- SRAF-Net: Shape Robust Anchor-Free Network for Garbage Dumps in Remote Sensing ImageryIEEE Transactions on Geoscience and Remote Sensing, 2020
- Searching for MobileNetV32019
- Automated Counting of Rice Panicle by Applying Deep Learning Model to Images from Unmanned Aerial Vehicle PlatformSensors, 2019
- You Only Look Once: Unified, Real-Time Object Detection2016