Introduction

Nitrate pollution of groundwater from both geogenic sources and anthropogenic sources such as wastewater, animal manure, leaky septic systems, and particularly nitrogen fertilizers from agricultural production, has raised concerns globally due to the probable challenges it may render to groundwater resource use [3, 7, 26, 33, 38, 65, 66, 74, 84]. Elevated nitrate concentrations in groundwater represent potential adverse effects to human health when ingested [1, 14, 58, 61, 67, 77]. Long-term ingestion of water with elevated nitrate concentrations (i.e. > 50 mg/L) may contribute to the development of methemoglobinemia, also called the “blue baby syndrome”, colorectal cancer, bladder cancer, and gastrointestinal irritations in humans and fetal deformation in animals [20, 40, 78] The World Health Organization (WHO) has set drinking water standards for nitrate as 50 mg/L or 11.3 mg/L NO3–N [75, 76].

Nitrate-contaminated groundwater may be treated by biological, chemical, electrochemical, and physico-chemical methods, or their combinations, typically involving different processes including biological denitrification, chemical denitrification, catalytic nitrate reduction, ion exchange, membrane bioreactors, reverse osmosis, and adsorption [1, 18, 33, 63, 85]. The selection of any of these methods for nitrate removal largely depends on the combination of factors including the operation cost, maintenance needs of the system, energy demands, efficiency, and the need for secondary treatment [34, 48]. Adsorption-based processes are widely applied to remove various contaminants, including nitrate from aqueous media mainly due to their efficiency, low cost, low maintenance requirements, simplicity of design, and convenience of operation [11, 60]. Adsorption-based nitrate removal processes benefit from the flexibility of obtaining highly porous adsorbents from a range of materials such as industrial wastes [10, 80], chitosan beads [70], silica [40, 41], nano-alumina [23], clay [9], zeolites [51, 43], and agricultural wastes [52]. Locally available lignocellulosic wastes such as coconut husk have good potentials for producing highly porous low-cost adsorbent for the removal of pollutants from the aqueous mediums [48, 71, 72]. The use of coconut husk for preparing activated carbon provides useful alternatives for the application of coconut husk in major coconut-producing countries like Brazil, India, Thailand, Indonesia, the Philippines, and Sri Lanka that often have to deal with the organic matter disposal as well as copious phenolic compound emissions from these wastes [13, 47, 54, 55].

Numerous adsorption studies have favored activated carbon adsorbents due to their favorable surface chemistry for nitrate adsorption, high porosity, and surface area. However, their adsorption capacity can be influenced by process parameters such as initial nitrate concentration, contact time, pH, temperature, adsorbent dose, and also the interaction effects of these parameters [11, 24, 48, 56, 69, 80]. For example, high nitrate removal rates may be achieved for high initial nitrate concentration (ca. 100–450 mg/L), while adsorption capacity generally decreases with an increase in the pH [4, 19, 21, 44, 53, 81].

Few studies have investigated the potential application of coconut husk-based activated carbon applications for nitrate removal from groundwater. In this study, the mechanism of nitrate removal from groundwater onto chemically modified coconut husk-based granular activated carbon was tested based on experimental nitrate sorption kinetic data as well using isotherm models to fit the experimental data. Response Surface Methodology (RSM) was employed for the optimization of the experimental design process, along with a simultaneous and systematic estimation of the effect of different process parameters. RSM combined with a suitable design of experiment helps to optimize processes with minimum experimental run, at a comparatively low cost [15, 40, 72, 83]. In addition, the interaction effects of process parameters of adsorption and their non-linear influence on the adsorption efficiencies of nitrate ions onto the activated carbon prepared from coconut husk were investigated in order to fill a gap in the literature and contribute to the current understanding of nitrate adsorption by lignocellulosic materials.

Materials and methods

Preparation of K2CO3 treated granular activated carbon (GAC) from coconut husk

Locally obtained coconut husk was thoroughly washed and sun-dried for 2 weeks. The dried coconut husk (precursor) was further oven dried for 24 h to remove the residual moisture and other volatile impurities. The husk was then crushed and reduced to smaller particle size fractions. Standard sieves (ASTME-11) were used to reduce the dried coconut husk to average particle sizes ranging between 0.315 and 0.710 mm. Chemical impregnation was achieved by mixing of the sieved raw precursor with reagent grade K2CO3 (99% purity, Ajax Finechem) at a mass ratio of 1 (mass of precursor: mass of K2CO3) and equal amount of water according to Eq. 1. The impregnated sample was dried in an oven (UF 110, Memmert GmbH + Co. KG, Germany) for 24 h at 105 °C. Afterwards, the sample was loaded in a tubular stainless-steel reactor and carbonized in a programmable muffle furnace to 800 °C for 2 h with nitrogen gas flow at 15 L/min. The activated carbon was then washed several times with de-ionised water to neutralize the pH.

$$\mathrm{Impregnation ratio}, \,\, \mathrm{ IR}=\frac{{w}_{{K}_{2}{\mathrm{CO}}_{3}}}{{w}_{\mathrm{char}}},$$
(1)

where \({w}_{{K}_{2}{\mathrm{CO}}_{3}}\) is mass of K2CO3 in gram and \({w}_{\mathrm{char}}\) is mass of char (g).

The yield of the K2CO3 activated carbon was determined according to Eq. 2.

$$\mathrm{Yield}=\frac{{m}_{\mathrm{AC}}}{{m}_{\mathrm{HUSK}}},$$
(2)

where \({m}_{\mathrm{AC}}\) is mass of activated carbon after carbonization in gram, and \({m}_{\mathrm{HUSK}}\) is the mass of raw coconut husk in grams before carbonization.

Characterization of the adsorbent materials

The moisture content, volatile matter, ash content, and fixed carbon content of the raw precursor, and K2CO3 impregnated coconut husk, and the prepared activated carbon adsorbent were analyzed using a thermogravimetric analyzer, TGA 701 (LECO Co., USA). The prepared granular activated carbon adsorbent was analyzed with Fourier transform infra-red spectroscopy (FTIR) analyzer (Thermo-scientific, Nicolet™ 6700 model) to determine the functional groups present on the surface of the adsorbent. The surface morphology of the prepared granular activated carbon was determined with a scanning electron microscope, SEM (Model: HITACHI S-3400N, Japan). A thermal analyzer (STA449, Netzsch, Jupiter) was used to examine the thermogravimetric and differential thermal properties of the K2CO3 impregnated coconut husk at process conditions similar those used during the preparation of the granular activated carbon. The K2CO3 impregnated precursor was heated to 800 °C from room temperature (~ 25 °C), at a heating rate of 10 °C/min (as applied during the carbonization of sample), with a nitrogen flow rate of 15 L/min. The differential thermal analysis provides insight into the effect of the chemical activation agent, K2CO3, on the decomposition of hemicellulose, cellulose, and lignin fractions present in the precursor.

The specific surface area of the prepared granular activated carbon was analyzed with a Quantachrome (NOVA 2200 series) volumetric gas adsorption equipment. Single-point nitrogen adsorption data were generated in the relative pressure range of 0.009–0.6 at − 196 °C. The Brunauer–Emmett–Teller surface area (SBET) was determined within the relative pressure (p/p°) range of 0.009–0.3. The pore characteristics such as median pore width, pore distribution, and the total pore volume of the adsorbent was examined using the density functional theory (DFT) approach, Barrett–Joyner–Halenda (BJH) method, and micro pore (MP) method, respectively [59]. The calculated values were compared with the measured values to determine the goodness of fit and the reliability of the generated data.

Preparation of the groundwater sample

Groundwater sample was collected from a borehole located at Khlong Suang in the Pathumthani province of Thailand following the standard groundwater sampling protocols [79]. Groundwater sample was filtered using 0.45 µm membrane filter and stored in refrigerator at 4 °C. Groundwater samples were spiked with KNO3 salt (99% purity, Ajax Finechem) to produce groundwater solution of nitrate concentration 10, 50, and 150 mg/L, at initial an pH of 7.6 (± 0.2). Background nitrate concentration in the groundwater was determined using the UV spectrophotometric screening method (4500-NO3) [6] and after spiking with KNO3.

Experimental design and adsorption modelling

Design of experiments

Nitrate removal yield (%) with the highly porous chemically modified granular activated carbon (GAC) prepared from coconut husk was evaluated as a function of the following three independent process parameters: initial groundwater nitrate concentration, contact time and adsorbent dose at boundary conditions (i.e. fixed conditions) of pH 7.6 (± 0.2) and temperature of 28 (± 2) °C. Experimental levels of the process parameters were selected based on the experimental boundaries, i.e. the polluted groundwater nitrate concentrations, average groundwater pH, maximum contact time, and ambient temperature, based on results from preliminary screening batch experiments and from the literature. To eliminate unnecessary experimental runs and yet retain the relevant experiments in the matrix of the experimental design, RSM and Box–Behnken coupled design of experiment was used to model and optimize the nitrate adsorption process.

The Box–Behnken experimental design was used to design a 3-factor, 3-level experimental design, while RSM was used to optimize the experiment design by systematically varying all variables to yield a well-designed experiment with minimum number of experimental runs [8]. The behavior of the adsorption process was further modeled by a second-order polynomial regression model of the quadratic response model. The minimum and maximum limits of the experimental variables calculated according to Eq. 3 are shown in Table 1. The Design Expert software (version11, STATEASE Corp. USA) was used to aid the generation of the experimental runs, regression analysis, and optimization of the process variables to achieve the response, as well as estimate the statistical significance of the model equations.

$${x}_{i}=\left(\frac{{z}_{i}-{{z}_{i}}^{0}}{\Delta {z}_{i}}\right){\beta }_{\mathrm{d}},$$
(3)

where \({z}_{i}\) is the real value of independent variable, \(\Delta {z}_{i}\) is the distance between the real value in the central point and the real value in the superior or inferior level, \({\beta }_{\mathrm{d}}\) is the coded limit value of the experimental matrix for the given variable and \({z}_{i}^{0}\) the real value at central point.

Table 1 Experimental levels and ranges of independent process parameters

A response surface methodology (RSM)-based approach was applied to model the relationship between the nitrate removal (response) and a set of independent variables (A: initial concentration of nitrate in groundwater, B: contact time, and C: adsorbent dose) using the following quadratic equation (Eq. 4):

$$Y={\beta }_{\mathrm{O}}+\sum {\beta }_{i}{x}_{i}+\sum {\beta }_{ii}{x}_{ii}^{2}+\sum {\beta }_{ij}{x}_{i}{x}_{j}+\varepsilon ,$$
(4)

where Y is the predicted response, i.e., the percentage removal for nitrate, \({\beta }_{\mathrm{o}}\) is the constant coefficient, \({\beta }_{i}\) is the ith linear coefficient of the input factor xi, \({\beta }_{ii}\) is the ith quadratic coefficient of the input factor xi, \({\beta }_{ij}\) is the different interaction coefficients between the input factors xi and xj, and \(\varepsilon\) is the error of the model.

The model was evaluated using analysis of variance (ANOVA) to test the quality of the model [64, 83]. The significance of the model terms and the goodness of the quadratic model fit with the experimental data (i.e. for nitrate removal efficiency) were determined by the F- values, the p-values, and the correlation coefficient (R2) [2, 62].

Batch adsorption experiments

To examine the nitrate adsorption capacity of the coconut husk-based GAC, batch experiments were carried out by adding 0.1 g of the prepared granular activated carbon adsorbent into a 250-mL Erlenmeyer flask containing 50 mL nitrate-contaminated groundwater and using three different initial nitrate concentrations (10, 50 and 150 mg/L). The pH and temperature of each treatment were maintained at 7.6 (± 0.2) and 28 (± 2) °C, respectively. The experimental flasks were placed on a programmable temperature-controlled orbital shaker (DATHAN scientific Co.) at a mixing speed of 180 rpm. To study the nitrate adsorption capacity of the activated carbon with time, the samples were collected periodically at 0.5, 1.0, 1.5, 2.5, 3.0, 3.5, 6, 9 and 12 h and filtered through a 0.45-µm filter. The residual nitrate concentration in the filtrate was measured using a UV-spectrophotometer (HITACHI, U-2900). To ensure reproducibility, and for statistical reasons, all the experiments and the measurements were performed in triplicates. The experimental data were evaluated for sources of systematic errors and potential uncertainties introduced in the results due to random errors were limited as much as possible.

Adsorption isotherm studies

To evaluate the efficacy of the coconut husk-based granular activated carbon for nitrate removal, the equilibrium adsorption of nitrate from groundwater was studied as a function of the initial nitrate concentration. The Langmuir isotherm and Freundlich isotherm were used to describe the experimental data and for equilibrium modelling. The linearized form of the Langmuir equation (Eq. 5) is given as follows:

$$\frac{1}{{q_{{\text{e}}} }} = \frac{1}{{q_{{\text{m}}} }} + \frac{1}{{q_{{\text{m}}} bC_{{\text{e}}} }},$$
(5)

where qe is the amount adsorbed at equilibrium concentration, \({C}_{\mathrm{e}}\). \({q}_{\mathrm{m}}\) is the Langmuir constant representing maximum monolayer adsorption capacity, and \(b\) is the Langmuir constant related to energy of adsorption. This model implies that saturation of the adsorptive surface is possible; thus, qe eventually can reach a maximum value (qm).

$${R}_{\mathrm{L}}=\frac{1}{1+{K}_{L}{\mathrm{C}}_{\mathrm{o}}}$$
(6)

Adsorption favorability was determined by calculating the separation constant, RL [44, 22], and dimensionless factor was calculated according to the Eq. 6. KL refers to the Langmuir constant and Co refers to the initial adsorbate concentration.

The linearized form of the Freundlich isotherm is shown in Eq. 7.

$$\mathrm{log} \, {q}_{\mathrm{e}}=\mathrm{log} \, {K}_{\mathrm{f}}+\frac{1}{n}\mathrm{log} \, {C}_{\mathrm{e}},$$
(7)

where qe and \({C}_{\mathrm{e}}\) are the same as in Eq. 5, and \({K}_{\mathrm{f}}\) and n relate to the capacity and intensity of adsorption, respectively. The Freundlich model does not imply a saturation of the adsorptive surface.

Adsorption kinetic studies

The kinetic models, pseudo-first order (Eq. 8) and pseudo-second order (Eq. 9) were used to study the adsorption mechanism based on the experimental data [31, 39].

$$\frac{\mathrm{d}{q}_{t}}{\mathrm{d}t}={k}_{1}\left({q}_{\mathrm{e}}-{q}_{t}\right),$$
(8)
$$\frac{\mathrm{d}{q}_{t}}{\mathrm{d}t}={k}_{2}({q}_{\mathrm{e}}-{q}_{t}{)}^{2},$$
(9)

where qe and qt are the amounts of nitrate adsorbed (mg/g) at equilibrium and at time t (h), respectively; k1 is the rate constant of the pseudo-first order adsorption (min−1); and k2 is the rate constant of the pseudo-second order adsorption (g/mg/min).

In batch experiments, nitrate removal from groundwater by the adsorbent was estimated according to Eq. 10.

$$R\,\left(\%\right)=\frac{{C}_{\mathrm{i}}-{C}_{\mathrm{e}}}{{C}_{\mathrm{i}}}\times 100\%$$
(10)

At equilibrium conditions, the nitrate removal capacity by the adsorbent was calculated according to Eq. 11:

$${q}_{\mathrm{e}}=\frac{\left({C}_{\mathrm{i}}-{C}_{\mathrm{e}}\right)\times V}{{m}_{\mathrm{ads}.}},$$
(11)

where Ci = initial concentration in the bulk solution (g/L), Ce = equilibrium concentration in the bulk solution (g/L), V = volume of the solution (mL), mads = mass of the adsorbent (g), and R = removal efficiency (%).

Results and discussion

Characteristics of the absorbent materials

The raw coconut husk and K2CO3 impregnated coconut husk showed comparatively high volatile matter content of ~ 65.0 (± 0.8) % (wt.) and ~ 46.4 (± 0.3) % (wt.), respectively, as shown in Table 2. However, the K2CO3 impregnated coconut husk had the highest ash content. The highest amount of fixed carbon was observed in the K2CO3 coconut husk granular activated carbon. Consistent with the findings of Suman and Gautam [71], the higher fraction of ash content yielded the lowest values of fixed carbon in the K2CO3 impregnated coconut husk, which in this case, may be attributed to the unreleased intercalated potassium which does not get easily released at temperatures below 600 °C, but incorporated in the ash [74].

Table 2 Characterization of raw coconut husk, K2CO3 impregnated coconut husk, and activated carbon

Thermogravimetric analysis (TGA) of the raw material

Thermal gravimetric analysis (TGA) and differential thermal analysis (DTA) provide insight into the composition and thermal stability of the raw material by examining the thermo-chemical weight loss and the decomposition kinetics associated with the thermal degradation of the hemicellulose, cellulose, and lignin fractions of K2CO3 impregnated coconut husk. The results of the TGA/DTA analysis are shown in Figure S2. An initial weight loss of 42.5% (6.72 mg) which peaked at 257 °C corresponds to the combined loss of the adsorbed moisture and an initial devolatilization initiated at 152 °C which peaked at 257 °C. The light gases such as CO, CO2 and CH4 for cellulose, hemicellulose and lignin, respectively, are released at this stage [73, 82]. This is corroborated by the corresponding weight lost within the 152 °C and 257 °C temperature regime that exceeds the weight of measured moisture content of the sample as shown in Table 2. Subsequently, the decomposition of hemicellulose and cellulose fractions was observed to occur within a temperature range of 257–302 °C, comparable to about 28% weight loss at the second half of the DTA curve. Within this temperature range, the thermal decomposition of cellulose fractions with structural compositions of long polymers of glucose, which are more stable than the hemicellulose fractions would occur. This finding is corroborated by previous studies from the literature which asserts that the decomposition of hemicellulose occurs in biomass pyrolysis only after 200 °C, mainly because of the presence of amorphous structures [25, 27, 32, 42, 49]. Thermal degradation of lignin, however, was characterized by a relatively slower weight loss rate which started from 302 to 550 °C. The observed slower thermal degradation rate is attributable to the complex molecular structure of the lignin fractions [86]. Thermal decomposition and volatilization of the various fractions of the K2CO3 activated coconut husk results in a higher carbon content (% wt.) activated carbon with higher porosity and adsorption capacity than the raw coconut husk, since moisture, volatiles, and non-carbon heteroatoms were removed during the process of thermal treatment.

Surface morphology of the granular activated carbon prepared from coconut husk

The surface characteristics of the activated carbon show a rough surface with mixed pore types and a circular aperture but distorted geometry (Figure S3 a–d). These porous structures or pores formed on the surface of the prepared coconut husk granular activated carbon were created during the reactions between the raw coconut husk and K2CO3, and the release of reaction gases and volatile matter during the carbonization and the chemical activation process. The presence of the pore structures, i.e. macropores, micropores and mesopores, on the prepared coconut husk activated carbon makes it a suitable adsorbent for effective nitrate ion adsorption from the aqueous medium. However, the macropores frequently function as transmitters without any adsorption potential, whereas the micropores and mesopores are excellent sites for nitrate ion adsorption [25].

Pore distribution and S BET of K2CO3 granular activated carbon prepared from coconut husk

Various methods are used to modify and improve the nitrate adsorption capacity of adsorbents by increasing their porosity, active sites and the positive surface charge [49]. Base (e.g. KOH, NaOH or K2CO3) treated activated carbon has been reported to have high surface area (generally greater than 1000 m2/g) [30], with an average carbon yield of ~ 35%.   The Brunauer–Emmett–Teller surface area was determined as 1120 m2/g and the micropore volume as 0.392 cm3/g. The measured median pore width of the K2CO3 coconut husk-activated carbon was 0.755 nm and the single-point desorption total pore volume (of pores less than 40.31122 nm width at p/p° = 0.9500) was found to be 0.459 cm3/g (Table 3).

Table 3 Surface properties of K2CO3 modified coconut husk derived granular activated carbon

The pore development and distribution on the highly porous activated carbon produced from coconut husk was mainly influenced by the activation agent and the activation temperature. The intensity of heating enhances the reaction between K2CO3 and the coconut husk components [5]. At higher heating rates up to 627 °C, alkali metal ions were removed from the intercalation developed during chemical impregnation [29, 35]. Elimination of the alkali ions results in the development of increased surface area and pore diameter [50]. K2CO3 reduces to K2O and CO2 according to the equation (Eq. 1213). However, at temperatures beyond 627 °C, the char produced exhibits significant weight loss due to the reaction of K2O and C (Eq. 14) [59].

$${\text{K}}_{2} {\text{CO}}_{3} + 2{\text{C}} \to 2{\text{K}} + 3{\text{CO,}}$$
(12)
$${\text{K}}_{2} {\text{CO}}_{3} \to {\text{K}}_{2} {\text{O}} + {\text{CO}}_{2} ,$$
(13)
$$K_{2} {\text{O}} + 2{\text{C}} \to 2{\text{K}} + {\text{CO}}{.}$$
(14)

FTIR of the granular activated carbon prepared from coconut husk

The FTIR spectra analysis of the granular activated carbon from coconut husk (Figure S4 and Table 4) exhibited a broad adsorption band of about 3650–900 cm−1. The peak of 3423 cm−1 with broad band range of 3550–3300 cm−1 is typical characteristic of the stretching vibrations of hydroxyl compounds. The bands at 2918 cm−1 and 2851 cm−1 showed the presence of asymmetric C–H and symmetric C–H bands of the methyl and methylene groups. The weak peak around 1740 cm−1 can be attributed to the stretching of carbonyl C = O present in ketones, aldehyde, esters, and acetyl derivatives. Furthermore, the band located at 1566 cm−1 was ascribed to the stretching vibrations of C=C in the aromatic rings. The peak at 1380 cm−1 as assigned to C–O stretch in acids, alcohols, phenols, ethers, and esters [25, 81]. The K2CO3 modified activated carbon produced from coconut husk exhibited the presence of acidic and basic functional groups.

Table 4 FTIR frequencies of adsorbent before adsorption

Response surface methodology and optimization

Nitrate removal (%) from aqueous medium as a function of the following three process parameters: initial groundwater nitrate concentration, contact time, and adsorbent dose at ambient temperature (28 ± 2 °C) and pH of 7.6 (± 0.2), was investigated. The response, nitrate removal (%) for various experimental combinations of process parameters derived from the Box Behnken design is shown in Table 5.

Table 5 Experimental runs based on response surface methodology and Box–Behnken design of experiment

The fitted regression model (Eq. 15) in real-term values was derived to understand quantitatively, the empirical relationships between the effects of varying process conditions and their interaction effects on the nitrate removal (%) from aqueous medium by the K2CO3 coconut husk granular-activated carbon:

$$Y = \, + 71.49 \, + 19.30 + \, 6.48 + \, 29.02 + \, 3.36 + \, 14.35 + \, 4.77 - 11.25 - 5.98 - 25.75$$
(15)

where Y is the nitrate removal efficiency (%) from groundwater by the K2CO3 granular activated carbon prepared from coconut husk, \(x_{1}\) is the initial concentration in coded form, \(x_{2}\) is the contact time in coded form and \(x_{3}\) is the adsorbent dose in coded form.

The summary statistics of the quadratic regression model shows a predicted R2 value of 0.8657 which is in reasonable agreement with the ‘‘Adjusted R2’’ of 0.9699. The quadratic regression model of the nitrate removal (%) shows a statistically significant result which signifies the adequacy of the quadratic regression model to explain the relationship between the independent process variables and the response variable, i.e. the nitrate removal (%). The results of the predicted values of the model also correlate well (Fig. 1) with the measured actual values obtained for the run orders of the Box–Behnken experimental design.

Fig. 1
figure 1

Correlation between the predicted and the experimental removal efficiency for nitrate from groundwater by K2CO3 modified coconut husk granular activated carbon

The quality of the model was further tested by the analysis of variance (ANOVA) and the results were found to be significant with a p value < 0.0001 and F value of 58.23. The coefficient of determination (R2) of the quadratic model was determined as 0.9887 which implies that only about 1.11% of the total variations was not explained by the model. The lack of fit of the model (F value > 0.05) was also determined to be non-significant, relative to the pure uncontrollable errors [40, 45].

The interaction effects of the independent variables on the nitrate removal efficiency (%) were evaluated by assessing the significance of the coefficients of the independent parameter effects based on their p values (Table 6). The positive coefficient values of the parameters indicate an increasing nitrate removal effect within the tested range while negative coefficients represent a reduction effect. The effect of initial concentration and adsorbent dose on nitrate removal efficiency was shown to have strongly influenced the nitrate removal efficiency compared to the contact time. The statistical test of significance suggests that initial concentration directly influenced the adsorption efficiency (p < 0.0001, F = 105.8). However, the quantified percent contribution (20.6%) by initial nitrate concentration of groundwater to the nitrate removal efficiency was found to be comparatively lower than the contribution of adsorbent dose (p < 0.0001, F = 6739.1 and PC = 46.5) to nitrate removal.

Table 6 Multiple regression results and significance of the components for the quadratic model

In physiochemical terms, this adsorption behavior suggests that increasing nitrate concentration for the same adsorbent dose increased the specific adsorption capacity, whereas increasing adsorbent dose increased the availability of adsorption sites for enhanced nitrate adsorption. An increase in the concentration of nitrate ions increases the likelihood of instantaneous adsorption of nitrate ions onto the available adsorption sites of the granular activated carbon.

Effect of adsorbent dose and initial nitrate concentration on nitrate removal from groundwater

Figure 2a–c shows the results of the 3D response surface plots and the interactive effects of initial nitrate concentration, contact time and adsorbent dose. The maximum adsorption efficiency of 92.5% was achieved at an initial concentration of 150 mg/L, contact time of 6.25 h and an adsorbent dose of 0.5 g/50 mL. The interaction effect of initial concentration, adsorbent dose and contact time shows a non-linear profile on the nitrate removal efficiency. At a constant initial concentration of 100 mg/L, the nitrate removal efficiency slightly increased with an increase in the adsorbent dose and contact time (Fig. 2a).

Fig. 2
figure 2

Surface plots of removal efficiency (%) as a function of a adsorbent dosage and contact time; b contact time and initial nitrate concentration; c adsorbent dosage and initial concentration; at pH 7.6 ± 0.2 and temperature = 28 ± 2 °C and parity plot of the quadratic model

The rate of nitrate ion adsorption on to the K2CO3 modified activated carbon produced from coconut husk was observed to proceed rapidly at the initial stages of the experiment but it reduced gradually until equilibrium was attained. This may be explained by the increased availability of binding sites for instantaneous adsorption of nitrate ions onto the adsorbent. However, as the contact time increases beyond 6.25 h, the rate of uptake of nitrate ions from the solution reduced until equilibrium was attained. Similar results were reported by Battas et al. [9] and Madan et al. [45] for nitrate and α-toluic adsorption by local clay and CaO2 nanoparticles, respectively. Compared to the adsorbent dose and initial nitrate concentration, the contact time showed the lowest influence on nitrate adsorption efficiency from groundwater.

The percent contribution of contact time (B: \({x}_{2}\)) to nitrate adsorption (Table 6) from groundwater was quantified statistically as 2.3%, which is the lowest among the three process parameters though its effect on nitrate removal efficiency was statistically significant (p = 0.01). The effect of initial nitrate concentration on nitrate removal efficiency was observed to be statistically significant (p < 0.0001) contributing to about 20.6% effect on the nitrate adsorption efficiency. The adsorbent dose and initial nitrate concentration showed significant effects (p < 0.0001) on the nitrate removal from groundwater (Table 6).

At a fixed adsorbent dose (0.3 g/50 mL), the nitrate removal from groundwater by K2CO3 modified coconut husk granular activated carbon showed increased adsorption efficiency with increasing initial concentration and contact time until the maximum adsorption capacity of the adsorbent was attained (Fig. 2b). Similarly, at a fixed contact time of 6.25 h, high values of initial nitrate concentration and contact time increased the adsorption efficiency.

The adsorption mechanism may involve the immobilization of nitrate ions from solution onto the coconut husk GAC surface via weak bonds such as van der Waals forces, hydrogen bonding, or hydrophobic interactions. Nitrate ions are easily exchanged with the interlayer OH ions present on the surface of GAC activated carbon. Thus, the nitrate ions diffused until saturation condition is achieved at the micropores of the GAC. At saturation, the driving force for mass transfer of the adsorbates from the solution into the micro and mesopores of GAC has reported to reduce significantly due to the intermolecular repulsion between the adsorbate ions and the adsorbents surface [17]. Besides, as reported in several reports, the repulsive forces generated between nitrate ions on the adsorbent's surface prevented further nitrate ion uptake onto the activated carbon's surface [57, 68, 46].

Adsorption kinetics

Nitrate adsorption from groundwater by granular activated carbon was studied as a function of the initial nitrate concentration of groundwater. The solid to liquid (S/L) ratio in the batch experiments were maintained at 0.1 g of granular activated carbon to 50 mL of groundwater solution. The temperature was maintained at 28 (± 2) °C and the pH at 7.6 (± 0.2). The results from the batch experiments for initial concentrations of 10, 50 and 150 mg/L were fitted to the pseudo-first order and pseudo-second order kinetic models to analyze the adsorption kinetics and the equilibrium conditions of nitrate adsorption from groundwater by K2CO3 modified coconut husk-activated carbon. The constants of the first-order kinetic model fitted the experimental data of the different concentrations as shown in Table 7. The pseudo-second order kinetic model constants were estimated by plotting t/qt (h g/mg) versus time, t (min) for each of the initial concentrations. Table 8 shows the kinetic constants of the pseudo-second order kinetic model.

Table 7 Pseudo-first order kinetic constants for nitrate adsorption form groundwater onto coconut husk granular activated carbon
Table 8 Pseudo-second order kinetic constants for nitrate adsorption from groundwater onto coconut husk granular activated carbon

On the other hand, the R2 values of the fitted pseudo-second order kinetic model for nitrate three concentrations (10, 50 and 150 mg/L) were high (> 0.98) and the model was able to describe the adsorption behavior of nitrate ions in groundwater onto K2CO3 modified coconut husk activated carbon.

Adsorption isotherm studies

The Langmuir and Freundlich isotherms were fitted to the experimental data in order to determine the interaction of nitrate ions present in groundwater with K2CO3 modified coconut husk granular activated carbon.

A linearized Langmuir isotherm model was plotted, i.e. 1/qe versus 1/Ce and the Langmuir constants were obtained. The Langmuir constant, RL, obtained for initial nitrate concentrations of 10, 50 150 mg/L were in the range of 0.2–0.8 (Table 9). A comparatively high regression coefficient of determination, R2 value of 0.9332 was obtained (Table 9). The Freundlich constants shown in Table 9 were obtained from the slope of the linearized Freundlich model plot. The regression coefficient of determination, Kf and n values obtained for the Freundlich isotherm model were useful in describing the nature of the adsorption process and the adsorption affinity. The adsorption of nitrate ions from groundwater onto the granular activated carbon prepared from coconut husk followed a monolayer Langmuir isotherm model. The favored Langmuir isotherm model is a monolayer adsorption model based on the assumption that adsorption occurs by the sorption of adsorbates onto fixed number of localized sites on the adsorbent [48]. The maximum estimated Langmuir adsorption capacity, qm (mg/g) of the granular activated obtained, was also found to be very close to the experimental values.

Table 9 Langmuir and Freundlich coefficients for nitrate adsorption onto K2CO3 modified coconut husk GAC

The separation factor, (RL) of the Langmuir model describes the favorability of the adsorption process where the value of RL determines its favorability: unfavorable (RL > 1), linear (RL = 1), favorable (0 < RL < 1) and irreversible (RL = 0) [16, 28, 80]. In this study, the Langmuir constant, RL was within the boundaries of 0 < RL < 1, which indicates a favorable adsorption process (Table 9). The values for RL were observed to approach unity when the initial nitrate concentration increased. These adsorption conditions support the results that suggest the probable occurrence of instantaneous adsorption of the nitrate ions from the groundwater onto the surface of the granular activated carbon. This phenomenon was most favored at higher initial groundwater nitrate concentrations. The Freundlich isotherm model constant, \({n}_{\mathrm{F}},\) obtained from the slope of the linear plot using experimental data from the adsorption experiment shows values greater than 1. The physical sorption processes are usually characterized by \({n}_{F}\)> 1, while \({n}_{F}\)< 1 and \(n_{{\text{F}}}\) = 1 denotes chemisorption and linear adsorption processes, respectively [17, 16]. Furthermore, 1/\({n}_{\mathrm{F}}\) is used to evaluate the intensity of adsorption or the surface heterogeneity of the adsorption system.1/\({n}_{\mathrm{F}}\) < 1 indicates a Langmuir adsorption condition, whereas 1/\({n}_{\mathrm{F}}\) > 1 indicated a cooperative adsorption process [12, 22, 28]. The results, \(n_{{\text{F}}}\) = 1.15 and 1/\(n_{{\text{F}}}\) = 0.866 (Table 9), revealed that nitrate adsorption from groundwater by granular activated carbon prepared from coconut husk is a physical process and the experimental data are best described by the Langmuir isotherm. These results are consistent with the findings reported by Rahdar et al. [62] and Khan et al. [37].

Conclusions

Coconut husk is a suitable lignocellulosic material for preparing highly porous chemically activated carbon with SBET surface area of 1120 m2/g and micropore volume of 0.39 cm3/g. The batch experimental results showed that adsorption capacity of the coconut husk granular activated carbon (at adsorbent dose of 0.5 g/100 mL) at equilibrium increased from 0.1 mg/g to about 6.0 mg/g when the initial nitrate concentration in groundwater was increased from 10 to 150 mg/L with a corresponding equilibration time of 6 and 5 h, respectively. The adsorption process mechanism follows a Langmuir monolayer isotherm and it best fitted the pseudo-second order kinetic model. The occurrence of instantaneous adsorption of nitrate ion onto the surface of the granular activated carbon in this study was more favorable at higher initial groundwater nitrate concentrations (0 < RL < 1). About 92.5% nitrate removal was achieved for 150 mg/L initial nitrate concentration, 0.5 g/50 mL adsorbent dose, and contact time of 6.25 h. The results from the model showed that the major non-linear interaction effects of process parameters on nitrate removal efficiency from groundwater were due to the adsorbent dose (46.52%) and the initial nitrate concentration (20.56%) of the groundwater.

The results from this study clearly proves that GAC made from coconut husk with a high surface area and porosity is reliable and efficient for nitrate removal from groundwater. In the future, column studies should be carried out in order to determine the continuous performance of K2CO3 treated GAC under different process conditions. Additionally, the stability, regeneration potential, environmental assessment and cost analysis of the K2CO3 treated GAC should be assessed for applying this technology for large-scale water treatment systems. Following repeated cycles of adsorption–desorption, as a resource conservation strategy, the nitrate-saturated adsorbents can be employed as nitrate-rich soil supplements to enhance the crop productivity.