The model with a topology of 3-10-1 (corresponding
to input, hidden, and output neurons, respectively) provided satisfactory results in the identification of the optimal conditions.
2. of hydroxides and oxides. Another advantage is the formation of large,
stable flocs that can be separated by filtration. The gas bubbles facilitate
the removal of pollutants by flotation. EC equipment has few moving
parts, hence presenting lower maintenance costs (Mollah et al., 2001).
As the industry turns to greener processes, the use of electrochemical
technologies such as EC is preferred considering the advantages, such as
the non-requirement of additional chemicals, small volume of sludge
generated, and relatively low maintenance.
EC involves three main mechanisms: (i) generation of coagulants by
electrolytic oxidation of the anode, (ii) destabilisation of contaminants,
particulate suspension, and breaking of emulsions, and (iii) aggregation
of destabilised phases to form a floc (Vasudevan et al., 2010). The de-
stabilisation of colloidal particles occurs through the compression of the
electric double layer, charge neutralisation, sweep flocculation, and
bridge formation (Holt et al., 2002). Several of these mechanisms occur
simultaneously, although the dominant mechanism depends on several
parameters, such as the concentration of the pollutant, pH of the so-
lution, and type of coagulant.
The most widely used electrode materials in the EC process are
aluminium and iron. In the case of aluminium, the main reactions are:
→ + =+ −Al Al e E VAt the anode: 3 1.662 ,s aq( ) ( )
3 0
+ → + = −− −
H O e OH H E VAt the cathode: 2 2 2 0.8277 .aq g2 ( ) 2( )
0
During the oxidation of the sacrificial anode, aluminium forms
polymeric species, such as [Al6(OH)15]3+
, [Al7(OH)17]4+
,
[Al8(OH)20]4+
, [Al13O4(OH)24]7+
, and [Al13(OH)34]5+
, that eventually
transform into Al(OH)3(s) (Ghosh et al., 2008). Al(OH)3(s) has a large
surface area for effective adsorption, and its flocs are separated from
solution by sedimentation or flotation.
Wastewater treatment using the EC process is complicated owing to
the complexity of the reactions, such as electrodissolution of anode,
hydrolysis of metal ions, formation of the hydroxyl complexes, and
adsorption of pollutants on amorphous metal hydroxide precipitates
among others (Mollah et al., 2001). Considering its dependence on
several factors, EC process modelling is challenging and cannot be
solved by simple linear multivariate correlation.
Artificial neural networks (ANNs) are important artificial in-
telligence systems capable of solving a range of complex problems. An
ANN is a computational system made up of units known as neurons.
Neurons are interconnected processors working in parallel to perform a
given task (Reed and Marks, 1999). A training algorithm is used to
adjust the parameters (weights and bias). There are many algorithms
for training neural networks, but the first algorithm developed was
backpropagation. The simplest implementation of backpropagation
learning updates the network weights and biases in the direction in
which the performance function decreases most rapidly, which is the
negative of the gradient (Aggarwal et al., 2005). This algorithm shows
poor performance owing to the low rate of convergence and depen-
dence on the learning rate parameter. However, with regularisation
techniques in the backpropagation training algorithm, it is possible to
obtain a small error for functioning approximation algorithm. ANN
models have shown potential for modelling the EC process, as seen in
the studies of Mirsoleimani-azizi et al. (2015), Manh (2016), Valente
et al. (2014), and others.
In this work, the removal of boron from aqueous solutions was
achieved by EC using aluminium as anode and cathode. A 5.5-L EC cell,
consisting of an arrangement of four monopolar electrodes with a 10-
mm spacing between them, was used in this research at a stirring speed
of 250 rpm. NaCl was added as the supporting electrolyte. The effect of
operating parameters, including initial pH, current density, and treat-
ment time, on the efficiency of boron removal was investigated. An
important objective was to develop an ANN model (with
Backpropagation Bayesian Regularisation called trainbr) that allows for
a reliable prediction of the efficiency of the EC process.
2. Materials and methods
2.1. Preparation of synthetic wastewater
Synthetic wastewater simulating the range of boron concentrations
found in mining wastewater was prepared by dissolving the appropriate
quantity of boric acid (H3BO3) in distilled water to form a stock solu-
tion.
2.2. Experimental apparatus
The system consisted of an electrochemical cell and DC power
supply (ICEL-PS-1001). The synthetic wastewater was stirred magne-
tically at 250 rpm to ensure homogenisation. The pH was monitored
with a pH meter (Hanna). All experiments were carried out at room
temperature (25 °C ± 1 °C).
The EC unit was made of acrylic with the following dimensions:
length = 150 mm; width = 190 mm; and height = 170 mm. The cell
was equipped with four fully-submerged aluminium electrode plates.
The electrodes were 120-mm long, 130-mm wide, and 1-mm thick, and
were perforated uniformly with a 5-mm drill bit to facilitate the
movement of the solution inside the cell. The volume of the cell was
5.5 L. The cell was operated in monopolar mode, which means that all
the electrodes were physically connected to either the positive or ne-
gative outlet of the DC power supply. The distance between an anode
and neighbouring cathode was 10 mm.
2.3. Experimental procedure
The experiment started with the introduction of the solution into the
cell. The initial pH was adjusted to the desired value (3, 4, 5, 6, 7, and
8) using 1 M HCl or NaOH. The concentration of the supporting elec-
trolyte used was 0.88 g/L NaCl. A current density (6.25, 12.50, and
18.75 mA/cm2
) was then applied to the cell and maintained during
each experimental run. Samples were collected at 0, 5, 10, 15, 20, 40,
60, 90, 120, and 150 min during the operation. The pH was also mea-
sured at the same time intervals. For each experiment, the residual
boron concentration in the samples filtered through a 0.45-μm filter
paper (Millipore) was determined by inductively coupled plasma mass
spectrometry (ICP-MS, DRC II, Perkin Elmer).
In order to avoid any interference and ensure surface reproduci-
bility, electrodes were prepared prior to the EC test in the following
manner: (1) mechanically polished with 5 μm abrasive paper; (2)
cleaned in 1 M HCl solution for 2 min; (3) rinsed with distilled water;
and (4) dried with absorptive paper.
2.4. Development of models
The data sets collected from each batch run were used to develop
models based on ANN, and the simulations were conducted with the
assistance of MATLAB R2017a (The MathWorks Inc., USA). The ex-
perimental data were divided into training and test sets and expanded
via cubic spline interpolation, to a total of 2448 vectors in the data set.
The monitored variables were current density (J), pH, and treatment
time.
The adopted ANNs were feedforward with multilayer perceptron as
described in Eqs. (1) and (2).
∑= +
=
bb f a V Bias( )j
j
n
i ij
1 (1)
∑= +
=
cc f b W Bias( )j
j
n
j ij
1 (2)
The activation functions in each neuron from hidden to output
layers were calculated using Eqs. (3) and (4).
T. da Silva Ribeiro et al. Minerals Engineering 131 (2019) 8–13
9
3. = =
+
f b c logsig b c
b c
( | ) ( | )
1
1 exp( | )
j j j j
j j (3)
= =
+
−f b c tansig b c
b c
( | ) ( | )
2
1 exp( | )
1j j j j
j j (4)
The ANN model was trained by Levenberg-Marquardt with Bayesian
Regularisation (trainbr). It minimises a combination of squared errors
and weights and then determines the correct combination so as to
produce a network that generalises well. Validation stops are disabled
by maximum validation failures equal zero so that training can con-
tinue until an optimal combination of errors and weights is found. In
trainbr, regularisation adds an additional term and an objective function
to penalise large weights that may be introduced in order to obtain
smoother mapping.
The training stops when any of these conditions is fulfilled: (1) The
maximum number of epochs is reached; (2) The maximum amount of
time is exceeded; (3) Performance is minimised to the goal; (4) The
performance gradient falls below the minimum performance gradient;
or (5) The Marquardt adjustment parameter exceeds its maximum
value.
The evaluation of the model performance was assessed using the
sum of squared error (SSE) and coefficient of determination (R2
) (Eqs.
(5) and (6), respectively),
∑= −
=
SSE Y Y( )
i
n
observed predicted
1
2
(5)
= −
∑ =
R
SSE
Y
1 ( )
i
n
predicted
2
1
2
(6)
where Yobserved are the observed values (experimental values of the
electrocoagulation efficiency) and Ypredicted are the predicted values from
the model.
3. Results and discussion
In this section, the following operational parameters were in-
vestigated: initial pH, current density, and treatment time.
3.1. Effect of initial pH
The initial pH strongly affects the performance of the EC process,
particularly, the degree of hydrolysis of the Al3+
cation. In EC, the pH
of the solution increases during the process as a result of hydroxyl ion
generation in the cathode. Accordingly, the range of pH values that the
solution exhibits throughout the process plays a key role.
In this study, the effect of initial pH (pH0) on the percentage of
boron removal as a function of time was investigated for pH0 = 3–8, as
shown in Fig. 1. As can be observed, the highest percentage of boron
removal was achieved at pH0 = 4. Several authors (Ezechi et al., 2012;
Missaoui et al., 2013; Yilmaz et al., 2005) achieved the highest per-
centage of boron removal at pH0 = 7. This difference can be explained
by the different experimental conditions used in this study; unlike
previous experiments, pH was not kept constant throughout the EC
process in the present study.
Fig. 2 shows the behaviour of pH throughout the process where the
highest percentage of boron removal was achieved. According to the
results obtained by Cañizares et al. (2006), the predominant coagulant
species at pH 4 are represented by monomeric cations. At this pH, boron
mostly exists as boric acid; thus, it is removed mainly through the
charge neutralisation mechanism. As the pH of the solution increases
from 4 to 8 over time, the predominant removal mechanism changes to
sweep flocculation involving the precipitates of aluminium hydroxide,
which is the predominant species. Consequently, boron removal may
occur by a combination of mechanisms involving colloid charge de-
stabilisation, adsorption to floc surfaces, and incorporation within
amorphous precipitates. It is important to note that aluminium
hydroxide exhibits its lowest solubility in the pH range 6–8.
3.2. Effect of current density
A key parameter in the EC process is the current density since it has
a significant effect on the reaction kinetics. The current density is re-
lated to the extent of anodic dissolution. At the same time, the rate of
electrolytic gas generation and the size of bubbles also depend on the
applied current density. Therefore, current density directly affects the
dosage of coagulant, removal of the contaminant by flotation, and
mixing of the solution.
To investigate the effect of current density on the percentage of
boron removal, experiments were performed at different current den-
sities. Fig. 3 shows the percentage of boron removal as a function of
0 20 40 60 80 100 120 140
0
5
10
15
20
25
30
35
40
45
50
55
BoronRemoval(%)
Time (min)
pH0 = 3.0
pH0 = 4.0
pH0 = 5.0
pH0 = 6.0
pH0 = 7.0
pH0 = 8.0
J = 6.25 mA/cm2
Fig. 1. Effect of the initial pH (pH0) on the percentage of boron removal
([NaCl] = 15 mM, rpm = 250, d = 10 mm, [B] = 50 mg/L, J = 6.25 mA/cm2
).
4 5 6 7 8
0
5
10
15
20
25
30
35
40
45
50
55
BoronRemoval(%)
pH
0
5
10
15
20
40
60
90
150
Time (min)
Charge Neutralization
Sweep Flocculation
Fig. 2. Behaviour of the pH throughout the process (pH0 = 4; [NaCl] = 15 mM;
rpm = 250; d = 10 mm; [B] = 50 mg/L; J = 6.25 mA/cm2
). At pH 4, the pre-
dominant coagulant species are represented by monomeric Al3+
, thus boron is
removed mainly through the charge neutralisation mechanism. As the pH of the
solution increases from 4 to 8 over time, the predominant removal mechanism
changes to sweep flocculation involving the precipitates of aluminium hydro-
xide, which is the predominant species.
T. da Silva Ribeiro et al. Minerals Engineering 131 (2019) 8–13
10
4. initial pH at current densities of 6.25, 12.50, and 18.75 mA/cm2
.
It can be seen from Fig. 3 that the percentage of boron removal
increases with increase in current density. These results converge with
those obtained by Ezechi et al. (2012). Such behaviour may be justified
by the increased generation of Al3+
due to increasing anodic dissolu-
tion and a consequent increase in the hydrolysis products, especially
aluminium hydroxide precipitates. In addition, with increasing current
2 4 6 8
35
40
45
50
55
60
65
70
BoronRemoval(%)
Initial pH
6.25 mA/cm2
12.50 mA/cm2
18.75 mA/cm2
Fig. 3. The percentage of boron removal as a function of initial pH at different
current densities ([NaCl] = 15 mM, rpm = 250, d = 10 mm, [B] = 50 mg/L,
t = 90 min).
Table 1
Performance indices of several neural topologies for predicting the percentage
of boron removal. The coefficient of determination (R2
) and sum of squared
error (SSE) values were analysed for the selection of the best model. The input
neurons are current density (J), pH, and treatment time.
Boron removal model
Neurons in hidden layer Activation function R2
SSE
5 tansig 0.97828 3.250
6 tansig 0.97631 3.010
5 logsig 0.98271 0.943
6 logsig 0.94441 0.751
7 logsig 0.97441 0.775
8 logsig 0.96694 0.627
10 logsig 0.97268 0.616
14 logsig 0.96504 0.550
15 logsig 0.95026 0.508
Fig. 4. ANN used in the prediction of the percentage of boron removal.
Fig. 5. MATLAB Neural Network Toolbox settings for the best model.
Fig. 6. Predicted percentage of boron removal (using ANN) versus experi-
mental data.
Fig. 7. Representation of the behaviour of the predicted data with respect to the
observed data of each sample.
T. da Silva Ribeiro et al. Minerals Engineering 131 (2019) 8–13
11
5. density, an approximation between the percentage of boron removal at
different initial pH values is observed. This behaviour can be explained
by the high concentration of precipitates in the solution.
3.3. ANN modelling
The topology of an ANN is determined by the number of layers,
number of neurons in each layer, and nature of the transfer functions.
Training of ANN topology is the next important step in the development
of a model. Table 1 displays the ANN modelling results for each case
studied, with different number of neurons in the hidden layer and ac-
tivation functions. The R2
and SSE values were analysed for the selec-
tion of the best model.
Fig. 4 displays the configuration of the neural networks used for the
prediction of the percentage of boron removal. All ANN models used in
this work had an input layer structured with 3 neurons, corresponding
to the current density, pH, and treatment time. The output layer con-
sisted of 1 neuron, corresponding to the percentage of boron removal.
In addition, the topology containing 10 neurons in the hidden layer
was adopted and a feedforward backpropagation ANN was used for the
modelling of the process (Fig. 5). The activation functions applied to the
neurons of the hidden and output layers were logsig and purelin, re-
spectively. The applied training algorithm was trainbr.
The network was evaluated by comparing its predicted output va-
lues with the experimental ones using an independent set of data (test
set). Fig. 6 demonstrates the plot of the experimental data (test set)
versus the predicted data. It shows that the points are well distributed
around the X = Y line in a narrow area. A correlation coefficient of
R2
= 0.973 indicates the reliability of the model. Fig. 7 shows how the
predicted data behave in relation to the observed data from each
sample.
Table 2 presents the optimised parameter values (weights and bias)
of the ANN used to predict the percentage of boron removal.
The associated network weights and biases for the ANN model
predict the percentage of boron removal for different experimental
conditions. For comparative assessment of ANN model of the system for
the boron removal efficiency varied in the range of current density, pH
and treatment time, obtaining good agreement with the experimental
data.
A few similar studies have attempted modelling of the EC process
through ANN. Bhatti et al. (2011) carried out assays to optimise the
percentage of chromium removal by varying the electrolysis voltage
and treatment time. Consequently, modelling of boron removal by the
ANN technique shows the importance and contribution of these results.
4. Conclusions
In the present study, the EC process for boron removal demonstrated
significant results; thus, it is not only feasible but also an environment-
friendly technique. The optimum conditions for boron removal were as
follows: initial pH0 = 4, J = 18.75 mA/cm2
, and treatment time of
90 min. Under these conditions, a boron removal efficiency of ap-
proximately 70% was achieved. Boron removal may occur by a com-
bination of mechanisms involving colloid charge destabilisation, ad-
sorption to floc surfaces, and incorporation within amorphous
precipitates.
The use of an ANN model provided a proper correlation between
variables in the EC system. An ANN topology of 3-10-1, logsig in the
hidden layer, purelin in the output layer, and Bayesian regularisation
backpropagation as the training algorithm presented a suitable per-
formance with an SSE of 0.616 and R2
of 0.973, indicating its practical
application. The optimised parameters (weights and bias) were vali-
dated after the training procedure based on minimisation of output
error between target and experimental data.
Treatment of synthetic wastewater in a continuous flow system and
process scale-up remain subjects of further research and can be de-
signed using optimisation models.
Acknowledgements
The authors acknowledge the Pontifical Catholic University of Rio
de Janeiro (PUC-Rio), Conselho Nacional de Desenvolvimento
Científico e Tecnológico (CNPq), Coordenação de Aperfeiçoamento de
Pessoal de Nível Superior (CAPES), and Fundação de Amparo à
Pesquisa do Estado do Rio de Janeiro (FAPERJ).
References
Aggarwal, K.K., Singh, Y., Chandra, P., Puri, M., 2005. Bayesian regularization in a neural
network model to estimate lines of codes using function points. J. Comput. Sci. 1 (4),
505–509.
Bhatti, M.S., Reddy, A.S., Kalia, R.K., Thukral, A.K., 2011. Modeling and optimization of
voltage and treatment time for electrocoagulation removal of hexavalent chromium.
Desalination 269 (1–3), 157–162.
Cañizares, P., Martínez, F., Jiménez, C., Lobato, J., Rodrigo, M.A., 2006. Comparison of
the aluminum speciation in chemical and electrochemical dosing processes. Ind. Eng.
Chem. Res. 45 (26), 8749–8756.
Ezechi, E.H., Isa, M.H., Kutty, S.R.B.M., 2012. Boron in produced water: challenges and
improvements: a comprehensive review. J. Appl. Sci. (Faisalabad) 12 (5), 402–415.
Ferreira, O.P., De Moraes, S.G., Duran, N., Cornejo, L., Alves, O.L., 2006. Evaluation of
boron removal from water by hydrotalcite-like compounds. Chemosphere 62 (1),
80–88.
Ghosh, D., Medhi, C.R., Purkait, M.K., 2008. Treatment of fluoride containing drinking
water by electrocoagulation using monopolar and bipolar electrode connections.
Chemosphere 73 (9), 1393–1400.
Holt, P.K., Barton, G.W., Wark, M., Mitchell, C.A., 2002. A quantitative comparison be-
tween chemical dosing and electrocoagulation. Colloids Surf., A 211 (2–3), 233–248.
Kot, F.S., 2009. Boron sources, speciation and its potential impact on health. Rev.
Environ. Sci. Bio/Technol. 8 (1), 3–28.
Manh, H.B., 2016. Modeling the removal of Sunfix Red S3B from aqueous solution by
electrocoagulation process using artificial neural network. J. Serb. Chem. Soc. 32.
Mirsoleimani-azizi, S.M., Amooey, A.A., Ghasemi, S., Salkhordeh-panbechouleh, S., 2015.
Modeling the removal of endosulfan from aqueous solution by electrocoagulation
process using artificial neural network (ANN). Ind. Eng. Chem. Res. 54 (40),
9844–9849.
Missaoui, K., Bouguerra, W., Hannachi, C., Hamrouni, B., 2013. Boron removal by
Table 2
Optimised parameters (weight and bias) of the ANN used to predict the percentage of boron removal.
Parameters connecting the input and hidden neurons Parameters connecting the hidden and output neurons
v1j v2j v3j bj →w ji 10 cj
j = 1 −0.8241 0.6418 −0.7672 −0.8212 −3.2599 −2.0956
j = 2 −1.6324 −2.0999 −2.3508 1.3452 0.6505
j = 3 −2.5708 1.2309 −6.6987 1.0016 2.5329
j = 4 0.9257 1.4328 0.5077 −0.3327 2.6011
j = 5 2.2259 −1.7243 −0.0015 1.2622 1.9744
j = 6 −2.4331 0.9130 −6.3380 0.7113 −2.6046
j = 7 −1.5729 1.3745 −0.3425 −0.9921 3.3439
j = 8 0.2212 1.2281 −0.0436 0.2798 3.9094
j = 9 −0.2152 1.1819 −0.4059 0.7046 2.9550
j = 10 0.6023 1.3717 3.0061 −0.9968 0.2244
T. da Silva Ribeiro et al. Minerals Engineering 131 (2019) 8–13
12
6. electrocoagulation using full factorial design. J. Water Resour. Prot. 5 (09), 867.
Mollah, M.Y.A., Schennach, R., Parga, J.R., Cocke, D.L., 2001. Electrocoagulation
(EC)—science and applications. J. Hazard. Mater. 84 (1), 29–41.
Parks, J.L., Edwards, M., 2005. Boron in the environment. Crit. Rev. Environ. Sci.
Technol. 35 (2), 81–114.
Reed, R., Marks II, R.J., 1999. Neural Smithing: Supervised Learning in Feedforward
Artificial Neural Networks. Mit Press.
Schlesinger, W.H., Vengosh, A., 2016. Global boron cycle in the anthropocene. Global
Biogeochem. Cycles 30 (2), 219–230.
Vasudevan, S., Epron, F., Lakshmi, J., Ravichandran, S., Mohan, S., Sozhan, G., 2010.
Removal of NO3–from drinking water by electrocoagulation–an alternate approach.
Clean-Soil, Air, Water 38 (3), 225–229.
Valente, G.F.S., Mendonça, R.C.S., Pereira, J.A.M., Felix, L.B., 2014. Artificial neural
network prediction of chemical oxygen demand in dairy industry effluent treated by
electrocoagulation. Sep. Purif. Technol. 132, 627–633.
Yilmaz, A.E., Boncukcuoğlu, R., Kocakerim, M.M., Keskinler, B., 2005. The investigation
of parameters affecting boron removal by electrocoagulation method. J. Hazard.
Mater. 125 (1–3), 160–165.
Wang, B., Guo, X., Bai, P., 2014. Removal technology of boron dissolved in aqueous
solutions–a review. Colloids Surf., A 444, 338–344.
Wolska, J., Bryjak, M., 2013. Methods for boron removal from aqueous solutions—A
review. Desalination 310, 18–24.
T. da Silva Ribeiro et al. Minerals Engineering 131 (2019) 8–13
13