Integrated calibration method of multi-site watershed hydrological model parameters based on reinforcement learning
Through the integrated calibration method of multi-site watershed hydrological model parameters based on reinforcement learning, the problem of complex and time-consuming calibration of distributed hydrological model parameters is solved, and high-efficiency and high-accuracy calibration of hydrological model parameters is achieved, which is a new technology for hydrological simulation. provided important support for its development.
Patent Information
- Application Number
- CN202410311548.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-19
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-03-19
AI Technical Summary
The existing distributed hydrological model parameter calibration methods are complex and time-consuming, making it difficult to effectively solve the problem of integrated parameter calibration of multi-station watershed hydrological models, which affects the development of hydrological simulation technology.
A multi-site watershed hydrological model parameter integration calibration method based on reinforcement learning is adopted. The site watershed clusters are divided through cluster analysis. The hydrological characteristics of the watershed are extracted by combining the principles of deep learning and Kalman filtering. The DDPG reinforcement learning algorithm is used for parameter integration calibration to improve The efficiency and accuracy of calibrating model parameters are improved.
It achieves regional comprehensive calibration of hydrological model parameters, improves the accuracy of model initial values, reduces errors in flood simulation forecasts, improves the efficiency and accuracy of hydrological model parameter calibration, and provides a feasible optimization approach for areas without data. .
Smart Images

Figure CN118114567B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of distributed hydrological simulation, and in particular relates to a multi-site watershed hydrological model parameter integrated calibration method based on reinforcement learning. Background Art
[0002] With the advent of the Internet + Big Data era, information technology is developing rapidly. Distributed hydrological models have surpassed conceptual models and system models and have become one of the hot topics in international hydrological research. Distributed hydrological models can reflect the temporal and spatial distribution characteristics of actual storm and flood runoff processes, and more comprehensively describe the hydrological characteristics of the basin by applying mathematical and physical equations. However, due to the uneven temporal and spatial distribution of various hydrological elements in the basin, parameter calibration has become the focus and difficulty of distributed hydrological model simulation.
[0003] With the remarkable achievements of machine learning technology in the field of forecasting, many economical and efficient solutions have been proposed. More and more hydrologists are applying it to the field of hydrology, especially flood forecasting. Traditional model automatic optimization calibration methods include autoregressive moving average method (ARMA), multivariate linear regression (MLR), integrated moving average autoregressive model (ARIMA), etc., which have a series of problems such as inaccurate short-term flood forecasting, complex application, and high computational cost. Machine learning can improve the traditional automatic optimization methods of the model, and has the advantages of easy application, low cost and high accuracy. Practice has proved that some machine learning methods, such as artificial neural networks (ANNs), neuro-fuzzy, support vector machine (SVM), and support vector regression (SVR), have achieved good simulation results in short-term and medium- and long-term hydrological forecasting. However, due to the large number of distributed hydrological model parameters, the parameter calibration process is complex and time-consuming, which directly hinders the further development of distributed hydrological simulation technology. Therefore, how to use machine learning technology to calibrate the integrated parameters of site basin hydrological models is a technical problem that needs to be solved in this field. Summary of the invention
[0004] The purpose of the present invention is to provide a multi-site watershed hydrological model parameter integrated calibration method based on reinforcement learning to solve the above technical problems.
[0005] To achieve the above object, the present invention provides the following technical solutions:
[0006] The present invention discloses a multi-site watershed hydrological model parameter integrated calibration method based on reinforcement learning, the method comprising the following steps:
[0007] Step 1: Divide all site watersheds into site watershed clusters: Based on the hydrological and meteorological characteristics of each site watershed, use cluster analysis algorithm to divide all site watersheds into several site watershed clusters;
[0008] Step 2: Divide the site watershed cluster into small watershed units: Based on the digital elevation model DEM and digital line map DLG data of each site watershed in the site watershed cluster, combined with the hydrological monitoring site and water conservancy project data, as well as remote sensing image data, land use and vegetation type, soil texture type data and administrative divisions, the natural topography, surface water catchment relationship and administrative division factors are comprehensively considered, and each site watershed is divided into several small watershed units according to the set catchment area; Based on the remote sensing image data of each site watershed cluster, the sample deep learning method is used to extract the watershed hydrological characteristic indicators of each small watershed unit in the cluster, and the similarity index method is used to determine the similarity between each small watershed unit, and the small watershed units determined to be similar in the site watershed cluster are divided into the same small watershed unit class;
[0009] Step 3, constructing a hydrological model of a site basin cluster: judging whether each site basin in the site basin cluster meets the modeling conditions, constructing a hydrological model for the site basins that meet the modeling conditions, wherein the hydrological model is selected according to the hydrological characteristics of the site basin cluster; the modeling condition is that the site basin has a long series of hydrological and meteorological data, and the hydrological and meteorological data include daily-scale hydrological and meteorological data and hourly-scale hydrological and meteorological data; for a site basin that meets the modeling conditions, if a total of Y flood processes are divided, 0.7Y floods are used for model parameter calibration, and the remaining 0.3Y floods are used for model parameter verification;
[0010] Step 4, determine the initial state of the flood used for model parameter calibration: obtain the inversion results of the surface soil moisture of the basin based on microwave remote sensing image data; select the evapotranspiration calculation model according to the hydrological and meteorological characteristics of the site basin, and perform continuous simulation based on daily hydrological and meteorological data to simulate the change process of soil moisture in the basin; use the Kalman filter principle to assimilate the two soil moisture data to obtain the optimal soil moisture value before the flood, and determine the initial state of the flood used for the calibration of the hydrological model parameters of the site basin;
[0011] Step 5, integrated calibration of hydrological model parameters of site basin clusters: According to step 3, 0.7Y floods in each site basin are used for model parameter calibration, and the remaining 0.3Y flood data are used for model parameter verification. Based on the results of step 4, the initial soil moisture of each flood in the site basin is set, and based on the divided small basin unit class of the site basin cluster, hourly hydrological and meteorological data are used to implement the integrated calibration of the hydrological model parameters of the site basin cluster using the DDPG reinforcement learning algorithm;
[0012] Step 6: Evaluation of the simulation accuracy of the hydrological model after parameter calibration and calibration iteration: The Nash efficiency coefficient NSE and the peak flow relative error absolute value REQ indicators are used to evaluate the calibration accuracy of the parameter integration. For each site basin, the site basin cluster hydrological model parameter set S obtained by step 5 is used. * , extract the calibration results of hydrological model parameters of the site basin S station * , simulate the rainfall response process of floods in the site basin during the verification period, and calculate the NSE, REQ and their mean values of all floods in the calibration and verification period of each site basin, denoted as and Calculate all site watersheds in the site watershed cluster separately and The NSE and REQ qualification thresholds are set to be NSE lim 、REQ lim , determine the basin of all stations during the calibration and validation period and Is the mean of within the above qualified range? If so, it is considered that the parameter set S * If the accuracy requirement is met, otherwise the state space and the number of loop calculations T of the DDPG reinforcement learning algorithm parameters are adjusted, and the parameter calibration process is repeated until the NSE and REQ indicators are qualified; if the parameter set S is below the set NSE and REQ qualified thresholds, * If the accuracy requirement cannot be met, reduce NSE lim , improve REQ lim , NSE lim >0,REQ lim >0, repeat the calibration process until the indicators are qualified.
[0013] Furthermore, the hydrological and meteorological characteristics in step 1 include: average annual rainfall, average annual temperature, altitude, slope, land use type and soil texture type.
[0014] Furthermore, the catchment area set in step 2 is 10km 2 .
[0015] Furthermore, the watershed hydrological characteristic indicators in step 2 include categorical indicators and numerical indicators; the categorical indicators include land use types and soil texture types, the land use types include evergreen coniferous forests, evergreen broad-leaved forests, deciduous coniferous forests, deciduous broad-leaved forests, mixed forests, closed shrubs and grasses, open shrubs and grasses, shrubs and grasses, meadows, grasslands, swamps, cultivated land, urban land, cultivated land / natural vegetation, ice and snow covered land, wasteland, and water; the soil texture types include sandy soil, loamy sandy soil, sandy loam, sandy clay loam, sandy clay, clay, clay loam, loam, silt loam, silt clay loam, silt clay, and silt soil; the numerical indicators include river width, beach range, reservoir area, river water surface area, pond area, and crop growth conditions.
[0016] Furthermore, the sample deep learning method described in step 2 adopts the CNN remote sensing image classification method, that is, the convolutional neural network method, including a feature extraction layer and a feature mapping layer. The feature extraction layer includes a convolution layer, a pooling layer and an activation function. The convolution layer performs a convolution calculation on the feature matching of each position of the original image through the feature vector. The feature image calculated is reduced by pooling to reduce the amount of calculation and adds nonlinear elements through the activation function; the feature mapping layer is a fully connected layer that flattens multiple feature mapping layers into an array, and performs weighted summation with the fully connected layer weights obtained based on the model sample training to obtain a probability value of a numerical description of each result of the input image, thereby achieving sample deep learning, extracting hydrological feature values based on remote sensing image data, reducing the number of network free parameters, reducing the amount of calculation for extracting hydrological element feature values and achieving classification and extraction accuracy.
[0017] Furthermore, the specific process of using the similarity index method to determine the similarity between each small watershed unit in step 2 is:
[0018] For each small watershed unit, the hydrological characteristic indicators extracted, including land use type, soil texture type, river width, beach range, reservoir area, river surface area, pond area, and crop growth, are used to construct hydrological similarity elements to calculate the similarity between each small watershed unit.
[0019] For the categorical hydrological characteristic indicators, i.e., land use type or soil texture type, the hydrological similarity element S(A,B) between small watershed unit A and small watershed unit B is calculated using the following formula:
[0020]
[0021] In the formula, y A,j and B,j are the area proportions of the jth land use type or soil texture type in small watershed unit A and small watershed unit B, respectively; It is the average area ratio of all land use types or soil texture types in small watershed unit B;
[0022] For numerical hydrological characteristic indicators, the hydrological similarity element S(A,B) between small watershed unit A and small watershed unit B is:
[0023]
[0024] In the formula, y A and B are the hydrological characteristic index values of small watershed unit A and small watershed unit B respectively;
[0025] After calculating the similarity elements of small watershed unit A and small watershed unit B regarding various hydrological characteristic indicators, the comprehensive similarity δ(A, B) of the two watersheds is:
[0026]
[0027] In the formula, β I is the weight of the impact of the first hydrological characteristic index on the comprehensive similarity between small watershed unit A and small watershed unit B, β I ∈(0,1) and For β I To calculate the β of each hydrological characteristic index, firstly, the hydrological characteristic indexes are ranked according to their importance according to the hydrological characteristics of the study basin, and then the β of each hydrological characteristic index is calculated using the hierarchical analysis method. I ;
[0028] When the comprehensive similarity δ(A, B) satisfies 0.75≤δ(A, B)≤1, the small watershed unit A and the small watershed unit B are judged to be similar; similarly, the comprehensive similarity between all the small watershed units in the site watershed cluster is calculated, and all the small watershed units in the site watershed cluster are divided into several small watershed unit classes.
[0029] Furthermore, the long series of hydrological and meteorological data in step 3 refers to rainfall and runoff data for more than 10 years, including various representative years of large, medium and small water years. For flood events, there are no less than 50 events in humid areas and no less than 25 events in dry areas.
[0030] Furthermore, the Kalman filter principle equation in step 4 is:
[0031] Basic equation: W t =W 2,t +K t (W 1,t -W 2,t )
[0032] Prediction equation: W 2,t =Φ t W 2,t-1 +Γt u t
[0033] Where W t is the optimal value of soil moisture in the basin at time t, and is the value used to calibrate the initial state variables of the model parameters; W 1,t and W 2,t are the inversion results of surface soil moisture in the basin based on microwave remote sensing image data at time t and the simulation results of the hydrological model of soil moisture in the basin on a daily scale; K t is the Kalman gain matrix at time t; Φ t is the state transfer matrix at time t; Γ t is the control matrix at time t; u t is the control information matrix at time t.
[0034] Furthermore, in step 5, the integrated calibration of the hydrological model parameters of the site basin cluster using the DDPG reinforcement learning algorithm includes the following steps:
[0035] Step 51: The parameters of the hydrological model to be calibrated are determined:
[0036] For the hydrological model selected by the site basin cluster, the model parameter set is s = [h 1 ,h 2 ,…,h k ], k is the number of model parameters. It is assumed that the model parameters of each small watershed unit class in the site watershed cluster are different. If the site watershed cluster is divided into M small watershed unit classes, the set of hydrological model parameters to be calibrated for the entire site watershed cluster is S = {s 1 ,s 2 ,…,s M},in is the hydrological model parameter to be calibrated for the mth (m=1,2,…,M) small watershed unit class, and the set of hydrological model parameters to be calibrated for each site watershed is S station ={s 1 ,s 2 ,…,s H}, H is the number of small watershed unit types contained in the watershed of each station, H≤M;
[0037] Step 52: Establish reinforcement learning state space and action space:
[0038] According to the parameter value range, the state space and action space of the DDPG reinforcement learning algorithm are established, and the state of the hydrological model parameters of the entire site basin cluster at time t is defined as S t , the state of the basin hydrological model parameters at each station at time t is S t,station , the value range of the parameters to be calibrated in the hydrological model is used to constrain the action space of the model;
[0039] Step 53: Construct a reward value function:
[0040] For each site basin in the site basin cluster, it is assumed that the measured flow process of the outlet flood is Q o =[q 1 ,q 2 ,…,q N ], where q v (v=1,2,…,N) is the measured flow rate in the vth hour. At time t, according to the state S t,station The simulated flow process of flood at the basin outlet obtained by hydrological model simulation is Q s,t =[q' 1,t ,q' 2,t ,…,q' N,t ], at time t+1, according to the state S t+1,station , the simulated flow process at the basin outlet is Q s,t+1 =[q' 1,t+1 ,q' 2,t+1 ,…,q' N,t+1 ], where q' v,t and q' v,t+1 (v=1,2,…,N) are the simulated flow rates of the vth time period at time t and time t+1 respectively;
[0041] At time t and t+1, the NSE coefficient and the absolute value of the relative error REQ of the peak flow calculated from the simulated flow and the measured flow of the site basin are:
[0042]
[0043] In the formula, is the average value of the measured flow process; q m ,q' m,t and q' m,t+1 are the peak flows of the measured flow process, the simulated flow process at time t and t+1 respectively;
[0044] At time t, action a is performed t Make state S t,station Change to the state S at time t+1 t+1,station , defines the reward value r obtained by this process site basin t,station The calculation method is:
[0045]
[0046] In the formula, c 1 <0,c 2 、c 3 、c 4 >0 and c 2 >c 3、c 4 ;
[0047] According to formula (6), the reward value r of each station basin in the cluster is calculated: t,station The sum of all site basin reward values is the reward value r of the entire site basin cluster. t ;
[0048] Step 54: Use the DDPG reinforcement learning algorithm to calibrate the hydrological model parameters of the site basin cluster: The DDPG reinforcement learning algorithm itself is a type of Actor-Critic algorithm, and its structure includes an Actor network and a Critic network. Compared with the Actor-Critic algorithm, the DDPG reinforcement learning algorithm introduces random noise η in the behavior strategy for exploration. The specific process of using the DDPG reinforcement learning algorithm to calibrate the hydrological model parameters is as follows:
[0049] ① Use random network parameters ω and θ to initialize the critic network Q ω (S,a) and Actor network μ θ (S), initialize the experience pool D and the random process η, which are used to conduct action exploration and obtain the initial state S of the environment 1 ;
[0050] ②Perform T cycles of calculation, select and execute action a t =μ θ (S t )+η, get reward r t , the environment state reaches S t+1 , will (S t ,a t ,r t ,S t+1 ) is stored in the experience pool D, and H tuples are sampled from D {(S i ,a i ,r i ,S i+1 )} i=1,...H , for each tuple, calculate y using the target network i =r i +γQ ω- (S i+1 ,μ θ (S i+1 ), based on minimizing the target loss Update the Critic network;
[0051] The sampled policy gradient is calculated as follows and the current Actor network is updated accordingly:
[0052]
[0053] At the same time, update the target network according to the learning rate τ to obtain ω - =τω+(1-τ)ω - ,θ - =τθ+(1-τ)θ - ;
[0054] ③Complete T cycles of calculations and output the optimal state to obtain the calibration result S of the hydrological model parameters of the site basin cluster * , to achieve integrated calibration of hydrological model parameters for site basin clusters.
[0055] Furthermore, the NSE and REQ qualification thresholds in step 6 are respectively NSE lim =0.9,REQ lim =5%.
[0056] The beneficial effects of the present invention are as follows: the multi-site watershed hydrological model parameter integrated calibration method based on reinforcement learning described in the present invention solves the problem of multi-site data integration application in areas with similar hydrological characteristics, realizes the regional integration of hydrological model parameter calibration, and improves the accuracy of the model initial value by assimilating data during the model warm-up period using the Kalman filter principle, reduces the error caused by the model initial value to flood simulation forecasting, and improves the efficiency and accuracy of hydrological model parameter calibration by adopting the DDPG reinforcement learning algorithm for integrated calibration of hydrological model parameters, providing a feasible way for optimizing the calibration of hydrological model parameters in areas without data, which is of great significance to hydrological model simulation and discipline development.
[0057] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific implementation methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] Figure 1 The figure is a schematic flow chart of the method of the present invention. DETAILED DESCRIPTION
[0059] The present invention discloses a multi-site basin hydrological model parameter integrated calibration method based on reinforcement learning, such as Figure 1 As shown, the method comprises the following steps:
[0060] Step 1: Divide all site watersheds into site watershed clusters: Based on the hydrological and meteorological characteristics of each site watershed, such as the average annual rainfall, average annual temperature, altitude, slope, land use type and soil texture type, a cluster analysis algorithm (such as the dynamic K-means clustering algorithm) is used to divide all site watersheds into several site watershed clusters.
[0061] Step 2: Classify the site watershed cluster into small watershed units: Based on the digital elevation model (DEM) and digital line map (DLG) data of each site watershed in the site watershed cluster, combined with the hydrological monitoring station and water conservancy project data, as well as remote sensing image data, land use and vegetation type, soil texture type data and administrative divisions, the natural topography, surface water catchment relationship, administrative divisions and other factors are comprehensively considered, and the small watershed unit is divided into 10km 2 The catchment area divides the watershed of each site into several small watershed units.
[0062] Based on the remote sensing image data of the watershed cluster of each site, the sample deep learning method is used to extract the watershed hydrological characteristic indicators of each small watershed unit in the cluster. The similarity index method is used to determine the similarity between each small watershed unit, and the small watershed units determined to be similar in the site watershed cluster are divided into the same small watershed unit class.
[0063] The extracted basin hydrological characteristic indicators mainly include categorical indicators and numerical indicators, as shown in Table 1. The categorical indicators include land use type and soil texture type. The land use types include evergreen coniferous forest, evergreen broad-leaved forest, deciduous coniferous forest, deciduous broad-leaved forest, mixed forest, closed shrubs and grass, open shrubs and grass, shrubs and grass, meadows, grasslands, swamps, cultivated land, urban land, cultivated land / natural vegetation, ice and snow covered land, wasteland, water, etc.; soil texture types include sandy soil, loamy sand, sandy loam, sandy clay loam, sandy clay, clay, clay loam, loam, silt loam, silt clay loam, silt clay, silt soil, etc. The numerical indicators include river width, beach range, reservoir area, river water surface area, pond area, crop growth, etc.
[0064] Table 1 Classification of watershed hydrological characteristic indicators
[0065]
[0066] The above-mentioned sample deep learning method adopts the CNN remote sensing image classification method, that is, the convolutional neural network method, including a feature extraction layer and a feature mapping layer (classification recognition layer), which can realize local connection and weight sharing. The feature extraction layer includes a convolution layer, a pooling layer and an activation function. The convolution layer performs convolution calculations on the feature matching of each position of the original image through the feature vector. The feature image calculated is pooled to reduce the image, reduce the amount of calculation, and add nonlinear elements through the activation function. The feature mapping layer is to flatten multiple feature mapping layers into an array through a fully connected layer, and perform weighted summation with the fully connected layer weights obtained based on the model sample training to obtain a probability value of a numerical description of each result of the input image, thereby realizing sample deep learning, extracting hydrological feature values according to remote sensing image data, reducing the number of network free parameters, reducing the amount of calculation for extracting hydrological element feature values, and achieving better classification and extraction accuracy.
[0067] Based on the extracted hydrological characteristic indicators of each small watershed unit, the similarity index method is used to identify the similarity between small watershed units, and the small watershed units that are judged to be similar are divided into the same small watershed unit class. The specific judgment process is as follows:
[0068] For each small watershed unit, the extracted hydrological characteristic indicators (including land use type, soil texture type, river width, beach range, reservoir area, river water surface area, pond area, and crop growth conditions, a total of eight items) are used to construct hydrological similarity elements to calculate the similarity between each small watershed unit.
[0069] For the categorical hydrological characteristic indicators, i.e., land use type or soil texture type, the hydrological similarity element S(A,B) between small watershed unit A and small watershed unit B is calculated using the following formula:
[0070]
[0071] In the formula, y A,j and B,j are the area proportions of the jth land use type (soil texture type) in small watershed unit A and small watershed unit B, respectively; It is the average value of the area proportion of all land use types (soil texture types) in small watershed unit B.
[0072] For numerical hydrological characteristic indicators, the hydrological similarity element S(A,B) between small watershed unit A and small watershed unit B is:
[0073]
[0074] In the formula, y A and B They are the hydrological characteristic index values of small watershed unit A and small watershed unit B respectively.
[0075] After calculating the similarity elements of small watershed unit A and small watershed unit B regarding various hydrological characteristic indicators, the comprehensive similarity δ(A, B) of the two watersheds is:
[0076]
[0077] In the formula, β I is the weight of the impact of the first hydrological characteristic index on the comprehensive similarity between small watershed unit A and small watershed unit B, β I ∈(0,1) and For β I To calculate the β of each hydrological characteristic index, firstly, the hydrological characteristic indexes are ranked according to their importance according to the hydrological characteristics of the study basin, and then the β of each hydrological characteristic index is calculated using the hierarchical analysis method. I .
[0078] When the comprehensive similarity δ(A, B) satisfies 0.75≤δ(A, B)≤1, it is determined that small watershed unit A is similar to small watershed unit B. Similarly, the comprehensive similarity between all small watershed units in the site watershed cluster is calculated, and all small watershed units in the site watershed cluster are divided into several small watershed unit classes.
[0079] Step 3: Construct the hydrological model of the site basin cluster: For each site basin cluster, select appropriate hydrological models for different clusters based on the hydrological characteristics of the cluster basin. Before constructing the hydrological model, first determine whether the site basins in the cluster meet the modeling conditions. Only site basins that meet the modeling conditions can be modeled and parameter integration calibration can be carried out.
[0080] The modeling condition is that the site basin has a long series of hydrological and meteorological data. The long series of hydrological and meteorological data refers to rainfall and runoff data of more than 10 years, which should include various representative years of large, medium and small water years. For floods, there should be no less than 50 floods in humid areas and no less than 25 floods in arid areas. The hydrological and meteorological data used for modeling include two time scales: daily and hourly. Daily hydrological and meteorological data are used to provide the initial state of the flood process used for parameter calibration; hourly hydrological and meteorological data are used for model parameter calibration verification; for the site basin that can be modeled, if a total of Y flood processes are divided, 0.7Y floods are used for model parameter calibration, and the remaining 0.3Y floods are used for model parameter verification.
[0081] Step 4: Determine the initial state of the flood used for model parameter calibration: Comprehensively utilize the surface soil moisture obtained based on microwave remote sensing inversion and the daily-scale hydrological simulation results of the station basin to perform data assimilation to obtain the soil moisture before the flood in each station basin.
[0082] Microwave remote sensing image data is used to provide the inversion results of 30 cm surface soil moisture in the basin. 1 ; According to the hydrological and meteorological characteristics of the site basin, select the appropriate evapotranspiration calculation model, perform continuous simulation based on daily hydrological and meteorological data, and simulate the soil moisture change process in the basin. 2 The Kalman filter principle is used to assimilate the two soil moisture data to obtain the optimal soil moisture value W before the flood, and to determine the initial state of the flood used for calibrating the parameters of the site basin hydrological model.
[0083] The Kalman filter principle takes into account data observation errors and model system errors, thereby improving the accuracy of model simulation and providing more accurate initial values for flood simulation. The principle equation is as follows:
[0084] Basic equation: W t =W 2,t +K t (W1,t -W 2,t )
[0085] Prediction equation: W 2,t =Φ t W 2,t-1 +Γ t u t
[0086] Where W t is the optimal value of soil moisture in the basin at time t, and is the value used to calibrate the initial state variables of the model parameters; W 1,t and W 2,t are the inversion results of surface soil moisture in the basin based on microwave remote sensing image data at time t and the simulation results of the hydrological model of soil moisture in the basin on a daily scale; K t is the Kalman gain matrix at time t; Φ t is the state transfer matrix at time t; Γ t is the control matrix at time t; u t is the control information matrix at time t.
[0087] Step 5, integrated calibration of hydrological model parameters of site basin clusters: The deep deterministic policy gradient (DDPG) reinforcement learning algorithm is used to perform integrated calibration of hydrological model parameters of site basin clusters. According to step 3, 0.7Y floods in each site basin are used for model parameter calibration, and the remaining 0.3Y flood data are used for model parameter verification. Based on the results of step 4, the pre-flood soil moisture (i.e., initial state) of each site basin is set, and based on the divided small basin unit class of the site basin cluster, the DDPG reinforcement learning algorithm is used to realize the integrated calibration of the hydrological model parameters of the site basin cluster using hourly hydrological and meteorological data.
[0088] The specific steps of using DDPG reinforcement learning algorithm to perform integrated calibration of hydrological model parameters of site basin clusters are as follows:
[0089] Step 51: The parameters of the hydrological model to be calibrated are determined:
[0090] For the hydrological model selected by the site basin cluster, the model parameter set is s = [h 1 ,h 2 ,…,h k ], k is the number of model parameters. It is assumed that the model parameters of each small watershed unit class in the site watershed cluster are different. If the site watershed cluster is divided into M small watershed unit classes, the set of hydrological model parameters to be calibrated for the entire site watershed cluster is S = {s 1 ,s 2 ,…,s M},in is the hydrological model parameter to be calibrated for the mth (m=1,2,…,M) small watershed unit class, and the set of hydrological model parameters to be calibrated for each site watershed is S station ={s 1 ,s 2 ,…,s H}, H is the number of small watershed unit types contained in the watershed of each site, H≤M.
[0091] Step 52: Establish reinforcement learning state space and action space:
[0092] According to the parameter value range, the state space and action space of the DDPG reinforcement learning algorithm are established. Its state space is shown in Table 2:
[0093] Table 2 State space of DDPG reinforcement learning algorithm
[0094]
[0095] Define the state of the hydrological model parameters of the entire site basin cluster at time t as S t , the state of the basin hydrological model parameters at each station at time t is S t,station The value range of the parameters to be calibrated in the hydrological model is used to constrain the action space of the model.
[0096] Step 53: Construct a reward value function:
[0097] For each site basin in the site basin cluster, it is assumed that the measured flow process of the outlet flood is Q o =[q 1 ,q 2 ,…,q N ], where q v (v=1,2,…,N) is the measured flow rate in the vth hour. At time t, according to the state S t,station The simulated flow process of flood at the basin outlet obtained by hydrological model simulation is Q s,t =[q' 1,t ,q' 2,t ,…,q' N,t ], at time t+1, according to the state S t+1,station , the simulated flow process at the basin outlet is Q s,t+1 =[q' 1,t+1 ,q' 2,t+1 ,…,q' N,t+1 ], where q' v,t and q' v,t+1 (v=1,2,…,N) is the simulated flow rate in the vth time period at time t and time t+1 respectively.
[0098] At time t and t+1, the NSE coefficient and the absolute value of the relative error REQ of the peak flow calculated from the simulated flow and the measured flow of the site basin are:
[0099]
[0100] In the formula, is the average value of the measured flow process; q m ,q' m,t and q' m,t+1 They are the peak flows of the measured flow process and the simulated flow process at time t and t+1 respectively.
[0101] At time t, action a is performed t Make state S t,station Change to the state S at time t+1 t+1,station , defines the reward value r obtained by this process site basin t,station The calculation method is:
[0102]
[0103] In the formula, c 1 <0,c 2 、c 3 、c 4 >0 and c 2 >c 3 、c 4 .
[0104] According to formula (6), the reward value r of each station basin in the cluster is calculated: t,station The sum of all site basin reward values is the reward value r of the entire site basin cluster. t .
[0105] Step 54: Use the DDPG reinforcement learning algorithm to calibrate the parameters of the site basin cluster hydrological model:
[0106] The DDPG reinforcement learning algorithm itself is a type of Actor-Critic algorithm. Its structure includes an Actor network (strategy network) and a Critic network (value network). Compared with the Actor-Critic algorithm, the DDPG reinforcement learning algorithm introduces random noise η to explore the behavior strategy. The specific process of using the DDPG reinforcement learning algorithm to calibrate the parameters of the hydrological model is as follows:
[0107] ① Use random network parameters ω and θ to initialize the critic network Q ω (S,a) and Actor network μ θ (S), initialize the experience pool D and the random process η, which are used to conduct action exploration and obtain the initial state S of the environment 1 .
[0108] ②Perform T cycles of calculation, select and execute action a t =μ θ (S t )+η, get reward r t , the environment state reaches S t+1 , will (S t ,a t ,r t ,S t+1 ) is stored in the experience pool D, and H tuples are sampled from D {(S i ,a i ,r i ,S i+1 )} i=1,...H , for each tuple, calculate y using the target network i =r i +γQ ω- (S i+1 ,μ θ (S i+1 ), based on minimizing the target loss Update the Critic network.
[0109] The sampled policy gradient is calculated as follows and the current Actor network is updated accordingly:
[0110]
[0111] At the same time, update the target network according to the learning rate τ to obtain ω - =τω+(1-τ)ω - ,θ - =τθ+(1-τ)θ - .
[0112] ③Complete T cycles of calculations and output the optimal state to obtain the calibration result S of the hydrological model parameters of the site basin cluster * , to achieve integrated calibration of hydrological model parameters for site basin clusters.
[0113] Step 6: Evaluation of the simulation accuracy of the hydrological model after parameter calibration and calibration iteration: The Nash efficiency coefficient NSE and the absolute value of the relative error of the peak flow REQ index are used to evaluate the calibration accuracy of the parameter integration. For each site basin, the site basin cluster hydrological model parameter set S obtained by step 5 is * , extract the hydrological model parameter calibration results S of the site basin station * , simulate the rainfall response process of floods in the site basin during the verification period, and calculate the NSE, REQ and their mean values (denoted as and ). Further, we focus on the simulation accuracy of the entire site watershed cluster and evaluate the rationality of the parameter calibration results. Calculate the simulation accuracy of all site watersheds in the site watershed cluster separately. and The mean of NSE and REQ is set strictly. lim 、REQ lim ) were 0.90 and 5%, respectively, that is, the qualified range was NSE ≥ 0.90 and REQ ≤ 5%, and all the basins of the sites in the calibration and verification period were determined. and Is the mean of within the above qualified range? If so, it is considered that the parameter set S * If the accuracy requirement is met, otherwise adjust the state space and the number of loop calculations T of the DDPG reinforcement learning algorithm parameters, and repeat the parameter calibration process until the NSE and REQ indicators are qualified.
[0114] If NSE is set lim =0.9 and REQ lim =5% parameter set S * The accuracy requirement has not been met. Consider reducing NSE appropriately. lim , improve REQ lim (NSE lim >0,REQ lim >0), and repeat the calibration process until the indicators are qualified. At this point, the integrated calibration of the multi-site basin hydrological model parameters is completed.
[0115] Finally, it should be noted that the above is only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred arrangement scheme, a person skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.
Claims
1. A multi-site basin hydrological model parameter integrated calibration method based on reinforcement learning, characterized in that: The method comprises the following steps: Step 1: Divide all site watersheds into site watershed clusters: Based on the hydrological and meteorological characteristics of each site watershed, use cluster analysis algorithm to divide all site watersheds into several site watershed clusters; Step 2: Divide the site watershed cluster into small watershed units: Based on the digital elevation model DEM and digital line map DLG data of each site watershed in the site watershed cluster, combined with the hydrological monitoring site and water conservancy project data, as well as remote sensing image data, land use and vegetation type, soil texture type data and administrative divisions, the natural topography, surface water catchment relationship and administrative division factors are comprehensively considered, and each site watershed is divided into several small watershed units according to the set catchment area; Based on the remote sensing image data of each site watershed cluster, the sample deep learning method is used to extract the watershed hydrological characteristic indicators of each small watershed unit in the cluster, and the similarity index method is used to determine the similarity between each small watershed unit, and the small watershed units determined to be similar in the site watershed cluster are divided into the same small watershed unit class; Step 3, constructing a hydrological model of a site basin cluster: judging whether each site basin in the site basin cluster meets the modeling conditions, constructing a hydrological model for the site basins that meet the modeling conditions, wherein the hydrological model is selected according to the hydrological characteristics of the site basin cluster; the modeling condition is that the site basin has a long series of hydrological and meteorological data, and the hydrological and meteorological data include daily-scale hydrological and meteorological data and hourly-scale hydrological and meteorological data; for a site basin that meets the modeling conditions, if a total of Y flood processes are divided, 0.7Y floods are used for model parameter calibration, and the remaining 0.3Y floods are used for model parameter verification; Step 4, determine the initial state of the flood used for model parameter calibration: obtain the inversion results of the surface soil moisture of the basin based on microwave remote sensing image data; select the evapotranspiration calculation model according to the hydrological and meteorological characteristics of the site basin, and perform continuous simulation based on daily hydrological and meteorological data to simulate the change process of soil moisture in the basin; use the Kalman filter principle to assimilate the two soil moisture data to obtain the optimal soil moisture value before the flood, and determine the initial state of the flood used for the calibration of the hydrological model parameters of the site basin; Step 5, integrated calibration of hydrological model parameters of site basin clusters: According to step 3, 0.7Y floods in each site basin are used for model parameter calibration, and the remaining 0.3Y flood data are used for model parameter verification. Based on the results of step 4, the initial soil moisture of each flood in the site basin is set, and based on the divided small basin unit class of the site basin cluster, hourly hydrological and meteorological data are used to implement the integrated calibration of the hydrological model parameters of the site basin cluster using the DDPG reinforcement learning algorithm; Step 6: Evaluation of the simulation accuracy of the hydrological model after parameter calibration and calibration iteration: The Nash efficiency coefficient NSE and the peak flow relative error absolute value REQ indicators are used to evaluate the calibration accuracy of the parameter integration. For each site basin, the site basin cluster hydrological model parameter set S obtained by step 5 is used. * , extract the calibration results of hydrological model parameters of the site basin S station * , simulate the rainfall response process of floods in the site basin during the verification period, and calculate the NSE, REQ and their mean values of all floods in the calibration and verification period of each site basin, denoted as and Calculate all site watersheds in the site watershed cluster separately and The NSE and REQ qualification thresholds are set to be NSE lim 、REQ lim , determine the basin of all stations during the calibration and validation period and Is the mean of within the above qualified range? If so, it is considered that the parameter set S * If the accuracy requirement is met, otherwise the state space and the number of loop calculations T of the DDPG reinforcement learning algorithm parameters are adjusted, and the parameter calibration process is repeated until the NSE and REQ indicators are qualified; if the parameter set S is below the set NSE and REQ qualified thresholds, * If the accuracy requirement cannot be met, reduce NSE lim , improve REQ lim , NSE lim >0,REQ lim >0, repeat the calibration process until the indicators are qualified.
2. According to claim 1, a multi-site watershed hydrological model parameter integrated calibration method based on reinforcement learning is characterized in that: The hydrometeorological characteristics described in step 1 include: average annual rainfall, average annual temperature, altitude, slope, land use type and soil texture type.
3. The method for integrated calibration of multi-site watershed hydrological model parameters based on reinforcement learning according to claim 1 is characterized in that: The catchment area set in step 2 is 10km 2 .
4. The method for integrated calibration of multi-site watershed hydrological model parameters based on reinforcement learning according to claim 1 is characterized in that: The watershed hydrological characteristic indicators in step 2 include categorical indicators and numerical indicators; the categorical indicators include land use types and soil texture types, the land use types include evergreen coniferous forests, evergreen broad-leaved forests, deciduous coniferous forests, deciduous broad-leaved forests, mixed forests, closed shrubs and grasses, open shrubs and grasses, shrubs and grasses, meadows, grasslands, swamps, cultivated land, urban land, cultivated land / natural vegetation, ice and snow covered land, wasteland, and water; the soil texture types include sandy soil, loamy sand, sandy loam, sandy clay loam, sandy clay, clay, clay loam, loam, silt loam, silt clay loam, silt clay, and silt soil; the numerical indicators include river width, beach range, reservoir area, river water surface area, pond area, and crop growth.
5. The method for integrated calibration of multi-site watershed hydrological model parameters based on reinforcement learning according to claim 1 is characterized in that: The sample deep learning method described in step 2 adopts the CNN remote sensing image classification method, that is, the convolutional neural network method, including a feature extraction layer and a feature mapping layer. The feature extraction layer includes a convolution layer, a pooling layer and an activation function. The convolution layer performs convolution calculations on feature matching of each position of the original image through feature vectors. The feature image calculated is pooled to reduce the image size, reduce the amount of calculation, and add nonlinear elements through the activation function; The feature mapping layer flattens multiple feature mapping layers into an array through a fully connected layer, and performs weighted summation with the fully connected layer weights obtained based on model sample training to obtain a probability value of a numerical description of each result of the input image, thereby achieving deep learning of samples, extracting hydrological feature values based on remote sensing image data, reducing the number of network free parameters, reducing the amount of calculation for extracting hydrological element feature values, and achieving classification and extraction accuracy.
6. The method for integrated calibration of multi-site watershed hydrological model parameters based on reinforcement learning according to claim 4 is characterized in that: The specific process of using the similarity index method to determine the similarity between each small watershed unit in step 2 is as follows: For each small watershed unit, the hydrological characteristic indicators extracted, including land use type, soil texture type, river width, beach range, reservoir area, river surface area, pond area, and crop growth, are used to construct hydrological similarity elements to calculate the similarity between each small watershed unit. For the categorical hydrological characteristic indicators, i.e., land use type or soil texture type, the hydrological similarity element S(A,B) between small watershed unit A and small watershed unit B is calculated using the following formula: In the formula, y A,j and B,j are the area proportions of the jth land use type or soil texture type in small watershed unit A and small watershed unit B, respectively; It is the average area ratio of all land use types or soil texture types in small watershed unit B; For numerical hydrological characteristic indicators, the hydrological similarity element S(A,B) between small watershed unit A and small watershed unit B is: In the formula, y A and B are the hydrological characteristic index values of small watershed unit A and small watershed unit B respectively; After calculating the similarity elements of small watershed unit A and small watershed unit B regarding various hydrological characteristic indicators, the comprehensive similarity δ(A, B) of the two watersheds is: In the formula, β I is the weight of the impact of the first hydrological characteristic index on the comprehensive similarity between small watershed unit A and small watershed unit B, β I ∈(0,1) and For β I To calculate the β of each hydrological characteristic index, firstly, the hydrological characteristic indexes are ranked according to their importance according to the hydrological characteristics of the study basin, and then the β of each hydrological characteristic index is calculated using the hierarchical analysis method. I ; When the comprehensive similarity δ(A, B) satisfies 0.75≤δ(A, B)≤1, the small watershed unit A and the small watershed unit B are judged to be similar; similarly, the comprehensive similarity between all the small watershed units in the site watershed cluster is calculated, and all the small watershed units in the site watershed cluster are divided into several small watershed unit classes.
7. The method for integrated calibration of multi-site watershed hydrological model parameters based on reinforcement learning according to claim 1, characterized in that: The long series of hydrological and meteorological data mentioned in step 3 refers to rainfall and runoff data for more than 10 years, including various representative years of large, medium and small water years. For flood events, there are no less than 50 events in humid areas and no less than 25 events in dry areas.
8. The method for integrated calibration of multi-site watershed hydrological model parameters based on reinforcement learning according to claim 1, characterized in that: The Kalman filter principle equation described in step 4 is: Basic equation: W t =W 2,t +K t (W 1,t -W 2,t ) Prediction equation: W 2,t =Φ t W 2,t-1 +Γ t u t Where W t is the optimal value of soil moisture in the basin at time t, and is the value used to calibrate the initial state variables of the model parameters; W 1,t and W 2,t are the inversion results of surface soil moisture in the basin based on microwave remote sensing image data at time t and the simulation results of the hydrological model of soil moisture in the basin on a daily scale; K t is the Kalman gain matrix at time t; Φ t is the state transfer matrix at time t; Γ t is the control matrix at time t; u t is the control information matrix at time t.
9. The method for integrated calibration of multi-site watershed hydrological model parameters based on reinforcement learning according to claim 1, characterized in that: In step 5, the integrated calibration of the hydrological model parameters of the site basin cluster using the DDPG reinforcement learning algorithm includes the following steps: Step 51: The parameters of the hydrological model to be calibrated are determined: For the hydrological model selected by the site basin cluster, the model parameter set is s = [h1,h2,…,h k ], k is the number of model parameters. It is assumed that the model parameters of each small watershed unit class in the site watershed cluster are different. If the site watershed cluster is divided into M small watershed unit classes, the set of hydrological model parameters to be calibrated for the entire site watershed cluster is S = {s 1 ,s 2 ,…,s M },in is the hydrological model parameter to be calibrated for the mth (m=1,2,…,M) small watershed unit class, and the set of hydrological model parameters to be calibrated for each site watershed is S station ={s 1 ,s 2 ,…,s H }, H is the number of small watershed unit types contained in the watershed of each station, H≤M; Step 52: Establish reinforcement learning state space and action space: According to the parameter value range, the state space and action space of the DDPG reinforcement learning algorithm are established, and the state of the hydrological model parameters of the entire site basin cluster at time t is defined as S t , the state of the basin hydrological model parameters at each station at time t is S t,station , the value range of the parameters to be calibrated in the hydrological model is used to constrain the action space of the model; Step 53: Construct a reward value function: For each site basin in the site basin cluster, it is assumed that the measured flow process of the outlet flood is Q o =[q1,q2,…,q N ], where q v (v=1,2,…,N) is the measured flow rate in the vth hour. At time t, according to the state S t,station The simulated flow process of flood at the basin outlet obtained by hydrological model simulation is Q s,t =[q′ 1,t ,q' 2,t ,…,q' N,t ], at time t+1, according to the state S t+1,station , the simulated flow process at the basin outlet is Q s,t+1 =[q′ 1,t+1 ,q' 2,t+1 ,…,q' N,t+1 ], where q' v,t and q' v,t+1 (v=1,2,…,N) are the simulated flow rates of the vth time period at time t and time t+1 respectively; At time t and t+1, the NSE coefficient and the absolute value of the relative error REQ of the peak flow calculated from the simulated flow and the measured flow of the site basin are: In the formula, is the average value of the measured flow process; q m ,q′ m,t and q′ m,t+1 are the peak flows of the measured flow process, the simulated flow process at time t and t+1 respectively; At time t, action a is performed t Make state S t,station Change to the state S at time t+1 t+1,station , defines the reward value r obtained by this process site basin t,station The calculation method is: Wherein, c1<0, c2, c3, c4>0 and c2>c3, c4; According to formula (6), the reward value r of each station basin in the cluster is calculated: t,station The sum of all site basin reward values is the reward value r of the entire site basin cluster. t ; Step 54: Use the DDPG reinforcement learning algorithm to calibrate the hydrological model parameters of the site basin cluster: The DDPG reinforcement learning algorithm itself is a type of Actor-Critic algorithm, and its structure includes an Actor network and a Critic network. Compared with the Actor-Critic algorithm, the DDPG reinforcement learning algorithm introduces random noise η in the behavior strategy for exploration. The specific process of using the DDPG reinforcement learning algorithm to calibrate the hydrological model parameters is as follows: ① Use random network parameters ω and θ to initialize the critic network Q ω (S, a) and Actor network μ θ (S), initialize the experience pool D and the random process η to conduct action exploration and obtain the initial state S1 of the environment; ②Perform T cycles of calculation, select and execute action a t = μ θ (S t )+η, get reward r t , the environment state reaches S t+1 , will (S t , a t , r t , S t+1 ) is stored in the experience pool D, and H tuples are sampled from D {(S i , a i , r i , S i+1 )} i=1,...H , for each tuple, calculate y using the target network i =r i +γQ ω -(S i+1 , μ θ (S i+1 ), based on minimizing the target loss Update the Critic network; The sampled policy gradient is calculated as follows and the current Actor network is updated accordingly: At the same time, update the target network according to the learning rate τ to obtain ω - =τω+(1-τ)ω - ,θ - =τθ+(1-τ)θ - ; ③Complete T cycles of calculations and output the optimal state to obtain the calibration result S of the hydrological model parameters of the site basin cluster * , to achieve integrated calibration of hydrological model parameters for site basin clusters.
10. The method for integrated calibration of multi-site watershed hydrological model parameters based on reinforcement learning according to claim 1, characterized in that: The NSE and REQ qualification thresholds in step 6 are NSE lim =0.9,REQ lim =5%.
