Introduction

Aniline and its derivatives are important for the petrochemical, pharmaceutical and textile industries and they are also used in dye production. It is estimated that the release of aniline to the environment is 30,000 tonnes per annum due to the illegal release of municipal and industrial wastewater and overuse of pesticides [1]. Aniline is one of the 129 priority pollutants, identified by the EPA, due to being a toxic non-irreversible material with low biodegradability [2].

Several oxidation techniques such as ozonation [3], photochemical [4], electrochemical [5], and photocatalysis [6], have been carried out to remove aniline from water. Various oxidants (O2, H2O2, and O3) were used in catalysed or non-catalysed media and various amounts of TOC and COD removal were observed in these studies [7, 8]. Furthermore, many methods such as oxidation [9], extraction [10], biodegradation [11], and adsorption [12] were performed to degrade aniline or decontaminate aniline-polluted water. However, most of the methods fail to provide the desired yield or they are not satisfactory in the major issues, such as treatment time, operating cost, or environmental awareness.

Herein, subcritical water oxidation (SWO), which is an effective and environmentally friendly alternative to these methods, can overcome the above-mentioned problems. Subcritical water has some characteristic physicochemical properties such as low dielectric constant, low surface tension, low viscosity, average polarity and suitable solvent properties. It is defined as water at a high temperature of 373–647 K and high pressure that is necessary to keep the water in the liquid state at the related temperature [13].

SWO is a thermochemical process, similar to the wet air oxidation process, in which hydroxyl radicals and active oxygen species are formed at high temperatures and pressures [14]. It depends on the oxidation of organic compounds in the aqueous phase at a high temperature (373–647 K) and pressure. In this way, it is possible to convert harmful organic compounds and micro-pollutants into harmless organic compounds such as CO2 and H2O. SWO is generally used for purification of water-containing toxic organic wastes. Complex organic compounds are converted into simpler biodegradable species by SWO. In this type of oxidation process, a large majority of organic content is stoichiometrically oxidized. Namely, carbon is oxidized to carbon dioxide, hydrogen is oxidized to water, halogens are oxidized to halides, sulphides are oxidized to sulphates, phosphorus is oxidized to phosphates and nitrogen is oxidized to ammonia, or elemental nitrogen [15]. The compounds with long-chain structure are converted into various intermediates, but these intermediates are generally not stable and are then oxidized to the final products, CO2 and H2O [16]. SWO process, in which H2O2 is used as an oxidizer, is effective in the application of wastewater-containing medium and high concentrations of organic carbon. Furthermore, H2O2 is an ecological oxidant that is not toxic and does not cause any harmful by-products [17].

The experimental parameters (temperature, time, oxidant concentration) of the process and the optimization of the process were performed using the response surface method (RSM) which consists of a series of mathematical and statistical techniques. RSM is used to exhibit the effect of experimental values of any factors on the response to find the optimum process conditions and the most effective variables on the response. Also, it is used to define the relationship between response and independent variables, whereas univariate method, namely the one-factor-at-a-time analysis, allows to optimize methods by following one factor at a time where keeping other factors constant [18]. Fortunately, RSM provides to evaluate the performance of a system requiring a limited number of experiments [19]. These techniques investigate the effects of the independent variables (factors) on the response alone or all factors together. In this manner, the central composite design (CCD), which is one of the most preferred RSM designs, can meet expectations [19].

In this study, SWO, which has been used in the degradation of many pollutants, was used along with the oxidizing agent, H2O2. Mineralization and removal percentage of aniline were, respectively, followed by the total organic carbon (TOC) analysis and the UV spectrophotometric analysis of the residual. TOC measurement is the best-known method for determining the organic content of a water sample. The amount of carbon dioxide produced from the total organic carbon content of a sample gives a TOC value [20]. Besides, the UV spectrophotometric analysis is a practical way to follow the removal of a UV-active pollutant from an aqueous solution [21]. CCD was applied to this work to optimize the process variables and evaluate mineralization and removal condition for maximizing the mineralization and removal percentage.

Experimental

Materials

Aniline and H2O2 were purchased from Merck (Germany), N2 gas was provided from Linde Gas (Turkey). Ultrapure water was prepared using the Millipore Milli-Q Advantage A10, Merck (Germany). A home-made stainless steel reactor used in the previous work was used for degradation experiments [22]. UV analyses were recorded by the Shimadzu UV-1601 (Germany) spectrometer.

Methods

Degradation method

The aqueous solution of aniline (100 ppm) was prepared by dissolving a certain volume in deionized water. 150 mL of this solution was put into the reactor following a certain amount of oxidizing agent, H2O2. The inner pressure of the reactor was provided by N2 gas. Degradation experiments were carried out at 5 different temperatures (352.55 K, 373 K, 403 K, 433 K and 453.45 K), 5 different concentrations (12.73 mM, 40 mM, 80 mM, 120 mM and 147.27 mM) and 5 different treatment times (9.55 min, 30 min, 60 min, 90 min and 120 min) as shown in Table 1. 25 mL of each treated sample was kept for TOC and UV analysis.

Table 1 Experimental design of independent variables employing in the CCD

TOC analysis

TOC analyses were performed using the TOC-L CPN analyser (Shimadzu, Japan) with ASI-L injection port. The total organic carbon removals were measured in 25 mL TOC test sample vials. The five-point calibration curve was used to determine the TOC values of the samples. TOC removal percentages were calculated according to the equation that was given in the previous work [19].

UV–Vis analysis

The removal of aniline (aniline removal) was spectrophotometrically determined using the UV spectrophotometer. The percentage yield of aniline removal of each experiment was determined via comparing the absorbance (254 nm) of the stock solution and treated samples according to the equation which was given in the previous work [19]. However, it was obtained that H2O2 absorbs the same wavelength. Thus, unreacted H2O2, which may have remained after treatment process, was removed by treating samples with NaBiO3 for 2 h. Samples were analysed by the UV–Vis spectroscopy after filtering the samples through 0.45-μm PTFE syringe filters.

CCD modelling

A CCD model is a full or fractional factorial quadratic design which consists of factorial, center, and axial points situated in the experimental region [19, 23]. The multi-response CCD method was applied to evaluate the optimum experimental conditions of aniline degradation. The responses of TOC removal and aniline removal were functioned as responses. The interactions of temperature, oxidant concentration and treatment time were assessed and the effects of these factors on the responses were analysed. Design Expert 9.0.6.2 was used to analyse the experimental results and to obtain a regression model. The list of 20 experimental runs and their experimental and predicted results are given in Table 2. TOC removal and aniline removal percentages of treated samples were calculated using the equation given in the previous work [19]. Obtained results were statistically evaluated by variance analysis (ANOVA) to analyse the proficiency of the proposed model for aniline degradation.

Table 2 Experimental and predicted results of TOC and aniline removal percentages

Results and discussion

Experimental results of TOC removal and aniline removal percentages were demonstrated in Table 2 along with their predicted values. The highest experimental and predicted TOC removal percentages were obtained as 92.73% and 93.37%, respectively, at runs 17 and 12. The lowest values for experimental and predicted TOC removal percentages were obtained as 34.60% and 44.40% at run 3. However, aniline removal percentages were obtained to be higher than TOC removal percentages in both cases of experimental and predicted values. Aniline removal was obtained with the highest values of 99.21% and 100.48%, respectively, at runs 11 and 12. The lowest experimental and predicted aniline removal percentages were obtained as 63.64% and 63.90%, respectively, at runs 15 and 18, respectively. As the above-mentioned data show, maximum and minimum TOC and aniline removal values were obtained at different runs. These results suggest that experimental factors affect removal percentages of each TOC and aniline in different ways. Moreover, harsher conditions are required to elevate TOC removal percentages when compared with the aniline removal percentages.

The absolute difference percentages (AD, %) between experimental and theoretical TOC removal and aniline removal percentages are given in Table 2. The AD percentage values are calculated by dividing the differences between the experimental and theoretical values by the experimental values and multiplying the results by 100. Obtained results show that AD percentages remained minor in the all runs except run 2, runs 18 and 3, in the TOC removal model, and similarly, except for the run 5, the AD percentages were reasonable in the aniline removal model. Thus, it can be said that the experimental and predicted values are in accordance in both models.

Evaluation of the CCD modeling

Evaluation of the system variables and the relationship between these variables and responses were ensured using CCD modeling. Also, CCD was employed to obtain predicted values of both responses, namely TOC removal and aniline removal, for all runs using data given in Table 2. Predicted values were obtained using second-order polynomial equations (Eqs. 1 and 2) in terms of coded factors for both cases of TOC removal and aniline removal processes. Equations (1) and (2) can be used to predict any response of the system for given levels of system variables. Moreover, the effect of each variable can be identified by comparing its coefficient in the following equations:

$$Y_{1} = 6.32x_{1} + 10.41x_{2} + 4.93x_{3} + 0.36x_{1} x_{2} + 3.94x_{1} x_{3} - 8.58x_{2} x_{3} - 11.53x_{1}^{2} - 5.00x_{2}^{2} - 0.91x_{3}^{2} + 87.64,$$
(1)
$$Y_{2} = 2.85x_{1} + 7.55x_{2} + 4.98x_{3} + 0.83x_{1} x_{2} + 1.98x_{1} x_{3} - 8.48x_{2} x_{3} - 5.69x_{1}^{2} - 3.37x_{2}^{2} - 1.04x_{3}^{2} + 95.05.$$
(2)

In addition, the Pareto chart, which is functional to identify the relative impact of the variables, and facilitates the evaluation of the results, is displayed in Fig. 1 [19, 24]. This graphical analysis provides the demonstration of effects of each term in Eqs. (1) and (2). According to this figure, one can say that the quadratic effect of the temperature (x 21 ) is the most effective factor on the TOC removal process, where the interaction effect of the H2O2 concentration and treatment time (x2x3) is the most responsible factor for elevated yield in the case of aniline removal. H2O2 concentration (x2) is the second most effective factor in both cases of TOC and aniline removal. Moreover, the interaction effects of temperature and H2O2 concentration (x1x2), and quadratic effect of treatment time (x 23 ) were found to be negligible in both cases.

Fig. 1
figure 1

The Pareto chart of the process variables

ANOVA and regression coefficients of CCD models

Experimental data were statistically analysed by ANOVA to evaluate the fit of the models. The results of ANOVA of the quadratic models, which were obtained by CCD, are demonstrated in Table 3. The statistical significancy of the applied models and models’ terms can be expressed by ANOVA test factors such as p and F values [22]. p and F values of the TOC removal models were obtained as 12.70 and 0.0002, respectively, and 9.76 and 0.0007, respectively, for the aniline removal model. These values verify that both of the models can be used to confidently designate the effects of system variables on the response. 0.02 and 0.07 chances of F values were obtained in the TOC removal and aniline removal, respectively. Model terms, which possess p values less than 0.05, are qualified as significant terms [21]. In this case, x1, x2, x3, x2x3, x 21 , and x 22 are significant terms of the TOC removal model and x2, x3, x2x3, x 21 , and x 22 are significant terms of the aniline removal model.

Table 3 ANOVA of the CCD models

Regression coefficients, which are demonstrated in Table 4, were used to evaluate the confidence of the CCD models. Lower values of the predicted residual sum of squares (PRESS) indicate the adaptation of points of the design to the model [19, 25]. It was obtained that the aniline removal model better fits each point in the design than the TOC removal model according to the obtained PRESS values of the aniline removal model (782.53) and the TOC removal model (2613.93). Also, the conformity of the models can be presented by the coefficient of determination (R2) values, where higher values are desired [19, 25]. Herein, the 0.9196 R2 value of the TOC removal model shows higher consistency between the system variables and the response than the aniline removal model considering its R2 value of 0.8978.

Table 4 Regression coefficients of the CCD models

The standard deviation value of the aniline removal model (5.25) is more appropriate than the values of the TOC removal model (6.75). The percentage of standard deviation to the mean ratio, in other words, the coefficient of the variation value (CV %) was obtained as 8.91 and 5.96 for the TOC removal model and the aniline removal model, respectively. The signal-to-noise ratio value (adequate precision value) verifies the applicability of a model in the navigation of the design space and it is desired to be higher than 4 [26]. Adequate precision values of 10.29 and 9.85, which were obtained for the TOC removal model and the aniline removal model, respectively, are in good agreement with the above-mentioned definition. Figure 2, in which the correlation between the actual and predicted values of (a) the TOC removal model and (b) the aniline removal model was displayed, supports this agreement. It is clearly seen from this figure that, actual and predicted values are in good accordance and these points verify good fit of both models.

Fig. 2
figure 2

Correlation between the actual and predicted values in a TOC removal model, b aniline removal model

Cube plots of (a) TOC removal model and (b) aniline removal model are displayed in Fig. 3. These figures make it easy to estimate the responses of the models for the combination of three independent factors between − 1 and + 1 levels. Also, they provide further analysis in the experimental region and estimation of experimental conditions for the desired response level. According to Fig. 3a, the highest TOC removal can be obtained as 87.58% at the highest level of all experimental variables. However, a quite reasonable value of 83.20% of the TOC removal can be obtained at the same conditions but at the lowest H2O2 concentration. Moreover, 81.52% of the TOC removal can be obtained at the highest level of H2O2 concentration and the lowest levels of temperature and treatment time. 94.29% of the aniline removal is an obtainable value at the highest H2O2 concentration level but at the lowest treatment time and the lowest temperature level. This efficiency can be increased up to 97.70 by increasing the last variable, temperature, to its highest level at the same conditions.

Fig. 3
figure 3

The cube plot of a TOC removal model, b aniline removal model

Binary effects of the process variables on the removal yields

Binary effects of the process variables on the response were displayed by three-dimensional plots. These schemes are utilized for presenting the interaction between process variables as well as for evaluating the optimum experimental conditions for providing the maximum benefit of the response.

Binary effects of treatment time and H2O2 concentration on (a) TOC removal and (b) aniline removal yields at a fixed temperature of 420 K are demonstrated in Fig. 4. As seen from this figure, the interaction effect of treatment time and H2O2 concentration is crucial for both the TOC and the aniline removal. Namely, the red area, which presents a high-yielded area, was obtained at low H2O2 concentration and long treatment time or high H2O2 concentration and short treatment time at a fixed temperature of 420 K. Moreover, elevated TOC removal and aniline removal percentages can be obtained at moderate levels of treatment time and H2O2 concentration. However, it should be noted that the obtained yield in the aniline removal, even at the lowest values of treatment time and H2O2 concentration, is higher than that of TOC removal. This can be explained by the fact that while the terms aniline removal stands for the UV spectrophotometric analysis and any bond break in the aniline structure or similar impact increase aniline removal percentages, the TOC removal percentage represents total mineralisation of aniline and harsher conditions are required for elevated TOC removal percentages.

Fig. 4
figure 4

Binary effects of treatment time and H2O2 concentration on a TOC removal and b aniline removal yields at a fixed temperature of 420 K

Binary effects of temperature and H2O2 concentration on the TOC removal and aniline removal yields at a fixed treatment time of 30 min are shown in Fig. 5a, b, respectively. According to these figures, it is clear that the combined effects of temperature and H2O2 concentration are crucial on the TOC removal and aniline removal percentages. However, H2O2 concentration is the decisive factor for elevated yields in both cases. Increasing temperature from its lowest value to its highest value, under moderate levels of H2O2 concentration, has a minor effect on the TOC removal yields. However, increasing H2O2 concentration, from its moderate levels to its high levels, significantly increases the TOC removal yields above moderate levels of temperature. The fact that H2O2 concentration is a decisive factor appears more clearly in Fig. 5b. For instance, increasing temperature from 373 to 433 K at a fixed H2O2 concentration of 80 mM and treatment time of 30 min, provides an increase from 67.89 to 72.65% in the TOC removal, and from 67.89 to 72.65% in the aniline removal process. However, increasing H2O2 concentration from 80 to 120 mM at a fixed temperature of 403 K and treatment time of 30 min provides a significant increase in the TOC removal (from 67.89 to 72.65%) and the aniline removal (from 84.20 to 97.70%) processes. This can be explained as follows: while the temperature is essential to activate H2O2 to hydroxyl radicals, more importantly, an adequate amount is required to obtain high efficiency in both cases of the TOC and the aniline removal.

Fig. 5
figure 5

Binary effects of temperature and H2O2 concentration on a TOC removal and b aniline removal yields at a fixed treatment time of 30 min

The interaction of temperature and treatment time and their effects on the responses at a fixed H2O2 concentration of 80 mM is shown in Fig. 6a, b. It is clearly seen in Fig. 6a that moderate TOC removal percentages can be obtained at moderate temperatures in all treatment times in the experimental region and at low temperature values. However, to obtain high yields, treatment time must be increased above its moderate levels, above 403 K of temperature. For instance, 81.80% of the TOC removal value increased to 91.67% by increasing treatment time from 30 min to 90 min at 80 mM of H2O2 concentration and 403 K of temperature. According to Fig. 6b, the high-yielded area is limited to a specific region in the aniline removal process. Thus, the high yield can be obtained only above moderate levels of treatment time and temperature. These results suggest the fact that a sufficient amount of hydroxyl radicals may occur above specific values of temperature and treatment time, which are also dependent on the structure of the target molecules. 95.05% of aniline removal was obtained at the medium level of all variables, 60 min of treatment time, 80 mM of H2O2 concentration and 403 K of temperature.

Fig. 6
figure 6

Binary effects of treatment time and temperature on a TOC removal and b aniline removal yield at a fixed H2O2 concentration of 80 mM

Conclusion

In this study, the aniline-contaminated aqueous solution, presenting a model of aniline-contaminated water sources, was purified by the synergistic effect of an environmentally friendly method, SWO and a green oxidizing agent, H2O2. Significant TOC and aniline removal percentages were obtained using the advantages of this work. It should be noted that this work is a good alternative to dysfunctional and ineffective conventional methods, according to achieved results. Moreover, CCD was used to comprehensively evaluate the TOC and aniline removal models and their variables, temperature, H2O2 concentration, and treatment time. Higher than 92% of TOC removal and 99% of aniline removal percentages were achieved. The applicability of the models and reliability of the model terms were evaluated with ANOVA.