A Deep Learning-Based Automatic Flash Flood Identification and Real-Time Early Warning System
By constructing a deep learning-based automatic flash flood identification and real-time early warning system, the problems of data sparsity and low computational efficiency in existing systems have been solved, achieving high-precision flash flood monitoring and real-time early warning, and improving the reliability and response capability of flash flood early warning.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-26
- Publication Date
- 2026-03-06
AI Technical Summary
Existing flash flood disaster early warning systems suffer from problems such as data sparsity, low computational efficiency, and delayed response. Furthermore, they lack a data reverse correction mechanism, making it difficult to correct prediction errors in real time and thus unable to adapt to flash flood scenarios characterized by suddenness and uneven spatial and temporal distribution.
A deep learning-based automatic flash flood identification and real-time early warning system was constructed, including modules for data acquisition and quality control, precipitation correction and fusion, watershed topology construction, spatiotemporal feature generation, depth prediction, hydrodynamic simulation, and coupled correction. This system enables unified acquisition and quality control of multi-source data, dynamic adjustment of error weights, dual-drive coupled correction, and generation of high-precision early warning information.
It has improved the accuracy of flash flood monitoring and the efficiency of early warning response, realized intelligent modeling and dynamic correction of flash flood evolution process, significantly reduced false alarm rate and missed alarm rate, and improved the reliability and timeliness of early warning results.
Smart Images

Figure CN121189243B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of emergency early warning management technology, and in particular to a flash flood automatic identification and real-time early warning system based on deep learning. Background Technology
[0002] Currently, most flash flood early warning systems rely on traditional hydrological and hydraulic models and monitoring networks, with data primarily sourced from rain gauges, river level stations, and some remote sensing information. While these systems have achieved some degree of prediction and warning for basin-wide floods, they often face challenges such as data sparsity, low computational efficiency, and delayed response in flash flood scenarios characterized by their suddenness and uneven spatial and temporal distribution. Existing systems typically employ a unidirectional model, calculating runoff from rainfall, then flow and water level, lacking a data-backward correction mechanism, making it difficult to correct prediction errors in real time during operation.
[0003] At the data processing level, existing technologies have significant shortcomings in precipitation fusion and uncertainty quantification. Due to differences in temporal resolution, spatial coverage, and error characteristics among rain gauge, radar, and satellite data, simple linear interpolation or weighted averaging often fails to identify localized abnormal precipitation in a timely manner, thus affecting the accuracy of subsequent hydrological response simulations. Furthermore, some systems use fixed thresholds for flash flood triggering, ignoring the spatiotemporal differences across different watersheds and climatic conditions. This results in warnings that are either overly sensitive and produce false alarms, or delay responses and miss optimal intervention opportunities.
[0004] In hydrodynamic calculations, traditional methods for solving two-dimensional shallow water equations are computationally intensive, and most employ explicit schemes or simple iterative methods, making it difficult to balance accuracy and stability. Furthermore, at the model coupling level, existing technologies typically lack a dynamic fusion mechanism for deep learning model predictions and hydrodynamic simulation results, leading to accumulated biases and boundary inconsistencies between predictions and simulations, and preventing the formation of a feedback correction loop.
[0005] Therefore, how to provide a deep learning-based automatic flash flood identification and real-time early warning system is a problem that urgently needs to be solved by those skilled in the art. Summary of the Invention
[0006] One objective of this invention is to propose a deep learning-based automatic flash flood identification and real-time early warning system. This invention constructs a complete link from multi-source data acquisition to intelligent prediction and dynamic early warning, realizing the automation and real-time processing of precipitation information fusion, flash flood evolution process simulation and risk classification release, thereby improving the accuracy of flash flood monitoring and the efficiency of early warning response.
[0007] According to an embodiment of the present invention, a flash flood automatic identification and real-time early warning system based on deep learning includes:
[0008] The data acquisition and quality control module is used to collect precipitation and topographic data, align them with the spatial grid at a uniform time step, and generate basic observation data with quality control markers.
[0009] The precipitation correction and fusion module is used to correct the time-step deviation of multi-source precipitation and generate a rasterized precipitation field with fixed resolution and uncertainty measurement.
[0010] The watershed topology construction module is used to fill depressions and connect flat areas in terrain data, and generate a list of nodes and a list of upstream and downstream connections to form a watershed topology.
[0011] The spatiotemporal feature generation module is used to align the rasterized precipitation field with the watershed topology, summarize precipitation by node coverage area and fill in missing measurements to obtain the spatiotemporal feature sequence of nodes and edges.
[0012] The deep prediction module is used to input spatiotemporal feature sequences into a spatiotemporal deep learning model, train it according to quantile loss and classification loss, and generate deep prediction results.
[0013] The hydrodynamic simulation module is used to set initial and boundary conditions on an unstructured mesh, solve the two-dimensional shallow water equations using finite volume discretization and double conjugate gradient stabilization iteratively, and output hydrodynamic simulation results.
[0014] The coupling correction and early warning release module is used to update the prediction and boundary to obtain the coupling correction results, generate hierarchical early warnings, and complete the archiving.
[0015] Optionally, modules can be integrated using the following methods:
[0016] Multi-source precipitation and topographic data were collected, and quality control and integrity verification were performed to obtain quality-controlled basic observation data.
[0017] Bias correction and spatiotemporal fusion are performed on precipitation data to generate a rasterized precipitation field with fixed spatiotemporal resolution and uncertainty measurement.
[0018] Based on topographic data, watershed partitions and upstream-downstream connectivity are established, and watershed topology is constructed.
[0019] Align the rasterized precipitation field with the watershed topology and generate spatiotemporal feature sequences of nodes and edges at a unified time step;
[0020] Input the spatiotemporal feature sequence into the spatiotemporal deep learning model and output the deep prediction results for the future forecast period;
[0021] Driven by depth prediction results and gridded precipitation fields, a two-dimensional shallow water hydrodynamic simulation is performed in the target area to obtain hydrodynamic simulation results including water depth, flow velocity, peak arrival time, maximum water level and inundation range that evolve over time.
[0022] Dual-drive coupled correction is implemented based on depth prediction and hydrodynamic simulation results as input. The deviations in time and space are calculated and correction values are generated. The depth prediction and simulation boundaries are updated based on the correction values, and the coupled correction results are output.
[0023] The dynamic triggering threshold is calculated based on uncertainty measurement and spatiotemporal characteristic sequence, and compared with the coupling correction result to form a triggering judgment quantity. The triggering probability is reliably calibrated and the decision threshold is determined according to the preset cost ratio. A graded early warning is generated, and the results of continuous time steps are deduplicated and throttled. Early warning information is issued and archived.
[0024] Optionally, obtaining the quality-controlled basic observation data specifically includes:
[0025] Establish a unified time step and spatial grid, determine spatial reference coordinates and target grid resolution, compile a data collection list and create tasks, acquire precipitation data from rain gauges, radar, and satellites, and simultaneously acquire topographic data including basic terrain and river boundaries, recording the source, timestamp, coordinates and integrity markers for each data entry;
[0026] Numerical range and temporal variation range checks were performed on precipitation and topographic data. Consistency checks and multi-source comparison checks were conducted. Anomalies were marked using sliding window statistics. Missing data caused by terrain obstruction or communication failures were weighted and interpolated according to the principles of temporal proximity, spatial proximity, and terrain similarity. Quality control marks were generated for each data point. Numerical range checks, temporal variation checks, and consistency checks were recorded to form a basic data set.
[0027] Precipitation data is converted to a unified coordinate system and resampled to the target grid with a unified time step. Station observations are mapped to the target grid based on distance and elevation differences. Topographic data is aligned to the same spatial grid and output quality-controlled basic observation data.
[0028] Optionally, the formation of the gridded precipitation field specifically includes:
[0029] The system calls up the quality-controlled basic observation data, reads and aligns it to the same timestamp and target grid in sequence according to time steps, performs bias correction on the precipitation data separately, calculates the stability correction coefficient for each source on each grid, obtains the stability correction coefficient by using a sliding window on an event-by-event basis and robust statistics, performs multiplicative correction on the original values step by step, outputs the corrected precipitation data, and retains the correction coefficient and time window information.
[0030] Using corrected precipitation data as input, spatiotemporal fusion is performed on a pixel-by-pixel basis. By taking into account source reliability, observation error level and neighborhood consistency, a rasterized precipitation field with fixed spatial resolution and fixed time step is generated, and the uncertainty metric for each pixel is given.
[0031] Optionally, the construction of the watershed topology specifically includes:
[0032] On a unified spatial grid, load terrain data and align it to the target coordinates and grid resolution. Perform depression filling and flat depression connectivity processing to eliminate local depressions without drainage and false steps, and generate a hydrologically consistent terrain grid.
[0033] Based on the terrain grid, the direction of water flow and upstream source are determined grid by grid. The cumulative amount of confluence is calculated in the order from upstream to downstream. Channel pixels are extracted based on the cumulative amount and continuously tracked to form the river line. The confluence points and outflow points of the river are identified to obtain the river skeleton and the set of key control points.
[0034] Constrained by the river channel framework and key control points, the grid is uniquely assigned to the corresponding control point according to the confluence of the river mouth, and sub-basin partitions are obtained. With sub-basins as nodes and upstream and downstream connections as directions, a node list and an upstream and downstream connection list are generated to construct a sortable watershed topology from upstream to downstream.
[0035] Optionally, the process of generating the spatiotemporal feature sequence specifically includes:
[0036] Using the rasterized precipitation field and uncertainty metric as input and the watershed topology as constraint, spatial alignment is performed on the target raster at a unified time step, establishing the grid-to-node assignment relationship, generating the node coverage area and edge adjacency list, and mapping the quality control marker and uncertainty metric to the corresponding node and edge.
[0037] The coverage area of each node is traversed by time step, and the precipitation values in the area are collected according to the quality control mark and uncertainty measure. Missing locations are filled in according to the principle of time proximity and spatial proximity, and node-level uncertainty is obtained simultaneously, forming a node feature record containing precipitation, state quantity and uncertainty.
[0038] For each directed edge, static attributes including river segment length, elevation difference, and upstream-downstream connectivity are collected. These attributes are then combined with node features from adjacent time steps to generate temporal features of the edge. The sliding window length and step size are set, and the node and edge features from consecutive time steps are packaged into a spatiotemporal feature sequence in a topological order from upstream to downstream.
[0039] Optionally, the output process of the depth prediction result specifically includes:
[0040] Set the step size and number of steps of the sliding window, align the spatiotemporal feature sequence with the nodes and upstream and downstream connection list of the watershed topology, package them into the model input sample set, and record the timestamp, coverage node range and corresponding quality control mark for each sample.
[0041] The model is input into the spatiotemporal deep learning model using the input sample set. Training is performed in batches. The quantile loss function is used to constrain the fitting error of the quantile flow, and the binary cross-entropy loss is used to constrain the classification error of the trigger probability. Iterative updates are performed according to the division of the training set, validation set, and test set until the convergence condition is met on the validation set, and the convergence parameters and model version are obtained.
[0042] At each current time step, the node and edge feature sequences are extracted as model inputs. The convergence parameters are called for inference, and the quantile flow and trigger probability of each node in the future forecast period are output. The results are organized into a depth prediction result according to the time step and node index.
[0043] Optionally, obtaining the hydrodynamic simulation results specifically includes:
[0044] A two-dimensional computational domain is established in the target area and an unstructured triangular mesh is generated. Velocity and water depth are used as basic state variables to construct the governing equations of the two-dimensional hydrodynamic model. The gridded precipitation field is mapped to the surface rainfall drive within the mesh. The depth prediction results are mapped to the upstream inflow boundary time series according to the watershed topology. A fixed water level is set in the downstream area to complete the initial water depth and boundary condition configuration.
[0045] The finite volume discretization method is used to solve the governing equations of a two-dimensional hydrodynamic model. Combined with a biconjugate gradient stabilization iterative method, the linear equations for each time step are solved. By traversing all grid cells and boundaries, the water exchange at each boundary and the source term contribution of each cell are calculated based on the water depth and velocity of the previous time layer. These are then assembled into a sparse coefficient matrix and right-hand side terms. The water depth and velocity of the previous time layer are used as the initial solution. The initial residuals are calculated and the residual norm is recorded. A convergence threshold, a maximum number of iterations, and a divergence protection value are set. In each iteration, two sparse matrix and vector multiplication operations are performed, the residuals are updated, and stabilization correction is executed. If the residuals increase or become unstable, a stabilization step is triggered and the search direction is reset. After each iteration, the magnitude of the residual decrease and the magnitude of the solution vector change are immediately evaluated. If the threshold is met, convergence is determined; otherwise, iteration continues. After convergence, the water depth and velocity of the current time layer are written back to the grid, completing the update for the current time step. The biconjugate gradient stabilization iterative method belongs to the Krylov subspace iterative method and is used for the efficient solution of implicitly discretized two-dimensional shallow water equations.
[0046] After the time progression ends, the water depth sequence of each unit changes over time, the moment when the water depth reaches the extreme value is extracted as the peak arrival time, the maximum water depth of the entire period is recorded as the maximum water level, the flooding range is defined by the area where the water depth exceeds the set threshold, and the hydrodynamic simulation results including the water depth, flow velocity, peak arrival time, maximum water level and flooding range that evolve over time are output.
[0047] Optionally, the output of the coupling correction result specifically includes:
[0048] On a unified time step and spatial grid, the depth prediction results are aligned with the hydrodynamic simulation results. The flow and water depth information of the two at the same time and spatial location are extracted. According to the watershed topology, the water depth field and velocity field in the hydrodynamic simulation are mapped to the node region. The area average of the water depth in each node region is taken, and the difference sequence with the corresponding depth prediction results is calculated. The difference sequence is compared in time order to determine the deviation trend of each node in time, and the time offset of the peak arrival time is identified to generate the initial value of the node-level time deviation.
[0049] Based on the uncertainty measurement results, weight coefficients are assigned to each node and grid point. Time deviation and spatial deviation are weighted to form time correction and spatial correction. The time correction is used to adjust the amplitude and time position of the flow prediction curve of each node. The corrected flow is mapped to the corrected inflow boundary along the upstream and downstream connectivity. The spatial correction is used to locally smooth and adjust the water depth distribution in the hydrodynamic simulation, so that the depth prediction is consistent with the simulation field at the same time step. The trigger probability is finely adjusted according to the direction of the corrected flow change.
[0050] The stopping condition is set to the maximum value of both node time deviation and spatial deviation being lower than the set threshold or reaching the maximum number of iterations. The correction calculation and simulation boundary update are performed iteratively, and the process stops when the stopping condition is met. The coupling correction result is then output.
[0051] Optionally, the process of issuing and archiving early warning information specifically includes:
[0052] The dynamic trigger threshold of each node is calculated by combining the spatiotemporal feature sequence and corrected according to the current uncertainty to form a threshold table;
[0053] The coupling correction results are compared with the dynamic trigger thresholds in the threshold table node by node to generate a trigger judgment quantity. The judgment quantity and trigger probability of each node are comprehensively evaluated, and reliability calibration is performed to maintain the original level of high confidence nodes and reduce the level of low confidence nodes. The node triggering results are classified into different levels and a graded early warning result is generated.
[0054] The system performs deduplication and throttling on the graded early warning results, retaining the time steps with significant changes and limiting the minimum release interval. The filtered graded early warning results are organized into records according to time sequence and spatial location. The system outputs structured information including trigger nodes, early warning levels, confidence levels, and impact ranges, and writes it synchronously into the archived database, thus completing the early warning release process.
[0055] The beneficial effects of this invention are:
[0056] 1. This invention establishes a highly consistent and accurate basic data system through unified acquisition and quality control of multi-source precipitation data and topographic data, which solves the problems of heterogeneous data sources, large accuracy differences and serious missing data in the existing system, and provides reliable input for subsequent modeling.
[0057] 2. This invention introduces a deviation correction and spatiotemporal fusion mechanism in the precipitation processing stage, which can dynamically adjust the error weights between different data sources, realize the quantification of uncertainty in the gridded precipitation field, and make the input data more consistent with the actual rainfall distribution characteristics, thereby improving the realism and spatial precision of rainfall-driven processes.
[0058] 3. This invention achieves automatic identification of water flow paths and sub-basin division under complex mountainous terrain conditions by constructing a watershed topology and node connection relationship based on terrain, providing structured support for the dynamic tracking of flood propagation paths.
[0059] 4. This invention innovatively proposes a dual-drive coupling correction mechanism for depth prediction and hydrodynamic simulation, realizing the bidirectional integration of data-driven and physical-driven approaches. By correcting temporal and spatial deviations in real time, the prediction results are dynamically self-corrected during continuous operation, ensuring the continuity and accuracy of the forecast. Attached Figure Description
[0060] The accompanying drawings are provided to further illustrate the invention and form part of the specification. They are used in conjunction with embodiments of the invention to explain the invention and do not constitute a limitation thereof. In the drawings:
[0061] Figure 1 This is a flowchart of a deep learning-based automatic flash flood identification and real-time early warning system proposed in this invention;
[0062] Figure 2 This is a schematic diagram of the algorithm structure of a deep learning-based automatic flash flood identification and real-time early warning system proposed in this invention. Detailed Implementation
[0063] The present invention will now be described in further detail with reference to the accompanying drawings. These drawings are simplified schematic diagrams, illustrating only the basic structure of the invention, and therefore only show the components relevant to the invention.
[0064] refer to Figures 1-2 A deep learning-based automatic flash flood identification and real-time early warning system includes:
[0065] The data acquisition and quality control module is used to collect precipitation and topographic data, align them with the spatial grid at a uniform time step, and generate basic observation data with quality control markers.
[0066] The precipitation correction and fusion module is used to correct the time-step deviation of multi-source precipitation and generate a rasterized precipitation field with fixed resolution and uncertainty measurement.
[0067] The watershed topology construction module is used to fill depressions and connect flat areas in terrain data, and generate a list of nodes and a list of upstream and downstream connections to form a watershed topology.
[0068] The spatiotemporal feature generation module is used to align the rasterized precipitation field with the watershed topology, summarize precipitation by node coverage area and fill in missing measurements to obtain the spatiotemporal feature sequence of nodes and edges.
[0069] The deep prediction module is used to input spatiotemporal feature sequences into a spatiotemporal deep learning model, train it according to quantile loss and classification loss, and generate deep prediction results.
[0070] The hydrodynamic simulation module is used to set initial and boundary conditions on an unstructured mesh, solve the two-dimensional shallow water equations using finite volume discretization and double conjugate gradient stabilization iteratively, and output hydrodynamic simulation results.
[0071] The coupling correction and early warning release module is used to update the prediction and boundary to obtain the coupling correction results, generate hierarchical early warnings, and complete the archiving.
[0072] This invention constructs an automatic flash flood identification and real-time early warning system that integrates deep learning and hydrodynamic simulation, forming a fully automated chain from data acquisition, precipitation correction, watershed topology construction to prediction, simulation and early warning release. It realizes intelligent modeling and dynamic correction of flood evolution under multi-source precipitation information and complex terrain conditions, significantly improving the accuracy and timeliness of flash flood monitoring. Furthermore, it achieves high reliability and interpretability of early warning results through a dual-drive coupling correction and uncertainty threshold determination mechanism.
[0073] In this embodiment, the modules are interconnected using the following method:
[0074] Multi-source precipitation and topographic data were collected, and quality control and integrity verification were performed to obtain quality-controlled basic observation data.
[0075] Bias correction and spatiotemporal fusion are performed on precipitation data to generate a rasterized precipitation field with fixed spatiotemporal resolution and uncertainty measurement.
[0076] Based on topographic data, watershed partitions and upstream-downstream connectivity are established, and watershed topology is constructed.
[0077] Align the rasterized precipitation field with the watershed topology and generate spatiotemporal feature sequences of nodes and edges at a unified time step;
[0078] Input the spatiotemporal feature sequence into the spatiotemporal deep learning model and output the deep prediction results for the future forecast period;
[0079] Driven by depth prediction results and gridded precipitation fields, a two-dimensional shallow water hydrodynamic simulation is performed in the target area to obtain hydrodynamic simulation results including water depth, flow velocity, peak arrival time, maximum water level and inundation range that evolve over time.
[0080] Dual-drive coupled correction is implemented based on depth prediction and hydrodynamic simulation results as input. The deviations in time and space are calculated and correction values are generated. The depth prediction and simulation boundaries are updated based on the correction values, and the coupled correction results are output.
[0081] The dynamic triggering threshold is calculated based on uncertainty measurement and spatiotemporal characteristic sequence, and compared with the coupling correction result to form a triggering judgment quantity. The triggering probability is reliably calibrated and the decision threshold is determined according to the preset cost ratio. A graded early warning is generated, and the results of continuous time steps are deduplicated and throttled. Early warning information is issued and archived.
[0082] This invention constructs a deep learning-based automatic flash flood identification and real-time early warning system, establishing a fully intelligent process from data acquisition, precipitation correction, watershed modeling to prediction, simulation, and early warning dissemination. It achieves the organic integration of data-driven and physical modeling, enabling dynamic identification of flood formation and propagation processes under complex terrain and multi-source precipitation conditions. This effectively reduces false alarm and missed alarm rates, improves the timeliness and accuracy of flash flood forecasts, and significantly enhances the intelligent monitoring and emergency response capabilities for mountain flood disasters.
[0083] In this embodiment, obtaining the quality-controlled basic observation data specifically includes:
[0084] Establish a unified time step and spatial grid, determine spatial reference coordinates and target grid resolution, compile a data collection list and create tasks, acquire precipitation data from rain gauges, radar, and satellites, and simultaneously acquire topographic data including basic terrain and river boundaries, recording the source, timestamp, coordinates and integrity markers for each data entry;
[0085] Numerical range and temporal variation range checks were performed on precipitation and topographic data. Consistency checks and multi-source comparison checks were conducted. Anomalies were marked using sliding window statistics. Missing data caused by terrain obstruction or communication failures were weighted and interpolated according to the principles of temporal proximity, spatial proximity, and terrain similarity. Quality control marks were generated for each data point. Numerical range checks, temporal variation checks, and consistency checks were recorded to form a basic data set.
[0086] Precipitation data is converted to a unified coordinate system and resampled to the target grid with a unified time step. Station observations are mapped to the target grid based on distance and elevation differences. Topographic data is aligned to the same spatial grid and output quality-controlled basic observation data.
[0087] This invention establishes a unified time step and spatial grid, enabling standardized integration and quality control of multi-source precipitation and topographic data. It effectively solves the problems of spatiotemporal resolution differences and missing data between different data sources, ensuring the integrity and consistency of input data and providing reliable basic data support for subsequent modeling and simulation.
[0088] In this embodiment, the formation of the gridded precipitation field specifically includes:
[0089] The system calls up the quality-controlled basic observation data, reads and aligns it to the same timestamp and target grid in sequence according to time steps, performs bias correction on the precipitation data separately, calculates the stability correction coefficient for each source on each grid, obtains the stability correction coefficient by using a sliding window on an event-by-event basis and robust statistics, performs multiplicative correction on the original values step by step, outputs the corrected precipitation data, and retains the correction coefficient and time window information.
[0090] Using corrected precipitation data as input, spatiotemporal fusion is performed on a pixel-by-pixel basis. By taking into account source reliability, observation error level and neighborhood consistency, a rasterized precipitation field with fixed spatial resolution and fixed time step is generated, and the uncertainty metric for each pixel is given.
[0091] This invention implements bias correction and spatiotemporal fusion on multi-source precipitation data, integrates the credibility and observation errors of different data sources, effectively eliminates systematic biases and improves data consistency, generates high-precision rasterized precipitation fields and uncertainty quantification results, thereby enhancing the realism and spatial precision of rainfall-driven events.
[0092] In this embodiment, the construction of the watershed topology specifically includes:
[0093] On a unified spatial grid, load terrain data and align it to the target coordinates and grid resolution. Perform depression filling and flat depression connectivity processing to eliminate local depressions without drainage and false steps, and generate a hydrologically consistent terrain grid.
[0094] Based on the terrain grid, the direction of water flow and upstream source are determined grid by grid. The cumulative amount of confluence is calculated in the order from upstream to downstream. Channel pixels are extracted based on the cumulative amount and continuously tracked to form the river line. The confluence points and outflow points of the river are identified to obtain the river skeleton and the set of key control points.
[0095] Constrained by the river channel framework and key control points, the grid is uniquely assigned to the corresponding control point according to the confluence of the river mouth, and sub-basin partitions are obtained. With sub-basins as nodes and upstream and downstream connections as directions, a node list and an upstream and downstream connection list are generated to construct a sortable watershed topology from upstream to downstream.
[0096] This invention achieves hydrological consistency of the terrain raster by filling depressions and connecting flat areas in the terrain data, automatically identifies the river skeleton, confluence points and watershed boundaries, and constructs a top-down sortable watershed topology that can accurately describe the water flow convergence path and upstream-downstream relationships.
[0097] In this embodiment, the process of generating the spatiotemporal feature sequence specifically includes:
[0098] Using the rasterized precipitation field and uncertainty metric as input and the watershed topology as constraint, spatial alignment is performed on the target raster at a unified time step, establishing the grid-to-node assignment relationship, generating the node coverage area and edge adjacency list, and mapping the quality control marker and uncertainty metric to the corresponding node and edge.
[0099] The coverage area of each node is traversed by time step, and the precipitation values in the area are collected according to the quality control mark and uncertainty measure. Missing locations are filled in according to the principle of time proximity and spatial proximity, and node-level uncertainty is obtained simultaneously, forming a node feature record containing precipitation, state quantity and uncertainty.
[0100] For each directed edge, static attributes including river segment length, elevation difference, and upstream-downstream connectivity are collected. These attributes are then combined with node features from adjacent time steps to generate temporal features of the edge. The sliding window length and step size are set, and the node and edge features from consecutive time steps are packaged into a spatiotemporal feature sequence in a topological order from upstream to downstream.
[0101] This invention aligns the rasterized precipitation field with the watershed topology, establishes the correspondence between nodes and edges, and generates a spatiotemporal feature sequence. This enables a unified expression of rainfall, topography, and water flow connection information, and can fully characterize the watershed hydrological response process in both time and space dimensions. It provides high-quality dynamic input data for deep learning models, thereby improving the spatiotemporal correlation and accuracy of flood evolution prediction.
[0102] In this embodiment, the output process of the depth prediction result specifically includes:
[0103] Set the step size and number of steps of the sliding window, align the spatiotemporal feature sequence with the nodes and upstream and downstream connection list of the watershed topology, package them into the model input sample set, and record the timestamp, coverage node range and corresponding quality control mark for each sample.
[0104] The model is input into the spatiotemporal deep learning model using the input sample set. Training is performed in batches. The quantile loss function is used to constrain the fitting error of the quantile flow, and the binary cross-entropy loss is used to constrain the classification error of the trigger probability. Iterative updates are performed according to the division of the training set, validation set, and test set until the convergence condition is met on the validation set, and the convergence parameters and model version are obtained.
[0105] At each current time step, the node and edge feature sequences are extracted as model inputs. The convergence parameters are called for inference, and the quantile flow and trigger probability of each node in the future forecast period are output. The results are organized into a depth prediction result according to the time step and node index.
[0106] This invention constructs a spatiotemporal deep learning model that organically combines watershed topology and node features. By utilizing a joint optimization strategy of quantile loss and classification loss, it achieves accurate modeling of flash flood evolution and multi-quantile prediction of future flow. This effectively characterizes nonlinear spatiotemporal dependencies and improves the model's generalization and convergence performance, thereby enhancing the accuracy of flood trigger probability judgment and forecast results.
[0107] In this embodiment, obtaining the hydrodynamic simulation results specifically includes:
[0108] A two-dimensional computational domain is established in the target area and an unstructured triangular mesh is generated. Velocity and water depth are used as basic state variables to construct the governing equations of the two-dimensional hydrodynamic model. The gridded precipitation field is mapped to the surface rainfall drive within the mesh. The depth prediction results are mapped to the upstream inflow boundary time series according to the watershed topology. A fixed water level is set in the downstream area to complete the initial water depth and boundary condition configuration.
[0109] The finite volume discretization method is used to solve the governing equations of a two-dimensional hydrodynamic model. Combined with a biconjugate gradient stabilization iterative method, the linear equations for each time step are solved. By traversing all grid cells and boundaries, the water exchange at each boundary and the source term contribution of each cell are calculated based on the water depth and velocity of the previous time layer. These are then assembled into a sparse coefficient matrix and right-hand side terms. The water depth and velocity of the previous time layer are used as the initial solution. The initial residuals are calculated and the residual norm is recorded. A convergence threshold, a maximum number of iterations, and a divergence protection value are set. In each iteration, two sparse matrix and vector multiplication operations are performed, the residuals are updated, and stabilization correction is executed. If the residuals increase or become unstable, a stabilization step is triggered and the search direction is reset. After each iteration, the magnitude of the residual decrease and the magnitude of the solution vector change are immediately evaluated. If the threshold is met, convergence is determined; otherwise, iteration continues. After convergence, the water depth and velocity of the current time layer are written back to the grid, completing the update for the current time step. The biconjugate gradient stabilization iterative method belongs to the Krylov subspace iterative method and is used for the efficient solution of implicitly discretized two-dimensional shallow water equations.
[0110] After the time progression ends, the water depth sequence of each unit changes over time, the moment when the water depth reaches the extreme value is extracted as the peak arrival time, the maximum water depth of the entire period is recorded as the maximum water level, the flooding range is defined by the area where the water depth exceeds the set threshold, and the hydrodynamic simulation results including the water depth, flow velocity, peak arrival time, maximum water level and flooding range that evolve over time are output.
[0111] This invention achieves efficient simulation of mountain flood dynamics under complex terrain conditions by establishing an unstructured grid in the target area and using a finite volume discretization and biconjugate gradient stabilization iterative method to solve the two-dimensional shallow water equations. It can stably solve large-scale sparse equation sets while maintaining computational accuracy, and quickly generate water depth, flow velocity and inundation range results that evolve over time, thereby improving the stability and real-time performance of mountain flood evolution simulation.
[0112] In this embodiment, the output of the coupling correction result specifically includes:
[0113] On a unified time step and spatial grid, the depth prediction results are aligned with the hydrodynamic simulation results. The flow and water depth information of the two at the same time and spatial location are extracted. According to the watershed topology, the water depth field and velocity field in the hydrodynamic simulation are mapped to the node region. The area average of the water depth in each node region is taken, and the difference sequence with the corresponding depth prediction results is calculated. The difference sequence is compared in time order to determine the deviation trend of each node in time, and the time offset of the peak arrival time is identified to generate the initial value of the node-level time deviation.
[0114] Based on the uncertainty measurement results, weight coefficients are assigned to each node and grid point. Time deviation and spatial deviation are weighted to form time correction and spatial correction. The time correction is used to adjust the amplitude and time position of the flow prediction curve of each node. The corrected flow is mapped to the corrected inflow boundary along the upstream and downstream connectivity. The spatial correction is used to locally smooth and adjust the water depth distribution in the hydrodynamic simulation, so that the depth prediction is consistent with the simulation field at the same time step. The trigger probability is finely adjusted according to the direction of the corrected flow change.
[0115] The stopping condition is set to the maximum value of both node time deviation and spatial deviation being lower than the set threshold or reaching the maximum number of iterations. The correction calculation and simulation boundary update are performed iteratively, and the process stops when the stopping condition is met. The coupling correction result is then output.
[0116] This invention introduces a dual-drive coupling correction mechanism based on depth prediction and hydrodynamic simulation results, which can dynamically calculate and correct deviations in the time and space dimensions, realize the real-time fusion of data-driven models and physical simulation models, effectively eliminate inconsistencies between prediction and simulation, improve the stability and accuracy of results, and enhance the adaptability and reliability of flash flood process simulation.
[0117] In this embodiment, the process of issuing and archiving early warning information specifically includes:
[0118] The dynamic trigger threshold of each node is calculated by combining the spatiotemporal feature sequence and corrected according to the current uncertainty to form a threshold table;
[0119] The coupling correction results are compared with the dynamic trigger thresholds in the threshold table node by node to generate a trigger judgment quantity. The judgment quantity and trigger probability of each node are comprehensively evaluated, and reliability calibration is performed to maintain the original level of high confidence nodes and reduce the level of low confidence nodes. The node triggering results are classified into different levels and a graded early warning result is generated.
[0120] The system performs deduplication and throttling on the graded early warning results, retaining the time steps with significant changes and limiting the minimum release interval. The filtered graded early warning results are organized into records according to time sequence and spatial location. The system outputs structured information including trigger nodes, early warning levels, confidence levels, and impact ranges, and writes it synchronously into the archived database, thus completing the early warning release process.
[0121] This invention introduces a dynamic threshold calculation and reliability calibration mechanism based on uncertainty measurement, which can automatically adjust the triggering conditions for risk changes in different watershed nodes and achieve multi-dimensional comprehensive judgment by combining the coupling correction results. This improves the accuracy and stability of flash flood warning classification. At the same time, by deduplicating the results and optimizing the information release frequency through flow control, it ensures that the warning response is efficient, reliable and traceable.
[0122] Example 1:
[0123] To verify the feasibility of this invention in practice, it was applied to a flood control monitoring and early warning project in a typical flash flood-prone watershed. This watershed has a highly undulating topography, deep valleys, concentrated rainfall, and low surface infiltration, making it extremely prone to short-duration, high-intensity flash floods. Traditional threshold methods rely on experience to set fixed rainfall or flow thresholds, triggering an early warning when monitoring data exceeds these thresholds. While this method is simple in structure, it lacks dynamic adaptability to topography, spatial differences in rainfall, and watershed response characteristics, often leading to false alarms or missed alarms under severe convective weather or localized torrential rain conditions.
[0124] During the application process, precipitation information from multiple sources, including regional rain gauges, weather radar, and satellite precipitation data, was collected and integrated, while high-resolution topographic data was acquired simultaneously. After quality control and consistency checks, a basic dataset with a unified time step and spatial resolution was formed.
[0125] Based on unified topographic data, the river network and sub-regional boundaries are automatically extracted through flow direction calculation and confluence accumulation analysis, forming a watershed topology covering 28 sub-basins and containing 122 nodes, providing physical support for subsequent modeling and simulation. Subsequently, the precipitation field is aligned with the topology to generate spatiotemporal feature sequences of nodes and edges, which are then input into a spatiotemporal deep learning model for training and prediction. This model employs a structure combining graph convolution and time series networks, effectively capturing the propagation effects of rainfall in the spatial and temporal dimensions of the watershed.
[0126] To further improve the physical plausibility of the prediction results, the depth prediction output and the precipitation driving field were used as inputs to perform a two-dimensional shallow water equation hydrodynamic simulation. The simulation was solved using the finite volume discretization method and the double conjugate gradient stabilization iterative algorithm. The computational domain was divided into an irregular triangular mesh, totaling approximately 68,000 elements.
[0127] During model operation, depth prediction results and hydrodynamic simulation results are fused through a coupled correction module. The system automatically calculates temporal and spatial deviations and generates correction values, synchronously updating the prediction and simulation boundaries. The system automatically calculates dynamic trigger thresholds using uncertainty metrics and determines the optimal warning level based on the trigger probability-cost ratio. To prevent frequent fluctuations in warning information, the system performs deduplication and throttling processes between consecutive time steps, outputting updated results only during critical changes. Specific experimental comparison data are shown in Table 1.
[0128] Table 1 Comparative Experiment Results
[0129]
[0130] As shown in Table 1, the coupling mechanism between deep learning and the hydrodynamic model significantly improves the accuracy of flow and depth prediction, increasing the Nash efficiency coefficient for peak flow prediction from 0.79 to 0.91 and reducing the peak time error from 55 minutes to 33 minutes. Regarding spatial simulation accuracy, the root mean square error of depth decreased from 0.38 meters to 0.22 meters, and the mean absolute error decreased from 12.6 m³ / s to 7.8 m³ / s. Computational efficiency also improved significantly, with the single-step simulation time reduced from 4.6 seconds to 2.6 seconds. In terms of early warning performance, the system's average advance warning time increased to 65 minutes, approximately 160% higher than the traditional empirical method, while the false alarm rate and missed alarm rate decreased to 12% and 8%, respectively, indicating that this invention possesses higher practicality and stability under complex watershed conditions.
[0131] The above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any equivalent substitutions or modifications made by those skilled in the art within the scope of the technology disclosed in the present invention, based on the technical solution and inventive concept of the present invention, should be covered within the scope of protection of the present invention.
Claims
1. A deep learning-based flash flood automatic identification and real-time warning system, characterized in that, Comprise: a data acquisition and quality control module for collecting precipitation and terrain data, aligning them according to a unified time step and spatial grid, and generating basic observation data with quality control markers; a precipitation revision and fusion module for performing time-step-by-time-step bias revision on multi-source precipitation to generate a fixed-resolution gridded precipitation field and uncertainty measure; a basin topology construction module for filling in concave areas and connecting flat areas in the terrain data to generate a node list and upstream and downstream connection list to form a basin topology; a spatiotemporal feature generation module for aligning the gridded precipitation field and the basin topology, aggregating precipitation according to node coverage areas, and filling in missing data to obtain spatiotemporal feature sequences of nodes and edges; a deep prediction module for inputting the spatiotemporal feature sequences into a spatiotemporal deep learning model, training according to quantile loss and classification loss, and forming deep prediction results; a hydrodynamic simulation module for setting initial and boundary conditions on a non-structured grid, solving a two-dimensional shallow water equation using finite volume discretization and double-conjugate gradient stabilization iteration, and outputting hydrodynamic simulation results; a coupling correction and early warning release module for updating the prediction and boundary to obtain coupling correction results, generating graded early warnings, and completing archiving; the output of the coupling correction results specifically comprises: aligning the deep prediction results and the hydrodynamic simulation results according to a unified time step and spatial grid, mapping the water depth field and velocity field in the hydrodynamic simulation to the node area according to the basin topology relationship, taking the area average value of the water depth in each node area, and calculating the difference sequence with the corresponding deep prediction results, comparing the difference sequence in time sequence to generate node-level time deviation initial values; assigning weight coefficients to each node and grid point based on the uncertainty measure results, weighting the time deviation and spatial deviation to form time correction and spatial correction, adjusting the amplitude and time position of the flow prediction curve of each node using the time correction, mapping the corrected flow along the upstream and downstream connection relationship to obtain the revised inflow boundary, and adjusting the trigger probability according to the direction of the corrected flow; setting a stop condition, iteratively performing correction amount calculation and simulation boundary update, and stopping when the stop condition is met to output the coupling correction results.
2. The flash flood automatic identification and real-time warning system based on deep learning according to claim 1, characterized in that, The modules are implemented through the following methods: collecting multi-source precipitation data and terrain data, and performing quality control and integrity verification to obtain quality-controlled basic observation data; performing bias revision and spatiotemporal fusion on the precipitation data to generate a gridded precipitation field containing uncertainty measures; forming basin partitions and upstream and downstream connection relationships based on terrain data to construct a basin topology; aligning the gridded precipitation field and the basin topology to generate spatiotemporal feature sequences of nodes and edges according to a unified time step; inputting the spatiotemporal feature sequences into a spatiotemporal deep learning model to output deep prediction results for the future prediction period; driving the deep prediction results and the gridded precipitation field to perform two-dimensional shallow water hydrodynamic simulation in the target area to obtain hydrodynamic simulation results; The double-drive coupling correction is implemented based on the depth prediction and the water dynamic simulation result as input, a deviation in time and space is calculated and a correction amount is generated, the depth prediction and the simulation boundary are updated, and a coupling correction result is output; A dynamic triggering threshold is calculated according to the uncertainty measure and the time-space feature sequence, reliability calibration is performed, and a hierarchical early warning is generated, early warning information is issued, and records are archived. 3.The flash flood automatic identification and real-time warning system based on deep learning according to claim 2, characterized in that, The obtaining of the quality-controlled basic observation data specifically includes: A unified time step and a spatial framework are established, a spatial reference coordinate and a target grid resolution are determined, a collection list is prepared, and a task is created, precipitation data are acquired from rain stations, radars and satellites, and terrain data are acquired, and the source, timestamp, coordinate and integrity mark of each piece of data are recorded; Numerical range and time variation amplitude checking is performed on the precipitation data and the terrain data, homologous consistency and multi-source comparison checking is carried out, abnormal data are marked by sliding window statistics, and quality control marks are generated for each piece of data to form a basic data set; The precipitation data are converted to a unified coordinate and resampled to a target grid and a unified time step, and the terrain data are aligned to the same spatial framework, and the quality-controlled basic observation data are output.
4. The flash flood automatic identification and real-time warning system based on deep learning according to claim 2, characterized in that, The formation of the gridded precipitation field specifically includes: The quality-controlled basic observation data are called, read and aligned to the same timestamp and target grid in time steps, and the precipitation data are respectively subjected to bias correction, and the corrected precipitation data are output; The corrected precipitation data are taken as input, spatio-temporal fusion is performed on each pixel, the source reliability, observation error level and neighborhood consistency are integrated, a gridded precipitation field at a fixed spatial resolution and a fixed time step is generated, and the uncertainty measure of each pixel is given. 5.The flash flood automatic identification and real-time warning system based on deep learning according to claim 2, characterized in that, The construction of the basin topology specifically includes: On a unified spatial framework, the terrain data are loaded and aligned to the target coordinate and grid resolution, concave filling and flat concave connection processing are performed, local depressions without drainage and false steps are eliminated, and a hydrologically consistent terrain grid is generated; Based on the terrain grid, the water flow direction and upstream source are determined, the flow accumulation is calculated in the order from upstream to downstream, the channel pixels are extracted according to the accumulation, and the river channel lines are continuously tracked to form, the river channel intersection points and outfall points are identified, the river channel skeleton and key control point set are obtained; The grid is uniquely assigned to the corresponding control point according to the river channel intersection point, and the sub-basin partition is divided, the node list and upstream and downstream connection list are generated, and the basin topology is constructed. 6.The flash flood automatic identification and real-time warning system based on deep learning according to claim 2, characterized in that, The generation process of the time-space feature sequence specifically includes: The gridded precipitation field and the uncertainty measure are taken as input, the basin topology is taken as constraint, spatial alignment is performed on the unified time step and the target grid, the assignment relationship of the grid to the node is established, the node coverage area and edge adjacency list are generated, and the quality control marks and the uncertainty measure are mapped to the corresponding nodes and edges. The precipitation values in the coverage area of each node are collected according to the quality control marks and the uncertainty metrics, missing positions are filled in according to the principle of time proximity and spatial proximity, and the node-level uncertainty is obtained synchronously, to form a node feature record containing precipitation, state quantity and uncertainty; Static attributes are collected for each directed edge, and the time sequence features of the edges are generated in combination with the node features of adjacent time steps, a sliding window length and a step are set, and the node and edge features of continuous time steps are packaged into a space-time feature sequence in a topological order from upstream to downstream.
7. The flash flood automatic identification and real-time warning system based on deep learning according to claim 2, characterized in that, The output process of the depth prediction result specifically includes: The step length and the number of steps of the sliding window are set, the space-time feature sequence is aligned with the node and upstream and downstream connection list of the basin topology, and is packaged into a model input sample set, and a time stamp, a coverage node range and a corresponding quality control mark are recorded for each sample; The model input sample set is input into the space-time deep learning model, training is performed in batches, the fitting error of the quantile flow is constrained by using a quantile loss function, the classification error of the trigger probability is constrained by using a binary cross-entropy loss, iterative updating is performed according to the division of the training set, the validation set and the test set, until the convergence condition is met on the validation set, the converged parameters and the model version are obtained; At each current time step, the node and edge feature sequence is extracted as the model input, the converged parameters are called for inference, and the quantile flow and the trigger probability of each node in the future prediction period are output, which are organized into the depth prediction result according to the time step and the node index. 8.The flash flood automatic identification and real-time warning system based on deep learning of claim 2, wherein, The water dynamics simulation result is obtained, specifically including: A two-dimensional calculation domain is established and a non-structured triangular mesh is generated, a two-dimensional water dynamics model control equation is constructed by taking velocity and water depth as basic state variables, a gridded precipitation field is mapped into a surface rainfall driving in the grid, the depth prediction result is mapped into an upstream inflow boundary time sequence according to the basin topology, and a constant water level is set at the downstream, to complete the initial water depth and boundary condition configuration; A finite volume discrete method is used to solve the two-dimensional water dynamics model control equation, and a double-conjugate gradient stabilization iteration method is used to complete the linear equation system solution at each time step, by traversing all grid cells and boundaries, the water exchange of each boundary and the source contribution of each cell are calculated according to the water depth and velocity of the last time layer, to form a sparse coefficient matrix and a right end item, the water depth and velocity of the last time layer are taken as the initial solution, the initial residual is calculated and the residual norm is recorded, a convergence threshold, a maximum iteration number and a divergence protection value are set, in each iteration, two sparse matrix and vector multiplication operations are performed, the residual is updated and the stabilization correction is performed, the residual reduction amplitude and the solution vector change amplitude are evaluated immediately after each iteration is completed, and the water depth and velocity of the current time layer are written back to the grid after convergence, to complete the current time step update; After the time advancement is completed, the water depth sequence of each cell changing over time is counted, the time when the water depth reaches the extreme value is extracted as the peak arrival time, the maximum water depth in the whole period is recorded as the maximum water level, the area where the water depth exceeds a set threshold is defined as the flooded area, and the water dynamics simulation result is output. 9.The flash flood automatic identification and real-time warning system based on deep learning of claim 2, wherein, The process of publishing the warning information and archiving the record specifically includes: The dynamic triggering threshold of each node is calculated in combination with the time-space feature sequence and is corrected according to the current uncertainty to form a threshold table; The coupling correction result is compared with the dynamic triggering threshold in the threshold table node by node to generate a triggering judgment quantity, the judgment quantity and the triggering probability of each node are comprehensively evaluated, the reliability calibration is performed, the node triggering result is classified and divided, and a classified early warning result is formed; The classified early warning result is de-duplicated and throttled, the classified early warning result passing the screening is organized into a record in time sequence and spatial position, and structured information containing a triggering node, an early warning level, a confidence degree and an influence range is output and synchronously written into an archival database.
Citation Information
Patent Citations
Drainage basin digital twinning construction method and system based on multi-source data fusion
CN120086718A
Urban flood prediction method based on dual-drive urban flood model
CN120781185A