Laser deinsectization method based on target detection technology
Through the combination of YOLOv5 deep learning algorithm and laser technology, the rapid and accurate identification and immediate elimination of pests are achieved, which solves the problems of low identification efficiency, slow response speed and high cost in the existing technology, and significantly improves the efficiency of pest control. and precision, while reducing environmental pollution and providing innovative management strategies for sustainable agriculture.
Patent Information
- Application Number
- CN202410715039.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2024-08-23
AI Technical Summary
Existing pest control technologies suffer from low identification efficiency, slow response speed, high cost and large negative impact on the environment, making it difficult to achieve precise positioning and efficient execution.
The YOLOv5 deep learning algorithm is combined with laser technology to build a pest target detection model, which is integrated into the laser gun execution device to identify and eliminate pests in real time, and achieve precise instructions through image collection and processing.
It significantly improves the efficiency and accuracy of pest control, reduces costs and environmental pollution, provides a low-cost, efficient automatic pest management strategy, and supports sustainable agricultural development.
Smart Images

Figure CN118525826A
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of agricultural pest control, and in particular relates to a laser pest control method based on target detection technology. Background Art
[0002] As global attention to environmental protection and crop safety increases, traditional chemical control methods are gradually being restricted due to their potential negative impacts on the environment and human body. In addition, although physical control methods are more environmentally friendly, they are usually inefficient and difficult to achieve precise positioning and efficient execution. Currently, with the rapid development of image processing and machine learning technologies, the use of these technologies to accurately identify and eliminate pests has become a research hotspot. However, due to the small size, changeable colors and rapid movements of pests, the demand for high-precision and real-time response technologies is growing.
[0003] Traditional pest identification methods mainly rely on manual inspections, such as agricultural workers or researchers identifying pest species and counting their numbers in the field. This method is not only labor-intensive, but also extremely inefficient, and its accuracy is also limited by personal experience and professional skills. Mechanized pest control systems, such as the use of traps and sticky boards, have improved control efficiency to a certain extent, but these methods are slow to respond to rapid pest outbreaks, and are unable to achieve precise positioning and regional management, often resulting in unnecessary waste of resources and potential environmental risks.
[0004] On the technical level, although existing computer vision systems can automatically identify pests in images, most of these systems require complex settings and high maintenance costs. For example, the high-precision camera and computing resource requirements limit the popularity and application of these technologies. In addition, the diversity of pests and environmental factors such as lighting and background complexity also greatly increase the challenges of automatic identification systems.
[0005] Therefore, developing a low-cost, high-efficiency and environmentally friendly automatic pest control system, especially using advanced target detection technology and automatic laser pest control system, can not only greatly improve the efficiency and accuracy of pest management, but also reduce the dependence on chemical control while protecting the ecological environment. This is of great significance to agricultural production, especially the development of sustainable agriculture. The target detection algorithms based on deep learning mainly include R-CNN, Fast R-CNN, Faster R-CNN, YOLO, etc. Among them, the YOLO series of algorithms have been widely used in the field of target detection due to their fast speed and high accuracy. [1]YOLOv5 is a deep learning-based object detection algorithm released by a research team at the University of California, Berkeley in May 2020. Compared with its previous version YOLOv4 and previous generations of YOLO, YOLOv5 has greatly improved in speed and accuracy. As training progresses, the accuracy and robustness of the model will gradually improve, so that it can be used in actual weld production.
[0006] [1] J.Redmon, S.Divvala, R.Girshick and A.Farhadi, "You Only Look Once: Unified,Real-Time Object Detection," 2016 IEEE Conference on Co mputer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA, 2016, pp.779-788, doi:10.1109 / CVPR.2016.91. Summary of the invention
[0007] The present invention aims to solve the problems of low recognition efficiency, slow response speed, high cost and great negative impact on the environment in existing pest control technologies, and provides a laser pest control method based on target detection technology. This method combines the latest deep learning algorithm and laser technology to achieve rapid and accurate identification and immediate elimination of pests, significantly improving the efficiency and accuracy of pest control, while reducing costs and environmental pollution.
[0008] To achieve the above objectives, the present invention provides a laser insecticide method based on target detection technology, comprising the following steps:
[0009] The first step is to use the YOLOv5 network as the basic algorithm for pest recognition and build a pre-trained model yolov5s.pt for pest target detection as the basic framework for pest target detection.
[0010] The second step is to collect pest image data and uniformly adjust the data to the same size as the pre-trained model to ensure normal input for model training;
[0011] The third step is to input the adjusted pest image data into the pre-trained model for deep training, thereby obtaining a trained pest target detection model;
[0012] The fourth step is to integrate the trained pest target detection model into the laser gun actuator, and connect the laser gun actuator to the pest image acquisition device;
[0013] In the fifth step, when the pest image acquisition device acquires the pest image in real time, it processes the image data and transmits it to the pest target detection model. The pest target detection model transmits the real-time output result to the execution module in the laser gun execution device, so that the laser gun execution device makes corresponding execution instructions.
[0014] This method not only significantly reduces the dependence on chemical pesticides and reduces environmental pollution in agricultural production, but also shows significant advantages in saving energy and reducing costs. The present invention provides an innovative pest management strategy by integrating target detection technology and mechanical automation, which not only improves the efficiency and accuracy of pest control, but also contributes to the sustainable development of agricultural production. The implementation of this method has opened up new possibilities for environmental protection and the advancement of agricultural technology, and demonstrated the broad prospects for the application of modern technology in traditional agricultural fields. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 Flowchart of an embodiment of the present invention;
[0016] Figure 2 It is the network structure diagram of yolov5 of the present invention;
[0017] Figure 3 The present invention is an overall block diagram;
[0018] Figure 4 It is the flow chart of yolov5 execution of the present invention. DETAILED DESCRIPTION
[0019] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0020] Reference Figure 1 , Figure 2 , Figure 3 ,and Figure 4 , a laser insecticide method based on target detection technology, mainly comprising the following steps:
[0021] The first step is to use the YOLOv5 network as the basic algorithm for pest recognition and build a pre-trained model yolov5s.pt for pest target detection as the basic framework for pest target detection.
[0022] The second step is to collect pest image data and uniformly adjust the data to the same size as the pre-trained model to ensure normal input for model training;
[0023] The third step is to input the adjusted pest image data into the pre-trained model for deep training, thereby obtaining a trained pest target detection model;
[0024] The fourth step is to integrate the trained pest target detection model into the laser gun actuator, and connect the laser gun actuator to the pest image acquisition device;
[0025] In the fifth step, when the pest image acquisition device acquires the pest image in real time, it processes the image data and transmits it to the pest target detection model. The pest target detection model transmits the real-time output result to the execution module in the laser gun execution device, so that the laser gun execution device makes corresponding execution instructions.
[0026] In the second step, we collect pest image data. We can use existing public pest image datasets, such as annotated images provided by various agricultural research institutions or online databases. These images cover a variety of pest species and their performance under different environmental conditions, which are suitable for training and validating deep learning models.
[0027] In terms of the implementation of data processing and model training modules, although a pre-built dataset is used, the data still needs to be properly pre-processed to adapt to the model requirements. This includes image resizing, normalization, and possible enhancement processing to improve the efficiency and accuracy of model training.
[0028] In terms of model training, the YOLOv5 deep learning model is used to train the images in the dataset. Model training is performed on high-performance computers, using efficient algorithm acceleration and optimization.
[0029] In terms of laser pest control implementation, the direction of the laser device is automatically adjusted according to the location information of the pests identified from real-time monitoring. The laser gun actuator integrated in the robotic arm can accurately and quickly adjust the direction and focus to adapt to the location changes of the pests.
[0030] In terms of instant response, the system uses algorithms to instantly calculate the exact location of pests and directs the laser gun actuator to carry out precise strikes to achieve efficient pest control.
[0031] Among them, yolov5 target detection technology is the main technology, and its execution process is:
[0032] 1. The input image first passes through the backbone network to extract the features of the original image, including multi-scale information; then passes through the neck network, which is responsible for further processing and fusing these features to improve performance. During the feature extraction process, the number of channels is constantly increasing and the size is constantly decreasing.
[0033] 2. Input the feature map to the head output, perform top-down fusion, then bottom-up fusion, and then take several feature layer images for detection. Anchors of different sizes are set to predict objects of different sizes. Object detection is usually completed at the output end of the model (i.e., the detection head). The following process is the operation completed at the output end.
[0034] 3. Detection: Generate target boxes, category probabilities and center points to determine the location and category of targets in the image.
[0035] 4. Post-processing: The model performs non-maximum suppression to remove overlapping target boxes and retain the most credible target boxes.
[0036] 5. Output results: Output the location and category of the detected target.
[0037] In addition, the confusion matrix is a key content in yolov5. The confusion matrix is a visualization tool used for supervised learning. In unsupervised learning, it is generally called a matching matrix. In image accuracy evaluation, it is mainly used to compare the classification results with the actual measured values. The accuracy of the classification results can be displayed in a confusion matrix.
[0038] True Positive (TP): The model correctly predicts samples that are actually in the positive category as positive.
[0039] False Positive(FP): The model incorrectly predicts a sample that is actually a negative class as a positive class.
[0040] False Negative (FN): The model incorrectly predicts samples that are actually positive as negative.
[0041] True Negative (TN): The model correctly predicts samples that are actually negative as negative.
[0042] Get classification metrics from the confusion matrix:
[0043] (1) Accuracy: Accuracy is used to indicate the accuracy of the model, that is, the number of correct model recognitions / the total number of samples.
[0044]
[0045] (2) Precision: This means the proportion of samples that are actually positive among the samples that are identified as positive by the model.
[0046]
[0047] (3) Recall: Meaning: The ratio of the number of samples correctly identified as positive by the model to the total number of positive samples. The higher the Recall, the more positive samples are correctly predicted by the model, and the better the model effect.
[0048]
[0049] (4) Average Precision (AP): AP measures the performance of the model in each category.
[0050] (5) Mean Average Precision (mAP): mAP measures the quality of all types. mAP is the average of all categories of AP.
[0051] mAP@0.5: mAP when IoU is 0.5;
[0052] mAP@0.5:0.95 is the average mAP when IoU is 0.5:0.95:0.05.
[0053] (6) F1-score, meaning: a measurement indicator for classification problems, which can be used to evaluate the accuracy and completeness of the model in detecting all targets. F1-score comprehensively considers the indicators of precision and recall, with a maximum value of 1 and a minimum value of 0. The formula is as follows:
[0054]
[0055] The present invention combines the latest deep learning algorithms and laser technology to achieve rapid and accurate identification and immediate elimination of pests, significantly improving the efficiency and accuracy of pest control while reducing costs and environmental pollution.
[0056] The examples described above clearly illustrate the embodiments of the present invention in order to better illustrate the technical ideas of the present invention. For technicians in this field, various forms of changes and modifications can be made on the basis of this specification, and the obvious and reasonable extensions of these changes and modifications still fall within the scope of protection of the present invention.
Claims
1. A laser insecticide method based on target detection technology, characterized in that The following steps are involved: The first step is to use the YOLOv5 network as the basic algorithm for pest recognition and build a pre-trained model yolov5s.pt for pest target detection as the basic framework for pest target detection. The second step is to collect pest image data and uniformly adjust the data to the same size as the pre-trained model to ensure normal input for model training; The third step is to input the adjusted pest image data into the pre-trained model for deep training, thereby obtaining a trained pest target detection model; The fourth step is to integrate the trained pest target detection model into the laser gun actuator, and connect the laser gun actuator to the pest image acquisition device; In the fifth step, when the pest image acquisition device acquires the pest image in real time, it processes the image data and transmits it to the pest target detection model. The pest target detection model transmits the real-time output result to the execution module in the laser gun execution device, so that the laser gun execution device makes corresponding execution instructions.
Citation Information
Patent Citations
Intelligent laser mosquito eradication device and robot
CN106719524A
Pest target detection method, system and equipment based on YOLOv5 model
CN116310718A
Cordyceps sinensis laser removing method and laser cordyceps sinensis removing machine
CN117296644A
Indoor insecticidal detection tracking processing method and system
CN117671729A
Multifunctional infrared laser pest killing device
CN220545710U
Cited By
Laser insecticidal system and high-precision winged insect identification model training method
CN120419537A
