Runoff prediction method and system based on liquid time constant network improved SWAT model

By improving the SWAT model through a liquid time constant network and combining meteorological and hydrological data, adaptive response and high-precision prediction under extreme hydrological conditions are achieved. This solves the problem of insufficient prediction of existing models under non-stationary hydrological conditions and maintains the water conservation of hydrological physical processes.

CN123159134APending Publication Date: 2026-11-24MWR GENERAL INSTITUTE OF WATER RESOURCES & HYDROPOWER PLANNING & DESIGN
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611485234.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-22
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing physical models are unable to effectively characterize dynamic runoff responses under different extreme dry and wet conditions when faced with non-stationary hydrological conditions, while data-driven models have insufficient extrapolation and generalization capabilities under extreme hydrological conditions, resulting in insufficient prediction accuracy and physical interpretability.

Method used

The SWAT model is improved by adopting a liquid time constant network. Through a physical-data deep serial coupling architecture and a message passing mechanism with physical water weighting, combined with meteorological driving data and hydrological state data, it can adaptively respond to extreme hydrological situations and maintain the water conservation law of hydrological physical processes.

Benefits of technology

It improves the accuracy and physical interpretability of watershed runoff prediction, and can adaptively respond under extreme hydrological conditions, maintaining the water quantity conservation of hydrological and physical processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123159134A_ABST
    Figure CN123159134A_ABST
Patent Text Reader

Abstract

The application constructs a watershed runoff prediction method and system based on a liquid time constant network improved SWAT model, including: obtaining daily meteorological driving and previous hydrological state; using the fast response branch of the liquid time constant network to generate the SCS runoff curve number of the day, and inputting the SWAT land surface module to calculate the actual bottom water output; based on the water output and the fast response characteristics, constructing the physical weighted cross-branch transmission message; combining the message to generate the daily base flow recession coefficient by using the slow response branch, and inputting the SWAT groundwater module to calculate the base flow, and finally obtaining the daily flow of the watershed outlet. The application realizes the physical-data deep serial coupling architecture and the physical water weight message transmission mechanism, so that the model can adaptively respond to the non-stationary change of the extreme hydrological situation, while effectively maintaining the water conservation law of the hydrological physical process, and improving the prediction accuracy and physical interpretability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of interdisciplinary technology of hydrological forecasting and artificial intelligence, and in particular to a watershed runoff prediction method and system based on an improved SWAT model using a liquid time constant network. Background Technology

[0002] Hydrological forecasting is a technical means for water resource management and flood control and disaster reduction. Under the dual impacts of climate change and human activities, the non-stationarity of watershed runoff processes has increased, and extreme hydrological situations such as heavy rainfall floods, hydrological droughts, and rapid transitions between wet and dry states place higher demands on hydrological simulation. Constructing models that can accurately simulate the dynamic response processes of watershed runoff generation and confluence is crucial for improving early warning capabilities for extreme hydrological events and optimizing water resource allocation strategies.

[0003] Current watershed runoff prediction research primarily relies on semi-distributed watershed hydrological models driven by physical mechanisms (such as the SWAT model and the Soil and Water Assessment Tool) and data-driven deep learning models. Physical models, based on hydrological response units, simulate surface runoff, interflow, and baseflow processes through a series of empirical formulas and water balance equations, with clearly defined hydrological variables. Data-driven models utilize time-series models such as Long Short-Term Memory (LSTM) networks to establish a mapping relationship between meteorological data and watershed outflow, or to perform residual corrections on the output of physical models to improve the fitting accuracy of statistical indicators.

[0004] However, existing physical models often struggle to effectively characterize dynamic runoff responses under different extreme wet and dry conditions when faced with non-stationary hydrological conditions, as their fixed parameters are insufficient. Data-driven models and simple residual correction methods, lacking physical constraints in their internal computations, tend to produce outputs that violate fundamental hydrological laws such as water balance, resulting in insufficient extrapolation and generalization capabilities under extreme hydrological conditions with sparse training samples. Therefore, a runoff prediction method is needed that can improve the model's adaptive response capability to non-stationary hydrological situations while maintaining the water conservation characteristics of the physical model. Summary of the Invention

[0005] The technical problem to be solved by the present invention is to provide a watershed runoff prediction method and system improvement solution based on the improved SWAT model of liquid time constant network.

[0006] To solve the above-mentioned technical problems, the present invention adopts the following technical solution: A watershed runoff prediction method based on an improved SWAT model using a liquid time constant network includes: Acquire daily meteorological driving data, including the previous day's shallow hydrological status data and baseline hydrological static parameters; The fast response hidden status is updated based on daily meteorological driving data, previous day's hydrological status data, and baseline hydrological static parameters, and the number of SCS runoff curves for the day is generated. Input the daily SCS runoff curve data into the preset SWAT model land surface process module for calculation to obtain the actual bottom outflow. Generate cross-branch messages based on the actual bottom water output and the fast-response hidden state; Combine cross-branch message transmission with the previous day's shallow hydrological status update slow response hidden state, and generate the baseflow recession coefficient for the current day; The baseflow decline coefficient for the day is input into the preset SWAT model groundwater process module to calculate the baseflow, and the daily flow rate at the watershed outlet section during the forecast period is obtained by summing up the hydrological components.

[0007] Furthermore, the overall objective function is constructed by a weighted combination of the following error terms: The mean square error term is calculated based on the difference between the simulated flow sequence and the observed flow sequence during the training period; The logarithmic error term is calculated based on the difference between the logarithmic values ​​of the simulated flow sequence and the observed flow sequence during the training period, after introducing a preset positive decimal. The cumulative water volume deviation term is calculated based on the absolute deviation between the total flow of the simulated flow series during the training period and the total flow of the observed flow series during the training period.

[0008] The beneficial effects of this invention are: This invention enables the model to adaptively respond to non-stationary changes in extreme hydrological conditions through a physical-data deep serial coupling architecture and a physical water quantity weighted message passing mechanism, while effectively maintaining the water quantity conservation law of hydrological physical processes, thereby improving prediction accuracy and physical interpretability. Attached Figure Description

[0009] Figure 1 This is a flowchart of the watershed runoff prediction method based on the improved SWAT model using a liquid time constant network, as described in this application.

[0010] Figure 2 This is a flowchart illustrating the generation of the number of SCS runoff curves for the day in this embodiment of the application.

[0011] Figure 3 This is a flowchart illustrating the process of obtaining the actual bottom water output in this embodiment of the application.

[0012] Figure 4 This is a flowchart for generating the base current decay coefficient for the day in this embodiment of the application.

[0013] Figure 5 This is a flowchart of the pre-calibration liquid time constant network in an embodiment of this application.

[0014] Figure 6 This is a schematic diagram of a watershed runoff prediction system based on a liquid time constant network-improved SWAT model in an embodiment of this application. Detailed Implementation

[0015] Example 1: This embodiment provides a watershed runoff prediction method based on an improved SWAT model using a liquid time constant network, combined with... Figure 1 As shown, the method includes the following steps: Step 101: Obtain daily meteorological driving data, previous day hydrological status data including the previous day's shallow hydrological status, and baseline hydrological static parameters; In the preparation phase of watershed runoff prediction, it is necessary to establish and calibrate a baseline SWAT model to extract solidified physical property parameters. Specifically, the baseline hydrological static parameters include the number of baseline SCS (Soil Conservation Service) runoff curves for each hydrological response unit under soil wetting conditions, the baseline baseflow recession coefficient, and the recharge delay coefficient and deep distribution ratio used for groundwater calculation.

[0016] Furthermore, the daily meteorological driving data specifically covers external meteorological forcing conditions such as precipitation and potential evapotranspiration. The previous day's hydrological status data reflects the initial water distribution of the watershed system before the start of the current calculation day, with the previous day's shallow hydrological status specifically indicating the water storage and discharge status of shallow aquifers. By acquiring the above multi-source data, complete environmental constraints and boundary conditions are provided for the subsequent coupled calculations of the physical model and the data-driven network.

[0017] In some alternative implementations, daily meteorological driving data are standardized using Z-score normalization before being input into the network to eliminate the impact of dimensional differences between different meteorological elements on network feature extraction.

[0018] Step 102: Update the fast response hidden state based on daily meteorological driving data, previous day's hydrological status data and baseline hydrological static parameters, and generate the number of SCS runoff curves for the day.

[0019] This embodiment corresponds to the fast response stage of the land surface in the intraday serial computing architecture. Specifically, the aforementioned meteorological drivers, previous hydrological conditions, and static parameters are integrated into an input feature vector to drive the fast response branch of the liquid time constant network. The fast response hidden state is used to characterize the rapid response characteristics of the watershed surface and soil surface layer to meteorological forcing such as precipitation. Through nonlinear mapping and adaptive adjustment of the time constant within the network, the number of SCS runoff curves for the day is calculated. This parameter determines the distribution ratio of precipitation between runoff and infiltration for the day. This design allows the model to dynamically update runoff parameters based on previous wet conditions and current meteorological conditions, which helps to improve the shortcomings of traditional SWAT models that use fixed parameters to adapt to extreme wet-dry alternation situations.

[0020] Furthermore, the number of SCS runoff curves generated on the same day is limited to a physically reasonable range calculated from the baseline hydrological static parameters to prevent the data-driven model from outputting extreme values ​​that violate hydrological physics.

[0021] In the aforementioned fast-response branch, the state update of the liquid time-constant network is derived from the discretization of continuous-time ordinary differential equations. Its time constant controls the network's sensitivity to input changes and its memory decay rate. When a heavy rainfall event occurs, the network adaptively shortens the fast-response time constant based on the high daily rainfall and previously dry soil conditions, allowing the network state to respond more quickly to current input changes and thus generating a higher number of SCS runoff curves to increase the runoff generation ratio. Conversely, during periods of continuous drought, the time constant is extended, the network state retains more historical information, and the runoff generation parameters tend to be conservative. This type of time-constant-driven adaptive mechanism structurally corresponds to the nonlinear runoff generation threshold behavior of the watershed.

[0022] Step 103: Input the daily SCS runoff curve data into the preset SWAT model land surface process module for calculation to obtain the land surface runoff component and the actual bottom outflow.

[0023] After generating land surface runoff parameters, the physical hydrological model is invoked to perform actual water balance calculations. Specifically, the daily SCS runoff curve count is written into the SCS curve count calculation node in the SWAT model's land surface process module, and standard physical calculation processes for surface runoff, infiltration, evapotranspiration, and soil moisture transport are executed sequentially. After the aforementioned water redistribution process within the soil profile, the amount of seepage water leaving the bottom of the soil layer is extracted, i.e., the actual bottom outflow. Furthermore, this helps maintain the physical mass conservation law in the surface runoff and infiltration processes, and the physical equations are used to digest the dynamic parameters generated by the network.

[0024] In some alternative implementations, the actual bottom outflow includes not only the conventional bottom seepage of the soil profile, but also the bypass water that penetrates the soil profile through large pores or fissures.

[0025] After extracting the actual bottom outflow and before generating cross-branch transmission messages, the SWAT model allocates time delays to the actual bottom outflow according to the existing replenishment delay logic, and calculates the actual replenishment amount reaching the shallow aquifer on that day, i.e., the actual shallow replenishment amount.

[0026] Step 104: Generate cross-branch transmission messages based on the actual bottom outflow and fast response hidden state.

[0027] To establish an information cascade between land surface processes and groundwater processes, this embodiment constructs a cross-branch information transmission channel. Specifically, the actual bottom outflow volume is used as a physical weight to weight the hidden state of the fast response, generating cross-branch transmission messages. This cross-branch message transmission mechanism enables data-driven features to migrate downstream synchronously with the physical water flow. When the actual bottom outflow volume is large, the feature information extracted by the fast response branch is given a higher weight and transmitted to subsequent modules; conversely, if there is no infiltration on that day, the transmission of invalid interference information is avoided. This message construction method based on physical water volume weighting enhances the physical interpretability of information flow within the neural network.

[0028] In some embodiments, the process of generating cross-branch message transmission also incorporates a physical delay mechanism of groundwater recharge, so that the transmission of feature information exhibits an attenuation trend on the time axis that corresponds to the actual water flow.

[0029] Step 105: Combine the cross-branch message transmission with the previous day's shallow hydrological status update slow response hidden state, and generate the baseflow decline coefficient for the current day.

[0030] This embodiment corresponds to the slow response phase of groundwater in an intraday serial computing architecture. Specifically, it receives cross-branch transmission messages carrying previous land surface information and fuses them with the previous day's shallow hydrological state reflecting the initial groundwater conditions. Based on the fused information, the slow response branch of the liquid time constant network updates its state to obtain a slow response hidden state, which characterizes the long-term delayed response of the aquifer to infiltration recharge.

[0031] Furthermore, a baseflow recession coefficient for the day is generated through a mapping function. This coefficient reflects the rate at which shallow aquifers discharge baseflow into the river channel. This process enables the baseflow recession characteristics to adaptively sense actual land surface infiltration events occurring on the same day, achieving a causal correspondence between upstream and downstream hydrological parameters over time.

[0032] As an example, the generated daily baseflow decay coefficient is also constrained by a preset physical boundary to ensure that its value is within a reasonable range allowed by the groundwater dynamics of the target watershed.

[0033] Step 106: Input the baseflow recession coefficient of the day into the preset SWAT model groundwater process module to calculate the baseflow, and summarize the land surface runoff component and baseflow to obtain the daily flow rate of the watershed outlet section during the forecast period.

[0034] After all dynamic parameters are generated, the final physical runoff calculation is performed. Specifically, the daily baseflow recession coefficient is written into the SWAT model groundwater process module, and the daily baseflow is calculated using physical recursive equations, taking into account the actual recharge reaching the aquifer.

[0035] Furthermore, following the original SWAT hydrological response unit summary, sub-basin summary, and river confluence sequence, the surface runoff, interflow, baseflow, and other hydrological components are superimposed and evolved to finally output the daily flow at the basin outlet section during the forecast period.

[0036] At this point, a complete deep serial coupling closed loop has been completed for a single calculation day, including network prediction parameters, physical calculation of water output, information weighting and transmission, network prediction of downstream parameters, and physical calculation of base flow. The model saves the state of the day and advances to the next calculation day.

[0037] During the aggregation phase, this embodiment only uses the dynamically generated surface runoff, interflow, and baseflow components at the hydrological response unit level as inputs to the confluence module.

[0038] Example 2: This embodiment describes a fast-response branch state update and surface parameter constraint mechanism that adaptively updates the network state based on input features and generates surface runoff parameters that conform to physical constraints.

[0039] Based on this, the daily meteorological driving data includes daily precipitation and potential evapotranspiration; the previous day's hydrological status data includes soil profile water storage at the end of the previous day, soil water change on the previous day, and baseflow depth on the previous day; the specific implementation process of acquiring the daily meteorological driving data, the previous day's hydrological status data including the previous day's shallow hydrological status, and the baseline hydrological static parameters in this embodiment is as follows: Optionally, a preset time category code representing the current date is obtained; the preset time category code is concatenated with daily meteorological driving data, the previous day's hydrological status data, and the baseline hydrological static parameters as the update input for the fast response hidden state; the preset time category code is incorporated into the slow response branch input, and together with the cross-branch transmission message and the previous day's shallow hydrological status, it serves as the update input for the slow response hidden state.

[0040] Specifically, to enable the model to perceive the seasonal patterns of hydrological processes, a time dimension is introduced in addition to meteorological and hydrological conditions. Specifically, the preset time category encoding uses 12-dimensional one-hot encoding to represent the month to which the current calculation day belongs. Daily meteorological driving data specifically include daily precipitation and potential evapotranspiration; the previous day's hydrological condition data specifically includes soil profile water storage at the end of the previous day, the previous day's soil water change, and the previous day's baseflow depth.

[0041] During the data preprocessing stage, continuous variables (precipitation, potential evapotranspiration, soil profile water storage, soil water variation, and baseflow depth) in the daily meteorological driving data and the previous day's hydrological status data were standardized using Z-scores based on the training set statistics. Continuous values ​​in the baseline hydrological static parameters (such as the baseline SCS runoff curve number and the baseline baseflow decline coefficient) were also standardized using Z-scores. Preset time category codes, coded in unique thermal form, were not standardized.

[0042] According to one aspect of this application, the fast response hidden state is updated based on daily meteorological driving data, previous day's hydrological state data, and baseline hydrological static parameters, and the number of SCS runoff curves for the day is generated, such as... Figure 2 As shown, it specifically includes: Step 201: Use daily meteorological driving data, previous day's hydrological status data, and baseline hydrological static parameters as fast response inputs.

[0043] Combining the features extracted in the above steps, they are concatenated to construct a fast response input vector. In one optional implementation, the fast response input vector is 20-dimensional, containing two meteorological driving variables, three previous day hydrological state variables, three baseline hydrological static parameters, and a 12-dimensional uniquely heated month code. The three baseline hydrological static parameters are the baseline SCS runoff curve number, the baseline baseflow recession coefficient, and the recharge delay coefficient; the deep layer allocation ratio is only used in the construction of cross-branch message transmission and is not used as the network input for the fast response branch. This vector integrates the external forcing driving land surface hydrological processes, the soil wetting conditions in the anterior basin, and the baseline parameters reflecting fixed underlying surface properties, providing a complete information context for the fast response branch.

[0044] Step 202: Based on the fast response input and the previous day's fast response hidden state, calculate the fast response time constant, which is limited to the upper and lower bounds of the preset time constant, and the fast response candidate state for the current day; wherein, the previous day's fast response hidden state takes a preset initial value on the first calculation day, and on subsequent calculation days it is the fast response hidden state updated on the previous calculation day.

[0045] When calculating the fast response time constant, the fast response input and the previous day's hidden fast response state are multiplied by their respective weight matrices and a bias vector is added. The sum of these two matrices is then nonlinearly activated using the Logistic function. Furthermore, the activation result is multiplied by the difference between the upper and lower bounds of the preset time constant and added to the lower bound of the time constant, thus limiting the time constant to a specified physical interval. When calculating the candidate states for the current day's fast response, the input and historical states are similarly linearly transformed and summed, and then activated using the hyperbolic tangent function. The above calculation expressions are as follows: ; ; In the formula: Indicates the first The hydrological response unit at the first The daily fast response time constant vector, in units of days; This indicates the lower bound of the preset fast response time constant, in days; This represents the upper bound of the preset fast response time constant, in days; This represents the Logistic activation function; This represents the input feature weight matrix used to calculate the fast response time constant; Indicates the first The hydrological response unit at the first The fast response input vector of the day; This represents the historical state weight matrix used to calculate the fast response time constant; Indicates the first The hydrological response unit was on the previous day (the day) The fast-response hidden state vector of (day); This represents the bias vector used to calculate the fast response time constant; Indicates the first The hydrological response unit at the first The candidate state vector for the fast response of the day; Represents the hyperbolic tangent activation function; This represents the input feature weight matrix used to compute the candidate states of the fast response; This represents the historical state weight matrix used to calculate the candidate states for fast response; This represents the bias vector used to compute the candidate states for the fast response.

[0046] Step 203: Determine the state retention coefficient based on the fast response time constant, and use the state retention coefficient to perform exponential decay weighting on the previous day's fast response hidden state and the current day's fast response candidate state to obtain the fast response hidden state.

[0047] Based on the fast response time constant, the negative of the ratio of the computation time step to this time constant is calculated, and its exponent is taken to obtain the state preservation coefficient. Further, this state preservation coefficient is used to multiply the previous day's fast response hidden state element-wise, and simultaneously, the complementary value of this coefficient, i.e., 1 minus this coefficient, is used to multiply the current day's fast response candidate state element-wise. The two products are then added together to complete the state update. The expression for this process is as follows: ; ; In the formula: Indicates the first The hydrological response unit at the first The daily state-preserving coefficient vector is dimensionless. Represented by natural constant Exponential operations with base 0; This represents the calculation time step, with a value of 1 day on a daily scale. Indicates the first The hydrological response unit at the first The daily fast response time constant vector; Indicates the first The hydrological response unit at the first The fast-response hidden state vector of the day; This represents element-wise multiplication between vectors. Indicates the first The fast response hidden state vector of each hydrological response unit on the previous day; Indicates the first The hydrological response unit at the first The candidate state vector for the fast response of a day.

[0048] In a preferred implementation configuration, the fast response time constant range is set to 0.25 to 2 days to match the rapid changes in land surface runoff generation and infiltration processes.

[0049] Step 204: Generate the daily SCS runoff curve number by mapping the fast response hidden state, and limit the daily SCS runoff curve number to a preset physical reasonable range. The physical reasonable range is determined by the upper and lower bounds of the previous soil moisture status converted from the baseline SCS runoff curve number.

[0050] To ensure that the parameters output by the network conform to hydrophysical laws, the original classical empirical formula of the SWAT model is adopted. Based on the number of baseline SCS runoff curves obtained from the previous calibration, the number of curves corresponding to the previous soil wetting conditions I and III are converted into the number of curves corresponding to the previous soil wetting conditions II, which are respectively used as the lower and upper bounds of the physically reasonable interval.

[0051] Furthermore, the fast-response hidden state and the weight vector are multiplied by an inner product, and a bias is added. After activation by the Logistic function, the result is scaled to the range defined by the upper and lower bounds mentioned above. The expression for this mapping process is as follows: ; In the formula: Indicates the first The hydrological response unit at the first The number of SCS runoff curves generated daily is dimensionless. Indicates the first The number of curves corresponding to each hydrological response unit under the previous soil moisture condition I is used as the lower bound of the interval; Indicates the first The number of curves corresponding to each hydrological response unit under the previous soil moisture condition III is used as the upper bound of the interval; This represents the Logistic activation function; The weight vector representing the branch of the runoff curve number mapping; This represents the transpose of the weight vector; Indicates the first The hydrological response unit at the first The fast-response hidden state vector of the day; The bias scalar represents the number of branches of the runoff curve mapping.

[0052] Example 3: This embodiment provides a cross-branch message construction mechanism based on physical water volume weighting. By introducing actual physical water flow to weight and recursively infer network features, it realizes the process of data-driven features being transmitted downstream synchronously with the physical water flow.

[0053] According to one aspect of this application, the daily SCS runoff curve data is input into a pre-set SWAT model land surface process module for calculation to obtain the actual bottom outflow, such as... Figure 3 As shown, the specific implementation process is as follows: Step 301: Before calculating the surface runoff in the land surface process module of the SWAT model, write the number of SCS runoff curves for the day, and calculate the surface runoff, infiltration and soil moisture transport processes in sequence.

[0054] After obtaining the daily SCS runoff curve count, it is written into the corresponding parameter interface of the SWAT model, replacing the original parameter settings based on fixed empirical relationships. Further, the original SCS curve count module of the SWAT model is called to perform land surface water distribution calculations. During this process, the model calculates surface runoff depth based on variables such as precipitation and maximum possible retention, and sequentially completes calculations of actual evapotranspiration, interflow, and water transport and water balance within the soil profile. The calculation logic in this stage follows the existing physical empirical formulas of the SWAT model, without changing the original model's water conservation structure.

[0055] Step 302: Extract the leakage amount that actually reaches the bottom of the soil profile and enters the groundwater recharge delay stage after the soil moisture transport process, and use it as the actual bottom outflow amount; wherein, the actual bottom outflow amount is a non-negative physical water volume, and after extracting the read item as a network feature transmission, it is not repeatedly deducted from the soil water storage.

[0056] After completing the above land surface and soil profile calculations, it is necessary to extract the pre-entry water volume into the groundwater system. Specifically, the actual bottom outflow refers to the total amount of water that actually leaves the bottom of the soil profile during the calculation day. In watershed model configurations that partially employ fracture bypass flow settings, the actual bottom outflow is calculated by combining the bottom soil infiltration and fracture bypass flow to avoid omissions. This water volume is a non-negative water depth scalar, which is read as an internal state interface of the physical model. Since this read operation is only used to provide weight references for network feature transfer and does not change the water flow path within the physical system, it is not subtracted from the total soil water storage, thus ensuring the closure of the water balance equations within the physical model.

[0057] Optionally, a cross-branch transmission message is generated based on the actual bottom outflow and the fast response hidden state, including: the actual shallow recharge amount calculated based on the actual bottom outflow through a recharge delay process.

[0058] The actual shallow recharge refers to the amount of water entering the shallow aquifer on a given day, after the recharge delay process and deducting the water allocated to deeper aquifers. Extracting this recharge involves processing the baseline recharge delay coefficient, specifically involving the following two execution branches: Branch 1: When the baseline replenishment delay coefficient is greater than zero, the replenishment attenuation weight is calculated using the ratio of the calculation time step to the delay coefficient in an exponential decay form, and the historical replenishment advance amount and the actual bottom outflow amount of the day are weighted accordingly.

[0059] Branch 2: When the baseline replenishment delay coefficient is equal to zero, it means that the current hydrological response unit does not have a replenishment delay process. At this time, the replenishment attenuation weight is reset to zero, and the actual bottom outflow on the day is immediately converted into the replenishment amount.

[0060] Accordingly, the fast-response hidden state is weighted using the actual bottom outflow to obtain the characteristic recursive quantity. Based on the actual bottom outflow and the recharge delay coefficient in the baseline hydrological static parameters, the actual shallow recharge is calculated through the recharge delay process, including: Optionally, the baseline recharge delay coefficient is obtained from the baseline hydrological static parameters; the baseline recharge delay coefficient is used to perform historical attenuation on the previous day's characteristic recursive quantity, and the attenuation result is accumulated with the product of the actual bottom outflow and the fast response hidden state to obtain the characteristic recursive quantity of the day; wherein, the characteristic recursive quantity of the previous day takes a preset initial value on the first calculation day, and in subsequent calculation days it is the characteristic recursive quantity calculated on the previous calculation day.

[0061] To achieve delayed propagation of the hidden state with the water flow, the following steps are taken: The feature recursion value from the previous day is obtained, and multiplied by the replenishment attenuation weight of the corresponding hydrological response unit to achieve historical attenuation. Simultaneously, the product of the actual bottom outflow for the current day and the fast response hidden state vector for the current day is calculated, and weighted using the complementary values ​​of the replenishment attenuation weights. The historical attenuation term and the current day's weighted term are then summed to obtain the feature recursion value for the current day. When the actual bottom outflow for the current day is zero, no new fast response hidden state features are injected, but the natural attenuation of the historical recursion term is still retained.

[0062] The expression for the above feature recursion vector is as follows: ; In the formula: Indicates the first The hydrological response unit at the first The characteristic recursive vector of the day, each component of which has the dimension of water depth in millimeters; Indicates the first The replenishment attenuation weight of each hydrological response unit is dimensionless and is derived from the baseline replenishment delay coefficient. Indicates the first The hydrological response unit was on the previous day (i.e., the [number]th hydrological response unit). The characteristic recursive vector of (day); Indicates the first The hydrological response unit at the first The actual daily bottom water discharge, in millimeters; Indicates the first The hydrological response unit at the first The fast-response hidden state vector of the day is dimensionless.

[0063] Correspondingly, the component values ​​of the feature recursion quantity reflect the degree of accumulation of hidden features under the modulation of physical replenishment flux, and its dimensions are calculated by multiplying the actual bottom outflow volume with the hidden state vector.

[0064] Optionally, the feature recursive quantity is normalized using the actual shallow recharge amount to generate a cross-branch transmission message. Specifically, this includes: obtaining the deep layer allocation ratio from the baseline hydrological static parameters; using the sum of the actual shallow layer recharge amount and the preset positive scale constant as the denominator, and the feature recursive quantity adjusted based on the deep layer allocation ratio as the numerator, to calculate the dimensionless cross-branch transmission message.

[0065] Based on this, the deep layer allocation ratio of the corresponding hydrological response unit is obtained, its complementary value is calculated and multiplied by the daily feature recursive vector to obtain the feature quantity allocated to the shallow layer system as the numerator; the actual shallow layer recharge amount of the day is summed with the preset positive scale constant as the denominator; the ratio of the numerator to the denominator is calculated to obtain the dimensionless cross-branch transmission message vector, and the calculation formula is as follows: ; In the formula: Indicates the first The hydrological response unit at the first The daily generated cross-branch message vector is dimensionless. Indicates the first The deep distribution ratio of each hydrological response unit, dimensionless; Indicates the first The hydrological response unit at the first The feature recursive vector for each day, in millimeters; Indicates the first The hydrological response unit at the first The actual daily shallow recharge amount, in millimeters; Represented as the first The preset positive scale constant for each hydrological response unit, in millimeters.

[0066] The mapping relationship between physical quantities in this mechanism is as follows: the amplitude of message transmission across branches is controlled by the actual shallow replenishment amount, exhibiting a nonlinear relationship that dynamically adjusts with changes in the replenishment amount. A positive scaling constant is introduced into the denominator. In a preferred embodiment, this value can be set to 1 mm, which serves to provide a basic water volume smoothing benchmark. When the actual shallow recharge approaches zero due to the dry season or days without precipitation, a positive scaling constant is introduced into the denominator to provide a basic water volume smoothing benchmark when the recharge is small, ensuring that the amplitude of the cross-branch transmission message maintains a stable proportional relationship with the recharge. The generated cross-branch transmission message is input to the slow response branch to guide the generation of groundwater parameters.

[0067] The reason why the above message passing mechanism maintains water conservation is that the transmission amplitude of network hidden features is constrained by the physical water flow: when no water seeps out of the soil bottom, the product term is zero, and no network features are injected into the slow response branch; when actual recharge reaches the aquifer, the normalization operation keeps the feature amplitude proportional to the recharge amount. Therefore, the information flow path within the network tracks the causal time sequence from infiltration to recharge to baseflow in the physical system, and there is no non-physical causal inversion where information arrives before the water flow.

[0068] Example 4: This embodiment describes how, after receiving a cross-branch transmission message, the slow response hidden state characterizing the groundwater process is updated, and the baseflow calculation with conditional branches is performed in conjunction with the original groundwater module of the SWAT model.

[0069] As an optional implementation, the cross-branch message transmission is combined with the previous day's shallow hydrological state update slow response hidden state to generate the baseflow recession coefficient for the current day, such as... Figure 4 As shown, the specific implementation process is as follows: Step 401: The cross-branch transmission message, the previous day's shallow hydrological status, and the baseline baseflow decline coefficient in the baseline hydrological static parameters are spliced ​​together to obtain the slow response branch input.

[0070] When constructing the network input for the slow response branch, cross-branch transmission messages are combined with variables reflecting the initial conditions of the shallow aquifer. Specifically, the shallow water storage and baseflow depth of the previous day are extracted from the previous day's shallow hydrological conditions, and combined with the baseline baseflow decline coefficient, depth distribution ratio, preset time category coding, and cross-branch transmission messages to construct the slow response branch input vector.

[0071] In one optional implementation, the slow response branch input vector is 20-dimensional, containing four continuous hydrological variables, a 12-dimensional unique thermal month code, and a 4-dimensional cross-branch transmission message. Since the cross-branch transmission message has already been normalized based on physical water volume during the generation stage and is a dimensionless quantity, no secondary normalization operation is performed in this embodiment to retain the physical flux ratio information it carries.

[0072] In one alternative implementation, the slow response branch input consists only of a concatenation of cross-branch transmission messages and the previous day's shallow hydrological conditions. In a further implementation, a baseline baseflow decline coefficient and a preset time category code can be added to enrich the input context.

[0073] Step 402: Calculate the slow response time constant and the slow response candidate state for the current day based on the slow response branch input and the previous day's slow response hidden state. The slow response time constant is limited to the lower and upper bounds of the preset slow response time constant. The previous day's slow response hidden state takes a preset initial value on the first calculation day and is updated to the slow response hidden state obtained on the previous calculation day on subsequent calculation days.

[0074] Accordingly, the slow response branch input and the previous day's slow response hidden state are multiplied by their respective slow response weight matrices and a bias vector is added. The sum of these two matrices is then subjected to nonlinear activation using the Logistic function. The difference between the upper and lower bounds of the slow response time constant is calculated. This difference is multiplied by the activation result and then added to the lower bound of the slow response time constant to obtain the slow response time constant for the current day. Similarly, the slow response branch input and the previous day's slow response hidden state are multiplied by their respective state weight matrices and a bias vector is added. The hyperbolic tangent function is then applied for activation to obtain the slow response candidate states for the current day. To accommodate the slowly varying characteristics of groundwater processes, the range of values ​​for the lower and upper bounds of the slow response time constant is typically higher than that of the fast response branch, for example, it can be set between 2 and 60 days.

[0075] The above operation expression is as follows: ; ; In the formula: Indicates the first The hydrological response unit at the first The slow response time constant per day, in days; This indicates the lower bound of the preset slow response time constant, in days; This represents the upper bound of the preset slow response time constant, in days; This represents the Logistic activation function; This represents the input weight matrix for the slow branch used to calculate the time constant; Indicates the first The hydrological response unit at the first The input vector of the slow response branch on the day; This represents the weight matrix of the slow branch hidden state used to calculate the time constant; Indicates the first The hydrological response unit at the first The slow-response hidden state vector of the day; This represents the slow branch bias vector used to calculate the time constant; Indicates the first The hydrological response unit at the first The candidate state vector of the slow response of the day; Represents the hyperbolic tangent activation function; This represents the slow branch input weight matrix used to compute the candidate state; This represents the slow branch hidden state weight matrix used to compute the candidate state; This represents the slow branch bias vector used to compute the candidate state.

[0076] Step 403: Calculate the slow response state retention coefficient based on the slow response time constant, and use the slow response state retention coefficient to perform exponential decay weighting on the previous day's slow response hidden state and the current day's slow response candidate state to obtain the slow response hidden state.

[0077] In this embodiment, the ratio of the time step to the slow response time constant is calculated, and the negative of this ratio is taken as the independent variable of the exponential function to calculate the slow response state retention coefficient.

[0078] Furthermore, the hidden state of the slow response from the previous day is weighted using the retention coefficient, and the candidate state of the slow response for the current day is weighted using the complementary value of the retention coefficient. The two weighted results are then added together to obtain the updated hidden state of the slow response, as shown in the following expression: ; ; In the formula: Indicates the first The hydrological response unit at the first The slow response state retention coefficient for the day is dimensionless. Represents an exponential function with the natural constant as its base; This indicates the calculation time step, with a value of 1 day; Indicates the first The hydrological response unit at the first The slow response time constant per day, in days; Indicates the first The hydrological response unit at the first The slow-response hidden state vector of the day; This represents the element-wise multiplication operator; Indicates the first The hydrological response unit at the first The slow-response hidden state vector of the day; Indicates the first The hydrological response unit at the first The candidate state vector for the slow response of the day.

[0079] Step 404: Map the slow response hidden state using a mapping function with preset lower and upper bounds for base current decay to generate the base current decay coefficient for the day.

[0080] Calculate the inner product of the slow response hidden state and the weight vector, add a bias term, and input the result into the Logistic function. Calculate the difference between the preset upper and lower bounds of the baseflow decay, multiply it by the output of the Logistic function, and add the preset lower bound of the baseflow decay to generate the baseflow decay coefficient for the day. This coefficient is limited to a reasonable range allowed by the target physics model, for example, 0.001~1. Between. The expression for this coefficient is as follows: ; In the formula: Indicates the first The hydrological response unit at the first The daily base current decay coefficient, in units of ; This represents the preset lower bound for the basic current decay, in units of... ; This indicates the upper bound of the preset basic current decay, in units of ; This represents the Logistic activation function; This represents the transpose of the weight vector used to generate the base current decay coefficient; Indicates the first The hydrological response unit at the first The slow-response hidden state vector of the day; This represents the bias scalar used to generate the base current decay coefficient.

[0081] According to one aspect of this application, the baseflow recession coefficient for the day is input into a pre-set SWAT model groundwater process module, and baseflow is calculated in conjunction with the actual shallow recharge, specifically including: Optionally, the actual shallow recharge is calculated through a recharge delay process based on the actual bottom outflow and the recharge delay coefficient in the baseline hydrological static parameters; the pre-constraint baseflow recursive value is calculated by exponential recursion based on the previous day's baseflow term in the previous day's shallow hydrological state, the current day's baseflow decline coefficient, and the actual shallow recharge.

[0082] Calculate the negative of the product of the daily baseflow recession coefficient and the calculation time step, and take its natural exponent as the recession attenuation factor. Multiply the previous day's baseflow term by this recession attenuation factor to obtain the historical baseflow recession retention; multiply the actual shallow recharge by the complementary value of this recession attenuation factor to obtain the contribution of the current day's recharge to the baseflow; add the two together to obtain the recursive value of the baseflow before constraint, unconstrained by water storage, as shown in the following expression: ; In the formula: Indicates the first The hydrological response unit at the first The daily constrained pre-basic current recursive value, in millimeters; Indicates the first The baseflow item for each hydrological response unit on the previous day, in millimeters; Represents an exponential function with the natural constant as its base; Indicates the first The hydrological response unit at the first The daily base current decay coefficient, in units of ; This indicates the calculation time step, with a value of 1 day; Indicates the first The hydrological response unit at the first The actual shallow recharge amount per day, in millimeters.

[0083] Optionally, the threshold of shallow aquifer water volume required to generate the baseflow is obtained, and the available water volume is determined based on the shallow water volume of the previous day in the shallow hydrological state and the actual shallow recharge.

[0084] Before the physical module executes baseflow discharge, a unified water volume condition judgment is required. The shallow water storage volume of the previous day is added to the actual shallow water supply of the current day, and other actual shallow outflows that occur in a predetermined order before the baseflow calculation (such as groundwater evaporation) are deducted to calculate the available water storage volume before the baseflow discharge.

[0085] Simultaneously, the shallow aquifer water volume threshold required to generate baseflow is read from the model parameters. Based on the relationship between available water storage and this threshold, the baseflow discharge process is divided into the following two parallel scenarios: Scenario 1: When the available water storage is not greater than the shallow aquifer water volume threshold, the base current for that day is determined to be zero.

[0086] During the dry season or when shallow aquifers are under insufficient recharge, the aquifer's water storage capacity does not reach the critical discharge condition, and there is no physical baseflow discharge into the river channel. In this case, regardless of the calculated result of the baseflow recursion value before constraints, the baseflow for that day is set to zero.

[0087] Scenario 2: When the available water storage is greater than the shallow aquifer water volume threshold, the smaller value between the available water storage and the pre-constraint baseflow recursive value is determined as the baseflow for the day.

[0088] During the receding water period or when the aquifer has sufficient water storage, baseflow discharge is limited by the physical available water volume. The pre-constraint baseflow recursive value is compared with the available water volume, and the smaller value is taken as the actual baseflow for the day, ensuring that the discharge does not exceed the upper limit of the aquifer's physical water storage. After completing the baseflow calculation, the baseflow for that day and other subsequent outflows occurring in sequence are subtracted from the available water storage to update the shallow aquifer water storage for the day, for recursion use on the next calculation day.

[0089] Example 5: This embodiment is an optional implementation method. The liquid time constant network used is pre-calibrated through the following steps, such as... Figure 5 As shown, the specific implementation process is as follows: Step 501: Obtain daily meteorological driving data and corresponding observation flow sequences for the training period.

[0090] During the offline training phase, it is necessary to collect historical meteorological data and measured flow data corresponding to the target watershed. The historical meteorological data is used as the driving input for the network and physical models, and the measured flow data is used as a reference benchmark for evaluating the accuracy of the model output.

[0091] Step 502: Initialize the historical hydrological state and the hidden state of the network. For each set of candidate network parameters, continuously execute the daily recursive calculation steps based on the daily meteorological driving data during the training period to obtain the simulated flow sequence during the training period. Among them, the hydrological state data of the previous day required for historical recursion is dynamically generated by the coupled calculation process corresponding to the current candidate network parameters.

[0092] Before initiating continuous simulation, the initial hidden state and initial feature recursion of the network are set to zero. This zero value indicates that the historical learning features at the initial time are unknown and treated as neutral information, but does not mean that the initial shallow aquifer storage is zero. The initial physical hydrological state is obtained from the actual initialization values ​​of the benchmark SWAT model. During continuous computation, a preheating and continuous operation strategy is adopted, and an initial value sensitivity check is performed to eliminate the influence of the initial value on subsequent evaluations. Throughout the continuous time-step progression of the entire training period, the historical hydrological state required for the current time step is calculated by the coupled model itself driven by the current candidate network parameters, without introducing external observation data for state replacement, to ensure the consistency of the dynamic recursion logic within the model.

[0093] Step 503: Calculate the comprehensive objective function based on the simulated flow sequence and the observed flow sequence during the training period.

[0094] To evaluate the model's fitting ability under different hydrological conditions, this invention constructs a comprehensive objective function containing three error components. Specifically: The difference between the simulated flow sequence and the observed flow sequence during the training period is calculated for each calculation day. This difference is divided by the biased mean measured flow and the squared mean is calculated to obtain the mean square error term. The ratio of the biased simulated flow to the biased mean measured flow, and the ratio of the biased observed flow to the biased mean measured flow, are calculated separately. The natural logarithm of these two ratios is taken, and the squared mean of the differences is calculated to obtain the logarithmic error term. The absolute deviation between the total simulated flow and the total observed flow during the entire training period is calculated and divided by the biased total observed flow to obtain the cumulative water volume deviation term. These three terms are multiplied by their corresponding preset non-negative weights and then summed to obtain the comprehensive objective function.

[0095] Accordingly, the mean square error term focuses on evaluating the accuracy of the flood peak fitting during the high-water season, the logarithmic error term focuses on evaluating the receding process during the dry season, and the cumulative water volume deviation term is used to constrain the overall water volume balance of long-sequence simulations, and its expression is as follows: ; In the formula: This represents the value of the comprehensive objective function, and is dimensionless. The preset weighting coefficient for the mean square error term is dimensionless. This indicates the total number of calculation days during the training period; Indicates the time step index, i.e., the first... day; Indicates the first Simulated daily flow rate, in cubic meters per second; Indicates the first Daily observed flow rate, in cubic meters per second; This represents the average flow rate observed during the training period, expressed in cubic meters per second. This represents a preset positive decimal used to avoid division by zero errors, in cubic meters per second. The predefined weighting coefficient for the logarithmic error term is dimensionless. Represents the natural logarithm operation; This represents the preset weighting coefficient for the cumulative water volume deviation term; it is dimensionless. This represents the summation operation; This represents absolute value operations.

[0096] Step 504: A gradient-free optimization algorithm that does not rely on the gradient information of the physical model is adopted to minimize the comprehensive objective function. The candidate network parameters are updated globally until the preset stopping criterion is met, and the calibrated liquid time constant network parameters are obtained.

[0097] Because the SWAT model contains empirically-based conditional decision branches and non-differentiable discrete physical formulas, traditional gradient descent algorithms based on error backpropagation cannot be applied. Therefore, a gradient-free optimization algorithm (such as the covariance matrix adaptive evolution strategy algorithm) is used to globally optimize the network parameters. During the optimization process, the existing baseline hydrological static parameters of the SWAT model are kept constant, and only the weight matrix and bias vector in the liquid time constant network are used as variables to be optimized.

[0098] Gradient-free optimization algorithms are not limited to covariance matrix adaptive evolution strategies; particle swarm optimization, differential evolution, and other commonly used global optimization algorithms in this field can also be employed. The specific type of internal activation function of the liquid time constant network (e.g., using ReLU instead of tanh as the activation function for candidate states) can be adjusted according to actual needs. Those skilled in the art can make adaptive modifications without changing the basic structure of time constant-driven state updates.

[0099] In one optional implementation, the dimensions of both the fast-response and slow-response hidden states are set to 4 dimensions each, and the total number of trainable network parameters is set to 410. The population size of the optimization algorithm is set to 22, and the initial search standard deviation is set to 0.2. New candidate network parameter groups are generated iteratively, and the coupled model is run independently to evaluate their corresponding comprehensive objective function until the preset maximum number of iterations or the objective function convergence condition is reached. The optimal set of network parameters is then output for actual deployment. The specific values ​​of the aforementioned hyperparameters, such as the hidden state dimension, population size, and initial search standard deviation, can be determined by those skilled in the art through cross-validation or based on a limited set of preliminary experiments.

[0100] Example 6: This embodiment provides a watershed runoff prediction system, electronic device, and computer-readable storage medium based on an improved SWAT model using a liquid time constant network, for implementing the prediction method and training strategy described in the above embodiments. Since this embodiment pertains to the virtualization of the method embodiments and the conventional deployment of general-purpose basic hardware, without modifying the underlying hardware architecture, a general description is used.

[0101] A watershed runoff prediction system based on an improved SWAT model using a liquid time constant network, such as... Figure 6 As shown, it includes: The data acquisition module is used to acquire daily meteorological driving data, previous day hydrological status data including the previous day's shallow hydrological status, and baseline hydrological static parameters. The fast response processing module is used to update the fast response hidden status based on daily meteorological driving data, the previous day's hydrological status data and baseline hydrological static parameters, and generate the number of SCS runoff curves for the day. The land surface calculation module is used to input the daily SCS runoff curve data into the preset SWAT model land surface process module for calculation to obtain the land surface runoff component and the actual bottom outflow. The message generation module is used to generate cross-branch transmission messages based on the actual bottom water output and the fast response hidden state; The slow response processing module is used to update the slow response hidden state by combining cross-branch message transmission with the previous day's shallow hydrological status, and to generate the baseflow recession coefficient for the current day. The baseflow calculation and summarization module is used to input the baseflow decline coefficient of the day into the preset SWAT model groundwater process module to calculate the baseflow, and sum the land surface runoff component and baseflow to obtain the daily flow rate of the watershed outlet section during the forecast period.

[0102] In practical applications, the above modules can be implemented as software program code running on a computing device, or as control instructions embedded in logic circuits. The data interaction between the modules follows an intraday serial recursive logic, that is, the output of the fast response processing module serves as the input of the land surface calculation module, the physical water volume extracted by the land surface calculation module is transmitted to the message generation module, and then drives the coordinated operation of the slow response processing module and the base current calculation and aggregation module.

[0103] This embodiment also provides an electronic device, including a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, it implements the watershed runoff prediction method based on the improved SWAT model using a liquid time constant network as described in the above embodiment.

[0104] In one optional hardware configuration architecture, the electronic devices also include a communication interface and an internal bus. The processor, memory, and communication interface communicate and transmit data via the internal bus. The processor uses a general-purpose CPU, GPU, or ASIC (Integrated Circuit-Based Application) microprocessor. The communication interface receives daily meteorological driving data from external weather stations or hydrological databases. The memory uses a combination of RAM and non-volatile memory (such as flash memory or hard disk) to cache the previous day's hydrological status data during the daily recursion process and to store calibrated network parameters and SWAT model baseline hydrological static parameters.

[0105] This embodiment also provides a computer-readable storage medium storing a computer program thereon. When the computer program is executed by a processor, it implements the watershed runoff prediction method based on the improved SWAT model using a liquid time constant network as described in the above embodiment.

[0106] Computer-readable storage media encompasses any tangible medium capable of recording or storing instruction code, including but not limited to read-only memory (ROM), erasable programmable read-only memory (EPROM), portable compact disk read-only memory (CD-ROM), magnetic storage devices, or solid-state drives (SSDs). When this storage medium is deployed in a computing node and read and executed, it can drive the underlying hardware to complete a series of computational steps, such as meteorological data parsing, network feature updating, physical model invocation, and traffic aggregation.

[0107] Example 7: This embodiment provides an alternative mechanism to relax physical boundary constraints for watershed scenarios (such as watersheds in a frozen period or using non-standard soil wetting relationships).

[0108] When performing the daily SCS runoff curve calculation, if it is determined that the current calculation day is in the preset freezing period, or the target watershed does not apply the standard soil moisture condition classification standard, the rules for determining the physical reasonable interval will be adjusted.

[0109] Specifically, the theoretical runoff lower limit corresponding to the baseline SCS runoff curve number is obtained as the preset lower bound; at the same time, the upper bound restriction calculated based on the previous soil wetting condition III is removed, and the preset upper bound is set as the theoretical limit value characterizing extreme impermeability conditions (for example, a value of 99).

[0110] After boundary adjustment, a nonlinear mapping is performed on the fast response hidden state using the alternative boundary: the inner product of the fast response hidden state and its corresponding weight vector is calculated, and a bias scalar is added; the above summation result is applied to the Logistic function for nonlinear activation to obtain the activation ratio in the 0~1 interval; the difference between the preset upper bound and the preset lower bound is calculated, and this difference is multiplied by the activation ratio and then added to the preset lower bound to obtain the number of SCS runoff curves for the day in the alternative scenario, as shown in the following expression: ; In the formula: Indicates the first The hydrological response unit at the first The number of SCS runoff curves generated daily is dimensionless. Represented as the first The preset lower bound of each hydrological response unit is dimensionless. Represented as the first The preset upper limit set for each hydrological response unit is dimensionless. This represents the Logistic nonlinear activation function; This represents the dimensionless weight vector used to map the number of SCS runoff curves. Indicates the first The hydrological response unit at the first The fast-response hidden state vector of the day is dimensionless; This represents a dimensionless bias scalar used to map the number of SCS runoff curves.

[0111] Meanwhile, this alternative expands the parameter search space of the liquid time constant network under extreme weather or special underlying surface conditions. When a fixed theoretical limit is used as the upper bound, the parameters generated by the network can cover the high runoff range that conventional empirical relationships cannot reach, enabling the model to simulate abnormal runoff events under extreme impermeability conditions or during permafrost thawing, and enhancing the applicability of the prediction method under non-stationary hydrological conditions.

[0112] This invention introduces a fast-and-slow-response bi-branch liquid time constant network, adaptively updating the time constant based on daily meteorological drivers and previous hydrological conditions, dynamically generating daily SCS runoff curve numbers and baseflow recession coefficients. This mechanism enhances the model's ability to dynamically perceive non-stationary hydrological responses, improving the flow fitting accuracy during the flood peak rise phase and the dry season recession process.

[0113] Furthermore, a physical-data deep serial coupling architecture was constructed. By having the parameters generated by the network be assigned to the physical module for water allocation, and by using the actual bottom outflow and shallow recharge to weight and normalize the messages transmitted across branches, the synchronous movement of data features with the physical water flow was achieved. This not only improves the flexibility of prediction but also helps to ensure the conservation of physical water volume for each hydrological component within the system.

[0114] In addition, to overcome the problem of insufficient generalization ability of the model under extreme conditions, this scheme applies physical boundary constraints to the dynamically generated parameters and performs global optimization by combining a comprehensive objective function that includes the cumulative water volume deviation. This helps to suppress the risk of the data-driven model outputting abnormal extreme values ​​under sparse samples and maintain the numerical stability of the model in long-sequence prediction.

[0115] It should be noted that the various specific technical features described in the above embodiments can be combined in any suitable manner without contradiction. To avoid unnecessary repetition, the present invention will not describe the various possible combinations separately.

Claims

1. A watershed runoff prediction method based on an improved SWAT model using a liquid time constant network, characterized in that, include: Acquire daily meteorological driving data, including the previous day's shallow hydrological status data and baseline hydrological static parameters; The fast response hidden status is updated based on daily meteorological driving data, previous day's hydrological status data, and baseline hydrological static parameters, and the number of SCS runoff curves for the day is generated. Input the daily SCS runoff curve data into the preset SWAT model land surface process module for calculation to obtain the actual bottom outflow. Generate cross-branch messages based on the actual bottom water output and the fast-response hidden state; Combine cross-branch message transmission with the previous day's shallow hydrological status update slow response hidden state, and generate the baseflow recession coefficient for the current day; The baseflow decline coefficient for the day is input into the preset SWAT model groundwater process module to calculate the baseflow, and the daily flow rate at the watershed outlet section during the forecast period is obtained by summing up the hydrological components.

2. The method according to claim 1, characterized in that, The fast response hidden state is updated based on daily meteorological driving data, previous day's hydrological status data, and baseline hydrological static parameters, and the number of SCS runoff curves for the day is generated, specifically including: Use daily meteorological driving data, previous day's hydrological status data, and baseline hydrological static parameters as fast response inputs; Based on the fast response input and the previous day's fast response hidden state, calculate the fast response time constant, which is limited to the upper and lower bounds of the preset time constant, and the fast response candidate state for the current day; The state retention coefficient is determined based on the fast response time constant. The fast response hidden state of the previous day and the fast response candidate state of the current day are then exponentially decayed and weighted using the state retention coefficient to obtain the fast response hidden state. The fast response hidden state generates the daily SCS runoff curve number through a mapping function, and the daily SCS runoff curve number is limited to a preset physical reasonable range. The physical reasonable range is determined by the upper and lower bounds of the previous soil moisture status converted from the baseline SCS runoff curve number.

3. The method according to claim 1, characterized in that, The daily SCS runoff curve data is input into the preset SWAT model land surface process module for calculation to obtain the actual bottom outflow, specifically including: Before calculating surface runoff in the SWAT model's land surface processes module, enter the daily SCS runoff curve number and calculate the surface runoff, infiltration, and soil moisture transport processes in sequence. The actual bottom outflow is calculated as the amount of water that seeps into the groundwater recharge delay stage after the soil moisture transport process. The actual bottom outflow is a non-negative physical water volume, and it is not repeatedly deducted from the soil water storage after the read item is extracted as a network feature transmission.

4. The method according to claim 1, characterized in that, Based on the actual bottom outflow and the fast-response hidden state, cross-branch message transmission is generated, including: The actual shallow recharge is calculated based on the actual bottom outflow rate after a recharge delay process. The fast-response hidden state is weighted using the actual bottom outflow rate to obtain the feature recursion quantity; The feature recursion is normalized using the actual shallow supply amount to generate cross-branch transmission messages.

5. The method according to claim 4, characterized in that, The fast-response hidden state is weighted using the actual bottom outflow volume to obtain the feature recursion, including: Obtain the baseline recharge delay coefficient from the baseline hydrological static parameters; The characteristic recursive amount of the previous day is historically attenuated using the benchmark replenishment delay coefficient, and the attenuation result is accumulated with the product of the actual bottom outflow and the fast response hidden state to obtain the characteristic recursive amount of the day. The feature recursion is normalized using the actual shallow replenishment amount to generate cross-branch passing messages, including: The deep layer distribution ratio is obtained from the baseline hydrological static parameters; The dimensionless cross-branch transmission message is calculated by using the sum of the actual shallow replenishment amount and the preset positive scale constant as the denominator and the characteristic recursive amount adjusted based on the deep distribution ratio as the numerator.

6. The method according to claim 1, characterized in that, By combining cross-branch message transmission with the previous day's shallow hydrological status update slow response hidden state, the baseflow recession coefficient for the current day is generated, specifically including: By concatenating the cross-branch message with the previous day's shallow hydrological status, the slow response branch input is obtained. The slow response time constant and the candidate slow response state for the day are calculated based on the slow response branch input, wherein the slow response time constant is limited to the preset lower and upper bounds of the slow response time constant. The slow response state retention coefficient is calculated based on the slow response time constant, and the slow response hidden state of the previous day and the slow response candidate state of the current day are exponentially decayed and weighted using the slow response state retention coefficient to obtain the slow response hidden state. The slow response hidden state is mapped using a mapping function with preset lower and upper bounds for base current decay, generating the base current decay coefficient for the day.

7. The method according to claim 4, characterized in that, The baseflow recession coefficient for the day is input into the pre-set SWAT model groundwater process module, and the baseflow is calculated in conjunction with the actual shallow recharge. Specifically, this includes: Based on the previous day's baseflow term in the previous day's shallow hydrological conditions, the current day's baseflow decline coefficient, and the actual shallow recharge, the baseflow recursion value before constraint is calculated by exponential recursion. Obtain the threshold of shallow aquifer water volume required to generate baseflow, and determine the available water volume based on the previous day's shallow water storage in the previous day's shallow hydrological state and the actual shallow recharge. When the available water storage is not greater than the shallow aquifer water volume threshold, the base current for that day is determined to be zero. When the available water storage is greater than the shallow aquifer water volume threshold, the smaller value between the available water storage and the pre-constraint baseflow recursive value is determined as the baseflow for that day.

8. The method according to claim 1, characterized in that, The liquid time constant network used in this method is pre-calibrated through the following steps: Acquire daily meteorological driving data and corresponding observed flow sequences during the training period; Initialize the historical hydrological state and the hidden state of the network. For each set of candidate network parameters, continuously execute the daily recursive calculation steps of claim 1 based on the daily meteorological driving data during the training period to obtain the simulated flow sequence during the training period. The hydrological state data of the previous day required for historical recursion is dynamically generated by the coupled calculation process corresponding to the current candidate network parameters. Calculate the integrated objective function based on the simulated flow sequence and the observed flow sequence during the training period; A gradient-free optimization algorithm that does not rely on the gradient information of the physical model is adopted. The candidate network parameters are globally updated with the goal of minimizing the comprehensive objective function until the preset stopping criterion is met, and the calibrated liquid time constant network parameters are obtained.

9. The method according to claim 1, characterized in that, Daily meteorological driving data includes daily precipitation and potential evapotranspiration; previous day's hydrological status data includes soil profile water storage at the end of the previous day, previous day's soil water change, and previous day's baseflow depth; the steps of acquiring daily meteorological driving data, previous day's hydrological status data including previous day's shallow hydrological status, and baseline hydrological static parameters also include: Obtain the preset time category code representing the current date; concatenate the preset time category code with daily meteorological driving data, the previous day's hydrological status data, and the baseline hydrological static parameters as the update input for the fast response hidden state; The preset time category code is incorporated into the slow response branch input, and together with the cross-branch message and the previous day's shallow hydrological status, it serves as the update input for the slow response hidden state.

10. A watershed runoff prediction system based on an improved SWAT model using a liquid time constant network, characterized in that, include: The data acquisition module is used to acquire daily meteorological driving data, previous day hydrological status data including the previous day's shallow hydrological status, and baseline hydrological static parameters. The fast response processing module is used to update the fast response hidden status based on daily meteorological driving data, the previous day's hydrological status data and baseline hydrological static parameters, and generate the number of SCS runoff curves for the day. The land surface calculation module is used to input the daily SCS runoff curve data into the preset SWAT model land surface process module for calculation to obtain the actual bottom outflow. The message generation module is used to generate cross-branch transmission messages based on the actual bottom water output and the fast response hidden state; The slow response processing module is used to update the slow response hidden state by combining cross-branch message transmission with the previous day's shallow hydrological status, and to generate the baseflow recession coefficient for the current day. The baseflow calculation and summarization module is used to input the baseflow decline coefficient of the day into the preset SWAT model groundwater process module to calculate the baseflow and summarize the hydrological components to obtain the daily flow rate of the watershed outlet section during the forecast period.