A fertilizer ratio control method and system based on tomato planting

Through remote sensing images and feature recognition models, the fertilization ratio of tomato planting areas is automatically adjusted, which solves the problem of fertilization uncertainty in the existing technology and improves the identification accuracy of tomato growth status and fertilizer use efficiency.

CN118383137BInactive Publication Date: 2024-09-03GUANGDONG OCEAN UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410832082.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-09-03
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the existing tomato planting technology, the uncertainty of fertilizer dosage leads to insufficient or excessive use of fertilizers, affecting tomato growth and the environment, and there is a lack of scientific evaluation and precise proportioning.

Method used

A fertilizer proportion control method based on remote sensing images and feature recognition models is adopted. By acquiring time series remote sensing images, the normalized vegetation change index and growth trend characteristics are calculated, and combined with precipitation data, the fertilizer proportioning plan is automatically matched and adjusted to achieve accurate Fertilize.

Benefits of technology

It improves the identification accuracy of tomato growth status, achieves precise fertilizer ratio, reduces manual labor, and improves the automation level and efficiency of agricultural production.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118383137B
    Figure CN118383137B
Patent Text Reader

Abstract

The present application discloses a fertilizer ratio control method and system based on tomato planting, which comprises the following steps: calculating a normalized vegetation change index based on a time series remote sensing image corresponding to a remote sensing image of a tomato planting site; inputting a tomato plant image in the remote sensing image into a feature recognition model, obtaining and calculating a growth trend stability feature and an irregular growth feature based on a plurality of tomato plant feature values; determining a current growth and development state result based on the normalized vegetation change index, the growth trend stability feature and the irregular growth feature; obtaining precipitation data of the tomato planting site, and calculating a drought feature value; adjusting a target fertilization ratio scheme matching the current growth and development state result based on the drought feature value, and obtaining an optimal fertilization ratio scheme, and a fertilization actuator fertilizes the tomato planting site based on the optimal fertilization ratio scheme; compared with the prior art, the technical solution of the present application can improve the recognition accuracy of the tomato growth state and realize accurate fertilizer ratio.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of image recognition processing, and in particular to a fertilizer ratio control method and system based on tomato planting. Background Art

[0002] Modern precision agriculture uses information technology and data analysis to implement refined management and optimization of all aspects of agricultural production in order to achieve efficient use of resources and maximize crop yields.

[0003] In the current tomato planting technology, it is usually relied on to manually evaluate the growth status of tomatoes and adjust the amount of fertilizer accordingly; however, since this method is affected by individual experience, it leads to uncertainty in the amount of fertilizer; this uncertainty may lead to two situations: one is insufficient fertilizer application, which cannot meet the nutrients required for tomato growth; the other is excessive fertilization, which exceeds the actual needs of tomatoes and leads to waste of resources; in addition, excessive fertilization may also have a negative impact on the soil and the environment; therefore, scientifically evaluating the growth and development status of tomatoes and achieving accurate fertilizer ratios are important steps to achieve precision agriculture. Summary of the invention

[0004] The technical problem to be solved by the present application is to provide a fertilizer ratio control method and system based on tomato planting, so as to improve the recognition accuracy of tomato growth status and realize accurate fertilizer ratio.

[0005] In order to solve the above technical problems, the present application provides a fertilizer ratio control method based on tomato planting, comprising:

[0006] Acquire a remote sensing image of a tomato planting area, generate a corresponding time series remote sensing image based on the remote sensing image, and calculate a normalized vegetation change index of the remote sensing image based on the time series remote sensing image;

[0007] Performing target extraction on the remote sensing image to obtain a tomato plant image, inputting the tomato plant image into a pre-trained feature recognition model to obtain a plurality of tomato plant feature values, and calculating growth trend stability features and irregular growth features corresponding to the tomato plant image based on the plurality of tomato plant feature values;

[0008] Determining a current growth and development state result corresponding to the tomato plant image based on the normalized vegetation change index, the growth trend stability characteristic and the irregular growth characteristic;

[0009] Acquiring precipitation data of the tomato planting land, performing drought feature extraction on the precipitation data, and obtaining a drought feature value of the tomato planting land;

[0010] Based on the current growth and development status result, the corresponding target fertilization ratio scheme is matched, and the target fertilization ratio scheme is adjusted based on the drought characteristic value to obtain the optimal fertilization ratio scheme, and the optimal fertilization ratio scheme is sent to the fertilization executor, so that the fertilization executor fertilizes the tomato planting field based on the optimal fertilization ratio scheme.

[0011] In a possible implementation, generating a corresponding time series remote sensing image based on the remote sensing image, and calculating a normalized vegetation change index of the remote sensing image based on the time series remote sensing image, specifically includes:

[0012] Based on the acquisition time of the remote sensing image, acquiring the historical remote sensing image before the acquisition time, integrating the remote sensing image and the historical remote sensing image to obtain a time series remote sensing image;

[0013] Based on a preset normalized vegetation change index calculation formula, the normalized vegetation change index corresponding to each remote sensing image in the time series remote sensing images is calculated respectively to obtain a current normalized vegetation change index and a historical normalized vegetation change index;

[0014] The current normalized vegetation change index and the historical normalized vegetation change index are input into a preset normalized vegetation change index calculation formula to obtain the normalized vegetation change index of the remote sensing image.

[0015] In a possible implementation, performing target extraction on the remote sensing image to obtain a tomato plant image specifically includes:

[0016] Acquiring a normalized vegetation change index corresponding to the remote sensing image, and performing image segmentation processing on the remote sensing image based on the normalized vegetation change index to obtain a vegetation image and a non-vegetation image;

[0017] Performing image preprocessing on the vegetation image to obtain a preprocessed vegetation image, wherein the image preprocessing includes image grayscale processing, image median filtering processing and image binarization processing;

[0018] Based on the edge detection operator, a pixel threshold and a neighborhood pixel threshold corresponding to each pixel in the preprocessed vegetation image are obtained, based on the pixel threshold and the neighborhood pixel threshold, a threshold change rate corresponding to each pixel is calculated, and based on the threshold change rate, an edge pixel is determined;

[0019] The preprocessed vegetation image is subjected to edge extraction based on the edge pixels to determine a tomato plant image.

[0020] In a possible implementation, the tomato plant image is input into a pre-trained feature recognition model to obtain a plurality of tomato plant feature values, specifically including:

[0021] Performing image adjustment on the tomato plant image according to a standard image size to obtain a standard tomato plant image;

[0022] Inputting the standard tomato plant image into a pre-trained feature recognition model so that the feature recognition model performs target recognition on the standard tomato plant image to obtain an initial bounding box position and recognition category corresponding to each target; wherein the recognition category includes tomato plants, leaves, flowers, and tomato fruits;

[0023] Obtaining a first initial bounding box position of the identified category being the tomato plant, and determining a plant height feature value based on the first initial bounding box position;

[0024] Acquire a second initial bounding box position of the leaf as the identification category, and determine a leaf size feature value based on the second initial bounding box position;

[0025] Obtaining a third initial bounding box position of the tomato fruit in the identification category, performing image interception on the standard tomato plant image based on the third initial bounding box position to obtain a tomato fruit image, obtaining an RGB value corresponding to each pixel in the tomato fruit image, and determining a color feature value of the tomato fruit based on the RGB value;

[0026] Acquire a first target number of the flowers whose identification category is the flowers, and determine a flowering characteristic value based on the first target number;

[0027] A second target number of tomato fruits whose identification category is the tomato fruit is obtained, and a characteristic value of the tomato fruit quantity is determined based on the second target number.

[0028] In a possible implementation, based on the multiple tomato plant feature values, calculating the growth trend stability feature and the irregular growth feature corresponding to the tomato plant image specifically includes:

[0029] Acquire the plurality of tomato plant characteristic values, wherein the plurality of tomato plant characteristic values ​​include a plant height characteristic value, a leaf size characteristic value, a flowering characteristic value, a tomato fruit color characteristic value, and a tomato fruit quantity characteristic value;

[0030] The plant height characteristic value is scored to obtain a first score, the leaf size characteristic value is scored to obtain a second score, the flowering characteristic value is scored to obtain a third score, the tomato fruit color characteristic value is scored to obtain a fourth score, and the tomato fruit quantity characteristic value is scored to obtain a fifth score;

[0031] Inputting the first score and the second score into a preset growth trend stability characteristic calculation formula to obtain a growth trend stability characteristic;

[0032] The third score, the fourth score and the fifth score are input into a preset irregular growth characteristic calculation formula to obtain the irregular growth characteristic.

[0033] In a possible implementation, based on the normalized vegetation change index, the growth trend stability feature, and the irregular growth feature, determining the current growth and development state result corresponding to the tomato plant image specifically includes:

[0034] Taking the stable growth trend feature as the first key name and the irregular growth feature as the first key value, performing key-value pair splicing processing on the first key name and the first key value to obtain first feature splicing data;

[0035] Using the normalized vegetation change index as a second key name, and using the first feature splicing data as a second key value, performing key-value pair splicing processing on the second key name and the second key value to obtain second feature splicing data;

[0036] The second feature splicing data is input into a pre-trained data matching model so that the data matching model outputs a current growth and development status result corresponding to the tomato plant image.

[0037] In a possible implementation, the drought feature extraction is performed on the precipitation data to obtain the drought feature value of the tomato planting land, specifically including:

[0038] Obtaining precipitation data of the tomato planting land, inputting the precipitation data into a preset weighted average precipitation index calculation formula, and obtaining a weighted average precipitation index corresponding to the tomato planting land;

[0039] At the same time, a plurality of historical weighted average precipitation indices corresponding to the tomato planting area are obtained, and the plurality of historical weighted average precipitation indices and the weighted average precipitation index are fitted to obtain a fitted weighted average precipitation index;

[0040] The fitted weighted average precipitation index is standardized to obtain a standardized weighted average precipitation index, and the standardized weighted average precipitation index is used as the drought characteristic value of the tomato planting site.

[0041] In a possible implementation, the fitted weighted average precipitation index is standardized to obtain a standardized weighted average precipitation index, specifically including:

[0042] Calculating the mean of the multiple historical weighted average precipitation indices to obtain the mean of the historical weighted average precipitation indices, calculating the standard deviation of the multiple historical weighted average precipitation indices, and calculating the first difference between the fitted weighted average precipitation index and the mean of the historical weighted average precipitation index;

[0043] The first difference is divided by the standard deviation to obtain a standardized weighted average precipitation index corresponding to the fitted weighted average precipitation index.

[0044] In a possible implementation, matching a corresponding target fertilization ratio scheme based on the current growth and development status result, and adjusting the target fertilization ratio scheme based on the drought characteristic value to obtain an optimal fertilization ratio scheme specifically includes:

[0045] Matching the current growth and development status result with a preset fertilization ratio scheme list, wherein the fertilization ratio scheme list includes the growth and development status result and its corresponding fertilization ratio scheme, and the fertilization ratio scheme includes nitrogen, phosphorus and potassium fertilizer ratios and water ratios;

[0046] When a target growth and development state that is the same as the current growth and development state result is matched, the fertilization ratio scheme corresponding to the target growth and development state is used as the target fertilization ratio scheme corresponding to the current growth and development state result;

[0047] When the drought characteristic value is greater than the integer 1, a first adjustment coefficient is determined based on the drought characteristic value and the integer 1, and the target fertilization ratio scheme is adjusted based on the first adjustment coefficient to determine an optimal fertilization ratio scheme;

[0048] When the drought characteristic value is less than the integer 1, a second adjustment coefficient is determined based on the drought characteristic value and the integer 1, and the target fertilization ratio scheme is adjusted based on the second adjustment coefficient to determine an optimal fertilization ratio scheme;

[0049] When the drought characteristic value is equal to the integer 1, the target fertilization ratio scheme is used as the optimal fertilization ratio scheme.

[0050] The present application also provides a fertilizer ratio control system based on tomato planting, comprising: a normalized vegetation change index calculation module, a feature recognition module, a growth and development status result determination module, a drought characteristic value calculation module and a fertilizer ratio scheme determination module;

[0051] The normalized vegetation change index calculation module is used to obtain a remote sensing image of a tomato planting area, generate a corresponding time series remote sensing image based on the remote sensing image, and calculate the normalized vegetation change index of the remote sensing image based on the time series remote sensing image;

[0052] The feature recognition module is used to extract the target from the remote sensing image to obtain a tomato plant image, input the tomato plant image into a pre-trained feature recognition model to obtain a plurality of tomato plant feature values, and calculate the growth trend stability feature and the irregular growth feature corresponding to the tomato plant image based on the plurality of tomato plant feature values;

[0053] The growth and development status result determination module is used to determine the current growth and development status result corresponding to the tomato plant image based on the normalized vegetation change index, the growth trend stability feature and the irregular growth feature;

[0054] The drought characteristic value calculation module is used to obtain the precipitation data of the tomato planting land, extract the drought characteristics of the precipitation data, and obtain the drought characteristic value of the tomato planting land;

[0055] The fertilization ratio scheme determination module is used to match the corresponding target fertilization ratio scheme based on the current growth and development status results, and adjust the target fertilization ratio scheme based on the drought characteristic value to obtain an optimal fertilization ratio scheme, and send the optimal fertilization ratio scheme to a fertilization executor, so that the fertilization executor fertilizes the tomato planting field based on the optimal fertilization ratio scheme.

[0056] In a possible implementation, the normalized vegetation change index calculation module is used to generate a corresponding time series remote sensing image based on the remote sensing image, and calculate the normalized vegetation change index of the remote sensing image based on the time series remote sensing image, specifically including:

[0057] Based on the acquisition time of the remote sensing image, acquiring the historical remote sensing image before the acquisition time, integrating the remote sensing image and the historical remote sensing image to obtain a time series remote sensing image;

[0058] Based on a preset normalized vegetation change index calculation formula, the normalized vegetation change index corresponding to each remote sensing image in the time series remote sensing images is calculated respectively to obtain a current normalized vegetation change index and a historical normalized vegetation change index;

[0059] The current normalized vegetation change index and the historical normalized vegetation change index are input into a preset normalized vegetation change index calculation formula to obtain the normalized vegetation change index of the remote sensing image.

[0060] In a possible implementation, the feature recognition module is used to extract the target from the remote sensing image to obtain the tomato plant image, specifically including:

[0061] Acquiring a normalized vegetation change index corresponding to the remote sensing image, and performing image segmentation processing on the remote sensing image based on the normalized vegetation change index to obtain a vegetation image and a non-vegetation image;

[0062] Performing image preprocessing on the vegetation image to obtain a preprocessed vegetation image, wherein the image preprocessing includes image grayscale processing, image median filtering processing and image binarization processing;

[0063] Based on the edge detection operator, a pixel threshold and a neighborhood pixel threshold corresponding to each pixel in the preprocessed vegetation image are obtained, based on the pixel threshold and the neighborhood pixel threshold, a threshold change rate corresponding to each pixel is calculated, and based on the threshold change rate, an edge pixel is determined;

[0064] The preprocessed vegetation image is subjected to edge extraction based on the edge pixels to determine a tomato plant image.

[0065] In a possible implementation, the feature recognition module is used to input the tomato plant image into a pre-trained feature recognition model to obtain a plurality of tomato plant feature values, specifically including:

[0066] Performing image adjustment on the tomato plant image according to a standard image size to obtain a standard tomato plant image;

[0067] Inputting the standard tomato plant image into a pre-trained feature recognition model so that the feature recognition model performs target recognition on the standard tomato plant image to obtain an initial bounding box position and recognition category corresponding to each target; wherein the recognition category includes tomato plants, leaves, flowers, and tomato fruits;

[0068] Obtaining a first initial bounding box position of the identified category being the tomato plant, and determining a plant height feature value based on the first initial bounding box position;

[0069] Acquire a second initial bounding box position of the leaf as the identification category, and determine a leaf size feature value based on the second initial bounding box position;

[0070] Obtaining a third initial bounding box position of the tomato fruit in the identification category, performing image interception on the standard tomato plant image based on the third initial bounding box position to obtain a tomato fruit image, obtaining an RGB value corresponding to each pixel in the tomato fruit image, and determining a color feature value of the tomato fruit based on the RGB value;

[0071] Acquire a first target number of the flowers whose identification category is the flowers, and determine a flowering characteristic value based on the first target number;

[0072] A second target number of tomato fruits whose identification category is the tomato fruit is obtained, and a characteristic value of the tomato fruit quantity is determined based on the second target number.

[0073] In a possible implementation, the feature recognition module is used to calculate the growth trend stability feature and the irregular growth feature corresponding to the tomato plant image based on the multiple tomato plant feature values, specifically including:

[0074] Acquire the plurality of tomato plant characteristic values, wherein the plurality of tomato plant characteristic values ​​include a plant height characteristic value, a leaf size characteristic value, a flowering characteristic value, a tomato fruit color characteristic value, and a tomato fruit quantity characteristic value;

[0075] The plant height characteristic value is scored to obtain a first score, the leaf size characteristic value is scored to obtain a second score, the flowering characteristic value is scored to obtain a third score, the tomato fruit color characteristic value is scored to obtain a fourth score, and the tomato fruit quantity characteristic value is scored to obtain a fifth score;

[0076] Inputting the first score and the second score into a preset growth trend stability characteristic calculation formula to obtain a growth trend stability characteristic;

[0077] The third score, the fourth score and the fifth score are input into a preset irregular growth characteristic calculation formula to obtain the irregular growth characteristic.

[0078] In a possible implementation, the growth and development status result determination module is used to determine the current growth and development status result corresponding to the tomato plant image based on the normalized vegetation change index, the growth trend stability feature and the irregular growth feature, specifically including:

[0079] Taking the stable growth trend feature as the first key name and the irregular growth feature as the first key value, performing key-value pair splicing processing on the first key name and the first key value to obtain first feature splicing data;

[0080] Using the normalized vegetation change index as a second key name, and using the first feature splicing data as a second key value, performing key-value pair splicing processing on the second key name and the second key value to obtain second feature splicing data;

[0081] The second feature splicing data is input into a pre-trained data matching model so that the data matching model outputs a current growth and development status result corresponding to the tomato plant image.

[0082] In a possible implementation, the drought characteristic value calculation module is used to extract drought characteristics from the precipitation data to obtain the drought characteristic value of the tomato planting land, specifically including:

[0083] Obtaining precipitation data of the tomato planting land, inputting the precipitation data into a preset weighted average precipitation index calculation formula, and obtaining a weighted average precipitation index corresponding to the tomato planting land;

[0084] At the same time, a plurality of historical weighted average precipitation indices corresponding to the tomato planting area are obtained, and the plurality of historical weighted average precipitation indices and the weighted average precipitation index are fitted to obtain a fitted weighted average precipitation index;

[0085] The fitted weighted average precipitation index is standardized to obtain a standardized weighted average precipitation index, and the standardized weighted average precipitation index is used as the drought characteristic value of the tomato planting site.

[0086] In a possible implementation, the drought characteristic value calculation module is used to perform standardization processing on the fitted weighted average precipitation index to obtain a standardized weighted average precipitation index, specifically including:

[0087] Calculating the mean of the multiple historical weighted average precipitation indices to obtain the mean of the historical weighted average precipitation indices, calculating the standard deviation of the multiple historical weighted average precipitation indices, and calculating the first difference between the fitted weighted average precipitation index and the mean of the historical weighted average precipitation index;

[0088] The first difference is divided by the standard deviation to obtain a standardized weighted average precipitation index corresponding to the fitted weighted average precipitation index.

[0089] In a possible implementation, the fertilization ratio scheme determination module is used to match the corresponding target fertilization ratio scheme based on the current growth and development status result, and adjust the target fertilization ratio scheme based on the drought characteristic value to obtain the optimal fertilization ratio scheme, specifically including:

[0090] Matching the current growth and development status result with a preset fertilization ratio scheme list, wherein the fertilization ratio scheme list includes the growth and development status result and its corresponding fertilization ratio scheme, and the fertilization ratio scheme includes nitrogen, phosphorus and potassium fertilizer ratios and water ratios;

[0091] When a target growth and development state that is the same as the current growth and development state result is matched, the fertilization ratio scheme corresponding to the target growth and development state is used as the target fertilization ratio scheme corresponding to the current growth and development state result;

[0092] When the drought characteristic value is greater than the integer 1, a first adjustment coefficient is determined based on the drought characteristic value and the integer 1, and the target fertilization ratio scheme is adjusted based on the first adjustment coefficient to determine an optimal fertilization ratio scheme;

[0093] When the drought characteristic value is less than the integer 1, a second adjustment coefficient is determined based on the drought characteristic value and the integer 1, and the target fertilization ratio scheme is adjusted based on the second adjustment coefficient to determine an optimal fertilization ratio scheme;

[0094] When the drought characteristic value is equal to the integer 1, the target fertilization ratio scheme is used as the optimal fertilization ratio scheme.

[0095] The fertilizer ratio control method and system for tomato planting in the embodiment of the present application have the following beneficial effects compared with the prior art:

[0096] The tomato plant image is analyzed by using a pre-trained feature recognition model, and multiple tomato plant feature values ​​are extracted, thereby calculating the stable growth trend feature and the irregular growth feature; and subsequently combining the normalized vegetation change index calculated based on the remote sensing image of the tomato planting area to realize the automatic recognition of the current growth and development state of the tomato plant, avoiding the existing manual experience judgment of the current growth and development state of the tomato plant, and improving the recognition accuracy of the tomato growth state; obtaining the precipitation data of the tomato planting area to obtain the drought feature value of the tomato planting area; matching the corresponding target fertilization ratio scheme based on the current growth and development state result, and adjusting the target fertilization ratio scheme based on the drought feature value to obtain the optimal fertilization ratio scheme, which can realize real-time adjustment of the fertilization ratio scheme based on different growth and development states and environmental changes, realize accurate fertilizer ratio, and send the optimal fertilization ratio scheme to the fertilization actuator to automatically perform fertilization operations, reduce manual labor intensity, and improve the automation level and efficiency of agricultural production. BRIEF DESCRIPTION OF THE DRAWINGS

[0097] Figure 1 This is a flow chart of an embodiment of a fertilizer ratio control method based on tomato planting provided by the present application;

[0098] Figure 2 It is a structural schematic diagram of an embodiment of a fertilizer ratio control system based on tomato planting provided by the present application. DETAILED DESCRIPTION

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

[0100] Example 1, see Figure 1 , Figure 1 FIG. 1 is a flow chart of an embodiment of an automatic grabbing method for a rubber block provided by the present application. Figure 1 As shown, the method includes steps 101 to 104, which are specifically as follows:

[0101] Step 101: Acquire a remote sensing image of a tomato planting area, generate a corresponding time series remote sensing image based on the remote sensing image, and calculate a normalized vegetation change index of the remote sensing image based on the time series remote sensing image.

[0102] In one embodiment, remote sensing images of a tomato planting site are obtained, wherein the remote sensing images include but are not limited to Landsat series remote sensing images and Sentinel series remote sensing images, and can be obtained from a Google Earth Engine platform.

[0103] In one embodiment, after acquiring the remote sensing image, mask processing is further performed on low-quality pixels in the remote sensing image, wherein the low-quality pixels include cloud pixels and cloud shadow pixels.

[0104] In one embodiment, based on the acquisition time of the remote sensing image, a historical remote sensing image before the acquisition time is acquired, and the remote sensing image and the historical remote sensing image are integrated to obtain a time series remote sensing image.

[0105] Specifically, the acquisition time of the remote sensing image is obtained, and based on the acquisition time and a preset acquisition time range, the historical remote sensing images of the tomato planting area before the current time are obtained, wherein the number of the historical remote sensing data can be one or more.

[0106] Specifically, the remote sensing images and the historical remote sensing images are sorted in chronological order to obtain time series remote sensing images.

[0107] In one embodiment, based on a preset normalized vegetation change index calculation formula, the normalized vegetation change index corresponding to each remote sensing image in the time series remote sensing images is calculated respectively to obtain a current normalized vegetation change index and a historical normalized vegetation change index.

[0108] Specifically, based on the normalized vegetation change index calculation formula, the current normalized vegetation change index corresponding to the remote sensing image in the time series remote sensing image is calculated to obtain the current normalized vegetation change index.

[0109] Specifically, based on the normalized vegetation change index calculation formula, the historical normalized vegetation change index corresponding to the historical remote sensing image in the time series remote sensing image is calculated to obtain the historical normalized vegetation change index.

[0110] Specifically, the calculation formula of the normalized vegetation change index is as follows:

[0111] ;

[0112] Where NDVI is the normalized difference vegetation change index, is the reflectance of the near-red band of the multispectral remote sensing image, It is the reflectance of the red band of the multispectral remote sensing image.

[0113] In one embodiment, the current normalized vegetation change index and the historical normalized vegetation change index are input into a preset normalized vegetation change index calculation formula to obtain the normalized vegetation change index of the remote sensing image.

[0114] Specifically, the time interval between the remote sensing image and the historical remote sensing image is calculated, and the time interval, the current normalized vegetation change index and the historical normalized vegetation change index are input into a preset normalized vegetation change index calculation formula to obtain the normalized vegetation change index of the remote sensing image.

[0115] Specifically, the calculation formula of the normalized vegetation change index is as follows:

[0116] ;

[0117] In the formula, is the change rate of the normalized vegetation change index, is the current normalized difference vegetation change index, is the historical normalized difference vegetation change index, For the time interval.

[0118] Step 102: Perform target extraction on the remote sensing image to obtain a tomato plant image, input the tomato plant image into a pre-trained feature recognition model to obtain a plurality of tomato plant feature values, and calculate growth trend stability features and irregular growth features corresponding to the tomato plant image based on the plurality of tomato plant feature values.

[0119] In one embodiment, a normalized vegetation change index corresponding to the remote sensing image is obtained, and image segmentation processing is performed on the remote sensing image based on the normalized vegetation change index to obtain a vegetation image and a non-vegetation image.

[0120] Specifically, a normalized vegetation change index corresponding to the remote sensing image is obtained, wherein the normalized vegetation change index includes a pixel normalized vegetation change index corresponding to each pixel in the remote sensing image.

[0121] Specifically, the normalized vegetation change index of the pixel corresponding to each pixel in the remote sensing image is compared with the preset normalized vegetation change index threshold in turn. If the normalized vegetation change index of the pixel is greater than the normalized vegetation change index threshold, the target pixel corresponding to the normalized vegetation change index of the pixel is marked as 1; if the normalized vegetation change index of the pixel is not greater than the normalized vegetation change index threshold, the target pixel corresponding to the normalized vegetation change index of the pixel is marked as 0, until each pixel in the remote sensing image is traversed, a binary image is generated, the pixel points marked as 1 in the binary image are extracted to obtain a vegetation image, and the pixel points marked as 0 in the binary image are extracted to obtain a non-vegetation image.

[0122] In one embodiment, in order to avoid the problem of inaccurate segmentation caused by performing image segmentation processing on the remote sensing image based only on the normalized vegetation change index, further image segmentation processing is performed on the extracted vegetation image to improve the accuracy of the subsequently obtained tomato plant image.

[0123] In one embodiment, the vegetation image is subjected to image preprocessing to obtain a preprocessed vegetation image, wherein the image preprocessing includes image grayscale processing, image median filtering processing and image binarization processing.

[0124] Specifically, the RGB value corresponding to each pixel in the vegetation image is obtained, and based on a preset weight value, the RGB value is weighted averaged to obtain the gray value corresponding to each pixel, thereby generating a vegetation gray image.

[0125] Specifically, when the vegetation grayscale image is subjected to median filtering to obtain the vegetation median filtered image, all neighborhood grayscale values ​​within a neighborhood window corresponding to each pixel point in the vegetation grayscale image are obtained, the neighborhood grayscale median of all the neighborhood grayscale values ​​is calculated, and the grayscale value corresponding to each pixel point in the vegetation grayscale image is updated based on the neighborhood grayscale median to obtain the vegetation median filtered image.

[0126] Specifically, based on the maximum entropy threshold method, the vegetation median filter image is subjected to image binarization processing to obtain a preprocessed vegetation image.

[0127] In one embodiment, based on the edge detection operator, the pixel threshold and the neighborhood pixel threshold corresponding to each pixel in the preprocessed vegetation image are obtained, and based on the pixel threshold and the neighborhood pixel threshold, the threshold change rate corresponding to each pixel is calculated, and based on the threshold change rate, the edge pixel is determined.

[0128] Specifically, a neighborhood window is set, and a neighborhood pixel threshold corresponding to each pixel in the preprocessed vegetation image is obtained based on the neighborhood window; the difference average between the pixel threshold and the neighborhood pixel threshold is calculated, and the difference average is used as the threshold change rate corresponding to each pixel; when the threshold change rate is greater than the preset threshold change rate threshold, the target pixel corresponding to the threshold change rate is used as the edge pixel.

[0129] In one embodiment, edge extraction is performed on the pre-processed vegetation image based on the edge pixels to determine a tomato plant image.

[0130] Specifically, when edge extraction is performed on the preprocessed vegetation image based on the edge pixels, a pixel threshold corresponding to each pixel in the extracted tomato plant image is 1.

[0131] In one embodiment, when pre-training the feature recognition model, a tomato plant sample image dataset is first obtained, and label annotation processing is performed on the targets in the tomato plant sample image dataset to obtain a labeled sample image dataset, and reverse iterative training is performed on the constructed feature recognition model based on the labeled sample image dataset to determine the model parameters of the feature recognition model, thereby realizing model training of the feature recognition model, wherein the targets include tomato plants, leaves, flowers and tomato fruits in the image.

[0132] Specifically, the feature recognition model is constructed based on the improved YOLOv5 algorithm, and the feature recognition model includes a backbone network, and the backbone network includes a channel attention module, a spatial attention module and a Ghost convolution module.

[0133] Specifically, when labeling the targets in the tomato plant sample image dataset, the targets in each tomato plant sample image in the tomato plant sample image dataset are labeled based on rectangular frames, and a corresponding label is set for each labeled rectangular frame.

[0134] Specifically, the constructed feature recognition model is reversely iteratively trained based on the labeled sample image data set. When determining the model parameters of the feature recognition model, the initial model parameters of the feature recognition model are first set, and labeled sample images are arbitrarily selected from the labeled sample image data set as training sample images, and the training sample images are input into the feature recognition model, so that the feature recognition model outputs a target recognition result of the training sample image, wherein the target recognition result includes the target and its corresponding initial bounding box position and recognition category; based on the comparison between the target recognition result and the label corresponding to the training sample image, the model loss function is calculated, and based on the model loss function, the loss gradient values ​​corresponding to the initial model parameters are reversely calculated; according to the gradient descent algorithm, the initial model parameters are reversely updated based on the loss gradient values ​​until the model converges or meets the preset number of model iterations, and the model parameters of the feature recognition model are determined.

[0135] In one embodiment, the tomato plant image is adjusted according to a standard image size to obtain a standard tomato plant image; the standard tomato plant image is input into a pre-trained feature recognition model so that the feature recognition model performs target recognition on the standard tomato plant image to obtain an initial bounding box position and recognition category corresponding to each target; wherein the recognition categories include tomato plants, leaves, flowers and tomato fruits.

[0136] In one embodiment, a first initial bounding box position of the identified category being the tomato plant is obtained, and a plant height feature value is determined based on the first initial bounding box position.

[0137] Specifically, based on the first initial bounding box position of the tomato plant whose identification category is the upper left corner coordinates of the first bounding box and the lower right corner coordinates of the first bounding box, the image target height of the tomato plant is determined based on the upper left corner coordinates of the first bounding box and the lower right corner coordinates of the first bounding box, and the image target height is converted to world coordinates to determine the actual height of the tomato plant, and the actual height is used as the plant height feature value.

[0138] Specifically, when determining the image target height of the tomato plant based on the upper left corner coordinates of the first bounding box and the lower right corner coordinates of the first bounding box, the y-axis coordinate of the lower right corner coordinates of the first bounding box is subtracted from the y-axis coordinate of the upper left corner coordinates of the first bounding box to obtain a first y-axis coordinate difference, and the first y-axis coordinate difference is used as the image target height.

[0139] In one embodiment, a second initial bounding box position of the identified category being the leaf is obtained, and a leaf size feature value is determined based on the second initial bounding box position.

[0140] Specifically, based on the second initial bounding box position of the leaf whose identification category is the leaf, the coordinates of the upper left corner of the second bounding box and the coordinates of the lower right corner of the second bounding box are determined, and based on the coordinates of the upper left corner of the second bounding box and the coordinates of the lower right corner of the second bounding box, the leaf size of the leaf is determined, and the leaf size is converted to world coordinates to determine the leaf size of the leaf, and the leaf size is used as a leaf size feature value.

[0141] Specifically, when determining the leaf size of the leaf based on the upper left corner coordinates of the second bounding box and the lower right corner coordinates of the second bounding box, the y-axis coordinate corresponding to the upper left corner coordinates of the second bounding box is multiplied by the x-axis coordinate of the lower right corner coordinates of the second bounding box to obtain a first coordinate product, and the first coordinate product is used as the leaf size of the leaf.

[0142] In one embodiment, a third initial bounding box position of the tomato fruit whose identification category is obtained is obtained, and based on the third initial bounding box position, the standard tomato plant image is captured to obtain a tomato fruit image, and the RGB value corresponding to each pixel in the tomato fruit image is obtained, and based on the RGB value, the color feature value of the tomato fruit is determined.

[0143] Specifically, when determining the color feature value of the tomato fruit based on the RGB value, the RGB value corresponding to each pixel is traversed in turn, and whether the current pixel is a red pixel is determined based on the RGB value. If so, the number of red pixels is recorded, and the proportion of the number of red pixels to the total number of pixels in the tomato fruit image is calculated, and the proportion is used as the color feature value of the tomato fruit.

[0144] Preferably, if the third initial bounding box position whose identification category is the tomato fruit cannot be obtained, that is, if the identification category of the identified target is not the tomato fruit, the color feature value of the tomato fruit is set to 0.

[0145] In one embodiment, a first target number of flowers of the identified category is obtained, and a flowering characteristic value is determined based on the first target number.

[0146] Specifically, the first target number is used as the flowering characteristic value.

[0147] In one embodiment, a second target number of tomato fruits whose identification category is the tomato fruit is obtained, and a characteristic value of the tomato fruit quantity is determined based on the second target number.

[0148] Specifically, the second target quantity is used as the tomato fruit quantity characteristic value.

[0149] In one embodiment, the multiple tomato plant characteristic values ​​are obtained, wherein the multiple tomato plant characteristic values ​​include a plant height characteristic value, a leaf size characteristic value, a flowering characteristic value, a tomato fruit color characteristic value and a tomato fruit quantity characteristic value; the plant height characteristic value is scored to obtain a first score, the leaf size characteristic value is scored to obtain a second score, the flowering characteristic value is scored to obtain a third score, the tomato fruit color characteristic value is scored to obtain a fourth score, and the tomato fruit quantity characteristic value is scored to obtain a fifth score.

[0150] Specifically, the plant height characteristic value is scored, and when a first score is obtained, a standard plant height is acquired, and a first proportion of the plant height characteristic value in the standard plant is calculated, and a first score is determined based on the first proportion.

[0151] Specifically, when the first proportion is not greater than 30%, the first score is set to 1; when the first proportion is greater than 30% but not greater than 60%, the first score is set to 2; and when the first proportion is greater than 60%, the first score is set to 3.

[0152] Specifically, the blade size characteristic value is scored and processed to obtain a second score, the standard blade size is obtained, and a second proportion of the blade size characteristic value in the standard blade size is calculated, and a second score is determined based on the second proportion.

[0153] Specifically, when the second proportion is not greater than 30%, the second score is set to 1; when the second proportion is greater than 30% but not greater than 60%, the second score is set to 2; when the second proportion is greater than 60%, the second score is set to 3.

[0154] Specifically, the flowering characteristic value is scored and when the third score is obtained, it is determined whether the flowering characteristic value is 0. If so, the third score is set to 0; otherwise, the third score is set to 3.

[0155] Specifically, the tomato fruit color characteristic value is scored to obtain a fourth score. When the tomato fruit color characteristic value is 0, the fourth score is set to 0; when the tomato fruit color characteristic value is not 0 but not greater than 30%, the fourth score is set to 1; when the tomato fruit color characteristic value is greater than 30% but not greater than 60%, the fourth score is set to 2; and when the tomato fruit color characteristic value is greater than 60%, the fourth score is set to 3.

[0156] Specifically, the tomato fruit quantity characteristic value is scored, and when the fifth score is obtained, it is determined whether the tomato fruit quantity characteristic value is 0. If so, the fifth score is set to 0; otherwise, the fifth score is set to 3.

[0157] In one embodiment, the first score and the second score are input into a preset growth trend stability feature calculation formula to obtain the growth trend stability feature.

[0158] Specifically, the preset growth trend characteristic calculation formula is as follows:

[0159] ;

[0160] In the formula, For growth trend characteristics, For the first rating, For the second rating, is the maximum value of the first score set, The second maximum score value is set.

[0161] In one embodiment, the third score, the fourth score and the fifth score are input into a preset irregular growth characteristic calculation formula to obtain the irregular growth characteristic.

[0162] Specifically, the preset irregular growth characteristic calculation formula is as follows:

[0163] ;

[0164] In the formula, Characterized by irregular growth. Rating for the third Rating for the fourth, Rating for the fifth place, is the third maximum score value set, The fourth maximum score is set. The fifth maximum score value is set.

[0165] Step 103: Determine the current growth and development state result corresponding to the tomato plant image based on the normalized vegetation change index, the growth trend stability characteristics and the irregular growth characteristics.

[0166] In one embodiment, the stable growth trend feature is used as the first key name, and the irregular growth feature is used as the first key value, and the first key name and the first key value are subjected to key-value pair splicing processing to obtain first feature splicing data.

[0167] In one embodiment, the normalized vegetation change index is used as the second key name, and the first feature splicing data is used as the second key value, and the second key name and the second key value are subjected to key-value pair splicing processing to obtain second feature splicing data.

[0168] In one embodiment, the second feature splicing data is input into a pre-trained data matching model so that the data matching model outputs a current growth and development status result corresponding to the tomato plant image.

[0169] Specifically, the growth and development status results corresponding to the tomato plant image include seedling stage, growth stage, flowering stage, fruiting stage and maturity stage.

[0170] Specifically, the data matching model stores standard feature splicing data corresponding to each growth and development status result. When the second feature splicing data is input into the data matching model, the first distance between the second feature splicing data and the standard feature splicing data corresponding to each growth and development status result is calculated based on the data matching model according to the Euclidean distance calculation formula, and the target growth and development status result corresponding to the minimum value of the first distance is selected, and the target growth and development status result is used as the current growth and development status result corresponding to the tomato plant image.

[0171] Step 104: Obtain precipitation data of the tomato planting land, extract drought characteristics from the historical precipitation data, and obtain drought characteristic values ​​of the tomato planting land.

[0172] In one embodiment, precipitation data of the tomato planting site is obtained, and the precipitation data is input into a preset weighted average precipitation index calculation formula to obtain a weighted average precipitation index corresponding to the tomato planting site.

[0173] Specifically, a plurality of precipitation data recorded in the tomato planting area within a preset time period are obtained.

[0174] Specifically, the weighted average precipitation index calculation formula is as follows:

[0175] ;

[0176] In the formula, is the weighted mean precipitation index, is the weight coefficient, is the nth precipitation data, and N is the number of precipitation data recorded in a preset time period.

[0177] In one embodiment, a plurality of historical weighted average precipitation indices corresponding to the tomato planting site are simultaneously obtained, and the plurality of historical weighted average precipitation indices and the weighted average precipitation index are fitted to obtain a fitted weighted average precipitation index.

[0178] Specifically, the multiple historical weighted average precipitation indices are weighted average precipitation indices corresponding to preset time periods in multiple preset historical years.

[0179] Specifically, based on the least square fitting method, the multiple historical weighted average precipitation indices and the weighted average precipitation index are fitted.

[0180] In one embodiment, the fitted weighted average precipitation index is standardized to obtain a standardized weighted average precipitation index, and the standardized weighted average precipitation index is used as the drought characteristic value of the tomato planting site.

[0181] Specifically, the mean of the multiple historical weighted average precipitation indices is calculated to obtain the mean of the historical weighted average precipitation indices, and the standard deviation of the multiple historical weighted average precipitation indices is calculated, and at the same time, a first difference between the fitted weighted average precipitation index and the mean of the historical weighted average precipitation index is calculated;

[0182] The first difference is divided by the standard deviation to obtain a standardized weighted average precipitation index corresponding to the fitted weighted average precipitation index.

[0183] Step 105: Match the corresponding target fertilization ratio scheme based on the current growth and development status result, and adjust the target fertilization ratio scheme based on the drought characteristic value to obtain the optimal fertilization ratio scheme, and send the optimal fertilization ratio scheme to the fertilization executor, so that the fertilization executor fertilizes the tomato planting field based on the optimal fertilization ratio scheme.

[0184] In one embodiment, the current growth and development status result is matched with a preset fertilization ratio scheme list, wherein the fertilization ratio scheme list includes the growth and development status result and its corresponding fertilization ratio scheme, and the fertilization ratio scheme includes nitrogen, phosphorus and potassium fertilizer ratios and water distribution ratios.

[0185] Specifically, when the growth and development state result is the seedling stage, the corresponding fertilization ratio scheme includes a nitrogen, phosphorus and potassium fertilizer ratio of 20-20-20 and a water ratio of 10.

[0186] Specifically, when the growth and development state result is the growth period, the corresponding fertilization ratio scheme includes a nitrogen, phosphorus and potassium fertilizer ratio of 20-10-20 and a water ratio of 15.

[0187] Specifically, when the growth and development state is the flowering stage, the corresponding fertilization ratio scheme includes a nitrogen, phosphorus and potassium fertilizer ratio of 15-30-15 and a water ratio of 20.

[0188] Specifically, when the growth and development state is the fruiting period, the corresponding fertilization ratio scheme includes a nitrogen, phosphorus and potassium fertilizer ratio of 10-20-30 and a water ratio of 30.

[0189] Specifically, when the growth and development state is mature, the corresponding fertilization ratio scheme includes a nitrogen, phosphorus and potassium fertilizer ratio of 5-15-30 and a water ratio of 15.

[0190] In one embodiment, when a target growth and development state that is the same as the current growth and development state result is matched, the fertilization ratio scheme corresponding to the target growth and development state is used as the target fertilization ratio scheme corresponding to the current growth and development state result.

[0191] In one embodiment, when the drought characteristic value is greater than the integer 1, a first adjustment coefficient is determined based on the drought characteristic value and the integer 1, and the target fertilization ratio scheme is adjusted based on the first adjustment coefficient to determine the optimal fertilization ratio scheme.

[0192] Specifically, a first absolute value of a difference between the drought characteristic value and twice the integer 1 is calculated, and the first absolute value is used as a first adjustment coefficient.

[0193] Specifically, the product of the first adjustment coefficient and the water allocation ratio in the target fertilization ratio scheme is calculated, and the product result is used as the first updated water allocation ratio. The target fertilization ratio scheme is adjusted based on the first updated water allocation ratio to determine the optimal fertilization ratio scheme.

[0194] In one embodiment, when the drought characteristic value is less than the integer 1, a second adjustment coefficient is determined based on the drought characteristic value and the integer 1, and the target fertilization ratio scheme is adjusted based on the second adjustment coefficient to determine the optimal fertilization ratio scheme.

[0195] Specifically, a second absolute value of a difference between the drought characteristic value and twice the integer 1 is calculated, and the second absolute value is used as a second adjustment coefficient.

[0196] Specifically, the product of the second adjustment coefficient and the water allocation ratio in the target fertilization ratio scheme is calculated, and the product result is used as the second updated water allocation ratio. The target fertilization ratio scheme is adjusted based on the second updated water allocation ratio to determine the optimal fertilization ratio scheme.

[0197] In one embodiment, when the drought characteristic value is equal to an integer of 1, the target fertilization ratio scheme is used as the optimal fertilization ratio scheme.

[0198] In one embodiment, the optimal fertilizer ratio scheme is sent to the control system of the fertilizer actuator by wireless transmission, so that the control system controls the fertilizer actuator to perform fertilizer ratio operation based on the optimal fertilizer ratio scheme, and after the fertilizer ratio is completed, fertilize the tomato planting field.

[0199] Example 2, see Figure 2 , Figure 2 : is a structural schematic diagram of an embodiment of an automatic gripping system for rubber blocks provided by the present application, such as Figure 2 As shown, the system includes a normalized vegetation change index calculation module 201, a feature recognition module 202, a growth and development status result determination module 203, a drought characteristic value calculation module 204 and a fertilization ratio scheme determination module 205, which are specifically as follows:

[0200] The normalized vegetation change index calculation module 201 is used to obtain a remote sensing image of a tomato planting area, generate a corresponding time series remote sensing image based on the remote sensing image, and calculate the normalized vegetation change index of the remote sensing image based on the time series remote sensing image.

[0201] The feature recognition module 202 is used to extract the target from the remote sensing image to obtain a tomato plant image, input the tomato plant image into a pre-trained feature recognition model to obtain multiple tomato plant feature values, and calculate the growth trend stability characteristics and irregular growth characteristics corresponding to the tomato plant image based on the multiple tomato plant feature values.

[0202] The growth and development status result determination module 203 is used to determine the current growth and development status result corresponding to the tomato plant image based on the normalized vegetation change index, the growth trend stability characteristics and the irregular growth characteristics.

[0203] The drought characteristic value calculation module 204 is used to obtain the precipitation data of the tomato planting land, extract the drought characteristics of the precipitation data, and obtain the drought characteristic value of the tomato planting land.

[0204] The fertilization ratio scheme determination module 205 is used to match the corresponding target fertilization ratio scheme based on the current growth and development status result, and adjust the target fertilization ratio scheme based on the drought characteristic value to obtain an optimal fertilization ratio scheme, and send the optimal fertilization ratio scheme to the fertilization executor, so that the fertilization executor fertilizes the tomato planting field based on the optimal fertilization ratio scheme.

[0205] In one embodiment, the normalized vegetation change index calculation module 201 is used to generate a corresponding time series remote sensing image based on the remote sensing image, and calculate the normalized vegetation change index of the remote sensing image based on the time series remote sensing image, specifically including: based on the acquisition time of the remote sensing image, obtaining the historical remote sensing image before the acquisition time, integrating the remote sensing image and the historical remote sensing image, and obtaining the time series remote sensing image; based on a preset normalized vegetation change index calculation formula, respectively calculating the normalized vegetation change index corresponding to each remote sensing image in the time series remote sensing image to obtain the current normalized vegetation change index and the historical normalized vegetation change index; and inputting the current normalized vegetation change index and the historical normalized vegetation change index into the preset normalized vegetation change index calculation formula to obtain the normalized vegetation change index of the remote sensing image.

[0206] In one embodiment, the feature recognition module 202 is used to perform target extraction on the remote sensing image to obtain a tomato plant image, specifically including: obtaining a normalized vegetation change index corresponding to the remote sensing image, and performing image segmentation processing on the remote sensing image based on the normalized vegetation change index to obtain a vegetation image and a non-vegetation image; performing image preprocessing on the vegetation image to obtain a preprocessed vegetation image, wherein the image preprocessing includes image grayscale processing, image median filtering processing and image binarization processing; based on an edge detection operator, obtaining a pixel threshold and a neighborhood pixel threshold corresponding to each pixel in the preprocessed vegetation image, based on the pixel threshold and the neighborhood pixel threshold, calculating a threshold change rate corresponding to each pixel, and determining edge pixels based on the threshold change rate; performing edge extraction on the preprocessed vegetation image based on the edge pixels to determine a tomato plant image.

[0207] In one embodiment, the feature recognition module 202 is used to input the tomato plant image into a pre-trained feature recognition model to obtain multiple tomato plant feature values, specifically including: adjusting the tomato plant image according to a standard image size to obtain a standard tomato plant image; inputting the standard tomato plant image into a pre-trained feature recognition model so that the feature recognition model performs target recognition on the standard tomato plant image to obtain an initial bounding box position and recognition category corresponding to each target; wherein the recognition categories include tomato plants, leaves, flowers, and tomato fruits; obtaining a first initial bounding box position of the recognition category being the tomato plant, and determining a plant height feature value based on the first initial bounding box position. ; Obtain a second initial bounding box position for the leaf whose identification category is the leaf, and determine a leaf size characteristic value based on the second initial bounding box position; Obtain a third initial bounding box position for the tomato fruit whose identification category is the tomato fruit, and based on the third initial bounding box position, perform image interception on the standard tomato plant image to obtain a tomato fruit image, obtain an RGB value corresponding to each pixel in the tomato fruit image, and determine a tomato fruit color characteristic value based on the RGB value; Obtain a first target number for the flower whose identification category is the flower, and determine a flowering characteristic value based on the first target number; Obtain a second target number for the tomato fruit whose identification category is the tomato fruit, and determine a tomato fruit quantity characteristic value based on the second target number.

[0208] In one embodiment, the feature recognition module 202 is used to calculate the growth trend stability feature and irregular growth feature corresponding to the tomato plant image based on the multiple tomato plant feature values, specifically including: obtaining the multiple tomato plant feature values, wherein the multiple tomato plant feature values ​​include a plant height feature value, a leaf size feature value, a flowering feature value, a tomato fruit color feature value and a tomato fruit quantity feature value; scoring the plant height feature value to obtain a first score, scoring the leaf size feature value to obtain a second score, scoring the flowering feature value to obtain a third score, scoring the tomato fruit color feature value to obtain a fourth score, and scoring the tomato fruit quantity feature value to obtain a fifth score; inputting the first score and the second score into a preset growth trend stability feature calculation formula to obtain a growth trend stability feature; and inputting the third score, the fourth score and the fifth score into a preset irregular growth feature calculation formula to obtain an irregular growth feature.

[0209] In one embodiment, the growth and development status result determination module 203 is used to determine the current growth and development status result corresponding to the tomato plant image based on the normalized vegetation change index, the growth trend stability feature and the irregular growth feature, specifically including: taking the growth trend stability feature as the first key name, and taking the irregular growth feature as the first key value, performing key-value pair splicing processing on the first key name and the first key value to obtain first feature splicing data; taking the normalized vegetation change index as the second key name, and taking the first feature splicing data as the second key value, performing key-value pair splicing processing on the second key name and the second key value to obtain second feature splicing data; inputting the second feature splicing data into the pre-trained data matching model, so that the data matching model outputs the current growth and development status result corresponding to the tomato plant image.

[0210] In one embodiment, the drought characteristic value calculation module 204 is used to extract drought characteristics from the precipitation data to obtain the drought characteristic value of the tomato planting land, specifically including: obtaining the precipitation data of the tomato planting land, inputting the precipitation data into a preset weighted average precipitation index calculation formula to obtain the weighted average precipitation index corresponding to the tomato planting land; simultaneously obtaining multiple historical weighted average precipitation indices corresponding to the tomato planting land, fitting the multiple historical weighted average precipitation indices and the weighted average precipitation index to obtain a fitted weighted average precipitation index; standardizing the fitted weighted average precipitation index to obtain a standardized weighted average precipitation index, and using the standardized weighted average precipitation index as the drought characteristic value of the tomato planting land.

[0211] In one embodiment, the drought characteristic value calculation module 204 is used to standardize the fitted weighted average precipitation index to obtain a standardized weighted average precipitation index, specifically including: calculating the mean of the multiple historical weighted average precipitation indices to obtain the mean of the historical weighted average precipitation index, calculating the standard deviation of the multiple historical weighted average precipitation indices, and simultaneously calculating a first difference between the fitted weighted average precipitation index and the mean of the historical weighted average precipitation index; dividing the first difference by the standard deviation to obtain a standardized weighted average precipitation index corresponding to the fitted weighted average precipitation index.

[0212] In one embodiment, the fertilization ratio scheme determination module 205 is used to match the corresponding target fertilization ratio scheme based on the current growth and development state result, and adjust the target fertilization ratio scheme based on the drought characteristic value to obtain the optimal fertilization ratio scheme, specifically including: matching the current growth and development state result with a preset fertilization ratio scheme list, wherein the fertilization ratio scheme list includes the growth and development state result and the corresponding fertilization ratio scheme, and the fertilization ratio scheme includes the nitrogen, phosphorus and potassium fertilizer ratio and the water ratio; when the target growth and development state that is the same as the current growth and development state result is matched, the target growth and development state is matched. The corresponding fertilization ratio scheme is used as the target fertilization ratio scheme corresponding to the current growth and development status result; when the drought characteristic value is greater than the integer 1, a first adjustment coefficient is determined based on the drought characteristic value and the integer 1, and the target fertilization ratio scheme is adjusted based on the first adjustment coefficient to determine the optimal fertilization ratio scheme; when the drought characteristic value is less than the integer 1, a second adjustment coefficient is determined based on the drought characteristic value and the integer 1, and the target fertilization ratio scheme is adjusted based on the second adjustment coefficient to determine the optimal fertilization ratio scheme; when the drought characteristic value is equal to the integer 1, the target fertilization ratio scheme is used as the optimal fertilization ratio scheme.

[0213] The above-mentioned fertilizer ratio control system based on tomato planting can implement the fertilizer ratio control method based on tomato planting of the above-mentioned method embodiment. The options in the above-mentioned method embodiment are also applicable to this embodiment and will not be described in detail here.

[0214] In summary, the present application provides a fertilizer ratio control method and system based on tomato planting, which calculates the normalized vegetation change index based on the time series remote sensing image corresponding to the remote sensing image of the tomato planting area; inputs the tomato plant image in the remote sensing image into the feature recognition model, obtains and calculates the growth trend stability characteristics and irregular growth characteristics based on multiple tomato plant feature values; determines the current growth and development status results based on the normalized vegetation change index, the growth trend stability characteristics and the irregular growth characteristics; obtains the precipitation data of the tomato planting area, and calculates the drought characteristic value; adjusts the target fertilization ratio scheme that matches the current growth and development status results based on the drought characteristic value to obtain the optimal fertilization ratio scheme, and the fertilization actuator fertilizes the tomato planting area based on the optimal fertilization ratio scheme; compared with the prior art, the technical solution of the present application can improve the recognition accuracy of the tomato growth state and realize accurate fertilizer ratio.

[0215] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and substitutions can be made without departing from the technical principles of the present application. These improvements and substitutions should also be regarded as the scope of protection of the present application.

Claims

1. A fertilizer ratio control method based on tomato planting, It is characterized in that include: Acquire a remote sensing image of a tomato planting area, generate a corresponding time series remote sensing image based on the remote sensing image, and calculate a normalized vegetation change index of the remote sensing image based on the time series remote sensing image; Performing target extraction on the remote sensing image to obtain a tomato plant image, inputting the tomato plant image into a pre-trained feature recognition model to obtain a plurality of tomato plant feature values, and calculating growth trend stability features and irregular growth features corresponding to the tomato plant image based on the plurality of tomato plant feature values; Determining a current growth and development state result corresponding to the tomato plant image based on the normalized vegetation change index, the growth trend stability characteristic and the irregular growth characteristic; Acquiring precipitation data of the tomato planting land, performing drought feature extraction on the precipitation data, and obtaining a drought feature value of the tomato planting land; Matching a corresponding target fertilization ratio scheme based on the current growth and development status result, and adjusting the target fertilization ratio scheme based on the drought characteristic value to obtain an optimal fertilization ratio scheme, and sending the optimal fertilization ratio scheme to a fertilization executor, so that the fertilization executor fertilizes the tomato planting field based on the optimal fertilization ratio scheme; Among them, based on the normalized vegetation change index, the growth trend stability feature and the irregular growth feature, the current growth and development status result corresponding to the tomato plant image is determined, specifically including: taking the growth trend stability feature as the first key name, and the irregular growth feature as the first key value, performing key-value pair splicing processing on the first key name and the first key value to obtain first feature splicing data; taking the normalized vegetation change index as the second key name, and the first feature splicing data as the second key value, performing key-value pair splicing processing on the second key name and the second key value to obtain second feature splicing data; inputting the second feature splicing data into the pre-trained data matching model, so that the data matching model outputs the current growth and development status result corresponding to the tomato plant image.

2. A fertilizer ratio control method based on tomato planting as claimed in claim 1, It is characterized in that Generating a corresponding time series remote sensing image based on the remote sensing image, and calculating a normalized vegetation change index of the remote sensing image based on the time series remote sensing image, specifically comprising: Based on the acquisition time of the remote sensing image, acquiring the historical remote sensing image before the acquisition time, integrating the remote sensing image and the historical remote sensing image to obtain a time series remote sensing image; Based on a preset normalized vegetation change index calculation formula, the normalized vegetation change index corresponding to each remote sensing image in the time series remote sensing images is calculated respectively to obtain a current normalized vegetation change index and a historical normalized vegetation change index; The current normalized vegetation change index and the historical normalized vegetation change index are input into a preset normalized vegetation change index calculation formula to obtain the normalized vegetation change index of the remote sensing image.

3. A fertilizer ratio control method based on tomato planting as claimed in claim 1, It is characterized in that Performing target extraction on the remote sensing image to obtain a tomato plant image specifically includes: Acquiring a normalized vegetation change index corresponding to the remote sensing image, and performing image segmentation processing on the remote sensing image based on the normalized vegetation change index to obtain a vegetation image and a non-vegetation image; Performing image preprocessing on the vegetation image to obtain a preprocessed vegetation image, wherein the image preprocessing includes image grayscale processing, image median filtering processing and image binarization processing; Based on the edge detection operator, a pixel threshold and a neighborhood pixel threshold corresponding to each pixel in the preprocessed vegetation image are obtained, based on the pixel threshold and the neighborhood pixel threshold, a threshold change rate corresponding to each pixel is calculated, and based on the threshold change rate, an edge pixel is determined; The preprocessed vegetation image is subjected to edge extraction based on the edge pixels to determine a tomato plant image.

4. A fertilizer ratio control method based on tomato planting as claimed in claim 1, It is characterized in that The tomato plant image is input into a pre-trained feature recognition model to obtain a plurality of tomato plant feature values, specifically including: Performing image adjustment on the tomato plant image according to a standard image size to obtain a standard tomato plant image; Inputting the standard tomato plant image into a pre-trained feature recognition model so that the feature recognition model performs target recognition on the standard tomato plant image to obtain an initial bounding box position and recognition category corresponding to each target; wherein the recognition category includes tomato plants, leaves, flowers, and tomato fruits; Obtaining a first initial bounding box position of the identified category being the tomato plant, and determining a plant height feature value based on the first initial bounding box position; Acquire a second initial bounding box position of the leaf as the identification category, and determine a leaf size feature value based on the second initial bounding box position; Obtaining a third initial bounding box position of the tomato fruit in the identification category, performing image interception on the standard tomato plant image based on the third initial bounding box position to obtain a tomato fruit image, obtaining an RGB value corresponding to each pixel in the tomato fruit image, and determining a color feature value of the tomato fruit based on the RGB value; Acquire a first target number of the flowers whose identification category is the flowers, and determine a flowering characteristic value based on the first target number; A second target number of tomato fruits whose identification category is the tomato fruit is obtained, and a characteristic value of the tomato fruit quantity is determined based on the second target number.

5. A fertilizer ratio control method based on tomato planting as claimed in claim 1, It is characterized in that Calculating the growth trend stability feature and the irregular growth feature corresponding to the tomato plant image based on the multiple tomato plant feature values ​​specifically includes: Acquire the plurality of tomato plant characteristic values, wherein the plurality of tomato plant characteristic values ​​include a plant height characteristic value, a leaf size characteristic value, a flowering characteristic value, a tomato fruit color characteristic value, and a tomato fruit quantity characteristic value; The plant height characteristic value is scored to obtain a first score, the leaf size characteristic value is scored to obtain a second score, the flowering characteristic value is scored to obtain a third score, the tomato fruit color characteristic value is scored to obtain a fourth score, and the tomato fruit quantity characteristic value is scored to obtain a fifth score; Inputting the first score and the second score into a preset growth trend stability characteristic calculation formula to obtain a growth trend stability characteristic; The third score, the fourth score and the fifth score are input into a preset irregular growth characteristic calculation formula to obtain the irregular growth characteristic.

6. A fertilizer ratio control method based on tomato planting as claimed in claim 1, It is characterized in that Extracting drought characteristics from the precipitation data to obtain drought characteristic values ​​of the tomato planting land specifically includes: Obtaining precipitation data of the tomato planting land, inputting the precipitation data into a preset weighted average precipitation index calculation formula, and obtaining a weighted average precipitation index corresponding to the tomato planting land; At the same time, a plurality of historical weighted average precipitation indices corresponding to the tomato planting area are obtained, and the plurality of historical weighted average precipitation indices and the weighted average precipitation index are fitted to obtain a fitted weighted average precipitation index; The fitted weighted average precipitation index is standardized to obtain a standardized weighted average precipitation index, and the standardized weighted average precipitation index is used as the drought characteristic value of the tomato planting site.

7. A fertilizer ratio control method based on tomato planting as claimed in claim 6, It is characterized in that The fitted weighted average precipitation index is standardized to obtain a standardized weighted average precipitation index, specifically including: Calculating the mean of the multiple historical weighted average precipitation indices to obtain the mean of the historical weighted average precipitation indices, calculating the standard deviation of the multiple historical weighted average precipitation indices, and calculating the first difference between the fitted weighted average precipitation index and the mean of the historical weighted average precipitation index; The first difference is divided by the standard deviation to obtain a standardized weighted average precipitation index corresponding to the fitted weighted average precipitation index.

8. A fertilizer ratio control method based on tomato planting as claimed in claim 1, It is characterized in that Matching a corresponding target fertilization ratio scheme based on the current growth and development status result, and adjusting the target fertilization ratio scheme based on the drought characteristic value to obtain an optimal fertilization ratio scheme, specifically including: Matching the current growth and development status result with a preset fertilization ratio scheme list, wherein the fertilization ratio scheme list includes the growth and development status result and its corresponding fertilization ratio scheme, and the fertilization ratio scheme includes nitrogen, phosphorus and potassium fertilizer ratios and water ratios; When a target growth and development state that is the same as the current growth and development state result is matched, the fertilization ratio scheme corresponding to the target growth and development state is used as the target fertilization ratio scheme corresponding to the current growth and development state result; When the drought characteristic value is greater than the integer 1, a first adjustment coefficient is determined based on the drought characteristic value and the integer 1, and the target fertilization ratio scheme is adjusted based on the first adjustment coefficient to determine an optimal fertilization ratio scheme; When the drought characteristic value is less than the integer 1, a second adjustment coefficient is determined based on the drought characteristic value and the integer 1, and the target fertilization ratio scheme is adjusted based on the second adjustment coefficient to determine an optimal fertilization ratio scheme; When the drought characteristic value is equal to the integer 1, the target fertilization ratio scheme is used as the optimal fertilization ratio scheme.

9. A fertilizer ratio control system based on tomato planting, It is characterized in that include: Normalized vegetation change index calculation module, feature recognition module, growth and development status result determination module, drought characteristic value calculation module and fertilization ratio scheme determination module; The normalized vegetation change index calculation module is used to obtain a remote sensing image of a tomato planting area, generate a corresponding time series remote sensing image based on the remote sensing image, and calculate the normalized vegetation change index of the remote sensing image based on the time series remote sensing image; The feature recognition module is used to extract the target from the remote sensing image to obtain a tomato plant image, input the tomato plant image into a pre-trained feature recognition model to obtain a plurality of tomato plant feature values, and calculate the growth trend stability feature and the irregular growth feature corresponding to the tomato plant image based on the plurality of tomato plant feature values; The growth and development status result determination module is used to determine the current growth and development status result corresponding to the tomato plant image based on the normalized vegetation change index, the growth trend stability feature and the irregular growth feature; The drought characteristic value calculation module is used to obtain the precipitation data of the tomato planting land, extract the drought characteristics of the precipitation data, and obtain the drought characteristic value of the tomato planting land; The fertilization ratio scheme determination module is used to match the corresponding target fertilization ratio scheme based on the current growth and development status result, and adjust the target fertilization ratio scheme based on the drought characteristic value to obtain an optimal fertilization ratio scheme, and send the optimal fertilization ratio scheme to a fertilization executor, so that the fertilization executor fertilizes the tomato planting field based on the optimal fertilization ratio scheme; Among them, based on the normalized vegetation change index, the growth trend stability feature and the irregular growth feature, the current growth and development status result corresponding to the tomato plant image is determined, specifically including: taking the growth trend stability feature as the first key name, and the irregular growth feature as the first key value, performing key-value pair splicing processing on the first key name and the first key value to obtain first feature splicing data; taking the normalized vegetation change index as the second key name, and the first feature splicing data as the second key value, performing key-value pair splicing processing on the second key name and the second key value to obtain second feature splicing data; inputting the second feature splicing data into the pre-trained data matching model, so that the data matching model outputs the current growth and development status result corresponding to the tomato plant image.