An intelligent simulation method for river water quality based on non-embedded modal decomposition algorithm

Through the non-embedded mode decomposition algorithm and the nonlinear autoregressive NAR dynamic neural network, the problems of low computational efficiency and strong parameter sensitivity of traditional water quality simulation methods are solved, and efficient prediction of water quality changes is achieved, providing technology for early warning of sudden water pollution. Support has improved the level of intelligent management and control of river water quality.

CN117744494BActive Publication Date: 2024-09-17CHINA INST OF WATER RESOURCES & HYDROPOWER RES
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202311803274.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-26
Publication Date
2024-09-17
Estimated Expiration
2043-12-26

AI Technical Summary

Technical Problem

Traditional water quality simulation methods have low computational efficiency, insufficient time resolution, and strong parameter sensitivity. Moreover, the modal decomposition method has information loss, limitations, and rigid models, which cannot effectively capture the rapid changes and nonlinear dynamics of water quality.

Method used

Using a non-embedded mode decomposition algorithm, a model is established through the N-S equation, mass conservation equation, momentum equation and pollutant transport and diffusion equation, and SPOD mode decomposition and nonlinear autoregressive NAR dynamic neural network are used to predict the future concentration field and improve Computational efficiency and prediction accuracy.

Benefits of technology

It improves the calculation efficiency and prediction accuracy of water quality simulation, can effectively capture the rapid changes and nonlinear dynamics of water quality, provides early warning support for sudden water pollution, and improves the level of intelligent management and control of river water quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117744494B
    Figure CN117744494B
Patent Text Reader

Abstract

The present invention provides a method for intelligent simulation of river water quality based on a non-embedded modal decomposition algorithm, including: collecting basic data of the target river; establishing a model based on the basic data based on the N-S equation, the mass conservation equation, the momentum equation and the pollutant transport and diffusion equation, and simulating and calculating to obtain the two-dimensional concentration field data of the river plane; post-processing the model and exporting a txt format file; processing the two-dimensional concentration field data of the river plane into concentration field time series snapshot data by means of a programming language; establishing a SPOD modal decomposition model by means of a programming language, decomposing the concentration field time series snapshot data, and constructing a SPOD potential space by weighted oblique projection on the original data to obtain a historical expansion coefficient matrix; predicting the future expansion coefficient matrix based on the historical expansion coefficient matrix, and predicting the concentration field at future moments. Improve the level of intelligent control of water quality in rivers and reservoirs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the fields of smart water conservancy and river management, and in particular to a method for intelligent simulation of river water quality based on a non-embedded modal decomposition algorithm. Background Art

[0002] Water quality simulation is an important research direction in the fields of smart water conservancy, river management, environmental science and engineering. It can provide key decision-making support for governments, water resource management departments and related enterprises, helping to ensure the rational use and protection of water bodies. Water quality simulation can establish mathematical models based on existing information to predict the transmission of pollutants, test emergencies, quantify major control processes, etc. In addition, water quality simulation also plays a vital role in understanding the transmission history of pollutants and determining the time range when pollution events may begin or when pollutants reach target concentrations in areas of concern. However, the complexity and uncertainty of the water environment in reality make water quality simulation a challenging task.

[0003] Traditional water quality simulation methods often rely on complex physical-chemical models that require a large amount of observational data and expertise to support them. At the same time, because it involves complex coupling of space and time, the simulation and prediction of two-dimensional water quality concentration fields face huge challenges. The dynamic changes and complexity of water bodies make accurate simulation more difficult.

[0004] Common two-dimensional water quality simulation and prediction methods usually have the following disadvantages and shortcomings:

[0005] (1) Low computational efficiency: Traditional two-dimensional water quality simulation and prediction methods usually use numerical simulation and emulation technology. The calculation speed is affected by many factors such as grid size, model scale, and time step. It usually takes a long time of simulation calculation to obtain reasonable prediction results.

[0006] (2) Insufficient temporal resolution: Traditional water quality simulation and prediction results can usually only provide discrete time steps. However, the changes in water quality over time may be limited by lower temporal resolution. In this case, traditional models cannot well capture the rapid changes in water quality in a short period of time.

[0007] (3) High parameter sensitivity: Traditional water quality simulation and prediction processes are usually based on complex physical equations. The accuracy of the parameters directly affects the output of the model. The high sensitivity in parameter setting may limit its robustness and generalization ability in practical applications.

[0008] Traditional modal decomposition and reconstruction methods usually have the following disadvantages and shortcomings:

[0009] (1) Information loss: Traditional methods usually adopt truncation or energy-based selection, which only retains some modes, which may lead to the loss of some dynamic information. These modes may include modes with small energy contribution but play a key role in future evolution.

[0010] (2) Limited mode selection: Traditional methods usually select modes based on certain criteria, such as energy contribution. However, this approach may not fully consider the contribution of each mode to the system dynamics, resulting in an incomplete set of selected modes.

[0011] (3) Rigid model: Truncated modes may lead to a rigid model that is not adequate to adapt to changes in system dynamics. When the system dynamics vary greatly over time, traditional methods may not be able to capture these changes.

[0012] (4) Not suitable for nonlinear dynamics: Traditional methods may have certain limitations in modeling nonlinear dynamics and are not suitable for systems containing complex nonlinear relationships. Summary of the invention

[0013] In view of the above problems, the present invention is proposed to provide a river water quality intelligent simulation method based on a non-embedded modal decomposition algorithm to overcome the above problems or at least partially solve the above problems.

[0014] According to one aspect of the present invention, a river water quality intelligent simulation method based on a non-embedded modal decomposition algorithm is provided, the simulation method comprising:

[0015] Collect basic information of the target river;

[0016] Based on the NS equation, mass conservation equation, momentum equation and pollutant transport and diffusion equation, a model is established according to the basic data, and two-dimensional concentration field data of the river plane is obtained by simulation and calculation;

[0017] Post-process the model and export it to a txt file;

[0018] Using programming language, the two-dimensional concentration field data of the river channel is processed into concentration field time series snapshot data;

[0019] A SPOD modal decomposition model is established by means of a programming language, the concentration field time series snapshot data is decomposed, a weighted oblique projection is performed on the original data to construct a SPOD latent space, and a historical expansion coefficient matrix is ​​obtained;

[0020] Using a nonlinear autoregressive NAR dynamic neural network to learn the time evolution of the total factor expansion coefficient, and predicting the future expansion coefficient matrix based on the historical expansion coefficient matrix;

[0021] Reconstruct the future expansion coefficient matrix back into a high-dimensional concentration field and predict the concentration field at future moments.

[0022] Optionally, the basic data collected from the target river specifically includes:

[0023] Collect topographic data of the target river, geographical location data of water quality monitoring stations, river flow data, and time series data of water quality indicators.

[0024] Optionally, the model is established based on the NS equation, the mass conservation equation, the momentum equation and the pollutant transport and diffusion equation according to the basic data, and the two-dimensional concentration field data of the river plane is obtained by simulation and calculation, specifically including:

[0025] A two-dimensional hydrodynamic water quality model is established based on the river topography data, the model inflow and outflow conditions are determined based on the river flow data, and the model pollutant concentration inflow conditions are determined based on the water quality monitoring station locations and water quality index data.

[0026] Optionally, the post-processing of the model and exporting the file in txt format specifically includes: exporting the geodetic coordinate x, geodetic coordinate y, and concentration c data of the model simulation results for the entire simulation time, and saving them in txt format.

[0027] Optionally, the processing of the two-dimensional concentration field data of the river channel plane into concentration field time series snapshot data by means of a programming language specifically includes:

[0028] Use programming language to write scripts to split a file containing all time series concentration fields into concentration field files per unit time, remove erroneous data, and finally integrate them into concentration field time series snapshot data.

[0029] Optionally, the format of the concentration field time series snapshot data is

[0030]

[0031] In the formula, represents the original concentration field data, where t i =1,…,N t Indicates that you have N t Time snapshot data, spatial coordinates Contains S available spatial grid points, M is the number of spatial grid points S multiplied by the number of variables N var , that is, M = S × N var .

[0032] Optionally, the concentration field time series snapshot data is a three-dimensional matrix, the first dimension is the time dimension, and the second and third dimensions are space dimensions;

[0033] When the matrix is ​​sliced ​​at a certain moment in the first dimension, the two-dimensional matrix obtained is the spatial concentration field data at the corresponding moment.

[0034] Optionally, the SPOD modal decomposition model is established by means of a programming language, the concentration field time series snapshot data is decomposed, and a weighted oblique projection is performed on the original data to construct a SPOD latent space, and the historical expansion coefficient matrix is ​​obtained, which specifically includes:

[0035] The SPOD algorithm is used to decompose the concentration field snapshot data to obtain the SPOD modal matrix sorted by frequency, and the weighted oblique projection method is used to obtain the expansion coefficient matrix, as follows:

[0036] The SPOD modal matrix sorted by frequency is:

[0037]

[0038] Where N f is the total number of frequencies, which can be expressed as L is the number of data blocks;

[0039] The expansion coefficient matrix is

[0040]

[0041] Where A is the expansion coefficient matrix and its dimension is Φ is the frequency-sorted SPOD modal matrix with dimensions W is the spatial weighting matrix; C is the concentration field snapshot matrix.

[0042] Optionally, the using of a nonlinear autoregressive NAR dynamic neural network to learn the time evolution of the total factor expansion coefficient and predicting the future expansion coefficient matrix according to the historical expansion coefficient matrix specifically includes:

[0043] Determining parameters of a total factor expansion coefficient nonlinear autoregressive (NAR) dynamic neural network for the concentration field;

[0044] The value of the input feature parameter is the number of rows of the expansion coefficient matrix; the value of the input time step parameter is the number of columns of the expansion coefficient matrix;

[0045] The value of the time lag parameter is an empirical value suitable for the simulation method based on trial calculations. It is applicable to the simulation and prediction of environmental concentrations, and the recommended value range is 3 to 7;

[0046] The value of the number of neurons in the hidden layer is an empirical value suitable for the simulation method based on trial calculations. It is suitable for environmental concentration simulation prediction, and the recommended value range is 10 to 20;

[0047] The value of the number of neurons in the output layer is the same as the value of the input feature parameter.

[0048] The parameter value selection method is shown in the following table:

[0049]

[0050]

[0051] The historical expansion coefficients A(t-1), A(t-2), …, A(td) are used to predict the future expansion coefficient A(t), that is, A(t) = f(A(t-1), A(t-2), …, A(td)), where d is the time lag.

[0052] Optionally, reconstructing the future expansion coefficient matrix back into a high-dimensional concentration field and predicting the concentration field at a future moment specifically includes:

[0053] The high-dimensional concentration field reconstruction process is Q future =ΦA future , where Φ is the concentration field mode matrix; A future is the future expansion coefficient matrix predicted by using nonlinear autoregressive NAR dynamic neural network; Q future Concentrate the field for future moments.

[0054] The present invention provides a method for intelligent simulation of river water quality based on a non-embedded modal decomposition algorithm, the simulation method comprising: collecting basic data of the target river; establishing a model based on the basic data based on the NS equation, the mass conservation equation, the momentum equation and the pollutant transport and diffusion equation, simulating and calculating to obtain the two-dimensional concentration field data of the river plane; post-processing the model and exporting a txt format file; processing the two-dimensional concentration field data of the river plane into concentration field time series snapshot data with the help of a programming language; establishing a SPOD modal decomposition model with the help of a programming language, decomposing the concentration field time series snapshot data, performing weighted oblique projection on the original data to construct a SPOD potential space, and obtaining a historical expansion coefficient matrix; using a nonlinear autoregressive NAR dynamic neural network to learn the time evolution of the total factor expansion coefficient, and predicting the future expansion coefficient matrix according to the historical expansion coefficient matrix; reconstructing the future expansion coefficient matrix back to a high-dimensional concentration field, and predicting the concentration field at future moments. It can predict the concentration field of water quality indicators in a two-dimensional plane river, provide technical support for sudden water pollution warning, and improve the level of intelligent management and control of water quality in rivers and reservoirs.

[0055] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0057] Figure 1 A flow chart of a method for intelligent simulation of river water quality based on a non-embedded modal decomposition algorithm provided by an embodiment of the present invention;

[0058] Figure 2 A schematic diagram of simulation results based on the NS equation, mass conservation equation, momentum equation and pollutant transport and diffusion equation provided in an embodiment of the present invention;

[0059] Figure 3 A schematic diagram of the processing results of the post-processing method provided in an embodiment of the present invention;

[0060] Figure 4 A schematic diagram of a SPOD mode in the frequency domain provided by an embodiment of the present invention;

[0061] Figure 5 A schematic diagram of a SPOD mode in the time domain provided by an embodiment of the present invention;

[0062] Figure 6 A schematic diagram of an expansion coefficient matrix obtained by SPOD modal decomposition according to an embodiment of the present invention;

[0063] Figure 7 A schematic diagram of the process of learning the expansion coefficient matrix of a NAR (non-linear autoregressive) dynamic neural network provided in an embodiment of the present invention;

[0064] Figure 8 A schematic diagram of the concentration field prediction results at a future time provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0065] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0066] The terms "comprises" and "having" and any variations thereof in the description embodiments, claims and drawings of the present invention are intended to cover non-exclusive inclusions, for example, including a series of steps or units.

[0067] The technical solution of the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments.

[0068] Example 1

[0069] like Figure 1 As shown in FIG. 1 , a river water quality intelligent simulation method based on a non-embedded modal decomposition algorithm is shown in FIG. 1 , and the specific steps are as follows:

[0070] Collect basic data of the target river, including river topography data, geographical location data of water quality monitoring stations, river flow data, and time series data of water quality indicators.

[0071] like Figure 2 As shown. The calculation area grid is divided by river terrain data. Based on the NS equation, mass conservation equation, momentum equation and pollutant transport and diffusion equation, the pollutant inflow position of the model is determined according to the geographical location of the water quality monitoring station, and the pollutant inflow boundary conditions are determined according to the time series data of water quality indicators. The model is run to obtain the two-dimensional concentration field data of the river plane.

[0072] like Figure 3 As shown. The simulation results are exported for post-processing, and the two-dimensional concentration field data is exported as data in the (x, y, c) format, that is, the concentration value corresponding to each spatial grid point at a unit time, where x and y represent the horizontal and vertical coordinate information of the spatial grid point, respectively, and c represents the concentration value at the coordinate. Subsequently, a script is written in a programming language to further process the two-dimensional concentration field data, delete duplicate and erroneous data, and integrate them into concentration field snapshot data. In this case, the concentration field snapshot data is a three-dimensional matrix of (61, 174, 394), where 61 represents a total of 61 snapshot data, and (174, 394) represents that the concentration field space is 174×394 grid points, and the concentration value of the corresponding position is stored at each grid point. The example matrix is ​​as follows:

[0073]

[0074]

[0075] The concentration field snapshot data is used as the input data of the SPOD model, and the concentration field snapshot data is modally decomposed using a programming language. The parameters that must be input into the SPOD model are shown in Table 1:

[0076] Table 1 Parameters that must be input into the SPOD model

[0077] Variable Name meaning time_step The time step of the snapshot data n_space_dims Spatial dimensions of snapshot data n_variables The number of variables contained in the field data n_dft The number of discrete Fourier transforms performed on the unit block

[0078] According to the concentration field snapshot data and the determined SPOD model parameters, the modal SPOD modes sorted by frequency can be obtained, which can be respectively expressed in the frequency domain (such as Figure 4 ) and the time domain (as shown Figure 5 The SPOD latent space is constructed using weighted oblique projection to obtain the expansion coefficient matrix, as shown in Figure 6 As shown, it is the expansion coefficient matrix (L×N f ) dimensions.

[0079] like Figure 7 As shown, the NAR (nonlinear autoregressive) dynamic neural network is used to learn the time evolution of the expansion coefficient matrix. The neural network parameters are shown in Table 2:

[0080] Table 2 NAR (nonlinear autoregressive) dynamic neural network parameters

[0081] Parameter name Value Input Features 45 Enter the time step 61 Time lag 5 Number of neurons in the hidden layer 15 Number of neurons in the output layer 45

[0082] 70% of the input data is used as training data, 15% as verification data, and 15% as test data. The quantized conjugate gradient method is used to train the neural network. The trained neural network is used to predict the expansion coefficient matrix, and then the expansion coefficient matrix is ​​predicted according to Q. future =ΦA future Reconstruct the low-dimensional matrix into a high-dimensional concentration field to predict the concentration field at future moments (such as Figure 8 shown).

[0083] Beneficial effects: The present invention proposes an intelligent simulation method for river water quality based on a non-embedded modal decomposition algorithm, which can predict the concentration field of two-dimensional river water quality indicators, provide technical support for sudden water pollution warning, and improve the level of intelligent management and control of river and reservoir water quality.

[0084] The above specific implementation methods further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above are only specific implementation methods of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A river water quality intelligent simulation method based on a non-embedded modal decomposition algorithm, characterized in that: The simulation method comprises: Collect basic information of the target river; Based on the NS equation, mass conservation equation, momentum equation and pollutant transport and diffusion equation, a model is established according to the basic data, and two-dimensional concentration field data of the river plane is obtained by simulation and calculation; Post-process the model and export it to a txt file; Processing the two-dimensional concentration field data of the river channel plane into concentration field time series snapshot data with the help of a programming language, including: using the programming language to write a script to split a file containing all time series concentration fields into concentration field files per unit time, and remove erroneous data, and finally integrate them into concentration field time series snapshot data; A SPOD modal decomposition model is established by means of a programming language, the concentration field time series snapshot data is decomposed, a weighted oblique projection is performed on the original data to construct a SPOD latent space, and a historical expansion coefficient matrix is ​​obtained; The SPOD algorithm is used to decompose the concentration field snapshot data to obtain the SPOD modal matrix sorted by frequency, and the weighted oblique projection method is used to obtain the expansion coefficient matrix, as follows: The SPOD modal matrix sorted by frequency is: Where N f is the total number of frequencies, expressed as L is the number of data blocks; The expansion coefficient matrix is Where A is the expansion coefficient matrix and its dimension is Φ is the frequency-sorted SPOD modal matrix with dimensions W is the spatial weighting matrix; C is the concentration field snapshot matrix; Using a nonlinear autoregressive NAR dynamic neural network to learn the time evolution of the total factor expansion coefficient, and predicting the future expansion coefficient matrix based on the historical expansion coefficient matrix; Reconstruct the future expansion coefficient matrix back into a high-dimensional concentration field and predict the concentration field at future moments.

2. According to claim 1, a river water quality intelligent simulation method based on non-embedded modal decomposition algorithm is characterized in that: The basic data collected on the target river specifically include: Collect topographic data of the target river, geographical location data of water quality monitoring stations, river flow data, and time series data of water quality indicators.

3. According to claim 1, a method for intelligent simulation of river water quality based on non-embedded modal decomposition algorithm is characterized in that: The NS equation, mass conservation equation, momentum equation and pollutant transport and diffusion equation are used to establish a model based on the basic data, and the two-dimensional concentration field data of the river plane are obtained by simulation calculation, which specifically includes: A two-dimensional hydrodynamic water quality model is established based on the river topography data, the model inflow and outflow conditions are determined based on the river flow data, and the model dye inflow conditions are determined based on the location of the water quality measuring station and water quality index data.

4. According to claim 1, a river water quality intelligent simulation method based on non-embedded modal decomposition algorithm is characterized in that: The post-processing of the model and exporting the txt format file specifically includes: exporting the geodetic coordinate x, geodetic coordinate y, and concentration c data of the model simulation results for all simulation time, and saving them in txt format.

5. According to claim 1, a method for intelligent simulation of river water quality based on non-embedded modal decomposition algorithm is characterized in that: The format of the concentration field time series snapshot data is: In the formula, represents the original concentration field data, where t i =1,…,N t Indicates that it has N t Time snapshot data, spatial coordinates Contains S spatial grid points, M is the number of spatial grid points S multiplied by the number of variables N var , that is, M = S × N var .

6. The method for intelligent simulation of river water quality based on non-embedded modal decomposition algorithm according to claim 1 is characterized in that: The concentration field time series snapshot data is a three-dimensional matrix, the first dimension is the time dimension, and the second and third dimensions are the space dimensions; When the matrix is ​​sliced ​​at a certain moment in the first dimension, the two-dimensional matrix obtained is the spatial concentration field data at the corresponding moment.

7. The method for intelligent simulation of river water quality based on non-embedded modal decomposition algorithm according to claim 1 is characterized in that: The method of learning the time evolution of the total factor expansion coefficient by using a nonlinear autoregressive NAR dynamic neural network and predicting the future expansion coefficient matrix according to the historical expansion coefficient matrix specifically includes: Determining parameters of a total factor expansion coefficient nonlinear autoregressive (NAR) dynamic neural network for the concentration field; The value of the input characteristic parameter is the number of rows of the expansion coefficient matrix; The value of the input time step parameter is the number of columns of the expansion coefficient matrix; the value of the time lag parameter is an empirical value suitable for the simulation method obtained through trial calculation, which is suitable for environmental concentration simulation prediction and has a value range of 3 to 7; The value of the number of neurons in the hidden layer is an empirical value suitable for the simulation method obtained through trial calculation. The empirical value is suitable for environmental concentration simulation prediction and has a value range of 10 to 20. The value of the number of neurons in the output layer is the same as the value of the input characteristic parameter. The value of each parameter is shown in the following table: The historical expansion coefficients A(t-1), A(t-2), …, A(td) are used to predict the future expansion coefficient A(t), that is, A(t) = f(A(t-1), A(t-2), …, A(td)), where d is the time lag.

8. The method for intelligent simulation of river water quality based on non-embedded modal decomposition algorithm according to claim 1 is characterized in that: The reconstructing the future expansion coefficient matrix back to a high-dimensional concentration field and predicting the concentration field at a future moment specifically includes: The high-dimensional concentration field reconstruction process is Q future =ΦA future , where Φ is the SPOD modal matrix sorted by frequency; A future is the future expansion coefficient matrix predicted by using nonlinear autoregressive NAR dynamic neural network; Q future Concentrate the field for future moments.

Citation Information

Patent Citations

  • River attenuation type pollutant simulating method

    CN106815448A

  • River water quality prediction method

    CN107091911A

  • Water pollution transport simulation system based on complexity theory

    CN108959831A

  • Riverway intelligent supervision system

    CN111103414A

  • Evaluation method based on transport diffusion model of soluble pollutants in water environment

    CN111241758A