Water Turbidity Modelling During Water Treatment Processes Using Artificial Neural Networks
Water Turbidity Modelling During Water Treatment Processes Using Artificial Neural Networks
Adam Rak1,*
AbstractArtificialneuralnetworksareincreasinglybeing
used in the research and analysis of unit and technical
processes related to water treatment.An artificial neural
network model was created to predict the turbidity of
treated water in a newly operating water treatment
system for surface and retention water at the Sosnwka
reservoir,Poland.
To model water turbidity during the water treatment
processforaselectedsystem,aflexibleBayesianmodelof
neural networks, Gaussian processes and mixtures that
demonstrate Markov chains of Monte Carlo methods
(FBM) was applied. A model was created to predict the
turbidity of water, pretreated in a specific technical
system. The physicochemical parameters of the water
drawn from the reservoir and those of the treated water
constitutedtheinputsforthemodel.
Two selection criteria for the final neural network
parameters were assumed. The first was the root mean
squared error (RMSE) and the second, the correlation
factor, R, between the projected and observed raw water
turbidity values. The calculated correlation factor was
R = 0.84. The results achieved proved that neural
networkscanbeappliedtopredictthequalityfactorsfor
waterpretreatedinaspecifictechnicalsystem.
www.intechopen.com
1.Introduction
1NTUNephelometricTurbidityUnit
Int. j. Using
water Artificial
sci., 2013,
Vol. 2,
3:2013
Adam Rak: Water Turbidity Modelling During Water Treatment Processes
Neural
Networks
undissolvedsubstances.Turbidityisalsodefinedas,An
abilitytoabsorbsunlightduetothepresenceinwaterof
veryfinepowder,suspendedsolidsorcolloidalsolidsof
mineral or organic source [11]. Turbidity is understood
as the optical properties of fine suspended solids in a
watersamplecausingsunlightdispersion[5].Turbidityis
one of the basic factors for assessing water quality.
Althoughitisnotcausedbyharmfulpollutantsanddoes
notinfluencepeopleshealth,itdegradestheaestheticsof
potable water. In accordance with a decree of the Polish
Minister of Health, the NTU level of potable water shall
not exceed 1, which is acceptable to consumers and
withoutabnormalchanges[4].
TheattractivenessoftheANNapplicationisrelatedtothe
possibility of approximating any nonlinearity. It is not
www.intechopen.com
2.Descriptionoftheresearchobjective
www.intechopen.com
Takingintoaccountthequalitychangesintherawwater
stored in the reservoir, the various technical operational
systemsareseparatelypresentedinTableNo2.
3.Researchmethodology
Adam Rak: Water Turbidity Modelling During Water Treatment Processes Using Artificial Neural Networks
Indicators
Unit
Value
SurfaceofindirectcatchmentareaF1
km2
15,3
SurfaceofreplenishcatchmentareaF2
km2
35,5
Totalcatchmentareasurface
km
50,8
MaxsurfaceofcatchmentareaF
ha
178
Waterdepthatthedam
13,5
Averagewaterdepthatthereservoir
8,15
Averageannualflowofindirectcatchmentarea
QAV[m s ]
0,192
Lowaverageflow
QLAV[m3s1]
0,038
QB[m3s1]
0,046
Untouchableflow(biological)QB
Annualaverageoutflow(VAV)
m a
6054912
Annualuntouchableoutflow
m3a1
1821519
Waterintakeforconsumptionpurposes
QWTP(2008)
Planned water intake for consumption purposes
QWTP(plannedamount)
AppliedvolumeofthereservoirV
m h
m3a1
m3h1
m3a1
m3
380,0
3328800
1000,0
9000000
11000000
%
%
%
WS1
WS2
WAV
%forestcover
16,6
46,8
98,4
1,39
4,62
3,00
65
Table1.Basicindicatorsdescribingthereservoiranditscatchmentarea
Unitprocesses
Passagethrougha1mmx1mmscreen
Primaryozonation
Coagulationwithaluminiumsulphate
Flocculation
CorrectionofpHwithlimewater
Filtrationthroughanthracitesandbed
Secondaryozonation
Filtrationthroughactivecarbon
Finalcorrectionofwaterquality
Disinfection
W1
+
+
+
+
+
+
+
+
+
+
Technicalsystems
W1A
W1B
W2
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
W3
+
+
+
+
+
+
+
+
Table2.Unitprocessesoftheseparatetechnicalsystems
www.intechopen.com
Parametersofthe
analysedwater
Unit
Reservoir
SMax
S
SMin
Temperature
Turbidity
Colour
pH
Generalhardness
Ammonianitrogen
Nitratenitrogen
Chlorides
Oxidability
Conductivity
Dissolvedoxygen
C
NTU
mgPtdm3
pH
mvaldm3
mgNdm3
mgNdm3
mgCldm3
mgO2dm3
Scm1
mgO2dm3
o
4.0
1.0
5.0
7.2
0.62
0.01
2.0
4.0
1.0
98.28
9.4
22.0
12.0
14.9
8.4
1.03
0.11
5.0
6.8
5.22
122.50
12.4
11.7
5.2
8.21
7.63
0.85
0.05
2.44
4.95
3.458
110.88
11.18
6.12
2.47
2.791
0.366
0.072
0.004
1.300
1.321
1.532
6.692
1.172
Table3.Characteristicvaluesofselectedqualityparametersofthetreatedwater
Theresultsoftherawandtreatedwateranalysesallowed
forthelevelofreductionofthemonitoredparametersto
be determined. The possibility of providing continuous
monitoring allowed for analyses of the changes in
parameterssuchastemperature,pHandturbidityinone
daycyclestobecarriedout.
4.Researchresults
Theturbidityofthewatertakenfromthewaterreservoir
ranged from 1 to 12 NTU (Fig. 1), the colour from 5 to
14.9 mg Ptdm3, pH was in the range of 7.2 to 8.4 and
conductivity from 98 to 122 Scm1. A database of the
dailyvaluesofthemonitoredparameterswascreatedfor
www.intechopen.com
theentireperiodoftheresearch.Theeffectivenessofthe
reduction of the water turbidity was determined on the
basis of the raw water turbidity measurements taken
from the reservoir (Ms) and the treated water turbidity
measurements(Mp),asperthecorrelation[8]:
Rm 1
Mp
Ms
(1)
The results for the turbidity of the raw water and the
water treated using technical system W2 were compiled
daily in a database. The optimum prediction model has,
at any given moment, to be able to determine the
projectedeffectsofthewatertreatmentbasedon:
information coming from the monitoring of the
hydrologicalconditionsofthecatchmentarea,
meteorologicalobservations,
thephysicalandchemicalanalysesofthewater.
Adam Rak: Water Turbidity Modelling During Water Treatment Processes Using Artificial Neural Networks
Figure1.TheturbiditiesofrawwaterandtreatedwaterusingtheW2technicalsystemintheexaminationperiod(11/200710/2008)
Figure 2. Changes in the turbidity reduction index (Rm) compared with the daily rainfall in the catchment area in the examination
period(11/200710/2008)
TheneuralanalysiswascarriedoutonanMLPmodel.The
structure of the MLP model was based on numerical
analyses in which the target variables were continuous
ones, such as treated water turbidity and five input
variables raw water turbidity, water flow to reservoir,
waterretentionlevel,dailyrainfallandtemperatureofthe
waterinthereservoir.Thenetworklearningwasbasedon
the collected historical data 366 fully described cases
www.intechopen.com
from1November2007to31October2008.Theverification
of each structure of the numeric model was carried out for
the same research data. The parameters of the network
architectureweredefinedforlevelsassuringthelowesterror
values in the predictions by controlling the rejection rate,
which was set at a level close to 0.5. The selected hyper
parametersoptimizedthenetworklearning processes.The
numerical simulation was carried out for 100 iterations
afterrejectingthefirst20%oftheburninsteps.
Inordertoevaluatetheassumedparametersoftheneural
networks model, the RMSE was determined using the
followingfunction:
1
N
RMSE
SP SR
(2)
S
i 1
S
i 1
Pi
S P S Ri S R
N
Pi S P S Ri S R
(3)
i 1
where S R istheobservedaveragevalueoftheturbidity
ofthetreatedwaterand S P thepredictedaveragevalue
oftheturbidityofthetreatedwater.
The data sets for the quality of the raw water and the
water in the reservoir which had been used for the
analyses and learning were divided into oneweek time
series. A MLP neural networks model with a defined
architecture was created to predict the turbidity of the
treatedwater.Thedatafortheanalyseswerethetime(the
week of the measurement) and the daily rainfall; the
www.intechopen.com
TheMLPmodelgeneratedforpredictingtheturbidityof
the treated water was marked as per the specification:
netspec sun 5 100 20/ 5:50 5:50 5:50 100 modelspec
sun class dataspec sun 5 1 20/ metn2.txt@1:366.
metn2.txt@1:948846. The architecture of the assumed
neuralnetworkscanbedescribedasfollows:
oneincominglayerwithfiveexplanatoryvariables,
hundredsofhiddenlayers,
one outgoing layer with 20 units within the range
ofthedefinedvaluesbasedonthemeasureddata,
numberoflearningcycles366,
numberofeditedpredictions948,846.
Adam Rak: Water Turbidity Modelling During Water Treatment Processes Using Artificial Neural Networks
Afteranalysingthedatasetwiththeneuralnetworkand
afterdiscoveringthebalanceofthesimulatedvaluesand
the high compatibility of the expected values with the
values observed in the next step, a simulation of the
occurrence probability of specific water turbidities was
performed for specific combinations defined within the
range of the observed variables. The results of the
effectiveness analyses of the MLP model for the projected
turbidityofthetreatedwaterarepresentedinFigs.3and4.
5.Discussionofresearchresults
Fromtheresearchandanalysescarriedout,itcanbeseen
thattheproposedmodel,basedonanANN,forpredicting
oneparameterofthetreatedwatercansupportthecontrol
ofawatertreatmentprocessinaWTP.Beingabletopredict
thevalueoftheturbidityofthewaterallowsforadvanced
technical and logistical actions to be taken to change the
method of using the process equipment in the WTP. For
example, it allows for additional unit processes, such as
coagulation, and changes in the chemical agents applied
in the water treatment process to be made that is, to
switchfromsystemW2tosystemW1.
Thereweretwocriteriaassumedtoselectthefinalneural
network parameters. The first was the RMSE and the
second was the correlation factor, R, between the
projected and observed values of the treated water
turbidity. The calculated value of RMSE was 0.49 NTU
andthatforRwas0.84.
Figure3.CorrelationbetweenprojectedandobservedvaluesoftheturbidityofwatertreatedusingtechnicalsystemW2
8
www.intechopen.com
Figure 4. Changes in the measured turbidities of the raw and treated water, and the projected turbidity of the treated water in the
examinationperiod(11/200710/2008)
Figure5.Dailyvaluesofturbidityofthetreatedwaterintheexaminationperiod(11/200710/2008)
Figure6.DiagramofthestepsforpredictingwaterqualityindicatorswithanANNapplication
www.intechopen.com
Adam Rak: Water Turbidity Modelling During Water Treatment Processes Using Artificial Neural Networks
6.References
http://www.cs.utoronto.ca/~carl/).
[10]Neal R. (1999). Flexible Bayesian models on neural
networks, Gaussian processes, and mixtures v 2000
0813. University of Toronto, Canada, pp. 182.
(Availableathttp://www.cs.utoronto.ca/~radford/).
[11]Norma PNG01300. (1997). Standard PNG
01300:1997 Hydrogeology. Basic terms and
definitions (withdrawn). Polish Committee for
Standardization(PKN),Warsaw,Poland,
[12]Paweek J. (1993). Turbidity of water in rivers and
mountain torrents from the perspective of water
treatment for water mains purposes. Ochrona
rodowiska,51(4),6973.
[13]Rak A. (2010). Prediction of criterion water quality
indicators in reservoir for water treatment plant. In:
Supply of water, water quality and protection modern
subjects.Vol.I.PublishedbyWydawnictwoISBN97883
89696339,PZITSo/Pozna,2010,Poland,pp.4360.
[14]RakA.,KonarczakT.(2008).Pilotstudiesofmethods
of determining surface water treatment technology
typical for water from mountain catchment areas
storedinawaterreservoir.WaterSupplyandWater
Quality.PublishedbyPZITS641657.
[15]SiwoZ.,omotowskiJ.CieakW.,LicznarP.,Cieak
J.(2008).Analysisandpredictionofwaterdistribution
in water mains. Polska Akademia Nauk, Komitet
Inynierii Ldowej i Wodnej, Instytut Podstawowych
ProblemwTechniki,Warsaw,Poland.
[16]TadeusiewiczR.(1993).Neuralnetworks.Akademicka
OficynaWydawniczaRM,Warsaw,Poland.
[17]YangaliGuintanillaV.,VerliefdeA.,KimT.,Sadmani
A, Kennedy M., Amy G. (2009). Artificial neural
network models based on QSAR for predicting
rejection of neutral organic compounds by
polyamide nanofiltration and reverse osmosis
membranes.JournalofMembraneScience,342,251262.
www.intechopen.com