Deep learning flood forecasting method and device fused with sparse self-attention mechanism

By integrating the deep learning method of the sparse self-attention mechanism, using digital elevation data to generate raster evaporation and rainfall data, and combining the site flow data to build the ConvLSTM-SSA model, the problem of insufficient accuracy in flood forecasting in the existing technology is solved and achieved for more efficient flood forecasting.

CN118586441AInactive Publication Date: 2024-09-03WUHAN UNIV

Patent Information

Application Number
CN202411059729.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-05
Publication Date
2024-09-03
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Flood forecasting in the existing technology relies on formula models, which makes it difficult to comprehensively assess flood influencing factors, resulting in inaccurate prediction results.

Method used

A deep learning method integrating sparse self-attention mechanism is used to generate raster evaporation and rainfall data by spatial interpolation of the digital elevation data of the target watershed, and the site flow data is used as input to build the ConvLSTM-SSA deep learning model. Flood forecasting is carried out by comprehensively considering the spatio-temporal information of multiple meteorological data.

Benefits of technology

It improves the accuracy of flood forecasting, reduces the computational complexity of the deep learning model, and enhances the applicability of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118586441A
    Figure CN118586441A
Patent Text Reader

Abstract

The invention discloses a deep learning flood forecasting method and device fusing a sparse self-attention mechanism. Performing spatial interpolation on the evaporation capacity data sequence to obtain a grid evaporation capacity data sequence; performing spatial interpolation on the rainfall data sequence to obtain grid rainfall data, determining grid early-stage influence rainfall data according to the grid rainfall data, and stacking the grid early-stage influence rainfall data and the grid rainfall data to form a grid rainfall data sequence and a grid early-stage influence rainfall data sequence; and constructing a flood forecasting model by taking the flow data sequence, the grid evaporation capacity data sequence, the grid rainfall data sequence and the grid early-stage influence rainfall data sequence as input objects of ConvLSTM-SSA deep learning model training so as to generate a flood forecasting result. According to the method, the flood forecasting model is constructed through the ConvLSTM model, spatio-temporal information of various meteorological data is comprehensively considered, and the applicability and accuracy of a deep learning model are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of hydrological forecasting, and in particular to a deep learning flood forecasting method and device integrating a sparse self-attention mechanism. Background Art

[0002] In related technologies, forecasts of future floods usually rely solely on formula models. Since these formula models are difficult to make a comprehensive assessment of the factors affecting floods, and these formula models inevitably contain human experience components, the prediction results are not accurate enough. Summary of the invention

[0003] In view of this, the present application provides a deep learning flood forecasting method and device integrating a sparse self-attention mechanism, which can improve the accuracy of flood forecasting.

[0004] In a first aspect, the present application provides a deep learning flood forecasting method integrating a sparse self-attention mechanism, comprising: According to the digital elevation data of the target watershed, spatial interpolation is performed on the evaporation data sequence in the target watershed to obtain the grid evaporation data sequence; According to the digital elevation data of the target watershed, spatial interpolation is performed on the rainfall data sequence in the target watershed to obtain raster rainfall data, raster previous affecting rainfall data is determined from the raster rainfall data, and the raster previous affecting rainfall data and the raster rainfall data are stacked to form a raster rainfall data sequence and a raster previous affecting rainfall data sequence; A flood forecasting model is constructed by taking the site flow data sequence, the grid evaporation data sequence, the grid rainfall data sequence, and the grid previous impact rainfall data sequence as input objects for ConvLSTM-SSA deep learning model training, so that the flood forecasting model can generate flood forecast results for future periods.

[0005] Optionally, the grid antecedent influencing rainfall data is determined from the grid rainfall data, using a rainfall-runoff relationship diagram method.

[0006] Optionally, the spatial interpolation of the raster evaporation data series and the spatial interpolation of the raster rainfall data are inverse distance weighted interpolation.

[0007] Optionally, spatial interpolation of the evaporation data sequence in the target watershed is performed according to the digital elevation data of the target watershed, including: Gridding the target watershed according to longitude and latitude to obtain the longitude and latitude coordinates of each grid point, and interpolating the original DEM data based on the longitude and latitude coordinates of the grid point to obtain the elevation of each grid point; Based on the elevation of the grid points, the evaporation data at each moment is interpolated into grid evaporation data, and the grid evaporation data at different moments are stacked to form a grid evaporation data sequence.

[0008] Optionally, spatially interpolating the rainfall data sequence in the target watershed according to the digital elevation data of the target watershed to obtain grid rainfall data includes: Gridding the target watershed according to longitude and latitude to obtain the longitude and latitude coordinates of each grid point, and interpolating the original DEM data based on the longitude and latitude coordinates of the grid point to obtain the elevation of each grid point; Based on the elevation of the grid points, the rainfall data at each moment is interpolated into grid rainfall data.

[0009] Optionally, building a flood forecasting model further includes: After the ConvLSTM-SSA deep learning model is trained, the ConvLSTM-SSA deep learning model is Optimization is performed using the fold-cross validation method.

[0010] Optionally, the inverse distance weighted interpolation is performed by the following formula: Determine the horizontal distance from each grid point in the basin to all rainfall stations or meteorological stations D i : ; Determine the vertical distance from a grid point to all rainfall stations or meteorological stations in the basin H i : ; According to the horizontal distance D i , vertical distance H i Determine the weight W i : ; According to weight W i Determine the rainfall or evaporation data z at different grid points in the target basin: ; In the formula, ( x,y ) is the longitude and latitude coordinates of a grid point, h is the elevation of a grid point, ( x i ,y i ) is the i The latitude and longitude coordinates of a rain gauge or weather station,h i For the i The elevation of a rain gauge or weather station, p is the power parameter, n is the total number of rainfall stations or weather stations, z i For the i The rainfall or evaporation at a rain gauge or weather station.

[0011] In a second aspect, the present application provides a deep learning flood forecasting device integrating a sparse self-attention mechanism, comprising: A first spatial interpolation module is used to perform spatial interpolation on the evaporation data sequence in the target watershed according to the digital elevation data of the target watershed to obtain a grid evaporation data sequence; The second spatial interpolation module is used to perform spatial interpolation on the rainfall data sequence in the target watershed according to the digital elevation data of the target watershed to obtain grid rainfall data, determine the grid previous impact rainfall data from the grid rainfall data, and stack the grid previous impact rainfall data and the grid rainfall data to form a grid rainfall data sequence and a grid previous impact rainfall data sequence; A construction module is used to construct a flood forecasting model by using the site flow data sequence, the grid evaporation data sequence, the grid rainfall data sequence, and the grid previous impact rainfall data sequence as input objects for ConvLSTM-SSA deep learning model training, so that the flood forecasting model can generate flood forecast results for future periods.

[0012] In a third aspect, the present application provides a computer-readable storage medium, comprising a program, which, when executed on a computer, enables the computer to execute the method as described above.

[0013] In a fourth aspect, the present application provides an execution device, comprising a processor and a memory, wherein the processor is coupled to the memory; The memory is used to store programs; The processor is used to execute the program in the memory, so that the execution device executes the above method.

[0014] In the method disclosed in this application, the ConvLSTM-SSA deep learning model is used as a flood forecasting model, and grid rainfall, previous influencing rainfall and evaporation are used as inputs, and the spatiotemporal information of various meteorological data is comprehensively considered for flood forecasting, thereby improving the accuracy of flood forecasting. In addition, the ConvLSTM-SSA deep learning model is embedded with a sparse attention mechanism (SSA), which can reduce the computational complexity of existing deep learning models and improve the applicability of the model. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The technical solution and other beneficial effects of the present application will be made apparent by describing in detail the specific implementation methods of the present application in conjunction with the accompanying drawings.

[0016] Figure 1 An operational flow chart of a deep learning flood forecasting method integrating a sparse self-attention mechanism provided by an exemplary embodiment is shown; Figure 2 A schematic diagram of the ConvLSTM neural network unit structure provided by an exemplary embodiment is shown.

[0017] Figure 3 A schematic structural diagram of a flood forecasting model provided by an exemplary embodiment is shown.

[0018] Figure 4 A block diagram of a deep learning flood forecasting device integrating a sparse self-attention mechanism provided by an exemplary embodiment is shown.

[0019] Figure 5 A block diagram of the execution device provided by an exemplary embodiment is shown. DETAILED DESCRIPTION

[0020] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are described in detail below in conjunction with the accompanying drawings. In the following description, many specific details are set forth to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without violating the connotation of the present application, so the present application is not limited by the specific embodiments disclosed below. The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described here can be implemented in an order other than that illustrated or described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or modules is not necessarily limited to those steps or modules clearly listed, but may include other steps or modules that are not clearly listed or inherent to these processes, methods, products or devices. The naming or numbering of steps in this application does not mean that the steps in the method flow must be executed in the time / logical sequence indicated by the naming or numbering. The process steps that have been named or numbered can change the execution order according to the technical purpose to be achieved, as long as the same or similar technical effects can be achieved. The division of units in this application is a logical division. There may be other division methods when it is implemented in actual applications. For example, multiple units can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection between units can be electrical or other similar forms, which are not limited in this application. In addition, the units or sub-units described as separate components may or may not be physically separated, may or may not be physical units, or may be distributed in multiple circuit units, and some or all of the units may be selected according to actual needs to achieve the purpose of the present application.

[0021] Please refer to Figure 1 ,in Figure 1 A flowchart of a deep learning flood forecasting method integrating a sparse self-attention mechanism provided by an exemplary embodiment is shown. The method is implemented through steps 102-106.

[0022] In step 102, according to the Digital Elevation Model (DEM) data of the target watershed, spatial interpolation is performed on the evaporation data sequence in the target watershed to obtain a grid evaporation data sequence.

[0023] As a practical operation for acquiring evaporation data series, the original evaporation data of the meteorological stations in the target basin are collected, the missing values ​​in the evaporation data are identified, these missing values ​​are filled by the nearest neighbor interpolation method, the outliers in the evaporation data are detected, these outliers are corrected by the nearest neighbor interpolation method, and the complete evaporation data series of the meteorological stations are obtained.

[0024] Here, the nearest neighbor method refers to first determining the nearest neighbor to the sample with missing data based on the Euclidean distance. k A sample, this k The missing data of the sample are estimated by taking the weighted average of the values.

[0025] In an exemplary embodiment, spatial interpolation of the evaporation data sequence in the target watershed is performed based on the digital elevation data of the target watershed. The inverse distance weighted interpolation method considering the elevation may be used. The process may include: Specifically, the method for obtaining the digital elevation data of the target watershed in the previous article can be to download DEM data from the data cloud platform of the Chinese Academy of Sciences, and the initial resolution of the data is 30m×30m.

[0026] Step 1024, gridding the target watershed according to longitude and latitude to obtain the longitude and latitude coordinates of each grid point, and interpolating the original DEM data based on the longitude and latitude coordinates of the grid points to obtain the elevation of each grid point.

[0027] In step 1024, ArcGIS software may be used to divide the target watershed into grids with a grid size of 0.1°×0.1°, and then the DEM data may be interpolated to a size of 0.1°×0.1°.

[0028] Step 1026: interpolate the evaporation data at each moment into grid evaporation data based on the elevation of the grid points, and stack the grid evaporation data at different moments to form a grid evaporation data sequence.

[0029] Here, the execution of inverse distance weighted interpolation can be written in Python programming language to write an inverse distance weighted method program tool that takes elevation into account. It includes 5 rain gauges. The 5 groups of station rainfall data are interpolated and stacked to obtain a set of raster rainfall data series with two-dimensional spatiotemporal information. At the same time, a set of raster antecedent rainfall data series with two-dimensional spatiotemporal information is calculated to obtain a set of raster antecedent rainfall data series with two-dimensional spatiotemporal information. The 5 groups of station evaporation data are interpolated and stacked to obtain a set of raster evaporation data series with two-dimensional spatiotemporal information.

[0030] The calculation process of inverse distance weighted interpolation can be as follows: Determine the horizontal distance from each grid point in the basin to all rainfall stations or meteorological stations D i : ; Determine the vertical distance from each grid point to all rainfall stations or meteorological stations in the basin H i : ; According to the horizontal distance D i , vertical distanceH i Determine the weight W i : ; According to weight W i Determine the rainfall or evaporation data z at different grid points in the target basin: ; In the formula, ( x,y ) is the longitude and latitude coordinates of a grid point, h is the elevation of a grid point, ( x i ,y i ) is the i The latitude and longitude coordinates of a rain gauge or weather station, h i For the i The elevation of a rain gauge or weather station, p is the power parameter, n is the total number of rainfall stations or weather stations, z i For the i The rainfall or evaporation at a rain gauge or weather station.

[0031] In step 104, based on the digital elevation data of the target watershed, spatial interpolation is performed on the rainfall data sequence in the target watershed to obtain raster rainfall data, the raster antecedent rainfall data is determined from the raster rainfall data, and the raster antecedent rainfall data and the raster rainfall data are stacked to form a raster rainfall data sequence and a raster antecedent rainfall data sequence.

[0032] As a practical operation for acquiring rainfall data series, the original rainfall data of rain gauges in the target basin are collected, the missing values ​​in the rainfall data are identified, these missing values ​​are filled by the nearest neighbor interpolation method, the outliers in the rainfall data are detected, these outliers are corrected by the nearest neighbor interpolation method, and the complete rainfall data series of the rain gauges are obtained.

[0033] In some exemplary embodiments, the grid previous impact rainfall data is determined from the grid rainfall data, using the rainfall-runoff relationship diagram (API) method. The calculation formula of the API method is as follows (taking t=15 as an example): ; Where: P a,t For the t The previous period of each moment affects the rainfall; P t-i For the fronti ( i =1,2,3…,15) daily rainfall at each time point; k is a constant coefficient.

[0034] In order to facilitate the daily recursive calculation, the above formula can be transformed and rearranged to obtain: ; ; Where: P t For the t The amount of rainfall at a given moment; I m is the maximum initial loss value.

[0035] In some exemplary embodiments, spatial interpolation is performed on the rainfall data sequence in the target watershed according to the digital elevation data of the target watershed to obtain grid rainfall data. The inverse distance weighted interpolation method considering elevation may be used, specifically including: Gridding the target watershed according to longitude and latitude to obtain the longitude and latitude coordinates of each grid point, and interpolating the original DEM data based on the longitude and latitude coordinates of the grid point to obtain the elevation of each grid point; Based on the elevation of the grid points, the rainfall data at each moment is interpolated into grid rainfall data.

[0036] In step 106, a flood forecasting model is constructed by taking the site flow data sequence, the grid evaporation data sequence, the grid rainfall data sequence, and the grid previous impact rainfall data sequence as input objects for training the ConvLSTM-SSA deep learning model, so that the flood forecasting model can generate flood forecast results for future periods.

[0037] As a practical operation for acquiring station flow data sequences, the original flow data of the hydrological stations in the target basin are collected, the missing values ​​in the flow data are identified, these missing values ​​are filled by the nearest neighbor interpolation method, the outliers in the flow data are detected, these outliers are corrected by the nearest neighbor interpolation method, and the complete hydrological station flow data sequence is obtained.

[0038] It should be added that, after the flow data series, evaporation data series, and rainfall data series are obtained, the following operations can be performed to facilitate the subsequent processing of these data series: A. Unify the above-mentioned flow data series, evaporation data series, and rainfall data series to the same time scale using the average method according to the forecast requirements, thereby obtaining rainfall, evaporation, and flow data series with the same time scale; B. Convert the rainfall, evaporation and flow data series of different dimensions into dimensionless form by using the maximum and minimum normalization method, the formula of which is as follows: ; Where: z For rainfall, evaporation and flow data, z ´ is the normalized rainfall, evaporation and flow data, z max and z min are the maximum and minimum values ​​in the rainfall, evaporation and flow data series respectively; C. Estimate the average confluence time of the basin based on the correlation coefficient of rainfall, evaporation and flow data series with different time lags. The time lag number corresponding to the maximum correlation coefficient is the average confluence time of the basin.

[0039] In operation C, for example, daily rainfall data from 5 rain gauges, daily evaporation data from 5 meteorological stations, and daily flow data from 1 basin outlet control hydrological station can be collected. After missing value interpolation, outlier correction, and maximum and minimum normalization, 5 sets of station daily rainfall data series, 5 sets of station daily evaporation data series, and 1 set of daily flow data series are obtained. Then, the average confluence time of the basin is calculated to be approximately 48 hours.

[0040] As is known to those skilled in the art, the term "ConvLSTM-SSA" refers to an architecture model formed by combining convolutional long short-term memory networks and sparse attention (SSA), which will be introduced in detail later. Figure 3 In step 106, the ConvLSTM-SSA deep learning model can be composed of four parts: the first part mainly includes a ConvLSTM (CNN Long Short Term Memory) neural network layer and a sparse self-attention mechanism (SSA), wherein the ConvLSTM neural network layer mainly extracts the spatiotemporal information of the grid rainfall data sequence input; the second part mainly includes a ConvLSTM neural network layer and a sparse self-attention mechanism, wherein the ConvLSTM neural network layer mainly extracts the spatiotemporal information of the grid evaporation data sequence input; the third part mainly includes a ConvLSTM neural network layer and a sparse self-attention mechanism, wherein the ConvLSTM neural network layer mainly extracts the spatiotemporal information of the grid previous impact rainfall data sequence input; the fourth part is mainly a ConvLSTM neural network layer, which is used to extract the time information of the site flow data sequence; the fifth part is mainly used to combine the output information of the first three parts and then output the flood forecast result.

[0041] The sparse attention mechanism can help ConvLSTM capture the spatial dependency features of grid sequences at a larger scale, while reducing the part of the information extracted by the ConvLSTM neural network layer that is irrelevant to spatiotemporal prediction, thereby reducing parameters and complexity.

[0042] It should be noted that the ConvLSTM neural network layer is composed of multiple ConvLSTM units. Each ConvLSTM unit contains three control state gates: input gate, forget gate and output gate. The input gate is used to control how much of the network's current input data flows into the memory unit; the forget gate can determine which parts of the historical information will be discarded; the output gate controls the impact of the memory unit on the current output value. Figure 2 The composition of each gate in a single ConvLSTM unit and the way information is transmitted are shown.

[0043] The sparse attention mechanism limits the distribution of attention weights so that only a few important elements receive larger attention weights, while other elements receive weights close to zero. In this way, the model only needs to focus on a few important elements when performing reasoning, thereby reducing the amount of calculation and improving efficiency. The calculation process of the sparse attention mechanism includes three steps: query, key, and value. First, for the query vector, calculate its similarity with all key vectors; then, calculate the attention weights based on the similarity, and apply these weights to the corresponding value vectors; finally, get the output result based on the weighted result.

[0044] The number of convolution kernels, learning rate, batch size, and training iterations of the TM neural network layer, where the input time step should be equal to the average confluence time of the basin; Specifically, the embodiment of the present invention sets the model input time steps to 15, the number of convolution kernels to 64, the learning rate to 0.001, the batch size to 64, and the maximum number of training iterations to 300.

[0045] The composite loss function of the model ( ) Taking into account the mean square error, Nash-Sutcliffe efficiency coefficient and relative error, the calculation formula is as follows: ; Where: is the number of samples; is the forecast value; is the observed value; is the average of the observed values.

[0046] As an exemplary embodiment, using The ConvLSTM-SSA flood forecasting model was optimized by using the fold cross-validation method to verify the model forecasting results, including: In order to avoid overfitting of the ConvLSTM-SSA model during training, The fold validation method is used to divide the training set and the test set, that is, the station flow series, grid rainfall data series, grid evaporation data series and grid previous rainfall data series are divided into Sub-datasets of equal size are traversed in turn. Each time, the current sub-dataset is used as the test data set, and all other samples are used as the corresponding training data sets to train the ConvLSTM-SSA flood forecasting model.

[0047] Will k The training sets are input into the constructed ConvLSTM-SSA flood forecasting model in turn for training, and the ConvLSTM-SSA flood forecasting model with the smallest composite loss function value of the training data set is selected as the optimal model. k A trained ConvLSTM-SSA flood forecasting model; Using training The optimal ConvLSTM-SSA flood forecasting model for the corresponding Set test data set for testing and calculation k The average value of the group calculation results is taken as the final test result; The Nash-Sutcliffe efficiency coefficient ( NSE )、Relative error( RE ) and the root mean square error ( RMSE ) is used to evaluate the overall performance of the ConvLSTM-SSA flood forecasting model. The calculation formula is shown below.

[0048] ; ; ; Where: is the number of samples, and Represent the observed flow data and its mean, It indicates the forecast flow data. For the current sample; Here, NSE The closer the value is to 1, RE Value and RMSE The closer the value is to 0, the better the model is.

[0049] Specifically, the embodiment of the present application sets The cross-validation method kThe value is 4, that is, the grid rainfall, grid previous impact rainfall, grid evaporation and site flow data series are divided into 4 sub-datasets of equal size, and these 4 sub-datasets are traversed in turn. Each time, the current sub-dataset is used as the test data set, and all other samples are used as the corresponding training data sets to train the ConvLSTM-SAA flood forecasting model. According to the four groups of training data sets, the constructed ConvLSTM-SSA flood forecasting model is trained, and the ConvLSTM-SSA flood forecasting model with the smallest composite loss function value of the training data set is selected as the optimal model, that is, four trained ConvLSTM-SSA flood forecasting models can be obtained.

[0050] In this embodiment of the application, four test data sets are input into the corresponding four trained optimal ConvLSTM-SSA flood forecasting models to obtain four sets of forecast results, and the average value of these four sets of results is calculated as the final forecast result. NSE , RE and RMSE Evaluate the results of ConvLSTM-SA model for traffic prediction.

[0051] Please refer to Figure 4 , which shows a block diagram of the deep learning flood forecasting device provided by the present application that integrates the sparse self-attention mechanism. The device 200 includes: A first spatial interpolation module 202 is used to perform spatial interpolation on the evaporation data sequence in the target watershed according to the digital elevation data of the target watershed to obtain a grid evaporation data sequence; The second spatial interpolation module 204 is used to perform spatial interpolation on the rainfall data sequence in the target watershed according to the digital elevation data of the target watershed to obtain grid rainfall data, determine the grid previous impact rainfall data from the grid rainfall data, and stack the grid previous impact rainfall data and the grid rainfall data to form a grid rainfall data sequence and a grid previous impact rainfall data sequence; Construction module 206 is used to construct a flood forecasting model by using the site flow data sequence, the grid evaporation data sequence, the grid rainfall data sequence, and the grid previous impact rainfall data sequence as input objects for ConvLSTM-SSA deep learning model training, so that the flood forecasting model can generate flood forecast results for future periods.

[0052] Since the above methods have been discussed in detail, the specific implementation of the above modules will not be repeated here.

[0053] Next, an execution device provided by an embodiment of the present application is introduced. Figure 5 , Figure 5This is a schematic diagram of a structure of an execution device provided in an embodiment of the present application. The execution device 300 can be specifically manifested as an autonomous driving vehicle, a mobile phone, a tablet, a laptop computer, a desktop computer, a monitoring data processing device, etc., which is not limited here. Figure 1 The functions of the execution device in the corresponding embodiment. Specifically, the execution device 300 includes: a receiver 301, a transmitter 302, a processor 303 and a memory 304 (wherein the number of the processor 303 in the execution device 300 can be one or more, Figure 5 In the example of FIG. 3 , the processor 303 may include an application processor 3031 and a communication processor 3032. In some embodiments of the present application, the receiver 301, the transmitter 302, the processor 303 and the memory 304 may be connected via a bus or other means.

[0054] The memory 304 may include a read-only memory and a random access memory, and provides instructions and data to the processor 303. A portion of the memory 304 may also include a non-volatile random access memory (NVRAM). The memory 304 stores processor and operation instructions, executable modules or data structures, or subsets thereof, or extended sets thereof, wherein the operation instructions may include various operation instructions for implementing various operations.

[0055] The processor 303 controls the operation of the execution device. In a specific application, the various components of the execution device are coupled together through a bus system, wherein the bus system includes not only a data bus but also a power bus, a control bus, and a status signal bus, etc. However, for the sake of clarity, various buses are referred to as bus systems in the figure.

[0056] The method disclosed in the above embodiment of the present application can be applied to the processor 303, or implemented by the processor 303. The processor 303 can be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 303. The above processor 303 can be a general-purpose processor, a digital signal processor (digital signal processing, DSP), a microprocessor or a microcontroller, and can further include an application specific integrated circuit (application specific integrated circuit, ASIC), a field programmable gate array (field-programmable gate array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The processor 303 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to be executed, or the hardware and software modules in the decoding processor can be combined and executed. The software module may be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 304, and the processor 303 reads the information in the memory 304 and completes the steps of the above method in combination with its hardware.

[0057] The receiver 301 can be used to receive inputted digital or symbol information, and generate signal input related to the relevant settings and function control of the execution device. The transmitter 302 can be used to output the digital or symbol information through the first interface; the transmitter 302 can also be used to send instructions to the disk group through the first interface to modify the data in the disk group; the transmitter 302 can also include a display device such as a display screen.

[0058] In the embodiment of the present application, the processor 303 is used to execute Figure 1 The specific manner in which the application processor 3031 in the processor 303 performs the above steps is the same as that in the present application. Figure 1 The corresponding method embodiments are based on the same concept, and the technical effects they bring are the same as those in this application. Figure 1 The corresponding method embodiments are the same. For specific contents, please refer to the description in the method embodiments shown above in this application, which will not be repeated here.

[0059] The above is only a preferred specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed in the present application should be covered within the protection scope of the present application.

Claims

1. A deep learning flood forecasting method integrating sparse self-attention mechanism, It is characterized in that include: According to the digital elevation data of the target watershed, spatial interpolation is performed on the evaporation data sequence in the target watershed to obtain the grid evaporation data sequence; According to the digital elevation data of the target watershed, spatial interpolation is performed on the rainfall data sequence in the target watershed to obtain raster rainfall data, raster previous affecting rainfall data is determined from the raster rainfall data, and the raster previous affecting rainfall data and the raster rainfall data are stacked to form a raster rainfall data sequence and a raster previous affecting rainfall data sequence; A flood forecasting model is constructed by taking the site flow data sequence, the grid evaporation data sequence, the grid rainfall data sequence, and the grid previous impact rainfall data sequence as input objects for ConvLSTM-SSA deep learning model training, so that the flood forecasting model can generate flood forecast results for future periods.

2. The method according to claim 1, It is characterized in that The grid rainfall data are used to determine the grid previous influencing rainfall data, and the rainfall-runoff relationship diagram method is used.

3. The method according to claim 1, It is characterized in that The spatial interpolation of raster evaporation data series and the spatial interpolation of raster rainfall data are inverse distance weighted interpolation.

4. The method according to claim 1, It is characterized in that According to the digital elevation data of the target basin, the evaporation data sequence in the target basin is spatially interpolated, including: Gridding the target watershed according to longitude and latitude to obtain the longitude and latitude coordinates of each grid point, and interpolating the original DEM data based on the longitude and latitude coordinates of the grid point to obtain the elevation of each grid point; Based on the elevation of the grid points, the evaporation data at each moment is interpolated into grid evaporation data, and the grid evaporation data at different moments are stacked to form a grid evaporation data sequence.

5. The method according to claim 1, It is characterized in that According to the digital elevation data of the target watershed, spatial interpolation is performed on the rainfall data sequence in the target watershed to obtain raster rainfall data, including: Gridding the target watershed according to longitude and latitude to obtain the longitude and latitude coordinates of each grid point, and interpolating the original DEM data based on the longitude and latitude coordinates of the grid point to obtain the elevation of each grid point; Based on the elevation of the grid points, the rainfall data at each moment is interpolated into grid rainfall data.

6. The method according to claim 1, It is characterized in that Building a flood forecasting model also includes: After the ConvLSTM-SSA deep learning model is trained, the ConvLSTM-SSA deep learning model is Optimization is performed using the fold-cross validation method.

7. The method according to claim 3, It is characterized in that The inverse distance weighted interpolation is performed by the following formula: Determine the horizontal distance from each grid point in the watershed to the rainfall station or meteorological station D i : ; Determine the vertical distance from each grid point in the watershed to the rainfall station or meteorological station H i : ; According to the horizontal distance D i , vertical distance H i Determine the weight W i : ; According to weight W i Determine the rainfall or evaporation data z at different grid points in the target basin: ; In the formula, ( x,y ) is the longitude and latitude coordinates of a grid point, h is the elevation of the grid point, ( x i ,y i ) is the i The latitude and longitude coordinates of a rain gauge or weather station, h i For the i The elevation of a rain gauge or weather station, p is the power parameter, n is the total number of rainfall stations or weather stations, z i For the i The rainfall or evaporation at a rain gauge or weather station.

8. A deep learning flood forecasting device integrating sparse self-attention mechanism, It is characterized in that include: A first spatial interpolation module is used to perform spatial interpolation on the evaporation data sequence in the target watershed according to the digital elevation data of the target watershed to obtain a grid evaporation data sequence; The second spatial interpolation module is used to perform spatial interpolation on the rainfall data sequence in the target watershed according to the digital elevation data of the target watershed to obtain grid rainfall data, determine the grid previous impact rainfall data from the grid rainfall data, and stack the grid previous impact rainfall data and the grid rainfall data to form a grid rainfall data sequence and a grid previous impact rainfall data sequence; A construction module is used to construct a flood forecasting model by using the site flow data sequence, the grid evaporation data sequence, the grid rainfall data sequence, and the grid previous impact rainfall data sequence as input objects for ConvLSTM-SSA deep learning model training, so that the flood forecasting model can generate flood forecast results for future periods.

9. A computer-readable storage medium, It is characterized in that The invention comprises a program, which, when being executed on a computer, causes the computer to execute the method according to any one of claims 1 to 7.

10. An execution device, It is characterized in that comprising a processor and a memory, wherein the processor is coupled to the memory; The memory is used to store programs; The processor is configured to execute the program in the memory so that the execution device executes the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Small watershed flood forecasting and early warning method and terminal

    CN113673765A

  • Reservoir incoming water quantity early warning and forecasting method and system based on small and medium-sized basin flood forecasting

    CN113742910A

  • Rainfall-driven deep learning flood forecasting method based on runoff process

    CN115828722A

  • Deep learning runoff prediction model and method

    CN116468166A

Cited By

  • Method and device for predicting waterlogging of power equipment, terminal equipment and storage medium

    CN119599218A

  • ONNX-based end-side lightweight LSTM (Long Short Term Memory) measurement and prediction integrated flood prediction method

    CN122332842A