1 Introduction

Essential oils are derived from diverse natural sources such as plants, flowers, seeds, leaves, roots, and stems, which have garnered significant attention due to their myriad health benefits. These oils find applications in aromatherapy, self-care products, food, and pharmaceuticals. The global market size for essential oils is projected to reach 18.96 billion dollars by 2023, with an annual growth rate of approximately 6%. This growth is particularly notable in Asian countries, including India and China (Abu Bakar et al., 2020). The expanding essential oil market is likely lead to an increase in the residues generated by essential oil industries. Presently, Europe alone generates approximately 700 million tonnes of industrial agricultural waste annually, and a significant portion of this waste remains underutilized (Truzzi et al., 2022). Spent carrot seed waste (SCSW) is another typical byproduct of the essential oil industry, commonly either discarded in landfills or repurposed as cattle feed (Modak et al., 2023). The valorization of post-extraction solid wastes is crucial for effective waste management and contributes to the circular economy. Adsorption is considered a highly suitable method for utilizing such waste in terms of cost, design simplicity, operational ease, accessibility, and effectiveness, especially for treating industrial wastewater from various sectors such as textile, pulp and paper, pharmaceuticals, leather, and more (Gopal et al. 2014; Unugul and Nigiz 2020). It is reported that by 2050, the textile sector will quadruple water pollution, making it the second-largest polluting industry in the world (Kumar et al., 2021). Methylene blue (MB) is a popular cationic dye used by the textile industry causing adverse reactions like nausea, increased heart rate, diarrhea, vomiting, and gastrointestinal tract irritation (Ichipi et al., 2023). The environmental challenge of removing MB from industrial wastewater has become prominent (Oladoye et al., 2022). In this context, utilizing SCSW as an adsorbent serves two important purposes. Firstly, it provides an effective way to repurpose and make use of solid waste generated in the essential oil industry. Secondly, it addresses the need to clean industrial effluents, particularly those generated by industries such as textiles, pulp and paper, pharmaceuticals, and leather, which often contain pollutants like MB dye.

The adsorption process involves multiple operating parameters, having impact on dye removal efficiency, and determining the optimum parameters for effective pollutant removal requires a substantial number of experiments. The Design of Experiments (DoE) approach assists in identifying the appropriate experimental parameters that influence the adsorption process with the minimum number of experimental runs. Response Surface Methodology (RSM), a DoE approach, is employed to evaluate the significance of various influencing parameters while considering their interactions as well (Montgomery, 2017). The researchers have explored DoE approaches on various adsorbents such as sugarcane bagasse, peanut hull, orange peel, and mustard straw biochar and for the adsorption of MB dye (Jain et al., 2022), (Patidar & Vashishtha, 2020). Modak et al. (2023) conducted a comprehensive physico-chemical analysis of SCSW and established its suitability as an adsorbent for treating dye-containing wastewater. The inherent porous morphology and diverse surface functional groups and adsorption active sites make it well-suited for this purpose. Nevertheless, there is a gap in the literature concerning a detailed investigation of MB dye adsorption onto SCSW as an adsorbent, particularly using an integrated approach that involves computational, modeling, and thermodynamic analyses.

Hence, this study employs two step optimization methodologies, namely screening design and hybrid CCD, for the first time to analyze the impacts of various adsorption parameters on adsorption capacity and dye removal efficiency of SCSW to treat MB dye wastewater. Subsequently, isotherm, kinetic, and thermodynamic studies are conducted to delve into the mechanisms underlying the adsorption of MB onto SCSW. Additionally, the regeneration and reutilization of dye-coated SCSW is explored to evaluate its shelf life as an adsorbent.

2 Material and Methods

2.1 Sample Procurement, Preparation, and Characterization

Methylene blue (MB) dye powder was procured from TCI Chemicals for making synthetic textile wastewater. The SCSW was procured from the Rajeshwari essential oil industry in Kannauj, India. It was washed repeatedly with DI water to remove the impurities and organic-laden compounds from the waste, then dried in an air oven at 70 °C for 12 h. Dried SCSW was stored in the zip bag for further utilization in the adsorption study. The physico-chemical characteristics of SCSW highlight its suitability as an adsorbent for removing cationic dyes from wastewater (Modak et al., 2023). FTIR and TPD analysis revealed the presence of oxygenated functional groups (C=O, OH, C–O) and strong acidic active sites, making SCSW highly favorable for cationic dye adsorption. FE-SEM analysis exhibited a heterogeneous porous morphology with honeycomb structures and ridges on the SCSW surface, providing an ideal surface for the adsorption of organic pollutants like cationic dyes.

2.2 Point of Zero Charge (pHpzc) of SCSW Adsorbent

One of the crucial variables used to calculate the surface charge of the SCSW adsorbent is the point of zero charge (pHpzc). The pH drift method was used for the determination of pHpzc (Milonjić et al., 1975), where 50 ml of 0.01 M NaCl was introduced to 10 conical flasks with pH values ranging from 3 to 12, respectively. A pH adjustment was made using 0.1 M HCl and 0.1 M NaOH. After that, 0.15 g of SCSW sample was added to each conical flask, sealed, and incubated in an orbital shaking incubator for 48 h at 30 °C to achieve equilibrium. The filtrate from each conical flask was collected after 48 h, and pHfinal is determined using a pH meter. The ΔpH (pHfinal − pHinitial) vs pHinitial plot was used to determine the pHpzc of SCSW adsorbent where ΔpH is zero. Three duplicates of each experiment were carried out.

2.3 Batch Adsorption Experiments

To perform adsorption experiments, 100 ml of MB dye solution of the desired concentration and pH was taken in a conical flask with the required amount of dried SCSW (particle size 0.6 mm) and kept in an orbital shaking incubator (Ambassador, India). The RPM, reaction time, and reaction temperature were set as per the experimental runs. Once the reaction time was over, the solution was filtered through 0.45-μm Wattman filter paper and the concentration of the filtrate was measured using a UV-vis spectrophotometer (Labtronics, LT-2204, India) at 665 nm. The adsorption capacity (Qe) and dye removal were calculated using Equations 1 and 2.

$${Q}_e\left( mg/g\right)=\frac{\left({C}_e-{C}_o\right)\times 0.1}{W}$$
(1)
$$\%\;\textrm{dye}\ \textrm{removal}=\frac{C_e-{C}_o}{C_o}\times 100$$
(2)

C o = initial concentration of MB before adsorption (ppm), Ce = final concentration of MB after adsorption (ppm), W = weight of the SCSW (g)

2.4 Designing of Experimental Runs

The DoE approach was used to find the systematic relationship between independent and dependent variables affecting the adsorption process. Two stages of DoE approaches were being adopted in this adsorption study. In the 1st stage, screening design was used, followed by RSM methodology (hybrid-DoE), where central composite design was employed. The Quantum XL 14.0 software is used to design experimental runs.

2.4.1 Screening Design

There are several parameters affecting the adsorption process, and a few of them have little to no impact. Manually varying each parameter to examine its impact on the process takes a lot of effort and is not cost-effective. To find out the most influencing parameters and their interactions with other potential parameters, screening designs are utilized (Sharif et al., 2014). The operating parameters considered for screening and their ranges were reaction temperature (30–80 °C), pH (3–10), reaction time (20–120 min), initial concentration of dye (20–100 ppm), adsorbent dose (0.1–1 g/100 ml), and RPM (100–250). A total of 14 experimental runs were predicted through screening design, as reported in Table 1 while considering adsorption capacity and dye removal as response parameters.

Table 1 Designing of experimental runs for the adsorption using screening design

2.4.2 Optimization Design

In order to optimize the impact of an individual and interacting effects of input variables on responses, 5 factor-5 level CCD was employed to experimental designs. Based on the results of screening design, experimental runs were designed with reduced operating parameters (least influential parameter is kept constant) for optimization study as shown in Table 2. Reaction time was fixed for 120 min whereas reaction temperature (30–90 °C), pH (3–10), initial dye concentration (10–95 ppm), adsorbent dose (0.75–2.25 g/100 ml), and RPM (75–225) were varied while adsorption capacity and dye removal were selected as responses. A total of 50 experimental runs were recommended by full factorial CCD (α=2.38), tabulated in Table 2.

Table 2 Designing of experimental runs for the optimization study

It was to be noticed that 9 extra runs were also given in Table 2 under the manual optimization heading, which were manually designed and performed after analyzing the results of optimization runs (50 runs). The retrofitting of these nine additional experimental runs was done to get actual response maxima that the proposed optimization runs could not provide. In optimization study, the optimum point is the point where the response value is close to desired value as in the present case, maximizing the response is desired. The main effect plots of all input variables should follow an asymptotic trend and the maximum point should be considered optimum point for the input variable. In the present study, an asymptotic trend was not obtained with the chosen range of input variables; hence, additional runs were performed by taking the values outside the range. This design is named hybrid optimization design (DoE + manual). All the experiments were performed in triplicate, and average values are used for analysis.

2.5 Isotherms, Kinetics, and Thermodynamic Studies

Adsorption isotherms are primarily employed to elucidate the interaction mechanism between the absorbent and adsorbate, determining whether the adsorption process is monolayer or multilayer, and whether it involves chemical or physical interactions (Al-Ghouti & Da’ana, 2020). In this study, 2-parameter isotherm models (Langmuir, Freundlich, Temkin, and Dubinin-Radushkevich adsorption isotherms) were used to study MB-SCSW isotherms at different temperatures (30 °C, 40 °C, 50 °C, and 60 °C) (Al-Ghouti & Da’ana, 2020; Ali et al., 2021; Maruthapandi et al., 2018). Four different kinetic models were used to study MB-SCSW kinetics at different MB dye concentrations (40, 70, 120, and 150 ppm) at fixed temperature (50 °C), and pH (6.5). These kinetic models are pseudo-first-order, pseudo-second-order, Elovich kinetic, and intraparticle diffusion model. To comprehend the adsorption process’s nature, thermodynamic favorability was checked and thermodynamic factors (∆G°, ∆H°, and ∆S°) were calculated (Zhu et al., 2018).

2.6 Regeneration and Reutilization Study

For regeneration of dye-adsorbed SCSW, chemical and thermochemical regeneration techniques were used adopted from the literature (Momina & Suzylawati, 2020). In thermo-chemical regeneration technique, the dye-adsorbed SCSW samples were heated at 100 °C for 2 h to loosen the bond between SCSW and MB. Furthermore, thermally treated SCSW was chemically treated using 0.1 M HCl for 2 h to leach loosely held MB onto the SCSW surface. On the other hand, in the chemical regeneration technique, MB-coated SCSW was only treated with 0.1 M HCl for 2 h. Both chemically and thermo-chemically regenerated SCSW samples were further used for adsorption experiments to carry out lifecycle assessment of SCSW with initial dye concentration of 20 ppm at 50 °C.

3 Results and Discussions

3.1 Screening Design

All the experiments reported in Tables 1 and 2 were carried out using batch adsorption and responses (adsorption capacity and dye removal) are also provided in Table 1. Table 3 lists the contributions of the input parameters for both responses. It can be seen that reaction time seems to least influential parameter that may be held constant for optimization study to maximize the adsorption of dye onto SCSW, as shown by the % contribution values (1.26 and 1.75%). It is to be noted that dye concentration (63%) and adsorbent dosage (23%) are the factors having the greatest influence on adsorption capacity and dye elimination.

Table 3 % contribution of operating parameters

3.2 Optimization Studies

The experimental runs suggested by the Quantum XL (initial 50 runs in Table 2) were performed and output responses are inserted into the DOE module to perform the regression analysis. The coefficient of regression (R2) of adsorption capacity and dye removal is found to be 0.99 and 0.90, respectively, indicating well-fitting of the adsorption capacity response compared to the dye removal response. The second-order quadratic equations for both dye removal and adsorption capacity derived from the regression analysis are given in Eq. (3 & 4). The ANOVA for both responses is given in Table S-1 of supplementary material. In the adsorption capacity regression model, it is to be noted that linear terms as well as multiplied terms of dye concentration (C) and SCSW dose (D) are more significant compared to other input variables, because the p-value of C, D, CC, and DD is less than 0.05. In contrast, the linear terms of pH (B), dye concentration (C), adsorbent dose (D), RPM (E), and interactive terms AB, AC, AD, BC, DE, BCDE, having p-values less than 0.05, are more significant for the dye removal regression model.

The regression analysis was again carried out after the incorporation of manual optimization runs (as explained in Section 2.3.3), totaling 59 runs. A slight reduction in R2 of adsorption capacity, i.e., 0.96 is noticed; however, R2 of dye removal remains constant, i.e., 0.90, both under the acceptable range, indicating the well-fitting of the model. The regression equation for hybrid design is given in Eqs. (5 and 6) whereas ANOVA results for hybrid design are given as Table S-2 in supplementary file.

$$\mathrm{Adsorption}\;\mathrm{capacity}=3.8709-0.0791\text{A}+0.0305\text{B}+2.1303\text{C}-2.3228\text{D}+0.0177\text{E}-0.0297\text{AB}+0.0051\text{A}\text{C}+0.0204\text{AD}+0.0027\text{AE}+0.034\text{BC}-0.0214\text{BD}+0.0034\text{BE}-0.1718\text{CD}+0.0091\text{CE}-0.0272\text{DE}-0.0227\text{AB}\text{C}+0.027\text{AB}\text{D}+0.0041\text{A}\text{BE}+0.0064\text{ACD}-0.0066\text{ACE}+0.0122\text{ADE}-0.0243\text{BCD}-0.0106\text{BCE}+0.0002\text{BDE}-0.0192\text{CDE}+0.0131\text{A}\text{BCD}-0.0006\text{ABCE}-0.0166\text{ABDE}+0.0192\text{ACDE}+0.0229\text{BCDE}-0.0061\text{A}\text{BCD}\text{E}-0.182\text{A}^2+0.2715\text{B}^2-0.2789\text{C}^2+1.5315\text{D}^2-0.1236\text{E}^2$$
(3)
$$\%\text{Dye}\;\text{removal}=96.664-0.0909A+0.4236B-0.2458C+0.8995D+0.3088E-0.4314AB+0.2573AC+0.3615AD+0.1638AE+0.4645BC-0.0937BD+0.2127BE+0.138CD-0.0612CE-0.2825DE-0.2682ABC+0.3313ABD+0.0583ABE+0.0583ACD-0.1326ACE+0.1049ADE-0.1994BCD-0.2222BCE-0.0599BDE-0.2307CDE-0.1221ABCD-0.1049ABCE-0.2616ABDE+0.3148ACDE+0.4227BCDE-0.0174ABCDE-0.1761AA+0.097BB-0.292CC-0.053DD+0.0434EE$$
(4)
$$\mathrm{Adsorption}\ \mathrm{capacity}=0.6807-0.9956A+0.4366B-1.945C-4.409D+0.0177E-0.0297 AB+0.0051 AC+0.0204 AD+0.0027 AE+0.034 BC-0.0214 BD+0.0034 BE-1.8877 CD+0.0091 CE-0.0272 DE-0.227 AB C+0.027 AB D+0.0041 ABE+0.0064 ACD-0.0066 ACE+0.0122 ADE-0.0243 BCD-0.0106 BCE+0.0054 BD E-0.0192 CDE+0.0131 ABCD-0.0006 ABCE-0.0166 ABDE+0.0192 ACDE+0.0229 BCDE-0.0061 ABCD E-2.5249 AA+0.7889 BB+2.8817 CC-10.797 DD-1.6153 EE$$
(5)
$$\%\mathrm{Dye}\ \mathrm{removal}=96.626-0.3602A+0.3511B-0.6735C+1.7093D+0.3088-0.4314 AB+0.2573 AC+0.3615 AD+0.1638 AE+0.4645 BC-0.0937 BD+0.2127 BE+1.4392 CD-0.0612 CE-0.2825 DE-0.2682 ABC+0.3313 ABD+0.0583 ABE+0.0583 AC D-0.1326 ACE+0.1049 ADE-0.1994 BCD-0.2222 BCE-0.0599 BDE-0.2307 CDE-0.1221 ABCD-0.1049 ABCE-0.2616 ABDE+0.3148 ACDE+0.4227 BCDE-0.0174 AB CDE+0.5023 AA+0.1244 BB-0.1907 CC-2.394 DD+0.4792 EE$$
(6)

3.3 Optimization of Parameters

Based on the regression analysis performed by Quantum XL, optimization of both designs (DoE and hybrid design) was carried out by keeping maximization of adsorption capacity and dye removal as a set objective. Optimized conditions and respective response values for DoE and hybrid designs are compared in Table 4. It can be seen that the optimized conditions are substantially different, and by including extra runs in the DoE design, adsorption capacity is enhanced by a factor of more than 10 (13, to be précised). The removal of dye is also improved a little bit, and MB is shown to be eliminated entirely (100%). Additionally, experimental runs are performed under optimal circumstances, and results are similar to those predicted, as shown in Table 4. Hence, it is evident that hybrid design produces better results in comparison to DoE alone and will be considered further to generate other results. The influence of input parameters (individual as well as interaction) was carried out by varying one/two parameters at a time and keeping others fixed. The values of the fixed parameters are maintained at their optimized levels, which are listed in Table 4.

Table 4 Comparison of optimum conditions obtained from DoE and hybrid design.

3.3.1 Main Effect of Individual Parameter

Main effect plots, in Fig. 1, present the influence on responses (adsorption capacity and dye removal) by varying the input variables. The extra runs performed for hybrid design are presented with shaded areas in the main effects plots.

Fig. 1
figure 1

Effect of a temperature on adsorption capacity (12 pH, 200 ppm, 0.1 g, 150 RPM) and dye removal (12 pH, 200 ppm, 2.5 g, 105 RPM); b pH on adsorption capacity (57°C, 200 ppm, 0.1 g, 150 RPM) and dye removal (30 °C, 200 ppm, 2.5 g, 105 RPM); c pHpzc of SCSW; d adsorbent dose on adsorption capacity (57°C, 12 pH, 200 ppm, 150 RPM) and dye removal (30 °C, 12 pH, 200 ppm, 105 RPM); e dye concentration on adsorption capacity (57°C, 12 pH, 0.1 g, 150 RPM) and dye removal (30 °C, 12 pH, 2.5 g, 105 RPM); f RPM on adsorption capacity (57°C, 12 pH, 200 ppm, 0.1 g) and dye removal (30 °C, 12 pH, 200 ppm, 2.5 g)

The influence of temperature (A), presented in Fig. 1(a), was studied by varying temperature from 30 to 90°C while other parameters are fixed at optimized levels to maximize the adsorption capacity (pH =12, dye concentration = 200, SCSW dose =0.1 g, RPM =150 rpm) and dye removal (pH =12, dye concentration=200 ppm, SCSW dose =2.5 g, RPM=105 rpm). Figure 1(a) illustrates that the adsorption capacity increases until 60°C before it begins to decline again; however, on the other hand, the dye removal falls constantly as the temperature rises. An increase in temperature enhances the mass transfer rate, so the adsorption capacity increases, whereas the dye removal capability reduces with increasing temperature due to the exothermic nature of the adsorption (Mansour et al., 2021). In later sections, the effect of temperature is vividly explained through adsorption thermodynamic analysis.

Figure 1(b) represents the effect of pH on adsorption capacity and dye removal. It is seen that there is an increment in adsorption capacity and dye removal with an increase in pH from 3 to 10 but no asymptotic value is attained. Therefore, two further runs are carried out at pH 11 and 12, referred as runs 51 and 52 in Table 2, where further increase in adsorption capacity and dye removal is noticed. At higher pH values, deprotonation of the adsorbent surface takes place, resulting in the electrostatic interaction of the cationic MB dye molecule with the adsorbent surface. This is justified by pHpzc of SCSW, i.e., 6.8, illustrated in Fig. 1(c). If the pH of the solution is greater than pHpzc, the SCSW surface becomes more negatively charged, attracting more cationic species (MB dye molecules) to the surface and resulting in a deprotonation mechanism that increases adsorption capacity and dye removal (Sahu et al., 2020), since the pHpzc provides the information on ionization of functional groups and the nature of interactions between H+ and OH- in the dye solution (Iheanacho et al., 2023). The surface of SCSW contains various functional groups attributed to the presence of bio-polymers such as cellulose, hemicellulose, and lignin (Modak et al., 2023). With the solution’s pH, the concentration of hydroxyl ions (OH-) rises, causing protons to be drawn from the surface functional groups of SCSW. These protons then combine with hydroxyl ions to form water (H2O). The electron-rich functional groups on the surface of SCSW become favorable sites for the adsorption of cationic species (MB). When the solution’s pH exceeds the pHpzc of SCSW (6.8), deprotonation accelerates, leading to an increased efficiency in dye removal (Iqbal et al., 2019).

Figure 1(d) illustrates that as the adsorbent dose is increased from 0.75 to 2.25 g, the adsorption capacity decreases, while dye removal increases. To further investigate the impact of extreme values of SCSW dose, four additional runs were conducted at SCSW doses of 0.1, 0.2, 0.5, and 2.5, denoted as runs 53–56 in Table 2 and shaded areas in Fig. 1(d). It is noteworthy that the adsorption capacity reaches its peak at the lowest SCSW dosage of 0.1 g, but the highest dye removal occurs at the highest SCSW dose of 2.5 g. At a constant dye concentration (200 ppm), an increase in the adsorbent dose leads to a decrease in adsorption capacity due to the saturation of active sites or an increase in the number of available active sites. However, with a higher adsorbent dosage, more dye molecules bind to the SCSW adsorbent, facilitated by an increased number of active and accessible adsorption sites (Subramani & Thinakaran, 2017).

Figure 1(e) showcases the effect of dye concentration on adsorption capacity as well as dye removal. With an increment in dye concentration, the adsorption capacity increases abruptly from 10 to 95 ppm due to the increase in dye molecules for the fixed number of active sites present in SCSW, leading to a higher adsorption rate. Similarly, the dye removal also gets slightly enhanced with an increase in dye concentration due to reduction in mass transfer resistance between the SCSW surface and the MB dye molecule (Iqbal et al., 2019). To further investigate the effect of dye concentration at higher values, three extra runs are carried out at dye concentrations of 105, 150, and 200 ppm, which shows that adsorption capacity and dye removal are enhanced at higher concentration as well. These extra runs are given as runs 57–59 in Table 2 and with shaded areas in Fig. 1(e). Hence, it can be perceived that even with a small amount of SCSW, dye solutions of high concentration can also be treated and optimized value for dye concentration is found to be 200 ppm for both the responses.

Figure 1(f) illustrates the impact of RPM on adsorption capacity and dye removal. There is no significant change observed in dye removal with an increase in RPM; however, the adsorption capacity increases with RPM until 150 RPM. This is attributed to an increase in turbulence, causing a reduction in the boundary layer thickness around the surface of the adsorbent. Beyond 150 RPM, the adsorption capacity decreases, suggesting a possibility that excessive collisions between the adsorbent at higher RPM may lead to desorption, resulting in a reduction in adsorption capacity (Kheddo et al., 2020).

3.3.2 Effect of Interaction of Multiple Variables

In the above section, the effects of individual parameters on the responses are presented; however, interaction of input parameters also greatly affects the responses. The study of the interaction of input parameters in the due process of adsorption can be carried out using DoE, as provided in Fig. S-1 to Fig. S-10. The interaction between temperature and pH can be seen in Fig. S-1.1; dye removal is increasing with pH at low temperatures (30–60 °C) and decreasing at high temperatures (60–90°C). This indicates a clear interaction effect of temperature and pH where individual effects are diluted, as explained in the main effect section. The maximum dye removal is observed at two points: (1) low temp and high pH (30 °C, 12 pH) high temp and low pH (90 °C, 2.7 pH). However, the saddle behavior is observed in adsorption capacity as shown in Fig. S-1.2, where maximum adsorption capacity is increased until 60 °C and again reduced until 90 °C; however, adsorption capacity is continuously increased with pH. It is noteworthy that both temperature and pH are depicting their individual effects only, as shown in main effects plot, and the interaction of both parameters does not have any discernible impact on the adsorption capacity. Maximum adsorption capacity is found at 57 °C and 12 pH similar to the main effect values. In Fig. S-2.1, dye removal is pretty much influenced by the temperature and dye concentration interaction. At low temperatures (30 °C), dye removal increases with dye concentration. However, when temperature is also increased with concentration, dye removal is first increased then decreased resulting in the shifting of maxima toward the higher temperature and lower concentration. In the case of adsorption capacity plot (Fig. S-2.2), individual effects of temperature and concentration are retained as adsorption capacity is increased until 57 °C and then decreased for all dye concentration levels. Dye removal is increased exponentially with an increase in dye concentration at all temperatures; hence, maxima would be attained at highest concentration (200 ppm) and 57°C.

In Fig. S-3.1, the dye removal is increased with temperatures at low adsorbent doses from 0.1 to 1.12 g, then starts decreasing until 2.5 g. Therefore, an interaction effect is easily identifiable due to the fact that dye removal should go down with temperature and up with dosage, in accordance with individual effects. In terms of adsorption capacity, shown in Fig. S-3.2, the temperature and dose hold their individual effects when only one parameter is varied, as explained in main effect section. However, when temperature and dose varied simultaneously, their interaction effect is dominated by the adsorbent dose effect and adsorption capacity decreases up to 2 g then starts increasing with an increase in both parameters.

In Fig. S-4.1, low temperature and RPM result 100% dye removal and no significant variation is observed with increasing RPM; however, as temperature rises, dye removal declines due to the individual effect of temperature. This reduction in dye removal is compensated by increasing the RPM simultaneously, resulting in 100% dye removal at higher temperatures and RPM. On the other hand, the temperature and RPM interaction produce a dome-shaped response for adsorption capacity, where the maxima are obtained at the points, i.e., 57 °C and 150 rpm as shown in Fig. S-4.2.

The interaction between pH and dye concentration, as shown in Fig.S-5.1, leads to enhancement in dye removal as well as adsorption capacity with an increase in both parameters by retaining their individual effects. Nevertheless, the adsorption capacity remains relatively unaffected by changes in pH, whereas the adsorption capacity experiences a significant rise with higher concentrations of dye, thus resulting in concave upward behavior as shown in Fig. S-5.2. The interactions between pH and adsorbent dosage, shown in Fig. S-6.1, indicate that the removal of dye is improved as a result of the positive influence of both parameters on the dye removal. The interaction of adsorbent dose and pH, given in Fig. S-6.2, showcased that the adsorbent dose effect is more pronounced than the pH effect, resulting in a concave downward surface plot for adsorption capacity. As shown in Fig. S-7.1, the pH and RPM have a noteworthy interaction impact on dye removal; an increase in RPM causes a considerable decline in dye removal at low pH but no significant difference is seen at higher pH. In contrast, at lower RPM, dye removal is almost constant but increases at higher RPM with increasing pH. In addition, when both RPM and pH are increased simultaneously, dye removal is first declining then starts increasing, giving maxima at two points, i.e., (i) any pH and 75 RPM and (ii) 12 pH and any RPM. In Fig. S-7.2, a saddle-type response is found, maintaining the individual effects of pH and RPM on adsorption capacity as explained in main effect section.

The interaction between dye concentrations and adsorbent dose, given in Fig. S-8.1, shows that at low adsorbent dose upto 1.8 g, dye removal declines with concentration however improved at higher doses. With simultaneous increase in concentration and dose, dye removal first rises, then drops to 105 ppm and continuously rises for higher concentrations. In Fig. S-8.2, it is evident that the individual effects of both parameters on adsorption capacity are followed; however, simultaneous increase in concentration and dose result a decrease in dye removal, reaching a minimum at 43 ppm and 1.6 g before rising again.

The interaction plots between dye concentration and RPM, given in Fig. S-9.1 and S.-9.2, show a typical concave downward trend for dye removal and adsorption capacity, indicating the dominance of the concentration effect on the RPM effect. The dye removal is enhanced due to an increase in dye concentration at all levels of RPM. Similarly, interaction plots of adsorbent dose and RPM show the pronounced effect of dose over that of RPM as shown in Fig. S-10.1 and S-10.2.

3.4 Isotherms, Kinetics, and Thermodynamic Studies

3.4.1 Adsorption Isotherms

Figure 2(a–d) depicts the adsorption isotherm plots obtained from the fitting of linear adsorption isotherms with experimental data at various temperatures, and goodness-of-fit and constants are given in Table 5. For Langmuir adsorption, isotherms of all temperatures fit well as indicated by R2 (0.99> R2>0.916) whereas they show best fitting at 50 °C (R2 ~0.99) as illustrated in Fig. 2(a). Figure 2(e) illustrates the variation of the separation factor (RL) with Co, highlighting the favorable adsorption process since RL is less than 1 for all temperatures. At low initial dye concentrations, however, the adsorption process becomes even more favorable (Khan et al., 2018). Freundlich isotherms also provide the good fitting (0.98> R2 >0.96) in all adsorption temperatures and fits best at 40 °C (R2~0.98). With an increase in temperatures (30–40 °C) and (50–60 °C), the 1/n value decreases, resulting in heterogeneous adsorption of MB onto SCSW (Al-Ghouti & Al-Absi, 2020). As mentioned in section 2.5.1, Langmuir’s adsorption isotherm indicates the monolayer coverage of homogeneous adsorbent surface whereas Freundlich’s adsorption isotherm represents the adsorption onto the heterogeneous surface of adsorbent.

Fig. 2
figure 2

Linear adsorption isotherm models of MB dye adsorption onto SCSW at different temperatures (dose=0.2 g, pH=6.5, RPM=150, time=120 min) a Langmuir, b Freundlich, c Temkin, d Dubinin-Radushkevich, e separation factors with different dye concentrations

Table 5 Parameters of adsorption isotherms and kinetic analysis: linear adsorption isotherms parameters at various temperatures

This indicates that MB dye molecules are positively competing for both monolayer and multilayer coverage at the homogeneous and heterogeneous adsorption sites of SCSW. Temkin isotherm also accounts for adsorbate and adsorbent interaction; at 50 °C, the model shows a better fitting compared to other temperature, i.e., ~0.91 and AT values decrease with increasing temperatures, implying the adsorption process to be exothermic in nature (Aljeboree et al., 2017). Dubinin-Radushkevich (D-R) adsorption isotherms show weak fitting compared to Langmuir, Freundlich, and Temkin isotherm models. Qmax calculated by the D-R model is maximum at 50 °C having the maximum R2~0.767 in comparison to other temperatures. The E values for all the temperatures are less than 8 kJ/mol which indicates that the adsorption process is physisorption, in good accord with the Temkin isotherm (Sahoo & Prelot, 2020). It is to be observed that a good adsorbent characteristic is exhibited by SCSW at 50 °C (Qmax and R2 are maximum) compared to other temperatures and all the isotherm models are well fitted.

3.4.2 Kinetic Analysis

Figure 3(a1) and (a2) shows that the SCSW attains the equilibrium in 40 min for all initial dye concentrations; however, with an increase in initial dye concentrations, the dye uptake (Qt) increases. High dye concentration leads to a higher mass transfer gradient, which in turn leads to an increase in the driving force between MB molecules and SCSW resulting in maximum amount of MB molecules uptake (Basha et al., 2022). In Fig. 3(a2), the UV-vis spectrogram illustrates dye removal at different time with λmax at ~665 nm. During the initial 20 min, there is a significant decrease in λmax intensity from 2.3 to 0.7 a.u. Subsequently, over the next 20 min, a slight reduction in λmax intensity from 0.7 to 0.5 a.u. is visible. Between 40 and 120 min, a minimal variation in the λmax intensities indicates that SCSW reaches equilibrium within 40 min. Figure 3(b1–b4) depicts the fitting of non-linear adsorption kinetic models with experimental data at different Co (40,70,120,150 ppm) and kinetic evaluation is presented in Table 6.

Fig. 3
figure 3

Adsorption kinetics analysis. a1 Kinetics of adsorption (temp=50 °C, pH=6.5, dose=0.2 g, RPM-150). a2 UV-vis spectra of the dye removal at different times (Co=150 ppm, temp=50 °C, pH=6.5, dose=0.2 g, RPM-150). b Non-linear kinetic adsorption models at different initial dye concentration (temp=50 °C, pH=6.5, dose=0.1 g, RPM=150) b1 40 ppm, b2 70 ppm, b3 120 ppm, b4 150 ppm

Table 6 Parameters of adsorption isotherms and kinetic analysis: non-linear kinetic model parameters

It is interestingly demonstrated that the mechanism of MB adsorption onto SCSW involves both physisorption and chemisorption, as evidenced by R2 values for pseudo-first-order and pseudo-second-order kinetic models close to 1 (R2 ~ 0.99). At 40 ppm and 150 ppm, the chi-square values are the lowest, indicating that the calculated values of Qe from the pseudo-first-order model are almost similar to the experimental values of Qe at Co=40 and 150 ppm, respectively. Similarly, at 40 and 70 ppm, the chi-square values are lower, suggesting that the calculated values of Qe from the pseudo-second-order model are almost similar to the experimental values at 40 and 70 ppm. The Elovich model, referred to as the chemisorption model, fits very well at different MB initial dye concentrations (R2 ~ 0.99). However, the chi-square value at 40 ppm is the lowest, indicating an appropriate fit of the Elovich model for 40 ppm. Intraparticle diffusion kinetics are not well-fitted, as implied by the low R2 ~ 0.7 value and very high chi-square values for all concentrations, as given in Table 6. It can be inferred that intraparticle diffusion is not taking place in the MB-SCSW adsorption system.

3.4.3 Thermodynamic Analysis

Thermodynamic factors are calculated to check the favourability of adsorption process and are tabulated in. Thermodynamic factors (∆G °, ∆H°, and ∆S°) are calculated using the Eqs. 7, 8, and 9.

$$\Delta {G}^{{}^{\circ}}=-\textrm{RTln}\ \textrm{K}$$
(7)
$$K=\frac{Q_e}{C_e}$$
(8)
$$\mathit{\ln}K=-\frac{\Delta {H}^{{}^{\circ}}}{RT}+\frac{\Delta {S}^{{}^{\circ}}}{R}$$
(9)

where ∆G° = free energy change, ∆H° = change in enthalpy, ∆S° = change in entropy in Kelvin, and R = 8.314 J/mol.K. The graph is plotted between ln K vs 1/T, given as Fig. 4, slope and intercept are used to calculate ∆H° and ∆S° respectively (Al-Gorair et al., 2022).

Fig. 4
figure 4

Plot of lnK vs 1/T for thermodynamic analysis

It is noticeable that ∆G°, ∆H°, and ∆S° (Table 7) for all the variation in dye concentration and temperature are negative, depicting that MB adsorption process onto the SCSW surface is spontaneous and exothermic with less randomness. A trend could be noticed that there is a decrement in ∆G° with increase in temperature and dye concentration which highlights that the spontaneity is mildly reduced with increase in dye concentration and adsorption temperature. From 40 to 150 ppm, the adsorption process is a physical process as ∆H° is less than 40 kJ/mol and exothermic (Xu et al., 2018). The ∆G° falls into the range of physisorption which lies between the range of −20 to 0 kJ/mol for all the MB dye concentrations and temperatures. It could be concluded that the nature of the adsorption process is physical, exothermic, and spontaneous in nature. The negative values of ∆S° highlight a drop in instability of system at the solid/fluid boundary as temperature rises, i.e., the MB dye molecules display more organized layers on the adsorbent’s surface (Gupta et al., 2011).

Table 7 Thermodynamic parameters at various dye concentration

3.5 Regeneration and Reutilization of MB-Coated SCSW

The dye removal capability in each cycle for both chemically and thermochemically regenerated SCSW is represented in Fig. 5. In cycle 1, chemically and thermochemically regenerated SCSW result in effective dye removal, i.e., 95% and 96%, respectively; however, in cycle 2, dye removal drops significantly. Chemically regenerated SCSW shows a dye removal of 63% (~34% reduction compared to cycle 1), whereas the dye removal is 54% (~43% reduction from cycle 1) in thermochemically regenerated SCSW. In cycle 3, a further drop in dye removal is observed as chemically and thermochemically regenerated SCSW show a dye removal of 43% and 45% respectively. In cycle 4, both chemically and thermochemically regenerated SCSW exhibit dye removal of 38% and 40% respectively. Hence, it can be observed that in cycles 1 and 2, dye removal capability of chemically regenerated SCSW is better; however, dye removal capability of thermochemically regenerated SCSW is stable after cycle 2. In chemical regeneration, dilute acid only leaches the adsorbed MB out without any surface modifications, but in the thermochemical regeneration method, the surface modifications may take place by a slight increment of pores on SCSW, thus slightly enhancing the dye removal capability in the later cycles (Guo et al., 2020).

Fig. 5
figure 5

Regeneration cycles of chemically and thermochemically generated SCSW (Co=20 ppm, temp= 50 °C, RPM=150, pH = 6.5, time = 2 h)

4 Conclusion

  • In the present work, spent carrot seed waste (SCSW) was explored as an adsorbent for the exclusion of organic dyes such as MB from synthetic wastewater.

  • SCSW exhibits excellent characteristics as an adsorbent, results in maximum adsorption capacity and dye removal of 246 mg/g and 98% through hybrid-DoE design.

  • Isotherm results show that SCSW has both homogenous and heterogeneous surfaces where competitive monolayer coverage is taking place which is exothermic in nature.

  • At 50 °C, Langmuir, Freundlich, and Temkin isotherm models are more suited, whereas in terms of kinetic analysis for MB-SCSW adsorption system, pseudo-first-order, pseudo-second-order, and Elovich models are highly applicable.

  • Therefore, utilization of post-extraction carrot seed waste as a sustainable adsorbent can be an attractive, effective, and economic alternative to manage the solid waste and water waste generated by essential oil and textile industries respectively.