CN113077039A - Task-driven RBF neural network-based water outlet total nitrogen TN soft measurement method - Google Patents
Task-driven RBF neural network-based water outlet total nitrogen TN soft measurement method Download PDFInfo
- Publication number
- CN113077039A CN113077039A CN202110304217.1A CN202110304217A CN113077039A CN 113077039 A CN113077039 A CN 113077039A CN 202110304217 A CN202110304217 A CN 202110304217A CN 113077039 A CN113077039 A CN 113077039A
- Authority
- CN
- China
- Prior art keywords
- output
- neural network
- total nitrogen
- neurons
- task
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- IJGRMHOSHXDMSA-UHFFFAOYSA-N Atomic nitrogen Chemical compound N#N IJGRMHOSHXDMSA-UHFFFAOYSA-N 0.000 title claims abstract description 128
- 229910052757 nitrogen Inorganic materials 0.000 title claims abstract description 64
- 238000013528 artificial neural network Methods 0.000 title claims abstract description 56
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 title claims abstract description 45
- 238000000691 measurement method Methods 0.000 title claims abstract description 11
- 238000005259 measurement Methods 0.000 claims abstract description 28
- 239000010865 sewage Substances 0.000 claims abstract description 24
- 230000006870 function Effects 0.000 claims abstract description 11
- 210000002569 neuron Anatomy 0.000 claims description 94
- 239000013598 vector Substances 0.000 claims description 42
- 238000000034 method Methods 0.000 claims description 26
- 238000012549 training Methods 0.000 claims description 16
- 239000011159 matrix material Substances 0.000 claims description 15
- 230000008569 process Effects 0.000 claims description 15
- 238000004364 calculation method Methods 0.000 claims description 12
- XKMRRTOUMJRJIA-UHFFFAOYSA-N ammonia nh3 Chemical compound N.N XKMRRTOUMJRJIA-UHFFFAOYSA-N 0.000 claims description 8
- 238000013138 pruning Methods 0.000 claims description 8
- 238000012360 testing method Methods 0.000 claims description 8
- OAICVXFJPJFONN-UHFFFAOYSA-N Phosphorus Chemical compound [P] OAICVXFJPJFONN-UHFFFAOYSA-N 0.000 claims description 7
- 238000001514 detection method Methods 0.000 claims description 7
- 229910052698 phosphorus Inorganic materials 0.000 claims description 7
- 239000011574 phosphorus Substances 0.000 claims description 7
- 230000003044 adaptive effect Effects 0.000 claims description 4
- 238000002474 experimental method Methods 0.000 claims description 4
- 238000010276 construction Methods 0.000 claims description 3
- 239000011259 mixed solution Substances 0.000 claims description 3
- 210000004205 output neuron Anatomy 0.000 claims description 3
- 239000007787 solid Substances 0.000 claims description 3
- 238000012546 transfer Methods 0.000 claims description 3
- 238000013461 design Methods 0.000 abstract description 4
- 238000011897 real-time detection Methods 0.000 abstract description 4
- 238000004458 analytical method Methods 0.000 abstract description 3
- 230000007246 mechanism Effects 0.000 abstract description 2
- 230000009471 action Effects 0.000 description 4
- 230000008901 benefit Effects 0.000 description 4
- 238000005070 sampling Methods 0.000 description 4
- 238000003556 assay Methods 0.000 description 3
- 238000011161 development Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000007613 environmental effect Effects 0.000 description 3
- 239000013505 freshwater Substances 0.000 description 3
- 238000013507 mapping Methods 0.000 description 3
- QJGQUHMNIGDVPM-UHFFFAOYSA-N nitrogen group Chemical group [N] QJGQUHMNIGDVPM-UHFFFAOYSA-N 0.000 description 3
- 238000011160 research Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 239000003153 chemical reaction reagent Substances 0.000 description 2
- 230000007547 defect Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000005842 biochemical reaction Methods 0.000 description 1
- 230000007797 corrosion Effects 0.000 description 1
- 238000005260 corrosion Methods 0.000 description 1
- 239000003344 environmental pollutant Substances 0.000 description 1
- 238000012851 eutrophication Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000007786 learning performance Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 239000008239 natural water Substances 0.000 description 1
- 238000003062 neural network model Methods 0.000 description 1
- 230000007514 neuronal growth Effects 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 231100000719 pollutant Toxicity 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 238000004064 recycling Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N33/00—Investigating or analysing materials by specific methods not covered by groups G01N1/00 - G01N31/00
- G01N33/18—Water
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F17/00—Digital computing or data processing equipment or methods, specially adapted for specific functions
- G06F17/10—Complex mathematical operations
- G06F17/16—Matrix or vector computation, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/21—Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
- G06F18/214—Generating training patterns; Bootstrap methods, e.g. bagging or boosting
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Life Sciences & Earth Sciences (AREA)
- Mathematical Physics (AREA)
- General Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Computational Mathematics (AREA)
- Mathematical Analysis (AREA)
- Chemical & Material Sciences (AREA)
- Computing Systems (AREA)
- Evolutionary Computation (AREA)
- General Health & Medical Sciences (AREA)
- Pure & Applied Mathematics (AREA)
- Software Systems (AREA)
- Mathematical Optimization (AREA)
- Artificial Intelligence (AREA)
- Algebra (AREA)
- Biochemistry (AREA)
- Biophysics (AREA)
- Computational Linguistics (AREA)
- Databases & Information Systems (AREA)
- Molecular Biology (AREA)
- Food Science & Technology (AREA)
- Medicinal Chemistry (AREA)
- Analytical Chemistry (AREA)
- Biomedical Technology (AREA)
- Immunology (AREA)
- Pathology (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Bioinformatics & Computational Biology (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Evolutionary Biology (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Feedback Control In General (AREA)
Abstract
The invention discloses a water outlet total nitrogen TN soft measurement method based on a task-driven RBF neural network, wherein a water outlet total nitrogen soft measurement model is established based on a task-driven radial basis function neural network, so that the real-time accurate acquisition of the water outlet total nitrogen concentration is realized; firstly, determining characteristic variables related to the effluent TN by combining mechanism knowledge and mutual information analysis; and then, organically combining a second-order learning algorithm and a self-adaptive structure adding and deleting algorithm, driving the RBF neural network by a self-adaptive design task, establishing a soft measurement model of total nitrogen TN of the effluent of the municipal sewage treatment, realizing real-time detection of the total nitrogen TN of the effluent, and solving the problem that the total nitrogen TN of the effluent of the municipal sewage treatment is difficult to accurately measure in real time.
Description
Technical Field
The invention belongs to the field of sewage treatment, and particularly relates to a soft measurement method for total nitrogen TN of effluent based on a task-driven RBF neural network.
Background
The urban sewage is a stable fresh water resource, the recycling of the urban sewage can reduce the social demand on natural water and reduce the pollution to the water environment, and the urban sewage is an effective way for realizing the continuous utilization and virtuous cycle of the fresh water resource. Therefore, with the national emphasis on the environmental and water resource management problem and the great demand of the urban development on fresh water resources, the treatment of urban sewage has become an important way for sewage recovery, sustainable reuse and water environmental protection. Nitrogen is a main pollutant index in urban sewage treatment, and nitrogen-containing water quality indexes such as ammonia nitrogen, total nitrogen and the like do not reach the standard, so that the problem of eutrophication of water is caused, and the ecological environment of the water is seriously damaged. However, the influence factors of total nitrogen TN in the effluent of the sewage treatment process are various, and the relationship among the influence factors is complex, so that the real-time measurement is difficult, and the stable operation of the sewage treatment process is seriously influenced. The soft measurement method for total nitrogen TN of effluent based on the task-driven RBF neural network is beneficial to the safe and stable operation of the municipal sewage treatment process and the improvement of the denitrification efficiency of the municipal sewage treatment plant, and has obvious economic benefit, environmental benefit and social benefit.
The sewage treatment process is a complex biochemical reaction process, and some important parameters in the sewage treatment process are difficult to accurately measure due to the limitation of measurement technology. At present, most municipal sewage treatment plants in China still adopt a manual sampling assay method to detect nitrogen-containing compounds in water. When the nitrogen content in water is measured by a manual sampling assay method, links such as sampling, assay, feedback and the like need to be carried out, the steps are complicated, the measurement period is long, and great time lag exists. On the other hand, factors such as temperature, time, reagents and manual operation all affect the accuracy of the measurement result. With the development of industry and automation, domestic and foreign enterprises begin to research and develop detection equipment or instruments to replace manual operation, and although automatic instruments and meters liberate inspectors from complicated sampling, inspection and testing steps, the detection principle of nitrogen content is not fundamentally changed, corresponding chemical reagents are still required to be selected as assistance, and the accuracy and the universality of the instruments and meters are limited. Nitrogen-containing water quality detection equipment is generally expensive and difficult to maintain, and corrosion and damage to instruments and meters can be caused even if the equipment is in a severe working environment for a long time. Therefore, the research on a new measuring method and the real-time detection problem of the total nitrogen TN of the effluent have important practical significance.
With the development of control theory and intelligent science, the soft measurement technology for analyzing and researching variables to be tested by means of key characteristic variables is widely concerned by academic and industrial fields, and the research hotspot soft measurement which becomes the field of process on-line detection is to establish a mapping relation between variables easy to be tested and variables to be tested which are difficult to be directly measured, namely a soft measurement model, based on mechanism analysis or data, and then realize the prediction of the variables to be tested by a mathematical calculation or estimation method. In recent years, soft measurement technology is widely applied to characteristic modeling of water quality parameters in a sewage treatment process, and a method using a neural network as a soft measurement tool is researched most actively. The invention provides a soft measurement method based on a task-driven RBF neural network. From the organization of network structures through neuronal growth and pruning. On one hand, each addition of an RBF neuron is to compensate a larger residual error and improve learning ability. On the other hand, the process of pruning is to avoid structural redundancy without losing learning ability. Meanwhile, a second-order algorithm is adopted to optimize all parameters so as to improve the learning performance. The method can realize real-time detection of the total nitrogen of the effluent, improve the TN measurement quality of the total nitrogen of the effluent and the monitoring capability of the sewage treatment process, and has wide application prospect and important practical significance.
Disclosure of Invention
Aiming at the defects of the existing method, the invention provides a task-driven Radial Basis Function (RBF) neural network-based total nitrogen TN soft measurement method, which is based on mutual information theory and expert knowledge, analyzes and summarizes easily-measured auxiliary variables closely related to total nitrogen TN, determines the input quantity of a neural network model, designs a network structure based on a self-organization method, establishes a soft measurement model of the total nitrogen TN, realizes the real-time detection of the effluent total nitrogen TN, and solves the problem that the effluent total nitrogen TN of sewage treatment is difficult to measure.
The invention adopts the following technical scheme and implementation steps:
(1) determining input and output variables of the effluent total nitrogen TN: selecting characteristic variables of the soft measurement model into selection of main variables and selection of auxiliary variables, taking total nitrogen TN (total nitrogen) concentration of effluent as the main variables, analyzing the correlation between key water quality parameters and other related variables by utilizing mutual information, and determiningSetting the water inlet temperature, the water outlet temperature and the ammonia nitrogen NH in the water outlet4N, total nitrogen TN of the inlet water, total phosphorus TP of the inlet water and suspended matter concentration are auxiliary variables;
(2) designing a soft measurement model for intelligent detection of total nitrogen TN of effluent: establishing a soft measurement model of the total nitrogen TN of the effluent by utilizing a task-driven RBF neural network, wherein the task-driven RBF neural network comprises an input layer, a hidden layer and an output layer; at the initial moment, the structure of the neural network is a connection mode of 6-0-1, an input layer has 6 neurons, a hidden layer has no neurons, an output layer has 1 neuron, and an input vector of the neural network is expressed as x ═ x (x-1)1,x2,...,x6)T,x1,x2,x3,x4,x5,x6Respectively representing the water inlet temperature, the water outlet ammonia nitrogen, the water inlet total phosphorus and the suspended solid concentration of the mixed solution; the output of the output layer is the value of total nitrogen TN of the effluent, and the number of neurons of the output layer is 1; at time t, the output vector of the neural network is represented as y (t), and the calculation method is as follows:
inputting a layer: this layer consists of 6 neurons, each with an output of:
ui(t)=xi(t) (1)
wherein u isi(t) is the output of the ith neuron at time t, i ═ 1,2, …, 6;
② hidden layer: the hidden layer consists of J neurons, the output of each neuron being:
wherein phij(xi) Representing the ith input vector xiCorresponding output of the jth hidden layer neuron upon entering the network, cjIs the central vector of the jth hidden layer neuron, δjIs the width value of the jth hidden layer neuron;
output layer: the output of the output layer is:
wherein y (i) is the ith input vector xiCorresponding output on entry into the network, wjiThe connection weights, phi, for the j hidden layer neurons to the output neuronjThe transfer functions for the j hidden layer neurons.
The error of the task-driven RBF neural network is defined as follows:
wherein, yd(t) the expected output of the RBF neural network driven by the task at the time t, y (t) the actual output of the RBF neural network driven by the task at the time t, and p is the number of training samples;
(3) the training task driving RBF neural network specifically comprises the following steps:
firstly, at the initial moment, the number of neurons in a hidden layer of the network is 0;
searching a sample with the maximum absolute expected output value, and adding a first neuron;
at the initial moment, the number of the hidden layer neurons is set to be 0, and the data sample corresponding to the maximum absolute residual error of the current network is the sample k with the maximum absolute expected output1:
k1=argmax[||yd1||,||yd2||,...,||ydp||,...||ydP||] (5)
Wherein P represents the number of training samples, ydpRepresenting the expected output of the p-th sample. Thus, adding the first RBF neuron sets the following:
σ1=1 (8)
thirdly, adjusting the network parameters by using an improved second-order algorithm, wherein the method comprises the following steps:
Ψ(t+1)=Ψ(t)-(H(t)+λI(t))-1Ω(t) (9)
h is a Hessian-like matrix, lambda is a learning rate parameter with a value of a normal number, I is an identity matrix, omega is a gradient vector, and psi refers to all parameters;
Ψ(t)=[c1(t),c2(t),...,cl(t),σ1(t),σ2(t),...,σl(t),w1(t),w2(t),...,wl(t)] (10)
to reduce computational complexity, the hessian-like matrix is converted to a sum of a plurality of hessian-like submatrices. Similarly, the calculation of the gradient vector Ω may be converted to a summation of the gradient sub-vectors:
wherein the sub-hessian matrix and the sub-gradient vectors can be calculated by:
jacobian vector jp(t) is calculated as follows:
wherein, l is the number of hidden layer neurons, N is the dimension of the input vector, and by utilizing the differential chain rule, the row elements of the Jacobian matrix in the above formula can be written as:
fourthly, calculating the instantaneous residual vector of the network, finding out the position of the residual peak point, adding a neuron at the position, and then adjusting the network parameters by using an improved second-order algorithm;
at time t, for all training set samples, the residual vectors are calculated as follows:
e(t)=[e1(t),e2(t),...,ep(t),...eP(t)]T (19)
the residual value of the p-th sample is calculated as follows:
ep(t)=ydp-yp(t) (20)
wherein, ydpAnd yp(t)The expected output of the p sample and the actual output at the time t are respectively;
searching the position of the current residual peak point:
kt=argmax||e(t)|| (21)
the current network pair k may be consideredtThe learning ability of each sample is not enough, so an RBF neuron needs to be added to learn the current sample, and the center vector and the output weight of the newly added neuron are set as follows:
if the two RBF neurons are close in distance and have larger radial action ranges, the same action is easy to generate, and further the redundancy on a network structure is caused, in order to avoid the problem of structural redundancy, the existing RBF neurons are expected to have smaller influence on the current newly-added neurons, so the following setting is made, and when the following relations are met, the existing neurons have smaller influence on the newly-added neurons:
cmin=argmin(dist(ct,cj≠t)) (25)
thus, the following relationship can be obtained:
σt≤0.7||ct-cmin|| (26)
at present, during the experiment, sigma is usually takent=0.7||ct-cmin||
If the number of RBF neurons reaches JmaxOr training error up to E0If yes, storing the current mean square error MSE _0, and entering the step (c), otherwise repeating the step (c) and the step (c). The calculation formula of MSE is as follows:
sixthly, calculating the significance indexes of neurons of all hidden layers, deleting the neurons with the lowest significance, and adjusting network parameters by using an improved second-order learning algorithm to obtain the mean square error MSE _1 of the pruned network;
the calculation method for defining the neuron significance index is as follows:
wherein, wjThe connection weight value from the jth neuron to the output neuron;
comparing the error MSE _1 after deleting the neurons with the error MSE _0 before deleting the neurons, and if the current MSE _1 is smaller than or equal to the MSE _0, turning to the step (IV) to continue the pruning process; otherwise, the structure before pruning is recovered, and the construction of the task-driven self-adaptive RBF neural network is completed;
(4) predicting the concentration of total nitrogen TN in the effluent;
and taking the test sample data as the input of the trained task-driven self-adaptive RBF neural network, wherein the output of the neural network is the prediction result of the total nitrogen TN concentration of the effluent.
Compared with the prior art, the invention has the following obvious advantages and beneficial effects:
1. according to the characteristic that the radial basis function neural network has good nonlinear mapping capability, aiming at the defects of the total nitrogen measurement of the effluent in the current sewage treatment process, the task-driven adaptive radial basis function neural network is adopted to realize the nonlinear mapping between the auxiliary variable and the total nitrogen TN, a soft measurement model of the total nitrogen of the effluent in the sewage treatment process is established, the soft measurement of the total nitrogen TN of the effluent is realized, and the method has the characteristics of good real-time performance, good stability, high precision and the like;
2. the invention is based on the interaction of the structure construction and the parameter adjustment of the task-driven self-adaptive RBF neural network, and can design the RBF neural network with simple structure and good generalization performance according to the task to be solved.
Drawings
FIG. 1 is a radial basis neural network topology of the present invention;
FIG. 2 is a flow chart of the method of the present invention;
FIG. 3 is a graph of the radial basis function neural network test results of the present invention;
FIG. 4 is a radial basis function neural network test error map of the present invention.
Detailed Description
The invention selects 6 related variables to carry out soft measurement on total nitrogen TN of effluent of sewage treatment: water inlet temperature, water outlet temperature and water outlet ammonia nitrogen NH4N, total nitrogen TN, total phosphorus TP, suspended matterConcentration; according to the embodiment of the invention, water quality analysis data of a certain Beijing sewage treatment plant is adopted, 360 samples are used together to design and evaluate a prediction model after pretreatment, 270 groups of samples are used as training samples, and the other 90 groups of samples are used as test samples. In the experiment, the data needs to be normalized, and all input data are normalized to [ -1,1 [ -1 [ ]]All output data are normalized to [0,1 ]]. The invention adopts the following technical scheme and implementation steps:
a soft measurement model of total nitrogen TN of effluent is established by utilizing a task-driven adaptive RBF neural network, and the soft measurement model comprises the following steps:
(1) determining input and output variables of the effluent total nitrogen TN: selecting characteristic variables of the soft measurement model into selection of main variables and selection of auxiliary variables, taking the concentration of total nitrogen TN of the effluent as the main variable, analyzing the correlation between the total nitrogen TN of the effluent and other related variables by utilizing mutual information, and determining the water inlet temperature, the water outlet temperature and the ammonia nitrogen NH of the effluent4N, total nitrogen TN of the inlet water, total phosphorus TP of the inlet water and suspended matter concentration are auxiliary variables;
(2) designing a soft measurement model for intelligent detection of total nitrogen TN of effluent: and establishing a soft measurement model of the total nitrogen TN of the effluent by utilizing a task-driven self-adaptive RBF neural network. The task-driven self-adaptive RBF neural network comprises an input layer, a hidden layer and an output layer. At the initial moment, the structure of the neural network is a connection mode of 6-0-1, an input layer has 6 neurons, a hidden layer has no neurons, an output layer has 1 neuron, and an input vector of the neural network is expressed as x ═ x (x-1)1,x2,...,x6)T,x1,x2,x3,x4,x5,x6Respectively representing the water inlet temperature, the water outlet ammonia nitrogen, the water inlet total phosphorus and the suspended solid concentration of the mixed solution; the output of the output layer is the value of total nitrogen TN of the effluent, and the number of neurons of the output layer is 1; at time t, the output vector of the neural network is represented as y (t), and the calculation method is as follows:
inputting a layer: this layer consists of 6 neurons, each with an output of:
ui(t)=xi(t) (29)
wherein u isi(t) is the output of the ith neuron at time t, i ═ 1,2, …, 6;
② hidden layer: the hidden layer consists of J neurons, the output of each neuron being:
wherein phij(xi) Representing the ith input vector xiCorresponding output of jth RBF neuron upon entering network, cjIs the central vector of the jth RBF neuron, δjThe width value of the jth RBF neuron;
output layer: the output of the output layer is:
wherein y (i) is the ith input vector xiCorresponding output on entry into the network, wjiIs the connection weight of the jth RBF neuron to the output node, phijA transfer function for the jth RBF neuron;
the error of the task-driven RBF neural network is defined as follows:
wherein, yd(t) the expected output of the RBF neural network is driven by the task at the moment t, y (t) the actual output of the RBF neural network is driven by the task at the moment t, and P is the number of training samples;
(3) the training task driving RBF neural network specifically comprises the following steps:
firstly, at the initial moment, the number of neurons in a hidden layer of the network is 0;
searching a sample with the maximum absolute expected output value, and adding a first neuron;
initial time, number of hidden layer neuron is 0, and maximum absolute residual error of current network corresponds toThe data sample is the sample k with the maximum absolute expected output1:
k1=argmax[||yd1||,||yd2||,...,||ydp||,...||ydP||] (33)
Wherein P represents the number of training samples, ydpRepresenting the expected output of the p-th sample. Thus, adding the first RBF neuron sets the following:
σ1=1 (36)
thirdly, adjusting the network parameters by using an improved second-order algorithm, wherein the method comprises the following steps:
Ψ(t+1)=Ψ(t)-(H(t)+λI(t))-1Ω(t) (37)
h is a Hessian-like matrix, lambda is a learning rate parameter with a value of a normal number, I is an identity matrix, omega is a gradient vector, and psi refers to all parameters;
Ψ(t)=[c1(t),c2(t),...,cl(t),σ1(t),σ2(t),...,σl(t),w1(t),w2(t),...,wl(t)] (38)
to reduce computational complexity, the hessian-like matrix is converted to a sum of a plurality of hessian-like submatrices. Similarly, the calculation of the gradient vector Ω may be converted to a summation of the gradient sub-vectors:
wherein the sub-hessian matrix and the sub-gradient vectors can be calculated by:
jacobian vector jp(t) is calculated as follows:
wherein, l is the number of neurons in the hidden layer, N is the dimension of the input vector, and the Jacobian matrix row elements in the above formula can be written as:
fourthly, calculating the instantaneous residual vector of the network, finding out the position of the residual peak point, adding a neuron at the position, and then adjusting the network parameters by using an improved second-order algorithm;
at time t, for all training set samples, the residual vectors are calculated as follows:
e(t)=[e1(t),e2(t),...,ep(t),...eP(t)]T (47)
the residual value of the p-th sample is calculated as follows:
ep(t)=ydp-yp(t) (48)
wherein, ydpAnd yp(t)The expected output of the p sample and the actual output at the time t are respectively;
searching the position of the current residual peak point:
kt=argmax||e(t)|| (49)
the current network pair k may be consideredtThe learning ability of individual samples is not sufficient. Therefore, an RBF neuron needs to be added to learn the current sample, and the center vector and the output weight of the newly added neuron are set as follows:
if the two RBF neurons are close in distance and have larger radial action ranges, the same action is easy to generate, and further the redundancy on a network structure is caused, in order to avoid the problem of structural redundancy, the existing RBF neurons are expected to have smaller influence on the current newly-added neurons, so the following setting is made, and when the following relations are met, the existing neurons have smaller influence on the newly-added neurons:
cmin=argmin(dist(ct,cj≠t)) (53)
thus, the following relationship can be obtained:
σt≤0.7||ct-cmin|| (54)
at present, during the experiment, sigma is usually takent=0.7||ct-cmin||
If the number of RBF neurons reaches JmaxOr training error up to E0Then the current mean square error is storedMSE _0, and entering the step (c), otherwise repeating the step (c) and the step (c), wherein the MSE calculation formula is as follows:
sixthly, calculating the significance indexes of neurons of all hidden layers, deleting the neurons with the lowest significance, and adjusting network parameters by using an improved second-order learning algorithm to obtain the mean square error MSE _1 of the pruned network;
the calculation method for defining the neuron significance index is as follows:
wherein, wjThe connection weight value from the jth neuron to the output neuron;
comparing the error MSE _1 after deleting the neurons with the error MSE _0 before deleting the neurons, and if the current MSE _1 is smaller than or equal to the MSE _0, turning to the step (IV) to continue the pruning process; otherwise, the structure before pruning is recovered, and the task drives the RBF neural network to be constructed;
(4) predicting the concentration of total nitrogen TN in the effluent;
the test result of the total nitrogen TN soft measurement method is shown in FIG. 3, and the X axis: number of samples tested, in units of units per sample, Y-axis: the unit of the output value of the total nitrogen TN of the effluent is milligram/liter, the blue line is the actual output value of the total nitrogen TN of the effluent, and the red line is the predicted value of the task-driven RBF neural network; the error between the actual output and the test output of the total nitrogen TN concentration of the effluent is shown in FIG. 4, and the X axis: number of samples tested, in units of units per sample, Y-axis: the error of the prediction of total nitrogen TN of the effluent is milligram/liter.
It will be apparent to those skilled in the art that various modifications and variations can be made in the present invention without departing from the spirit or scope of the invention. It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that modifications and variations can be made without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (3)
1. A soft measurement method for total nitrogen TN (total nitrogen) of effluent based on a task-driven RBF (radial basis function) neural network is characterized by comprising the following steps of:
step 1, determining input and output variables of water outlet total nitrogen TN soft measurement model
According to actual data obtained by a sewage treatment plant, the correlation between total nitrogen TN of the effluent and other related variables is analyzed by utilizing mutual information, and the water inlet temperature, the water outlet temperature and the ammonia nitrogen NH of the effluent are determined4N, total nitrogen TN of the inlet water, total phosphorus TP of the inlet water and suspended matter concentration are auxiliary variables;
step 2, constructing a soft measurement model for intelligent detection of total nitrogen TN of effluent:
establishing a soft measurement model of total nitrogen TN (total nitrogen) of effluent by utilizing a task-driven RBF (radial basis function) neural network, wherein the task-driven self-adaptive RBF neural network comprises the following steps: an input layer, a hidden layer and an output layer; at the initial moment, the structure of the neural network is a connection mode of 6-0-1, an input layer has 6 neurons, a hidden layer has no neurons, an output layer has 1 neuron, and an input vector of the neural network is expressed as x ═ x (x-1)1,x2,...,x6)T,x1,x2,x3,x4,x5,x6Respectively representing the water inlet temperature, the water outlet ammonia nitrogen, the water inlet total phosphorus and the suspended solid concentration of the mixed solution; the output of the output layer is the value of total nitrogen TN of the effluent, and the number of neurons of the output layer is 1;
step 3, driving the RBF neural network by the training task;
and 4, taking the test sample data as the input of the trained task driving self-adaptive RBF neural network, wherein the output of the neural network is the prediction result of the total nitrogen TN concentration of the effluent.
2. The task-driven RBF neural network-based water outlet total nitrogen TN soft measurement method according to claim 1, characterized in that in step 2, at the time t, the output vector of the neural network is represented as y (t), and the calculation method is as follows:
inputting a layer: this layer consists of 6 neurons, each with an output of:
ui(t)=xi(t) (1)
wherein u isi(t) is the output of the ith neuron at time t, i ═ 1,2, …, 6;
② hidden layer: the hidden layer consists of J neurons, the output of each neuron being:
wherein phij(xi) Representing the ith input vector xiCorresponding output of the jth hidden node upon entering the network, cjIs the central vector of the jth hidden node, deltajThe width value of the jth hidden node;
output layer: the output of the output layer is:
wherein y (i) is the ith input vector xiCorresponding output on entry into the network, wjiThe connection weight, phi, of the jth hidden layer neuron to the output neuronjFor the transfer function of the jth hidden layer neuron,
the error of the task-driven self-adaptive RBF neural network is defined as follows:
wherein, ydAnd (t) is the expected output of the task-driven adaptive RBF neural network at the time t, y (t) is the actual output of the task-driven adaptive RBF neural network at the time t, and p is the number of training samples.
3. The task-driven RBF neural network-based water outlet total nitrogen TN soft measurement method according to claim 1, characterized in that the step 3 specifically comprises:
firstly, at the initial moment, the number of neurons in a hidden layer of the network is 0;
second, find the sample with the largest absolute expected output value, add the first neuron,
at the initial moment, the number of the hidden layer neurons is set to be 0, and the data sample corresponding to the maximum absolute residual error of the current network is the sample k with the maximum absolute expected output1:
k1=arg max[||yd1||,||yd2||,...,||ydp||,...||ydP||] (5)
Wherein P represents the number of training samples, ydpRepresenting the desired output of the p-th sample, adding the first RBF neuron sets as follows:
σ1=1 (8)
thirdly, adjusting the network parameters by using an improved second-order algorithm, wherein the method comprises the following steps:
Ψ(t+1)=Ψ(t)-(H(t)+λI(t))-1Ω(t). (9)
wherein H is a Hessian-like matrix, λ is a learning rate parameter whose value is a normal number, I is an identity matrix, and Ω
For the gradient vector, Ψ denotes all parameters,
Ψ(t)=[c1(t),c2(t),...,cl(t),σ1(t),σ2(t),...,σl(t),w1(t),w2(t),...,wl(t)] (10)
converting the hessian-like matrix into a sum of a plurality of hessian-like sub-matrices, and calculating the gradient vector Ω may be converted into a sum of gradient sub-vectors, as shown in the following equation:
wherein the sub-hessian matrix and the sub-gradient vectors can be calculated by:
jacobian vector jp(t) is calculated as follows:
wherein, l is the number of neurons in the hidden layer, N is the dimension of the input vector, and the Jacobian matrix row elements in the above formula can be written as:
fourthly, calculating the instantaneous residual vector of the network, finding out the position of the peak point of the residual, adding a neuron at the position, then adjusting the network parameters by using an improved second-order algorithm,
at time t, for all training set samples, the residual vectors are calculated as follows:
e(t)=[e1(t),e2(t),...,ep(t),...eP(t)]T (19)
the residual value of the p-th sample is calculated as follows:
ep(t)=ydp-yp(t) (20)
wherein, ydpAnd yp(t)The expected output of the p sample and the actual output at the time t are respectively; searching the position of the current residual peak point:
kt=arg max||e(t)|| (21)
the current network pair k may be consideredtThe learning ability of each sample is not enough, an RBF neuron is added to learn the current sample, and the center vector and the output weight of the newly added neuron are set as follows:
when the following relation is satisfied, the influence of the existing neurons on the newly added neurons is small:
cmin=arg min(dist(ct,cj≠t)) (25)
thus, the following relationship can be obtained:
σt≤0.7||ct-cmin|| (26)
at present, during the experiment, sigma is usually takent=0.7||ct-cmin||;
If the number of RBF neurons reaches JmaxOr training error up to E0If yes, storing the current mean square error MSE _0, and entering the step C, otherwise repeating the step C and the step C, wherein the MSE has the following calculation formula:
sixthly, calculating the significance indexes of neurons in all hidden layers, deleting the neurons with the lowest significance, adjusting network parameters by using an improved second-order learning algorithm to obtain the mean square error MSE _1 of the pruned network,
the calculation method for defining the neuron significance index is as follows:
wherein, wjThe connection weight value from the jth neuron to the output neuron;
comparing the error MSE _1 after deleting the neurons with the error MSE _0 before deleting the neurons, and if the current MSE _1 is smaller than or equal to the MSE _0, turning to the step (IV) to continue the pruning process; otherwise, the structure before pruning is recovered, and the construction of the task-driven self-adaptive RBF neural network is completed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110304217.1A CN113077039B (en) | 2021-03-22 | 2021-03-22 | Soft measurement method for total nitrogen TN of effluent based on task-driven RBF neural network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110304217.1A CN113077039B (en) | 2021-03-22 | 2021-03-22 | Soft measurement method for total nitrogen TN of effluent based on task-driven RBF neural network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113077039A true CN113077039A (en) | 2021-07-06 |
CN113077039B CN113077039B (en) | 2024-05-28 |
Family
ID=76613231
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110304217.1A Active CN113077039B (en) | 2021-03-22 | 2021-03-22 | Soft measurement method for total nitrogen TN of effluent based on task-driven RBF neural network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113077039B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113408824A (en) * | 2021-07-15 | 2021-09-17 | 北京工业大学 | RBF neural network-based intelligent prediction method for ammonia concentration in household garbage collection process |
CN113869359A (en) * | 2021-08-18 | 2021-12-31 | 北京工业大学 | Modular neural network-based prediction method for nitrogen oxides in urban solid waste incineration process |
CN114611398A (en) * | 2022-03-17 | 2022-06-10 | 北京工业大学 | Brain-like modular neural network-based soft measurement method for nitrogen oxides in urban solid waste incineration process |
CN115541837A (en) * | 2022-09-16 | 2022-12-30 | 北京工业大学 | Effluent total nitrogen intelligent detection method based on dynamic fuzzy neural network |
WO2023102844A1 (en) * | 2021-12-09 | 2023-06-15 | 北京大学深圳研究生院 | Method and apparatus for determining pruning module, and computer-readable storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104965971A (en) * | 2015-05-24 | 2015-10-07 | 北京工业大学 | Ammonia nitrogen concentration soft-measuring method based on fuzzy neural network |
CN106295800A (en) * | 2016-07-28 | 2017-01-04 | 北京工业大学 | A kind of water outlet total nitrogen TN intelligent detecting method based on recurrence Self organizing RBF Neural Network |
US20180276531A1 (en) * | 2017-03-27 | 2018-09-27 | Beijing University Of Technology | Fault Identifying Method for Sludge Bulking Based on a Recurrent RBF Neural Network |
-
2021
- 2021-03-22 CN CN202110304217.1A patent/CN113077039B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104965971A (en) * | 2015-05-24 | 2015-10-07 | 北京工业大学 | Ammonia nitrogen concentration soft-measuring method based on fuzzy neural network |
CN106295800A (en) * | 2016-07-28 | 2017-01-04 | 北京工业大学 | A kind of water outlet total nitrogen TN intelligent detecting method based on recurrence Self organizing RBF Neural Network |
US20180276531A1 (en) * | 2017-03-27 | 2018-09-27 | Beijing University Of Technology | Fault Identifying Method for Sludge Bulking Based on a Recurrent RBF Neural Network |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113408824A (en) * | 2021-07-15 | 2021-09-17 | 北京工业大学 | RBF neural network-based intelligent prediction method for ammonia concentration in household garbage collection process |
CN113869359A (en) * | 2021-08-18 | 2021-12-31 | 北京工业大学 | Modular neural network-based prediction method for nitrogen oxides in urban solid waste incineration process |
CN113869359B (en) * | 2021-08-18 | 2024-05-28 | 北京工业大学 | Method for predicting nitrogen oxides in urban solid waste incineration process based on modularized neural network |
WO2023102844A1 (en) * | 2021-12-09 | 2023-06-15 | 北京大学深圳研究生院 | Method and apparatus for determining pruning module, and computer-readable storage medium |
CN114611398A (en) * | 2022-03-17 | 2022-06-10 | 北京工业大学 | Brain-like modular neural network-based soft measurement method for nitrogen oxides in urban solid waste incineration process |
CN114611398B (en) * | 2022-03-17 | 2023-05-12 | 北京工业大学 | Soft measurement method for nitrogen oxides in urban solid waste incineration process based on brain-like modularized neural network |
CN115541837A (en) * | 2022-09-16 | 2022-12-30 | 北京工业大学 | Effluent total nitrogen intelligent detection method based on dynamic fuzzy neural network |
Also Published As
Publication number | Publication date |
---|---|
CN113077039B (en) | 2024-05-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113077039A (en) | Task-driven RBF neural network-based water outlet total nitrogen TN soft measurement method | |
US11346831B2 (en) | Intelligent detection method for biochemical oxygen demand based on a self-organizing recurrent RBF neural network | |
CN108898215B (en) | Intelligent sludge bulking identification method based on two-type fuzzy neural network | |
US10570024B2 (en) | Method for effluent total nitrogen-based on a recurrent self-organizing RBF neural network | |
CN111291937A (en) | Method for predicting quality of treated sewage based on combination of support vector classification and GRU neural network | |
CN102854296B (en) | Sewage-disposal soft measurement method on basis of integrated neural network | |
Han et al. | Hierarchical neural network modeling approach to predict sludge volume index of wastewater treatment process | |
US20220365521A1 (en) | Virtual simulation manufacturing platform based on automatic control | |
CN110320335B (en) | Multi-element robust soft measurement method for effluent quality index of sewage treatment | |
CN108088974B (en) | Soft measurement method for effluent nitrate nitrogen in anaerobic simultaneous denitrification methanogenesis process | |
CN114037163A (en) | Sewage treatment effluent quality early warning method based on dynamic weight PSO (particle swarm optimization) optimization BP (Back propagation) neural network | |
CN112765902A (en) | RBF neural network soft measurement modeling method based on TentFWA-GD and application thereof | |
Saleh et al. | Prediction of chemical oxygen demand from the chemical composition of wastewater by artificial neural networks | |
CN115906626A (en) | Underground water organic pollution mutual-feedback inversion tracing method based on artificial intelligence | |
CN113156074B (en) | Effluent total nitrogen prediction method based on fuzzy migration | |
CN112819087B (en) | Method for detecting abnormality of BOD sensor of outlet water based on modularized neural network | |
CN114202060A (en) | Method for predicting methylene blue adsorption performance of biomass activated carbon based on deep neural network | |
CN106769748B (en) | Intelligent detection system for water permeability of membrane bioreactor-MBR (Membrane bioreactor) | |
CN113433086A (en) | Method for predicting water quality COD (chemical oxygen demand) by combining fuzzy neural network with spectrophotometry | |
CN111310974A (en) | Short-term water demand prediction method based on GA-ELM | |
CN117034808A (en) | Natural gas pipe network pressure estimation method based on graph attention network | |
CN109766990B (en) | Submarine pipeline corrosion rate prediction method based on AGA-ELM hybrid algorithm | |
Miao et al. | A hybrid neural network and genetic algorithm model for predicting dissolved oxygen in an aquaculture pond | |
CN115907198A (en) | Long-distance heat supply load intelligent prediction system | |
CN116341705A (en) | Long-period memory network water quality parameter prediction method based on sparse label |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |