Introduction

Nowdays, most researches are conducting to sustaine the climate1. Water contamination is one of the global community's current problems. It's the most widespread problem that needs research to find a solution and to use for various appropriate applications2,3. One widespread worldwide environmental issue that several countries face is the contamination of water from the textile industry4. Most organic dyes utilized throughout the textile and other industries are regarded as water contaminants. These dyes need to be removed before discharge due to their hazardous and carcinogenic features. These dyes can cause problems to aquatic animals. In addition, contaminated water by organic dye can prevent the transmission of light through the water. This directly can slow down photosynthesis. To remove dye from contaminated water, various methods are used. Biological, chemical, and physical techniques are the most common. Ion exchange, flocculation, membrane separation, adsorption using various types of adsorbents, and other ways are commonly used physical methods to remove dye from contaminated water5,6.

Some approaches considered as chemical methods to remove dye are UV radiation, ionization, electrochemical techniques, treatment by hydrogen peroxide, etc. Whereas as in biological approaches, microbial biomass like fungi and bacteria can be utilized as adsorbents through the adsorption process. Even though many treatments have been used, most of each has its limitations concerning environmental remediation, cost-effectiveness, and suitability for removing dyes7,8. The suitable dye-removing techniques should be environmentally friendly, inexpensive, and possible to utilize on a large scale. Because excess chemicals are used in the stages of processing for dye removal, these result in the generation of secondary side products to the environment. In addition, chemical treatment technique is expensive when looked at by others. The biological way of treatment is not commonly used because of its difficult procedure and challenge in applying it to remove dye9.

With a substantial surface area that allows for adsorption, the capacity to remove a variety of compounds quickly, and due to its low cost, the technique called adsorption is the most important and practical of the dye removal methods. Activated carbon has been a commonly used adsorbent in adsorption techniques in different industries for the last few years10. However, due to its expense, energy consumption, and insufficient effectiveness in eliminating pollutants, it is not recommended at the current time. In recent times, environmental bio-sorbents synthesized from biomass are more recommended for the adsorption of dye. This is due to the biocompatibility, economic feasibility, availability, and high efficiency in the removal process11,12.

Currently, hydrogel adsorbent is mostly recommended by indifferent researchers due to its ability to adsorb large quantities of contaminants (dye). This was its structural nature having three three-dimensional matrices containing gel that makes it more suitable to adsorb the adsorbate material in its all three-dimensional side13. Esterification, ionization (ion exchange), free polymerization, and cross-linking are the primary methods used for producing hydrogel. Cross-linking agents are important because they improve the hydrogel's mechanical characteristics and equilibrium swelling extent, which allows the agent's nature to change the adsorbent's properties. The hydrogel molecule's ability to retain water is due to the hydrophilic group that is attached to the matrix of polymers. Cation dye removal from wastewater has historically been difficult and has become a common issue. Nevertheless, hydrogel has proven to be a highly effective material for dye adsorption, exhibiting an exceptionally high level of methylene blue dye adsorption14.

The area of research that is currently needed is coming up with suitable raw materials for hydrogel synthesis and looking into their suitability for dye removal by performing a detailed investigation of kinetics, isotherm, and thermodynamics studies. That's why hydrogel made of biomass cellulose is receiving particular attention because of its biocompatibility, biodegradability, renewability, and availability. In addition, other benefits are low cost, low environmental impact, and adsorption of high quantities of dye. Linear cellulose chains are straight and support the formation of crystalline and morphological structures because cellulose can form intra- and between-molecular hydrogen bonds through its interaction of hydroxyl groups within it15.

Most literatures used cellulosed based hydrogel for waste water treatment including removal of methylene blue dye. However, there is research gap in perspective of optimization of process parameters, full analysis of kinetics, thermodynamics and isotherm of expermental investigation. In addition, most related research conducted by variable pH value. The pH of neutral is highly recommended in most science. By looking these research gap, the current study interested to perform investigation on these behalves. The study performed cellulose extraction, characterization, hydrogel synthesis, hydrogel characterization, and evaluation of hydrogel efficiency in MBD removal at neutral pH. For the adsorption of MBD, 20 experiments were designed using the central composite design method (CCD) of design expert version 11 software. Moreover, kinetic studies, isotherm, and thermodynamics of the adsorption process were performed in this study.

Materials and methods

Chemicals and reagents

In this study, high-quality chemicals were employed in the experiments. The principal chemical substances used in this investigation are high-grade methylene blue dye, citric acid (C6H8O7, Mumbai, India, 99.5% extra pure), polyethylene glycol (England), H2SO4 (99.78% pure), NaOH (98% pure), H2O2 (50% pure), ethanol (97% pure), and phosphoric acid (H3PO4, Mumbai, India). All of the solutions were made with distilled water.

Cellulose extraction from corncob

The sample of corncobs was cleaned three times with distilled water in order to get eliminate of any impurities. It was then grinded into fine powder and dried in an oven at 80 °C for two hours. The dried fine powder of corncob sample was subjected to three stages of extraction, following standard procedures suggested in literature16. In order to extract cellulose from corncob for this investigation, the optimum extraction conditions recommended in the literature16 were used.

Stage I: Alkaline pretreatment

In the first stage, preatreatment of sample with base was carriedout in a 2L volumetric falsk having 10% NaOH solutions of 1:10(w/v) of solid corncob sample to liquid (water) ratio. After that, the mixture was then heated at 90 °C for 1.5 h in a water bath. Preheated distilled water was used to remove the residue, and sample was frequently filtered.

Stage II: Hydrogen peroxide, acetic acid and formic acid treatment

The sample obtained from first satge was proceeded to further treatment with a solution containing 7.5% H2O2, 20% acetic acid, and 20%formic acid. After that, it was placed in a water bath and run for 1.5 h at 90 °C. Then, it proceeded to cool for half an hour at room temperature. A vacuum filter was subsequently utilized to separate the cooking liquor (hemicellulose and lignin) from cellulose. After that, it undergone continuous washings in hot distilled water until the pH reached neutral.

Stage III: Bleaching

The obtained sample from stage II was bleached in basic media containing 4% NaOH and treated with 7.5% H2O2. It was then placed in a water bath and stirred using a magnetic stirrer at 70 °C for 30 min. The pulp was then repeatedly rinsed in hot distilled water to remove any remaining lignin, and it was then dried in an oven at 60 °C until a constant weight was achieved.

Hydrogel synthesis

The process for producing corncob-cellulose-based hydrogel was carried out by following the procedure of previously published literature with minor modifications17. 5 g of cellulose sample was added into the beaker, then 20 mL of concentrated H3PO4 to break down cross-linked and long-chained cellulose structure by means of dissolution of cellulose. For 24 h, the cellulose and H3PO4 mixture was stirred continuously with a magnetic stirrer until the mixture completely dissolved at room temperature. After that, a gram (w/w) of polyethylene glycol was added to each of the cellulose mixtures, and the mixtures were mechanically stirred for 30 min to achieve a homogenous solution. The mixtures were then mixed with 15 mL of a 10% (w/w) citric acid solution, which was stirred for 30 min at room temperature using a magnetic stirrer. The completed solution is then stored at room temperature without a string for a full day to ensure complete homogeneity. At last, the solution was heated up at 50 °C after being poured in a 40 mm sized petri dish. Synthesized hydrogel proceeded for characterization.

Characterization of adsorbents

The bonds and groups available on the surface of adsorbents were determined by using Fourier transform infrared spectroscopy (FTIR, L1600300 Spectrum TWO UTA). Cellulose and hydrogel samples’ spectrum was evaluated in between 4000 and 400 cm−1 of wavelength after being distributed in a KBr matrix at a concentration of 5 mg per sample. Scanning electron microscopy, SEM (Model: FEI INSPECT F50, Japan) was used to examine the morphology and structures of the adsorbents, while the X-ray diffractometer (XRD-7000) was used to analyze the crystallographic and amorphous properties of the adsorbent materials that operated at voltage of acceleration of 30 kV and current of 25 mA, and the UV–Visible spectrophotometer (6100Z, Jenway) was used to examine the dye content before and after adsorption.

Adsorption experiment

The procedure of batch adsorption was used to remove MBD from an artificial liquid solution. The batch tests have been set up by varying the initial MBD content. The laboratory tests conducted in batch mode aimed to evaluate the impact of varying amounts of adsorbent (2–8 g/L), time of contact (30–150 min), and the initial concentration of dye (50–200 mg/L) on the hydrogel removal efficiency. Every adsorption test was run at 30 ± 1 °C and neutral pH (pH = 7). The operations were carried out in a shaker running at 200 rpm and 30 ± 1 °C. Ultimately, water and adsorbent leftovers were separated from mixtures by filtering them through watchman filter paper. The MBD quantities were measured using a spectrophotometer at a maximum wavelength of 665 nm. As indicated in Table 1, three factors with three levels were designed using CCD of design expert version 11 software.

Table 1 Factors and labels for experiment design.

The numbers of required experiments for three key factors were computed using Eq. (1)

$$N = 2^{n} + 2n + n_{c\,}$$
(1)

where N is the total number of conducted experiments, n is the number of key parameters (selected factors), and nc is the number of points at the center (6 replications). A total of 20 tests were conducted. The response parameter (MBD removal efficiency) was correlated by design expert software using three selected factors as shown in Eq. (2)

$${\text{Removal efficiency}} = {\text{b}}_{{\text{o}}} + \mathop \sum \limits_{{{\text{i = }}1}}^{3} {\text{b}}_{{\text{i}}} {\text{X}}_{{\text{i}}} + \mathop \sum \limits_{{{\text{i = }}1}}^{3} {\text{b}}_{{{\text{ii}}}} {\text{X}}_{{\text{i}}}^{2} + \mathop \sum \limits_{{\text{i}}}^{{}} \mathop \sum \limits_{ < j = 2}^{3} {\text{b}}_{{{\text{ij}}}} {\text{X}}_{{\text{i}}} {\text{X}}_{{\text{j}}} \, + e_{i} \,$$
(2)

where; Xi and Xj refer to variables (i and j range from 1 to k), bo stands for intercept at center; bj, bjj, and bij are coefficients of interaction of variables; and ei is the error. Removal efficiency of hydrogel was determined according to Eq. (3).

$${\text{Re}} moval\,efficiency\,\,(\% ) = \frac{{C_{o} - C_{e} }}{{C_{o} }}*100$$
(3)

where; Co and Ce are the final and initial concentrations of MBD (mg/L).

Adsorption capacity of adsorbent qe (mg/g) was computed using Eq. (4)

$$Adorbent\,adsorption\,capacity\,(mg/g) = \frac{{C_{o} - C_{t} }}{M}*V$$
(4)

where; qe, Co, Ct, M, and V were capacity of adsorption, initial mass concentration of MBD, equilibrium mass concentration of MBD, mass of adsorbent used at optimum condition, and volume of aqueous solution respectively.

Adsorption isotherm

The isotherms for adsorption were examined in this investigation under optimal conditions. In order to identify which isotherm model (Freundlich and or Langmuir) would best explain and forecast the adsorption of dye onto hydrogel, its relevance was tested. The Langmuir isotherm model can be expressed using linear and non linear equations represent by Eq. (5) and Eq. (6) respectively, proposes that adsorption takes place on homogeneous surfaces.

$$\frac{{C_{e} }}{{q_{e} }} = \frac{1}{{q_{\max } *K_{L} }} + \frac{1}{{q_{\max } }}*C_{e} \,\,(Linear\,equation)\,$$
(5)
$$q_{e} = \frac{{q_{m} k_{L} C_{e} }}{{1 + k_{L} C_{e} }}\,\,\,\,\,({\text{non - linear}}\,{\text{equation}})$$
(6)

where Ce/qe is the main response, 1/(qmax * b) is the intercept and 1/qmax is slope. The qe (mg/g) is the equilibrium adsorption capacity, qmax (mg/g) is the maximum adsorption capacity, Ce (mg/L) is the equilibrium concentration of dye, and b (1/mg) is the Langmuir adsorption constant. The important isolation factor (RL) was determined using Eq. (7)

$$R_{L} = \,\frac{1}{{\left( {1 + K_{a} C_{o} } \right)}}$$
(7)

When RL = 0, the process is irreversible; RL = 1, it is linear; RL > 1 unfavorable; and 0 < RL < 1 (favorable).

The non-ideal adsorption behavior can be described by the Freundlich isotherm model. This isotherm model explains the adsorption process in heterogeneous surfaces. The Eq. (8) and Eq. (9) is used to correlate the isotherm model.

$$\ln q_{e} = \ln K_{F} + \frac{1}{n}\ln Ce\,\,\,(linear\,equation)$$
(8)
$$q_{e} = K_{F} *(Ce)\,^{\frac{1}{n}} \,\,\,\,\,\,(non\,linear\,equation)$$
(9)

where qe capacity of adsorbent (mg/g), KF, and n are the isotherm constants of the Frendlich model. 1/n used to verify the adsorption process favorability.

Adsorption kinetics

Studying the kinetics of the adsorption process is very important to determine the suitable order of reaction. The pseudo-second and pseudo-first-order models were evaluated to select the best-describing model. The pseudo-first-order kinetic model was determined and correlated using Eq. (10) and the pseudo-second-order kinetic model was evaluated using Eq. (11).

$$\frac{{d_{qt} }}{dt} = K_{1} (q_{e} - q_{t} )$$
(10)
$$\frac{t}{qt} = \frac{1}{{K_{2} q_{e}^{2} }} + \frac{1}{{q_{e} }}\,\,(t)$$
(11)

where k1 (min−1) and K2 (g/mg min) are rate constants of pseudo first and second-order adsorption, qt (mg/g) is the quantity of MBD adsorbed at time (min), qe (mg/g) is adsorption capacity at equilibrium, t (min) is the contact time.

Adsorption thermodynamics

Studying the thermodynamics for adsorption is very important to find out the type of process and the type of reaction carried out in the process. In this investigation changes of Gibbs free energy (ΔG°), enthalpy change (∆H), and entropy change (∆S) were evaluated. The amount of energy stored in bonds can be expressed by enthalpy and the change of system in the adsorption process can be expressed by entropy or entropy change. The ΔG° is used to decide the spontaneity of the adsorption process. These parameters were correlated using Eqs. (12, 13, 14):

$$\vartriangle G^{ \circ } = RT\ln K_{c} \,$$
(12)
$$\ln K_{c} = \frac{{\vartriangle S^{ \circ } }}{R}\, - \frac{{\vartriangle H^{ \circ } }}{RT}$$
(13)
$$\Delta G^{ \circ } = \,\Delta H - T\Delta S$$
(14)

where Kc (L/g) is the distribution coefficient, R (8.314 J/mol K), and T is temperature (°K).

Results and discussion

Adsorbents characterization

FTIR characterization result

Figure 1 represents the bonds involved in functional groups and attached components of the corncob cellulose, hydrogel before use and hydrogel adsorbent after fourth cycle use with their corresponding FTIR spectra. The hydroPeaks at 3423, 2900, 1630, 1010, and 623 cm−1 were frequently observed. Some of these peaks, though, have varying intensities. In all samples, the peak at 3423 cm−1 is linked to O–H stretching vibration. In hydrogel sample before use has a higher intensity than in cellulose and hydrogel adsorbent after use.

Figure 1
figure 1

FTIR spectrum bands of corncob cellulose and corncob cellulose-based hydrogel after and before adsorption.

When compared to the intensity of the cellulose sample, it suggests that hydrogel adsorbent before use has a more hydrophilic nature18. The hydrophilic character of hydrogel prevents the formation of hydrogen bonds in its intermolecular chain for water sorption19. The stretching movement of C–H is represented by the peak at 2900 cm−1 in all three samples22. The hydrogel's (before use) peak at 1630 cm−1, which has a higher intensity, shows that the esterification reaction effectively introduced the carbonyl group (C=O) into the hydrogel. The C–C and C–O cellulose skeleton motion in the hydrogels, which band at 1010 cm−1 rose in comparison to corncob cellulose and hydrogel adsorbent after use23. This suggests the existence of the ester bonds (C–O) in hydrogel adsorbent before use proving the well interconnected gels. However the low intensity of hydrogel adsorbent after use indicates that distruction of C–C and C–O ester bonds in adsorption media due to applying mechanical energy (strring of the sample) in each cycle and through continuous washing. A comparable maximal in cellulose has been associated with the aliphatic C-H bonds of cellulose, hemicellulose, and lignin24. The decline in cellulose intensity in the 623 cm−1 region can be linked treatment of cellulose with base. Specifically, the point suggests that the hydrogels before use have undergone a crystal change from cellulose I to cellulose II. Overall, hydrogel exhibited the different spectrums that indicate the interconnected networks in its matrix25. The highly decline in hydrogel adsorbent after use intensity in the 623 cm−1 indicates that loss of crystalline nature through continuous treatment after each cycle upto four run.

XRD analysis

The XRD results of the hydrogel synthesized from corncob cellulose before and after use, and corncob cellulose were shown in a single plot in Fig. 2. The diffraction was performed with a scanning rate of 0.03 s−1. There was clear change was observed in the diffraction pattern of all three samples. As illustrated in Fig. 1, cellulose exhibited crystalline peaks at 2θ of 44.00°, 64.34°, and 77.40°. These peaks represent that cellulose is highly crystalline when compared with hydrogel18. This was evidenced by the crystalline index of cellulose is 18.03%. There is not any crystalline sharp peak observed in the hydrogel. The reduction of crystalline peaks in hydrogel indicates that hydrogel is less crystalline. As was already indicated, the –OH group in the material was eliminated by the cross-linkage connection, resulting in an overall reduction in the bonding of hydrogen and ensuing decline in crystalline structure23. In generally this enhances the swelling capacity of hydrogel and the hydrogen can be a suitable adsorbent for MBD removal. Hydrogel after use has shown variation in its structural pattern from hydrogel adsorbent before use. The broad band peak around 2θ of 22.00 in hydrogel sample before use shifted to 2θ of 35.00 and its intensity also decreased. This indicates that after fourth cycle, the amorphose nature reduced via continuous treatment by washed with a solution of NaOH during regeneration of adsorbent.

Figure 2
figure 2

XRD diffraction pattern of corncob cellulose and corncob cellulose-based hydrogel after and before adsorption.

SEM analysis

The morphology of corncob cellulose and hydrogel were represented in Fig. 3a,b respectively. The SEM image in Fig. 3a shows the different graded cellulose structures that are connected together. As illustrated from the images, the surface morphology of cellulose was smoother than that of hydrogel. This indicates that hydrogel is better for the adsorption process. In addition, there are very less porous holes in cellulose structure, while hydrogel is highly porous as compared to cellulose. This enables the hydrogel to have enough porous media to adsorb the MBD. Furthermore, the surface morphology of hydrogel exhibited the transparent feature, this confirms the synthesized hydrogel is pure product. The morphology of hydrogel synthesized in this study conformed to the surface morphology of hydrogel synthesized from cellulose chitosan-graft and nanofibrils26. When compared to cellulose morphology, is cross-linked structure has been observed in the hydrogel. This coma from the esterification reaction during synthesis of hydrogel.

Figure 3
figure 3

SEM image of corncob cellulose (a), and corncob cellulose-based hydrogel (b).

Adsorption mechanism using cellulose based hydrogel

The adsorption mechanisim of current investigation is by both chemical and physical means. The used MBD is cataionic and hydrogel synthesized via esterification in this study is anaionic adsorbent. Scince, OH- groups attached on the surface of the adsorbent, hydrogel is anionic which need cataions to be stable. The negatively charged hydrogel surface provided electrostatic attraction with positively charged MBD. This favours the highest adsorption capacity of hydrogel. In addition, some portion of MBD could be adsorbed in the porous media of adsorbent particles. In this case there is also physical adsorption. The desorption of adsorbent easily carriedout using 0.1 M solution of NaOH.

Experimental results and statistical analysis

Table 2 involved the experimental results at designed points and predicted response. The statistical validity of the quadratic model was evaluated using the ANOVA. The model terms' reliability and significance have been determined using the F-value, p-value, and lack of fit27. The relevance of the model terms was usually demonstrated by a variable's greater F-value and smaller P-value28. The quadratic model was significant, as indicated by the obtained F-value of 263.54 (p < 0.0001). ANOVA theory states that every coefficient term whose p-value is below 0.0100 denotes the statistically significant nature of the model terms29. The model with quadratic terms (A2, B2, and C2), the model with linear terms (A, B, and C), and the model with term interactions (AB, AC, and BC) were all significant according to this theory. The statistical insignificance in relation to pure error was indicated by the p-value and F-value of lack of fit, which were obtained from the ANOVA and were 0.0561 and 4.75 respectively. The model's suitability is thus indicated by a non-significant feature of lack of fit30.

Table 2 Designed experiments and corresponding response values.

High values for the coefficient of correlation terms, coefficient of variation, and adequate signal verified the recommended model's significance and suitability. With R2 value of 0.995 and an adjusted R2 value of 0.992 (Table 3), the experimental results' maximum variation was explained by the quadratic theory. This further indicates that the actual results from the test that was performed were more in line with the predicted results. An adequate signal is also indicated by a signal-to-noise ratio (adequate precision) of 57.990. Furthermore, the ANOVA analysis shows that the tests were conducted with better precession and validity, as evidenced by the much lower coefficient of variation value (C.V. = 1.460%) as shown in Table 3. A model can be believed quite reproducible due to its C.V. value.

Table 3 Summary of the adequacy of a model.

Development of a model equation

The relationship between factors and the outcome variable was well-explained by the polynomial equation for the proposed model term. The establishment of a model is essential to forecasting response change, or the shift in the hydrogel's removal efficiency, within a specific operating variables range. The coded factors intercept lies at the precise center of the space of design. It is crucial to determine response value using an equation built based on the coded factor. Equation (15) represents the regression model's finalized equation in terms of coded variables.

$$\begin{gathered} {\text{Re}} movalefficiency(\% ) = 92.06 + 10.23*A + 5.54*B - 9.10*C \hfill \\ - 1.56*A*B - 1.70*A*C + 1.50*B*C - 10.48{*}A^{2} - 2.17{\text{*B}}^{2} - {5}.26{*}C^{2} \hfill \\ \end{gathered}$$
(15)

where A—adsorbent dose; B—contact time; C—initial adsorbate concentration.

Figure 4a illustrates how the experimental values verse predicted the MBD removal efficiencies. All the values are a lined on linear straight line. The linear line drowning at 45 degrees suggests a closer relationship between the predicted and actual removal efficiencies. The high value of R2 = 0.995, which was closer to unity, provided additional support for it. This suggests that the experimental data agreed reasonably well with the model, indicating that the data fit the model well29. The plot of residuals against run number in Fig. 4b validates the significance of the specified model. It also shows a random dispersion of residuals in relation to the predicted values.

Figure 4
figure 4

The actual versus predicted removal efficiency (a), the plot of residuals versus run number (b).

Interaction effect of process variable in removal efficiency of hydrogel

Corncob cellulose-based hydrogel removal efficiency was significantly impacted by the association of all three factors under investigation. The 3D surface plot in Fig. 5a illustrates the relationship that exists between the effects of adsorbent dosage to contact time. The percentage of MBD removed is low at low adsorbent doses and contact times. As an illustration, the removal efficiency was 66.72% when the contact time was 40 min and the dosage was 1 g/L with an initial concentration of 50 mg/L. This occurred because there is insufficient adsorbent used to adsorb MBD, and there is insufficient operating time for the adsorbent to make maximum contact with the adsorbate on its surface. 82.37% removal efficiency was obtained at a medium dosage (2 g/L), a low contact time (40 min), and a medium initial concentration (100 mg/L). Similarly, 70.32% removal efficiency was obtained at medium initial concentration, medium contact time (70 min), and low dosage (1 g/L). The removal efficiency was somewhat raised by increasing at least one variable (either dosage or contact time). The removal efficiency of hydrogel increased with increasing adsorbent dosage and contact time31. This results from an increase in the adsorption active site with adsorbent dosage increments as well as an increase in the electrostatic force between the adsorbent active site and the adsorbate with time. However, the third factor—the initial concentration—had a negative impact on MBD removal.

Figure 5
figure 5

3D plots of the interaction effect of investigated variables on removal of MBD.

The interaction effect between MBD dosage and initial concentration is depicted in Fig. 5b. The removal efficiency of hydrogel increased with an increase in adsorbent dosage and a decrease in MBD initial concentration. The interaction between these two factors is statistically significant, as indicated by a lower P value (p < 0.0027). This suggests that the adsorbate is mostly adsorbed on the surface of the adsorbent. When there is little MBD in the aqueous solution, the highest dosage is more reasonable. Figure 5c displays a more comparable pattern of the relationship between contact time and MBD's initial concentration. However, in comparison to the other discussed interactions, their significance of theirs was low (P = 0.0057). Maximum contact time at low MBD concentration led to higher hydrogel removal efficiency32.

Numerical optimization and model validation

Table 4 includes every considered variable including response within the ideal range. Increasing the hydrogel's efficacy for removal in the specified range of process parameters was the ultimate objective of this investigation. The composite desirability as well as the mean of three replicate tests carried out at the specified optimal state was subsequently utilized to assess the obtained best circumstances. The software generated an overall desirability of 1.0 at the suggested optimal conditions. It shows that the desired level of response has been achieved effectively in terms of the degree of fulfillment of the best possible circumstances. The suggested removal efficiency was 98.55%, whereas the mean value of the MBD removal of triplicates was 98.25%. The experimental and software results at optimal conditions proved an extremely low deviation (0.3%), indicating that the model matched the experimental findings.

Table 4 Optimum conditions and model validation.

Adsorption isotherm

The adsorption capabilities of the experimental results were examined using the Freundlich and Langmuir adsorption isotherms as shown in Table 5. At 30 °C and neutral pH, the initial concentration of 74.54 mg/L, the dosage of 2.22 g/L, and the contact time of 80.36 min, the maximum removal of MBD was achieved. During the isotherm study, the initial MBD concentration was varied whereas all the parameters were kept constant. Isotherm tests at six different initial MBD concentrations were conducted. The linear and non-linear isotherm model are very important to deep analysis of isotherm model33. The linear and non linear isotherm equations were used in this study.

Table 5 Results of adsorption isotherms of MBD removal experiment.

The relationship between the amount adsorbed at a constant temperature (3 °C) and neutral pH, the MBD aqueous state activity is shown by the Langmuir adsorption isotherm in Fig. 6. Furthermore, the Freundlich adsorption isotherm is shown in Fig. 7. The combined non-linear isotherm plots were shown in Fig. 8. The R2 values of linear and non-linear Langmuir isotherm model were 0.994 and 0.970 repectively. In addition, R2 values of linear and non linear Freundlich isotherm model were 0.969 and 0.964 respectively. There was greater variation in R2 in Langmuir isotherm, but still its coefficient of variation is higher than that of Freundlich. The best-fitting isotherm model is indicated by an isotherm model that has a lower error and a higher R234,35. Therefore Langmuir isotherm is suggested to represent present experiment. Additionally, the 0.031 dimensionless separation factors (RL) value falls between 0 and 1, suggesting that the adsorption process in the current experiments is favorable. All in all, the Langmuir adsorption isotherm can be used to describe the adsorption process in the present investigation. The present experiment's highest capacity for adsorption (qm = 55.31 mg/g) shows that the developed hydrogel adsorbent has a good ability for MBD adsorption.

Figure 6
figure 6

Graphical representation of Langmuir adsorption isotherm.

Figure 7
figure 7

Graphical representation of Freundlich adsorption isotherm.

Figure 8
figure 8

Graphical representation of non-linear Langmuir and Freundlich adsorption isotherm.

Adsorption kinetics

Kinetics of adsorption were widely used to provide the best circumstances for batch processes run at full scale, as well as to explain the sorption mechanism and potential governing step36,37. In addition to providing complete information for developing and testing the adsorption process, the kinetic parameters studied via pseudo both first and second-order analyses serve as useful to estimate the rate of adsorption43. The maximum R2 indicated that the kinetic model was conformed and acceptable. Important results generated from the kinetics model are involved in Table 6.

Table 6 Kinetic models and model parameters’ values.

Figure 9 shows the time, t, versus ln(qe-qt) plot for first-order kinetics. Figure 10 displays the second-order kinetic system of time, t, versus t/qe plot. The rate constants were determined for both kinetic models. The computed values of the correlation (R2), rate constants, and adsorption capacity for both models are listed in Table 6. R2 values for first- and second-order kinetic models are 0.949 and 0.999, respectively. The adsorption process fits the second-order kinetic model, according to the maximum R2 value for the second-order model39. This means that the second-order kinetic model can be used to describe the removal of MBD through adsorption using cellulose-based hydrogel.

Figure 9
figure 9

Pseudo first-order adsorption kinetics for adsorption of MBD using hydrogel.

Figure 10
figure 10

Pseudo Second order adsorption kinetics for adsorption of MBD using hydrogel.

Adsorption thermodynamics studies

One of the primary goals of thermodynamics is to provide metrics to determine whether a specific process will occur spontaneously or not40. The thermodynamic characteristics of MBD removal employing a corncob cellulose-based hydrogel were studied. The important thermodynamic parameters: changes of enthalpy (ΔH°), changes of entropy (ΔS°), and changes of Gibbs free energy (ΔG°) were calculated. The obtained values are available in Table 7. Figure 11 presents the plot of lnKC verses 1/T. The intercept and slope were used to compute the ∆S° and ∆H° respectively. A higher R2 value (0.981) supported the calculated thermodynamic parameter values, indicating the linear line through the data points was fitted to the experimental data as illustrated in Fig. 11. Every ∆G° value was negative and decreased as the temperature rose, suggesting that MBD was adsorbed using hydrogel takes place spontaneously and that the reaction was feasible thermodynamically41. In other words, compared to products, reactants have greater free energy. The endothermic nature of the MBD adsorption process was verified by the positive ∆H° value of 35.11 kJ/mol. The ∆S° value was also positive (0.14 J/Kmol), which explains solid/solution interface is more disordered within the system during MBD adsorption by hydrogel42. Additional energy is not required for more disordered processes to perform adsorption43.

Table 7 Thermodynamic parameters for the adsorption of MBD at various temperatures.
Figure 11
figure 11

The plot of lnKC verses 1/T on adsorption of MBD process using hydrogel.

Regeneration of corncob cellulose-based hydrogel

The most practical way to minimize process costs, recover resources, and minimize the need for producing new adsorbent is to regenerate and reuse adsorbent46,47,48,49,50,51. The hydrogel regeneration process was run through four iterations at optimal process conditions (74.54 mg/L of initial concentration, 2.22 g/L of the dosage, and 80.36 min of contact time at 30 °C). For three hours during each cycle, the adsorbent (10 g of hydrogel) was shaken with 100 mL of MBD solution (100 mg/L). After the adsorption process, the MBD was cleaned with distilled water until it was neutralized for reuse, and then it was washed with a solution of NaOH (0.1 mol/L, 100 mL) for 2.0 h according to the literature47. The adsorption efficiency of the hydrogel was investigated for each cycle using a methodology that was similar. The hydrogel's removal efficiency exhibited a tendency to decline over each of the four recycling cycles. Until the third cycle, there was less than a 10% deviation from optimum efficiency. The efficiency decreased from 98.25% to 80.05% at the fourth cycle, with a the18.52% deviation (Fig. 12). This is because MBD ions occupied the active site and porous media of the adsorbent. These findings support the adsorbent's potential for reuse up to the third cycle.

Figure 12
figure 12

Removal % of MBD by regenerated corncob cellulose based hydrogel.

Comparative study of hydrogel adsorption capacity for methylene blue dye uptake with other adsorbents used in literature

This hydrogel's adsorption capacity was compared to several other literatures. With a maximum uptake of 55.31 mg/g of MBD from contaminated water, the hydrogel adsorbent employed in this investigation has demonstrated the highest capacity. The hydrogel adsorbent effectively reduces MBD from the contaminated water, as shown in Table 8.

Table 8 Adsorption capacity comparison of current adsorbet with other adsorbents reported in related literatures.

Treatment of the real textile wastewater

To analyze the efficiency of adsorbent on waste water treatment process, the adsorbent has been used in real textile wate water. Before cariyingout adsorption, first textile industry waste water properties (Mg2+, Cu2+, SO42, NO3, PO4, and Cl) were determined by Uv–vis spectrophotometer. pH of waste water sample was adjusted into neutral. In addition, after treatment, these properties were again determined. The color of real waste water sample was determined using tintometer color units (TCU). The adsorption using cellulose based hydrogel adsorbent was conducted at optimized condition (using 2.22 g/L of dose, 200 rpm at 30 °C for 80.36 min). The maximum removal of MBD in synthetic waste water is 98.25%, whereas in real textile waste water is 64.76%. The reduction in removal efficiency is due to interfering ions in the real waste water as shown in Table 9.

Table 9 Physichemical properties of real textile waste water before and after treatment.

Conclusion

Water pollution from the textile industry is one major global environmental problem that many nations face. The organic dyes used in the textile and other industries slow down photosynthesis and causes risks and carcinogenic diseases. The alternative and suitable adsorbent for removing dye is hydrogel made from biomass. SEM, FTIR, and XRD equipment were used in this investigation to characterize the hydrogel adsorbent that was synthesized from corncob cellulose. The dosage, contact time, and initial concentration of the process variables were designed using CCD. A total of 20 experiments were conducted. The highest removal efficiency was attained at a dosage of 2.22 g/L, a contact time of 80.36 min, and an initial concentration of 74.54 mg/L. 98.25% of MBD removal was attained under these conditions through experimental testing on synthetic waste water, whereas in real textile industry waste water is reduced into 64.76%. This is due to computing of involved pollutants in real waste water. There were studies done in thermodynamics, kinetics, and isotherms. The adsorption process is better described by the Langmuir isotherm and the pseudo-second-order kinetic model. The conducted experimental process is endothermic and spontaneous, as indicated by all negative values of (ΔG°), positive values of (ΔH°), and (ΔS°), according to thermodynamic studies. Additionally, the experiment for adsorbent regeneration was carried out. Hence, the synthesized hydrogel adsorbent can be used up to the third cycle. All in all, corncob cellulose-based hydrogel is a suitable adsorbent for the removal of MBD.

Recommendation

For reproduction of the present experiment and investigation of all important adsorption process variables, it has been recommended for future research that will perform on these behalves (Supplementary Information S1).