Classified removal method, device and equipment for gramineous weeds in rice field and medium
Through the combination of rice field weed detection model and point rendering convolutional neural network, rice field grass weeds are identified and removed, which solves the difficult problem of early prevention and control caused by the high similarity between rice field grass weeds and crop seedlings, and achieves efficient weed control. Grass identification and removal effects.
Patent Information
- Application Number
- CN202410476454.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-19
- Publication Date
- 2024-08-30
AI Technical Summary
Graminous weeds in rice fields are very similar to crop seedlings and are difficult to distinguish, which makes early prevention and control difficult. Manual discovery and treatment are inefficient, and timely measures cannot be taken to avoid the risk of weed spread.
A pre-trained rice field weed detection model is used to perform instance segmentation on rice seedling images, combined with a point rendering convolutional neural network to extract rough and high-resolution features, and the location and category of weeds are determined after fusion. The pesticide spraying drone sprays pesticides according to the categories. Carry out classification and removal.
It achieves accurate and efficient identification and removal of grass weeds in rice fields, improves the accuracy and efficiency of early control, and reduces the risk of weed spread.
Smart Images

Figure CN118570519A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer vision technology, and in particular to a method for classifying and removing grass weeds in rice fields, a corresponding device, an electronic device, and a computer-readable storage medium. Background Art
[0002] Rice field weeds have strong reproductive capacity and provide favorable conditions for the breeding of pests and diseases, which seriously affects the healthy growth of rice. Intelligent and accurate weed removal and reduction of environmental damage have attracted extensive attention from researchers. The acquisition of weed category information is the prerequisite for accurate weed control. Rice field grass weeds such as barnyard grass and Leptochloa chinensis have high similarity and are difficult to distinguish. They are also easily confused with crop seedlings, making early weed control difficult.
[0003] In the early rice seedlings, various weeds often appear in the rice fields. The weeds will affect the yield of the rice fields and cause a serious reduction in rice production. In order to reduce the adverse effects of weeds on rice field yields, weed removal is an indispensable task. It is difficult to identify weeds of similar families (genuses), and manual discovery of grass weeds in rice fields is inefficient and time-delayed. It is difficult to ensure that the grass weeds in the rice fields are discovered in the early growth stage and that pesticide implementation measures are taken in time. The risk of weed spread cannot be effectively avoided.
[0004] To sum up, in order to adapt to the problems in the prior art that the grass weeds in rice fields are highly similar and difficult to distinguish, and are easily confused with crop seedlings, making early prevention and control of weeds difficult, and artificial discovery of grass weeds in rice fields is inefficient and time-delayed, the applicant has made corresponding explorations to solve these problems. Summary of the invention
[0005] The purpose of the present application is to solve the above-mentioned problems and to provide a method for classifying and removing grass weeds in rice fields, a corresponding device, an electronic device and a computer-readable storage medium.
[0006] In order to meet the various objectives of this application, this application adopts the following technical solutions:
[0007] A method for classifying and removing grass weeds in paddy fields proposed to meet one of the purposes of this application comprises:
[0008] Acquire a rice seedling image to be detected, perform instance segmentation on the rice seedling image to be detected using a pre-trained rice field weed detection model, and determine a target area image corresponding to the rice field Gramineae weeds in the rice seedling image to be detected;
[0009] Extracting features of the target area image based on a rough feature extraction network in a point rendering convolutional neural network, and generating a rough mask to determine a rough segmentation feature;
[0010] Extracting a high-resolution fine-grained feature map corresponding to the target area image based on a refined feature extraction network in a point rendering convolutional neural network of the paddy field weed detection model;
[0011] Fusing the high-resolution fine-grained feature map with the coarse segmentation feature to determine a fused feature, performing point-by-point prediction on the fused feature, and determining an object mask corresponding to the grass weeds in the paddy field;
[0012] The corresponding positions and categories of each of the rice field grass weeds are determined according to the object mask, and the pesticide spraying drone determines the corresponding pesticide prescription for the rice field grass weeds based on the corresponding categories of the rice field grass weeds, and sprays the pesticides to the corresponding positions of the rice field grass weeds to complete the classified removal of the rice field grass weeds.
[0013] Optionally, the step of obtaining the image of the rice seedling to be detected includes:
[0014] In response to the command of classifying and removing grass weeds in rice fields, the image of rice seedlings to be detected is obtained from the binocular camera in the pesticide spraying drone;
[0015] A target area image corresponding to the grass weeds in the rice field is detected from the rice seedling image to be detected.
[0016] Optionally, the step of performing instance segmentation on the rice seedling image to be detected using a pre-trained rice field weed detection model to determine a target area image corresponding to the rice field Gramineae weeds in the rice seedling image to be detected comprises:
[0017] Using a convolutional backbone network to extract features from the rice seedling image to be detected, and obtaining multi-layer feature maps of different scales;
[0018] A region generation network is used to generate a plurality of candidate regions of interest for the multi-layer feature maps of different scales, and then an alignment operation of the regions of interest is performed;
[0019] The head network is used to perform three branch processing on the feature map after alignment of the region of interest, namely bounding box regression processing, recognition processing and mask map prediction, to obtain the detection result;
[0020] According to the detection result, a target area corresponding to the grass weeds in the rice field in the rice seedling image is intercepted to determine the corresponding target area image.
[0021] Optionally, the step of performing feature extraction on the target area image based on a coarse feature extraction network in a point rendering convolutional neural network and generating a coarse mask to determine a coarse segmentation feature includes:
[0022] The point rendering convolutional neural network includes a refined feature extraction network, a coarse feature extraction network and a point feature extraction module;
[0023] The coarse feature extraction network is responsible for generating a coarse mask to provide regional-level context information. The coarse feature extraction network uses a lightweight segmentation head to perform feature extraction on the target area image corresponding to the rice field grass weeds and generate a coarse mask, which is used to indicate the approximate position and shape of the rice field grass weeds.
[0024] Optionally, the step of extracting a high-resolution fine-grained feature map corresponding to the target area image based on a refined feature extraction network in a point rendering convolutional neural network of the paddy field weed detection model comprises:
[0025] The refinement feature extraction network branch is responsible for refining the feature maps of different scales corresponding to the target area image of the rice field grass weeds to generate a high-resolution fine-grained feature map to improve the accuracy of the segmentation map, wherein the high-resolution fine-grained feature map contains detailed information and subtle structures of the rice field grass weeds;
[0026] The refined feature extraction network uses a segmentation strategy to adaptively select a set of non-uniform points to efficiently compute high-resolution segmentation maps.
[0027] Optionally, the rice field grass weeds include one or any multiple of Echinochloa crus-galli and Leptochloa chinensis.
[0028] Optionally, the basic network architecture of the rice field weed detection model is a Mask-RCNN model, and the convolutional backbone network of the rice field weed detection model is a ResNet50-FPN network.
[0029] A rice field grass weed classification and removal device provided for another purpose of the present application comprises:
[0030] a target region determination module, configured to obtain a rice seedling image to be detected, perform instance segmentation on the rice seedling image to be detected using a pre-trained rice field weed detection model, and determine a target region image corresponding to the rice field Gramineae weeds in the rice seedling image to be detected;
[0031] A rough feature determination module is configured to extract features of the target area image based on a rough feature extraction network in a point rendering convolutional neural network, and generate a rough mask to determine a rough segmentation feature;
[0032] A fine-grained feature determination module is configured to extract a high-resolution fine-grained feature map corresponding to the target area image based on a refined feature extraction network in a point rendering convolutional neural network of the paddy field weed detection model;
[0033] An object mask generation module is configured to fuse the high-resolution fine-grained feature map with the coarse segmentation feature to determine a fused feature, perform point-by-point prediction on the fused feature, and determine an object mask corresponding to the grass weeds in the paddy field;
[0034] The classification and removal module is configured to determine the corresponding position and category of each of the rice field Poaceae weeds according to the object mask, and the pesticide spraying drone determines the corresponding pesticide prescription for the rice field Poaceae weeds based on the corresponding category of the rice field Poaceae weeds, and sprays the pesticide to the corresponding position of the rice field Poaceae weeds to complete the classification and removal of the rice field Poaceae weeds.
[0035] An electronic device provided to meet another purpose of the present application includes a central processing unit and a memory, wherein the central processing unit is used to call and run a computer program stored in the memory to execute the steps of the method for classifying and removing grass weeds in paddy fields described in the present application.
[0036] A computer-readable storage medium is provided to meet another purpose of the present application, which stores a computer program implemented according to the method for classifying and removing grass weeds in rice fields in the form of computer-readable instructions. When the computer program is called and executed by a computer, the steps included in the corresponding method are executed.
[0037] Compared with the prior art, the present application aims at the problems that the grass weeds in paddy fields are highly similar, difficult to distinguish, and easily confused with crop seedlings, making early weed control difficult, and the manual discovery of grass weeds in paddy fields is inefficient and time-delayed. The present application includes but is not limited to the following beneficial effects:
[0038] In early rice seedlings, it is difficult to identify weeds of similar families (genuses), and manual weed detection is inefficient and time-delayed, making it difficult to find weeds in the early stages of growth and take timely pesticide implementation measures, and the risk of weed spread cannot be effectively avoided. The rice seedlings and grass weeds in the rice field are accurately and efficiently distinguished through the rice field weed detection model to determine the target area image corresponding to the grass weeds in the rice field. The target area image corresponding to the grass weeds in the rice field is further identified and distinguished based on the point rendering convolutional neural network. The convolutional neural network is used to extract image features, and the high-performance segmentation of similar weed instances is achieved by introducing a refinement module based on point rendering to fuse coarse and fine granular features. The model has the advantages of strong robustness, high accuracy and high efficiency, solves the problem of difficulty in identifying similar weeds of the same family (genus), and lays the foundation for subsequent targeted weed control. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0040] Figure 1 This is a schematic diagram of the process of the method for classifying and removing grass weeds in paddy fields in the embodiment of the present application;
[0041] Figure 2 This is an exemplary network architecture used by the point rendering convolutional neural network in the embodiments of the present application;
[0042] Figure 3 An exemplary network architecture for determining coarse segmentation features and high-resolution fine-grained feature maps in an embodiment of the present application;
[0043] Figure 4 This is a functional block diagram of a device for classifying and removing grass weeds in paddy fields in an embodiment of the present application;
[0044] Figure 5 It is a schematic diagram of the structure of the computer device in the embodiment of the present application. DETAILED DESCRIPTION
[0045] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be interpreted as limiting the present application.
[0046] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present application refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.
[0047] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as those generally understood by those skilled in the art to which this application belongs. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with those in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined as here.
[0048] It will be understood by those skilled in the art that the terms "client", "terminal" and "terminal device" as used herein include both devices with wireless signal receivers, which are devices with only wireless signal receivers without transmission capability, and devices with receiving and transmitting hardware, which are devices with receiving and transmitting hardware capable of two-way communication over a two-way communication link. Such devices may include: cellular or other communication devices such as personal computers, tablet computers, which have single-line displays or multi-line displays or cellular or other communication devices without multi-line displays; PCS (Personal Communications Services), which may combine voice, data processing, fax and / or data communication capabilities; PDA (Personal Digital Assistant), which may include a radio frequency receiver, pager, Internet / intranet access, web browser, notepad, calendar and / or GPS (Global Positioning System) receiver; conventional laptop and / or palmtop computers or other devices, which have and / or include a conventional laptop and / or palmtop computer or other device with and / or including a radio frequency receiver. The "client", "terminal" and "terminal device" used herein may be portable, transportable, installed in a vehicle (air, sea and / or land), or adapted and / or configured to run locally, and / or in a distributed form, running at any other location on the earth and / or in space. The "client", "terminal" and "terminal device" used herein may also be a communication terminal, an Internet terminal, a music / video playing terminal, for example, a PDA, a MID (Mobile Internet Device) and / or a mobile phone with a music / video playing function, or may be a smart TV, a set-top box and other devices.
[0049] The hardware referred to by the names such as "server", "client", and "service node" in this application is essentially an electronic device with the equivalent capabilities of a personal computer. It is a hardware device with the necessary components revealed by the von Neumann principle, such as a central processing unit (including an arithmetic unit and a controller), a memory, an input device, and an output device. The computer program is stored in its memory, and the central processing unit calls the program stored in the external memory into the internal memory for execution, executes the instructions in the program, and interacts with the input and output devices to complete specific functions.
[0050] It should be pointed out that the concept of "server" referred to in this application can also be extended to the case of server clusters. According to the network deployment principle understood by those skilled in the art, the servers should be logically divided. In physical space, these servers can be independent of each other but can be called through interfaces, or integrated into a physical computer or a set of computer clusters. Those skilled in the art should understand this flexibility, and should not use it to restrict the implementation of the network deployment method of this application.
[0051] Unless expressly specified, one or more technical features of the present application can be deployed on a server for implementation and accessed by a client through a remote call to obtain an online service interface provided by the server, or can be directly deployed and run on a client for access.
[0052] The neural network models referenced or may be referenced in this application, unless expressly specified, can be deployed on a remote server and remotely called on the client, or can be deployed and directly called on a client with sufficient device capabilities. In some embodiments, when it runs on the client, its corresponding intelligence can be obtained through transfer learning to reduce the requirements for the client's hardware operating resources and avoid excessive occupation of the client's hardware operating resources.
[0053] Unless explicitly specified, the various data involved in this application can be stored remotely on a server or on a local terminal device, as long as it is suitable for being called by the technical solution of this application.
[0054] Those skilled in the art should be aware that, although the various methods of the present application are described based on the same concept and thus present commonality to each other, unless otherwise specified, these methods can be independently executed. Similarly, for each embodiment disclosed in the present application, they are all proposed based on the same inventive concept, therefore, concepts with the same expression, and concepts that are appropriately changed for convenience despite different expressions, should be understood as equivalent.
[0055] Unless the mutually exclusive relationship between the embodiments to be disclosed in this application is explicitly stated, the relevant technical features involved in each embodiment can be cross-combined to flexibly construct a new embodiment, as long as such combination does not deviate from the creative spirit of this application and can meet the needs of the prior art or solve certain deficiencies in the prior art. Those skilled in the art should be aware of this flexibility.
[0056] See also Figure 1 In one embodiment, the rice field grass weed classification and removal method of the present application comprises:
[0057] Step S10, obtaining a rice seedling image to be detected, performing instance segmentation on the rice seedling image to be detected using a pre-trained rice field weed detection model, and determining a target area image corresponding to rice field Gramineae weeds in the rice seedling image to be detected;
[0058] The binocular camera in the pesticide spraying drone can obtain the rice seedling image to be detected. The rice seedling image to be detected may be a rice seedling image containing rice field gramineous weeds. It is not difficult to understand that it may also contain other types of weeds. The rice seedling image is generally a rice seedling image that does not contain rice field gramineous weeds. The implementation of the present application is to identify rice field gramineous weeds from the rice seedling image. Therefore, it is necessary to determine the target area image corresponding to the rice field gramineous weeds from the rice seedling image to be detected, and use a pre-trained rice field weed detection model to perform instance segmentation on the rice seedling image to be detected, and determine the target area image corresponding to the rice field gramineous weeds in the rice seedling image to be detected. The rice field gramineous weeds include one or any multiple of barnyard grass and Leptochloa chinensis.
[0059] In some embodiments, the step of acquiring the image of the rice seedling to be detected includes:
[0060] Step S101, responding to a rice field grass weed classification and removal instruction, obtaining an image of a rice seedling to be detected from a binocular camera in a pesticide spraying drone;
[0061] Step S103: Detecting a target area image corresponding to the grass weeds in the rice field from the rice seedling image to be detected.
[0062] The paddy field weed detection model is a model that takes the rice seedling image as input and takes the paddy field grass weed label and its bounding box indicating the image position of the target area as output. The paddy field weed detection model is implemented as a preferred neural network model. For example, in the embodiment of the present application, the paddy field weed detection model is a Mask-RCNN that has been trained to convergence. Alternatively, the paddy field weed detection model can select a variety of relatively excellent instance segmentation models in the prior art, including but not limited to: YOLO series models, other R-CNN series models, SSD models, DETR, etc., all of which are mature instance segmentation models.
[0063] The step of performing instance segmentation on the rice seedling image to be detected using a pre-trained rice field weed detection model to determine a target area image corresponding to the rice field Gramineae weeds in the rice seedling image to be detected comprises:
[0064] Step S101, using a convolutional backbone network to extract features from the rice seedling image to be detected, to obtain multi-layer feature maps of different scales;
[0065] Step S103: using a region generation network to generate a plurality of candidate regions of interest for the multiple layers of feature maps of different scales, and then performing a region of interest alignment operation;
[0066] Step S105, using the head network to perform three branch processing on the feature map after alignment of the region of interest, namely, bounding box regression processing, recognition processing and mask map prediction, to obtain a detection result;
[0067] Step S107: based on the detection result, intercept the target area corresponding to the grass weeds in the rice field in the rice seedling image, and determine the corresponding target area image.
[0068] In this embodiment, the rice field weed detection model that has been trained to convergence includes three network components, the first network component is a convolutional backbone network, the convolutional backbone network of the rice field weed detection model is a ResNet50-FPN network, and the convolutional backbone network is used to extract features from the advertising image to obtain multiple layers of feature maps of different scales; the second network component is a region generation network, and the region generation network is used to generate multiple candidate regions of interest for the multiple layers of feature maps of different scales, and then perform a region of interest alignment operation; the third network component is a head network, and the head network is used to perform three branch processing on the feature map after the region of interest is aligned, namely, bounding box regression processing, recognition processing and mask map prediction, to obtain a detection result.
[0069] The detection result includes a bounding box indicating the area where the rice field grass weeds are located in the rice seedling image. The target area indicated by the bounding box in the rice field grass weeds is intercepted according to the bounding box to obtain a corresponding target area image. The number of the bounding boxes depends on the detection results in the actual scene application, and there may be no, one or more bounding boxes. Correspondingly, the number of the target area images is consistent with the number of the bounding boxes. The target area image corresponding to the rice field grass weeds is output to the next step for further processing.
[0070] Step S20, extracting features of the target area image based on a coarse feature extraction network in a point rendering convolutional neural network, and generating a coarse mask to determine a coarse segmentation feature;
[0071] See also Figure 2 and Figure 3 After determining the target area image corresponding to the grass weeds in the rice seedling image to be detected, feature extraction is performed on the target area image based on the coarse feature extraction network in the point rendering convolutional neural network, and a rough mask is generated to determine the coarse segmentation features, wherein the point rendering convolutional neural network includes a refined feature extraction network, a coarse feature extraction network and a point feature extraction module.
[0072] Further, the step of extracting features of the target area image based on a rough feature extraction network in a point rendering convolutional neural network and generating a rough mask to determine rough segmentation features includes:
[0073] The coarse feature extraction network is responsible for generating a coarse mask to provide regional-level context information. The coarse feature extraction network uses a lightweight segmentation head to perform feature extraction on the target area image corresponding to the rice field grass weeds and generate a coarse mask, which is used to indicate the approximate position and shape of the rice field grass weeds.
[0074] Step S30, extracting a high-resolution fine-grained feature map corresponding to the target area image based on a refined feature extraction network in a point rendering convolutional neural network of the paddy field weed detection model;
[0075] After determining the rough segmentation features, a refined feature extraction network in the point rendering convolutional neural network of the paddy field weed detection model extracts a high-resolution fine-grained feature map corresponding to the target area image.
[0076] Furthermore, the step of extracting a high-resolution fine-grained feature map corresponding to the target area image based on a refined feature extraction network in a point rendering convolutional neural network of the paddy field weed detection model comprises:
[0077] The refined feature extraction network branch is responsible for refining the feature maps of different scales corresponding to the target area image of the rice field grass weeds to generate a high-resolution fine-grained feature map to improve the accuracy of the segmentation map. The high-resolution fine-grained feature map contains detailed information and subtle structures of the rice field grass weeds. The refined feature extraction network uses a subdivision strategy to adaptively select a set of uneven points to effectively calculate the high-resolution segmentation map.
[0078] Specifically, the refined feature extraction network branch is responsible for refining the feature maps of different scales corresponding to the target area image of the paddy field grass weeds of the backbone network ResNet50-FPN in the paddy field weed detection model to generate high-resolution fine-grained feature maps to improve the accuracy of the segmentation map. The refined feature extraction network branch uses a subdivision strategy to adaptively select a set of uneven points to efficiently calculate the high-resolution segmentation map. In addition, the branch also independently predicts each point through a point feature extraction module to further improve details and accuracy.
[0079] In some embodiments, the point feature extraction module in the point rendering convolutional neural network uses a smaller number of floating-point operations to perform bilinear interpolation upsampling on the feature maps of different scales corresponding to the target area image of the rice field grass weeds of the backbone network ResNet50-FPN in the rice field weed detection model to generate high-resolution fine-grained feature maps. These feature maps are used to generate the final point rendering results in subsequent processing. Each detected object has an independent set of weight parameters to ensure that the rendering result can accurately reflect its importance in the original scene.
[0080] Step S40, fusing the high-resolution fine-grained feature map with the coarse segmentation feature to determine a fused feature, performing point-by-point prediction on the fused feature, and determining an object mask corresponding to the grass weeds in the paddy field;
[0081] After the high-resolution fine-grained feature map and the coarse segmentation features are determined through the above steps, the high-resolution fine-grained feature map and the coarse segmentation features are fused to determine the fused features, so as to comprehensively utilize global and local information, perform point-by-point prediction on the fused features, and determine the object mask corresponding to the rice field grass weeds, wherein the object mask accurately indicates the position and shape of the rice field grass weeds in the image.
[0082] Step S50, determining the corresponding position and category of each of the rice field Poaceae weeds according to the object mask, the pesticide spraying drone determines the corresponding pesticide prescription for the rice field Poaceae weeds based on the corresponding category of the rice field Poaceae weeds, and sprays the pesticide to the corresponding position of the rice field Poaceae weeds to complete the classified removal of the rice field Poaceae weeds.
[0083] After determining the object mask corresponding to the rice field Poaceae weeds, the corresponding position and category of each of the rice field Poaceae weeds are determined according to the object mask. The pesticide spraying drone determines the corresponding pesticide prescription for the rice field Poaceae weeds based on the corresponding category of the rice field Poaceae weeds, and sprays the pesticide to the corresponding position of the rice field Poaceae weeds to complete the classified removal of the rice field Poaceae weeds.
[0084] Specifically, the binocular camera in the pesticide spraying drone can obtain early rice seedling images, and accurately and efficiently distinguish rice seedlings from rice field grass weeds through the rice field weed detection model to determine the target area image corresponding to the rice field grass weeds. The target area image corresponding to the rice field grass weeds is further identified and distinguished based on the point rendering convolutional neural network, and the convolutional neural network is used to extract image features. The high-performance similar weed instance segmentation is achieved by introducing a point rendering-based refinement module to fuse coarse and fine granularity features, and the corresponding position and category of each of the rice field grass weeds are determined. The pesticide spraying drone determines the corresponding pesticide prescription for the rice field grass weeds based on the corresponding category of the rice field grass weeds, and sprays them to the corresponding position of the rice field grass weeds to complete the classification and removal of rice field grass weeds.
[0085] It can be seen from the above embodiments that it is difficult to identify similar weeds of the same family (genus) in early rice seedlings, and artificial weed discovery is inefficient and time-delayed, making it difficult to ensure that weeds are discovered in the early stage of weed growth and to take timely pesticide implementation measures, and the risk of weed spread cannot be effectively avoided. The rice seedlings and rice grass weeds are accurately and efficiently distinguished by the rice field weed detection model to determine the target area image corresponding to the rice grass weeds, and the target area image corresponding to the rice grass weeds is further identified and distinguished based on the point rendering convolutional neural network. The convolutional neural network is used to extract image features, and the high-performance similar weed instance segmentation is achieved by introducing a refinement module based on point rendering to fuse coarse and fine granular features. The method has the advantages of strong robustness, high accuracy and high efficiency, solves the problem of difficulty in identifying similar weeds of the same family (genus), and lays the foundation for subsequent targeted weed control.
[0086] See also Figure 4, a rice field grass weed classification and removal device provided to meet one of the purposes of the present application, includes a target area determination module 1100, a coarse feature determination module 1200, a fine-grained feature determination module 1300, an object mask generation module 1400 and a classification removal module 1500. Among them, the target area determination module 1100 is configured to obtain a rice seedling image to be detected, use a pre-trained rice field weed detection model to perform instance segmentation on the rice seedling image to be detected, and determine the target area image corresponding to the rice field grass weeds in the rice seedling image to be detected; the coarse feature determination module 1200 is configured to extract features from the target area image based on a coarse feature extraction network in a point rendering convolutional neural network, and generate a coarse mask to determine the coarse segmentation features; the fine-grained feature determination module 1300 is configured to extract the target area image based on a refined feature extraction network in a point rendering convolutional neural network of the rice field weed detection model. A corresponding high-resolution fine-grained feature map; an object mask generation module 1400, configured to fuse the high-resolution fine-grained feature map with the coarse segmentation feature to determine a fused feature, perform point-by-point prediction on the fused feature, and determine an object mask corresponding to the paddy field Poaceae weeds; a classification removal module 1500, configured to determine the corresponding position and category of each of the paddy field Poaceae weeds according to the object mask, a pesticide spraying drone determines the corresponding pesticide prescription for the paddy field Poaceae weeds based on the corresponding category of the paddy field Poaceae weeds, and sprays the pesticide to the corresponding position of the paddy field Poaceae weeds, so as to complete the classification removal of the paddy field Poaceae weeds.
[0087] Based on any embodiment of this application, please refer to Figure 5 Another embodiment of the present application further provides an electronic device, which can be implemented by a computer device, such as Figure 5 As shown, a schematic diagram of the internal structure of a computer device. The computer device includes a processor, a computer-readable storage medium, a memory, and a network interface connected via a system bus. Among them, the computer-readable storage medium of the computer device stores an operating system, a database, and computer-readable instructions. The database may store a control information sequence. When the computer-readable instructions are executed by the processor, the processor can implement a method for classifying and removing grass weeds in rice fields. The processor of the computer device is used to provide computing and control capabilities to support the operation of the entire computer device. The memory of the computer device may store computer-readable instructions. When the computer-readable instructions are executed by the processor, the processor can execute the method for classifying and removing grass weeds in rice fields of the present application. The network interface of the computer device is used to connect and communicate with a terminal. Those skilled in the art can understand that Figure 5The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0088] In this embodiment, the processor is used to execute Figure 4 The memory stores the program code and various data required to execute the above modules or submodules. The network interface is used to transmit data between user terminals or servers. The memory in this embodiment stores the program code and data required to execute all modules / submodules in the rice field grass weed classification and removal device of the present application, and the server can call the program code and data of the server to execute the functions of all submodules.
[0089] The present application also provides a storage medium storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the method for classifying and removing grass weeds in rice fields described in any embodiment of the present application.
[0090] The present application also provides a computer program product, including a computer program / instruction, which, when executed by one or more processors, implements the steps of the method for classifying and removing grass weeds in rice fields described in any embodiment of the present application.
[0091] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments of the present application can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a computer-readable storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
[0092] The above description is only a partial implementation method of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
[0093] In summary, the present application solves the problem of difficulty in identifying similar weeds of the same family (genus), laying the foundation for subsequent targeted weed control.
Claims
1. A method for classifying and removing grass weeds in rice fields, characterized in that: include: Acquire a rice seedling image to be detected, perform instance segmentation on the rice seedling image to be detected using a pre-trained rice field weed detection model, and determine a target area image corresponding to the rice field Gramineae weeds in the rice seedling image to be detected; Extracting features of the target area image based on a rough feature extraction network in a point rendering convolutional neural network, and generating a rough mask to determine rough segmentation features; Extracting a high-resolution fine-grained feature map corresponding to the target area image based on a refined feature extraction network in a point rendering convolutional neural network of the paddy field weed detection model; Fusing the high-resolution fine-grained feature map with the coarse segmentation feature to determine a fused feature, performing point-by-point prediction on the fused feature, and determining an object mask corresponding to the grass weeds in the paddy field; The corresponding positions and categories of each of the rice field grass weeds are determined according to the object mask, and the pesticide spraying drone determines the corresponding pesticide prescription for the rice field grass weeds based on the corresponding categories of the rice field grass weeds, and sprays the pesticides to the corresponding positions of the rice field grass weeds to complete the classified removal of the rice field grass weeds.
2. The method for classifying and removing grass weeds in paddy fields according to claim 1, characterized in that: The steps of obtaining the rice seedling image to be detected include: In response to the command of classifying and removing grass weeds in rice fields, the image of rice seedlings to be detected is obtained from the binocular camera in the pesticide spraying drone; A target area image corresponding to the grass weeds in the rice field is detected from the rice seedling image to be detected.
3. The method for classifying and removing grass weeds in paddy fields according to claim 1, characterized in that: The step of performing instance segmentation on the rice seedling image to be detected using a pre-trained rice field weed detection model to determine a target area image corresponding to the rice field Gramineae weeds in the rice seedling image to be detected comprises: Using a convolutional backbone network to extract features from the rice seedling image to be detected, and obtaining multi-layer feature maps of different scales; A region generation network is used to generate a plurality of candidate regions of interest for the multi-layer feature maps of different scales, and then an alignment operation of the regions of interest is performed; The head network is used to perform three branch processing on the feature map after alignment of the region of interest, namely bounding box regression processing, recognition processing and mask map prediction, to obtain the detection result; According to the detection result, a target area corresponding to the grass weeds in the rice field in the rice seedling image is intercepted to determine the corresponding target area image.
4. The method for classifying and removing grass weeds in paddy fields according to claim 1, characterized in that: The step of extracting features of the target area image based on a rough feature extraction network in a point rendering convolutional neural network and generating a rough mask to determine rough segmentation features includes: The point rendering convolutional neural network includes a refined feature extraction network, a coarse feature extraction network and a point feature extraction module; The coarse feature extraction network is responsible for generating a coarse mask to provide regional-level context information. The coarse feature extraction network uses a lightweight segmentation head to perform feature extraction on the target area image corresponding to the rice field grass weeds and generate a coarse mask, which is used to indicate the approximate position and shape of the rice field grass weeds.
5. The method for classifying and removing grass weeds in paddy fields according to claim 1, characterized in that: The step of extracting a high-resolution fine-grained feature map corresponding to the target area image based on a refined feature extraction network in a point rendering convolutional neural network of the paddy field weed detection model comprises: The refinement feature extraction network branch is responsible for refining the feature maps of different scales corresponding to the target area image of the rice field grass weeds to generate a high-resolution fine-grained feature map to improve the accuracy of the segmentation map, wherein the high-resolution fine-grained feature map contains detailed information and subtle structures of the rice field grass weeds; The refined feature extraction network uses a segmentation strategy to adaptively select a set of non-uniform points to efficiently compute high-resolution segmentation maps.
6. The method for classifying and removing grass weeds in rice fields according to claim 1, characterized in that: The rice field grass weeds include one or more of Echinochloa crus-galli and Leptochloa chinensis.
7. The method for classifying and removing grass weeds in paddy fields according to any one of claims 1 to 6, characterized in that: The basic network architecture of the paddy field weed detection model is a Mask-RCNN model, and the convolutional backbone network of the paddy field weed detection model is a ResNet50-FPN network.
8. A device for classifying and removing grass weeds in rice fields, characterized in that: include: a target region determination module, configured to obtain a rice seedling image to be detected, perform instance segmentation on the rice seedling image to be detected using a pre-trained rice field weed detection model, and determine a target region image corresponding to the rice field Gramineae weeds in the rice seedling image to be detected; A rough feature determination module is configured to extract features of the target area image based on a rough feature extraction network in a point rendering convolutional neural network, and generate a rough mask to determine a rough segmentation feature; A fine-grained feature determination module is configured to extract a high-resolution fine-grained feature map corresponding to the target area image based on a refined feature extraction network in a point rendering convolutional neural network of the paddy field weed detection model; An object mask generation module is configured to fuse the high-resolution fine-grained feature map with the coarse segmentation feature to determine a fused feature, perform point-by-point prediction on the fused feature, and determine an object mask corresponding to the grass weeds in the paddy field; The classification and removal module is configured to determine the corresponding position and category of each of the rice field Poaceae weeds according to the object mask, and the pesticide spraying drone determines the corresponding pesticide prescription for the rice field Poaceae weeds based on the corresponding category of the rice field Poaceae weeds, and sprays the pesticide to the corresponding position of the rice field Poaceae weeds to complete the classification and removal of the rice field Poaceae weeds.
9. An electronic device, comprising a central processing unit and a memory, characterized in that: The central processing unit is used to call and run the computer program stored in the memory to execute the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: It stores a computer program implemented according to the method described in any one of claims 1 to 7 in the form of computer-readable instructions, and when the computer program is called and executed by a computer, the steps included in the corresponding method are executed.
Citation Information
Patent Citations
Rice field weed identification method for extracting multi-dimensional expansion features based on convolutional neural network
CN110457989A
Video background portrait segmentation model and algorithm based on point rendering
CN115272906A
Cited By
Method, device and equipment for detecting and positioning weeds in rice field based on unmanned aerial vehicle, and medium
CN119648790A
