Water environment water quality prediction and abnormal state tracing method and device

By using deep belief network and mutual information measurement sensitivity analysis method in water environment prediction, the problems of low water quality prediction accuracy and difficulty in traceability in the existing technology are solved, and accurate prediction and abnormal analysis of water quality state are achieved. A solid foundation for traceability of water quality pollution.

CN118886546APending Publication Date: 2024-11-01BEIJING UNIV OF TECH

Patent Information

Application Number
CN202410914975.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

The existing artificial neural network soft measurement model is difficult to deal with the multi-factor space-time coupling process in the prediction of water environment water quality. The prediction accuracy is low and quantitative causal analysis cannot be carried out, resulting in difficulty in backtracking the abnormal state of water quality.

Method used

A deep belief network is used as the water quality prediction model, and a data-driven learning algorithm and a predictive model sensitivity analysis method based on mutual information measurement are designed to achieve accurate prediction of water quality state and traceability analysis of abnormal states.

Benefits of technology

The accuracy of water quality prediction is improved, and the correlation between abnormal water quality state and input quantity can be quantitatively described, and traceability analysis of abnormal water quality state in the water environment can be realized, providing an effective traceability method for water quality pollution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118886546A_ABST
    Figure CN118886546A_ABST
Patent Text Reader

Abstract

The invention discloses a water environment water quality prediction and abnormal state tracing method and device. The method comprises the following steps: S1, acquiring water environment monitoring data; s2, training a data-driven deep belief network model according to the water environment monitoring data; s3, using the trained deep belief network model as a prediction model to predict water quality states in different time periods in the future; meanwhile, traceability analysis of the water quality abnormal state of the water environment is achieved through prediction model sensitivity analysis. By adopting the technical scheme of the invention, the problems of low water quality prediction precision and difficulty in water quality abnormal state backtracking of the water environment are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of intelligent environmental protection technology, and in particular relates to a method and device for predicting water quality in a water environment and tracing the source of abnormal conditions. Background Art

[0002] At present, the most widely used method for water quality prediction and abnormal state tracing in water environment is to establish a soft sensor model based on artificial neural network, and run statistical analysis, regression analysis and other methods on this basis. It has shown outstanding advantages in terms of economy, reliability and portability. With the continuous promotion of smart environmental protection construction, artificial intelligence technology has become an important means of energy saving, emission reduction and quality assurance in the field of water quality state perception and prediction in water environment. At the same time, the high-standard supervision of water environment quality has brought new challenges to the existing water quality prediction and abnormal state tracing in water environment: (1) Most of the existing artificial neural network soft sensor models adopt shallow structures. When facing the evolution process of water quality state in water environment with multi-factor spatiotemporal coupling, they cannot complete the big data representation and learning of complex dynamic characteristics of water quality; (2) The single precision-oriented training strategy leads to poor stability of water quality soft sensor model, and it is impossible to form an interpretable performance evaluation method; (3) When the prediction result shows abnormal state, the existing water quality soft sensor model cannot provide quantitative causal analysis and backtracking methods for abnormal state. Summary of the invention

[0003] The technical problem to be solved by the present invention is to provide a method and device for predicting water quality and tracing the source of abnormal conditions in a water environment, so as to solve the problems of low water quality prediction accuracy and difficulty in tracing back abnormal water quality conditions. A deep belief network is used as a water quality prediction model, and a data-driven learning algorithm is designed to effectively train the prediction model. Then, a prediction model sensitivity analysis method based on mutual information measurement is designed to realize the tracing analysis of abnormal water quality conditions.

[0004] To achieve the above object, the present invention adopts the following technical solution:

[0005] A method for predicting water quality in a water environment and tracing the source of abnormal conditions comprises the following steps:

[0006] Step S1, obtaining water environment monitoring data;

[0007] Step S2: training a data-driven deep belief network model based on water environment monitoring data;

[0008] Step S3: Use the trained deep belief network model as a prediction model to predict the water quality status in different time periods in the future; at the same time, through the sensitivity analysis of the prediction model, the source analysis of abnormal water quality status in the water environment is realized.

[0009] Preferably, step S1 comprises:

[0010] According to the water environment monitoring data, pH and dissolved oxygen DO were selected as parameters to characterize the water quality status;

[0011] The water environment state variables associated with pH and DO were selected as auxiliary variables, and the qualitative nonlinear mapping relationship between the auxiliary variables and pH and DO was obtained.

[0012] Preferably, in step S2, the deep belief network model is trained using the data of the auxiliary variables and pH and DO, so that it approximates the quantitative nonlinear mapping relationship between the auxiliary variables and pH and DO.

[0013] Preferably, in step S3, a sensitivity analysis of the prediction model based on mutual information measurement is performed to provide a quantitative description of the correlation between abnormal water quality status and model input, thereby achieving source tracing analysis of abnormal water quality status in the water environment.

[0014] The present invention also provides a water environment water quality prediction and abnormal state tracing device, comprising:

[0015] An acquisition module is used to acquire water environment monitoring data;

[0016] The training module is used to train the data-driven deep belief network model based on water environment monitoring data;

[0017] The processing module is used to use the trained deep belief network model as a prediction model to predict the water quality status in different time periods in the future; at the same time, through the sensitivity analysis of the prediction model, the source analysis of abnormal water quality in the water environment can be realized.

[0018] Preferably, the acquisition module includes:

[0019] The first selection unit is used to select pH and dissolved oxygen DO as parameters characterizing water quality status according to water environment monitoring data;

[0020] The second selection unit is used to select water environment state variables associated with pH and DO as auxiliary variables to obtain qualitative nonlinear mapping relationships between the auxiliary variables and pH and DO.

[0021] Preferably, the training module uses the data of auxiliary variables and pH and DO to train the deep belief network model so that it approximates the quantitative nonlinear mapping relationship between the auxiliary variables and pH and DO.

[0022] Preferably, the processing module performs sensitivity analysis of the prediction model based on mutual information measurement, gives a quantitative description of the correlation between abnormal water quality status and model input, and realizes the traceability analysis of abnormal water quality status in the water environment.

[0023] Compared with the prior art, the present invention has the following technical effects:

[0024] (1) Aiming at the problems of complex evolution characteristics of water quality state and low prediction accuracy, the present invention proposes a data-driven deep belief network. Based on the actual water environment operation data, the deep belief network model is trained using a data-driven learning strategy.

[0025] (2) In order to solve the problem of difficulty in tracing the source of abnormal water quality model prediction output status, the present invention designs a prediction model sensitivity analysis method based on mutual information measurement, which provides a quantitative description of the correlation between the water quality model prediction output and input, thereby realizing the tracing source analysis of abnormal water quality status in the water environment. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0027] Figure 1 This is a flow chart of a method for predicting water quality and tracing the source of abnormal conditions in a water environment according to an embodiment of the present invention;

[0028] Figure 2 Schematic diagram of restricted Boltzmann machine;

[0029] Figure 3 Schematic diagram of data-driven deep belief network;

[0030] Figure 4 The prediction results and error diagram of the pH of water environment using the data-driven deep belief network;

[0031] Figure 5 The prediction results and error diagram of water environment DO by data-driven deep belief network;

[0032] Figure 6 It is a schematic diagram of the correlation index (mutual information) between the pH value of the water environment and the auxiliary variables;

[0033] Figure 7 Schematic diagram of the correlation index (mutual information) between the DO value of the water environment and auxiliary variables. DETAILED DESCRIPTION

[0034] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0035] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0036] Embodiment 1:

[0037] like Figure 1 As shown, an embodiment of the present invention provides a method for predicting water quality in a water environment and tracing the source of abnormal conditions, comprising the following steps:

[0038] Step S1, obtaining water environment monitoring data;

[0039] Step S2: training a data-driven deep belief network model based on water environment monitoring data;

[0040] Step S3: Use the trained deep belief network model as a prediction model to predict the water quality status in different time periods in the future; at the same time, through the sensitivity analysis of the prediction model, the source analysis of abnormal water quality status in the water environment is realized.

[0041] As an implementation mode of the present invention, step S1 includes:

[0042] According to the water environment monitoring data, pH and dissolved oxygen (DO) were selected as parameters to characterize the water quality status;

[0043] The water environment state variables associated with pH and DO were selected as auxiliary variables, and the qualitative nonlinear mapping relationship between the auxiliary variables and pH and DO was obtained.

[0044] As an implementation mode of the present invention, in step S2, the deep belief network model is trained using the data of the auxiliary variables and pH and DO to approximate the quantitative nonlinear mapping relationship between the auxiliary variables and pH and DO.

[0045] As an implementation mode of the present invention, in step S3, a sensitivity analysis of the prediction model based on mutual information measurement is performed to provide a quantitative description of the correlation between abnormal water quality status and model input quantity, thereby realizing the traceability analysis of abnormal water quality status in the water environment.

[0046] According to the embodiment of the present invention, first, a data-driven adaptive deep neural network model is designed, and the water environment water quality data is used to train the model so that it can fully learn and approximate the nonlinear mapping relationship between water quality and related variables. Secondly, the trained water quality model is tested and analyzed in different time periods to achieve the water quality prediction task. Finally, a prediction model sensitivity analysis method based on mutual information measurement is designed to give a quantitative description of the correlation between abnormal water quality state and input, thereby realizing the source tracing analysis of abnormal water quality state in the water environment. The present invention uses a data-driven adaptive deep neural network to fully learn and approximate the evolution characteristics of water environment water quality state, thereby improving the prediction accuracy of water quality state. At the same time, the prediction model based on mutual information measurement can realize the information backtracking of abnormal state in a quantitative manner, providing a solid methodological foundation for tracing the source of water environment pollution.

[0047] Embodiment 2:

[0048] The embodiment of the present invention provides a method for predicting water quality in a water environment and tracing the source of abnormal conditions, including:

[0049] 1. Data acquisition and qualitative description of water quality prediction model

[0050] Data were collected from the water environment monitoring station on the west coast of Jiaozhou Bay. pH and DO were selected as parameters to characterize the water quality state, and water environment state variables associated with pH and DO were selected as auxiliary variables, as shown in Table 1.

[0051] Table 1

[0052] variable unit meaning Label TP mg / L Total phosphorus concentration x1 BOD mg / L Biochemical oxygen demand concentration x2 <![CDATA[NH 4 -N]]> mg / L Ammonia nitrogen concentration x3 <![CDATA[NO 3 -N]]> mg / L Nitrate nitrogen concentration x4 PPH mg / L Phosphate concentration x5 TSS g / L Suspended solids concentration x6 SA % Salt content x7 TR mm Rainfall x8 WT ℃ temperature x9 WS m / s Wind speed x10 YFV m / s Flow rate at Yanghe River estuary x11 XV m / s Xin'an River estuary flow velocity x12 P Y m / s Total phosphorus concentration at the Yanghe River estuary x13 PHE - The pH value of Yanghe River estuary exceeds the standard x14 PSY mg / L Total phosphorus in Yanghe River exceeds standard x15 BX mg / L Xin'an River Biochemical Oxygen Demand Exceeds Standard x16

[0053] According to the auxiliary variables of water quality parameters pH and DO listed in Table 1, the number of inputs and outputs of the water quality prediction model is preliminarily determined to be 16 and 1 respectively. The prediction model of water quality parameters pH and DO can be characterized by two independent nonlinear functions, namely:

[0054] y pH (t+1)=f(x 1 (t),x 2 (t),…,x 16 (t))

[0055] y DO (t+1)=g(x 1 (t),x 2 (t),…,x 16 (t))

[0056] Among them, f(·) and g(·) are functions that characterize the nonlinear relationship between auxiliary variables and pH and DO, respectively. The main task of water quality prediction model design is to use neural computing methods to approximate these two functions, and then give quantitative expressions of f(·) and g(·). The present invention will design a data-driven deep belief network to learn and approximate f(·) and g(·).

[0057] 2. Data-driven deep belief network design method

[0058] The present invention designs a data-driven deep belief network model and uses a data-driven approach to train the model so that it is infinitely close to f(·) and g(·), thereby realizing the design of a water quality prediction model. The specific steps are as follows:

[0059] Step 1: Build Figure 2 The restricted Boltzmann machine (RBM) shown in Figure 2 is a Restricted Boltzmann Machine (RBM), where v and h represent the input layer vector and hidden layer vector of the RBM respectively. Given v = [v 1 =x 1 ,v 2 =x 2 ,…,v 16 =x 16 ], we can get the activation probability of the hidden layer neurons and the reconstruction activation probability of the input layer neurons, which are shown as follows:

[0060]

[0061] Where m and n represent the number of neurons in the input layer and hidden layer respectively, and m = 16, ω represents the connection weight matrix between the input layer and the hidden layer, and b vi and b hj They represent the bias parameters of the input layer neurons and the hidden layer neurons respectively, and σ(·) represents the Sigmoid function. The weight matrix update rule of RBM is as follows:

[0062] ω(t+1)=ω(t)-ηΔω(t)

[0063]

[0064] Among them, η is the learning rate parameter, E(v i h j ) represents the mean of the product of the initial states of neurons in the input layer and the hidden layer, Represents the mean of the product of the final states of the input layer and hidden layer neurons. It is usually obtained through Gibbs sampling.

[0065] Step 2: Stack multiple RBMs in sequence, use the output of the previous RBM as the input of the next RBM, and train all RBMs in sequence according to step 1 to obtain the initial weight matrix ω = [ω 1 ,ω 2 ,…,ω l ], where l represents the number of hidden layers. Then, the output layer of the last RBM is connected to the label data to construct a data-driven deep belief network (D-DBN), as shown in Figure 3 shown.

[0066] Step 3: Perform supervised training on DBN. Assume that the expected output and actual output of the model are y(t) and The supervised error back propagation algorithm can be used to initialize the weights ω=[ω 1 ,ω 2 ,…,ω l ] to obtain the optimal weight w of the DBN model, as shown below:

[0067]

[0068] Among them, κ represents the learning step size of the supervised learning process. Based on the initial weights ω obtained by unsupervised learning, the DBN model can achieve fast supervised optimization and solution of the entire network weights.

[0069] 3. Data-driven deep belief network water quality prediction model testing

[0070] According to the data-driven deep belief network design method, the approximate characterization functions f(·) and g(·) of the water quality parameter pH and DO prediction model can be obtained. By inputting the water quality auxiliary variable data of a certain time period in the future into the prediction model, the water quality state of the water environment can be predicted. In order to evaluate the prediction performance, the following performance indicators are defined:

[0071]

[0072] Among them, y(t) and They represent the expected output and the actual output respectively, and N is the number of samples.

[0073] The hyperparameters of the prediction model during training and testing are set as: l = 4, η = 0.7, κ = 0.8, N = 150 and b vi =b hj =0.5. The data used in the experiment were taken from the information released by the Jiaozhou Bay West Coast Water Environment Monitoring Station and relevant departments. There were 2550 sets of data in the training process and 150 sets of data in the testing process. Figure 4It is the prediction result and error of the pH of water environment by the data-driven deep belief network. Figure 5 The prediction results and errors of the data-driven deep belief network for the DO concentration in the water environment. In order to fully demonstrate the effectiveness of the data-driven deep belief network water quality prediction model, the experiment was repeated 20 times independently and compared with other methods. The average values ​​of the comparison results are shown in Table 2. Figure 4 , Figure 5 As can be seen from Table 2, the data-driven deep belief network prediction model achieves good results in both prediction accuracy and running time.

[0074] Table 2

[0075]

[0076]

[0077] 4. Sensitivity analysis method of water quality prediction model based on mutual information measurement

[0078] According to the test results of the data-driven deep belief network prediction model ( Figure 4 and Figure 5 ), the input of the prediction model is represented as x(t), and the output is represented as After statistical analysis, we can get x(t) and The joint probability density of is:

[0079]

[0080] in, represents the probability density under given x(t), and P(x(t)) represents the probability density of x(t). Based on this, it is used to measure The mutual information of x(t) can be expressed as:

[0081]

[0082] in, express The probability density of .

[0083] Mutual information is a measure of The quantitative value of the correlation between and x(t) can be used to quantify the causal relationship between auxiliary variables and water quality parameters, and provide a metric analysis of the sensitivity of the water quality prediction model to the auxiliary variables. Figure 6 The correlation index (mutual information) between the pH value of the water environment and the auxiliary variables is given. Figure 7 The correlation index (mutual information) between the DO value of the water environment and the auxiliary variables is given. Figure 6 and Figure 7It can be seen that the top three variables affecting the change of pH value in water environment are the excess of pH value at the mouth of Yanghe River (x14), the excess of biochemical oxygen demand in Xin'an River (x16) and the excess of total phosphorus in Yanghe River (x15); the top three variables affecting the change of DO value in water environment are the excess of biochemical oxygen demand in Xin'an River (x16), biochemical oxygen demand concentration (x2) and the excess of total phosphorus in Yanghe River (x15).

[0084] It can be seen that the sensitivity analysis method of water quality prediction model based on mutual information measurement can give a quantitative causal analysis of the change of water quality state in the water environment, especially for the prediction results ( Figure 4 and Figure 5 ) provides a source tracing analysis for abnormal water quality conditions, which has important guiding significance for the source tracing and comprehensive management of water environment pollution.

[0085] Embodiment 3:

[0086] The embodiment of the present invention further provides a water environment water quality prediction and abnormal state tracing device, comprising:

[0087] An acquisition module is used to acquire water environment monitoring data;

[0088] The training module is used to train the data-driven deep belief network model based on water environment monitoring data;

[0089] The processing module is used to use the trained deep belief network model as a prediction model to predict the water quality status in different time periods in the future; at the same time, through the sensitivity analysis of the prediction model, the source analysis of abnormal water quality in the water environment can be realized.

[0090] As an implementation of an embodiment of the present invention, the acquisition module includes:

[0091] The first selection unit is used to select pH and dissolved oxygen DO as parameters characterizing water quality status according to water environment monitoring data;

[0092] The second selection unit is used to select water environment state variables associated with pH and DO as auxiliary variables to obtain qualitative nonlinear mapping relationships between the auxiliary variables and pH and DO.

[0093] As an implementation method of an embodiment of the present invention, the training module uses the data of auxiliary variables and pH and DO to train the deep belief network model so that it approximates the quantitative nonlinear mapping relationship between the auxiliary variables and pH and DO.

[0094] As an implementation method of an embodiment of the present invention, the processing module performs sensitivity analysis of the prediction model based on mutual information measurement, provides a quantitative description of the correlation between abnormal water quality status and model input, and realizes the traceability analysis of abnormal water quality status in the water environment.

[0095] The embodiments described above are only descriptions of the preferred embodiments of the present invention and are not intended to limit the scope of the present invention. Without departing from the design spirit of the present invention, various modifications and improvements made to the technical solutions of the present invention by ordinary technicians in this field should all fall within the protection scope determined by the claims of the present invention.

Claims

1. A method for predicting water quality in a water environment and tracing the source of abnormal conditions, characterized in that: The following steps are involved: Step S1, obtaining water environment monitoring data; Step S2: training a data-driven deep belief network model based on water environment monitoring data; Step S3: Use the trained deep belief network model as a prediction model to predict the water quality status in different time periods in the future; at the same time, through the sensitivity analysis of the prediction model, the source analysis of abnormal water quality status in the water environment is realized.

2. The method for predicting water quality and tracing the source of abnormal conditions in water environment according to claim 1, characterized in that: Step S1 includes: According to the water environment monitoring data, pH and dissolved oxygen DO were selected as parameters to characterize the water quality status; The water environment state variables associated with pH and DO were selected as auxiliary variables, and the qualitative nonlinear mapping relationship between the auxiliary variables and pH and DO was obtained.

3. The method for predicting water quality and tracing the source of abnormal conditions in water environment according to claim 2, characterized in that: In step S2, the deep belief network model is trained using the data of the auxiliary variables and pH and DO to make it approximate the quantitative nonlinear mapping relationship between the auxiliary variables and pH and DO.

4. The method for predicting water quality and tracing the source of abnormal conditions in water environment according to claim 3, characterized in that: In step S3, based on the mutual information metric, the sensitivity analysis of the prediction model is performed to give a quantitative description of the correlation between the abnormal water quality state and the model input, thereby realizing the source analysis of the abnormal water quality state of the water environment.

5. A water environment water quality prediction and abnormal state tracing device, characterized in that: include: An acquisition module is used to acquire water environment monitoring data; The training module is used to train the data-driven deep belief network model based on water environment monitoring data; The processing module is used to use the trained deep belief network model as a prediction model to predict the water quality status in different time periods in the future; at the same time, through the sensitivity analysis of the prediction model, the source analysis of abnormal water quality in the water environment can be realized.

6. The water environment water quality prediction and abnormal state tracing device according to claim 5, characterized in that: The acquisition modules include: The first selection unit is used to select pH and dissolved oxygen DO as parameters characterizing water quality status according to water environment monitoring data; The second selection unit is used to select water environment state variables associated with pH and DO as auxiliary variables to obtain qualitative nonlinear mapping relationships between the auxiliary variables and pH and DO.

7. The water environment water quality prediction and abnormal state tracing device according to claim 6, characterized in that: The training module uses the data of auxiliary variables and pH and DO to train the deep belief network model so that it approximates the quantitative nonlinear mapping relationship between the auxiliary variables and pH and DO.

8. The water environment water quality prediction and abnormal state tracing device according to claim 7, characterized in that: The processing module conducts sensitivity analysis of the prediction model based on mutual information measurement, gives a quantitative description of the correlation between abnormal water quality status and model input, and realizes the traceability analysis of abnormal water quality status in the water environment.

Citation Information

Patent Citations

  • Water quality prediction method and device

    CN107688871A

  • Method for predicting effluent BOD concentration based on PSLSTM neural network

    CN114565143A

  • Seawater three-dimensional prediction method and system based on improved firework algorithm optimization network

    CN115828758A

  • Method for predicting water quality through combination of DBN algorithm and spectrophotometric method

    CN116818692A

Cited By

  • Ecological environment monitoring data quality analysis system

    CN121072711A

  • An ecological environment monitoring data quality analysis system

    CN121072711B