Distributed hydrological model parameter sensitivity analysis and calibration method based on LHS-GAS-BP
By combining Latin hypercube sampling and genetic algorithm to optimize the BP neural network in the distributed hydrological model, the sensitivity analysis of independent variable incremental disturbance is carried out, which solves the problems of high cost of parameter calibration and inefficiency of manual trial and error method, and realizes Efficient identification and optimization of hydrological model parameters.
Patent Information
- Application Number
- CN202410735391.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-08-30
AI Technical Summary
In distributed hydrological models, there are many parameters and spatial variability, which results in high cost of parameter calibration and optimization. Existing sensitivity analysis methods have limitations and cannot effectively identify relatively sensitive parameters in the model, and manual trial and error methods are subjective. Impact and inefficiency issues.
The Latin hypercube sampling method combined with the genetic algorithm is used to optimize the BP neural network, and the independent variable incremental perturbation method is used to conduct global sensitivity analysis, identify key parameters, reduce parameter dimensions, improve calculation efficiency, and derive the change rate of the dependent variable through Taylor's mean value theorem. Nonlinear mapping to achieve parameter sensitivity analysis and calibration.
It effectively identifies relatively sensitive parameters in the hydrological model, reduces computational costs, avoids the subjective impact of manual trial and error, improves the efficiency and accuracy of parameter calibration, and realizes optimization of model parameters and uncertainty analysis.
Smart Images

Figure CN118569090A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of distributed hydrological models, and in particular to a parameter sensitivity analysis and calibration method applicable to a LHS-GAS-BP distributed hydrological model. Background Art
[0002] There are many parameters in hydrological models, and most of them also need to consider spatial variability. Especially in distributed hydrological models, different model parameters have different influences on model outputs, and directly calibrating and optimizing parameters will undoubtedly cause huge waste of computational costs. Sensitivity analysis helps to identify relatively sensitive parameters in the model, reduce parameter dimensions, reduce model computational costs, and provide support for model parameter optimization and uncertainty analysis.
[0003] Sensitivity analysis is a difficult problem in the application and development of distributed hydrological models. Common parameter sensitivity analysis methods can be divided into local sensitivity analysis and global sensitivity analysis. The local sensitivity analysis method only examines the impact of a single parameter on the model, ignoring the interaction between model parameters. The global sensitivity analysis method can simultaneously consider the impact of multiple factors on the model output and the impact of the interaction between factors on the model output. It can fully understand the sensitivity of each factor and is suitable for hydrological models with many parameters.
[0004] Common global sensitivity analysis includes multiple regression, RSA, Morris, FAST, Sobol, Extend FAST, GLUE and other methods, which basically perturb the independent variables to analyze the sensitivity of the independent variables to the dependent variables, such as applying white noise interference to the network input. The present invention introduces independent variable increments, considers the practicality of sensitivity, and proposes a parameter sensitivity analysis and calibration method based on the LHS-GAS-BP distributed hydrological model, which provides a new idea for global parameter sensitivity analysis in the hydrological field, and solves the inefficiency of determining hydrological model parameters by manual trial and error in the prior art. Summary of the invention
[0005] The purpose of the present invention is to provide a parameter sensitivity analysis and calibration method based on the LHS-GAS-BP distributed hydrological model, which incorporates the Latin hypercube sampling method to ensure the robustness and effectiveness of the parameter sensitivity analysis. At the same time, the genetic algorithm is used to optimize the BP neural network to effectively avoid the local minimum defects that are prone to occur in the original BP neural network. It has the advantages of fast convergence speed and high precision, and overcomes the inefficiency of determining the parameters of the hydrological model by manual trial and error and the influence of subjective factors.
[0006] To achieve the above object, the present invention adopts the following technical solutions: The method for analyzing and calibrating the parameters of the LHS-GAS-BP distributed hydrological model according to the present invention comprises the following steps: S1, obtain the hydrological, meteorological and geographical data required for the hydrological model; S2, construct a distributed hydrological model and determine the value range of each parameter in the hydrological model; S3, generating a number of input samples using a Latin hypercube parameter sampling algorithm according to the value range of each parameter; S4, inputting the input sample into the distributed hydrological model, and simulating to obtain corresponding output results; S5, calculating the average relative error between the measured value of the cross-sectional flow at the outlet of the hydrological monitoring station and the output result, and taking the average relative error as the final output result; S6, constructing a BP neural network model based on genetic algorithm optimization, and training the model using the input samples of step S3 and the final output results determined in step S5; S7, randomly generating a hydrological model parameter data set, substituting a set of hydrological model parameters into the trained BP neural network model based on genetic algorithm optimization to calculate and obtain a first model output; S8, perturbing a certain parameter and substituting it into the model again to obtain a second model output; S9, summing and averaging the absolute values of the differences between the outputs of the first model and the outputs of the second model for the same disturbance parameter as the sensitivity of the parameter to the hydrological model; S10, repeating steps S7 to S9 to determine the sensitivity of each parameter to the hydrological model; S11, according to the sensitivity, select several key parameters with higher sensitivity according to the needs, calibrate the key parameters, and determine the optimal parameters of the hydrological model.
[0007] Furthermore, in step S1, the hydrological and meteorological data include flow, evapotranspiration, and rainfall runoff at the section at the outlet of the hydrological monitoring station obtained from the hydrological monitoring station; the geographic data include land use, soil, terrain elevation, slope, and slope direction.
[0008] Furthermore, in step S6, the hidden layer nodes of the BP neural network model optimized based on the genetic algorithm are 30-20, the transfer function is an S-type logsig function, and the initialization weights of the features in the model are randomly generated in the interval [-1, 1].
[0009] Furthermore, in step S6, the input sample and the output result are normalized before use.
[0010] Furthermore, to ensure the stability of the hydrological model, the same parameter in step S9 must include at least three first model outputs and second model outputs from upstream to downstream.
[0011] Furthermore, the parameter calibration in step S11 is specifically to adjust the value of the key parameter according to the value range of each parameter in the hydrological model, substitute it into the hydrological model to simulate and obtain the simulation results at different times corresponding to different key parameter groups; calculate the average of the sum of the absolute values of the differences between the simulation results at each time in each group of key parameters and the observed values at the corresponding time; the key parameter group corresponding to the minimum average is the optimal parameter group of the hydrological model.
[0012] The advantages of the present invention are that according to the sensitivity definition of the rate of change of the dependent variable caused by the coupled change of the independent variable, Taylor's middle value theorem is used to perform nonlinear polynomial expansion, a nonlinear mapping ∂Y / ∂X(X,ΔX) of the rate of change of the dependent variable according to the independent variable and its increment is derived, and a BP network is used to identify the mapping relationship; an independent variable increment ΔX=0 disturbance is introduced, and the difference between ∂Y / ∂X(X,ΔX) and ∂Y / ∂X(X,0) is calculated, which is the rate of change of the dependent variable caused by the independent variable disturbance, and the definition of sensitivity becomes more practical.
[0013] At the same time, the present invention uses genetic algorithms to optimize the weights and thresholds of the BP neural network, and improves the defect that the BP neural network learning algorithm is prone to fall into local minima. Based on the practical definition of sensitivity, the independent variable increment perturbation method is introduced to perform parameter sensitivity analysis. As a nonlinear global sensitivity analysis method, the present invention uses independent variables, dependent variables and their amplitudes in time series to simulate the changes in dependent variables caused by independent variables. The definition of the sensitivity of the dependent variable to the independent variable is based on the entire value space, which helps to identify relatively sensitive parameters in the model, reduce parameter dimensions, reduce model calculation costs, and provide support for model parameter optimization and uncertainty analysis.
[0014] Moreover, the present invention overcomes the subjective influence of manual trial and error on the calibration of hydrological model parameters. Through batch execution of models and batch extraction of results, the model operation and goodness of fit evaluation can be automated, the efficiency of parameter adjustment can be improved, and compared with other parameter calibration steps, it is simpler and faster, and can complete the parameter calibration process more accurately, effectively and quickly. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 It is a flow chart of the method of the present invention.
[0016] Figure 2 It is the stability analysis result of the method of the present invention. DETAILED DESCRIPTION
[0017] The technical solutions in the embodiments of the present invention are described clearly and completely below. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0018] like Figure 1 As shown, the parameter sensitivity analysis and calibration method based on the LHS-GAS-BP distributed hydrological model of the present invention comprises the following steps: S1, obtaining the hydrological and meteorological data and geographic data required for the hydrological model. The hydrological and meteorological data include flow, evapotranspiration, rainfall runoff and other data at the section of the hydrological monitoring station outlet obtained from the hydrological monitoring station; the geographic data include land use, soil, terrain elevation, slope, slope direction and other data.
[0019] S2, based on the collected hydrological and meteorological data and geographic data, construct a distributed hydrological model and determine the value range of each parameter in the hydrological model.
[0020] S3, according to the value range of each parameter in the hydrological model, a number of input samples are generated using the Latin hypercube parameter sampling algorithm.
[0021] S4, inputting the input sample into the distributed hydrological model, and simulating to obtain corresponding output results.
[0022] For example, if 100 sets of input samples are generated using the Latin hypercube parameter sampling algorithm, the distributed hydrological model is called 100 times according to these 100 sets of input samples, and a total of 100 hydrological model output results can be obtained. Each input sample corresponds to an output result.
[0023] S5, calculating the average relative error between the historical measured value of the cross-sectional flow at the outlet of the hydrological monitoring station and the output result, and taking the average relative error as the final output result.
[0024] S6, constructing a BP neural network model based on genetic algorithm (GAS) optimization, and training the model using the input samples of step S3 and the final output results determined in step S5.
[0025] The BP algorithm is good at local precise search but is prone to fall into the insurmountable defect of local minimum points. The genetic algorithm is good at global search with probability selection as the main means but is insufficient for local precise search. The present invention adopts genetic algorithm to optimize the weights and thresholds of BP neural network, and improves the defect that BP neural network learning algorithm is prone to fall into local minimum points. The hidden layer nodes of the BP neural network model optimized by genetic algorithm in the present invention are 30-20, the transfer function is S-type logsig function, and the initialization weights of each feature in the model are randomly generated in the interval [-1, 1].
[0026] Before inputting the input samples of step S3 and the final output results determined in step S5 into the model for training, the input samples and the final output results need to be normalized because the input and output belong to different physical quantities, have different dimensions, and even have orders of magnitude differences.
[0027] S7, randomly generating a hydrological model parameter data set, substituting the hydrological model parameters into the trained BP neural network model based on genetic algorithm (GAS) optimization one by one for calculation, and obtaining a first model output.
[0028] S8, based on the hydrological model parameters calculated by the BP neural network model optimized by the genetic algorithm (GAS) in step S7, a certain parameter is disturbed and then substituted into the BP neural network model optimized by the genetic algorithm (GAS) again to obtain a second model output.
[0029] S9, summing up the absolute values of the differences between the first model outputs and the second model outputs of the same disturbance parameter and averaging them as the sensitivity of the parameter to the hydrological model. It should be noted that, in order to ensure the stability of the hydrological model, when calculating the sensitivity of the same disturbance parameter in step S9, at least three first model outputs and second model outputs of the disturbance parameter from upstream to downstream should be included.
[0030] S10, repeating steps S7 to S9 to determine the sensitivity of each hydrological model parameter to the hydrological model.
[0031] S11, according to the sensitivity, select several key parameters with higher sensitivity according to the needs, calibrate the key parameters, and determine the optimal parameters of the hydrological model.
[0032] Model parameter calibration refers to adjusting model parameters so that the model calculation results match the measured data. Through the calibration and verification of model parameters, the general model becomes a customized model, so that the model is more suitable for the actual situation in the study area and has better calculation accuracy.
[0033] Parameter calibration is to determine several groups of key parameter groups of the hydrological model based on historical hydrological data, substitute each key parameter group into the hydrological model simulation, and obtain the time series simulation results of each key parameter group. Calculate the average E of the sum of the absolute values of the differences between each time series simulation result and the corresponding time observation value in each key parameter. The formula is as follows: Where n is the total number of simulation results for each key parameter group at each time. simi is the hydrological model simulation result of the key parameter group at the i-th time. obsi is the observed value of the key parameter group at the i-th time. The smaller E is, the closer the simulation results of the hydrological simulation are to the measured values. The key parameter group corresponding to the minimum value of E is the optimal parameter group of the hydrological model.
[0034] The basic principle of the BP neural network optimized by genetic algorithm (GAS) in the present invention is as follows: according to and Calculate each independent variable Depend on arrive The increment and the dependent variable is arrive The relative increase ,in, , .
[0035] Suppose a system has a random variable based on a time series and ,and according to Change, that is is the dependent variable, Assume that the system sample series From 1 to In the process, there is a nonlinear deterministic mapping relationship , then the relationship expressed by the sample is as follows: (1) In the formula, is the sample size, is the independent variable dimension.
[0036] Assume that the inherent randomness of the system, that is, the chaos problem, is not considered. Depend on arrive exist , then there must be But in reality, ,and Not all 0, ,but When formula (2) can be expressed as (2) According to Taylor's middle value theorem, the right-hand side of formula (2) is Taylor-expanded as a multivariate function, and the second-order partial derivative is retained to obtain formula (3): (3) Combining formula (2) and (3), it can be further simplified to formula (4): (4) If you , then: (5) From formula (5), we can see that is the independent variable and its increment (Note the direction of the arrow) is denoted as , then: (6) All variables in formula (6) can be expressed as and Sample and Calculate the independent variable Depend on arrive The increment , new sample Substituted as input into the trained BP network, the network output is Then the influence of the independent variable disturbance on the dependent variable is ,Right now According to the sample The sensitivity of Calculate separately , substituting into formula (7), we finally get the dependent variable Y depending on the independent variable Sensitivity .
[0037] (7) Based on this principle, after obtaining the trained BP neural network model optimized by genetic algorithm, the present invention substitutes a set of hydrological model parameters into the trained BP neural network model optimized by genetic algorithm (GAS) to calculate and obtain the first model output. Then, based on the set of hydrological model parameters, a certain parameter is disturbed and substituted into the model again to obtain the second model output. After multiple calculations, the absolute values of the differences between the first model output and the second model output before and after the parameter disturbance are summed and averaged, that is, the sensitivity is calculated using formula (7).
[0038] After determining the key hydrological parameters that affect the hydrological model simulation results through sensitivity, the present invention automates the model operation and goodness of fit evaluation through batch model execution and batch result extraction, thereby improving the parameter adjustment efficiency. The command is called through the command interface to carry out automatic execution. After obtaining the model simulation results, the objective function is calculated using the measured data file. When the objective function reaches the predicted value, the optimal parameter data set is obtained.
[0039] like Figure 2 The data from the four different hydrological observation stations shown in the figure are used to perform three sensitivity calculations on the parameters of the hydrological model using the method described in the present invention. Figure 2 It can be seen that the sensitivity ranking of the hydrological model parameters of the four sites is consistent. The top five more sensitive hydrological parameters are surface runoff coefficient, crop coefficient, groundwater runoff coefficient, river confluence coefficient and seasonal runoff coefficient. The most sensitive parameter is the surface runoff coefficient L2. In the runoff structure of the hydrological model, surface runoff occupies a very large proportion, and the surface runoff coefficient L2 directly affects the runoff of surface runoff. The second is the crop coefficient. The change pattern during the crop growth process is from small to large in the early stage, reaching the maximum (about 1.0) during the vigorous growth period of crops, and gradually decreasing in the later stage. The size of the crop coefficient directly affects the actual evapotranspiration of crops, and then affects the soil water content. This shows that the stability of the method of the present invention is very good.
Claims
1. A parameter sensitivity analysis and calibration method based on LHS-GAS-BP distributed hydrological model, characterized by: The following steps are included: S1, obtain the hydrological, meteorological and geographical data required for the hydrological model; S2, construct a distributed hydrological model and determine the value range of each parameter in the hydrological model; S3, generating a number of input samples using a Latin hypercube parameter sampling algorithm according to the value range of each parameter; S4, inputting the input sample into the distributed hydrological model, and simulating to obtain corresponding output results; S5, calculating the average relative error between the measured value of the cross-sectional flow at the outlet of the hydrological monitoring station and the output result, and taking the average relative error as the final output result; S6, constructing a BP neural network model based on genetic algorithm optimization, and training the model using the input samples of step S3 and the final output results determined in step S5; S7, randomly generating a hydrological model parameter data set, substituting a set of hydrological model parameters into the trained BP neural network model based on genetic algorithm optimization to calculate and obtain a first model output; S8, perturbing a certain parameter and substituting it into the model again to obtain a second model output; S9, summing and averaging the absolute values of the differences between the outputs of the first model and the outputs of the second model for the same disturbance parameter as the sensitivity of the parameter to the hydrological model; S10, repeating steps S7 to S9 to determine the sensitivity of each parameter to the hydrological model; S11, according to the sensitivity, select several key parameters with higher sensitivity according to the needs, calibrate the key parameters, and determine the optimal parameters of the hydrological model.
2. The method for parameter sensitivity analysis and calibration based on the LHS-GAS-BP distributed hydrological model according to claim 1, characterized in that: In step S1, the hydrological and meteorological data include flow, evapotranspiration, and rainfall runoff at the section at the outlet of the hydrological monitoring station obtained from the hydrological monitoring station; the geographic data include land use, soil, terrain elevation, slope, and slope direction.
3. The method for parameter sensitivity analysis and calibration based on the LHS-GAS-BP distributed hydrological model according to claim 1, characterized in that: In step S6, the hidden layer nodes of the BP neural network model optimized based on the genetic algorithm are 30-20, the transfer function is an S-type logsig function, and the initialization weights of the features in the model are randomly generated in the interval [-1, 1].
4. The method for parameter sensitivity analysis and calibration based on the LHS-GAS-BP distributed hydrological model according to claim 1, characterized in that: In step S6, the input samples and the output results are normalized before use.
5. The method for parameter sensitivity analysis and calibration based on the LHS-GAS-BP distributed hydrological model according to claim 1, characterized in that: To ensure the stability of the hydrological model, the same parameter in step S9 must include at least three first model outputs and second model outputs from upstream to downstream.
6. The method for parameter sensitivity analysis and calibration based on the LHS-GAS-BP distributed hydrological model according to claim 1, characterized in that: The parameter calibration in step S11 is specifically to adjust the value of the key parameter according to the value range of each parameter in the hydrological model, substitute it into the hydrological model to simulate and obtain the simulation results at different times corresponding to different key parameter groups; calculate the average of the sum of the absolute values of the differences between the simulation results at each time in each group of key parameters and the observed values at the corresponding time; the key parameter group corresponding to the minimum average is the optimal parameter group of the hydrological model.
Citation Information
Cited By
Electric vehicle connector temperature rise prediction method based on LHS optimization GA-BP algorithm
CN119849302A
Electric vehicle connector temperature rise prediction method based on GA-BP algorithm optimized by LHS
CN119849302B
Multi-source feedback and iteration fused water affair data correction method and system
CN122286108A
A water affair data correction method and system fusing multi-source feedback and iteration
CN122286108B
