1 Introduction

1.1 General Introduction of Corrosion

Corrosion is a detrimental phenomenon of metals exposed to the environment. It is a natural latent hazard, that affects various manufacturing industries such as textiles, mechanical industries, oil and gas [1]. The corrosion of metals leads to various adverse effects, such as reducing the chemical reactivity of cathode active components, degrading the electrolytes, decreasing the electrical conductivity and intensifying the self-discharge rate [2,3,4]. Corrosion leads to chemical rupture and leakage of the corroded oil pipeline in oil and gas industries, causing an approximate overall annual cost of $1.372 billion [5]. Corrosion is the degradation of metals due to cathodic and anodic electrochemical reactions. In an acidic environment, cathodic reactions occur due to the decrease of oxygen or an increase of hydrogen in their environment. Thus, oxidation gives rise to anodic reaction [6,7,8]. Oxidation is the loss of electrons during a reaction by a molecule, atom or ion. Oxidation occurs when the oxidation state of a molecule, atom or ion is increased. It means the substance that gives away electrons is oxidized. The iron reacts with water and oxygen to form hydrated iron(III) oxide, which results in rust formation. This reaction is responsible for the actual degradation of the mass of any corroding material or metal.

There are two forms of corrosion: dry and wet corrosion. Dry corrosion occurs when there is no moisture or water to aid corrosion. This type of corrosion occurs due to the direct chemical attack on metal surfaces by atmospheric gases such as oxygen, halogen, hydrogen sulphide, sulphur dioxide, nitrogen or anhydrous inorganic liquids present in the environment. This process is very sensitive to temperature and occurs at high temperature regimes, as can be demonstrated by holding a piece of metal to a flame and observing the layer of oxide that forms [9, 10]. Whereas, wet corrosion occurs in the presence of a liquid containing ions, an electrolyte. Seawater, chloride solutions and acids are some typical electrolytic environments in which wet corrosion occurs. This type of corrosion of metals occurs through electron transfer, involving two processes, oxidation and reduction. In oxidation, the metal atoms lose electrons. The surrounding environment then gains the electrons in reduction. The metal, where electrons are lost, is called the anode. The other metal, liquid or gas which gains the electrons is called the cathode. In short, a redox(Reduction–Oxidation) reaction in the presence of an electrolyte. It can be prevented by eliminating the moisture. The rate of corrosion is much faster in wet corrosion as compared to dry corrosion because in wet corrosion water acts as the electrolyte and thus facilitates the movement of electrons from anode to cathode. Zheng et al. in their recent study have effectively discussed the corrosion behavior of carbon steels used as pipeline material under wet H2S environments. They have also enlightened the H2S corrosion mechanisms with phase transitions of corrosion products and other iron sulphides [11]. In Fig. 1, deterioration of the iron rod in the aqueous electrolyte is being displayed.

Fig. 1
figure 1

Schematic representation of the mechanism of reinforcement corrosion

1.2 Mechanism of Corrosion

The mechanism of corrosion can be better understand with the help of Fig. 2 where a simplified mechanism of aqueous corrosion of iron is being displayed. In this figure, a metal surface is exposed to the atmosphere, there is only a limited quantity of water and dissolved ions are present, whereas the access to oxygen present in the air is unlimited. Corrosion products are formed close to the metal surface, unlike the case in aqueous corrosion, and they may prevent further corrosion by acting as a physical barrier between the metal surface and environment, particularly if they are insoluble as in the case of copper or lead.

Fig. 2
figure 2

Aqueous corrosion of iron (Source adapted from [12])

At the anodic areas, the anodic reaction takes place:

$${\text{Fe}} \to {\text{Fe}}^{ + + } + {\text{ 2e}}$$

At the cathodic areas, reduction of oxygen takes place:

$${\text{O}}_{{2}} + {\text{ 2H}}_{{2}} {\text{O }} + {\text{4e}} \to {\text{4OH}}^{ - }$$

The OH ions react with the Fe++ ions produced at the anode:

$${\text{Fe}}^{{{2} + }} + {\text{ 2OH}}^{ - } \to {\text{Fe}}\left( {{\text{OH}}} \right)_{{2}}$$

With more access to oxygen in the air, Fe(OH)2 oxidizes to Fe(OH)3 and later it loses its water:

$${\text{4Fe}}\left( {{\text{OH}}} \right)_{{2}} + {\text{ O}}_{{2}} + {\text{ 2H}}_{{2}} {\text{O}} \to {\text{4Fe}}\left( {{\text{OH}}} \right)_{{3}}$$

Ferrous hydroxide is converted to hydrated ferric oxide or rust by oxygen:

$${\text{4Fe}}\left( {{\text{OH}}} \right)_{{2}} + {\text{ O}}_{{2}} \to {\text{2Fe}}_{{2}} {\text{O}}_{{3}} .{\text{ xH}}_{{2}} {\text{O }}\left( {{\text{rust}}} \right) \, + {\text{ H}}_{{2}} {\text{O}}$$

The presence of soluble sulphate ions in the solution adversely affects the corrosion of iron. The sulphate ion continues to deteriorate iron and forms several pits on its surface. Layers of porous rust are formed in this case. The effect of SO2 ions is illustrated in Fig. 3.

Fig. 3
figure 3

Impact of SO2 and humidity on metallic corrosion. The reaction occurs in a very thin (invisible) aqueous layer. (Source adapted from[12])

2 Corrosion Mitigation

Corrosion cannot be practically eliminated but may be controlled or inhibited up to some extent. The primary method for corrosion prevention is the use of green corrosion inhibitors as these are easily available, eco-friendly, non-hazardous as compared to commercially available toxic and hazardous chromatic inhibitors. Corrosion inhibitors can be defined as the chemical compounds that when added in small amounts to the environment, in which metal would corrode, corrosion inhibitors reduce, slow down, and prevent the corrosion rate of the metal.

Inhibitors work by adsorbing ions or molecules on metallic surfaces. They reduce the corrosion rate by;

  • By blocking the anodic and/or cathodic reactions

  • Reducing diffusion rate of reactants to the metal surface

  • Reducing electrical resistance of the metal surface

There are also some specific categories of corrosion inhibitors such as organic and inorganic corrosion inhibitors. Organic compounds that consist of nitrogen, oxygen, and/or sulfur are considered as competent industrial corrosion inhibitors. These inhibitors inherit the ability to form a protective layer between the metal surface and corrosive environment through the adsorption process to delay the metal disintegration. Next, inorganic corrosion inhibitors contain the salts of zinc, copper, nickel, arsenic, and additional metals, with the arsenic compounds being the ones that are most commonly used. When these arsenic compounds are mixed with the corrosive solution, they scrape at the cathode cell of the unprotected metal surfaces. The plating reduces the percentage of hydrogen ion interchange due to the formation of iron sulfide amid the steel and acids that act as an obstacle. The reaction of an acid with iron sulfide is known as a dynamic process.

Throughout the work into the use of corrosion inhibitors, many researchers attributed the potential of corrosion inhibition to the donation of lone electron pairs to metal atoms. As a potent factor for showing corrosion inhibition, several organic heterocyclic compounds with hetero- atoms such as O, S, N, and P were reported, respectively [13,14,15,16,17].

Among corrosion inhibitors “Green corrosion inhibitors” ideally plant extracts are of considerable importance, as there has been a rise in environmental concern and reforms in guidelines which due to their toxicity limit standard corrosion inhibitors [18]. Besides these all facts these also possess various advantages such as extracts of natural plants are environmentally friendly, non-toxic, readily available and relatively less expensive. They are also bio-sustainable and do not contain heavy metals or other toxic compounds. Additionally, plant extracts contain several simples to complex phytochemicals that have heteroatoms such as O, N, P, and S, which effectively get adsorbed on the surface of metals or alloys and thereby develop a layer of defensive film that protects the metallic surface against the corrosive ions and inhibit the corrosion rate [19]. Figure 4 showing the use of origanum vulgare extract as a corrosion inhibitor for the metal which forms a defensive film on the metallic surface by the adsorption of its phytoconstituents on the surface.

Fig. 4
figure 4

The plant (Origanum vulgare) extract used as a corrosion inhibitor for reinforced steel which develops a layer resistant to corrosion (Source adapted from [20])

Besides, this area is widely summarized in several review papers, book chapters in recent ones (published between 2017 and 2020): Some of them are;

  1. (a)

    Omnia S. Shehata, Lobna A. Korshed, and Adel Attia published a book chapter “Green Corrosion Inhibitors, Past, Present, and Future” in which they discussed the numerous natural products and their application in different processes, especially in steel reinforcement embedded in concrete [21]. Also, the green inhibitors behavior in different media and their protective role for different metals and alloys is discussed. Finally, industrial applications of vapor-phase inhibitors and their mechanisms are presented.

  2. (b)

    Marzorati et al. Trasatti published a review article “Green Corrosion Inhibitors from Natural Sources and Biomass Wastes” where they emphasize green chemistry based on the importance of protecting the environment and human health in an economically beneficial manner aiming at avoiding toxins and reducing wastes [21]. All the considerations listed are the focus of the present review and are intended as a constructive critique to highlight the shortcomings of the green inhibitors in re-evaluating the literature and addressing future research that still needs rationalization in the field.

  3. (c)

    Lipiar K. M. O. Goni and Mohammad A. J. Mazumder explored their ideas about green corrosion inhibitor by writing a book chapter “Green Corrosion Inhibitors”. This chapter briefly discusses several types of corrosion inhibitors and their importance with a particular emphasis given on the several characteristic features of the green corrosion inhibitors reported in the literature as a comparison with organic inhibitors.

Here, in this article, we are exploring the recent advancements and work done in the field of green corrosion inhibitors from a period of 2005–2020. Additionally, we are discussing all corrosion monitoring techniques that includes destructive and non-destructive methods, and also the journey of using plant extracts as corrosion inhibitors will be briefly discussed from beginning to end which includes brief deliberation on several methods of extraction and various monitoring techniques.

2.1 Green Corrosion Inhibitors

The costs and adverse effects associated with industrial organic and inorganic inhibitors have raised significant concern in the field of corrosion prevention [22,23,24,25,26,27,28,29,30]. In this regard, there has been growing interest in the usage of green corrosion inhibitors. The title “green corrosion inhibitors” or “eco-friendly corrosion inhibitors” attests to those substances which have biocompatibility in nature [22]. In 1930, Celandine (Chelidonium majus) plant extracts (dried leaves, flower, root, and seeds) were used in the H2SO4 pickling bath. As an additive, ZH-1 consists of a finely divided oil cake that was developed to control corrosion through the use of a by-product formed in the phytin manufacture.

The green corrosion inhibitors such as plant extracts presumably possess biocompatibility due to their biological origin. In addition to the environmentally friendly and ecologically acceptable characteristics of plant extracts, these extracts have other advantages too such as low-cost, found abundantly, simple production procedures, readily available and renewable sources. These characteristics are justified by the abundant phytochemical constituents of the extracts, sharing many similarities with the molecular and electronic structures of conventional organic corrosion inhibitors, providing them the ability to adsorb onto metal surfaces. Plant extracts to be used as corrosion inhibitors can be readily produced by a common procedure: first, the plants are dried in sunlight or shade, then powdered. The powder derived from the plants is soaked in a solvent (distilled water, alcohol, or acidic solution, etc.) then refluxed for a few hours; after refluxing, the solution is cooled, filtered, and concentrated. Finally, the residue is diluted to the desired concentration for further use as a corrosion inhibitor [31]. Extracts from their leaves, barks, seeds, fruits and roots comprise mixtures of compounds having several phytochemical constituents like alkaloids, anthraquinones, polyphenols, flavonoids, saponin, proteins, amino acids, glycosides containing heteroatoms such as sulfur, nitrogen, oxygen atoms and have triple/conjugated double bonds of aromatic rings in their molecular structures that often reported to function as effective inhibitors of metal corrosion in different aggressive environments [32,33,34,35,36]. Due to the presence of lone pair electrons of heteroatoms and their interaction with the vacant d-orbital of the metal to be protected, these heteroatoms latterly get adsorbed on the metal surface and create a dense protective coating which effectively mitigates corrosion [37,38,39]. In Fig. 5. various forms of green corrosion inhibitor are displayed.

Fig. 5
figure 5

Different sources of green corrosion inhibitor

The number of published papers (patents included) on the topic “green corrosion inhibitors”, as obtained through a SciFinder® literature review, is represented in Fig. 6. The increase in the publication from 1940 to 2018 shows an exponential trend.

Fig. 6
figure 6

The number of publications per 20-year-range from 1920 to 2018. (Source adapted from [21])

2.1.1 Mechanism of Corrosion Inhibition

The mechanism of corrosion inhibition involves the adsorption of inhibitors on the metallic surface. Various factors, such as the nature and charge of the metal, the chemical composition of the inhibitor such as the availability of functional groups, aromaticity, potential steric effects, and the form of aggressive electrolyte, affect the adsorption process. Some decisive factors contributing to the effectiveness of corrosion inhibition are the presence of heteroatoms, size of the organic molecule, the aromaticity and/or conjugated bonding, carbon-chain length, bonding strength to a metal substrate, the type and number of bonding atoms or groups in the molecule, the ability for a layer to become compact or cross-linked, the ability to form a complex with the atom as a solid within the metal lattice, and adequate solubility in the environment. Organic compounds containing N, S, or O atoms in their structures, functional electronegative groups, and π electrons in triple or conjugated double bonds are the essence of effective inhibitors. The inhibition potential of these organic compounds via an adsorption mechanism can be due to their interactions with the metal surface. Faiz et al. [40] in their study of natural products extracted three alkaloids and explained the adsorption behavior of inhibitors on mild steel surface as shown in Fig. 7 in which the inhibition effects studied alkaloids were determined by the interaction between p electrons of phenyl rings and p-electrons from the electron donor groups (N and O) with the vacant d-orbitals of metal by which they form an insoluble, stable and uniform thin defensive film on a mild steel surface.

Fig. 7
figure 7

Corrosion inhibition impact of crude extracts (hexane, dichloromethane, methanol) from the bark of Cryptocarya nigra and three alkaloids identified a N-methylisococlaurine, b N-methyllaurotetanine and c atherosperminine extracted from the extract of Cryptocarya nigra dichloromethane (CNDE) tested for mild steel corrosion in 1 M HCl solution. (Source adapted from [40])

Corrosion inhibitors can form either a strong coordination bond with the metal atom or a passive film on the surface. The values of inhibition efficiency depend essentially on the electron density at the active center of the inhibitor molecule. The corrosion inhibition of metal may involve either physisorption or chemisorption of the inhibitor on the metal surface. The physisorption process of inhibition results from the electrostatic interactions usually van der Waals forces between electric charges of inhibitor molecules and the steel surface. This process is determined from the values of standard free energy (ΔG°) values that are over − 20 kJ/mol with an application of different adsorption models with coefficients of determination near to 1. Donor–acceptor interactions between free electron pairs of heteroatoms and π electrons of multiple bonds and vacant d-orbitals of metal result in the chemisorption of inhibitors. Strong changes have been observed in the electronic structure/electron density of the adsorbate molecule (> 0.5 eV/surface site). Chemisorption has an irreversible aspect and high pressure is therefore desired. Chemisorption adsorption enthalpy is elevated to approximately 80 to 240 kJ/mol due to chemical bonding.

Bui et al. [41] studied the inhibition efficiency of Limonene, extracted from orange peel for steel corrosion in 1 N HCl solutions. The structure of Limonene can be seen in Fig. 8. In Limonene's structure, C–C, C=C, and C–H bonds are shown. The adsorbed film, however, contains other adsorbed groups, such as C=O, O–H, and C–O–C, suggesting that other active organic compounds are also present in the extract. It is therefore can be concluded that the presence of limonene and other compounds results in the corrosion inhibition of mild steel in HCl acidic media. Besides, organic compounds in acid media can be acidified or participate in the formation of by-products or intermediates in physiochemical reactions that may function as secondary steel corrosion inhibitors in acid solutions. The adsorption of the extract on the steel surfaces can be visualized by d-Limonene adsorption and several other attribute bonds in extract constituents containing three elements, viz., C, H and O and functional groups such as C=C, C=O, O–H, −O− and aromatic rings as shown in Fig. 8. This figure explains the limonene adsorption model using two C=C bonds at carbon positions 3–4 and 8–9, as well as the adsorption model of the C=C and C=O bonds in the mild steel surface OPEO constituents. The corrosion inhibition was investigated with Potentiodynamic polarization where both cathode and anode branches of the Tafel curves shift towards the direction of lower current density. This demonstrates that OPEO alleviated anodic dissolution reactions and arrested cathodic hydrogen evolution reactions. This may result from the adsorption of OPEO on the whole corroding surface. Accordingly, OPEO worked as mixed inhibitors and restricted corrosion of the mild steel in the 1 N HCl acid.

Fig. 8
figure 8

The adsorption of OPEO extract (and constituent structures present in its extract) on the mild steel surface (Source adapted from [41])

Deyab [42] explained the inhibition of aluminum in biodiesel by Rosemary extract based on the adsorption of the organic compounds carnosol (C20H26O4) and carnosic acid (C20H28O4); flavonoids such as genkwanin (C16H12O5), cirsimaritin (C17H14O6) or homoplantaginin (C22H22O11); and triterpenes such as ursolic acid (C30H48O3). The mechanism of inhibition can be explained based on the adsorption of the organic compounds present in Rosemary extract on the aluminum surface. Many of the organic compounds have at least one polar unit with atoms of nitrogen, sulfur, oxygen and in some cases phosphorous. The polar unit is regarded as the reaction center for the adsorption process. In this case, the author has discussed four types of adsorption that may take place involving organic molecules at the metal solution interface: (i) electrostatic attraction between charged molecules and the charged metal, (ii) interaction of π-electrons with the metal, (iii) interaction of uncharged electron pairs in the molecule with the metal and (iv) a combination of the above.

The extract inhibits corrosion by regulating both cathodic and anodic reactions. At cathodic sites on the metal surface, protonated species were frequently adsorbed and thus delayed the reaction of hydrogen evolution, which is possibly responsible for the pronounced cathodic inhibiting effect of rosemary extract. The adsorption of organic compounds present in extracts on anodic sites occurs by a lone pair of electrons on oxygen atoms. Therefore, the addition of Rosemary extract to biodiesel retards the biodiesel oxidation and hence decreases the corrosive action of biodiesel on the aluminum metal.

Yetri et al. [43] used the theobroma cacao peel extract as the eco-friendly corrosion inhibitor for mild steel. The corrosion inhibition takes place by the adsorption of inhibitor molecules and constituent structures that are present in the extract such as catechin, kaempferol, gallic acid, procyanidin, and tannin on the mild steel surface. This adsorption is due to the force of adhesion between the inhibitor and the surface of mild steel that occurred through functional group adhesion on the metallic surface. The inhibition process might appear due to the presence of phytochemical constituent adsorption through an oxygen atom and/or nitrogen atom on the metal surface. Possibly, this complex is absorbed into the steel surface through Van der Waals forces to form the protection layer to prevent the steel from corrosion. The bond existed on the mild steel surface during the inhibitor adsorption process as a coordination covalent bond involving chemical adsorption. The basic adsorption mechanism of cacao peel extracts on a mild steel surface can be seen in Fig. 9.

Fig. 9
figure 9

Adsorption mechanism of cacao peel extracts on a mild steel surface. (Source adapted from [43])

Nazari et al. [44] in his study of corrosion protection of steel in chloride solution by an apple-based green inhibitor revealed the effect of major constituent 1-Linoleoyl-sn-glycero-3-phosphocholine(C26H50NO7P) in the inhibition properties of apple-based green inhibitor. The C26H50NO7P containing N, P, and O elements have polar functions, so get adsorbed onto the metallic surface forming a barrier organic layer and also responsible for transforming Fe3O4 into a more corrosion-resistant iron oxide layer (Fe2O3). The adsorption of the polar atoms on the surface of metal may occur through coordination between the lone pair or π-electrons cloud and the metallic surface. APE molecules, via their high electron density locations, are bound to the surface of the steel. The interaction of nonbonding electrons on nitrogen and oxygen with the steel surface entails the adsorption of APE. Higher charge transfer resistance (Rct) and coatings resistance (Rf) values were correlated with more APE, demonstrating the creation of a more protective surface layer. (Note: The Rct is a function for the electrochemical corrosion reaction intensity at the coating/metal interface. The higher value of Rct reflects the higher integrity of the coating system and then the slower rate of corrosion reactions under the coatings. Therefore, the greater is the Rct value, the greater will be corrosion inhibition effect of the inhibitors. Whereas, in the case of higher values of Rf, the rate of the solution permeation into coatings will be reduced, due to the existence of a defensive layer of coating on the metallic surface by inhibitor molecules by adsorption).

Le Thanh Vu [45] studied the corrosion inhibition of Houttuynia cordata leaf extract for steel in an HCl medium in which it was found that H. cordata leaf extract has diverse organic compounds containing multiple bonds and functional groups. The quantum chemical calculation showed that when the inhibitor interacts with the steel substrate and acidic solution, key positions are formed by the effects of highly electronegative C, O, N, P, and π-conjugated bonds, as well as heterocycles on the organic frameworks play different roles in donating or consuming electrons. HCLE's corrosion resistance on the steel surface is shown in two ways. First, nitrogen and oxygen from heterocyclic compounds and functional groups as well as hydrocarbon branch binding sites with functional groups tend to bind to positive H3O+ ions to minimize their impacts on the steel surface and also serve as a bridge to Fe+ ions for the formation of the protective film from the solution/steel substrate interface. Secondly, functional groups comprising strongly electronegative N and O atoms and sigma bonds near them were electron-consuming places to trap negative Cl ions, helping to avoid localized corrosion acceleration on the steel surface. The reduction of the interaction of the active ions H3O+ and Cl on the steel substrate and the existence of protective film formation also limit the process of charge transfer at the solution/steel substratum interface. The reactions for adsorption of HCLE inhibitor on the steel surface are thus suggested:

$${\text{Fe}}^{{{2} + }} + \, \alpha {\text{H}}_{{2}} {\text{O }} + \, \beta {\text{Cl}}^{ - } + \, \gamma \left( {{\text{HCLE}}} \right) \leftrightarrow \left[ {{\text{Fe}}\left( {{\text{HCLE}}} \right)_{\gamma } \left( {{\text{OH}}} \right)_{\alpha } \left( {{\text{Cl}}} \right)_{\beta } } \right]^{{{2} - \alpha - \beta }} + \, \alpha {\text{ H}}^{ + }$$

It is inferred that the film formation of precipitated [Fe(HCLE)γ (OH)α (Cl)β] 2−αβ species on the surface of steel is responsible for the achieved effective corrosion inhibition.

After the brief review and understanding the corrosion inhibition mechanism, there are some crucial points every researcher should think before selecting the suitable "green corrosion inhibitors" for their study.

  1. (a)

    The first step is to choose the part of the plant with the major concentration of active compounds of interest.

  2. (b)

    Then the screening of the particular obtained extract should be done to get details about the several bio-phytoconstituents and heterocyclic organic compounds present in the extract.

  3. (c)

    The heterocyclic organic compounds should contain N, S, or O atoms with lone pair of electrons in their structures, functional electronegative groups, and π electrons in triple or conjugated double bonds to exhibit effective inhibition. (The mechanism of corrosion mechanism based on these terms has been discussed above in several cases).

2.2 Prominent Metrics for Extract Preparation

2.2.1 Extraction

Extraction plays an important role and is regarded as the first step toward the separation of the essential active phytoconstituents such as saponin, tannin, quercetin, flavonoid from the plant raw material. The most frequently used process is the extraction with solvents. Generally, a natural product extraction comprises the following steps: solvent perforates into the solid substrate > solute get dissolves in the solvent > solute to get diffused from solid substrate > finally extracted solutes are obtained. The variations in various extraction techniques that directly impact an extract's quantity, quality, and composition depend on various factors such as extraction type, extraction period, temperature, solvent nature, solvent concentration, and polarity of the solvent.

Plant Material Bioactive phytoconstituents can be attained from any part of the plant such as barks, leaves, flowers, fruits, seeds, roots as shown in Fig. 10 [46]. The characteristics of a formidable solvent in extraction procedure usually involve qualities such as non-hazardous nature, low heat requirement for evaporation, rapid physiological absorption of the extract, conservative action, and ineffective to cause complexity or dissociation of the extract. The solvent selection also impacts the extraction of aimed active phytoconstituents whereas the alteration in the method of extraction normally depends on the time required for the extraction period, selected solvent, solvent pH, solvent-to-sample ratio, and temperature maintained during the extraction procedure.

Fig. 10
figure 10

Basic parts of a plant and its common active compounds. (Source adapted from [47])

The core part is the refined grinding of the plant material (dry or wet) that increases surface area for extraction and therefore results in increasing the extraction rate [48,49,50]. Various researches indicated that the solvent-to-sample ratio of 10:1 (v/w) should be ideally preferred.

Various solvents used for the extraction of active components are: Water, Methanol, Acetone, Ethanol, Chloroform and Ethyl acetate.

2.2.2 Pre-extraction of Plant Sample

The plant parts such as barks, leaves, roots, flowers, fruits can be obtained from fresh and dried plants. Some preparation techniques such as grinding and drying also have a significant effect on preserving phytochemicals in the extracts.

Fresh vs. Dried Samples Both the fresh and dried samples can be used in the procedure. Instead of fresh samples, several researchers prefer the dried sample because fresh samples are frail and likely deteriorate more rapidly than dried samples. Whereas, a comparative study of various samples of plants for both fresh and dried leaves found no notable effect in total phenolic content but found higher flavonoid content in the case of dried samples.

Grinded vs. Powdered Samples The reduction in the particle size increases the surface contact among solvent and sample used for extraction. Grinding has culminated in coarser, finer samples; whereas, powdered samples provide a generally homogenized and finer material, resulting in better surface contacts with the solvent. This preparation method is essential for the efficient extraction where solvent contact the targeted analytes (also particle size < 0.5 mm is advisable).

Air-Drying Air-drying generally takes 3–7 days and sometimes up to months depending upon the type of dried samples (e.g., leaves, roots, seeds). This process does not include the use of high temperature to dry plant materials; due to which heat-sensitive compounds are conserved.

Microwave-Drying Microwave-drying involves electromagnetic radiation that has electrical as well as magnetic fields. The electrical field induces concurrently heating by dipolar rotation; synchronization of molecules with a dipole moment (e.g. solvent) on the electrical field, and ionic induction that creates molecular oscillation [51]. This method may have less drying duration but frequently cause phytochemicals to degrade.

Oven-Drying This is a simple and fast method to get dry plant material. Nevertheless, the drying effect on the sample shows no significant effect on the antioxidant activity but the content of bioactive phytochemicals such as tannins and saponin was affected by oven drying, proposing the temperature sensitivity of the compounds.

Freeze-Drying This process is based on the sublimation principle that converts a solid into a gas without reaching the liquid state. Before lyophilization, the sample containing any fluid (e.g. solvent, moisture) is frozen at − 80 °C to − 20 °C to make the sample solidify. Following a freezing overnight (12–14 h), the sample is instantly lyophilized to prevent the melting of frozen liquid [32, 48,49,50, 52,53,54]. To stop sample loss during the process, the mouth of the equipment containing the sample is covered with a parafilm. This method is confined to fragile, heat-sensitive materials.

2.2.3 Methods of Plants Extraction

Hot Continuous Extraction (Soxhlet) In this procedure, the coarsely ground raw product is inserted in a permeable container or "thimble" formed of formidable filter paper embedded into the chamber of the Soxhlet apparatus. In a flask, the solvent being used for extraction is heated, and its vapors condense in the condenser. The condensed solvent drips into the thimble containing the crude plant raw material [55]. When the liquid level in the chamber rises to the top of the siphon tube, the liquid content of the chamber siphon falls back into the flask. This method is continuous and is conducted until a drop of siphon tube solvent leaves no trace when evaporated. The soxhlet apparatus is being displayed in Fig. 11.

Fig. 11
figure 11

Extraction of active phytochemicals from plant dried sample by Soxhlet apparatus

Ultrasound-Assisted Extraction (UAE) or Sonication Extraction The mechanical effect of ultrasonic acoustic cavitation improves surface contact between solvents and materials, and cell wall permeability; the apparatus can be seen in Fig. 12 [56]. The physical and chemical properties of the products subjected to ultrasound are altered and disturbed to the plant cell wall; enabling the release of compounds and improving the mass transfer of the solvents into the plant cells.

Fig. 12
figure 12

Schematic representation of the ultrasound-assisted extraction (UAE) process used in the extraction technique. (Source adapted from [57])

Supercritical Fluid Extraction (SFE) Supercritical fluid are also labeled as dense-gas is a process that contains both gas and liquid physical characteristics at its critical stage as shown in Fig. 13; the instrument used for supercritical fluid extraction (SFE). Interest in Supercritical CO2 (SC-CO2) extraction is widely accessible and affordable and has low toxicity due to the excellent solvent for non-polar analytes.

Fig. 13
figure 13

Representation of supercritical fluid extraction (SFE) instrument (Source adapted from [58])

Maceration In this method, plant material or specific part is soaked in a halted jar filled with a solvent and permitted to stand at room temperature for 2–3 days. The process is aimed at softening and breaking down the cell wall of the plant to unleash the soluble phytochemicals. The mixture is then pressed or strained by filtration after 3 days. Then the heat is transferred via the convection and conduction method. The quality of extracted compounds is generally influenced by the selection of relevant solvents. The diagrammatic representation can be seen in Fig. 14.

Fig. 14
figure 14

Maceration procedure for extraction (Source adapted from [47])

Decoction This method is only effective in extracting heat-stable compounds, raw plant parts (e.g., barks and roots), as shown in Fig. 15 where the aqueous decoction of plant raw material is done with oil-soluble compounds compared to infusion and maceration.

Fig. 15
figure 15

The aqueous decoction of plant raw material (Source adapted from [47])

Counter-Current Extraction: In this process, the material to be extracted is shifted in one direction inside a cylindrical extractor where it comes into contact with the extraction solvent as seen in Fig. 16. The more the substance begins to flow, the more concentrated the extract becomes. Thus complete extraction is possible if the solvent and material quantities and their flow rates are configured [56, 59,60,61].

Fig. 16
figure 16

Counter-current extraction apparatus

Pressurized Liquid Extraction (PLE) Various researchers have identified PLE as rapid solvent extraction and high pressure solvent extraction. The PLE instrument and process have been displayed in Fig. 17. In extraction, PLE imposes high pressure. High pressure holds solvents beyond their boiling point in a liquid state, leading to high solubility and higher incidence of lipid solvent diffusion in solvent and high penetration of solvent into the matrix.

Fig. 17
figure 17

Pressurized liquid extraction (PLE) process. (Source adapted from [62])

Microwave-Assisted Extraction (MAE) In MAE, heat and mass transfer relies on the same axis, creating a synergistic impact that accelerates extraction and improves extraction yield. MAE has several advantages such as increased extract yield, reduced thermal decay, and targeted material heating. MAE is often revalued as the green mechanism, as it eliminates the use of organic solvent. An MAE extraction instrument can be easily understood in Fig. 18.

Fig. 18
figure 18

Microwave-assisted extraction (MAE) extraction procedure (Source adapted from [63])

3 Plant Extracts as Corrosion Inhibitors for Metals and their Alloys

Corrosion inhibitors have been in use since the nineteenth century. Vegetables, fruits and their waste, extracts from plants and oils are being used as corrosion inhibitors. Numerous parts of the plant such as stem, flower, bark, root, leaves, whole plants often used as corrosion inhibitors. The specific part or whole plant is dried for approx. 2–3 weeks in shadow dry condition [64, 65]. Afterward, extraction of the essential phytochemicals by different methods discussed above is practiced. The adsorption of natural corrosion inhibitors on the metal surface is influenced by several factors, which include metal composition, test solution, the chemical structure of inhibitor, inhibitor moieties, additives, mixture temperature, and concentration of the solution. Xhanari et al. [66] in their review article in RSC Advances represented a pie chart as shown in Fig. 19 where they show the distribution of the research work performed in the last two decades on natural products as corrosion inhibitors for aluminium and its alloys presented in their review article. Through the pie chart, it is observed that plant extracts particularly in the case of aluminium alloys have been used at the rate of 68% as others lying far away in usage level. It indicates how often plant extracts are being immensely used in the field of corrosion inhibitors.

Fig. 19
figure 19

A pie chart showing percentage-wise usage of various green corrosion inhibitors at the global level (Source adapted from the [66])

3.1 Plants Extracts as Corrosion Inhibitors for Mild Steel: HCl and H2SO4 System

Due to its superior mechanical properties and thermal conductivity, mild steel is globally used for the manufacturing of reactors, storage vessels, gathering pipelines, drilling equipment, and other apparatuses. Mild steel corrosion occurs commonly in acidic solutions during pickling, scale-removal, and rust-cleaning procedures, resulting in metal deterioration and massive economic losses [67,68,69,70]. The application of corrosion inhibitors is a frequently implied convenient technique for the corrosion protection of mild steel. Natural products such as plant extract, amino acids, proteins, and natural polymers have been claimed to be effective corrosion inhibitors. Among these, plant extracts are regarded as a significant source of naturally modulated chemical compounds that can be extracted at a reasonable cost through simple procedures. These natural extracts are similar to the organic synthetic inhibitors and are known to serve almost as well as their synthetic equivalents. In the acid concentration range (0.1–2 M) studied, plant parts extracts are effective corrosion inhibitors behaving mostly as a mixed type corrosion inhibitor and following Langmuir adsorption isotherm exhibiting maximum inhibition efficiency up to > 95% (Tables 1 and 2). Down below Fig. 20 illustrates the adsorption of phytochemicals derived from plant extract forming a protective layer on the mild steel surface.

Table 1 Plant extracts as corrosion inhibitors in hydrochloric acid solution involving various plants, techniques, nature of metal and electrolyte and nature of the adsorption of active phytoconstituents
Table 2 Plant extracts as corrosion inhibitors in sulphuric acid solution involving various plants, techniques, nature of metal and electrolyte and nature of the adsorption of active phytoconstituents
Fig. 20
figure 20

Diagrammatic illustration of the adsorption of phytochemicals derived from plant extract forming a protective layer on the mild steel surface

3.2 Plant Extracts as Corrosion Inhibitor for Stainless Steel in Acidic Media: HCl and H2SO4 System

Stainless steels is iron-based alloy containing at least 10.5% chromium and the highest of 1.2% carbon. Due to its resistant properties to corrosion in both manufacturing and coastal realms, this metal is used in several industrial and domestic applications such as piping systems, steam turbines, containers and food processing vessels, chemical, pharmaceutical, paper, and pulp, as well as other industrial purposes. Stainless steel is coated with a highly protective chromium oxyhydroxide film, which is resistant to corrosion in many aggressive environments. Hydrochloric acid is widely used in industries for removing harmful oxide films and components of corrosion on the steel surface. Corrosion inhibitors are used to prevent the excessive dissolution of metals and the impact of acid during the cleaning process. This intends for several researchers worldwide at finding inexpensive, environmentally friendly, non-toxic natural compounds that could be used in an acidic solution for corrosion protection during acidization and stainless steel acid pickling [120]. Figure 21 and Table 3 show the efficiency and adsorption of active phytochemicals/constituents present in the plant extract; which develop a protective layer on the metallic surface and inhibits the corrosion in corrosive media.

Fig. 21
figure 21

Diagrammatic illustration of the adsorption of phytochemicals present in the plant extract developing a thick defensive layer on the stainless steel surface

Table 3 Plant extracts as corrosion inhibitors for stainless steel in different electrolytic media involving various plants, techniques, nature of metal and electrolyte, and nature of the adsorption of active phytoconstituents

3.3 Plant Extract as Corrosion Inhibitor for Aluminium and Alloys: HCl, H2SO4, NaOH System

Aluminium is used for several different purposes such as spanning from wrapping foils, to high-tech applications in aerospace engineering, space programs, energy sources, and electronics in every engineering field. Most aluminium alloys have a strong resistance to corrosion against natural atmospheric conditions and other constraints because aluminium alloy surfaces are coated with a natural oxide film about 4–6 nm thick. Aluminium forms a stable oxide film that can induce corrosion protection in a variety of environments such as in low and high pH environments, still it becomes susceptible to corrosion. In recent times, economic and environmental concerns have driven the study of plant extracts and natural corrosion-preventing products for viability [137]. The use of natural products has several tangible benefits because they are biodegradable, sustainable, and affordable, consisting of a large number of organic compounds (such as alkaloids, tannins, carbohydrates, vitamins, saponins, amino acids, proteins, pigments, resins) analogous to conventional organic corrosion inhibitors in the electronic structure and function. Figure 22 and Table 4 show the corrosion inhibition efficiency of various plant extracts as corrosion inhibitors for aluminium in various corrosive media and deliberates various techniques involved, nature of metal and electrolytes, and nature of adsorption of active constituents.

Fig. 22
figure 22

Diagrammatic illustration of the adsorption of phytochemicals derived from plant extract forming a protective layer on the native Al2O3 layer of aluminium metal

Table 4 Plant extracts as corrosion inhibitors for aluminium in corrosive media discussing various plants, techniques, nature of metal and electrolyte and nature of the adsorption of active phytoconstituents

3.4 Plant Extracts as Corrosion Inhibitor for Copper: HCl, H2SO4, HNO3 System

Copper has a broad range of applications due to its beneficial properties. It is used in the manufacture of electronic appliances, cables, boards, tubes, and also in the formation of some alloys. Copper is blended with zinc to form brass which has higher corrosion resistance and is simple to manufacture. When the brass containing more than 15% of zinc is exposed to a corrosive phase, they are significantly impacted by both general corrosion damage and dezincification (preferable zinc dissolution) phenomenon, forming a deteriorate mass of copper on the surface of the material [156]. Figure 23 and Table 5 show the efficiency of various plant extracts as corrosion inhibitors for copper in various corrosive media and deliberates various techniques involved, nature of metal and electrolytes, and nature of adsorption of active constituents.

Fig. 23
figure 23

Diagrammatic illustration of the adsorption of phytochemical derived from plant extract forming a thick defensive layer on the copper surface

Table 5 Plant extracts as corrosion inhibitors for copper in different electrolytic media involving techniques, nature of metal and electrolytes, and nature of adsorption of active constituents

4 Corrosion Testing and Monitoring Techniques

Corrosion Monitoring is a process that evaluates and monitors equipment components, structures, process units, and facilities for signs of corrosion. Monitoring programs aim to identify certain conditions to extend the life and serviceability of assets while increasing safety and reducing replacement costs. Corrosion monitoring covers all types of corrosion and materials.

The key advantage to implementing corrosion monitoring is to detect early warning signs of corrosion and to determine trends and processing parameters that may induce a corrosive environment. Processing parameters that may need to be altered include temperature, pressure, pH, etc. Additionally, corrosion monitoring serves to measure the effectiveness of corrosion prevention methods to determine if different inspection and/or monitoring techniques should be utilized. Destructive and non-destructive are methods are used to measure corrosion levels. Additionally, a brief technical approach is addressed, which appears to simply provide some key conclusions about the methods used for different experimental procedures.

Corrosion monitoring includes a wide variety of techniques that include corrosion measurement, control, and prevention. These techniques can be broadly classified into two types: Inspection and monitoring.

4.1 Inspection Techniques

Before applying inspection techniques, it is necessary to log the operational parameters of equipment that may increase the risk of corrosion. These parameters include the pH of the system, flow rate (velocity), pressure, and temperature, but are not limited to these.

First, non-destructive testing (NDT) and inspection techniques are conducted to locate and classify the type of corrosion damage. Ultrasonic testing, radiographic testing, and magnetic flux leakage are the common NDT methods used to detect corrosion.

Additional methodologies that can enhance a screening program are risk-based inspection and fitness-for-service tests. These strategies include qualitative and quantitative methods which provide information on the current condition of the equipment and its durability.

4.2 Monitoring Techniques

Corrosion measuring methods can be used to collect information about the corrosive environment until corrosion is detected. During the operation, the use of probes is considered to track changes in the mechanical, electrical, or electrochemical devices. Besides this, several techniques can be used to provide direct and indirect knowledge about a process during an operation. By using analytical chemistry techniques, some crucial data such as pH, the amount of dissolved gas (e.g., O2, CO2, and H2S) and the oxidation of metal ions (e.g., Fe2+, Fe3+) can be attained. The use of corrosion coupons, electrical resistance, linear polarisation resistance, and galvanic monitoring are some of the typical monitoring techniques.

4.3 The Need for Corrosion Monitoring

The corrosion rate determines the durability and operational span of any equipment. Corrosion monitoring techniques can be useful in several ways as discussed below:

  1. (1)

    By giving an early warning about the existence of an unsafe process condition which may result in a failure caused by corrosion.

  2. (2)

    By analyzing the correlation of changes in process parameters and their effect on the corrosive system.

  3. (3)

    Identifying and diagnosing the cause of corrosion and its rate controlling parameters, such as strain, temperature, pH, flow rate.

  4. (4)

    By assessing the efficacy of a technique for corrosion control/prevention such as chemical inhibition and determining optimum applications.

4.4 Methods for Corrosion Detection and Monitoring

4.4.1 Non-destructive Method

Non-destructive testing (NDT) is a broad set of research techniques used without causing any harm to the physical and mechanical properties of a material, part, or device. Types of the non-destructive method are as:

Ultrasonic Technique The ultrasonic technique can be used to measure the material thickness and the size of a defect. The ultrasonic wave passes from the transducer through the material to the back end of the material, and then reflects the transducer. The thickness of the material is determined by the material being measured based on the speed of sound. This method is commonly used to determine the condition of pipelines, vessels, and structures during inspection and NDT surveys. Ultrasonics have the advantage of being able to take measurements from the outside wall while the plant is in operation. Since they do not need access to both sides of the sample, they are very useful for pipeline thickness measurements where it is very difficult to access the internal wall [168]. It is also possible to build them to cope with coatings, linings, etc. Unfortunately, corrosion under pipe supports (CUPS) is problematic for guided wave inspection as at the low frequencies required to detect gradual wall thinning, the support itself gives a significant reflection, and the locations of concern are inaccessible for conventional ultrasonic thickness gauging. Similar issues arise when testing the floor of storage tanks from the small region of the floor protruding outside the tank wall. This suggests that it would be desirable to test at higher frequencies where the reflection from the support is negligible and sensitivity to smaller defects would be improved. Another disadvantage is that each material usually needs calibration before getting tested [169].

Electromagnetic Method The main principle of this method is inducing electric currents or magnetic fields or both into the test object and observe the electromagnetic behavior of the material. There are many types of electromagnetic methods like i. Magnetometer and di-electrometers: Meandering Winding Magnetometers (MWM) and Interdigital Electrometers (IDED) which detects concealed corrosion under the paint and calculate the depth of moisture inside barrier paint coatings due to the reduction in conductivity near a metal surface where there might be a risk of oxygen diffusion layer on the metal surface, which is also considered as an early stage of the corrosion. For calculating different properties of the material, MWM uses magnetic fields and inductive coupling. To measure the properties of multi-layered insulating media, such as paint on metal oxides formed during corrosion, the IDED utilizes electric fields and capacitive coupling. ii. Magnetic flux leakage (MFL): The basic concept of MFL technology is to apply a magnetic field to the test material using a large magnet and detect local changes in the field. MFL is used over a long distance in larger diameter pipes. MFL instruments consist of a total of two parts: (1) magnet and sensor magnetizer, (2) electronics and batteries. To produce the magnetic circuit along with the pipe wall, the magnets are placed between the brushes and the instrument shell. The sensors detect interruptions in the magnetic circuit as the tool moves along the pipe. Interruptions are normally caused by metal loss, which in most cases is corrosion, and the measurements of the possible metal loss are previously referred to as "feature." These technologies are generally being developed to detect and size cracks rather than metal loss anomalies. The reliability of using such method as it potentially able to find anomalies as a function of the depth, length, and width of the metal loss [170]. Although in the case of MFL tool design, magnetization direction is a dominant parameter, with trade-offs being between sensitivity to long narrow anomalies, velocity effects, and tool complexity. Magnet pole spacing is also important. The tight spacing provides the ability to traverse tight bends, but with less accurate detection and sizing of some anomalies. Magnet strength affects detection and sizing accuracy. Stronger magnets are often used, which makes signal interpretation easier for metal loss anomalies, but with reduced sensitivity to some anomaly types [171, 172].

Eddy current testing (ECT) By giving an Alternating Current (AC) to a wire coil, the wire coil produces an alternating magnetic field around itself. As the coil enters a conductive material, the eddy current is caused in the material by currents as opposed to those in the coil. It is the fundamental concept of testing the eddy current. Surface inspection is used in two primary applications: in the aerospace and petrochemical industries. Both ferromagnetic and non-ferromagnetic materials may be subject to surface inspection. Tubing inspection is only applicable to non-ferromagnetic materials. Laminar defects and wall thickness types of flaws can be found using ECT testing cracks. It is a very useful non-destructive testing used for the detection of defects, the measurement of conductivity, and the estimation of the thickness of coatings. There is also no need for any couplant—unlike ultrasonic inspection, it can be used on wet surfaces—and there is no need for consumables as with dye penetrant and magnetic particle inspection techniques [173]. Eddy current testing is suitable for a wide range of applications. It is universally applied in crack detection. By measuring material conductivity, it is used in quality control in nonferrous metal sorting and in sorting ferrous metals according to required material properties. It is used to assess coating thickness and tube wall thickness, and it is also used to detect subsurface corrosion. It can detect defects through several layers, including non-conductive surface coatings, without interference from planar defects [174, 175].

However, conventional eddy current instruments suffer from limited corrosion monitoring functionality, both in terms of speed of inspection and in terms of inspecting for corrosion at different depths within a structure [176]. This is especially important in the aerospace sector, where structures are often assembled using riveted lap jointing of various layers or skins. Also, other disadvantages are that it can only be used on conductive materials, it is very susceptible to magnetic permeability changes—making testing of welds in ferromagnetic materials difficult—but with modern digital flaw detectors, the depth of penetration is variable and unable to detect defects that are parallel to the test object’s surface [177].

Radiographic Method The radiographic technique is used to generate images of physically inaccessible metallic components obstructing the direction of radiation using high frequency gamma radiation and X-rays. This corrosion monitoring radiation system has low sensitivity and requires radiation protection. Radiography is used widely in determining pipe thickness in the chemical and petroleum industries. Radiography is very helpful in the identification of various forms of internal deposits. Tangential radiographic inspection (TRI) is a suitable method measuring accurately the wall thicknesses of pipe walls about comparators [178]. The accuracy of the wall thickness determination depends on the calibration of the software evaluation tool, the detector pixel size and the image unsharpness in asymmetric projection mode over 360°. This method provides some advantages over common methods for the determination of the thickness of the insulation, pipe and deposit as well as detecting internal and external corrosion. There are also some limitations in this method including the need for higher energy and intensity of the radiation due to long beam pass through the matter [11]. Measurement errors increase with this technique when pipes contain insulation, deposit or are filled with a substance. The radiography arrangement also affects the density and the results of measurements [179]. The other limitation of this technique is that density measurements refer to both sides of the beam path of the pipe and any indication of thickness loss would be the sum of the thickness reduction of the pipe wall (top and bottom wall) under the investigated area.

4.4.2 Destructive Method

To understand the behavior and output of material under several stress and environment, various methods and measurements are used known as the Destructive Physical Analysis (DPA) test. In general, these experiments are much easier to run, provide more evidence and are easier to interpret than non-destructive testing. Types of Destructive Method are as:

Electrochemical Measurement Corrosion is an electrochemical reaction, in which an anode (positive electrode) is oxidized (losses electrons) and a cathode (negative electrode) is chemically reduced (gained electrons). Therefore it is possible to determine corrosion properties and corrosion behavior by conducting an electrochemical test and calculating the characteristic values. Electrochemical measurements is one of the effective analytical technique for corrosion investigation. Electrochemical methods have the advantages of being quite fast in terms of measurement time and they can provide not only information about the corrosion resistance but also other mechanistic data that might help in the design of corrosion inhibitors and strategies.

Electrochemical Impedance Spectroscopy (EIS) EIS is a viable and quantitative method for the accelerated evaluation of the anti-corrosion performance of protective coatings in the aqueous corrosion of metals and alloys. EIS measurements provide accurate data within a short time allowing for the prediction of the long-term performance of the coatings. A Metroahm Autolab EIS apparatus with a corrosion cell has been displayed in Fig. 24. In electrochemical experiments, an electrochemical reaction is initiated on a sample in a solution in a cell, and the electrical outcome is measured. For example, if a specimen of iron, steel, or some other metal material is immersed in an aqueous solution, an oxidation–reduction reaction will occur at the specimen surface due to dissolved oxygen and/or ions in the solution, and as a result, its electrical potential is determined. The electrode potential can then be measured by measuring this potential against that of a reference electrode as a standard. In general electrochemical measurements, three electrodes are immersed in a test solution (electrolyte). These three electrodes consist of a working electrode (WE), which is the sample material being tested, a counter electrochemical (CE) for passing a current, and a reference electrode (RE), which serves as a standard. The result of EIS is the impedance of the electrochemical system as a function of frequency [180]. This approach has gained prominence because it can be performed in situ and because the corrosion process typically does not require any artificial acceleration. The primary advantage of this method is the low strength of the excitation signal used that causes minimal disturbance in the state of the electrochemical system, which consists of a non-destructive technique and reduces the error associated with the measuring process. Impedance spectra generated by this process is calibrated to a combination of resistors and capacitors (equivalent circuits) electrical circuit to comprehend the corrosion mechanism. In this method, measurement of polarization resistance (Rp) is a direct measure of corrosion rate. To run an EIS measurement, a small amplitude signal, usually a voltage between 5 and 50 mV is applied to a specimen over a range of frequencies of 0.001 Hz to 100,000 Hz. The EIS instrument records the real (resistance) and imaginary (capacitance) components of the impedance of the system. Depending upon the nature of the EIS data, a circuit model or equivalent circuit diagram and initial circuit parameters are assumed and input by the operator. The main difficulties are related to data interpretation because it includes the building of an equivalent circuit model in a metal solution interface.

Fig. 24
figure 24

Autolab EIS apparatus with corrosion cell

Ashish et al. performed the electrochemical measurements on mild steel using venlafaxine. The results obtained are being shown in Fig. 25a as Nyquist plot and Fig. 25b as Bodes plot. The semi-circular impedance spectra obtained reveal the process is driven by charge transfer. The charge transfer resistance was used to calculate the inhibition efficiency.

Fig. 25
figure 25

a Nyquist plot and b Bode plot for corrosion inhibition of mild steel in acidic medium using Venlafaxine. (Source adapted from [181])

Following equations were used to obtain the electrochemical parameters such as Cdl and IE%:

$${\text{Cdl }} = \, {1 \mathord{\left/ {\vphantom {1 2}} \right. \kern-\nulldelimiterspace} 2} \cdot \pi f_{{{\text{max}}}} R_{{{\text{ct}}}}$$

where Cdl is the double-layer capacitance, fmax is the frequency and Rct is the charge transfer resistance.

$${\text{IE}}\left( \% \right) \, = \, \left( {R_{{{\text{ct}}_{{{\text{inhibitor}}}} }} - {\text{R}}_{{{\text{ct}}_{{{\text{acid}}}} }} / \, R_{{{\text{ct}}_{{{\text{inhibitor}}}} }} } \right) \times \, 100$$

where IE(%) is the corrosion inhibition efficiency, and Rctinhibitor and Rctacid are the charge transfer resistances of inhibited and uninhibited solutions, respectively. It is evident from the findings that mild steel corrosion mitigation occurs upon inhibitor inclusion. Increasing the concentration of the inhibitor is seen as a noticeable improvement in inhibition effectiveness. Rct values increase and Cdl values decrease with increased inhibitor concentration, which can be due to inhibitor adsorption on the surface of the metal.

Potentiodynamic Polarization (PP) Measurement Potentiodynamic polarization (PP) is also used to evaluate the corrosion rate and behavior in several metals or alloys as it rapidly generates data. The stable electrical potential obtained between the metallic surface and the electrolyte is the open-circuit potential (OCP). To activate the PP, the metal/electrolyte system is first polarized cathodically (negative over OCP positive), followed by a sweep in anodic polarization (positive over OCP potential). Then the polarization curves are used to determine the cathodic and anodic slopes of the Tafel (applied potential vs. measured current density) [182,183,184,185,186].

The intersection of the Tafel slopes provides the potential for corrosion potential (Ecorr) and density of corrosion current, which is used to obtain the corrosion current (Icorr) separated by the area exposed. For sample/solution combinations, potentiodynamic experiments may provide a range of data relating to the pitting, crevice corrosion and passivation behavior. The pitting corrosion begins when the potential is increased, at a certain value known as the breakdown potential (BP, the lowest potential at which pitting occurs). As pitting corrosion refers to an increase in the oxidation rate, the corresponding increase in the calculated current is determined by the BP. Higher resistance to corrosion by pitting is associated with an increase in BP. On the reverse scan, when the potential is decreased, there is a reduction in the current. For the reverse scan, a hysteresis is observed and a hysteresis loop is traced. At the potential, where the reverse scan crosses the forward scan, the sample is repassivated. The potential for repassivation, or potential for protection (PP), exists at a lower potential than the BP. Susceptibility to crevice corrosion is linked to the disparity between BP and PP. The greater the hysteresis in the polarization curve, the greater the susceptibility to corrosion. Figure 26. Represents the potentiodynamic cyclic polarization curves.

Fig. 26
figure 26

Representation of potentiodynamic cyclic polarization curves (Source adapted from [187])

In Fig. 27, the Tafel polarization curves of aluminium in 0.5 M HCl in 1000 to 4000 ppm conc. of inhibitor in the temperature range of 298 K to 328 K are being displayed [188]. It is evident from the figure that the inclusion of the phenylephrine change Ecorr to a more positive potential with minimum Icorr values causes the anticorrosive properties of the metal to increase. The shift in Ecorr is a difference of ± 85 mV, suggesting phenylephrine as a mixed type of inhibitor. Corrosion potential (Ecorr), corrosion current density (Icorr), anodic and cathodic slopes (ba, bc), and corrosion inhibition efficiency are the parameters that were deducted from this analysis.

Fig. 27
figure 27

Polarization plots for Al in 0.5 M HCl with and without different concentrations of phenylephrine at different temperatures. (Source adapted from [188])

Electrochemical Noise (EN) In recent years, the EN technique has been promoted as a research tool for both corrosion science and localized corrosion for monitoring engineering alloys. The basics behind the principle of localized corrosion is centered between two nominally equivalent electrodes in the galvanic current and by carefully monitoring the corrosion potential of a single electrode. So, a metastable pitting can be identified by applying a signal to the assembly of the electrode and obtaining a current response from it. The status of metal corrosion can be determined by the current noise signal response and the harmonic content of the current response.

Figure 28 shows a schematic illustration of the system for detecting electrochemical noise. The sample was put into an electrochemical cell that was installed in an electromagnetic shield enclosure. The deaerated test solution was poured into the cell to start corroding the three coupons. A potentiostat (Toho Giken Co. Ltd., Model 2090LN) in electrometer mode, a differential amplifier (NF Circuit Block Co. Ltd., Model 5307), and a digital multimeter (Takeda Riken Co. Ltd., Model TR6841) measured the potential difference between two of the three coupons. A zero resistance ammeter (Keithley Co. Ltd., Model 6514) was used to test the short-circuit current between the two coupons, one of which was normal with one of those for possible calculation. As for polarity, the minus terminals of both systems were as usually linked with the center coupon together. The two electrochemical signals were simultaneously collected through the GPIB interface (Contec Co. Ltd., GP-IB(PM)) on a personal computer (IBM Co. Ltd., ThinkPad 230Cs). In 1024 s, the sampling rate was 0.5 s, and acquired signal data were 2048 points. Using the fast Fourier transformation (FFT) process, these time-series data of the potential difference and the short-circuit current were transformed into the frequency domain. Their power spectrum densities (PSDs) at a given frequency were obtained from the power spectra of the potential and current to be compared with the corrosion rate of the steel.

Fig. 28
figure 28

Schematic illustration of the system for detecting electrochemical noise. (Source adapted from [189])

Typical signal patterns of the potential difference and the short-circuit current are shown in Fig. 29. The test was performed at pH 8.5 at 0.1 kmol/m3 NaHCO3 and the patterns were assessed at 98.7 ks after immersion. In the statistics, it is noticed that both signals oscillate constantly and irregularly. A couple of peaks were synchronized with each other as both patterns were compared, but the others were not. The variations between the maximum and the minimum values for the potential difference and the short-circuit current were around 1.3 mV and 13.2 nA, respectively. In comparison, the potential signal between the 10 kX electrical resistance terminals and the actual signal under open-circuit conditions was determined to validate the internal electrical noise of the measuring device. As a result, the two oscillated signals, and the variations between the maximum and minimum values for the potential difference and current were approximately 0.03 mV and 0.05 nA, respectively. These values were quite smaller than those for the corrosion system, so it can be claimed that this method can be used to calculate the electrochemical noise signals of the potential difference and the short-circuit current for this corrosion system.

Fig. 29
figure 29

Typical signal patterns of a potential difference and b short-circuit current of the carbon steel in 0.1 kmol m−3 NaHCO3 solution. The patterns were measured from 98.7 ks after immersion. (Source adapted from [189])

Linear Polarisation Resistance (LPR) Monitoring The LPR method aims to monitor the microscopic corrosion cells that exist inside the plant on a microscopic scale. The LPR method is used to evaluate the internal corrosion monitoring of subsea production flow lines, the corrosion rate of concrete reinforcement, nuclear waste tanks, the effectiveness assessment of corrosion inhibitors in oil and gas pipelines, dig site outer pipe surfaces, and water cooling systems. The corrosion current flowing between anodic and cathodic half cells is calculated by LPR. Measurements are obtained by applying a small voltage to a corroding metal electrode (about 10–30 mV) and measuring the resulting flow of current. LPR measurements are obtained by disrupting the reinforcing steel's equilibrium potential. It can be achieved either potentiostatically, i.e. by adjusting the steel reinforcement potential by a static quantity, ∆E and tracking the current decay, ∆I after a fixed time, or galvanostatically, i.e. by adding a small fixed current, ∆I to the steel reinforcement and observing the potential shift, ∆E after a fixed time. In both cases, the conditions are so chosen that the difference in potential falls within the linear Stern-Geary range of 10–30 mV. The calculation of polarization resistance (Rp) of the steel is done by,

$${\text{Rp}} = \, \Delta E/\Delta I$$

From the above equation:

$$I_{{{\text{corr}}}} \, = \, B/{\text{Rp}}$$

where B is Stern-Geary constant.

Corrosion current density, Icorr, can be determined if the surface area of steel, A is polarised

$$I_{{{\text{corr}}}} \, = \, I_{{{\text{corr}}}} /A$$

The remaining durability can be obtained by concluding the present residual strength of the structure. The method is not used commonly because it requires mathematical calculation for calculating the corrosion rate.

Applications of Electrochemical Measurement Electrochemical measurements are not limited to the general state of an aqueous solution, but may also be carried out in simulating environments. As per demand, it can perform many electrochemical measurements, including corrosion crevice repassivation potential measurement (ER, CREV), pitting potential measurement, electrochemical potentiokinetic reactivation ratio (ERP) measurement, hydrogen diffusivity measurement (hydrogen diffusion coefficient). Figure 30. shows a schematic representation of the electrochemical instrumentation setup.

Fig. 30
figure 30

Schematic representation of the electrochemical instrumentation setup. (Source adapted from [190])

Harmonic Distortion Analysis (HDA), or Harmonic Analysis (HA) This approach is based on the measurement of basic, second, and third harmonic currents from the current corrosion potential response by disturbing a low amplitude corrosion network with a non-distorted sinusoidal signal. HDA is a calculation of low frequency impedance and depends on a steady-state approximation, similar to LPR, but needs more mathematical treatment than the LPR technique. Because of the non-linearities of the charge transfer phase, the current response to a low frequency voltage sinusoidal wave is distorted. To provide values for corrosion current, the Tafel constants, and Stern-Geary constant B, this distortion is analyzed in terms of the higher harmonics. This technique relates to the EIS where the resulting current response, an alternating potential disturbance is applied to one sensor in a probe of three components. It is possible to directly measure all kinetic parameters (including the Tafel constants). No other technique provides such advantages. HDA is focused on the evolution and improvement of the LPR technique's efficiency. The resistance of the corrosive solution can be determined by harmonic analysis of the resulting signals by applying a low frequency sine wave to the measurement current. It is possible to establish a more reliable general corrosion rate for both the polarization resistance and the solution resistance. For calculating corrosion rates of metals in acids, neutral electrolyte solutions, and concrete, both EIS and HDA are used. The benefit of HDA is that the handling of mathematical data facilitates the direct calculation of the constants of the Tafel and the rate of corrosion. It also has certain limitations such as in the LPR technique, the assumption of uniform corrosion has to be made; if localized corrosion occurs, the data obtained is qualitative and not much quantitative.

Zero Resistance Ammetry (ZRA) Zero Resistance Ammetry is a current-to-voltage converter that gives the external circuit a voltage that is equal to the current flowing between the input terminals while introducing a 'zero' voltage drop. In the ZRA technique, a macrocell current is calculated in an electrolytic environment between two corroded sensor components. It is used between two dissimilar or similar electrodes to measure the galvanic coupling current. A corrosion rate value obtained by Faraday's Law is the resulting galvanic current. This method is often used to calculate the coupling current for controlling electrochemical current noise between two identical" electrodes. These electrodes are slightly different in practice and there is a minimal coupling current. Such measurements are important in the detection of early stages of corrosion. The drawback is that the measured macrocell current can not accurately represent the magnitude of the attack if significant corrosion occurs on both electrodes.

Acoustic Emission (AE) Technique Acoustic Emission is a natural momentary elastic wave phenomenon created by the rapid discharge of energy inside the material from a localized source when subjected to stress. It is a non-intrusive method that can be used for local damage. The primary cause of AE is crack progression. The technique is useful for detecting real-time corrosion and is highly sensitive to mechanical, physical, or chemical damage. One or more AE sensors are used to record occurrences taking place in a bulk material. In this method, a piezoelectric transducer is used as an AE sensor, a device that transforms mechanical energy into an electrical signal. Here two different methods are used to acquire AE signals: HDD and TDD15. The edge-measured method is Hit Driven Data (HDD). When the AE signal voltage crosses a predefined edge, AE wave data are obtained. Amplitude, length, and signal intensity are the parameters that can be used for the analysis. On the other hand, Time-Driven Data (TDD) is an edge-free process. AE wave is implied at a constant rate for every 5 s. for a pre-set length interval. Due to fixed-rate acquisition, when a continuous AE phenomenon occurs, TDD becomes the better choice. The parameters such as Average Signal Level (ASL) and Absolute Energy (AbE) are obtained.

The AE technique can be obtained by focusing on the initiation and propagation of corrosion. The potentiodynamic method with 3 electrochemical cells and Tafel plot can be used to calculate current (Icorr) used for determining corrosion rate (in milli-inches/year)

$${\text{Corrosion rate }}\left( {{\text{MPY}}} \right) = \, 0.{\text{13icorr }}\left( {{\text{E}}.{\text{W}}.} \right)/{\text{d}}.{\text{a}}.$$

where E.W. = equivalent weight (in g/eq.)

A = Surface Area of Steel (in cm2).

d = Density (in g/cm2).

0.13 = metric and time conversion factor

In the chemical and petrochemical industries, AE technology has applications to sense stress corrosion in stainless steel cracking, pitting, and crevice corrosion. Several efforts are being made to identify and locate the beginning and initial stage of the cracks that trigger the corrosion of concrete steel reinforcement.

Quantum Chemical Calculations Quantum chemical calculations are useful in the determination of the molecular structure and the elucidation of the electronic structure and reactivity. Some of the software used for quantum chemical calculations are ORCA, NWChem, GAMESS, Firefly, CP2K, and Gaussian. Using computational chemistry, the idea of determining the efficiency of a corrosion inhibitor is a quest for compounds with desired properties through chemical instinct into a mathematically quantified and computational form. Quantum chemical methods and molecular simulation models allow the description of a wide number of molecular quantities characterizing a complete molecule reactivity, form, and binding properties, as well as molecular fragments and moieties. The use of theoretical variables provides two major benefits: first, the compound and its numerous fragments and substituents can be described explicitly only based on their molecular structure; and second, the conceptual mechanism of action can be specifically compensated for in terms of the chemical reactivity of the compound being studied. Quantum chemically determined parameters fundamentally from experimentally calculated quantities. For quantum chemical equations, there is no statistical error, as compared to laboratory measurements. However, there is an intrinsic error correlated with the premises designed to improve the calculations [191,192,193]. The statistical error is known to be roughly constant in the sequence using quantum chemistry-based parameters for a set of related compounds. The prevalent parameters of the quantum chemical can be segmented into many aspects such as atomic charges, molecular orbital energy, dipole moment, total system energy. Quantum chemical computed parameters include the energy of the highest occupied molecular orbital (E HOMO), the energy of the lowest unoccupied molecular orbital (E LUMO), energy bandgap (ΔE = E LUMO − E HOMO), global electronic chemical potential (µ), chemical softness (σ), chemical hardness (η) and electrophilicity index (ω). Down below Fig. 31 illustrates the most stable low energy configuration for the adsorption of inhibitor on metal in the H2O interface.

Fig. 31
figure 31

The most stable low energy configuration a side view, b top view representing inhibitor adsorption on Al (111)/H2O system. (Source adapted from [194])

Weight Loss Technique The weight loss technique is one of the most commonly known, simple, and cheapest technique for calculating corrosion rates. The metallic coupons of specific dimensions used in this method and the impact of corrosive media with and without inhibitor are being shown in Fig. 32. The method for mass loss experimentation is given in the standard ASTM G31. The standard method ASTM G31 provides the overall procedure for cleaning samples of the material. A technique for analyzing certain material corrosion through a mass loss approach is as follows:

Fig. 32
figure 32

Coupons strips showing: a Carbon steel unexposed to corrosive media, b carbon steel immersed in corrosive media, c carbon steel immersed in a mixed solution of corrosive media and inhibitor added. (Source adapted from [195])

The metallic coupons (samples) grinded with emery paper (400–1600 grade) and washed with acetone solvent and dried for further use. The weight of polished samples should be measured for a fixed period before immersing in the solvent.

The materials have to be withdrawn from the solvent after a certain time of immersion. Then the use of sodium hydroxide should be done which eliminates the excess volume of corrosive solvent, followed by water cleaning.

Subsequently, the material washed with water is dried to evaporate the weight of the water. And the final weight should be measured and the difference between the initial and final weight should be noted down.

The equation shown down below is used to calculate the weight loss and rate of corrosion.

$${\text{CR}} = {87}.{\text{6W}}/{\text{DAT}}$$

Here CR = corrosion rate in mm/year.

W = weight loss (g).

D = coupon density (g/cm3).

A = metallic coupon area (cm2).

T = immersion time (h).

Besides the level of corrosion, the data from the study may be used to estimate the reduction in thickness. It is fundamental to provide error bars in these results because the presence of defects in the analyzed metal sample could greatly affect the analysis. The reproducibility of the measurement should be hence checked.

Electrical Resistance (ER) Monitoring ER is one of the most commonly used techniques for corrosion monitoring, which consists of measuring the change in resistance of metal as it corrodes in a process system. The corrosion action on the component helps to reduce the cross-sectional area, thereby increasing the electrical resistance. The element is typically in the form of a cable, strip, or tube, and a change in resistance is proportional to an increase in corrosion if the corrosion is approximately uniform.

The electrical resistance of a metal or alloy element is given by:

$$R = \, r. \, L/A$$

where:

L = Element length.

A = Cross-sectional area.

r = Specific resistance.

Practical measurement is achieved using ER probes equipped with an element that is freely "exposed" to the corrosive fluid, and a "reference" element sealed within the probe body.

The arrangement of ER probes for erosion-corrosion measurement at different pipe locations is shown in Fig. 33. A 1-inch FNPT packing body is supplied with retractable probes to allow probe insertion and removal through a customer-supplied ball valve, in systems with pressures not exceeding 2000 psi. To avoid backing out in systems with high vibration, a protective frame of rods and plates is connected to the probe. The Simple Tool for probe insertion or retraction in systems with pressure above 150 lb includes metal samples corrosion monitoring systems.

Fig. 33
figure 33

The arrangement of ER probes for erosion-corrosion measurement at a different pipe locations (Source adapted from [196])

Electrical resistance Probes are robust and well equipped for any corrosive environment. In practice, the ER method is well known and is easy to use and interpret. ER monitoring enables the establishment of periodic or continuous monitoring for one or more probe numbers. Thus, corrosion can be linked to process variables. The major advantage is its ability to measure corrosion in any environment, liquid, gas, or particle streams.

Surface Morphology Analysis In the engineering of materials particularly for oxidized surfaces, surface topography plays a significant role. Parameters such as roughness, amplitude, order, or directionality provide useful information on the surface of a substance used in the corrosion test [197].

Scanning Electron Microscopy (SEM) SEM is commonly used for the study of surface topography and spectral observation. Researchers assessed the topography of the metallic surface using SEM. Scanning Electron Microscopy or SEM analysis offers high-resolution imaging that is useful for determining various surface defects, weaknesses, pollutants, or corrosion materials. A systematic and informative way to investigate surface structure is to analyze sample morphology based on the SEM technique and acquire structural functions and fractal dimensions in micro and nano scales [198].

Ashish et al. used the corrosion inhibitor phenylephrine for aluminium Fig. 34 to present the SEM photomicrographs of aluminum alloy in 0.5 M HCl in the absence and presence of 4000 ppm phenylephrine. The specimen shows a very rough surface in the absence of an inhibitor, which can be attributed to metal dissolution. Nonetheless, the surface damage seems to be diminished on the specimen in the presence of inhibitor, with lesser cavities in comparison to the blank material. This is a consequence of the protective layer formed on the surface of the metal in the presence of an inhibitor.

Fig. 34
figure 34

SEM images of a polished metal, b metal immersed blank solution, c metal immersed in an inhibited solution of 4000 ppm of phenylephrine. (Source adapted from [188])

Atomic Force Microscopy (AFM) Atomic force microscopy is used for the surface topography analysis, including measurements of surface roughness. The Atomic Force Microscope was invented by scientists working at IBM in 1982, just after Gerd Binnig and Heinrich Rohler of IBM Research in Zurich invented the Scanning Tunneling Microscope in 1980. This was first used in 1986 experimentally and placed on the market in 1989 for commercial sale.

The Atomic Force Microscope (AFM) uses a cantilever to perform surface sensing (an element made of a rigid block like a beam or plate that connects to the end of the support, from which it protrudes to create a vertical, perpendicularly flat link like a wall). The cantilever has a sharp tip that scans the surface of the sample by creating an enticing force between the surface and the tip as it draws closer to the surface of the sample. When it draws very close contact with the sample surface, a repulsive force progressively takes place on the surface by averting the cantilever. There is a shift in the direction of reflection of the beam during the deflection of the cantilever away from the sample surface, and a laser beam senses aversion by reflecting a beam from the flat surface of the cantilever. It monitors and records these changes of deflection and changes in the direction of the reflected beam using a positive-sensitive photo-diode (PSPD-a part based on silicon PIN diode technology and used to calculate the location of the integral focus of an incoming light signal). In AFM, the tip-sample interactions are detected to characterize the topography and biophysical properties of the sample.

The adherence of the inhibitor film or corrosive film to the substrate material (base metal or alloys) has always been difficult to report on by acquiring only the topographical images as being shown in Fig. 35 where AFM images of a metal immersed in the blank solution and another image of the same metal immersed in inhibitor solution for overnight which demonstrates the formation of a defensive layer on a metal surface by adsorption of inhibitor molecules on it which further protects it from the attack of corrosive ions [199]. As a result, AFM current images and force vs. distance curves are also used which provide detailed information on surface film properties, such as corrosion inhibitor adhesion and coating. AFM has the benefit of working under liquid conditions and enables real-time monitoring of surfaces in corrosive environments.

Fig. 35
figure 35

AFM images for the metal in a blank, b inhibited solution of inhibitor (Source adapted from [200])

X-ray Diffraction Spectroscopy X-ray Diffraction (XRD) spectroscopy can be explained as an analytical method used to provide detailed information on crystalline compounds, including the identification and quantification of crystalline phase morphology. This is a valuable tool to identify a contaminant or corrosion product and foreign phases for crystalline powder purity analysis positively. X-ray diffraction is important for assessing mineral deposits, polymers, products for corrosion, and unidentified materials. For most cases, the samples analyzed at the elementary level are analyzed using samples prepared as finely ground powders using powder diffraction. This research method is achieved by focusing an X-ray beam at a sample and calculating the distributed intensity as a function of the path out. The scatter, also called a diffraction pattern, shows the crystalline structure of the sample until the beam is dispersed. Then, the technique of Rietveld refinement is used to describe the crystal structure that most likely produced the pattern observed.

Synchrotron-sourced XRD overcomes the XRD problem with a traditional source, as it offers an adequate signal-to-noise ratio to analyze carbon steel film structures under corrosive environments. Synchrotron radiation XRD (SR-XRD) is widely known among crystallographers as it provides good resolution through a parallel beam that helps alleviate low-angle peak expansion as a result of geometry focusing. It includes several advantages such as high brightness quality, high frequency, high resolution, high polarization, and low transmittance. Hongwie Liu et al. in their study illustrated the energy dispersive X-ray spectrum analysis of corrosion product film and SRB biofilm on specimens after 14 days of incubation in the absence and presence of inhibitor SRB as results obtained shown in Fig. 36 [201].

Fig. 36
figure 36

Energy dispersive X-ray spectrum analysis of corrosion product film and SRB biofilm on specimens after 14 days of incubation in the absence (a) and presence (b) of SRB, respectively. (Source adapted from [201])

Fourier Transform Infrared Spectroscopy (FTIR) By using FTIR, unique molecular patterns can be produced based on the absorption and transmission of infrared radiation. The quality and quantity of different components can be established in samples (mixtures) using this method. FTIR is widely used because it delivers several beneficial, such as accurate measurement, fast data collection, high sensitivity, non-destructive, no external calibration required. Traditional FTIR, which is usually studied in the mid-IR wavelength region, has been effectively implemented in surface film investigations on metal or alloy surfaces.

This facilitates insight into the mechanisms of adsorption of the corrosion inhibitors on metallic surfaces can be seen in Fig. 37 where the adsorption of various inhibitor molecules on the metallic surface can be observed.

Fig. 37
figure 37

IR of inhibitor with metal showing absorbance of inhibitor molecule on the metal surface (Source adapted from [202])

Energy Dispersive X-ray Spectroscopy (EDS or EDX) Energy Dispersive X-ray Spectroscopy (EDS or EDX) is a chemical microanalysis technique used in conjunction with scanning electron microscopy (SEM). It is used for the characterization of the elemental composition of the examined volume. For this the EDS technique detects X-rays emitted from the sample during bombardment by an electron beam. By this technique phases as small as 1 μm or less can be analyzed.

In this technique, electrons are ejected from the atoms comprising the sample's surface when the sample is bombarded by the SEM's electron beam. Electrons from a higher state occupy the resulting electron vacancies, and an X-ray is released to offset the energy difference between the states of the two electrons. The energy of the X-ray is characteristic of the material it is emitted from.

The EDS X-ray detector measures the relative abundance of emitted X-rays versus their energy. The detector is usually a solid-state system with lithium-drifted silicon. It produces a charge pulse that is equal to the energy of the X-ray when an incident X-ray hits the detector. A charge-sensitive preamplifier converts the charge pulse to a voltage pulse (which remains proportional to the X-ray energy). Then the signal is sent to a multichannel analyzer where the voltage is sorted by the pulses. The energy, as calculated from the voltage measurement, is sent to a computer for display and further data evaluation for each X-ray event. To evaluate the elemental composition of the sampled volume, the spectrum of X-ray energy versus counts is assessed.

Contact angle (CA) Measurement Contact angle (CA) measurement is a simple method for the characterization of the surfaces. It provides a lot of useful data such as information between a hydrophobic and a hydrophilic surface. When an interface occurs between a liquid and a solid, the angle between the surface of the liquid and the outline of the contact surface is defined as the contact angle (lower case theta). The angle of contact (wetting angle) is an indicator of the liquid wettability of a solid. The touch angle is 0° in the case of full wetting (spreading). Around 0° and 90°, the solid is wettable and is not wettable above 90°. The contact angle approaches the theoretical limit of 180° in the case of ultra hydrophobic materials with the so-called lotus effect.

Thermodynamic/Adsorption Parameters The thermodynamic parameters can be utilized to comprehend the mode by which the inhibitor gets adsorbed on the surface of the metal in process of corrosion inhibition and adsorption isotherms can be utilized to gather details about the mechanism of adsorption. The phenomenon of adsorption involves the defensive layer formation potential of an adsorbent on the common interface of two phases. As a result of unbalanced and unsaturated forces present on the interface, a two-dimensional adsorption arrangement takes place. The forces of attraction and retention of solute balance the residual force on the surface on the contact of a solute onto the surface, leading to the higher concentration of molecules of solute in the nearby vicinity of the solid surface.

The adsorptive molecules present in the solute tend to get accumulated or adsorbed on the surface of an adsorbate [203].

The standard adsorption free energy measurement (∆G0ads) provides a measure of the adsorption intensity of the molecule on the surface. ∆Goads high values suggest that the compound in the corrosive media is firmly adsorbed on the metal surface [204]. The ∆Gads value of 40 kJ/mol is generally considered as a threshold value between chemisorption and physisorption. Gibb’s free energy is determined from adsorption equilibrium constant Kads from the following equation:

$$\Delta G_{{{\text{ads}}}}^{0} = {\text{RT}}\ln \left( {55.5\,K_{{{\text{ads}}}} } \right)$$

where R indicates gas constant, T is the temperature, 55.5 is the molar concentration of H2O.

The entropy of the adsorption Process (ΔS0ads) and enthalpy of the adsorption process (ΔH0ads) can be calculated by Van’t Hoff equation:

$$d\ln K_{{{\text{ads}}}} /{\text{dT}} = \Delta H_{{{\text{ads}}}}^{0} /{\text{RT}}^{2}$$

By taking the logarithm of the above eqn and rearranging it, we get:

$$\log K_{{{\text{ads}}}} = - \Delta H_{{{\text{ads}}}}^{0} /2.303{\text{RT}} + D$$

Here D indicates the disintegration constant, T is the absolute temperature and R indicates gas constant with the value 8.314 J/K/mol. The plot of log Kads vs 1/T gives a straight line with a slope – ΔH/2.303R, from which the value of enthalpy is calculated.

The entropy of adsorption is obtained from the values of enthalpy and Gibb’s free energy using the following equation:

$$\Delta S_{{{\text{ads}}}}^{0} = \Delta H_{{{\text{ads}}}}^{0} {-} \Delta H_{{{\text{ads}}}}^{0} /T$$

The energy of activation, Ea can be calculated using the Arrhenius equation:

$$\log C_{{\text{R}}} = - E_{{\text{a}}} /2.303\,{\text{RT}} + \log A \left( {4.2.15} \right)$$

where CR indicates corrosion rate, Ea indicates effective activation energy, R indicates gas constant, T indicates absolute temperature, and A indicates the Arrhenius constant.

If negative values are obtained for ∆Hads, the adsorption of inhibitor molecules is an exothermic mechanism with a physical nature (physisorption). Afterward, the Arrhenius equation estimates the activation energy (Ea). Ea values coming below the threshold value required for chemical adsorption, simply indicate the physical adsorption nature of the inhibitor. These parameters are crucial in understanding the mechanisms involved.

Additionally, based on the forces included in the process of adsorption, adsorption can be categorized into two classes:

  1. (a)

    Physical adsorption (Physisorption)

  2. (b)

    Chemical adsorption (Chemisorption)

In physisorption, the adsorption is primarily due to the dipole–dipole or Van der Waal forces leading to relatively weaker binding forces between adsorbate and adsorbent. On the other hand, chemisorption occurs as a result of stronger interactions between the adsorbent and adsorbate forming a covalent bond.

Ashish et al. used the corrosion inhibitor venlafaxine on mild steel, where they plotted a graph between logC and logC/θ represented in Fig. 38a which gives a straight line with the value of the regression coefficient close to 1 confirming the inhibitor adsorption on the metallic surface.

Fig. 38
figure 38

a Langmuir adsorption plot, b Arrhenius plot and enthalpy plot for corrosion inhibition of mild steel using Venlafaxine in 1 M HCl (Source adapted from [181])

From the adsorption parameters, Gibb’s free energy was determined from adsorption equilibrium constant Kads from eqn.

$${\text{Log }}C_{{\text{R}}} = \, - E_{{\text{a}}} /2.303{\text{ RT }} + \, \log A$$

where CR indicates corrosion rate, Ea indicates effective activation energy, R indicates gas constant, T indicates absolute temperature, and A indicates the Arrhenius constant.

The activation energy was calculated from the graph of Log I vs. 1/T given in Fig. 38b, the straight line is perceived. The slopes (− Ea/2.303R) have been utilized for the calculation of activation energy. The Arrhenius equation was used to calculate this kinetic parameter. The plot of logKads vs. 1/T represented in Figure b gives a straight line with slope – ΔH/2.303R, from which the value of enthalpy is calculated.

Hydrogen Monitoring Hydrogen monitoring is an important component of corrosion monitoring, as hydrogen detection gives an indicator that there is or has been corrosion. The formed hydrogen can penetrate the metal lattice, resulting in metal blisters, and indicates the current situation about the impact of corrosion and its failures on metal. Sulphur formed by the creation of hydrogen complexes, allows more hydrogen to penetrate the metal.

Several instruments have been created to track the amount of hydrogen entering a metal tube, such as the electrochemical probes. Until detection is possible, these methods enable hydrogen to permeate through and escape from the substrate metal. These devices contain liquid electrolytes. A solid-state electrochemical concentration cell using hydrogen uranyl phosphate tetrahydrate (HUP) is an additional tool that can be used to calculate the presence of hydrogen, both in the atmosphere and when dissolved in metals. The principle of such a method is based upon the Nernst expression:

$$- nFE = \frac{{RT\ln P_{{1H2}} }}{{P_{{2H2}} }}$$

where n is the charge carried, F the Faraday constant, E the potential measured across the electrolyte, R the gas constant, T the temperature, and P1H2 and P2H2 are the partial pressures of hydrogen on either side of the electrolyte membrane.

4.5 Applications of Corrosion Monitoring Techniques

Corrosion monitoring techniques are typically used in the following situations:

  • Where the risks are extremely high such as high temperature, high pressure, explosive, flammable, toxic processes.

  • Where high corrosion can be trigger using any method.

  • Where variations in operating conditions can cause major changes in the rate of corrosion.

  • Where there is a critical concern about product contamination due to corrosion.

  • Where corrosion inhibitors are used.

  • Where performance or operating parameters from design requirements are modified.

  • In determining the corrosion nature of several alloys.

  • In batch systems, where corrosive constituents are concentrated due to repetitive cycling.

The corrosion monitoring should be done in those industries where corrosion prevention is a primary requirement such as oil and gas manufacturing, mining, pulp, and paper industry, petrochemical/chemical/processing industries.

5 Challenges and Outlooks

Green compounds are perhaps the most appealing field of corrosion inhibitors. For forthcoming research concerning corrosion inhibition, it is advisable to utilize plant extracts as metallic corrosion inhibitors, since they have several advantages such as cheap, readily available, non—toxic, soluble, highly efficient and eco-sustainable nature. Even so, it is critical to understand many factors before such inhibitors can be used in practical commercial processes as the “green" facet of the natural products under analysis requires to be assessed properly. Toxicity, biodegradability and bioaccumulation experiments should be conducted to reiterate what is genuinely green and what is not.

Authors don't generally mention the specific components present in the extracts throughout which makes it an uncovered topic for prospective studies. It would be valuable if isolation and analysis of specific components should be unsightly carried out before evaluating the corrosion inhibition efficiency of an extract. A lot of lab technical instruments can seek help for the research in this regard as LC–MS, HPLC–MS or GC–MS could be of great help to uncover the compounds that are responsible for the overall effectiveness of the extract used for corrosion inhibition.

The preference of the extraction method is of vital importance. Bearing in mind the plethora of issues related to the high processing temperatures and long processing times in traditional extraction procedures, the creation, and implementation of alternate extraction techniques that do not involve extreme operating conditions like higher computational temperatures and harmful organic solvents are important. The temperature has a very marked effect on effective plant extract preparation. A very low temperature limits the effective solubility of the phytochemicals, while a very high temperature causes the decomposition of the active constituents (phytochemicals). Generally, extraction is being carried out in the temperature range of 60–80 °C to find optimal extraction yield [78, 205, 206]. Taking into account plant drying temperature, often the plant materials are allowed to dry at room temperature in shade. However, this type of drying requires several days, weeks and sometimes even months; therefore oven drying has also gained significant advancement. Moreover, the effect of solvents on the surrounding environment should also be considered as some extraction procedures require the use of highly harmful organic solvents. Theoretically, in comparison to organic extracts, the use of aqueous extracts is preferred as aqueous extracts contain relatively polar phytochemicals that offer a strong bond with the metallic surface compared to the non-polar phytochemicals of organic extracts. Although, because of their biological origin plant extracts irrespective of the aqueous and organic nature, are treated as environmental benign however generally they exhibit low protection effectiveness at relatively higher concentrations. Their limited solubility in polar electrolytes, especially at their higher concentration, is one of the biggest challenges of using organic extracts as corrosion inhibitors. In most cases, practically it has been observed that organic extracts get precipitated in the polar electrolytes. Another disadvantage of the use of plant extracts as corrosion inhibitors is that extract preparation is extremely lengthy as several steps are involved. More so, the preparation of organic extracts generally employs toxic solvents that can adversely affect the surrounding environment along with soil and aquatic life after their discharge. Most of these solvents are extremely costly and can adversely affect the extract preparation economy. The probable technique for phytochemical extraction, i.e. Supercritical fluid extraction is an alternative to the extraction methods presented in the study so that natural compounds can be selectively extracted from natural materials at moderate temperatures. Whereas, microwave and oven drying procedures for getting dried samples are not well appreciated because it degrades the vital phytoconstituents in the extract and it will directly influence the corrosion inhibition performance. The main limitation of using plant materials as CIs is their frequently low stability; however, this limitation can be minimized or avoided by adding biocides such as N-cetyl-N,N,N-trimethyl ammonium bromide [31].

There is still quite much space for these green corrosion inhibitors to enhance their inhibition performance. Considering the enormous publications on plant extracts as corrosion inhibitors specifically for mild steel, stainless steel, copper, and aluminum, it is important to address the use of extracts for many other metals and alloys such as nickel, zinc, magnesium.

Taking into account corrosion testing techniques, most work has so far stated that not too much attention is being given to the analytical methods. Currently, computational techniques, especially quantum chemical calculations premised on density functional theory and simulations of molecular dynamics (MD) have evolved as the modern strategies which explain the potency of a specific group of compounds evaluated as corrosion inhibitors. Every plant extract retains numerous active bio-constituents (phytochemicals), so these comparatively simpler and environmentally friendly computational techniques can assess their comparative efficiency against the corrosion of the metal surface. Additionally, it is essential to evaluate the use of DFT and MD simulations (also, MC) methods to gain insight into the interaction of active constituents on the metallic surface. In a short note, extraction and evaluation about each phytochemical / constituent, use of specific drying techniques needed more input and along with it LC–MS, HPLC–MS or GC–MS and computational techniques (DFT, MD, and MC) must be address and use for exploring the true potential of green corrosion inhibitors.

6 Conclusion

From the intense review and discussion, it can be concluded that the utilization of plant extracts (containing active bio-phytoconstituents) as corrosion inhibitors for metal and their alloy for numerous applications is enticing as they are safe, readily available, non-hazardous, and even bio-sustainable with the natural environment and can substitute existing toxic inhibitors that cause a severe hazard to public health and the environment. Phytochemicals obtained from such extracts, mostly heterocyclic compounds, with heteroatoms such as O, S, N, and P get effectively adsorbed on the metal surface and forms a protective film (defensive layer) that acts as a physical barrier to restrict the diffusion of ions or molecules on the metal surface and consequently retard the rate of corrosion reactions. The protective films formed on the metallic surface by these inhibitors give rise to resistance polarization and concentration polarization affecting both anodic and cathodic reactions. The efficiency of these extracts as corrosion inhibitors is commonly evaluated through electrochemical tests, which include techniques such as potentiodynamic polarization, electrochemical impedance spectroscopy, weight loss measurement and surface analysis techniques such as UV, SEM, AFM. It is impressive to see several reports where a maximum of 95% inhibition efficiency is achieved at minimal concentration. Most of the plant extracts behaved as mixed- and interface-type through in some reports through cathodic predominance was observed in few reports. Adsorption of most of the plant extracts on metallic surface obeyed the Langmuir adsorption isotherm though in few reports Temkin and Freundlich adsorption are also fitted. Molecular dynamic (MD) and DFT-based computational studies are highly employed to describe the interaction between phytochemicals and metallic surfaces. DFT study revealed that phytochemicals interact with the metallic surface using charge sharing (donor–acceptor) mechanism.

Although a significant amount of research has been conducted, this still remains a fairly unmapped area of research with tremendous potential for further development, particularly the methods used to attain the green corrosion inhibitors and formulating designs for corrosion inhibitors. The seismic transition would probably replace the commonly used traditional toxic chemicals to mitigate corrosion on an industrial scale. On the one hand, it will create chemicals that are environmentally friendly and beneficial to human beings and will also avoid severe loss occurring globally due to corrosion. An intensive review of the literature confirms that the revolution of green corrosion inhibitors has already begun.