Next Article in Journal
Feasibility of Using Gangue and Fly Ash as Filling Slurry Materials
Next Article in Special Issue
Preparation, Characterization, and Sludge Conditioning of Cationic Polyacrylamide Synthesized by a Novel UVA-Initiated System
Previous Article in Journal
Numerical Simulation of Water Absorption and Swelling in Dehulled Barley Grains during Canned Porridge Cooking
Previous Article in Special Issue
Alternative Approach to Current EU BAT Recommendation for Coal-Fired Power Plant Flue Gas Desulfurization Wastewater Treatment
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Fault Detection in Wastewater Treatment Systems Using Multiparametric Programming

1
Department of Chemical Engineering, Centre of Process System Engineering (CPSE), University College London, London WC1E 7JE, UK
2
School of Electrical Systems Engineering, University Malaysia Perlis, Perlis 02600, Malaysia
*
Author to whom correspondence should be addressed.
Processes 2018, 6(11), 231; https://doi.org/10.3390/pr6110231
Submission received: 28 August 2018 / Revised: 30 October 2018 / Accepted: 12 November 2018 / Published: 20 November 2018
(This article belongs to the Special Issue Wastewater Treatment Processes)

Abstract

:
In this work, a methodology for fault detection in wastewater treatment systems, based on parameter estimation, using multiparametric programming is presented. The main idea is to detect faults by estimating model parameters, and monitoring the changes in residuals of model parameters. In the proposed methodology, a nonlinear dynamic model of wastewater treatment was discretized to algebraic equations using Euler’s method. A parameter estimation problem was then formulated and transformed into a square system of parametric nonlinear algebraic equations by writing the optimality conditions. The parametric nonlinear algebraic equations were then solved symbolically to obtain the concentration of substrate in the inflow, S c i n , inhibition coefficient, K i , and specific growth rate, μ o , as an explicit function of state variables (concentration of biomass, X ; concentration of organic matter, S c ; concentration of dissolved oxygen, S o ; and volume, V ). The estimated model parameter values were compared with values from the normal operation. If the residual of model parameters exceeds a certain threshold value, a fault is detected. The application demonstrates the viability of the approach, and highlights its ability to detect faults in wastewater treatment systems by providing quick and accurate parameter estimates using the evaluation of explicit parametric functions.

Graphical Abstract

1. Introduction

Traditionally, wastewater treatment is a process of converting wastewater into bilge water that can be returned to the environment, and used for domestic and industrial applications. Nowadays, wastewater treatment plants (WWTPs) also focus on sustainability issues through recovery of energy and nutrients from wastewater [1,2,3]. With the increasing number of WWTPs worldwide, and the increasingly stricter requirements for maintaining the quality of effluents, on-line process monitoring has become an important aspect for ensuring efficient operation and management of WWTPs [4]. It involves a process of detecting faults and diagnosing their causes and locations. This is achieved by continuously monitoring the systems to detect any abnormal conditions, and then, evaluating and diagnosing the conditions with faults [5,6,7].
Fault detection methods for sensor faults in wastewater treatment (WWT) systems have normally used data-based methods, such as neural networks (NN) and principal component analysis (PCA). The neural network model was presented in Maier and Dandy [8] to model a wastewater treatment system. In Caccavale et al.’s work [9], faults in nitrogen sensors were detected by estimating the concentration of NO and NH using neural networks. Honggui et al. [10] showed how sensor faults can be diagnosed using the fuzzy neural network to estimate dissolved oxygen concentrations, pH, chemical oxygen demand (COD), and total nutrients. In Lee et al. [11], the kernel PCA was used to extract nonlinear relations in process variables, and it showed a better performance than linear PCA in process monitoring. Adaptive PCA was used in Baggiani and Marsili-Libelli [12] to compare the current plant operation with an exact performance based on a reference data set and sensor outputs. In Sanchez-Fernández et al. [13], a distributed PCA was applied to detect faults by minimizing the communication cost between the blocks in WWTPs. The classical principal component analysis was presented using Benchmark Simulation Model No. 1 (BSM1) in Garcia-Alvarez et al. [14], Chen et al. [15], and Carlsson and Zambrano [16]. The combined use of PCA in data preprocessing and artificial neural networks has been presented in Gontarski et al. [17] to improve network performance. Besides that, fault detection in WWT has been discussed using an observer-based method in Fragkoulis et al. [18], where multiple actuators and sensors faults were detected.
In an aerobic WWT system, respiration rate is used as an indicator of biological activity for monitoring and control [19,20]. The respiration rate is affected by the initial condition of biomass, substrate concentration in the inflow, and extrinsic growth behavior of the biomass on inhibitory substrates. In Wimberger and Verde [19], a fault detection and isolation was performed by evaluating the detectability and isolability of analytical- and signal-based methodologies using information from applying the sensitivity theory. However, respiration rate depends on intermittent aeration patterns, and the calculation can only be evaluated during air-off periods [21,22,23]. In this work, we propose fault detection in the WWT system by detecting and monitoring the kinetic parameters of extrinsic growth behavior using multiparametric programming. The main idea is to detect faults by estimating model parameters and monitoring the residual of model parameters. In parameter estimation-based fault detection, faults can be associated with the specific parameters of the model. With this assumption, parameters of a system are estimated on-line repeatedly using well known parameter estimation methods. The presence of faults is indicated if there is a discrepancy between the values of estimated parameters and the ‘true’ parameters. An overview for fault detection using parameter estimation can be found in [24,25,26,27,28,29,30,31].
In our earlier work [32], the fault detection method based on parameter estimation by using multiparametric programming [33,34,35,36,37,38,39] was presented. In that work, nonlinear ordinary differential equations model was converted into algebraic equations using Euler’s method. Then, a square system of parametric nonlinear algebraic equations was obtained by formulating Karush-Kuhn-Tucker (KKT) optimality conditions. The model parameters were then obtained as an explicit function of the measurements by symbolically solving the equations representing KKT conditions. The estimated model parameters were compared with the normal operation for fault detection. If the residual of model parameters exceeds a certain threshold value, a fault is detected.
In this work, the concentration of substrate in the inflow, inhibition coefficient, and specific growth rate were treated as model parameters and obtained as an explicit function of the measurements using multiparametric programming, and monitored for fault detection and diagnosis.
The rest of this paper is organized as follows: Section 2 presents the parameter estimation algorithm using multiparametric programming, and in Section 3, the wastewater treatment process reaction phase model is introduced. This section also includes detailed formulation for obtaining model parameters as an explicit function of measurements to detect faults. Section 4 evaluates the feasibility of parameter estimation using multiparametric programming in fault-free and faulty scenarios. Concluding remarks are presented in Section 5.

2. Problem Statement and Solution Approach

Problem Definition

Consider the following parameter estimation problem [40]:
Problem 1.
ε F D = min θ , x ( t ) j J i I { x ^ j ( t i ) x j ( t i ) } 2
subject to:
d x j ( t ) d t = f j ( x ( t ) , u ( t ) , θ , t ) , j J
x j ( t = 0 ) = x j 0 ,   j J
t [ 0 , t f ]
where x ( t ) represents the J-dimensional vector of state variables in the given ordinary differential equations (ODEs) system, x ^ j ( t i ) represents the measurements of the state variables at the time points t i , u ( t ) represents the vector of control variables, and θ is the vector of parameters. An occurrence of fault can be attributed to changes in model parameters, θ , from the nominal values. A key difficulty with this approach for fault detection is that it requires an online solution of problem 1 at regular time intervals, which is computationally demanding and prone to failure of the numerical solver for Problem 1. These limitations can be overcome using multiparametric programming (MPP) to estimate the model parameters, θ , as an explicit function of measurements, x ^ j ( t i ) , by treating θ as optimization variables and x ^ j ( t i ) as the parameters. The algorithm for parameter estimation using MPP to obtain a symbolic solution for model parameters is summarized as follows [32]:
(i)
The nonlinear ODEs model in Equation (2) was discretized using Euler’s method to algebraic equations on the interval, t [ 0 , t f ] . The Euler’s method provides
x j ( i + 1 ) = x j ( i ) + Δ t f j ( x ( i ) , u ( i ) , θ ) ,   i I ,   j J
where the step size is given by Δ t .
(ii)
Fault detection problem was formulated as a nonlinear programming (NLP) problem as follows:
Problem 2.
ε M P P = min θ , x ( i ) j J i I { x ^ j ( i + 1 ) x j ( i + 1 ) } 2
subject to:
h j = x j ( i + 1 ) x j ( i ) Δ t f j ( x ( i ) , u ( i ) , θ ) = 0 , i I , j J
x j ( 0 ) = x j 0 , j J
where h j is the set of nonlinear algebraic equations obtained by discretizing the ODEs given by Equation (5), and I = { 0 , 1 } is considered in this work.
(iii)
For Problem 2, the Lagrangian function is given by
L = g + j J λ j h j
where
g = j J i I { x ^ j ( i + 1 ) x j ( i + 1 ) } 2
h j = x j ( i + 1 ) x j ( i ) Δ t f j ( x ( i ) , u ( i ) , θ ) = 0 , i I , j J
and λ j represents the Lagrange multipliers. The first-order Karush-Kuhn-Tucker (KKT) conditions are given by the equality constrains as follows
θ L = θ g + θ λ j h j = 0 , j J
h j = 0
(iv)
The equality constraints corresponding to the KKT conditions given by Equations (12) and (13) were solved symbolically to obtain Lagrange multipliers and model parameters, θ ( x ^ ) , as an explicit function of measurements, x ^ .
(v)
The solutions obtained in the previous step were examined and solutions with imaginary parts were ignored.
(vi)
The estimated model parameters, θ , were calculated using the measurements, x ^ , by simple evaluation of θ ( x ^ ) .
(vii)
Faults were diagnosed by monitoring residual changes in model parameters. Any significant difference between estimated and observed model parameters may be attributed to occurrence of a fault.

3. Wastewater Treatment System

In this work, an aerobic sequencing batch reactor (SBR) model for fed-batch reactor operation mode was considered. The bioprocesses involved in the treatment used activated sludge and provided treatment for wastewater in five stages: Fill, react, settle, decant, and idle as shown in Figure 1 [41]. During the fill stage, the wastewater was directed into the tank and mixed with the sludge from previous cycles. At the reacting stage, air was provided as function of the aeration process that consumes the waste as nutrition and produces carbon dioxide, nitrates, and nitrites. After sufficient time of reaction, the aeration process was stopped and the sludge was allowed to settle. At the decant stage, the treated wastewater was removed from the reactor and the sludge that remained was reused for the next cycle. The reactor then entered the idle stage which was used to prepare the SBR for the next cycle.
The aerobic system involves aerobic growth and endogenous respiration reactions given by:
Growth :   S c + S o X
Endogenous   respiration :   S c + X X
where S c represents the concentrations of organic matter, S o is the concentration of dissolved oxygen, and X represents the concentration of biomass. The mathematical model of the process is given by the following equations [42]:
d X d t = μ X q i n V X
d S c d t = k 1 μ X + q i n V ( S c i n S c )
d S o d t = k 2 μ X b X + q i n V ( S o i n S o ) + k L a ( S o s S o )
d V d t = q i n
μ = μ o S c K s + S c + S c 2 K i
where μ is specific growth rate, q i n is inlet flow rate, V is volume, k 1 and k 2 are yield coefficients, b is endogenous respiration kinetic constant, S c i n is inlet organic matter, S o i n is dissolved oxygen concentrations, k L a is transfer coefficient, and S o s is oxygen saturation concentration. The specific growth rate, μ , is represented by the Haldane model and is given by Equation (20). The parameter values for the wastewater treatment process reaction are shown in Table 1 [19,42].

Fault Detection Problem for the Wastewater Treatment Process

In this work, a method to estimate and detect faults in wastewater treatment is presented. The concentration of substrate in the inflow, S c i n , inhibition coefficient, K i , and specific growth rate, μ o , were treated as model parameters and obtained as an explicit function of measurements using multiparametric programming and monitored for fault detection and diagnosis. By monitoring the estimated model parameters, process faults can be detected and diagnosed. We took this approach because the respiration rate indicates the biological activity, which is used for monitoring and control, and the respiration rate is affected by S c i n , K i , and μ o .
Thus, the objective of this fault detection problem is to estimate the model parameters, S c i n , K i , and μ o by minimizing the error of parameter estimate, ε F D , between the measurement of state variables and model predicted value of state variables as shown in problem 3.
Problem 3.
ε F D = min S c i n , K i , μ o i I { ( X ^ ( t i ) X ( t i ) ) 2 + ( S ^ c ( t i ) S c ( t i ) ) 2 + ( S ^ o ( t i ) S o ( t i ) ) 2 + ( V ^ ( t i ) V ( t i ) ) 2 }
subject to: Equations (16)–(20).
The formulation and solution of the parameter estimation problem using MPP for WWTP are presented as follow:
(i)
The nonlinear ODE model in Equations (16)–(19) is discretized using explicit Euler’s method and reformulated as the following algebraic equations:
X ( i + 1 ) = Δ t ( X ( i ) Δ t + S c ( i ) μ o X ( i ) K s + S c ( i ) + S c ( i ) 2 K i q i n V ( i ) )
S c ( i + 1 ) = Δ t ( S c ( i ) Δ t + q i n ( S c ( i ) + S c i n ) V ( i ) k 1 S c ( i ) μ o X ( i ) K s + S c ( k ) + S c ( i ) 2 K i )
S o ( i + 1 ) = Δ t ( S o ( i ) Δ t + k l a ( S o ( i ) + S o s ) + q i n ( S o ( i ) + S o i n ) V ( i ) b X ( i ) k 2 S c ( i ) μ o X ( i ) K s + S c ( i ) + S c ( i ) 2 K i )
V ( i + 1 ) = Δ t q i n + V ( i )
(ii)
The discrete-time fault detection problem is formulated as the following NLP:
Problem 4.
ε M P P = min S c i n , K i , μ o i I { ( X ^ ( i + 1 ) X ( i + 1 ) ) 2 + ( S ^ c ( i + 1 ) S c ( i + 1 ) ) 2 + ( S ^ o ( i + 1 ) S o ( i + 1 ) ) 2 + ( V ^ ( i + 1 ) V ( i + 1 ) ) 2 }
subject to:
h 1 = X ( i + 1 ) X ( i ) ( Δ t S c ( i ) μ o X ( i ) ) / ( K s + S c ( i ) + ( S c ( i ) 2 ) / K i ) + ( Δ t q i n ) / V ( i ) = 0
h 2 = S c ( i + 1 ) Δ t ( S c ( i ) ( Δ t q i n ( S c ( i ) + S c i n ) ) / V ( i ) ) + ( Δ t k 1 S c ( i ) μ o X ( i ) ) / ( K s + S c ( i ) + S c ( i ) 2 / K i ) = 0
h 3 = S o ( i + 1 ) S o ( i ) Δ t k l a ( S o ( i ) + S o s ) ( Δ t q i n ( S o ( i ) + S o i n ) ) / V ( i ) + Δ t b X ( i ) + ( Δ t k 2 S c ( i ) μ o X ( i ) ) / ( K s + S c ( i ) + S c ( i ) 2 / K i ) = 0
h 4 = V ( i + 1 ) Δ t q i n V ( i ) = 0
X ( i ) = X 0
S c ( i ) = S c 0
S o ( i ) = S o 0
V ( i ) = V 0
(iii)
Equations (27)–(30) are substituted into Equation (26) to obtain:
g = ( X ^ ( i + 1 ) ( X ( i ) + ( Δ t S c ( i ) μ o X ( i ) ) / ( K s + S c ( i ) + ( S c ( i ) 2 ) / K i ) ( Δ t q i n ) / V ( i ) ) ) 2 + ( S ^ c ( i + 1 ) ( Δ t ( S c ( i ) + ( Δ t q i n ( S c ( i ) + S c i n ) ) / V ( i ) ) ( Δ t k 1 S c ( i ) μ o X ( i ) ) / ( K s + S c ( i ) + S c ( i ) 2 / K i ) ) ) 2 + ( S ^ o ( i + 1 ) ( S o ( i ) + Δ t k l a ( S o ( i ) + S o s ) + ( Δ t q i n ( S o ( i ) + S o i n ) ) / V ( i ) Δ t b X ( i ) ( Δ t k 2 S c ( i ) μ o X ( i ) ) / ( K s + S c ( i ) + S c ( i ) 2 / K i ) ) ) 2 + ( V ^ ( i + 1 ) ( Δ t q i n + V ( i ) ) ) 2
The derivative of g with respect to model parameters θ is then obtained and equated to zero. The resulting equality constraints are then solved analytically. Hence, the gradient of g with respect to model parameters, S c i n , K i , and μ o , is given by
g S c i n = ( ( 2 Δ t q i n ( S ^ c ( i + 1 ) Δ t ( S c ( i ) / Δ t + ( q i n ( S c ( i ) + S c i n ) ) / V ( i ) ( k 1 S c ( i ) u o X ( i ) ) / ( K s + S c ( i ) + S c ( i ) 2 / K i ) ) ) ) / V ) = 0
g K i = ( 2 Δ t k 1 S c ( i ) 3 u o X ( i ) ( S ^ c ( i + 1 ) Δ t ( S c ( i ) / Δ t + ( q i n ( S c ( i ) + S c i n ) ) / V ( i ) ( k 1 S c ( i ) u o X ( i ) ) / ( K s + S c ( i ) + S c ( i ) 2 / K i ) ) ) ) / ( K i 2 ( K s + S c ( i ) + S c ( i ) 2 / K i ) 2 ) + ( 2 Δ t k 2 S c ( i ) 3 u o X ( i ) ( S ^ o ( i + 1 ) Δ t ( S o ( i ) / Δ t + k l a ( S o ( i ) + S o s ) + ( q i n ( S o ( i ) + S o i n ) ) / V ( i ) b X ( i ) ( k 2 S c ( i ) u o X ( i ) ) / ( K s + S c ( i ) + S c ( i ) 2 / K i ) ) ) ) / ( K i 2 ( K s + S c ( i ) + S c ( i ) 2 / K i ) 2 ) ( 2 Δ t S c ( i ) 3 u o X ( i ) ( Δ t ( X ( i ) / Δ t + ( S c ( i ) u o X ( i ) ) / ( K s + S c ( i ) + S c ( i ) 2 / K i ) ( q i n X ( i ) ) / V ( i ) ) + X ^ ( i + 1 ) ) ) / ( K i 2 ( K s + S c ( i ) + S c ( i ) 2 / K i ) 2 ) = 0
g μ o = ( 2 Δ t k 1 S c ( i ) X ( i ) ( S ^ c ( i + 1 ) Δ t ( S c ( i ) / Δ t + ( q i n ( S c ( i ) + S c i n ) ) / V ( i ) ( k 1 S c ( i ) u o X ( i ) ) / ( K s + S c ( i ) + S c ( i ) 2 / K i ) ) ) ) / ( K s + S c ( i ) + S c ( i ) 2 / K i ) + ( 2 Δ t k 2 S c ( i ) X ( i ) ( S ^ o ( i + 1 ) Δ t ( S o ( i ) / Δ t + k l a ( S o ( i ) + S o s ) + ( q i n ( S o ( i ) + S o i n ) ) / V ( i ) b X ( i ) ( k 2 S c ( i ) u o X ( i ) ) / ( K s + S c ( i ) + S c ( i ) 2 / K i ) ) ) ) / ( K s + S c ( i ) + S c ( i ) 2 / K i ) ( 2 Δ t S c ( i ) X ( i ) ( Δ t ( X ( i ) / Δ t + ( S c ( i ) u o X ( i ) ) / ( K s + S c ( i ) + S c ( i ) 2 / K i ) ( q i n X ( i ) ) / V ( i ) ) + X ^ ( i + 1 ) ) ) / ( K s + S c ( i ) + S c ( i ) 2 / K i ) = 0
(iv)
The equality constraints in Equations (36)–(38) are solved analytically in Mathematica, and the symbolic solution for model parameters is given by
S c i n = ( Δ t 2 K i K s q i n 2 S c ( i ) + Δ t 2 K i q i n 2 S c ( i ) 2 + Δ t 2 q i n 2 S c ( i ) 3 Δ t K i K s q i n S c ( i ) V ( i ) Δ t K i q i n S c ( i ) 2 V ( i ) Δ t q i n S c ( i ) 3 V ( i ) + Δ t K i K s q i n S ^ c ( i + 1 ) V ( i ) + Δ t K i q i n S c ( i ) S ^ c ( i + 1 ) V ( i ) + Δ t ( i ) q i n S c ( i ) 2 S ^ c ( i + 1 ) V ( i ) + Δ t 2 k 1 K i q i n S c ( i ) u o V ( i ) X ( i ) ) / ( Δ t 2 q i n 2 ( K i K s + K i S c ( i ) + S c ( i ) 2 ) )
K i = ( S c ( i ) 2 ( Δ t k 1 q i n S c ( i ) Δ t k 1 q i n S c i n + Δ t k 2 q i n S o ( i ) Δ t k 2 q i n S o i n k 1 S c ( i ) V ( i ) + k 1 S ^ c ( i + 1 ) V ( i ) k 2 S o ( i ) V ( i ) + Δ t k 2 k l a S o ( i ) V ( i ) + k 2 S ^ o ( i + 1 ) V ( i ) Δ t k 2 k l a S o s V ( i ) Δ t q i n X ( i ) + V ( i ) X ( i ) + b Δ t k 2 V ( i ) X ( i ) V ( i ) X ^ ( i + 1 ) ) ) / ( Δ t k 1 K s q i n S c ( i ) + Δ t k 1 q i n S c ( i ) 2 Δ t k 1 K s q i n S c i n Δ t k 1 q i n S c ( i ) S c i n + Δ t k 2 K s q i n S o ( i ) + Δ t k 2 q i n S c ( i ) S o ( i ) Δ t k 2 K s q i n S o i n Δ t k 2 q i n S c ( i ) S o i n k 1 K s S c ( i ) V ( i ) k 1 S c ( i ) 2 V ( i ) + k 1 K s S ^ c ( i + 1 ) V ( i ) + k 1 S c ( i ) S ^ c ( i + 1 ) V ( i ) k 2 K s S o ( i ) V ( i ) + Δ t k 2 k l a K s S o ( i ) V ( i ) k 2 S c ( i ) S o ( i ) V ( i ) + Δ t k 2 k l a S c ( i ) S o ( i ) V ( i ) + k 2 K s S ^ o ( i + 1 ) V ( i ) + k 2 S c ( i ) S ^ o ( i + 1 ) V ( i ) Δ t k 2 k l a K s S o s V ( i ) Δ t k 2 k l a S c ( i ) S o s V ( i ) Δ t K s q i n X ( i ) Δ t q i n S c ( i ) X ( i ) + K s V ( i ) X ( i ) + b Δ t k 2 K s V ( i ) X ( i ) + S c ( i ) V ( i ) X ( i ) + b Δ t k 2 S c ( i ) V ( i ) X ( i ) + Δ t S c ( i ) u o V ( i ) + Δ t k 1 2 S c ( i ) u o V ( i ) X ( i ) + Δ t k 2 2 S c ( i ) u o V ( i ) X ( i ) K s V ( i ) X ^ ( i + 1 ) S c ( i ) V ( i ) X ^ ( i + 1 ) )
μ o = ( ( 2 Δ t k 1 S c ( i ) 2 X ( i ) ) / ( K s + S c ( i ) + S c ( i ) 2 / K i ) ( 2 Δ t k 1 S c ( i ) S ^ c ( i + 1 ) X ( i ) ) / ( K s + S c ( i ) + S c ( i ) 2 / K i ) + ( 2 Δ t k 2 S c ( i ) S o ( i ) X ( i ) ) / ( K s + S c ( i ) + S c ( i ) 2 / K i ) ( 2 Δ t k 2 S c ( i ) S ^ o ( i + 1 ) X ( i ) ) / ( K s + S c ( i ) + S c ( i ) 2 / K i ) + ( 2 Δ t 2 k 2 k l a S c ( i ) ( S o ( i ) + S o s ) X ( i ) ) / ( K s + S c ( i ) + S c ( i ) 2 / K i ) + ( 2 Δ t 2 k 1 q i n S c ( i ) ( S c ( i ) + S c i n ) X ( i ) ) / ( ( K s + S c ( i ) + S c ( i ) 2 / K i ) V ( i ) ) + ( 2 Δ t 2 k 2 q i n S c ( i ) ( S o ( i ) + S o i n ) X ( i ) ) / ( ( K s + S c ( i ) + S c ( i ) 2 / K i ) V ( i ) ) ( 2 Δ t S c ( i ) X ( i ) 2 ) / ( K s + S c ( i ) + S c ( i ) 2 / K i ) ( 2 b Δ t 2 k 2 S c ( i ) X ( i ) 2 ) / ( K s + S c ( i ) + S c ( i ) 2 / K i ) + ( 2 Δ t 2 q i n S c ( i ) X 2 ) / ( ( K s + S c ( i ) + S c ( i ) 2 / K i ) V ( i ) ) + ( 2 Δ t S c ( i ) X ( i ) X ^ ( i + 1 ) ) / ( K s + S c ( i ) + S c ( i ) 2 / K i ) ) / ( ( 2 Δ t 2 S c ( i ) 2 X ( i ) 2 ) / ( K s + S c ( i ) + S c ( i ) 2 / K i ) 2 + ( 2 Δ t 2 k 1 2 S c ( i ) 2 X ( i ) 2 ) / ( K s + S c ( i ) + S c ( i ) 2 / K i ) 2 + ( 2 Δ t 2 k 2 2 S c ( i ) 2 X ( i ) 2 ) / ( K s + S c ( i ) + S c ( i ) 2 / K i ) 2 )
(v)
Equations (39)–(41) represent the symbolic solution for model parameters, S c i n , K i , and μ o , obtained as explicit functions of the state variables, X , S c , S o , and V . In this case study, single fault was assumed to occur at any time. Hence, as an example in Equation (39), the solution of S c i n was obtained in terms of model parameters, K i and μ o , and state variables, X , S c , and V . In Equation (40), the solution of K i was obtained in terms of model parameters, S c i n and μ o , and state variables, X , S c , S o , and V . The solution of μ o was obtained in terms of model parameters S c i n and K i , and state variables, X , S c , S o , and V , as shown in Equation (41). Simple function evaluation was performed to evaluate the model parameters without the need for solving the online optimization problem. Then, the fault detection was performed by monitoring the residuals of model parameters. Any substantial discrepancy between estimated and observed model parameters indicates changes in the process and may be attributed to a fault.

4. Results

4.1. Fault-Free Scenario

In the fault-free scenario, the simulated measured values and model predicted values for concentrations were obtained using the model parameters listed in Table 1 with initial values, X ( 0 ) = 4734 mg/L, S c ( 0 ) = 0 mg/L, S o ( 0 ) = 6 mg/L, and V ( 0 ) = 3 L; the state profiles thus obtained are shown in Figure 2. In this system, noise was added as random data to evaluate the effectiveness of the proposed method. The estimated model parameters, S c i n , K i , and μ o , were calculated using Equations (39)–(41) with step size, Δ t = 0.001 h and are shown in Figure 3. The result shows that the estimated model parameter is close to true model parameters. The diagnosis of fault was carried out by monitoring value of the residual value of model parameters and is shown in Figure 4. For each parameter no fault was detected as the residual was less than the threshold. The threshold was chosen as 10% from the nominal value. These results indicate that the technique proposed in this work can accurately estimate the model parameters, and this was achieved by carrying out simple function evaluations that alleviate the computational burden required for online implementation.

4.2. Faulty Scenario

Investigation for the faulty scenarios was implemented where three faulty scenarios have been considered, where the percentage of change kinetic parameters is given in Table 2. In this case study, single fault was assumed to occur at any time. The step size was given as Δ t = 0.001 h. For faulty scenario 1, the estimated concentration of substrate in the inflow is shown in Figure 5. We can see that the estimated parameter S c i n decreased from 168 mg/L to 118 mg/L after 3 h. The residual of S c i n was monitored for fault detection, and is shown in Figure 6. This figure shows that the fault was declared at 3 h as the residual was more than a threshold value of 10%. For faulty scenario 2, the estimated half saturation coefficient, K i , is shown in Figure 7. We can see that the estimated parameter K i increased from 3.753 mg/L to 4.878 mg/L after 3 h and the residual of K i was monitored for fault detection. Figure 8 shows that after 3 h, the residual of K i was more than 10% of threshold and therefore, the fault was declared at 3 h. Figure 9 shows the estimated parameter for μ o where the estimated model parameter was decreased from 0.1916 1/h to 0.1341 1/h. The fault detection was monitored using residual, and the result is shown in Figure 10. The residual of μ o increased to 30% and indicates that faulty scenario 3 occurred at 3 h. These results indicate that there were faults at specified scenarios, and provided quick and accurate fault detection using explicit parametric functions.

5. Concluding Remarks

We have proposed a fault detection methodology for the wastewater treatment system using multiparametric programming where the model parameters were efficiently calculated by performing simple function evaluations without solving the online optimization problem. In this work, the related kinetic parameters for the faulty process that were investigated were S c i n , K i , and μ o , which affected the respiration rate; these kinetic parameters were obtained as an explicit function of measurements. The estimation of kinetic model parameters in faulty and fault-free scenarios has shown good performance in the accuracy of parameter estimation-based fault detection. This demonstrates the advantages of multiparametric programming-based parameter estimation for detecting faults in wastewater treatment plants quickly and accurately, and reducing the online computational burden. Future work will focus on investigating the case when more than one fault simultaneously occurs.

Author Contributions

E.C.M. and V.D. contributed to the design and implementation of the research, to the analysis of the results and to the writing of the manuscript.

Funding

E.C.M. would like to thank the Ministry of Education (MoE) Malaysia, and University Malaysia Perlis (UniMAP) for the financial support.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Mo, W.; Zhang, Q. Energy–nutrients–water nexus: Integrated resource recovery in municipal wastewater treatment plants. J. Environ. Manag. 2013, 127, 255–267. [Google Scholar] [CrossRef] [PubMed]
  2. Tyagi, V.K.; Lo, S.-L. Sludge: A waste or renewable source for energy and resources recovery? Renew. Sustain. Energy Rev. 2013, 25, 708–728. [Google Scholar] [CrossRef]
  3. Batstone, D.J.; Hülsen, T.; Mehta, C.M.; Keller, J. Platforms for energy and nutrient recovery from domestic wastewater: A review. Chemosphere 2015, 140, 2–11. [Google Scholar] [CrossRef] [PubMed]
  4. Rosen, C.; Röttorp, J.; Jeppsson, U. Multivariate on-line monitoring: Challenges and solutions for modern wastewater treatment operation. Water Sci. Technol. 2003, 47, 171–179. [Google Scholar] [CrossRef] [PubMed]
  5. Mhaskar, P.; Gani, A.; El-farra, N.H.; Mcfall, C.; Christofides, P.D.; Davis, J.F. Integrated fault-detection and fault-tolerant control of process systems. AIChE J. 2006, 52, 2129–2148. [Google Scholar] [CrossRef]
  6. Mhaskar, P.; McFall, C.; Gani, A.; Christofides, P.D.; Davis, J.F. Isolation and handling of actuator faults in nonlinear systems. Automatica 2008, 44, 53–62. [Google Scholar] [CrossRef]
  7. Du, M.; Mhaskar, P. Isolation and handling of sensor faults in nonlinear systems. Automatica 2014, 50, 1066–1074. [Google Scholar] [CrossRef]
  8. Maier, H.R.; Dandy, G.C. Neural networks for the prediction and forecasting of water resources variables: A review of modelling issues and applications. Environ. Model. Softw. 2000, 15, 101–124. [Google Scholar] [CrossRef]
  9. Caccavale, F.; Digiulio, P.; Iamarino, M.; Masi, S.; Pierri, F. A neural network approach for on-line fault detection of nitrogen sensors in alternated active sludge treatment plants. Water Sci. Technol. 2010, 62, 2760–2768. [Google Scholar] [CrossRef] [PubMed]
  10. Honggui, H.; Ying, L.; Junfei, Q. A fuzzy neural network approach for online fault detection in waste water treatment process. Comput. Electr. Eng. 2014, 40, 2216–2226. [Google Scholar] [CrossRef]
  11. Lee, J.-M.; Yoo, C.; Choi, S.W.; Vanrolleghem, P.A.; Lee, I.-B. Nonlinear process monitoring using kernel principal component analysis. Chem. Eng. Sci. 2004, 59, 223–234. [Google Scholar] [CrossRef]
  12. Baggiani, F.; Marsili-Libelli, S. Real-time fault detection and isolation in biological wastewater treatment plants. Water Sci. Technol. 2009, 60, 2949–2961. [Google Scholar] [CrossRef] [PubMed]
  13. Sanchez-Fernández, A.; Fuente, M.J.; Sainz-Palmero, G.I. Fault detection in wastewater treatment plants using distributed pca methods. In Proceedings of the 2015 IEEE 20th Conference on Emerging Technologies & Factory Automation (ETFA), Luxembourg, Germany, 8–11 September 2015; pp. 1–7. [Google Scholar]
  14. Garcia-Alvarez, D.; Fuente, M.J.; Vega, P.; Sainz, G. Fault detection and diagnosis using multivariate statistical techniques in a wastewater treatment plant. In Proceedings of the 7th IFAC International Symposium on Advanced Control of Chemical Processes, Istanbul, Turkey, 12–15 July 2009; Volume 42, pp. 952–957. [Google Scholar]
  15. Chen, A.; Zhou, H.; An, Y.; Sun, W. Pca and pls monitoring approaches for fault detection of wastewater treatment process. In Proceedings of the 2016 IEEE 25th International Symposium on Industrial Electronics (ISIE), Santa Clara, CA, USA, 8–10 June 2016; pp. 1022–1027. [Google Scholar]
  16. Carlsson, B.; Zambrano, J. Fault detection and isolation of sensors in aeration control systems. Water Sci. Technol. 2016, 73, 648–653. [Google Scholar] [CrossRef] [PubMed]
  17. Gontarski, C.A.; Rodrigues, P.R.; Mori, M.; Prenem, L.F. Simulation of an industrial wastewater treatment plant using artificial neural networks. Comput. Chem. Eng. 2000, 24, 1719–1723. [Google Scholar] [CrossRef]
  18. Fragkoulis, D.; Roux, G.; Dahhou, B. Detection, isolation and identification of multiple actuator and sensor faults in nonlinear dynamic systems: Application to a waste water treatment process. Appl. Math. Model. 2011, 35, 522–543. [Google Scholar] [CrossRef]
  19. Wimberger, D.; Verde, C. Fault diagnosticability for an aerobic batch wastewater treatment process. Control Eng. Pract. 2008, 16, 1344–1353. [Google Scholar] [CrossRef]
  20. Brouwer, H.; Klapwijk, A.; Keesman, K.J. Modelling and control of activated sludge plants on the basis of respirometry. Water Sci. Technol. 1994, 30, 265–274. [Google Scholar] [CrossRef]
  21. Carlsson, B.; Lindberg, C.; Hasselblad, S.; Xu, S. On-line estimation of the respiration rate and the oxygen transfer rate at kungsangen wastewater treatment plant in uppsala. Water Sci. Technol. 1994, 30, 255–263. [Google Scholar] [CrossRef]
  22. Carlsson, B. On-line estimation of the respiration rate in an activated sludge process. Water Sci. Technol. 1993, 28, 427–434. [Google Scholar] [CrossRef]
  23. Lindberg, C.-F.; Carlsson, B. Estimation of the respiration rate and oxygen transfer function utilizing a slow do sensor. Water Sci. Technol. 1996, 33, 325–333. [Google Scholar] [CrossRef]
  24. Jiang, T.; Khorasani, K.; Tafazoli, S. Parameter estimation-based fault detection, isolation and recovery for nonlinear satellite models. IEEE Trans. Control Syst. Technol. 2008, 16, 799–808. [Google Scholar] [CrossRef]
  25. Isermann, R. Fault diagnosis of machines via parameter estimation and knowledge processing—Tutorial paper. Automatica 1993, 29, 815–835. [Google Scholar] [CrossRef]
  26. Huang, B. Detection of abrupt changes of total least squares models and application in fault detection. IEEE Trans. Control Syst. Technol. 2001, 9, 357–367. [Google Scholar] [CrossRef]
  27. Garatti, S.; Bittanti, S. A new paradigm for parameter estimation in system modeling. Int. J. Adapt. Control Signal Process. 2012, 27, 667–687. [Google Scholar] [CrossRef]
  28. Park, S.; Himmelblau, D.M. Fault detection and diagnosis via parameter estimation in lumped dynamic systems. Ind. Eng. Chem. Process Des. Dev. 1983, 482–487. [Google Scholar] [CrossRef]
  29. Pouliezos, A.; Stavrakakis, G.; Lefas, C. Fault detection using parameter estimation. Qual. Reliab. Eng. Int. 1989, 5, 283–290. [Google Scholar] [CrossRef]
  30. Venkatasubramanian, V.; Rengaswamy, R.; Yin, K.; Kavuri, S.N. A review of process fault detection and diagnosis part i: Quantitative model-based methods. Comput. Chem. Eng. 2003, 27, 293–311. [Google Scholar] [CrossRef]
  31. Hwang, I.; Kim, S.; Kim, Y.; Seah, C.E. A survey of fault detection, isolation, and reconfiguration methods. IEEE Trans. Control Syst. Technol. 2010, 18, 636–653. [Google Scholar] [CrossRef]
  32. Che Mid, E.; Dua, V. Model-based parameter estimation for fault detection using multiparametric programming. Ind. Eng. Chem. Res. 2017, 56, 8000–8015. [Google Scholar] [CrossRef]
  33. Dua, V.; Pistikopoulos, E.N. Algorithms for the solution of multiparametric mixed-integer nonlinear optimization problems. Ind. Eng. Chem. Res. 1999, 38, 3976–3987. [Google Scholar] [CrossRef]
  34. Pistikopoulos, E.N.; Dua, V.; Bozinis, N.A.; Bemporad, A.; Morari, M. On-line optimization via off-line parametric optimization tools. Comput. Chem. Eng. 2002, 26, 175–185. [Google Scholar] [CrossRef]
  35. Pistikopoulos, E.N. Perspectives in multiparametric programming and explicit model predictive control. AIChE J. 2009, 55, 1918–1925. [Google Scholar] [CrossRef]
  36. Oberdieck, R.; Diangelakis, N.A.; Papathanasiou, M.M.; Nascu, I.; Pistikopoulos, E.N. Pop—parametric optimization toolbox. Ind. Eng. Chem. Res. 2016, 55, 8979–8991. [Google Scholar] [CrossRef]
  37. Pistikopoulos, E.N.; Georgiadis, M.C.; Dua, V. Multi-Parametric Programming: Volume 1: Theory, Algorithms, and Applications; Wiley-VCH: Weinheim, Germany, 2007. [Google Scholar]
  38. Pistikopoulos, E.N.; Georgiadis, M.C.; Dua, V. Multi-Parametric Model-Based Control: Volume 2: Theory and Applications; Wiley-VCH: Weinheim, Germany, 2007. [Google Scholar]
  39. Charitopoulos, V.M.; Dua, V. Explicit model predictive control of hybrid systems and multiparametric mixed integer polynomial programming. AIChE J. 2016, 62, 3441–3460. [Google Scholar] [CrossRef] [Green Version]
  40. Dua, V.; Dua, P. A simultaneous approach for parameter estimation of a system of ordinary differential equations, using artificial neural network approximation. Ind. Eng. Chem. Res. 2011, 51, 1809–1814. [Google Scholar] [CrossRef]
  41. Irvine, R.L.; Ketchum, L.H., Jr. Sequencing batch reactors for biological wastewater treatment. Crit. Rev. Environ. Control 1988, 18, 225–294. [Google Scholar] [CrossRef]
  42. Fibrianto, H.; Mazouni, D.; Ignatova, M.; Herveau, M.; Harmand, J.; Dochain, D. Dynamical modelling, identification and software sensors for sbrs. Math. Comput. Model. Dyn. Syst. 2008, 14, 17–26. [Google Scholar] [CrossRef] [Green Version]
Figure 1. The sequencing batch reactor stages (adapted from Reference [41]).
Figure 1. The sequencing batch reactor stages (adapted from Reference [41]).
Processes 06 00231 g001
Figure 2. State variables profiles for the fault-free scenario.
Figure 2. State variables profiles for the fault-free scenario.
Processes 06 00231 g002
Figure 3. Estimated model parameters value for the fault-free scenario. (a) Concentration of substrate in the inflow, S c i n ; (b) inhibition coefficient, K i ; and (c) specific growth rate, μ o .
Figure 3. Estimated model parameters value for the fault-free scenario. (a) Concentration of substrate in the inflow, S c i n ; (b) inhibition coefficient, K i ; and (c) specific growth rate, μ o .
Processes 06 00231 g003
Figure 4. Residual of estimated model parameters for the fault-free scenario. (a) Concentration of substrate in the inflow, S c i n ; (b) inhibition coefficient, K i ; and (c) specific growth rate, μ o .
Figure 4. Residual of estimated model parameters for the fault-free scenario. (a) Concentration of substrate in the inflow, S c i n ; (b) inhibition coefficient, K i ; and (c) specific growth rate, μ o .
Processes 06 00231 g004
Figure 5. Estimated model parameter S c i n for faulty scenario 1.
Figure 5. Estimated model parameter S c i n for faulty scenario 1.
Processes 06 00231 g005
Figure 6. Residual of the estimated model parameter S c i n for faulty scenario 1.
Figure 6. Residual of the estimated model parameter S c i n for faulty scenario 1.
Processes 06 00231 g006
Figure 7. Estimated model parameter K i for faulty scenario 2.
Figure 7. Estimated model parameter K i for faulty scenario 2.
Processes 06 00231 g007
Figure 8. Residual of the estimated model parameter K i for faulty scenario 2.
Figure 8. Residual of the estimated model parameter K i for faulty scenario 2.
Processes 06 00231 g008
Figure 9. Estimated model parameter μ o for faulty scenario 3.
Figure 9. Estimated model parameter μ o for faulty scenario 3.
Processes 06 00231 g009
Figure 10. Residual of the estimated model parameter μ o for faulty scenario 3.
Figure 10. Residual of the estimated model parameter μ o for faulty scenario 3.
Processes 06 00231 g010
Table 1. Model parameters for the wastewater treatment process.
Table 1. Model parameters for the wastewater treatment process.
ParameterValueDescription
S c i n 168 mg/Lthe concentration of substrate in the inflow
S o i n 0 mg/Lthe concentration of dissolved oxygen in the inflow
q i n 14.8 mg/Lthe inflow rate
S o s 6 mg/Lthe dissolved oxygen mass at saturation
k 1 3.7the conversion coefficient of the substrate to biomass
k 2 1.0363the conversion coefficient of oxygen to biomass
b 0.0059 1/hthe endogenous respiration coefficient
k L a 16.8 1/hthe oxygen mass transfer coefficient
K i 3.753 mg/Lthe inhibition coefficient
K s 60 mg/Lthe half saturation coefficient
μ o 0.1916 1/hthe specific growth rate
Table 2. Faulty scenario for the wastewater treatment system.
Table 2. Faulty scenario for the wastewater treatment system.
Fault Kinetic Model ParameterFault 1Fault 2Fault 3
The concentration of substrate in the inflow, S c i n −30%--
The half saturation coefficient, K i -+30%-
Specific growth rate, μ o --−30%

Share and Cite

MDPI and ACS Style

Che Mid, E.; Dua, V. Fault Detection in Wastewater Treatment Systems Using Multiparametric Programming. Processes 2018, 6, 231. https://doi.org/10.3390/pr6110231

AMA Style

Che Mid E, Dua V. Fault Detection in Wastewater Treatment Systems Using Multiparametric Programming. Processes. 2018; 6(11):231. https://doi.org/10.3390/pr6110231

Chicago/Turabian Style

Che Mid, Ernie, and Vivek Dua. 2018. "Fault Detection in Wastewater Treatment Systems Using Multiparametric Programming" Processes 6, no. 11: 231. https://doi.org/10.3390/pr6110231

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop