1 Introduction

For many years, the treatment of industrial wastewater has been a recurrent problem with significant environmental implications. Among these, the degradation and elimination of dyes produced by the textile industry use a lot of water and toxic chemicals [1]. Most colorants are highly stable, nonbiodegradable. They have toxic, teratogenic, and carcinogenic properties [2]. Methyl orange is extensively utilized in the textile, cosmetics, and paint industries as a predominant colorant. However, it has an anionic characteristic and belongs to the azo group (N=N), making it potentially hazardous to the aquatic environment due to its toxicity [3].

Various methods have been used to remove dyes from wastewater, including Electro Fenton [4, 5], biological methods [6], adsorption [7, 8], coagulation-flocculation [9], and advanced oxidation process [10]. However, these methods have various drawbacks, such as high costs and energy consumption, advanced materials technologies, sludge production. Among the previously mentioned wastewater treatment methods, there is the heterogeneous Fenton-like, which relies on the in-situ generation of hydroxyl radicals (OH.) via Eqs. 1 and 2. This process is increasingly attracting interest in the field of wastewater treatment [11, 12]. The heterogeneous Fenton-like process hinges on the utilization of solid catalysts that are both cost-effective and eco-friendly [13]. Although significant progress has been made in the development of solid catalysts, their application in heterogeneous Fenton-like processes still represents a major challenge.

$${\text{Fe}}^{2 + } + {\text{ H}}^{ + } + {\text{ H}}_{2} {\text{O}}_{2} \to {\text{Fe}}^{3 + } + {\text{ H}}_{2} {\text{O }} + {\text{HO}},$$
(1)
$${\text{Fe}}^{3 + } + {\text{H}}_{2} {\text{O}}_{2} \to {\text{Fe}}^{2 + } + {\text{H}}^{ + } + {\text{ HOO}}$$
(2)

Recently, extensive studies have been carried out for the synthesis of solid catalysts such as nanoscale zerovalent iron [14], ferro ferric oxide nanoparticles [15], cobalt ferrite [16], as well as copper ferrite [17], with a view to their application in the heterogeneous Fenton-like process. However, solid catalysts based on cobalt (Co), copper (Cu) inevitably leach heavy metals, posing a risk to human health and the environment. Iron-based catalysts are attracting increasing demand due to their high surface area and their activity with H2O2. In this study, iron salts (FeSO4, 7H2O) were used to synthesize an Iron-doped catalyst, utilizing the hydrothermal carbonization procedure. This approach has various advantages over transition metals due to its affordability, non-toxicity, eco-friendliness. The application of sawdust as a heterogeneous Fenton-like catalyst has scarcely been tested for the removal of organic dyes. Recently, the biomaterial-based heterogeneous Fenton process has appeared as a suitable solution to overcome the drawbacks of homogeneous Fenton processes [18]. Currently, the conversion of hydrochar into a high-value catalyst is being increasingly studied and implemented in the field of environmental catalysis [19]. Sawdust, a co-product of the furniture and timber industries, is an abundant and cost-effective source of lignocellulosic material. It is considered as one of the most available rich carbon resources [20]. The carbonization of sawdust has the potential to eliminate organic Micropollutants through the adsorption process [21]. Although the production of activated carbon via pyrolysis is a common method for organic pollutant removal. It has drawbacks such as the need for an inert nitrogen-based environment, high temperatures, high energy consumption, and the requirement for sophisticated equipment [22, 23]. In contrast to pyrolysis, hydrothermal carbonization does not necessitate an inert environment and can be carried out at lower temperatures (ranging from 180 to 350 °C).The hydrochar produced via HTC has been used for wastewater treatment characterized by its porous structure, oxygenated functional groups and aromatic surfaces [24].

Our search is among available ones that revealed a lack of articles, concerning the use of hydrochar prepared from sawdust for MO dye removal by the heterogeneous Fenton-like process. As a result, the primary objective of our study was the preparation of iron-doped hydrochar from sawdust, using the hydrothermal carbonization method and its utilization for the removal of MO dyes from aqueous solutions. Based on this objective, the sub-objectives of the present study were as follows:

  1. (a)

    To produce iron-doped hydrochar as a catalyst with Fenton-like properties

  2. (b)

    To investigate the impact of various parameters in the heterogeneous Fenton process, such as the dosage of the heterogeneous Fenton catalyst, H2O2 concentration, solution pH, concentration of the organic pollutant MO, and solution temperature.

  3. (c)

    To describe the physicochemical characteristics of the produced catalysts

  4. (d)

    To optimize the decolorization rate using a response surface methodology (RSM) based on the Box-Behnken design (BBD).

This research marks a significant advancement in the development of a biomass-based catalyst for the sustainable degradation and elimination of toxic dyes through the heterogeneous Fenton- like process.

1.1 Material and method

2 Materials

In the Bensouda-Fes region of Morocco, a single type of sawdust sample was collected from a local wood processing facility. The chemicals, including hydrogen peroxide (H2O2, 30% by weight), ferrous sulfate heptahydrate (FeSO4,7H2O), citric acid (C6H8O7), benzoic acid (C7H6O2), sodium hydroxide (NaOH ≥ 99.99%), sulfuric acid (H2SO4, analytical grade ≥ 85%), and methyl orange (C14H14N3NaO3S), were of ACS reagent grade and purchased from Sigma-Aldrich, St. Louis, Missouri, United States (Fig. S1). In the studies, ultrapure water with a resistivity of 18.2 Ω.cm was created using a Millipore Milli-Q water purification system.

2.1 Preparation of the iron-doped catalyst

The sawdust hydrothermal carbonization experiment was realized in a 100 ml autoclave lined with polypropylene, as shown in Fig. 1. In each preparation, 5 g of sawdust were immersed in 50 ml of distilled water to obtain a 1:10 ratio, with manual agitation for 10 min. To enhance the performance of the hydrochar, a 10 mg quantity of citric acid (CA) as an acid catalyst was added to the autoclave before being inserted into the reactor and carefully shut [24, 25]. After this, the autoclave was moved to an oven, where it was warmed to 200 °C for three hours [26]. All experiments were conducted using a consistent heating rate of 5 °C per minute. After this, the autoclave was left to cool down naturally, and the solid residue, known as hydrochar, was obtained through vacuum filtration. Finally, the hydrochar was rinsed with distilled water until it reached a neutral pH and dried overnight in an oven at 105 °C before being stored [27].The hydrochar was named P@BC. The iron-doped hydrochar was prepared using a two-step low-temperature hydrothermal carbonization method. In 50 ml of ionized water, 1 g (5%) of FeSO4, 7H2O was dissolved, (Results for 1% and 3% are not included). Then, 4 g of pristine hydrochar (P@BC) was added to the solution and stirred slowly for 60 min. The properly mixed solution was then put into an autoclave and given a three-hour hydrothermal treatment at a temperature of 200 °C [28]. The resultant dark precipitates were then filtered, cleaned with ionized water, overnight dried at 80 °C, and placed in a recipient for later use. The hydrochar with iron doping is named 5%Fe@BC.

Fig. 1
figure 1

Graphical diagram of the preparation of iron-doped hydrochar

2.2 Characterization

To examine the sample morphologies, the field emission scanning electron microscope (Hitachi S4800) was employed along with energy dispersive X-ray spectroscopy. This combination allowed for detailed analysis of the sample surfaces and the elemental composition using X-ray spectroscopy. Inductively coupled plasma atomic emission spectroscopy (ICP-AES) was utilized to perform elemental analysis and quantify the concentration of iron in the liquid phase following HTC. This technique allowed for precise measurement of iron content in the analyzed samples. XRD patterns were acquired using a powder X-diffractometer (Expert-pro). Cu K radiation, an acceleration voltage of 40 kV, a 2θ range beginning at 0.02°, and a scanning speed of 6° per minute were all used in the operation of the XRD apparatus. This setup allowed for the characterization and analysis of the crystalline structures present in the samples. Using an FTIR Nicole 5700 model (USA) Fourier-transform infrared spectrophotometer, the surface functional groups of the materials were assessed. The samples were analyzed at a resolution of 4cm−1 using KBr pellets.

2.3 Experimental procedure

Experimental batch trials were conducted in a 250 ml glass beaker placed on a magnetic stirrer hotplate (Stuart, SB 162) with a stirring speed of 150 rpm for minutes [29].For all experiments, a working volume of 100 ml of MO solution at a specific concentration prepared by dilution of the stock solution was used. The MO solution was treated by adding a predetermined quantity of catalyst doped with iron and H2O2.Various parameters were changed to evaluate the efficiency of the Fenton-like process in degrading and decolorizing the organic contaminant. The parameters investigated in the study encompassed the catalyst mass, ranging from 0 to 1 g/L, H2O2 concentration, ranging from 0 to 10 mM, the solution pH adjusted between 3 and 10, MO concentration, between 20 and 50 mg/L, and the solution temperature, varying from 15 to 50 °C. These parameters were systematically varied to assess their impact on the process performance. During the experimental tests, each parameter was evaluated individually to identify its optimal value, with all other parameters held constant. At specific time points, a sample containing the pollutants was extracted, and subsequently isolated through the process of filtration. This allowed for the concentration of the pollutants in the sample to be assessed and analyzed. The concentration of the pollutants was determined using a UV–visible spectrophotometer (model: 2005, HJD501) at a wavelength of 464 nm, as depicted in Figure S1 [30].The color removal efficiency was evaluated using Eq. 3 [31]:

$${\text{Discoloration rate }}\left( {{\text{R}}\% } \right) \, = \, \left( {\frac{{{\text{C}}_{0} - {\text{C}}_{t} }}{{{\text{C}}_{0} }}} \right)\, \times \,100$$
(3)

where R (%) is the efficiency of organic matter removal, C0 (mg/l) and Ct (mg/l) are the initial and final concentration of organic matter, respectively.

2.4 Experimental plan

The BBD model was used to optimize experimental parameters for enhanced degradation and removal of organic contaminants via a Fenton-like process [31, 32]. This statistical approach involved utilizing expert design software to generate a series of batch experiments aimed at achieving optimal results [33]. Three factors with three levels each were used: (i) pollutant dosage (X1: 20 mg/l, 45 mg/l, 70 mg/l), (ii) catalyst mass (X2: 0.1 mg/l, 0.55 mg/l, 1 g/l) and (iii) temperature (X3: 25 °C, 40 °C, 55 °C) these factors were utilized to determine the coefficients of the quadratic model (Table1). The predicted response, Yi represents the variables of discoloration rate (R%) calculated by the equation:

$$Yi = {\upbeta }_{0} + \sum\nolimits_{i = 1}^{n} {\left( {{\upbeta }_{i} X_{i} } \right)} + \sum\nolimits_{i = 1}^{n} {\left( {{\upbeta }_{ii} X_{i}^{2} } \right)} + \sum\nolimits_{i = 1}^{n - 1} {\sum\nolimits_{j = 1}^{n} {\left( {{\upbeta }_{ij} X_{i} X_{j} } \right)} } + {\mathcal{E}}$$
(4)
Table 1 Variables and their limits for the box Behnken design of organic matter (MO) degradation

The model consists of various coefficients: β0 represents the intercept coefficient, βi represents the linear coefficients, βii represents the squared coefficients, and βij represents the interaction coefficients. The variables Xi and Yj are the coded independent variables, while ε represents the random error [24, 31]. The number of experiments was determined according to the following equation: 2k(k—1) + N0 with N0 = 4 central experimental points.

3 Results and discussion

3.1 SEM characterization

Figure 2 presents the comparison of surface morphology between raw sawdust (a), virgin hydrochar prepared by hydrothermal carbonization (b), and 5%Fe@BC-doped catalyst (c). SEM image of raw sawdust in 2a provide information regarding the structure and morphological characteristics. It shown an asymmetrical and highly non-porous surface. In contrast, the structure observed in the SEM image of hydrochar (P@BC) Fig. 2b indicates a layered structure and a well- developed heterogeneous porous surface. Perhaps the porous structure of the hydrochar is created during hydrothermal carbonization [23]. SEM image of the catalyst 2c shows a highly pronounced morphology of the stacked layer and wrinkled sheet, which could be attributed to the formation of defect-rich structures caused by the incorporation of iron atoms in the virgin hydrochar [34]. Energy-dispersive X-ray spectroscopy (EDS) analysis was conducted to examine the chemical composition of the synthesized heterogeneous catalyst. The results of this analysis, presented in Table 2 and Fig. 3, show a significant presence of carbon atoms (C), oxygen (O), as well as the presence of iron atoms (Fe) accompanied by certain impurities such as sulfur (S) in small quantities. It is likely that the presence of sulfur (S) and iron (Fe) is attributed to FeSO4,7H2O, an inorganic compound commonly encountered in the composition of synthesized catalysts. The results indicate that the catalyst effectively incorporates iron elements, demonstrating successful doping.

Fig. 2
figure 2

Raw sawdust (a), virgin hydrochar (b), iron-doped hydrochar (c), and EDS spectrum (d) pictures from scanning electron microscopy (SEM)

Table 2 chemical composition of 5%Fe@BC heterogeneous catalyst
Fig. 3
figure 3

EDS elements distribution mapping of 5%Fe@BC

3.2 FTIR characterization

Figure 4 displays the FTIR spectra of P@BC and 5%Fe@BC. Both spectra exhibit several characteristic peaks that are shared between them. The presence of absorbance peaks within the range of 3200 to 3600 cm−1 suggests vibrations associated with the O–H bond. The peaks observed around 2940 cm−1 can be attributed to the vibrations of the C–H bonds within the aliphatic group of cellulose. The asymmetric and symmetric stretching modes of the C–H bonds are represented by these vibrations. [35]. The typical band of aromatic C=C stretching corresponds to the peak at 1360 cm−1. The vibration of the C-O bond results in an absorbance peak at 1702 cm−1, which serves as an indication of the existence of carboxylic acids, ketones [36]. The presence of C–O stretching can be inferred from the absorption band observed around 1835 cm−1 [37]. While the peak at 842 cm−1 represents the stretching of COObonds, the peak at 1384 cm−1 represents =C–H bonding. It is possible to link the 580 cm−1 peak in the 5%Fe@BC catalyst to the Fe–O stretching vibration. This finding implies that iron was successfully doped into hydrochar [38].

Fig. 4
figure 4

Infrared spectrum of virgin hydrochar P@BC, iron-doped hydrochar 5%Fe@BC

3.3 XRD analysis

The XRD spectrum shown in Fig. 5 of both P@BC and 5%Fe@BC reveals a broad peak around 22.6°, which corresponds to the (002) plane. This peak indicates the presence of amorphous carbon without crystalline characteristics, suggesting the formation of such carbon during the reduction process [39, 40]. The presence of graphitic carbon can be attributed to the enhancement of hydrothermal carbonization by Fe iron particles. A distinctive peak emerges at 35.2°, which corresponds to the characteristic (311) plane of γ-Fe3O4 (JCPDS no. 03-065-0390). This peak indicates the formation of γ-Fe3O4 resulting from the reduction of ferric oxide during the hydrothermal carbonization process [41, 42]. An intense peak is observed at 44°, corresponding to the (221) plane of Fe2O3 (JCPDS no. 25-1402) [43]. XRD analysis provides evidence for the existence of graphitic carbon, Fe2O3, and γ-Fe3O4 following the introduction of iron doping.

Fig. 5
figure 5

XRD pattern of pristine hydrochar (P@BC), the iron-doped hydrochar (5%Fe@BC)

4 Effects of operating parameters

4.1 Effect of catalyst dosage

Solid catalysts play a crucial role in activating hydrogen peroxide (H2O2) to produce highly potent radicals with the Fenton system [44]. The catalyst dosage is an essential variable in the heterogeneous Fenton approach, it is necessary to establish the applicable dosage. According to Fig. 6, the degradation of MO increases noticeably when the dosage of 5%Fe@BC is increased from 0 to 1g/l. Previous studies have shown similar outcomes, with increased H2O2 activity when the catalyst dose is increased [45, 46]. As the catalyst mass elevates, the elimination of MO at 60 min rises from 20.89 to 98.76%. Without a catalyst, the removal of MO is significantly limited, indicating low H2O2 activity efficiency. The increase in the dosage of the 5%Fe@BC catalyst from 0.2 to 0.5 g/l leads to a remarkable increase in MO degradation,suggesting a greater number of active sites on the 5%Fe@BC catalyst to activate H2O2 [47]. Increasing the 5%Fe@BC catalyst from 0.5 to 1 g/l slightly improve the degradation of the organic pollutant. It’s probable that too much catalyst has a detrimental impact on how quickly hydroxyl radicals are consumed and lowers the catalytic activity of H2O2.

Fig. 6
figure 6

Effect of catalyst dosage. Experimental conditions: [MO] = 20mg/l, [H2O2] = 2mM, pH 3, T = 30 ± 2 °C

4.2 Effect of H2O2

In the advanced oxidation process of Fenton-like, hydroxyl radicals are typically present in the solution for the removal of recalcitrant pollutants [48].The production of OH. is generally linked to the concentration of H2O2. The impact of H2O2 on the degradation of organic matter MO is illustrated in Fig. 7. In the absence of hydrogen peroxide, the rate of discoloration was negligible, reaching only 16.54% within a few minutes, confirming the small role of adsorption. The removal of MO is notably increased with the increase of H2O2 from 0 to 4mM. The hydroxyl radicals required for the breakdown of organic contaminants are thought to increase as H2O2 levels rise [17]. The degradation of MO decrease when the dose increases from 4 to 10mM.This can be attributed to the self-decomposition and negative effect of an excess of H2O2 in the solution. The excess hydrogen peroxide leads to an undesirable scavenging of hydroxyl radicals [49].

Fig. 7
figure 7

Effect of H2O2. Experimental conditions: [MO] = 20mg/l, catalyst dose = 0.5g/l, pH 3, T = 30 ± 2 °C

4.3 Effect of pH

pH is a key factor in the heterogeneous Fenton-like process, influencing both the catalytic capacity of catalysts for dye degradation [50, 51]. Therefore, it is crucial to find the optimal value. The effect of pH on the degradation of MO is illustrated in Fig. 8. At pH 3, the Fenton like process used achieves a very high discoloration rate of approximated 97% in 60 min. The degradation efficiency of MO reaches 47.67% at neutral conditions (pH 7). In contrast, the degradation of MO exhibits a significantly low efficiency under basic conditions (pH 10).The decrease can be justified by the precipitation of dissolved iron and the instability of H2O2 in the solution [52]. Additionally, the catalyst 5%Fe@BC becomes deactivated, which reduces the production of hydroxyl radicals (OH.). Furthermore, several complexes from in the medium [53]. The pH value of 3 is considered optimal and will be fixer for the subsequent experiments [54].

Fig. 8
figure 8

Effect of pH. Experimental conditions: [MO] = 20 mg/l, [H2O2] = 4 mM Catalyst dose = 0.5 g/l, T = 30 ± 2 °C

4.4 Effect of MO dose

As illustrated in Fig. 9, the degradation efficiency of organic pollutants gradually declines as the dosage of the pollutant increases. The negative effect of organic pollutants concentration can explain a higher number of organic molecules and reactive intermediates [55]. A higher concentration leads to a weaker catalytic reaction between the Fenton reagents. Furthermore, the intermediate reactions generated on the catalyst surface can inhibit subsequent reactions. A high concentration of organic pollutants requires a high dose of solid catalyst [56]. As the reaction progresses, the catalytic reaction between the catalyst and H2O2 may be reduced due to shortage of catalyst.

Fig. 9
figure 9

Effect of MO. Experimental conditions: [H2O2] = 4 mM, Catalyst dose = 0.5 g/l, pH 3, T = 30 ± 2 °C

4.5 Effect of temperature

As shown in Fig. 10, the degradation of the organic pollutant is clearly enhanced with increasing reaction temperature [55]. The decolorization efficiency increases from 62.19% to 98.98% within 60 min when the temperature rises from 15 to 50°C.This is mainly attributed to the increased reaction rate [57], and enhanced collisions between organic pollutants and hydroxyl radicals OH., which are generated by Fenton-like reaction [58]. On the other hand, a high temperature increas.es the operating cost for a practical application and can be detrimental to catalyst stability, leading to the destruction of the hydrochar support [59].A temperature value of 30 °C is considered optimal and used for the remaining experiments.

Fig. 10
figure 10

Effect of temperature. Experimental conditions: [MO] = 20 mg/l, [H2O2] = 4mM, catalyst dosage 0.5 g/l, pH 3

4.6 Generation of hydroxyl radicals (OH.)

To Test the existence of OH. in the heterogeneous Fenton like process, a solution was prepared by adding 100 ml of benzoic acid (BA) to the system. The solution was maintained at pH 3, with a catalyst mass of 0.5 g/L, a 4 mM dose of H2O2, and solution temperature of 30 °C [60].There was a gradual increase in absorbance over time during the oxidation process for both Fenton catalysts (H2O2 and H2O2/5%Fe@BC), as shown in Fig. 11a. This indicates that benzoic acid trapped the OH. radicals and formed salicylic acid [61].In the absence of a catalyst, salicylic acid production was not identified due to insufficient radical production (HO.). The results indicated a continuous generation of hydroxyl radicals that effectively attack the pollutant [62].Fig. 11b shows how the solution’s UV–visible spectra changed as it underwent oxidation. Gradually, the band with a wavelength of 464 nm that is ascribed to the conjugated structure created by the azo linkage narrows. This drop demonstrates the deterioration and discoloration of methyl orange caused by the Fenton-like process’ cleavage of the chromophore in the dye structure [63].

Fig. 11
figure 11

a Salicylic acid absorbance at 300 nm during benzoic acid oxidation; b The UV–visible absorption spectra of the MO solution as a function of time

4.7 Statistical modulization and ideal conditions for pollution removal

The utilization of the Box-Behnken design model aimed to assess the significance of various parameters and identify the ideal experimental conditions for achieving effective oxidation through the heterogeneous Fenton-like process. The removal and discoloration rate of pollutants (Eq. 3), which is the response obtained from planned experiments with three variables, pollutant dosage MO, 5%Fe@BC catalyst mass, and the optimal temperature for pollutant degradation through the Fenton-like reaction (Table 1) was studied using an experimental plan comprising four central repetitions. The matrix for estimating the number of tests needed to get the response, especially the discoloration rate, is shown in Table 3. Three variables are represented by the K number of optimal factors. In this context, 16 experiments were completed [64]. The results are consistent with the combined impact of the three variables within their acceptable range.

Table 3 Box-Behnken design for the three independent variables with discoloration rate

ANOVA analysis was performed to assess the validity of the statistical model trials (Table 4). In the ANOVA, the majority of parameters tested to evaluate model validation are the mean square ratio values, significant F-values, and P-values of the confidence interval for model terms, calculated at 95% confidence level. A P-value lower than 5% ensures the significance of the model [65].As a result, higher F-values (117.99) and low P-values (< 0.0001) for the degradation of refractory organic pollutants confirm the statistical significance and importance of model validation. Moreover, the correlation coefficient values (R2) exhibited a high level of accuracy (R2 = 0.99 with R2 adjusted = 0.98, as shown in Table 4). This indicates that the model created is a good fit for the experimental data and possesses strong predictive capabilities [50, 66].Furthermore, the results shown in Fig. 12 reveal a strong correlation between the predicted and experimental values, indicating that the model is appropriate and performs well for the response of organic pollutant degradation. As a result, the second-order polynomial relationship, which was also used to determine the correlation of the three different variables with the Yi response, was expressed by equation (Eq. 5):

$$\begin{aligned} {\text{Discoloration rate }}\left( \% \right) \, = & \, 0.116 \, - \, 0.001A \, + \, 0.742B \, + \, 0.028C \, + \, 0.001AB \, \\ & + \, 9.3 \, E^{ - 05} AC - \, 0.002BC \, - \, 5.6 \, E^{ - 05} A^{2} - \, 0.461B^{2} - \, 0.0003C^{2} \\ \end{aligned}$$
(5)
Table 4 The degradation of MO using an analysis of variance (ANOVA)
Fig. 12
figure 12

Predicted values versus actual values of the model for the discoloration rate

Figure 13 presents three-dimensional (3D) response surface plots for the discoloration rate as a function of catalyst mass, temperature, and organic pollutant dose (MO). The surface response of discoloration efficiency in the oxidation process, while keeping temperature (°C) and catalyst mass (g/l) as independent variables, is shown in Fig. 13a, b. It was determined that the discoloration rate increases with increasing temperature (from 25 to 55 °C) and catalyst mass (0.1–1 g/l), confirming the interaction between these two parameters [67]. Figure 13c, d show that the effect of catalyst mass is greater than the effect of pollutant dose (14.67–80.92 mg/l) on the discoloration rate. Figure 13e, f demonstrate how the discoloration rate increases with temperature as a function of pollutant dose, with temperature having a more significant impact than the pollutant dose.

Fig. 13
figure 13

Response surface traces: Effect of the three variables studied (A, B, C) on discoloration rate

The desirability function was employed for numerical optimization purposes. One of the objectives of this study is to maximize the Discoloration rate by utilizing the variables outlined in Table 1S. The desirability function is employed to determine the highest value of function D among various alternatives. The alternative with the highest desirability value, as indicated in Table 4, is selected as the optimal option.

To optimize the process parameters, the Design Expert software was employed, making use of the prediction point feature. The optimized parameters were subsequently determined using the statistical software, and the results were documented in Table 5. To validate the Response Surface Methodology model based on the Box-Behnken Design, experiments were conducted on wastewater solutions using the selected optimization conditions for decolorization. The results showed that the experimental percentage (92.45%) and the predicted decolorization percentage (92%) differed only by 0.45%. Therefore, Eq. 5 was confirmed to accurately calculate the decolorization rate of the solution.

Table 5 Verification tests under optimal conditions

Table 6 compares the results of the 5% Fe@BC catalyst’s performance in effectively removing organic matter (MO) with those of another earlier research. This comparison considers numerous methods of treatment, including heterogeneous Fenton, Fenton-like oxidation, employing various solid catalysts, and application under various conditions (pH, amount of H2O2, catalyst concentration, reaction time). This comparison shows that, in our study, we acquired significant responses compared to the other catalysts stated, although using a little amount of H2O2 and catalyst and a shorter reaction time [68], suggesting that the catalyst is a good candidate for a Fenton-like reaction. These results demonstrate that each catalytic system behaves differently and that the optimum conditions for achieving maximum MO removal cannot be easily extrapolated from one system to another.

Table 6 Comparison of MO discoloration for various methods and catalysts

5 Conclusion

The main objective of this research was to explore the possibility of degrading organic pollutants MO by a heterogeneous Fenton-like process, using an environmentally friendly and cost-effective material that is available easily and locally. For the preparation of the heterogeneous catalyst, wood sawdust waste was utilized with a 5% weight doping of iron. Ferrous ions were loaded onto this support (hydrochar), using the hydrothermal carbonization method with the assistance of an autoclave. The degradation of methyl orange depends on the process variables. The decolorization rate reached 92.54% under optimal conditions, which included a catalyst dosage of 0.5 mg/L, an organic pollutant concentration of 50 mg/L, and a temperature of 35.5 °C. The results indicate that the heterogeneous Fenton process based on 5%Fe@BC can be used as a viable alternative to conventional treatment methods for wastewater. In addition, optimization of the Fenton -like process by experimental design such as response surface methodology are also effective tools for reducing the number of experiments and consumables costs. Moreover, since it determines the interaction between variables, it helps us to understand better the effect of independent variables on dependent ones. The advantage of the heterogeneous Fenton process used in this work is to separate easily the solid catalyst (5% Fe@BC) and avoid sludge formation at the end of the treatment. Future studies should focus on the practical application of these materials for the degradation of real pollutants and the optimization of Fenton catalyst production processes.