SlideShare a Scribd company logo
1 of 7
Download to read offline
TELKOMNIKA, Vol.15, No.2, June 2017, pp. 912~918
ISSN: 1693-6930, accredited A by DIKTI, Decree No: 58/DIKTI/Kep/2013
DOI: 10.12928/TELKOMNIKA.v15i2.6142  912
Received February 13, 2017; Revised April 30, 2017; Accepted May 14, 2017
Estimation of pH and MLSS using Neural Network
Nur Sakinah Ahmad Yasmin
1
, Muhammad Sani Gaya
2
, Norhaliza Abdul Wahab*
3
, Yahaya
Md Sam
4
1,3,4
Control & Mechatronics Engineering, Faculty of Electrical Engineering, Universiti Teknologi Malaysia,
81310 Skudai, Johor Bahru, Malaysia
2
Department of Civil Engineering, Kano University of Science & Technology, Wudil
*Corresponding author, e-mail corresponding author: aliza@fke.utm.my
Abstract
The main challenges to achieving a reliable model which can predict well the process are the
nonlinearities associated with many biological and biochemical processes in the system. Artificial intelligent
approaches revolved as better alternative in predicting the system. Typical measured variables for effluent
quality of wastewater treatment plant are pH, and mixed liquor suspended solids (MLSS). This paper
presents an adaptive neuro-fuzzy inference system (ANFIS) and feed-forward neural network (FFNN)
modeling applied to the domestic plant of the Bunus regional sewage treatment plant. ANFIS and feed-
forward neural network techniques as nonlinear function approximators have demonstrated the capability
of predicting nonlinear behaviour of the system. The data for the period of two years and nine months
sampled weekly (140 week samples) were collected and used for this study. Simulation studies showed
that the prediction capability of the ANFIS model is somehow better than that of the FFNN model. The
ANFIS model may serves as a valuable prediction tool for the plant.
Keywords: fuzzy inference system, neural network, activated sludge process, prediction
Copyright © 2017 Universitas Ahmad Dahlan. All rights reserved.
1. Introduction
Due to efficiency and cost-effectiveness, activated sludge system becomes the most
widely used technology for removal of organic nutrients from wastewater. The system main
concerns are reduction of the pollutants' concentrations to the level nature can handle and
rejection of disturbances for smooth operation at minimal cost. To achieve these conveniently, a
reliable model is essential for better removal of pollutant. Suitable model is absolutely crucial not
only for control design but also for optimal and trouble-free operation of the system.
The existing mathematical models developed by the international association of the
water quality (IAWQ) task group such as activated sludge model no.1 (ASM1) for organic
carbon and nitrogen removal, it's updated version ASM2, which includes phosphorus removal,
the ASM2d, an extension of ASM2 and ASM3 the new version of ASM1, have greatly
contributed immensely in describing the complex biological activities of the microorganisms
responsible for degrading the pollutants in the wastewater and interactions occurring in the
system [1]. ASM1 was designed for domestic wastewater treatment describing nitrification and
de-nitrification processes which involved the microorganism activities. It is important to provide
favourable conditions for the microorganisms so that the wastewater can be properly treated
because pollutants in high concentration can pose a threat to the receiving waters [2]. Arguably,
these models are structurally complex to use, difficult to solve analytically and do not captured
some essential parameters such as pH and mixed liquor suspended solids (MLSS) which are
crucial in revealing the condition of an activated sludge system [3, 4]. Therefore, there is an
urgent need for a straightforward and reliable model of pH and MLSS.
Surveying the literature reveals that several simplified models using different plant
configurations either through simulations or practically were implemented particularly based on
the concept of the reference model (ASM1). Linearize models in [5] demonstrated effectiveness
in tracking the responses of ASM1 and maintaining the states biological interpretations.
Analytical model performed remarkably in predicting the process and conserved the nonlinear
nature of the reference model [6]. Artificial intelligent methods such as fuzzy logic, neural
network and hybrid system emerged as an alternative and exhibited high level of accuracy in
TELKOMNIKA ISSN: 1693-6930 
Estimation of pH and MLSS using Neural Network (Nur Sakinah Ahmad Yasmin)
913
predicting the process [7, 8]. However, most of these suggestions were applied either to a
completely mixed tank and industrial wastewater.
Therefore, it is the objective of this paper to investigate the feasibility and effectiveness
in predicting a pH and MLSS parameters in the step-feed activated sludge wastewater
treatment plant. Neural network techniques were used in several real-world applications and
have proven to be effective in handling of a complex noisy data, uncertainty and nonlinearity.
The success of neural network is as the result of fast learning ability and adaptation. The
integration of neural network and fuzzy system yielded an efficient system referred as neuro-
fuzzy system. One of most commonly used neuro-fuzzy system is ANFIS. Similar to neural
network, adaptability and ability to deal with uncertainty makes ANFIS gained preference. The
prediction performances of the models were evaluated in terms of root mean square error
(RMSE), mean absolute deviation (MAD), mean absolute percentage deviation (MAPD) and
correlation coefficient (R). MAPD often referred as mean absolute percentage error (MAPE), a
low value of MAPE indicate accurate prediction [9]. Using this criterion, the model that produces
effective prediction regarding the considered variables could be obtained. The model obtained
would serve as a foundation for implementation of the control algorithm and can result in
smooth and efficient operation.
2. Research Method
2.1. Bunus Regional Sewage Treatment Plant
The Bunus regional sewage treatment plant (RSTP) is located on the North/Eastern of
Kuala Lumpur, Malaysia. The plant has daily average capacity of 87,000m3/d, utilizes advance
step-feed activated sludge process for biological oxygen demand (BOD), chemical oxygen
demand (COD), suspended solids (SS), oil and grease (O&G) and nitrogen removal. The
influent wastewater enters to the primary settler in which the wastewater is retained to allow the
settle-able organics and floatable solids to settle at the bottom of the clarifier by gravity
sedimentation. The effluent from the primary settler flows to the biological reactor unit consisting
of two anoxic tanks and two aerobic tanks as shown in Figure 1.
Figure 1. Bunus RSTP plant layout
2.2. Data Collection
The recorded data from SCADA system of Bunus RSTP for the period of two years and
nine months sampled weekly (140 week samples) were collected and used for this study. The
main measured variables in the wastewater treatment plant are parameters such as BOD, COD
and SS, which reveal the efficiency of the treatment plant while pH and MLSS are vital for
effluent quality and dissolved oxygen (DO), MLSS, nitrate and ammonium can be used in
optimizing the plant. In this study, only pH and MLSS were considered for predicting the effluent
quality.
2.3. ANFIS Model Implementation
The full scale data sampled weekly of 140 samples of the Bunus RSTP were utilized to
develop the models. The measured data are normalized using the expression given in equation
(1), so that all the data values are between zero (0) and one (1).
minmax
min




 i
i
x
X (1)
Anoxic
Tank 1
Anoxic
Tank 1
Anoxic
Tank 1
Anoxic
Tank 1
Influent
wastewater
Primary
settler
Secondary
settler
Effluent
Primary
sludge
Returned sludge
Aeration Unit
Excess
sludge
Anoxic
Tank 1
 ISSN: 1693-6930
TELKOMNIKA Vol. 15, No. 2, June 2017 : 912 – 918
914
where iX is the normalized data point, ix is the data sample, min is the minimum value among
the data samples and max is the maximum value among the data sample. The normalization
allows the data to be transformed into trainable and convenient for the network. Furthermore, it
makes training faster and reduces the chances of duplication of data. The normalized data were
subdued to the analysis of principal component analysis (PCA) to obtain relevant information
and reduce the dimensionality of the input vector. Using the PCA, three principal components
(PCs) were extracted which are sufficient to explain the over 85% variation within the data set.
Using Euclidean distance clustering algorithm, the components that contributed less 10% to the
total variation within the data are removed. The Euclidean distance is most widely chosen
distance and simply is the distance in multidimensional space, which is computed as:
distance  
2/12
)(),( iii nmnm (2)
where m and nare vectors respectively.
Based on the Euclidean distance clustering analysis and PCA, the 6
th
data point of
Figure 2 and 6
th
, 35
th
and 61
th
data points of Figure 3 are different from the remaining data.
These are outliers and were included as part of the testing data.
Figure 2. Loading vectors for 1
st
and 2
nd
PCs
Figure 3. Loading vectors for 1
st
and 3
rd
PCs
The normalized data are divided into 126 samples for training and 14 samples for
testing of the model. A large percentage of the data set should be used during the training stage
since ANFIS is quite adapted nonlinear functional dependency between the influent and effluent
variables [10]. This could also result in avoiding the problem of over fitting, which led to large
testing error. The selection of training and testing data can be done statistically or arbitrarily as
suggested in [11]. However, in this study, the selection was done arbitrarily. To determine the
TELKOMNIKA ISSN: 1693-6930 
Estimation of pH and MLSS using Neural Network (Nur Sakinah Ahmad Yasmin)
915
structure of the fuzzy inference system (FIS), the function ‘‘genfis1’’ (fis=genfis1 (data, 2,
‘gaussmf’, ‘linear’)) was utilized to generate a first-order Sugeno FIS using grid partition on the
data. The grid partition splits the data space based on the number of membership functions.
Each of the input variables was fuzzified with two Gaussian membership functions
which resulted into 32 (2
5
) fuzzy rules and each rule generates one rule output. The aggregate
of the rule outputs yielded the final single output.
As the FIS structure is now made available, ANFIS utilizes the hybrid learning algorithm
to tune (optimize) the premise (nonlinear) and consequent (linear) parameters of the FIS via
learning from the training data set and minimizing the error in order to realize the desired ANFIS
model through 100 training epoch and error tolerance of zero. The training stage stopped, and
the realized ANFIS model is supplied with the testing data to evaluate its generalization
capability, since the testing error is the real performance measure of the model. The prediction
performance of the ANFIS model is evaluated based on the RMSE, MAD, MAPD and R.
2.4. Feed-Forward Neural Network
The same refined data used in building ANFIS models were utilized for the feed-forward
neural network models. The structure of the network was selected having three layers with input
layer containing the five input variables joined to hidden layer of ten neurons followed by the
output layer as illustrated in Figure 4.
Figure 4. pH FFNN structure
The tan-sigmoid and purelin transfer functions were employed for the hidden and the
output layer, respectively. The network is trained using back propagation algorithm for the range
of 100 training epochs. The model prediction accuracy was evaluated using the performance
measures. The same procedure was adapted to build the model for MLSS variable.
3. Results and Analysis
Figure 5 and Figure 6 depicted the influent variables of the plant (include BOD, COD,
SS, NH4-N and oil and grease (O&G)) which normally varies over time due to human activities.
The estimated models for these influent variables are pH and MLSS (in the reactor) which is
based on the Malaysia effluent quality standard B. The model estimation could be useful to
indicate the effluent quality and condition of the plant.
Figure 5. Bunus RSTP influent BOD and COD
 ISSN: 1693-6930
TELKOMNIKA Vol. 15, No. 2, June 2017 : 912 – 918
916
Figure 6. Bunus RSTP influent SS, NH4-N and O&G
In the training phase, the predictions of the ANFIS and FFNN models are in good
agreement with the measured values of the pH as illustrated in Figure 7 and Table 1. The
values of the error of the ANFIS model were very low and the correlation is quite strong, which
are slightly better to what were obtained with the FFNN model. In testing phase as shown in
Figure 8, the ANFIS model shows strong correlation with the measured pH as compared to that
of FFNN model. Despite the prediction errors having negative values in both the ANFIS and
FFNN model as can be seen from the Figure 8, accurate predictions could be achieved with
both the ANFIS and FFNN model.
Figure 7. Training pattern for pH variable
Figure 8. Testing pattern for pH variable
Figure 9 illustrates the predictions of the models during training phase for the MLSS
variable. The models were able to follow well the measured values of the MLSS. The correlation
between the predicted values of the models and the observed values of the MLSS are strong as
shown in Table 1. From the illustration depicted in Figure 10 during testing phase, the prediction
TELKOMNIKA ISSN: 1693-6930 
Estimation of pH and MLSS using Neural Network (Nur Sakinah Ahmad Yasmin)
917
errors were having positive and negative values. The performance of ANFIS is better than
FFNN as there are many drifts in FFNN model. The performances index of the ANFIS and
FFNN models during training and testing were illustrated in Table 1.
Table 1. Prediction performances of the models
Variable Model Training phase Testing phase
RMSE MAD MAPD
(%)
R RMSE MAD MAPD
(%)
R
pH ANFIS 0.00111 0.00061 0.12 0.99998 0.15709 0.03631 7.14 0.70868
FFNN 0.05623 0.03814 7.43 0.93931 0.29243 0.07335 14.44 0.39698
MLSS ANFIS 0.00198 0.00116 0.17 0.99996 0.20737 0.05308 8.03 0.69906
FFNN 0.12440 0.06847 10.10 0.83021 0.24029 0.10539 15.93 0.50030
Figure 9. Training pattern for MLSS variable
Figure 10. Testing pattern for MLSS variable
4. Conclusion
In this paper, comparison between ANFIS and FFNN model for predicting pH and
MLSS in domestic wastewater treatment plant has been presented. Although both the ANFIS
and FFNN models have demonstrated a great capability of effectively predicting the variables,
however, the results obtained with ANFIS approach are better compared to that of the FFNN.
Perhaps providing enough training time could increase the performance of the FFNN to achieve
the results as close as that of ANFIS. The proposed ANFIS model may serves as a versatile
and useful prediction tool for the activated sludge wastewater treatment plant.
Acknowledgements
The authors would like to thank the Research University Grant (GUP) vote 13H70,
Universiti Teknologi Malaysia for the financial support.
 ISSN: 1693-6930
TELKOMNIKA Vol. 15, No. 2, June 2017 : 912 – 918
918
References
[1] Henze M, Gujer W, Mino T, van-Loosedrecht M. 2000 Activated sludge models ASM1, ASM2,
ASM2d and ASM3, IWA Scientific and Technical Report No. 9, London, UK: IWA Publishing.
[2] AO Hussein, S Shahid, KN Basim, Chelliapan. Modelling of Sewage Quality during Rainy Season.
Asian Jr. of Microbiol. Biotech. Env. Sc. 2015l; 17 (3): 593-601
[3] Tay J, Zhang X. A fast predicting neural fuzzy model for high-rate anaerobic wastewater treatment
systems. Water Research. 2000; 34(11): 2849–2860.
[4] Goldar A, Revollar S, Lamanna R, Vega P. Neural-MPC for N- removal in activated sludge plants.
2014 European Control Conference (ECC), 2014 Strasbourg, France. 2014; 808-813.
[5] Benhalla A, Houssou M, Charif M. Linearization of the full activated sludge model No 1 for interaction
analysis. Bioprocess and Biosystems Engineering. 2010; 33(6): 759–71
[6] Nagy A, Mourot G, Marx B. Systematic multimodeling methodology applied to an activated sludge
reactor model. Industrial and Engineering Chemistry Resaerch. 2010; 49(6): 2790–2799.
[7] Huang M, Ma Y, Wan J, Zhang H, Wang Y. Modeling a paper-making wastewater treatment process
by means of an adaptive network-based fuzzy inference system and principal component analysis.
Industrial and Engineering Chemistry Research. 2012; 51(17): 6166–6174.
[8] Nasr M, Moustafa M, Seif H, El-Kobrosy G. Application of fuzzy logic control for Benchmark
simulation model. 1. Sustain. Environ. Res. 2014; 24: 235-243.
[9] Lewis C. Industrial and business forecasting methods: A practical guide to exponential smoothing
and curve fitting. California: Butterworth-Scientific. 1982.
[10] Cakmakci M. Adaptive neuro-fuzzy modelling of anaerobic digestion of primary sedimentation sludge.
Bioprocess and Biosystems Engineering. 2007; 30(5): 349–57.
[11] El-Mansi M, Bryce C. Fermentation microbiology and biotechnology 1st ed., Taylor & Francis Inc.,
Philadelphia, U.S.A. 1999.

More Related Content

What's hot

USDA Lehotay ITSP QuEChERS Chromatographia-2016
USDA Lehotay ITSP QuEChERS Chromatographia-2016USDA Lehotay ITSP QuEChERS Chromatographia-2016
USDA Lehotay ITSP QuEChERS Chromatographia-2016
Mark Hayward
 
DeanIovenitti_WaterQualityReport
DeanIovenitti_WaterQualityReportDeanIovenitti_WaterQualityReport
DeanIovenitti_WaterQualityReport
Dean Iovenitti
 
Automated SPE for Capillary Microsampling Poster
Automated SPE for Capillary Microsampling PosterAutomated SPE for Capillary Microsampling Poster
Automated SPE for Capillary Microsampling Poster
Rick Youngblood
 

What's hot (11)

USDA Lehotay ITSP QuEChERS Chromatographia-2016
USDA Lehotay ITSP QuEChERS Chromatographia-2016USDA Lehotay ITSP QuEChERS Chromatographia-2016
USDA Lehotay ITSP QuEChERS Chromatographia-2016
 
Presentation musfique ahmed
Presentation musfique ahmedPresentation musfique ahmed
Presentation musfique ahmed
 
Analysis Of Physic-Chemical Characteristics Of Polluted Water Samples And Eva...
Analysis Of Physic-Chemical Characteristics Of Polluted Water Samples And Eva...Analysis Of Physic-Chemical Characteristics Of Polluted Water Samples And Eva...
Analysis Of Physic-Chemical Characteristics Of Polluted Water Samples And Eva...
 
dastgerdi2020 (2).pdf
dastgerdi2020 (2).pdfdastgerdi2020 (2).pdf
dastgerdi2020 (2).pdf
 
COD-UV-SPECTROSCOPY-ANN-ANALYSIS
COD-UV-SPECTROSCOPY-ANN-ANALYSISCOD-UV-SPECTROSCOPY-ANN-ANALYSIS
COD-UV-SPECTROSCOPY-ANN-ANALYSIS
 
Assessment of salt water intrusion into the coastal aquifers of Kerala
Assessment of salt water intrusion into the coastal aquifers of KeralaAssessment of salt water intrusion into the coastal aquifers of Kerala
Assessment of salt water intrusion into the coastal aquifers of Kerala
 
Artificial intelligent
Artificial intelligentArtificial intelligent
Artificial intelligent
 
DeanIovenitti_WaterQualityReport
DeanIovenitti_WaterQualityReportDeanIovenitti_WaterQualityReport
DeanIovenitti_WaterQualityReport
 
JBRM2012
JBRM2012JBRM2012
JBRM2012
 
ONLINE SCALABLE SVM ENSEMBLE LEARNING METHOD (OSSELM) FOR SPATIO-TEMPORAL AIR...
ONLINE SCALABLE SVM ENSEMBLE LEARNING METHOD (OSSELM) FOR SPATIO-TEMPORAL AIR...ONLINE SCALABLE SVM ENSEMBLE LEARNING METHOD (OSSELM) FOR SPATIO-TEMPORAL AIR...
ONLINE SCALABLE SVM ENSEMBLE LEARNING METHOD (OSSELM) FOR SPATIO-TEMPORAL AIR...
 
Automated SPE for Capillary Microsampling Poster
Automated SPE for Capillary Microsampling PosterAutomated SPE for Capillary Microsampling Poster
Automated SPE for Capillary Microsampling Poster
 

Similar to Estimation of pH and MLSS using Neural Network

Application of artificial neural network in metropolitan landscape
Application of artificial neural network in metropolitan landscapeApplication of artificial neural network in metropolitan landscape
Application of artificial neural network in metropolitan landscape
IAEME Publication
 
Global Sensitivity Analysis for the Calibration of a Fully-distributed Hydrol...
Global Sensitivity Analysis for the Calibration of a Fully-distributed Hydrol...Global Sensitivity Analysis for the Calibration of a Fully-distributed Hydrol...
Global Sensitivity Analysis for the Calibration of a Fully-distributed Hydrol...
Mauricio Zambrano-Bigiarini
 
Study the effect of using ultrasonic membrane anaerobic system in treating su...
Study the effect of using ultrasonic membrane anaerobic system in treating su...Study the effect of using ultrasonic membrane anaerobic system in treating su...
Study the effect of using ultrasonic membrane anaerobic system in treating su...
eSAT Publishing House
 
Study the effect of using ultrasonic membrane anaerobic system in treating su...
Study the effect of using ultrasonic membrane anaerobic system in treating su...Study the effect of using ultrasonic membrane anaerobic system in treating su...
Study the effect of using ultrasonic membrane anaerobic system in treating su...
eSAT Journals
 

Similar to Estimation of pH and MLSS using Neural Network (20)

28 15017 estimation of turbidity in water(edit)
28 15017 estimation of turbidity in water(edit)28 15017 estimation of turbidity in water(edit)
28 15017 estimation of turbidity in water(edit)
 
Application of artificial neural network in metropolitan landscape
Application of artificial neural network in metropolitan landscapeApplication of artificial neural network in metropolitan landscape
Application of artificial neural network in metropolitan landscape
 
Neural Network Model Development with Soft Computing Techniques for Membrane ...
Neural Network Model Development with Soft Computing Techniques for Membrane ...Neural Network Model Development with Soft Computing Techniques for Membrane ...
Neural Network Model Development with Soft Computing Techniques for Membrane ...
 
Dv36730734
Dv36730734Dv36730734
Dv36730734
 
710201911
710201911710201911
710201911
 
Treatment of Dairy Wastewater by Using Electro-Fenton Process by Adopting Alu...
Treatment of Dairy Wastewater by Using Electro-Fenton Process by Adopting Alu...Treatment of Dairy Wastewater by Using Electro-Fenton Process by Adopting Alu...
Treatment of Dairy Wastewater by Using Electro-Fenton Process by Adopting Alu...
 
Global Sensitivity Analysis for the Calibration of a Fully-distributed Hydrol...
Global Sensitivity Analysis for the Calibration of a Fully-distributed Hydrol...Global Sensitivity Analysis for the Calibration of a Fully-distributed Hydrol...
Global Sensitivity Analysis for the Calibration of a Fully-distributed Hydrol...
 
WATER QUALITY PREDICTION
WATER QUALITY PREDICTIONWATER QUALITY PREDICTION
WATER QUALITY PREDICTION
 
An Efficient Method for Assessing Water Quality Based on Bayesian Belief Netw...
An Efficient Method for Assessing Water Quality Based on Bayesian Belief Netw...An Efficient Method for Assessing Water Quality Based on Bayesian Belief Netw...
An Efficient Method for Assessing Water Quality Based on Bayesian Belief Netw...
 
An evaluation of machine learning algorithms coupled to an electronic olfact...
An evaluation of machine learning algorithms coupled to an  electronic olfact...An evaluation of machine learning algorithms coupled to an  electronic olfact...
An evaluation of machine learning algorithms coupled to an electronic olfact...
 
710201911
710201911710201911
710201911
 
IRJET- Hydrodynamic Integrated Modelling of Basic Water Quality and Nutrient ...
IRJET- Hydrodynamic Integrated Modelling of Basic Water Quality and Nutrient ...IRJET- Hydrodynamic Integrated Modelling of Basic Water Quality and Nutrient ...
IRJET- Hydrodynamic Integrated Modelling of Basic Water Quality and Nutrient ...
 
Optimization of ultrasonicated membrane anaerobic system (umas) for sewage sl...
Optimization of ultrasonicated membrane anaerobic system (umas) for sewage sl...Optimization of ultrasonicated membrane anaerobic system (umas) for sewage sl...
Optimization of ultrasonicated membrane anaerobic system (umas) for sewage sl...
 
Optimization of ultrasonicated membrane anaerobic
Optimization of ultrasonicated membrane anaerobicOptimization of ultrasonicated membrane anaerobic
Optimization of ultrasonicated membrane anaerobic
 
Ae4102224236
Ae4102224236Ae4102224236
Ae4102224236
 
Forecasting Municipal Solid Waste Generation Using a Multiple Linear Regressi...
Forecasting Municipal Solid Waste Generation Using a Multiple Linear Regressi...Forecasting Municipal Solid Waste Generation Using a Multiple Linear Regressi...
Forecasting Municipal Solid Waste Generation Using a Multiple Linear Regressi...
 
Analysis of-material-recovery-facilities-for-use-in-life-cycle-assessment 201...
Analysis of-material-recovery-facilities-for-use-in-life-cycle-assessment 201...Analysis of-material-recovery-facilities-for-use-in-life-cycle-assessment 201...
Analysis of-material-recovery-facilities-for-use-in-life-cycle-assessment 201...
 
Kr3518331839
Kr3518331839Kr3518331839
Kr3518331839
 
Study the effect of using ultrasonic membrane anaerobic system in treating su...
Study the effect of using ultrasonic membrane anaerobic system in treating su...Study the effect of using ultrasonic membrane anaerobic system in treating su...
Study the effect of using ultrasonic membrane anaerobic system in treating su...
 
Study the effect of using ultrasonic membrane anaerobic system in treating su...
Study the effect of using ultrasonic membrane anaerobic system in treating su...Study the effect of using ultrasonic membrane anaerobic system in treating su...
Study the effect of using ultrasonic membrane anaerobic system in treating su...
 

More from TELKOMNIKA JOURNAL

Amazon products reviews classification based on machine learning, deep learni...
Amazon products reviews classification based on machine learning, deep learni...Amazon products reviews classification based on machine learning, deep learni...
Amazon products reviews classification based on machine learning, deep learni...
TELKOMNIKA JOURNAL
 
Improving the detection of intrusion in vehicular ad-hoc networks with modifi...
Improving the detection of intrusion in vehicular ad-hoc networks with modifi...Improving the detection of intrusion in vehicular ad-hoc networks with modifi...
Improving the detection of intrusion in vehicular ad-hoc networks with modifi...
TELKOMNIKA JOURNAL
 
Impact of CuS counter electrode calcination temperature on quantum dot sensit...
Impact of CuS counter electrode calcination temperature on quantum dot sensit...Impact of CuS counter electrode calcination temperature on quantum dot sensit...
Impact of CuS counter electrode calcination temperature on quantum dot sensit...
TELKOMNIKA JOURNAL
 
Adaptive segmentation algorithm based on level set model in medical imaging
Adaptive segmentation algorithm based on level set model in medical imagingAdaptive segmentation algorithm based on level set model in medical imaging
Adaptive segmentation algorithm based on level set model in medical imaging
TELKOMNIKA JOURNAL
 
Automatic channel selection using shuffled frog leaping algorithm for EEG bas...
Automatic channel selection using shuffled frog leaping algorithm for EEG bas...Automatic channel selection using shuffled frog leaping algorithm for EEG bas...
Automatic channel selection using shuffled frog leaping algorithm for EEG bas...
TELKOMNIKA JOURNAL
 

More from TELKOMNIKA JOURNAL (20)

Amazon products reviews classification based on machine learning, deep learni...
Amazon products reviews classification based on machine learning, deep learni...Amazon products reviews classification based on machine learning, deep learni...
Amazon products reviews classification based on machine learning, deep learni...
 
Design, simulation, and analysis of microstrip patch antenna for wireless app...
Design, simulation, and analysis of microstrip patch antenna for wireless app...Design, simulation, and analysis of microstrip patch antenna for wireless app...
Design, simulation, and analysis of microstrip patch antenna for wireless app...
 
Design and simulation an optimal enhanced PI controller for congestion avoida...
Design and simulation an optimal enhanced PI controller for congestion avoida...Design and simulation an optimal enhanced PI controller for congestion avoida...
Design and simulation an optimal enhanced PI controller for congestion avoida...
 
Improving the detection of intrusion in vehicular ad-hoc networks with modifi...
Improving the detection of intrusion in vehicular ad-hoc networks with modifi...Improving the detection of intrusion in vehicular ad-hoc networks with modifi...
Improving the detection of intrusion in vehicular ad-hoc networks with modifi...
 
Conceptual model of internet banking adoption with perceived risk and trust f...
Conceptual model of internet banking adoption with perceived risk and trust f...Conceptual model of internet banking adoption with perceived risk and trust f...
Conceptual model of internet banking adoption with perceived risk and trust f...
 
Efficient combined fuzzy logic and LMS algorithm for smart antenna
Efficient combined fuzzy logic and LMS algorithm for smart antennaEfficient combined fuzzy logic and LMS algorithm for smart antenna
Efficient combined fuzzy logic and LMS algorithm for smart antenna
 
Design and implementation of a LoRa-based system for warning of forest fire
Design and implementation of a LoRa-based system for warning of forest fireDesign and implementation of a LoRa-based system for warning of forest fire
Design and implementation of a LoRa-based system for warning of forest fire
 
Wavelet-based sensing technique in cognitive radio network
Wavelet-based sensing technique in cognitive radio networkWavelet-based sensing technique in cognitive radio network
Wavelet-based sensing technique in cognitive radio network
 
A novel compact dual-band bandstop filter with enhanced rejection bands
A novel compact dual-band bandstop filter with enhanced rejection bandsA novel compact dual-band bandstop filter with enhanced rejection bands
A novel compact dual-band bandstop filter with enhanced rejection bands
 
Deep learning approach to DDoS attack with imbalanced data at the application...
Deep learning approach to DDoS attack with imbalanced data at the application...Deep learning approach to DDoS attack with imbalanced data at the application...
Deep learning approach to DDoS attack with imbalanced data at the application...
 
Brief note on match and miss-match uncertainties
Brief note on match and miss-match uncertaintiesBrief note on match and miss-match uncertainties
Brief note on match and miss-match uncertainties
 
Implementation of FinFET technology based low power 4×4 Wallace tree multipli...
Implementation of FinFET technology based low power 4×4 Wallace tree multipli...Implementation of FinFET technology based low power 4×4 Wallace tree multipli...
Implementation of FinFET technology based low power 4×4 Wallace tree multipli...
 
Evaluation of the weighted-overlap add model with massive MIMO in a 5G system
Evaluation of the weighted-overlap add model with massive MIMO in a 5G systemEvaluation of the weighted-overlap add model with massive MIMO in a 5G system
Evaluation of the weighted-overlap add model with massive MIMO in a 5G system
 
Reflector antenna design in different frequencies using frequency selective s...
Reflector antenna design in different frequencies using frequency selective s...Reflector antenna design in different frequencies using frequency selective s...
Reflector antenna design in different frequencies using frequency selective s...
 
Reagentless iron detection in water based on unclad fiber optical sensor
Reagentless iron detection in water based on unclad fiber optical sensorReagentless iron detection in water based on unclad fiber optical sensor
Reagentless iron detection in water based on unclad fiber optical sensor
 
Impact of CuS counter electrode calcination temperature on quantum dot sensit...
Impact of CuS counter electrode calcination temperature on quantum dot sensit...Impact of CuS counter electrode calcination temperature on quantum dot sensit...
Impact of CuS counter electrode calcination temperature on quantum dot sensit...
 
A progressive learning for structural tolerance online sequential extreme lea...
A progressive learning for structural tolerance online sequential extreme lea...A progressive learning for structural tolerance online sequential extreme lea...
A progressive learning for structural tolerance online sequential extreme lea...
 
Electroencephalography-based brain-computer interface using neural networks
Electroencephalography-based brain-computer interface using neural networksElectroencephalography-based brain-computer interface using neural networks
Electroencephalography-based brain-computer interface using neural networks
 
Adaptive segmentation algorithm based on level set model in medical imaging
Adaptive segmentation algorithm based on level set model in medical imagingAdaptive segmentation algorithm based on level set model in medical imaging
Adaptive segmentation algorithm based on level set model in medical imaging
 
Automatic channel selection using shuffled frog leaping algorithm for EEG bas...
Automatic channel selection using shuffled frog leaping algorithm for EEG bas...Automatic channel selection using shuffled frog leaping algorithm for EEG bas...
Automatic channel selection using shuffled frog leaping algorithm for EEG bas...
 

Recently uploaded

Introduction to Robotics in Mechanical Engineering.pptx
Introduction to Robotics in Mechanical Engineering.pptxIntroduction to Robotics in Mechanical Engineering.pptx
Introduction to Robotics in Mechanical Engineering.pptx
hublikarsn
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Kandungan 087776558899
 
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
HenryBriggs2
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
AldoGarca30
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
Epec Engineered Technologies
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
jaanualu31
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
Kamal Acharya
 

Recently uploaded (20)

Introduction to Robotics in Mechanical Engineering.pptx
Introduction to Robotics in Mechanical Engineering.pptxIntroduction to Robotics in Mechanical Engineering.pptx
Introduction to Robotics in Mechanical Engineering.pptx
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdf
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and properties
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
Basic Electronics for diploma students as per technical education Kerala Syll...
Basic Electronics for diploma students as per technical education Kerala Syll...Basic Electronics for diploma students as per technical education Kerala Syll...
Basic Electronics for diploma students as per technical education Kerala Syll...
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
Linux Systems Programming: Inter Process Communication (IPC) using Pipes
Linux Systems Programming: Inter Process Communication (IPC) using PipesLinux Systems Programming: Inter Process Communication (IPC) using Pipes
Linux Systems Programming: Inter Process Communication (IPC) using Pipes
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
 

Estimation of pH and MLSS using Neural Network

  • 1. TELKOMNIKA, Vol.15, No.2, June 2017, pp. 912~918 ISSN: 1693-6930, accredited A by DIKTI, Decree No: 58/DIKTI/Kep/2013 DOI: 10.12928/TELKOMNIKA.v15i2.6142  912 Received February 13, 2017; Revised April 30, 2017; Accepted May 14, 2017 Estimation of pH and MLSS using Neural Network Nur Sakinah Ahmad Yasmin 1 , Muhammad Sani Gaya 2 , Norhaliza Abdul Wahab* 3 , Yahaya Md Sam 4 1,3,4 Control & Mechatronics Engineering, Faculty of Electrical Engineering, Universiti Teknologi Malaysia, 81310 Skudai, Johor Bahru, Malaysia 2 Department of Civil Engineering, Kano University of Science & Technology, Wudil *Corresponding author, e-mail corresponding author: aliza@fke.utm.my Abstract The main challenges to achieving a reliable model which can predict well the process are the nonlinearities associated with many biological and biochemical processes in the system. Artificial intelligent approaches revolved as better alternative in predicting the system. Typical measured variables for effluent quality of wastewater treatment plant are pH, and mixed liquor suspended solids (MLSS). This paper presents an adaptive neuro-fuzzy inference system (ANFIS) and feed-forward neural network (FFNN) modeling applied to the domestic plant of the Bunus regional sewage treatment plant. ANFIS and feed- forward neural network techniques as nonlinear function approximators have demonstrated the capability of predicting nonlinear behaviour of the system. The data for the period of two years and nine months sampled weekly (140 week samples) were collected and used for this study. Simulation studies showed that the prediction capability of the ANFIS model is somehow better than that of the FFNN model. The ANFIS model may serves as a valuable prediction tool for the plant. Keywords: fuzzy inference system, neural network, activated sludge process, prediction Copyright © 2017 Universitas Ahmad Dahlan. All rights reserved. 1. Introduction Due to efficiency and cost-effectiveness, activated sludge system becomes the most widely used technology for removal of organic nutrients from wastewater. The system main concerns are reduction of the pollutants' concentrations to the level nature can handle and rejection of disturbances for smooth operation at minimal cost. To achieve these conveniently, a reliable model is essential for better removal of pollutant. Suitable model is absolutely crucial not only for control design but also for optimal and trouble-free operation of the system. The existing mathematical models developed by the international association of the water quality (IAWQ) task group such as activated sludge model no.1 (ASM1) for organic carbon and nitrogen removal, it's updated version ASM2, which includes phosphorus removal, the ASM2d, an extension of ASM2 and ASM3 the new version of ASM1, have greatly contributed immensely in describing the complex biological activities of the microorganisms responsible for degrading the pollutants in the wastewater and interactions occurring in the system [1]. ASM1 was designed for domestic wastewater treatment describing nitrification and de-nitrification processes which involved the microorganism activities. It is important to provide favourable conditions for the microorganisms so that the wastewater can be properly treated because pollutants in high concentration can pose a threat to the receiving waters [2]. Arguably, these models are structurally complex to use, difficult to solve analytically and do not captured some essential parameters such as pH and mixed liquor suspended solids (MLSS) which are crucial in revealing the condition of an activated sludge system [3, 4]. Therefore, there is an urgent need for a straightforward and reliable model of pH and MLSS. Surveying the literature reveals that several simplified models using different plant configurations either through simulations or practically were implemented particularly based on the concept of the reference model (ASM1). Linearize models in [5] demonstrated effectiveness in tracking the responses of ASM1 and maintaining the states biological interpretations. Analytical model performed remarkably in predicting the process and conserved the nonlinear nature of the reference model [6]. Artificial intelligent methods such as fuzzy logic, neural network and hybrid system emerged as an alternative and exhibited high level of accuracy in
  • 2. TELKOMNIKA ISSN: 1693-6930  Estimation of pH and MLSS using Neural Network (Nur Sakinah Ahmad Yasmin) 913 predicting the process [7, 8]. However, most of these suggestions were applied either to a completely mixed tank and industrial wastewater. Therefore, it is the objective of this paper to investigate the feasibility and effectiveness in predicting a pH and MLSS parameters in the step-feed activated sludge wastewater treatment plant. Neural network techniques were used in several real-world applications and have proven to be effective in handling of a complex noisy data, uncertainty and nonlinearity. The success of neural network is as the result of fast learning ability and adaptation. The integration of neural network and fuzzy system yielded an efficient system referred as neuro- fuzzy system. One of most commonly used neuro-fuzzy system is ANFIS. Similar to neural network, adaptability and ability to deal with uncertainty makes ANFIS gained preference. The prediction performances of the models were evaluated in terms of root mean square error (RMSE), mean absolute deviation (MAD), mean absolute percentage deviation (MAPD) and correlation coefficient (R). MAPD often referred as mean absolute percentage error (MAPE), a low value of MAPE indicate accurate prediction [9]. Using this criterion, the model that produces effective prediction regarding the considered variables could be obtained. The model obtained would serve as a foundation for implementation of the control algorithm and can result in smooth and efficient operation. 2. Research Method 2.1. Bunus Regional Sewage Treatment Plant The Bunus regional sewage treatment plant (RSTP) is located on the North/Eastern of Kuala Lumpur, Malaysia. The plant has daily average capacity of 87,000m3/d, utilizes advance step-feed activated sludge process for biological oxygen demand (BOD), chemical oxygen demand (COD), suspended solids (SS), oil and grease (O&G) and nitrogen removal. The influent wastewater enters to the primary settler in which the wastewater is retained to allow the settle-able organics and floatable solids to settle at the bottom of the clarifier by gravity sedimentation. The effluent from the primary settler flows to the biological reactor unit consisting of two anoxic tanks and two aerobic tanks as shown in Figure 1. Figure 1. Bunus RSTP plant layout 2.2. Data Collection The recorded data from SCADA system of Bunus RSTP for the period of two years and nine months sampled weekly (140 week samples) were collected and used for this study. The main measured variables in the wastewater treatment plant are parameters such as BOD, COD and SS, which reveal the efficiency of the treatment plant while pH and MLSS are vital for effluent quality and dissolved oxygen (DO), MLSS, nitrate and ammonium can be used in optimizing the plant. In this study, only pH and MLSS were considered for predicting the effluent quality. 2.3. ANFIS Model Implementation The full scale data sampled weekly of 140 samples of the Bunus RSTP were utilized to develop the models. The measured data are normalized using the expression given in equation (1), so that all the data values are between zero (0) and one (1). minmax min      i i x X (1) Anoxic Tank 1 Anoxic Tank 1 Anoxic Tank 1 Anoxic Tank 1 Influent wastewater Primary settler Secondary settler Effluent Primary sludge Returned sludge Aeration Unit Excess sludge Anoxic Tank 1
  • 3.  ISSN: 1693-6930 TELKOMNIKA Vol. 15, No. 2, June 2017 : 912 – 918 914 where iX is the normalized data point, ix is the data sample, min is the minimum value among the data samples and max is the maximum value among the data sample. The normalization allows the data to be transformed into trainable and convenient for the network. Furthermore, it makes training faster and reduces the chances of duplication of data. The normalized data were subdued to the analysis of principal component analysis (PCA) to obtain relevant information and reduce the dimensionality of the input vector. Using the PCA, three principal components (PCs) were extracted which are sufficient to explain the over 85% variation within the data set. Using Euclidean distance clustering algorithm, the components that contributed less 10% to the total variation within the data are removed. The Euclidean distance is most widely chosen distance and simply is the distance in multidimensional space, which is computed as: distance   2/12 )(),( iii nmnm (2) where m and nare vectors respectively. Based on the Euclidean distance clustering analysis and PCA, the 6 th data point of Figure 2 and 6 th , 35 th and 61 th data points of Figure 3 are different from the remaining data. These are outliers and were included as part of the testing data. Figure 2. Loading vectors for 1 st and 2 nd PCs Figure 3. Loading vectors for 1 st and 3 rd PCs The normalized data are divided into 126 samples for training and 14 samples for testing of the model. A large percentage of the data set should be used during the training stage since ANFIS is quite adapted nonlinear functional dependency between the influent and effluent variables [10]. This could also result in avoiding the problem of over fitting, which led to large testing error. The selection of training and testing data can be done statistically or arbitrarily as suggested in [11]. However, in this study, the selection was done arbitrarily. To determine the
  • 4. TELKOMNIKA ISSN: 1693-6930  Estimation of pH and MLSS using Neural Network (Nur Sakinah Ahmad Yasmin) 915 structure of the fuzzy inference system (FIS), the function ‘‘genfis1’’ (fis=genfis1 (data, 2, ‘gaussmf’, ‘linear’)) was utilized to generate a first-order Sugeno FIS using grid partition on the data. The grid partition splits the data space based on the number of membership functions. Each of the input variables was fuzzified with two Gaussian membership functions which resulted into 32 (2 5 ) fuzzy rules and each rule generates one rule output. The aggregate of the rule outputs yielded the final single output. As the FIS structure is now made available, ANFIS utilizes the hybrid learning algorithm to tune (optimize) the premise (nonlinear) and consequent (linear) parameters of the FIS via learning from the training data set and minimizing the error in order to realize the desired ANFIS model through 100 training epoch and error tolerance of zero. The training stage stopped, and the realized ANFIS model is supplied with the testing data to evaluate its generalization capability, since the testing error is the real performance measure of the model. The prediction performance of the ANFIS model is evaluated based on the RMSE, MAD, MAPD and R. 2.4. Feed-Forward Neural Network The same refined data used in building ANFIS models were utilized for the feed-forward neural network models. The structure of the network was selected having three layers with input layer containing the five input variables joined to hidden layer of ten neurons followed by the output layer as illustrated in Figure 4. Figure 4. pH FFNN structure The tan-sigmoid and purelin transfer functions were employed for the hidden and the output layer, respectively. The network is trained using back propagation algorithm for the range of 100 training epochs. The model prediction accuracy was evaluated using the performance measures. The same procedure was adapted to build the model for MLSS variable. 3. Results and Analysis Figure 5 and Figure 6 depicted the influent variables of the plant (include BOD, COD, SS, NH4-N and oil and grease (O&G)) which normally varies over time due to human activities. The estimated models for these influent variables are pH and MLSS (in the reactor) which is based on the Malaysia effluent quality standard B. The model estimation could be useful to indicate the effluent quality and condition of the plant. Figure 5. Bunus RSTP influent BOD and COD
  • 5.  ISSN: 1693-6930 TELKOMNIKA Vol. 15, No. 2, June 2017 : 912 – 918 916 Figure 6. Bunus RSTP influent SS, NH4-N and O&G In the training phase, the predictions of the ANFIS and FFNN models are in good agreement with the measured values of the pH as illustrated in Figure 7 and Table 1. The values of the error of the ANFIS model were very low and the correlation is quite strong, which are slightly better to what were obtained with the FFNN model. In testing phase as shown in Figure 8, the ANFIS model shows strong correlation with the measured pH as compared to that of FFNN model. Despite the prediction errors having negative values in both the ANFIS and FFNN model as can be seen from the Figure 8, accurate predictions could be achieved with both the ANFIS and FFNN model. Figure 7. Training pattern for pH variable Figure 8. Testing pattern for pH variable Figure 9 illustrates the predictions of the models during training phase for the MLSS variable. The models were able to follow well the measured values of the MLSS. The correlation between the predicted values of the models and the observed values of the MLSS are strong as shown in Table 1. From the illustration depicted in Figure 10 during testing phase, the prediction
  • 6. TELKOMNIKA ISSN: 1693-6930  Estimation of pH and MLSS using Neural Network (Nur Sakinah Ahmad Yasmin) 917 errors were having positive and negative values. The performance of ANFIS is better than FFNN as there are many drifts in FFNN model. The performances index of the ANFIS and FFNN models during training and testing were illustrated in Table 1. Table 1. Prediction performances of the models Variable Model Training phase Testing phase RMSE MAD MAPD (%) R RMSE MAD MAPD (%) R pH ANFIS 0.00111 0.00061 0.12 0.99998 0.15709 0.03631 7.14 0.70868 FFNN 0.05623 0.03814 7.43 0.93931 0.29243 0.07335 14.44 0.39698 MLSS ANFIS 0.00198 0.00116 0.17 0.99996 0.20737 0.05308 8.03 0.69906 FFNN 0.12440 0.06847 10.10 0.83021 0.24029 0.10539 15.93 0.50030 Figure 9. Training pattern for MLSS variable Figure 10. Testing pattern for MLSS variable 4. Conclusion In this paper, comparison between ANFIS and FFNN model for predicting pH and MLSS in domestic wastewater treatment plant has been presented. Although both the ANFIS and FFNN models have demonstrated a great capability of effectively predicting the variables, however, the results obtained with ANFIS approach are better compared to that of the FFNN. Perhaps providing enough training time could increase the performance of the FFNN to achieve the results as close as that of ANFIS. The proposed ANFIS model may serves as a versatile and useful prediction tool for the activated sludge wastewater treatment plant. Acknowledgements The authors would like to thank the Research University Grant (GUP) vote 13H70, Universiti Teknologi Malaysia for the financial support.
  • 7.  ISSN: 1693-6930 TELKOMNIKA Vol. 15, No. 2, June 2017 : 912 – 918 918 References [1] Henze M, Gujer W, Mino T, van-Loosedrecht M. 2000 Activated sludge models ASM1, ASM2, ASM2d and ASM3, IWA Scientific and Technical Report No. 9, London, UK: IWA Publishing. [2] AO Hussein, S Shahid, KN Basim, Chelliapan. Modelling of Sewage Quality during Rainy Season. Asian Jr. of Microbiol. Biotech. Env. Sc. 2015l; 17 (3): 593-601 [3] Tay J, Zhang X. A fast predicting neural fuzzy model for high-rate anaerobic wastewater treatment systems. Water Research. 2000; 34(11): 2849–2860. [4] Goldar A, Revollar S, Lamanna R, Vega P. Neural-MPC for N- removal in activated sludge plants. 2014 European Control Conference (ECC), 2014 Strasbourg, France. 2014; 808-813. [5] Benhalla A, Houssou M, Charif M. Linearization of the full activated sludge model No 1 for interaction analysis. Bioprocess and Biosystems Engineering. 2010; 33(6): 759–71 [6] Nagy A, Mourot G, Marx B. Systematic multimodeling methodology applied to an activated sludge reactor model. Industrial and Engineering Chemistry Resaerch. 2010; 49(6): 2790–2799. [7] Huang M, Ma Y, Wan J, Zhang H, Wang Y. Modeling a paper-making wastewater treatment process by means of an adaptive network-based fuzzy inference system and principal component analysis. Industrial and Engineering Chemistry Research. 2012; 51(17): 6166–6174. [8] Nasr M, Moustafa M, Seif H, El-Kobrosy G. Application of fuzzy logic control for Benchmark simulation model. 1. Sustain. Environ. Res. 2014; 24: 235-243. [9] Lewis C. Industrial and business forecasting methods: A practical guide to exponential smoothing and curve fitting. California: Butterworth-Scientific. 1982. [10] Cakmakci M. Adaptive neuro-fuzzy modelling of anaerobic digestion of primary sedimentation sludge. Bioprocess and Biosystems Engineering. 2007; 30(5): 349–57. [11] El-Mansi M, Bryce C. Fermentation microbiology and biotechnology 1st ed., Taylor & Francis Inc., Philadelphia, U.S.A. 1999.