1 Introduction

Increasing demand for energy, which has an important role in the economic prosperity of countries, causes energy crises to occur today. For meeting the energy needs, fossil fuels which will be depleted in the near future and negatively affect human and nature by causing air pollution and global warming as a result of the release of greenhouse gases such as carbon dioxide (CO2), nitrous oxide (N2O), and methane (CH4) are used. These negative effects have recently led scientists to research to develop new sources that will be alternative to fossil fuels. Thus, interest in AD, which uses different biomass resources, has also started to increase [1,2,3,4]. Biogas, which is produced as a result of AD of industrial, agricultural, and animal wastes by microorganisms in an oxygen-free environment, is a clean and renewable energy source containing mainly 55–75% CH4 and 25–45% CO2 by volume [5,6,7,8]. AD is a complex process in which various types of microorganisms take part in each stage of hydrolysis, acidogenesis, acetogenesis, and methanogenesis, respectively, in the degradation of organic matter [9]. Hydrolysis, which is the first one of these stages in AD, is known as the rate limiting step because lignocellulose, hemicellulose, and lignin, which are found in organic substances and are very difficult to digest, create high ammonium inhibition in the environment and reduce the hydrolysis rate and methane yield [10,11,12]. Nowadays, AD technology which produces biogas is developing rapidly, but factors such as poor process stability, long hydraulic retention time, slow growth rates of anaerobic microorganisms, low buffering capacity, and low biogas yield due to low biodegradation efficiency limit the availability of biogas [13,14,15]. In addition, in order to maintain the stability of AD reactors and prevent the accumulation of volatile fatty acids (VFA), the factors affecting AD performance such as substrate, temperature, and pH should be controlled carefully [16, 17]. In order to reduce all these obstacles and increase the biogas yield, different strategies such as optimization of the amount of solid matter in order to obtain better mass transfer, adding buffering substances to the reactor to ensure the optimum pH for the bacteria, and physical, chemical, and biological pre-treatments are applied [10, 18]. On the other hand, another way to achieve more biogas production by improving AD performance is to add additives to the reactors that provide more organic matter breakdown by providing suitable digestion conditions for microorganisms [19, 20]. Studies conducted so far researchers have added to reactors biological additives including fungal, bacterial, and enzymes [11, 21], trace elements [2], biochar [22], activated carbon [23], magnetite and zeolite [24], metal oxides [25], and slags [26] and examined their effects on biogas production and methane yield. BFS is an inevitable by product of pig iron production that occurs huge amount and contains strong alkaline structure and significant metal ions. BFS, which is occurred between 250 and 420 kg per ton of hot iron produced as a result of pyrometallurgical processes, is a major waste source if not recycled and used in appropriate ways [27]. BFS contains 0.5–0.8% FeO, 35–42% CaO, 35–40% SiO2, 8–9% MgO, 8–15% Al2O3, 0.3–0.1% MnO, and 0.7–1.5% S by weight [28]. Thanks to the micro-elements in its content, it has the potential to be used as an additive in the AD system [26].

However, since obtaining maximum efficiency by determining the optimum values of these parameters that affect biogas production brings with it too much cost and extra time due to the excess number of tests, statistical programs are started to be used instead of traditional methods [29]. Today, in order to reduce the number of tests, RSM is a widely used technique in which output factors are optimized with test variables with the development of computer programs [30].

Deepanraj et al. [31] applied RSM for estimation and optimization of total biogas production and COD removal using parameters of solid concentration (5–15%), pH (5–9), temperature (30–60 °C), and co-digestion (0–40%). When the results are examined, the optimum values corresponding to solids concentration 7.38%, pH value 7, temperature 48.43 °C, and co-digestion 29% were obtained from RSM as 6344 mL total amount of biogas and 39% COD removal. Also, the overall desirability value was obtained as 0.94. Safari et al. [32] used the RSM and BB design to determine the effects of inoculum, TS, temperature, and stirring time in AD where they use cattle manure and canola residues and optimize the biogas yield. It was observed in experimental results that temperature change had a great effect on methane yield and optimum values were obtained as 52.49 °C of temperature, 3.12 min day−1 of stirring time, 7.02% TS of substrate working volume, and 22.17% inoculum in thermophilic conditions. Methane yield at these values was 403.63 L/kgVS. In mesophilic conditions, 376.76 L/kgVS methane yield was observed at 3.57 min day−1 of stirring time, 7.41% TS of substrate working volume, 26.26% inoculum, and temperature at 40.36 °C. The highest R2 value (0.9983) showed that the model can be used in methane production estimation. Menon et al. [33] designed an RSM model to examine the effect of adding trace metals (Ca, Mg, Co, and Ni) to the reactor as micronutrient supplements on biogas yield. Optimum concentrations for optimum biogas production and methane yield were obtained as 303, 777, 7, and 3 mg/L Ca, Mg, Co, and Ni in the RSM model, respectively. Yılmaz et al. [29] performed a model and optimization process in RSM for the estimation of cumulative biogas production, methane content (CH4%), and COD removal (%) in anaerobic digestion. For this, total solid percentage (TS%), inoculum ratio (%), the amount of pumice (g L−1), and particle size of pumice (mm) were selected as input parameters. As a result of ANOVA analysis, R2 values were obtained as 0.98, 0.98, and 0.99 for cumulative biogas production, CH4 (%), and COD removal (%), respectively, which showed that it was acceptable for the relationship between the input parameters and responses.

While there are studies investigating the effect of different additives on biogas and methane yield in the literature, no studies related to the optimization of BFS addition have been found. It was thought that this gap should be filled by conducting this study and for this purpose, a model was created in RSM for the estimation and optimization of cumulative biogas production (mL), biogas yield (mL/gVS), CH4 content (%), VS reduction (%), and COD removal (%). This study aims to reduce the number of tests and TS (%), pH, and BFS ratio (%) were selected as input parameters.

2 Materials and methods

2.1 Characterization of cattle manure and inoculum

Cattle manure used as substrate was collected from a local animal breeding farm located in Karabük, Turkey. The inoculum was taken from the 40 L biogas system with a mixture of cattle and poultry manure in the Environmental Engineering Laboratory. The results of the analyzes made to determine the characteristics of the cattle manure and inoculum are given in Table 1. The BFS to be used as an additive was obtained from the integrated iron-steel production plant and dried in an oven at 105 °C for 24 h before being used in the biogas system. Since the particle size is smaller than 0.5 mm, the grinding process has not been done.

Table 1 Characteristics of cattle manure and inoculum

2.2 Analytical methods

The amount of biogas produced was measured daily according to the water displacement principle. The biogas composition (CH4, CO2, H2S, and O2) in the produced biogas was measured with a biogas analyzer (GEOTECH 5000, UK). The elemental analyzer (Flash 2000 Element Analyzer) was used for measuring carbon (C) and nitrogen (N). The parameters of COD, TS, and VS analysis were performed according to the Standart Methods of the American Public Health Association [34]. The pH values of the reactors at the first day and at the end of the experiment were measured with a WTW720i pH meter.

2.3 Experimental setup

A fed-batch biogas system was established to carry out the experiments. The schematic view of the experimental setup is shown in Fig. 1. In the system using 1-L glass reactors, experiments were carried out in 600-mL working volume with 100 mL of inoculum and blast furnace slag added at concentrations of 0.5, 1, 1.5, 2, 2.5, and 3 wt%. Liquid gasket is used to prevent gas leakage that may occur in the reactors, and glass bottles are painted black to protect microorganisms from light. The tightness of the reactors, which were connected by using pneumatic equipment, was checked by a hand pump. The experiments were run in mesophilic conditions (36 ± 1 °C) for 30 days in duplicate. 1 N hydrochloric acid (HCl) and 1 N sodium hydroxide (NaOH) were used to achieve the desired pH values. Finally, N2 gas was passed through all the reactors for 5 min to obtain environment required for anaerobic digestion by removing oxygen.

Fig. 1
figure 1

Experimental setup: 1, temperature controlled water bath; 2, digester; 3, biogas outlet; 4, biogas tube; 5, biogas inlet; 6, water outlet; 7, biogas sampling point; 8, water inlet; 9, biogas collecting bottle; 10, water collecting bottle

2.4 Statistical model

RSM is a mathematical technique that can determine the best experimental conditions by considering the relationship between more than one independent variable and the dependent variable. As one of the RSM models, the BB design can be optimized according to the input data and so it saves both time and money with less experimentation [35]. BB design was chosen to optimization of biogas production under different conditions and working principle of the model is illustrated in Fig. 2. While cumulative biogas production (mL), biogas yield (mL/gVS), CH4 content (%), VS reduction (%), and COD removal (%) were chosen as response variables, pH, TS (%), and BFS ratio (%) were used as input parameters. Table 2 shows the input variables and levels. By using these input parameters, optimization and estimation of the test results were carried out in Minitab 17 software with 15 experiment sets and the data are given in Table 3. In RSM, each input parameter for biogas system is assumed to be computable and can be expressed as [36]:

$$y=f\left({x}_{1}, {x}_{2}, \dots , {x}_{n}\right)$$
(1)

where x1, x2, ⋯, xn are input parameters and y is output, respectively. In the first stage of RSM where there is an appropriate relationship between output and input parameters, a quadratic equation is applied for this correlation and given in Eq. (2) [37]:

$$y={\beta }_{0}+{\sum }_{i=1}^{k}{\beta }_{i}{x}_{i}+\sum_{i=1}^{k}\sum_{j\ge i}^{k}{\beta }_{ij}{x}_{i}{x}_{j}+\sum_{i=1}^{k}{\beta }_{ii}{x}_{i}^{2}+\varepsilon$$
(2)

where i is the linear coefficient, j is the second-order coefficient, β is the regression coefficient, k is the number of parameters, and ε is the error discovered in the response. ANOVA including p-value and f-value was used to calculate the regression model.

Fig. 2
figure 2

Flowchart of the model

Table 2 Input factors and levels for optimization
Table 3 Box-Behnken design and the experimental results

3 Results and discussion

3.1 Daily and cumulative biogas/methane production from experiments

Cumulative and daily biogas productions of all groups are given in Fig. 3a and 3b. The highest biogas production was observed in R5 where TS is 10%, pH 9, and BFS ratio 1% with 12,870.6 mL. It has been determined that increasing BFS ratios at pH 9 have a negative effect on biogas production. As seen in Table 3, the highest biogas production in all reactors was measured as 11,551.1, 8959.3, 10,270.9, and 9776.1 mL for R2, R8, R10, and R15, respectively, according to pH 9 and rising BFS ratio. In addition, the highest biogas yields were also reached at pH 9 in R5, R8, and R2 with 472.3, 412.1, and 406.0 mL/g VS, respectively. After the reactors with pH 9, the highest biogas productions were obtained in the reactors with pH 7 at R9, R11, and R14 with 8762.9, 6909.4, and 5770.6 mL, respectively. The experiments conducted at pH 5 showed the lowest biogas productions and biogas yields. In the AD system, pH is one of the most important key parameters and directly affects the performance of the microorganism groups in the reactor [38]. As can be seen from Table 3, in all reactors with an initial pH 9, after 30 days of hydraulic retention time (HRT), the intra-reactor pH values vary between 7.36 and 7.22. In the light of these results, and very recently, in our group’s study on the use of BFS as an additive in the anaerobic system, it was seen that BFS improved the buffering capacity when compared to the results of the control group in which BFS was not added [26]. Kim et al. [39] explained that adding BFS to fermentation reactor could result with a decrease of pH due to short-chain carboxylates (SCCs) production. Our experimental results also support this phenomenon.

Fig. 3
figure 3

Cumulative (a) and daily (b) biogas productions

From Table 3, it is seen that the addition of BFS at high pH value has a positive effect on CH4 production. The highest methane content was reached with 62.5%, 62%, and 61.9% in R5, R10, and R15 where pH 9, respectively. Kim et al. [39] mentioned that adding BFS to AD inhibited the methanogenesis due to high alkali conditions but our results showed that adding BFS to the AD system at pH 9 and in all BFS ratios improved the CH4 content of the produced biogas compared to the other reactor.

3.2 Simultaneous effect of BFS ratio, solid concentration, and pH

ANOVA is one of the most important tools to attain the best suitable mathematical model to define the importance and property of quadratic mathematical regression model [40]. ANOVA results are given in Table 4 and Table 5. p-value is the most important parameter in ANOVA results that must be maximum 0.05. If the p-value is higher than 0.05, it is thought to be the model is insignificant and if the p-value is lower than 0.05, it is thought to be the effect of this factor on the developed model is greater [41]. As seen in Table 4, p-values of BFS ratio and pH are lower than 0.05 and greater than 0.05 for TS ratio for cumulative biogas production in terms of linear coefficients. p-values for second-order coefficients of all factors are greater than 0.05 and these results mean that pH has more effect on cumulative biogas production. For biogas yield, p-values of additive ratio and pH are lower than 0.05 while p-value of solid ratio is greater than 0.05. p-values for second-order coefficients of all factors are greater than 0.05 again and the most influential factor is pH for biogas yield. p-values of all factors are lower than 0.05 for CH4 and the second-order coefficients are greater than 0.05 so it can be say all factor are important for CH4 production. ANOVA results of VS reduction and COD removal are given in Table 5. p-values of all factors are higher than 0.05 for both VS reduction and COD removal and that means all factors are important for VS reduction and COD removal.

Table 4 ANOVA results of cumulative biogas, biogas yield, and CH4
Table 5 ANOVA results of VS reduction and COD removal

In order to show that the model was fit to give the most accurate results, R2 values, which should be between 0.75 and 1, were calculated as given in Eq. (3) [41]. R2 values for cumulative biogas, COD removal, VS reduction, CH4, and biogas yield are 94.14%, 94.19%, 93.59%, 96.45%, and 95.37%, respectively. These results showed that the evaluated model was highly significant.

$${R}^{2}=1-\frac{{SS}_{\mathrm{error}}}{{SS}_{\mathrm{model}}+{SS}_{\mathrm{error}}}$$
(3)

where SSmodel represents the sum of the squares of the model, while SSerror represents the sum of the squares of the error. Predicted and observed data correlations are given for cumulative biogas production, biogas yield, CH4, VS reduction, and COD removal in Fig. 4a, b, c, d, and e, respectively. As can be seen from Fig. 4a–e, the experimental data and predicted values for each response are in a good correlation. Also, the second-order equations created by RSM are given between Eqs. (4) and (8) depending on the input parameters.

Fig. 4
figure 4

Predicted and observed data correlations: a cumulative biogas, b biogas yield, c CH4, d VS reduction, e COD removal

$$\mathrm{Cumulative biogas }(\mathrm{mL})=59886 +8633 \mathbf{B}\mathbf{F}\mathbf{S}\mathbf{R}\mathbf{a}\mathbf{t}\mathbf{i}\mathbf{o} (\mathrm{\%})-7438 \mathbf{p}\mathbf{H}-11849 \mathbf{T}\mathbf{S} (\mathrm{\%})-1096 \mathbf{B}\mathbf{F}\mathbf{S}\mathbf{R}\mathbf{a}\mathbf{t}\mathbf{i}\mathbf{o}(\mathrm{\%})*\mathbf{B}\mathbf{F}\mathbf{S}\mathbf{R}\mathbf{a}\mathbf{t}\mathbf{i}\mathbf{o} (\mathrm{\%})+275 \mathbf{p}\mathbf{H}*\mathbf{p}\mathbf{H}+193 \mathbf{T}\mathbf{S} (\mathrm{\%})*\mathbf{T}\mathbf{S} (\mathrm{\%})-1043 \mathbf{B}\mathbf{F}\mathbf{S}\mathbf{R}\mathbf{a}\mathbf{t}\mathbf{i}\mathbf{o} (\mathrm{\%})*\mathbf{p}\mathbf{H}+650 \mathbf{B}\mathbf{F}\mathbf{S}\mathbf{R}\mathbf{a}\mathbf{t}\mathbf{i}\mathbf{o} (\mathrm{\%})*\mathbf{T}\mathbf{S} (\mathrm{\%})+1025 \mathbf{p}\mathbf{H}*\mathbf{T}\mathbf{S} (\mathrm{\%})$$
(4)
$$\mathrm{Biogas Yield }\left(\frac{\mathrm{mL}}{\mathrm{gVS}}\right)=2166+338 \mathbf{B}\mathbf{F}\mathbf{S}\mathbf{R}\mathbf{a}\mathbf{t}\mathbf{i}\mathbf{o}\left(\mathrm{\%}\right)-261 \mathbf{p}\mathbf{H}-436 \mathbf{T}\mathbf{S} \left(\mathrm{\%}\right)-32.3 \mathbf{B}\mathbf{F}\mathbf{S}\mathbf{R}\mathbf{a}\mathbf{t}\mathbf{i}\mathbf{o} \left(\mathrm{\%}\right)*\mathbf{B}\mathbf{F}\mathbf{S}\mathbf{R}\mathbf{a}\mathbf{t}\mathbf{i}\mathbf{o} \left(\mathrm{\%}\right)+13.2 \mathbf{p}\mathbf{H}*\mathbf{p}\mathbf{H}+11.5 \mathbf{T}\mathbf{S} \left(\mathrm{\%}\right)*\mathbf{T}\mathbf{S} \left(\mathrm{\%}\right)-30.8 \mathbf{B}\mathbf{F}\mathbf{S}\mathbf{R}\mathbf{a}\mathbf{t}\mathbf{i}\mathbf{o} (\mathrm{\%})*\mathbf{p}\mathbf{H}+11.7 \mathbf{B}\mathbf{F}\mathbf{S}\mathbf{R}\mathbf{a}\mathbf{t}\mathbf{i}\mathbf{o}(\mathrm{\%})*\mathbf{T}\mathbf{S}(\mathrm{\%})+29.3 \mathbf{p}\mathbf{H}*\mathbf{T}\mathbf{S} (\mathrm{\%})$$
(5)
$$\mathrm{CH}4 \left(\mathrm{\%}\right)=196.8+54.0 \mathbf{B}\mathbf{F}\mathbf{S}\mathbf{R}\mathbf{a}\mathbf{t}\mathbf{i}\mathbf{o} \left(\mathrm{\%}\right)-13.4 \mathbf{p}\mathbf{H}-46.7 \mathbf{T}\mathbf{S} \left(\mathrm{\%}\right)-5.17 \mathbf{B}\mathbf{F}\mathbf{S}\mathbf{R}\mathbf{a}\mathbf{t}\mathbf{i}\mathbf{o} \left(\mathrm{\%}\right)*\mathbf{B}\mathbf{F}\mathbf{S}\mathbf{R}\mathbf{a}\mathbf{t}\mathbf{i}\mathbf{o} \left(\mathrm{\%}\right)+0.312 \mathbf{p}\mathbf{H}*\mathbf{p}\mathbf{H}+0.941 \mathbf{T}\mathbf{S} \left(\mathrm{\%}\right)*\mathbf{T}\mathbf{S} \left(\mathrm{\%}\right)- 5.20 \mathbf{B}\mathbf{F}\mathbf{S}\mathbf{R}\mathbf{a}\mathbf{t}\mathbf{i}\mathbf{o} (\mathrm{\%})*\mathbf{p}\mathbf{H}+1.85\mathbf{B}\mathbf{F}\mathbf{S}\mathbf{R}\mathbf{a}\mathbf{t}\mathbf{i}\mathbf{o} (\mathrm{\%})*\mathbf{T}\mathbf{S} (\mathrm{\%})+3.523 \mathbf{p}\mathbf{H}*\mathbf{T}\mathbf{S} (\mathrm{\%})$$
(6)
$$\mathrm{VS Reduction }\left(\mathrm{\%}\right)=128 +50.9 \mathbf{B}\mathbf{F}\mathbf{S}\mathbf{R}\mathbf{a}\mathbf{t}\mathbf{i}\mathbf{o} \left(\mathrm{\%}\right)-0.6 \mathbf{p}\mathbf{H}-41.5 \mathbf{T}\mathbf{S}\left(\mathrm{\%}\right)-6.02 \mathbf{B}\mathbf{F}\mathbf{S}\mathbf{R}\mathbf{a}\mathbf{t}\mathbf{i}\mathbf{o} \left(\mathrm{\%}\right)*\mathbf{B}\mathbf{F}\mathbf{S}\mathbf{R}\mathbf{a}\mathbf{t}\mathbf{i}\mathbf{o} \left(\mathrm{\%}\right)-0.49 \mathbf{p}\mathbf{H}*\mathbf{p}\mathbf{H}-0.02 \mathbf{T}\mathbf{S} \left(\mathrm{\%}\right)*\mathbf{T}\mathbf{S} \left(\mathrm{\%}\right)-8.11 \mathbf{B}\mathbf{F}\mathbf{S}\mathbf{R}\mathbf{a}\mathbf{t}\mathbf{i}\mathbf{o} (\mathrm{\%})*\mathbf{p}\mathbf{H}+4.65 \mathbf{B}\mathbf{F}\mathbf{S}\mathbf{R}\mathbf{a}\mathbf{t}\mathbf{i}\mathbf{o} (\mathrm{\%})*\mathbf{T}\mathbf{S} (\mathrm{\%})+4.12 \mathbf{p}\mathbf{H}*\mathbf{T}\mathbf{S} (\mathrm{\%})$$
(7)
$$\mathrm{COD Removal }\left(\mathrm{\%}\right)=224 +88.2 \mathbf{B}\mathbf{F}\mathbf{S}\mathbf{R}\mathbf{a}\mathbf{t}\mathbf{i}\mathbf{o} \left(\mathrm{\%}\right)-40.9 \mathbf{p}\mathbf{H}-37.3 \mathbf{T}\mathbf{S} \left(\mathrm{\%}\right)-7.75 \mathbf{B}\mathbf{F}\mathbf{S}\mathbf{R}\mathbf{a}\mathbf{t}\mathbf{i}\mathbf{o} \left(\mathrm{\%}\right)*\mathbf{B}\mathbf{F}\mathbf{S}\mathbf{R}\mathbf{a}\mathbf{t}\mathbf{i}\mathbf{o} \left(\mathrm{\%}\right)+0.96 \mathbf{p}\mathbf{H}*\mathbf{p}\mathbf{H}-1.18 \mathbf{T}\mathbf{S} \left(\mathrm{\%}\right)*\mathbf{T}\mathbf{S} \left(\mathrm{\%}\right)-8.97 \mathbf{B}\mathbf{F}\mathbf{S}\mathbf{R}\mathbf{a}\mathbf{t}\mathbf{i}\mathbf{o} (\mathrm{\%})*\mathbf{p}\mathbf{H}+2.38 \mathbf{B}\mathbf{F}\mathbf{S}\mathbf{R}\mathbf{a}\mathbf{t}\mathbf{i}\mathbf{o} (\mathrm{\%})*\mathbf{T}\mathbf{S} (\mathrm{\%})+6.63 \mathbf{p}\mathbf{H}*\mathbf{T}\mathbf{S} (\mathrm{\%})$$
(8)

The synergetic effects of the selected responses are determined by three-dimensional response surface graphs and are shown in Figs. 5, 6, 7, 8, and 9. As seen from Fig. 5, the cumulative biogas production increased due to the increase in initial pH (from 5 to 9). pH adjustment in the range of 5.0–11.0 can lead to an increased solubilization of the organics which can turned a fraction of the recalcitrant material into a more degradable form [42]. It is observed that the cumulative biogas production increases due to the increase in the BFS ratio and the TS besides the initial pH. This can be described as follows: increase in initial TS increases biogas production because of the easily biodegradable substances [29]. Furthermore, BFS is an additive including metal oxides and adding metal oxide additives to AD can enhance the direct interspecies electron transfer (DIET) between the microorganisms and increase biogas production on AD [43]. The change in biogas yield at different pH, TS, and BFS ratios is shown in Fig. 6. Biogas yield increased with the increasing pH and BFS ratio. The maximum biogas yield was achieved at 9 pH and 1% BFS ratio. TS is the most effective parameter in the biogas yield and increasing TS ratio resulted an increase in biogas yield. Biogas yield is a calculable parameter and it highly depends on amount of biogas and TS ratio so results are very similar with cumulative biogas study. CH4 production is based upon methanogenic activity on AD and also the operational conditions that suitable conditions for methanogens. Figure 7 shows response surface plots of CH4. CH4 increased with both increasing BFS ratio and pH. Before mentioned BFS adding on AD can positively affect the DIET and this can enhance the metabolic activity of methanogens. VS and COD is commonly used as an indicator of the amount of organic matter that can will be converted to biogas [29, 44]. Figure 8 and Fig. 9 show the simultaneous effects of selected responses on VS reduction and COD removal. As can be seen in both Fig. 8 and Fig. 9, all the plots are very similar because of VS removal also provides COD removal and all parameters affecting VS removal also effect COD removal.

Fig. 5
figure 5

Response surface plots of cumulative biogas

Fig. 6
figure 6

Response surface plots of biogas yield

Fig. 7
figure 7

Response surface plots of CH4

Fig. 8
figure 8

Response surface plots of VS reduction

Fig. 9
figure 9

Response surface plots of COD removal

3.3 Optimization studies

Finally, using the numerical optimization model in BB, optimization of the input parameters (BFS ratio, TS, and initial pH) was performed to obtain maximum values in the output parameters (cumulative biogas production, biogas yield, CH4 content, VS reduction, and COD removal). Figure 10 shows the optimization principles of RSM. It has been tried to obtain maximum values in all output parameters.

Fig. 10
figure 10

Optimization principles of RSM

The results of the optimization for maximum output values were obtained at 2.01%, 9, and 10% for BFS ratio, pH, and TS, respectively. Under these conditions, the highest cumulative biogas production was 15,420 mL, biogas efficiency was 543.23 mL/gVS, CH4 76.30%, VS reduction 61.12%, and COD removal was 70.85% (Fig. 11).

Fig. 11
figure 11

Optimization plots for optimum conditions

4 Conclusions

This study focused on optimization of selected operational conditions on biogas production by using RSM. BFS ratio, TS, and pH were selected as input parameters for RSM and cumulative biogas, biogas yield, CH4, VS reduction, and COD removal were selected as output parameters. High R2 values (93.59–96.45%) obtained by ANOVA showed the RSM could be used for optimization of biogas production. Depending on the results of RSM, optimum conditions for the highest output values are obtained as 2.01%, 9, and 10% for BFS ratio, TS, and pH, respectively. Under these conditions, the maximum biogas production is 15420 mL, biogas yield 543.23 mL/gVS, and CH4 76.30%. VS removal was 61.12% and COD removal was 70.85%. The results showed that RSM is a useful tool for optimization of biogas production by AD. Furthermore, results showed that using BFS can improve biogas production and it can be use as a additive on anaerobic digestion.