Introduction

Dyes are extensively used in many industries, such as in textile, leather, paper, wool, printing and cosmetics. The release of wastewater containing dye compounds into water sources has caused a severe environmental impact. As dyeing effluent will deplete the dissolved oxygen content in water and also inhibit sunlight from reaching to the water sources, some of the dye wastewater is usually poisonous and carcinogenic to human beings (Bhattacharya and Sharma 2005). Thus, the removal of dyes from wastewater is necessary before discharging into water bodies. Methylene blue (MB), an aromatic heterocyclic compound, was extensively used in a range of different fields, especially in textile industry. The wastewater containing MB has adverse impacts on flora, fauna and aquatic ecosystems (Ghosh and Bhattacharyya 2002; Guo et al. 2014). Moreover, MB is frequently used as a probe molecule for determining the adsorption capacity of adsorbents (Bestani et al. 2008). Therefore, it is essential to minimize a number of dyes to the lowest possible limit approved by the environment and health agencies. A wide range of methods has been adopted for the treatment of wastewater containing dye residues, such as coagulation, ozonation, irradiation, flocculation, electrochemical destruction, electrokinetic, membrane filtration, photocatalytic oxidation, ion exchange and adsorption on a solid phase. Adsorption is a cost-effective and user-friendly technique for the removal of existing dyes (Danish et al. 2014a).

Activated carbon is carbonaceous material that has highly developed porosity, internal surface area, and relatively high mechanical strength. They are extensively used as an adsorbent in wastewater and gaseous pollutant removal. Due to these features, the demand for activated carbon is increasing day by day. The activated carbon can be produced from a variety of natural and synthetic substances. The ligno-cellulosic material is the most commonly used precursor for the synthesis of activated carbon. The composition of the ligno-cellulosic materials determines to some extent, the porosity development of the produced activated carbons (Valente Nabais et al. 2013). The production of activated carbon from agricultural by-products has received much attention from the scientific community as they are renewable, low-cost and environmentally friendly materials (Okman et al. 2014). A large number of agricultural by-products, such as date stone (Danish et al. 2014b), Acacia mangium wood (Danish et al. 2011), cocoa shell (Ahmad et al. 2012), waste tea (Auta and Hameed 2011), coffee husks (Oliveira et al. 2009), pomegranate wood (Ghaedi et al. 2015), mahogany sawdust (Malik 2003), rice husk (Malik 2003), corn cob (Sych et al. 2012), and other materials have been successfully used for the production of low-cost activated carbon.

The biggest challenge in the activated carbon production from new precursors is to produce very specific carbons which are suitable for particular applications. An essential characteristic of activated carbon is its adsorption capacity which is highly influenced by the preparation conditions. Meanwhile, in assessing the effect of the preparation conditions on quality aspects, the use of an adequate experimental design is particularly very important. Response surface methodology (RSM) has been used as a tool to identify the interactions of two or more variables (Ranjan et al. 2011; Karacan et al. 2007).

This experiment was designed to find the optimum variables such as activating agent concentration, activation temperature, and activation time for the production of activated carbon from the banana trunk by chemical activation. The response of the designed experiment was evaluated through adsorption capacity against methylene blue. An attempt has been made to use banana trunk, an abundantly available ligno-cellulosic agricultural waste, as a cheap and renewable precursor for activated carbon preparation.

Materials and methods

Banana trunk collection and sample preparation

The banana trunk was collected from banana plantation garden located in Durian Tunggal, Melaka, Malaysia. The collected trunk was cut into smaller pieces for fast drying. After sun drying for 2 days, the partially dried banana trunk pieces were kept in the hot air oven at 105 °C for 24 h to make it uniformly dried at minimum possible moisture level (~ 6%). After drying, the sample was kept in desiccators to get the cooling free from gaining back moisture. These dried samples were ground into powder and sieved to get a uniform particle size of 0.5 µm. The flow of banana trunk drying and conversion into activated carbon are schematically represented in Fig. 1.

Fig. 1
figure 1

Schematic representation of banana trunk drying and its conversion into activated carbon

Preparation of activated carbon from banana trunk powder using response surface methodology (RSM)

The preparation of activated carbon was carried out based on three parameters such as activation time, activation temperature, and concentration of phosphoric acid. Ten grams of banana trunk powder was mixed well with 20 mL of desired concentration of H3PO4 solutions (85% orthophosphoric acid was purchased from MERCK Germany). The mixing was performed at room temperature. The capped crucibles containing soaked banana trunk powder were placed inside a muffle furnace (CARBOLITE CWF 1200) at a set temperature for a fixed period. The combination of different activation time, temperature, and concentration of H3PO4 was done according to Table 1. The crucibles were left inside the furnace for 24 h to cool down at room temperature. The prepared activated carbon was washed with hot and cold water to remove the adhered water soluble byproducts such as P2O5 and un-reacted chemical agents. After that, it was dried in hot air oven for 24 h, weighed and packed in sealable plastic bags for further use.

Table 1 Levels and ranges of independent variables used during the experiments

Design of experiments for the preparation of activated carbon

Response surface methodology (RSM) is a statistical technique that uses quantitative data from the experiments to develop a regression model relating the experimental response to the process variables (Jaiswal et al. 2011; Alam et al. 2007). A small rotatable central composite design (CCD) of response surface methodology was utilized to plan the number of experiments with a different combination of operating variables to optimize the activated carbon preparation conditions. This method is appropriate for fitting a quadratic surface design, and it helps to optimize the variables with a minimum number of experiments, as well as to analyze the interaction between the variables (Azargohar and Dalai 2005). The independent variables selected in the present study were activation time (X1), activation temperature (X2) and H3PO4 concentration (X3). A small factorial CCD for the three variables, consisting of 6 factorial points, 4 axial points, and 5 replicates at the center points are employed, with a total of 15 experiments calculated from the equation below (Azargohar and Dalai 2005):

$$N = 2^{n - 1} + 2n + n_{\text{c}} = 2^{2} + (2 \times 3) + 5 = 15.$$
(1)

The levels and ranges of the variables that affect the adsorption capacity during the activation process of the banana trunk-activated carbons are given in Table 1. The experiments were planned to run between the selected ranges of each variable. The star values (± 1.414) were considered for each parameter to test the effect of each parameter on adsorption capacity when their values extrapolated below the lowest values and above the highest value. This method will give the freedom to find the optimum outside the selected range if it lies above or below the range.

Model fitting and statistical analysis

The design-Expert 6.0.6 Stat-Ease, Inc., Minneapolis, USA software was used for model fitting and statistical analysis such as regression analysis of experimental data to fit the empirical equation and three-dimensional (3D) plots of the response surface. The analysis of variance (ANOVA) for experimental data was also calculated using the same software.

Methylene blue adsorption study

A 1000 ppm methylene blue (C16H18ClN3S, Molar mass: 319.85 gm/mol, procured from R & M Chemicals, Malaysia) dye solution was prepared in 1 L and used as a stock solution. The desired concentrations were prepared by the dilution of the stock solution. In this experiment, 20 mL of 150 ppm methylene blue dye solution were used with 0.05 g of activated carbon (adsorbent dose 2.5 g/L), kept it for constant agitation for 24 h. After filtration, the solid activated carbon was separated, and the liquid was tested for methylene blue concentration using UV–Vis spectroscopy (Perkin Elmer Lambda EZ210) at lambda max. 664 nm. Before testing the unknown concentration, the standard curve was plotted with standard solutions of known concentrations, i.e., 0.0, 0.1, 0.5, 1.0, 1.5, and 2.0 ppm. The linearity of the standard curve was found to be 0.9942. The adsorption capacity of the banana trunk-activated carbon was calculated by the following equation:

$$q({\text{mg/g}}) = \frac{{(C_{\text{i}} - C_{\text{f}} )}}{2.5},$$
(2)

where Ci and Cf are initial and final concentration (mg/L) of the methylene blue dye.

Characterization of the banana trunk-activated carbon

The banana trunk-activated carbon prepared at central values (0, 0, 0) of the independent variables was selected for characterization study. The Fourier transform infrared spectroscopy (FTIR), Field emission scanning electron microscopy (FESEM), and Powder X-ray diffraction techniques were used to characterize the activated carbon sample.

Result and discussion

Effect of preparation variables on adsorption capacity

The adsorption capacity of the banana trunk-activated carbon was significantly affected by the preparation parameters of the activated carbon. On applying the adsorption capacity data on the central composite design model, a quadratic model was suggested to explain the effect of operating parameters such as time of activation, temperature of activation, and activating agent concentration. The change in preparation variables and the corresponding adsorption capacity of the banana trunk-activated carbon was correlated through the second-order model. The layout of the design is shown in Table 2, along with the adsorption capacity experimental data. The run numbers of 1, 3, 5, 8, 12, and 15 were used to determine the experimental deviation. Based on the highest order polynomial, the sum of model squares was determined. Regression analysis was run to fit the response function adsorption capacity (mg/g). The empirical model regarding actual variables after excluding the insignificant variables for methylene blue adsorption capacity is given in below equation.

$$\begin{aligned} q\,({\text{methylene}}\,{\text{blue,}}\,{\text{mg/g}}) = \, & 59.51 - 0.17x_{1} + 0.088x_{2} - 6.93x_{3} - 0.13x_{1}^{2} + 0.013x_{2}^{2} - 4.95x_{3}^{2} \\ & - 11.77x_{1} x_{2} - 4.84x_{1} x_{3} - 5.23x_{2} x_{3} , \\ \end{aligned}$$
(3)

where x1, x2, and x3 are the time of activation, the temperature of activation, and activating agent concentration, respectively.

Table 2 Experimental design matrix for preparation of activated carbon

The effect of a variable on the formation of activated carbon from the banana trunk with considerably good adsorption capacity has been visualized through the above equations. For variables in coded terms (1.414, 0, 0) and (− 1, 1, 1), the adsorption capacity was around 39 mg/g; whereas, for variables (0, 0, − 1.414) and (1, 1, − 1), the adsorption capacity was around 59 mg/g (Table 2). These results showed that the optimized value of the variables viz. activating agent concentration, activation temperature, and activation time for maximum adsorption capacity of activated carbon falls within these experiments.

Analysis of variance (ANOVA)

To further justify how adequate the models are, analysis of variance (ANOVA) was applied. Table 3 shows the ANOVA values for the model and the process factors. The models F value of 500.85 implies that the model is statistically significant (Prob. > F value 0.0001), there is only a chance of 0.01% for this large F value to occur due to noise. The variables X1, X2, X3, \(X_{2}^{2} ,\,X_{3}^{2}\), X1X2, X1X3 and X2X3 were found to be significant in the designed statistical model (as given in Eq. 3). The “Prob. > F” for variables greater than 0.100, implied that model variables are not significant and these variables can be removed from the model to improve the mathematical model.

Table 3 Analysis of variance for selected factorial model for adsorption capacity

The “lack of fit” F value for the percentage adsorption capacity was calculated to be 0.31; this implies that the “lack of fit” was non-significant statistically relative to the pure error. The lack of fit data was non-significant (Prob. > F value 0.6056); the model and ‘lack of fits’ having “Prob. > F” values < 0.05 are considered to be as potentially significant. The non-significant “lack of fit” is desired to be statistically valid model. Hence, the proposed model is valid. The “Adeq Precision” measures the signal to noise ratio. A ratio greater than four is desirable. For the designed model, it was calculated 63.45 for adsorption capacity. This showed that the current model had an adequate signal and can be used to navigate the design space above and below the selected range of operating factors. Moreover, the “Pre R2” was in reasonable agreement with the “Adj R2” value. The values of R2 and adj R2 for adsorption capacity were found to be 0.9989 and 0.9969, respectively. These values verified the linearity between the model’s calculated results and experimental data for adsorption capacity. For percentage adsorption capacity, the model F value was 500.85, which implies that the model is significant.

Response surface plots

Three-dimensional (3D) response surface plots were used to explain the behavior of system variables within the design of the experiment. It can facilitate an inspection of experimental factors in selected responses like adsorption capacity (Hasan and Srivastava 2011; Danish et al. 2014b). Therefore, 3D response surface curves were plotted for a statistically significant model to explore the interaction of variables on the adsorption capacity of the produced activated carbon. The 3D plots help in interpreting the interaction of two operating factors simultaneously. The graphical representation of the mathematical models as in Eq. (3) facilitates an examination of the effects of the operating factors on the adsorption capacity. The quadratic plots of adsorption capacity shown in Fig. 2a–c. It can be clearly seen from the response surface 3D plot that adsorption capacity was significantly affected by the selected variables. The preparation of activated carbons from the raw banana trunk was mainly guided by the three process variables such as time of activation, activation temperature, and H3PO4 concentration. These independent variables have their own effects on the physical, textural characteristics, and adsorption capacity of the prepared activated carbons. The following sections explain the combined effects of variables on the adsorption capacity of the activated carbons.

Fig. 2
figure 2

3D plots of a interaction of time and temperature, b interaction of time and H3PO4 concentration, c interaction of temperature and H3PO4 concentration, d actual vs model predicted adsorption capacity plot

Effect of activation time and temperature

The interaction of activation time and temperature at fixed activating agent dose for adsorption capacity has a curvature in response surface plot as shown in Fig. 2a. The methylene blue adsorption capacity achieves a maximum value of 71.4 mg/g when the activated carbon is prepared either at minimum activation time and maximum activation temperature or at maximum activation time and minimum activation temperature conditions. Whereas, at minimum activation time and minimum activation temperature or maximum activation time and maximum activation temperature, the adsorption capacity was found lower. The activated carbon adsorption capacity against methylene blue achieved maximum value when the temperature of the activation was the highest (at 850 °C) and the time taken to prepare that activated carbon was only 50 min which was the lowest value of activation time. The other condition for preparing the higher adsorption capacity activated carbon was activation time 120 min and activation temperature 450 °C at a constant H3PO4 concentration (4.25 mol/L). These results can be interpreted as, at a low temperature of activation, the banana trunk biomass needs longer time to generate pores in the activated carbons suitable for the adsorption of methylene blue, and at a higher temperature of activation pores generated in the activated carbons in a shorter time.

Effect of activation time and activating agent concentration

The interaction of activation time and H3PO4 concentration at a fixed temperature (650 °C) on the adsorption capacity of the banana trunk-activated carbon is shown Fig. 2b. The curve lines in contour plot, and curvy 3D plot shows that the interaction of variables is quadratic. The methylene blue adsorption achieved its maximum value, 66.0 mg/g when the activation time reached to 120 min. At lower concentration of phosphoric acid and increase of activation time, the resultant activated carbons have gradually increase adsorption capacity against methylene blue; whereas, an increase in activating agent concentration with increase in time decrease the adsorption capacity of the activated carbon against methylene blue dye. At the minimum time of activation, when we increased the activating agent concentration, initially the adsorption capacity of the prepared activated carbon increased and reached to a maximum at middle concentration and was falling with the further rise of concentration. When the activated carbon was prepared with a maximum activating agent concentration (7.0 mol/L) and a minimum activating time (50 min), the resultant activated carbon was achieved only 52.2 mg/g adsorption capacity. The banana trunk-activated carbon prepared with 7.00 mol/L phosphoric acid with increasing contact time had low adsorption capacity activated carbons. This is because the interaction of phosphoric acid with the chemical constituents of banana trunk required some time to form a stable complex at a certain temperature. With the increase of activation time and H3PO4 concentration, the adsorption capacity increased till mid concentration value of H3PO4, after that adsorption capacity decreased due to excess of chemical agent.

Effect of activation temperature and activating agent concentration

Interaction of activation temperature and activating agent concentration at fixed activation time (85 min) on the adsorption capacity of the banana truck-activated carbon is shown in Fig. 2c. The activated carbon from banana trunk prepared under these conditions can achieve a maximum adsorption capacity of 66.8 mg/g against methylene blue dye. The activated carbon prepared at maximum temperature (850 °C) and minimum activating agent concentration (1.50 mol/L) can achieve maximum adsorption capacity (66.8 mg/g). This result conveys that the banana trunk-activated carbon prepared at the highest activation temperature and with the lowest phosphoric concentration will be suitable for removal of methylene blue with a high adsorption capacity. The banana trunk-activated carbon prepared at low activation temperature (450 °C) and high phosphoric acid concentration can have adsorption capacity, 53.2 mg/g. The activated carbons prepared at high activation temperature (850 °C) and with high H3PO4 concentration (7.0 mol/L) can have adsorption capacity around 42.5 mg/g for methylene blue adsorption.

Therefore, to produce an efficient activated carbon from the banana trunk that has a high adsorption capacity, it is advised to use a low concentration of phosphoric acid. Using a high concentration of phosphoric acid would decrease adsorption capacity of banana trunk-activated carbon against methylene blue dye. At the same time, other factors activation time and activation temperature also played a significant role in the production of high adsorption capacity activated carbons. The predicted and experimental values of the adsorption capacity for banana trunk-activated carbons are represented in Fig. 2d. However, the activated carbon can also achieve a high adsorption capacity only when optimum activation time, activation temperature, and activating agent concentration were used.

Response surface methodology optimization

It is recommended to use the desirability function to optimize the operating variables with output responses. Since, in this experiment we set only one output response, so desirability must be 1 as shown in Table 4. It is widely used method for optimizing operating variables for a maximizing response. The range of desirability function for two or more responses lies between 0 and 1. In case of two responses as output, the desirability value for any of the response achieve 0 indicates that the characteristics of the selected responses are not reasonable; whereas, the desirability value of 1 for any response indicates that all process characteristics responses are possible (Prakash et al. 2009; Danish et al. 2014b). The goal of optimization in this experiment was to keep the activation time, activation temperature, and activating agent concentration within the range and maximizing the adsorption capacity of the activated carbon. To achieve maximum desirability (1.000) shown in Table 4, all the three parameters were fixed within the range. With the maximum desirability, it was found the model predicted adsorption capacity, 64.66% as shown in Table 4.

Table 4 The optimum conditions for preparation banana trunk-activated carbon and the percentage adsorption capacity of the predicted result for prepared activated carbon

The graphical representations of the desirability for higher adsorption capacity are shown in Fig. 3a–c. From Fig. 3a, the maximum desirability lies near maximum temperature or maximum time; in Fig. 3b the maximum desirability lies near low activating agent concentration and extended uniformly over the time axis. This implies that at low concentration of H3PO4 (1.5 mol/L) and minimum time of activation (50 min), desirable activated carbon for efficient methylene blue removal capacity (64.66 mg/g) can be achieved. In Fig. 3c, the desirability shifted towards higher temperature of activation. At a low temperature of activation, the concentration of activating agent does not make any difference at fixed activation time (85 min.); therefore, we cannot achieve desired activated carbon with high adsorption capacity. Comparison of adsorption capacities of various biomass waste derived adsorbents and their adsorption equilibrium time and adsorbent dosage for effective methylene blue removal have been reported in Table 5.

Fig. 3
figure 3

Desirability plots for maximum adsorption capacity of banana trunk-activated carbon

Table 5 Comparison of the methylene blue adsorption capacities by various agricultural waste and by-products

Activated carbon characterizations

Fourier transform infrared spectroscopic (FTIR) study of sample was conducted on Nicolet 6700 at instrumentation lab, school of environmental science and engineering Shanghai Jiao Tong University, shanghai, PRC. The spectrum was taken with KBr pellets method. The spectrum of activated carbon sample of run number 3 was shown in Fig. 4. The dominated peaks were observed at 3421, 2360, 1579, 1400, 1288, 1150, and 1095 cm−1 due to presence of normal polymeric –OH stretching, multiple bonding between carbon and nitrogen, aromatic nitrogen containing compounds, C–H in plane bending, aromatic secondary amines, –CN stretching, and organic siloxane (Si–O–Si) vibrations, respectively. The CHNS analysis was conducted on German Vario Macro Cube at Instrumentation Center, School of Environmental Science and Engineering Shanghai Jiao Tong University, shanghai, PRC. The results of the banana trunk-activated carbon (run number 3) sample analysis revealed that it contains around 59.65% carbon, 2.01% hydrogen, 0.59% nitrogen, and 0.005% sulfur atoms. Powder X-ray diffraction (XRD) was conducted on Shimadzu XRD-6100 diffractometer, the obtained diffraction pattern for activated carbon sample (run number 3) shown in Fig. 5. The XRD spectra revealed that crystal lattice at 2θ 26.19° have lattice indices (110) and distance between the lattice point 3.40 Å. The field emission electron microscope made up of Hitachi JEOL JSM-7800F Prime, at instrumentation center, Shanghai Jiao Tong University, shanghai, PRC, was used for surface image of banana trunk-activated carbon (run number 3) sample shown in Fig. 6, the surface of the activated carbon at magnification 50000× showing highly rough surface, the fractal dimension of the surface is less than 1 µm which seems to be suitable for trapping the methylene blue dye molecules.

Fig. 4
figure 4

Fourier transform infrared (FTIR) spectrum of banana trunk-activated carbon (run number 3)

Fig. 5
figure 5

Powder X-ray diffraction pattern of banana trunk-activated carbon (run number 3)

Fig. 6
figure 6

Field emission scanning electron microscopy of the banana trunk-activated carbon (run number 3)

Conclusion

The optimization of the banana trunk-activated carbon preparation conditions such as activating agent concentration (H3PO4), activation time, and temperature was done to achieve better activated carbon for methylene blue removal. The central composite design of response surface methodology (RSM) approach was used, and the adsorption capacity of activated carbon was calculated as a response. The optimum points for activation time, activation temperature, and H3PO4 concentration was found to be 51 min, 774 °C, and 5.09 mol/L, respectively. Under these conditions, the activated carbon prepared from banana trunk should have maximum adsorption capacity of 64.66 mg/g.