Introduction

Wastewaters generated from textile industries constitute one of the largest groups of organic compounds which are a serious threat to the environment [1, 2]. In recent years, there has been a growing interest in the development of new processes for water treatment, since the traditional physical treatment processes only transfer the contaminants from the wastewater to other media [3]. The heterogeneous photocatalysis process, based on a combination of UV irradiation and a semiconductor, represents one of AOPs that provide an interesting route to the destruction of many organic substances to CO2, H2O, and corresponding mineral acids [4]. When a semiconductor absorbs a photon with energy greater than or equal to the band gap energy, valence band electrons are promoted to the conduction band leaving a hole behind. These electron–hole pairs can either recombine or interact separately with other molecules [5]. Reactions between adsorbed water, hydroxyl anions, and oxygen molecules or other substances with electron and hole pairs produced at the semiconductor surface under UV irradiation produce hydroxyl radicals. The hydroxyl radical is a powerful oxidizing agent and attacks organic compounds [6].

Titanium dioxide exists in three crystalline phases: anatase, rutile, and brookite [7, 8]. The predominant commercial phase of TiO2 is anatase which has been widely studied because of its high activity in photocatalytic applications. Anatase with a tetragonal crystal structure and a band gap of 3.23 eV has been used in photocatalytic processes [8, 9]. In comparison with the other forms of titania, the rutile form is stable. Rutile has a crystal structure similar to that of anatase, with the exception that the octahedral shares four edges instead of four corners. Rutile with a band gap of 3.0 eV has been used as a whitening agent [10, 11]. Brookite has an orthorhombic crystal structure and spontaneously transforms to rutile around 750 °C [8]. TiO2 is extensively used as an active component for photocatalytic reactions. It is nontoxic, stable within a wide range of pH, inexpensive, and, due to a fast electron transfer to molecular oxygen, is found to be very efficient for photocatalytic removal of pollutants [12, 13]. There are many variables that affect the photocatalytic activity of TiO2, such as particle size, crystal structure, and the preparation method of particles. Crystal structure and particle size are considered as important factors that determine photoactivity [14, 15].

In recent years, many researchers have applied artificial neural networks (ANNs) for simulations in various fields. For example, Frontisti et al. applied the ANN technique to modeling of the photocatalytic (UV-A/TiO2) degradation of 17α-ethynylestradiol (EE2) in different operational conditions [TiO2 and EE2 concentration, reaction time, organic content and conductivity of the water matrix (DOC)] by TiO2-P25 nanoparticles. They have reported that the ANN can be a reliable method of semiempirical models in wastewater treatment. By using the ANN model, they have calculated the relative significance of the operational parameters on the value of EE2 photocatalytic degradation, and the following order for variables effects was achieved by the ANN model: reaction time ≈ matrix conductivity > TiO2 concentration > estrogen concentration ≈ matrix DOC [16]. Khatamian et al. employed ANN to predict the performance of photocatalytic degradation of 4-nitrophenol (4-NP) using ZnO nanoparticles supported on zeolites. They have reported that the ANN model was successful in predicting the performance of photocatalytic degradation of 4-NP in aqueous solution. Furthermore, the sensitivity analysis showed that the following order for variables effects was predicted by the ANN model: pH (52.39 %) > Time (35.87 %) > initial 4-NP concentration (11.74 %) [17].

In this study, TiO2 nanoparticles were prepared by the sol–gel method under different gelation pH conditions and the effect of the gelation pH was studied on the phase structure, crystallite size, and photocatalytic activity. Photocatalytic removal of C.I. Acid Red 27 (AR27) was chosen as a probe reaction to measure the photocatalytic activity of TiO2 nanoparticles. The effects of some operational parameters (such as TiO2 dosage, initial AR27 concentration, initial pH of solution, and UV-light intensity) on the photocatalytic removal of AR27 were studied and modeled by using a multilayer feed-forward neural network model. Furthermore, the relative importance of each operational parameter was calculated based on the connection weights of the ANN model.

Experimental

Materials

The following commercial reagents were used: titanium tetraisopropoxide (TTIP) [Ti(OC3H7)4; Merck], sodium hydroxide (NaOH), nitric acid (HNO3) and methanol (MeOH) with absolute grade. AR27 which is a monoazo anionic dye was obtained from Merck and used without further purification. Figure 1 displays the structure of this dye. All other reagents were of analytical grade. Solutions were prepared by dissolving the required quantity of the AR27 and the prepared photocatalyst in double-distilled water.

Fig. 1
figure 1

Molecular structure of AR27

Preparation of TiO2 nanoparticles

TiO2 nanoparticles were prepared from TTIP as a titanium precursor, in methanol and distilled water. Initially, TTIP was slowly dissolved in the methanol with molar ratios 1:1. Then, the obtained titanium solution was sonicated in an ultrasonic bath (Elma, T460/H, 35 kHz, 170 W). The hydrolysis of the alkoxide was then performed by adding water dropwise into a flask containing (precursor/solvent) mixture under reflux and magnetic stirring for 3 h at 80 °C. The hydrolysis process was carried out at different pH values, adjusted by the addition of NaOH or HNO3. The obtained sol was dried at 80 °C and finally calcined in air at 450 °C during 3 h. Phase composition and crystallite size of TiO2 nanoparticles were analyzed by X-ray diffraction (XRD) measurements which were carried out at room temperature by using a Siemens XRD D5000 with Cu Kα radiation (λ = 0.15478 nm). The size of the synthesized TiO2 nanoparticles was obtained by a transmission electron microscopy (TEM) instrument (Philips CM-10 HT-100 keV). The specific surface area and pore-size distribution of the synthesized TiO2 nanoparticles were measured by nitrogen adsorption–desorption at 77 K using the BET method (Belsorp mini II instrument).

Photodegradation procedure

Removal of the azo-dye AR27 from aqueous solution was used as a model reaction to evaluate the photocatalytic activity of the prepared TiO2 nanoparticles. Photocatalytic removal of AR27 was carried out in a batch quartz photoreactor of 100 mL volume with a low-pressure mercury UV-C lamp (15 W, Philips, Netherlands) emitting around 254 nm, in the parallel array, which was placed in front of the quartz tube reactor. The light intensity in the center of the quartz photoreactor was measured using a Lux-UV-IR meter (Leybold, Germany). In each run, 40 mg of TiO2 nanoparticles was added to 100 mL of the solution and fed into the quartz tube reactor. At given irradiation time intervals, the samples (5 mL) were taken out and then analyzed by a UV–Vis spectrophotometer (Pharmacia Biotech Ultrospec 2000) at 522 nm.

Results and discussion

Characterization of TiO2 nanoparticles

The identification of the phase of the TiO2 nanoparticles and the grain size was done with XRD. Figure 2 depicts the XRD patterns of TiO2 nanoparticles prepared by the sol–gel method under different pH conditions.

Fig. 2
figure 2

X-ray diffraction for TiO2 nanoparticles prepared by the  sol–gel method at different gelation pH: a pH 3; b pH 5; c pH 7; d pH 10

The average crystallite size (D in nm) of TiO2 nanoparticles was determined from XRD patterns according to the Scherrer’s equation [18];

$$D = \frac{k\lambda }{\beta \cos \theta }$$
(1)

where k is a constant equal to 0.89, λ, the X-ray wavelength equal to 0.154056 nm, β, the full width at half maximum intensity (FWHM), and θ, the half diffraction angle. The phase structure of a sample can be calculated from the integrated intensities of anatase (\(I_{\text{A}}\)) and rutile (\(I_{\text{R}}\)) peaks using the following equation [19];

$${\text{Rutile}}\;{\text{phase}}\,\% \, = \,\frac{100}{{1\, + \,0.8\left( {\frac{{I_{\text{A}} }}{{I_{\text{R}} }}} \right)}}$$
(2)

Crystallite size and the amount of each phase of TiO2 nanoparticles as a function of gelation pH are presented in Table 1. In the obtained nanopowders, a mixture of anatase and rutile phases with crystallite size between 12–23 nm was identified. The percent of the anatase phase is at its highest value at pH 5. Also, the crystallite size of TiO2 nanoparticles in this pH is smaller than other gelation pHs. The crystallite size of the TiO2 nanoparticles is same at pH 3 and pH 10, but the amount of the anatase phase at pH 3 is higher than at pH 10. The results show that synthesis of TiO2 nanoparticles with different crystalline phases is possible only with changing the gelation pH in the synthesis period.

Table 1 Crystallite size and phase structure of TiO2 nanoparticles prepared at different gelation pH

Transmission electron microscopy analysis allows the direct deduction of mean particle size. The TEM image of the TiO2 nanoparticles prepared at gelation pH 5 with smaller crystallite size than other samples is shown in Fig. 3. The average particle size of the TiO2 nanoparticles was found to be <15 nm, which is in agreement with the crystallite size calculated from the XRD pattern.

Fig. 3
figure 3

TEM image of TiO2 nanoparticles prepared at gelation pH 5

Figure 4 displays the nitrogen adsorption–desorption isotherm of TiO2 nanoparticles prepared at gelation pH 5. At high relative pressures from 0.55 to 0.85, the isotherms exhibit hysteresis loops of H2 type indicating the existence of an ink-bottle-type pores structure with narrow necks and wide bodies [20, 21]. The BET surface area and total pore volume for TiO2 nanoparticles prepared at gelation pH 5 were 99.71 m2 g−1 and 0.2169 cm3 g−1, respectively. The average pore size obtained by the BJH model (Fig. 4 inset) was 8.7 nm, suggesting the presence of mesoporous structure.

Fig. 4
figure 4

The N2 adsorption–desorption isotherm and BJH pore size distribution curve (inset) of TiO2 nanoparticles prepared at gelation pH 5

Photocatalytic activity

The adsorption of AR27 onto TiO2 nanoparticles was negligible at the initial pH of 5. Interactions between AR27 molecules with anionic character and TiO2 nanoparticles will be favored at very acidic pHs. The semi-logarithmic graph of the concentration of AR27 in the presence of TiO2 nanoparticles prepared at different gelation pH versus UV light irradiation time yields straight lines, which confirm the pseudo-first-order kinetics for decolorization of AR27 in this process. Figure 5 shows the variation of the pseudo-first-order reaction rate constant (k ap) for removal of AR27 with TiO2 nanoparticles prepared at different gelation pH. As can be seen from this Figure, the maximum photocatalytic activity of the TiO2 nanoparticles was obtained at gelation pH 5. This can be the result of a higher percentage of the anatase phase and also the smaller size of the nanoparticles at this gelation pH. The anatase phase of TiO2 has higher photocatalytic activity in comparison with the rutile phase. Because the anatase phase has a wider band gap (~3.2 eV) than that of TiO2 rutile phase (~3.0 eV), the electron−hole separation in anatase phase therefore occurs better than in the rutile phase [2224]. Barati et al. studied the influence of sol pH on the particle size of TiO2 nanostructures. They have reported that when the pH increases from 4.5 to 7, the particle size of the TiO2 thin film increases. Transformation from Ti(OH)4 to anatase TiO2 and nucleation of anatase are assumed to be inhibited by excessive adsorption of hydroxyl ions to TiO2 clusters [25]. Zhang et al. prepared TiO2 nanoparticles using the reverse micelle method under acidic conditions. It was found that the concentration of the acid has a major role in the formation of rutile phase, and higher acid concentration (2.5 M) is better for rutile crystallization. Their product was a mixture of anatase and rutile when the concentration of acid was 2 M [26]. Wei et al. studied the effect of pH in the range of 7–11 on phase content and particle size of TiO2 catalysts. They reported that the presence of a high concentration of hydroxyl ions is more suitable for the formation of the rutile phase [27]. The results in Fig. 5 and Table 1 show that the photocatalytic activity of TiO2 nanoparticles prepared at different gelation pH decreases with decreasing the percentage of the anatase phase so that the photocatalytic activity of the TiO2 nanoparticles prepared at gelation pH 10 is very low in comparison with other gelation pHs.

Fig. 5
figure 5

Effect of gelation pH on photocatalytic activity of TiO2 nanoparticles prepared by the sol–gel method

Artificial neural network (ANN) modeling

Artificial neural networks are a quite appropriate modeling technique for their ability of learning, simulation, and prediction of experimental data. A multilayered perceptron (MLP) neural net has one input layer of the neuron (independent variables), a number of hidden layers, and the output layer (dependent variables). The number of input and output neurons is fixed by the nature of the problem. The hidden layers act like feature detectors, and there can be more than one hidden layer [28, 29].

In this work, Matlab v.2011a mathematical software was used for ANN calculations and a three-layered back-propagation algorithm with tangent sigmoid transfer function (tansig) at hidden layer, and a linear transfer function (purelin) at output layer, was designed. The input variables of the network were the TiO2 dosage, initial AR27 concentration, initial pH of solution, and UV-light intensity, and the corresponding reaction rate constant (k ap) was used as an output of the network. The ranges of operational parameters are given in Table 2.

Table 2 The ranges of input and output variables

The ANN model was used from experimental datasets in different conditions for test training. The experimental datasets were split into training (one-half), validation (one-fourth) and test (one-fourth) subsets. All inputs and target data were scaled within a specified range. Therefore, all data (X i) were scaled (x i) into the 0.2–0.8 range through the following equation (3) [30, 31]:

$$x_{\text{i}} \, = \,0.2\, + \,\frac{{0.6(X_{\text{i}} \, - \,X_{ \hbox{min} } )}}{{(X_{\hbox{max} } \, - \,X_{\hbox{min} } )}}$$
(3)

where X min and X max refer to the lowest and highest value of the input variable X i, respectively.

The numbers of neurons in the hidden layer are affecting on the performance of an ANN model. In this study, to determine the optimum number of hidden nodes, different numbers of neurons tested in the range from 1 to 12, in the hidden layer. Each topology was repeated three times to avoid random correlation due to the random initialization of the weights. Figure 6 shows the relationship between the mean square error (MSE) and the number of neurons in the hidden layer. As can be seen, the lowest MSE was obtained in about 8 neurons; therefore, 8 neurons were selected for the best performance of the neural network model. Figure 7 shows the schematic illustration of the optimized ANN structure.

Fig. 6
figure 6

Effect of the number of neurons in the hidden layer on the performance of the neural network

Fig. 7
figure 7

Schematic illustration of the optimized ANN structure

Figure 8 shows a comparison between experimental and predicted k ap values for the test set by using the neural network model. The plot in this Figure has a correlation coefficient (R 2) of 0.9852. From this plot, it can be seen that the results obtained from the model are in good agreement with the experimental data, and that the model can accurately predict reaction rate constants at different operational conditions.

Fig. 8
figure 8

Comparison between predicted and experimental k ap values for the test set

For the test of the designed ANN model performance in the modeling of other organic pollutants, we employed photocatalytic removal of C.I Acid Red 88 (AR88) by TiO2-P25 nanoparticles. The results indicated that the predicted data from the designed ANN for photocatalytic removal of AR88 are in good agreement with the experimental data with a correlation coefficient (R 2) of 0.9566. Therefore, we conclude that the designed ANN is a reliable model for modeling of the photocatalytic removal of different organic pollutants under different operational conditions.

Optimization and modeling of operational parameters

To optimize the operational parameters in the photocatalytic removal of AR27 by using TiO2 nanoparticles prepared by the sol–gel method at gelation pH 5, four operational parameters, TiO2 dosage, initial AR27 concentration, initial pH of solution, and UV-light intensity, were studied.

Effect of TiO2 dosage

The influence of TiO2 loading on the photocatalytic removal rate of AR27 was studied using TiO2 dosages in the range of 0.1–0.5 g L−1. Figure 9 shows the variation of the removal rate for AR27 as a function of catalyst dosage. It can be seen from this Figure that the increase in the TiO2 dosage until 0.4 g L−1 improves the removal rate of AR27. This could be the result of increasing of available adsorption and catalytic sites on the TiO2 surface which are responsible for photocatalytic activity [14]. Improvement of the removal rate is not obvious above 0.4 g L−1 because, at high catalyst loading, the turbidity of the solution and scattering effect increases which causes a decrease in UV light penetration into the solution [32]. Figure 9 shows that the neural network model correctly predicts k ap of the AR27 removal by TiO2 nanoparticles as a function of the catalyst dosage.

Fig. 9
figure 9

Influence of TiO2 dosage on the removal rate of AR27. [AR27]0 = 20 mg L−1, I0 = 56.5 W m−2, pH of solution = 5

Effect of initial AR27 concentration

It is important from an application point of view to study the dependence of the removal rate on the initial concentration of the pollutant. The effect of the initial concentration of AR27 on the photocatalytic removal rate was studied over the concentration range of 10–50 mg L−1 of AR27 (Fig. 10). The results show that the removal rate decreases as the initial AR27 concentration increases. This can be due to the following reasons:

Fig. 10
figure 10

Influence of initial AR27 concentration on the removal rate of AR27. [TiO2]0 = 0.4 g L−1, I0 = 56.5 W m−2, pH of solution = 5

  • With increasing of the pollutant concentration, more and more organic substances and intermediates are adsorbed on the surface of TiO2 nanoparticles, and therefore the generation of active species such as hydroxyl radicals will be reduced [33, 34].

  • With increasing of the pollutant concentration, the solution becomes impermeable to UV radiation because the molar extinction coefficient of the AR27 at 254 nm (the wavelength of UV lamp) is very high, so the photons get intercepted before they can reach the catalyst surface [14]. Figure 10 shows a good agreement between the k ap of AR27 removal calculated from the ANN model and the experimental results as a function of the initial concentration of the dye.

Effect of initial pH of solution

An important parameter which affects the rate of photocatalytic reactions is the pH of the solution, because it dictates the surface charge properties of the photocatalyst and the size of aggregates that it forms. The removal of the pollutant was studied at different initial pH of solution values in the range 5–9. The pH of the reaction mixture was adjusted by adding a dilute aqueous solution of HCl or NaOH. The removal rate of AR27 as a function of the initial pH of solution is shown in Fig. 11. The results show that the removal efficiency of AR27 was carried out effectively at an initial pH 5, while increasing the pH causes a decrease of the removal rate.

Fig. 11
figure 11

Influence of initial pH of the solution on the removal rate of AR27. [TiO2]0 = 0.4 g L−1, [AR27]0 = 20 mg L−1, I0 = 56.5 W m−2

The pH of the solution can affect the surface charge of the photocatalyst and also shift the potential of some redox reactions. Thus, it affects the adsorption of organic solutes on the catalyst surface, and consequently its reactivity to active species formed at the surface. The amphoteric behavior of most semiconductor oxides influences the surface charge of the photocatalyst: the photocatalyst surface is positively charged in acidic media, whereas it is negatively charged under alkaline conditions [35, 36]. Under acidic media, adsorption of AR27 molecules effectively occur on the TiO2 surface because AR27 molecules are anionic and the catalyst surface as the result of proton adsorption is positively charged. The increase in the photocatalytic removal rate in acidic pH may be due to the high adsorption of AR27 molecules on the TiO2 surface. Figure 11 shows that the neural network model correctly predicts the k ap of the AR27 removal by the TiO2 nanoparticles as a function of the initial pH of the solution.

Effect of light intensity

The influence of UV-light intensity on the removal rate of AR27 has been monitored by increasing the UV-light intensity from 15.5 to 56.5 W m−2. Figure 12 shows the effect of light intensity on the removal rate of AR27 with TiO2 nanoparticles prepared by the sol–gel method. It appears from Fig. 12 that, by increasing the light intensity from 15.5 to 56.5 W m−2, the removal rate increases, because the UV-light irradiation generates the photons needed for the electron transfer from the valence band to the conduction band of a semiconductor photocatalyst. When the light intensity is low, the electron–hole separation competes with recombination and decreases the formation of hydroxyl radicals. The rate of decolorization increases when more radiation falls on the catalyst surface and hence more hydroxyl radicals are produced [6, 32, 37]. Figure 12 shows good agreement between the k ap of AR27 removal calculated from the ANN model and the experimental results as a function of UV-light intensity.

Fig. 12
figure 12

Influence of UV light intensity on the removal rate of AR27. [TiO2]0 = 0.4 g L−1, [AR27]0 = 20 mg L−1, pH of solution = 5

ANN model sensitivity analysis

Table 3 shows the weights produced by the ANN model used in this study. The relative importance of the influence of each input variable on the output variable can be obtained through the neural weights matrix [38].

Table 3 Weight matrix: weights between input and hidden layers (W1) and weights between hidden and output layers (W2)

For every input operational parameter, the percentage change in the output, as a result of the change in the input variable, was calculated using the following equation (4) [31, 38]:

$$I_{\text{j}} \, = \,\frac{{\sum\limits_{m\, = \, 1}^{{m\, = \,N_{\text{h}} }} {\left( {\left( {{{\left| {W_{\text{jm}}^{\text{ih}} } \right|} \mathord{\left/ {\vphantom {{\left| {W_{\text{jm}}^{\text{ih}} } \right|} {\sum\limits_{k\, = \, 1}^{{N_{\text{i}} }} {\left| {W_{\text{km}}^{\text{ih}} } \right|} }}} \right. \kern-0pt} {\sum\limits_{k\, = \, 1}^{{N_{\text{i}} }} {\left| {W_{\text{km}}^{\text{ih}} } \right|} }}} \right)\, \times \,\left| {W_{\text{mn}}^{\text{ho}} } \right|} \right)} }}{{\sum\limits_{k\, = \, 1}^{{k\, = \,N_{\text{i}} }} {\left\{ {\sum\limits_{m\, = \, 1}^{{m\, = \,N_{\text{h}} }} {\left( {{{\left| {W_{\text{km}}^{\text{ih}} } \right|} \mathord{\left/ {\vphantom {{\left| {W_{\text{km}}^{\text{ih}} } \right|} {\sum\limits_{k\, = \, 1}^{{N_{\text{i}} }} {\left| {W_{\text{km}}^{\text{ih}} } \right|} }}} \right. \kern-0pt} {\sum\limits_{k\, = \, 1}^{{N_{\text{i}} }} {\left| {W_{\text{km}}^{\text{ih}} } \right|} }}} \right)\, \times \,W_{\text{mn}}^{\text{ho}} } } \right\}} }}$$
(4)

where I j is the relative importance of the jth input variable on the output variable, N i and N h are the numbers of input and hidden neurons, respectively, W’s are connection weights, the superscripts ‘i’, ‘h’, and ‘o’ refer to input, hidden, and output layers, respectively, and subscripts ‘k’, ‘m’, and ‘n’ refer to input, hidden, and output neurons, respectively.

Figure 13 represents a comparison between the effects of the four input operational parameters as calculated by equation (4) on the photocatalytic removal of AR27. As can seen, the dosage of TiO2 nanoparticles with a relative importance of 39 % has a larger effect on the photocatalytic removal of AR27, followed by the UV-light intensity and the initial AR27 concentration, with relative importance of 26 and 24 %, respectively, while the initial pH of solution, with a relative importance of 11 %, was determined as the parameter with weak influence on the photocatalytic removal of AR27.

Fig. 13
figure 13

Relative importance (%) of the input operational parameters on the k ap values of the AR27 removal

Conclusions

We have successfully prepared TiO2 nanoparticles with crystallite size between 12 and 23 nm and different phase structures by the sol–gel method. TiO2 with mainly anatase phase (95 % anatase and 5 % rutile) can be prepared by adjusting the gelation pH to a value of 5. The test of photocatalytic activity indicates that the desired gelation pH for high photocatalytic activity is pH 5. In this study, the effect of some operational parameters on the photocatalytic removal of AR27 was modeled by the ANN technique. A three-layered back-propagation neural network with tangent sigmoid transfer function (tansig) at the hidden layer with 8 neurons was designed to predict the removal of AR27 under different operational conditions. The performance of prepared TiO2 nanoparticles in the dye removal was successfully simulated by using neural network modeling, and a good agreement was obtained between the predicted results from the ANN model and the experimental results, with a correlation coefficient (R 2) of 0.9852 and MSE 0.00242. The sensitivity analysis showed that the initial dosage of the prepared TiO2 nanoparticles has a larger effect on the photocatalytic removal of AR27, while the initial pH of solution has the lowest effect on the photocatalytic removal of AR27.