Seedling growth condition detection method based on image recognition

By using Sobel filter-optimized bicubic difference image rotation algorithm and efficient dual-channel attention method to optimize the ResNet34 model in seedling growth detection, the problem of low efficiency of existing detection methods and annotation data requirements is solved, and high efficiency is achieved. , Accurate detection of seedling growth.

CN118587602AInactive Publication Date: 2024-09-03会东县营林造林站 +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410817198.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2024-09-03
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing seedling growth detection methods are inefficient and have low accuracy, requiring a lot of manpower and time costs. The image recognition model requires a large amount of annotated data and long-term reasoning, which limits its usability in real-time applications.

Method used

A bicubic difference image rotation algorithm based on Sobel filter optimization is used for data enhancement, a ResNet34 model with a bottleneck layer is used, and the residual structure of the model is optimized through an efficient dual-channel attention method to reduce the number of training sets and inference time. .

Benefits of technology

It improves the efficiency and accuracy of seedling growth detection, reduces labor and time costs, and enhances the practicability and identification efficiency of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587602A
    Figure CN118587602A
Patent Text Reader

Abstract

The invention belongs to the field of image recognition, and particularly relates to a seedling growth condition detection method based on image recognition, and the method comprises the steps: data collection, data enhancement, data preprocessing, feature extraction, feature classification, model evaluation and optimization, and growth condition detection. The consumption of manpower and time cost is reduced, and the detection efficiency is improved; according to the invention, a bicubic difference image rotation algorithm based on Sobel filter optimization is adopted to carry out data enhancement on a seedling image, and the diversity of a sample data set is enriched; a ResNet34 model with a bottleneck layer is used for extracting features, the reuse rate of the features is improved, and the number of training sets to be used is reduced; and the residual structure of the ResNet34 model is optimized by adopting a high-efficiency double-channel attention method, so that the efficiency of identifying the model is improved, and the practicability of the model is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of image recognition, and in particular is a seedling growth condition detection method based on image recognition. Background Art

[0002] Seedling growth detection plays a very important role in the agricultural field. The role of seedling growth detection not only includes health monitoring and disease prevention, growth assessment and optimization management, quality control and variety selection, but also contributes to agricultural automation and efficiency improvement; these roles help to improve the growth of seedlings, increase the yield and quality of crops, and optimize the management and efficiency of agricultural and horticultural production; however, the existing seedling growth detection methods are usually manual detection methods, which are inefficient and have low detection accuracy, and will consume a lot of manpower and time costs; in addition, the existing image recognition models require a large amount of labeled training data to learn and identify the growth of seedlings. It is time-consuming and labor-intensive to obtain large-scale labeled data. The appearance and morphology of seedlings vary greatly in different plant species, growth stages and environmental conditions. A data set with rich sample diversity is required to train the model. The existing computer image recognition-based models require a long inference time, which also limits their usability in real-time applications. Summary of the invention

[0003] In view of the problem that the existing seedling growth detection method is usually a manual detection method, which is inefficient and has a low detection accuracy, and consumes a lot of manpower and time costs, the present invention adopts a computer image recognition model to reduce the consumption of manpower and time; in view of the problem that the existing image recognition model requires a large amount of labeled training data to learn and identify the growth of seedlings, it is time-consuming and laborious to obtain large-scale labeled data, the appearance and morphology of seedlings vary greatly under different plant species, growth stages and environmental conditions, and a data set with rich sample diversity is required to train the model, the present invention adopts a bicubic difference image rotation algorithm based on Sobel filter optimization to perform data enhancement on the seedling image, and uses a ResNet34 model with a bottleneck layer to improve the reuse rate of features and reduce the number of training sets to be used; in view of the problem that the existing model based on computer image recognition requires a long inference time and has low availability in real-time applications, the present invention adopts a high-efficiency dual-channel attention method to optimize the residual structure of the ResNet34 model, improves the efficiency of the recognition model, and increases the practicability of the model.

[0004] The technical solution adopted by the present invention is as follows: a seedling growth detection method based on image recognition, specifically comprising the following steps:

[0005] Step S1: data collection, using a high-definition camera to shoot the seedlings and obtain seedling images;

[0006] Step S2: data enhancement, using a bicubic difference image rotation algorithm optimized based on a Sobel filter to perform data enhancement on the seedling image to obtain a data enhanced seedling image;

[0007] Step S3: data preprocessing, randomly adding noise to the data-enhanced seedling images, and normalizing all images to unify the image sizes to obtain standard seedling images;

[0008] Step S4: feature extraction, using the ResNet34 model optimized by the efficient dual-channel attention method to extract and optimize the features of the standard seedling image, and obtain the optimized features of the seedling feature image;

[0009] Step S5: feature classification, using the softmax function to classify the optimized features to obtain the classification results of the seedlings;

[0010] Step S6: Model evaluation and optimization, optimizing the bicubic difference image rotation algorithm based on Sobel filter optimization and the ResNet34 model optimized by the efficient dual-channel attention method;

[0011] Step S7: Growth condition detection: using the optimized algorithm and model to classify the seedling images to obtain the seedling growth condition classification detection results.

[0012] Further, step S2 specifically includes the following steps:

[0013] Step S21: Initialize the Sobel filter in the horizontal direction and the Sobel filter in the vertical direction, initialize all the pixels in the seedling image, and calculate the position of each pixel in the seedling image;

[0014] Step S22: Record the RGB color channel information of each pixel;

[0015] Step S23: According to the position of each pixel, 16 adjacent pixels around the pixel are selected;

[0016] Step S24: performing bicubic interpolation operation on each pixel;

[0017] Further, step S24 specifically includes the following steps:

[0018] Step S241: Calculate the floating point coordinates of each pixel point according to the position of each pixel point;

[0019] Step S242: Mapping the floating point coordinates of each pixel point to the integer coordinates of 16 adjacent pixel points around the pixel point;

[0020] Step S243: Calculate the distance and weight of each pixel point and 16 adjacent pixels around the pixel point;

[0021] Step S244: performing weighted summation of RGB color channel information of each pixel and 16 neighboring pixels around the pixel according to the distance and the weight, to obtain an interpolation result of each pixel;

[0022] Step S25: setting the rotation angle range to [-90°, 90°], fixing the size of the seedling image after rotation, performing random angle rotation on the seedling image, and obtaining the rotated seedling image and each corresponding rotated pixel point;

[0023] Step S26: converting the rotated seedling image into a grayscale image, and performing convolution operations on each pixel after rotation using a horizontal Sobel filter and a vertical Sobel filter, respectively, to obtain a horizontal gradient value and a vertical gradient value;

[0024] Step S27: using the Pythagorean theorem to calculate the gradient value in the horizontal direction and the gradient value in the vertical direction to obtain the gradient amplitude, and using the inverse tangent function to calculate the gradient value in the horizontal direction and the gradient value in the vertical direction to obtain the gradient direction;

[0025] Step S28: performing non-maximum suppression processing on the grayscale image according to the gradient amplitude and the gradient direction to obtain the edge region of the grayscale image, and converting the edge region of the grayscale image into the edge region of the rotated seedling image;

[0026] Step S29: assigning the interpolation result of each pixel point to each pixel point after rotation, and superimposing the edge area of ​​the rotated seedling image onto the rotated seedling image to obtain a data enhanced seedling image.

[0027] Further, step S4 specifically includes the following steps:

[0028] Step S41: Input the standard seedling image into the ResNet34 model, use 7*7 convolution to extract features of the standard seedling image, and obtain initial features. The dimension of the initial features is , Represent the width, height and number of channels of the initial features respectively;

[0029] Step S42: Optimizing the initial features using a highly efficient dual-channel attention method to obtain initial optimized features and fused features;

[0030] Further, step S42 specifically includes the following steps:

[0031] Step S421: Perform global average pooling on the initial features to obtain a feature vector. The formula used is as follows: ;

[0032] In the formula, Represents width and height respectively. Represents width and height respectively. represents the feature vector obtained by global average pooling, represents the initial features;

[0033] Step S422: Perform global maximum pooling on the initial features to obtain a feature vector. The formula used is as follows: ;

[0034] In the formula, Represents width and height respectively. Represents width and height respectively. Represents the feature vector obtained by global maximum pooling, represents the initial features;

[0035] Step S423: Collectively referred to as , initialize the frequency band matrix of the learning channel attention with the same learning parameters shared by all channels, using The formula used to calculate the inter-channel weight is as follows: ;

[0036] In the formula, is the sigmoid activation function, To learn the frequency band matrix of the channel, Represents the current channel number, represents the weight between channels;

[0037] Step S424: Calculate the frequency band matrix concerned by the learning channel; ;

[0038] In the formula, To learn the frequency band matrix of the channel, is the inter-channel weight;

[0039] Step S425: further optimize the weight calculation, and calculate the optimized weight. The formula used is as follows: ;

[0040] In the formula, is the inter-channel weight, represents the optimized weight, Represents the current width, height and number of channels respectively. represents the same learning parameters shared by all channels, ,in The number of channels is of gather;

[0041] Step S426: Calculate feature vector The corresponding channel weights are as follows: ; ;

[0042] In the formula, represents one-dimensional convolution, is the feature vector The channel weights of for The channel weight of

[0043] Step S427: Perform weighted summation on the channel weights to obtain the optimization parameters. The formula used is as follows: ;

[0044] In the formula, In order to continuously adjust and optimize the dynamic parameters, To optimize the parameters;

[0045] Step S428: Use the optimization parameters to optimize the initial features to obtain the initial optimized features. The formula used is as follows: ;

[0046] In the formula, represents the initial optimization feature;

[0047] Step S429: Fusing the initial optimized features with the initial features to obtain fused features;

[0048] Step S43: Use the 3*3 convolution of the ResNet34 model to perform multi-layer convolution on the fused features, and use the ResNet34 model to perform dimensionality reduction-dimensionality increase processing on the fused features to obtain parameter reduction features;

[0049] Step S44: Use multi-layer 3*3 convolution to perform convolution processing on the parameter reduction features, and perform average pooling on the parameter reduction features to obtain the final features;

[0050] Step S45: Use the final feature as the input value, use the efficient dual-channel attention method to optimize the final feature, repeat step S42 to obtain the optimized feature.

[0051] The beneficial effects achieved by the present invention using the above scheme are as follows:

[0052] (1) In view of the problem that the existing seedling growth detection method is usually a manual detection method, which is inefficient and has a low detection accuracy, and consumes a lot of manpower and time costs, the present invention adopts a computer image recognition model to reduce the consumption of manpower and time;

[0053] (2) The existing image recognition model requires a large amount of labeled training data to learn and identify the growth of seedlings. It is time-consuming and laborious to obtain large-scale labeled data. The appearance and morphology of seedlings vary greatly under different plant species, growth stages and environmental conditions, and a data set with rich sample diversity is needed to train the model. In this paper, a bicubic difference image rotation algorithm based on Sobel filter optimization is used to enhance the seedling image data. At the same time, a ResNet34 model with a bottleneck layer is used to improve the reuse rate of features and reduce the number of training sets to be used.

[0054] (3) In order to address the problem that existing models based on computer image recognition require a long inference time and have low usability in real-time applications, the present invention adopts a highly efficient dual-channel attention method to optimize the residual structure of the ResNet34 model, thereby improving the efficiency of the recognition model and increasing the practicality of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 A flow chart of a seedling growth condition detection method based on image recognition provided by the present invention;

[0056] Figure 2 Schematic diagram of an efficient dual-channel attention method;

[0057] Figure 3 Flowchart of a ResNet34 model optimized for efficient dual-channel attention methods.

[0058] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention. DETAILED DESCRIPTION

[0059] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments; based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0060] Example 1: See Figure 1The present invention provides a seedling growth detection method based on image recognition, which specifically includes the following steps:

[0061] Step S1: data collection, using a high-definition camera to shoot the seedlings and obtain seedling images;

[0062] Step S2: data enhancement, using a bicubic difference image rotation algorithm optimized based on a Sobel filter to perform data enhancement on the seedling image to obtain a data enhanced seedling image;

[0063] Step S3: data preprocessing, randomly adding noise to the data-enhanced seedling images, and normalizing all images to unify the image sizes to obtain standard seedling images;

[0064] Step S4: feature extraction, using the ResNet34 model optimized by the efficient dual-channel attention method to extract and optimize the features of the standard seedling image, and obtain the optimized features of the seedling feature image;

[0065] Step S5: feature classification, using the softmax function to classify the optimized features to obtain the classification results of the seedlings;

[0066] Step S6: Model evaluation and optimization, optimizing the bicubic difference image rotation algorithm based on Sobel filter optimization and the ResNet34 model optimized by the efficient dual-channel attention method;

[0067] Step S7: Growth condition detection: using the optimized algorithm and model to classify the seedling images to obtain the seedling growth condition classification detection results.

[0068] By performing the above operations, the present invention adopts a computer image recognition model to reduce the consumption of manpower and time, as the existing seedling growth detection method is usually a manual detection method, which is inefficient and has low detection accuracy, and consumes a lot of manpower and time costs.

[0069] Embodiment 2: This embodiment is based on the above embodiment, and step S2 specifically includes the following steps:

[0070] Step S21: Initialize the Sobel filter in the horizontal direction and the Sobel filter in the vertical direction, initialize all the pixels in the seedling image, and calculate the position of each pixel in the seedling image;

[0071] Step S22: Record the RGB color channel information of each pixel;

[0072] Step S23: According to the position of each pixel, 16 adjacent pixels around the pixel are selected;

[0073] Step S24: performing bicubic interpolation operation on each pixel, specifically comprising the following steps:

[0074] Step S241: Calculate the floating point coordinates of each pixel point according to the position of each pixel point;

[0075] Step S242: Mapping the floating point coordinates of each pixel point to the integer coordinates of 16 adjacent pixel points around the pixel point;

[0076] Step S243: Calculate the distance and weight of each pixel point and 16 adjacent pixels around the pixel point;

[0077] Step S244: performing weighted summation of RGB color channel information of each pixel and 16 neighboring pixels around the pixel according to the distance and the weight, to obtain an interpolation result of each pixel;

[0078] Step S25: setting the rotation angle range to [-90°, 90°], fixing the size of the seedling image after rotation, performing random angle rotation on the seedling image, and obtaining the rotated seedling image and each corresponding rotated pixel point;

[0079] Step S26: converting the rotated seedling image into a grayscale image, and performing convolution operations on each pixel after rotation using a horizontal Sobel filter and a vertical Sobel filter, respectively, to obtain a horizontal gradient value and a vertical gradient value;

[0080] Step S27: using the Pythagorean theorem to calculate the gradient value in the horizontal direction and the gradient value in the vertical direction to obtain the gradient amplitude, and using the inverse tangent function to calculate the gradient value in the horizontal direction and the gradient value in the vertical direction to obtain the gradient direction;

[0081] Step S28: performing non-maximum suppression processing on the grayscale image according to the gradient amplitude and the gradient direction to obtain the edge region of the grayscale image, and converting the edge region of the grayscale image into the edge region of the rotated seedling image;

[0082] Step S29: assigning the interpolation result of each pixel point to each pixel point after rotation, and superimposing the edge area of ​​the rotated seedling image onto the rotated seedling image to obtain a data enhanced seedling image.

[0083] Example 3, see Figure 2 , Figure 3 This embodiment is based on the above embodiment, and step S4 specifically includes the following steps:

[0084] Step S41: Input the standard seedling image into the ResNet34 model, use 7*7 convolution to extract features of the standard seedling image, and obtain initial features. The dimension of the initial features is , Represent the width, height and number of channels of the initial features respectively;

[0085] Step S42: The initial features are optimized using a highly efficient dual-channel attention method to obtain initial optimized features and fused features, which specifically includes the following steps:

[0086] Step S421: Perform global average pooling on the initial features to obtain a feature vector. The formula used is as follows: ;

[0087] In the formula, Represents width and height respectively. Represents width and height respectively. represents the feature vector obtained by global average pooling, represents the initial features;

[0088] Step S422: Perform global maximum pooling on the initial features to obtain a feature vector. The formula used is as follows: ;

[0089] In the formula, Represents width and height respectively. Represents width and height respectively. Represents the feature vector obtained by global maximum pooling, represents the initial features;

[0090] Step S423: Collectively referred to as , initialize the frequency band matrix of the learning channel attention with the same learning parameters shared by all channels, using The formula used to calculate the inter-channel weight is as follows: ;

[0091] In the formula, is the sigmoid activation function, To learn the frequency band matrix of the channel, Represents the current channel number, represents the weight between channels;

[0092] Step S424: Calculate the frequency band matrix concerned by the learning channel; ;

[0093] In the formula, To learn the frequency band matrix of the channel, is the inter-channel weight;

[0094] Step S425: further optimize the weight calculation, and calculate the optimized weight. The formula used is as follows: ;

[0095] In the formula, is the inter-channel weight, represents the optimized weight, Represents the current width, height and number of channels respectively. represents the same learning parameters shared by all channels, ,in The number of channels is of gather;

[0096] Step S426: Calculate feature vector The corresponding channel weights are as follows: ; ;

[0097] In the formula, represents one-dimensional convolution, is the feature vector The channel weights, for The channel weight of

[0098] Step S427: Perform weighted summation on the channel weights to obtain the optimization parameters. The formula used is as follows: ;

[0099] In the formula, In order to continuously adjust and optimize the dynamic parameters, To optimize the parameters;

[0100] Step S428: Use the optimization parameters to optimize the initial features to obtain the initial optimized features. The formula used is as follows: ;

[0101] In the formula, represents the initial optimization feature;

[0102] Step S429: Fusing the initial optimized features with the initial features to obtain fused features;

[0103] Step S43: Use the 3*3 convolution of the ResNet34 model to perform multi-layer convolution on the fused features, and use the ResNet34 model to perform dimensionality reduction-dimensionality increase processing on the fused features to obtain parameter reduction features;

[0104] Step S44: Use multi-layer 3*3 convolution to perform convolution processing on the parameter reduction features, and perform average pooling on the parameter reduction features to obtain the final features;

[0105] Step S45: Use the final feature as the input value, use the efficient dual-channel attention method to optimize the final feature, repeat step S42 to obtain the optimized feature.

[0106] By performing the above operations, the existing image recognition model requires a large amount of annotated training data to learn and identify the growth of seedlings, it is time-consuming and laborious to obtain large-scale annotated data, the appearance and morphology of seedlings vary greatly under different plant species, growth stages and environmental conditions, and a data set with rich sample diversity is needed to train the model. The present invention uses a bicubic difference image rotation algorithm optimized based on Sobel filter to perform data enhancement on seedling images, and uses a ResNet34 model with a bottleneck layer to improve the reuse rate of features and reduce the number of training sets to be used; in view of the problem that the existing model based on computer image recognition requires a long inference time and has low usability in real-time applications, the present invention uses a high-efficiency dual-channel attention method to optimize the residual structure of the ResNet34 model, improves the efficiency of the recognition model, and increases the practicability of the model.

[0107] Embodiment 4, based on the above embodiment, this embodiment uses the main code steps of the bicubic difference algorithm image to perform data enhancement: rotation_matrix = cv2.getRotationMatrix2D(center,angle,1.0) #Calculate the rotation matrix rotated_image = cv2.warpAffine (image, rotation_matrix, (width, height), flags = cv2.INTER_CUBIC) # Use bicubic interpolation for image rotation return rotated_image image=cv2.imread('input_image.jpg') #Read image angle=30 #Rotation angle (in degrees) rotated_image=rotate_image(image,angle) #Rotate the image cv2.imshow('Original Image',mage) cv2.imshow('Rotated Image',rotated_image) #Display the original image and the rotated image.

[0108] Embodiment 5: This embodiment is based on the above embodiment, and the equipment and other related parameters are as follows: Camera parameters: Brand:Nikon; Model: Z6II; Sensor type: CMOS; High-definition video: 4K ultra-high-definition video; Effective pixels: 24.5 million; Computer parameters: Brand: Lenovo; Model: Savior Y9000P; CPU model: i9; System: Windows 10.

[0109] Sampling object: Plant name: Pothos, Reason for selection: The leaf development characteristics are simple, which is suitable for model training and subsequent analysis and judgment of results.

[0110] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0111] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

[0112] The present invention and its embodiments are described above, and such description is not restrictive. The drawings show only one embodiment of the present invention, and the actual structure is not limited thereto. In short, if ordinary technicians in the field are inspired by it, without departing from the purpose of the invention, they can design a structure and embodiment similar to the technical solution without creativity, which should belong to the protection scope of the present invention.

Claims

1. A seedling growth detection method based on image recognition, characterized in that: The following steps are involved: Step S1: data collection, using a high-definition camera to shoot the seedlings and obtain seedling images; Step S2: data enhancement, using a bicubic difference image rotation algorithm optimized based on a Sobel filter to perform data enhancement on the seedling image to obtain a data enhanced seedling image; Step S3: data preprocessing, randomly adding noise to the data-enhanced seedling images, and normalizing all images to unify the image sizes to obtain standard seedling images; Step S4: feature extraction, using the ResNet34 model optimized by the efficient dual-channel attention method to extract and optimize the features of the standard seedling image, and obtain the optimized features of the seedling feature image; Step S5: feature classification, using the softmax function to classify the optimized features to obtain the classification results of the seedlings; Step S6: Model evaluation and optimization, optimizing the bicubic difference image rotation algorithm based on Sobel filter optimization and the ResNet34 model optimized by the efficient dual-channel attention method; Step S7: Growth condition detection: using the optimized algorithm and model to classify the seedling images to obtain the seedling growth condition classification detection results.

2. The seedling growth detection method based on image recognition according to claim 1, characterized in that: Step S2 specifically includes the following steps: Step S21: Initialize the Sobel filter in the horizontal direction and the Sobel filter in the vertical direction, initialize all the pixels in the seedling image, and calculate the position of each pixel in the seedling image; Step S22: Record the RGB color channel information of each pixel; Step S23: According to the position of each pixel, 16 adjacent pixels around the pixel are selected; Step S24: performing bicubic interpolation operation on each pixel; Step S25: setting the rotation angle range to [-90°, 90°], fixing the size of the seedling image after rotation, performing random angle rotation on the seedling image, and obtaining the rotated seedling image and each corresponding rotated pixel point; Step S26: converting the rotated seedling image into a grayscale image, and performing convolution operations on each pixel point after rotation using a horizontal Sobel filter and a vertical Sobel filter, respectively, to obtain a horizontal gradient value and a vertical gradient value; Step S27: using the Pythagorean theorem to calculate the gradient value in the horizontal direction and the gradient value in the vertical direction to obtain the gradient amplitude, and using the inverse tangent function to calculate the gradient value in the horizontal direction and the gradient value in the vertical direction to obtain the gradient direction; Step S28: performing non-maximum suppression processing on the grayscale image according to the gradient amplitude and the gradient direction to obtain the edge region of the grayscale image, and converting the edge region of the grayscale image into the edge region of the rotated seedling image; Step S29: assigning the interpolation result of each pixel point to each pixel point after rotation, and superimposing the edge area of ​​the rotated seedling image onto the rotated seedling image to obtain a data enhanced seedling image.

3. The seedling growth detection method based on image recognition according to claim 1, characterized in that: Step S4 specifically includes the following steps: Step S41: Input the standard seedling image into the ResNet34 model, use 7*7 convolution to extract features of the standard seedling image, and obtain initial features. The dimension of the initial features is , Represent the width, height and number of channels of the initial features respectively; Step S42: Optimizing the initial features using a highly efficient dual-channel attention method to obtain initial optimized features and fused features; Step S43: Use the 3*3 convolution of the ResNet34 model to perform multi-layer convolution on the fused features, and use the ResNet34 model to perform dimensionality reduction-dimensionality increase processing on the fused features to obtain parameter reduction features; Step S44: Use multi-layer 3*3 convolution to perform convolution processing on the parameter reduction features, and perform average pooling on the parameter reduction features to obtain the final features; Step S45: Use the final feature as the input value, use the efficient dual-channel attention method to optimize the final feature, repeat step S42 to obtain the optimized feature.

4. The method for detecting seedling growth based on image recognition according to claim 3, characterized in that: Step S42 specifically includes the following steps: Step S421: Perform global average pooling on the initial features to obtain a feature vector; Step S422: performing global maximum pooling on the initial features to obtain a feature vector; Step S423: Define the feature vector obtained by global average pooling as , the feature vector obtained by global maximum pooling is defined as , and and Collectively referred to as , initialize the frequency band matrix of the learning channel attention with the same learning parameters shared by all channels, using The formula used to calculate the inter-channel weight is as follows: ; In the formula, is the sigmoid activation function, To learn the frequency band matrix of the channel, Represents the current channel number, represents the weight between channels; Step S424: Calculate the frequency band matrix concerned by the learning channel; ; In the formula, is the inter-channel weight, The matrix representing the frequency bands of interest for the learning channel; Step S425: further optimizing the weight calculation, and calculating the optimized weight; Step S426: Calculate feature vector using one-dimensional convolution and activation function The corresponding channel weights respectively; Step S427: performing weighted summation on the channel weights to obtain optimization parameters; Step S428: Optimizing the initial features using the optimization parameters to obtain initial optimized features; Step S429: Fusing the initial optimized features with the initial features to obtain fused features.