Introduction

Oil recovery efficiency from oil reservoirs under natural driving mechanisms in most cases is relatively insufficient process and results in a low overall oil recovery. Continuous world energy demand while the energy sources are limited has coordinated researchers to work intensively on enhanced oil recovery (EOR) processes. Although different EOR methods have been developed, some of them were appeared to be noneconomic or not environmental friendly (Al-Sulaimani et al. 2011). Microbial enhanced oil recovery (MEOR) in some reports has claimed to be cost-effective and less harmful to the environment (Krüger et al. 2016). MEOR is a biologically based technology, which mobilizes trapped oil by utilization of bioproducts through both in situ and ex situ processes. This technology has different mechanisms such as gas production, improving mobility ratio by oil viscosity reduction, biopolymer production, bioclogging, interfacial tension (IFT) reduction and wettability alteration (Armstrong and Wildenschild 2012a; Lazar et al. 2007; Sarafzadeh et al. 2013; Sivakumar et al. 2013; Soudmand-asli et al. 2007; Zhao et al. 2017). However, the last two mechanisms have great importance, since IFT and wettability control capillary forces in porous media.

Biosurfactant plays an important role in most of the MEOR processes. In in situ MEOR, IFT reduction due to biosurfactant production and fluid diversion are the main mechanisms that take place when sugars are the carbon source (Nielsen 2010). In ex situ MEOR, biosurfactant is an effective EOR agent, while other mechanisms, such as bioclogging, are not beneficial (Armstrong and Wildenschild 2012b). Biosurfactants, as biodegradable materials, are suitable alternatives to replace toxic and low degradable chemical surfactants to reduce environmental risks (Reis et al. 2013). Sustainability is another superiority of biosurfactants to chemical surfactants, since biosurfactants can be produced from renewable feed stocks (Marchant and Banat 2012). Additionally, biosurfactants stability in harsh conditions of temperature, pH and salinity has made them preferable (Al-Wahaibi et al. 2014).

Despite all aforementioned advantages of biosurfactants, high feed and operational costs alongside to the low yield hinder the production of biosurfactants in industrial scales (Henkel et al. 2012). Several researches have been carried out to improve the economical production of biosurfactant, but most of them were not intended to use it in MEOR processes (Joshi et al. 2008b).

Brines of many sandstone and carbonate reservoirs are rich in Ca2+ (Austad 2013; Fisher and Boles 1990). These Ca2+ rich brines are not compatible with H2PO4 and HPO42− anions, which are present in most media used for biosurfactant production. It means that using these media at reservoir condition may lead to a significant formation damage. Moreover, in the previous research works, the optimum medium was considered as the medium in which the maximum biosurfactant yield is achieved. Therefore, previously reported values are not applicable for MEOR processes due to high nutrient loss and formation damage problem.

Considering the existing challenges and limitations associated with in situ MEOR, the aim of this article is to introduce new rules for designing an optimum ex situ MEOR process. After isolation, screening and identification of a biosurfactant-producing strain, surface activity and wettability study was done to ensure the capability of produced biosurfactant for improving oil recovery. Thereafter, it was tried to obtain an optimized and cost-effective production scheme for biosurfactant production. Box–Behnken experimental design was used to find the optimum point in the design space. The weight of extracted biosurfactant was considered as an index for biosurfactant production.

Materials and methods

Isolation of oil degrading bacteria

Soil contaminated with crude oil and stock tank water in sterile containers was collected from one of the Iranian south oil field production units. Two grams of the soil samples/two ml of water samples were enriched with 50 ml of mineral salt base medium in 250-ml conical flasks. Medium was adopted from Peng et al. (2007), with the composition of Table S1; the medium was adjusted to pH 7.4. The trace element solution contained ZnSO4, 0.29; CaCl2, 0.24; CuSO4, 0.25; MnSO4, 0.17 g/l, and was sterilized separately. The enrichment process was conducted at 30 °C, 160 rpm for 5 days.

Following the enrichment process, different dilutions of cultures up to 108 were prepared and spread on Luria–Bertani (LB) agar medium composed of tryptone, 10; yeast extract, 5; NaCl, 5; agar, 15 g/l. After 1–3-day incubation at 30 °C, morphologically different colonies were re-cultivated in fresh agar plates at least for three times to obtain pure cultures. Purity of isolates was confirmed through Gram staining (Gudiña et al. 2012).

All steps of the previous paragraph were repeated using another enrichment method to ensure enrichment method has not considerable effect on strains which are isolated. Bushnell Haas medium with the composition of Table S2 was adjusted to pH 7–7.2. Enrichment was conducted at 30 °C for 1 month (no shaking) (Bushnell and Haas 1941).

Seed culture preparation

LB broth medium was used for preparation of seed culture. Fifty milliliters of seed medium in 250-ml flask autoclaved and was inoculated with loop full of the pure microorganisms, which had been cultivated and grown on LB agar beforehand. Thereafter, inoculated flasks incubated for 24 h at 30 °C, 160 rpm. Lastly, by using sterile seed medium the optical density at 600 nm was adjusted to 1.

Screening of biosurfactant-producing strains

Mineral salt solution (MSSO) medium was used to study biosurfactant production. MSSO medium composed of KH2PO4, 2.7; K2HPO4, 13.9; NaCl, 1; NaNO3, 1; yeast extract, 0.5; glucose and sun flower oil as two different carbon sources 10 g/l. This solution was supplemented with 10-ml stock solution of 0.25% (w/v) MgSO4, 1% (w/v) (NH4)2SO4 and 10 ml of trace element solution with the composition of Table S3, which were already filter sterilized separately (Darvishi et al. 2011). Flasks were inoculated with 1%(v/v) of seed medium and incubated at 30 °C, 160 rpm for 48 h. After that for removing bacterial cells, samples were centrifuged at 9000 rpm for 15 min and cell-free supernatants were used for oil spreading method to detect the biosurfactant-producing strains (Youssef et al. 2004). It should be noticed that sun flower oil as carbon source only was used in the screening step, and hereafter carbon source only refers to glucose.

Identification of the bacteria

Chromosomal DNA of screened bacteria was extracted using CinnaPure TM DNA extraction kit (Cinnagen, Iran) according to manufacturer’s instructions. The 16S rRNA gene was amplified by PCR using universal primer: F: AGAGTTTGATCCTGGCTCAG, R:ACGGCTACCTTGTTACGACTT (Weisburg et al. 1991). The reaction was performed in a total volume of 20 µl and was set up as follows: 7 µl of PCR master mix (Amplicon, Denmark), 1 µl of each F and R primer, 1 ng of template DNA and remaining volume (10 µl) of sterile distilled water. The thermal condition was carried out in these steps: 94 °C for 5 min as initial denaturation, and 35 cycle at 94 °C for 30 s, 57 °C of annealing for 30 and 105 s for extension at 72 °C, the PCR was terminated with 10 min at 72 °C. The amplified product was detected on 1% gel electrophoresis, and the band similar to 1513 bp was cut and extracted by gel elution kit (GenMark Technology, Taichung, Taiwan). The extracted band then was sequenced by Macrogen Service Centre Advancing (Korea). The resulting sequence homology was compared to the GenBank database of the National Centre for Biotechnology Information (NCBI) using BLASTn algorithm. CLustalW was used for nucleotide sequence alignment. The neighbor joining tree construction was carried out using Molecular Evolutionary Genetics Analysis (MEGA) software version 6.0 (Lotfabad et al. 2009).

Purification and partial identification of biosurfactant using FTIR

Acid precipitation method was used for the extraction of biosurfactant. The cell-free supernatant (CFS) which was obtained by centrifuging culture at 9000 rpm for 15 min was then used for biosurfactant extraction. The supernatant was subjected to acid precipitation by adding 6 M HCl to obtain pH 2 and then kept at 4 °C overnight. Yellowish white precipitates were then collected by centrifugation at 9000 rpm for 20 min and neutralized with alkaline water (pH 8, NaOH) and then lyophilized overnight (Pereira et al. 2013). To infer the overall nature of chemical bonds and structural groups in the extracted biosurfactant, Fourier transform infrared spectroscopy analysis was conducted with ABB Bomem MB 100. One hundred milligrams of KBr (Merck, Germany) and 1 mg of extracted biosurfactant were completely mixed and pressed to obtain translucent pellets (Al-Wahaibi et al. 2014). FTIR spectral data with resolution of 2 cm−1 were collected between 400 and 4000 cm−1.

Surface tension measurements

For surface tension and IFT measurements, PAT-1 (SINTERFACE Technologies, Berlin) instrument was used. A detailed description of this instrument is reported in the work of Javadi et al. (2013), Loglio et al. (2001). Briefly, the setup is a dosing system with the accuracy of \(\pm 0.02 \;\upmu{\text{l}}\) (which can be modified by changing the syringe size) connected to a capillary tube. The drop forms and grows with a respective liquid flow rate at the end of this capillary tube. Two different cameras are utilized in the instrument, one with normal frame rate for direct surface tension measurements, and another with high frame speed (up to 3000 frame/s) for recording the drop shape and profile accurately. Finally, by fitting the Gauss–Laplace equation to the profile coordinates (extracted from drop images) surface tension values are obtained. Surface tension of each biosurfactant concentration was measured three times. Critical micelle concentration (CMC) is the surfactant concentration at and above which surfactant molecules form micelles instead of adsorbing on oil–water interface. Determination of CMC is one of the simplest ways to evaluate the usefulness of a surfactant. To determine this property, surface tension was plotted versus logarithm of biosurfactant concentration (Mukerjee and Mysels 1971). In order to investigate the stability of produced biosurfactant, surface tension of different seawater dilutions with the concentration of 0.6 g/l biosurfactant was measured. Additionally, for taking into account the effect of salinity on surface tension, surface tension of different dilutions without biosurfactant was also measured. It should be noticed that the seawater that was used in this work had the total dissolved solid (TDS) content of 42,145 ppm.

For IFT measurements, CFS dilution of 1/20 (with distilled water) was prepared for each case in Table S5, and then IFT with n-heptane was measured for 3 times.

Wettability studies

Oil

Detail properties of the crude oil A used in this study have been reported in the work of Rashid et al. (2015).

Rock slices

Thin rock slices were prepared from carbonate outcrop, which was interpreted to be composed mainly from calcite based on X-ray diffraction (XRD) analysis (Fig. S1 in supplementary materials). Rock slices were polished with sandpapers of 100, 400 and 1000 grits, respectively, to ensure minimum surface roughness interferes in contact angle results (Le et al. 2011). Afterward for complete removal of any contamination, these slices were washed with water in an ultrasonic cleaner (Pars Nahand, PARSONIC 2600 s, Iran) for 60 min with the frequency of 28 kHz (Mahani et al. 2015).

Contact angle tests

In this study, contact angle test is used for wettability measurements. This method is the best method to evaluate influence of brine chemistry on wettability at experimental conditions. Between different methods of contact angle measurement, generally sessile drop method is used in petroleum engineering fields (Anderson 1986). The goal of contact angle measurements was to evaluate effect of the biosurfactant on calcite surfaces wettability. Figure S2 shows the setup by which the contact angles were measured at ambient temperature. This setup was composed of a syringe pump (JMS, SP-500, USA) with rate accuracy of 0.27 μl/s, a digital microscope (Dino-Lite, Taiwan), a needle and an image processing software. In all contact angle tests, bulk and drop phase was not changed to ensure the change in contact angle is only due to the change in surface wettability; that is, liquid–liquid interfacial energy was kept constant so as to contact angle changes show changes in solid–liquid interfacial energy. Distilled water was used as bulk phase, and crude oil A was used as drop phase. Contact angles of slices were determined in following three steps:

  1. 1.

    After slices were washed, this contact angle shows the natural and initial wettability of calcite surfaces (\(\theta_{\text{i}}\)).

  2. 2.

    Washed slices were aged at 80 °C for 2 months in crude oil A to attain oil-wet state. Contact angles measured in this step illustrate wettability at reservoir condition (\(\theta_{\text{o}}\)).

  3. 3.

    In this step, the aged slices were transferred to four different following media for 2 weeks at laboratory temperature (24–26 °C). These media were 500 ppm biosurfactant in distilled water, 500 ppm biosurfactant in seawater, distilled water and seawater as control media. The contact angle results of this step were stored as the final wettability (\(\theta_{\text{f}}\)). For evaluation of biosurfactant ability to wettability reversal (wettability alteration toward water-wet state) of calcite surfaces, wettability reversal percent (WRP) with following definition was used.

    $${\text{WRP}} = \frac{{\theta_{\text{o}} - \theta_{\text{f}} }}{{\theta_{\text{o}} - \theta_{\text{i}} }} \times 100$$
    (1)

Value of WRP can vary between 0 and 100, which values close to 0 indicate no wettability change while values close to 100 indicate complete wettability reversal.

Optimization of biosurfactant production

Biosurfactant production index (BPI)

Biosurfactant was precipitated after adjusting the supernatant pH to 2.0 using 6 M HCl and was kept at 4 °C overnight. Following this, the biosurfactant precipitate was isolated by centrifugation at 9000 rpm for 20 min. The resulting precipitate then was dried in an oven for 24 h (until no change in weight was seen). Biosurfactant production index in (g/l) then calculated by the ratio of the biosurfactant dry weight to the initial sample volume (Nitschke and Pastore 2004).

Biomass production index (MPI)

For estimation of biomass produced in each culture medium, culture was centrifuged at 9000 rpm for 15 min. The cell precipitate was dried at 80 °C until a constant weight was attained (Tavassoli et al. 2012).

Experimental design

Response surface methodology (RSM) was used for investigating effects of four usual major nutrient, H2PO4, HPO42−, carbon source and yeast extract on bacterial growth and biosurfactant production (Abouseoud et al. 2008; Burgos-Díaz et al. 2011; Gudina et al. 2013; Illias et al. 1999; Najafi et al. 2015). In this study, KH2PO4, K2HPO4 and glucose, respectively, were selected as H2PO4, HPO42− and carbon source. Yeast extract can be consumed by microorganisms as both carbon and nitrogen sources; however, herein it was considered as a general source, not a source for a special element. RSM is combination of empirical techniques that evaluates relation which exists between a cluster of controlled experimental parameters and the measured responses according to one or more selected criteria (Sen 1997). The objective is to find a desirable location in the design space. Box–Behnken designs are response surface designs, specially made to require only 3 levels, coded as -1, 0, and + 1.

Box–Behnken design in accordance with Eq. (2) acquires data to fit a second-order polynomial model that includes both linear and interaction effects of variables.

$$Y_{i} = \beta_{0} + \mathop \sum \limits_{j = 1}^{k} \beta_{j} x_{j} + \mathop \sum \limits_{j = 1}^{k} \beta_{jj} x_{j}^{2} + \sum \mathop \sum \limits_{i < j}^{k} \beta_{ij} x_{i} x_{j}$$
(2)

where Yi is predicted response, the coefficient β0 is the offset or free term called intercept, βj is linear effect, βjj is squared effect, and βij is interaction effect coefficient. Independent variables were coded in accordance with the following equation:

$$x_{i} = \frac{{(X_{i} - X)}}{{\Delta X_{i} }}$$
(3)

where xi and Xi are the coded and actual value of the ith independent value, X is the actual value of the ith variable at the central point, and ΔXi is the step change in Xi due to unit variation of the xi. The “Design Expert” Software (version 7.0.0, Stat-Ease Inc., Minneapolis, USA) was used for design and analysis of experiments. Coded and actual values for the variables are given in Table S4. To estimate the pure error, sum of squares three replicates (runs 25–27) at the center of the design was used. Table S5 shows designed experiments. Twenty-seven experiments of Table S5 are 27 culture media; concentration of effective components changes, while concentration of other components is constant equal to MSSO medium.

Results and discussion

Isolation, screening and identification of biosurfactant-producing microorganisms

To apply the ex situ MEOR process in the oil reservoir, for logistic and/or transportation issues the bioreactors should be placed near the target field. Bioreactors are controlled systems which their temperature can be set; however, this can impose some costs if the difference between the temperature of bioreactor and field is noticeable. For this reason, the compatibility of the candidate biosurfactant-producing bacteria with the oil field climate should be considered. In general, the regional indigenous microorganisms are compatible with the climate condition of that region. From both methods which were used for isolation fifteen different strains were obtained, which illustrates that proper isolation method has been used. Biosurfactant production ability of these different strains was evaluated through oil spreading method (data not shown). Among them, four strains were able to produce biosurfactant. However, MJ01 strain, which was grown in the medium with glucose as carbon source, showed the best biosurfactant production ability (more clear zone diameter). The analysis of 16S rRNA partial sequence showed that the MJ01 strain is Bacillus subtilis by 99% similarity (Fig. 1). The 16S rRNA of this strain was submitted to GenBank with accession number KT188773.

Fig. 1
figure 1

Neighbor joining method, used for predicting phylogenetic tree by 16S rRNA gene sequences, represents that the strain MJ01 belongs to Bacillus subtilis

Partial identification of biosurfactant using FTIR

Figure 2 shows IR spectra of biosurfactant produced by screened strain. Bands at 3392 cm−1 (NH stretch) and 1652 cm−1 (CO–N Stretch) are characteristic of peptides. The band at 1539 cm−1 is due to deformation mode of the N–H bond in combination with the C–N stretch (de Faria et al. 2011). The band at 1737 cm−1 is the characteristic of lactone carbonyl absorption (de Faria et al. 2011; Joshi et al. 2008a; Thaniyavarn et al. 2003). Bands at 2927 and 2957 cm−1 show asymmetric C–H stretch of methylene and methyl groups, respectively. Bands at 1456 and 1386 cm−1 show strong methylene/methyl bond and weak methyl bond, respectively (Coates 2000). Therefore, both aliphatic chains (hydrophobic domain) and peptide moiety (hydrophilic domain) exist in the produced biosurfactant. These pattern and bands are well similar to reports for lipopeptide biosurfactant surfactin (Al-Wahaibi et al. 2014).

Fig. 2
figure 2

FTIR spectra of biosurfactant produced by MJ01 isolate

Surface activity of produced biosurfactant

Figure 3 represents results of surface tension measurements for different concentration of biosurfactant produced by MJ01 strain. CMC value is the intersection point of two lines, which is 0.06 g/l. In the literature, different solutions with different solvents were used for determination of CMC, which is illustrated in Table 1. Hence, to compare the surface activity of this biosurfactant with previously reported biosurfactants, the CMC values cannot be considered. So for doing valid comparison, the surface activity term can be defined as follows:

$${\text{SA}} = \frac{{{\text{ST}}_{\text{i}} - {\text{ST}}_{\text{f}} }}{{{\text{ST}}_{\text{i}} \times C_{\text{bs}} }}$$
(4)

where SA is surface activity, STi, STf are solution surface tensions before and after addition of biosurfactant, and Cbs is biosurfactant concentration at which STf is measured, to compensate concentration effect on measured surface tensions. It is obvious that SA increases with increasing biosurfactant ability to reduce surface tension. As can be seen in Table 1, the SA of the surfactin produced by MJ01 is in good agreement with the work of Pereira et al. (2013) and greater than SA of other surfactin biosurfactants reported in the literature (de Faria et al. 2011; Pereira et al. 2013; Thimon et al. 1992). Seawater is used as the injecting fluid in most of the water injection projects. Considering this fact, it is desirable if the biosurfactant can be injected with seawater instead of freshwater, without losing its effectiveness. Difference between surface tension of different seawater dilutions with and without biosurfactant was measured so as to elucidate stability of the biosurfactant in seawater. Figure 4 shows that increasing salinity up to 37,930 ppm (seawater ratio of 0.9) cannot reduce surface activity of the biosurfactant. In this work, no stability analysis was done for higher salinities; however, Al-Bahry et al. (2013) showed that surfactin produced by a Bacillus subtilis strain is stable at higher salinities and temperatures up to 20 g/l NaCl and 100 °C. Therefore, it is expected that the biosurfactant produced by MJ01 strain remains stable in reservoir condition.

Fig. 3
figure 3

Surface tension versus concentration semilog plot for biosurfactant produced by MJ01 strain

Table 1 Surface activity (SA) of the surfactin produced by MJ01 strain in comparison with the literature
Fig. 4
figure 4

Surface tension of different seawater dilutions with 0.6 g/l biosurfactant

To ensure the effectiveness of this biosurfactant on reducing capillary forces in porous media, IFT measurements were taken; Table S5 shows results of these measurements. As it can be seen 1/20 dilution of CFS of fourth run could reduce the IFT to 13.3 mN/m. Therefore, this biosurfactant can increase oil recovery by reducing capillary forces in porous media. Although in this work oil recovery was not measured directly, Pereira et al. (2013) showed that biosurfactant produced by a Bacillus subtilis strain at a concentration of 1 g/l can increase oil recovery by 19%. Regarding the fact that biosurfactant produced by MJ01 has the same surface activity, it can be expected to observe similar oil recovery if one uses the biosurfactant produced by MJ01 strain at the same condition.

Surfactin effect on calcite slices

Wettability can be defined as the preference of one fluid to adsorb or spread on a solid surface in the presence of another immiscible fluid. In the case of fractured carbonate reservoirs, any alteration of wettability toward more water-wet state changes capillary forces direction so that spontaneous imbibition of water can occur. Therefore, in these reservoirs wettability alteration improves oil recovery. In the case of non-fractured carbonate reservoirs, Owens and Archer (1971) based on contact angle measurements showed that changing wettability from oil-wet to more neutral wet or water-wet state improves oil recovery significantly.

Extensive work has been done about effect of biosurfactants on the wettability. Al-Sulaimani et al. (2012) investigated effect of biosurfactant produced by a Bacillus subtilis strain on the strongly water-wet Berea sandstones; they observed wettability change toward less water-wet state. Karimi et al. (2012) evaluated effect of biosurfactant produced by Enterobacter cloacae on the wettability of aged glass slices. In this work, contact angle change from ~ 110° to ~ 90° was observed and it was concluded that biosurfactant has minor effect on the wettability. In the case of dolomite surfaces, Sarafzadeh et al. (2013) and Rabiei et al. (2013) from results of Amott tests showed that biosurfactant produced by Enterobacter cloacae changes wettability from strongly water-wet to neutral wet state. Despite these literatures, effect of biosurfactant on oil-wet calcite surfaces, which can be considered as a representative of carbonate reservoirs, was still an open question.

Table 2 shows the result of contact angle tests with WRP in different conditions. As can be seen surfactin effect in the salinity of seawater is less significant; however, even in the salinity of seawater the presence of biosurfactant led to 6% more WRP in comparison with the control case; that is, wettability has changed toward less oil-wet state. In the zero salinity, almost complete wettability reversal (WRP = 97%) has occurred. Reason for this observation lies behind charge of the polar groups in surfactin. Due to the presence of two negative charges on the aspartate and glutamate residues of surfactin (Mulligan 2005), it can be considered as an anionic surfactant. Mechanism of wettability alteration by anionic surfactants is hydrophobic interaction of the surfactant tail with the crude oil components adsorbed in the rock surface. Formation of this so-called monolayer means that hydrophilic head groups of surfactants cover the oil-wet surface and change the wettability preference toward water-wet. In the zero salinity, only the hydrophobic–hydrophobic interactions between hydrophobic tail of surfactants and adsorbed crude oil components exist; however, in the salinity of seawater due to the presence of divalent cations such Ca2+ and Mg2+, hydrophilic (cation)–hydrophilic (anion) interactions exist too. These electrostatic interactions between divalent cations and negatively charged heads of surfactin molecules weaken hydrophobic interactions. Therefore, in the salinity of seawater, divalent cations keep some of the surfactin molecules in the bulk and reduce the ability of biosurfactant to change wettability. Connate water in carbonate reservoirs is usually rich in Ca2+ (Austad 2013); therefore, if biosurfactant is injected through freshwater, due to the mixing of injected fluid with formation brine, the wettability alteration is expected to be somehow less than the wettability alteration which was observed for the freshwater case. However, still a significant wettability change toward less oil-wet state or neutral wet state is expected to occur. If biosurfactant is injected through seawater, due to the mixing of injected fluid with formation brine, effect of biosurfactant is reduced to be even less than 6% (based on WRP). Therefore, if this biosurfactant is injected through freshwater, wettability alteration has to be considered as a mechanism for improving oil recovery, whereas it can be ignored if the biosurfactant is injected through seawater.

Table 2 Contact angle data of surfactin effect on calcite slices

Optimization of biosurfactant production

To determine the preliminary range of variables, two different, ideal and economical limits were considered. The ideal limit is the maximum feasible yield of biosurfactant, and the economical limit is the yield of biosurfactant by considering two important facts. The first evidence is that the extraction of biosurfactant from culture medium is not feasible both technically and economically; therefore, the raw biosurfactant in culture broth could be used directly for the injection process (Rabiei et al. 2013; Sarafzadeh et al. 2013; Souayeh et al. 2014). The second fact is the components of culture medium should be compatible with reservoir connate water to prevent formation damage. Connate water in carbonate reservoirs is usually rich in Ca2+ (Austad 2013), and also some sandstone reservoirs connate water is Ca2+ enriched (Fisher and Boles 1990). Two major components existing in almost all mineral salt base media are H2PO4 and HPO42− that precipitate and cause damage in the presence of Ca2+ (Dorozhkin 2009; Mooney and Meisenhelter 1960). Therefore, in this study the solubility of Ca(H2PO4)2 and CaHPO4 was evaluated for economical consideration. Table 2 presents the designed experimental parameters and their corresponding BPI. Equation (5) represents the best fitted second-order polynomial obtained through applying multiple regression analysis of the BPI results.

$${\text{BPI}} = 0.86 + 0.21{\text{A}} + 0.081{\text{B}} + 0.09{\text{C}} - 0.16{\text{D}} + 0.22{\text{AB}} + 0.13{\text{BC}} - 0.18{\text{A}}^{2} - 0.19{\text{B}}^{2} - 0.14{\text{C}}^{2} - 0.078{\text{D}}^{2}$$
(5)

An ANOVA, Table S6, was performed to validate the regression coefficients.

Model terms with P > F less than 0.05 are significant. Accordingly, all parameters except D2 are significant. High F value of model with low probability value (“Pmodel > F” < 0.0001) shows the significance of the model. Coefficient of determination, indicating how well the data fit a statistical model denoted by R2, is large enough for this model (R2 = 0.9) and shows that only 10% of the total variations are not described by the model. High value of the adjusted determination coefficient (Adj R2 = 0.844) confirms the significance of the model (Ahnazarova et al. 1982; Khuri and Cornell 1987). Besides, the relatively low value of coefficient of variation (C.V% = 16.93) with high degree of precision indicates reliability of the experimental data (Box and Wilson 1951).

In Fig. 5, 3D response surface shows the relationship between independent and dependent variables. Two variables change within their defined range, while two other variables are at fixed level. The maximum possible BPI (optimum A) is 1.136 g/l by using the following concentration for effective components: yeast extract 1.49; KH2PO4 7.62; K2HPO4 33.68; glucose 11.9 g/l. There are several studies on the optimization of culture medium for surfactin production. Sen (1997) used 24 full factorial central composite experimental design followed by multistage Monte-Carlo optimization to maximize the surfactin production. The optimum values corresponding to the maximum surfactin production, reported in terms of CMC−1 (critical micelle concentration), were 45.5. Jacques (1999) used Plackett–Burman designs to determine an optimum medium. In the reported optimum medium, peptone (30 g/l) and yeast extract (7 g/l) were used. Wei et al. (2007) achieved maximum surfactin yield of 3.34 g/l, where, KH2PO4, Na2HPO4 and glucose were used in concentrations of 30 mM, 40 mM and 40 g/l, respectively. Joshi et al. (2008b) used 24 full factorial central composite design to optimize the production of lichenysin. The medium in which maximum biosurfactant (1.1 g/l) was produced was reported as optimum medium. This medium included KH2PO4, 6; Na2HPO4, 2.7; and glucose, 34 g/l. Roldán-Carrillo et al. (2011) conducted 15 experiments, designed by Box–Behnken method, to optimize biosurfactant production by Serratia marcescens bacteria, based on surface tension measurements. The reported optimum medium was included K2HPO4, 4.4; KH2PO4, 3.4; and glucose, 30 g/l. However, optimum concentration could be different with maximum possible BPI and should be obtained by considering the type of the process. These optimizations are fair only for fed-batch production of surfactin for biomedical applications not for MEOR processes.

Fig. 5
figure 5

RSM plot demonstrating effects of optimization variables; in each picture effect of two variables on BPI can be seen at fixed level of two other variables

From the petroleum engineering point of view, extraction of the biosurfactant in order to use in MEOR process would add extra cost while no significant excess oil recovery could be obtained (Rabiei et al. 2013; Sarafzadeh et al. 2013; Souayeh et al. 2014). It means that instead of pure solution of biosurfactant, biosurfactant in the culture (without extraction) should be injected to reservoir without any recycling of nutrient components. Therefore, the optimum BPI production (optimum B) should be defined as the maximum BPI production at which residual concentration of nutrient components is minimum. It means that BPI productions more than this value is possible, but in expense of the more residual nutrient concentration. Furthermore, in the case of oil reservoirs which have Ca2+-rich connate water, if the optimum B definition is used, significant formation damage due to interaction between Ca2+ and phosphate ions would occur. In this case, optimum medium (optimum C) is a medium which is compatible with formation brine and produces maximum BPI with the lowest possible residual concentration of nutrient components. To determine optimum C, constrained optimization should be done regarding the compatibility of ions which are present in the medium and formation brine. To the best of the authors’ knowledge in the previous biosurfactant optimization research works, which some of them were reviewed, only the optimum A definition has been used.

Considering optimum B definition, the optimum BPI was obtained to be 0.747 g/l when the concentration of effective components was yeast extract 0.38; K2HPO4 24.23; KH2PO4 3.44; and glucose 3.33 (g/l). In order to illuminate the importance of optimum B definition, BPI productions based on optimum A and B definitions, and their corresponding culture media should be compared. The ratio of biosurfactant yield which is obtained by optimum A to optimum B is 1.521, while the ratio of needed nutrients is 3.92, 1.39, 2.21 and 3.57 for yeast extract, K2HPO4, KH2PO4 and glucose, respectively. It is clear that nutrient ratios which are more than 1.521 are wastes which occur if optimum A is used instead of optimum B. As an another example, in order to show the importance of this optimization procedure, optimum B value of this work was compared with the suggested surfactin optimum value of Wei et al. (2007). The ratio of biosurfactant yield of optimum B to the biosurfactant yield reported by Wei et al. (2007) is 0.224, while ratio of glucose which is used is 0.0825. It means that 12-fold glucose consumption produces only 4.471-fold biosurfactant; that is, significant waste of nutrition occurs if Wei et al. (2007) culture media are used instead of optimum B.

Figure 6 shows optimum C medium, which is designed to be applicable in oil reservoirs with connate water rich in Ca2+. The maximum BPI in this case was 0.571 g/l when concentration of effective components was yeast extract, 0.809; glucose, 3.33; KH2PO4, 2; and K2HPO4, 0 g/l.

Fig. 6
figure 6

Possible obtainable BPI in the media compatible with carbonate reservoir brine

Biomass production

In the previous sections, considering technical constraints of MEOR process different optimum media were defined. These media were compared from economical point of view, and formation damage can be occurred due to incompatibility of culture media and formation brine. However, there is still another aspect based on which these media can be compared. Considering the biomass production, plugging of the porous rock, and consequently reduction in permeability can occur during MEOR processes. This biomass affected plugging is dependent on bacteria biomass/cell concentration of injecting fluid (Shaw et al. 1985). Assuming the injection of CFS, the culture media which produce more biomass introduce more biomass isolation cost. Assuming the injection of culture including the biomass, the culture media which produce more biomass introduce more biomass affected formation damage. Therefore, the culture media which produce less biomass are more favorable. Biomass production in each experiment was measured in order that it can be possible to compare different media based on biomass production. A second-order polynomial model was developed for estimation of biomass production; Eq. (6) represents the code form of this model:

$${\text{MPI}} = 2.28 + 0.088{\text{A}} + 0.041{\text{B}} + 0.23{\text{C}} - 1.13{\text{D}} - 0.42{\text{A}}^{2} - 0.37{\text{D}}^{2}$$
(6)

P > F, F value, R2, Adj R2, C.V. % and adequacy precision for this model was < 0.0001, 26.15, 0.8836, 0.8478, 17.65 and 17.202, which show the significance and adequacy of the model.

In this case, biomass production corresponding to optimum A, B and C was 1.684, 0.543 and 0.505 g/l, respectively. It means that for producing 1.521-fold biosurfactant, optimum A produces almost threefold biomass in comparison with optimum B and C. These data illustrate that in addition to economical and compatibility preference of optimum B and C, they are more favorable from biomass production point of view as they produce less biomass and they lead to less degree of bioplugging.

Conclusions

This study showed:

  • In ex situ MEOR processes by Bacillus subtilis strain in carbonate reservoirs, wettability changes to less oil-wet state. Therefore, in this process wettability alteration should be considered as an oil recovery mechanism beside the IFT reduction.

  • Based on definition of surface activity term, surfactin produced by MJ01 has strong surface activity which proves its potential to use as an EOR agent.

  • The nutrients used in medium preparation are not recycled during the MEOR process; hence, the cost involved would affect the selection of optimized condition. The economical assessment in this study showed that biosurfactant optimization for MEOR process should specify the culture media which leads to maximum biosurfactant production alongside with the minimum residual nutrient concentration, or minimum nutrient waste.

  • The formation damage is another important aspect which should be considered for any MEOR process optimization. Constraint optimization should be done in order to avoid formation damage problem during the MEOR process.