You are on page 1of 5

Resources, Conservation and Recycling 54 (2010) 359–363

Contents lists available at ScienceDirect

Resources, Conservation and Recycling


journal homepage: www.elsevier.com/locate/resconrec

Modeling and optimization of biogas production from a waste


digester using artificial neural network and genetic algorithm
H. Abu Qdais a,∗ , K. Bani Hani b,1 , N. Shatnawi a
a
Civil Engineering Department, Jordan University of Science & Technology, P.O. Box 3030, Irbid 221100, Jordan
b
Civil and Architecture Engineering Department, Qatar University, P.O. Box 2713, Doha, Qatar

a r t i c l e i n f o a b s t r a c t

Article history: Artificial neural networks (ANNs) and genetic algorithms (GA) are considered among the latest tools that
Received 10 March 2009 are used to solve complicated problems that cannot be solved by conventional solutions. The present
Accepted 30 August 2009 study utilizes the ANN and GA as tools for simulating and optimizing of biogas production process from
the digester of Russaifah biogas plant in Jordan. Operational data of the plant for a period of 177 days
Keywords: were collected and employed in the analysis. The study considered the effect of digester operational
Biogas
parameters, such as temperature (T), total solids (TS), total volatile solids (TVS), and pH on the biogas
Digester
yield. A multi-layer ANN model with two hidden layers was trained to simulate the digester operation
Waste
Artificial neural networks
and to predict the methane production. The performance of the ANN model is verified and demonstrated
Optimization the effectiveness of the model to predict the methane production accurately with correlation coefficient
Genetic algorithms of 0.87.
Jordan The developed ANN model was used with genetic algorithm to optimize the methane size. The optimal
amount of methane was converged to be 77%, which is greater than the maximum value obtained from
the plant records of 70.1%. The operational conditions that resulted in the optimal methane production
were determined as temperature at 36 ◦ C, TS 6.6%, TVS 52.8% and pH 6.4.
© 2009 Elsevier B.V. All rights reserved.

1. Introduction and Denmark leading the field (Nickolas et al., 2004). According to
Nacke et al. (2005), by the end of 2005, in Germany there were more
Anaerobic digestion is a process in which the biodegradation of than 2000 biogas plants with different sizes.
organic matter occurs in the absence of dissolved oxygen. It is a well The time during in which the mixture of wastewater stay in
established and world-wide applied technology (DeBaere, 2000) to the digester with microbial population to produce the biogas is
stabilize municipal sewage sludge, treat organic wastes, products called the hydraulic retention time (HRT). This time is very impor-
and wastewaters from industries, households and farms. The main tant in the design of biogas digesters (Jatinder and Sarbjit, 2004).
product of this process is a group of gases (biogas), which con- Anaerobic bacteria (the methanogens), are sensitive to the acid con-
sists mainly of methane gas (50–60%) and carbon dioxide (30–40%) centration where the optimum pH value found within a range of
with some other trace gases, such as hydrogen sulfide and ammo- 6.5–8.5 (Nickolas et al., 2004) also according to Nickolas the con-
nia. The resulted methane gas is a highly energetic biogas which centration of ammonia increases at the end of the processes so the
is used in combined heat and power generators. The development pH level will be between 7.2 and 8.2.
of biogas technology took place at the beginning of the 19th cen- Temperature is an important factor that determines the rate
tury. However, owing to the energy crises of the 1970s, anaerobic of digestion. Most of the digesters are operated in the mesophilic
digestion technology underwent significant development (Alvarez, range (30–35 ◦ C), but it is possible to operate the digesters in the
2003; Strik et al., 2005). thermophilic range (approximately 55 ◦ C) with higher operating
Anaerobic digestion systems for fermentation of organic matters costs, lower process stability, and more structural requirements
used widely with commercial digesters of 70–5000 m3 , small units (de la Rubia et al., 2002). The carbon to nitrogen (C/N) ratio for
are used mainly for heating, while large units for generation of elec- optimal biogas production should be of the range 25–30. When a
tricity. Much of the technology is based in Europe, with Germany batch of waste received with high C/N ratio, this implies a complex
organic matter which is not easily biodegradable; therefore, some
adjustment is required, like the addition of high content of nitroge-
∗ Corresponding author. Tel.: +962 795885235; fax: +962 27201076. nous waste. On the other hand, low C/N ratio needs straw or crop
E-mail address: hqdais@just.edu.jo (H. Abu Qdais). residues to be added, so as to adjust the carbon content (El-Hinnawi
1
On leave from Jordan University of Science and Technology. P.O. Box 3030, Irbid
and Biswas, 1981).
Jordan.

0921-3449/$ – see front matter © 2009 Elsevier B.V. All rights reserved.
doi:10.1016/j.resconrec.2009.08.012
360 H. Abu Qdais et al. / Resources, Conservation and Recycling 54 (2010) 359–363

According to Koelsch et al. (2001) the total solids content range et al. (2001) introduced a way for optimizing low nitrogen oxides
is about 8–13% and 80% of the solids are volatile solids. One-half (NOx ) combustion process for a pulverized coal utility boiler by
of the volatile solids (the biodegradable ones) are converted to using ANN and GA. ANN was used to describe the NOx emissions,
methane and carbon dioxide. Typical solid separation of the efflu- while GA was used to optimize the solution of the ANN model.
ent will remove 4% of the solids from the effluent. About one-third The main objective of this study is to utilize the ANN as a tool for
of the solids are converted to gas, one-third can be separated out simulating, monitoring and controlling the production of methane
mechanically, and one-third remains in the separated liquid efflu- biogas from the digester of Russeifah biogas plant in Jordan. In
ent (Mattocks and Mark, 2000). addition, the trained ANN model is employed in optimizing the
An important step in the operation of biogas digesters is the con- production of methane from the reactor by using the GA tool is
trol of the digestion process to maximize the methane production another objective of the study.
from the waste biodegradation process. Artificial neural networks Genetic algorithm (GA) is a biologically inspired computational
are massively parallel computational models for data represen- model that imitates the natural processes of evolution and adapta-
tation and information processing. Neural network-based have tion to exhibit a complex computational behavior (Holland, 1975
attributes that make them potentially successful in dealing with and Goldberg, 1989). This computational model does not require
most of simulation and prediction problems. They are capable of prior knowledge of the problem domain or the solution space. This
learning complex highly nonlinear relations and associations from feature limits the designer and makes problems more complex
a large body of data due to their intrinsic nonlinearity, adaptabil- and insufficiently understood. In engineering design, the compu-
ity, noise immunity, generalization ability and robustness. ANNs tational model using the genetic algorithm differs fundamentally
are powerful data modeling that are able to capture and repre- from using the traditional approach. In the traditional approach
sent complex input/output relationships like the case in anaerobic the design problem is modeled as mathematical problem and use
digestion. Therefore, ANN lends itself as an efficient tool to control mathematical solution technique, but in the genetic algorithm no
and simulate the anaerobic digestion process to produce the biogas. need to separate the modeling and solution parts
Neural networks have been used in anaerobic digestion systems
to describe trace gases (Strik et al., 2005), controlling the addition of
2. Biogas plant description
NaHCO3 buffer (Guwy et al., 1997), digester start up and recovery
(Holubar et al., 2003), advanced control and prediction of biogas
Russeifah biogas plant belongs to Jordan Biogas Company (JBC).
(Holubar et al., 2002)
It is located at a closed Russeifah landfill site, about 5 km east
Holubar et al. (2002) used different ANNs to model and con-
to Amman City. The main objective of the plant is to reduce the
trol the production of methane from anaerobic continuously stirred
green house gas emissions form the landfill, as well as utilizing the
tank reactors that were operated under different organic loading
fresh organic waste in the production of methane gas for power
rates. It was concluded that the developed models could effectively
generation. The plant consists of two parts. The first part receives
predict the gas production and composition from the reactors.
the biogas from wells of the closed landfill, while the second part
Strik et al. (2005) developed ANN model to predict trace gases in
receives the biogas from the digester, where fresh organic waste is
biogas stream such as hydrogen sulfide and ammonia. The model
received and subjected to biomethanization process. The primary
was capable to predict the trace gases successfully even under
objective of the present study is to optimize the digestion process
dynamic conditions. In their study Ozkaya et al. (2007) presented
in the second part of the plant. The digester daily capacity is 60 tons
a neural network model for predicting the methane fraction in
of organic waste. The main waste received by the plant is coming
landfill gas originating from field-scale landfill bioreactors with
from slaughterhouse, restaurants, fruits and vegetable markets, and
and without leachate recirculation. The methane fraction in land-
from dairy industry. Fig. 1 shows the layout of the digestion part of
fill gas from the bioreactors was modeled using a two layer ANN.
the plant.
Parameters such as pH, alkalinity, chemical oxygen demand, sul-
fate, conductivity, chloride and waste temperature were used as
model input parameters. The study determined the optimal archi- 3. Development of ANN model
tecture of the ANN and recommended further development of ANN
to be applied in predicting the hourly methane production from Operational parameters of Russaifah biogas plant were collected
landfills and optimizing the leachate recirculation strategy. Zhou and acquired from the plant records for the year 2003. The data

Fig. 1. Layout of the digestion process at Russaifah biogas plant.


H. Abu Qdais et al. / Resources, Conservation and Recycling 54 (2010) 359–363 361

Table 1
Plant operating parameters that are used in the development of ANN model.

Unit Parameter No. of Data Mean Max Min SD Mode

Mixing tank % Total solids (TS) 177 4.24 6.240 1.094 0.84 4.304
% Volatile solids (VS) 177 45.302 67.576 22.376 7.767 40.00
pH value 177 5.645 6.222 5.292 0.174 5.598
Temperature (◦ C) 177 36.659 40.400 33.800 1.441 36.00
% Total solids (TS) 177 2.726 3.973 1.102 0.424 2.600

Reactor % Volatile solids (VS) 177 45.385 74.780 30.356 8.071 42.000
pH value 177 7.603 9.996 7.259 0.347 7.596
% Total solids (TS) 177 2.122 2.594 1.569 0.218 7.899

Buffering tank % Volatile solids (VS) 177 42.485 59.053 30.352 5.629 39.970

Fig. 2. Architicture of the ANN model.

Fig. 3. Training and performance curve for the reactor model.


collected included total solids (TS), total volatile solids (TVS) and
pH of the feed materials to the digester. In addition, data on the
operating temperature of the reactor were obtained. The collected
solids and pH, while the output was the fraction of methane (%CH4 )
data were subjected to a screening process to decide which are the
in the produced biogas stream from the digester. The model train-
most consistent and relevant operational parameters that should
ing process at 100 epochs and 177 data point for each of the input
be used in the development of the ANN model. Statistical analysis
parameters revealed a performance MSE of 6 × 10−5 (Fig. 3). To
for the selected data was conducted to identify the data gap and to
enhance the ANN and to decrease the value of error during the sim-
interpolate the missed data. A group of operational parameters with
ulation process, the simulation was conducted by using time-series
each having 177 daily data points were selected as shown in Table 1.
data learning in which the model output is set as a time dependent
In order to introduce the data into the neural network model to
for the previous three days in concern. The produced model was
simulate the plant operations, scaling of the data was performed.
The scaling level depends on the maximum value of each category
of data. Doing that, all of the screened data were converted into
ranges of [0–1], so as to be suitable for treatment by the sigmoid
activation function in the ANN.
Collected data were fed to initial ANN model and connection
weights were adjusted using back-propagation (BP). The training
method (BP) was conducted using the ANN toolbox embedded in
MATLAB (2004). In order to obtain the best model that simulates
the digester operations with minimal errors, several ANN models
were generated and tested. A sigmoid activation function was used
as it is the most popular function that describes nonlinear rela-
tionships such as the case in biogas production (Kanat and Saral,
in press). An ANN model with two hidden layers (each includes 25
neurons) and sigmoid activation functions were able to simulate
the digester operation with a good accuracy. The model topology
and architecture are depicted in Fig. 2.

4. Results and discussion

The inputs to the ANN model were selected to be four opera-


tional parameters, namely temperature, total solids, total volatile Fig. 4. Simulation and validation of methane production from the digester.
362 H. Abu Qdais et al. / Resources, Conservation and Recycling 54 (2010) 359–363

operational parameters to optimal level as given in Table 2, will lead


to increase of methane products by 6.9%. Almost similar increase
value was obtained by Misi and Foster (2001) by digesting of a
mixture of agricultural wastes.

5. Conclusion and recommendations

In this study a diagnostic model based on neural logic was


developed to simulate the production of biogas from the digester
of biogas plant in Jordan. The back-propagation ANN model with
two hidden layers and sigmoid activation functions was found
to capture most of the important patterns in methane genera-
tion from the biogas digester as it fitted well with the measured
methane fraction. The validation of ANN model was also found
Fig. 5. Actual versus predicted methane fraction from the digester. highly correlating to the real data with determination coeffi-
cient (R2 = 0.87), which suggests that the ANN is a useful tool
in predicting biogas production from digesters. The study also
validated using a set data for another 50 operating days that were illustrated the importance of model learning with history in accu-
not used in the training of the original model. rate description of the methane production process. Integration
Fig. 4 illustrates the simulation and the validation processes for of the ANN model with GA model resulted in identification of
the methane production from the digester. It can be seen that the the optimal operational digester parameters that lead to increase
ANN was capable of prediction the methane fraction very accu- of methane yield by 6.9%. The study demonstrated that ANN
rately, which implies that the ANN learned the relation between and GA are useful tools for simulating and optimizing the bio-
the input to the digester and the methane fraction in the biogas gas production from biogas digester under various operational
stream very well. The correlation between the data used in the conditions.
validation process and the predicted values of methane fraction It is recommended that future studies should be directed to
is presented in Figs. 4 and 5. The relatively high determination study the impact of the feed waste composition on the operational
coefficient (R2 ) value of 0.87 suggests that the modeled values of parameters, as well as, on the amount of the biogas generated from
the methane fit well with the measured values used for valida- the digester. The results obtained from this study should be tested
tion. and verified on the full scale operation of the plant in order to
GA is a class of parallel iterative and global search algorithm optimize the methane generation.
with certain learning ability by using crossover and mutation oper-
ators to solve optimization problems (Gen, 1997). In an attempt to
References
obtain the optimal combination of the digester operational param-
eters for maximum methane production, the ANN digester model Alvarez JM. Biomethanization of the organic fraction of municipal solid wastes. 1st
was integrated with a GA model. To achieve that, the output of ed. IWA Publishing; 2003, 1.
the developed ANN was utilized in calculating the values of the DeBaere L. State-of-the- art of anaerobic digestion of solid waste in Europe. Water
Science and Technology 2000;41:283–90.
fitness function for the GA routine available in MATLAB Genetic de la Rubia MA, Perez M, Romero LI, Sales D. Anaerobic mesophilic and thermophilic
Algorithm toolbox. First, the GA model was run without constraints municipal sludge digestion. Chem Biochem Eng 2002;16:119–24.
with a default value of 0.8 for crossover fraction, and default popu- El-Hinnawi E, Biswas AK. Renewable sources of energy and the environment, natural
resources and the environmental series, vol. 6, 1st ed.; 1981.
lation size of 20. This returned a best fitness value of about 74%.
Gen MC. Genetic algorithms and engineering design. New York, USA: Wiley and
Another run was carried out with a population size of 200 and Sons; 1997.
crossover fraction equals to 0.85. This has resulted in an increase Goldberg DE. Genetic algorithms in search, optimization & machine learning. Read-
of the fitness value to 75.2%. It was concluded that changing the ing, Mass: Addison–Wesley; 1989.
Guwy AJ, Hawkes FR, Wilcox SJ, Hawkes DL. Neural network and on–off con-
constraints of the GA problem has a direct and important effect on trol of bicarbonate alkalinity in a fluidised-bed anaerobic digester. Water Res
the enhancement of the optimization. Upper and lower boundaries 1997;31:2019–25.
were changed iteratively and the values of fitness function were Holland JH. Adaptation in natural and artificial systems. Ann Arbor, MI: University
of Michigan Press; 1975.
studied according to the corresponding changes. Values of the best Holubar P, Zani L, Hager M, Froschl W, Radak Z, Braun R. Advanced controlling
combination of biogas parameters are also summarized in Table 2. of anaerobic digestion by means of hierarchical neural networks. Water Res
These values were selected according to the maximum value of 2002;36:2582–8.
Holubar P, Zani L, Hager M, Froschl W, Radak Z, Braun R. Start up and recovery of
CH4 %. a biogas-reactor using hierarchial neural network-based control tool. Journal of
The maximum value of methane fraction was found to be 77% Chemical Technology and Biotechnology 2003;78:847–54.
as obtained by GA optimization process. Comparing this value of Jatinder SK, Sarbjit SS. Comparative study of economics of different models of
family size biogas plants for state of Punjab, India. Energy Convers Manage
the methane, with the maximum value of 70.1% of the methane 2004;45:1329–41.
produced in the real digester, implies that controlling the digester Jordan Biogas Company, Overview [Online], available from URL
<http://www.jordanbiogas.com> [accessed September 2003].
Kanat G, Saral A. Estimation of biogas production rate in thermophilic USAB reactor
using artificial neural networks. Environ Modell Assess; in press.
Table 2 Koelsch RK, Fabian EE, Guest RW, Campbell JK. Anaerobic digesters for dairy farms,
Optimal values of digester operational parameters for maximum agricultural and biological engineering extension bulletin 458. Ithaca, NY: Cor-
methane production as determined by GA optimization process. nell University; 2001, 14853.
Mattocks RP, Mark AM. Fate of incoming solids to measure manure digester perfor-
Parameter Optimal value mance. In: Animal, Agricultural and Food Processing Wastes Proceedings; 2000.

Temperature ( C) 36.23 p. 187–93.
Total solids (mg/1) 6.59 Misi S, Foster C. Batch Co-digestion of multicomponent agro-wastes. Bioresource
Technology 2001;80:5–8.
Volatile solids (mg/1) 52.85
Nickolas J, Themelis S, Verma S. Anaerobic digestion of organic waste in MSW. Waste
pH 6.4
Management World; 2004, January–February. p. 41–47.
H. Abu Qdais et al. / Resources, Conservation and Recycling 54 (2010) 359–363 363

Ozkaya B, Demir A, Bilgili M. Neural network prediction model for the methane frac- Nacke T, Brückner K, Göller A, Kaufhold S, Nakos X, Noack S, et al. New type of dry
tion in biogas from field-scale landfill bioreactors, 22. Environmental Modeling substances content meter using microwaves for application in biogas plants.
& Software; 2007, Issue 6, p. 815–822. Anal Bioanal Chem 2005;383:752–7.
The Math works Inc., MATLAB. Natick, MA; 2004. Zhou H, Kefa C, Jianbo M. Combining neural network and genetic algorithms
Strik D, Domnanovich A, Zani L, Braun R, Holubar P. Prediction of trace compounds to optimize low NOx pulverized coal combustion. Energy Policy 2001;80:
in biogas from anaerobic digestion using the MATLAB Neural Network Toolbox, 2163–9.
20. Environmental Modeling & Software; 2005. p. 803–810.

You might also like