Introduction

Environmental pollution is one of the major global problems. These pollutions primarily result from the discharge of industrial waste, chemical fertilizers, pharmaceutical waste, household waste, and pesticides1,2. Currently, the ecological environment and human health are threatened by the increasing levels of organic pollutants in water3. Since the beginning of the new century, more than half a million organic compounds have been synthesized, with approximately 1,000 new organic compounds being created each year4.

Aniline is considered one of the most hazardous organic compounds due to its toxic effects on both human health and the environment5. It is a carcinogenic substance6 widely used in textiles, oil, rubber, pharmaceuticals, herbicides7, explosive stabilizers, plastic modifiers8, vulcanization accelerators, pesticides, and disinfectants9. When this toxic substance enters the bloodstream, it interferes with oxygen absorption by converting hemoglobin into ethemoglobin, leading to a condition known as methemoglobinemia. Furthermore, this substance induces hemolytic damage to red blood cells, leads to anemia, adversely affects splenic function, promotes oncogenic tumor formation, and significantly elevates the risk of bladder cancer in humans10,11. The International Agency for Research on Cancer (IARC) has classified aniline as a Group 2B carcinogen, indicating that it is possibly carcinogenic to humans due to its mutagenic and carcinogenic potential12. Therefore, aniline must be removed before discharging effluents into the around environment. Various treatment methods have been explored for the removal of aniline from aqueous solutions, including coagulation-flocculation5,9, remedial technologies10, magnetic catalysts13, electro-polymerization methods14, UV/proxy disulfate processes15, electrochemical treatments16, and photocatalytic oxidation processes17.

Recently, Advanced Oxidation Processes (AOPs) have demonstrated strong oxidative capabilities, effectively degrading persistent pollutants such as aniline. These processes typically generate reactive species, including hydroxyl radicals (OH) and superoxide radicals (O₂•⁻), through various combinations of hydrogen peroxide, ozone, nanoparticles, and ultraviolet irradiation. Recognized as emerging technologies, AOPs are widely employed as heterogeneous photocatalysts for the degradation of environmental pollutants18,19. Among these, heterogeneous photocatalytic oxidation using TiO₂ nanoparticles, hydrogen peroxide, and UV irradiation has been introduced as an effective method for degrading resistant pollutants20,21. As shown in Eq. 1, when H₂O₂ absorbs UV light, OH are generated:

$${\text{H}}_2{\text{O}}_2 + {\text{ h}}\nu \to 2\:^ \bullet{\text{OH}}$$
(1)

Hydrogen peroxide serves as the primary source of hydroxyl radical (•OH) generation. Additionally, OH radicals can also form in aqueous media when water molecules are oxidized by the catalyst. The generation rate of these radicals is influenced by the linear energy transfer (LET) and the pH of the solution. The formation of the resulting products follows the reaction presented in Eq. 218.

$$\text{H}_2\text{O} \to {^\bullet{\text{OH }}}\left( {2.8} \right){,^ \bullet }{\text{H }}\left( {0.6} \right),{\text{e}}^-\left( {2.7} \right),{\text{H}}_2\left( {0.45} \right),{\text{ H}}_2{\text{O}}_2\left( {0.72} \right),{\text{ H}}^+\left( {3.2} \right),{\text{OH}}^-\left( {0.5} \right)$$
(2)

Although the TiO₂/UV process is widely employed for the oxidation of organic compounds in wastewater, it is particularly effective in degrading pollutants with complex molecular structures, such as aniline19. A study conducted by Jia et al. demonstrated that catalytic processes were capable of removing up to 93.5% of aniline from aqueous solutions13. In another study, Maybahi et al. investigated the photocatalytic effect of nanoparticles on the degradation rate of aniline. Their results demonstrated that, under optimal experimental conditions—including pH, pH, contact time, and nanoparticle dosage the aniline removal efficiency reached 78.1%22. Moreover, Yablack et al. conducted a comprehensive evaluation of aniline oxidation using hydrogen peroxide, demonstrating that this method is highly efficient for aniline removal, Their results indicated a maximum removal efficiency of 99.21%, highlighting the significant potential of hydrogen peroxide as an oxidizing agent in wastewater treatment processes23.

Although AOPs are known for their efficiency in removing persistent organic contaminants from water solutions, the generation of potentially harmful intermediates or transformation products remains a notable concern. AOPs rely on the generation of reactive radicals, particularly OH, to break down organic pollutants. However, the degradation pathways can sometimes lead to the formation of intermediate compounds with residual or unknown toxicity. Therefore, performing a thorough toxicity evaluation of the effluents produced by such systems is necessary to verify their environmental safety and treatment effectiveness.

To address this, biological assays are increasingly used as complementary tools to chemical analysis. Among them, the alamar blue (AB) assay method has gained recognition due to its ability to detect changes in cellular metabolic activity through a measurable color change. This technique stands out for being highly sensitive, non-toxic to cells, easy to perform, rapid and economically feasible24,25,26. Its application in environmental toxicology allows for early identification of harmful effects that might not be captured through conventional analytical methods. Thus, integrating such bioassays into effluent evaluation protocols provides a more comprehensive assessment of the ecological risks associated with treated wastewater25,27. This method assesses the activity of the electron transport system (ETS) dehydrogenase enzyme, which is directly correlated with the amount of oxygen consumed. Under these conditions, AB dye is reduced to resorufin by the bacterial electron transport system, enabling quantification of bacterial metabolic activity18,19.

In a study, Zare et al. evaluated the toxicity of effluent from a Sequencing Batch Reactor (SBR) using the AB assay. Their findings showed that the AB dye was reduced by metabolically active bacteria present in the wastewater, and the extent of this reduction-indicated by a measurable color change-was used to quantify bacterial activity25.

Additionally, Toolabi et al. demonstrated the effectiveness of the AB assay in determining the toxicity of effluents from photocatalytic reactors. In their study, P. aeruginosa was employed as the test microorganism due to its high sensitivity to toxic substances commonly present in effluent. The reduction of AB by metabolically active bacteria enabled reliable quantification of bacterial viability, establishing this method as a valuable tool for toxicity assessment in wastewater treatment processes. Furthermore, their findings confirmed that AB serves as a rapid, sensitive, and cost-effective indicator for evaluating the biological effects of treated effluents28. To date, no study has investigated the toxicity of aqueous solutions treated via a photocatalytic process for aniline removal using the AB assay to quantify the activity of reductive dehydrogenase enzymes in P. aeruginosa. Accordingly, the present study aimed to eliminate aniline from aqueous solutions through a TiO₂/H₂O₂/UV-based photocatalytic process and to assess the toxicity of the treated effluent by evaluating the metabolic activity of P. aeruginosa ATCC 27853.

Materials and methods

Preparation of materials

Hydrogen peroxide, sodium hydroxide, hydrochloric acid, and aniline (99.5% purity) were purchased from Merck, Germany. Titanium dioxide was supplied by Pishgaman Nano Materials Company, Mashhad, Iran. Nutrient broth, KH₂PO₄, K₂HPO₄, glucose, sodium acetate, dimethyl sulfoxide, n-amyl alcohol, and sodium bicarbonate were available in our laboratory. The chemical and physical properties of aniline are summarized in Table 1.

Table 1 Physical and chemical properties of Aniline.

Microorganism

To biologically assess the toxicity of the effluent, a standard strain of P. aeruginosa ATCC 27853 was obtained from the Tehran Razi Institute. Subsequently, a bacterial suspension was prepared according to the 0.5 McFarland standard. The 0.5 McFarland standard was employed as a turbidity reference to standardize the concentration of bacterial suspensions prior to antibiotic susceptibility testing. This standard was prepared by forming a barium sulfate (BaSO₄) precipitate through the reaction of 0.5 mL of barium chloride with 99.50 mL of diluted sulfuric acid. The turbidity of the resulting suspension was verified Spectrophotometry at a wavelength of 625 nm, with absorbance values ranging between 0.08 and 0.12. To ensure consistency and reproducibility in microbial assays, the final suspension was adjusted to match a bacterial density of approximately 1.5 × 10⁸ colony-forming units per milliliter (CFU/mL)29,30.

Modeling and statistical analysis

In this study, Response Surface Methodology (RSM) was employed to optimize the experimental data. RSM is an advanced statistical technique used for modeling, analyzing, and optimizing complex processes with multiple variables. This algorithm models the relationship between input and output variables to identify the optimal conditions for the process. Data analysis was conducted using Design-Expert software, version 13.

The Central Composite Design (CCD), one of the most commonly used designs in RSM, was employed in this study. CCD model enables the development of an accurate model of the system response while minimizing the number of required experiments. In the CCD model, experimental points include center points that help determine repeatability and experimental error. This design is particularly suitable for exploring quadratic response surfaces and efficiently estimating interactions among variables31,32. The quadratic model is mathematically represented by the following equation (Eq. 3):

$$\:Y={\beta\:}_{0}+\:\sum\nolimits_{i=1}^{k}\beta\:{\:}_{i}{x}_{i\:}+\:\sum\nolimits_{i=1}^{k}\beta\:{\:}_{ii}{x}_{i}^{2}+\:\sum\nolimits_{1\le\:i\le\:j}^{k}\beta\:{\:}_{ij}{x}_{i}{x}_{j}\:\:$$
(3)

Where:

Y = predicted response.

β0​ = constant coefficient.

βi ​ = linear regression coefficients.

βii ​ = quadratic coefficients.

βij = interaction coefficients.

Xj and Xj​ = coded values of the independent variables.

In the present study, the number of experimental runs was determined based on the CCD model, considering key variables such as aniline concentration (1–40 mg/L), contact time (15–120 min), pH (3–12), and nanoparticle dose (10–100 mg/L), as summarized in Table 2. The ranges of these variables were determined based on several factors, including preliminary tests, results from previous studies, and environmental regulations pertaining to the discharge of aniline-containing wastewater.

Table 2 The levels of variables central composite statistical experiment design.

Photocatalytic experiments

Photocatalytic experiments were performed under conditions determined by the CCD model, using a photoreactor with an approximate volume of three liters (Fig. 1). The reactor was equipped with a UV lamp (P = 125 W, L = 12 cm) emitting light in the 251–257 nm range, with a peak emission at λmax = 254 nm. To prevent exposure to external UV radiation, the walls of the photoreactor were lined with aluminum foil. To enhance the efficiency of the photochemical process in removing aniline, hydrogen peroxide was added at a concentration of 50 mg/L. A magnetic stirrer was employed inside the reactor to uniform dispersion and mix the nanoparticles. After the reaction, the samples were centrifuged at 2000 rpm for 1 min to separate and settle the nanoparticles. Aeration was provided using a pump at a flow rate of 1.5 L/min to enhance aniline oxidation and facilitate the generation of hydroxyl radicals. The pH of the solution was adjusted using 0.1 M sodium hydroxide and 0.1 M hydrochloric acid.

Finally, the residual concentration of aniline was measured using a UV/Vis spectrophotometer (HACH-Lange DR 5000, USA) at a wavelength of λmax = 235 nm. The percentage of aniline removal was calculated using Eq. 4.

$$\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\text{R}\text{e}\text{m}\text{o}\text{v}\text{a}\text{l}\:\text{e}\text{f}\text{f}\text{i}\text{c}\text{i}\text{e}\text{n}\text{c}\text{y}\:{\%}\:=\frac{\left({\text{C}}_{0}-\text{C}\text{e}\right)\times\:100}{{\text{C}}_{0}}\:$$
(4)

Where:

C0​ = Initial concentration of aniline (mg/L).

Ce​ = Residual aniline concentration after the experiments (mg/L).

Fig. 1
figure 1

Schematic representation of a photocatalytic reactor system (A = mechanical mixer, B = water inlet, C = water outlet, D = Source of electricity, E = pump, F = Cooling system, G = photocatalytic reactor, H = Sampling point, I = UV lamp, J = Quartz sleeve, K = Cut off filter).

Effluent toxicity assessment

In this study, bacterial mortality or inactivation of P. aeruginosa was assessed by measuring the percentage of bacterial growth inhibition following the photocatalytic process. To this end, the reduction of the AB dye by P. aeruginosa was evaluated. The rate of AB dye reduction, mediated by the dehydrogenase enzyme of P. aeruginosa, was determined using the following procedure25,28,31.

Firstly, the nutrient broth culture medium (1.6 g/L) was supplemented with KH₂PO₄ (1.64 g/L), K₂HPO₄ (2.64 g/L), glucose (0.2 g/L), and sodium acetate (0.2 g/L). Subsequently, 2.25 mL of dimethyl sulfoxide, 1 mL of bacterial suspension, and 1 mL of AB solution (100 g/L) were added to the medium. After a contact time of 30 min, 10 mL of n-amyl alcohol solution and 1 mL of 0.5 M HCl-phthalate buffer were added to each test tube. The samples were then centrifuged at 1000 g for 5 min. After centrifugation, the supernatant alcohol layer was transferred to a microplate well containing 2 g of sodium bicarbonate. Finally, the absorbance of the AB dye was measured at 610 nm using a spectrophotometer. A control sample without bacteria was prepared simultaneously for comparison. In the presence of P. aeruginosa, the activity of the dehydrogenase enzyme reduces AB to resorufin, causing the solution’s color to change from blue to pink. Therefore, this dye change serves as an indicator of the metabolic activity of P. aeruginosa. Based on Eq. 5, the percentage of reduction in the growth of P. aeruginosa was calculated. The results were reported in terms of effective concentrations (EC), 100% mortality, and no observed effect concentrations (NOEC).

$$\begin{array}{*{20}{l}} {{\text{Reduction of dehydrogenase enzyme activity}}, \% = \left( {{\text{A-B}}} \right){\text{ /A}} \times {\text{100}}} \\ {{\text{A: Dehydrogenase enzyme activity in the control sample}}} \\ {{\text{B: Dehydrogenase enzyme activity in the original sample}}} \end{array}$$
(5)

Results

Scanning electron microscopy and energy dispersive X-ray spectroscopy analysis

The results of the SEM analysis of titanium dioxide are shown in Fig. 2a. The image clearly shows the relatively spherical shape of the particles with a uniform size distribution. Also, dimensional measurements based on SEM showed that the average particle size was in the range of 13 to 22 nm. To evaluate the elemental composition of the sample, energy dispersive X-ray spectroscopy (EDX) analysis was performed on the surface of the nanoparticles (Fig. 2b). The results indicated that titanium (Ti) and oxygen (O) were the main elements present. The weight percentages (W%) and atomic percentages (A%) of these elements were determined as 52.7% and 27.12% for titanium, and 47.3% and 72.88% for oxygen, respectively.

Fig. 2
figure 2

(a) SEM and (b) EDX spectrum of TiO2 nanoparticles.

Modeling and statistical analysis

In this study, RSM combined with CCD was employed to optimize the removal of aniline from aqueous solutions using a titanium dioxide nanophotocatalyst. The maximum removal efficiency of aniline (98%) was achieved under the following conditions: an initial aniline concentration of 1 mg/L, nanophotocatalyst dosage of 55 mg/L, pH of 7.5, and a contact time of 62.5 min (Table 3). In contrast, the minimum removal efficiency (77.5%) was observed in run number 23, corresponding to an initial aniline concentration of 20.5 mg/L, nanophotocatalyst dosage of 55 mg/L, pH of 3, and a similar contact time. Based on CCD results, four different regression models were proposed. The statistical findings are presented in Table 4. According to Table 4, the quadratic model was selected as the most appropriate for aniline removal, with a coefficient of determination (R²) of 0.9887, an adjusted coefficient of determination (R² adjusted) of 0.9781, and a predicted coefficient of determination (R² predicted) of 0.9386.

.

Table 3 Results obtained from the design of experiments in the photocatalytic removal of aniline.
Table 4 Model summary statistics and standard Deviation.

In this study, the results of the quadratic model analysis of variance indicated that (Table 5). The initial aniline concentration and pH had significant effects on the photocatalytic removal of aniline (P-value < 0.05), whereas the nanoparticle dose and contact time did not show statistically significant effects (P-value > 0.05). The model yielded an F-value of 93.64 with 14 degrees of freedom, indicating a high level of statistical validity and a good fit to the experimental data.

Table 5 ANOVA for response surface quadratic Model.

According to the quadratic regression equation, the empirical relationship between the parameters and aniline removal efficiency is expressed by Eq. 6:

$$\begin{aligned}\text{Removal efficiency},\% & = +67.25116-(0.094837 \times \text{Time})+(8.82011 \times \text{pH})-(0.46543 \times \text{C}) \\ & -(0.018612 \times D)+(6.45503 \times Time \times pH)+(3.17460 \times Time \times C)\\ &+(2.22222 \times Time \times D)-(2.56410 \times pH \times C)+(3.70370 \times pH \times D)\\ &-(2.56410 \times C \times D)+(4.00605 \times Time^2)-(0.60473 \times p\text{H}^2)\\ &+(3.56125 \times \text{C}^2)+(1.74897 \times \text{D}^2)\end{aligned}$$
(6)

After extracting the second-order regression model, the predicted values were calculated by substituting the data into the model equation, and the residuals were determined as the differences between the actual and predicted values. Based on the results shown in Fig. 3a, the normal probability plot of the residuals follows a normal distribution, with no significant systematic errors observed. Additionally, the predicted values were in good agreement with the actual values, indicating the adequacy and high accuracy of the model in prediction Fig. 3b.

Fig. 3
figure 3

(a) Probability plot of the residual distribution, (b) actual values versus predicted values.

The effects of parameters on aniline removal

After identifying the role of individual parameters on the response variable, the interactions between factors should be examined. Based on the results obtained, only the interaction between contact time and pH on the aniline removal process was statistically significant. Figure 4 presents a three-dimensional (3D) plot of removal efficiency as a function of pH and contact time. Accordingly, as the pH increases from 3 to 7.5 and the contact time from 10 to 62.5 min, the removal efficiency rises from 77.5% to 98% (Fig. 4a). Furthermore, an increase in pH beyond 7.5 and contact time longer than 62.5 min results in a decrease in removal efficiency.

Therefore, the aniline removal process was conducted at a pH of approximately 7.5 and a contact time of 62.5 min. Figure 4b presents a 3D plot of aniline removal efficiency as a function of the interaction between contact time and initial aniline concentration. It was observed that the highest removal efficiency was achieved at an aniline concentration of 1 mg/L with a contact time of 62.5 min. Furthermore, increasing both the initial aniline concentration and contact time led to a decrease in the removal efficiency. Figure 4c illustrates a 3D plot of removal efficiency as a function of contact time and nanoparticle dosage. It was observed that the highest removal efficiency occurred at a contact time of 62.5 min and a titanium dioxide nanoparticle dose of 55 mg/L. Moreover, further increases in both contact time and nanoparticle dosage at higher concentrations resulted in a decrease in aniline removal efficiency. In this study, the interaction effects between pH and initial aniline concentration on removal efficiency were also investigated.

According to Fig. 4d, the highest aniline removal efficiency of 98% was achieved at an initial concentration of 1 mg/L and a pH of approximately 7.5. As both pH and initial aniline concentration increased, the removal efficiency decreased to 85%. Based on Table 3, Run order 26, the highest removal efficiency under optimal variable conditions was reported as 98%. An increase in pH and nanoparticle dosage (Fig. 4e) also resulted in a decline in aniline removal efficiency. By studying the interaction between nanoparticle dose and initial aniline concentration (Fig. 4f), it was determined that the removal efficiency reached 98% at an initial concentration of 1 mg/L and a nanoparticle dose of 55 mg/L. In other words, removal efficiency increased at low aniline concentrations and optimal nanoparticle dosages. Further details of the experimental results are presented in Fig. 4; Table 3.

Fig. 4
figure 4

3D model response for aniline removal with interaction between factors: contact time (min), pH, nanoparticle dose (mg/L) and aniline concentration (mg/L).

Alamar blue toxicity assessment

In this study, following the photocatalytic process conducted according to the number of designed runs, toxicity analysis was performed using the AB reduction assay on P. aeruginosa bacteria. The results obtained are presented in Table 6. Accordingly, the EC50, NOEC, and 100% mortality values were reported as 1.64, 0.91, and 1.97 mg/L, respectively. Detailed information and additional data are presented in Table 6.

Table 6 Results of the evaluation of effluent toxicity by P. aeruginosa bacteria.

Discussion

In this study, scanning electron microscopy (SEM) and energy-dispersive X-ray spectroscopy (EDX) analyses were performed to investigate the surface morphology and chemical composition of titanium dioxide nanoparticles (Fig. 2). SEM results revealed that the nanoparticles were aggregated into clusters exhibiting a relatively uniform distribution and predominantly spherical morphology on the catalyst surface. This structural arrangement contributed to the enhancement of the material’s physicochemical uniformity. Furthermore, the particle sizes were within the nano scale range (i.e., less than 100 nm) (Fig. 2a), confirming the nanostructured nature of the catalyst. This feature is significant because the properties of nanoparticles typically improve substantially within this size range. Moreover, the presence of small pores on the catalyst surface may play a crucial role in enhancing adsorption processes and photocatalytic reactions by increasing the accessible active surface area. Such a porous structure likely contributes to the improved efficiency of pollutant degradation, which is particularly important for environmental and industrial applications. Therefore, the SEM results not only confirm the morphological characteristics of the nanoparticles but also facilitate a better understanding of the catalyst’s performance in photocatalytic processes, providing a solid foundation for further optimization of the material’s properties20,28. In this study, energy-dispersive X-ray spectroscopy (EDX) analysis was performed to determine the elemental composition of the synthesized titanium dioxide nanoparticles, as illustrated in Fig. 2b. The results confirmed the successful synthesis of TiO₂ nanoparticles with a titanium-to-oxygen atomic ratio close to the ideal stoichiometric value of 1:2. Maintaining this stoichiometric accuracy is crucial, as deviations—such as oxygen vacancies—can significantly affect the electronic structure and photocatalytic performance of TiO₂33. Furthermore, the absence of detectable impurities in the EDX spectrum indicated that the sample possessed high chemical purity, which contributed to the reduction of surface defects and recombination centers. The high-purity TiO₂ nanoparticles with precisely controlled composition exhibited enhanced photocatalytic activity, attributed to improved charge separation and reduced electron–hole recombination. These findings are consistent with previous reports and validate the effectiveness of the employed synthesis method21,34,35. For more comprehensive structural and electronic characterization of the synthesized nanoparticles, the use of complementary techniques such as X-ray photoelectron spectroscopy (XPS) and X-ray diffraction (XRD) is recommended for future studies.

In this study, the application of RSM combined with CCD model was employed as an effective approach for optimizing the aniline removal process (Table 3). In addition to demonstrating strong statistical validity, evidenced by a high coefficient of determination, the findings highlighted several advantages of CCD beyond mere modeling, including a reduction in the number of experimental runs and enhanced predictive accuracy (Table 4). A key outcome related to the model’s performance was its potential applicability under real wastewater treatment conditions, where both efficiency and reliability are crucial. The strong correlation observed between predicted and experimental values indicated that the model accurately captured system behavior across diverse operational parameters. These results are consistent with previous studies reporting the efficacy of RSM in optimizing advanced organic pollutant removal techniques such as adsorption and oxidation20,31,36.

Despite the promising statistical results obtained in this study (R² = 0.9887), it is recommended that future research undertake more rigorous validation of the model under practical application conditions, as laboratory-scale studies may overlook influential factors such as the presence of interfering substances and flow dynamics. This highlights the critical importance of strategic planning in optimizing environmental remediation processes. Therefore, future studies should focus on integrating kinetic and practical analyses with statistical methodologies to achieve a more comprehensive understanding of removal pathways and system limitations. A scatter plot of actual versus predicted values serves as a useful diagnostic tool for evaluating the performance of predictive models. As illustrated in Fig. 3, the deviations from the ideal 1:1 line, which represent potential model errors, were minimal. This close agreement between actual and predicted values indicates that systematic errors were negligible. Therefore, the model demonstrates strong validity in terms of both data normality and predictive accuracy.

The analysis of variance (ANOVA) results (Table 5) demonstrated that the initial aniline concentration and pH had statistically significant effects on the photocatalytic removal of aniline (P-value < 0.05), whereas the nanoparticle dose and contact time did not show statistically significant effects (P-value > 0.05). These findings indicate that optimizing the initial aniline concentration and solution pH is essential to improving the efficiency of the photocatalytic process. The lack of significance for nanoparticle dose and contact time may be due to the narrow range of experimental parameters or the presence of interaction effects, emphasizing the need for more comprehensive studies on the interactions among operational variables in future research. Based on the results obtained in Fig. 4a, b, c, the aniline removal efficiency increased significantly with increasing contact time, reaching a maximum of 98% at approximately 62.5 min. This trend indicated an enhanced opportunity for the interaction between aniline molecules and the active surface of the catalyst, as the prolonged contact time increased the likelihood of collisions between the molecules and reactive species such as OH. The mechanism underlying the effect of contact time involved the extended presence of pollutants within the reaction environment, providing more opportunities for chemical interactions between aniline and reactive species. These conditions facilitated advanced oxidation reactions, leading to the breakdown of aniline molecular bonds and more complete degradation. Specifically, increasing the contact time from 32.5 to 62.5 min resulted in an approximate 17.9% improvement in removal efficiency.

As shown in Fig. 4a, b, c, once the contact time reached 62.5 min, the aniline removal efficiency plateaued, and further increases in contact time did not result in significant improvements in process performance. This behavior is primarily attributed to the saturation of the catalyst’s active surface; beyond a certain point, all available active sites become occupied, thereby limiting the catalyst’s capacity to facilitate further reactions. Consequently, extending the contact time beyond this threshold does not provide additional opportunities for aniline molecules to interact with reactive species. Furthermore, the generation of reactive species such as hydroxyl OH and other active intermediates is also affected by contact time. Increasing the duration beyond the equilibrium point can reduce the production of these species, thereby limiting the efficiency of advanced oxidation processes. This finding indicates that optimizing contact time is crucial for achieving maximum removal efficiency. Insufficient contact time leads to incomplete reactions, whereas excessive contact time can reduce process efficiency due to decreased generation of reactive species and catalyst surface saturation17,20,37. Therefore, to gain a more precise understanding of the role of contact time in the removal process, further studies focusing on kinetic effects, long-term system stability, and evaluation of system behavior at real-scale conditions are recommended. These findings were consistent with previous studies, including the work of Rahdar et al., who reported a maximum removal efficiency of 91.95% at a contact time of 45 min and emphasized the importance of optimizing contact time in pollutant removal processes38. Overall, the results of this study indicated that contact time is an influential factor in improving the efficiency of the treatment process and can serve as a scientific basis for the design and development of catalytic processes aimed at the removal of compounds such as aniline.

In this study, the aniline removal process was investigated at different pH including acidic, neutral, and alkaline. The results showed that the highest percentage of aniline removal was achieved at slightly alkaline pH (7.5). This efficiency was higher than that of acidic and neutral conditions (Fig. 4a, d, e), so that the removal efficiency under optimal conditions was reported to be 98%. According to previous studies, solution pH is one of the most effective environmental factors for the removal of pollutants by AOP processes15,39. One of the key factors enhancing the efficiency of AOPs is the generation of OH, which, due to their high reactivity, can oxidize organic pollutants such as aniline into simpler compounds like carbon dioxide and water. The solution pH plays a crucial role in regulating both the formation of these radicals and the adsorption behavior of pollutants on the photocatalyst surface20,39. Aniline, a weak base with a pKa around 4.6, predominantly exists in its protonated ionic form (C₆H₅NH₃⁺) under acidic conditions, which enhances its adsorption via electrostatic interactions with the catalyst surface. Meanwhile, the surface charge of TiO₂ varies with pH, with its isoelectric point (IEP) typically between 6 and 7. Below this pH range, the TiO₂ surface carries a positive charge, which can repel the positively charged protonated aniline and thus reduce absorption. However, near neutral pH values, aniline remains protonated while the TiO₂ surface charge becomes neutral or less positive, favoring stronger adsorption and, consequently, more efficient pollutant degradation. Furthermore, pH influences the generation of OH radicals; alkaline conditions generally enhance radical formation, but excessively high pH may lead to the formation of less reactive oxidizing species, reducing overall process efficiency20,40. Several studies have investigated the effect of pH on the surface charge of photocatalysts such as TiO₂ and the absorption of pollutants. In this regard, Negoescu et al.41demonstrated that the isoelectric point of TiO₂ is approximately pH 6.5; at pH values below this point, the TiO₂ surface carries a positive charge, which leads to the repulsion of cationic aniline, whereas at pH values above this point, the surface charge becomes negative, reducing pollutant adsorption. These findings emphasize the critical role of precise pH adjustment in optimizing pollutant adsorption. Furthermore, Wang et al42. showed that aniline predominantly exists as the cationic species under acidic conditions, and this positively charged form enhances its adsorption on the catalyst surface through electrostatic interactions. They also noted that the surface charge of TiO₂ varies with pH; specifically, at pH values below 6, the TiO₂ surface is positively charged, potentially repelling cationic aniline, while near neutral pH, adsorption is maximized. Overall, the findings of this study, supported by previous research, emphasize the critical role of precise pH control in balancing the catalyst surface charge and pollutant speciation, thereby significantly improving the efficiency of photocatalytic degradation processes.

In this study, the removal efficiency of aniline was investigated at various initial concentrations ranging from 1 to 40 mg/L. The highest removal efficiency was observed at the lowest concentration (1 mg/L), whereas increasing the aniline concentration to 40 mg/L resulted in a decrease in removal efficiency to 85% (Fig. 4b, d, f; Table 3). This trend indicates that at lower concentrations, aniline molecules are easily adsorbed onto the surface of nanoparticles, and the generated free radicals readily react with these molecules. However, as the aniline concentration increases, the active sites on the nanoparticles become saturated, leading to intensified competition among aniline molecules for adsorption. Consequently, the accessibility of free radicals to all aniline molecules is restricted, resulting in a decline in removal efficiency11,43. Several studies have also reported a decrease in aniline removal efficiency at higher concentrations. For example, Anatoi et al44. investigated the photocatalytic oxidation of aniline using visible-light-activated titanium dioxide and found that increasing the initial aniline concentration from 0.047 to 0.80 mM caused the removal efficiency to drop significantly from 72% to 18%. This reduction was attributed to the inadequate generation of radicals necessary for complete aniline degradation Similarly, studies by Bazarafshan et al45. and Rahdar et al38. Reported that increasing the initial concentration of aniline in photocatalytic processes led to a decline in both degradation rate and removal efficiency. These findings indicate that limited catalytic reactivity and competitive adsorption among molecules are key factors restricting removal performance at higher pollutant concentrations. From a practical perspective, these results highlight the critical importance of optimizing aniline concentration in water and wastewater treatment systems to achieve maximum removal efficiency, improved catalyst utilization, and reduced operational costs.

According to the data presented in Table 4; Fig. 4c, e, f, the dosage of TiO₂ NPs significantly affected aniline removal. The results indicated an optimal concentration at 55 mg/L, where the removal efficiency reached its maximum value of 98%. However, increasing the dosage beyond this level led to a decrease of approximately 8.9% in removal efficiency, which may be attributed to particle agglomeration or light scattering effects that negatively impact photocatalytic activity. The increase in TiO₂ nanoparticle dosage enhances the number of active surface sites and promotes the generation of free electrons. This facilitates the production of reactive oxygen species (ROS), including OH and superoxide anions (O₂•⁻), which play a pivotal role in the oxidative degradation of persistent organic pollutants such as aniline. Therefore, optimizing the TiO₂ dosage is essential to maximize ROS generation and overall photocatalytic efficiency while minimizing adverse effects caused by excessive nanoparticle loading. When the nanoparticle dose exceeds the optimal concentration, the active sites on the nanoparticle surface become saturated, reducing the adsorption capacity for pollutants38,46, Moreover, at higher dosages, titanium dioxide nanoparticles tend to aggregate, which can hinder the penetration of UV light to some particles, consequently decreasing the generation of free radicals. Ferreiro et al47. studied the simultaneous removal of aniline and benzothiazole from industrial wastewater using an MnO₂/GAC catalyst in a fluidized bed photocatalytic reactor. They observed that increasing the catalyst concentration up to 0.25 g/L improved removal efficiency significantly; however, further increases led to a decline in efficiency, likely due to active site saturation and reduced UV light penetration. Similarly, Basturk et al48. investigated the photocatalytic removal of aniline using TiO₂ nanoparticles. They reported that aniline removal efficiency increased with nanoparticle concentration up to an optimum point, beyond which active sites became saturated and the photocatalytic efficiency decreased. These findings confirm that while increasing nanoparticle dosage can enhance photocatalytic activity by providing more active sites, overdosing leads to aggregation and light shielding effects that reduce overall efficiency.

In this study, the significance of the impact coefficients associated with each variable in the aniline removal process is presented in Eq. 6. According to the results, the impact coefficients for contact time, pH, initial aniline concentration, and nanoparticle dose were calculated as −0.094837, 8.82011, −0.465425, and − 0.018612, respectively. These values indicate that among the studied variables, pH had the most significant positive influence on the removal efficiency, while nanoparticle dose had the least effect. Therefore, based on these findings, pH can be considered a key factor in the photocatalytic degradation of aniline. In this study, the photocatalytic process demonstrated a satisfactory performance in aniline removal, comparable to the efficiencies reported for various advanced water treatment methods in previous studies (Table 7). For example, corona plasma technology achieved 98.5% efficiency49, the liquid emulsion membrane process reached up to 98.53%50, and advanced oxidation systems such as CoFe₂O₄/PAA showed efficiencies of up to 93%51. Furthermore, compared to more conventional methods such as ozonation (93.57%)52 and UV/ZnO (76.3%)46, the proposed method demonstrated higher effectiveness. These findings indicate the strong potential of the investigated photocatalytic process for the effective degradation of persistent pollutants.

Table 7 Comparison of different aniline removal methods from aqueous solutions.

Given the critical importance of environmental protection and public health, thorough evaluation of potential byproducts in wastewater treatment processes, including photocatalysis, is essential. Although photocatalytic processes effectively degrade persistent pollutants, the formation of toxic intermediate compounds during treatment remains a significant concern. These intermediates, if not adequately monitored, may pose environmental and health risks. Therefore, comprehensive toxicity assessments of treated effluents are crucial to ensure their safety prior to discharge into natural water bodies27,28,31,48. The results of the toxicity evaluation of aniline on P. aeruginosa are presented in Table 6. Accordingly, the EC₅₀ and 100% mortality values were determined to be 1.64 and 1.97 mg/L, respectively. The obtained data demonstrated the significant toxicity of the aniline-containing effluent and its detrimental effect on the survival of P. aeruginosa. Although no mortality was observed at an aniline concentration of 0.91 mg/L, both the EC₅₀ and 100% mortality were recorded at relatively low aniline concentrations. Therefore, to ensure environmental safety, the aniline concentration in the effluent should not exceed 0.91 mg/L. Previous studies have shown that P. aeruginosa is capable of degrading aniline under certain conditions. Nevertheless, at higher concentrations, its biodegradation capacity diminishes, leading to persistent toxicity in the effluent. This is consistent with the present findings, where residual toxicity was observed despite the biodegradation potential55. Similar to the present study, Toolabi et al.20 employed the AB reduction test to assess bacterial toxicity in effluent from a TiO₂/Fe₂O₄/UV photocatalytic process. Their findings confirmed the sensitivity and reliability of the AB assay for detecting toxic effects in treated wastewater. One limitation of the present study is the use of a single bacterial strain, which may not fully detect or respond to the entire range of pollutants present in industrial effluents. Therefore, it is recommended that future research employ a combination of biological and chemical methods to improve the accuracy of toxicity assessments of treated effluent.

Conclusion

In this study, the TiO₂/H₂O₂/UV oxidation process was effectively evaluated for the optimization of aniline removal from aqueous solutions. Among the examined variables, pH was identified as the most influential factor in aniline degradation. The high coefficient of determination (R² = 0.9887) confirmed the accuracy and reliability of the quadratic model. Under optimal conditions, the TiO₂ photocatalytic process, in the presence of H₂O₂ and UV irradiation, was able to remove up to 98% of aniline from aqueous solution, indicating acceptable efficiency at the laboratory scale. Furthermore, the bacterial toxicity of the treated effluent was assessed using the AB reduction assay, which is recognized as a reliable method. According to the results, the EC₅₀ and NOEC values were determined to be 1.64 and 0.91 mg/L, respectively, indicating a significant reduction in aniline toxicity following the photocatalytic treatment process.

Although this process demonstrated high efficiency in aniline removal, it also exhibited certain limitations, including the absence of a comprehensive evaluation of by-products generated during aniline degradation and the high energy consumption associated with UV irradiation observed in the experiments. To improve performance and expand the applicability of this process for aniline treatment, future studies are recommended to conduct detailed investigations into the degradation pathways and identification of intermediate by-products. From a practical perspective, a thorough assessment of the scale-up potential of the TiO₂/H₂O₂/UV process for treating real industrial wastewater is necessary to support its industrial application. Additionally, an in-depth analysis of energy consumption and economic feasibility is essential to evaluate the practical viability of this process at larger scales.