Detection method and processing system suitable for crop pests

Through the detection methods of YOLO V5, DeepSORT and LSTM, combined with the dynamic tracking and killing strategies of agricultural robots, the problem of insufficient flexibility and drug resistance in crop pest detection and treatment methods in the existing technology is solved, and accurate identification of different pests is achieved. and efficient killing, improving food safety and environmental protection.

CN118587475APending Publication Date: 2024-09-03LANZHOU UNIV
View PDF 0 Cites 5 Cited by

Patent Information

Application Number
CN202410620960.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-20
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

Existing crop pest detection and treatment methods lack flexibility, rely on manual identification and have serious pesticide resistance problems, resulting in poor control effects. Different crops have different pest needs, and a single insecticidal lamp cannot effectively solve them.

Method used

The detection method of YOLO V5 combined with DeepSORT and LSTM is used to identify the category and location of pests through image processing and feature extraction, dynamically track and determine the killing strategy, and use agricultural robots to move to the target area for spraying or ultraviolet killing.

Benefits of technology

It achieves accurate identification and dynamic tracking of different types of pests, improves killing efficiency and effectiveness, reduces pesticide usage, and improves food safety and environmental protection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure FT_1
    Figure FT_1
  • Figure FT_2
    Figure FT_2
  • Figure FT_3
    Figure FT_3
Patent Text Reader

Abstract

The invention discloses a detection method and processing system suitable for crop pests, and the method comprises the following steps: (1) carrying out the target detection of collected crop pictures through employing a YOLO V5 algorithm, and judging the types and growth stages of pests; (2) using DeepSort and LSTM algorithms to track the motion trails of the pests, dividing the distribution areas of the pests, and predicting the possible expansion positions of the pests; (3) using the collected information to decide a deinsectization strategy; and (4) controlling the agricultural robot to arrive at a target area to perform corresponding deinsectization operation. According to the method, the YOLO V5, DeepSort and LSTM algorithms in deep learning are combined to detect plant diseases and insect pests possibly occurring in agricultural production, an appropriate insect killing strategy is made according to specific conditions and distribution areas, and the method is suitable for most agricultural insect killing fields.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of target recognition, and in particular to a detection method and a processing system suitable for crop pests. Background Art

[0003] In the existing technology, the general method is to manually identify pests and diseases, and then spray corresponding pesticides for different pests to achieve the purpose of killing pests and diseases. However, because this method is manually identified, it is very likely that crops will be found to have pests and diseases when pests and diseases break out on a large scale. Secondly, many pests have developed resistance to pesticides with the large-scale use of pesticides, and the normal spraying amount of pesticides has little effect on them, or even no effect. However, excessive spraying of pesticides will lead to a vicious cycle, and the food safety of crops cannot be guaranteed. In addition to spraying pesticides, there is also insecticidal lamp technology that kills insects by ultraviolet rays. For pest control, the efficiency and effect of insecticide are still the most concerned issues for farmers. In particular, different crops have different pests. Different types of insects have different response ranges, response peaks, different wavelengths and light intensities to different spectra, so the light source also has different effects on insect attraction. Just one insecticidal lamp cannot solve all pest and disease problems. Therefore, effective treatment of different pests is an efficient and environmentally friendly way.

[0004] Therefore, a new method for controlling crop diseases and insect pests is needed to overcome the above-mentioned problems or partially overcome the above-mentioned problems. Summary of the invention

[0005] The present invention provides a detection method and a processing system suitable for crop pests, which are used to solve the defects of the current crop pest control schemes that lack flexibility and have a single means.

[0006] In a first aspect, the present invention provides a method for detecting crop pests, comprising:

[0007] The target images of crops are collected, and YOLO V5 combined with DeepSORT and LSTM are used to detect the target images to obtain the pest category and location information.

[0008] Locate the movement trajectory of pests, determine the distance and direction of target pests, move to the effective range near the target pest group, and complete the pest extermination.

[0009] According to a crop pest detection and processing method provided by the present invention, after collecting crop images, the images are first preprocessed, including resizing and normalization.

[0010] The image is adjusted to a square fixed pixel of 640*640. The pixel values ​​of the above collected images are normalized to between 0 and 1 to reduce the image inconsistency caused by lighting changes or the influence of other external factors.

[0011] By detecting the collected crop images, information about the location and type of pests can be obtained, including:

[0012] Feature extraction is performed on the preprocessed images, mainly using multiple layers of CNN in YOLO V5 to extract image features. These convolutional layers can not only capture static pests, but also dynamic pests.

[0013] FPN is used in feature processing. FPN is used to build a pyramid that effectively captures features at different scales, so that the recognition rate will be higher when encountering pests of different sizes.

[0014] Then, PAN is used in the path aggregation network of feature extraction to further optimize the flow of features, improve the utilization efficiency of features and the accuracy of detection.

[0015] For different positions of an image, a crop pest detection processing method provided in the present invention predicts multiple bounding boxes for each position and assigns a confidence score to each bounding box, which represents the probability of containing pests in the current box.

[0016] In the above steps, multiple overlapping detection frames will be generated, and NMS is used to remove these overlapping detection frames. Finally, the detection frame with the highest confidence will be retained, and other frames that overlap with it and have lower confidence will be removed.

[0017] In this way, pests can be accurately detected from the pictures taken by the camera, and then the corresponding feature map can be output.

[0018] In the characteristic image where pests are most likely to appear, a crop pest detection and processing method provided in the present invention will classify the characteristic image to find the category to which it is most likely to belong and the current growth stage of the pest.

[0019] According to a crop pest tracking method provided by the present invention, DeepSORT algorithm and LSTM algorithm are used to track pests and diseases to obtain their distribution areas, including the following:

[0020] The PCA method is used to transform the original data into a new coordinate system through linear transformation, so that the largest variance of any projection of this data set appears on the first coordinate, the second largest variance appears on the second coordinate, and so on. This method can be used to reduce the dimension of the data while retaining the most important variance features in the data set for dimensionality reduction, in order to reduce the amount of calculation and increase the matching speed.

[0021] Assign a unique tracking ID to the first detected pest in the image sequence, initialize the tracker, and define the state space of the pest, including its position, speed and other information.

[0022] For each tracked pest, the Kalman filter designed in the present invention is used to predict its position in the next frame, and the predicted position is matched with the pest position detected by the target detection model in the current frame based on the distance and appearance features.

[0023] For each matched pest, its tracking status is continuously updated. If a pest is not detected in the current frame (perhaps due to occlusion or movement out of the field of view), it continues to be tracked according to the prediction of the Kalman filter; if a new pest is detected, a new tracking ID is initialized for it.

[0024] Through this process, this method can accurately track pests in video sequences and maintain stable tracking performance even in the case of pest occlusion or fast movement.

[0025] In a second aspect, the present invention provides a crop pest detection and processing system, comprising:

[0026] The detection module is used to collect target plant images and use a crop pest detection method provided in the present invention to detect the collected images, thereby obtaining the category information and location information of the pests, as well as the growth stage of the pests.

[0027] The area determination module determines the activity area of ​​the pests detected by the detection module, and uses the Deep SORT algorithm to track the different pests detected in the detection module to determine whether the pests of this type have broken out in the entire crop planting area or are only scattered.

[0028] The positioning module is used to locate the movement trajectory of the above-mentioned pests, and can determine the direction, position and distance of the target pests.

[0029] The pest control strategy decision module can obtain the pest species, distribution range, and growth stage through the above steps, thereby obtaining different pest control strategies for different situations.

[0030] The mobile module, in combination with the positioning module, moves to the effective pest control range of the target pests and selects the corresponding pest control means to kill the pests.

[0031] In a third aspect, the present invention provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor in the electronic device executes the program, the above-mentioned crop pest detection and processing method can be implemented.

[0032] In a fourth aspect, the present invention further provides a non-transitory computer calibrated storage medium on which a relevant computer program is recorded, and the program can be executed by a processor to implement the above-mentioned crop pest detection and processing method.

[0033] According to the present invention, a detection method and treatment system for crop pests is provided, which uses agricultural robots to identify different types of pests, determine their growth stages and distribution areas, and dynamically track them. Through the various information collected, pest control decisions are made, and finally the pests are moved to the relevant areas for spraying or ultraviolet killing, which has the characteristics of high efficiency, low cost, and strong practicality. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 A schematic diagram of the process of the crop pest detection and treatment method provided by the present invention;

[0035] Figure 2 A schematic diagram of the structure of the agricultural robot pest control vehicle provided by the present invention;

[0036] Figure 3 A flowchart of a related computer program provided by the present invention; DETAILED DESCRIPTION

[0037] The present invention is further explained below in conjunction with specific embodiments. It should be understood that these embodiments are only used to illustrate the present invention and are not used to limit the scope of the present invention. After reading the present invention, various equivalent forms of modifications to the present invention by those skilled in the art all fall within the scope defined by the claims attached to this application.

[0038] Figure 1 FIG. 1 is a flow chart of a method for detecting and treating crop pests provided by an embodiment of the present invention. Figure 1 As shown, including:

[0039] Step S101: Collect target images, use YOLO V5 to perform target recognition on the collected images, and obtain pest type, growth stage, and location information.

[0040] Step S102: Using the DeepSORT algorithm and the LSTM algorithm to track the location information of the pests, and obtain the movement trajectory of the pests.

[0041] Step S103: making a pest extermination method decision based on the distribution area, growth stage, location information and movement trajectory of the pests obtained from the above information.

[0042] Step S104: locate the area where pest control is required, and determine the most effective location for pest control in the area according to the above method.

[0043] The crop pest detection and treatment method proposed in the example of the present invention can treat multiple categories of common pests according to the differences in common pests and diseases in different geographical locations, including pests of the family Cladophoridae and the family Gnaphalidae, Lepidoptera insects, and small insects such as the tea green leafhopper, as well as brown planthoppers, malt borers, etc.

[0044] In particular, such as Figure 2 As shown, the present invention proposes an agricultural robot insect-killing car structure with a central symmetrical structure. Different insect-killing equipment is installed on the top of the car. There are storage locations for different types of spray-type insecticides and ultraviolet insect-killing equipment for different types of pests, and cameras are installed at the four corners of the top. There is a control module on the right side of the car. The camera is used to take pictures of the surrounding environment. Through the YOLOV5 method of deep learning, a neural network is used to determine whether there are pests in the picture. If there are pests, their features are extracted, and the feature information includes growth stage, type, movement trajectory, etc. The control module is used to process pictures, send location information, receive species elimination method discrimination, and control the movement of the vehicle body and select the corresponding pest elimination method.

[0045] Specifically, the example of the present invention uses YOLO V5, DeepSORT and LSTM algorithms to detect and dynamically track pest targets, determine what pests and diseases need to be killed, make a killing decision, and then determine the distribution area. After determining the distribution area, move the agricultural robot to the best location in the area for killing. After completing the killing task, the agricultural robot returns to the origin and continues to perform patrol tasks on time.

[0046] The target detection in the embodiment of the present invention uses the YOLO V5 model. In a deep learning model such as YOLO V5, image feature extraction usually relies on a deep convolutional neural network. The number of CNN layers will affect the performance and complexity of the model. In order to balance accuracy and speed, YOLO V5 adopts a carefully designed network structure, and its feature extraction part includes multiple convolutional layers and residual blocks. Its feature extraction network starts with several convolutional layers, and these base layers are responsible for capturing low-level features in the image, such as edges and corners. Afterwards, the model uses multiple residual blocks to increase the depth of the network while avoiding the gradient vanishing problem in training. Each residual block contains two or more convolutional layers. In this example, the CNN part in the YOLO V5 model may contain dozens to hundreds of convolutional layers.

[0047] In one embodiment, the architecture of collecting YOLOV5 is adaptive, including several core parts: input layer, Backbone, Neck, and Head.

[0048] Input layer: Depending on the model size, the images are resized to different resolutions, in this case 640x640 pixels.

[0049] Backbone: Responsible for extracting features from the input image. The CSPNet structure is used to improve the efficiency and effect of feature extraction.

[0050] Neck: The PANet structure is used for feature fusion to improve the detection ability of small-scale objects and enhance the model's adaptability to changes in pest size by fusing features at different levels.

[0051] Head: Predict the feature map at each scale, and the output includes the pest’s bounding box, confidence, and category probability.

[0052] In one embodiment, the pest location information and the pest category information are tracked using DeepSORT and LSTM algorithms to obtain the pest movement trajectory.

[0053] Figure 3 is a flowchart of a related computer program provided by an embodiment of the present invention, such as Figure 3 As shown, including:

[0054] Under normal circumstances, the agricultural robot performs a conventional patrol operation at S301, during which image acquisition is performed at S302, and target detection is performed on the image. If no pests are found at S303, the conventional patrol operation is continued at regular intervals.

[0055] When a certain type of pest is found in S303, the agricultural robot will continue to complete the patrol of the farmland and increase the weight of this type of pest in target identification.

[0056] After this round of routine patrols, the distribution and growth stage of the pest will be counted to determine the current development stage of the pest and the distribution area of ​​the pest.

[0057] Then, in S306, DeepSORT and LSTM algorithms are used to track the movement trajectory of pests and identify the areas where pests and diseases are likely to move.

[0058] After all the information is collected, in S307, the pest control strategy determiner will determine the area to which the agricultural robot needs to move and what pest control strategy to adopt, such as spraying or using specific ultraviolet rays, based on the type, growth stage, distribution area and possible location information of the pests.

[0059] In S308, the agricultural robot moves to the optimal pest control position obtained in S307.

[0060] S309, the agricultural robot controls the pest control components thereon to perform execution operations corresponding to appropriate pest control strategies.

[0061] After completing the pest control operation, the agricultural robot continues to perform routine operations and tracks the status of the corresponding pests in the area after the pest control strategy is implemented, and observes whether the pest control strategy implemented can achieve the expected effect within the expected time.

Claims

1. A method for detecting and treating crop pests, characterized in that: It includes the following: Crop images were collected, and YOLO V5 was used to detect the target images to obtain pest species information and growth stage information. DeepSORT and LSTM are used to track the current location information of pests, derive their distribution areas and predict the areas they may move to. All the information is combined to develop pest control strategies based on different pest types, their growth stages, and their distribution areas. Control the agricultural robot to move to the best position to eliminate the target pests, implement the best pest control strategy, and complete pest control.

2. The crop pest detection and treatment method according to claim 1, characterized in that Collect crop images, use YOLO V5 to detect the target images, and obtain pest species information and growth stage information, including: Preprocess the image and resize it to a square fixed pixel size of 640*640. Then perform feature extraction on the preprocessed image. Use multiple layers of CNN in YOLO V5 to extract features of the image, predict multiple bounding boxes for each location, and assign a probability score of containing pests to each bounding box. NMS is used to remove these overlapping detection frames. Finally, the detection frame of the most likely pest is retained, and other frames that overlap with it and have low confidence are removed, and then the corresponding feature map is output.

3. The crop pest detection and treatment method according to claim 1, characterized in that DeepSORT and LSTM are used to track the current location of pests, derive their distribution areas, and predict the areas where they may move, including: The coordinates of the center point of the target detection frame of each pest, the size of the detection frame (including width and height), the distance and angle of the pest relative to the observation point, the category information of the pest, and their movement trajectory are collected and analyzed. Based on these detailed sets of pest target states, a continuous tracking trajectory of each pest is generated. The current location information of pests is accurately tracked, and then LSTM is used to analyze the distribution area of ​​pests and predict the next area where pests may migrate based on their historical movement trajectories. It not only involves assigning a unique track ID address number to each pest, but also involves counting the number of categories contained in the pest track. It can monitor the dynamic distribution of pests in a specific time and space, and predict the possible spread direction and speed of pest groups, providing a scientific basis for taking effective pest control measures.

4. The method for detecting and treating crop pests according to claim 1, characterized in that All the information is combined to develop pest control strategies for different pest types, their growth stages, and their distribution areas, including: Develop specific pest control strategies by comprehensively analyzing the collected data and formulating specific pest control strategies based on the type of pests, their growth stage and their distribution on crops. This process provides an in-depth analysis of pest behavior patterns, including pest movement trajectories, population density, and pest preferences for different crops. Based on this information, we can make decisions on pest management solutions that are both efficient and environmentally friendly, including the use of biopesticides to reduce environmental impact or physical methods to capture pests directly. By predicting the potential spread areas of pests, prevention and control measures can be deployed at key nodes in advance, thereby minimizing the impact of pests on agricultural production.

5. The crop pest detection and treatment method according to claim 3, characterized in that Use LSTM to conduct deep learning on the collected data to learn the movement characteristics and behavior patterns of pests. Including: The pest's movement trajectory is divided into several sequences within a time window, each sequence contains a certain number of continuous trajectory points. These sequences are feature extracted and input into the LSTM model. The LSTM model learns the dynamic characteristics of pest movement by analyzing the temporal relationship between these sequences. After the model training is completed, new trajectory data can be analyzed to predict the future movement trend of pests. By comparing the prediction results output by LSTM with the actual observed pest behavior status, the model parameters can be further adjusted and optimized to improve the accuracy of the prediction. According to the prediction results of the LSTM model, the possible gathering areas of pests can be effectively predicted, providing a scientific basis for pest prevention and control. LSTM is able to process and predict long-term dependencies in time series data, and thus can predict the future location of pests based on their historical trajectories.

6. A crop pest detection and processing system, characterized in that: include: The detection module is used to collect target plant images and use a crop pest detection method provided in the present invention to detect the collected images, thereby obtaining the category information and location information of the pests, as well as the growth stage of the pests. The area determination module determines the activity area of ​​the pests detected by the detection module, and uses the Deep SORT algorithm to track the different pests detected in the detection module to determine whether the pests of this type have broken out in the entire crop planting area or are only scattered. The positioning module is used to locate the movement trajectory of the above-mentioned pests, and can determine the direction, position and distance of the target pests. The pest control strategy decision module can obtain the pest species, distribution range, and growth stage through the above steps, thereby obtaining different pest control strategies for different situations. The mobile module, in combination with the positioning module, moves to the effective pest control range of the target pests and selects the corresponding pest control means to kill the pests.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the crop pest detection and processing method according to any one of claims 1 to 6 is implemented.

8. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the indoor insecticide detection and tracking processing method according to any one of claims 1 to 6 is implemented.

Citation Information

Cited By

  • Dam termite killing effect monitoring method and device based on image recognition

    CN118968422A

  • Photovoltaic greenhouse with multi-mode illumination management

    CN119717962A

  • An intelligent detection system for wheat pests and diseases

    CN119785213A

  • Method for preventing and controlling macadamia nut pests based on deep learning

    CN123094545A

  • Intelligent monitoring and early warning robot for pests and diseases in apple orchard

    NL2040481A