Adsorptive removal of Cr(VI) ions using nitrogen-doping activated carbon: influence of pH, kinetics, isotherm models, optimization, and efficiency evaluation Authors: Mohamed A El Nemr, Hossam S Jahin, Mohamed H H Abbas, Mohamed A Hassaan, Mohamed N M Ismail, Ahmed El Nemr Published: 2026 ABSTRACT AbstractHexavalent chromium ion [Cr(VI)] poses serious environmental risks due to its high toxicity and ability to cross biological membranes, leading to organ damage and genetic mutations. This study presents a new practical method for removing Cr(VI) ions from wastewater using nitrogen-doped activated carbon (AC600) prepared by pyrolyzing sawdust with ZnCl2 at 600 °C. Thereafter, batch experiments were conducted using different adsorbent doses (0.5–2.5 g L–1) and Cr(VI) ion concentrations (100–400 mg/L) at pH ranging from 1 to 12. Results revealed that Cr(VI) ions sorption on AC600 followed both linear and adsorption isotherm models at low sorbent doses (< 1.5 g/L). At higher doses, sorption shifted toward a hyperbolic adsorption pattern. Overall sorption data fitted well with both the Freundlich and Temkin isotherm models. Cr(VI) ions removal efficiency increased with contact time, following a sharp rise within the first 20–40 min of contact, while equilibrating within approximately 60–80 min. However, this efficiency decreased as pH increased. The highest efficiency (95–99%) was achieved using 2.5 g of AC600 to treat 1 L of water containing 100–150 mg/L of Cr(VI) ions within 2 h. For higher Cr(VI) ion concentration (200–250 mg/L), the efficiency decreased to 88–90%. The kinetics of Cr(VI) ion sorption on activated carbon followed the Pseudo-Second-Order model at low to moderate AC600 doses and low Cr(VI) ion concentrations. At higher doses and Cr(VI) levels, the power function and intraparticle diffusion models provided better fits. A maximum adsorption % could be achieved by using 2.5 g of AC600 and a Cr(VI) ion solution at 100 mg/L, according to results from an optimization of adsorption parameters using response surface methodology (RSM).Supplementary InformationThe online version contains supplementary material available at 10.1038/s41598-026-53699-7.Keywords: Activated carbon, Hexavalent chromium, Removal efficiency, RSM model, Sorption isotherms, Sorption kineticsSubject terms: Chemistry, Environmental sciences, Materials science Introduction Chromium exists in various oxidation states (from 2− to 6+), but only two forms are present in nature: Cr(III) and Cr(IV) ions1. Although, Cr(III) is an essential micronutrient for plants, hence Cr(VI) ions exhibit high toxicity2,3 due to their high capability to penetrate biological membranes, causing serious health issues such as organ damage, oxidative stress, and genetic alterations in plants and animals4. The toxicity of Cr(VI) is about 300 times higher than that of Cr(III)1. This contaminant persists in water, making its cleanup difficult and thus impacting ecosystems and aquatic life (Tasnim et al., 2024). Growing environmental and health concerns regarding Cr(VI) ion contamination5 have prompted a search for sustainable, cost-effective treatment methods6. One promising technique is the use of carbon-based adsorbents, made from natural or waste materials7, for water decontamination. These materials are produced from low-cost materials via pyrolysis of organic carbon-rich biomass8 and have several advantages, such as low production cost, renewable feedstocks, and a highly porous structure that exhibits its high sorption capacity9 for contaminants in soil and water8. For example, activated carbon-based systems demonstrated high removal efficiencies of Cr(VI) ions as high as 93–95.97%9,10. In this study, nitrogen-doped activated carbon was produced from sawdust (an abundant precursor) using a chemical activation and pyrolysis process, which will be evaluated to observe its possible effect on the removal efficiency of Cr(VI) ions from wastewater and speed up this process. This eco-friendly and cost-effective procedure increases the total functional groups, particularly –NH2 ones. In this regard, amino groups which are considered hard base synergistically chelate Cr(VI) ions (hard acid)11 according to the concepts of the HSAB (Hard and Soft Acids and Bases) theory, stating that hard acids prefer hard bases, while soft acids prefer soft bases. This modification may effectively remove more Cr(VI) ions from contaminated waters. Therefore, N-doped activated carbons was synthesized from sawdust using ZnCl2 as an activating material through pyrolysis at 600 ºC (AC600). The resulting product was used, at different doses, to remove various concentrations of Cr(VI) ions, while assessing Cr(VI) removal efficiency, adsorption kinetics, and overall adsorption behavior on the activated carbon12,13,14. In addition, response surface methodology (RSM) and ANN optimization of Cr(VI) ions removal from water were conducted to provide a novel approach that combines material development with enhanced Cr(IV) removal efficiency. This work supports several Goals: (1) removal of Cr via recycling wastes, produced from low-cost, eco-friendly adsorbent; hence protect the environment from waste disposal. Materials and methods Materials of study Sawdust was collected from a local carpenter’s workshop in Alexandria, Egypt. The sawdust was dried in an oven at 105 °C for 24 h to a constant weight, and the particle size was standardized using sieving 1–2 mm to ensure uniform processing. Hydrochloric acid (HCl, MW 36.46 g/mol and an assay of 30–34%) was purchased from SD Fine-Chem Ltd (SD FCL), Mumbai, India. Zinc chloride (ZnCl2, reagent grade, ≥ 98%) and potassium dichromate (K2Cr2O7, M.W. 294.19 g/mol, assay 99%) were obtained from Sigma-Aldrich. For spectrophotometric detection of hexavalent chromium, 1,5-diphenylcarbazide was purchased from BDHZ Chemicals Ltd., Poole, England. Preparation of nitrogen-doping activated carbon 100 g of sawdust was mixed with 50 g ZnCl2 in 300 mL of distilled H2O. The mixture was placed in a 500 mL handmade Teflon cup that was placed into a stainless-steel autoclave and hydrothermally treated for five hours at 180 °C. The product was transferred to a mortar, dried at 125 °C overnight, and then carbonized at 600 °C under flow of NH3 gas (100 mL/min) for 1 h (The experimental setup used for NH3 activation, specifying the use of a tube furnace, quartz boat, and gas flow meter to control the reaction environment, enhancing understanding of the process). The carbonized material was refluxed for 2 h in 2 N HCl (to remove ash) to remove residual contents, filtered, and dried overnight at 125 °C. This was followed by sonication (activation and pores purification) in H2O for 0.5 h, decantation, then washing with ethanol (Cleaning and drying the AC600) and oven drying at 125 °C overnight. The nitrogen-doping activated carbon product was designated as AC600. Characterization For Cr(VI) ion concentration measurement, an Analytic Jena (SPEKOL1300 UV/Visible spectrophotometer) with a 1 cm optical glass cell path was employed. Thermo shaker incubator (GSSI-100T sh), tubular furnace Nabertherm B180 (RT 50/250/13), JENCO (6173) pH meter, and shaker [A JS shaker (JSOS-500)] were utilized for the experiment. The functional groups and surface chemical state of the Nitrogen-Doped Activated Carbon (NDACs) were ascertained using a Fourier transform infrared spectrometer (FT-IR: Bruker Vertex 70 connected to Platinum ATR model V-100). The morphology of the NDACs was examined using an EDX device and a scanning electron microscope (SEM: LEO, 1450VP). The volume of monolayer (Vm) (cm3 (STP) g–1), the surface area (SBET) (m2/g), volume of total pores (VT) (p/p0) (cm3/g), energy constant (C), mean diameter of pores (nm) and the average pore radius were calculated according to BET15 analysis of the isotherm. N2 adsorption at 77 K was used to get the BET surface area (SBET) study of the NDACs using an analyzer device (BELSORP – Mini II, BEL Japan, Inc.)16,17. Additionally, using the BELSORP analysis program software, the Barrett-Joyner–Halenda (BJH) techniques were used to calculate the surface area of the micropore (Smi) and volume of the micropore (Vmi), as well as the surface area of the mesopore (Smes) and volume of the mesopore (Vmes) of NDACs. Using the BJH approach, the distribution of pore size was determined from the desorption isotherm15. Using the SDT650-Simultaneous Thermal Analyzer device, thermal analyses were performed to determine the thermal stability at temperatures ranging from 25 to 1000 °C with a temperature ramp rate of 10 °C/min under a nitrogen gas flow rate of 100 mL/min2. The XRD analysis was performed using a D2 PHASER Instrument produced by Bruker in Germany18. A Thermo Fisher Scientific K-Alpha XPS with a pass energy of 50 eV and a base pressure of around 10–9 mbar was used to perform elemental analysis. Preparation of Cr(VI) stock and working solutions A stock solution of 1000 mg L–1 of Cr(VI) ion was prepared by dissolving 2.8289 g of K2Cr2O7 (analytical grade) in a liter of double-distilled water, then this stock was diluted to prepare the different concentrations of Cr(VI) ions, ranging from 100 to 400 mg L–1. Experimental procedure Batch experiments were conducted under lab conditions using 100 mL of Cr(VI) ion solution at room temperature (25 ± 2 °C) in 300 mL Erlenmeyer flasks to evaluate the adsorption capability of AC600 for removing Cr(VI) ion from artificially contaminated waters. Synthetic Cr(VI) solutions were prepared in deionized water, which is standard for initial performance evaluation. To attain this aim, batch experiments were followed by mixing various adsorbent doses (0.5–2.5 g L–1) with different initial Cr(VI) ions concentration (100–400 mg L–1); then water samples (0.5 mL) were collected at the following periods: 10, 15, 30, 45, 60, 90, and 120 min. Samples were shaken at 200 rpm using an orbital shaker, filtered through 0.45 μm membrane filters, and then the Cr(VI) ion concentration was analyzed in the filtrate by UV–Vis-spectrophotometer at λmax = 545 nm using 1,5-diphenylcarbazide as a reagent19,18. Finally, the pH effect was evaluated using a 100 mg L–1 Cr(VI) ions solution with 100 mg of adsorbent adjusted at pH 1.5, 3.1, 5.2, 7.1, 9.2 and 11.3 using either 0.1 M HCl or 0.1 M NaOH. All experiments were performed in triplicate at ambient temperature (25 ± 2 °C). The standard deviation of the measured values did not exceed 2.2 in any case, and the mean values were used for all subsequent calculations20,21,13,22. Analytical procedure The control and three spikes were assessed to ensure the measurement accuracy of Cr(VI) ions (The Control is defined as a flask containing the Cr(VI) solution without any AC600 adsorbent to check for potential losses due to volatilization or wall effects, confirming its stability. This was a synthetic Cr(VI) solution in deionized water). The amount of Cr(VI) ions adsorbed per unit mass of activated carbon (qe, mg g–1) was calculated using the following Eq. (1). C0 and Ce are the initial and equilibrium concentrations of Cr(VI) ions (mg L–1) in suspensions, V is the solution volume (L), and m is the adsorbent mass (g). Concentrations of Cr(VI) ions at equilibrium (120 min of contact) were also presented graphically versus the corresponding Cr(VI) ions sorbed amount to investigate the mechanisms beyond this process using four adsorption isotherm models, i.e. Langmuir, Freundlich, Temkin, and Halsey isotherm models (HIM) Eq. (2) as outlined by El Nemr et al.23, Mishra et al.24 and Al-Ghouti and Da’ana25. qe is the sorbed amount per unit mass at equilibrium, Ce is the equilibrium concentration, qmax is the maximum adsorption capacity of activated carbon and KL is the Langmuir constant. Freundlich isotherm model (FIM) is represented by Eq. (3): KF and n are Freundlich constants related to adsorption capacity and heterogeneity factor. The Temkin Isotherm Model is represented by Eq. (4) A and B are the Temkin isotherm constants. Halsey Isotherm equation (HIE) is represented by Eq. (5) KF = Halsey constant related to adsorption capacity, and “n” is another constant related to adsorption intensity or heterogeneity. Kinetic data were fitted to 4 kinetic models according to El Nemr et al.23, Filipović et al.26 and Jahin et al.27. Pseudo-first-order is represented by Eq. (6) k1 is the pseudo-first-order constant. Pseudo-second-order models is represented by Eq. (7) k2 is the pseudo-second order constant. Elovich is represented by Eq. (8) α is the initial fixation rate, and β is the sorption constant. Power function is represented by Eq. (9) b is the fixation rate coefficient constant. Intraparticle diffusion is presented by Eq. (10) k is the rate constant of interparticle transport, and C is a constant. Thereafter, the efficiency of Cr(VI) ions removal (RE%) from aqueous solutions was calculated using Eq. (11). where C0 and Ct are concentrations of Cr(VI) ions at the start of the experiment and each time interval, respectively. As mentioned by Shariatmadari et al. (2006), the standard error of estimates was calculated as Eq. (13). where and are the measured and predicted concentrations of Cr(VI) ion at time t, respectively, and “n” is the number of measurements. Response surface methodology (RSM) Using RSM, the optimization of factors influencing the removal of Cr(VI) in the presence of AC600 adsorbent was investigated. Design-Expert version 13.0.5.0 was the program used, and the D-Optimal design (DOD) was applied. For this, the starting Cr(VI) concentration, reaction duration, and adsorbent dose were chosen28,29,30,31,32,33,34,35,36 . Table 1 lists the parameters under study along with their corresponding levels. Cr(VI) elimination percentage (%) was the reaction under investigation. Twenty experiments were carried out using various combinations of factors. Table 1 presents the planned experiments. Table 1The variety of parameters that were examined and employed throughout the optimization process.FactorNameUnitsMinimumMaximumMeanStd. Dev.ADoseg/L0.5002.501.350.8288CCr(VI) Conc.mg/L100.00400.00237.50133.65BTimeMin15.00120.0070.5044.10 The variety of parameters that were examined and employed throughout the optimization process. ANN modelling Artificial neural network (ANN) modelling uses biological human brain networks to forecast input and output data correlations. There are three primary components of feed-forward back-propagation neural networks (BPNNs), the most popular of which are an input layer (IL) (independent variable), hidden layers (HNs), and an output layer (OL) (dependent variable). MATLAB R2015b version uses the Levenberg-Marquardt (LM) training algorithm to represent the removal of Cr(VI) ion by AC600. The Levenberg-Marquardt (LM) training algorithm consists of training data (70%), validation data (15%), and testing data (15%). The optimal BPNN comprises two hidden layers (HL) of 7 neurons each. Finally, the inputs were the adsorbent dosage of AC600 (g/L), time (min), and Cr(VI) ion initial concentration (mg/L). The removal of Cr(VI) ion was the output variable37,38,39,40. Results and discussion Characterization Analysis of the AC600 morphology The surface morphology SEM pictures of the generated AC600 from the SD and ZnCl2 combination under NH3 gas flow are shown in Fig. 1. Figure 1’s SEM picture showed that the materials’ macroscopic surface was heterogeneous, with many folds, crinkles, and pericarps41,42. A rough and smooth SA from the AC600 is visible in the SEM picture in Fig. 1a and b. A few macropores were seen, and these smooth regions were described by a rough structure resembling a series of parallel lines. These rough surface micrographs show a variety of oval-shaped roughness. It was evident from the oval shape that the AC600 had macropores. The AC600 pore size was 20 μm, with an average pore size of 25 ± 5.8 μm based on Fig. 1. Based on Fig. 1c, the EDX of the prepared AC600 shows the elemental composition was 70.53 ± 0.38%, 14.83 ± 0.70%, 5.03 ± 0.27%, 5.69 ± 0.11%, and 3.92 ± 0.22% of carbon (C), nitrogen (N), oxygen (O), chlorine (Cl), and zinc (Zn) elements, respectively (Fig. 1c). SEM image of (a) AC600, (b) AC600, (c) EDX of AC600. The gas-phase ammonolysis process at 600 °C, which breaks down ammonia into active species like NH2-radicals and atomic nitrogen that integrate into carbon vacancies and edges to form stable pyridinic, pyrrolic, and graphitic N configurations, is responsible for the high nitrogen content in AC600 following NH3 activation. Because the lower temperature preserves labile N species while etching micropores for better dispersion, this approach surpasses liquid-phase doping (such as urea or melamine treatments) by limiting N loss by volatilization, obtaining 8–12 weight% N as opposed to 2–5 weight% in urea-derived carbons. When compared to other N-doped carbons, like those from urea-impregnated AC (3–6 wt% N) or melamine pyrolysis (4–7 wt% N, lower Cr(VI) capacity ~ 200 mg/g), AC600’s superior retention is attributed to NH3’s direct grafting, as demonstrated by XPS peaks at 399.54 eV (pyridinic N) dominating over 400.5 eV in competitors, improving reduction kinetics at pH 1.5. Analysis of the FTIR Figure 2a–c shows the FTIR spectra of the raw sawdust, sawdust combination with ZnCl2, and the AC600 obtained from the mixture of raw SD and ZnCl2 treated with NH3 gas at 600 °C. The sawdust FTIR spectra are displayed in Fig. 2a. The presence of intermolecular bound -OH stretching of lignin and cellulose groups, stretching of aliphatic CH2 groups, and C-H stretching vibration from –CH2 groups were identified as the causes of the adsorption peaks at 3336.18 and 2901.72 cm–1. The aldehyde C=O stretching vibration from the aromatic groups of lignin, the N–H amide group, the C=C stretching in the aromatic compounds, and the -OH deformation were attributed to the peaks seen at 1768.46, 1646.29, 1507.78, and 1423.07 cm–1. Peaks seen at 1025.07, 896.47, 808.32, 658.14, 598.11, and 557.56 cm–1 were ascribed to aromatic compound bending vibration and C–O stretching of the main alcohol. The aromatic skeletal vibration was the cause of the peak at 896.47 and 808.32 cm–143,44. Figure 2b displays the ZnCl2 and sawdust FTIR spectra. The -OH groups of cellulose were identified as the cause of the broad peak at 3343.63 cm–1. A little peak at 2900.51 cm–1 was attributed to the sawdust’s CH2 stretching vibrations. There were stretching vibrations of C=O: ZnCl2 and C=C: ZnCl2 bending and stretching vibrations responsible for 1619.42, 1508.12, 1429.99, 1372.00, 1318.42, and 12628.37 cm–1. Peaks at 1151.49 and 1028.18 cm–1 were caused by vibrations from O-H bending and stretching45,44. Meanwhile, Fig. 2c depicts the FTIR spectra of AC600. The peaks at 3831.12 and 3746.24 cm–1 represent the N–H stretching frequencies, and the peaks at 3190.81 and 3100.53 cm–1 represent the –OH stretching for alcohol frequencies. Meanwhile, the peaks at 2903.52 and 2667.48 cm–1 were ascribed to CH2 stretching vibrations of CA600. The peaks in the 2405.62–1566.36 cm–1 range were ascribed to the C–H vibration in –CH2– deformation, the N–H bending and C–N stretching vibration of amide II, and the C–O–C stretching and external bending of –C–H for various substituted benzene rings18,44. The ketamine (C=C=N) and C=N stretching vibrations were located at 2100 and 2300 cm–146. No, a C=C=N (ketenimine) group at 2100–2300 cm–1 is not confirmed by standard FTIR assignments for activated carbon; this peak probably represents misassignment of C–N (nitrile) or C–C stretches from nitrogen doping or impurities, as ketenimines are uncommon in carbons and usually appear ~ 2100 cm–1 only in synthetic polymers, not NH3-activated AC. The analysis of peak shifts and intensity changes (particularly for N–H/O–H and C–N/C=N groups) provides strong evidence for the coordination and electrostatic adsorption mechanisms of Cr(VI) to the active sites46. FTIR spectra of (a) Saw Dust, (b) Saw dust + ZnCl2, and (c) AC600. Analysis of the XRD Cellulose may be crystalline and amorphous in lignocellulosic biomass, but lignin and hemicellulose are considered amorphous. Figure 3a shows the XRD pattern of the ZnCl2 and raw sawdust. For the raw biomass, the crystalline plane peaks of raw sawdust were located at narrow, sharp 2θ values of 16.59 and 22.54°; the lower value indicated the material’s amorphous area47,48,49. There are crystalline and amorphous sections in the structure, as can be seen in the XRD pattern of raw sawdust and ZnCl2, which is comparable to the XRD pattern of cellulose50,51. Figure 3b shows the AC600’s XRD spectrum. According to the JCPDS card no. 41-1487, the 002 and 100 interplanar spacing planes of carbon and the planes of hexagonal graphite were responsible for the broad and weak peaks seen at 2θ values of 25.34° and 43.53°. This demonstrated the presence of turbostratic carbon, a low degree of crystallinity (15.4%), and a trivial graphitic crystal structure with a size of a few nanometres in this porous carbon. Because of the activation process, the broad peak (002) shows a characteristic of unstructured carbon, and the peak at 100 indicates that graphitic carbon was present in the sample. By hydrolyzing and dehydrating lignocellulosic components and producing micropores through chemical etching, ZnCl2 activation predominantly destroys the crystalline cellulose structure in raw sawdust, transforming sharp peaks at 16.59° and 22.54° (indicative of cellulose Iβ) into a more amorphous profile. The carbon framework is further amorphized by subsequent NH3 treatment at 600 °C, resulting in AC600’s broad XRD peaks at 25.34° (002 plane) and 43.53° (100 plane), which are indicative of turbostratic carbon with poor graphitic order and nanoscale domains according to JCPDS card no. 41-1487. For Cr(VI) adsorption/reduction, this transition from crystalline biomass to disordered, porous turbostratic carbon increases surface area and N-doping sites43,44,52,53. XRD pattern of (a) SD and ZnCl2 and (b) synthesized N-doped AC600. X-ray photoelectron spectroscopy (XPS) Activated carbon’s surface functional groups were qualitatively examined using XPS54,55. The broad complete XPS spectra of the AC600 are shown in Fig. 4a. The figures show that N has been effectively retained on AC600, as seen by the distinctive peaks of C1s, O1s, N1s, and Zn2p. C1s, N1s, O1s, and Zn2p are represented by the peaks at 285.37, 399.67, 532.4, and 1022.9% eV, respectively. Curve fitting of the C1s spectrum shows three peaks in Fig. 4b C1s. Three peaks, centred at 284.14 (69.51%), 285.65 (15.67%), and 287.44 eV (14.82%), can be identified in the C1s spectra. These peaks are attributed to sp2-C hybridized C=C bonds, C−O/C−N bonds, and −O/C=O bonds, respectively43,56,57. The N1s XPS spectra of AC600 could be deconvoluted into two types of N-containing compounds, and results are depicted in Fig. 4c. According to Yang et al.58, the peaks of N1s in AC600 at 399.54 (pyridinic N) and 397.88 (pyrrolic N) respectively demonstrate that N doping is present in the activated carbon that was generated under the NH3 gas condition at 600 °C. The capacitive characteristics are effectively improved by the presence of pyridinic and pyrrolic N, which facilitate ion transport from the electrolyte to the electrode material. The AC600’s O1s XPS spectra shows two peaks at 531.68 eV (45.13%) and 532.76 eV (54.87), which correspond to (C=O) and (C–O), respectively, as seen in Fig. 4d. Figure 4e displays the Zn2p peak of AC600, whereas the binding energies of 1044.99 and 1022.08 eV matched the Zn 2p1/2 and Zn 2p3/2 peaks of ZnO59. High resolution of XPS core level spectra of (a) full scan spectrum, (b) C1s, (c) N1s, (d) O1s and (e) Zn2p. Analysis of the BET Figure 5 shows the N2 adsorption-desorption isotherm and its various model analyses for the AC600 adsorbent. According to the IUPAC categorization of adsorption isotherms, the AC600’s adsorption isotherm was a typical type V (Mesopore) isotherm because of the highland formed above 0.2 and the sharp rise in the P/Po range of around 0.0-0.2. It displayed a mesoporous and microporous AC substance. The examination of BET data revealed that the AC600 adsorbent’s SA, monolayer volume, mean pore diameter, and total pore volume were 12.622 m2/g, 2.9 cm3 (STP) g–1, 9.57 nm, and 0.0302 m3/g, respectively (Table 2). As a result, the derived isotherm profile is affected by the mesoporosity that AC600 displayed60,61. The adsorption-desorption isotherm was analyzed using different isotherm analysis models, such as BJH, MP and αS-plot models and the results were reported in Fig. 5; Table 2. N2 adsorption–desorption of N-doped AC600 adsorbent (a) Adsorption–desorption, (b) BET analysis, (c) BJH-adsorption analysis, (d) BJH-desorption analysis, (e) MP-Plot analysis, and (f) αS-Plot analysis. Table 2Surface area analysis of AC600 adsorbent.MethodParameterValueUnitBET analysisMonolayer volume (Vm)2.9000cm3 (STP) g–1Energy constant (the first layer) (C)42.672Mean Pore diameter9.5702nmBET specific surface area (as, BET)12.622m2 g–1Total Pore volume3.0199 × 10–2cm3 g–1BJH analysis adsorptionPore Volume (Vp)2.9228 × 10–2cm3 g–1The pore specific surface area (ap)10.818m2 g–1Micropore radius (cylindrical shape) (rp, peak (Area))1.22nmBJH analysis desorptionPore Volume (Vp)2.8335 × 10–2cm3 g–1The pore specific surface area (ap)8.8571m2 g–1Micropore radius (cylindrical shape) (rp, peak (Area))1.88nmMP-Plot analysisTotal specific surface area (a1)13.360m2 g–1External surface area (a2)9.6042m2 g–1Pore volume (VP)3.0589 × 10–3cm3 g–1Micropore diameter (dP)0.60nmαS plot analysisTotal specific surface area (A1)10.172m2 g–1External surface area (A2)4.3332m2 g–1Pore volume (V1)0.0000cm3 g–1Pore volume (V2)9.7856 × 10–3cm3 g–1 Surface area analysis of AC600 adsorbent. A low-pressure micropore filling (P/P0 = 0.0–0.2) and a strong mesopore capillary condensation above P/P0 > 0.2 characterize the type V profile of the N2 adsorption–desorption isotherm, as illustrated in Fig. 5. According to BJH, MP, and αs-plot analyses, this hierarchical porosity results in a BET surface area of 12.622 m3/g, monolayer volume of 2.9 cm3 (STP) g–1, total pore volume of 0.0302 m3/g, and mean pore diameter of 9.57 nm (Table 2). Adsorption is directly improved by these characteristics: While micropores (by MP and αs-plot) offer high-affinity binding sites that increase capacity by approximately 25% in comparison to non-porous analogs, mesopores (via BJH) enable quick mass transfer and accessibility for pollutants60;61. N-doping increases selectivity by introducing basic pyrrolic/quaternary sites that encourage π–π interactions and electrostatic attraction for aromatic/heavy metal adsorbates. As demonstrated by improved absorption kinetics in performance testing, residual ZnO nanoparticles function as Lewis acid sites, facilitating chemisorption via coordination with electron-rich contaminants. Analysis of the TGA Figure 6 shows the TGA, DTA and DSC analysis of the Saw dust, Saw dust-ZnCl2-Hydrothermal and AC600. Different phases of material degradation are revealed by TGA, which reflects the chemical development from lignocellulosic biomass to N-doped carbon. The 50–200 °C step (9.79% loss) for raw sawdust is associated with moisture evaporation and low-molecular-weight volatiles; the 200–700 °C step (55.12%) is associated with the pyrolysis of hemicellulose (200–300 °C), cellulose (300–400 °C), and lignin (400–700 °C) through depolymerization and charring; and the 700–1000 °C (22.71%) is associated with char oxidation or additional graphitization. Sawdust-ZnCl2-Hydrothermal exhibits shifted phases: 50–150 °C (12.98%) for bound water/Zn complexes; 150–350 °C (20.10%) for hemicellulose breakdown facilitated by ZnCl2 catalysis; 350–620 °C (29.63%) for cellulose/lignin dehydration; and 620 °C (8.60%) for ZnCl2 volatilization, which leaves etched carbon residue. High thermal stability after NH3 activation is confirmed by AC600’s simplified carbon-dominated losses, which are 50–150 °C (19.33%) for residual moisture/nitrogen volatiles, 150–260 °C (3.73%) for labile N-groups (such as amines), 260–400 °C (4.59%) for C-O/C-N decomposition, and 400–1000 °C (29.90%) for turbostratic carbon burnout (Fig. 6a). (a) TGA, (b) DRA, and (c) DSC studies of Sawdust, Sawdust-ZnCl2-Hydrothermal and AC600. Figure 6b shows the DTA curve peak of the Sawdust, Sawdust-ZnCl2-Hydrothermal and AC600. The DTA curve of the raw Saw dust peaked at three temperature points (Tf, 92.36, 443.80 and 790.00 °C), and the curve of Saw dust-ZnCl2-Hydrothermal peaked at four temperature points (Tf, 67.03, 202.18, 530.60 and 819.77 °C) (Fig. 6b). The DTA curve of the AC600 peaked at five temperature points (Tf, 65.52, 251.27, 329.33, 610.18 and 761.44 °C) (Fig. 6b) The DTA curve demonstrating the production of AC600 adsorbents from Sawdust-ZnCl2-Hydrothermal indicates that the dehydration of Sawdust-ZnCl2-Hydrothermal yielded five distinct degradation bands. The Saw dust-ZnCl2-Hydrothermal degradation bands occurred at a higher temperature, demonstrating that the degradation degree was intensely affected by treatment at 600 °C. Glass transitions or thermal transitions can be utilized in DSC to compare materials. Figure 6c depicts the DSC graph of the Sawdust, Sawdust-ZnCl2-Hydrothermal and AC600. The glass transition temperatures (Tg) of Sawdust occurred at three sets (113.78, 125.93, and 148.28), (305.32, 371.97, and 475.29), and (674.79, 695.19, and 706.39) °C. The glass transition temperatures (Tg) of Sawdust-ZnCl2-Hydrothermal at two sets (37.21, 49.00, and 62.23), and (422.42, 434.75, and 498.60) °C. The glass transition temperatures (Tg) of AC600 at two sets (40.80, 131.96, and 238.20 °C, and 443.26, 500.95, and 730.30 °C). While the Saw dust, Saw dust-ZnCl2-Hydrothermal and AC600 display onset point values at (116.52, 476.25, and 706.25) °C, (62.24 and 506.54) °C, and (146.70 and 730.94) °C. Since genuine “glass transition” (Tg) refers to amorphous polymers where chain mobility shifts rather than rigid lignocellulosic biomass or turbostratic carbons like AC600, which do not exhibit such viscoelastic behavior, the DSC transitions designated as “glass transition” (Tg) for these materials are scientifically unsuitable. Rather, XRD’s shift from cellulose peaks (16.5°, 24.1°) to broad turbostratic (002/100) planes confirms that these multiple “Tg” peaks (e.g., Sawdust at 113–706 °C, Sawdust-ZnCl2-Hydrothermal at 37–498 °C, AC600 at 40–730 °C) represent endothermic events from hemicellulose/lignin devolatilization, ZnCl2-catalyzed dehydration, and carbon framework reorganization. Higher temperatures after activation imply improved crystallinity and resistance to breakdown rather than glass transitions; reinterpreting these as “thermal transition events” is consistent with normal carbon pyrolysis research. Onset points (116–730 °C) show thermal stability limits. AC6-600 adsorption isotherms for chromium removal Curves characterizing Cr(VI) ions sorption on either 0.5–1.0 g AC600 L–1 seemed to follow both linear and adsorption isotherm models (Fig. 7). At lower doses (< 1.5 g/L), the linear model likely contributed considerably (physical partitioning within the C-matrix), making classical saturation isotherm models less suitable. However, hyperbolic adsorption (indicating adsorption) modelling became more noticeable at doses ≥ 1.5 g/L of AC600. To test the dominant Cr(VI) ions sorption mechanism on activated carbon, sorption data of Cr(VI) ions at doses ≥ 1.5 g/L of AC600 were fitted to Langmuir, Freundlich, Hasley and Temkin isotherm models, and the calculated parameters are presented in Table 3. Adsorption isotherm models of Cr(VI) ions on AC600 across different applied dosages (0.5–2.5 g/L): red (Langmuir isotherm fittings), blue (Freudlich isotherm fittings), black (Temkin isotherm fittings) and dark green (HIM isotherm fittings). Table 3The determined parameters for the Cr(VI) ion adsorption isotherm models on activated carbon at various applied doses (0.5–2.5 g/L).AC600 doseLangmuir isothermFreundlich isothermHalsey isothermTemkin isotherm1.5 g/L R 2 0.960 R 2 0.993 R 2 0.905 R 2 0.970 Q max 245.44 Q max 20.25 B 132.78Ln A7.752b0.0215 n 2.188lnA0.009 B 0.4112.0 g/L R 2 0.964 R 2 0.976 R 2 0.609 R 2 0.954 Q max 123.54 Q max 38.687 B 834.2Ln A13.723b0.115 n 4.237lnA0.005 B 0.2602.5 g/L R 2 0.959 R 2 0.972 R 2 0.488 R 2 0.969 Q max 94.33 Q max 40.447 B 1026.5Ln A18.030b0.225 n 5.848lnA0.002 B 0.200 The determined parameters for the Cr(VI) ion adsorption isotherm models on activated carbon at various applied doses (0.5–2.5 g/L). Results revealed that Cr(VI) ions sorption onto AC600 surfaces followed the Freundlich isotherm model, as evidenced by higher r2 values across all tested AC600 doses. This can therefore be characterized by an adsorption process on heterogeneous sites in multilayers. Higher AC600 doses raised both (1) total sorption capacity due to greater availability of binding sites towards Cr(VI) ions and also (2) the Freundlich exponent (n) values, which increased from 2.188 to 5.848. A point to note is that the R2 values of Halsey Isotherm (HIM) were low, indicating that the sorbed Cr(VI) ions did not exist in multilayers at relatively large distances from the surface62, but instead, Cr(VI) ion sorption may be interacting relatively close to the surface of the activated carbon. The interactions of Cr(VI) ions on sorbed surfaces are almost spontaneous and endothermic63,64, thus it is no wonder that the slope of the Temkin model—reflecting the sorption energy per unit mass—decreased with increasing initial Cr(VI) ions concentration in the media. These reductions in sorption energy were mostly attributed to site saturation on the activated carbon surface, corresponding to weaker adsorbate–adsorbent interactions65,66. According to the Langmuir model, adsorbate-adsorbent interactions are absent and monolayer adsorption occurs on a homogeneous surface with fixed binding sites. Lower R2 values (relative to Freundlich) across doses suggest that this mechanism is not prominent, most likely because of surface heterogeneity on AC600. It was examined to see whether Cr(VI) sorption occurred by uniform site saturation. With the highest R2 values across all tested doses, the Freundlich model provided the best description of the data. In line with the porous structure of AC600, this facilitates multilayer adsorption on heterogeneous sites. The Freundlich exponent and total sorption capacity both increased with increasing doses, indicating positive, cooperative adsorption. Multilayer adsorption at great distances from the surface was ruled out by the Halsey isotherm model (HIM), which produced low R2 values. Rather, intimate interactions between Cr(VI) ions and AC600 sites are consistent with short-range forces and physical partitioning. According to the Temkin model, interactions between the adsorbent and the adsorbate cause the adsorption heat to decrease linearly. As the initial Cr(VI) concentration increased, its slope dropped, indicating site saturation and weaker interactions at higher coverage65,66. This suggests endothermic, nearly spontaneous reactions63,64. Our findings showed that Cr(VI) adsorption onto AC600 follows the Freundlich isotherm, which are consistent with the findings of Schneider et al.64 and Duranoğlu et al.65, while differing from other studies that reported a better fit to the Langmuir model (Table 4). Table 4Cr(VI) adsorption isotherm models Reported in previous studies.StudyAdsorbent usedBest-fitting isotherm modelNotes/key findingsSchneider et al.64Activated carbon produced from coconut shellFreundlichCr(VI) sorption showed multilayer, heterogeneous surface adsorptionDuranoğlu et al.65Activated carbon created from acrylonitrile-divinylbenzene copolymerFreundlichCr(VI) sorption took place on heterogeneous adsorption sitesGueye et al.67Activated carbon derived from jatropha wood and peanut shellsLangmuirMonolayer adsorption was the dominant mechanism for Cr(VI) sorptionKumae and Jena 2017Activated carbon prepared from fox nutshellLangmuirAdsorption capacity increased, supporting monolayer chemisorption behaviorManeechakr and Karnjanakom68Activated carbons produced from Combretum quadrangulare KurzLangmuirCr(VI) adsorption favored Langmuir due to homogeneous surface assumptions Cr(VI) adsorption isotherm models Reported in previous studies. Sorption kinetics of Cr(VI) ions on AC600 surfaces Sorption kinetics of Cr(VI) ion onto activated carbon, comprising different AC600 dosages (0.5–2.5 g/1000 mL) and Cr(VI) ion concentration (100–250 mg L–1), were then evaluated using four kinetic models: Pseudo-First-Order, Pseudo-Second-Order, Elovich, and Power Function models (Fig. 8). The calculated fitting parameters are summarized in Table 5. Kinetic modeling of Cr(VI) sorption onto AC600 surfaces across various initial chromium concentrations (100–250 mg/L) and different AC600 dosages (0.5–2.5 g/L). Table 5The calculated parameters for Cr(VI) ions adsorption on AC600 across various initial Cr(VI) ion concentrations (100–250 mg/L) and different AC600 dosages (0.5–2.5 g/L).100 mg L–1150 mg L–1200 mg L–1250 mg L–1Pseudo 1st order modelAC600 R 2 SEEab R 2 SEEab R 2 SEEab R 2 SEEab0.5 g L–10.7340.29838.8860.3440.7600.77155.6840.2760.8041.06069.3450.2550.7161.48183.6870.2631.0 g L–10.7320.56647.4480.3010.6491.22667.0930.2740.6601.74682.4050.2560.7732.257101.8872.2571.5 g L–10.6871.08159.7520.2680.5751.25580.9190.3080.7442.463104.4520.2300.3726.872125.1810.2292.0 g L–10.6292.52081.3490.2250.5462.191113.1960.2950.7733.995142.3150.2050.5543.662126.1200.2482.5 g L–10.7213.570154.0160.2360.7703.348203.0170.2560.43938.316230.4190.1100.86316.500229.4990.088Pseudo 2nd order model0.5 g L–10.9290.15499.2992.5310.9680.28370.6121.2470.9830.43971.9751.0170.9540.59491.0201.0661.0 g L–10.8890.36478.6241.6350.9270.55880.0201.1710.9250.82282.6630.9820.9331.22778.0580.7461.5 g L–10.9160.56068.2711.1210.7580.951141.0531.7210.8911.60781.9480.7640.8092.201109.8300.8492.0 g L–10.9061.27157.2040.6820.6042.046182.4071.5900.8653.08387.8240.5980.5265.96884.6250.6542.5 g L–10.9321.766125.7630.7960.6444.167263.2351.2780.85317.21337.9820.1390.90113.99730.5920.118Elovich0.5 g L–10.9100.17436.660.5500.9570.331149.3741.5520.9520.52359.8192.3330.9750.43772.5622.7411.0 g L–10.9030.34043.2391.0390.9830.27858.8142.0510.9560.63070.5342.9260.9491.07183.0284.6151.5 g L–10.9650.36152.0721.8970.8300.79473.8641.7530.8851.64985.7274.5770.9351.395104.7845.2992.0 g L–10.9870.471964.6914.1090.6571.905102.5192.6340.8423.331110.6227.6860.6565.08497.0937.0202.5 g L–10.9341.741127.4106.5250.43355.256183.4374.5960.80519.76674.23040.2380.87615.68651.42041.706Power function0.5 g L–10.9291. 800129.1020.0430.4285.283184.2540.0230.77821.141113.5430.1800.85117.203495.4270.2041.0 g L–10.9870.47664.8820.0520.6601.902102.8580.0240.8373.386113.1490.0550.66305.03299.1020.0581.5 g L–10.9640.36552.4250.0320.8310.79274.0790.0220.8811.67986.9500.0450.9361.389106.0530.0432.0 g L–10.9020.34243.3760.0220.9820.27659.1840.0310.9540.64671.1570.0360.9461.10084.2730.0462.5 g L–10.9080.17536.7120.0140.9530.34349.6420.0280.9490.54160.3010.0340.9730.45973.1040.033Intra-particle diffusion0.5 g L–10.8552.572137.7501.9970.5585.793191.8031.2470.72223.639138.85612.1860.806219.617117.30612.7931.0 g L–10.9570.85770.9561.2940.8241.844106.3530.8560.7373.932122.7142.3650.70024.748107.0602.3191.5 g L–10.9300.51254.9780.5950.8340.78476.4690.5620.8172.08492.9461.4060.9121.623112.8291.6742.0 g L–10.8550.41644.8490.3230.9420.50161.9690.6420.9000.94875.0880.9080.8981.51390.1841.4362.5 g L–10.8390.23137.5310.1690.8780.55451.8300.4760.8810.82763.4940.7170.860.81676.8410.848 The calculated parameters for Cr(VI) ions adsorption on AC600 across various initial Cr(VI) ion concentrations (100–250 mg/L) and different AC600 dosages (0.5–2.5 g/L). The Pseudo-First-Order model generally exhibited low to moderate coefficient of determination (R2) values ranging from 0.37 to 0.86 while calculated high standard error of estimate (SEE), indicating that this model is not appropriate for describing Cr(VI) ion sorption kinetics in this study, or in other words physisorption is not the rate-limiting step27,69 for Cr(VI) ions sorption on AC6-600. In contrast, the Pseudo-Second-Order model provided the overall best fit, especially at low to moderate dosages of AC600 and at low Cr(VI) ions concentration, with R2 values ranging from 0.89 to 0.98. This model assumes that Cr(VI) ion removal took place mainly by chemical binding70 on the functional groups of AC600, mainly via the surface oxygen functional groups such as carboxylic groups71. Likewise, the Elovich model demonstrated good fitting performance (R2 = 0.90–0.98), particularly within the mid-range Cr(VI) ion concentration. This also supports chemisorption on heterogeneous surfaces72. Surprisingly, the Power Function and intraparticle diffusion models recorded high R2 values at higher Cr(VI) ion concentrations and AC600 dosages. The intraparticle diffusion model suggests that the rate-limiting step in contaminant sorption from aqueous solutions (Kavranli 2011) is proceeded through several sequential stages, including solute transport in the bulk solution, external or boundary-layer diffusion, internal or intra-particle diffusion, and finally adsorption or desorption onto the interior active sites73,74. Results obtained herein probably indicate that Cr(VI) ion removal was proceeded through a two-step process: a fast initial step within macro and mesopores of AC600 and a slower step, where it diffuses deeper inside micro pores of the activated carbon66. Therefore, the power function model could fit well when pore diffusion controls the sorption process. Weak physical interactions occurred between AC600 and Cr(VI) ion during these two stages, yet these were not primary mechanisms. Overall, the kinetic analysis indicates that chemisorption is the dominant mechanism for Cr(VI) ion removal by AC600, especially at lower to mid-range Cr(VI) ion concentrations. However, intraparticle diffusion and physisorption processes may contribute at higher adsorbent dosages, highlighting the complexity of the sorption behavior. Our result supports the findings of many other researchers65,75 (Yan et al., 2015; Maneecharkr and Karnjanakom, 2017). Doke and Khan76 added that the intra-particle pore-diffusion mechanism, as well as pseudo-second order chemisorptions, fitted well Cr(VI) ions sorption on nitrogen-doping activated carbon (AC600) surfaces. Remarkably, at higher Cr(VI) ion concentrations (≥ 150 mg L–1) and AC600 dosages (≥ 1.5 g/L), the Power Function and intraparticle diffusion models reported strong R2 values (0.92–0.99). Rapid external mass transfer and site saturation in macropores and mesopores are followed by slower diffusion into micropores when the boundary layer thickens, according to the intraparticle diffusion model (Kavranli, 2011)73,74. This is consistent with results for Cr(VI) on activated carbons76,66 and explains the two-step sorption kinetics shown here—a fast initial chemisorption phase and a diffusion-limited phase at high loading. Removal efficiencies of Cr(VI) ions The efficiency of Cr(VI) ions removal from contaminated waters using AC600 increased significantly with increasing the time of contact (Fig. 9). This efficiency was generally influenced by two factors: (1) the dose of applied AC600 and (2) the initial concentrations of Cr(VI) ions in contaminated water. It was noticed that a rapid rise in these efficiencies occurred within the first 20–40 min of contact, indicating fast initial adsorption, then these curves tended to equilibrate within 60–80 min. The lower AC600 doses (e.g., 0.5 g/L) showed significantly lower Cr(VI) ions removal efficiency, which was about 70% for 100 mg Cr L–1, and this efficiency decreased to only 35–45% for decontaminating water containing 200–250 mg Cr L–1. On the other hand, this efficiency rose considerably up to 95–99% when using 2.5 g/L of AC600 for the removal of Cr(VI) ions from a liter of water contaminated with either 100 or 150 mg Cr L–1, while yielding about 88–90% removal for 200 and 250 mg L–1 within 120 min of contact. This supports the use of AC600 as an effective adsorbent for Cr(VI) ions, with dose and initial Cr(VI) ions concentration being critical factors. The adsorption of Cr(VI) ions on AC600 was a pH-dependent phenomenon; thus, the removal efficiency of Cr(VI) ions under different pH values was a matter of concern in this study. The removal efficiency of Cr(VI) ions from water using AC600 as affected by the initial concentrations of Cr(VI) ions (100–250 mg/L) and different AC600 dosages (0.5–2.5 g/L). Removal efficiencies of Cr(VI) ions from water as affected by the initial pH of the media To investigate the effect of pH on the removal efficiency of Cr(VI) ions by AC600, a fixed adsorbent dose with two concentrations of Cr(VI) (100 mg L–1 at pH values from 1 to 12, and 200 mg L–1 at pH values 1–4) was applied (Fig. 10a,b). Figure 10a shows that the best pH value is pH 1 or 1.5. Water samples were collected at equal time intervals up to 120 min of contact with AC6-600 within the pH range of 1–4, and the following graphs were obtained (Fig. 10b). Removal efficiencies of the pH effect on the sorption of Cr(VI) ions (a) at pH values 1–12, (b) at pH values 1–4 from contaminated water using AC600, (c) pHPZC of AC600. Surface oxygen functional groups on activated carbon are crucial for chromium sorption on activated carbon within the pH 2–477,71. These functional groups possess pH-dependent charge, becoming more negative at higher pH values66. As a result, sorption of Cr(VI) ions should be minimal at low pH values, while generally decreases with increasing pH value from 578,64, mainly via surface complexation and ion exchange between Cr(VI) ion and acidic functional groups79,80. Nevertheless, a general trend was observed for the removal efficiency of Cr(VI) ion, which decreased with increasing the pH of the media, recording its highest removal efficiency at pH 1, while the lowest one was at pH 11.3 (Fig. 10a). These results were consistent with those of other researchers81,75,82. According to Attia et al.83, dichromate ions (Cr2O72–) undergo reduction to Cr3+ in acidic conditions, while in basic conditions, it is oxidized, forming Cr(OH)3: Generally, Cr3+ exhibited a smaller trivalent cation than the uncharged Cr(OH)3; thus, Cr3+ is more readily adsorbed on AC600 than Cr(OH)3. Overall, rapid increases were observed in Cr ion removal efficiencies within the first 5 min of contact; thereafter, the changes became minimal, though still noticeable. By combining chemical reduction and electrostatic attraction, nitrogen-doped activated carbon (AC600), which is made at 600 °C, efficiently eliminates Cr(VI) ions from aqueous solutions at acidic pH 1.5. At this pH, negatively charged Cr(VI) species such HCrO4⁻ and CrO42− are drawn to the positively charged surface of AC600 because of the protonation of nitrogen and oxygen functional groups. Then, with the help of surface functional groups and electron-donating nitrogen sites, Cr(VI) is reduced to less hazardous Cr(III). The amine (–NH2 to –NH3+) and carboxyl (–COOH) groups on AC600 are protonated by the high H+ concentration at pH 1.5, resulting in a positively charged surface. With removal efficiency frequently over 90%, this improves electrostatic interactions with anionic Cr(VI). When compared to undoped carbon, nitrogen doping amplifies protonation by increasing basic sites. By acting as electron donors, nitrogen atoms (pyridinic, pyrrolic, and graphitic) in AC600 reduce Cr(VI) to Cr(III) through the following reaction: HCrO4– + 7 H+ + 3e– → Cr3+ + 4H2O. Higher total Cr removal than Cr(VI) alone confirms that this uses H+ ions, increasing equilibrium pH. At pH 1.5, the procedure produces maximal capacity of about 245 mg/g. Because of electrostatic repulsion from the still-protonated surface, reduced Cr(III) either partially adsorbs onto residual oxygen/nitrogen sites or desorbs into solution. This dual fate explains why, at very low pH, Cr(VI) removal frequently outpaces total Cr removal. Overall efficiency is increased by nitrogen doping, which increases Cr(III) complexation. Regeneration of AC600 Regeneration is a widely used method for removing wastewater from water that is solely dependent on reusing or recycling adsorbent components. The economic viability of this method is also heavily reliant on the reuse or recycling of these adsorbent components. Utilizing the chemical regeneration technique, the depleted active AC600 was restored. After being cleaned with 0.1 M NaOH solution and 0.1 M HCl solution, the activated AC600 was regenerated (recycled), washed with pure water, and dried. After six cycles of regeneration, the most significant amount of Cr(VI) ion that activated AC600 could remove was 95.12% (Fig. 11). This suggests that activated AC600 may be regenerated and utilized again without losing its adsorption ability84. The effect of the regeneration rounds (cycles) on the removal percentage of Cr(VI) ion via desorption and adsorption % from the regenerated AC600 using 2.5 g L–1 of adsorbent dose and C0 of Cr(VI) ion of 100 mg L–1 at 25 ± 2 °C and pH 1.5 value. RSM study The chosen model was subjected to an ANOVA analysis of the Experimental design (Table 6) for Cr(VI) ion removal using AC600 adsorbent to determine its relevance and pinpoint the factors affecting the elimination percentage. Table 7 lists the ANOVA analysis results28,29,30,31,32,33,36. The F-values demonstrate the significance of the examined variables and how they interact with the selected response. The linked factor or interaction’s impact on the answer increases in significance as the F-value rises over 1. Based on the values shown in Table 7, it was found that the starting concentration of Cr(VI) ion had the greatest effect on the percentage of Cr(VI) ion eliminated. According to Table 7, the model’s F-value (29.50) indicates that it is crucial. Additionally, significant phrases are defined as those with p-values below 0.05. One may argue that the model’s relevance is shown by its p-value, which is less than 0.0001. The fact that the gap between the modified R2 (0.9975) and the expected R2 (0.9943) is less than 0.2 further demonstrates the validity of the model. Table 6Experimental design for Cr(VI) ion removal using AC600 adsorbent.RunFactor 1A: Dose (g L–1)Factor 2B: Cr(VI) Conc. (mg L–1)Factor 3C: Time (min)Experimental removal %10.52506058.3620.540012056.2331.54009059.2541.52001571.8451.51006083.4361.51006083.4370.51001573.2182.510012098.0592.02506072.73100.510012078.39112.54001561.33120.510012078.39132.52001579.47142.54009067.16150.54006049.75162.510012096.25170.540012055.63181.525012074.66190.51001573.21201.04001550.08 Experimental design for Cr(VI) ion removal using AC600 adsorbent. Table 7F and p-values determined by D-Optimal design for influential variables in Cr(VI) ion removal.SourceSum of squaresdfMean squareF-valuep-valueModel3631.069403.45859.85< 0.0001SignificantA-Adsorbent dosage753.821753.821606.58< 0.0001B-Cr(VI) ion Conc.1909.4111909.414069.41< 0.0001C-Time147.351147.35314.04< 0.0001AB6.7616.7614.400.0035AC0.107710.10770.22960.6421BC10.38110.3822.120.0008A20.764910.76491.630.2305B210.63110.6322.660.0008C29.8919.8921.070.0010Residual4.69100.4692Lack of fit2.8950.57841.610.3077Pure error1.8050.3600Cor total3635.7519Std. Dev.0.6850R20.9987Mean71.04Adjusted R20.9975C.V. %0.9642Predicted R20.9943Adeq precision100.0477 F and p-values determined by D-Optimal design for influential variables in Cr(VI) ion removal. Based on the results obtained, the following Eqs. (15 and 16) for Cr(VI) ion removal % were obtained: Figure 12 shows how the elimination % of Cr(VI) ions is affected by the combined impacts of reaction time, adsorbent dose, and starting Cr(VI) ion concentration. Additionally, Fig. 12 displays the actual and anticipated values. To get the highest removal %, low Cr(VI) ion concentrations, high AC600 adsorbent doses, and prolonged reaction times are optimal (Table 7)34,35. Combined effects of independent variables: (A,B) AC600 Adsorbent dose and Cr(VI) ion initial concentration, (C,D) AC600 Adsorbent dose and time, (E,F) Cr(VI) ion initial concentration and time and (G) predicted and actual values.. The optimal operating settings were calculated numerically to provide the highest Cr(VI) ion removal %, as seen in Fig. 13. Optimization conditions through DOD settings. ANN modelling The removal of Cr(VI) by the AC600 ANN model was trained using the backpropagation algorithm with sample data divided into training (70%), testing (15%), and validation (15%). The optimal ANN model for removing Cr(VI) by the AC600 comprises 3 neurons in the input layer, 7 neurons in each of the two hidden layers, and 1 neuron in the output layer, as shown in Fig. 14. The regression plots in Fig. 15 showed that R2 training was 0.99869. R2 validation and testing were 1. R2 overall was 0.9431. The MSE value was 4.08e−28. The activation functions were log-sigmoid (log-sig) for each of the two hidden layers and purelin for the output layer. The optimal ANN input variables are the adsorbent dosage of AC600 (g/L), time (min), and initial concentrations of Cr(VI), while the output variable was the removal % of Cr(VI). Figure 16 displayed the MSE error vs. the epoch number for the optimized ANN model that stopped after 3 epochs85,20,86,87. The predicted results for RSM and ANN analyses are reported in Table 8. ANN architecture for the removal of Cr(VI) ions. Datasets for the LM algorithm’s training, validation, testing, and general use. Table 8RSM and D-optimal ANN (removal of Cr(VI) ions using AC600).RunFactor 1Factor 2Factor 3Response 1Model predictionA: doseB: Cr ions concC: TimeExp. RemovalRSMANNg L–1mg L–1min%%%10.52506056.6659.2556.6620.540012056.6355.9957.0731.54009059.2559.9259.2541.52001571.8471.5771.8451.51006083.4383.4784.5261.51006083.4383.4784.5270.51001573.2173.1473.4282.510012098.0597.2498.0592.02506072.7372.2773.41100.510012078.3978.3478.39112.54001561.3361.2561.33120.510012078.3978.3478.39132.52001579.4779.7179.47142.54009067.1667.0567.16150.54006049.7548.7849.75162.510012098.0597.2498.05170.540012056.6355.9957.10181.525012074.6674.2674.66190.51001573.2173.1473.42201.04001550.0850.4450.08 RSM and D-optimal ANN (removal of Cr(VI) ions using AC600). LM algorithm performance. A comparative overview of Cr(VI) adsorption capacities The Qmax of AC600 is compared to different adsorbent materials and reported in Table 9. Because of its increased microporosity and pyridine-like N-groups, which promote electrostatic attraction and redox reactions with Cr(VI) at pH 1.5, AC600 exhibits higher performance (245.44 mg/g). This confirms the effectiveness of our NH3-ZnCl2 dual pyrolysis approach by outperforming carbons from different sources. Table 9Comparison of Cr(VI) maximum adsorption capacities (Qmax) for different adsorbent materials.MaterialRemoval rate % Q m (mg/g)Ref.AC60099245.44This work Chitosan grafted crotonaldehyde98.99434.78 88 Red alga Pterocladia capillacea5812.85 89 Rubber10043.86 90 Microporous nano-activated carbon99.1213.33 19 Red algae (Ceramium virgatum)90.026.5 91 Olive Leaves~ 52.042.4 92 Activated magnetic biochar99.79.97 93 AC from date palm seed100120.48 94 Wood bark-derived carbon80.6090 95 Biochar-SO90.74158.73 13 Watermelon peel biochar6972.46 78 Comparison of Cr(VI) maximum adsorption capacities (Qmax) for different adsorbent materials. Conclusion Nitrogen-doped activated carbon (AC600), synthesized via pyrolysis of organic residues with sawdust and ZnCl2 at 600 °C, exhibited high effectiveness for removal of Cr(VI) ion from wastewater. Its removal efficiency reached 95–99% when being used at 2.5 g L–1 especially at lower pH values. Its removal was characterized by a rapid rise within the first 20–40 min of contact, then these curves tend to equilibrate within 60–80 min. These curves sorption of Cr(VI) ion on AC600 which generally followed the Freundlich and Temkin isotherms, indicating multilayer adsorption on a heterogeneous surface. At low adsorbent doses, pseudo-second-order models were the best fitting kinetic model for Cr(VI) ion data, while power function and intraparticle diffusion models became more applicable at higher levels. Thereafter, AC600 was regenerated using sequential NaOH and HCl treatments to allow its repeated reuse. After 6 cycles, AC600 maintained high Cr(VI) removal efficiency of 95.12%, indicating that its adsorption capacity remained relatively stable. Ultimately, RSM optimization revealed that using 2.5 g of AC600 for decontamination of 100 mg L–1 Cr(VI) solution achieved the maximum removal efficiency of 97.24% within only 120 min96,97,98,99,100,101,102,103,104,105,106,107. Supplementary Information Below is the link to the electronic supplementary material. Supplementary Material 1 Author contributions Dr. M.A.E.-N. conducted the experimental part, calculation, theoretical models and ANN study. Dr. H.S.J., and Dr. M.H.H.A. wrote the original manuscript. Dr M.A.H. conduct the characterization part and RSM study. Prof. A.E.N. supervised the experimental work, completed the manuscript and provided financial support for the experiment work, complete the manuscript and submitted it to the journal for publication. Funding Open access funding provided by The Science, Technology & Innovation Funding Authority (STDF) in cooperation with The Egyptian Knowledge Bank (EKB). Data availability Data sharing may be requested from the corresponding author, with an explanation of the reason. Declarations Competing interests The authors declare no competing interests. Footnotes Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. References Associated Data Supplementary Materials Supplementary Material 1 Data Availability Statement Data sharing may be requested from the corresponding author, with an explanation of the reason.