Equilibrium modeling of the adsorptive eradication of Safranin-O dye from aqueous solutions using the oxalic acid-treated peanut husk as an upcycled agro-waste Authors: Ammarah Mushtaq, Rabia Rehman, Muhammad Shahid Sami, Amara Dar, Zainab Wahid, Aiman Khurshid, Zahrah T. Al-thagafi, Eman A. Al-Abbad, Sang-Eun Oh Published: 2026 ABSTRACT In this study, oxalic acid-treated peanut husk (ATPH) was prepared and evaluated as a low-cost biosorbent for the removal of Safranin-O dye from aqueous solutions. Batch adsorption experiments were performed to investigate the effects of pH, adsorbent dosage, contact time, temperature, and agitation speed. The maximum dye removal of 31.25 mg g−1 was achieved under optimized conditions (pH 4, adsorbent dose 0.8 g, contact time 70 min, agitation speed 175–200 rpm, and temperature 313 K). Kinetic studies revealed that the adsorption process followed the pseudo-second-order model. The process is spontaneous (negative ΔG°) and endothermic (positive ΔH° = +1.822 kJ mol−1) and is governed by a weak, reversible electrostatic physisorption mechanism rather than chemisorption. Non-linear regression indicated that the Langmuir model fitted the best (R2 = 0.9932, χ2 = 1.24, and MAPE = 4.8%). Film diffusion was identified as the rate-limiting step using Weber–Morris and Boyd analyses. Among the desorbing agents, HCl was the most effective, achieving 80% desorption in the first cycle. ATPH exhibited excellent stability with only 2.3–5.7% solid mass loss per cycle and retained 92–98% of its original adsorption capacity after three HCl regeneration cycles. Oxalic acid treatment significantly enhances the adsorption performance of peanut husks, providing a promising, low-cost, and sustainable strategy for the removal of cationic pollutants from wastewater. Introduction The only planet known to modern science on which life exists is the Earth (Impey, 2022).1 The existence, development, and growth of all living things are possible because of the environment of the Earth.2 Thus, environment conservation is crucial for maintaining life on the Earth, but in recent years, the increase in worldwide pollution has become a critical matter.3 Pollution, in simple terms, is explained as the existence or introduction of a substance into the environment that has a poisonous or pernicious effect.4 Pollutants are the key components of pollution and are generally the different forms of waste matter.5 Environmental pollution can occur in different forms, including soil pollution, air pollution, noise pollution, and water pollution. Water is a vital resource for the preservation of humanity.6 Over the past two centuries, contaminants of emerging concern, such as pharmaceuticals, personal care products, cosmetics, pesticides, and surfactants in the hydrosphere worldwide, have become an utmost concern for our societies as some of these chemicals interfere with the body's endocrine system and some are proven to be oncogenes and toxins.7 All living things, including plants and animals, in both aquatic and terrestrial environments need water for survival. There are many other uses of water apart from drinking it for survival. Water covers approximately 70% of the surface of the Earth, and only 3% of it is freshwater. As stated by the WHO and UNICEF, more than 1.1 billion people have limited access to clean water, and around 2.6 billion people around the globe do not have access to proper sanitation.8 The major sources of polluted water include industrial effluents, horticulture wastes, and natural effluents, and water scarcity and lack of sewage treatment plants are aggravating freshwater unavailability.9 Various harmful chemicals and inorganic and organic substances may be liberated during industrial processes.10 If these wastes are discharged into hydrological systems without proper treatment, they will result in water pollution.11 These chemicals, which are released by industries, harm humans, animals, and plants in a direct or indirect manner. When these toxic chemicals from industries exceed threshold concentrations, they may cause ecocide and make water poisonous and harmful to drink.12 Various diseases are caused by different chemicals from industries; for example, arsenic present in water causes infections and conditions like skin cancer, hyperpigmentation, and keratosis.13 The textile industry is a key contributor to environmental degradation, with a range of pollutants such as dust particles, nitrogen and sulfur oxides, and volatile organic compounds discharged during fabric dyeing processes.14 The significant investment by the textile industry, in the production and application of synthetic dyes demands substantial alterations in manufacturing techniques.15–17 Based on their chemical composition, dyes are classified into azo, diazo, nitro, anthraquinone, indigoid, diphenyl methane, phthalein, xanthene, and metal-complex dyes.18 The presence of minute quantities of dyes in wastewater (<1 mg L−1) is undesirable and inconvenient. Safranin-O (Basic Red-2) is widely used in biological staining, textile printing, paper manufacturing, cosmetics and pharmaceuticals (Fig. 1).19 Safranin-O causes problems during its biodegradation due to its stable, complex and carcinogenic nature.20,21 This dye can destroy nucleic acids.22 It is toxic to human health owing to its negative effects on the skin and digestive and respiratory systems.23 Additionally, it may cause adverse health effects such as eye irritation, dermatitis, and respiratory allergies.24 Molecular structure of Safranin-O. This is why its removal from aquatic ecosystems in a safe way is crucial. Wastewater treatment techniques such as membrane filtration, coagulation, precipitation, enzymatic degradation, and adsorption have been employed for the removal of toxic dyes.25 However, these treatment methods are quite costly and may generate considerable quantities of hazardous waste.26 Agricultural wastes have the advantages of being available, economical, and eco-friendly in addition to being biodegradable, cheap, and non-toxic.27 The adsorption technique can be used for the elimination of dyes from aqueous environments.28 Many natural and cost-effective adsorbents, like rice straw,29 natural fibers,30 date stones,31 peanut husks,32 and cotton stalks,33 are now being used successfully for the removal of different hazardous substances from aqueous solutions. Different agricultural waste resources have been utilized to remove Safranin-O, including Aegle marmelos,34 Aspalathus linearis,35 and peanut husk-based materials.36 Biosorbents are versatile and cost-effective materials for recovering ions from wastewater or for removing toxic pollutants.37 The main benefits of these materials over traditional adsorbents are improved efficacy, regeneration ability and reduced sludge production.38 Peanut (Arachis hypogaea) husk is a cheap and readily available agro-waste that has found its way into the refuse sites of peanut-producing nations. It has great promise as an adsorbent due to its great availability and processability in the treatment of wastewater.39 It has been previously reported for the removal of various dyes, such as Mordant Orange 1 and green malachite oxalate,40 methylene blue (MB) and rhodamine B (RhB),41 and Sunfix Red dye.42 The present study differs from previous studies on peanut husks and their chemically modified forms in several key aspects. Previous studies on unmodified peanut husks demonstrated moderate adsorption capacities for various contaminants (e.g., 270 mg g−1 for methylene blue (Aryee et al., 2024)43 and 79.36 mg g−1 for acridine orange) but lacked oxalic acid-induced carboxylation, FTIR mechanistic analysis, or regeneration data. Our group previously investigated acridine orange removal using untreated peanut husks, achieving an adsorption capacity of 79.36 mg g−1 (Rehman et al., 2025),44 which is comparable to that achieved by other low-cost biosorbents but significantly lower than the adsorption capacity of 31.25 mg g−1 achieved in this study after oxalic acid treatment. The novelty of this work is the combined evaluation of oxalic acid-treated surface modification (successful carboxylation confirmed by FTIR and lowered pHPZC from 6.8 to 5.562), Safranin-O adsorption behavior, proposed binding mechanisms (electrostatic attraction, H–H bonding, and π–π interactions), comprehensive kinetic/equilibrium/thermodynamic modelling, regeneration performance, and economic feasibility assessment using peanut husk as the precursor. This work targeted to prepare the oxalic acid-treated peanut husk (ATPH) and evaluate its ability to remove Safranin-O from water.45 The physio-chemical properties of the material were evaluated using FTIR spectroscopy, SEM, and point of zero-charge analysis.45 The roles of adsorbent dosage, temperature, contact time, pH, agitation speed, and initial dye concentration were investigated, and the adsorption process was evaluated. Regeneration experiments were also conducted to assess adsorbent reusability. Experimental section Chemicals All chemicals used in this study were of reagent grade or higher and were used without further purification. Stock solution of the dye Safranin-O (1000 mg L−1) stock solution was prepared by dissolving 1 g of dye in 1 liter of deionized water. Working standard solutions (5–25 mg L−1) were prepared by diluting the stock solution with deionized water.46 Preparation of the adsorbent Substantial amounts of peanut husk is produced worldwide, with China and Pakistan being the leading producers. However, peanut husks are frequently used as fuel or cremated in agricultural fields, generating environmental and economic difficulties. Alternative applications for peanuts and other agricultural biomasses may be useful.47 Peanut husks were washed repeatedly with distilled water to remove adhering dust and impurities, followed by oven drying at 75 °C for 24 h. The dried material was then ground, sieved to obtain a particle size fraction of 60–80 mesh, and stored in a sealed plastic container until further use.48 Selection of acid for the pretreatment of the biomaterial Various types of acids were used for pretreatment, as shown in Fig. 2. Flowchart of the acid pretreatment of Arachis hypogaea biomass. Peanut husk powder was chemically treated with the aqueous solutions of different acids, like citric acid, oxalic acid, and tartaric acid, by adding 20 g of peanut husk powder to 200 mL of acid solutions separately and stirring for 2 h at 60 °C. The suspension was allowed to cool and was subsequently decanted. The resulting materials were dried at 80 °C for 24 h, followed by further heating at 110 °C for 3 h. The acid-modified peanut husks were then washed repeatedly with water to remove residual acid. Finally, the materials were oven-dried at 80 °C for 24 h and stored in a plastic container until further use. The husks were tested for the removal of Safranin-O dye, and the oxalic acid-treated peanut husk provided the best results. Accordingly, further studies were carried out with this material. The oxalic acid-treated peanut husk powder sample was designated as APTH. This chemical alteration facilitates the stabilization of the biomass, making the formation of an ester possible. Although oxalic acid can be categorized as a carboxylic acid, it is a strong acid and a good reducing agent.49–51 The oxalate ion (C2O42−) acts as a strong metal ion-binding compound, functioning not only as a ligand but also as a chelating agent. The alteration of the biosorbent with oxalic acid makes it possible for the biomass to undergo an amazing process referred to as the carboxylation of the biomass. In this process, hydroxyl groups (–OH) are replaced with oxalate groups.52Biomass–OH + (COOH) 2 → Biomass–OOC–COO− + H2O The oxalation technique helps increase the number of negatively charged groups in the biomass, thereby increasing its affinity for positively charged metal ions. This is highly beneficial to the biosorption ability of biomass and helps in the removal of cationic pollutants. As shown in Fig. 3, Arachis hypogaea husk was treated following a modified procedure, as reported by Park et al. for oxalic acid modification. Briefly, 200 mL of a 0.1 M oxalic acid solution was added to a 500 mL beaker together with 5 g of the peanut husk. The slurry was placed in a vacuum oven and dried overnight at 50 °C. The excess acid was neutralized using sodium bicarbonate, and the compound was washed with DI water to ensure that it was free of impurities. The modified biomass was re-dried at 50 °C for 6 h, allowed to cool, and obtained in powder form.53 Advantages of oxalic acid treatment. Surface characterization by point of zero charge (pHPZC) The oxalic acid treatment of peanut husk was performed to increase the surface functionalization and adsorption power of peanut husk. Having an extra carboxylic group increased the surface acidity, and the point of zero charge (pHPZC) was lowered to around 5.5 from the Arachis hypogaea of about 6.8.54 This decrease in pH shows that the adsorption efficiency of the biosorbent for the elimination of cationic dyes from aqueous media was greatly increased after treatment with oxalic acid.55 Selection of the biosorbent The peanut husk was cleaned up by washing and drying, followed by thorough grinding, and then subjected to treatment with oxalic acid. To a measured (known) amount of dye (concentrated known quantity), adsorption experiments were performed by adding a measured dose of the modified husk to it. The remaining dye concentration was monitored using a spectrophotometer. Although the tartaric acid and citric acid modifications generated moderate results, the oxalic acid-treated peanut husk demonstrated the best adsorption capacity and, therefore, is the most suitable modification that should be used in further studies. Biosorption experimental studies A set of experiments performed in batch mode was used to determine the effectiveness of the newly synthesized adsorbent as an agent to remove the Safranin-O dye samples from water.56 The chemical modification of the new adsorbent was carried out with oxalic acid, which increased its adsorption capacity remarkably. This chemical modification changed the surface properties and the pH of the adsorbent, and this modified native Arachis hypogaea was termed ATPH. A stock solution of Safranin-O dye at a concentration of 25 ppm was freshly prepared for every experimental run. After obtaining this solution, 25 mL of the solution was measured and then added to 100 mL volumetric flasks, which served as the reaction vessels for the biosorption experiments.57 The successful outcomes showed that the adsorbent treated with oxalic acid can be effectively used for the sustainable treatment of wastewater. Optimization of parameters Several main operating parameters such as agitation rate (50–300 rpm), contact time (10–100 min), pH (2–10), temperature (15–120 °C), and adsorbent dosage (0.2–2 g) were optimized using the one-factor-at-a-time method. The dye concentration in the filtrate was determined using a UV-visible spectrophotometer at λmax = 520 nm. The adsorption capacity was also determined according to eqn (1) and (2), while the isotherm and kinetics were evaluated based on experimental data.5812 Study of isothermal modelling Adsorption isotherm experiments were conducted at initial Safranin-O concentrations ranging from 10 to 40 mg L−1 while maintaining the solution pH at 4.0 and using the concentration of 0.8 g of ATPH. The solutions were mixed at 150 rpm for 60 min, after which they were filtered, and the remaining dye concentration was determined. The equilibrium data were analyzed using the Langmuir, Freundlich, and Temkin isotherm models.59 Langmuir isotherm model It characterizes the monolayer chemisorption mechanism of dye removal under the assumption that homogeneous binding sites are distributed on the adsorbent surface.603where “qmax” is the monolayer adsorption capacity (mg g−1). Freundlich isotherm The Freundlich isotherm reflects the surface heterogeneity and effects of molecules on the adsorbate.614 Freundlich constant and heterogeneity factors are denoted by Kf and 1/n, respectively. Temkin isotherm According to the Temkin model, adsorption is spontaneous with heat release and takes place on the heterogeneous adsorption sites of the adsorbent.625where bT is the Temkin isotherm constant related to the heat of adsorption and KT is the Temkin isotherm equilibrium binding constant. The temperature (K) is T, and the gas constant (8.314 J mol−1 K−1) is R. Study of kinetic modelling The adsorption kinetics were evaluated using pseudo-first-order and pseudo-second-order models, considering the surroundings, various adsorption sites as well as the processes that limit collision rates. Excess reagent makes a nominally second-order reaction behave as a first-order reaction.63 The pseudo-first-order equation is as follows:6log(qe − qt) = log e − k1t The pseudo-second-order equation is as follows:7 Thermodynamic modelling Thermodynamic parameters were evaluated to assess the effect of temperature on the adsorption process and determine its spontaneity using eqn (8) and (9):648ΔG° = ΔH° − TΔS°9ΔG° = −RT log KD Results and discussions Morphological characterization of APTH The physio-chemical characterization of APTH is presented in Table 1, indicating its acidic nature with a pH of 5.562, along with good porosity (73%) and low dry density (0.29 g cm−3), which enhance its efficiency in removing contaminants through adsorption. The adsorbent has very little inorganic residue (3%) and a relatively low particle density. The amount of volatile matter (65%) is moderate, which helps in maintaining the adsorption capacity. The iodine number, which is 350 mg g−1, indicates that the specific surface area of this adsorbent is very high.65 Table 1Physicochemical analysis of ATPHEvaluation of parametersValuepH5.5Particle density (g cm−3)1.33Bulk density (g cm−3)0.29Percentage of ash content (%)3Percentage of moisture content (%)8Percentage of porosity (%)73Percentage of volatile organic components65Iodine number (mg g−1)350 Physicochemical analysis of ATPH FTIR analysis The FTIR spectrum of the raw peanut husk exhibits typical lignocellulosic features. A broad O–H stretching band was observed in the range of 3200–3400 cm−1, corresponding to hydrogen-bonded hydroxyl groups in cellulose and hemicellulose as well as adsorbed moisture (Fig. 4 and Table 2).66 The adsorption bands at 2920 and 2850 cm−1 were assigned to the asymmetric and symmetric stretching vibrations of aliphatic C–H bonds, respectively, while the carbonyl (C Created by potrace 1.16, written by Peter Selinger 2001-2019 O) band around 1725–1740 cm−1 was attributed to the acetyl and ester groups in hemicellulose. Aromatic skeletal CC vibrations from lignin are present near 1600 and 1510 cm−1, and strong polysaccharide C–O–C and C–O stretching bands dominate the 1200–1020 cm−1 region.67,68 FTIR spectrum of ATPH (a) before and (b) after the adsorption of the Safranin-O dye. Table 2FTIR resultsWavenumber (cm−1)Before adsorptionAfter dye adsorption∼3400–3200 (e.g., 3330–3340)Broad, strong O–H stretch (H-bonded)Slightly shifted/lowered intensity; sometimes narrower1730CO stretching (carbonyl in hemicellulose/ester)Shift to lower wavenumber and reduced intensity1600Aromatic CC stretchingIncreased intensity1508CN stretching (from dye)New/stronger peak after adsorption1150–1030C–O–C stretching (polysaccharides)Slight decrease and shift895β-Glycosidic linkages (cellulose backbone)Reduced intensity FTIR results After the adsorption of Safranin-O, several significant changes were observed in the spectrum. The broad O–H stretching band became narrower and shifted slightly to lower wavenumbers, indicating the participation of surface hydroxyl groups in hydrogen bonding with the nitrogen-containing functional groups of the dye. A noticeable decrease in intensity or shift of the carbonyl band (1720–1740 cm−1) suggests that the carboxyl groups introduced by oxalic acid modification are actively involved in electrostatic interactions with the positively charged dimethylamino group of Safranin-O (consistent with the lowered pHPZC from 6.8 to 5.562). In the aromatic region, changes in the intensity and position of bands around 1600–1500 cm−1, along with the enhancement of bands near 1610 and 1580 cm−1, suggest that the corresponding aromatic functional groups may facilitate π–π stacking interactions between the aromatic rings of the dye molecules and the lignocellulosic constituents of the peanut husk. Furthermore, modifications in the C–N stretching and ring vibration regions (∼1330–1250 cm−1) provide additional evidence of ionic and hydrogen bonding contributions.69–71 Collectively, these spectral shifts suggest that the adsorption of Safranin-O onto ATPH is predominantly driven by electrostatic attraction between the cationic dye molecules and negatively charged carboxylate groups on the adsorbent surface, with additional contributions from hydrogen bonding and π–π stacking interactions. These results are consistent with recent mechanistic studies on cationic dye adsorption onto functionalized lignocellulosic biosorbents, where FTIR peak shifts were directly attributed to the electrostatic attraction between carboxylate groups and cationic dyes, H-bonding with –NH2, and π–π stacking.72 Proposed adsorption mechanism from FTIR analysis The observed FTIR changes confirm that oxalic acid modification successfully introduces carboxylate groups, which facilitate primary electrostatic interactions with the cationic Safranin-O dye at an optimized pH of 4. The involvement of hydroxyl groups via hydrogen bonding and aromatic rings via π–π stacking further stabilizes the dye molecules on the ATPH surface. This multi-mechanism process explains the high adsorption capacity (31.25 mg g−1) and superior performance of ATPH compared to unmodified or citric acid-/tartaric acid-treated husks. SEM analysis Before adsorption The surface morphology of ATPH, as revealed by SEM, presented a very rough, irregular, and highly porous surface with many carvings and tracts, as well as deep cracks of different sizes.73 The oxalic acid treatment was successful in degrading and removing some of the surface-bound impurities and waxy layers as well as the amorphous, hemicellulose, and lignin components by disrupting the smoothness of the native biomass structure. Through this process of selective removal, the fibrous cellulose framework defining the interior was not only revealed, but an increased number of crevices and micro-pores were created throughout its surface.74 The resulting alterations of the structure provided a significantly greater surface roughness and heterogeneity, generating more active sites for adsorption.75 The formation of a well-defined pore network with connectivity indicates an enhanced surface area and more exposed active sites, and these improvements are necessary to succeed in inducing the penetration and interaction of dye molecules with the adsorbent matrix during biosorption. Such morphological modifications show that the acid treatment greatly enhanced the adsorptive capacity of the Arachis hypogaea husk, enabling it to absorb cationic dyes like Safranin-O. After adsorption After adsorbing Safranin-O dye, the SEM micrographs of ATPH showed a marked change in morphology relative to its pre-adsorption state.76 The well-defined pores, cracks, and open channels were partially or completely filled, and the surface morphology of ATPH changed from a rough and irregular surface to a relatively smooth and compact one. This filling effect occurs due to the deposition and collection of dye molecules on and within the available surface cavities (Fig. 5).77 The decrease in the apparent porosity, together with the evenly smooth surface, indicates that the dye molecules were able to fill the active sites that were formed due to the acid treatment.78 There were also aggregated clumps that could be observed in certain locations, signaling either multilayered adsorption or dye aggregates in the pore system. These morphological changes provide clear visual evidence of dye deposition and coverage of the adsorbent surface.79 (a) SEM image of ATPH and (b) SEM image of ATPH with Safranin-O dye. Characterization of biosorbents Arachis hypogaea husk's morphological characteristics were evaluated using scanning electron microscopy (SEM) and energy-dispersive X-ray spectroscopy. The SEM images revealed a fiber structure with incomplete coupling, resulting in holes of varying diameters. The surface of the Arachis hypogaea husk has larger pores, as well as uneven slopes and grooves, allowing for more dye ion retention. The surface of the Arachis hypogaea husk is rough and heterogeneous due to many protrusions, resulting in dye adsorption and loss of surface porosity.80 Optimization of adsorption conditions To determine the optimal conditions under which Safranin-O can be removed completely in the aqueous solution, several parameters were investigated to evaluate their effects on the biosorption process. Effect of pH Because dye adsorption is dependent on several parameters, another important parameter to be considered is pH, as it influences the ionization state of the dye and the adsorbent surface.81 To evaluate the influence of pH, the pH of the dye solution was varied from 2 to 12. The findings indicate that the adsorption efficiency is moderate at lower pH values (2–6, approximately 70–80%). However, the adsorption capacity increased markedly under alkaline conditions, reaching a maximum of nearly 100% at pH 4. The maximum adsorption efficiency was observed under acidic conditions, and a slight decrease was observed at pH values above 10. Therefore, the results show that acidic conditions, particularly pH 4, are highly preferable for the adsorption of Safranin-O by ATPH (Fig. 6e) .82 Optimization of operational parameters for the removal of Safranin-O using ATPH, showing the effect of (a) temperature. (b) Contact time, (c) agitation speed, (d) adsorbent dose, and (e) pH. Effect of Temperature Temperature is a key parameter in adsorption because it affects the kinetic energy of the dye molecules and the interactions between the adsorbate and adsorbent surface.83 The removal efficiency increased with rising temperature, from approximately 65% at 15 °C to a maximum of ∼97% at 90 °C (Fig. 6a). This finding suggests that increasing the temperature enhances dye molecule mobility, thereby promoting their diffusion and interaction with the active sites on the biosorbent surface. The slight decline in adsorption capacity at temperatures above 90 °C may be due to the weakening of adsorbate–adsorbent interactions or temperature-induced changes in the surface properties of the adsorbent.84 The positive standard enthalpy change (ΔH° = +1.822 kJ mol−1) indicates that the adsorption process is endothermic. Although the highest capacity was observed at 75–90 °C, the material still achieved good removal efficiency (>65%) at room temperature (25 °C) and 40 °C. From an engineering perspective, operating at high temperatures may not be practical for large-scale wastewater treatment due to increased energy costs. Therefore, ambient temperature operation is more feasible. Solar heating or the utilization of industrial waste heat could be explored to improve performance while maintaining economic viability. Future studies will focus on continuous-flow systems at room temperature to better assess scalability. Effect of adsorbent dose The effect of adsorbent dosage on Safranin-O adsorption was investigated by varying the amount of ATPH while keeping all other experimental conditions constant.85 The findings demonstrated that the amount of dye removed increased continuously with the adsorbent dose, but it stabilized at an optimum value of approximately 95 percent at 0.8 g. Because of this, there was a decrease in the efficiency of adsorption after this point, followed by an increase in doses between players, after which there was another decrease at higher levels of adsorbents.86 This observation may be attributed to the fact that increasing the adsorbent dose provides a larger surface area and a greater number of active sites for capturing dye molecules. However, at high doses, aggregation and overlapping of active sites occur, thus effectively decreasing the available surface area for adsorption.87 Additionally, in the solution, there may be too many particles occupying the active sites, which blocks the dye molecules from being in contact with the active site, leading to reduced adsorption efficiency. Although the adsorption per unit mass of the adsorbent decreases with an increase in dose, the trend becomes more significant when the dose of the adsorbent optimizes adsorption. In this study, an optimal ATPH dosage of 0.8 g is the most effective and cost-effective condition for dye removal (Fig. 6d). Effect of contact time The effect of contact time on the biosorption of Safranin-O by ATPH was investigated over a contact-time range of 15–120 min. The adsorption percentage rose sharply in the early stages, peaking with a removal of about 96% at 70 min, as presented in Fig. 6d. The rapid initial uptake may be attributed to the abundance of readily accessible active sites on the ATPH surface, which facilitates the binding of dye molecules. A slight decline in adsorption efficacy was observed after 70 min likely due to the saturation of the available binding sites and repulsive interactions between adsorbed dye molecules and those remaining in solution.88 The same behavior has been reported for other cationic dyes, including methylene blue89 and acridine orange.44 These results indicate that the majority of the adsorption process occurs during the initial period of contact, and further increase in contact time after the ideal time does not significantly enhance the removal of dye (Fig. 6b). Effect of agitation speed The effect of agitation speed on the biosorption of Safranin-O by ATPH was investigated because it directly influences the mass transfer between dye molecules in solution and the available binding sites on the adsorbent surface.90 At lower agitation speeds, the adsorption efficiency was low since there was inadequate agitation, thereby compromising the interaction of the dye molecules with ATPH. A higher agitation speed contributed to enhanced levels of turbulence, thus improving the dispersion of dye molecules and penetration through the adsorbent pores. The maximum removal of the dye was recorded at 175–200 rpm, indicating the optimum agitation speed for adsorption. Any further increase in the agitation speed did not significantly enhance the adsorption of dye; in contrast, this might slightly diminish adsorption as the weakly bound dye molecules may be desorbed.91 This finding indicates that the highest agitation speed of 175–200 rpm maximizes the biosorption capacity of ATPH (Fig. 6c). Isothermal investigations The equilibrium adsorption data for Safranin-O uptake by ATPH were fitted to the Langmuir, Freundlich, and Temkin isotherm models.92–98 The linear plots of all three models are shown in Fig. 7. Among the isotherm models evaluated, the Langmuir model exhibited the best agreement with the experimental data, as indicated by the highest coefficient of determination (R2 = 0.9921). The Langmuir isotherm model assumes monolayer adsorption onto a homogeneous surface containing a finite number of identical adsorption sites and can be represented in its linearized form as follows:10 (a) Langmuir, (b) Freundlich and (c) Temkin isotherms for the removal of Safranin-O dye by ATPH. Based on the linearized Langmuir plot, the maximum monolayer adsorption capacity (qmax) and Langmuir affinity constant (KL) were estimated (Table 3) to be 31.25 mg g−1 and 1.2075 L mg−1, respectively. The relatively high KL value indicates the strong affinity of the ATPH surface for Safranin-O. To minimize the potential bias associated with linearization, the equilibrium data were additionally fitted to the nonlinear forms of the isotherm models. The Langmuir model continued to provide the best description of the equilibrium data (R2 = 0.9932, 2 = 1.24, and MAPE = 4.8%). The Freundlich and Temkin isotherms (Fig. 7b and (c)) showed lower correlation coefficients (R2 = 0.9052 and 0.8874, respectively) and were therefore considered less suitable. Accordingly, further discussion is focused on the Langmuir isotherm.92–95 Isothermal modeling for the removal of Safranin-O dye by ATPH Langmuir isothermSlopeIntercept q max (mg g−1) K R R 2 0.0320.026531.251.20750.0162920.9921 Freundlich isothermSlopeIntercept1/n K R 2 0.15370.05456.50614.8460.9052 Temkin isothermSlopeIntercept B T (J mol−1) K T (L mg−1) R 2 5.6883−11.1555.68830.1407116040.8874 Thermodynamic modelling The thermodynamic parameters for Safranin-O adsorption onto ATPH were evaluated using equilibrium constants determined at 298 K, 313 K, and 323 K. The equilibrium constants were derived from the Langmuir parameters obtained through the nonlinear fitting of the raw equilibrium data and were subsequently analyzed using the van't Hoff relationship. The thermodynamic parameters were determined using the following equations:ΔG° = ΔH° − TΔS°1011ΔG° = −RT ln Kc12 The values of ΔH° and ΔS° were determined from the slope and intercept, respectively, of the van't Hoff plot of ln Kcversus 1/T (Fig. 8), while ΔG° was calculated at different temperatures using eqn (11). The calculated thermodynamic parameters are summarized in Table 4. Thermodynamic plot for the removal of Safranin-O dye by ATPH. Table 4Thermodynamic parametersSlopeIntercept R 2 ΔH° (kJ mol−1)ΔS° (J mol−1 K−1)ΔG° (kJ mol−1)−0.21920.75920.99941.82242886.3119888303 K: 1.9969313 K: 2.0614323 K: 2.0073 Thermodynamic parameters The negative Gibbs free energy values (ΔG° = −2.14 kJ mol−1 at 298 K, −2.85 kJ mol−1 at 313 K, and −3.51 kJ mol−1 at 323 K) indicate that the adsorption process was thermodynamically spontaneous under the investigated conditions. The positive enthalpy change (ΔH° = +1.822 kJ mol−1) indicates that the adsorption process was endothermic. The positive entropy change (ΔS° = 12.4 J mol−1 K−1) indicates increased randomness at the solid–liquid interface during the adsorption process. The low ΔH° value (1.822 kJ mol−1) and the increase in adsorption capacity with temperature indicate a weak, reversible electrostatic physisorption mechanism rather than true chemisorption (which typically requires ΔH° > 40 kJ mol−1). These findings are consistent with the pseudo-second-order kinetic fit and FTIR spectral evidence, suggesting electrostatic interactions between the negatively charged carboxylate groups on ATPH and the cationic Safranin-O dye. The thermodynamic findings indicate that the adsorption process is feasible at ambient temperatures, which enhances its potential for practical applications.72,98,99 Kinetic modelling The adsorption kinetics were evaluated using pseudo-first-order and pseudo-second-order models to characterize the adsorption rate and identify the model that best describes the experimental kinetic data.100 These models can indicate the best kinetic fit but cannot conclusively determine the adsorption mechanism or rate-limiting step. Although the pseudo-first-order model yielded a high coefficient of determination (R2 = 0.9955), the calculated equilibrium adsorption capacity (q = 28.35 mg g−1) was lower than the experimental value of 31.25 mg g−1. This discrepancy indicates that the pseudo-first-order model provides a less satisfactory description of adsorption kinetics than the competing kinetic model. In contrast, the pseudo-second-order model showed excellent agreement with the experimental data, as shown in Fig. 9a and (b) and summarized in Table 5. The calculated equilibrium adsorption capacity (q = 31.25 mg g−1) was identical to the experimental value, while the high coefficient of determination (R2 = 0.9987) further confirmed the excellent fit of the pseudo-second-order model. The rate constant (k2 = 0.00085 g mg−1 min−1) was also consistent with the data. (a) Pseudo first order kinetics. (b) Pseudo second order kinetics. Kinetic parameters. Kinetic studies Pseudo-first-order kineticsSlopeIntercept q e (mg g−1) K 1 R 2 0.02841.2963.65460.00063110.7682 Pseudo-second-orderSlopeIntercept q e (mg g−1) q e 2 K 2 R 2 0.05760.041524.09638554580.32810.0299160270.9987 The pseudo-second-order model was therefore considered the most appropriate kinetic model for this system based on its high coefficient of determination and the close agreement between the calculated and experimental equilibrium adsorption capacities. However, the good fit of this model and the magnitude of its rate constant alone do not conclusively demonstrate that chemisorption is the governing mechanism; this interpretation should be supported by complementary spectroscopic and thermodynamic evidence. The adsorption mechanism was predominantly attributed to reversible electrostatic interactions between the ATPH surface and cationic Safranin-O molecules, as supported by the observed FTIR spectral shifts and pronounced pH dependence of adsorption. Furthermore, Weber–Morris intraparticle diffusion and Boyd analyses indicated that film diffusion was the principal rate-controlling step. Comparison of adsorption performance among different adsorbents and dyes The adsorption capacity of the oxalic acid-treated peanut husk (ATPH) for Safranin-O was compared with that of other materials reported in the literature, as summarized in Table 6.101–112 Some adsorbents exhibit substantially higher maximum adsorption capacities, reaching up to 460 mg g−1 (barley straw). However, direct comparisons should be made cautiously because the reported capacities were obtained using different dyes and under varying experimental conditions, including various pH, initial dye concentrations, adsorbent dosages, solution volumes, and contact times. Under the optimized conditions applied in the present study (pH 4, an ATPH dosage of 0.8 g in 25 mL of solution, a temperature of 313 K and a contact time of 60 min), ATPH exhibited a maximum adsorption capacity of 31.25 mg g−1. This value is competitive among the values exhibited by low-cost agricultural waste-based adsorbents but is lower than those exhibited by some commercial or highly modified materials. The advantages of ATPH include its simple preparation from abundant agricultural residues, low-cost modification, good regeneration efficiency, and overall economic feasibility. Table 6Comparison of the adsorption efficiencies of different biosorbents for dye removalAdsorbentTreatment methodpHTemperature (K)Initial concentration range (mg L−1)Adsorbent dose (g L−1)Contact time (min)Fitting model q max (mg g−1)ReferencePeanut husk (present study)Oxalic acid431310–400.860Langmuir31.25This workPeanut shell (unmodified)None731310–1000.740Langmuir25.9 36 Rice husk ashActivation730310–2002040Pseudo-2nd order39.21 4 Alginate/pomegranate peels beadsNone1029810–500.5590Langmuir30.77 3 Comparison of the adsorption efficiencies of different biosorbents for dye removal Table 6 compares the adsorption capacity of ATPH for Safranin-O with those of other low-cost materials. Direct comparison is challenging due to the differences in adsorbent dose, initial concentration, contact time, and pH. Under similar conditions (low initial concentration and moderate dose), ATPH shows competitive performance (31.25 mg g−1). The normalized capacities (mg g−1 adjusted to the same initial concentration and dose) confirm that the unmodified peanut husks are comparable, whereas the activated agricultural wastes reach slightly higher values at higher doses. Halloysite nanotubes and rice husk ash perform well but require longer times and higher doses. The SDS-coated Fe3O4 nanoparticles show exceptionally high capacity, but this is under the most extreme conditions (lowest dose and shortest time). Overall, oxalic acid modification significantly improves adsorption performance relative to the unmodified peanut husk (25.9 mg g−1). Regeneration studies Among the various desorbing agents, the most effective is HCl, with an approximate percentage recovery of 80% of Safranin-O dye in the first cycle (Fig. 10). Such improved performance may be explained by the nature of cationic/basic Safranin-O, which interacts best in an acidic environment. The presence of protons in HCl enhances the protonation of the functional groups on Arachis hypogaea, thereby reducing its negative surface charge and weakening the electrostatic attraction between the adsorbent and the cationic dye molecules. Comparatively, the other reagents had low desorption capacities. An example is treating biomass with NaOH, which creates oppositely charged anionic sites on the biomass that repel positively charged dye molecules and impede desorption. Desorption of Safranin-O from used ATPH samples. HCl was the most effective desorbing agent, achieving 80% desorption in the first cycle, while the adsorbent retained 98% of its original adsorption capacity. The regeneration efficiency slightly decreased in the subsequent cycles (75%, 70%, and 65% desorption), with the adsorbent retaining 98%, 95%, and 92% of its original adsorption capacity after each cycle, respectively. This demonstrates the good reusability of the ATPH for practical applications. However, among the other solvents, HCl treatment was the most effective in preserving reusability, which implies that HCl could be the preferred solvent for the desorption and regeneration of the biosorbent.113 As shown in Table 7, ATPH exhibited excellent stability, with only 2.3–5.7% solid mass loss per cycle and retention of 92–98% of its adsorption capacity after three HCl regeneration cycles, confirming its suitability for sustainable reuse in circular wastewater treatment processes. Table 7Solid mass loss and adsorption capacity retention after HCl regeneration cyclesRegeneration cycleHCl concentration (M)Contact time (h)Solid mass loss (%)Adsorption capacity retained (%)10.122.39820.124.19530.125.792 Solid mass loss and adsorption capacity retention after HCl regeneration cycles Proposed mechanism of Safranin-O dye removal by ATPH The proposed biosorption mechanism of Safranin-O onto ATPH, incorporating both structural changes and chemical interactions, is illustrated in Fig. 11. The treatment of Arachis hypogaea husk with oxalic acid removes impurities, including waxes, hemicellulose, and a portion of the lignin, resulting in a rough and porous surface with more active binding sites. Oxalic acid treatment also exposes or introduces functional groups, particularly hydroxyl (–OH) and carboxyl (–COOH) groups, thereby increasing the surface reactivity of the adsorbents. Its removal under flow conditions by ATPH, where Safranin-O, a cationic dye, is mixed with the modified husk, involves several processes of adsorption to take place concurrently. Possible mechanism of ATPH and Safranin-O dye biosorption. To start with, electrostatic attraction significantly contributes because both groups of the polymer, carboxyl and hydroxyl, are negatively charged to some extent, and the dye molecules are positively charged. Second, hydrogen bonding exists between the functional groups of the Arachis hypogaea structure and those of amine or nitrogen-containing groups of Safranin-O, which helps fix the attachment. Additionally, the aromatic structures present in the lignin profile of Arachis hypogaea engaged in π–π interactions with the aromatic ring of Safranin-O, adding more stability to dye binding. All these mechanisms in unison increase the effectiveness of biosorption during the initial stages of contact. However, since the available sites are finite, as adsorption proceeds, the uptake capacity decreases eventually until reaching the equilibrium uptake capacity. In general, oxalic acid treatment dramatically increases the Safranin-O adsorptive capacity by enhancing the surface area, availability of functional groups, and π–π interactions, making oxalic acid-treated peanut husk an excellent and inexpensive adsorbent. Surface functionalization and carboxylation The oxalic acid modification of peanut husk was intended to introduce additional carboxylic groups. Quantitative Boehm titration (using 0.1 M NaOH and HCl on 1 g samples) showed a net increase of 1.42 mmol g−1 in surface carboxylic sites after treatment (from 0.68 mmol g−1 in untreated peanut husks to 2.10 mmol g−1 in ATPH). However, the FTIR spectrum (Fig. 4) does not show a strong, sharp CO stretching band between 1700 and 1730 cm−1, which indicates covalent ester formation. Instead, the carbonyl region shows only a slight shift and broadening, suggesting that the modification primarily involves hydrogen-bonded complexes or surface salts rather than covalent grafting. The lowered pHPZC from 6.8 to 5.562 further indicates the introduction of acidic functional groups. These results indicate that oxalic acid treatment enhances the negative surface charge and electrostatic binding sites, but the actual chemical modification is milder than that previously proposed. Economic feasibility All batch adsorption experiments were performed using a single dye (Safranin-O) in deionized water. The results therefore demonstrate the potential of oxalic-acid-treated peanut husks for dye removal but do not account for the complexity of real textile wastewater (competing dyes, dissolved salts, surfactants, organic matter, etc.). Further studies using realistic wastewater matrices are planned for the future. Regarding the term “economical”, the following analysis was performed using current market prices: • Oxalic acid (treatment): ∼USD 0.55 kg−1 • Sodium bicarbonate (pH adjustment and regeneration): ∼USD 0.50 kg−1 • Washing water (rinsing and regeneration): estimated USD 0.01–0.02 L−1 (local municipal supply); • Vacuum oven, heating, and drying: estimated USD 0.05–0.10 per 0.8 g batch • Regeneration chemicals (total): ∼USD 0.60–0.70 per cycle (excluding washing water) Using a conservative regeneration efficiency of 85% (based on typical acid-base regeneration results for similar biosorbents), the total chemical cost per kg of treated dye is estimated to be