1 Introduction

Corrosion problems caused by the presence of microorganisms affect a wide range of industries. This biocorrosion process, called microbiologically influenced corrosion (MIC) has received increasing attention by engineers and scientists from different fields. It refers to the possibility that microorganisms are involved in the deterioration of metallic and nonmetallic materials. MIC is a serious problem affecting the oil and gas and other industries. It degrades the integrity, safety, and reliability of pipeline operations and other systems [1].

The presence of certain bacteria species within a biofilm over steel can accelerate an already established corrosion process and promote the conditions to its development [2, 3]. This phenomenon occurred by the metabolic substances produced by bacteria that can corrode all the metallic surfaces of the industrial oilfield such as installations, production and water injection circuits in the industrial oil fields [4]. The sulfate-reducing bacteria are a group of microorganisms responsible of the anaerobic corrosion. These species are capable to produce hydrogen sulfide (H2S) by biochemical reactions, which can directly lead to electrochemical and anaerobic corrosions [5]. Thus, they are considered as one of the main challenges in the petroleum industry [6].

Corrosion can be highly insidious to economy. Therefore, corrosion takes place everywhere and may result in dangerous failures. However, an estimated 25–30% of the annual cost of corrosion can be avoided if optimum corrosion management practices are employed [7]. To prevent SRB growth, the Algerian oil industry spends up to US $30 million annually on chemical products such as biocides. The oil fields worldwide maintain their pressure by the water injection. These injection waters were treated with THPS biocide from startup in 1999. The pipeline system of water injection consists partly of carbon steel, and the amount of water injected varies between 13,000 and 15,000 m3/day [8]. Nowadays, different strategies are used by the petroleum industry to resolve corrosion problems. However, the use of inhibitors is one of the best techniques assuring the protection of metallic surfaces [9, 10]. Most of these synthetic compounds can exhibit a good anticorrosive action, but they can also have adverse effects on environment. Moreover, these inhibitors can cause damages to the enzymatic system of the human body [11].

The choice of the inhibitors is based on their toxicity. Therefore, the substances applied in the industries as corrosion inhibitors must be non-toxic or of low toxicity for the environment. Recently, eco-friendly corrosion inhibitors are mainly employed, owing to their low costs and biodegradability. Among these green inhibitors substances, the plant extracts are considered as efficient and nontoxic compounds. According to Emran et al. [12], plants are a rich source of bioactive molecules that could be used as natural inhibitors. There is an intensive effort underway to develop new plant origin corrosion inhibitors for metal subjected to various environmental conditions. Indeed, based on the literature, the corrosion inhibition of mild steel was performed by several plant extracts in acidic solutions [13]. Therefore, the crude methanolic extract from Artemisia pallens (Asteraceae) is used also as effective corrosion inhibitors in the same operational conditions [14]. So, a country like Algeria has a huge biodiversity of plant species and many of these plants are used in folk medicine. Because of the availability and chemical diversity of bioactive principles of the plant kingdom, plant extracts could provide unlimited sources of natural and safe inhibitors.

Daphne gnidium L. is a common species of the Thymelaeaceae family, which grows in the Mediterranean area. It is an evergreen shrub that grows to a height of 2 m and commonly known in the cancer related ethnobotanical use [15, 16]. This plant has been traditionally used worldwide despite its slight toxicity for its antioxidant, antimicrobial and antigenotoxic proprieties. These activities could be attributed to some compounds presented in the plant such as polyphenols and flavonoid [17]. In folk medicine, the leaves are used as hypoglycemic [18, 19] and to treat skin diseases [20]. The roots of these species are used in the traditional medicine as an abortifacient. The barks instead are used to treat hepatitis [21] toothache and as a diuretic agent [22]. Recently, it has been demonstrated that different organic matter extracted from this plant had an antiproliferative effect. According to Chaouki et al. [16], D. gnidium roots have an inhibitory potential on cell proliferation and induced apoptosis in the MCF 7 human breast cancer cell line.

On the other hand, D. gnidium is considered as a dangerous species because of its high toxicity [22, 23] attributed especially to the seeds and the barks, which contain toxic diterpenes. The major toxic substances present in this plant are daphnetoxin (bark) and mezereine (seeds) [24].

In the present study, the methanolic extract of D. gnidium was employed as a green biocide. The tests were based on the observation of the consequences contact of SRB consortium with a metallic surface in the presence of the methanolic extract of D. gnidium L. Biocorrosion inhibition was monitored by biological assays wherein we controlled the biofilm formation and the weight loss experiment. In the second step, we realized the different electrochemical measurements to control the corrosion in presence of our studied inhibitor.

2 Materials and Methods

2.1 Extraction of Plant Material

The aerial parts of D. gnidium L. commonly called Lazaz were collected from the region of Draa-El Mizane in Tizi-Ouzou province that is located in the north east of Algeria at an altitude of 363 m; it is characterized by a Mediterranean climate with hot summer. The sample was transported to the laboratory for processing; it was washed with clean water and dried at room temperature under shade. After drying, the plant was crushed, sieved several times and ground to obtain a fine powder. The resulting material was used for the preparation of the extract using methanol as an extraction solvent, which was mainly used for the phenolic compounds extraction from plants [25]. The extraction procedure was performed in a Soxhlet extractor [26, 27]. The methanol was then evaporated during 2 h at 70 °C in an oven. Finally, the extract was air dried at room temperature until total evaporation of methanol traces. The dry extract obtained was stored at 4 °C.

2.2 Isolation and Culturing of the Microbial Consortium

For this purpose, we used an SRB consortium, isolated from sample of water–oil separator obtained from the oil field situated in Hassi Messaoud in the Algerian south-eastern region. This latter was chosen because its oil field was more affected by a microbiological charge induced by the SRB corrosive bacteria. The isolation was performed on a specific medium, coded by the symbol APIRP 38 (American Petroleum Institute Recommended Practice 38). The composition of this medium is: C3H5NaO3 4 mL/L, yeast extract 0.1 g/L, C6H8O6 0.1 g/L, MgSO4⋅7H2O 0.2 g/L, K2HPO4 0.01 g/L, Fe(SO4)2(NH4)⋅6H2O 0.2 g/L and NaCl 10 g/L [28]. This medium stimulates the bacterial growth by providing sources of carbon (lactate and ascorbic acid), nitrogen (yeast extract), mineral salts, oxygen chelator and other growth factors. Therefore, 90 mL of separator water and 10 mL of the API RP 38 medium were placed in 250-mL Erlenmeyer flasks and then incubated at 37 °C for 28 days. This technique allowed isolation of the most dominant SRB species (able to grow in the medium) in the original sample.

2.3 Preparation of Mild Steel Coupons

The steel used in this study was a material commonly used for the design of the transporting hydrocarbons pipelines and the surface oil installations in Algeria; coded by API 5L X60 grade (ϼ = 7.8 g/cm3) with the following composition (%): 0.22 C, 0.23 Si, 1.31 Mn, 0.044 Ni, 0.05 Cr, 0.013 P, 0.01 S, 0.016 Mo, 0.06 Cu, 98.04 Fe. Carbon steel coupons were then polished by abrasive papers with increasing granulation of 80, 120, 600, 800 and 1200 using a polishing machine, and rinsed with acetone. All coupons have approximately the same weight and the same surface area. Finally, the coupons were packed with a filter paper, and stored in desiccators to avoid any oxidation reactions.

2.4 Study of the Inhibitory Effect of the D. gnidium Extracts

The prepared coupons were immersed in Erlenmeyer flasks which are closed away the oxygen and dabbled with nitrogen gas. An amount of 5 g of methanolic dried extract of D. gnidium was dissolved in 10 mL of ethanol and divided in different volumes, then placed in five sterile penicillin flasks and dabbled with nitrogen. These samples were inoculated with SRB. In each test, the optical density of the SRB consortium inoculate was 0.055 at 600 nm (initial load ~ 106 cells/mL). In addition, two control flasks were prepared; the first one contains 10 mL of SRB consortium with ethanol and without the extract and the second one contains a biocide with 10 mL of the SRB consortium. So, in the present study, commercially available biocide THPS, generally used to protect petroleum facilities, was evaluated to determine the nature of inhibition. Tetrakis hydroxymethyl phosphonium sulfate (THPS) is a quaternary phosphonium; it disrupts cell membrane with a rapid uptake mechanism through cell wall and inhibits lactate dehydrogenate activity [8]. The biocide was obtained from Sigma (St. Louis, MO). From pure THPS solution, a stock solution of 100 ppm was prepared.

After a contact time of 4 h at 37 °C, the contents of each flask were added into the conic flask previously prepared. The concentrations of the methanolic D. gnidium extract in the final volume of each flask were, respectively (g/L), 1.6, 0.8, 0.4, 0.2 and 0.1. All the samples were then incubated at 37 °C for 45 days. After incubation, samples were subjected to two tests, growth inhibition and weight loss.

2.4.1 Growth Inhibition Test

The growth inhibition test was controlled using the kits tests (norm Nace TM 0194, 1994). These kits were made to count the SRB of each sample every incubation day. The experiment was stopped when the SRB consortium number became constant. For this test, 42 Penicillin-type flasks containing 9 mL of the API RP 38 liquid medium were used. These flasks are divided into seven series, each one contains six flasks labeled and assembled. From each sample 1 mL of the mixture was sampled by a syringe and introduced into the first flask. After shaking and using the same syringe, 1 mL of the first flask was injected into the second flask of the same series and doing so until the sixth flask. These last flasks were incubated at 37 °C for 28 days and the sampling for the kits test was carried out every day. Thus, the darkness in flaks was considered as positive. In addition, the ability of SRB consortium to utilize sulfate in the medium was tested during growth in the penicillin-type flasks. The sulfate concentration was determined by mixing 50 µL of sample with 950 µL of conditioning agent (a 19-fold dilution in H2O 50 mL glycerol, 30 mL concentrated HCl, 75 g NaCl, 100 ml 95% ethanol, and deionized water). An excess of BaCl2 was added, and the sample was vortexed until the BaCl2 was completely dissolved. After 30 min, the OD480 was measured [29].

2.4.2 Weight Loss Method

All the weighing of the mild steels specimens was made using a normalized weight loss method coded by RP 0775-99-corrosion coupons installation and handling. This method consists in calculation of the corrosion rate by the measurement of the weight difference of the material before and after their exposure to a corrosive medium during 45 days. The corrosion rate was calculated by the following equation (Eq. 1):

$${V_{{\text{corr}}}}=\left( {\frac{{\Delta P}}{{t \times \rho \times S}}} \right),$$
(1)

where Vcorr is the corrosion rate (mm/year), t is the exposure time of the coupon (day), ρ is the carbon density (g/cm3), S is the surface area of the corrosion coupon (cm2) and the weight loss (g) is expressed by the equation ΔP = Pf − Pi. The steel coupons’ surfaces were examined by scanning electron and metallurgical microscope.

2.4.3 Electrochemical Tests

For the electrochemical test, a three-neck flask made by Pyrex glass was used as electrochemical cell. On the other hand, the graphite was used as counter-electrode and the carbon steel API5LX60 was used as working electrode. All the potential values were given relative to the saturated calomel electrode SCE as reference electrode. A volume of 700 mL of the separator water enriched with 10% of the API RP38 medium was placed on a three-neck flask. The graphite electrode was placed in the cell and the other orifices were sealed. After that, the cell was dabbled with nitrogen gas for 30 min, to exclude all the air and create the anaerobic environment. The test solution was autoclaved at 120 °C for 20 min at an over-pressure of 1 bar. In front of a Bunsen spout, contamination of the electrolytic medium in the cell was carried out by 5% of the SRB consortium solution at 106 germs/mL (optical density of the SRB consortium inoculate was 0.055 at 600 nm). Thus, the reference electrode was introduced in the electrochemical cell and finally the API5LX60 carbon steel was immersed in the medium after being polished and rinsed with acetone. The solution was then treated with the ethanolic extract of D. gnidium at increasing concentrations (0.1, 0.15, 0.2 and 0.25 g/L).

The considered electrochemical techniques for this study were; the open-circuit potential OCP, linear polarization strength measurement LRP, electrochemical impedance spectroscopy (EIS) and the dynamic-potential technique.

3 Results and Discussion

3.1 SRB Consortium Kinetic Growth

The kinetic growth of SRB consortium with and without D. gnidium methanolic extract obtained with the kits tests are shown in Fig. 1. The pattern of the negative control curve (without plant extract) showed a standard bacterial growth curve with a latency phase corresponding to the necessary time for the enzymes synthesis by the SRB that is able to adapt to the substrates of the medium. This phase lasted 4 days. Moreover, the SRB consortium is able to synthesize one or more metabolic products, so the bacteria transform the sulfate to sulfide ions; this biochemical reaction is catalyzed by adenosine phosphosulfate reductase [30]. According to Postgate [29], these SRB could produce sulfides ions by the energy released from internal cellular and carbohydrate substrate.

Fig. 1
figure 1

Effect of the different concentrations of methanolic extract of Daphne gnidium and biocide on the SRB consortium growth

After that, an exponential phase appeared to represent the rigorous proportionality between the number of cells and their growth rate. Therefore, the consortium reached a concentration of 108 germs/mL since the 5th day as a maximum value. However, during the optimal growth period, an impoverishment of the culture medium from nutriment occurred, which consequently resulted in their enrichment by undesirable metabolism by-products. At this stage, the stationary phase was reached from the 6th day. Furthermore, the decline phase did not appear successively after the stationary phase, this could be explained by a strong activity of the consortium of SRB. Therefore, this result suggests that the used waters samples were very corrosives, it contained an excess of sulfate ions used as an energy source for the SRB [31]. According to Fig. 2, the concentration of the sulfate ions of our culture decreased from 3500 to 900 mg/L in the presence of the SRB consortium from the 6th day. This decrease was explained by an intense metabolic activity of our culture during the exponential growth phase, while the sulfate played the role of the final electrons acceptor [31].

Fig. 2
figure 2

Evolution of the sulfate concentrations in the water separator with and without SRB consortium as a function of time

According to Miranda et al. [9], Desulfovibrio capillatus, a species of SRB, is able to form a biofilm on the work electrode during the first 48 h of incubation. This incubation time is the same comparing with the theoretical incubation time for the exponential growth phase of this SRB consortium media, containing lactate as electron donor and thiosulfate as electron acceptor without iron ions [9]. At this stage and on, the main dominant reaction was the thiosulfate reduction to sulfide, suggesting that corrosive activity could proceed after significant sulfide production by this bacterium [9].

So, the major cause responsible for the biocorrosion is attributed to SRB consortium ability to perform dissimilatory reduction of sulfur compounds, such as sulfate, sulfite, and thiosulfate into sulfides [32].

Concerning the effect of the metabolic extract of D. gnidium on the growth of SRB, Fig. 1 shows that, the bacterial germs decreased with increasing plant extract concentration; whereas, at 0.1 g/L of the extract concentration, the contamination was zero during the first 6 days of incubation and it reached 102 germs/mL from the 7th day. At a concentration of 0.2 g/L, the bacterial growth did not occur until the 8th day of incubation, reaching a SRB consortium concentration of 102 germs/mL. Whilst, with a concentration of 0.4 g/L a bacterial growth has been observed since the 9th day reaching the same growth rate. These positive cultures showed a stable contamination rate of 108 germs/mL from the 11th day. Moreover, at the concentrations of 0.8 g/L and 1.6 g/L no contamination has been noticed throughout all the incubation period. Same results were obtained with the use of 100 ppm of a commercial biocide, which suggests that our extract has a biocide activity on SRB.

3.2 Weight Loss Experiment

The results obtained after 45 days of the contact between the steel and the enriched separator water and treated by different plant extracts concentrations and by the biocide are summarized in Table 1.

Table 1 Evaluation of corrosion rate as a function of the concentration variation of the Daphne gnidium methanolic extract in the water of BRN oil field separator

The loss of weight per unit area for each culture in presence of different concentrations of the plant extract showed an efficiency percentage of 95.99% for a plant extract concentration of 1.6 g/L. So, corrosion inhibition activity by our plant extract was effectively proved. In addition, this percentage was higher compared with the one obtained by a commercial biocide at a concentration of 0.1 g/L.

The corrosion inhibition of aluminum and mild steel metal by polyphenolics extracted from the flowers of Cassia auriculata in 2 M HCl by weight loss, polarization study and impedance methods were previously investigated by Rajendran et al. [33], it was ascertained that the percentage of inhibition increases with the increase in concentration of the extracts. This effect could be attributed to the functional groups present in the active components of the plant that formed a protective film on the metal surface by coordinating with the metal ion [34]. While, Sumita et al. [34], studied the corrosion inhibition of mild steel in 2 M sulphuric acid media by using ethanolic extract of Mimosa pudica (with a concentration of inhibitors in the range of 1–4 g/L) by weight loss method. Results revealed that inhibition efficiencies (IE%) increases with increasing inhibitor concentration [34].

3.3 Surface Analysis

A consortium was developed from a biofilm and the corrosion inhibition at different extract concentrations was proved by observation of various steel coupons surfaces, using a scanning electron microscopy and a metallographic microscope.

According to our results, SRB biofilm is formed in the control coupons and covers the steel surface after 45 days of immersion (Fig. 3). Hydrogen sulfide producing bacteria were present in the control consortium as evidenced by the formation of a black ferrous sulfide precipitate in the culture medium and the characteristic hydrogen sulfide odor. Figure 3b is a micrograph of the bacteria attached to the metallic surface. Several morphological types were observed, mainly short rods and some large curved rods (large vibrios). These SRB consortium decreased with the increase of the plant extract concentration until their total disappearance at a concentration of 1.6 g/L. This could be the result of toxic metabolites generated by the formed biofilm during the 45 days of incubation that caused the surface pitting. The treatment with the plant extract showed an effective result at a concentration of 1.6 g/L with the observation of a clear and completely clean steel surface like that obtained with commercial biocide.

Fig. 3
figure 3

SEM micrographs of biofilms on the steel coupons surfaces treated with different concentrations of Daphne gnidium methanolic extract: a biocidal test; b ethanol control; c 0.1 g/L; d 0.2 g/L; e 0.4 g/L; f 0.8 g/L; g 1.6 g/L

3.4 Examination by Metallographic Microscope

After abrasion of the formed biofilm on the steel coupons surfaces, the observation with the metallographic microscope showed a significant difference between the coupons exposed to different concentrations of D. gnidium methanolic extract. The micrograph shows the severe localized corrosion in the presence of the consortium.

According to Fig. 4, biocorrosion was more significant in the coupons treated with low extract concentrations. The results revealed a localized corrosion by pitting with a black color due to the deposit formed by iron sulfide (FeS) (micrographs B, C, D, and E). Whereas, corrosion induced by SRB consortium was often characterized by formation of open stitches and filled with black products rich in iron sulfide. The number of stitches decreased when increasing the extract concentrations and it was less important than the number of stitches in the control steel coupon containing ethanol without extract (micrograph B). Therefore, the higher concentration of D. gnidium methanolic extract was more effective with the corrosive inhibition by SRB. The polished steel coupon treated with the commercial biocide (micrograph A) showed a smooth surface like for the coupons treated with extract concentrations greater than or equal to 0.8 g/L (micrographs F and G).

Fig. 4
figure 4

Scanning electron micrographs seen at magnification 10 under the metallurgical microscope of the coupons exposed to D. gnidium extract at different concentrations after stripping the biofilm: a biocidal control, b ethanol control, c 0.1 g/L, d 0.2 g/L, e 0.4 g/L, f 0.8 g/L, g 1.6 g/L

According to the literature, the ability of bacteria to form biofilms, produce exopolysaccharides, adsorb metallic ions, produce H2S, consume or produce H2, and use metallic ions for respiration are all properties that can affect the chemistry on the surface of metals and hence play a role in corrosion processes. The SRB consortium influence on the corrosion of steels can be elucidated mainly by two mechanisms: chemical MIC (CMIC) and electrical MIC (EMIC). CMIC of iron by hydrogen sulfide from microbial sulfate reduction occurs with organic substrates; SRB consortium corrode iron by direct utilization of the metal itself. This always occurs via direct electron uptake and in only a limited number of recently discovered SRB consortium [35, 36]. It should be noted that iron sulfide are good electrical conductors and that they can decrease the electrode surge by playing the role of cathode. Their electrode potential and imperfections in their structures give ferric sulfide cathode properties in galvanic corrosion cells with iron. It is understood under these conditions, that the rupture of the sulfide film and the direct contact of the medium with the bare metal may cause localized corrosion by H2S. The compact accumulation of sulfide particles on the surface of the metal does not prevent the transport of ferrous ions.

According to Leclerc et al. [37], bacteria tend to focus on metal surfaces, associating in communities to form biofilms. Thus, Queiroz et al. [38] have shown that metal supports are susceptible to microbial colonization, and consequently, the formed biofilm can effectively cause a localized corrosion. Some SRB are able to oxidize metallic iron using sulfate as electron acceptor [37]. The H2S product could cause corrosion plugging by FeS and reservoir souring, which impair the oil production efficiency [38, 39]. In addition, H2S causes several problems due to its reactivity and toxicity, especially to the Oilfield employees [40].

3.5 Electrochemical Study

3.5.1 Evaluation of Open-Circuit Corrosion Potential (OCP)

According to the obtained potential values of the treated and untreated samples shown in Table 2, the results suggested that these values varied with the injected plant extract concentrations. Thus, the potential tends towards electropositive values in the presence of 0.2 g/L of the plant extract. However, untreated samples tend towards electronegative or anodic values presenting a corrosion field according to the diagram of pourbaix (iron, pH, SRB) [41].

Table 2 Steel potential corrosion measured in the water of oil field separator contaminated with 5% SRB, incubated for 2 h and treated with different concentrations of Daphne gnidium methanolic extract

SRB biofilm was an electroactive specie that could play a key role in the improvement of the corrosion potential (Ecorr) and in the acceleration of the corrosion rate. So, the SRB mainly affected the cathodic reaction of carbon steel corrosion, they can capture electrons from carbon steel electrode which was polarized at − 740 mV by a direct electron transfer [42]. The main mechanism of the anaerobic biocorrosion induced by the SRB including a cathodic reaction and direct electron transfer can be described as follows (Eqs. 2, 3) [43].

$${\text{SO}}_{4}^{{2 - }}+8{{\text{H}}^+}+8{{\text{e}}^ - } \to {\text{H}}{{\text{S}}^ - }+{\text{O}}{{\text{H}}^ - }+3{{\text{H}}_2}{\text{O,}}$$
(2)
$$2{{\text{H}}_2}{\text{O}}+2{{\text{e}}^ - } \to {{\text{H}}_2}+2{\text{O}}{{\text{H}}^ - }.$$
(3)

Therefore, hydrogen was liberated by hydrogenase enzyme and consumed by SRB that reduce sulfate to sulfide. On the other hand, at acidic pH, the produced sulfide tends to be transformed to hydrogen sulfide according to Eq. (4) [37]:

$${\text{HS}}{^ - }+{{\text{H}}^+} \leftrightarrow {{\text{H}}_2}{\text{S}}.$$
(4)

The hydrogen sulfide formed by Eq. (4) with the oxidized iron conduct to produce iron sulfide by the following reactions (Eqs. 57) [37].

$${\text{Fe}} \to {\text{F}}{{\text{e}}^{2+}}+2{{\text{e}}^ - },$$
(5)
$${\text{F}}{{\text{e}}^{2+}}+{{\text{H}}_2}{\text{S}} \to {\text{FeS}}+2{{\text{H}}^+},$$
(6)
$${\text{F}}{{\text{e}}^{2+}}+6O{{\text{H}}^ - } \to 3{\text{Fe}}{({\text{OH}})_2}.$$
(7)

According to the literature, the SRB could improve the biocorrosion of several types of metals, such as stainless steel, carbon steel and iron. In the study of Aguirre et al. [45], the OCP measured for the stainless steel in the natural seawater were stabilized after 35 days of exposure at anodic values of − 150 mV. So, the coating of certain metals by a protective film could inhibit this corrosion and shift the OCP towards anodic values like observed for the stainless steel coated by poly(3,4-ethylendioxythiphene) [44]. Moreover, the galvanized tubes coating with zinc and zinc alloy of water distribution system suffered from corrosion and biocorrosion, the OCP moved to the positive values to the passive layer formed on the surface and consequently the system became nobler. However, in the presence of chloride and sulfide ions, the zinc coating was degraded by chemical and biological corrosion and the OCP moved towards to less noble values due to enrichment of the anodic dissolution of the coating [45].

Therefore, adding from our extract to the medium has firstly improved the corrosion potential towards the electronegative values from − 777 to − 788 V/ECS for the inhibitor concentrations varying from 0 to 0.15 g/L. Up to this concentration, the Ecorr values were increased to the electropositive values indicating that the specie at these concentrations were more effective and could inhibited the corrosion induced by the SRB.

3.5.2 Linear Polarization Resistance Technique (LRP)

Linear polarization resistance allowed measuring the corrosion rate from the polarization resistance, the potential and corrosion currents. The values of the polarization resistances obtained from the current intensities exploitation [E = f(I)] of a system (solution + vegetable extract at different concentrations + API5L grade carbon steel X60) are reported in Table 3.

Table 3 Electrochemical parameters obtained by linear polarization resistance technique of a carbon steel immersed in a medium treated with different concentrations of Daphne gnidium methanolic extract

According to these results, the Rp value noticed for the steel immersed in water contaminated by the SRB consortium was low and indicated a value of 2.480 kΩ cm2 that correspond to a Vcorr of 1.026 mm/year. After injection of D. gnidium methanol extract at different concentrations, the Rp increases as the current intensities decrease. Furthermore, at an extract concentration of 0.25 g/L, the recorded Vcorr are about 0.088 mm/year, which gives an important protective power of 91.14%.

According to Nwanonenyi et al. [46], polarization curves revealed that carboxymethyl cellulose (CMC) adsorption affected both anodic and cathodic partial reactions and acted as a mixed-type inhibitor [46].

3.5.3 Electrochemical Impedance Spectroscopy (EIS)

To confirm our results, the electrochemical impedance spectroscopy technique was used. This technique has the advantage of disturbing as little as possible the metal-solution interface.

According to the results given in Table 4, represented also by the Nyquist and Bode diagrams in Fig. 5, the half circles increased as the concentration of the plant extract increased in the medium. The Bode curves of the ethanol showed a corrosive characteristic that was observed by the lower frequencies, revealing an important dissolution of the steel by the bacterial activity [43].

Table 4 Electrochemical parameters given by electrochemical impendence spectroscopy (EIS) technique
Fig. 5
figure 5

Diagram of Nyquist and Bode obtained by EIS of a water-immersed carbon steel working electrode of the oil field separator water contaminated with SRB consortium and treated with different concentrations of the D. gnidium methanolic extract

On the other hand, the presence of the plant extract at different concentrations improved the impedance value of ethanol alone. Furthermore, the incubation time of the coupon with the extract plant in the separator water could enhance the electrochemical impedance value according to the formation of a passive layer on the coating surfaces [47].

The charge transfer resistance was 16.259 kΩ cm2 at an extract concentration of 0.25 g/L with a double layer capacity of the order of 0.0017 F/cm2 giving an efficiency of 74.45%. This value is higher than that obtained by Parthipan et al. [48], it was 21.3 ± 1 Ω cm2 as a higher value recorded in the abiotic system. The author studied the biocorrosion of a carbon steel API 5LX by a mixed consortia of bacteria biofilm, so the decrease of impedance value was observed in the presence of mixed consortia that was according to the deterioration of the protective effects so the diffusion phenomenon was more evident. Adding the extract to the solution as a corrosion inhibitor leads to an increase in the size of the semicircle in the impedance spectrum (a single capacitive loop). It characterizes a double layer formation of CDC capacity that was decreased with an increasing of the concentrations. This double layer form was a protective film [49]. Indeed, if the formed film was more absorbed on the surface of the steel, the thickness of the protective film and the double layer capacity were greater, according to the Helmholtz model (Eq. 8) [50].

$${C_{{\text{DC}}}}=\frac{{{\varepsilon _0}\varepsilon S}}{e},$$
(8)

where ε and ε0 are the medium permittivity and the vacuum, respectively, S is the active area of the sample and e is the thickness of the formed film.

The increase in the polarization resistance characterizing the good resistance to corrosion of the extract is already confirmed by the decrease in the corrosion current density that are inversely proportional according to the following Stern–Geary equation (Eq. 9):

$${I_{{\text{corr}}}}=\frac{{{\beta _{\text{a}}}{\beta _{\text{c}}}}}{{2.303({\beta _{\text{a}}}+{\beta _{\text{c}}})}}\frac{1}{{{R_{\text{p}}}}},$$
(9)

where \({\beta _{\text{a}}}\;{\text{and}}\;{\beta _{\text{c}}}~\) are the anodic and the cathodic Tafel constants, respectively, Icorr is the corrosion current and Rp is the polarization resistance.

The double layer capacity decreases in the same way as the corrosion current density by adding our extract to the solution. These observations are a certificate of the formation of a protective film on the surface of the steel [51]. So several materials and methods were used as biocorrosion inhibitor like the aluminum and the nanoAl2O3 composite coatings. In this latest study, the impedance results were demonstrated that the composite gave a better corrosion resistance than the pure Al coating [52].

3.5.4 Potentiodynamic Technique (Tafel)

Based on the results obtained by the three electrochemical techniques, a comparison between the effect of our natural products with that of the commercially biocide was performed through the by potentiodynamic technique under the same operating conditions. API5LX60 carbon steel was immersed in APRP38-enriched separator water and contaminated with 5% of SRB consortium in the presence of 0.25 g/L of each product that was the optimal concentration.

The results summarized in Table 5 and illustrated in Fig. 6 showed that the natural product of D. gnidium has a greater anticorrosive effect than that performed by the commercial biocide with corrosion rates of 0.022 mm/year and 0.031 mm/year, respectively.

Table 5 Electrochemical parameters of the carbon steel API5LX60 immersed in the separator water, contaminated with 5% SRB consortium obtained by potentiodynamic technique in the presence of the D. gnidium methanolic extract and the biocide at 0.25 ppm
Fig. 6
figure 6

Potentiodynamic curves of the carbon steel API5LX60 immersed in the separator water, contaminated with 5% SRB consortium and treated with 0.25 g/l of biocide and D. gnidium methanolic extract

According to Aribo et al. [53], Tafel extrapolation method has been employed to determine the green inhibitors corrosion (Tridax procumbens and Chromolaena odorata extracts). The results showed that both inhibitors are effective at 100 ppm (90% inhibition efficiency) for protecting the alloy in the acidizing environment [53]. While, the biocide had an anticorrosive effect in the results of biological tests more important than our extract plant. In fact, the methanolic extract of the D. gnidium plant plays two roles; an antimicrobial effect against SRB and a protective film of the metal surface against corrosion. This extract would probably contain phenolic compounds because according to Falleh et al. [25], methanol is frequently the solvent used for the extraction of phenolic compounds. Indeed, Deiana et al. [54] isolated nine flavonoids from the methanol extracts of leaves and stems of D. gnidium L. (apigenin, luteolin, quercetin, orientin, isoorientin, luteolin 7-O-glucoside, apigenin 7-O-glucoside, genkwanin, and 5-O-β-d-primeverosyl genkwanine).

Our results are in agreement with the previous work, demonstrated by Emran et al. [12] who say that due to the adsorption of inhibitor molecules on the metal surface, a protective film is formed which isolates the metal from the aggressive environment. Thus, corrosion is controlled [12]. tannins which are a large polyphenolic naturally occurring product can participate in the corrosion inhibition, based on the experimental results, Agi et al. [55], concluded that Rhizophora mucronata tannin (RMT) is suitable as a corrosion inhibiting agent for both carbon steel and copper.

So, Xhanari et al. [56], say that plant material extracts contain many active principles. They contain polar or hetero atoms such as S, N, O, P and aromatic rings, favoring the adsorption by donor–acceptor interaction between π electrons of donor atoms S, N, O, P and aromatic rings of inhibitors, and the vacant d-orbitals of metal surface atoms [56]. On the other side, the works of Bammou et al. [57], worn on the tinplate corrosion study in hydrochloric medium using the plot of dynamic-potential polarization curves, electrochemical impedance measurements and scanning electron microscopy (SEM) showing that the oil extracted from the plant of Thymus satureioides exhibited an inhibitory efficiency exceeding 70% using a concentration of 4 g/L.

Furthermore, the influence of the natural extract of Chenopodium ambrosioides on the corrosion inhibition of carbon steel in sulfuric acid solution was studied by the weight loss method, potentiodynamic polarization and impedance spectroscopy measurements. The experimental results revealed a good inhibiting effect of the extract on the tested metal with 0.5 M of H2SO4 solution. The protection efficiency increased with a rise of inhibitor concentrations, which could reach a percentage of 94% at 4 g/L [58]. Hussin and Kassim [59] studied the corrosion inhibition activity of the ethyl acetate extract of Uncaria gambir using weight loss, potentiodynamic polarization measurements, electrochemical impedance spectroscopy (EIS) and scanning electron microscope technology with energy dispersive X-ray spectroscopy (SEM–EDX). Inhibition was found to be highest at a concentration of 150 ppm in solutions with a pH of 5. While Nasibi et al. [60] used the energy dispersion spectrometry analysis and other electrochemical experiments for soft steel samples in the presence of the natural extract inhibitor that confirmed the formation of a protective layer on the surface of the metal. The inhibition efficiency was 92.24% and achieved in the 1 M acidic solution containing 0.3 g/L of the natural inhibitor. According to Ogwo et al. [61], inhibitory effects of Ficus sycomorus leaves extracts on the corrosion of mild steel et aluminum in 1 M hydrochloric acid (HCl) solution was studied at temperature of 30 °C using gravimetric technique. Corrosion rates of mild steel and aluminum in the aggressive medium were found to increase as temperature increased, but decreased upon the addition of leaves extract of Ficus sycomorus compared to the blank.

Thereby, addition of substances that exert synergistic influence has been employed [62]. The inhibition efficiency (IE) of caffeine, in controlling corrosion of carbon steel immersed in neutral aqueous solution has been evaluated by the weight loss method, in the absence and presence of Zn2+. In the presence of Zn2+, caffeine has an excellent inhibition efficiency [63]. The mixture potential of carboxymethyl cellulose (CMC) and additives (PVP, PAA and PVAc) as an eco-friendly corrosion inhibitor for carbon steel in the acid et alkaline solutions, was shown using gravimetric and potentiodynamic polarization measurements and quantum chemical calculations [46].

4 Conclusion

In the case of the petroleum industry, microorganisms must be investigated to better identify and use the appropriate means of control. Indeed, our work focused on the study of microbial SRB consortium influence on the electrochemical properties of the carbon steel API5LX60 emerged in the separator oil field water. We noticed that this water is rich in sulfate that is a necessary element for the SRB growth. The treatment of this water by the methanolic extract of D. gnidium to inhibit the activity of SRB revealed very interesting and promising results. Indeed, the weight loss gave an efficiency of 95.99% with the used plant extract concentration of 1.6 g/L. Regarding the electrochemical results, we noticed that the resistance of polarization (Rp) increased while injecting the various concentrations of the extract plant methanolic extract, the current intensities decreased and the corrosion rate decreased also (0.088 mm/year in 0.250 g/L) which provided a protective power of 91.14%. By comparing our results with the previous works, we have deduced that D. gnidium has a good anticorrosive effect against SRB biocorrosion used in the petroleum industry.