CN105045951A - Soft-measurement method for volatile fatty acid in effluent of anaerobic wastewater treatment system - Google Patents

Soft-measurement method for volatile fatty acid in effluent of anaerobic wastewater treatment system Download PDF

Info

Publication number
CN105045951A
CN105045951A CN201510280082.4A CN201510280082A CN105045951A CN 105045951 A CN105045951 A CN 105045951A CN 201510280082 A CN201510280082 A CN 201510280082A CN 105045951 A CN105045951 A CN 105045951A
Authority
CN
China
Prior art keywords
fatty acid
volatile fatty
wastewater treatment
treatment system
water outlet
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.)
Pending
Application number
CN201510280082.4A
Other languages
Chinese (zh)
Inventor
万金泉
刘博�
马邕文
黄明智
王艳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
South China University of Technology SCUT
Original Assignee
South China University of Technology SCUT
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by South China University of Technology SCUT filed Critical South China University of Technology SCUT
Priority to CN201510280082.4A priority Critical patent/CN105045951A/en
Publication of CN105045951A publication Critical patent/CN105045951A/en
Pending legal-status Critical Current

Links

Landscapes

  • Purification Treatments By Anaerobic Or Anaerobic And Aerobic Bacteria Or Animals (AREA)

Abstract

The present invention relates to a soft-measurement method for volatile fatty acid in effluent of an anaerobic wastewater treatment system. The method uses principal component analysis to realize dimensionality reduction of high-dimensional auxiliary variables and uses a least squares support vector machine which is particularly suitable for solving problems like small samples, nonlinearity and local minimum points and is high in training speed. The combination of the two realizes the soft-measurement of volatile fatty acid in the effluent of the anaerobic wastewater treatment system, and is of great significance to online monitoring and subsequent process optimization controlling of the anaerobic wastewater treatment system. Experiments have proved that, the model of the soft-measurement method is correct in theory and the application of an LS-SVM intelligent algorithm enables real-time prediction and estimation of the important control parameter, the volatile fatty acid, of the effluent of the anaerobic wastewater treatment system. The method can solve the problems of expensive measuring apparatuses, difficult maintenance and measuring lags, and is of great importance to the control and optimization of the anaerobic wastewater treatment system.

Description

A kind of flexible measurement method of anaerobic wastewater treatment system water outlet volatile fatty acid
Technical field
The present invention relates to technical field of waste water processing, relate in particular to a kind of flexible measurement method of anaerobic wastewater treatment system water outlet volatile fatty acid.
Background technology
Energy crisis and environmental pollution are two challenging greatly of being faced with of the current mankind; complicated organic material decomposition in waste water can be become biogas equal energy source material by Anaerobic Biotechnology, and therefore Anaerobic Biotechnology provides a practicable approach for solving energy and environment problem.Anaerobic fermentation methane phase technology, as the representative of Anaerobic Biotechnology, all has broad application prospects in high concentrated organic wastewater and organic solid waste.Anaerobic fermentation methane phase is a complicated biochemical process, particularly methanogen is harsher to requirement for environmental conditions, only be difficult to by microorganism spontaneous fermentation efficient, quick, the stable operation maintaining anaerobic fermentation process, normally carry out for making sweat and obtain higher biogas yield just to carry out monitor and forecast to anaerobic fermentation process.Although anaerobic fermentation methane phase technology is widely applied in China's Industrial Wastewater Treatment, but still there is more problem on the on-line monitoring and control of anaerobic fermentation process.The in-situ measurement equipment of the existing maturations such as Traditional materialized parameter p H value, temperature and oxidation-reduction potential and physico-chemical parameter such as volatile fatty acid (VFA, VolatileFattyAcids) and physiological parameter such as the biomass gas generation process to material impact are but difficult to realize on-line measurement.
VFA is the intermediate product of organic matter degradation, is also methanogenic direct substrate.In industrial methane-producing reactor runs, the generation often occurring to cause because of the accumulation of non-Timeliness coverage VFA " is become sour ".Become sour and be often referred to because methanogen activity sharply reduces, but acidifying bacterium still can continue decomposing organic matter and cause the accumulation of VFA, pH can be made to drop to 3-5, and now pH value and molecular state organic acid all can cause suppression to acidifying bacterium, and cause disposal system to lose processing power.The generation of " becoming sour " is catastrophic often to anaerobic reactor, and reactor, once there is " becoming sour ", is difficult to recover at short notice or be difficult at all to recover methanogen activity in reactor.Easily accumulate just because of VFAs in anaerobic methane production reactor and suppression is caused to methanobacteria, the detection method of the concentration of VFA being subject to the attention of height always.The method of current VFA concentration determination mainly contains the way of distillation, titrimetry, chromatography, colourimetry etc., and in order to realize the on-line monitoring of VFA, scholar has carried out large quantity research.The infrared spectrum energy of the people such as ZhangYS research carry out measuring for acetate propionate etc. but its accuracy and sensitivity not good enough.The gas chromatography of band self-actuated sampler of people's designs such as DiamantisV and the connection of reactor achieve the online of VFA and accurately measure, but gas chromatography costliness is difficult to realize industrial applications.The on-line determination VFA of Zhao Quanbao design and the automatic Titration system of basicity just achieve the robotization of titration process, and not by computation model and Automated library system, 6 constructed point Titration titration are accurate, but complex operation calculation of complex.Above VFAs offline inspection technology needs manually to carry out chemical examination operation, effluent quality quality fluctuation can be caused large, there is energy consumption large, the problems such as expense is high, and on-line monitoring technique many places are in laboratory stage, rarely have and be applied in actual industrial, and there is the delayed length of Measuring Time in most of detecting sensor, instrument, problem expensive and difficult in maintenance, is therefore necessary the on-line monitoring technique studying VFA further.
The measurement problem of general solution industrial process has two approach: one is follow traditional detection technique thinking, and the direct-on-line of implementation procedure parameter is measured as mentioned above in the form of hardware; Another kind is exactly the thinking adopting indirect inspection, utilizes other metrical informations easily obtained, by calculating the estimation realized measured variable.The soft-measuring technique emerged in process control and detection field is in recent years exactly the concentrated reflection of this thought.Hard measurement theoretical source is that the deduction that 20 century 70 Brosilow propose controls.So-called hard measurement is exactly according to the process variable (i.e. auxiliary variable) can surveyed, easily survey and the mathematical relation being difficult to the variable to be measured (i.e. leading variable data) directly obtained, according to certain optiaml ciriterion, adopt various computing method, with software approach realization to the measurement of variable to be measured or estimation, therefore soft-measuring technique is also called soft instrument technology, and oneself through being widely used in process control and optimization at present.
In general soft-measuring technique mainly comprises: auxiliary variable is chosen, data prediction, soft sensor modeling and modelling verification four parts.The selection of auxiliary variable does not generally have the guidance method of versatility, often passes through theoretical and empirical analysis according to concrete object, chooses the variable relevant to leading variable data as auxiliary variable.Auxiliary variable is chosen and follow-up modeling too much can be made comparatively complicated, reduces auxiliary variable and lost part information may reduce model accuracy.Principal component analysis (PCA) (PrincipalComponentAnalysis, PCA) be for reducing one of the most direct means of higher-dimension numerical example in statistics, simultaneously also maximum to the greatest extent all information that may keep original sample, thus be widely used, therefore can realize higher-dimension auxiliary variable variable dimensionality reduction, retain raw information to greatest extent simultaneously.Data prediction is the steps necessary of soft sensor modeling, often comprises the methods such as missing values process, abnormality value removing, data smoothing and standardization, selects wherein one or more methods to carry out pre-service to the raw data collected as required.The main body of soft-measuring technique and core set up soft-sensing model, and the conventional method of Modling model mainly contains: modelling by mechanism method, regression analysis, neural network and support vector machine (SVM) method etc.Wherein neural network and SVM these two kinds belong to black-box modeling method together, do not require the determination internal mechanism of object, are therefore relatively applicable to complicated sewage disposal process, apply also extensive.SVM is the more a kind of new technology that receives publicity in machine learning field in recent years, is Corpus--based Method principle, and compare the discovery learning mechanism of neural network, the experience composition of SVM is very few, has more strict mathematic(al) argument.Meanwhile, SVM is less for the dependence of provided sample data, and generalization ability is comparatively strong, and locally optimal solution must be globally optimal solution, avoids generation dimension disaster, is specially adapted to solve the problems such as small sample, non-linear, local minimum point.On SVM basis, SuykensJ.A.K proposes least square method support vector machine (LS-SVM), is mainly incorporated in SVM by least square line sexual system, with the secondary quadratic term e of training error 2instead of the slack variable in optimization aim, and instead of inequality constrain by equality constraint, problem arises is for solving a system of linear equations the most at last, greatly reduces working time, improves the speed of training.
Have not yet to see document and the patent report of the flexible measurement method of the anaerobic wastewater treatment system water outlet volatile fatty acid based on principal component analysis (PCA)-least square method supporting vector machine.External M.Dixon is for waste water fermentation processing procedure, neural network is used to carry out data mining to VFA, the domestic Yao Chong tinkling of pieces of jade proposes a kind of soft-measuring modeling method based on fuzzy neural network on this basis and predicts VFA value, the two confirms the feasibility of VFA hard measurement, but on auxiliary variable variables choice, do not carry out systematic research with modeling method, there is some problems.
Summary of the invention
The object of this invention is to provide a kind of flexible measurement method of anaerobic wastewater treatment system water outlet volatile fatty acid.Principal component analysis (PCA) realizes the dimension-reduction treatment of higher-dimension auxiliary variable variable, least square method supporting vector machine solves the problems such as small sample, non-linear, local minimum point to being specially adapted to, and training speed is fast, the two combines the hard measurement realizing anaerobic wastewater treatment system volatile fatty acid, to the on-line monitoring of anaerobic wastewater treatment system and subsequent technique optimal control significant, the index that other are difficult to on-line monitoring to anaerobic wastewater treatment system simultaneously has directive significance.
To achieve these goals, technical scheme of the present invention is as follows.
Based on a flexible measurement method for the anaerobic wastewater treatment system water outlet volatile fatty acid of principal component analysis (PCA)-least square method supporting vector machine, comprise the following steps:
(1) build anaerobic wastewater treatment system, obtain auxiliary variable data sample A and the leading variable data sample B of water outlet volatile fatty acid;
(2) pre-service is carried out to the auxiliary variable data sample A collected and leading variable data sample B;
(3) principal component analysis (PCA) is carried out to pretreated auxiliary variable data sample A, set up the new auxiliary variable data sample based on principal component analysis (PCA) and new data sample is divided into training sample and test sample book;
(4) training sample that divides of corresponding step (3), sets up the water outlet volatile fatty acid soft-sensing model based on least square method supporting vector machine, and constantly training is until meet specification error;
(5) corresponding to the test sample book that step (3) divides, applying step (4) is set up and the water outlet volatile fatty acid soft-sensing model based on least square method supporting vector machine after training is tested, the validity of checking soft-sensing model;
(6) will to train and the water outlet volatile fatty acid soft-sensing model based on least square method supporting vector machine after testing embeds in industrial computer, utilize the configuration software MCGS in operating mode machine to build human-computer interaction interface;
(7) OPC technology is adopted to realize based on the exchanges data between the water outlet volatile fatty acid soft-sensing model of least square method supporting vector machine and the configuration software MCGS of industrial computer, the data that MCGS collects are delivered to the water outlet volatile fatty acid soft-sensing model based on least square method supporting vector machine, calculate the predicted value of water outlet water outlet Vfa Concentration, then this predicted value is back to the display of industrial computer human-computer interaction interface;
(8) constantly repeat step (6), thus realize the on-line real time monitoring of anaerobic wastewater treatment system water outlet volatile fatty acid.
Described step (1) anaerobic wastewater treatment system comprises anaerobic reactor, the monitoring relevant to anaerobic effluent volatile fatty acid and measuring instrument, industrial computer, A/D and D/A module; Described monitoring and measuring instrument are for detecting anaerobic reaction actuator temperature T, oxidation-reduction potential ORP, flow of inlet water Qin, reactor pH value, gas production rate Q gas, methane number percent CH 4%, carbon dioxide number percent CO 2%, hydrogen percentages H 2%, can obtain hydraulic detention time HRT by described flow of inlet water Qin.
Described step (1) auxiliary variable data sample A={A 1, A 2..., A n, wherein A j=[a j1, a j2..., a jm] t(j≤n), n is auxiliary variable data dimension, and in the present invention, auxiliary variable data are by temperature T, oxidation-reduction potential ORP, hydraulic detention time HRT, reactor pH value, gas production rate Q gas, methane number percent CH 4%, carbon dioxide number percent CO 2%, hydrogen percentages H 2% forms, therefore n=8; Leading variable data sample B=[b 1, b 2... b m] t, the Vfa Concentration corresponding by auxiliary variable sample forms, and m is number of samples, m>n.
First described step (2) preprocess method uses Pauta criterion to auxiliary variable sample A and the leading variable data sample B together paired rejecting abnormalities value of pre-service, then adopt formula (1) to be normalized respectively A and B, obtain auxiliary variable normalization matrix X m × nwith leading variable data normalization matrix Y m × 1:
x i j = a i j - a min , j a max , j - a min , j , ( i = 1 , 2 , ... , m , j = 1 , 2 , ... , n ) (1) x in formula ijfor variate-value after standardization, a ijfor variate-value before standardization, a min, jfor the minimum value of a jth variable, a min, jfor the maximal value of a jth variable.
Described step (3) is to pretreated normalization matrix X m × ncarry out principal component analysis (PCA) to build new auxiliary variable data sample and refer to first to normalization sample matrix X m × ncarry out zero-mean standardization and obtain normalized matrix Z m × n, the then covariance matrix R of Criterion matrix n × n, obtain n eigenwert of correlation matrix and by descending sort from big to small, calculate the pivot contribution rate ρ that jth is individual j, described step pivot contribution rate ρ jcomputing formula be:
ρ j = λ j Σ j = 1 n λ j
λ in formula jeigenvalue contribution rate of accumulative total ρ for correlation matrix R is greater than k the pivot of 85% as new auxiliary variable data sample, and the computing formula of described step pivot contribution rate ρ is:
ρ = Σ j = 1 k λ j Σ j = 1 n λ j
λ in formula jfor the eigenwert of correlation matrix R, j, k≤n.As follows particularly:
(3.1) first X is calculated by formula (2) m × naverage and variance, then utilize formula (3) calculate to X m × ncarry out zero-mean standardization and obtain normalized matrix Z m × n:
X j ‾ = 1 m Σ i = 1 m x i j , S j = 1 m - 1 Σ i = 1 m ( x i j - X j ‾ ) 2 , j = 1 , 2 , ... n , n = 8 - - - ( 2 )
Z i j = x i j - X j S j , i = 1 , 2 , ... , m , j = 1 , 2 , ... , n , m > n - - - ( 3 )
(3.2) formula (4) and (5) are utilized to ask normalized matrix Z m × ncovariance matrix R n × n:
R n × n = z T z m - 1 = ( r i j ) n × n - - - ( 4 )
r i j = 1 m - 1 Σ k = 1 m Z k i × Z k j , i , j = 1 , 2 , ... , n - - - ( 5 )
(3.3) n the eigenvalue λ of R is solved according to formula (6) j(j=1,2 ..., n), and by order arrangement from big to small, λ 1>=λ 2>=...>=λ n>=0, the unit character vector b of individual features value is separated according to formula (7) j(j=1,2 ..., n), b j=(b 1j, b 2j..., b nj):
|R-λ jE|=0(6)
Rb=λ jb(7)
(3.4) calculate accumulative variance contribution ratio by formula (8), determine major component number k, front k major component of accumulative variance contribution ratio >=85% contains most information, and other compositions below can be given up:
Σ j = 1 k λ j Σ j = 1 n λ j ≥ 85 % - - - ( 8 )
(3.5) formula (9) is utilized to be projected in k dimension by normalized matrix Z, the new data sample matrix U of composition k pivot, U 1be called first principal component, U 2be called Second principal component... U kbe called kth major component, such original sample achieves will be tieed up to k from n dimension:
U i,j=Z i Tb j,i=1,2,…m,j=1,2,…k(9)
(3.6) the new sample after pivot constituent analysis is divided into training sample and test sample book, in order to follow-up use
Training sample is used to set up and train the soft-sensing model based on least square method supporting vector machine in described step (4), support vector machine (SupportVectorMachine, SVM) be a kind of new intelligent algorithm developed on the VC dimension theory and Structural risk minization principle of Statistical Learning Theory, first put forward by people such as Vapnik, its basic thought is exactly the concept introducing kernel function, inseparable for lower dimensional space problem is mapped to higher dimensional space linear separability by kernel function, do at higher dimensional space and classify or return process, SVM it solution small sample, many distinctive advantages are had in Nonlinear Modeling and high dimensional pattern identification.Least square method supporting vector machine (LeastSquareSupportVectorMachine, LSSVM) proposed by SuykensJAK in calendar year 2001, it is the expansion of standard SVM, adopt least square line sexual system as loss function, transfer inequality constrain condition to equality constraint, greatly the complexity of shortcut calculation.
For given sample set D{ (x i, y i), i=1,2 ..., l}, wherein x i∈ R nfor n ties up auxiliary variable vector, y i∈ R is target-dominant variable data, and LS-SVM can be described as following optimization problem:
min ω , b , ξ J ( ω , ξ ) = 1 2 | | ω | | 2 + 1 2 γΣ i = 1 l ξ i 2 , γ > 0 - - - ( 10 )
Wherein ξ ibe the training error of i-th sample point, for empiric risk, in order to weigh the complicacy of machine learning, γ >0 be penalty factor also known as regularization parameter, in order to balancing machine in training study complicacy and empiric risk, formula (10) meets constraint condition:
y i=ω TΦ(x i)+b+ξ i,i=1,2,…,l(11)
Introduce Lagrange function:
L ( ω , b , ξ , α ) = J ( ω , ξ ) - Σ i = 1 l α i [ ω T Φ ( x i ) + b + ξ i - y i ] - - - ( 12 )
α in formula ibe Lagrange multiplier, utilize Karush-Kuhn-Tucker ' s (KKT) optimal condition to be optimized above formula, ask local derviation to obtain to ω, b, ξ, α:
∂ L ∂ ω = ω - Σ i = 1 l α i Φ ( x i ) = 0 ∂ L ∂ b = - Σ i = 1 l α i = 0 ∂ L ∂ ξ i , = γ Σ i = 1 l ξ i - Σ i = 1 l α i = 0 ∂ L ∂ α i = ω T Φ ( x i ) + b + ξ i - y i = 0 - - - ( 13 )
Eliminate ω, ξ, the problem of optimization just can be converted into linear equation below:
K (x in formula i, x j)=Φ (x i) tΦ (x j), i, j=1,2 ..., l, definition Ω ij=K (x i, x j) be kernel function, the linear kernel function of conventional kernel function, Polynomial kernel function, Radial basis kernel function (RBF) and Sigmoid kernel function.The present invention sets up soft-sensing model to adopt Radial basis kernel function RBF, and this kernel function form is:
K ( x i , x j ) = exp ( - || x i , x j || 2 2 σ 2 ) - - - ( 15 )
In formula, σ is core width, makes Ω={ Ω ij| i, j=1,2 ..., l}, I=[1,1 ..., 1] t, α=[α 1, α 2..., α l] t, y=[y 1, y 2, y l] t, then above formula can abbreviation be:
0 I T I Ω + I γ b α = 0 y - - - ( 16 )
Utilize the above-mentioned system of linear equations of least square solution can try to achieve the estimation of α and b, then estimate that the soft-sensing model of gained is:
y ( x ) = Σ i = 1 l α i K ( x , x i ) + b - - - ( 17 )
In formula, x is auxiliary variable sample data, α ifor Lagrange multiplier, b is side-play amount, K (x, x i) be kernel function.
In described step (4) when utilizing LS-SVM modeling, suitable kernel function, nuclear parameter σ 2decisive role is played with the performance of regularization parameter γ to model.Because anaerobic digestion process is complicated nonlinear system, we choose radial basis function RBF as kernel function and adopt grid data service definite kernel parameter σ 2with regularization parameter γ optimized scope, then finally select nuclear parameter σ with cross-validation method 2with regularization parameter γ optimal value.
The test data using in described step (5) step (3) to divide, to set up and the LS-SVM soft-sensing model trained is tested, assesses its estimated performance.Estimated performance index comprises following:
(1) absolute error (AbsoluteError, AE)
AE=y p,i-y i,i=1,2,…m(18)
Y in formula p,ithe predicted value of least square method supporting vector machine, y irepresent actual value, AE represents that obtained result deducts measured true value, and it has size and symbol, represents the degree of measurement result deviation true value.
(2) relative error (RelativeError, RE)
R E = y p , i - y i y i × 100 % , i = 1 , 2 , ... m - - - ( 19 )
RE represents the ratio of relative error magnitudes and the actual value of tested value, and relative error more can reflect the degree of reliability of prediction.
(3) mean absolute percentage error (MeanAbsolutePercentError, MAPE)
M A P E = 1 m Σ i = 1 m | y p , i - y i y i | × 100 % , i = 1 , 2 , ... m - - - ( 20 )
MAPE is the mean value of the absolute value summation of all relative errors, can better reflect the actual conditions of predicted value.
(4) root-mean-square error (RootMeanSquareError, RMSE)
R M S E = 1 m Σ i = 1 m ( y p , i - y i ) 2 , i = 1 , 2 , ... m - - - ( 21 )
RMSE is mainly in order to illustrate the dispersion degree of sample.The value of RMSE is less, illustrate that forecast model describes experimental data and has better levels of precision, otherwise model prediction accuracy is poor.
(5) related coefficient (correlationcoefficient, R)
R = Σ i = 1 m ( y i - y ‾ ) ( y p - y p ‾ ) Σ i = 1 m ( y i - y ‾ ) 2 Σ i = 1 m ( y p - y p ‾ ) 2 , i = 1 , 2 , ... m - - - ( 22 )
In formula for actual value average, for predicted value average, m is number of samples, and R reflects the power of predicted value and actual value linear relationship, R more close to 1 predicted value and actual value more close.
Soft-sensing model set up and after testing the least square method supporting vector machine model insertion trained in industrial computer configuration software MCGS, employing OPC technology realizes the exchanges data between volatile fatty acid least square method supporting vector machine soft-sensing model and configuration software, the data gathered by configuration software MCGS are delivered to water outlet VFA least square method supporting vector machine soft-sensing model, calculate the predicted value of water outlet VFA, again this value is back to industrial computer human-computer interaction interface, continuous repetition above-mentioned steps, thus realize the on-line real time monitoring of anaerobic wastewater treatment system water outlet VFA.
The described least square method supporting vector machine soft-sensing model of described step (4) is:
y ( x ) = Σ i = 1 l α i K ( x , x i ) + b
In formula, x is auxiliary variable sample data, α ifor Lagrange multiplier, b is side-play amount, K (x, x i) be kernel function.
The test sample book that described step (5) corresponding step (3) divides, the least square method supporting vector machine model performance index that testing procedure (4) is set up comprises error (ERR), relative error (RE), mean absolute percentage error (MAPE), root-mean-square error (RMSE) and coefficient R.
In sum, the anaerobic wastewater treatment system water outlet volatile fatty acid soft-sensing model of the Based PC A-LSSVM set up is theoretical correct, meet better to anaerobic effluent volatile fatty acid predicted value and True Data, error is relative also less, meet practical application completely, the present invention has the following advantages and beneficial effect relative to prior art tool:
(1) principal component analysis (PCA) combines with least square method supporting vector machine and sets up PCA-LSSVM soft-sensing model by the present invention, PCA technology can be avoided owing to selecting auxiliary variable variable by experience and miss important information, can reduce auxiliary variable dimension simultaneously and reduce model complexity.
(2) problem of measuring equipment length time lag can be solved to the hard measurement of water outlet volatile fatty acid, real realization is to the comprehensively real-time monitoring of wastewater effluent water quality, prevent pop-up threat, may be used for the optimal control that FEEDBACK CONTROL realizes anaerobic wastewater treatment system simultaneously.
(3) the present invention may be used for replacing the expensive measuring equipment of part, maintenance cost saving, reduces cost for wastewater treatment, easily applies in waste water treatment engineering, have good Social benefit and economic benefit.
Accompanying drawing explanation
Fig. 1 is Based PC A-LSSVM volatile fatty acid soft-sensing model design flow diagram.
Fig. 2 is the Pareto figure that principal component analysis (PCA) major component adds up variance contribution ratio.
The load diagram (biplot) of Fig. 3 principal component analysis (PCA).
The comparison diagram of Fig. 4 VFA training data and test data actual value and predicted value
Fig. 5 soft-sensing model predicated error curve
Fig. 6 soft-sensing model relative error curve.
Fig. 7 soft-sensing model checking related coefficient figure.
Exchanges data flow process between Fig. 8 MCGS and MATLAB
Embodiment
Below in conjunction with specific embodiment and accompanying drawing thereof, the present invention is further elaborated.Embodiment is only for explaining instead of limitation of the present invention the present invention.If have the process of special detailed description or symbol (as suspension points) to be all that those skilled in the art can refer to prior art understanding or realize it is noted that following.
Anaerobic wastewater treatment system based on principal component analysis (PCA)-least square method supporting vector machine goes out a flexible measurement method for volatile fat sour water, and whole hard measurement flow process is shown in Fig. 1.The present embodiment chooses the IC process system built in laboratory as anaerobic wastewater treatment system, uses MCGS as configuration software, uses MATLAB as soft sensor modeling instrument, is comprised the following steps by simulating, verifying performance of the present invention and feasibility:
(1) build anaerobic wastewater treatment system, adopt IC anaerobic reactor as anaerobic treatment process, setting hydraulic detention time HRT is 24,15.36,12.29 and 9.83 hours, gathers T, pH, ORP, Q under each hydraulic detention time gas, CH 4%, CO 2%, H 2% and corresponding volatile fatty acid VFA.
(2) carry out pre-service to the data collected, first use Pauta criterion to reject outlier, finally obtain 90 groups of data and be then normalized between data compression to [0,1] sample data, normalization is undertaken by following formula.
x i j = a i j - a m i n , j a max , j - a min , j , ( i = 1 , 2 , ... , m , j = 1 , 2 , ... , n )
(3) to sample data principal component analysis (PCA) after normalization, specific formula for calculation is shown in that instructions no longer repeats here.First to sample data standardization, normalized matrix Z is asked m × ncovariance matrix R n × n, solve n the eigenvalue λ of R j(j=1,2 ..., n), and by order arrangement from big to small, λ 1>=λ 2>=...>=λ n>=0, separate the unit character vector b of individual features value j(j=1,2 ..., n), b j=(b 1j, b 2j..., b nj), calculate each major component variance contribution ratio ρ jas shown in table 1, Figure 2 shows that each major component adds up the Pareto figure of variance contribution ratio, Fig. 3 is the load diagram (biplot) of each variable in major component 1 and major component 2, variable positive correlation spatially nearer is in the figure stronger, from initial point more away from variable by major component 1 and major component 2 explain more complete.The accumulative variance contribution ratio of front 4 major components is 85.33%, and met the requirement of accumulative variance contribution ratio >=85%, but front 5 major components add up variance contribution ratio reaches 91.89%, therefore determine major component number 5, other compositions are below given up.Finally extract the modeling training data of the front 70 groups of data after principal component analysis (PCA) as least square method supporting vector machine, rear 20 groups of data make test data.
The variance contribution ratio of each major component of table 1
(4) utilize training data in MATLAB, set up least square method supporting vector machine soft-sensing model, Selection of kernel function radial basis function RBF, adopt grid data service definite kernel parameter σ 2with regularization parameter γ optimized scope, then finally select the parameter value of leading variable data optimum with cross-validation method, last arrives σ 2, γ optimal value is 129.6434 and 0.03470267.
(5) utilize test data test model performance, Fig. 4 is the comparison diagram of training data and test data VFA actual value and predicted value.The degree that absolute error AE reflects the deviation true value that predicts the outcome is shown in Fig. 5, relative error RE relative error more can reflect that the degree of reliability of prediction is shown in Fig. 6, mean absolute percentage error MAPE is the mean value of the absolute value summation of all relative errors, the actual conditions of predicted value can better be reflected, train MAPE to be 0.647% in this example, prediction MAPE is 0.619%.Root-mean-square error RMSE is mainly in order to illustrate the dispersion degree of sample, and training and predicted root mean square error are respectively 0.0049 and 0.0040.Coefficient R reflects the power of predicted value and actual value linear relationship, and this routine related coefficient reaches 0.99995 and sees Fig. 7.As can be seen from above performance index, the soft-sensing model based on the anaerobic wastewater treatment system water outlet volatile fatty acid of principal component analysis (PCA)-least square method supporting vector machine predicts the value of anaerobic wastewater treatment system volatile fatty acid comparatively accurately.
(6) the exchanges data flow process between MCGS and MATLAB is shown in Fig. 8.Installation MCGS configuration software and senior kit thereof are to correct path.Startup MCGS then opc server function starts automatically.According to the good human-computer interaction interface of engine request configuration.In the engineering that configuration is good, define HRT, T, pH, ORP, Q gas, CH 4%, CO 2%, H 2% and water outlet volatility hard measurement rreturn value VFA_SOFT9 parameter, carry out read-write operation for MCGS.Start MATLAB, auxiliary variable order opcregister (' install ') in command window, be used for installing provided by OPCFoundation a set ofly can browse other computing machines on network and the core component that can communicate.Auxiliary variable order again: a=opcda (' localhost ', ' MCGS.OPC.Server '); Connect (da), then MCGS and MATLAB connects.After the PCA-LSSVM soft-sensing model trained is embedded industrial computer, during system cloud gray model, computing machine is the waterpower HRT collected, T, pH, ORP, Qgas, CH 4%, CO 2%, H 2the data of % pass to software, run PCA-LSSVM soft-sensing model and carry out prediction water outlet VFA value, hard measurement value is turned back to human-computer interaction interface.
Above-described embodiment is the present invention's preferably embodiment; but embodiments of the present invention are not restricted to the described embodiments; change, the modification done under other any does not deviate from Spirit Essence of the present invention and principle, substitute, combine, simplify; all should be the substitute mode of equivalence, be included in protection scope of the present invention.

Claims (9)

1. a flexible measurement method for anaerobic wastewater treatment system water outlet volatile fatty acid, is characterized in that comprising the following steps:
(1) build anaerobic wastewater treatment system, obtain auxiliary variable data sample A and the leading variable data sample B of water outlet volatile fatty acid;
(2) pre-service is carried out to the auxiliary variable data sample A collected and leading variable data sample B;
(3) principal component analysis (PCA) is carried out to pretreated auxiliary variable data sample A, set up the new auxiliary variable data sample based on principal component analysis (PCA) and new data sample is divided into training sample and test sample book;
(4) training sample that divides of corresponding step (3), sets up the water outlet volatile fatty acid soft-sensing model based on least square method supporting vector machine, and constantly training is until meet specification error;
(5) corresponding to the test sample book that step (3) divides, applying step (4) is set up and the water outlet volatile fatty acid soft-sensing model based on least square method supporting vector machine after training is tested, the validity of checking soft-sensing model;
(6) will to train and the water outlet volatile fatty acid soft-sensing model based on least square method supporting vector machine after testing embeds in industrial computer, utilize the configuration software MCGS in operating mode machine to build human-computer interaction interface;
(7) OPC technology is adopted to realize based on the exchanges data between the water outlet volatile fatty acid soft-sensing model of least square method supporting vector machine and the configuration software MCGS of industrial computer, the data that MCGS collects are delivered to the water outlet volatile fatty acid soft-sensing model based on least square method supporting vector machine, calculate the predicted value of water outlet water outlet Vfa Concentration, then this predicted value is back to the display of industrial computer human-computer interaction interface;
(8) constantly repeat step (6), thus realize the on-line real time monitoring of anaerobic wastewater treatment system water outlet volatile fatty acid.
2. the flexible measurement method of a kind of anaerobic wastewater treatment system water outlet volatile fatty acid according to claim 1, it is characterized in that: described step (1) anaerobic wastewater treatment system comprises anaerobic reactor, the monitoring relevant to anaerobic effluent volatile fatty acid and measuring instrument, industrial computer, A/D and D/A module; Described monitoring and measuring instrument are for detecting anaerobic reaction actuator temperature T, oxidation-reduction potential ORP, flow of inlet water Qin, reactor pH value, gas production rate Q gas, methane number percent CH 4%, carbon dioxide number percent CO 2%, hydrogen percentages H 2%, can obtain hydraulic detention time HRT by described flow of inlet water Qin.
3. the flexible measurement method of a kind of anaerobic wastewater treatment system water outlet volatile fatty acid according to claim 1, is characterized in that: described step (1) auxiliary variable data sample A is by temperature T, oxidation-reduction potential ORP, hydraulic detention time HRT, reactor pH value, gas production rate Q gas, methane number percent CH 4%, carbon dioxide number percent CO 2%, hydrogen percentages H 2% forms, and leading variable data sample B is made up of the Vfa Concentration of correspondence.
4. the flexible measurement method of a kind of anaerobic wastewater treatment system water outlet volatile fatty acid according to claim 1, it is characterized in that: described step (2) pre-service comprises according to Pauta criterion rejecting abnormalities value, is then normalized sample.
5. the flexible measurement method of a kind of anaerobic wastewater treatment system water outlet volatile fatty acid according to claim 3, it is characterized in that: described step (3) is carried out principal component analysis (PCA) to the normalization matrix obtained after pre-service and comprised the data sample after to normalization and carry out zero-mean standardization and obtain normalized matrix Z, the correlation matrix R of Criterion matrix Z, obtain n the eigenwert of correlation matrix R and by descending sort from big to small, calculate the pivot contribution rate ρ of jth pivot jwith the accumulative pivot contribution rate ρ of a front k pivot, choose accumulative pivot contribution rate and be greater than k the pivot of 85% as new data sample, and be divided into training sample and test sample book, wherein j, k≤n.
6. the flexible measurement method of a kind of anaerobic wastewater treatment system water outlet volatile fatty acid according to claim 4, is characterized in that: described pivot contribution rate ρ jcomputing formula be:
λ in formula jfor the eigenwert of correlation matrix R.
7. the flexible measurement method of a kind of anaerobic wastewater treatment system water outlet volatile fatty acid according to claim 4, is characterized in that: the computing formula of described step pivot contribution rate ρ is:
λ in formula jfor the eigenwert of correlation matrix R, j, k≤n.
8. the flexible measurement method of a kind of anaerobic wastewater treatment system water outlet volatile fatty acid according to claim 1, is characterized in that: the described least square method supporting vector machine soft-sensing model of described step (4) is:
In formula, x is auxiliary variable sample data, α ifor Lagrange multiplier, b is side-play amount, K (x, x i) be kernel function.
9. the flexible measurement method of a kind of anaerobic wastewater treatment system water outlet volatile fatty acid according to claim 1, it is characterized in that: the test sample book that described step (5) corresponding step (3) divides, the least square method supporting vector machine model performance index that testing procedure (4) is set up comprises error (ERR), relative error (RE), mean absolute percentage error (MAPE), root-mean-square error (RMSE) and coefficient R.
CN201510280082.4A 2015-05-27 2015-05-27 Soft-measurement method for volatile fatty acid in effluent of anaerobic wastewater treatment system Pending CN105045951A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510280082.4A CN105045951A (en) 2015-05-27 2015-05-27 Soft-measurement method for volatile fatty acid in effluent of anaerobic wastewater treatment system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510280082.4A CN105045951A (en) 2015-05-27 2015-05-27 Soft-measurement method for volatile fatty acid in effluent of anaerobic wastewater treatment system

Publications (1)

Publication Number Publication Date
CN105045951A true CN105045951A (en) 2015-11-11

Family

ID=54452494

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510280082.4A Pending CN105045951A (en) 2015-05-27 2015-05-27 Soft-measurement method for volatile fatty acid in effluent of anaerobic wastewater treatment system

Country Status (1)

Country Link
CN (1) CN105045951A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106709169A (en) * 2016-12-12 2017-05-24 南京富岛信息工程有限公司 Property estimation method for crude oil processing process
CN107132325A (en) * 2017-04-14 2017-09-05 华南理工大学 A kind of flexible measurement method of the Anaerobic Waste Treatment System water outlet volatile fatty acid based on particle cluster algorithm and SVMs
CN108241789A (en) * 2018-01-12 2018-07-03 内蒙古电力勘测设计院有限责任公司 The carbon containing measuring method of boiler slag and equipment based on adaptive weighted AWLS-SVR
CN108549740A (en) * 2018-03-06 2018-09-18 华南理工大学 A kind of anaerobic system water outlet ammonia nitrogen flexible measurement method based on integrated intelligent algorithm
CN108595892A (en) * 2018-05-11 2018-09-28 南京林业大学 Soft-measuring modeling method based on time difference model
CN109273058A (en) * 2018-09-20 2019-01-25 中轻国环(北京)环保科技有限公司 A kind of composite algorism for the exceeded early warning of anaerobic processes volatile fatty acid
CN114093434A (en) * 2021-11-30 2022-02-25 华能国际电力股份有限公司 Soft measurement method for components and concentrations of organic waste hydrolysis acidification volatile fatty acid
CN114354867A (en) * 2021-12-27 2022-04-15 江苏海峡环保科技发展有限公司 Method for predicting volatile fatty acid in sewage
CN114460255A (en) * 2022-02-08 2022-05-10 北京工商大学 LSTM-based wastewater volatile fatty acid measuring method and system
CN115563862A (en) * 2022-09-27 2023-01-03 盐城工学院 Pipeline hydrogen sulfide prediction method based on optimized combined prediction model

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070215556A1 (en) * 2006-03-20 2007-09-20 Sensis Corporation System for detection and prediction of water nitrification
CN102262147A (en) * 2011-07-15 2011-11-30 华南理工大学 Soft measurement method and system for effluent chemical oxygen demand (COD) of waste water treatment system
CN103744293A (en) * 2014-01-27 2014-04-23 浙江永泰纸业集团股份有限公司 Waste water treatment monitoring method and system based on fuzzy neural network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070215556A1 (en) * 2006-03-20 2007-09-20 Sensis Corporation System for detection and prediction of water nitrification
CN102262147A (en) * 2011-07-15 2011-11-30 华南理工大学 Soft measurement method and system for effluent chemical oxygen demand (COD) of waste water treatment system
CN103744293A (en) * 2014-01-27 2014-04-23 浙江永泰纸业集团股份有限公司 Waste water treatment monitoring method and system based on fuzzy neural network

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
刘博等: "基于PCA-LSSVM的厌氧废水处理***出水VFA在线预测模型", 《环境科学学报》 *
徐立芳: "《工业自动化***与技术》", 31 August 2014 *
王明武等: "基于OPC技术的MCGS实时数据监控应用", 《陕西理工学院学报(自然科学版)》 *
胡康等: "基于遗传算法的控制***在废水处理中的应用", 《计算机技术与发展》 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106709169A (en) * 2016-12-12 2017-05-24 南京富岛信息工程有限公司 Property estimation method for crude oil processing process
CN107132325A (en) * 2017-04-14 2017-09-05 华南理工大学 A kind of flexible measurement method of the Anaerobic Waste Treatment System water outlet volatile fatty acid based on particle cluster algorithm and SVMs
CN107132325B (en) * 2017-04-14 2019-07-16 华南理工大学 A kind of flexible measurement method based on the Anaerobic Waste Treatment System of particle swarm algorithm and support vector machines water outlet volatile fatty acid
CN108241789A (en) * 2018-01-12 2018-07-03 内蒙古电力勘测设计院有限责任公司 The carbon containing measuring method of boiler slag and equipment based on adaptive weighted AWLS-SVR
CN108549740A (en) * 2018-03-06 2018-09-18 华南理工大学 A kind of anaerobic system water outlet ammonia nitrogen flexible measurement method based on integrated intelligent algorithm
CN108595892A (en) * 2018-05-11 2018-09-28 南京林业大学 Soft-measuring modeling method based on time difference model
CN109273058A (en) * 2018-09-20 2019-01-25 中轻国环(北京)环保科技有限公司 A kind of composite algorism for the exceeded early warning of anaerobic processes volatile fatty acid
CN114093434A (en) * 2021-11-30 2022-02-25 华能国际电力股份有限公司 Soft measurement method for components and concentrations of organic waste hydrolysis acidification volatile fatty acid
CN114354867A (en) * 2021-12-27 2022-04-15 江苏海峡环保科技发展有限公司 Method for predicting volatile fatty acid in sewage
CN114460255A (en) * 2022-02-08 2022-05-10 北京工商大学 LSTM-based wastewater volatile fatty acid measuring method and system
CN114460255B (en) * 2022-02-08 2024-06-11 北京工商大学 LSTM-based method and system for measuring volatile fatty acid in wastewater
CN115563862A (en) * 2022-09-27 2023-01-03 盐城工学院 Pipeline hydrogen sulfide prediction method based on optimized combined prediction model

Similar Documents

Publication Publication Date Title
CN105045951A (en) Soft-measurement method for volatile fatty acid in effluent of anaerobic wastewater treatment system
Manfren et al. Calibration and uncertainty analysis for computer models–a meta-model based approach for integrated building energy simulation
Wang et al. The value of improved wind power forecasting: Grid flexibility quantification, ramp capability analysis, and impacts of electricity market operation timescales
He et al. RUL prediction of wind turbine gearbox bearings based on self-calibration temporal convolutional network
Hu et al. Design of machine learning models with domain experts for automated sensor selection for energy fault detection
Zeng et al. Optimization of wastewater treatment alternative selection by hierarchy grey relational analysis
Costamagna et al. Data-driven techniques for fault diagnosis in power generation plants based on solid oxide fuel cells
Chen et al. Renewable energy and economic growth: A Markov-switching approach
CN107132325B (en) A kind of flexible measurement method based on the Anaerobic Waste Treatment System of particle swarm algorithm and support vector machines water outlet volatile fatty acid
CN103886369A (en) Method for predicting effluent TP based on fuzzy neural network
Giovannini et al. On the derivation of a simple dynamic model of anaerobic digestion including the evolution of hydrogen
Liu et al. Online prediction of effluent COD in the anaerobic wastewater treatment system based on PCA-LSSVM algorithm
Trappey et al. A hierarchical cost learning model for developing wind energy infrastructures
Kocaaslan The causal link between energy and output growth: Evidence from Markov switching Granger causality
Cheng et al. Rebooting kernel CCA method for nonlinear quality-relevant fault detection in process industries
Maki et al. Innovative information and communication technology (ICT) system for energy management of public utilities in a post-disaster region: Case study of a wastewater treatment plant in Fukushima
Shokry et al. Dynamic surrogate modeling for multistep-ahead prediction of multivariate nonlinear chemical processes
Yildirim et al. Prediction of biogas production of industrial scale anaerobic digestion plant by machine learning algorithms
Sappl et al. Machine learning for quantile regression of biogas production rates in anaerobic digesters
Hong et al. Operational signature-based symbolic hierarchical clustering for building energy, operation, and efficiency towards carbon neutrality
Sharifian et al. Uncertainty in chemical process systems engineering: a critical review
Ceylan et al. A new hybrid approach in selection of optimum establishment location of the biogas energy production plant
Li et al. A novel transformer-based network forecasting method for building cooling loads
Ba-Alawi et al. Simultaneous sensor fault diagnosis and reconstruction for intelligent monitoring in wastewater treatment plants: An explainable deep multi-task learning model
Jing et al. A prediction model for building energy consumption in a shopping mall based on Chaos theory

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20151111