A method for constructing agricultural resource database based on agricultural big data

By constructing hypergraph and sliding window technology in the agricultural resource database, the impact of environmental factors on agricultural data points is analyzed, which solves the problem of inaccurate database indexes, improves query efficiency and the pertinence of results, and supports more accurate agricultural decisions.

CN118467511BActive Publication Date: 2024-10-01SHANDONG (LINYI) INST OF MODERN AGRI ZHEJIANG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410909678.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2024-10-01
Estimated Expiration
2044-07-09

AI Technical Summary

Technical Problem

The search index in the agricultural resource database is not accurate enough, the query efficiency is low and the results are not targeted, making it difficult to effectively analyze the impact of factors affecting crop growth.

Method used

By collecting agricultural data points, constructing a hypergraph for clustering, obtaining target environmental factor sequences, using sliding windows to determine representative points and difference values, calculating yield weights, and optimizing database index content to improve query efficiency and pertinence.

Benefits of technology

It improves the efficiency of crop query and the pertinence of results in the agricultural resource database, clarifies the main influencing factors, and supports more accurate agricultural decisions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118467511B_ABST
    Figure CN118467511B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of electronic digital data processing, and in particular to a method for constructing an agricultural resource database based on agricultural big data, comprising: collecting agricultural resource data, obtaining a number of data points, and classifying the data points to obtain a number of clusters, obtaining a number of target environmental factor sequences, constructing a number of sliding windows with different preset window lengths to traverse the target environmental factor sequences, obtaining the target environmental factor representative points and the values ​​of the target environmental factor representative points of the sliding windows, determining the final yield value of each target environmental factor representative point, constructing an agricultural resource database based on the collected agricultural resource data, determining the degree to which all crops are affected by different environmental factors, and then determining the index content of the crops in the database. The present invention accurately analyzes the degree to which crops are affected by environmental factors, improves the pertinence of the index content, and effectively improves the query efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electronic digital data processing, and in particular to a method for constructing an agricultural resource database based on agricultural big data. Background Art

[0002] Agricultural resource database refers to a systematic storage and management system that collects, organizes, stores and manages various data and information related to agriculture. These data and information cover various aspects such as land resources, climate environment, and crop planting. The construction of an agricultural resource database can provide agricultural decision-making support, promote the optimization of resource allocation, and help to respond to risks such as climate change and natural disasters in a timely manner. It is of great significance to achieving sustainable agricultural development, improving farmers' living standards, and ensuring food security.

[0003] At present, the search index in the agricultural resource database is often not accurate enough. When searching for a certain crop, all the information on the influencing factors related to its growth is often listed. However, many of these factors have little impact on the growth of crops. Therefore, not only is the query efficiency low, but the query results are also not targeted. Summary of the invention

[0004] The present invention provides a method for constructing an agricultural resource database based on agricultural big data to solve the existing problems.

[0005] The present invention provides a method for constructing an agricultural resource database based on agricultural big data using the following technical solutions:

[0006] An embodiment of the present invention provides a method for constructing an agricultural resource database based on agricultural big data, the method comprising the following steps:

[0007] Collect agricultural resource data to obtain a number of data points, where each data point at least includes crop type, yield value, and a number of environmental factors;

[0008] For any crop, based on the differences between the same environmental factors of different data points, a hypergraph consisting of several data points is obtained, and the data points are classified to obtain several clusters. The target environmental factor values ​​in all clusters are sorted respectively to obtain several target environmental factor sequences.

[0009] Construct several sliding windows with different preset window lengths to traverse the target environmental factor sequence, obtain the sliding window under the final window length according to the numerical value and position distribution of the target environmental factor in the sliding window, obtain the target environmental factor representative point and the value of the target environmental factor representative point of the sliding window, obtain the difference between the target environmental factor value of each data point corresponding to each target environmental factor representative point and the value of the target environmental factor representative point, record it as the target environmental factor difference value between the target environmental factor representative point and the data point, obtain the performance weight of each output value corresponding to the target environmental factor representative point to the final output value of the target environmental factor representative point according to the target environmental factor difference value between the target environmental factor representative point and the data point and the structural characteristics of the data points corresponding to the target environmental factor representative point in the hypergraph, and determine the final output value of each target environmental factor representative point;

[0010] An agricultural resource database is constructed, and the index content of crops in the agricultural resource database is determined according to the value of the representative point of the target environmental factor and the final yield value corresponding to the representative point of the target environmental factor.

[0011] Furthermore, the method of obtaining a hypergraph consisting of a plurality of data points based on the differences between the same environmental factors of different data points, and classifying the data points to obtain a plurality of clusters includes the following specific methods:

[0012] The crops to be analyzed are recorded as target crops. When analyzing the impact of environmental factors on the yield of target crops, The environmental factors are recorded as target environmental factors, and the factors other than the target environmental factors are recorded as other environmental factors. For all data points containing the target crop, the similarity of other environmental factors between any two data points under the target environmental factors is obtained according to the number of environmental factors affecting the yield of the target crop and the values ​​of other environmental factors.

[0013] A first threshold is preset, and hypergraph clustering is performed on all data points whose similarities of the other environmental factors are greater than or equal to the first threshold to obtain a plurality of clusters.

[0014] Furthermore, the specific calculation method of the similarity of other environmental factors between any two data points under the target environmental factor is:

[0015]

[0016] In the formula, Indicates that under the target environmental factors, and The similarity of other environmental factors among the data points; Indicates the number of environmental factors; Indicates that under the target environmental factors, Of the data points the value of other environmental factors; Indicates that under the target environmental factors, Of the data points the values ​​of other environmental factors; Indicates that under the target environmental factors, the The maximum value of other environmental factors; Indicates that under the target environmental factors, the Minimum values ​​of other environmental factors; Indicates taking the absolute value.

[0017] Furthermore, the method of constructing a plurality of sliding windows of different preset window lengths to traverse the target environmental factor sequence, obtaining the sliding window under the final window length according to the numerical value and position distribution of the target environmental factor in the sliding window, and obtaining the target environmental factor representative point and the value of the target environmental factor representative point of the sliding window includes the following specific methods:

[0018] Set the length to The window starts sliding from the minimum value of the target environmental factor sequence and traverses the entire target influence sequence. The length of the window is the step length when the window slides. The windows at different positions during the traversal process are recorded as process windows.

[0019] According to the window length When , the standard deviation of the target environmental factor values ​​in all process windows, the number of process windows, the number of target environmental factor values ​​in the process window, and the distance between the target environmental factor value and the center of the process window are obtained. The degree of performance of the target environmental factors within all process windows when ;

[0020] Change the preset The size of the target environment factor is obtained by adjusting several expression levels, and the window length with the maximum expression level is selected as the final window length. The center of the process window corresponding to the final window length is used as a representative point of a target environmental factor, and the mean value of the target environmental factor in the process window is used as the value of the representative point of the target environmental factor.

[0021] Furthermore, the window length is When , the specific calculation method of the performance degree of the target environmental factors in all process windows is:

[0022]

[0023]

[0024] In the formula, Indicates that the window length is The degree of performance of the target environmental factors within all process windows when ; Indicates that the window length is The standard deviation of the target environmental factor values ​​in all process windows when ; Indicates that the window length is , the number of process windows; Indicates that the window length is At that time, The target environmental factor value within the process window is The sum of the distances to the centers of the process windows; Indicates that the window length is At that time, The number of target environmental factor values ​​within a process window; Indicates that the window length is At that time, In the process window The target environmental factor value and The distance between the centers of the process windows.

[0025] Further, according to the target environmental factor difference value between the target environmental factor representative point and the data point, and the structural characteristics of the data point corresponding to the target environmental factor representative point in the hypergraph, the performance weight of each output value corresponding to the target environmental factor representative point to the final output value of the target environmental factor representative point is obtained, and the final output value of each target environmental factor representative point is determined, including the specific method of:

[0026] According to The representative points of the target environmental factors and the The target environmental factor difference value of the data point, The first target environmental factor representative point corresponds to The number of links between data points in the hypergraph, The data point is in the hypergraph The connection weight of the link is obtained The performance weight of each output value corresponding to the representative point of the target environmental factor to the final output value of the representative point of the target environmental factor;

[0027] According to The number of output values ​​corresponding to the representative points of the target environmental factors, the output value, and the performance weight of the output value to the final output value of the representative points of the target environmental factors are determined. The target environmental factor represents the final yield value of the point.

[0028] Furthermore, the The specific calculation method for the performance weight of each output value corresponding to the representative point of the target environmental factor to the final output value of the representative point of the target environmental factor is:

[0029]

[0030] In the formula, Indicates The performance weight of each output value corresponding to the representative point of the target environmental factor to the final output value of the representative point of the target environmental factor; Indicates The representative points of the target environmental factors and the The difference value of the target environmental factor for each data point; Indicates The first target environmental factor representative point corresponds to The number of links between data points in the hypergraph; Indicates The first target environmental factor representative point corresponds to The data point is in the hypergraph The connection weight of each link; Represents the normalization function.

[0031] Furthermore, the The specific calculation method for the final yield value of each representative point of the target environmental factor is:

[0032]

[0033] In the formula, Indicates The final yield value of each target environmental factor representative point; Indicates The number of output values ​​corresponding to the representative points of target environmental factors; Indicates The first target environmental factor representative point corresponds to The performance weight of each production value to the final production value of the representative point of the target environmental factor; Indicates The first target environmental factor representative point corresponds to Production value.

[0034] Furthermore, the agricultural resource database is constructed, and the index content of the crops in the agricultural resource database is determined according to the value of the representative point of the target environmental factor and the final yield value corresponding to the representative point of the target environmental factor, including the specific method of:

[0035] According to the collected agricultural resource data, an agricultural resource database is constructed based on the MySQL database management system;

[0036] Determine the final yield value of all target environmental factor representative points, draw a scatter plot of "target environmental factor-yield" for each target crop with the target environmental factor as the horizontal axis and the yield as the vertical axis, fit the scatter plot using the least squares method, obtain the root mean square error between the final yield value corresponding to the target environmental factor of all target crops and the fitting result, use the inverse of the root mean square error as the degree of influence of the target environmental factor on the target crop yield, place the degree of influence of all environmental factors on all crops in the agricultural resource database, sort the environmental factors from large to small according to the degree of influence on the target crop yield, select the top three environmental factors as the main influencing factors of the target crop yield, and use the main influencing factors as the index of the target crop in the agricultural resource database in descending order of influence.

[0037] Furthermore, the specific method of obtaining a plurality of target environmental factor sequences includes:

[0038] Arrange the values ​​of the target environmental factors corresponding to all the data points contained in each cluster in ascending order, and record them as the target environmental factor sequence.

[0039] The beneficial effects of the technical solution of the present invention are as follows: a plurality of data points are obtained, a hypergraph composed of the data points is obtained, for any crop, the data points are classified based on the differences between the same environmental factors of different data points to obtain a plurality of clusters, the target environmental factor values ​​in all clusters are sorted respectively to obtain a plurality of target environmental factor sequences, a plurality of sliding windows with different preset window lengths are constructed to traverse the target environmental factor sequences, a sliding window under a final window length is obtained according to the numerical value and position distribution of the target environmental factor in the sliding window, a representative point of the target environmental factor and the value of the representative point of the target environmental factor are obtained according to the representative point of the sliding window, The target environmental factor difference value of the data point is obtained according to the target environmental factor difference value between the representative point of the target environmental factor and the data point, and the structural characteristics of the data point corresponding to the representative point of the target environmental factor are obtained. The performance weight of each yield value corresponding to the representative point of the target environmental factor to the final yield value of the representative point of the target environmental factor is obtained, and the final yield value of each target environmental factor representative point is determined. An agricultural resource database is constructed, and the index content of crops in the agricultural resource database is determined according to the value of the representative point of the target environmental factor and its corresponding final yield value, so as to improve the query efficiency of crops in the agricultural resource database, make the query results more targeted, and make the query results better reflect the characteristics of crops. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0041] Figure 1 The present invention is a flowchart of the steps of a method for constructing an agricultural resource database based on agricultural big data. DETAILED DESCRIPTION

[0042] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the method for constructing an agricultural resource database based on agricultural big data proposed by the present invention, its specific implementation method, structure, features and effects, in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0043] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0044] The following is a detailed description of a method for constructing an agricultural resource database based on agricultural big data provided by the present invention in conjunction with the accompanying drawings.

[0045] See also Figure 1 , which shows a flowchart of a method for constructing an agricultural resource database based on agricultural big data provided by an embodiment of the present invention, the method comprising the following steps:

[0046] Step S001: Collect agricultural resource data to obtain a number of data points, where one data point at least includes crop type, yield value, and a number of environmental factors.

[0047] In order to implement the method for constructing an agricultural resource database based on agricultural big data proposed in this embodiment, it is first necessary to collect agricultural resource data. The specific process is as follows:

[0048] The agricultural resource data needed to build the agricultural resource database are collected, including the types of crops and crop yields in different regions at different times, as well as the corresponding environmental factor data such as temperature, humidity, light duration, light intensity, and wind speed. The types of crops and crop yields in different regions at different times are obtained from the statistical data of the local agricultural department, and the corresponding environmental factor data are directly obtained from the local meteorological monitoring department.

[0049] All collected data are integrated and classified in the form of data points. One data point contains sub-data collected such as region, time, crop type, crop yield, temperature, humidity, light intensity, wind speed, etc.

[0050] So far, the data points of agricultural resource data are obtained through the above method.

[0051] Step S002: For any crop, based on the differences between the same environmental factors of different data points, a hypergraph consisting of several data points is obtained, and the data points are classified to obtain several clusters. The target environmental factor values ​​in all clusters are sorted respectively to obtain several target environmental factor sequences.

[0052] It should be noted that crop yields may be affected by a variety of environmental factors. Therefore, when analyzing the impact of a certain environmental factor on crop yields, it is necessary to ensure that other environmental factors are similar during the analysis process. Therefore, it is necessary to classify the data points belonging to a certain crop, divide the data points with similar other environmental factors into the same category, and analyze the impact of a certain environmental factor on crop yields in the same category.

[0053] Specifically, first, the crops to be analyzed are recorded as target crops. When analyzing the impact of environmental factors on the yield of target crops, The environmental factors that affect the yield of the target crop are recorded as target environmental factors, and all environmental factors except the target environmental factors are recorded as other environmental factors. For all data points containing the target crop, the similarity of other environmental factors in any two data points under the target environmental factors is obtained according to the number of environmental factors that affect the yield of the target crop and the values ​​of other environmental factors.

[0054] As an embodiment, under the target environmental factor, the similarity of other environmental factors between any two data points is calculated as follows:

[0055]

[0056] In the formula, Indicates that under the target environmental factors, and The similarity of other environmental factors among the data points; Indicates the number of environmental factors; Indicates that under the target environmental factors, Of the data points the values ​​of other environmental factors; Indicates that under the target environmental factors, Of the data points the values ​​of other environmental factors; Indicates that under the target environmental factors, the The maximum value of other environmental factors; Indicates that under the target environmental factors, the Minimum values ​​of other environmental factors; Indicates taking the absolute value.

[0057] It should be noted that Indicates that under the target environmental factors, and Of the data points Other environmental factors The larger the value, the higher the and Of the data points The greater the difference in other environmental factors; Indicates that under the target environmental factors, the The difference between the maximum and minimum values ​​of other environmental factors, The smaller the value, the more likely it is that the target crop is The smaller the difference between the maximum and minimum values ​​of other environmental factors, the more similar the values ​​of the same influencing factor in all data points are; It means unifying the influencing factor data of different units into the same magnitude range.

[0058] Then, the first threshold is preset for all Data points with values ​​greater than or equal to the first threshold are connected in a hypergraph. The value is the weight of the edge connecting the data point, and for all The data points whose values ​​are greater than or equal to the preset first threshold are clustered in a hypergraph to obtain A clusters, where A is the preset number of clusters.

[0059] It should be noted that the first threshold is preset to 0.2 and A is preset to 5 based on experience, and they can be adjusted according to actual conditions, and are not specifically limited in this embodiment.

[0060] It should be noted that hypergraph clustering is an existing technology and will not be described in detail here.

[0061] Arrange the values ​​of the target environmental factors corresponding to all the data points contained in each cluster in ascending order, and record them as the target environmental factor sequence.

[0062] So far, several target environmental factor sequences have been obtained through the above method.

[0063] Step S003, construct several sliding windows with different preset window lengths to traverse the target environmental factor sequence, obtain the sliding window under the final window length according to the numerical value and position distribution of the target environmental factor in the sliding window, obtain the target environmental factor representative point and the value of the target environmental factor representative point of the sliding window, obtain the difference between the target environmental factor value of each data point corresponding to each target environmental factor representative point and the value of the target environmental factor representative point, and record it as the target environmental factor difference value between the target environmental factor representative point and the data point, according to the target environmental factor difference value between the target environmental factor representative point and the data point, and the structural characteristics of the data points corresponding to the target environmental factor representative point in the hypergraph, obtain the performance weight of each output value corresponding to the target environmental factor representative point to the final output value of the target environmental factor representative point, and determine the final output value of each target environmental factor representative point.

[0064] It should be noted that in each cluster, the values ​​of the target environmental factors corresponding to different data points are not evenly distributed, and one target environmental factor value may correspond to multiple data points, and thus to multiple production data. Therefore, it is necessary to first set a sliding window to traverse the target environmental factor sequence, and represent the multiple data points corresponding to a target environmental factor value in each window with a target environmental factor representative point, and represent the production values ​​of the multiple data points corresponding to the target environmental factor representative point in each window with the final production value of a target environmental factor representative point.

[0065] Step (3.1) constructs several sliding windows with different preset window lengths to traverse the target environmental factor sequence. According to the numerical value and position distribution of the target environmental factor in the sliding window, the sliding window under the final window length is obtained to obtain the target environmental factor representative point and the value of the target environmental factor representative point of the sliding window.

[0066] Set the length to The window starts sliding from the minimum value of the target environmental factor sequence and traverses the entire target influence sequence. The length of the window is the step length when the window slides. The windows at different positions during the traversal process are recorded as process windows.

[0067] Then, according to the window length When , the standard deviation of the target environmental factor values ​​in all process windows, the number of process windows, the number of target environmental factor values ​​in the process window, and the distance between the target environmental factor value and the center of the process window are obtained. The degree of performance of the target environmental factors within all process windows when .

[0068] As an embodiment, the window length is When , the specific calculation method of the performance degree of the target environmental factors in all process windows is:

[0069]

[0070]

[0071] In the formula, Indicates that the window length is The degree of performance of the target environmental factors within all process windows when ; Indicates that the window length is The standard deviation of the target environmental factor values ​​in all process windows when ; Indicates that the window length is , the number of process windows; Indicates that the window length is At that time, The target environmental factor value within the process window is The sum of the distances to the centers of the process windows; Indicates that the window length is At that time, The number of target environmental factor values ​​within a process window; Indicates that the window length is At that time, In the process window The target environmental factor value and The distance between the centers of the process windows.

[0072] It should be noted that It represents the inverse of the standard deviation of the target environmental factor values ​​within all process windows. The larger the value, the less uniform the window is in segmenting the target environmental factors. It is possible that most of the target environmental factor values ​​are concentrated in a certain window, and the lower the performance of the target environmental factors in the corresponding process window. Indicates the degree of concentration of the target environmental factor values ​​in the process window at the center of the window. The larger the value, the lower the concentration of the target environmental factor values ​​in the process window at the center of the window, and the lower the performance of the target environmental factor in the corresponding process window. It represents the average value of the concentration of target environmental factor values ​​in the center of all process windows. The larger the value, the more the target environmental factor values ​​are concentrated in the center of the window, corresponding to The larger the value of .

[0073] Change the preset The size of Value, select The window length when the value is the largest is taken as the final window length, the center of the process window corresponding to the final window length is taken as a representative point of the target environmental factor, and the mean value of the target environmental factor in the process window is taken as the value of the representative point of the target environmental factor.

[0074] It should be noted that The value of , can be adjusted according to actual conditions, and this embodiment does not make any specific limitation.

[0075] Step (3.2), obtain the difference between the target environmental factor value of each data point corresponding to each target environmental factor representative point and the value of the target environmental factor representative point, record it as the target environmental factor difference value between the target environmental factor representative point and the data point, and according to the target environmental factor difference value between the target environmental factor representative point and the data point and the structural characteristics of the data points corresponding to the target environmental factor representative point in the hypergraph, obtain the performance weight of each output value corresponding to the target environmental factor representative point to the final output value of the target environmental factor representative point, and determine the final output value of each target environmental factor representative point.

[0076] It should be noted that each representative point of the target environmental factor will correspond to multiple target environmental factor values ​​within its process window, which means it contains multiple data points and thus corresponds to multiple output values. Each output value may also be affected by other factors. Therefore, it is necessary to determine the performance weights of the multiple output values ​​corresponding to each representative point of the target environmental factor to the final output value of the representative point of the target environmental factor.

[0077] First, obtain the difference between the target environmental factor value of each data point corresponding to each target environmental factor representative point and the value of the target environmental factor representative point, and record it as the target environmental factor difference value between the target environmental factor representative point and the data point. The representative points of the target environmental factors and the The target environmental factor difference value of the data point, The first target environmental factor representative point corresponds to The number of links between data points in the hypergraph, The data point is in the hypergraph The connection weight of the link is obtained The performance weight of each output value corresponding to the representative point of the target environmental factor to the final output value of the representative point of the target environmental factor.

[0078] As an example, The specific calculation method for the performance weight of each output value corresponding to the representative point of the target environmental factor to the final output value of the representative point of the target environmental factor is:

[0079]

[0080] In the formula, Indicates The performance weight of each output value corresponding to the representative point of the target environmental factor to the final output value of the representative point of the target environmental factor; Indicates The representative points of the target environmental factors and the The difference value of the target environmental factor for each data point; Indicates The first target environmental factor representative point corresponds to The number of links between data points in the hypergraph; Indicates The first target environmental factor representative point corresponds to The data point is in the hypergraph The connection weight of each link; Represents the normalization function.

[0081] It should be noted that Indicates The first target environmental factor representative point corresponds to The similarity of a data point to the data points of the same type, The larger the value, the The first target environmental factor representative point corresponds to The higher the similarity of a data point to data points of the same type, The smaller the time, the corresponding The larger the value.

[0082] Then, according to The number of output values ​​corresponding to the representative points of the target environmental factors, the output value, and the performance weight of the output value to the final output value of the representative points of the target environmental factors are determined. The target environmental factor represents the final yield value of the point.

[0083] As an example, The specific calculation method for the final yield value of each representative point of the target environmental factor is:

[0084]

[0085] In the formula, Indicates The final yield value of each target environmental factor representative point; Indicates The number of output values ​​corresponding to the representative points of target environmental factors; Indicates The first target environmental factor representative point corresponds to The performance weight of each production value to the final production value of the representative point of the target environmental factor; Indicates The first target environmental factor representative point corresponds to Production value.

[0086] It should be noted that Indicates The first target environmental factor representative point corresponds to The proportion of the output value of the data point in the final output value of the representative point of the target environmental factor, The larger the value, the The larger the value.

[0087] So far, the target environmental factor representative point, the value of the target environmental factor representative point and the final output value corresponding to the target environmental factor representative point are obtained through the above method.

[0088] Step S004, constructing an agricultural resource database, and determining the index content of crops in the agricultural resource database according to the value of the representative point of the target environmental factor and the final yield value corresponding to the representative point of the target environmental factor.

[0089] Firstly, according to the collected agricultural resource data, an agricultural resource database is constructed based on the MySQL database management system.

[0090] Then, according to step S003, the final yield value of all target environmental factor representative points is determined, and a scatter plot of "target environmental factor-yield" of each target crop is drawn with the target environmental factor as the horizontal axis and the yield as the vertical axis. The scatter plot is fitted using the least squares method to obtain the root mean square error between the final yield value corresponding to the target environmental factor of all target crops and the fitting result, and the inverse of the root mean square error is used as the influence of the target environmental factor on the target crop yield. The influence of all environmental factors on all crops is placed in the agricultural resource database, and the environmental factors are sorted from large to small according to the influence of the environmental factors on the target crop yield. The top three environmental factors are selected as the main influencing factors of the target crop yield, and the main influencing factors are used as indexes of the target crops in the agricultural resource database in descending order of influence.

[0091] It should be noted that the same crop is affected to different degrees by different environmental factors. In the process of data calling of the agricultural resource database, the main focus is on environmental factors that have a greater impact on crop yields. Therefore, when constructing automatic indexes corresponding to each crop in the agricultural resource database, the greater the impact of a certain environmental factor on the crop yield, the more priority it will be indexed.

[0092] It should be noted that MySQL is an open source relational database management system that stores data in different tables. It is a client-mode database. The index of data in MySQL contains reference pointers to all records in the data table, which can provide efficient, reliable and stable data storage and management services.

[0093] It should be noted that the least square method is an existing technology and will not be described in detail here.

[0094] At this point, this embodiment is completed.

[0095] It should be noted that the The model is only used to represent negative correlation and constrain the output of the model to be in In the specific implementation, it can be replaced by other models with the same purpose. This embodiment is only based on The model is described as an example without any specific limitation. is the input to the model.

[0096] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for constructing an agricultural resource database based on agricultural big data, characterized in that: The method comprises the following steps: Collect agricultural resource data to obtain a number of data points, where each data point at least includes crop type, yield value, and a number of environmental factors; For any crop, based on the differences between the same environmental factors of different data points, a hypergraph consisting of several data points is obtained, and the data points are classified to obtain several clusters. The target environmental factor values ​​in all clusters are sorted respectively to obtain several target environmental factor sequences. Construct several sliding windows with different preset window lengths to traverse the target environmental factor sequence, obtain the sliding window under the final window length according to the numerical value and position distribution of the target environmental factor in the sliding window, obtain the target environmental factor representative point and the value of the target environmental factor representative point of the sliding window, obtain the difference between the target environmental factor value of each data point corresponding to each target environmental factor representative point and the value of the target environmental factor representative point, record it as the target environmental factor difference value between the target environmental factor representative point and the data point, obtain the performance weight of each output value corresponding to the target environmental factor representative point to the final output value of the target environmental factor representative point according to the target environmental factor difference value between the target environmental factor representative point and the data point and the structural characteristics of the data points corresponding to the target environmental factor representative point in the hypergraph, and determine the final output value of each target environmental factor representative point; Constructing an agricultural resource database, and determining the index content of crops in the agricultural resource database according to the value of the representative point of the target environmental factor and the final yield value corresponding to the representative point of the target environmental factor; The method of constructing a plurality of sliding windows of different preset window lengths to traverse the target environmental factor sequence, obtaining the sliding window under the final window length according to the numerical value and position distribution of the target environmental factor in the sliding window, and obtaining the target environmental factor representative point and the value of the target environmental factor representative point of the sliding window includes the following specific methods: Set the length to The window starts sliding from the minimum value of the target environmental factor sequence, traverses the entire target influence sequence, and uses the length of the window as the step length when the window slides. The windows at different positions during the traversal process are recorded as process windows; According to the window length When , the standard deviation of the target environmental factor values ​​in all process windows, the number of process windows, the number of target environmental factor values ​​in the process window, and the distance between the target environmental factor value and the center of the process window are obtained. The degree of performance of the target environmental factors within all process windows when ; Change the preset The size of the target environment factor is obtained by adjusting several expression levels, and the window length with the maximum expression level is selected as the final window length. The center of the process window corresponding to the final window length is used as a representative point of a target environmental factor, and the mean value of the target environmental factor in the process window is used as the value of the representative point of the target environmental factor.

2. The method for constructing an agricultural resource database based on agricultural big data according to claim 1, characterized in that: The method of obtaining a hypergraph consisting of a plurality of data points based on the differences between the same environmental factors of different data points and classifying the data points to obtain a plurality of clusters includes the following specific methods: The crops to be analyzed are recorded as target crops. When analyzing the impact of environmental factors on the yield of target crops, The environmental factors are recorded as target environmental factors, and the factors other than the target environmental factors are recorded as other environmental factors. For all data points containing the target crop, the similarity of other environmental factors between any two data points under the target environmental factors is obtained according to the number of environmental factors affecting the yield of the target crop and the values ​​of other environmental factors. A first threshold is preset, and hypergraph clustering is performed on all data points whose similarities of the other environmental factors are greater than or equal to the first threshold to obtain a plurality of clusters.

3. The method for constructing an agricultural resource database based on agricultural big data according to claim 2, characterized in that: The specific calculation method of the similarity of other environmental factors between any two data points under the target environmental factor is: In the formula, Indicates that under the target environmental factors, and The similarity of other environmental factors among the data points; Indicates the number of environmental factors; Indicates that under the target environmental factors, Of the data points the value of other environmental factors; Indicates that under the target environmental factors, Of the data points the value of other environmental factors; Indicates that under the target environmental factors, the The maximum value of other environmental factors; Indicates that under the target environmental factors, the Minimum values ​​of other environmental factors; Indicates taking the absolute value.

4. The method for constructing an agricultural resource database based on agricultural big data according to claim 1, characterized in that: The window length is When , the specific calculation method of the performance degree of the target environmental factors in all process windows is: In the formula, Indicates that the window length is The degree of performance of the target environmental factors within all process windows when ; Indicates that the window length is The standard deviation of the target environmental factor values ​​in all process windows when ; Indicates that the window length is , the number of process windows; Indicates that the window length is At that time, The target environmental factor value within the process window is The sum of the distances to the centers of the process windows; Indicates that the window length is At that time, The number of target environmental factor values ​​within a process window; Indicates that the window length is At that time, In the process window The target environmental factor value and The distance between the centers of the process windows.

5. The method for constructing an agricultural resource database based on agricultural big data according to claim 1, characterized in that: The method of obtaining the performance weight of each output value corresponding to the target environmental factor representative point to the final output value of the target environmental factor representative point based on the target environmental factor difference value between the target environmental factor representative point and the data point and the structural characteristics of the data point corresponding to the target environmental factor representative point in the hypergraph, and determining the final output value of each target environmental factor representative point includes the following specific methods: According to The representative points of the target environmental factors and the The target environmental factor difference value of the data point, The first target environmental factor representative point corresponds to The number of links between data points in the hypergraph, The data point is in the hypergraph The connection weight of the link is obtained The performance weight of each output value corresponding to the representative point of the target environmental factor to the final output value of the representative point of the target environmental factor; According to The number of output values ​​corresponding to the representative points of the target environmental factors, the output value, and the performance weight of the output value to the final output value of the representative points of the target environmental factors are determined. The target environmental factor represents the final yield value of the point.

6. The method for constructing an agricultural resource database based on agricultural big data according to claim 5, characterized in that: The said The specific calculation method for the performance weight of each output value corresponding to the representative point of the target environmental factor to the final output value of the representative point of the target environmental factor is: In the formula, Indicates The performance weight of each output value corresponding to the representative point of the target environmental factor to the final output value of the representative point of the target environmental factor; Indicates The representative points of the target environmental factors and the The difference value of the target environmental factor for each data point; Indicates The first target environmental factor representative point corresponds to The number of links between data points in the hypergraph; Indicates The first target environmental factor representative point corresponds to The data point is in the hypergraph The connection weight of each link; Represents the normalization function.

7. The method for constructing an agricultural resource database based on agricultural big data according to claim 5, characterized in that: The said The specific calculation method for the final yield value of each representative point of the target environmental factor is: In the formula, Indicates The final yield value of each target environmental factor representative point; Indicates The number of output values ​​corresponding to the representative points of target environmental factors; Indicates The first target environmental factor representative point corresponds to The performance weight of each production value to the final production value of the representative point of the target environmental factor; Indicates The first target environmental factor representative point corresponds to Production value.

8. The method for constructing an agricultural resource database based on agricultural big data according to claim 1, characterized in that: The agricultural resource database is constructed, and the index content of the crops in the agricultural resource database is determined according to the value of the representative point of the target environmental factor and the final yield value corresponding to the representative point of the target environmental factor, and the specific method includes: According to the collected agricultural resource data, an agricultural resource database is constructed based on the MySQL database management system; Determine the final yield value of all target environmental factor representative points, draw a scatter plot of "target environmental factor-yield" for each target crop with the target environmental factor as the horizontal axis and the yield as the vertical axis, fit the scatter plot using the least square method, obtain the root mean square error between the final yield value corresponding to the target environmental factor of all target crops and the fitting result, use the inverse of the root mean square error as the influence of the target environmental factor on the yield of the target crop, put the influence of all environmental factors on all crops into the agricultural resource database, sort them from large to small according to the influence of the environmental factors on the yield of the target crops, select the top three environmental factors as the main influencing factors of the yield of the target crops, and use the main influencing factors as the index of the target crops in the agricultural resource database according to the influence from large to small.

9. The method for constructing an agricultural resource database based on agricultural big data according to claim 1, characterized in that: The specific method of obtaining a plurality of target environmental factor sequences includes: Arrange the values ​​of the target environmental factors corresponding to all the data points contained in each cluster in ascending order, and record them as the target environmental factor sequence.