New Sustainable Biosorbent Based on Recycled Deoiled Carob Seeds : Optimization of Heavy Metals Remediation

Laboratoire des Sciences des Matériaux, des Milieux et de la Modélisation (LS3M), FPK, Univ Hassan 1, B.P. 145, 25000 Khouribga, Morocco Equipe de Catalyse et Environnement, Département de Chimie, Faculté des Sciences, Université Ibn Zohr, B.P. 8106 Cité Dakhla, Agadir, Morocco Université Sidi Mohamed Ben Abdellah, Faculté des Sciences Dhar Elmehraz, Laboratoire d’Ingénierie, d’Electrochimie, de Modélisation et d’Environnement, Fès, Morocco


Introduction
Heavy metal pollution imposes ecological and public health problems according to hazardous and irrecoverable effects of metal ions on the environment and aquatic ecosystems [1].Besides, the toxic and harmful effects to organisms living in water, heavy metals also accumulate throughout the food chain and may affect human beings [2].In this way, the removal and recovery of heavy metals from aqueous effluents before being disposed in the environment is required [3].
Various methods have been used to remove heavy metal ions such as chemical precipitation [4], membrane filtration [5], ion exchange [6], solvent extraction [7], flotation [8], and electrochemical treatment [9].Among all these mentioned methods, sorption is an effective and eco-friendly method for the removal of heavy metal ions from wastewaters due to its simple design, easy operation handling, and availability of different sorbents with large efficacity to remove a wide range of heavy metals [10][11][12].Activated carbons are widely used as adsorbents in wastewater treatment because of their high surface areas and active functional groups, but their high cost inhibits sometimes their use [13].erefore, there is a need to develop other biosorbents from alternative low-cost raw materials for the same role as activated carbon.Recently, low-cost precursors have become the focus of researchers for example, chitosans [14], bark of Pinus elliottii [15], Jatropha curcas [16], sugarcane bagasse [17], Eichornia crassipes [18], coconut [19], agricultural peels [20][21][22], sunflower stalks [23], raw carob shells and chemically treated carob shells [24], Diplotaxis harra, and Glebionis coronaria L [25].
e aim of this study is to assess the applicability of chemically treated deoiled carob seeds for the removal of cadmium(II) and cobalt(II) ions from aqueous solution.Biosorption studies were carried out under various parameters such as solution pH, biosorbents dosage, contact time, initial metal ions concentration, and temperature.e biosorption kinetic data were tested by pseudo-first-order and pseudo-second-order kinetic models.e equilibrium data were analyzed using Langmuir and Freundlich models.
is paper also discussed the combined effect of the most influencing parameters, which are solution pH, biosorbent dosage, concentration of the solution, and the treating agent.Full-factorial experimental design with two levels (2 4 ) and surface response methodology were used to acquire the optimal parameters for high removal of Cd(II) and Co(II) ions.

Preparation of the Biosorbents.
e deoiled residue was obtained as a by-product from the hydrodistillation process of carob seeds from the region of Khenifra in Morocco.e biomass was repeatedly washed with demineralized water and then oven dried at about 120 °C for 24 h min in order to remove excess moisture.
e dried biomass was then grounded using mortar and pestle and sieved to get a size fraction lower than 160 µm, referred as Raw-seeds.For the chemical treatment, 10 g of the Raw-seeds was treated with 100 mL of 1 M solution of HCl or NaOH for 2 h.e biosorbents were then filtered and washed with distilled water until neutral pH. e pretreated biosorbents were then dried in an oven at 120 °C for 24 h and stored in glass bottles under following names HCl-seeds and NaOH-seeds for further use.

Characterisation.
FTIR transmittance spectra of the biosorbents were recorded in the region of 4000-400 cm −1 using a Scotech-SP-1 spectrophotometer.Basic and oxygenated acidic surface groups were assessed by Boehm titrations [26].About 0.1 g of each sample was mixed with 50 mL of 0.01 M aqueous reactant solution (NaOH, Na 2 CO 3 , NaHCO 3 , or HCl).e mixtures were stirred at 500 rpm for 24 h at room temperature.en, the suspensions were filtrated by a 0.45 µm membrane filter.To determine the oxygenated groups content, back titrations of the filtrate (10 mL) were achieved with standard 0.01 M•HCl solution.
Basic groups contents were also determined by back titration of the filtrate with 0.01 M•NaOH solution.
e morphological characteristics were analyzed by scanning electron microscopy (SEM).Small amount of each sample was finely powdered and mounted directly onto aluminum sample holder using the two-sided adhesive carbon model.Energy dispersive X-ray (EDX) was also performed to determine the elemental composition of the raw carob seeds and the both treated samples.e point of zero charge (pH PZC ) was determined by the pH drift method according to the method proposed by Noh and Schwarz [27].e pH of NaCl aqueous solution (50 mL at 0.01 mol/L) was adjusted to successive initial values in the range from 2.0 to 12.0 by addition of HNO 3 (0.1 N) and/or NaOH (0.1 N).Furthermore, 0.05 g of each biosorbent was added in 50 mL of solution and stirred for 6 h.e final pH was measured and plotted against the initial pH.e pH PZC was determined at the value for which pH final � pH initial .

Batch Biosorption
Procedure.Stock solutions were prepared by dissolving desired weight of each metal ion in distilled water, and necessary concentrations were obtained by dilution.Biosorption experiments were investigated in a series of beakers containing 100 mL of the metal ion solution at desired concentration and desired weight of the biosorbent.
e mixtures were stirred for 2 h at 500 rpm using a magnetic stirrer.e influence of pH was performed by varying the pH from 2.0 to 7.0 at an initial metal concentration of 100 mg/L.e pH of the solutions was adjusted with either 0.1 M of HCl or 0.1 M of NaOH and using a SensION + PH31 pH meter.e biosorbent dosage was varied from 0.5 to 5 g/L.e contact time was varied between 5 and 210 min at room temperature with initial pH solution.Biosorption equilibrium was established for different metal ion concentration between 20 and 200 mg/L.e effect of temperature was tested from 10 to 50 °C using a thermostatically controlled incubator.e effect of some major inorganic ions including Na + , K + , Mg 2+ , Ca 2+ , and Al 3+ on the biosorption was studied for each heavy metal at a constant initial metal concentration of 100 mg/L.e concentration of each ion was varied from 10 to 100 mg/L.
After each biosorption experiment completed, the solid phase was separated from the liquid phase by centrifugation at 3000 rpm for 10 min.Metal ions concentration was determined using a PerkinElmer atomic absorption spectrophotometer (Analyst 200).
e biosorption capacity and biosorption removal efficiency were calculated using the following equations: where q t,e (mg/g) is the biosorbed quantity at any time or at equilibrium, C 0 (mg/L) is the initial metal ion concentration, C t,e (mg/L) is the metal ion concentration at a time t or at 2 Journal of Chemistry equilibrium, and R (g/L) is the mass adsorbents per liter of solution.
Kinetic and equilibrium parameters were estimated with the aid of the nonlinear regression method using Origin 6.0 software.

Design of Experiment for the Optimization of Cd(II) and Co(II) Biosorption.
e methodology of experimental design was used for modeling and optimization of the biosorption processes of Cd(II) and Co(II) ions from aqueous solutions.e four most influencing factors are solution pH (A), biosorbents dosage (B), initial metals concentration (C), and treating agent (D).e values of variable levels are presented in Table 1.e experiments were made according to a full-factorial design at two levels (2 4 ), with 16 experiments.
In addition, a first-order polynomial model was also used for modeling sorption of Cd(II) or Co(II) ions.e general equation of the first-order polynomial model is presented in where Y (mg/g) is the responses of interest (adsorption capacity of Cd(II) (Y1) and adsorption capacity of Co(II) (Y2)).
e results were analyzed using the Trial software Design Expert 10.0.0.

FT-IR Analysis of the Biosorbents.
e infrared spectra of Raw-seeds, NaOH-seeds, and HCl-seeds are illustrated in Figure 1. e figure shows broad absorption band for Rawseeds at 3200-3600 cm −1 due to the stretching of the N-H bond of amino groups and indicative of bonded hydroxyl group [11], and this band was separated into more resolute three bands after the chemical pretreatments with NaOH and HCl.Two bands at around 3200-3400 cm −1 indicate the presence of carboxylic acid and amino groups, and the other one near 3500 cm −1 is related to the OH stretching vibration mode in alcohol and phenol groups.e band at 2930 cm −1 corresponds to the symmetrical and asymmetrical-CHvibrations in lipids.
e peaks located at 1620 cm −1 are characteristics of C�O stretching for aldehydes and ketones, which can be conjugated or nonconjugated to aromatic rings [28].e-C-O, C-C, and-C-OH stretching vibrations can be attributed to peaks in the region of 1180-1048 cm −1 .
e spectra showed bands located at 630 cm −1 , assigned to OH− ions.

Boehm Titration of the Biosorbents.
e oxygen functional groups are very important characteristics of the biosorbents because they determine the surface properties and hence their quality as biosorbents.
ese functional groups are mainly divided as acidic or basic, which affect the surface charge and consequently the biosorption capability of the biosorbents.e Boehm's titration method provides qualitative and quantitative information regarding the total amount of basic groups and the amounts of acidic functional groups such as carboxylic, lactonic, and phenolic.From Table 2, it can be seen that Raw-seeds, HCl-seeds, and NaOH-seeds' surface constituted mainly of acidic groups, which are due to phenolic, lactonic, and carboxylic groups and a less quantity of basic groups.So, the surface of these biosorbents is acidic.e biosorbents having greater surface acid groups have higher cation exchange properties.According to the experimental data, the HCl-seeds had an important amount of acidic groups than Raw-seeds followed by NaOH-seeds.e use of chemical reagents acid in the treatment process produces an increase in the amount of acid groups present in the biosorbent surface.It was observed that the concentration of lactonic and phenolic groups in HCl-seeds is higher than those of carboxylic groups.

Morphology of the Biosorbents.
e surface texture and morphology of biosorbents were analyzed by SEM in order to compare the morphology of raw and chemically treated carob seeds.
e SEM images of these biosorbents are depicted in Figure 2. As it is clearly shown, there is a significant difference among the tree samples.In fact, no obvious pores can be seen for Raw-seeds.en, for the HClseeds, the surface morphology does not have well-defined pores.However, the NaOH-seeds' surface indicates some  irregular cavities and a changing in the external texture as a result of the reaction between the raw material and the treating agent.ese different characteristics allow NaOHseeds to contribute a high adsorption performance of heavy metals.ese results suggest that the NaOH is an effective agent for creating well-developed pores on the surface of the raw material, which is already shown for the alkaline-treated carob shells [24].

EDX Analysis.
EDX is an analytical technique to identify the element presence on the material surface based on its characteristic X-ray energy. is technique is normally coupled with SEM analysis to gain more complete result.e elemental compositions of Raw-seeds, NaOH-seeds, and HCl-seeds are tabulated in Table 3.In addition, the elemental compositions are presented under peaks in Figure 3.
e major components of the raw carob seeds were set up to be carbon (56.13 weight%) and oxygen (35.31 weight%).However, these Raw-seeds also contain a small percentage of phosphorus, sulfur, chlorine, potassium, and calcium.After the HCl treatment, a small reduction in the percentage of carbon (54.71 weight%) and a significant rise in the quantity of oxygen (45.10 weight%) was seen.An extinction of potassium and calcium was noticed.However, for NaOHseeds, it can be also seen that the percentage of carbon decreases (48.32 weight%), and the oxygen content increased to acquired 40.35 weight%.A change in the elemental composition was noticed after the NaOH treatment which mainly falls within an appearance of new elements, including sodium, magnesium, and aluminum and a disappearance of other elements such as phosphorus, sulfur, and chlorine.As a result, it might be concluded that the alkaline treatment increases the percentage of oxygen in HCl-seeds followed by NaOH-seeds and reduced the amount of carbon for both biosorbents as the same order.

pH of Zero Charge.
e pH PZC is an important characteristic for the biosorbent as it indicates its aciditybasicity and the net surface charge of the biosorbent in solution.e pH PZC was 5.9, 2.3, and 6.9, respectively, for Raw-seeds, HCl-seeds, and NaOH-seeds.We can see that the Raw-seeds have an acidic surface.After the treatment by HCl, we found an increase in the acidity of the biomaterial at 2.3.But, after NaOH treatment, an increase in the pH PZC appears.
e low pH PZC is in agreement with the predominance of surface acid groups.is result indicates that, for pH lower than 5.9, 2.3, and 6.9, the surfaces of the Rawseeds, HCl-seeds, and NaOH-seeds are positively charged.
en at these pH, the biosorption of the studied metals was inhibited, due to the electronic repulsion between metal ions and positively charged functional groups.Inversely, for pH superior of 5.9, 2.3, and 6.9, the number of negatively charged sites on the Raw-seeds, HCl-seeds, and NaOHseeds' surface increases, and metal biosorption becomes more important.

Effect of Solution pH on the Biosorption.
e pH of the solution has a significant impact on the uptake of heavy metals, since it indicates the surface charge of the adsorbent and the degree of ionization and speciation of the adsorbate [29].e pH of the solution controls the electrostatic interactions between the sorbent and the sorbate [30].However, the dependence of heavy metal biosorption on pH was different for each metal.Figure 4 shows the effect of pH on biosorption of Cd(II) and Co(II) onto Raw-seeds, HCl-seeds, and NaOH-seeds.It can be seen that the metal biosorption increases with increasing solution pH, and it is strongly dependent on pH solution.It is known generally that the percent removal of the heavy  4 Journal of Chemistry metal ions increases with pH.At low pH, the cations compete with the H + ions in the solution for the sorption sites and therefore biosorption declines.In contrast, as pH increased, the competition between proton and metal cation decreases which means that there are more negative groups available for the binding of metal ions which results a greater metal uptake.On the other hand, at higher pH, metal cations start to form hydroxide complexes or precipitate as their hydroxides, which decrease the biosorption of metal ions [31,32].e pH PZC values indicate that the biosorbent acquires a positive charge below a pH of 5.9, 2.3, and 6.9, respectively, for Raw-seeds, HCl-seeds, and NaOH-seeds.Above these values, the biosorbents' surface becomes negatively charged [33].erefore, the ionic sorbent-sorbate interaction becomes progressively significant for pH higher than 5.9, 2.3, and 6.9.As shown in the figure, the sorption capacities for Cd(II) and Co(II) by NaOH-seeds are greater than those biosorbed by Rawseeds and HCl-seeds.is may be related to the properties of biosorbent and metal sorbate.

Effect of Biosorbents Dosage.
e biosorbent dosage is an important parameter because this parameter determines  the capacity of biosorbent for a given Cd(II) and Co(II) concentration and also determines sorbent-sorbate equilibrium of the system.Figure 5 represents the Cd(II) and Co (II) removal efficiencies for the study biosorbents.is figure indicates that the percentage removal of Cd(II) and Co(II) increased with increasing biosorbent dose due to the increase in the total available surface area and the number of active sites for biosorption of the biosorbent particles [32].
e percentage removal of Cd(II) increased from 20.70 to 76.06%, from 10.60 to 23.65%, and from 32.20 to 99.91% when the biosorbents dosage was increased from 0.5 to 5 g/L, respectively, for Raw-seeds, Hcl-seeds, and NaOH-seeds.For Co(II), the biosorption yield increased from 12.73 to 36.94%, from 3.34 to 13.50%, and from 17.02 to 55.69% when the biosorbents dosage was increased from 0.5 to 5 g/L, respectively, for Raw-carob, HCl-carob, and NaOH-carob.erefore, the biosorption yield was almost the same when the biosorbent dosage was higher than 3 g/L.
is trend could be explained as a consequence of a partial aggregation of biosorbent at higher sorbent dosage, which results in the decrease in effective surface area for the [34] biosorption [35].

Biosorption Kinetics.
e effect of contact time on the biosorption of Cd(II) and Co(II) metal ions is reported in Figure 6. e evolution of the biosorbed amount of metal ions with the contact time indicates that the equilibrium was relatively fast and was totally reached in about 45 min for the biosorption of Cd(II) by both the biosorbents and was 60 min in the case of Co(II). is equilibrium time is very short in comparison with other literature results [36][37][38], which is one of the advantages of our biosorbents.In Figure 4, two kinetic regions can be observed: the first one is characterized by a high biosorption rate, which is due to the fact that initially the number of sites of available biosorbent is higher and the driving force for mass transfer is greater.Metal ions easily access first the biosorption sites.As time progresses, the number of free sites of Raw-seeds, HCl-seeds, and NaOH-seeds decreases and the nonbiosorbed cations in solution are assembled on the surface, thus limiting the biosorption capacity.
In order to determine the biosorption efficiency of Cd(II) and Co(II) on three biosorbents, two kinetic models are used; the pseudo-first-order and the pseudo-second-order kinetic models.Kinetic data were analyzed on the basis of the regression coefficient (r 2 ) and the amount of metal biosorbed per unit weight of the biosorbent.
e Lagergren first-order rate expression based on solid capacity is generally expressed as follows [39]: where q e and q (both in mg/g) are, respectively, the amounts of metal biosorbed at equilibrium and at any time t (min) and k 1 (1/min) is the rate constant of biosorption.e pseudo-second-order equation is expressed as [40] q where k (g/mg min) is the pseudo-second order rate constant.e obtained data and the correlation coefficients, r 2 , are listed in Table 4. e results show that the calculated equilibrium values using pseudo-first-order model kinetic were very close to the experimental ones (q exp ) than the others calculated from the pseudo-second-order model and also showed the best fit to the experimental data with the highest correlation coefficients (r 2 � 0.999) for the both metal ions.From these results, it was concluded that 6 Journal of Chemistry the biosorption of Cd(II) and Co(II) onto Raw-seeds, HClseeds, and NaOH-seeds could be better described by the pseudo-first-order model.is may be due to rapidity transfer speed of Cd and Co molecules to the surface of the biosorbent and the availability of active sites.

Biosorption Isotherms.
e biosorption isotherms describe how the sorbate molecules are distributed between the liquid phase and solid phase when the system reaches the equilibrium.e analysis of isotherm data by fitting them to different models is important to find a sustainable model that can be used [41].e biosorption isotherms are illustrated in Figure 7.It is obvious that the amount of metal biosorbed increases as its equilibrium concentration increased.is trend may be due to the high driving force for mass transfer at a high initial heavy metal concentration.In addition, if the heavy metal concentration in solution is higher, the active sites of biosorbent are surrounded by much more ions, and the biosorption phenomenon occurs more efficiently.us, biosorption amount increases with Table 4: Pseudo-first-order and pseudo-second-order kinetic parameters for the biosorption of Co(II) and Cd(II).

Metal
Biosorbent q e (mg/g) Pseudo-first-order Pseudo-second-order q e (mg/g)  Journal of Chemistry the increase of initial ion concentration [42].e isotherms' form was type L for Raw-seeds, HCl-seeds, and NaOH-seeds according to Giles classification [43].
Several biosorption isotherms can be used to correlate the biosorption equilibrium in heavy metals biosorption on several biosorbents.Some well-known isotherms are Langmuir and Freundlich models.
(1) Langmuir Model.Langmuir isotherm assumes two main points in the biosorption process.First, the biosorption happens at specific homogeneous biosorption sites in the biosorbent.Second, the monolayer biosorption and maximum biosorption occurs when biosorbed molecules form a saturated layer on the surface of adsorbent.All biosorption sites involved are energetically identical, and the intermolecular force decreases as the distance from the biosorption surface increases [44].
where q m (mg/g) is the maximum monolayer biosorption capacity, K L (L/mg) is the Langmuir equilibrium constant related to the biosorption affinity, and C e is the equilibrium concentration.
(2) Freundlich Model.Freundlich isotherm is an empirical equation assuming that the biosorption process takes place on heterogeneous surfaces, and biosorption capacity is related to the concentration of biosorbed metal ions at equilibrium.Freundlich isotherm is suitable in treating metal ions' biosorption at higher concentrations.However, this isotherm is not suitable for low concentration range.
Freundlich isotherm model is represented by the following equation [45]: where K F (mg 1−1/n /g/L n ) is the Freundlich constant and n is the heterogeneity factor.e K F value is related to the biosorption capacity, while 1/n value is related to the biosorption intensity.
e calculated isotherm parameters for each model and correlation coefficients analyzed by nonlinear regression method are presented in Table 5. is table shows that the Langmuir model indicates higher values of correlation coefficients (r 2 > 0.993) in the biosorption of Co(II) than Cd(III) biosorption onto the three biosorbents.For these reasons, it can be approved that Langmuir equilibrium isotherm describes the metal biosorption process using the studied biosorbents well. is process is occurred by the formation of metal ion monolayer onto the biosorbent surface with finite number of identical sites, which are homogeneously distributed over the biosorbent surface [46].
e q max values were 34.85, 14.08, and 49.11 mg/g for Cd(II) and 24.74, 7.65, and 28.18 mg/g in the case of Co(II) respectively, for Raw-seeds, HCl-seeds, and NaOH-seeds.We can also conclude that NaOH-seeds' biosorption capacity is superior than that of Raw-seeds and HCl-seeds.On the other hand, the biosorption of Cd(II) on the three biosorbents is greater in comparison to that of the Co(II) biosorption.is may be due to the nature of the interaction between each sorbate and biosorbent.However, the Freundlich model provides two parameters: k f and n. k f is related to the biosorption capacity and biosorption intensity of the metal ions on the different biosorbents and represents the quantity of metal ions biosorbed onto biosorbent at equilibrium concentration.n represents the strength of metal ions' biosorption on the biosorbent.n value from 1 to 10 indicates relatively strong biosorption.e obtained n values in the studied biosorbents were more than 1, which indicates relatively a strong biosorption of the metal ions on the biosorbents [47].
Table 6 presents a comparison of the maximum adsorption capacity of Raw-seeds, HCl-seeds, and NaOH-seeds with various adsorbents reported in the literature for the adsorptive removal of Cd(II) and Co(II).ough there were variations in some experimental conditions, the table shows that the biosorption capacity of Raw-seeds, HCl-seeds, and NaOH-seeds for the both heavy metals is most higher compared to other adsorbents used in previous studies.is can be explained by the nature of functional groups present in the surface of Raw-seeds, HCl-seeds, and NaOH-seeds.

Effect of Temperature.
e variation of sorption efficiencies of Cd(II) and Co(II) on Raw-seeds, HCl-seeds, and NaOH-seeds as function of solution temperature is shown in Figure 8.It was observed that the temperature does not have significant influence on the biosorption capacity in the studied range.e variation in temperature had two major effects on the sorption process.An increase in the temperature is known to increase the rate of diffusion of the adsorbate molecules across the external boundary layer and in the internal pores of the adsorbent particles as a result of reduced viscosity of the solution [61].In addition, several authors have shown that further increases in the temperature may lead to a decrease in the metal removal percentage. is may be attributed to an increase in the relative desorption of the metal from the solid phase to the liquid phase, deactivation of the biosorbent surface, destruction of the active sites on the biosorbent surface owing to bond disruption [62], or weakness of the sorbent active site binding forces and the sorbate species and also between the adjacent molecules of the sorbed phase [63].

Effect of Inorganic Ions.
Industrial effluents often contain more than one metal ion.Consequently, biosorption becomes competitive, in which several metal ions compete for a limited number of binding sites [64].Figure 9 shows the effect of Na + , K + , Mg 2+ , Ca 2+ , and Al 3+ ions on the biosorption of Cd(II) and Co(II).From this figure, we can conclude that the monovalent cations K + and Na + have less influence on the biosorption.On the other hand, divalent and trivalent ions inhibit the biosorption on the both biosorbents.
e degree of inhibition by the inorganic ions followed the sequence: K + < Na + < Mg 2+ < Ca 2+ < Al 3+ for the both metals.e monovalent cations Na + and K + are bound by ionic attraction and therefore do not compete directly with the binding of heavy metals by the biosorbents.However, divalent and trivalent ions prevent the biosorption on the both biosorbents.e decreasing of Al 3+ with high concentrations may be attributed to favorable electrostatic effects due to the increased number of positively charged surface binding sites arising from Al 3+ .However, the effect of ionic strength is explained as the result of competition of ions with the heavy metals for electrostatic binding to the surface of Raw-seeds, HCl-seeds, and NaOH-seeds.Because, the functional groups are negatively charged, they will electrostatically attract any cation, be it inorganic or heavy metal ions of interest [65].7 shows the adsorption conditions and experimental results for the two responses of cadmium and cobalt removal.As can be seen, there was a considerable variation in the removal efficiency of cadmium and cobalt at different values of the already selected factors.Consequently, the maximum sorption capacities of cadmium and cobalt were 85.73 and 51.90 mg/g, respectively.

Experimental Design. Table
ese greater capacities were obtained for the initial concentration of 50 mg/l, pH � 6, biosorbent dose of 1 g/l with carob seeds treated by NaOH agent.e regression analysis was performed to adjust the response functions with the experimental data.e values of regression coefficient estimated are presented in Table 8.From the table, the biosorbent dose and initial concentration present a negative effect on cadmium and cobalt ions removal, while the pH and treating agent have a positive effect on elimination of two heavy metals.
e analysis of the interaction effects shows a significant interaction between biosorbent dose and treating agent for cadmium removal (b 24 � −6.09) with a negative impact and a significant interaction between biosorbent dose and initial concentration for cobalt removal with a positive effect (b 23 � 2.58).

Analysis of Variance (ANOVA).
Analysis of variance (ANOVA) was carried out to justify the adequacy of the models.After discarding the insignificant terms, the ANOVA data for the coded quadratic models for the two responses at a confidence level of 95% are reported in both Tables 9 and 10. e quality of the model developed was evaluated based on correlation coefficient, R 2 , and standard deviation.Data given in Tables 9 and 10 demonstrate that the two models were significant at p values < 0.05.e closer the R 2 to unity and the smaller the standard deviation, the more accurate the response could be predicted by the model.e regression equations, in terms of their coded factors, are expressed by the following second-order polynomial equations: According to these equations, it is revealed that the pH and treating agent have a positive effect on cadmium ions removal.Moreover, the removal of the cadmium decreased if biosorbents dosage and initial metals concentration increases.Additionally, the interactions pH (A)-biosorbents dosage (B), pH (A)-treating agent (D), biosorbents dosage (B)-initial concentration (C), biosorbents dosage (B)treating agent (D), and biosorbents dosage (B)-initial concentration (C)-treating agent (D) also had a significant effect on cadmium sorption.e interactions AB, AD, and BD presented a negative effect on cadmium ions removal.
en, the interactions BC and BCD presented a positive effect on cadmium removal.When this interaction is in the high level, the removal of cadmium increased.It is the same in the case of cobalt.Furthermore, the interactions pH de la solution (A)-biosorbents dosage (B), biosorbents dosage (B)-initial metals concentration (C), and biosorbents dosage (B)-treating agent (D) also had a significant effect on cobalt sorption.In fact, the interaction BC had a positive effect on cobalt sorption proving an increase in this response.On the other hand, the interaction AB and BD present a negative effect for cobalt sorption.

Response Surface Analysis.
e three-dimensional (3D) response surface of the tested factors is presented for identifying the type of interaction between the studied factors.For biosorption of cadmium, there are significant interactions between pH and biosorbent dose and another one between biosorbent dose and initial concentration.Figure 10 presents response surfaces plots for these significant interactions.is figure indicates that the sorption of cadmium increased with increasing of pH and and decrease of biosorbent dose with a fixed initial concentration at 50 mg/l with NaOH treating carob (Figure 10(a)).Furthermore, the sorption of Cd(II) increased with decreasing of biosorbent dose and initial concentration (Figure 10(b)).A maximal sorption cadmium response is observed at pH � 6 and initial concentration of 50 mg/l at a biosorbent dose of 1 g/l with NaOH treating carob.
Figure 11 presents the significant interaction between pH and biosorbent dose and another one between biosorbent dose and initial concentration, for the sorption of cobalt.Figure 11( .So, the best cobalt biosorption was obtained with pH � 6, biosorbent dose of 1 g/l, concentration of 50 mg/l, and NaOH treating carob.

3.3.5.
Optimization.e two responses were optimized simultaneously by using the desirability function approach.e response variable was 1.00.Hence, "R 2 " is in consistent enough with the "R Adj  Journal of Chemistry both responses is greater, in order of 313.12 and 255.37 for Cd(II) and Co(II) sorption, respectively.Further, these results explain that the models are suitable.en, it was found that there was good agreement between experimentally and model predicted response factor which confirms the adequacy and the significance of the proposed model.e optimal conditions for high sorption of cadmium(II) and cobalt(II) were achieved at pH � 6, biosorbent dose of 1 g/l, and initial concentration � 50 mg/l with carob seeds treated by NaOH.e greater sorption capacities were 85.73 mg/g for Cd(II) and 51.90 mg/g for Co(II).

Conclusion
During this study, raw carob seeds and chemically treated carob seeds were used as low-cost natural biosorbents for the removal of Cd(II) and Co(II) from aqueous solutions.e biosorption productivity was tested by using different biosorption conditions According to these studies, it was found that the biosorption yield increases with the increase of biosorbent dosage with an optimum at 0.1 g/L.e optimum sorption was obtained at basic pH medium.e sorption process was very rapid, since the equilibrium time was obtained at 90 min for Cd(II) and 60 min for Co(II).Biosorption kinetics data were properly fitted with the pseudo-first-order kinetic model.e equilibrium biosorption was increased with an increase in the initial ions concentration in solution.e biosorption isotherm could be well fitted by the Langmuir equation.e temperature does not have much influence on the biosorption performance.Other tests show that the presence of inorganic ions had specific effects on Cd(II) and Co(II) biosorption onto biosorbents, with the inhibition effect observing the following sequence: K + < Na + < Mg 2+ < Ca 2+ < Al 3+ .From these studies, it can be also seen that chemical pretreatment the raw carob shell with NaOH strongly enhances its   Journal of Chemistry biosorption potential for the cadmium(II) and cobalt(II) ions.Full-factorial experimental design was used to determine the optimum conditions of different variables which affect the removal of Cd(II) and Co(II) ions.In order to achieve approximately the greater values of biosorption capacities of treated carob shell for Cd(II) and Co(II) ions, the optimum values of different process parameters were found to be 85.73 mg/g for Cd(II) and 51.90 mg/g for Co (II).
ese higher sorption efficiencies are obtained at pH � 6, biosorbent dose of 1 g/l, and initial concentration � 50 mg/l with carob shell treated by NaOH.

Figure 5 :Figure 4 :
Figure 5: Effect of biosorbents dosage on the removal of Cd(II) and Co(II) by the biosorbents: C 0 � 100 mg/L, contact time � 120 min, initial pH, and temperature � 25 °C.

Figure 10 :Figure 11 :
Figure 10: Surface response plots for the cadmium ions removal.

Table 1 :
Process factors and their levels.

Table 2 :
Chemical groups on the surface of the biosorbents.

Table 5 :
Model isotherm constants for the biosorption of Cd(II) and Co(II) biosorption onto Raw-seeds, HCl-seeds, and NaOH-seeds.

Table 6 :
Comparison of biosorption capacity (qm) of Raw-seeds, HCl-seeds, and NaOH-seeds for Cd(II) and Co(II) with different other biosorbents.

Table 7 :
Factorial experimental design matrix coded, real values, and experimental results of the responses.

Table 8 :
Values of model coefficients of the two responses.

Table 9 :
Analysis of variance for sorption of cadmium ions.

Table 10 :
Analysis of variance for sorption of cobalt ions.