“…Most common environmental parameters that are related to the pipeline corrosion include temperature ( Temp ), total pressure ( P ), partial pressure of CO 2 ( pCO 2 ), partial pressure of H 2 S ( pH 2 S ), flow velocity ( V ), pH value ( pH ), chloride ion ( Cl − ) concentration, and sulphate ion ( SO 4 2− ) concentration, and the presence of solids ( ). The environmental parameters are stochastic in nature; therefore, in order to take temporal variability into account, we used a Poisson Square Wave Process (PSWP) [ 19 , 20 ] to model them and generate different time-varying environmental parameters. In a PSWP, the number of pulses ( ) within a period of time ( follows a Poisson distribution with the probability mass function being: where is the mean occurrence rate per unit time (= 1 per day in this paper) follows the exponential distribution with the mean duration to be .…”