A method for identifying the heart of corn plant

Through edge precision processing and adaptive lightweight progressive feature pyramid network model, combined with selective attention mechanism and image moment principle, the problem of insufficient accuracy and field applicability in corn plant center positioning is solved, and weeds are realized. Accurate corn center positioning in dense environments.

CN118470712BInactive Publication Date: 2024-10-29JILIN AGRICULTURAL UNIV
View PDF 11 Cites 0 Cited by

Patent Information

Application Number
CN202410927971.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2024-10-29
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing technology has insufficient accuracy and field applicability in locating the corn plant center, especially in the case of dense weeds, with poor positioning effect.

Method used

Edge precision processing is used to construct a network model including an adaptive lightweight progressive feature pyramid network, and the selective attention mechanism and image moment principle are combined to accurately locate the center of the corn plant.

Benefits of technology

It improves the accuracy and field applicability of corn plant center positioning, can effectively suppress irrelevant interference, reduce the amount of model calculations and parameters, and achieve accurate calculation of corn plant center coordinates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118470712B_ABST
    Figure CN118470712B_ABST
Patent Text Reader

Abstract

The present invention discloses a corn plant center recognition method, which relates to the technical field of image recognition and includes the following steps: edge precision processing: edge filling of the collected data image and labeling one by one; network model construction: constructing a network model including a backbone network and an adaptive lightweight progressive feature pyramid network, wherein the adaptive lightweight progressive feature pyramid network introduces a selective attention mechanism before the output of the large-size target detection layer; plant center positioning: using a color space filtering algorithm to segment the leaf crown area, using a gap filling algorithm to distinguish between the background and the leaf crown area, and using the image moment principle to accurately calculate the plant center coordinates. Aiming at the problem that the rotation angle of the rotating bounding box is limited by the edge of the picture and the corner information cannot be accurately labeled, the present invention designs a high-precision edge labeling strategy, which ensures that the edge of the picture is accurately labeled by expanding the edge area of ​​the picture, thereby improving the calculation accuracy of the corn plant center coordinates.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image recognition, and in particular to a method for identifying the core of a corn plant. Background Art

[0002] Corn is not only a source of food for humans, but also a major feed ingredient for animal husbandry. As the main raw material for bioethanol production, it is of great significance in the field of renewable energy. The heart of the corn plant is a key part of its growth, including the growth point of the plant and the key part of nutrient supply.

[0003] During the seedling stage to the trumpet stage of corn growth, spraying foliar fertilizer can supplement the macro-elements and trace elements required for plant growth, promote strong stems and lush leaves, and accurately identifying the plant center and leaf crown is crucial for effective foliar fertilizer spraying. The plant center is the growth center of the corn plant, where the demand for nutrients is concentrated, while the leaf crown is the main site of photosynthesis. Ensuring that foliar fertilizer acts directly on these key parts can significantly improve the absorption efficiency of fertilizers, promote balanced growth of plants, meet the nutrient needs of plants while reducing resource waste and environmental impact, and improve the overall efficiency and sustainability of agricultural production.

[0004] At present, the methods of plant center positioning are mainly divided into two categories: based on traditional image processing and based on deep learning. Traditional image processing methods such as super green method and HSV color space theory are too dependent on color features, easily affected by light, angle, weed density and leaf shape, and have poor field applicability. There are two main types of plant center positioning using deep learning methods: directly detecting the plant center area and first detecting the leaf crown area and then fitting the plant center position. Although the direct detection of the plant center strategy model can solve the problem of leaf crossing, the definition of the plant center area is highly subjective and the model reliability is low; using the SSD model, Faster R-CNN algorithm and other horizontal target detection models or Mask R-CNN segmentation models to automatically learn and extract key features in the image to extract the leaf crown area, and then fitting the plant center point strategy solves the problem of poor field applicability of traditional methods, but the positioning effect is poor in the case of dense weeds.

[0005] In summary, how to develop a plant center positioning method that is both accurate and suitable for field environments is an urgent problem to be solved by technical personnel in this field.

[0006] With the development of rotating object detection models, this method has been extended from remote sensing and text recognition to agriculture. Rotating object detection algorithms can handle objects with specific angles or non-horizontal directions, and have broad application prospects in the agricultural field. Some applications have shown that rotating object detection algorithms can provide more accurate and effective solutions for the agricultural field, helping to improve agricultural production efficiency and crop quality. Summary of the invention

[0007] The technical solution of the present invention to solve the above technical problem is to provide a method for identifying the heart of a corn plant, comprising the following steps:

[0008] Edge precision processing: fill the edges of the collected data images and mark them one by one;

[0009] Constructing a network model: Constructing a network model including a backbone network and an adaptive lightweight progressive feature pyramid network. The adaptive lightweight progressive feature pyramid network introduces a selective attention mechanism before the output of the large-scale object detection layer.

[0010] Plant center positioning: Use the color space filtering algorithm to segment the leaf crown area, and use the gap filling algorithm to improve the image quality, distinguish the background and leaf crown area, and use the image moment principle to accurately calculate the plant center coordinates.

[0011] Furthermore, the step of edge precision processing includes:

[0012] Perform edge filling operation on the collected data image;

[0013] The labelimg2 tool, a rotating bounding box annotation software, was used to annotate the corn leaf crowns one by one in the image after the edge filling operation.

[0014] Furthermore, in the step of constructing the network model, the adaptive lightweight progressive feature pyramid network obtains three feature layers of feat1, feat2 and feat3 from the middle layer, the lower middle layer and the bottom layer of the backbone network; first combines the bottom layer feature feat1 with the middle layer feature feat2, and then fuses the top layer feature feat3;

[0015] The selective attention mechanism consists of a large convolution kernel module and a spatial kernel selection module; and LSK is added before the output of the large-size object detection branch to dynamically adjust the receptive field.

[0016] Furthermore, in the step of locating the plant center,

[0017] Using the image moment principle to accurately calculate the coordinates of the plant center ( , ), the calculation formula is: ; .

[0018] Compared with the prior art, the advantages of the present invention are as follows:

[0019] (1) To address the problem that the rotation angle of the rotating bounding box is limited by the edge of the image and the corner information cannot be accurately labeled, this application designs a high-precision edge labeling strategy to ensure accurate labeling of the image edge by expanding the edge area of ​​the image.

[0020] (2) This application designs a network model that enhances the model's ability to extract corn canopy features and process the differences in target background information under different environments through direct interactions between non-adjacent layers and the introduction of an attention mechanism (LSK).

[0021] (3) To address the problem of redundant computation caused by direct interaction between non-adjacent layers, this application proposes to weaken the functions of small-size target layer and medium-size target layer and introduce a lightweight upsampling operator CARAFE to replace the original upsampling method to obtain LC-AFPN, thereby reducing the amount of model computation and the number of parameters.

[0022] (4) The plant center positioning method proposed in this application can effectively suppress irrelevant interference and accurately calculate the coordinates of the corn plant center by calculating the first-order moment and second-order moment of the binary image of the corn crown. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.

[0024] Figure 1 This is a flow chart of the steps of the corn plant heart identification method of the present invention;

[0025] Figure 2 Annotation diagram for image data of the present invention;

[0026] Figure 3 This is a structural diagram of the LC-AFPN module of the present invention;

[0027] Figure 4 This is the LCA-YOLOv7OBB network structure diagram of the present invention;

[0028] Figure 5 This is the plant center positioning module process of the present invention. DETAILED DESCRIPTION

[0029] The following will be combined with the drawings in the accompanying drawings of the present invention specification to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0030] It should be noted that all directional indications (such as up, down, left, right, front, back, etc.) in the embodiments of the present invention are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0031] In addition, in the present invention, descriptions such as "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "several" or "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0032] In the present invention, unless otherwise clearly specified and limited, the terms "connection", "fixation", etc. should be understood in a broad sense. For example, "fixation" can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0033] In addition, the technical solutions between the various embodiments of the present invention can be combined with each other, but it must be based on the fact that ordinary technicians in the field can implement it. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0034] The invention proposes a corn plant center identification method, aiming to design a plant center positioning method which is both accurate and suitable for field environments.

[0035] The corn plant center identification method proposed by the present invention will be described in detail in the following specific embodiments:

[0036] In the technical solution of this embodiment, Figure 1 As shown, a method for identifying the heart of a corn plant comprises:

[0037] S10: Edge precision processing: fill the edges of the collected data images and mark them one by one;

[0038] Specifically, the collected data image is edge-filled;

[0039] The labelimg2 tool, a rotating bounding box annotation software, was used to annotate the corn leaf crowns one by one in the image after the edge filling operation.

[0040] S20: Build a network model: Build a network model including a backbone network and an adaptive lightweight progressive feature pyramid network, wherein the adaptive lightweight progressive feature pyramid network introduces a selective attention mechanism before the output of the large-size target detection layer;

[0041] Specifically, the adaptive lightweight progressive feature pyramid network obtains three feature layers of feat1, feat2 and feat3 from the middle layer, the lower middle layer and the bottom layer of the backbone network; first combines the bottom layer feature feat1 with the middle layer feature feat2, and then fuses the top layer feature feat3;

[0042] The selective attention mechanism consists of a large convolution kernel module and a spatial kernel selection module; and LSK is added before the output of the large-size object detection branch to dynamically adjust the receptive field.

[0043] S30: Plant center positioning: Use the color space filtering algorithm to segment the leaf crown area, and use the gap filling algorithm to improve the image quality, distinguish the background and leaf crown area, and use the image moment principle to accurately calculate the plant center coordinates.

[0044] Specifically, the image moment principle is used to accurately calculate the plant center coordinates ( , ), the calculation formula is: ; .

[0045] Embodiment 1: A method for identifying the heart of a corn plant, comprising the following steps:

[0046] S10: Edge precision processing:

[0047] like Figure 2As shown, Image is the original collected image, padding is the edge filling image, and the red rectangular box in the figure is the real label. The present invention uses a self-made complex field 3 to 5 leaf stage corn canopy dataset for experimental verification and analysis. The data source of the self-made dataset uses 23,000 corn images of Jinong planted in the experimental field taken by mobile phones and digital cameras. The collected images include various corn canopy forms, such as a single canopy not covered by weeds, a canopy with a large number of weeds, a canopy with similar weeds, and images of multiple canopies overlapping each other. In addition, in order to reflect the actual environmental conditions, factors such as changes in light and weather conditions are also considered. The image acquisition device is a mobile phone (Redmi K40), which is taken at 9 am, 12 noon and 4 pm. During the shooting process, the device is placed 50 to 60 cm above the corn, and the corn plants are photographed from top to bottom. Based on the above conditions, a total of 2019 images were collected, each image contains information from three channels: red (R), green (G) and blue (B), and the image is saved in jpg format. After removing blurry images and images that do not contain the target object and annotating them, 1,800 images are obtained.

[0048] Edge information contains important features of the shape and structure of the leaf crown. When the rotating bounding box annotation software labelimg2 tool is used to annotate the image, the bounding box is limited in rotation at the image boundary. Therefore, the present invention performs an edge filling operation on the corn leaf crown image, annotates the corn leaf crowns in the image after the edge filling operation one by one with a rectangular box with a rotation angle, and saves it as a json format file. The annotated data is divided into 1440 training sets, 180 validation sets, and 180 test sets according to the ratio of 8:1:1 to ensure the model performance.

[0049] S20: Build network model:

[0050] Adaptive lightweight progressive feature pyramid network module LC-AFPN, such as Figure 3As shown in the figure, the core of the designed LC-AFPN module is the progressive fusion of multi-level features. By obtaining three feature layers of feat1, feat2, and feat3 from the middle layer, lower middle layer, and bottom layer of the backbone network, this progressive network architecture first combines the bottom feature feat1 with the middle layer feature feat2, and then fuses the top feature feat3 to reduce the semantic gap between non-adjacent layers. The selective attention mechanism consists of two main parts: a large convolution kernel module and a spatial kernel selection module. By adding LSK before the output of the large-size target detection branch, the dynamic adjustment of the receptive field is achieved, and the model's ability to extract corn canopy features and process the differences in different target background information under different environments is enhanced. By weakening the small and medium-size target detection branches and using the lightweight upsampling operator CARAFE instead of the standard upsampling in L-AFPN, the model parameters are reduced and the feature extraction capability of the LC-AFPN network is improved.

[0051] Network models, such as Figure 4 As shown, the self-made corn canopy dataset in step S10 is input into the network model, and the input layer of the network model converts the corn canopy image with a resolution of 640×640 into a pixel matrix of three channels of R, G, and B. The three feature layers feat1, feat2, and feat3 output by the middle layer, the lower middle layer, and the bottom layer of the backbone feature extraction module are input into the LC-AFPN module of Example 2, and the model's learning ability for features of different scales is enhanced through multi-scale feature fusion.

[0052] The three fused feature layers are respectively input into the head network for classification and regression tasks. In the process of corn leaf crown detection, there is a phenomenon of leaf crossing and a large number of weeds. It is difficult to dynamically adjust the receptive field using a fixed-size convolution kernel, which affects the network's accurate recognition of the corn leaf crown. Therefore, the present invention introduces the LSK attention mechanism before the output of the large-size target detection branch to achieve dynamic adjustment of the receptive field. The specific explanation is as follows:

[0053] The feature map feat3 obtained by the LC-AFPN module is passed through two convolutional layers to obtain two different feature maps. Next, the two attention maps are merged in the channel dimension through the channel splicing operation, and their global average pooling and maximum pooling are calculated. Then, the average pooling and maximum pooling results are merged through the splicing operation, and the weights are generated through a convolution operation. Finally, the two feature maps are weighted summed according to these weights and multiplied with the input feature map to generate the final output.

[0054] S30: Plant center positioning:

[0055] The network model in step S20 extracts the detection results of the corn leaf canopy, and uses the region highlighting algorithm to suppress irrelevant information, such as Figure 5As shown in the figure, the area outside the detection frame is covered with black to suppress the complex background. The image graying technology based on the super green method is used to segment the canopy area through the color space filtering algorithm, thereby simplifying the image and highlighting the canopy area. The maximum inter-class variance method is used to automatically calculate the optimal threshold, select the connected domain with the largest area as the actual corn canopy area, and perform gap filling operations on the connected domain with noise interference (improve image quality through the gap filling algorithm).

[0056] In image processing and computer vision, every shape is made up of pixels. Image moment is a special weighted average method of image pixel intensity. The centroid of the connected domain can be obtained using image moment. For binary images, the zero-order moment represents the total number of white pixels in the image, and the first-order moment represents the sum of white pixels on the x-axis and y-axis respectively. The centroid coordinates can be determined by formulas (1) and (2): (1) (2) By calculating the first-order moment and second-order moment of the binary image, the plant center coordinates of the corn crown are obtained.

[0057] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A method for identifying the heart of a corn plant, characterized in that: The following steps are involved: Edge precision processing: fill the edges of the collected data images and mark them one by one; Constructing a network model: Constructing a network model including a backbone network and an adaptive lightweight progressive feature pyramid network. The adaptive lightweight progressive feature pyramid network introduces a selective attention mechanism before the output of the large-scale object detection layer. Plant center positioning: Use color space filtering algorithm to segment the leaf crown area, and use gap filling algorithm to improve image quality, distinguish the background and leaf crown area, and use image moment principle to accurately calculate the plant center coordinates; The step of edge precision processing comprises: Perform edge filling operation on the collected data image; The labelimg2 tool, a rotating bounding box annotation software, was used to annotate the corn leaf crowns one by one in the image after the edge filling operation. Build the network model: The adaptive lightweight progressive feature pyramid network module LC-AFPN obtains three feature layers of feat1, feat2, and feat3 from the middle layer, lower middle layer, and bottom layer of the backbone network, first combines the bottom layer feature feat1 with the middle layer feature feat2, and then fuses the top layer feature feat3; The selective attention mechanism consists of two main parts: a large convolution kernel module and a spatial kernel selection module. LSK is added before the output of the large-size target detection branch, and two strategies are adopted to reduce the number of model parameters: weakening the small and medium-size target detection branches and using a lightweight upsampling operator CARAFE instead of the standard upsampling in L-AFPN. The input layer of the network model converts the corn canopy image with a resolution of 640×640 into a pixel matrix of three channels: R, G, and B. The three feature layers feat1, feat2, and feat3 output by the middle layer, middle-lower layer, and bottom layer of the backbone feature extraction module are input into the LC-AFPN module. Through multi-scale feature fusion, the model's learning ability for features of different scales is enhanced. The three fused feature layers are input into the head network for classification and regression tasks respectively; the LSK attention mechanism is introduced before the output of the large-size object detection branch: The feature map feat3 obtained by the LC-AFPN module is passed through two convolutional layers to obtain two different feature maps; the two attention maps are merged in the channel dimension through the channel splicing operation, and their global average pooling and maximum pooling are calculated; the average pooling and maximum pooling results are merged through the splicing operation, and the weights are generated through a convolution operation; the two feature maps are weighted summed according to the weights and multiplied with the input feature map to generate the final output.

2. The corn plant center identification method according to claim 1, characterized in that: In the step of locating the plant center, Using the image moment principle to accurately calculate the plant center coordinates ( , ), the calculation formula is: ; 。

Citation Information

Patent Citations

  • Measure and control device for electrorotation biological chip experiment and experiment system

    CN103048256A

  • Sports video tactical behavior recognition method based on space-time local mode

    CN104102910A

  • PCB marking printing quality detection method based on deep learning

    CN110060238A

  • Improved YOLOv5 target detection model construction method and method for identifying tea tender shoots and positioning picking points

    CN114882222A

  • Complex orchard longan fruit bunching detection method, system and equipment based on image recognition and medium

    CN115019301A