Twenty-four solar terms prediction method based on recurrent neural network

By constructing a solar term accuracy evaluation model and a prediction model based on the method of recurrent neural network, it solves the problem that the calendar method is difficult to describe the irregularity of the twenty-four solar terms, and achieves solar term prediction with higher flexibility and accuracy, which is suitable for agriculture. and meteorological fields.

CN118014638BActive Publication Date: 2024-10-01INST OF GEOGRAPHICAL SCI & NATURAL RESOURCE RES CAS
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing calendar methods are difficult to accurately describe the irregularities and regional limitations of the twenty-four solar terms, leading to inaccuracies in agricultural production and meteorological predictions.

Method used

Using a method based on recurrent neural networks, by monitoring environmental information and agricultural product market information, we build a solar term accuracy evaluation model and a recurrent neural network prediction model to capture the temporal pattern of solar terms changing over time and make accurate solar term predictions.

Benefits of technology

It improves the flexibility and accuracy of the 24 solar terms forecast, can better adapt to complex time series relationships, and provides more accurate agricultural and meteorological information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118014638B_ABST
    Figure CN118014638B_ABST
Patent Text Reader

Abstract

The present invention discloses a 24 solar terms prediction method based on a recurrent neural network, and specifically relates to the field of computer algorithms. The processing method comprises the following steps: monitoring and collecting target area environmental information, earth-sun relationship information, and agricultural product market information, and using the 24 solar terms recurrent neural network prediction model to predict the prediction result information and meteorological information before and after the solar terms are predicted. The 24 solar terms prediction method based on a recurrent neural network of the present invention evaluates the accuracy of the solar terms on the existing calendar, and then learns and models the time series data based on the neural network to capture the time series pattern of the solar terms changing over time, and finally evaluates the correctness and predictability of the constructed prediction model, and obtains a 24 solar terms prediction method that can better adapt to complex time series relationships. Compared with the rule-based method, this method has higher flexibility and prediction accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer algorithm technology, and more specifically, to a method for predicting the twenty-four solar terms based on a recurrent neural network. Background Art

[0002] The 24 solar terms are a concept in the traditional Chinese calendar, which is used to divide the year and reflect the changes in the position of the sun on the ecliptic. At the same time, the emergence of the 24 solar terms is an astronomical and meteorological summary of the observation of the movement of the sun on the ecliptic and the rotation and revolution of the earth, covering data on the changes in the sun's ecliptic longitude, the intersection of the ecliptic and the equator, the position of the sun's direct point, as well as agricultural production and meteorological changes.

[0003] In daily life, people usually use the solar terms in the calendar as the basis for judging the season. However, the occurrence of the 24 solar terms is related to factors such as the movement of the sun. Their cycle is not strictly based on equal time intervals every year, and the occurrence of the 24 solar terms has certain irregularities and regional limitations. The simple rules in the calendar are difficult to accurately describe this irregularity, and it is also difficult to distinguish the deviation values ​​of the 24 solar terms in different regions. In the fields of earth science and meteorology, more accurate solar term predictions are needed as a reference to provide more accurate information for daily agricultural production, tourism planning and other aspects. Summary of the invention

[0004] In order to overcome the above-mentioned defects of the prior art, an embodiment of the present invention provides a twenty-four solar terms prediction method based on a recurrent neural network, evaluates the accuracy of the solar terms on the existing calendar, and then learns and models the time series data based on the neural network to capture the temporal patterns of the solar terms changing over time. Finally, the constructed prediction model is evaluated for correctness and predictability to obtain a twenty-four solar terms prediction method that can better adapt to complex temporal relationships. Compared with rule-based methods, this method has higher flexibility and prediction accuracy.

[0005] To achieve the above object, the present invention provides the following technical solutions:

[0006] The twenty-four solar terms prediction method based on recurrent neural network includes the following steps:

[0007] Step S1, monitoring and collecting target area environmental information, land-sun relationship information and agricultural product market information, as well as prediction result information and meteorological information before and after the solar terms are predicted using the twenty-four solar terms recurrent neural network prediction model;

[0008] Step S2, constructing a solar term accuracy evaluation model to evaluate the accuracy of the twenty-four solar terms in the calendar used in the target area;

[0009] Step S3, for the target area with low accuracy in judging the 24 solar terms, a recurrent neural network model is constructed using the historically accurate dates of the 24 solar terms and the solar term accuracy evaluation index as factors, and an accurate solar term prediction date is output;

[0010] Step S4, evaluate the correctness and practicality of the model, and construct a prediction evaluation model based on the agricultural product value-added information, prediction anomaly information and meteorological data consistency information.

[0011] Specifically, in step S1, the construction of the loop model is mainly through the loop algorithm. The commonly used loop algorithm uses loop structures such as for and while by software tools such as Python to build algorithm models, and uses scientific computing libraries (such as NumPy, Pandas) and machine learning frameworks (such as TensorFlow, PyTorch) to process data and build models. In actual use, due to factors such as equipment cost and complexity of real-time monitoring, the present invention is based on the premise of sufficient agricultural product production samples in the target area and a relatively stable environment, and continuously monitoring the solar ecliptic longitude and agricultural product data, which may lead to the phenomenon of rationality change at a certain monitoring moment.

[0012] In step S2, a solar term accuracy evaluation model is constructed. The specific process is to collect temperature anomaly information, solar ecliptic longitude deviation information and solar term agricultural impact value information in the target area. The temperature anomaly information includes the temperature anomaly coefficient, which is calibrated as W yc , the solar ecliptic longitude deviation information includes the solar ecliptic longitude deviation coefficient, calibrated as H pc The information on the impact value of solar terms on agriculture includes the impact value coefficient of solar terms on agriculture, denoted as J yx ;

[0013] Temperature anomaly coefficient W yc The daily average temperature of the target area ten days before and after the solar term is calculated and calibrated as W r , r represents the number of different daily average temperatures, r = 1, 2, 3, 4, ..., k, k is a positive integer, and then the average temperature of the ten days before and after the corresponding solar term in the past three years is counted and calibrated as W z , then the temperature anomaly coefficient

[0014] Solar ecliptic longitude deviation coefficient H pc The longitude of the sun on the ecliptic on the day of the solar term calendar is calculated, and the result is calibrated as H c , and obtain the ecliptic longitude relationship of the corresponding solar term. Since the corresponding relationship between each solar term and the solar ecliptic longitude is fixed and has nothing to do with the specific location on the earth, for example, the spring equinox solar term corresponds to the solar ecliptic longitude of 0 degrees, and the autumnal equinox solar term corresponds to the solar ecliptic longitude of 180 degrees. These corresponding relationships are observed and determined by astronomers and calibrated as Hd , so the solar longitude deviation coefficient H pc =|H c -H d |;

[0015] The influence value coefficient of solar term agriculture J yx Collect the production information of various agricultural products in the target area, and calculate the types of agricultural products planted within ten days before and after the solar term, calibrated as Z y , y represents the number of different types of agricultural products, y = 1, 2, 3, 4, ..., z, z is a positive integer, and the total amount of sales of various types of agricultural products is calculated, denoted as J y The influence value coefficient of solar term agriculture is

[0016] The solar term accuracy evaluation model is constructed by weighting the temperature anomaly information, solar longitude deviation information and solar term agricultural impact value information in the target area to generate the solar term accuracy evaluation index ZQ. pg , the corresponding coefficients are the temperature anomaly coefficient W yc 、Sun ecliptic longitude deviation coefficient H pc , Solar terms agricultural impact value coefficient J yx , the formula is ZQ pg =(a1×W yc +α2×H pc )×α3×J yx ;

[0017] At the same time, α1, α2, and α3 are all greater than 0 and are set according to actual conditions. For example, the expert weighting method is adopted, that is, experts in related fields are invited to determine the weights of various indicators through professional opinion surveys and comprehensive evaluations to ensure that the weight coefficients can accurately reflect the importance of various indicators in the evaluation of the rationality of cloud computing resource allocation. In addition, various methods such as hierarchical analysis method and fuzzy comprehensive evaluation method can also be considered to determine the weight coefficients to ensure the objectivity and scientificity of the weight coefficients. I will not go into details here.

[0018] In step S2, the solar term accuracy evaluation index obtained from the solar term accuracy evaluation model is used to reflect the accuracy between the solar terms in the target area calendar and the actually calculated solar terms. The larger its value is, the less accurate the existing solar terms in the target area are, the greater the temperature difference with previous years, the greater the deviation of the solar longitude, and the deeper the impact on the local agricultural market, the lower the accuracy between the solar terms in the target area calendar and the actually calculated solar terms.

[0019] In step S2, when the solar term accuracy evaluation index ZQ pgWhen it is greater than the set reasonable threshold, it means that the accuracy between the solar terms in the calendar of the target area and the actually calculated solar terms is low. It is necessary to build a 24 solar terms prediction model under a recurrent neural network for the target area, generate inaccurate solar terms data signals, pass them to the subsequent evaluation module, and conduct subsequent evaluation of the sales of agricultural products in the target area;

[0020] When the solar term accuracy evaluation index ZQ pg When it is less than or equal to the set reasonable threshold, it means that the accuracy between the solar terms in the calendar of the target area and the actually calculated solar terms is high, and the existing solar term judgment method can still be used to directly output the evaluation results without further evaluation.

[0021] In step S3, a 24 solar term recurrent neural network prediction model is constructed, and the collected historically accurate 24 solar term dates and solar term accuracy evaluation index are used as construction factors of the recurrent neural network prediction model to establish a recurrent neural network prediction model to predict the 24 solar term dates in the target area;

[0022] Furthermore, the construction method of the recurrent neural network model of the present invention is as follows:

[0023] Step S3.1, data preprocessing, taking the collected historically accurate 24 solar terms dates and solar terms accuracy evaluation index as time series data, and performing data preprocessing such as missing value processing, normalization, and standardization, and then encoding the 24 solar terms dates, for example, using one-hot encoding to represent the beginning of spring as [1, 0, 0, ..., 0], and finally dividing the time series data into time windows, and the solar terms accuracy evaluation index and the corresponding 24 solar terms dates contained in each window are used as the input and output of the model;

[0024] Step S3.2, model construction, select the specific structure of RNN, such as using basic RNN unit, long short-term memory network (LSTM) or gated recurrent unit (GRU), use deep learning frameworks such as TensorFlow or PyTorch, then specify the input and output of RNN, take the solar term accuracy evaluation index in the time window as input, and take the corresponding twenty-four solar terms date as output;

[0025] Step S3.3, model training, divide the dataset into a training set and a validation set. For the training set, select an appropriate loss function (such as cross entropy) and optimizer (such as stochastic gradient descent or Adam) in Keras and use the prepared time series data for model training;

[0026] Step S3.4, model evaluation and prediction, use the validation set to evaluate the performance of the model, adjust the model's hyperparameters, such as the learning rate, the number of RNN units, etc., based on the evaluation results, use the trained model to predict the future dates of the 24 solar terms, and perform subsequent processing on the prediction results, such as converting the one-hot encoded results into specific dates and verifying them.

[0027] In step S4, after the twenty-four solar terms recurrent neural network prediction model is established, the correctness and practicability of the actual application are evaluated.

[0028] Build a prediction evaluation model and generate a prediction evaluation index YC pg The specific process is to collect the agricultural product value-added information, forecast anomaly information and meteorological data consistency information of the target area after using the 24 solar terms recurrent neural network prediction model, where the agricultural product value-added information includes the agricultural product value-added coefficient, calibrated as N zz , the predicted anomaly information includes the predicted anomaly coefficient, calibrated as Y yc , the meteorological data consistency information includes the meteorological data consistency coefficient, denoted as Q sj ;

[0029] The calculation method adopts weighted value calculation, and the specific calculation expression is:

[0030] YC pg =β1×N 2z +β2×Y yc +β3×Q sj ;

[0031] In the formula, β1, β2, and β3 are the weight coefficients of the corresponding indicators, representing the importance of each indicator in the comprehensive evaluation.

[0032] It should be noted that the agricultural product value-added coefficient N zz , the number of different agricultural products produced in the target area before the 24 solar terms recurrent neural network prediction model was used, calibrated as S m , m represents the number of different types of agricultural products, m = 1, 2, 3, 4, ..., c, c is a positive integer, and the corresponding market unit price is marked as D m , the number of different agricultural products produced in the target area after using the twenty-four solar terms recurrent neural network prediction model is counted, calibrated as Hm, then the agricultural product value-added coefficient

[0033] Prediction of abnormal coefficient Y yc , get the time after using the twenty-four solar terms recurrent neural network prediction model, in years, calibrated as T n The number of days between the solar term predicted by the model and the actual solar term is calibrated as X c , then the predicted abnormal coefficient Yyc =T n / X c ;

[0034] Meteorological data consistency coefficient Q sj After using the 24 solar terms recurrent neural network prediction model, the overlap between the temperature map of the solar terms in the past year and the temperature map of the current predicted solar terms is calculated and calibrated as W c The overlap between the precipitation map of the solar term in the past year and the existing predicted precipitation map of the solar term is calibrated as S c The overlap between the wind direction map of the solar term in the past year and the wind direction map of the current predicted solar term is denoted as F c , then the meteorological data consistency coefficient Q sj =(W c +S c +F c ) / 3.

[0035] In step S4, the prediction evaluation index obtained from the prediction evaluation model is used to reflect the prediction accuracy and practicality of the target area after using the twenty-four solar terms recurrent neural network prediction model. The larger its value is, the increased income when agricultural products are sown according to the predicted twenty-four solar terms. The fewer the difference between the predicted solar terms and the correct solar terms, the more consistent the meteorological data is with the corresponding historical solar terms, and the more accurate and practical the prediction after using the twenty-four solar terms recurrent neural network prediction model is.

[0036] In step S4, when the prediction evaluation index YC pg When it is greater than or equal to the set prediction threshold, it means that the prediction after using the twenty-four solar terms recurrent neural network prediction model is correct and practical, and the evaluation result is output, and the twenty-four solar terms recurrent neural network prediction model will continue to be used for solar term prediction;

[0037] When the predicted evaluation index YC pg When it is less than the set prediction threshold, it means that the prediction accuracy and practicality after using the twenty-four solar terms recurrent neural network prediction model are not good, and step S3 is repeated to reconstruct the twenty-four solar terms recurrent neural network prediction model and calculate the prediction evaluation index YC pg As the hyperparameter value standard in the twenty-four solar terms recurrent neural network prediction model.

[0038] Technical effects and advantages of the present invention:

[0039] In order to overcome the above-mentioned defects of the prior art, an embodiment of the present invention provides a twenty-four solar terms prediction method based on a recurrent neural network, evaluates the accuracy of the solar terms on the existing calendar, and then learns and models the time series data based on the neural network to capture the temporal patterns of the solar terms changing over time. Finally, the constructed prediction model is evaluated for correctness and predictability to obtain a twenty-four solar terms prediction method that can better adapt to complex temporal relationships. Compared with rule-based methods, this method has higher flexibility and prediction accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 The present invention is a flow chart of the twenty-four solar terms prediction method based on recurrent neural network. DETAILED DESCRIPTION

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

[0042] The twenty-four solar terms prediction method of the present invention is based on a recurrent neural network. The accuracy of the solar terms on the existing calendar is evaluated, and then the time series data is learned and modeled based on the neural network to capture the temporal pattern of the solar terms changing over time. Finally, the constructed prediction model is evaluated for correctness and predictability to obtain a twenty-four solar terms prediction method that can better adapt to complex temporal relationships. Compared with rule-based methods, this method has higher flexibility and prediction accuracy.

[0043] Example 1

[0044] like Figure 1 As shown, the steps of the twenty-four solar terms prediction method based on recurrent neural network are as follows:

[0045] Step S1, monitoring and collecting target area environmental information, land-sun relationship information and agricultural product market information, as well as prediction result information and meteorological information before and after the solar terms are predicted using the twenty-four solar terms recurrent neural network prediction model;

[0046] Step S2: construct a solar term accuracy evaluation model to evaluate the accuracy of the 24 solar terms in the calendar used in the target area:

[0047] Step S3, for the target area with low accuracy in judging the 24 solar terms, a recurrent neural network model is constructed using the historically accurate dates of the 24 solar terms and the solar term accuracy evaluation index as factors, and an accurate solar term prediction date is output;

[0048] Step S4, evaluate the correctness and practicality of the model, and construct a prediction evaluation model based on the agricultural product value-added information, prediction anomaly information and meteorological data consistency information.

[0049] Specifically, in step S1, the construction of the loop model is mainly through the loop algorithm. The commonly used loop algorithm uses loop structures such as for and while by software tools such as Python to build algorithm models, and uses scientific computing libraries (such as NumPy, Pandas) and machine learning frameworks (such as TensorFlow, PyTorch) to process data and build models. In actual use, due to factors such as equipment cost and complexity of real-time monitoring, the present invention is based on the premise of sufficient agricultural product production samples in the target area and a relatively stable environment, and continuously monitoring the solar ecliptic longitude and agricultural product data, which may lead to the phenomenon of rationality change at a certain monitoring moment.

[0050] In step S2, a solar term accuracy evaluation model is constructed. The specific process is to collect temperature anomaly information, solar ecliptic longitude deviation information and solar term agricultural impact value information in the target area. The temperature anomaly information includes the temperature anomaly coefficient, which is calibrated as W yc , the solar ecliptic longitude deviation information includes the solar ecliptic longitude deviation coefficient, calibrated as H pc The information on the impact value of solar terms on agriculture includes the impact value coefficient of solar terms on agriculture, denoted as J yx ;

[0051] Temperature anomaly coefficient W yc The daily average temperature of the target area ten days before and after the solar term is calculated and calibrated as W r , r represents the number of different daily average temperatures, r = 1, 2, 3, 4, ..., k, k is a positive integer, and then the average temperature of the ten days before and after the corresponding solar term in the past three years is counted and calibrated as W z , then the temperature anomaly coefficient

[0052] Solar ecliptic longitude deviation coefficient H pc The longitude of the sun on the ecliptic on the day of the solar term calendar is calculated, and the result is calibrated as H c , and obtain the ecliptic longitude relationship of the corresponding solar term. Since the corresponding relationship between each solar term and the solar ecliptic longitude is fixed and has nothing to do with the specific location on the earth, for example, the spring equinox solar term corresponds to the solar ecliptic longitude of 0 degrees, and the autumnal equinox solar term corresponds to the solar ecliptic longitude of 180 degrees. These corresponding relationships are observed and determined by astronomers and calibrated as H d , so the solar longitude deviation coefficient H pc =|H c -H d |;

[0053] The influence value coefficient of solar term agriculture J yx Collect the production information of various agricultural products in the target area, and calculate the types of agricultural products planted within ten days before and after the solar term, calibrated as Z y , y represents the number of different types of agricultural products, y = 1, 2, 3, 4, ..., z, z is a positive integer, and the total amount of sales of various types of agricultural products is calculated, denoted as J y , then the influence value coefficient of solar term agriculture is

[0054] The solar term accuracy evaluation model is constructed by weighting the temperature anomaly information, solar longitude deviation information and solar term agricultural impact value information in the target area to generate the solar term accuracy evaluation index ZQ. pg , the corresponding coefficients are the temperature anomaly coefficient W yc 、Sun ecliptic longitude deviation coefficient H pc , Solar terms agricultural impact value coefficient J yx , the formula is ZQ pg =(α1×W yc +α2×H pc )×α3×J yx ;

[0055] At the same time, α1, α2, and α3 are all greater than 0 and are set according to actual conditions. For example, the expert weighting method is adopted, that is, experts in related fields are invited to determine the weights of various indicators through professional opinion surveys and comprehensive evaluations to ensure that the weight coefficients can accurately reflect the importance of various indicators in the evaluation of the rationality of cloud computing resource allocation. In addition, various methods such as hierarchical analysis method and fuzzy comprehensive evaluation method can also be considered to determine the weight coefficients to ensure the objectivity and scientificity of the weight coefficients. I will not go into details here.

[0056] In step S2, the solar term accuracy evaluation index obtained from the solar term accuracy evaluation model is used to reflect the accuracy between the solar terms in the target area calendar and the actually calculated solar terms. The larger its value is, the less accurate the existing solar terms in the target area are, the greater the temperature difference with previous years, the greater the deviation of the solar longitude, and the deeper the impact on the local agricultural market, the lower the accuracy between the solar terms in the target area calendar and the actually calculated solar terms.

[0057] In step S2, when the solar term accuracy evaluation index ZQ pg When it is greater than the set reasonable threshold, it means that the accuracy between the solar terms in the calendar of the target area and the actually calculated solar terms is low. It is necessary to build a 24 solar terms prediction model under a recurrent neural network for the target area, generate inaccurate solar terms data signals, pass them to the subsequent evaluation module, and conduct subsequent evaluation of the sales of agricultural products in the target area;

[0058] When the solar term accuracy evaluation index ZQ pg When it is less than or equal to the set reasonable threshold, it means that the accuracy between the solar terms in the calendar of the target area and the actually calculated solar terms is high, and the existing solar term judgment method can still be used to directly output the evaluation results without further evaluation.

[0059] In step S3, a 24 solar term recurrent neural network prediction model is constructed, and the collected historically accurate 24 solar term dates and solar term accuracy evaluation index are used as construction factors of the recurrent neural network prediction model to establish a recurrent neural network prediction model to predict the 24 solar term dates in the target area;

[0060] Furthermore, the construction method of the recurrent neural network model of the present invention is as follows:

[0061] Step S3.1, data preprocessing, taking the collected historically accurate 24 solar terms dates and solar terms accuracy evaluation index as time series data, and performing data preprocessing such as missing value processing, normalization, and standardization, and then encoding the 24 solar terms dates, for example, using one-hot encoding to represent the beginning of spring as [1, 0, 0, ..., 0], and finally dividing the time series data into time windows, and the solar terms accuracy evaluation index and the corresponding 24 solar terms dates contained in each window are used as the input and output of the model;

[0062] Step S3.2, model construction, select the specific structure of RNN, such as using basic RNN unit, long short-term memory network (LSTM) or gated recurrent unit (GRU), use deep learning frameworks such as TensorFlow or PyTorch, then specify the input and output of RNN, take the solar term accuracy evaluation index in the time window as input, and take the corresponding twenty-four solar terms date as output;

[0063] Step S3.3, model training, divide the dataset into a training set and a validation set. For the training set, select an appropriate loss function (such as cross entropy) and optimizer (such as stochastic gradient descent or Adam) in Keras and use the prepared time series data for model training;

[0064] Step S3.4, model evaluation and prediction, use the validation set to evaluate the performance of the model, adjust the model's hyperparameters, such as the learning rate, the number of RNN units, etc., based on the evaluation results, use the trained model to predict the future dates of the 24 solar terms, and perform subsequent processing on the prediction results, such as converting the one-hot encoded results into specific dates and verifying them.

[0065] In step S4, after the twenty-four solar terms recurrent neural network prediction model is established, the correctness and practicability of the actual application are evaluated.

[0066] Build a prediction evaluation model and generate a prediction evaluation index YC pg The specific process is to collect the agricultural product value-added information, forecast anomaly information and meteorological data consistency information of the target area after using the 24 solar terms recurrent neural network prediction model, where the agricultural product value-added information includes the agricultural product value-added coefficient, calibrated as N zz , the predicted anomaly information includes the predicted anomaly coefficient, calibrated as Y yc , the meteorological data consistency information includes the meteorological data consistency coefficient, denoted as Q sj ;

[0067] The calculation method adopts weighted value calculation, and the specific calculation expression is:

[0068] YC pg =β1×N zz +β2×Y yc +β3×Q sj .

[0069] In the formula, β1, β2, and β3 are the weight coefficients of the corresponding indicators, representing the importance of each indicator in the comprehensive evaluation.

[0070] It should be noted that the agricultural product value-added coefficient N zz , the number of different agricultural products produced in the target area before the 24 solar terms recurrent neural network prediction model was used, calibrated as S m , m represents the number of different types of agricultural products, m = 1, 2, 3, 4, ..., c, c is a positive integer, and the corresponding market unit price is marked as D m , the number of different agricultural products produced in the target area after using the twenty-four solar terms recurrent neural network prediction model is counted and calibrated as H m , then the agricultural product value-added coefficient

[0071] Prediction of abnormal coefficient Y yc , get the time after using the twenty-four solar terms recurrent neural network prediction model, in years, calibrated as T n The number of days between the solar term predicted by the model and the actual solar term is calibrated as X c , then the predicted abnormal coefficient Y yc =T n / X c ;

[0072] Meteorological data consistency coefficient Q sj After using the 24 solar terms recurrent neural network prediction model, the overlap between the temperature map of the solar terms in the past year and the temperature map of the current predicted solar terms is calculated and calibrated as W c The overlap between the precipitation map of the solar term in the past year and the existing predicted precipitation map of the solar term is calibrated as S cThe overlap between the wind direction map of the solar term in the past year and the wind direction map of the current predicted solar term is denoted as F e , then the meteorological data consistency coefficient Q sj =(W c +S c +F c ) / 3.

[0073] In step S4, the prediction evaluation index obtained from the prediction evaluation model is used to reflect the prediction accuracy and practicality of the target area after using the twenty-four solar terms recurrent neural network prediction model. The larger its value is, the increased income when agricultural products are sown according to the predicted twenty-four solar terms. The fewer the difference between the predicted solar terms and the correct solar terms, the more consistent the meteorological data is with the corresponding historical solar terms, and the more accurate and practical the prediction after using the twenty-four solar terms recurrent neural network prediction model is.

[0074] In step S4, when the prediction evaluation index YC pg When it is greater than or equal to the set prediction threshold, it means that the prediction after using the twenty-four solar terms recurrent neural network prediction model is correct and practical, and the evaluation result is output, and the twenty-four solar terms recurrent neural network prediction model will continue to be used for solar term prediction;

[0075] When the predicted evaluation index YC pg When it is less than the set prediction threshold, it means that the prediction accuracy and practicality after using the twenty-four solar terms recurrent neural network prediction model are not good, and step S3 is repeated to reconstruct the twenty-four solar terms recurrent neural network prediction model and calculate the prediction evaluation index YC pg As the hyperparameter value standard in the twenty-four solar terms recurrent neural network prediction model.

[0076] The above formulas are all dimensionless and calculated numerically. Specific dimension removal can be achieved by various means such as standardization, which will not be elaborated here. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters in the formula are set by technicians in this field according to actual conditions.

[0077] The above embodiments can be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented using software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (e.g., a floppy disk, an ATA hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state ATA hard disk.

[0078] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0079] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0080] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0081] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, and may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0082] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0083] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: U disk, mobile ATA hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, and other media that can store program codes.

[0084] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A 24 solar terms prediction method based on a recurrent neural network, characterized in that: The steps include: Step S1, monitoring and collecting target area environmental information, land-sun relationship information and agricultural product market information, as well as prediction result information and meteorological information before and after the solar terms are predicted using the twenty-four solar terms recurrent neural network prediction model; Step S2, constructing a solar term accuracy evaluation model to evaluate the accuracy of the twenty-four solar terms in the calendar used in the target area; Step S3, for the target area with low accuracy in judging the 24 solar terms, a recurrent neural network model is constructed using the historically accurate dates of the 24 solar terms and the solar term accuracy evaluation index as factors, and an accurate solar term prediction date is output; Step S4, evaluating the correctness and practicality of the model, and constructing a prediction evaluation model based on agricultural product value-added information, prediction anomaly information, and meteorological data consistency information; The solar term accuracy evaluation model is constructed. The specific process is to collect temperature anomaly information, solar longitude deviation information and solar term agricultural impact value information in the target area. The temperature anomaly information includes the temperature anomaly coefficient, which is calibrated as W yc , the solar ecliptic longitude deviation information includes the solar ecliptic longitude deviation coefficient, calibrated as H pc The information on the impact value of solar terms on agriculture includes the impact value coefficient of solar terms on agriculture, denoted as J yx ; Temperature anomaly coefficient W yc The daily average temperature of the target area ten days before and after the solar term is calculated and calibrated as W r , r represents the number of different daily average temperatures, r = 1, 2, 3, 4, ..., k, k is a positive integer, and then the average temperature of the ten days before and after the corresponding solar term in the past three years is counted and calibrated as W z , then the temperature anomaly coefficient Solar ecliptic longitude deviation coefficient H pc The longitude of the sun on the ecliptic on the day of the solar term calendar is calculated, and the result is calibrated as H c , and obtain the ecliptic longitude relationship of the corresponding solar term, calibrated as H d , so the solar longitude deviation coefficient H pc =|H c -H d |; The influence value coefficient of solar term agriculture J yx Collect the production information of various agricultural products in the target area, and calculate the types of agricultural products planted within ten days before and after the solar term, calibrated as Z y , y represents the number of different types of agricultural products, y = 1, 2, 3, 4, ..., z, z is a positive integer, and the total amount of sales of various types of agricultural products is calculated, denoted as J y , then the influence value coefficient of solar term agriculture is The solar term accuracy evaluation model is constructed by weighting the temperature anomaly information, solar longitude deviation information and solar term agricultural impact value information in the target area to generate the solar term accuracy evaluation index ZQ. pg , the corresponding coefficients are the temperature anomaly coefficient W yc 、Sun ecliptic longitude deviation coefficient H pc , Solar terms agricultural impact value coefficient J yx , the formula is ZQ pg =(α1×W yc +α2×H pc )×α3×J yx , α1, α2, and α3 are the weight coefficients of the corresponding indicators, all of which are greater than 0.

2. The twenty-four solar terms prediction method based on recurrent neural network according to claim 1, characterized in that: When the solar term accuracy evaluation index ZQ pg When it is greater than the set reasonable threshold, a 24 solar terms prediction model under a recurrent neural network is constructed for the target area to generate an inaccurate solar term data signal, which is transmitted to the subsequent evaluation module, and a subsequent evaluation is conducted on the sales of agricultural products in the target area; When the solar term accuracy evaluation index ZQ pg When it is less than or equal to the set reasonable threshold, the existing solar term judgment method is used, the evaluation result is directly output, and no subsequent evaluation is performed.

3. The twenty-four solar terms prediction method based on recurrent neural network according to claim 1, characterized in that: Construct a recurrent neural network prediction model for the 24 solar terms, use the historically accurate dates of the 24 solar terms and the solar term accuracy evaluation index collected as the construction factors of the recurrent neural network prediction model, establish a recurrent neural network prediction model, and predict the dates of the 24 solar terms in the target area; Furthermore, the construction method of the recurrent neural network model is as follows: Step S3.1, data preprocessing, taking the collected historically accurate dates of the 24 solar terms and the solar term accuracy evaluation index as time series data, performing missing value processing, normalization, and standardized data preprocessing, then encoding the dates of the 24 solar terms, and finally dividing the time series data into time windows; Step S3.2, model construction, select the specific structure of RNN, and use the deep learning framework to specify the input and output of RNN; Step S3.3, model training, divide the data set into a training set and a validation set. For the training set, select an appropriate loss function and optimizer in Keras and use the prepared time series data for model training; Step S3.4, model evaluation and prediction, use the validation set to evaluate the performance of the model, adjust the model's hyperparameters based on the evaluation results, use the trained model to predict the future dates of the 24 solar terms, and perform subsequent processing and verification on the prediction results.

4. The twenty-four solar terms prediction method based on recurrent neural network according to claim 3 is characterized in that: Build a prediction evaluation model and generate a prediction evaluation index YC pg The specific process is to collect the agricultural product value-added information, forecast anomaly information and meteorological data consistency information of the target area after using the 24 solar terms recurrent neural network prediction model, where the agricultural product value-added information includes the agricultural product value-added coefficient, calibrated as N zz , the predicted anomaly information includes the predicted anomaly coefficient, calibrated as Y yc , the meteorological data consistency information includes the meteorological data consistency coefficient, denoted as Q sj ; The calculation method adopts weighted value calculation, and the specific calculation expression is: YC pg =β1×N zz +β2×Y yc +β3×Q sj ; In the formula, β1, β2, and β3 are the weight coefficients of the corresponding indicators, representing the importance of each indicator in the comprehensive evaluation.

5. The twenty-four solar terms prediction method based on recurrent neural network according to claim 4 is characterized in that: Agricultural product value-added coefficient N zz , the number of different agricultural products produced in the target area before the 24 solar terms recurrent neural network prediction model was used, calibrated as S m , m represents the number of different types of agricultural products, m = 1, 2, 3, 4, ..., c, c is a positive integer, and the corresponding market unit price is marked as D m , the number of different agricultural products produced in the target area after using the twenty-four solar terms recurrent neural network prediction model is counted and calibrated as H m , then the agricultural product value-added coefficient Prediction of abnormal coefficient Y yc , get the time after using the twenty-four solar terms recurrent neural network prediction model, in years, calibrated as T n The number of days between the solar term predicted by the model and the actual solar term is calibrated as X c , then the predicted abnormal coefficient Y yc =T n / X c ; Meteorological data consistency coefficient Q sj After using the 24 solar terms recurrent neural network prediction model, the overlap between the temperature map of the solar terms in the past year and the temperature map of the current predicted solar terms is calculated and calibrated as W c The overlap between the precipitation map of the solar term in the past year and the existing predicted precipitation map of the solar term is calibrated as S c The overlap between the wind direction map of the solar term in the past year and the wind direction map of the current predicted solar term is denoted as F c , then the meteorological data consistency coefficient O sj =(W c +S c +F c ) / 3.

6. The twenty-four solar terms prediction method based on recurrent neural network according to claim 5 is characterized in that: When the predicted evaluation index YC pg When it is greater than or equal to the set prediction threshold, the evaluation result is output, and the twenty-four solar terms recurrent neural network prediction model is used to predict the solar terms; When the predicted evaluation index YC pg When it is less than the set prediction threshold, step S3 is repeated to build the twenty-four solar terms recurrent neural network prediction model again, and the prediction evaluation index YC pg As the hyperparameter value standard in the twenty-four solar terms recurrent neural network prediction model.