Introduction

Synthetic dyes are extensively applied in a variety of industries and laboratories to colorize the products and for analytical purposes. A huge volume of colored wastewaters especially from the industrial sector is responsible for adverse environmental consequences (Dehghani et al. 2017). In the case of the textile industry alone, reports show a discharge of approximately 100 tons of dyes into water bodies each year. The discharge of industrial dyes to rivers and lakes even at low levels can increase the amount of turbidity (Mazloomi et al. 2018; Ramavandi et al. 2019).

Until now, different treatment methods such as electrocoagulation and chemical precipitation, oxidation, adsorption, ion exchange and biological methods were applied for dye laden wastewaters (Adel et al. 2021; Ameri et al. 2020; Signorelli et al. 2021; Sinha et al. 2021). Among these, adsorption technique is identified as a versatile and promising technique due to its advantages like appropriateness for removal of the low level of contaminants, the potential for adsorbent reuse, and easiness of design and operation (Davodi et al. 2019; Dehghani et al. 2020). Recently, different adsorbents, including amphiphilic graphene aerogel (Tang et al. 2019), activated carbon derived from the peel of pomegranate fruit (Ahmad et al. 2020), algal activated carbon/Fe3O4 magnetic composite (Foroutan et al. 2019), and biochars from marine Chlorella sp. (Amin et al. 2020) were used for the removal of azo dyes from aqueous environments.

Biosorption, a unique form of adsorption that involves dead or alive biological materials, has been gaining researchers' interest. Biosorption brings a wide range of advantages such as independency to chemicals, environmentally benigness, global availability, economic benefits, effectiveness, and avoidance of sludge processing problems (Aliasghar Navaei et al. 2019; Sadeghi et al. 2019). Algae, single-cell organisms living in water bodies, were often observed as the algal biomasses in aqueous environments (Gül et al. 2019; Nasoudari et al. 2021). Malachite green is an organic compound that is frequently applied in aquaculture to protect aquatic animals from being infected by pathogenic microorganisms (Fig. 1) (Afshin et al. 2020). Shreds of evidence show that MG could pose detrimental effects on the liver and lung of experimental animals (Huang and Chien 2019). The entrance of wastewater effluents, containing synthetic dyes, into aqueous environments is worrying. Latest researches focus on the application of algae to remove textile dyes from water containing dyes and other pollutant (Ebrahimi et al. 2016; Omar et al. 2018; Preeti and Veena, 2017; Rezaee et al. 2006b). Spirulina (Arthrospira) platensis is a species of microalgae. S. platensis is easy to culture, high in nutrients and protein, and readily digestible. S. platensis can also promote development and improve the digestive system by stimulating the secretion and activity of some digestive enzymes (Jiang et al. 2022). Thus, the current research was conducted with the aim of optimizing MG biosorption from aqueous solutions by S. platensis using BBD. The mechanisms of MG biosorption on S. platensis were analyzed using kinetic, adsorption and thermodynamic models.

Fig. 1 
figure 1

Structural formula of malachite green dye

Materials and methods

Chemicals and reagents

The MG dye with the formula of C23H25N2 was ordered from Merck Co. (Fig. 1). Specify chemical matter used were of analytical grade. The MG dye solutions in the study were obtained from a stock solution of 500 mg. L−1 with distilled water.

Biosorbent preparation

The cyanobacteria, S. platensis (abdf 2224), was locally purchased from the Iranian National Algae Culture Collection, Tehran, Iran. The growth of this algae was conducted using Zarrouk’s Medium under constant light (3000 lx) and temperature (25 ± 1 °C). The culture was centrifuged at 4000 rpm for 10 min to remove the medium. After the separation of algal cells, those were dried at a temperature of 80 °C for 12 h. Finally, the contents were stored in a desiccator at room temperature to be used as a biosorbent.

Characteristic measurements

The characterization of S. platensis was carried out by methods such as SEM and FT-IR. The FT-IR spectrometer (Broker victor 22) was used for determining the functional groups in the S. platensis surface and the interaction between the existing functional groups and MG after the biosorption process.

Batch biosorption experiments

To figure out the effect of biosorption conditions on MG removal, the impact of different parameters including the initial level of dye (20–200 mg. L−1), pH (4–9), contact time (5–80 min), and biosorbent dose (0.1–1.5 g. L−1) were studied (Table 1).

Table 1 Range and levels of independent factors used for the MG biosorption

The factors and their studied ranges were determined according to the literature review (Gül et al. 2019). The dye solutions were agitated in a reaction vessel under a constant speed of 300 rpm. Except for those mentioned, the experiments were conducted at room temperature. Furthermore, all biosorption experiments were conducted in duplicate. After the biosorption occurred, the solutions centrifuged and the remaining MG dye was measured in the supernatant by the spectrophotometric technique at λmax of 618 nm. The removal efficiency and qe were being considered as responses for analysis of the data. The removal efficiency of MG was measured using the following formula:

$$\mathrm{Removal efficiency \% }=\frac{\left({C}_{0}-C\mathrm{e}\right)\times 100}{{C}_{0}}$$
(1)

where C0 is the MG concentration in the control sample (mg.L−1) and C is the MG concentration in the treated solution after a given time (mg.L−1).

The amount of MG adsorbed per unit biosrption was calculated using the following formula:

$$\mathrm{qe}=\frac{\left({C}_{0}-C\mathrm{e}\right)\times V}{W}$$
(2)

where V and W are dye solution volume (mL), and S. platensis biomass mass (g), respectively (Davodi et al. 2019).

Furthermore, the biosorbent reusability was assessed through consecutive biosorption-desorption cycles using the same biomass. Desorption cycles were conducted under acidic conditions in contact with the loaded biosorbent in a shaker for 1 h, at 250 rpm, and 28 °C. After desorption, the biosorbent was centrifuged at 2000 g and thoroughly washed with water before another biosorption cycle.

Study matrix

As mentioned earlier, a statistical method was adopted for the entire design, modeling, and optimization of dye removal study. BBD was considered to set a model to maximize the biosorption of MG onto S. platensis. The BBD approach is a superior alternative to its traditional "one factor at a time" counterpart because it determines the optimal condition and interaction effects of variables. BBD is a three-level rotatable or nearly rotatable quadratic design in which the variables studied at their midpoints (± 1) and the center point (0)(Wan et al. 2018). Table 1 shows the ranges and values of studied factors. In this work, 29 experimental runs, based on the BBD design, were conducted to study the four process factors. The data obtained in the experiments were analyzed using a second-order polynomial model to find the linear and quadratic effects of factors on MG removal. The ANOVA analysis uses the following equation (Eq. 3) to describe the process

$$\mathrm{Y}={\upbeta }_{0}+\sum_{\mathrm{i}=1}^{\mathrm{k}}{\upbeta }_{i}{\mathrm{X}}_{\mathrm{i}}+\sum_{\mathrm{i}=1}^{\mathrm{k}}{\upbeta }_{ii}{\mathrm{X}}_{\mathrm{i}}^{2}+\sum_{\mathrm{i}=1}^{\mathrm{k}-1}1\sum_{j-1}^{\mathrm{k}}{\upbeta }_{ij}{\mathrm{X}}_{\mathrm{i}}{\mathrm{X}}_{\mathrm{j}}+\upvarepsilon$$
(3)

In the Eq. 3, Y is the response (MG removal), Xi and Xj are coded factors, β0 is a constant level, βi, βii, and βij are the first-order effects, second-order effects, and interaction impacts regression coefficients and \(\upvarepsilon\) is the random error (Balasubramani et al. 2020).

After optimization isotherm and kinetic studies were conducted. To obtain equilibrium data to fit the most known isotherm models, including Freundlich, Langmuir, Temkin, and Dubinin–Radushkevich, the series of batch experiments were performed in the presence of several MG levels (10 to 150 mg. L−1). The pH of the solution was adjusted to 7.49 as obtained in optimization. Kinetic studies also composed a necessary section of the sorption survey that reveals important data for real treatment system design. Kinetic experiments were carried out in the presence of fixed 1.06 mg. L−1 adsorbent mass. At various time stages (10, 20 , 30 , 40 , and 50 min), samples taken from solutions contained dye level, ranging from 10–150 mg. L−1. Finally, the kinetic information fitted to pseudo-first-order, pseudo-second-order, and intra-particle diffusion models.

Results and discussion

Characterization of S. platensis

FTIR

Determination of MG biosorption behavior was conducted by FTIR analysis. Figure 2 shows FTIR spectra of fresh and used S. platensis. The FTIR spectrum of S. platensis before the biosorption process displays several major intense bands, around 3325, 2958, 2926, 2876, 1659, 1544, 1452, 1241, 1147, 1032, 918, 873, 747, 706, and 615 cm−1 (Fig. 2A). The peak at 3325 cm−1 was related to the O–H bond stretching mixed with the NH2 group. The absorption peaks at 2958, 2926, and 2876 cm−1 may be caused by the stretching vibrations of CH3 and CH2 groups. In Fig. 2B, after MG biosorption, the situation of some peaks has shifted. The alteration of the 3325 cm−1 peak to 3305 cm−1 offers the attachment of MG dye on –OH and –NH group (Kousha et al. 2013). The shift in a peak at 1659.32 to 1657.10 cm−1 signifies the involvement of the C=O group. Also, the peak at 1032.43 cm−1 was shifted to 1029.26 cm−1, which signifies the involvement of a carboxylate group (COO)in the adsorption of basic MG dye.

Fig. 2
figure 2

FTIR Spectra of A Before and B After dye biosorption

SEM

Figure 3 indicates the SEM of the raw S. platensis. The SEM analysis showed that the surface of S. platensis had nonhomogeneous with irregular and rough surfaces with different pores. With regard to the structural form S. platensis, it can be said that this algae has a large and accessibile surface area for the biosorption of dye.

Fig. 3
figure 3

SEM image of the raw S. platensis

The curve of initial pH versus final pH of S. platensis in suspension is indicated in Fig. 4. This figure shows that zero-point charge (pHzpc) of the studied algae is 6.75. When the suspension pH is lower than 6.75, the charge on the algal cell wall becomes positive and at the solution pH values higher than 6.75 the S. platensis surface is negatively charged. The pHzpc parameter is one of the suitable methods for understanding the biosorption mechanisms (Dotto et al. 2012).

Fig. 4
figure 4

Effect of pH on zeta potential of the S. platensis

Modeling of the MG removal efficiency

The design matrix employed for MG removal by S. platensis biomass and the experimental responses obtained is given in Table 2. The optimized levels for MG concentration, S. platensis dose, pH, and contact time were obtained to be 80.97 mg.L−1, 0.7 g.L−1, 8.89 and 42.52 min, respectively. At these conditions, the predicated MG removal percentage was more than 87% with desirability 1. Conduction of similar experiments at specified optimum conditions reveal the high repeat ability of method for prediction of real removal percentage with relative deviation less than 2%.

Table 2 BBD matrix for MG removal by S. platensis

As shown, the upper and lower range of MG removal varied from 35.6 to 95.5%, respectively. Design-Expert® Software confirmed the normality of experimental data, which is essential for ANOVA (Table 3).

Table 3 Statistical adequacy evaluation of models

A quadratic polynomial prediction formula (based on model comparison as shown in Table 4) was developed to elucidate the relationship between the MG removal and independent variables:

$$\begin{aligned} {\text{MGremoval }} & = { 89}.{84 } + { 4}.{54 }A \, {-}{ 3}.{29 }B \, + { 14}.{38 }C \, + { 5}.{23 }D \, - { 5}.{\text{33 AB}}_{{}} \\ & {-}{ 1}.{1}0{\text{ AC }} - 0.0{\text{5 AD}} - {2}.{\text{35 BC }} + { 4}.{\text{15 BD }} - { 2}.{\text{23 CD }}{-}{ 8}.{31 }A^{{2}} {-}{ 24}.0{3 }B^{{2}} - { 16}.{28 }C^{{2}} - {7}.{\text{11 D}}^{{2}} \\ \end{aligned}$$
(4)
Table 4 Coefficients estimation for the quadratic model of MG removal by S. platensist

This prediction model reflects how independent variables and interactions between them affect the process. The positive and negative sign before each model term shows the removal increase or inversely decreased at higher term values, respectively. Moreover, the higher the coefficient of each term is indicating the greater the level of impact on dye biosorption. Based on Eq. 4, the code of C recognized the major variable that plays the most important role in MG removal.

The adequacy of the model is illustrated in Fig. 5, where there is a good agreement between experimental MG removals with corresponding predicted values. Based on the results depicted in Fig. 5, the predicted removal is close to their obtained in the experiments which revealed the preciseness of the proposed model. However, model efficacy should be established statistically. ANOVA is available for this purpose. The results of the analysis of variance for a 95% confidence interval are given in Table 5. As shown, the F-value for the model is 21.25, which indicated that the model is significant. The p-value for lack of fit (LOF) test is 0.39, which reveals the fitness of the prediction model. Moreover, the regression has a good R2, which is close to 1 and in the range of ± 0.2 to the adjusted correlation coefficient (R2adj = 0.91).

Fig. 5
figure 5

Distribution of experimental vs. predicted removal for MG adsorption onto S. platensis

Table 5 Analysis of variance for the quadratic model of MG removal by S. platensis

All mentioned statistical parameters confirmed the adequacy of the developed model for MG removal prediction. For each model term in Table 5, the p-value < 0.001 means that its effect on MG removal is statically significant. As shown, for the present work all individual variables and some first and second-order terms show significant effects on the response. Conduction of similar experiments at specified optimum conditions reveals the high repeatability of the procedure for prediction of actual removal rate with relative deviation less than 2%.

Main and interaction effects

The influence of studied variables is graphed by response surface plots in Fig. 6. The 3D plots clearly illustrate the possible interaction between studied variables. As shown in Fig. 6a, the increase in S. platensis biomass dose was favorable for the MG removal efficacy. This is a normal behavior of most sorption processes. Based on the biosorption theory, the contaminants are attracted to the sorption sites on the biosorbent surface (Kousha et al. 2013). The availability of sorption sites is directly related to the mass of biosorbent added to the solution. At lower MG levels, the adsorption rate is higher due to the existence of more accessible energetically active sites on the biosorbent surface. The reason for the sharp decline of removal rate with the enhance in the initial MG level is the lack of sufficient surface area to accommodate more dye molecules available in the solution (Ramavandi et al. 2019). From the results of Fig. 6b, the contact time shows an incremental effect on biosorption efficiency. This behavior could attribute to the fact that the sorption process occurs gradually and the MG molecules need time to be adsorbed on sorption sites. About the saturation of the biosorbent site on the outer interface of the biosorbent, a decrease in dye removal happened when mixing continued beyond the optimum time value (Mohebbrad et al. 2019; Rangabhashiyam et al. 2018). The solution pH is another critical factor that can affect the biosorption performance of S. platensis. This factor influences the surface charge of biosorbent and ionization state of MG molecules (Fig. 6c). Under the alkaline situation, the MG dissociated to give a negative charge to dye molecules. On the other hand, the isoelectric point (pHPZC) of S. platensis biomass was determined to be 6.68. It means the S. platensis surface has a net positive charge at pH smaller than 6.68. Therefore, the increase of MG biosorption at low pH could be attributed to the electrostatic attraction between MG molecules and S. platensis cell surface (Rezaee et al. 2006a). Whereas, at a pH above pHPZC, due to the deprotonation of functional groups, a negative net charge will be generated on the cell surface, which leads to weak electrostatic attraction between the biosorbent and dye molecules (Al-Ghouti and Da'ana, 2020). After all adsorption sites are saturated, the biosorption rate slows down and equilibrium is gradually reached. Similar study was carried out for MG biosorption by Pithophora sp. at pH 5.0 (varied in the range 2–7), algae dose of 0.03 g/30 mL, temperature 30 °C, and initial dye level up to 100 mg.L−1 within 5 h (Kumar et al. 2005). In the study of Sun et al. from China, biosorption of MG was carried out in the range of 2 to 11 which reached equilibrium at 60 min for 50 mg. L−1 dye level (Sun et al. 2008).

Fig. 6
figure 6

Response surface plot about the effects of a pH vs. time, b S. platensis vs. time and c S. platensis vs. MG

Isotherm and kinetic models

The adsorption isotherm is a crucial part of a sorbate-sorbent study that describes the interaction mechanisms between the biosorbent and the adsorbate at stable temperature (Al-Ghouti and Da'ana, 2020). The sorption models also broaden our understanding of the economy of the sorption system. In collecting the experimental equilibrium data, the factors are set at their optimal values as obtained as pH 7.49, contact time of 49 min, dye level of 130.55 mg. L−1 and S. platensis dose of 1.06 mg. L−1 (Table 6). To address the biosorption isotherm, the experimental equilibrium information were studied using Langmuir, Freundlich, Temkin, and Dubinin–Radushkevich models. The kinetic and isotherm parameter factors fitted for MG removal by S. platensis were listed in Table 6. As shown, the equilibrium data has a good agreement with the Freundlich model. A higher determination coefficient for the Freundlich model describes multilayer adsorption and heterogeneous sorption sites on S. platensis cell surface (Veloso et al. 2020). The same results are reported about MG biosorption by like Pithophora sp. (Kumar et al. 2006) and green algae (Al-Homaidan et al. 2018). Also, the highest maximum adsorption capacity of S. platensis was acquired to be 103.09 mg. g−1 according to the Langmuir model. Table 3 demonstrates a comparison between the biosorption capacities of MG dye with earlier studies.

Table 6 The kinetic and isotherm parameters fitted for MG removal by S. platensis

Adsorption kinetic also provides necessary information in modeling and designing the process. Determining the adsorption mechanism and its rate-limiting steps also are achievable by kinetic study (Mohammed and Kareem, 2019). The experimental kinetic data were fitted in pseudo-first-order, pseudo-second-order, and intra-particle diffusion models. The results of kinetic modeling and their coefficients were shown in Table 6. As shown, the pseudo-second-order model has a higher R2 value compared to other models. Moreover, the calculated Qe or equilibrium adsorption capacity for the pseudo-second-order model is close to its correspondence experimental level (Table 7).

Table 7 Comparison of Langmuir biosorption capacities of MG with results from previous studies

Sorption thermodynamic

Table 8 displays thermodynamics parameters for malachite green sorption onto S. platensis. The ΔG° value for MG sorption at various temperatures has been varied between – 2.09 kJ.mol−1 and – 4.29 kJ.mol−1. So, ΔG° values obtained are below 20 kJ.mol−1, showing that the method follows the physisorption mechanism (Ahmad et al. 2014). Also, the negative ΔG value showed the favorable and spontaneous nature of the biosorption process. The ΔH° value at the temperature in the range of 298.15 K to 328.15 K is obtained – 39.01 kJ.mol−1. This value is lower than 40 kJ. mol−1; which further supports the fact that the adsorption process follows the physical mechanism. The ΔS° value at the temperature in the range of 298.15 K to 318.15 K was obtained – 0.11 J. mol−1. The negative value of ΔH° shows that the MG sorption is exothermic and the negative value of ΔS° indicates the decline in randomness (Danish et al. 2018).

Table 8 Thermodynamics parameters for malachite green sorption onto S. platensis

Reusability of the S. platensis biomass

The major economic and environmental characteristic of a biosorbent is its reusability potential. As indicated in Fig. 7, the removal rates of MG from the first cycle up to the forth cycle were varied from 95 to 50%, respectively. Results indicated that S. platensis can be used successfully at least four times after desorption for the removal of MG. Based on previous research, the biosorbents of Carica papaya (Adel et al. 2021) and Sargassum swartzii (Jerold and Sivasubramanian, 2017) preserved their adsorption capability after five and three cycles, respectively.

Fig. 7
figure 7

Effect of reusability of the biosorbent on removal efficiency

Conclusion

S. platensis belongs to affluent blue-green microalga which is applied extensively in a variety of researches. In the present work, a green approach was opted to remove a persistent dye staff from synthetic solutions. By using a statistical methodology, the process of dye removal was modeled and optimized. The optimized levels for MG concentration, S. platensis dose, pH, and contact time were obtained to be 80.97 mg.L-1, 0.7 g.L-1, 8.89 and 42.52 min, respectively. According to the quadratic model, pH was found to be the major variable that plays the main role in MG removal. Moreover, based on the model, all studied variables have a positive effect on dye biosorption. The MG removal obeys the pseudo-second-order model and the Freundlich model. This describes the S. platensis surface to be heterogenic and multilayer adsorptive properties. Ultimately, S. platensis shows excellent adsorptive properties and hence could be offered as a viable option for future researches.