A method for estimating crop output value after disasters based on reinforcement learning given agricultural disaster data

By constructing a post-disaster crop output value prediction model based on historical meteorological agricultural disaster data and environmental information, using technologies such as autoencoding networks, LSTM and BP neural networks, combined with Q-learning algorithms, the problem of insufficient accuracy of traditional crop disease prediction methods has been solved. A more efficient agricultural output value prediction is achieved.

CN114881357BActive Publication Date: 2024-09-17NANJING UNIV OF INFORMATION SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210612448.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-31
Publication Date
2024-09-17
Estimated Expiration
2042-05-31

AI Technical Summary

Technical Problem

The accuracy of existing traditional crop disease prediction methods is not high, they cannot fully explore the connections between discontinuous features in high-dimensional space, and there is insufficient analysis of the comprehensive impact of factors such as meteorological conditions, soil conditions, and biological characteristics.

Method used

Based on the historical meteorological and agricultural disaster data and environmental information data of the preset geographical area, a post-disaster crop output value prediction model is constructed through autoencoding network, LSTM neural network, BP neural network and Q learning algorithm, and the environmental feature vector and dynamic static meteorological and agricultural Correlate data features and adjust weights to improve prediction accuracy.

Benefits of technology

A more accurate agricultural output value prediction is achieved, by analyzing dynamic and static characteristics through heterogeneous neural network components, taking into account the correlation between meteorological and agricultural factors, and improving the accuracy of model prediction and output value prediction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114881357B
    Figure CN114881357B
Patent Text Reader

Abstract

The present invention discloses a method for estimating the output value of crops after disasters based on reinforcement learning of given agricultural disaster data. The method is based on an original data set consisting of historical meteorological agricultural disaster data and historical environmental information data, an agricultural disaster occurrence probability model, a simulated crop growth model, a multi-layer perceptron model, and a primary crop output value estimation model after disasters. The method combines an environmental feature vector set, dynamic variables of historical meteorological agricultural disaster data and static variables of historical environmental information data, and the correlation between dynamic and static meteorological and agricultural related data grouping data features to obtain a final crop output value estimation model after disasters. The method also utilizes a Q learning algorithm. The method proposes a heterogeneous prediction network for agricultural output value with environmental information coding for the transition of harvest seasons. The method follows the time dimension, analyzes a two-dimensional feature plane set corresponding to each related data grouping, and uses a heterogeneous neural network component to fine-grainedly analyze dynamic and static feature elements, comprehensively considering the correlation between meteorological and agricultural elements in output value and disasters.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of deep learning and reinforcement learning, and specifically relates to a method for estimating post-disaster crop output value based on reinforcement learning of given agricultural disaster data. Background Art

[0002] In order to meet the challenges of climate change, increasing population and food demand, timely, accurate and reliable large-scale crop yield estimation is more necessary than ever in crop management, food safety assessment, food trade and decision-making. With the development of artificial intelligence and big data analysis, prediction models based on data mining and machine learning techniques are widely available. Deep learning is increasingly used in various fields and shows better performance than traditional techniques. Although deep learning has made some progress in yield estimation, the application of deep learning to agriculture is still in its infancy, especially in crop yield estimation. It can automatically extract new features from input data and reduce the need for feature engineering. Since there are many causes of crop diseases, most of them are closely related to many factors such as meteorological conditions, soil conditions, biological characteristics and basic agricultural measures. In addition, many environmental factors generally play a role in different stages of disease occurrence and development. The various factors often restrict and influence each other. The accuracy of existing traditional crop disease prediction methods is not high. The modeling variable feature set constructed by traditional methods cannot fully explore the connection between non-continuous features in high-dimensional space. Palanivel et al. proposed a method for predicting crop yield using machine learning technology under big data computing mode. In consideration of the important factors of various agricultural meteorological disasters, Xu et al. designed a spatiotemporal recurrent neural network based on recurrent neural network and used multidimensional environmental data to predict the severity of wheat yellow rust. Feng et al. used a multilayer perceptron to predict the ground drought index. Summary of the invention

[0003] The purpose of the present invention is to provide a method for estimating the post-disaster crop output value based on reinforcement learning of given agricultural disaster data, so as to solve the problem that the accuracy of existing traditional crop disease prediction methods in the prior art is not high.

[0004] To achieve the above-mentioned purpose, the present invention provides the following technical scheme: based on each preset divided target geographical area, the original data set consisting of historical meteorological agricultural disaster data and historical environmental information data corresponding to each target geographical area, the harvest season time zone corresponding to each target geographical area, and the agricultural output value of the final target geographical area corresponding to the original data set consisting of historical meteorological agricultural disaster data and historical environmental information data corresponding to each target geographical area, the following steps S1 to S9 are executed to obtain a final post-disaster crop output value estimation model, so as to realize the agricultural output value prediction of each target geographical area given the meteorological agricultural disaster data and environmental information data;

[0005] Step S1: Based on the original data set consisting of historical meteorological agricultural disaster data and historical environmental information data corresponding to each target geographical area, feature analysis is performed on each data in the original data set to obtain an environmental feature vector set corresponding to each target geographical area;

[0006] Step S2: using an autoencoder network, based on each target geographical area, taking each environmental feature vector in the environmental feature vector set as input and the nonlinear combination environmental feature set corresponding to the environmental feature vector set after decoding and reconstruction as output, constructing an agricultural disaster occurrence probability model;

[0007] Step S3: Divide each harvest season time zone into the following four target time zones: a time zone before the start of the harvest season, a time zone at the beginning of the harvest season, a time zone in the middle of the harvest season, and a time zone at the end of the harvest season, and further extract and obtain the dynamic variables of historical meteorological agricultural disaster data and static variables of historical environmental information data in the nonlinear environmental combination feature set corresponding to each target time zone;

[0008] Step S4: using the LSTM neural network, taking the dynamic variables of historical meteorological agricultural disaster data in the original data set corresponding to each target time zone as input and the dynamic meteorological and agricultural related data grouping corresponding to the dynamic variables of historical meteorological agricultural disaster data in the original data set corresponding to each target time zone as output to construct a simulated crop growth model;

[0009] Step S5: using BP neural network, taking the static variables of environmental information data in the original data set corresponding to each target time zone as input and the static variables meteorological and agricultural related data grouping corresponding to the static variables of historical environmental information data in the original data set corresponding to each target time zone as output to construct a multi-layer perceptron model;

[0010] Step S6: a dynamic and static meteorological and agricultural related data grouping data feature training set S based on the dynamic meteorological and agricultural related data grouping corresponding to the dynamic variables of the historical meteorological agricultural disaster data in the original data set corresponding to the target time zone, and the static variable meteorological and agricultural related data grouping corresponding to the static variables of the historical environmental information data in the original data set corresponding to the target time zone;

[0011] Step S7: Based on the data feature training set S, the weights of the dynamic meteorological and agricultural related data grouping features and the weights of the static variable meteorological and agricultural related data grouping features in the dynamic and static meteorological and agricultural related data grouping data feature training set S are adjusted by the Q learning algorithm to obtain the dynamic and static meteorological and agricultural related data grouping data feature training set S' with adjusted weights;

[0012] Step S8: Using the MLP neural network, taking the weighted dynamic and static meteorological and agricultural related data grouping data feature training set S' as input and the weighted dynamic and static meteorological and agricultural related data grouping data feature as output, the agricultural output value of each target geographical area corresponding to the weighted dynamic and static meteorological and agricultural related data grouping data feature is constructed as a primary post-disaster crop output value estimation model;

[0013] Step S9: Based on the obtained agricultural disaster occurrence probability model, simulated crop growth model, multi-layer perceptron model, and primary post-disaster crop output value estimation model; and in combination with the environmental feature vector set corresponding to each target geographical area, the historical meteorological agricultural disaster data dynamic variables and the historical environmental information data static variables in the nonlinear environmental combination feature set corresponding to each target time zone, the dynamic and static meteorological and agricultural related data grouping data feature training set S, and the dynamic and static meteorological and agricultural related data grouping data feature training set S' with adjusted weights, the original data set consisting of the historical meteorological agricultural disaster data and environmental information data corresponding to each target geographical area is used as input, and the agricultural output value of the final target geographical area is used as output to construct and train the final post-disaster crop output value estimation model; at the same time, the Q learning algorithm is used, and the convergence value of the primary post-disaster crop output value model is preset, and the action parameters of the final post-disaster crop output value estimation model are fine-tuned to obtain the final post-disaster crop output value estimation model, the optimal action parameters of the final post-disaster crop output value estimation model, and the agricultural output value of the final target geographical area.

[0014] Furthermore, the aforementioned step S1 is specifically as follows: performing feature analysis on each data in the original data set to obtain an environmental feature vector set x i =[x1,x2,...,x m ],i∈1,2,...N.

[0015] Furthermore, the aforementioned step S2 is specifically as follows: Define an autoencoding network; the autoencoding network includes an encoding layer and a decoding layer, the first layer is an encoding layer C(·), and according to the following formula:, calculate the nonlinear environment combination feature vector of each environment feature vector in the environment feature vector set, wherein W is a weight vector corresponding to the environment feature vector, b is a deviation value, and e is a natural constant;

[0016] And according to the following formula: Define and construct the probability model of agricultural disasters; use the nonlinear combination of environmental characteristics z obtained by the coding layer i As feature input, calculate the probability of agricultural disasters, where z i represents the nonlinear combination of environmental characteristics, H(z i) represents the probability of agricultural disasters, θ is the current weight; h, where C represents the number of predicted disaster types; the second layer is the decoding layer G(·), according to the following formula: Decode the nonlinear combination environment feature to obtain the decoded and reconstructed nonlinear combination environment feature.

[0017] Furthermore, the aforementioned LSTM neural network maintains a chain structure of time steps in a simulated crop growth model, where each time step (h t ) depends on the previous step (h t-1 ) and external input (x t ), and then produces output (o t ), and provides this time step (h) for the next step t ); Finally, a fully connected layer maps the output; In the LSTM neural network branch, time series data is input, so that the network regards the univariate time series sample of length N as a multivariate time series of length 1 with N variables; The LSTM neural network controls the transmission of sequence information and extracts sequence correlation information.

[0018] Furthermore, the aforementioned step S6 is specifically as follows: the dynamic and static meteorological and agricultural related data grouping data feature training set is: S = {s1, s2, ..., s m}.

[0019] Furthermore, the aforementioned step S7 includes steps S71 to S73;

[0020] Step S71: According to the following formula Q(S t ,a t )=(1-α)Q(S t ,a t )+α(R(S t ,a t )+υmaxQ(S t+1 ,a t+1 )), define the Q learning algorithm; where α (0<α<1) is the learning rate that controls the convergence of the Q learning algorithm, and υ (0≤υ≤1) is the discount factor;

[0021] Step S72: Initialize the training set S = {s1, s2, ..., s m The initial weights of the weight parameters of each data feature in} are all 1; the value of the model parameter vector at time t is taken as the environmental state at time t, denoted by S t ;

[0022] Step S73: The agent selects and executes an action set to a t, define adding an action and reducing an action in the action list. Adding an action means that the weight of a feature increases by 0.1, and reducing an action means that the weight of a feature decreases by 0.1. The agent selects actions to adjust the feature weights; the prediction accuracy of the predictor in the current state is taken as the immediate benefit; obtain the dynamic and static meteorological and agricultural related data grouping data feature training set S with adjusted weights, S′={s′1,s′2,...,s′ m}.

[0023] Furthermore, the aforementioned step S9 includes the following steps S91 to S93;

[0024] Step S91: Taking the weighted dynamic and static meteorological and agricultural related data grouping data feature training set S' as input, the parameters of each layer of the intermediate layer of the primary post-disaster crop output value estimation model G = {g1, g2, ..., g n},

[0025] Step S92: According to the following formula: Q(S t ,a t )=(1-α)Q(S t ,a t )+α(R(S t ,a t )+υmaxQ(S t+1 ,a t+1 )), define the Q learning algorithm, where α (0 < α < 1) is the learning rate that controls the convergence of the Q learning algorithm, υ (0 ≤ υ ≤ 1) is the discount factor, and assume that the value of the model parameter vector at time t is taken as the environmental state at time t, denoted by S t ; The agent selects and executes an action set to a t In the action list, define two actions, increase and decrease, which respectively represent modifying the model parameters so that the model parameter g m Increase And modify the model parameters so that the parameter g in the model m reduce Fine-tune model parameters by selecting actions through agents; take the prediction accuracy of the predictor in the current state as immediate benefit;

[0026] Step S93: Iteratively train the primary post-disaster crop output value estimation model, and use the intermediate layer parameters G = {g1, g2, ..., g n} as an action, and using the Q learning algorithm as the loss function, until the agricultural output value predicted by the primary post-disaster crop output value estimation model reaches and presets the convergence value of the primary post-disaster crop output value estimation model. The parameters of the middle layer of the primary post-disaster crop output value estimation model at the convergence moment are G = {g′1, g′2, ..., g′n}, the primary post-disaster crop output value estimation model at this time is used as the final post-disaster crop output value estimation model.

[0027] Furthermore, in the aforementioned step S1, the historical meteorological and agricultural disaster data in the original data consisting of the historical meteorological and agricultural disaster data and the historical environmental information data is obtained from a cloud data storage platform; the historical environmental information data is obtained from bioclimatic information, terrain information and soil information.

[0028] Furthermore, in the aforementioned step S3, the dynamic variables of historical meteorological agricultural disaster data in the nonlinear environmental combination feature set are: variables that continuously change in the time dimension of the four target time zones, and the static variables of environmental information data in the nonlinear environmental combination feature set are: stable variables that change according to environmental information data in the four target time zones.

[0029] The present invention adopts the above technical scheme to have the following beneficial effects: the present invention proposes a heterogeneous prediction network for agricultural output value with environmental information encoding for the transition of harvest seasons, follows the time dimension, and successively analyzes the two-dimensional feature plane set corresponding to each associated data group in the spatial dimension before the beginning of the harvest season and the middle and late stages after the beginning of the harvest season, and adopts heterogeneous neural network components to fine-grainedly analyze dynamic and static feature elements, and comprehensively considers the correlation between meteorological and agricultural elements in output value and disasters. At the same time, the present invention uses the trained prediction model as the environment, uses the Q learning algorithm, and uses the prediction accuracy of the model as the benefit reinforcement learning modeling to adjust the model parameters and the input weight of the training set, which can effectively improve the prediction accuracy of the model. By training the agent on the decision of the selection of features in the training set, the screened training set performs better in different trainers. The LSTM neural network cooperates with the memory cells through the input gate, the forget gate, and the output gate, so that the sequence information can be better transmitted backward. The design of the three gates overcomes the gradient vanishing problem in the RNN, can better capture the longer dependency relationship in the sequence, and is suitable for the sequence information modeling of crop output value prediction. Taking advantage of LSTM's ability to memorize time series features over a long period of time, sequence learning and feature training of historical operating data can help improve prediction accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 It is a flow chart of an improved method for estimating post-disaster crop output value based on given meteorological agricultural disaster data;

[0031] Figure 2 It is a heterogeneous crop output value estimation network over the harvest season;

[0032] Figure 3 This is a schematic diagram of the reinforcement learning environment modeling in the final post-disaster crop output value estimation model;

[0033] Figure 4 Schematic diagram of reinforcement learning benefits constructed by adjusting the weights of input sets. DETAILED DESCRIPTION

[0034] In order to better understand the technical content of the present invention, specific embodiments are cited and described as follows in conjunction with the accompanying drawings. In the present invention, various aspects of the present invention are described with reference to the accompanying drawings, in which many illustrative embodiments are shown. The embodiments of the present invention are not limited to those described in the accompanying drawings. It should be understood that the present invention is implemented by any of the various concepts and embodiments introduced above, as well as the concepts and implementations described in detail below, because the concepts and embodiments disclosed in the present invention are not limited to any implementation. In addition, some aspects disclosed in the present invention can be used alone or in any appropriate combination with other aspects disclosed in the present invention.

[0035] In combination with the flow chart and implementation case, the post-disaster crop output value estimation method based on reinforcement learning of given agricultural disaster data described in the present invention is further described in detail.

[0036] like Figure 1 As shown, the method comprises the following steps: step S1: obtaining historical meteorological agricultural disaster data from a cloud data storage platform, collecting more abundant historical environmental information data from aspects such as bioclimate, remote sensing satellites, terrain and soil conditions to form an original data set, performing feature analysis on each data in the original data set, and obtaining an environmental feature vector set corresponding to each target geographical area;

[0037] Step S2: using an autoencoder network, based on each target geographical area, taking each environmental feature vector in the environmental feature vector set obtained in step S1 as input and the nonlinear combination environmental feature set corresponding to the environmental feature vector set after decoding and reconstruction as output, constructing an agricultural disaster occurrence probability model;

[0038] Step S3: Divide each harvest season time zone into the following four target time zones: a time zone before the start of the harvest season, a time zone at the beginning of the harvest season, a time zone in the middle of the harvest season, and a time zone at the end of the harvest season, and further extract and obtain the dynamic variables of historical meteorological agricultural disaster data and static variables of historical environmental information data in the nonlinear environmental combination feature set corresponding to each target time zone;

[0039] Step S4: using the LSTM neural network, taking the dynamic variables of historical meteorological agricultural disaster data in the original data set corresponding to each target time zone as input and the dynamic meteorological and agricultural related data grouping corresponding to the dynamic variables of historical meteorological agricultural disaster data in the original data set corresponding to each target time zone as output to construct a simulated crop growth model;

[0040] Step S5: using BP neural network, taking the static variables of environmental information data in the original data set corresponding to each target time zone as input and the static variables meteorological and agricultural related data grouping corresponding to the static variables of environmental information data in the original data set corresponding to each target time zone as output to construct a multi-layer perceptron model;

[0041] Step S6: dynamic and static meteorological and agricultural related data grouping data feature training set S based on dynamic meteorological and agricultural related data grouping corresponding to dynamic variables of historical meteorological agricultural disaster data in the original data set corresponding to the target time zone, and static variable meteorological and agricultural related data grouping corresponding to static variables of environmental information data in the original data set corresponding to the target time zone;

[0042] Step S7: Based on the data feature training set S, the weights of the dynamic meteorological and agricultural related data grouping features and the weights of the static variable meteorological and agricultural related data grouping features in the dynamic and static meteorological and agricultural related data grouping data feature training set S are adjusted by the Q learning algorithm to obtain the dynamic and static meteorological and agricultural related data grouping data feature training set S' with adjusted weights;

[0043] Step S8: Using the MLP neural network, taking the weighted dynamic and static meteorological and agricultural related data grouping data feature training set S' as input and the weighted dynamic and static meteorological and agricultural related data grouping data feature as output, the agricultural output value of each target geographical area corresponding to the weighted dynamic and static meteorological and agricultural related data grouping data feature is constructed as a primary post-disaster crop output value estimation model;

[0044] Step S9: Based on the obtained agricultural disaster occurrence probability model, simulated crop growth model, multi-layer perceptron model, and primary post-disaster crop output value estimation model; and in combination with the environmental feature vector set corresponding to each target geographical area, the historical meteorological agricultural disaster data dynamic variables and the historical environmental information data static variables in the nonlinear environmental combination feature set corresponding to each target time zone, the dynamic and static meteorological and agricultural related data grouping data feature training set S, and the dynamic and static meteorological and agricultural related data grouping data feature training set S' with adjusted weights, the original data set consisting of the historical meteorological agricultural disaster data and the historical environmental information data corresponding to each target geographical area is used as input, and the agricultural output value of the final target geographical area is used as output to construct and train the final post-disaster crop output value estimation model; at the same time, the Q learning algorithm is used, and the convergence value of the primary post-disaster crop output value model is preset, and the action parameters of the final post-disaster crop output value estimation model are fine-tuned to obtain the final post-disaster crop output value estimation model, the optimal action parameters of the final post-disaster crop output value estimation model, and the agricultural output value of the final target geographical area.

[0045] like Figure 2As shown in the figure, the heterogeneous crop output value estimation network changes with the harvest season. Each harvest season time zone is divided into the following four target time zones: the time zone before the start of the harvest season, the time zone at the beginning of the harvest season, the time zone in the middle of the harvest season, and the time zone at the end of the harvest season. The dynamic variables of historical meteorological agricultural disaster data and the static variables of historical environmental information data in the nonlinear environmental combination feature set corresponding to each target time zone are further extracted and obtained.

[0046] For the dynamic variables of historical meteorological and agricultural disaster data, the LSTM neural network is used to obtain dynamic meteorological and agricultural related data groups. The LSTM neural network maintains a chain structure of time steps in a simulated crop growth model. Each time step (h t ) depends on the previous step (h t-1 ) and external input (x t ), and then produces output (o t ), and provides this time step (h) for the next step t ); Finally, a fully connected layer maps the output; On the LSTM neural network branch, the time series data is input, so that the network treats the univariate time series sample of length N as a multivariate time series of length 1 and N variables; The LSTM neural network controls the transmission of sequence information and extracts sequence correlation information. For the static variables of environmental information data, the BP neural network is used to obtain the static variable meteorological and agricultural related data grouping.

[0047] The dynamic and static meteorological and agricultural related data grouping data feature training set S is composed of the dynamic meteorological and agricultural related data groupings corresponding to the dynamic variables of the historical meteorological and agricultural disaster data in the original data set corresponding to the target time zone, and the static variable meteorological and agricultural related data groupings corresponding to the static variables of the environmental information data in the original data set corresponding to the target time zone. The dynamic and static meteorological and agricultural related data grouping data feature training set S is: S = {s1, s2, ..., s m}. Through the Q learning algorithm, the weights of the dynamic meteorological and agricultural related data grouping features and the weights of the static variable meteorological and agricultural related data grouping features in the dynamic and static meteorological and agricultural related data grouping data feature training set S are adjusted to obtain the dynamic and static meteorological and agricultural related data grouping data feature training set S' with adjusted weights. Specifically: according to the following formula Q(S t ,a t )=(1-α)Q(S t ,a t )+α(R(S t ,a t )+υmaxQ(S t+1 ,a t+1)), define the Q learning algorithm; where α (0 < α < 1) is the learning rate that controls the convergence of the Q learning algorithm, υ (0 ≤ υ ≤ 1) is the discount factor; then initialize the training set S = {s1, s2, ..., s m The initial weights of the weight parameters of each data feature in} are all 1; the value of the model parameter vector at time t is taken as the environmental state at time t, denoted by S t ; The agent selects and executes an action set to a t , define adding an action and reducing an action in the action list. Adding an action means that the weight of a feature increases by 0.1, and reducing an action means that the weight of a feature decreases by 0.1. The agent selects actions to adjust the feature weights; the prediction accuracy of the predictor in the current state is taken as the immediate benefit; obtain the dynamic and static meteorological and agricultural related data grouping data feature training set S with adjusted weights, S′={s′1,s′2,...,s′ m}.

[0048] like Figure 3 As shown, it is a schematic diagram of the reinforcement learning environment modeling of the present invention; based on the obtained agricultural disaster occurrence probability model, simulated crop growth model, multi-layer perceptron model, and primary post-disaster crop output value estimation model; and combined with the environmental feature vector set corresponding to each target geographical area, the historical meteorological agricultural disaster data dynamic variables and the historical environmental information data static variables in the nonlinear environmental combination feature set corresponding to each target time zone, the dynamic and static meteorological and agricultural related data grouping data feature training set S, and the dynamic and static meteorological and agricultural related data grouping data feature training set S' with adjusted weights, the original data set consisting of the historical meteorological agricultural disaster data and the historical environmental information data corresponding to each target geographical area is used as input, and the agricultural output value of the final target geographical area is used as output to construct and train the final post-disaster crop output value estimation model; at the same time, the Q learning algorithm is used, and the convergence value of the primary post-disaster crop output value model is preset, and the action parameters of the final post-disaster crop output value estimation model are fine-tuned to obtain the final post-disaster crop output value estimation model, the optimal action parameters of the final post-disaster crop output value estimation model, and the agricultural output value of the final target geographical area.

[0049] Specifically, step S91: taking the weighted dynamic and static meteorological and agricultural related data grouping data feature training set S' as input, the parameters of each intermediate layer of the primary post-disaster crop output value estimation model G = {g1, g2, ..., g n},

[0050] Step S92: According to the following formula: Q(S t ,a t )=(1-α)Q(S t ,a t)+α(R(S t ,a t )+υmaxQ(S t+1 ,a t+1 )), define the Q learning algorithm, where α (0 < α < 1) is the learning rate that controls the convergence of the Q learning algorithm, υ (0 ≤ υ ≤ 1) is the discount factor, and assume that the value of the model parameter vector at time t is taken as the environmental state at time t, denoted by S t ; The agent selects and executes an action set to a t In the action list, define two actions, increase and decrease, which respectively represent modifying the model parameters so that the model parameter g m Increase And modify the model parameters so that the parameter g in the model m reduce Fine-tune model parameters by selecting actions through agents; take the prediction accuracy of the predictor in the current state as immediate benefit;

[0051] Step S93: Iteratively train the primary post-disaster crop output value estimation model, and use the intermediate layer parameters G = {g1, g2, ..., g n} as an action, and using the Q learning algorithm as the loss function, until the agricultural output value predicted by the primary post-disaster crop output value estimation model reaches and presets the convergence value of the primary post-disaster crop output value estimation model. The parameters of the middle layer of the primary post-disaster crop output value estimation model at the convergence moment are G = {g′1, g′2, ..., g′ n}, the primary post-disaster crop output value estimation model at this time is used as the final post-disaster crop output value estimation model.

[0052] like Figure 4 Schematic diagram of reinforcement learning benefits constructed by adjusting the weights of input sets; Figure 4 According to the data related to agricultural disaster types, the comprehensive effects of multiple disasters on crop output value are studied, and the weight change action is performed to obtain the optimal selection strategy. Then, the incremental model is trained to maximize the benefits, and finally the post-disaster crop output value prediction results are obtained. It can be seen that this method comprehensively considers the correlation between meteorological and agricultural factors in output value and disasters. "

[0053] Although the present invention has been described above with preferred embodiments, it is not intended to limit the present invention. A person skilled in the art of the present invention may make various modifications and improvements without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the present invention shall be determined by the claims.

Claims

1. A method for estimating crop output value after a disaster based on reinforcement learning of given agricultural disaster data, characterized in that: Based on the preset target geographical areas, the original data sets consisting of the historical meteorological agricultural disaster data and the historical environmental information data corresponding to the target geographical areas, the harvest season time zones corresponding to the target geographical areas, and the agricultural output values ​​of the historical target geographical areas corresponding to the original data sets corresponding to the target geographical areas, the following steps S1 to S9 are performed to obtain the final post-disaster crop output value estimation model, so as to realize the agricultural output value prediction of the target geographical areas with the given meteorological agricultural disaster data and the given environmental information data; Step S1: Based on the original data set consisting of historical meteorological agricultural disaster data and historical environmental information data corresponding to each target geographical area, feature analysis is performed on each data in the original data set to obtain an environmental feature vector set corresponding to each target geographical area; Step S2: using an autoencoder network, based on each target geographical area, taking each environmental feature vector in the environmental feature vector set as input and the nonlinear combination environmental feature set corresponding to the environmental feature vector set after decoding and reconstruction as output, constructing an agricultural disaster occurrence probability model; Step S3: Divide each harvest season time zone into the following four target time zones: a time zone before the start of the harvest season, a time zone at the beginning of the harvest season, a time zone in the middle of the harvest season, and a time zone at the end of the harvest season, and further extract and obtain the dynamic variables of historical meteorological agricultural disaster data and static variables of historical environmental information data in the nonlinear environmental combination feature set corresponding to each target time zone; Step S4: using the LSTM neural network, taking the dynamic variables of historical meteorological agricultural disaster data in the original data set corresponding to each target time zone as input and the dynamic meteorological and agricultural related data grouping corresponding to the dynamic variables of historical meteorological agricultural disaster data in the original data set corresponding to each target time zone as output to construct a simulated crop growth model; Step S5: using BP neural network, taking the static variables of historical environmental information data in the original data set corresponding to each target time zone as input and the static variables meteorological and agricultural related data grouping corresponding to the static variables of historical environmental information data in the original data set corresponding to each target time zone as output to construct a multi-layer perceptron model; Step S6: a dynamic and static meteorological and agricultural related data grouping data feature training set S based on the dynamic meteorological and agricultural related data grouping corresponding to the dynamic variables of the historical meteorological agricultural disaster data in the original data set corresponding to the target time zone, and the static variable meteorological and agricultural related data grouping corresponding to the static variables of the historical environmental information data in the original data set corresponding to the target time zone; Step S7: Based on the data feature training set S, the weights of the dynamic meteorological and agricultural related data grouping features and the weights of the static variable meteorological and agricultural related data grouping features in the dynamic and static meteorological and agricultural related data grouping data feature training set S are adjusted by the Q learning algorithm to obtain the dynamic and static meteorological and agricultural related data grouping data feature training set S' with adjusted weights; Step S8: Using the MLP neural network, taking the weighted dynamic and static meteorological and agricultural related data grouping data feature training set S' as input and the weighted dynamic and static meteorological and agricultural related data grouping data feature as output, the agricultural output value of each target geographical area corresponding to the weighted dynamic and static meteorological and agricultural related data grouping data feature is constructed as a primary post-disaster crop output value estimation model; Step S9: Based on the obtained agricultural disaster occurrence probability model, simulated crop growth model, multi-layer perceptron model, and primary post-disaster crop output value estimation model; and in combination with the environmental feature vector set corresponding to each target geographical area, the historical meteorological agricultural disaster data dynamic variables and the historical environmental information data static variables in the nonlinear environmental combination feature set corresponding to each target time zone, the dynamic and static meteorological and agricultural related data grouping data feature training set S, and the dynamic and static meteorological and agricultural related data grouping data feature training set S' with adjusted weights, the original data set consisting of the historical meteorological agricultural disaster data and the historical environmental information data corresponding to each target geographical area is used as input, and the agricultural output value of the final target geographical area is used as output to construct and train the final post-disaster crop output value estimation model; at the same time, the Q learning algorithm is used, and the convergence value of the primary post-disaster crop output value model is preset, and the action parameters of the final post-disaster crop output value estimation model are fine-tuned to obtain the final post-disaster crop output value estimation model, the optimal action parameters of the final post-disaster crop output value estimation model, and the agricultural output value of the final target geographical area.

2. According to claim 1, a method for estimating post-disaster crop output value based on reinforcement learning of given agricultural disaster data is characterized in that: Step S1 specifically includes: performing feature analysis on each data in the original data set to obtain an environmental feature vector set x i =[x1,x2,...,x m ],i∈1,2,...N.

3. The method for estimating crop output value after a disaster based on reinforcement learning of given agricultural disaster data according to claim 1 is characterized in that: The specific step S2 is: according to the following formula An autoencoding network is defined to calculate a nonlinear environment combination feature vector of each environment feature vector in an environment feature vector set; the autoencoding network comprises an encoding layer and a decoding layer, the first layer being an encoding layer C(·), wherein W is a weight vector corresponding to the environment feature vector, b is a deviation value, and e is a natural constant; And according to the following formula: Define and construct the probability model of agricultural disasters; use the nonlinear combination of environmental characteristics z obtained by the coding layer i As feature input, calculate the probability of agricultural disasters, where z i represents the nonlinear combination of environmental characteristics, H(z i ) represents the probability of agricultural disasters, θ is the current weight; h, where C represents the number of predicted disaster types; the second layer is the decoding layer G(·), according to the following formula: Decode the nonlinear combination environment feature to obtain the decoded and reconstructed nonlinear combination environment feature.

4. The method for estimating crop output value after a disaster based on reinforcement learning of given agricultural disaster data according to claim 1 is characterized in that: In step S4, the LSTM neural network maintains a chain structure of time steps in a simulated crop growth model, and each time step (h t ) depends on the previous step (h t-1 ) and external input (x t ), and then produces output (o t ), and provides this time step (h) for the next step t ); Finally, a fully connected layer maps the output; In the LSTM neural network branch, time series data is input, so that the network regards the univariate time series sample of length N as a multivariate time series of length 1 with N variables; The LSTM neural network controls the transmission of sequence information and extracts sequence correlation information.

5. According to claim 1, a method for estimating post-disaster crop output value based on reinforcement learning of given agricultural disaster data is characterized in that: The step S6 is specifically as follows: the dynamic and static meteorological and agricultural related data grouping data feature training set is: S = {s1, s2, ..., s m }.

6. The method for estimating crop output value after a disaster based on reinforcement learning of given agricultural disaster data according to claim 1 is characterized in that: The step S7 includes steps S71 to S73; Step S71: According to the following formula Q(S t ,a t )=(1-α)Q(S t ,a t )+α(R(S t ,a t )+υmaxQ(S t+1 ,a t+1 )), define the Q learning algorithm; where α (0<α<1) is the learning rate that controls the convergence of the Q learning algorithm, and υ (0≤υ≤1) is the discount factor; Step S72: Initialize the training set S = {s1, s2, ..., s m The initial weights of the weight parameters of each data feature in} are all 1; the value of the model parameter vector at time t is taken as the environmental state at time t, denoted by S t ; Step S73: The agent selects and executes an action set to a t , define adding an action and reducing an action in the action list. Adding an action means that the weight of a feature increases by 0.1, and reducing an action means that the weight of a feature decreases by 0.

1. The agent selects actions to adjust the feature weights; the prediction accuracy of the predictor in the current state is used as the immediate benefit; obtain the dynamic and static meteorological and agricultural related data grouping data feature training set S with adjusted weights, S'={s'1,s'2,...,s' m }.

7. The method for estimating crop output value after a disaster based on reinforcement learning of given agricultural disaster data according to claim 1 is characterized in that: The step S9 includes the following steps S91 to S93: Step S91: Taking the weighted dynamic and static meteorological and agricultural related data grouping data feature training set S' as input, the parameters of each layer of the intermediate layer of the primary post-disaster crop output value estimation model G = {g1, g2, ..., g n }, Step S92: According to the following formula: Q(S t ,a t )=(1-α)Q(S t ,a t )+α(R(S t ,a t )+υmaxQ(S t+1 ,a t+1 )), define the Q learning algorithm, where α (0 < α < 1) is the learning rate that controls the convergence of the Q learning algorithm, υ (0 ≤ υ ≤ 1) is the discount coefficient, and assume that the value of the model parameter vector at time t is taken as the environmental state at time t, denoted by S t ; The agent selects and executes an action set to a t In the action list, define two actions, increase and decrease, which respectively represent modifying the model parameters so that the model parameter g m Increase And modify the model parameters so that the parameter g in the model m reduce Fine-tune model parameters by selecting actions through agents; take the prediction accuracy of the predictor in the current state as immediate benefit; Step S93: Iteratively train the primary post-disaster crop output value estimation model, and use the intermediate layer parameters G = {g1, g2, ..., g n } as an action, using the Q learning algorithm as the loss function, until the agricultural output value predicted by the primary post-disaster crop output value estimation model reaches and presets the convergence value of the primary post-disaster crop output value model. The parameters of the middle layer of the primary post-disaster crop output value estimation model at the convergence moment are G = {g'1, g'2, ..., g' n }, the primary post-disaster crop output value estimation model at this time is used as the final post-disaster crop output value estimation model.

8. The method for estimating crop output value after a disaster based on reinforcement learning of given agricultural disaster data according to claim 1 is characterized in that: In step S1, the historical meteorological agricultural disaster data in the raw data consisting of the historical meteorological agricultural disaster data and the historical environmental information data is obtained from a cloud data storage platform; the environmental information data is obtained from bioclimatic information, terrain information and soil information.

9. The method for estimating crop output value after a disaster based on reinforcement learning of given agricultural disaster data according to claim 1 is characterized in that: In step S3, the dynamic variables of historical meteorological agricultural disaster data in the nonlinear environmental combination feature set are: variables that continuously change in the time dimension of the four target time zones, and the static variables of environmental information data in the nonlinear environmental combination feature set are: stable variables that change according to environmental information data in the four target time zones.