An information-based agricultural data storage method based on big data analysis

By clustering and segmenting winter wheat agricultural data, calculating important evaluation values ​​and lossy compression possibilities, and selectively compressing data, the problems of information loss and storage space waste in traditional compression methods are solved, and the storage of agricultural data is improved. Efficiency and accuracy of irrigation decisions.

CN118467483BActive Publication Date: 2024-10-01河北工业职业技术大学
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Traditional compression methods can easily lead to the loss of important information when compressing agricultural data, and recording multiple types of data corresponding to multiple time points will consume a large amount of storage space, affecting the improvement of irrigation water utilization.

Method used

By obtaining the winter wheat agricultural information data sequence, we construct a multi-dimensional space for clustering, divide segment intervals, calculate important evaluation values ​​and lossy compression possibilities based on the distribution of data points in the clusters, and selectively use lossy or lossless compression. Algorithms compress data.

Benefits of technology

While reducing storage space usage, important information in agricultural data is retained, improving the accuracy of irrigation decisions and data storage efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118467483B_ABST
    Figure CN118467483B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of data processing technology, and specifically to an information-based agricultural data storage method based on big data analysis, including: obtaining a winter wheat agricultural information data sequence; dividing the winter wheat agricultural information data sequence into a plurality of segmented intervals, obtaining an important evaluation value of each segmented interval; obtaining the possibility of each segmented interval belonging to a lossy compression interval; obtaining the possibility of a corrected lossy compression interval for each segmented interval; selectively compressing each segmented interval based on the possibility of the corrected lossy compression interval to obtain a compressed winter wheat agricultural information data sequence; and storing the compressed winter wheat agricultural information data sequence in a database. The present invention not only improves the storage efficiency of information-based agricultural data, but also retains important information in the information-based agricultural data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to an information-based agricultural data storage method based on big data analysis. Background Art

[0002] Winter wheat is one of the main crops in the north. How to improve the utilization rate of irrigation water for winter wheat is crucial to the development of water-saving agriculture in the north. By comprehensively considering the influence of factors such as meteorology, crop growth conditions and soil moisture, an analysis is conducted to obtain a more accurate and reasonable irrigation time. However, recording multiple types of data corresponding to multiple time points will consume a lot of storage space. In order to reduce the use of storage space, the data should be compressed. However, when compressing data using traditional compression methods, important information in the data is often lost. Summary of the invention

[0003] In order to solve the above problems, the present invention provides an information-based agricultural data storage method based on big data analysis, the method comprising:

[0004] Obtaining a winter wheat agricultural information data sequence; the winter wheat agricultural information data sequence includes agricultural information data of several dimensions at several sampling moments;

[0005] Constructing a multidimensional space according to the winter wheat agricultural information data sequence to obtain a number of agricultural information data points; clustering all agricultural information data points to obtain a number of cluster clusters; dividing the winter wheat agricultural information data sequence into a number of segment intervals, wherein the segment intervals include different types of cluster clusters; obtaining an important evaluation value of each segment interval according to the distribution of agricultural information data points in different cluster clusters in each segment interval;

[0006] According to the difference in important evaluation values ​​between each segmented interval and other segmented intervals, and the quantity distribution of agricultural information data of different dimensions in the segmented intervals, the possibility of each segmented interval being a lossy compression interval is obtained; the possibility of belonging to the lossy compression interval is corrected using the important evaluation value to obtain the corrected lossy compression interval possibility of each segmented interval;

[0007] Based on the possibility of correcting the lossy compression interval, each segmented interval is selectively compressed to obtain a compressed winter wheat agricultural information data sequence; the compressed winter wheat agricultural information data sequence is stored in a database.

[0008] Preferably, the method of constructing a multidimensional space according to the winter wheat agricultural information data sequence to obtain a plurality of agricultural information data points includes the following specific methods:

[0009] A multidimensional space is constructed according to the sampling time, soil moisture data, soil temperature data, winter wheat water stress index data and winter wheat evaporation and transpiration data, and the winter wheat agricultural information data sequence is input into the multidimensional space to obtain a number of agricultural information data points.

[0010] Preferably, the method of obtaining the important evaluation value of each segment interval according to the distribution of agricultural information data points in different clusters in each segment interval includes the following specific methods:

[0011] According to the proportion of agricultural information data points in different clusters in each segmented interval, the uniformity of agricultural information data in each segmented interval is obtained;

[0012] According to the changes of agricultural information data points in different clusters in each segmented interval, the importance of agricultural information data in each segmented interval is obtained;

[0013] For any segmented interval, the product of the total number of types of clusters, the importance of agricultural information data and the inverse of the uniformity of agricultural information data in the segmented interval is used as the important evaluation value of the segmented interval.

[0014] Preferably, the method of obtaining the uniformity of agricultural information data in each segment interval includes:

[0015] For any segmented interval, the maximum number of agricultural information data points in all clusters in the segmented interval is recorded as the first number; the ratio of the first number to the total number of all agricultural information data points in the segmented interval is taken as the uniformity of the agricultural information data in the segmented interval.

[0016] Preferably, the obtaining of the importance of agricultural information data in each segmented interval includes the following specific methods:

[0017] For any segment interval, preset the number of changes The initial value is 0, and the traversal starts with the first agricultural information data point in the segmented interval and the step length is 1. If the cluster type between any two adjacent agricultural information data points changes during the traversal process, then The value of is increased by 1, and so on, until the last agricultural information data point in the segmented interval is traversed; the number of changes As the importance of agricultural information data in the segmented interval.

[0018] Preferably, the possibility of each segmented interval being a lossy compression interval is obtained according to the difference in important evaluation values ​​between each segmented interval and other segmented intervals, and the quantity distribution of agricultural information data of different dimensions in the segmented interval, including the specific method of:

[0019] According to the quantity distribution of agricultural information data of each dimension in each segmented interval, a lossy compression weight factor of agricultural information data of each dimension in each segmented interval is obtained;

[0020] According to the difference of important evaluation values ​​between each segmented interval and other segmented intervals, the possible factor of each segmented interval belonging to the lossy compression interval is obtained;

[0021] For any dimensional agricultural information data in any segmented interval, the product of the possible factor of the segmented interval belonging to a lossy compression interval and the lossy compression weight factor of the agricultural information data of that dimensionality is recorded as the first product of the agricultural information data of that dimensionality; the cumulative sum of the first products of all dimensional agricultural information data in the segmented interval is taken as the possibility of the segmented interval belonging to a lossy compression interval.

[0022] Preferably, the specific method of obtaining the lossy compression weight factor of each dimension of agricultural information data in each segment interval includes:

[0023] For any one dimensional agricultural information data in any segmented interval, the total amount of the agricultural information data of the one dimensionality in the segmented interval is used as a lossy compression weight factor for the agricultural information data of the one dimensionality.

[0024] Preferably, the method of obtaining the possible factor of each segmented interval belonging to the lossy compression interval includes:

[0025] The first The important evaluation value of the segment interval is The absolute value of the difference between the important evaluation values ​​of the segment intervals is recorded as The important evaluation difference value of the segment interval; The ratio of the absolute value of the first difference of the segmented interval to the maximum value of the important evaluation difference of all segmented intervals is taken as the first The possible factor of the segmented interval belonging to the lossy compression interval.

[0026] Preferably, the method of using the important evaluation value to correct the possibility of the lossy compression interval to obtain the corrected lossy compression interval possibility of each segmented interval includes the following specific methods:

[0027] For any segmented interval, a normalized value of the product of the reciprocal of the importance evaluation value of the segmented interval and the possibility of the segmented interval being a lossy compression interval is used as the modified lossy compression interval possibility of the segmented interval.

[0028] Preferably, the selective compression of each segmented interval based on the possibility of correcting the lossy compression interval to obtain the compressed winter wheat agricultural information data sequence includes the following specific methods:

[0029] Preset a threshold parameter For any segment interval, if the probability of the modified lossy compression interval of the segment interval is greater than or equal to the threshold parameter , then use the conversion coding algorithm to perform lossy compression on all dimensional agricultural information data in the segmented interval; if the probability of the modified lossy compression interval of the segmented interval is less than the threshold parameter , then use the Huffman coding algorithm to losslessly compress the agricultural information data of all dimensions in the segmented interval; and then obtain the compressed winter wheat agricultural information data sequence.

[0030] The beneficial effects of the technical solution of the present invention are as follows: the present invention divides the winter wheat agricultural information data sequence into several segmented intervals, and the segmented intervals include different types of clusters; according to the distribution of agricultural information data points in different clusters in each segmented interval, an important evaluation value of each segmented interval is obtained; based on the possibility of correcting the lossy compression interval, each segmented interval is selectively compressed to obtain a compressed winter wheat agricultural information data sequence; thereby, the storage efficiency of the informationized agricultural data is improved while retaining the important information in the informationized agricultural data. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] 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.

[0032] Figure 1 This is a flow chart of the steps of an information-based agricultural data storage method based on big data analysis of the present invention. DETAILED DESCRIPTION

[0033] 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 specific implementation method, structure, characteristics and effects of an information-based agricultural data storage method based on big data analysis proposed by the present invention 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.

[0034] 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.

[0035] The following is a detailed description of a specific scheme of an information-based agricultural data storage method based on big data analysis provided by the present invention in conjunction with the accompanying drawings.

[0036] See also Figure 1 , which shows a flowchart of a method for storing agricultural data based on information technology based on big data analysis provided by an embodiment of the present invention, the method comprising the following steps:

[0037] Step S001: Acquire a winter wheat agricultural information data sequence; the winter wheat agricultural information data sequence includes agricultural information data of several dimensions at several sampling moments.

[0038] It should be noted that currently farmland irrigation is mainly based on farmers' experience. The lack of scientific irrigation decisions can easily lead to reduced production and quality of winter wheat. The timing of irrigation is affected by various types of data. Therefore, it is necessary to collect a variety of agricultural information data on winter wheat.

[0039] Specifically, we first need to collect winter wheat agricultural information data series. The specific process is as follows:

[0040] The sampling time is 10 minutes. The soil moisture sensor and micro-meteorological station are used to collect soil moisture data, soil temperature data, winter wheat water stress index data and winter wheat evaporation and transpiration data in turn for one month. The four dimensional data of soil moisture data, soil temperature data, winter wheat water stress index data and winter wheat evaporation and transpiration data at each sampling time are used as the winter wheat agricultural information data sequence.

[0041] It should be noted that the winter wheat water stress index data and winter wheat evaporation and transpiration data can be obtained by referring to the "Research on Winter Wheat Irrigation Decision-making System Based on Information Fusion"; the winter wheat agricultural information data series includes agricultural information data of several dimensions at several sampling times.

[0042] So far, the winter wheat agricultural information data sequence is obtained through the above method.

[0043] Step S002: construct a multidimensional space based on the winter wheat agricultural information data sequence to obtain a number of agricultural information data points; cluster all agricultural information data points to obtain a number of cluster clusters; divide the winter wheat agricultural information data sequence into a number of segmented intervals, and the segmented intervals include different types of cluster clusters; obtain the important evaluation value of each segmented interval based on the distribution of agricultural information data points in different cluster clusters in each segmented interval.

[0044] It should be noted that, since the winter wheat agricultural information data sequence needs to be compressed, in order to retain the important information in the winter wheat agricultural information data sequence to the maximum extent while compressing the data; therefore, the winter wheat agricultural information data sequence needs to be segmented to obtain several segmented intervals; the information in the segmented interval is redundant, and has a greater impact on irrigation decisions, and is more important in the overall data; therefore, the important evaluation value of each segmented interval can be obtained through the distribution of agricultural information data points in different clusters in each segmented interval.

[0045] 1. Get several segment intervals.

[0046] It should be noted that since the recording and storage of multiple dimensional data types corresponding to the sampling time will consume a lot of storage space, in order to reduce the use of storage space, the winter wheat agricultural information data sequence should be compressed; in order to retain the important information in the winter wheat agricultural information data sequence to the greatest extent while compressing the data; therefore, it is necessary to segment the winter wheat agricultural information data sequence, and determine the segmented intervals that can be lossily compressed according to the characteristics of the agricultural information data in each segmented interval.

[0047] Preferably, a segmentation parameter is preset , wherein this embodiment is based on This example is described as an example, and this embodiment is not specifically limited. Depends on the specific implementation situation;

[0048] A multidimensional space is constructed according to the sampling time, soil moisture data, soil temperature data, winter wheat water stress index data and winter wheat evaporation and transpiration data, and the winter wheat agricultural information data sequence is input into the multidimensional space to obtain a number of agricultural information data points; all agricultural information data points are clustered using the DBSCAN algorithm to obtain a number of cluster clusters; the winter wheat agricultural information data sequence is divided into Segment interval.

[0049] It should be noted that each segment interval includes different types of clusters.

[0050] 2. Obtain the important evaluation value of each segment interval.

[0051] It should be noted that when there are more types of clusters in a single segmented interval and more agricultural information data points are contained in each cluster, it proves that the information in this segmented interval is redundant, the impact on irrigation decisions is greater, and it is more important in the overall data; therefore, the important evaluation value of each segmented interval can be obtained through the distribution of agricultural information data points in different clusters in each segmented interval; when the distribution of agricultural information data points in different clusters in the segmented interval is more chaotic, it means that the data relationship in this segmented interval is more variable, the situation is more unusual, and it may include drought, excessive rainfall, etc. The information contained in the data is more important, and the possibility of affecting irrigation decisions is greater, so the important evaluation value of this segmented interval is greater.

[0052] Preferably, in some implementations of the embodiments of the present invention, according to the distribution of agricultural information data points in different clusters in each segmented interval, the specific method for obtaining the important evaluation value of each segmented interval is:

[0053] According to the proportion of agricultural information data points in different clusters in each segmented interval, the uniformity of agricultural information data in each segmented interval is obtained;

[0054] According to the changes of agricultural information data points in different clusters in each segmented interval, the importance of agricultural information data in each segmented interval is obtained;

[0055] For any segmented interval, the product of the total number of types of clusters, the importance of agricultural information data and the inverse of the uniformity of agricultural information data in the segmented interval is used as the important evaluation value of the segmented interval.

[0056] The specific formula is:

[0057]

[0058] In the formula, Represents the important evaluation value of any segment interval; Represents the total number of all types of clusters in the segmented interval; Indicates the importance of agricultural information data in segmented intervals; Indicates the uniformity of agricultural information data in segmented intervals.

[0059] It should be noted that the greater the total number of types of clusters in the segmented interval, the greater the possibility that the segmented interval contains important agricultural information data, and the higher the importance evaluation value of the segmented interval; the greater the importance of the agricultural information data in the segmented interval, the higher the importance evaluation value of the segmented interval; the greater the uniformity of the agricultural information data in the segmented interval, the more uniform the agricultural information data in the segmented interval, the greater the possibility of lossy compression, and thus the lower the importance evaluation value of the segmented interval.

[0060] Preferably, in some implementations of the embodiments of the present invention, the method for obtaining the uniformity of agricultural information data in each segment interval includes:

[0061] For any segmented interval, the maximum number of agricultural information data points in all clusters in the segmented interval is recorded as the first number; the ratio of the first number to the total number of all agricultural information data points in the segmented interval is taken as the uniformity of the agricultural information data in the segmented interval.

[0062] The specific formula is:

[0063]

[0064] In the formula, Indicates the uniformity of agricultural information data in any segment interval; Indicates the maximum number of agricultural information data points in all clusters in the segmented interval; Represents the total number of all agricultural information data points in the segmented interval.

[0065] It should be noted that the greater the uniformity of the agricultural information data in the segmented interval, the greater the possibility of lossy compression.

[0066] Preferably, in some implementations of the embodiments of the present invention, the method for obtaining the importance of agricultural information data in each segmented interval includes:

[0067] For any segment interval, preset the number of changes The initial value is 0, and the traversal starts with the first agricultural information data point in the segmented interval and the step length is 1. If the cluster type between any two adjacent agricultural information data points changes during the traversal process, then The value of is increased by 1, and so on, until the last agricultural information data point in the segmented interval is traversed; the number of changes As the importance of agricultural information data in the segmented interval.

[0068] It should be noted that the preset number of changes The larger it is, the more special the situation of the agricultural information data in the segmented interval is, the more important the information contained in the segmented interval data is, and the greater the importance of the agricultural information data in the segmented interval is.

[0069] At this point, the important evaluation value of each segment interval is obtained through the above method.

[0070] Step S003: According to the difference in important evaluation values ​​between each segmented interval and other segmented intervals, and the quantity distribution of agricultural information data of different dimensions in the segmented intervals, obtain the possibility of each segmented interval being a lossy compression interval; use the important evaluation values ​​to correct the possibility of belonging to the lossy compression interval, and obtain the corrected lossy compression interval possibility of each segmented interval.

[0071] It should be noted that, based on the difference in important evaluation values ​​between each segmented interval and other segmented intervals, as well as the quantitative distribution of agricultural information data of different dimensions in the segmented intervals, the possibility of each segmented interval being a lossy compression interval is obtained, and the segmented intervals are selectively compressed to save more storage space; because the smaller the important evaluation value of the segmented interval, the more consistent the information contained in the segmented interval, the more likely the wheat is to be in the most common condition during growth, the more lossy compression should be performed on this segmented interval, and the more this segmented interval should be selected as a lossy compression interval; therefore, the possibility of belonging to a lossy compression interval is corrected by the important evaluation value to obtain the corrected lossy compression interval possibility of the segmented interval.

[0072] 1. Obtain the probability that each segment interval belongs to a lossy compression interval.

[0073] It should be noted that if the degree of reduction in the important evaluation value of a segmented interval compared with the previous segmented interval is large, it proves that this segmented interval may be in a certain information important interval, such as special conditions such as drought, heavy precipitation or excessive heavy metals in the soil, and the information changes of agricultural information data of different dimensions contained in the segmented interval are small. At this time, it may be the most common situation when winter wheat grows, and lossy compression can be performed; therefore, according to the difference in important evaluation values ​​between each segmented interval and other segmented intervals, as well as the quantitative distribution of agricultural information data of different dimensions in the segmented interval, the possibility of each segmented interval being a lossy compression interval can be obtained, and more storage space can be saved by selectively compressing the segmented interval.

[0074] Preferably, in some implementations of the embodiments of the present invention, according to the difference in important evaluation values ​​between each segmented interval and other segmented intervals, and the quantity distribution of agricultural information data of different dimensions in the segmented intervals, the specific method for obtaining the possibility that each segmented interval belongs to a lossy compression interval is:

[0075] According to the quantity distribution of agricultural information data of each dimension in each segmented interval, a lossy compression weight factor of agricultural information data of each dimension in each segmented interval is obtained;

[0076] According to the difference of important evaluation values ​​between each segmented interval and other segmented intervals, the possible factor of each segmented interval belonging to the lossy compression interval is obtained;

[0077] For any dimensional agricultural information data in any segmented interval, the product of the possible factor of the segmented interval belonging to a lossy compression interval and the lossy compression weight factor of the agricultural information data of that dimensionality is recorded as the first product of the agricultural information data of that dimensionality; the cumulative sum of the first products of all dimensional agricultural information data in the segmented interval is taken as the possibility of the segmented interval belonging to a lossy compression interval.

[0078] The specific formula is:

[0079]

[0080] In the formula, Indicates the possibility that any segmented interval belongs to a lossy compression interval; Indicates the total number of types of agricultural information data of all dimensions in the segmented interval; Indicates the possible factor of the segmented interval belonging to the lossy compression interval; Indicates the segment interval Weight factors for lossy compression of agricultural information data in different dimensions.

[0081] It should be noted that The larger the lossy compression weight factor of agricultural information data in the dimension, the higher the lossy compression weight factor of agricultural information data in the segment interval. The more the amount of agricultural information data in each dimension, the more storage space can be reduced by lossy compression of the segmented interval; the greater the probability factor of the segmented interval being a lossy compression interval, the greater the possibility of the segmented interval being a lossy compression interval.

[0082] Preferably, in some implementations of the embodiments of the present invention, the method for obtaining the lossy compression weight factor of each dimension of agricultural information data in each segment interval includes:

[0083] For any one dimensional agricultural information data in any segmented interval, the total amount of the agricultural information data of the one dimensionality in the segmented interval is used as a lossy compression weight factor for the agricultural information data of the one dimensionality.

[0084] Preferably, in some implementations of the embodiments of the present invention, the method for obtaining the possible factors belonging to the lossy compression interval of each segmented interval includes:

[0085] The first The important evaluation value of the segment interval is The absolute value of the difference between the important evaluation values ​​of the segment intervals is recorded as The important evaluation difference value of the segment interval; The ratio of the absolute value of the first difference of the segmented interval to the maximum value of the important evaluation difference of all segmented intervals is taken as the first The possible factor of the segmented interval belonging to the lossy compression interval.

[0086] The specific formula is:

[0087]

[0088] In the formula, Indicates The possible factors of the segmented intervals belonging to the lossy compression intervals; Indicates The important evaluation value of each segment interval; Indicates The important evaluation value of each segment interval; Indicates the maximum value of the important evaluation difference values ​​of all segmented intervals.

[0089] It should be noted that The possible factor of the segmented interval belonging to the lossy compression interval indicates that The segment interval and The smaller the value of the important evaluation value between the segment intervals, the greater the value. The more likely the segment interval is to be in an important information interval, and the The smaller the information changes in the time period of each segment interval, the greater the possibility of lossy compression.

[0090] At this point, the possibility of each segmented interval belonging to a lossy compression interval is obtained.

[0091] 2. Obtain the modified lossy compression interval probability for each segment interval.

[0092] It should be noted that since the decision on the need for irrigation of winter wheat is affected by many factors, it is easy to cause unclear definition of the environmental conditions of winter wheat, resulting in errors in the distinction of lossy compression intervals; and because the smaller the important evaluation value of the segmented interval, the more consistent the information contained in the segmented interval, the more likely the wheat is in the most common condition during growth, the more lossy compression should be performed on this segmented interval, and the more this segmented interval should be selected as the lossy compression interval; therefore, the possibility of belonging to the lossy compression interval is corrected by the important evaluation value to obtain the corrected lossy compression interval possibility of the segmented interval.

[0093] Preferably, in some implementations of the embodiments of the present invention, the probability of each segmented interval belonging to a lossy compression interval is corrected using the important evaluation value, and the calculation method for obtaining the probability of the corrected lossy compression interval of each segmented interval is:

[0094] For any segmented interval, a normalized value of the product of the reciprocal of the importance evaluation value of the segmented interval and the probability of the segmented interval being a lossy compression interval is used as the modified lossy compression interval probability of the segmented interval.

[0095] The specific formula is:

[0096]

[0097] In the formula, Indicates the possibility of corrected lossy compression interval for any segmented interval; Indicates the possibility that the segmented interval belongs to the lossy compression interval; Indicates the important evaluation value of the segmented interval; represents the linear normalization function.

[0098] At this point, the possibility of the modified lossy compression interval for each segment interval is obtained through the above method.

[0099] Step S004: selectively compress each segmented interval based on the possibility of correcting the lossy compression interval to obtain a compressed winter wheat agricultural information data sequence; and store the compressed winter wheat agricultural information data sequence in a database.

[0100] Specifically, a threshold parameter is preset , wherein this embodiment is based on This example is described as an example, and this embodiment is not specifically limited. It depends on the specific implementation situation.

[0101] For any segment interval, if the probability of the modified lossy compression interval of the segment interval is greater than or equal to the threshold parameter , then use the conversion coding algorithm to perform lossy compression on all dimensional agricultural information data in the segmented interval; if the probability of the modified lossy compression interval of the segmented interval is less than the threshold parameter , then use the Huffman coding algorithm to losslessly compress the agricultural information data of all dimensions in the segmented interval; then obtain the compressed winter wheat agricultural information data sequence; and store the compressed winter wheat agricultural information data sequence in the database.

[0102] It should be noted that the conversion coding algorithm and the Huffman coding algorithm are existing technologies, and will not be described in detail in this embodiment.

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

[0104] 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. An information-based agricultural data storage method based on big data analysis, characterized in that: The method comprises the following steps: Obtaining a winter wheat agricultural information data sequence; the winter wheat agricultural information data sequence includes agricultural information data of several dimensions at several sampling moments; Constructing a multidimensional space according to the winter wheat agricultural information data sequence to obtain a number of agricultural information data points; clustering all agricultural information data points to obtain a number of cluster clusters; dividing the winter wheat agricultural information data sequence into a number of segment intervals, wherein the segment intervals include different types of cluster clusters; obtaining an important evaluation value of each segment interval according to the distribution of agricultural information data points in different cluster clusters in each segment interval; According to the difference in important evaluation values ​​between each segmented interval and other segmented intervals, and the quantity distribution of agricultural information data of different dimensions in the segmented intervals, the possibility of each segmented interval being a lossy compression interval is obtained; the possibility of belonging to the lossy compression interval is corrected using the important evaluation value to obtain the corrected lossy compression interval possibility of each segmented interval; Selectively compress each segmented interval based on the possibility of correcting the lossy compression interval to obtain a compressed winter wheat agricultural information data sequence; store the compressed winter wheat agricultural information data sequence in a database; The specific method of obtaining the important evaluation value of each segment interval according to the distribution of agricultural information data points in different clusters in each segment interval includes: According to the proportion of agricultural information data points in different clusters in each segmented interval, the uniformity of agricultural information data in each segmented interval is obtained; According to the changes of agricultural information data points in different clusters in each segmented interval, the importance of agricultural information data in each segmented interval is obtained; For any segmented interval, the product of the total number of types of clusters, the importance of agricultural information data and the reciprocal of the uniformity of agricultural information data in the segmented interval is used as the important evaluation value of the segmented interval; The specific method of obtaining the importance of agricultural information data of each segment interval includes: For any segment interval, preset the number of changes The initial value is 0, and the traversal starts with the first agricultural information data point in the segmented interval and the step length is 1. If the cluster type between any two adjacent agricultural information data points changes during the traversal process, then The value of is increased by 1, and so on, until the last agricultural information data point in the segmented interval is traversed; the number of changes The importance of agricultural information data as the segment interval; The method of obtaining the possibility of each segmented interval being a lossy compression interval according to the difference in important evaluation values ​​between each segmented interval and other segmented intervals and the quantity distribution of agricultural information data of different dimensions in the segmented interval includes: According to the quantity distribution of agricultural information data of each dimension in each segmented interval, a lossy compression weight factor of agricultural information data of each dimension in each segmented interval is obtained; According to the difference of important evaluation values ​​between each segmented interval and other segmented intervals, the possible factor of each segmented interval belonging to the lossy compression interval is obtained; For any dimensional agricultural information data in any segmented interval, the product of the possible factor of the segmented interval belonging to a lossy compression interval and the lossy compression weight factor of the agricultural information data of the dimensionality is recorded as the first product of the agricultural information data of the dimensionality; the cumulative sum of the first products of all dimensional agricultural information data in the segmented interval is taken as the possibility of the segmented interval belonging to a lossy compression interval; The specific method of obtaining the lossy compression weight factor of each dimension of agricultural information data in each segment interval includes: For any one dimensional agricultural information data in any segmented interval, the total amount of the agricultural information data of the one dimensionality in the segmented interval is used as a lossy compression weight factor for the agricultural information data of the one dimensionality.

2. According to claim 1, the information-based agricultural data storage method based on big data analysis is characterized in that: The specific method of constructing a multidimensional space according to the winter wheat agricultural information data sequence to obtain a number of agricultural information data points includes: A multidimensional space is constructed according to the sampling time, soil moisture data, soil temperature data, winter wheat water stress index data and winter wheat evaporation and transpiration data, and the winter wheat agricultural information data sequence is input into the multidimensional space to obtain a number of agricultural information data points.

3. According to claim 1, the information-based agricultural data storage method based on big data analysis is characterized in that: The specific method of obtaining the uniformity of agricultural information data in each segment interval includes: For any segmented interval, the maximum number of agricultural information data points in all clusters in the segmented interval is recorded as the first number; the ratio of the first number to the total number of all agricultural information data points in the segmented interval is taken as the uniformity of the agricultural information data in the segmented interval.

4. According to claim 1, the information-based agricultural data storage method based on big data analysis is characterized in that: The specific method of obtaining the possible factor of each segmented interval belonging to the lossy compression interval includes: The first The important evaluation value of the segment interval is The absolute value of the difference between the important evaluation values ​​of the segment intervals is recorded as The important evaluation difference value of the segment interval; The ratio of the absolute value of the first difference of the segmented interval to the maximum value of the important evaluation difference of all segmented intervals is taken as the first The possible factor of the segmented interval belonging to the lossy compression interval.

5. According to claim 1, the information-based agricultural data storage method based on big data analysis is characterized in that: The method of using the important evaluation value to correct the possibility of the lossy compression interval to obtain the corrected lossy compression interval possibility of each segmented interval includes: For any segmented interval, a normalized value of the product of the reciprocal of the importance evaluation value of the segmented interval and the probability of the segmented interval being a lossy compression interval is used as the modified lossy compression interval probability of the segmented interval.

6. According to claim 1, the information-based agricultural data storage method based on big data analysis is characterized in that: The selective compression of each segmented interval based on the possibility of correcting the lossy compression interval to obtain the compressed winter wheat agricultural information data sequence includes the following specific methods: Preset a threshold parameter For any segment interval, if the probability of the modified lossy compression interval of the segment interval is greater than or equal to the threshold parameter , then use the conversion coding algorithm to perform lossy compression on all dimensional agricultural information data in the segmented interval; if the probability of the modified lossy compression interval of the segmented interval is less than the threshold parameter , then use the Huffman coding algorithm to losslessly compress the agricultural information data of all dimensions in the segmented interval; and then obtain the compressed winter wheat agricultural information data sequence.