Agricultural data processing method, terminal and storage medium
Through satellite remote sensing image recognition and meteorological soil data prediction, the problem of inefficiency of the traditional agricultural data management model is solved, accurate assessment of crop types and yields is achieved, data support is provided for agriculture, and production efficiency and resource allocation optimization are improved.
Patent Information
- Application Number
- CN202410928385.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-10-15
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The traditional agricultural data management model is inefficient and cannot predict crop yields in advance, resulting in lags in warehousing, transportation, and agricultural machinery and equipment scheduling, which limits the efficiency of agricultural production and the optimization of resource allocation.
By acquiring satellite remote sensing images, image recognition models are used to identify crop planting plots and types, and combined with meteorological and soil data, prediction models are used to predict unit yields, calculate total yields, and then evaluate crop types and yields.
It achieves accurate assessment of crop types and yields, provides data support for agricultural activities, improves the efficiency and accuracy of data processing, and supports more effective resource allocation and production decisions.
Smart Images

Figure CN118780437A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of machine learning, and in particular relates to an agricultural data processing method, a terminal and a storage medium. Background Art
[0002] In today's surging agricultural informatization, the collection, organization and use of agricultural data have become key links in improving agricultural production efficiency and optimizing resource allocation. However, the traditional agricultural data management model has significantly restricted the breadth and depth of data application in the agricultural field due to its inefficiency, limited data processing capabilities and difficulty in exploring the intrinsic value of data. This restriction not only hinders the efficient conduct of modern agricultural production, but also limits the optimal allocation of agricultural resources. We urgently need to seek more advanced and efficient data management strategies to meet this challenge.
[0003] Currently, crop yield data is only obtained through surveys and other methods, and the data obtained are all actual yield data during the autumn harvest. This data acquisition method is relatively lagging, and it is impossible to make some warehousing, transportation, and agricultural machinery equipment data scheduling based on crop yields in advance. Summary of the invention
[0004] In view of the above-mentioned deficiencies in the prior art, the present invention provides an agricultural data processing method, a terminal and a storage medium to solve the above-mentioned technical problems.
[0005] The present invention provides an agricultural data processing method, comprising: Acquire satellite remote sensing images, identify crop planting plots and crop types from the satellite remote sensing images using an image recognition model, and calculate the actual area of the crop planting plots based on the scale; Acquire meteorological data and soil data, and use a pre-trained yield prediction model to predict the unit yield of various crops based on the meteorological data and the soil data; The total yield of each crop is calculated based on the unit yield of each crop and the actual area of the planting plot.
[0006] In an optional embodiment, obtaining a satellite remote sensing image, identifying a crop planting plot and a crop type from the satellite remote sensing image using an image recognition model, and calculating an actual area of the crop planting plot based on a scale, includes: Acquire multiple satellite remote sensing images of the monitored area; Use pre-trained image recognition models to identify crop plots and crop types from satellite remote sensing images; Obtaining the number of pixels contained in the crop-planting plot, and calculating the image area of the crop-planting plot based on the resolution of the satellite remote sensing image and the number of pixels; Acquire the scale of the satellite remote sensing image, and convert the image area into an actual area based on the scale; The image recognition model includes a U-Net network, an attention mechanism, a Batch normalization layer and a Softmax classifier. The U-Net network extracts texture features, HSV color features and contour features of the satellite remote sensing image; the attention mechanism incorporates feature channel information; the Batch normalization layer is used to suppress overfitting; and the Softmax classifier identifies crop types based on texture features, HSV color features and contour features.
[0007] In an optional embodiment, the training method of the image recognition model includes: Collect 10,000 satellite remote sensing images; Use Labelme to label potato plots and corn plots in satellite remote sensing images, and save the labeled satellite remote sensing images to the dataset; The image recognition model is trained and verified using the data set.
[0008] In an optional embodiment, meteorological data and soil data are obtained, and a pre-trained yield prediction model is used to predict the unit yield of various crops based on the meteorological data and the soil data, including: Divide the monitoring area into multiple sub-areas in advance; Acquire meteorological data and soil data of each sub-region, wherein the meteorological data includes monthly average precipitation and monthly average temperature, and the soil data includes monthly average water content, monthly average pH value and monthly average organic carbon content; Sort the meteorological data and soil data in order of collection time to obtain a data sequence; The multivariate linear regression model is used to predict the unit yield of crops in each sub-region based on the data sequence.
[0009] In an optional embodiment, using a principal component regression model to predict the unit yield of crops in each sub-region based on the data sequence includes: KMO test and Bartlett sphericity test were performed on meteorological data and soil data. If the KMO value was > 0.7 and the P value of Bartlett sphericity test was < 0.05, the corresponding data items were used as variables for factor analysis; Determine the best comprehensive factor based on factor eigenvalues, cumulative contribution rates, and scree plots; Calculate the principal component score coefficient of each variable, and sort the variables from large to small according to the absolute value of the principal component score coefficient; Set the top two variables as core parameters; The data series of the core parameters of each sub-region are respectively input into the pre-constructed multiple linear regression model to obtain the unit yield of the crops in the sub-region.
[0010] In an optional embodiment, the method for constructing the multivariate linear regression model includes: Construct the function y=β0+β1×x1+β2×x2+e; Among them, β0 is a constant term, x1 is the monthly average temperature series, β1 is the regression coefficient of the monthly average temperature series, x2 is the monthly average soil moisture series, β2 is the regression coefficient of the monthly average soil moisture series, and e is the residual; The function is fitted based on historical data using the least square method, wherein the historical data includes core parameter data of each sub-region over the years and corresponding unit yield of crops.
[0011] In an optional embodiment, the total yield of each crop is calculated based on the unit yield of each crop and the actual area of the planting plot, including: Extract the predicted unit yield of corresponding crops according to the crop types in each sub-region; Calculate the crop types and corresponding crop yields of each sub-region based on the actual area of the crop planting plots in each sub-region and the corresponding unit yield of the crop; The crop yields of all sub-areas are accumulated by crop type to obtain the crop types and total yields of each crop in the monitored area.
[0012] In an optional embodiment, the method further comprises: Get the number of registered agricultural machinery and equipment; Based on the crop yield data and agricultural machinery usage data of previous years, it is determined whether the number of agricultural machinery matches the crop types and the total yield of each type of crops in the monitoring area. If not, a prompt message of insufficient agricultural machinery is generated.
[0013] The present invention provides a terminal, comprising: processor, memory, wherein: The memory is used to store computer programs. The processor is used to call and run the computer program from the memory, so that the terminal executes the above-mentioned terminal method.
[0014] The present invention provides a computer storage medium, wherein the computer-readable storage medium stores instructions, and when the computer-readable storage medium is run on a computer, the computer executes the methods described in the above aspects.
[0015] The beneficial effect of the present invention lies in that the agricultural data processing method, terminal and storage medium provided by the present invention, combined with satellite remote sensing images and meteorological and soil monitoring data, realize the evaluation of crop types and crop yields planted in the region through image recognition and machine learning, thereby providing data support for the preparation of plans for agricultural activities.
[0016] In addition, the invention has a reliable design principle, a simple structure and a very broad application prospect. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0018] Figure 1 is a schematic flow chart of a method according to an embodiment of the present invention.
[0019] Figure 2 A schematic diagram of the structure of a terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0020] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0021] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention.
[0022] Figure 1 The following is a schematic flow chart of a method according to an embodiment of the present invention. According to different requirements, the order of the steps in the flow chart can be changed, and some steps can be omitted.
[0023] like Figure 1 As shown, the method includes: Step 110, acquiring a satellite remote sensing image, identifying crop planting plots and crop types from the satellite remote sensing image using an image recognition model, and calculating the actual area of the crop planting plot based on a scale; Step 120, obtaining meteorological data and soil data, and using a pre-trained yield prediction model to predict the unit yield of various crops based on the meteorological data and the soil data; Step 130, calculating the total yield of each crop based on the unit yield of each crop and the actual area of the planting plot.
[0024] To facilitate understanding of the present invention, the agricultural data processing method provided by the present invention is further described below based on the principle of the agricultural data processing method of the present invention and in combination with the process of processing agricultural data in the embodiment.
[0025] Specifically, the agricultural data processing method includes: S1. Acquire satellite remote sensing images, use an image recognition model to identify crop planting plots and crop types from the satellite remote sensing images, and calculate the actual area of the crop planting plot based on the scale.
[0026] Acquire multiple satellite remote sensing images of the monitored area; use a pre-trained image recognition model to identify crop planting plots and crop types from the satellite remote sensing images; obtain the number of pixels contained in the crop planting plots, and calculate the image area of the crop planting plots based on the resolution of the satellite remote sensing image and the number of pixels; obtain the scale of the satellite remote sensing image, and convert the image area into the actual area based on the scale.
[0027] Specifically, after identifying the crop-growing plots, the number of pixels contained in each plot is further obtained. Since the pixels of the satellite remote sensing image represent a certain area of the actual ground, the image area of the crop-growing plot can be preliminarily estimated by counting the number of pixels. Here, it is necessary to pay attention to the impact of the image resolution on the pixel area, because the actual area represented by the pixels of images with different resolutions will also be different. For example, the current image resolution is 200Dpi, which means that there are 200 pixels in 1 inch, and there are 200*200=90,000 pixels in 1 square inch, so the size of each pixel is 1 / 90,000 square inches. After identifying the crop-growing plots, the number of pixels of the crop-growing plots in the image is obtained, and the product of the number of pixels and the area of the pixels is the image area.
[0028] After obtaining the image area, it is also necessary to convert it into the actual area for more accurate analysis and decision-making. To this end, it is necessary to obtain the scale of the satellite remote sensing image, that is, the actual distance corresponding to each unit length on the image. Based on this scale, the image area can be multiplied by the corresponding proportional coefficient to obtain the actual area of the crop planting plot. This step not only improves the accuracy of the data, but also provides a more reliable basis for subsequent agricultural resource management and decision-making.
[0029] Among them, the image recognition model includes a U-Net network, an attention mechanism, a Batch normalization layer and a Softmax classifier. The U-Net network extracts texture features, HSV color features and contour features of the satellite remote sensing image; the attention mechanism incorporates feature channel information; the Batch normalization layer is used to suppress overfitting; and the Softmax classifier identifies crop types based on texture features, HSV color features and contour features.
[0030] The training methods for image recognition models include: 10,000 satellite remote sensing images are collected; potato plots and corn plots in the satellite remote sensing images are labeled using Labelme, and the labeled satellite remote sensing images are saved in a data set; and the image recognition model is trained and verified using the data set.
[0031] S2. Acquire meteorological data and soil data, and use a pre-trained yield prediction model to predict the unit yield of various crops based on the meteorological data and the soil data.
[0032] S201. Divide the monitoring area into multiple sub-areas in advance.
[0033] Since there are data differences in different cultivated land areas, when the monitoring area is large, it is necessary to divide the monitoring area into multiple sub-areas to adapt to the differences between different plots.
[0034] S202, obtaining meteorological data and soil data of each sub-region, wherein the meteorological data includes monthly average precipitation and monthly average temperature, and the soil data includes monthly average water content, monthly average pH value and monthly average organic carbon content.
[0035] Obtain daily meteorological data from the weather forecast platform, and then calculate the monthly average precipitation and monthly average temperature.
[0036] A detection point is set up in each sub-area, and the soil data of the detection point is collected through sensors to obtain the weekly water content, pH value and organic carbon content of each sub-area. Since the soil data is relatively stable, it is sufficient to collect it once a week. Then, the monthly average water content, monthly average pH value and monthly average organic carbon content are calculated based on the collected data.
[0037] S203, sorting the meteorological data and soil data in chronological order according to the collection time to obtain a data sequence.
[0038] Taking a sub-region as an example, its data series includes: [J1, J2, J3, J4, J5, J6, J7, J8, J9, J10, J11, J12], where J1 is the monthly average precipitation in September, J2 is the monthly average precipitation in October, and so on, J12 is the monthly average precipitation in August of the following year. September is the month when crops mature in areas with one harvest per year, and the length of the monitoring sequence in other areas with two or three harvests per year is adjusted according to demand to ensure that the length of the monitoring sequence matches the crop growth time.
[0039] [T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12], where T1 is the monthly average temperature in September, T2 is the monthly average temperature in October, and so on, T12 is the monthly average temperature in August of the following year.
[0040] [H1, H2, H3, H4, H5, H6, H7, H8, H9, H10, H11, H12], where H1 is the monthly average water content in September, H2 is the monthly average water content in December, and so on, H12 is the monthly average water content in August of the following year.
[0041] [S1, S2, S3, S4, S5, S6, S7, S8, S9, S10, S11, S12], where S1 is the monthly average pH in September, S2 is the monthly average pH in October, and so on, S12 is the monthly average pH in August of the following year.
[0042] [C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12], where C1 is the monthly average organic carbon content in September, C2 is the monthly average organic carbon content in October, and so on, C12 is the monthly average organic carbon content in August of the following year.
[0043] S204: Predict the unit yield of crops in each sub-region based on the data sequence using a multivariate linear regression model.
[0044] KMO test and Bartlett sphericity test were performed on meteorological data and soil data. If the KMO value was greater than 0.7 and the P value of Bartlett sphericity test was less than 0.05, the corresponding data items were used as variables for factor analysis. The best comprehensive factor was determined based on the factor eigenvalue, cumulative contribution rate, and scree plot. The principal component score coefficient of each variable was calculated, and the variables were ranked from large to small according to the absolute value of the principal component score coefficient. The top two variables were set as core parameters.
[0045] Calculate the principal component score coefficients for each variable: ; In the formula, FSC iis the principal component score coefficient of the ith variable, VDR j is the variance contribution rate of the jth comprehensive factor, CDR j is the cumulative contribution rate of the jth comprehensive factor, SC ij is the score of the ith variable in the jth comprehensive factor. By comparing the absolute values of the principal component score coefficients of each variable, the top two variables are determined as core parameters.
[0046] The data series of the core parameters of each sub-region are respectively input into the pre-built multiple linear regression model to obtain the unit yield of the crops in the sub-region. The specific method includes: Construct the function y=β0+β1×x1+β2×x2+e; Among them, β0 is a constant term, x1 is the monthly average temperature series, β1 is the regression coefficient of the monthly average temperature series, x2 is the monthly average soil moisture series, β2 is the regression coefficient of the monthly average soil moisture series, and e is the residual; The function is fitted based on historical data using the least square method, wherein the historical data includes core parameter data of each sub-region over the years and corresponding unit yield of crops.
[0047] Estimate the regression coefficient of the function based on historical data and get the estimated value: ; Among them, b1, b2… are estimated coefficients, and the estimated values It represents the average value of y corresponding to a set of independent variable values; According to the observed n data, the residual sum of squares is minimized: ; By solving the equation system, we can obtain the estimated coefficients b0, b1, b2…, and use the following formula to find the constant term b0 of the regression equation: ; ; , where i=1, 2, …, m; ; Among them, l ij It is the sum of squares of the deviations from the mean of the independent variables (when i=j) or the sum of products of the deviations from the mean of the two independent variables (when i≠j). iY is the independent variable X j The sum of the deviations from the mean of the dependent variable Y.
[0048] S3. Calculate the total yield of each crop based on the unit yield of each crop and the actual area of the planting plot.
[0049] The predicted unit yield of the corresponding crops is extracted according to the crop types of each sub-region; the crop types and corresponding crop yields of the sub-region are calculated according to the actual area of the crop planting plots in each sub-region and the corresponding unit yield of the crops; the crop yields of all sub-regions are accumulated by crop types to obtain the crop types in the monitored area and the total yield of each crop.
[0050] Specifically, the yield of each crop in each sub-region is calculated. The calculation formula is: Sub-region yield = actual area of corn-planting plot × unit yield of corn + actual area of potato-planting plot × unit yield of potato.
[0051] The total yield of the same crop in all sub-areas is accumulated to obtain the total yield of each crop in the monitoring area. The total yield of all crops in the monitoring area is summed up to obtain the total crop yield of the entire monitoring area.
[0052] S4. Data application.
[0053] Obtain the number of registered agricultural machinery and equipment; based on the crop yield data and agricultural machinery and equipment usage data of previous years, determine whether the number of agricultural machinery and equipment matches the crop types and the total yield of each type of crops in the monitoring area. If not, generate a prompt message that the agricultural machinery and equipment is insufficient.
[0054] Specifically, they include: 1. Obtain the number of registered agricultural machinery and equipment Step 1.1: First, access the agricultural machinery registration and management system to obtain a list of all registered agricultural machinery in the monitoring area.
[0055] Step 1.2: Classify and count the agricultural machinery and equipment according to their types, models, functions and other attributes to obtain the specific quantity of each type of agricultural machinery and equipment.
[0056] Step 1.3: Organize the statistical results into tables or reports for subsequent analysis.
[0057] 2. Collect historical crop yield data and agricultural machinery and equipment usage data Step 2.1: Collect crop yield data from previous years in the monitoring area, including total yield and yield per unit area of various crops.
[0058] Step 2.2: Collect the usage data of agricultural machinery and equipment over the years, including the usage time, frequency of use, operating area, etc. of various agricultural machinery and equipment.
[0059] Step 2.3: Organize crop yield data and agricultural machinery usage data into corresponding databases or tables to ensure data accuracy and analyzability.
[0060] 3. Analyze the matching degree between the number of agricultural machinery and crop yield Step 3.1: Based on historical crop yield data and agricultural machinery usage data, analyze the demand for agricultural machinery for different crop types in key agricultural activities such as planting and harvesting.
[0061] Step 3.2: According to the crop types and the functions of agricultural machinery and equipment, establish the corresponding relationship between agricultural machinery and crop types, and clarify the types and quantities of agricultural machinery and equipment required for each crop during the planting cycle.
[0062] Step 3.3: Compare the number of registered agricultural machinery and equipment with the number of agricultural machinery and equipment required for the crop type to determine whether the number of agricultural machinery and equipment meets the needs of crop planting and harvesting.
[0063] 4. Determine whether the number of agricultural machinery and equipment matches and generate prompt information Step 4.1: If the number of registered agricultural machinery and equipment can meet the needs of crop planting and harvesting, it is considered a match and no further operation is required.
[0064] Step 4.2: If the number of registered agricultural machinery and equipment is insufficient to meet the needs of crop planting and harvesting, it is judged as a mismatch and a prompt message of insufficient agricultural machinery and equipment is generated.
[0065] Step 4.3: The prompt information should include the following: crop type, type and quantity of agricultural machinery and equipment missing, possible impact range and recommended remedial measures, etc.
[0066] 5. Reporting and decision support Step 5.1: Organize the analysis results of the matching degree between the number of agricultural machinery and crop yield and the warning information of insufficient agricultural machinery into a report and submit it to relevant departments or decision makers.
[0067] Step 5.2: Based on the content of the report, decision makers can formulate corresponding strategies, such as increasing the purchase of agricultural machinery and equipment, optimizing the use plan of agricultural machinery and equipment, etc., to ensure the smooth planting and harvesting of crops.
[0068] Through the above steps, the matching degree between the number of agricultural machinery and equipment and crop yield in the monitoring area can be comprehensively evaluated, providing effective decision-making support for agricultural production.
[0069] Figure 2 The present invention is a schematic diagram of the structure of a terminal 200 provided in an embodiment of the present invention. The terminal 200 can be used to execute the agricultural data processing method provided in an embodiment of the present invention.
[0070] The terminal 200 may include: a processor 210, a memory 220 and a communication unit 230. These components communicate via one or more buses. Those skilled in the art will appreciate that the server structure shown in the figure does not limit the present invention, and it may be a bus structure or a star structure, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0071] The memory 220 can be used to store the execution instructions of the processor 210, and the memory 220 can be implemented by any type of volatile or non-volatile storage terminal or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. When the execution instructions in the memory 220 are executed by the processor 210, the terminal 200 can perform some or all of the steps in the following method embodiments.
[0072] The processor 210 is the control center of the storage terminal, and uses various interfaces and lines to connect various parts of the entire electronic terminal. It runs or executes software programs and / or modules stored in the memory 220, and calls data stored in the memory to perform various functions of the electronic terminal and / or process data. The processor can be composed of an integrated circuit (IC), for example, it can be composed of a single packaged IC, or it can be composed of multiple packaged ICs with the same or different functions. For example, the processor 210 can only include a central processing unit (CPU). In the embodiment of the present invention, the CPU can be a single computing core or multiple computing cores.
[0073] The communication unit 230 is used to establish a communication channel so that the storage terminal can communicate with other terminals, receive user data sent by other terminals or send user data to other terminals.
[0074] The present invention also provides a computer storage medium, wherein the computer storage medium may store a program, and when the program is executed, the program may include some or all of the steps in each embodiment provided by the present invention. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).
[0075] Therefore, the present invention combines satellite remote sensing images and meteorological and soil monitoring data, and realizes the assessment of crop types and crop yields planted in the region through image recognition and machine learning, thereby providing data support for the preparation of plans for agricultural activities. The technical effects that can be achieved in this embodiment can be found in the description above and will not be repeated here.
[0076] Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution in the embodiments of the present invention, in essence or in other words, the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store program codes, including several instructions for enabling a computer terminal (which can be a personal computer, a server, or a second terminal, a network terminal, etc.) to execute all or part of the steps of the methods described in each embodiment of the present invention.
[0077] In this specification, the same or similar parts between the various embodiments can be referred to each other. In particular, for the terminal embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description in the method embodiment.
[0078] In the several embodiments provided by the present invention, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of systems or modules, which can be electrical, mechanical or other forms.
[0079] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0080] In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
[0081] Although the present invention has been described in detail by referring to the accompanying drawings and in combination with the preferred embodiments, the present invention is not limited thereto. Without departing from the spirit and essence of the present invention, a person skilled in the art may make various equivalent modifications or substitutions to the embodiments of the present invention, and these modifications or substitutions shall be within the scope of the present invention. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, and they shall be within the scope of protection of the present invention.
Claims
1. A method for processing agricultural data, It is characterized in that include: Acquire satellite remote sensing images, identify crop planting plots and crop types from the satellite remote sensing images using an image recognition model, and calculate the actual area of the crop planting plots based on the scale; Acquire meteorological data and soil data, and use a pre-trained yield prediction model to predict the unit yield of various crops based on the meteorological data and the soil data; The total yield of each crop is calculated based on the unit yield of each crop and the actual area of the planting plot.
2. The method according to claim 1, It is characterized in that Obtaining satellite remote sensing images, identifying crop planting plots and crop types from the satellite remote sensing images using an image recognition model, and calculating the actual area of the crop planting plots based on the scale, including: Acquire multiple satellite remote sensing images of the monitored area; Use pre-trained image recognition models to identify crop plots and crop types from satellite remote sensing images; Obtaining the number of pixels contained in the crop-planting plot, and calculating the image area of the crop-planting plot based on the resolution of the satellite remote sensing image and the number of pixels; Acquire the scale of the satellite remote sensing image, and convert the image area into an actual area based on the scale; The image recognition model includes a U-Net network, an attention mechanism, a Batch normalization layer and a Softmax classifier. The U-Net network extracts texture features, HSV color features and contour features of the satellite remote sensing image; the attention mechanism incorporates feature channel information; the Batch normalization layer is used to suppress overfitting; and the Softmax classifier identifies crop types based on texture features, HSV color features and contour features.
3. The method according to claim 2, It is characterized in that The training method of the image recognition model includes: Collect 10,000 satellite remote sensing images; Use Labelme to label potato plots and corn plots in satellite remote sensing images, and save the labeled satellite remote sensing images to the dataset; The image recognition model is trained and verified using the data set.
4. The method according to claim 1, It is characterized in that Acquire meteorological data and soil data, and use a pre-trained yield prediction model to predict the unit yield of various crops based on the meteorological data and the soil data, including: Divide the monitoring area into multiple sub-areas in advance; Acquire meteorological data and soil data of each sub-region, wherein the meteorological data includes monthly average precipitation and monthly average temperature, and the soil data includes monthly average water content, monthly average pH value and monthly average organic carbon content; Sort the meteorological data and soil data in order of collection time to obtain a data sequence; The multivariate linear regression model is used to predict the unit yield of crops in each sub-region based on the data sequence.
5. The method according to claim 4, It is characterized in that The principal component regression model is used to predict the unit yield of crops in each sub-region based on the data sequence, including: KMO test and Bartlett sphericity test were performed on meteorological data and soil data. If the KMO value was > 0.7 and the P value of Bartlett sphericity test was < 0.05, the corresponding data items were used as variables for factor analysis; Determine the best comprehensive factor based on factor eigenvalues, cumulative contribution rates, and scree plots; Calculate the principal component score coefficient of each variable, and sort the variables from large to small according to the absolute value of the principal component score coefficient; Set the top two variables as core parameters; The data series of the core parameters of each sub-region are respectively input into the pre-constructed multiple linear regression model to obtain the unit yield of the crops in the sub-region.
6. The method according to claim 5, It is characterized in that The method for constructing the multivariate linear regression model includes: Construct function y=β 0 +β 1 × 1 +β 2 × 2 +e; Among them, β 0 is a constant term, x 1 is the monthly mean temperature series, β 1 is the regression coefficient of the monthly average temperature series, x 2 is the monthly average soil moisture content series, β 2 is the regression coefficient of the monthly average soil moisture content series, and e is the residual error; The function is fitted based on historical data using the least square method, wherein the historical data includes core parameter data of each sub-region over the years and corresponding unit yield of crops.
7. The method according to claim 1, It is characterized in that The total yield of each crop is calculated based on the unit yield of each crop and the actual area of the planting plot, including: Extract the predicted unit yield of the corresponding crops according to the crop types in each sub-region; Calculate the crop types and corresponding crop yields of each sub-region based on the actual area of the crop planting plots in each sub-region and the corresponding unit yield of the crop; The crop yields of all sub-areas are accumulated by crop type to obtain the crop types and total yields of each crop in the monitored area.
8. The method according to claim 1, It is characterized in that The method further comprises: Get the number of registered agricultural machinery and equipment; Based on the crop yield data and agricultural machinery usage data of previous years, it is determined whether the number of agricultural machinery matches the crop types and the total yield of each type of crops in the monitoring area. If not, a prompt message of insufficient agricultural machinery is generated.
9. A terminal, It is characterized in that include: A memory for storing an agricultural data processing program; A processor, used to implement the steps of the agricultural data processing method as described in any one of claims 1-8 when executing the agricultural data processing program.
10. A computer-readable storage medium storing a computer program, It is characterized in that The readable storage medium stores an agricultural data processing program, which, when executed by a processor, implements the steps of the agricultural data processing method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Wheat planting region segmentation and yield prediction method
CN112183428A
Agricultural insurance underwriting method and system, equipment and storage medium
CN113362192A
Cultivated land classification method and system based on remote sensing image and fuzzy recognition
CN116188880A
Crop yield prediction method and device, electronic equipment and storage medium
CN116307170A
CBAM-HRNet model wheat ear grain segmentation and counting method based on convolution attention mechanism
CN116703932A
Cited By
Automatic harvesting system and method based on corn
CN121281046A
