Disclosure of Invention
The membrane bioreactor-MBR membrane pollution intelligent decision method comprises the steps of operation process data acquisition, operation process data preprocessing, membrane pollution intelligent prediction and membrane pollution intelligent decision, and specifically comprises the following steps:
(1) acquiring data of an operation process: the MBR membrane processing system is used as a research object, and the data of the operation process is collected through a collection instrument arranged on a process field, and the MBR membrane processing system comprises the following steps: the method comprises the following steps of (1) realizing data acquisition by using inlet water chemical oxygen demand, inlet water pH value, inlet water biological oxygen demand, outlet water chemical oxygen demand, outlet water pH value, outlet water biological oxygen demand, anaerobic zone oxidation-reduction potential, anoxic zone oxidation-reduction potential, aerobic zone nitrate, aerobic zone dissolved oxygen, water production pressure, water production turbidity, water production flow, sludge concentration and aeration quantity; the data collected by the instrument is transmitted to the programmable logic controller through a communication protocol, the programmable logic controller transmits the operation process data to the upper computer through the communication protocol, and the data in the upper computer is transmitted to the data processing server through the local area network;
(2) preprocessing operation process data: the operating data of the membrane pool is taken as a research object, a characteristic analysis model is established by utilizing a partial least square method, and 5 principal component variables are obtained, wherein the principal component variables are respectively as follows: the water production pressure, the water production turbidity, the water production flow, the sludge concentration and the aeration rate, and 5 main component variables are used as input variables of the membrane pollution intelligent prediction model block; the water permeability is used as an output variable of the membrane pollution intelligent prediction module;
(3) intelligent prediction of membrane pollution: the water permeability prediction is realized by intelligent prediction of membrane pollution, wherein: the water permeability is obtained by predicting a deep belief network-DBN, the DBN consists of 1 input layer, 2 hidden layers and 1 output layer, the number of neurons in the input layers is 5, the number of neurons in each hidden layer is M, M is a positive integer which is more than 2 and less than 30, and the number of neurons in the output layers is 1, namely the connection mode is 5-M-M-1; n groups of data are used as training samples of the soft measurement model; DBN input at time t is x (t) ═ x1(t),…,x5(t)],x1(t) value x representing water pressure at time t2(t) value x representing turbidity of water produced at time t3(t) value x representing the water production flow at time t4(t) value x representing sludge concentration at time t5(t) represents the value of aeration at the time t, and the calculation modes of the soft measurement model for predicting the water permeability based on the DBN sequentially comprise the following steps:
① input layer h0(t)=x(t)
(1)
wherein h is0(t) represents the output vector of the input layer at time t, h1(t) represents the output vector of the first hidden layer at time t, h2(t) represents the output vector of the second hidden layer at time t, w0,1(t) represents the weight vector between the input layer and the first hidden layer at time t, w1,2(t) represents the weight vector between the first hidden layer and the second hidden layer at time t, w2,3(t) represents the weight vector between the second hidden layer and the output layer at time t, b1(t) denotes the bias vector of the first hidden layer at time t, b2(t) represents the bias vector of the second hidden layer at time t, and y (t) represents the actual output of the DBN at time t;
the DBN training is divided into two processes: unsupervised pre-training and supervised weight fine tuning; setting the iteration number of each layer of pre-training as 100, the iteration number of a back propagation algorithm as 1000, the expected error as 0.01, and the initial weight and bias as 0.01; the specific training steps are as follows:
① unsupervised pre-training, the update rule of the parameters obtained by the contrast divergence algorithm is as follows:
wherein, w0,1(t +1) is the weight vector between the input layer and the first hidden layer at time t +1, w1,2(t +1) is the weight vector between the first hidden layer and the second hidden layer at time t +1, b1(t +1) is the bias vector for the first hidden layer at time t +1, b2(t +1) is the bias vector for the second hidden layer at time t +1, EdataIs a expectation of training data, EmodelIs an expectation of model definition, μw1E (0,0.02) is the learning rate of the weights of the input layer and the first hidden layer, muw2E (0,0.02) is the learning rate of the weights of the first hidden layer and the second hidden layer, mub1E (0,0.01) is the learning rate of the first hidden layer, μb2E (0,0.01) is the learning rate of the second hidden layer;
②, adjusting the weight value by a back propagation algorithm, namely training layer by layer to obtain the initial value of the DBN parameter, then fine-adjusting the weight value by the back propagation algorithm to obtain better model effect, and adjusting the weight value by adopting an error back propagation method as follows:
wherein, w2,3(t +1) is the weight vector between the second hidden layer and the output layer at time t +1, yd(t) is the desired output of DBN at time t, ηoutE (0,3) is the weight learning rate between the second hidden layer and the output layer, η2E (0,3) is the weight learning rate between the first hidden layer and the second hidden layer, η1E (0,3) is a weight learning rate between the input layer and the first hidden layer;
(4) intelligent decision making of membrane pollution: the membrane pollution intelligent decision is to establish a membrane pollution comprehensive evaluation model by utilizing a water permeability prediction value and combining other membrane pollution related variables, and provide a decision aiming at membrane pollution, and the process is as follows:
1) determining an evaluation index of membrane fouling, u ═ u { [ u ]1,u2,u3,u4,u5,u6},u1Is the value of the water production flow, u2Is the value of the water production pressure u3Is the value of turbidity of the produced water, u4Is the value of the sludge concentration u5Is the value of aeration amount and u6Is a predicted value of the water permeability;
2) establishing monitoring statistics, wherein the process variable is u epsilon R6×nWherein 6 is a variable dimension, and n is the number of samples; and (3) carrying out independent component and principal component decomposition on the membrane pollution evaluation matrix u:
u=As+PtT+fT(7)
wherein A ∈ R
6×rFor the mixing matrix, s ∈ R
r×nFor independent matrices, t ∈ R
n×kAs principal component scoring matrix, load matrix P is formed by R
6×k,f∈R
n×6The final residual matrix is obtained, r represents the number of independent elements, and k is the number of selected principal elements; to estimate A and s, a unmixing matrix W is required to obtain a reconstructed signal
Is an estimate of the source signal, whitening uProcessing to obtain a score vector:
Z=Λ-1/2HTu=Bs (8)
wherein Λ is a diagonal matrix containing all eigenvalues, H is a corresponding eigenvector matrix and the unit is orthogonal, and B is a unit orthogonal matrix; the unmixing matrix is:
W=BTΛ-1/2HT(9)
decomposing the original data by independent components and principal components to obtain independent component matrix and principal component scoring matrix, and establishing I2And T2Statistics, namely establishing SPE statistics for the residual information; independent component vector is sl=[s1l, s2l,…,srl]T∈Rr×1And a pivot score vector tl=[tl1,tl2,…,tlk]T∈Rk×1Residual vector fl=[fl1, fl2,…,fl6]T∈ R 6×11,2, …, n (n is the number of samples); establishment of I2、T2And the SPE statistics are as follows:
wherein
Is the control limit for the SPE statistic,
λ
j(j ═ 1, 2., k) is the eigenvalue corresponding to each principal component covariance matrix, k is the number of principal components, F
k.(n-k),αIs the upper limit value of F distribution with confidence coefficient of α and degree of freedom of k and (n-k), c
αCorresponding to the lower limit value of the normal distribution under the confidence coefficient α, determining I by adopting a kernel density estimation method
2Control limit of statistic, determining T based on F distribution
2A control limit for the statistic;
3) intelligent decision making: obtaining the membrane pollution evaluation index u (t) at the time t on line, and monitoring tStatistical amount of etching I2、T2In order to determine the main factors of membrane pollution, taking measures aiming at the determined factors and establishing a multi-classifier based on a kernel function to distinguish the membrane pollution factors, wherein the steps mainly comprise that ① produced water flow reaches the peak value of 460m3H, ② produced water pressure is lower than 20kp, ③ aeration rate is lower than 2400m3④ the sludge concentration is more than 13000mg/l, ⑤ the water production pressure is less than 20kp and the water permeability is less than 30LMH/bar, ⑥ the water production pressure is less than 20kp and the water permeability is less than 60LMH/bar, the turbidity of the produced water is more than 5NUT, 6 binary classifiers are combined into a multi-classifier, for the first binary classifier, the data not belonging to the first class is labeled as-1, the data belonging to the first class is labeled as +1, for the second binary classifier, the data not belonging to the second class is labeled as-1, the data belonging to the second class is labeled as +1, for the third binary classifier, the data not belonging to the third class is labeled as-1, the data belonging to the third class is labeled as +1, for the fourth binary classifier, the data not belonging to the fourth class is labeled as-1, the data belonging to the fourth class is labeled as +1, for the fifth binary classifier, the data not belonging to the fifth class is labeled as-1, the fifth binary classifier, the data belonging to the sixth class is labeled as +1, the sixth classifier, the q label is labeled as +1, the sixth classifier, the target function of the q 2, the sixth classifier, the target function of the target classifier, the target function of the data of the following steps:
wherein C ∈ (0,5) is a penalty coefficient, w
qIs the connection weight of the q classifier, T is the transpose symbol, ξ
p qRelaxation variables for the p-th data sample of the q-th classifier, b
qFor the bias of the q-th classifier,
is a Gaussian kernel function, σ ∈ (0,1) is the width of the kernel function, u
p qP-th data sample, u, of the q-th classifier, respectively
v qIs the v-th data sample of the q-th classifier (v ═ 1,2, …, n), y
pIs the category of the p sample; introducing a Lagrange multiplier, and converting the optimization problem into:
updating parameters:
wherein, yvClass of the v-th sample, αpThe Grenarian multiplier for the p-th data sample, αvFor the evaluation index u, the lagrangian multiplier for the v-th data sample is as follows:
f(u)=sgn(αpypK(u,up q)+bq) (15)
wherein sgn represents a sign function, the input is positive, the output is 1, the input is negative, the output is-1, the output value can be obtained by inputting the sample to be tested into the decision function, the category corresponding to the function for obtaining the maximum value is the category to which the sample to be tested belongs, the 6-category corresponding operation suggestion comprises ①, the operation in the state is not suitable for exceeding 4h, and the water yield is reduced to 260m3Below/h, ② reducing the water yield of the membrane pool to 260m3Controlling transmembrane pressure difference to be less than 40kPa, ③ increasing aeration to 3000m3④ controlling the sludge concentration of the membrane pool to be 8000- & lt12000 mg/L, ⑤ adjusting the operation parameters, reducing the water yield to 260m3H, or increasing aeration amount to 5000m3And ⑥, performing online physical cleaning and online chemical cleaning within 24 hours, applying the trained decision model to the sewage treatment process, performing characteristic matching on the model for fault data, outputting fault types, performing operation suggestions corresponding to the fault types, and providing decision support for the production process.
Detailed Description
(1) Specific implementation of membrane pollution intelligent decision system design and software and hardware function integration
A hardware platform environment set up in an actual sewage treatment plant is shown in figure 2, operation process data are collected through a collection instrument installed in a process field, the data collected by the instrument are transmitted to a PLC through a Modbus communication protocol, the PLC transmits the operation process data to an upper computer through an RS232 communication protocol, the data in the upper computer are transmitted to a data processing Server through a local area network, the operation process data are issued to a water plant work manager through a Web Server in a Browser/Server mode, the prediction of water permeability and the early warning result of membrane pollution are displayed in a Client/Server mode, the main functions of the developed MBR membrane pollution intelligent early warning system can be achieved by ① inquiring operation parameters of a membrane pool, ② online prediction of water permeability, ③ early warning of membrane pollution, and ④ intelligent decision is made on membrane pollution.
The invention adopts component technology in software industry to package the membrane pollution data preprocessing module, the membrane pollution intelligent prediction module, the membrane pollution intelligent early warning module and the membrane pollution intelligent decision-making module into functional modules, thereby enhancing the reusability of the model and making up the blank of popularization of MBR membrane pollution intelligent decision-making technology to human-computer interaction interface in actual system operation at home and abroad; the NET platform is adopted for software development, so that an ActiveX control is conveniently created, and the usable environment range of software is expanded; a field bus technology is adopted to establish a full-flow system communication network to realize information transmission among modules; meanwhile, the MBR membrane pollution intelligent decision-making system provided by the invention realizes the connection of a central control room and each on-site data acquisition point, forms a centralized management early warning system, is easy to expand, has independent functions of each part, can add software and hardware modules according to actual prediction requirements and is fused with other systems, can realize the stability and reliability of the system and ensures the early warning precision of membrane pollution.
(2) Specific implementation of film pollution intelligent decision method research
The invention obtains an MBR membrane pollution intelligent decision-making method; the method is characterized in that characteristic variables of MBR membrane water permeability are obtained through characteristic analysis, a soft measurement model of MBR membrane water permeability is established by utilizing a deep belief network, intelligent detection of MBR membrane water permeability is realized, a membrane pollution comprehensive evaluation model is established by combining a predicted value of the membrane water permeability with other collectable process variables of a water plant, identification of membrane pollution and identification of main factors are realized, the intelligent level of the sewage treatment plant is improved, and normal operation of a sewage treatment process is guaranteed.
① input variables were collected by on-line instrumentation installed at the process site, including 5 variables to be collected, and the parameter information and collection location are shown in Table 1.
TABLE 1 Process variable types collected
② A soft measurement model is built by using the deep belief network, 510-step prediction of membrane water permeability is realized based on a multi-step prediction strategy, the deep belief network is trained and tested by adopting data collected in real time, 80 groups of data are selected for testing, and the collected data are shown in a table 2.
③ comprehensive evaluation of membrane pollution is carried out by using the predicted value of water permeability and the current values of other related collection variables (water production flow, water production pressure, aeration quantity and sludge concentration) so as to judge whether membrane pollution occurs.
④ making operation decision of membrane pollution according to relevant variable of membrane pollution.
TABLE 2 Soft measurement model test data