1 Introduction

Mild steel is one of the extensively used ferrous alloys for a wide range of applications. It is the commonly employed metal for ample engineering applications due to its easy availability, low cost, and high strength, in fact it is the most extensively used metal compared to all the other metallic materials [1, 2]. Nevertheless, the high surface electrochemical reactivity of these materials has led to severe corrosion further resulting in high-cost waste every year [3, 4]. The annual losses due to corrosion include 3.4% of the global GDP and hence it has attained more attention by the industrial and academic sectors to reduce the losses caused due to corrosion process [5]. Recently, various corrosion combating methods were also employed. Among the effective approaches to cope up with these problems is the use of corrosion inhibitors if the process conditions permit. The use of corrosion inhibitors is the most practical, simple, and cost-effective technique [6]. These inhibitors get adsorbed onto the substrate either by chemical or physical mode and thus form a barrier at the metal electrolyte interface and hence reducing the corrosion rate [7, 8]. The inhibitor used in this case is a Schiff base molecule derived from the combination of benzo hydrazide and an aromatic aldehyde. Basically, benzohydrazide and derivatives find wide applications in the biological field making them a potential group of organic compounds [9]. The chemistry of the –C=N– group takes an important role in the inhibition process due to the presence of a double bond and lone pair of electrons on the nitrogen atom in the same moiety [10,11,12].

Mathematical techniques can provide valuable qualitative and quantitative evidence, for an improved understanding of this corrosion alleviation phenomenon. The design of the experiment (DoE) is an effective technique for determining new processes and optimization for better performance. DoE is a statistical and mathematical tool applied to elucidate the significance of specific processes and optimize system behavior. It aids in determining the factors with significant contribution to the process and also their interaction effects [13, 14]. DoE produces a lower number of experiments as compared to the traditional methods and decreases the time and cost for running the experiments [15].

An explanation of the system in terms of mathematical language and concepts is nothing but a mathematical model. It is a method employed to simulate real-time circumstances with mathematical model equations to predict their future behavior. The development of an empirical model is possible with numerous techniques. One of those techniques is Response surface methodology (RSM) [16]. The corrosion inhibition effect of Gongronema latifolium on aluminum in HCl solution was investigated using Central Composite design and the optimum Inhibition Efficiency at this optimum condition was predicted [17]. A study was designed to obtain the functional relationship between inhibition efficiency and operating variables by applying rotatable central composite design (RCCD) [18]. Factorial design was applied to determine the characteristics of the aluminum alloy under erosion-corrosion conditions in sulfuric acid and hydrochloric acid slurry [19, 20].

In the present research, a mathematical model was developed using RSM and BBD, to evaluate the relationship between the input variable [temperature, media, and inhibitor concentration] over the response [% IE].

Since the corrosion inhibition mechanism is dependent on certain factors, the metal/solution interfacial behavior cannot be explained by a sole experimental study. Therefore, there arises a need to combine the experimental and statistical study for an improved understanding of the corrosion mitigation process. In the present study, an effort is made to generate a statistical model to comprehend the inhibition mechanism along with the effect of various parameters on it. There are rarely few publications focusing on the behavior of corrosion inhibitors under optimized conditions.

Most of the research articles address only the influence of temperature, acid, and inhibitor concentration on the corrosion rate and percentage inhibition efficiency (%IE), but relatively less discussion on the optimization parameter for the corrosion process. So the present investigation emphasizes the corrosion inhibition process as well as statistical study, which includes a proper design of experiments to acquire data about the optimization conditions.

This research is, therefore, designed for dual purposes: (i) to establish the effectiveness of Schiff base as a corrosion inhibitor (ii) the use of Schiff base as an anti-corrosion agent for mild steel in acidic media with an optimization approach.

2 Experimental Procedure

2.1 Material and Conducting Medium

Commercially available MS sample is employed as working specimen with the following element composition (wt%): 0.15 (C), 0.15 (Si), 0.49 (Mn), 0.05 (P), 0.062 (S), and 0.05 (Cr). The specimens were prepared in cylindrical form, molded using cold setting resin having an open surface area of 1 cm2, and exposed to the corrosive medium. Initially, the test coupons are abraded with different grades of sandpapers, and the final surface finish was done by disk polishing. Analar grade hydrochloric acid solution was used to prepare the different concentrations (0.5, 1 and 1.5 M) corrosive medium.

2.2 Inhibitor Preparation

The Schiff base, namely, N'-[4-(dimethylamino) benzylidene]-4-hydroxybenzohydrazide (SB) was synthesized by the simple condensation reaction between N, N-dimethyl benzaldehyde (0.01 mol), and o-hydroxyl benzohydrazide (0.01 mol) as reported [21]. The synthetic method for the preparation of SB and characterization spectrum (FTIR and 1H NMR) for the same is given in Supplementary Fig. 1 (SF.1) and (SF.2), respectively.

2.3 Electrochemical Technique

The potentiodynamic polarization (PDP) technique was done using an electrochemical work station of model CH600 D-series and a three-electrode cell system. It consists of platinum (counter) mercury-mercurous (calomel reference) and MS as working electrodes all together embedded in Pyrex glass system. The steady-state open circuit potential (OCP) was allowed to attain by retaining the electrochemical system in an unaltered state at the end of minutes. After attaining OCP, the potential is sweeped in the range of − 250 to + 250 mV at a scan rate of 1 mV/s in order to obtain PDP results.

2.4 Surface Morphology Examination

SEM (EVO 18-5-57 model) and AFM (Innova-1B342 model) techniques were used to examine the surface morphological characterization of MS specimen. A specimen each was dipped in 1 M HCl and in 1 M HCl containing SB (30 ppm) for 3 h and then SEM and AFM pictures were documented.

2.5 Experimental Design

DoE is a statistical practice that was followed concurrently to determine the influence of multiple variables [22]. In this work, the parameters affecting the corrosion inhibition of mild steel in HCl which include temperature and inhibitor concentrations are investigated. The Input parameters and their levels are depicted in Table 1. Varying these parameters cause a significant effect on the corrosion protection of mild steel [23].

Table 1 Input parameters and their levels

The statistical second-order polynomial model was used to evaluate the influence of the input parameters on the response.

$$ Y = \beta_{0} + \sum {\beta_{i} Xi} + \sum {\beta_{ii} Xi^{2} } + \sum {\beta_{ij} Xi \, Xj} $$

where Y is the response output, β0 is the intercept constant, βi, βii, and βi are the regression coefficients of linear, square, and interaction terms of the model [24]. The model validity was proven using ANOVA and the significance of the terms was determined from the t-test and p-values (P < 0.05). The experimental procedure is represented in the form a flowchart in Fig. 1.

Fig. 1
figure 1

Experimental procedure represented in a flowchart

3 Results and Discussion

3.1 Inhibitor Characterization

Characterization of SB: Crystalline solid (95%); C16H17N3O2; m.p: 258–260 °C; IR (KBr) [cm−1]]: 3471(OH str.), 3178 (NH str.), 3109 (Ar. CH str.), 1627 (C=O), 1596 (C=N str.), 1504 (Ar. C=C str.), Fig. 1a.

1H NMR (400 MHz, DMSO-d6) δ (ppm): 11.35 (1H, OH), 10.09 (1H, NH), 8.29 (1H, CH=N), 7.80–6.75 (8H, Ar. H), 2.98 (6H, CH3), Fig. 1b.

3.2 PDP Measurements

PDP plots for the deterioration of MS in 1 M HCl containing various concentration ns of SB at 30 °C are shown in Fig. 2a. Similar plots were obtained in 0.5 and 1.5 M HCl also. According to the literature [25], if the shift in the corrosion potential (Ecorr) value was on an average of less than ± 85 mV concerning blank, it suggests the mixed-type behavior of inhibitor and it hold holds good in the present study also. The corrosion current density (icorr) values obtained by extrapolating the cathodic and anodic plots are used in Eq. (1) to calculate % IE [26].

$$ {\text{IE}}(\% ) = \frac{{i_{{{\text{corr}}}} - i_{{\text{corr(inh)}}} }}{{i_{{{\text{corr}}}} }} \times 100 $$
(1)
Fig. 2
figure 2

a PDP plots for the corrosion of MS in 1 M HCl medium at 30 °C; b The variation of % IE in various concentration of HCl at different temperature

where icorr and icorr(inh) is the corrosion current density in the absence and presence of SB.

Results of the PDP on MS containing SB at different temperatures in various concentrations of HCl are given in Table 2. It is observed from Table 2 that the addition of SB resulted in a drastic decrease in the icorr and corrosion rate (CR). Further, the % IE increased with an increase in SB concentration. This is accredited to the increase in the surface coverage of the substrate by the adsorption of the SB [27].

Table 2 PDP results for the corrosion of MS in different concentrations of HCl medium, at various temperatures

3.3 Effect of Concentration of HCl, Variations in Temperature, and Kinetic Factors

To evaluate the effect of temperature on the % IE, the experiments were conducted at three different levels of temperatures (30, 40, and 50 °C) at three different levels of acid concentrations (0.5, 1.0, and 1.5 M) containing three levels of SB concentrations (5, 15 and 30 ppm). These results are then used to estimate the kinetic and thermodynamic parameters. It can be seen from Table 2 that the icorr values increased with an increase in temperature and acid concentration in the absence of SB. This may be due to an increase in the conductivity of the medium at a higher temperature, whereas % IE of SB is found to increase with increasing temperature, addressing the chemical adsorption of SB on the MS surface by transferring unpaired electrons to the unfilled d-orbital of iron [28]. On the other side, as the concentration of the medium increased, the % IE of SB is decreased. This can be accredited to the desorption of the SB molecules from the MS surface as a consequence of the increase in the aggressiveness of the medium [29]. The variation of the % IE (at 5 ppm of SB) at different temperatures and acid concentrations is given in Fig. 2b.

The % IE obtained at different temperatures is used to evaluate kinetic and thermodynamic parameters. The energy of activation (Ea) can be intended from the Arrhenius Eq. (2) and the enthalpy (ΔH#) and entropy (ΔS#) of activation from transition state Eq. (3), respectively [30].

$$ \ln \left( {{\text{CR}}} \right) = B - \frac{{E_{a} }}{{{\text{RT}}}} $$
(2)

where B is metal-dependent Arrhenius constant and R is the universal gas constant.

$$ {\text{CR}} = \frac{{{\text{RT}}}}{Nh}\exp \left( {\frac{{\Delta S^{\# } }}{{{\text{RT}}}}} \right)\exp \left( {\frac{{ - \Delta H^{\# } }}{{{\text{RT}}}}} \right) $$
(3)

where h is Plank’s constant and N is Avagadro’s number. The Arrhenius plot of ln CR versus 1/T and plot of ln (CR/T) versus 1/T for the corrosion of MS in various concentrations of SB in 1 M HCl are illustrated in Fig. 3a and b correspondingly. The resultant data are tabulated in Table 3.

Fig. 3
figure 3

a plot of ln (CR) versus 1/T and b plot of ln (CR/T) versus 1/T for MS in 1 M HCl with various concentration of SB

Table 3 Activation parameters for the corrosion of mild steel in different concentrations of HCl containing various concentrations of SB

In Table 3, the lower values of Ea compared to the blank value attribute the chemical adsorption of SB molecule onto the MS surface because of the gradual rise in the adsorption at elevated temperature. Further, the decrease in Ea values in the presence of SB may be due to the swing in the net corrosion reaction from the unshielded part of the MS surface to the shielded one [31].

The surface coverage [ϴ = (% IE/100)] values were used to classify the best acceptable isotherm model and hence the adsorption type. Figure 4 showed a straight line with slope and correlation coefficient R2 values nearly equal to one, which specified that the adsorption of SB onto the MS surface obeyed Langmuir's isotherm model [32] as given by Eq. 4. [33].

$$ \frac{{C_{{{\text{inh}}}} }}{\theta } = \frac{1}{K} + C_{{{\text{inh}}}} $$
(4)
Fig. 4
figure 4

Langmuir’s adsorption isotherm plots for the corrosion of MS in 1 M HCl at different temperature

where K is the adsorption equilibrium constant and Cinh is SB concentration (in ppm). The standard free energy of adsorption (Δads) was obtained from K using Eq. (5) [33].

$$ K = \frac{1}{55.5}\exp \left( {\frac{{ - \Delta G^\circ_{{{\text{ads}}}} }}{RT}} \right) $$
(5)

where R is the universal gas constant and T is the absolute temperature.

The standard was thermodynamic expressions (6) and (7) that are used to obtain enthalpy of adsorption (ΔHoads) and the entropy of adsorption (ΔSoads) correspondingly [34]. The obtained adsorption parameters are tabulated in Table 4.

$$ \Delta H^\circ_{{{\text{ads}}}} = \frac{{d\left( {\frac{{\Delta G^\circ_{{{\text{ads}}}} }}{T}} \right)}}{{d\left( \frac{1}{T} \right)}} $$
(6)
$$ - \Delta S^\circ_{{{\text{ads}}}} = \frac{{d(\Delta G^\circ_{{{\text{ads}}}} )}}{dT} $$
(7)
Table 4 Adsorption parameters of SB on MS surface in different concentrations of HCl at different temperatures

For the SB, the obtained Δads values lay between − 20 and − 40 kJ mol−1 indicating the probability of mixed adsorption [35]. The increase in the ∆ads values with the rise in temperature approaches the threshold value (− 40 kJ mol−1) by confirming the chemical adsorption of SB molecules onto the MS surface. The positive value of ΔHοads specifies the endothermic process due to the chemisorption of SB and the Δads value being highly negative demonstrated the reduction in disorderness from the metal to the inhibitor [36].

3.4 Surface Analysis

The difference in the surface morphology MS test coupons dipped in 1 M HCl with and without SB for 3 h was examined using SEM and AFM and the corresponding pictures are depicted in Fig. 5. SEM photographs of the MS specimen exposed to 1 M HCl without SB exhibited a rough and damaged surface with numerous pits caused due to the adsorption of chloride ions as shown in Fig. 5a. The smooth surface with a reduction in the number pits for the inhibited MS specimen at 5 and 30 ppm are shown in Fig. 5b and c, respectively. The microstructure of MS specimen immersed in 5 ppm of SB concentration showed (Fig. 5b) less smooth surface when compared to microstructure obtained at 30 ppm. It contains tiny pits on its surface but very less compared to microstructure of MS in the absence of inhibitor. This confirms formation of protective layer of SB molecules and the protection efficiency increased with increase in SB concentration from 5 to 30 ppm.

Fig. 5
figure 5

SEM images of MS sample exposed to 1 M HCl a in the absence of SB, b in the presence 3 ppm of SB, and c in the presence of 30 ppm of SB

The surface unevenness of the unprotected (Fig. 6a) and protected (Fig. 6b) MS specimens was detected from the AFM images. The average surface roughness (Ra) and root-mean-square roughness (Rq) values obtained in the absence and presence of SB are 120.5, 144.8, 68.2,and 83.4 nm, respectively. The obtained roughness values of the substrate with SB were considerably lower than the degraded specimen surface which also confirms the reduction in the corrosion rate due to its adsorption on the MS surface.

Fig. 6
figure 6

AFM images of MS sample exposed to 1 M HCl a in the absence of SB and b in the presence of SB

3.5 Inhibition Mechanism

The inhibitive nature of any molecule and its adsorption onto the metal surface depends on its chemical structure, surface charge distribution, the morphology of specimen surface, type of corrosive media, operating conditions such as temperature, concentration/pH of medium etc. [37]. The obtained ΔGºads values confirm the mixed adsorption of SB molecule with predominant chemisorption and hence SB molecules can interact by both physical as well as a chemical mode of adsorption onto the MS surface. Physical adsorption is due to the electrostatic interactions between the protonated SB molecules and the charged MS surface. Generally, SB molecule protonated in HCl solution and the metal gets positive charge due to metal dissolution at anodic region, whereas H+ ions from the solution get reduced at the cathodic region. This positively charged metal surface attracts the negatively charged Cl ion from HCl resulting in the formation of electrical double layer at the metal solution interface. This double layer facilitates the adsorption of protonated SB molecules onto it by electrostatic interaction, whereas chemical adsorption is due to donor–acceptor interactions [38]. The electron density at the potential centers of the SB molecule influences the inhibition efficiency. The π electrons of the two aromatic rings, imine group, and unbound lone pair electrons available on the nitrogen and oxygen atoms can be contributed to the empty d-orbitals leading to chemisorption [39]. The schematic representation for electrostatic and electron pair interaction is shown in Fig. 7.

Fig. 7
figure 7

The schematic representation for electron pair and electrostatic interaction between MS surface and SB molecule

3.6 Quantum Chemical Studies

The computational study enables density functional theory (DFT) calculations with Schrodinger material science suite with 6-31G basic set and B3LYP function. The highest frontier occupied (EHOMO) and lowest frontier vacant (ELUMO) molecular orbital energies were assessed. These parameters were then used to compute other quantum chemical parameters such as energy gap between then (ΔE), absolute electronegativity (χ), chemical hardness (ɳ), softness (σ), and the fraction of electron transfer (ΔN). The main advantage of this computational work is to provide a theoretical framework of effective inhibition mechanism based on the inhibitor structure and to predict the adsorption mode onto the material surface. The optimized structure of SB obtained using DFT, and the interactions between the structure of SB and its activity were also conferred. The optimized structures of SB and with HOMO and LUMO configuration are depicted in Fig. 8.

Fig. 8
figure 8

a Optimized structure, b Mulliken charges population, c HOMO, and d LUMO of SB molecule

The greater EHOMO values of SB signify its better electron giving a tendency to the empty d-orbitals of Fe, whereas the lower ELUMO values denote stronger electron receiving tendencies from the metal [40, 41]. The difference between the HOMO and LUMO molecular orbitals (ΔE) displayed a lower value for SB, indicating lesser energy is required for the removal of an electron from the last occupied orbital and hence exhibiting higher inhibition efficiency [42]. According to the Koopmans theorem [43, 44], the electron affinity (A) and ionization potential (I) are obtained simply from A =  − EHOMO and I =  − ELUMO. The lesser the value of ionization potential, the easier the elimination of an electron from the inhibitor, and the higher will be its inhibition efficiency. The electronegativity (χ) and electrophilicity (ω) of SB were 1.1403 and 0.8769 which signifies the steadiness and reactivity of the inhibitor molecule [45].

Chemical hardness (η) and softness (σ) constraints are related according to the acid–base theory. Normally, a hard molecule has the minimum affinity, while a soft molecule has a high tendency to react. In the current case, the smaller values of chemical softness for SB indicate the evidence for its maximum inhibition efficiency [46, 47]. The possibility of the corrosion inhibitor to contribute the electrons to the material surface is explained depending on the fraction of electrons that are transferred (ΔN). According to the literature [48], ΔN value must be greater than zero and less than 3.6 for a proficient inhibitor. The ΔN value of SB being 0.464 (ΔN > 0) clearly describes that the electron donation occurs from the inhibitor to the metal surface.

Mulliken charge for SB is depicted in Fig. 8b. The values of Mulliken charges and DFT parameters are illustrated in Table 5. These values deliver useful information in locating the high electron density area of the inhibitor [49]. The greater the electron density on the heteroatom, the stronger will be the coordinate bond between inhibitor and metal surface [50]. From the table, it is observed that the atoms such as O and N possess excessive negative charge thereby facilitating the stronger adsorption of SB molecules onto the metal surface and hence reducing the corrosion rate.

Table 5 DFT parameters and Mulliken charge population of SB molecule

3.7 Optimization

3.7.1 Box-Behnken Design (BBD) Analysis

Three independent variables, including temperature (A), HCl concentration (B), and inhibitor concentration (C), at three levels were chosen for the study.

The following model was found from the empirical data of the present experiment (in terms of coded units) and is depicted in Eq. 8

$$ {\text{IE}} = {164}.{7} - {2}.{824} {\text{A}} - {134}.{7} {\text{B}} + 0.{177} {\text{C}} + 0.0{3458} {\text{A}}*{\text{A}} + {57}.{7} {\text{B}}*{\text{B}} + 0.0{2}0{21} {\text{C}}*{\text{C}} + 0.{9}00 {\text{A}}*{\text{B}} - 0.0{136}0 {\text{A}}*{\text{C}} + 0.0{96} {\text{B}}*{\text{C}} $$
(8)

This function delineates the interaction of experimental variables on the IE. The result evaluation showed that the variable with the maximum effect on IE was inhibitor concentration (C), while the effect of temperature (A) and HCl concentration (B) was significantly smaller.

The model coefficients with positive sign represent synergistic effect, while negative sign represents antagonistic effect. The coefficients of model factors C, A2, B2, C2, AB, and BC positively contribute to the model equation, while A, B, and AC have a negative impact on the developed model [51].

3.8 Statistical Analysis of the Corrosion Inhibition Process

3.8.1 Analysis of Variance (ANOVA)

The F-test and p-value confirmed the statistical significance of the regression model. The ANOVA data for the response surface model are presented in Table 6. Mostly, the p-value can be utilized to reveal the significance of a coefficient. The smaller the p-value, the higher is the significance of the corresponding coefficient. Usually, a p-value less than 0.05 demonstrates the significance of the model terms [52]. As seen in Table 6, the p-value of the regression model shows a single star which indicates the least significance, suggesting the significance of the model terms. Moreover, the linear coefficients (A,B,C) and the interaction coefficients (A2, B2, C2) are significant since p-value is less than 0.05. The concentration of HCl and temperature is correlated with the IE. Besides, the incompetence of a model to exemplify the experimental data can be reflected by the lack of fit [53].

Table 6 ANOVA results for IE of mild steel

Table 6 shows the adequacy of the model which is accomplished by the determination of the regression coefficient value and the F-test. The determination coefficient (R2) value of 0.9702 demonstrates more than 97% response variability being predicted by the current model. Correspondingly, it validates the model since an R2 value of more than 0.6 is desirable. Higher R2 values illustrate that the predicted values are in good accuracy with the experimental data. From the predicted R2 and adjusted R2 (91.67%) values, it may be observed that they are in reasonably good agreement with each other. For a reasonable agreement, the variation between the two values should be less 20% [54].

3.9 Surface and Contour Plots

Response surface plots such as 2-dimensional contour and 3-dimensional surface plots are suitable for creating appropriate response values and operating conditions. In a contour plot, the response surface is considered in a 2D plane where all points that have a similar response are connected to acquire contour lines of constant responses. A surface plot usually exhibits a 3D view that aids in providing a better picture of the response [55].

Figure 9 demonstrates the interaction effect of the 3D response surface plot of temperature, media concentration, and inhibitor concentration on corrosion IE. It confirms that the corrosion IE moderately decreases with increasing media concentration and decreasing temperature.

Fig. 9
figure 9

Effects of temperature, media concentration, and inhibitor concentration on corrosion inhibition efficiency of Schiff bases on Mild Steel

The IE was found to be maximum at the highest temperature of 50 °C and the lowest concentration of HCl concentrations as depicted in Fig. 9. The results obtained were in line with those found in the literature [56].

3.10 Main Effects

Figure 10 demonstrates the influence of each parameter under study. It is worth mentioning that the values considered by each point relate to the average of the corrosion IE obtained at this level, independent of other parameter levels, and the overall mean is plotted across each panel.

Fig. 10
figure 10

Plots depicting the main effect of the variables on a % IE

The increase in corrosion IE with the rise in temperature, as witnessed in this study (Fig. 10), is suggestive of chemisorption mechanism usually attributed to charge transfer from the SB molecules to the MS surface to form a coordinate bond. With the increase in the HCl concentration as expected, the IE decreased due to an increase in the aggressiveness of the medium.

The % IE increased with an increase in SB concentration. The increase in the surface coverage enhances the availability/adsorption of the active inhibitor components onto the corroding metal surface [57].

The highest IE’s are obtained when MS is in 0.0001 M SB concentration with 0.5 M HCl at 50 °C temperature and the least IE’ was obtained at 0.00001 M SB concentration with 1.5 M HCl at 30 °C temperature.

3.11 Normal Probability Plot

The normality of the data was done by means of a normal probability plot. The normal probability plot of IE of SB is shown in Fig. 11. The normal probability plot for IE unveils residuals falling on the straight line. This means that the errors are disseminated normally [51]. There is nothing uncommon with this graph as the residual is equally distributed along the mean line and there is no probable outlier that exposes any non-normality in the distribution. The residual plot for IE of SB shows no predictable pattern.

Fig. 11
figure 11

a Normal probability plot of the residuals. b Residuals versus observation order of the data

3.12 Interaction Plot

Interaction plot aids in illustrating the connection between a continuous response and one categorical factor on the second categorical factor [12]. Contrasting the main effect graph which demonstrates the effect of each study parameter on the response, the interaction plot delivers the information of the influence of two or more parameters on the response (IE). Figure 12 illustrates the interaction effect of means of corrosion IE at various combinations of factor levels.

Fig. 12
figure 12

Interaction effects between the parameters on the inhibition efficiency

Three variable interactions result in a total of six interaction plots. Each of these plots illustrate dissimilar interactions, which can be examined by the slope and the distance between the minimum and maximum values. Since the slope of the lines displayed in Fig. 12 is not horizontal, it may be stated that there is significant interaction between the parameters representing those lines. The deviations in the response mean (IE) of MS in HCl media from the low to high levels of the input variable depend on the level of the second study variable. ANOVA displayed in Table 5 also endorses the significance of interaction A*B. This indicates that a combination of temperature and media (HCl concentration) has a substantial influence on the rate of MS corrosion.

The MINITAB optimizer exhibited the maximum IE of 83.92% at a temperature of 30 °C, 0.5 M HCl concentration, and 0.0001 M inhibitor concentration. Experimental runs were performed and the PDP studies yielded a protection efficiency of 81.5 under the optimized conditions.

3.13 Significance of This Study

The present work explores the optimum conditions for the highest IE by considering temperature, medium, and inhibitor concentration. The study utilized the design of the experiment. The optimum process conditions have a significant influence in subsiding the corrosion rate. Thus, the study can benefit the industries employing mild steel equipment. It is imperative to develop the study further to establish optimized values with a broader range of factors and experiments.

4 Conclusions

  • PDP studies validated SB as a mixed-type corrosion inhibitor for MS corrosion in HCl medium, obeying Langmuir’s adsorption isotherm.

  • Kinetic and thermodynamic parameters established chemisorption of SB molecules onto the MS surface.

  • SEM and AFM images prove the protective film formation of SB on MS surface which acts as a barrier at the metal solution interface.

  • The RSM optimization used in this study has meticulously predicted the process parameters for maximum corrosion inhibition efficiency. This technique could also provide vital information for the understanding of any application from laboratory scale to industrial processes.

  • The statistical model for corrosion IE formed using RSM was found to be favorable. It was shown that this equation could successfully explain the experimental data, at a 95% confidence level.