A spatial partitioning hybrid modeling approach based on a modular watershed modeling framework
Through the spatial partitioning hybrid modeling method based on the modular watershed modeling framework, the problem of insufficient model structure flexibility and spatial variability in the existing technology is solved, and a hydrological model construction with higher flexibility and simulation accuracy is achieved, which is suitable for Simulation of hydrological processes in complex watersheds.
Patent Information
- Application Number
- CN202410005267.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-03
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2044-01-03
AI Technical Summary
When the existing watershed modeling framework deals with watersheds with large spatial differences, the model structure has insufficient flexibility and spatial variability, cannot fully represent hydrological processes, and cannot effectively utilize the flow direction relationships between rasters generated by digital elevation models. Distributed physics simulation.
A spatial partitioning hybrid modeling method based on the modular watershed modeling framework is adopted. By constructing the initial modular watershed modeling framework SEIMS, the hydrological model process simulation code of different model structures is integrated to generate a hybrid structure hydrological model. The response unit performs data preprocessing and model structure configuration to realize model structure selection and simulation in different areas.
It improves the flexibility and spatial adaptability of the model, can flexibly compose different hydrological models, improves simulation accuracy and calculation efficiency, and is suitable for hydrological process simulation in different application scenarios.
Smart Images

Figure CN117725759B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of modular watershed modeling, and in particular to a spatial partition hybrid modeling method based on a modular watershed modeling framework. Background Art
[0002] The basin hydrological model describes and simulates the complex water cycle process in the real world through mathematical methods combined with computer implementation. It is an important method and means to solve water problems. The hydrological model discretizes the real world space into a number of basic simulation units with a hierarchical structure (the entire basin, sub-basin, hydrological response unit, grid, etc.); and generalizes the real world hydrological process into basin hydrological processes and algorithms with different complexities (from empirical formulas to physical or conceptual processes such as infiltration runoff and river confluence). Following different design methods and based on different assumptions, a large number of hydrological models with different structures have been developed. Under the constraints of different basins and available data, the appropriate model structure is not the same, and no model can be "universally applicable". Therefore, multiple hydrological model structures can be integrated into a specific hydrological modeling framework so that different model structures can be flexibly used in different application scenarios.
[0003] At present, the hydrological model structure constructed based on the basin modeling framework can be divided into two types from a spatial perspective: spatially uniform model structure and spatially variable model structure. The model structure constructed by the former is spatially invariant, which is a very practical approach in many cases and can achieve satisfactory results. However, when the spatial differences in basin processes cannot be ignored, such as in basins where the hydrological characteristics and factors affecting the hydrological process vary greatly in space, using only a single model structure will result in an inability to fully characterize the dominant hydrological process. The latter relies on the ability of the hydrological modeling framework and uses different model structures in different areas within the basin (such as different sub-basins, hydrological response units). However, so far, this type of method has limited support for partitioned mixed model structures. From an architectural perspective, it only supports conceptual models and cannot make good use of the flow direction relationship between grids generated based on the digital elevation model (DEM) to execute distributed physical simulation algorithms. In addition, the model structure can only act on specific discrete units, and cannot control the selection of different discrete units for different regions and enable the physical or conceptual hydrological processes and their combinations to run on discrete units as unrestricted as possible, which limits the flexibility and spatial adaptability of the constructed model structure. Summary of the invention
[0004] In order to overcome the shortcomings of the prior art, the purpose of the present invention is to provide a spatial partitioning hybrid modeling method based on a modular watershed modeling framework, which solves the problems of poor flexibility and spatial variability of the model structure constructed in the prior art.
[0005] To achieve the above object, the present invention provides the following solutions:
[0006] A spatial partitioning hybrid modeling method based on a modular watershed modeling framework includes:
[0007] Step 100: constructing an initial modular watershed modeling framework SEIMS; the initial modular watershed modeling framework SEIMS hybrid integrated grid and HRU units;
[0008] The process simulation codes of hydrological models with different model structures are integrated into the module library of the initial modular watershed modeling framework SEIMS, so that it has the ability to build hybrid structure hydrological models;
[0009] Performing data preprocessing according to the hybrid structure hydrological model's requirements for input data to obtain a spatial parameter data set based on grid units and a spatial parameter data set based on hydrological response units;
[0010] Write the model structure configuration files for each sub-basin in the basin and establish the hybrid structure hydrological model to be confirmed;
[0011] The hybrid structure hydrological model to be confirmed reads the corresponding configuration file according to the sub-basin;
[0012] According to the spatial parameter dataset of the grid unit and the spatial parameter dataset based on the HRU unit, check whether the model structure in the configuration file can be coupled. If not, return to the step "write the model structure configuration file of each sub-basin in the basin"; if yes, start the simulation and confirm the mixed structure hydrological model.
[0013] Preferably, the process simulation codes of different types of hydrological models are uniformly integrated into the initial modular watershed modeling framework SEIMS, so that it has the ability to construct a variety of hybrid partitioned hydrological models, including:
[0014] Integrate the model of physical process and physical algorithm to obtain the ability to build physical models;
[0015] Integrate conceptual models and conceptual algorithms to gain the ability to build conceptual models.
[0016] Preferably, the integration method of the integrated conceptual model and the conceptual algorithm is:
[0017] The conceptual model and its algorithm are divided into a slope runoff generation module and a slope runoff confluence module; wherein, the main algorithm of the original conceptual model of slope runoff generation uses a unit line method or a direct runoff method to converge the slope runoff to the outlet of the sub-basin;
[0018] Preferably, the method for constructing the initial modular watershed modeling framework SEIMS is:
[0019] Specify the spatial data of HRU unit division;
[0020] The spatial data divided by the designated HRU units are superimposed until the spatial data divided by all HRU units are superimposed, so as to construct an initial modular watershed modeling framework SEIMS.
[0021] Preferably, data preprocessing is performed according to the modular modeling framework SEIMS to obtain spatial parameter data of grid units and spatial parameter data based on HRU units, including:
[0022] The original data is split into sub-basins to obtain the spatial parameters of the grid cells;
[0023] The original data is split into HRU, the average value of the data in each HRU is calculated, and the spatial parameters based on the HRU unit are obtained.
[0024] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:
[0025] The present invention provides a spatial partitioning hybrid modeling method based on a modular watershed modeling framework. By constructing a hybrid partitioning hydrological model, the present invention can mix different types of simulation processes and algorithms, replace them one by one in a modular manner, and flexibly form different hydrological models according to the needs of the modeler, thereby improving the flexibility and spatial variability of constructing the hybrid model. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0027] Figure 1 A flow chart of a spatial partition hybrid modeling method based on a modular watershed modeling framework provided by an embodiment of the present invention;
[0028] Figure 2 A detailed flow chart of a spatial partition hybrid modeling method based on a modular watershed modeling framework provided by an embodiment of the present invention;
[0029] Figure 3 A schematic diagram of the spatial distribution of a hybrid zoned hydrological model provided in an embodiment of the present invention;
[0030] Figure 4 A schematic diagram for comparing simulation accuracy provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0031] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0032] The purpose of the present invention is to provide a spatial partition hybrid modeling method based on a modular watershed modeling framework, which solves the problems of poor flexibility and spatial variability of the model structure constructed in the prior art.
[0033] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0034] like Figure 1 As shown, the present invention provides a spatial partition hybrid modeling method based on a modular watershed modeling framework, comprising:
[0035] Step 100: constructing an initial modular watershed modeling framework SEIMS; the initial modular watershed modeling framework SEIMS hybrid integrated grid and HRU units;
[0036] Step 200: Integrate the process simulation codes of hydrological models with different model structures into the module library of the initial modular watershed modeling framework SEIMS, so that it has the ability to build a hybrid structure hydrological model;
[0037] Step 300: preprocessing the input data according to the hybrid structure hydrological model to obtain a spatial parameter data set based on grid units and a spatial parameter data set based on hydrological response units;
[0038] Step 400: compile the model structure configuration files of each sub-basin in the basin, and establish the hybrid structure hydrological model to be confirmed;
[0039] Step 500: the hybrid structure hydrological model to be confirmed reads the corresponding configuration file according to the sub-basin;
[0040] Step 600: Based on the spatial parameter data set of the grid unit and the spatial parameter data set based on the HRU unit, check whether the model structure in the configuration file can be coupled. If not, return to the step of "writing the model structure configuration file for each sub-basin in the basin"; if so, start the simulation and confirm the hybrid structure hydrological model.
[0041] Further, such as Figure 2 As shown, the method for constructing the initial modular watershed modeling framework SEIMS is:
[0042] Specify the spatial data of HRU unit division;
[0043] The spatial data divided by the designated HRU units are superimposed until the spatial data divided by all HRU units are superimposed, so as to construct an initial modular watershed modeling framework SEIMS.
[0044] Specifically, based on the Spatially Explicit Integrated Modeling System (SEIMS), the spatial discretization scheme supported by it is expanded, and the hydrological response unit (HRU) is added on the basis of the grid unit. The process is as follows: 1) The user specifies the spatial data (grid) involved in the HRU unit division, such as land use type, soil type, sub-basin, etc.; 2) The SEIMS preprocessor superimposes these spatial data, and records the combination of all types of spatial data on each grid as the key of the dictionary, and the corresponding value is the id of the HRU, which is increased by one each time; 3) All grids are traversed in this way. The algorithm flow is shown below:
[0045] Input: k spatial data layers P = {P 1 ,P 2 ,…,P k}, each layer contains n grids
[0046] Output: HRU array, representing the HRU ID of each grid
[0047] Initialize an empty dictionary dic
[0048] Initialize the HRU ID counter hid to 0
[0049] Initialize the HRU array with a length of n and an initial value of 0
[0050] For each grid i from 1 to n:
[0051] Create a comb containing the values of the i-th grid in all k spatial data layers
[0052] If the combination comb already exists in the dictionary dic:
[0053] Get the corresponding HRU ID from dic and assign it to HRU[i]
[0054] otherwise:
[0055] Increase the value of hid (generate a new HRU ID)
[0056] Add the new combination comb and the new HRU ID to the dictionary dic
[0057] Assign the new HRU ID to HRU[i]
[0058] Returns the HRU array.
[0059] Based on the HRU division method, other commonly used simulation unit divisions can be achieved by specifying different types of spatial data, such as treating a sub-basin as a single HRU unit for a hydrological process simulation unit (i.e., only specifying sub-basin data for HRU division, without specifying other data types such as land use and soil).
[0060] Furthermore, the process simulation codes of different types of hydrological models are uniformly integrated into the initial modular watershed modeling framework SEIMS, so that it has the ability to construct a variety of hybrid partitioned hydrological models, including:
[0061] Integrate the model of physical process and physical algorithm to obtain the ability to build physical models;
[0062] Integrate conceptual models and conceptual algorithms to gain the ability to build conceptual models.
[0063] Furthermore, the integration method of the integrated conceptual model and the conceptual algorithm is as follows:
[0064] The conceptual model and its algorithm are divided into a slope runoff generation module and a slope runoff confluence module; wherein, the main algorithm of the original conceptual model of slope runoff generation uses a unit line method or a direct water confluence method to converge to the sub-basin outlet.
[0065] Specifically, the process simulation codes of different types of hydrological models are uniformly integrated into SEIMS. For models based on physical processes and their algorithms, modular integration can be directly performed, that is, first define their inputs, outputs, and parameters, write them as APIs (Application Programming Interfaces) that conform to the SEIMS format, and write programs to implement their input-output conversions. For conceptual (or lumped) models and their algorithms, they are first divided into slope runoff and slope confluence modules. The main algorithm of the original conceptual model of slope runoff is the unit line method or direct confluence method for slope confluence, which converges to the sub-basin outlet; then, based on the separability of the slope runoff module and actual needs, decide whether to further split it into sub-process modules. This part is the same as the aforementioned physical process-based model integration process.
[0066] Defines the spatial computation dependency type of each integrated module. Modules that require the confluence relationship between spatial discrete units (such as the slope confluence module based on motion waves) are defined as spatially dependent, otherwise (such as the confluence module based on unit lines) are defined as spatially independent. Spatially dependent modules can only be applied to simulation units such as grids that have confluence relationships between units, while spatially independent modules can be applied to any simulation unit.
[0067] Further, data preprocessing is performed according to the modular modeling framework SEIMS to obtain spatial parameter data of grid units and spatial parameter data based on HRU units, including;
[0068] The original data is split into sub-basins to obtain the spatial parameters of the grid cells;
[0069] The original data is split into HRU, the average value of the data in each HRU is calculated, and the spatial parameters based on the HRU unit are obtained.
[0070] Specifically, in the SEIMS preprocessor, spatial parameter data based on grid units and spatial parameter data based on HRU units are generated in sequence. For example, firstly, the slope data is generated according to the elevation using the existing preprocessor, and then the average slope within the same HRU range is taken as the slope of the HRU.
[0071] Create multiple SEIMS model structure configuration files, each of which follows the following format:
[0072] Line 1: The sub-basin ID to which the file applies. Multiple IDs are separated by commas (,) and consecutive numbers are represented by hyphens (-).
[0073] Line 2: The spatial discretization scheme of the sub-basin applied by this file, "physical" represents the grid, and "conceptual" represents the HRU.
[0074] Line 3 to end: List of simulation module names.
[0075] In the SEIMS MPI (Message Passing Interface) version, each sub-domain reads the model structure configuration file corresponding to its sub-domain number when initializing the module dynamic link library.
[0076] Before the simulation starts, check whether the spatial dependency type of each module matches the spatial discretization scheme of the corresponding sub-basin. If they match, proceed to the subsequent steps; otherwise, the configuration is wrong and you need to return to the step of modifying the relevant configuration file.
[0077] The simulation was started with the SEIMS MPI version. Each sub-basin was managed by a process. According to the confluence dependency between sub-basins, sub-basins without confluence dependency could be simulated at the same time to achieve parallel computing and finally obtain the simulation results of the whole basin.
[0078] The beneficial effects of the present invention are as follows:
[0079] (1) High flexibility: In each sub-basin, different types of simulation processes and algorithms can be mixed and replaced one by one in a modular way, and different hydrological models can be flexibly formed according to the needs of the modeler and can be arbitrarily matched in space. This method can be used to construct a zoned mixed hydrological model, and the spatial distribution of its model structure is as follows: Figure 3 As shown;
[0080] (2) Higher simulation accuracy and rationality: A variety of spatial discretization schemes, simulation processes and algorithms can be used to provide hydrological models that meet the characteristics of the study area under different application scenarios, accurately capturing the spatial variation characteristics of its hydrological process. Figure 4 The advantages of the hybrid partitioned hydrological model constructed by this method in simulation accuracy are demonstrated, and the simulation output accuracy of the models with the same distributed structure but spatially uniform physical model structure and conceptual model structure under the same input data is compared. Figure 4 NSE stands for Nash efficiency coefficient. The higher the NSE, the higher the simulation accuracy.
[0081] (3) Balancing computational efficiency and simulation accuracy: Since grid-based hydrological process simulation is computationally complex and inefficient, some sub-basins are replaced with conceptual models that are computationally simpler. At the same time, under the SEIMS parallel computing strategy, the overall amount of computation can be reduced, greatly improving computational efficiency without reducing simulation accuracy.
[0082] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and scope of application. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A spatial partitioning hybrid modeling method based on a modular watershed modeling framework, characterized in that: include: Construct the initial modular watershed modeling framework SEIMS; The initial modular watershed modeling framework SEIMS hybrid integrated grid and HRU unit; The process simulation codes of hydrological models with different model structures are integrated into the module library of the initial modular watershed modeling framework SEIMS, so that it has the ability to build hybrid structure hydrological models; Performing data preprocessing according to the hybrid structure hydrological model's requirements for input data to obtain a spatial parameter data set based on grid units and a spatial parameter data set based on hydrological response units; Write the model structure configuration files for each sub-basin in the basin and establish the hybrid structure hydrological model to be confirmed; The hybrid structure hydrological model to be confirmed reads the corresponding configuration file according to the sub-basin; According to the spatial parameter data set of the grid unit and the spatial parameter data set based on the HRU unit, check whether the model structure in the configuration file can be coupled. If not, return to the step of writing the model structure configuration file of each sub-basin in the basin; if yes, start the simulation and confirm the mixed structure hydrological model; The method for constructing the initial modular watershed modeling framework SEIMS is: Specify the spatial data of HRU unit division; The spatial data divided by the designated HRU unit are superimposed until all the spatial data divided by the HRU unit are superimposed, so as to construct an initial modular watershed modeling framework SEIMS; Specifically, based on the modular watershed modeling framework, the spatial discretization schemes it supports are extended, and hydrological response units are added on the basis of grid units. The process includes: the user specifies the spatial data involved in the HRU unit division; The SEIMS preprocessor overlays these spatial data, records the combination of all kinds of spatial data on each grid as the key of the dictionary, and loops through all grids; The process simulation codes of different types of hydrological models are integrated into the initial modular watershed modeling framework SEIMS, which enables it to build a variety of hybrid partitioned hydrological models, including: Integrate the model of physical process and physical algorithm to obtain the ability to build physical models; Integrate conceptual models and conceptual algorithms to obtain the ability to build conceptual models; The integration method of the integrated concept model and concept algorithm is as follows: The conceptual model and its algorithm are divided into a slope runoff generation module and a slope runoff confluence module; wherein, the slope runoff generation adopts the main algorithm of the original conceptual model, and the slope runoff adopts the unit line method or the direct runoff method to converge to the outlet of the sub-basin; The process simulation codes of different types of hydrological models are uniformly integrated into SEIMS. For models based on physical processes and their algorithms, modular integration can be directly performed, that is, first define their input, output, and parameters, write them as APIs that conform to the SEIMS format, and write programs to implement their input-output conversion. For conceptual models and their algorithms, they are first divided into slope runoff and slope confluence modules, where slope runoff uses the main algorithm of the original conceptual model, and slope confluence uses the unit line method or direct confluence method to converge to the sub-basin outlet; then, based on the separability of the slope runoff module and actual needs, decide whether to further split it into sub-process modules. This part is the same as the model integration process based on physical processes; Define the spatial calculation dependency type of each integrated module. The modules that need to use the confluence relationship between spatial discrete units are defined as spatially dependent, otherwise they are defined as spatially independent. Spatially dependent modules are only applied to simulation units with confluence relationships between units, and spatially independent modules are applied to any simulation unit.
2. A spatial partitioning hybrid modeling method based on a modular watershed modeling framework according to claim 1, characterized in that: Data preprocessing is performed according to the modular modeling framework SEIMS to obtain spatial parameter data of grid cells and spatial parameter data based on HRU cells, including; Split the original data into sub-basins to obtain the spatial parameters of the grid cells; The original data is split into HRU, the average value of the data in each HRU is calculated, and the spatial parameters based on the HRU unit are obtained.
