Professional Documents
Culture Documents
Wastewater AD PDF
Wastewater AD PDF
Water Science and Technology Vol 43 No 7 pp 175–182 © 2001 IWA Publishing and the authors
treatment plants: software sensors and controllers for an
anaerobic digester
O. Bernard*, M. Polit**, Z. Hadj-Sadok*, M. Pengov***, D. Dochain****, M. Estaben** and
P. Labat**
*INRIA, COMORE Project, BP93, 06902 Sophia-Antipolis Cedex, France
**Laboratoire de Physique Appliquée et d’automatique, Université de Perpignan, 52 av. de Villeneuve,
66860 Perpignan, France
***Centre de Robotique, ENSMP, 60 bld St-Michel, 75272 Paris, France
****CESAME, UCL, Bât. Euler, Av. G. Lemaître, 4-6, 1348, Louvain-La-Neuve, Belgium
Abstract A mass balanced based model representing the dynamical behaviour of anaerobic digester has
served as a basis for the design of software sensors for the concentration of inorganic carbon, alkalinity and
volatile fatty acids. The predictions of the sensors are close to the actual off-line measurements. The model
has also been used to design a model-based adaptive linearizing controller and a fuzzy controller whose
objective is to regulate the ratio of the intermediate alkalinity over the total alkalinity below some desired value
(0.3) under which the process is assumed to remain in stable conditions and avoid VFA accumulation. Both
controllers were calibrated via extensive numerical simulations and implemented. The controllers proved
successful in maintaining the ratio of TA over PA below 0.3, even in presence of large variations of the
organic load.
Keywords Asymptotic observers; anaerobic digestion; fuzzy control; adaptive linearizing control
Introduction
Anaerobic wastewater treatment plants can become unstable under certain circumstances.
Here we propose a feedback control loop to overcome this drawback. The anaerobic
process is known to be very sensitive to the alkalinity of the medium, and therefore to sta-
bilise the process we develop controllers that regulate its alkalinity. More precisely the con-
troller objective is to regulate the ratio of the intermediate alkalinity (IA) over the total
alkalinity (TA) below some desired value (0.3) under which the process is assumed to
remain in stable conditions and avoid volatile fatty acids (VFA) accumulation. Two differ-
ent approaches are considered. The first approach is based on a mass balance model
(Bernard et al., 2000). The model has been first used to design a software sensor that com-
putes the concentration of COD, inorganic carbon, alkalinity and VFA in the digester. We
use the predictions of this software sensor to design an adaptive linearizing controller. We
compare this controller with a fuzzy controller based on a set of fuzzy rules.
= D( z1in − z1 )
dz1
(2)
dt
k k k
= D( z2in − z2 ) − 2 3 + 3 QCH 4 + 3 QCO 2
dz2 k (3)
dt k4 k6 k6 k6
= D( z3in − z3 ) − 1 3 QCH 4
dz3 kk (4)
dt k2 k6
O. Bernard et al.
where
k2 k
z1in = Zin , z2in = S2in − CTlin , z3in = S1in + T S2in (5)
k4 k2
Figure 1 Software sensor predictions for COD, VFA, total alkalinity Z and bicarbonate B on the pilot plant.
176 The predictions (– – –) are compared with the real-life data
Note that the VFA corresponds to the intermediate alkalinity (IA) and Z to the total
alkalinity (TA).
O. Bernard et al.
model of the process.
The control actions will be the addition of alkalinity in the influent and the influent flow rate.
In fact this control problem can be decoupled in two control problems: as the dynamics of Z
is very simple, it is trivial to achieve the desired alkalinity in the fermenter, indeed we just
have to adjust Zin to the objective value Z*. Then we have to control w5 to the desired value
w5*. Our closed-loop dynamics objective is to assign the dynamics of w5 as follows:
dw5
dt
(
= λ w5∗ − w5 , λ > 0) (12)
where λ is a parameter that help to tune the convergence rate of the controller. By combin-
ing the dynamical equation in w5 and the desired closed-loop dynamics (12), we obtain then
the following control law:
D=
( )
λZ w5∗ − w5 + k3 qM / k6 − k2 µ1 X1 (13)
S2in − w3 Zin
Because the control law tends to force a linear closed loop dynamics (12) to the nonlinear
process, the control law is called a linearizing control law (see Bastin and Dochain, 1990,
Dochain and Perrier, 1993 and Perrier and Dochain, 1993). One way to eliminate X1 (which
is not measured on line) and µ1 (which is basically unknown or at least largely uncertain) is
to consider a quasi steady-state (QSS) approximation for the mass balance equation of the
organic substrate S1. This gives the following algebraic equation:
1
µ1 X1 = ( DS1in − S1 ) (14)
k1 177
D=
( )
λZ w5∗ − w5 + k3 qM / k6
(15)
S2in − w5 Zin + k2 / k1 ( S1in − S1 )
Note that this control law can reach values higher than the dilution rate, which was applied
a priori. This control law has been tested in numerical simulations. It turns out to be
efficient, and fast enough to be applied in practice.
O. Bernard et al.
dθˆ
= C1 ( w5∗ − w5 ), C1 > 0 (16)
dt
This estimation approach is known as a Lyapunov-based approach (see e.g. Bastin and
Dochain, 1990). In practice, the choice of C̄1 depends on the value of the methane gas flow
rate qM as follows:
C1
C1 = , C1 > 0 (17)
qM
This allows us to have closed-loop dynamics of the whole system (process + controller
(15)(16)) independent of the state of the process (see Perrier and Dochain, 1993). Besides the
advantage of estimating a physical parameter (the ratio of the yield coefficients k3 and k6), the
above adaptation mechanism introduces an integral which is essential to guarantee zero
steady-state error of the closed-loop system. The second important modification of the control
law consists of replacing the value of S1 by an estimate, typically that given by the asymptotic
observer (S2 and Z are measured on-line). Another important feature of the practical imple-
mentation of the controller is the limitation of the control action when the value of w5 is taking
larger values than w5*, above a certain limit (chosen here equal to 0.01). The implementation of
the control law includes an anti-windup in order to avoid oscillations due to the integral action
when the control input reaches its bounds (i.e. 0 or the maximum influent flow rate). Finally the
control algorithm software includes a number of test about the different variables in order to
prevent undesired or absurd behaviour of the control system. It is essential to note that the
design of the controller induces in essence a lot of flexibility in its implementation, depending
on the quality of information concerning e.g. the measurement of the influent load and flow
rate. The controller has been calibrated and validated via extensive numerical simulations.
The input fuzzy subsets: the input fuzzy subsets have 3 parts, 2 trapeziums and one triangle
(Figure 3). Their bounds were defined with experimental data and function of the aims of
178 the controller. The inputs are combined with an “and” operator (min).
O. Bernard et al.
Figure 3 Membership functions for the total alkalinity, alct (left) and for the alkalinity ratio, rapalc (right)
The fuzzy subset for the output: the controller computes the influent flow rate Qin to be
applied. This value is obtained, from the set point value as follows:
Qin = Qin + Ω ( alct, rapalc)
The fuzzy subsets for the fuzzy dilution rate function Ω(alct, rapalc) are depicted on Figure
4. There are 3 triangles and 2 trapeziums. The fuzzy rules are aggregated with the “or” oper-
ator (max). The final result is obtained calculating the centroid of the output.
The fuzzy controller was first calibrated using extensive numerical simulations, and then
applied to the real processes (pilot scale). 179
Experimental results
The adaptive linearizing controller has been successfully implemented on the pilot plant in
Narbonne. Figure 2 presents one set of control results. The figure compares open-loop
(without control) results and closed-loop (with the adaptive linearizing controller) results.
During both experiments (open loop, and closed loop), the organic load have been changed
several times, between 5 and 20 gCOD/l: this corresponds, in particular, to an increase to
20 gCOD/l, to variations that can possibly induce acid accumulation and process instability
O. Bernard et al.
in open loop. Note in particular that the ratio IA/TA is always below 0.3 with the adaptive
linearizing controller, while it grew to values larger than 0.5 in open loop. This corresponds
to an accumulation of VFA in open loop: these have reached a value larger than 2.5 meq/l.
The VFA remained always below 1.5 meq/l in closed loop with the adaptive linearizing
controller. This illustrates the ability of the designed controller to maintain the process in
stable conditions even in presence of the varying organic load.
The results obtained with the fuzzy controller are on the Figure 5. In every situation the
fuzzy controller maintained the alkalinity ratio below 0.3 (in fact at 0.2) and the total alka-
linity between 50 and 80 meq/l. The problems that can occur concern the alkalinity meas-
urements (see for example t = 5640 h.). If the values are false (in term of fault coming from
180 Figure 2 Control of the ratio of the intermediate alkalinity over the total alkalinity on the pilot plant
O. Bernard et al.
the sensor for example), the controller will calculate a false value. In this situation, the Fault
Detection System has to detect and to solve the problem.
Discussion
Both controllers (adaptive linearizing controller and fuzzy controller) proved to exhibit
good performances on the pilot plant. The merits and drawbacks of both controllers can
indeed be summarized as follows. One of the basic feature of the structure of the fuzzy con-
troller is its simplicity: it is therefore well adapted in situations when only rough knowledge
about the process dynamics is available. However it has the disadvantage to require the
knowledge of the mean value of the influent flow rate Q¯in: good performance may depend
on the quality of the knowledge concerning this value. One of the main merit of the adaptive
linearizing controller is its flexibility: its design is based on a “physical” (mass balance)
model, yet the implementation may consider different level depending on the knowledge
about the process dynamics. For instance, the feedforward term with respect to the influent 181
concentration Sin can be set to a constant value if Sin is not accessible for on-line measure-
ment. Similarly, good knowledge about the process kinetics (typically, in case of the exis-
tence of a reliable model for the specific growth rate, the control law can be easily modified
to include it). Obviously, the main drawback comes its model-based structure: the worse
the model, the worse the control performance. It is also true that one can expect better
dynamical performance from a controller as long as the dynamical model on which it is
based is reliable, or more precisely for operating conditions for which it is reliable.
O. Bernard et al.
Therefore the dynamical model development can be a critical issue with that respect.
Conclusion
The tests performed on the observers and on the two types of controllers have shown that in
the two kinds of digesters (pilot and industrial size), the results are quite reliable. For the
controllers, they are together able to maintain the process in stable conditions even in pres-
ence of the varying organic load. The choice between the two controllers will be imposed
by the situation, the decision being taken by the supervisor system. Particularly, this deci-
sion will take into account the working of the sensor of alkalinity and also the validity range
of the model used for the adaptive controller.
Acknowledgements
This work was founded by the Belgian Programme on Interuniversity Poles of Attraction
initiated by the Belgian State, Prime Minister’s Office for Science, Technology and
Culture, the CNRS and the European Commission through the Project FAIR-CT 96-1198
(AMOCO). The scientific responsibility rests with its authors.
References
Bastin, G. and Dochain, D. (1990). On-line Estimation and Adaptive Control of Bioreactors, Elsevier,
Amsterdam.
Bernard O., Hadj-Sadok, Z. and Dochain, D (2000), Advanced monitoring and control of anaerobic
wastewater treatment plants: II. Dynamical model development and identification. Preprint of
Watermatex 2000, 3.57–3.64.
Dochain, D. and Perrier, M. (1993).Control design for nonlinear wastewater treatment processes. Wat. Sci.
Tech., 28(11–12), 283–293.
Graef S.P. and J.F. Andrews (1974), Mathematical modeling and control of anaerobic digestion. AIChE
Symp. Series, Water 1973, G.F. Benett (ed.). 70 (136), 101–131.
Perrier, M. and Dochain, D. (1993). Evaluation of control strategies for anaerobic digestion processes.
Int. J. Adaptive Cont. Signal Proc., 7(4), 309–321.
Mamdani, E. (1975). An experiment in linguistic synthesis with a fuzzy logic controller. Int. J. on Man
Machine Studies, 7, 1–13.
182