Next Article in Journal
The Synergy Model of Quality Tools and Methods and Its Influence on Process Performance and Improvement
Previous Article in Journal
Harmonic Detection Method Based on Parameter Optimization VMD-IWT Combined Noise Reduction
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Recognition of Intergranular Corrosion in AISI 304 Stainless Steel by Integrating a Multilayer Perceptron Artificial Neural Network and Metallographic Image Processing

by
Edgar Augusto Ruelas-Santoyo
1,*,†,
Armando Javier Ríos-Lira
1,
Yaquelin Verenice Pantoja-Pacheco
1,
José Alfredo Jiménez-García
1,
Salvador Hernández-González
1 and
Oscar Cruz-Domínguez
2
1
Instituto Tecnológico de Celaya/Tecnológico Nacional de México, Celaya 38010, Guanajuato, Mexico
2
Department of Industrial Engineering, Universidad Politécnica de Zacatecas, Plan de Pardillo Sn, Parque Industrial, Fresnillo 99059, Zacatecas, Mexico
*
Author to whom correspondence should be addressed.
Current address: Department of Industrial Engineering, Instituto Tecnológico de Celaya/Tecnológico Nacional de México, Antonio García Cubas No. 600, Fovissste, Celaya 38010, Guanajuato, Mexico.
Appl. Sci. 2024, 14(12), 5077; https://doi.org/10.3390/app14125077
Submission received: 25 April 2024 / Revised: 30 May 2024 / Accepted: 6 June 2024 / Published: 11 June 2024

Abstract

:
The correct management of operations in thermoelectric plants is based on the continuous evaluation of the structural integrity of its components, among which there are elements made of stainless steel that perform water conduction functions at elevated temperatures. The working conditions generate progressive wear that must be monitored from the perspective of the microstructure of the material. When AISI 304 stainless steel is subjected to a temperature range between 450 and 850 °C, it is susceptible to intergranular corrosion. This phenomenon, known as sensitization, causes the material to lose strength and generates different patterns in its microstructure. This research analyzes three different patterns present in the microstructure of stainless steel, which manifest themselves through the following characteristics: the absence of intergranular corrosion, the presence of intergranular corrosion, and the precipitation of chromium carbides. This article shows the development of a methodology capable of recognizing the corrosion patterns generated in stainless steel with an accuracy of 98%, through the integration of a multilayer perceptron neural network and the following digital image processing methods: phase congruence and a gray-level co-occurrence matrix. In this way, an automatic procedure for the analysis of the intergranular corrosion present in AISI 304 stainless steel using artificial intelligence is proposed.

1. Introduction

Stainless steels are alloys containing approximately 12% chromium [1]. In an oxidizing atmosphere, this percentage of chromium (Cr) is sufficient for the formation of an adherent layer of chromium oxide (Cr203), also called chromite, which protects the steel from corrosion. Considering their metallurgical structure, stainless steels are classified into austenitic, martensitic, and ferritic [2].
Austenitic stainless steels are used daily in the power generation industry, particularly in thermoelectric plants because of their excellent corrosion resistance and structural stability. The alloy AISI 304 is an austenitic stainless steel with a cubic structure with centered faces; the large amounts of chromium and nickel give the stainless steel an excellent resistance to corrosion caused by oxidizing agents [3] (see Table 1).
AISI 304 steel is used to manufacture boiler conductors in thermoelectric plants, which translates into elevated temperature working conditions and attack from external oxidizing agents such as humidity. The permanence of the steel in the temperature zone between 450 and 850 °C causes the precipitation of carbon through the generation of chromium-abundant carbides of the M23C6 type [4]. The main change that occurs after stainless steel’s exposure is the appearance of susceptibility to intergranular corrosion, linked to the modification of the structure and the alteration of the mechanical properties of the material and, consequently, the generation of unexpected failures in the conductors and equipment in service [5].
In AISI 304 stainless steel, there are different states that are related to the duration and temperature of heat to which the material has been subjected; at temperatures close to 500 °C, carbides are manifested at the grain boundary as a thin and continuous sheet, i.e., at that time, there is no intergranular corrosion; see Figure 1a. When the steel is in operating conditions with temperatures close to 700 °C, the carbides take dendritic forms that develop at the intersection of the grain boundaries, where they start their agglomeration; under this morphology, intergranular corrosion starts; see Figure 1b. With increases in the working time and temperatures near 850 °C, the fine dendritic form of chromium carbide gradually transforms into a sizable nucleation that precipitates toward the grain boundary, giving way to a compromised condition for the material to continue operation [6]; see Figure 1c.
This paper presents the development of a methodology that allows for the recognition of intergranular corrosion patterns generated in stainless steel from the integration of a multilayer perceptron artificial neural network (ANN) and the following digital image processing methods: phase congruency and gray-level co-occurrence matrix (GLCM), which will give way to an automatic diagnosis of the condition of stainless steel based on artificial intelligence. This study provides a comparison of the processing methods applied on metallographic images of AISI 304 stainless steel, to identify the appropriate characterization method for the task of recognizing the distinct stages of intergranular corrosion present in the material.
After a brief introduction in Section 1, this article proceeds with a literature review of the topic addressed and is organized as follows: Section 2 contains a description of the methods used for digital image processing, as well as the data generated to train and test the ANN. The results of the experiments and validation are presented in Section 3. Finally, the discussion of the results and conclusions from the proposed methodology constitute Section 4 and Section 5, respectively.

Bibliographic Review

Research has been conducted demonstrating the benefits of artificial intelligence in the field of materials to develop expert systems focused on data analysis and failure diagnosis [7,8,9]. Artificial neural networks have been present in stainless steel to solve classification, recognition, and estimation tasks. In the work shown by Yetim et al. [10], the wear rate of 316L stainless steel was predicted by using artificial neural networks. The results showed that the CrN and γ’-Fe4N phases of the steel are present at temperatures above 400 °C, while the S-phase formed at temperatures below 400 °C.
In the research developed by Desu et al. [11], the mechanical properties of 304L and 326L austenitic stainless steels subjected to elevated temperatures were studied using artificial neural networks trained to predict different mechanical properties, such as the elongation and strength coefficient. Lakshmi et al. [12] demonstrate the efficiency of an artificial neural network to predict the flow stress of austenitic stainless steel 304 during its heat deformation from the perspective of the following variables: voltage and temperature.
The work presented by Gupta et al. [13] addresses the implementation of deep learning technologies to predict the tribological characteristics of 316 stainless steels versus a 100 Cr6 alloy. The coefficient data and friction forces from the experiments were used to develop the different deep learning models, and the performance of the learning model demonstrated higher levels of accuracy. In Mohamed et al. [14], the development of a system based on an artificial neural network to detect cracks in steel and estimate their depth from 2D images was reported. Automatic crack detection is needed to reduce costs and improve the quality of surface inspection for infrastructure maintenance. The performance of the system is comparable to the state of the art and provides an applicable and affordable inspection device. The research by Ai et al. [15] shows the development of an automated method for damage localization in stainless steel structures using acoustic emission signals and a convolutional neural network based on weighted ensemble regression. A data fusion approach was designed to integrate the waveform information into three types of images. A convolutional neural network supported by weighted ensemble regression was proposed to analyze the images and calculate the damage coordinates.
In the area of study related to stainless steel, artificial neural networks have covered tasks such as wear estimation, crack detection, and damage localization generated in stainless steel. Regarding the integration of digital image processing and artificial neural networks applied to the recognition of wear patterns generated in metallographic images, the following works have been presented: In Prasad et al. [16], the classification of machined surfaces was performed using image processing and machine learning techniques. The images were preprocessed to extract GLCM-based features and sent to a classifier such as a support vector machine. The research by Gapsari et al. [17] analyzes the corrosion inhibition efficiency of carbon steel specimens based on images characterized using a gray-level co-occurrence matrix (GLCM) and a support vector machine. Darnton and Ruzzene [18] employ phase congruency processing to visualize the extent of subsurface damage in aluminum structures. Sommer et al. [19] used binarization-based digital image processing from illumination and contrast invariant measurements to quantify the porosity of AISI 316L stainless steel. Küllaç and Çuvalcı [20] applied the principles of phase congruence by implementing Fourier transform on turned surfaces to identify their wear.
As can be seen, the main digital image processing techniques used for the characterization of microstructures in steels that have suffered different types of damage are phase congruence and feature extraction based on GLCMs. Regarding classification and recognition tools, the use of classifiers such as the support vector machine is highlighted; however, in the studies developed by Guerrero et al. [21] and Bennett-Lenane et al. [22], it is shown that multilayer artificial neural networks classify patterns more efficiently than the support vector machine, in terms of sensitivity, specificity, and accuracy. Based on the above, the research methodology is structured according to the literature review; it is necessary to compare the characterization techniques used so far to digitally process metallographic images and evaluate their performance with a classifier such as a multilayer artificial neural network, and establish a mechanism capable of recognizing intergranular corrosion from microstructural images at different stages of degradation. The presented study describes a methodology capable of automatically identifying the presence of intergranular corrosion in stainless steel and recognizing the phase in which the corrosion is found in AISI 304 stainless steel, with only the digital processing of the information contained in the metallographic image under the pattern recognition approach.

2. Materials and Methods

The intergranular corrosion generated in AISI 304-type stainless steel as a consequence of working in high-temperature environments manifests itself in the microstructure of the material in an iterative way from the beginning to the end of its useful life; in this way, it is possible to recognize three different metallographic patterns present in the microstructure of AISI 304 stainless steel (see Figure 1a showing no intergranular corrosion (NIC), Figure 1b showing the presence of intergranular corrosion (PIC), and Figure 1c showing the precipitation of chromium carbides (PCC)).
The metallographic images containing the microstructure of stainless steel was obtained from optical microscopy techniques for further processing. There is a standardized process for obtaining a metallographic image that consists of consecutive activities [23]. It starts with cutting the stainless steel to examine a section of the material; the stainless steel section is placed in a specimen that is sanded and a 4% concentration of Nital solution is applied. As a last step, the specimen is placed under an inverted microscope so that the user can visualize the microstructure of the material at 100× magnification and determine the presence or absence of intergranular corrosion.
The methodology for the development of the research consists of two stages: the first corresponds to the digital processing of the metallographic image and the second stage corresponds to the development of an artificial neural network focused on the recognition of the different corrosion phases present in the microstructure of stainless steel. In the first stage corresponding to the digital processing of the metallographic image, two efficient characterization methods are applied: phase congruence and GLCM. The main objective of digital processing is to provide a correct input signal to the ANN for its subsequent recognition stage.

2.1. Digital Processing of the Metallographic Image Using the Phase Congruency Method

Digital image processing involves a set of computer algorithms that is applied to digital images with the aim of processing, visualizing, and improving their quality. By applying digital image processing methods, it is possible to extract key features describing the texture of an image for further processing [24]. According to [25,26], phase congruence in terms of Fourier series provides an efficient characterization of digital images through the application of different filters and is expressed as shown in Equation (1).
P C x = m a x ϕ ¯ ( x ) ϵ 0,2 π n A n c o s ( ϕ n x ϕ ¯ x ) Σ n A n
where A n represents the amplitude of the n Fourier component. ϕ n x is the local phase of the Fourier component at position x . ϕ ¯ ( x ) represents the angle-weighted average amplitude of the local phase of all Fourier terms; see Figure 2. On the other hand, the local energy function is defined in Equation (2):
E x = F ( x ) 2 + H ( x ) 2
where F(x) is the luminance signal I(x) with its congruency difference component removed, and H(x) is the transform of F(x), with a phase increment of 90 degrees.
In [27,28,29], it shown that employing logarithmic Gabor filters are extremely useful for image rendering. In the present study, the logarithmic filter functions are employed using a Gaussian transfer function, as suggested by [30]. Therefore, the response vector for each of the filter pairs is determined through Equation (3). As mentioned above, I x represents the luminance signal, and M n e and M n o symbolize the even (cosine) and odd (sine) symmetric wavelets at scale n, respectively; therefore, the results of each quadrature filter pair constitute a response vector. The wavelet amplitude transforms at a given scale for each component n and is defined in Equation (3).
A n x = ( I x *   M n e ) 2 + ( I x *   M n o ) 2  
The phase is determined by Equation (4).
ϕ n x = a t a n 2 I x *   M n e ,   I x *   M n o
At each point x of any signal, a matrix of response vectors generates one vector for each filter scale. These response vectors form the localized representation of the signal and are used in the same way as the Fourier components to estimate the phase congruency. The construction of the wavelet filter bank should ensure that the transfer function of each filter overlaps sufficiently with its neighbors so that the sum of all the transfer functions forms a uniform coverage of the spectrum. Care should be taken to preserve a wide range of frequencies in the signal, because phase congruency is only significant when it occurs over a wide range of frequencies. On the other hand, F ( x ) can be estimated by summing the convolutions of the even filters using Equation (5). Similarly, H ( x ) can calculated from the convolutions of the odd filters using Equation (6).
  F x = n I x *   M n e
H x = n I x *   M n o
The sum of the amplitudes of the frequency components in F(x) is determined using Equation (7).
n A n x = n ( I x *   M n e ) 2 + ( I x *   M n o ) 2    
It is of vital importance to consider that phase congruency can compromised due to noise present in the input signal. The incidence of noise in the calculation of E ( x ) can be deduced under the following conditions: the image noise is additive; the noise power spectrum is constant; and the features originate only in isolated areas of an image. The energy is the magnitude of a vector sum. If the noise exhibits Gaussian behavior with random phase, each vector of this sum will consist of two normally distributed independent variables. Thus, the distribution of the position of each vector will be a two-dimensional Gaussian centered at the origin. It is possible to establish an expected value of energy due to noise, as an evaluation of the mean μ R in the energy distribution and, therefore, to determine its variance σ R 2 . With the intention of decreasing the effects, a noise factor T   is considered, and is expressed as shown in Equation (8).
T = μ R + k σ R
where k is the number of standard deviations in a range from 2 to 3; in the present work, a value of 2 is considered. On the other hand, the mean of the distribution μ R and the variance σ R 2 are obtained using Equations (9) and (10), respectively [31].
μ R = σ G π 2
σ R 2 = 4 π 2 σ G 2
where σ G 2 is the variance of the normal distribution describing the position of the total energy vector.
Finally, the phase congruence of the image is obtained using Equation (11).
P C ( x ) = E x T n A n x + ε
The digital processing of the metallographic image is exemplified in Figure 3. Figure 3a shows the original metallographic pattern, which will subsequently be set to grayscale function and the median filter will be applied to it. Finally, a threshold is necessary to perform binarization of the metallographic pattern that is present in the stainless steel microstructure (Figure 3b) [32].
Phase congruence is applied in five scales to each of the six orientations established for the filter bank, which generates the characterization vector of thirty components. Table 2 shows the components of the characterization vector of three different metallographic patterns processed by the phase congruence method. It is necessary to digitally process each of the metallographic images of the stainless steel that contain a pattern representative of the damage generated in the material, with the purpose of storing the vectors in a database so that they can later be converted into input information for the artificial neural network.

2.2. Digital Processing of the Metallographic Image Using the Gray-Level Co-Occurrence Matrix Method

Texture analysis is an important task in digital image processing operations; texture analysis refers to the characterization of certain sections present in an image by their texture content. A statistical procedure for examining texture that considers the spatial relationship of pixels is the gray-level co-occurrence matrix (GLCM). The GLCM method is based on characterizing the texture of an image by calculating how often pairs of pixels that reveal specific values and are in a specific spatial relationship occur in an image, generating a GLCM and subsequently extracting statistical parameters from this matrix [16]. In the works presented in [33,34], the advantages of the GLCM method for texture analysis in images are demonstrated. Within the focused statistics for the study of texture, fourteen equations will be employed that extract texture properties of diverse types of images, considering their statistical nature from the GLCM and the texture statistical parameters presented in Equations (12)–(25):
Second angular momentum/energy:
f 1 = i j p i , j 2
where
p i , j = normalized   co - occurrence   matrix .
Contrast:
f 2 = n = 0 N g 1 n 2 i = 1 N g j = 1 N g p i , j i j = n
where
N g = number   of   discrete   intensity   levels   in   the   image .
Correlation:
f 3 = i j i j p i , j μ x μ y σ x σ y
where μ x ,   μ y ,   σ x , and σ y are the means and standard deviations of p x and p y .
Variance:
f 4 = i j i μ 2 p i , j
Moment of inverse difference:
f 5 = i 1   1 + i j 2 p ( i , j )
Sum of averages:
f 6 = i = 2 2 N g i p x + y ( i )
where
p x + y = i = 1 N g j = 1 N g p i , j ;   i + j = 2 ,   3   2 N g
Sum of variances:
f 7 = i = 2 2 N g i f 8 2 p x + y ( i )
Sum of entropies:
f 8 = i = 2 2 N g p x + y ( i ) log p x + y i
Entropy:
f 9 = i j p i , j log ( p i , j )
Variance Difference: The texture variance difference is a measure of the variation in pixel intensity between a given set of pixels. High variance difference values indicate that there is a significant variation in pixel intensity between a given set of pixel gray levels. In case of low variance difference values, they reveal that there are fewer transitions between the values of gray level pairs. Visually, a texture with a higher variance difference value may appear noisy, while a texture with a lower variance difference value will appear more homogeneous.
f 10 = v a r i a n z a   d e   p x y
where
p x y = i = 1 N g j = 1 N g p i , j ;   i j = 0 ,   1   N g 1
Entropy Difference: This indicator quantifies the randomness or unpredictability of the distribution of differences between the gray levels of pixel pairs. It is a measure of the entropy of the histogram of differences between pixel pairs, which captures the granularity of the texture. Logarithms are an alternative for handling exponential values and a logarithmic scale allows for better visualization of the variations and patterns of randomness between the gray levels of pixel pairs. The sum product between a normalized matrix and a logarithmic expression generates a measure of entropy dispersion present in the histograms between pixel pairs, and the negative value refers to the difference between the two entropy values.
f 11 = i = 0 N g 1 p x y ( i ) log p x y ( i )
Correlation measures (23) and (24):
Equation (23) evaluates the correlation between the probability distributions of   i and j , weighting the texture complexity. The numerator is defined as H X Y H X Y 1 , and, consequently, is 0 . In the case of the denominator, it is divided by the maximum of the 2 marginal entropies, where, in case of a total dependence, a value of f 12 = 1 will be reached, since H X = H Y . In a scenario where a flat region is analyzed, an arbitrary value of 0 is set.
f 12 = H X Y H X Y 1 m a x H X , H Y
where
H X = i = 1 N g p x ( i ) l o g 2 ( p x i )  
H Y = i = 1 N g p y ( j ) l o g 2 ( p y j )
H X Y = i = 1 N g j = 1 N g p i , j l o g 2 ( p i , j )
H X Y 1 = i = 1 N g j = 1 N g p i , j l o g 2 ( p x i *   p y j )
Equation (24) also weights the correlation between the two probability distributions of the image. A value of 0 represents the case where the two distributions are independent, i.e., there is no correlation in the information. A value close to one represents a scenario where the two distributions are dependent.
f 13 = 1 e x p 2.0 H X Y 2 H X Y 1 / 2
where
H X Y 2 = i = 1 N g j = 1 N g p x i *   p y j l o g 2 ( p x i * p y j )
Maximum correlation coefficient:
Q i , j = k p i , k p ( j , k ) p x i p y ( k )
The descriptors are applied to each of the metallographic images of the stainless steel containing an intergranular corrosion pattern in its microstructure, with the objective of storing the vectors in a database to consecutively convert the input signal to the artificial neural network. Table 3 shows different examples of characterization vectors for each of the intergranular corrosion patterns using the GLCM method.

2.3. Training of the ANN Using the Phase Congruence Method

The human brain is made up of interconnected neurons and can think and interpret information to provide an efficient solution to the problems posed. Scientists have tried to computationally model qualities related to the functioning of the human brain; the result has been artificial neural networks. Currently, artificial neural networks present a series of characteristics of the brain, for example, they learn from experience, have generalization capacity, and abstract important characteristics of data sets [35].
The multilayer perceptron artificial neural network used in the present investigation employs supervised training from the vectors generated by the characterization methods. The set of metallographic images containing the microstructures with the damage patterns generated in stainless steel is used to train and test the ANN with a total of 538 metallographic images previously recognized by experts; see Table 4.
The hyperbolic tangent activation function is implemented in the multilayer perceptron neural network so that the input signal values are efficiently transformed over an interval ranging over [−1, 1]. The hyperbolic tangent activation function achieves symmetric and balanced outputs, which allows for the modeling of nonlinear relationships between data more accurately [36]. Recognizing and classifying intergranular corrosion patterns in AISI 304 stainless steel from digital processing of metallographic images is a scenario where the relationships between variables are of the nonlinear type, thus justifying the use of the hyperbolic tangent activation function. On the other hand, since the ANN will be trained and tested to perform the task of classifying and recognizing three types of corrosion patterns, it was decided to proportionally divide the output interval of the activation function; thus, the objective values will be balanced with an equivalent distance.
The target values required by the artificial neural network to perform the task of classification and recognition of the metallographic patterns present in AISI 304 stainless steel are assigned as follows: (−1) for materials with precipitation of chromium carbides (PCC), (0) for materials with presence of intergranular corrosion (PCI), and (1) for materials that do not present intergranular corrosion (NIC); therefore, the activation function used is a sigmoidal tangent. The ANN performs the estimation based on the synaptic weights and the bias generated from an iterative process, and according to [37], the general operation of the multilayer perceptron artificial neural network is based on Equation (26):
m = ( ω i * p i ) + b
where ω i is the weight factor that the network assigns to the input information, p i corresponds to the input signal, and b is the bias determined by the network. The activation function is expressed in Equation (27) and provides an output in the interval [−1, +1].
f k m = e m e m e m + e m
The neural network architectures were developed dynamically by constructing an algorithm based on exhaustive experimentation conditioned to cycles to test the total number of possible combinations of topologies. The first parameter considered is the number of neurons in the hidden layer with an interval of [5, 200]. The second parameter is the learning rate with an increment factor of 0.001 [0.005, 0.9]. The allowed error was set to only two possibilities: 1 × 10−4 and 1 × 10−5. Finally, a stop in training was set through the down-gradient method if the error function did not improve by at least 0.0001 for 150 iterations. For each architecture, its output is recorded in a database to proceed to calculate the mean squared error against the previously established target values and this was the mechanism for selecting the winning topology. The advantage of the proposed procedure is to ensure a global minimum and avoid falling into local minima.
The ANN topologies proposed in Table 5 adequately fit the 411 target values of the corresponding metallographic pattern in the training phase, which is why the mean squared error (MSE) used to determine which ANN architecture should be selected for the test phase with the remaining 127 images.
The ANN 4 topology presented a better fit in the training phase by registering a lower MSE index (0.088); therefore, it will used in the test phase. See Table 6.
Once the information is processed through ANN, the following weights and bias matrices are obtained:
W1: synaptic weights of the first layer (55 × 30):
W 1 = 0.0767 0.0553 0.0477 0.0235 0.1308 0.0414 0.0383 0.0386 0.0514 0.0064 0.0094 0.2929 0.0671 0.0197 0.0684 0.0362
b1: bias of the first layer (1 × 55):
b 1 = 2.7675 2.7125 2.6527 1.8140
W2: synaptic weights of the hidden layer (1 × 55):
W 2 = 0.2024 0.0995 0.5504 0.2546
b2: hidden layer bias (1 × 1):
b 2 = 0.0523

2.4. ANN Training Using the GLCM Method

For the textural characterization method of the GLCM, the topologies of artificial neural networks developed in the training phase that present a correct efficiency are shown in Table 7, and again, the selection criterion is the MSE statistic.
The ANN 6 topology presented a better fit in the training phase by registering a lower MSE index (0.0219); therefore, it will used in the test phase. See Table 8.
After the iterative process, the ANN provides the following matrices:
W1: synaptic weights of the first layer (100 × 14):
W 1 = 3.0273 4.3698 3.3214 4.4911 2.3262 2.1168 1.3786 4.3327 1.0979 0.2433 5.1740 4.6218 2.3543 5.0160 2.5376 5.6513
b1: bias of the first layer (1 × 100):
b 1 = 25.4275 7.5885 9.7822 17.0344
W2: synaptic weights of the hidden layer (1 × 100):
W 2 = 0.2244 0.5309 0.0876 0.1545
b2: hidden layer bias (1 × 1):
b 2 = 0.0331

3. Results

To verify the performance of the ANN in the recognition task, 127 metallographic images not included in the training process were introduced, and in this way, the artificial neural network was subjected to the testing stage. To validate both processing methods, it was necessary to verify that the characterization of the metallographic image was correct and provided detailed information to the ANN. Both the characterization methods compared the phase congruence and GLCM.

3.1. Recognition of Metallographic Patterns from the Phase Congruency Method

The recognition process performed by ANN from the characterization using the phase congruence method is exemplified by analyzing a metallographic image with the presence of intergranular corrosion that was not included in the training phase.. Considering the general operation of the multilayer perceptron ANN and the sigmoidal tangent activation function, Equations (28) and (29) are defined, respectively, as follows:
m 1 = ( W 1 * P ) + b 1
m 2 = e m 1 e m 1 e m 1 + e m 1
Substituting the values in Equations (28) and (30) generated, as a result, a vector with dimensions of [1 × 55].
m 1 = f 0.0767 0.0062 0.1308 0.0227 0.1235 0.0151 0.0514 0.2929 0.0671 0.0362 * 4.9938 9.7508 14.3055 14.5427 13.7590 9.0081 + [ 2.7675 2.7125 2.6527 1.8140 ]
m 1 = f 2.7732 2.3202 1.0063 2.7400
Substituting in Equation (29) for each value obtained from vector m 1 , we calculate (31), which results in a vector [1 × 55].
m 2 = e 2.7732 e 2.7732 e 2.7732 + e 2.7732 = 0.9922
m 2 = 0.9922 0.9809 0.7642 0.9917
Finally, the response issued by the methodology was generated by substituting in the general ANN function the matrices of weights ( W 2 ) , bias ( b 2 ) , and the transpose of the resulting vector of the first layer ( m 2 ); see Equation (32).
m 3 = f 0.2024 0.0995 0.00040 0.4164 0.5504 0.2546 * 0.9922 0.9809 0.7642 0.9917 + 0.0523
m 3 = 0.0067
The variable m 3 corresponds to the value that the ANN assigned to the metallographic image used in the test phase, recognizing the presence of intergranular corrosion in the stainless steel. The output value assigned to the ANN in the training phase to recognize such a state in the microstructure of the stainless steel is equal to (0), so the ANN achieved the efficient recognition of the metallographic pattern present in the microstructure of the material.

3.2. Recognition of Metallographic Patterns from the GLCM Method

To illustrate the recognition process conducted by the ANN based on the characterization of the metallographic image from the GLCM method, a microstructure with a metallographic pattern showing intergranular corrosion in stainless steel was considered. Replacing the corresponding matrices in Equations (28) and (33) generated, as a result, a vector with dimensions of [1 × 100].
m 1 = f 3.0273 4.4919 2.3262 4.3327 2.6176 1.4167 1.0979 4.6218 2.3543 5.6513 * 0.8341 0.0377 0.9059 0.6376 0.6864 0.9083 + [ 25.4275   7.5885 9.7822 17.0344 ]
m 1 = 0.2767 1.3042 6.3857 2.3669
Substituting in Equation (29) each value obtained from vector m 1 , Equation (34) is generated, resulting in a vector [1 × 100].
m 2 = e 0.2767 e 0.2767 e 0.2767 + e 0.2767 = 0.2698
m 2 = 0.2698 0.8628 1.0000 0.9826
The response generated by the ANN to classify and recognize the metallographic pattern present in the stainless steel microstructure is achieved by solving Equation (35), substituting in the general function of the ANN the matrices of the weights ( W 2 ), bias ( b 2 ) and the transpose of the resulting vector of the first layer ( m 2 ).
m 3 = f 0.2244 0.5309 0.0876 0.1545 * 0.2698 0.8628 1.0000 0.9826 + 0.0331
m 3 = 0.1192
The output signal emitted by the ANN when using the GLCM method for the characterization of the metallographic image is efficient for the recognition of the intergranular corrosion pattern present in the microstructure of the AISI 304 stainless steel.

3.3. Comparison of Methods Used for Digital Image Processing

To validate the performance of both methods, it is necessary to verify that the characterization of the metallographic image is correct and provides detailed information to the ANN to achieve the efficient classification and recognition of the patterns present in AISI 304 stainless steel. According to [38], the ratio of the true and false predictions specific to each characterization method is determined by the following performance measures: sensitivity, specificity, and accuracy, using Equations (36)–(38), respectively.
S e n s i t i v i t y = T P T P + F N
S p e c i f i c i t y = T N T N + F P
A c c u r a c y = T P + T N T P + F P + F N + T N
where TP (true positive), FP (false positive), TN (true negative), FN (false negative).
The probability of not incurring a type II error, (1-β), is known as the power of the test, equivalent to the sensitivity. The sensitivity is equivalent to the proportion of cases where a certain corrosion pattern is present in the stainless steel and the developed methodology correctly classifies and recognizes this pattern in the microstructure of the metallographic image (true positive rate). The probability of not making a type I error, (1-α), is known as the efficiency of the test, equivalent to the specificity. The specificity is the proportion of events where a certain corrosion pattern is evaluated in the stainless steel and the proposed methodology does not classify a pattern that does not exist in the microstructure of the metallographic image, diagnosing that the corrosion pattern does indeed not exist in that image (true negative rate).
The degree of accuracy of a test is defined as the proportion of cases where the result is correct [39]. The results of the performance of the phase congruence and GLCM methods applied for the characterization of the three types of metallographic patterns present in the microstructure of AISI 304 stainless steel are shown in Table 9 and Table 10.
The results obtained suggest that both ANN topologies developed efficiently perform the task of classification and recognition of intergranular corrosion in stainless steel when using the phase congruency and GLCM characterization methods. However, the architecture using the GLCM characterization method requires more neurons in the hidden layer and iterations to achieve the allowed error. The phase congruency method generates a larger characterization vector; however, the convergence time in its architecture is shorter compared to the ANN topology used in the GLCM method.
Regarding the characterization capacity, it is important to highlight that the GLCM method establishes only an analysis related to the texture in the metallographic image since it focuses on local variations, the probability of occurrence, and the uniformity and closeness of the distribution between pairs of pixels. On the other hand, phase congruency correctly detects features at all angles and is invariant to contrast and illumination. In the application case reviewed, the illumination and position are not noise factors because there is already a standardized process for image capture with the inverted microscope. However, in any other application case where there is variation in the illumination, the sensitivity, specificity, and accuracy results would compromise this because it is a factor in establishing the gray scale in the image.
To compare the results obtained by the multilayer perceptron ANN, two other classification mechanisms were developed. First, support vector machines (SVMs) were built, and as a second step, the Fuzzy ARTMAP ANN was used. For both classifiers, the same training and test sets used in the multilayer perceptron ANN were used; see Table 4. It should be noted that the selection of the SVM and Fuzzy ARTMAP ANN classification models was due to the fact that they work under a supervised training approach, just like multilayer perceptron ANNs.

3.4. Recognition of Intergranular Corrosion Patterns Using SVM

For the development of SVM architectures, it is important to consider that the classification of intergranular corrosion patterns present in metallographic images is of the nonlinear type, so a polynomial kernel function was implemented with the one versus one method, given that a scenario where more than two classes exist was addressed. For the construction of the SVM, it is vital to consider that the hyperparameter cost (C) controls the balance between the bias and variance; it is a concept that allows one to understand the ability of the SVM when faced with data that have not been used in the training phase, that is, its generalization capacity.
To select an optimal cost value for each of the digital image processing methods, different values were evaluated by cross-validation [0.001, 0.01, 0.1, 1, 1, 5, 10, 15, 20, 25]. For the phase congruency image processing method, the cost value resulting in the lowest validation error (0.0380) is five; see Figure 4a. The degree of the generated model is third and the number of support vectors is 173. As for the GLCM method, the cost value resulting in a lower validation error (0.0417) is one; see Figure 4b. The degree of the generated model is third and the number of support vectors is 235.
With the objective of evaluating the performance of each SVM to execute the task of the recognition and classification of the intergranular corrosion patterns present in AISI 304 stainless steel, the indicators of sensitivity, specificity, and accuracy for the digital image processing’s were calculated: phase congruence and GLCM matrix. See Table 11 and Table 12, respectively.

3.5. Recognition of Intergranular Corrosion Patterns Using the Fuzzy ARTMAP ANN

The Fuzzy ARTMAP ANN performs learning that minimizes the predictive error and maximizes generalization. This is achieved by a match-tracking process that increases the surveillance parameter by the minimum amount necessary to correct an error in pattern recognition. The implementation of the Fuzzy ARTMAP ANN starts with a data normalization process since both the training and test patterns must correspond to the interval (0, 1). Subsequently, the vigilance parameters were defined, such as the Base Vigilance ( ρ a ), Vigilance ( ρ b ), and Rho map ( ρ m a p ). Like the training and test sets, the monitoring parameters must be placed in an interval (0.1), so an experimental design is programmed where, for each monitoring parameter, it is increased by 0.1, and the rest are fixed. In this way, the answers are stored, and the architectures found that this minimizes the error in the pattern recognition task.
Another aspect to consider when programming the Fuzzy ARTMAP ANN is the size of the input and output vectors; however, these values were defined depending on the application case and type of processing applied to the input signal. In the case of the recognition of intergranular corrosion patterns from the Fuzzy ARTMAP ANN, an architecture defined for each type of digital processing was implemented in the metallographic images. The selection criterion between the architectures was the minimization of the MSE, and in this way, it achieves the efficient classification of the corrosion patterns present in the microstructures of AISI 304 stainless steel; see Table 13.
With the intention of evaluating the performance of the ARTMAP Fuzzy artificial neural network architectures, the indicators of sensitivity, specificity, and accuracy are calculated. See Table 14 and Table 15.
Table 16 shows the average accuracy offered by each of the classification models to recognize the three intergranular corrosion patterns present in AISI 304 stainless steel, based on analyzing the information provided by the digital image processing used in the investigation.
According to the results obtained, the multilayer perceptron ANN presents a greater efficiency using phase congruence image processing. Regarding the GLCM processing method, the Fuzzy ARTMAP ANN managed to match the efficiency achieved by the multilayer perceptron ANN in the task of intergranular corrosion pattern recognition. The SVM achieves its best recognition efficiency when integrated with the phase congruency image processing method.

4. Discussion

The average accuracy indicators obtained by integrating phase congruence image processing with the SVM classification models and the multilayer perceptron ANN are achieved because the processing method generates characterization vectors with greater variation for each corrosion pattern present in steel; in this way, it is easier to draw thresholds that separate the sets of information between the classes. On the other hand, it is important to highlight the average accuracy of 98% achieved by the Fuzzy ARTMAP ANN processing the input information generated by the GLCM method; one answer to this result is the correct coupling of both procedures. The ANN only processes information in the range (0,1) or is normalized, and the vast majority of the indicators of the GLCM method from its origin are in this range, so the transformation is not necessary; this does not mean that the process of normalization is incorrect; however, it is still a transformation of the original nature of the data that represents a state of the steel in the metallographic image. By achieving an average accuracy of 98% with both digital image processing methods, the multilayer perceptron ANN was demonstrated to be a robust classification model for recognizing intergranular corrosion patterns in AISI 304 stainless steel.
Using the multilayer perceptron ANN as a classification model, according to the sensitivity and specificity indicators, the GLCM characterization method shows a minimal improvement compared to the phase congruency method. However, computationally speaking, an important indicator is the convergence time; in this sense, the phase congruency technique presents a shorter duration since an artificial neural network architecture with fewer neurons in the hidden layer is required. The indicator of interest to maximize is the accuracy; both methods provide, on average, a 98% accuracy in the task of the recognition of metallographic patterns present in stainless steel affected by temperature.
The methodology presented recommends the phase congruence method, since, despite characterizing the images with larger vectors compared to the GLCM method, an adequate accuracy for the recognition task is achieved in less time; this is because it provides a greater degree of detail in the description of the microstructure of stainless steel, facilitating the work of the ANN and giving way to the recognition of the intergranular corrosion present in AISI 304 stainless steel by integrating the multilayer perceptron ANN and digital processing of the metallographic images.
An important opportunity to extend the research related to corrosion pattern recognition in stainless steels is to deepen and extend digital image processing techniques using invariant moment characterization or histograms. As for classification tools, experimenting with Bayesian or recurrent artificial neural networks will be the next step to define the recognition phase.

5. Conclusions

The application of the methodology proposed in this research demonstrates that the task of the classification and recognition of the damage generated in stainless steels affected by temperature was achieved efficiently by identifying the states of the material: no intergranular corrosion, no presence of intergranular corrosion, and no precipitation of the chromium carbides. The methodology is composed of the integration of digital metallographic image processing and a multilayer perceptron artificial neural network. The results obtained demonstrate that the methodology could be used for the analysis of metallographic images that need to be examined to verify the state of stainless steel affected by temperature without the need of experts in the area, which will allow for the closer monitoring of the material in operation. The importance of the proposed methodology lies in the generation of a procedure capable of replacing the analysis operation performed by an expert in the thermoelectric plant in an efficient way that identifies any intergranular corrosion patterns in AISI 304 stainless steel through visualizing the microstructure.
It is important to remember that the maintenance plan in a thermoelectric plant involves the supervision of structures and mechanisms involved in the power generation process. With the development of the methodology presented, it is possible to have a diagnosis within reach that is related to the recommendation of the replacement or continuity of the devices used in thermoelectric plants that are made of AISI 304 stainless steel. The results obtained demonstrate the feasibility of a recommendation for the use for each of these devices, which prevents the incursion of unexpected corrective maintenance that generates costs and delays the energy generation process, which translates into higher productivity.
The presented methodology could extend to any industrial situation that requires one to classify some kind of pattern or defect reflected in images, and where it is intended to analyze these images in terms of their texture or contrast, to corroborate and even replace an expert in the area with an artificial intelligence tool.
In this study, in an industrial case, the description of a methodology to process, analyze, and execute the task of the automatic recognition of intergranular corrosion present in stainless steel AISI 304 was demonstrated using the methods of digital image processing phase congruency and a matrix GLCM integrated into a multilayer perceptron artificial neural network with a pattern recognition approach.

Author Contributions

Conceptualization, E.A.R.-S.; methodology, E.A.R.-S. and S.H.-G.; validation, A.J.R.-L.; formal analysis, E.A.R.-S., Y.V.P.-P. and A.J.R.-L.; investigation, A.J.R.-L., Y.V.P.-P. and E.A.R.-S.; writing—original draft preparation, J.A.J.-G., O.C.-D. and S.H.-G.; writing—review and editing, Y.V.P.-P., O.C.-D. and E.A.R.-S. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The original contributions presented in the study are included in the article, further inquiries can be directed to the corresponding author/s.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Cheng, L.; Zhang, L.; Ren, Y. Wettability between 304 stainless steel and refractory materials. J. Mater. Res. Technol. 2000, 9, 5784–5793. [Google Scholar] [CrossRef]
  2. Andersen, P.J. Stainless steels. In Biomaterials Science, 4th ed.; Academic Press: Cambridge, MA, USA, 2000; pp. 249–255. [Google Scholar] [CrossRef]
  3. Cao, B.; Wu, C.; Wang, L.; Zhang, S.; Zhang, C.; Sun, X. Effect of residual stress and phase constituents on corrosion-cavitation erosion behavior of 304 stainless steel by ISO-material manufacturing of laser surface melting. J. Mater. Res. Technol. 2023, 26, 6532–6551. [Google Scholar] [CrossRef]
  4. Bhadeshia, H. Stainless steel. In Steels: Microstructure and Properties, 4th ed.; Butterworth-Heinemann: Oxford, UK, 2017; pp. 343–376. [Google Scholar] [CrossRef]
  5. Singh, R. Stainless steels. In Applied Welding Engineering, 2nd ed.; Butterworth-Heinemann: Oxford, UK, 2016. [Google Scholar] [CrossRef]
  6. Tsuge, S. Recent advances in stainless steel. In Encyclopedia of Materials: Metals and Alloys; Elsevier: Amsterdam, The Netherlands, 2022; pp. 200–207. [Google Scholar] [CrossRef]
  7. Ferreira, A.; Giraldi, G. Convolutional Neural Network Approaches to Granite tiles Classification. Expert Syst. Appl. 2017, 84, 1–11. [Google Scholar] [CrossRef]
  8. Bouhamed, S.; Chakroun, M.; Kallel, I.; Derbel, H. Haralick feature selection for material rigidity recognition using ultrasound echo. In Proceedings of the 4th International Conference on Advanced Technologies for Signal and Image Processing (ATSIP), Sousse, Tunisia, 21–24 March 2018; pp. 1–6. [Google Scholar] [CrossRef]
  9. Kanumuri, L.; Srishuka, M.; Gupta, A.; Singh, S. Application of Support vector regression on mechanical properties of austenitic stainless steel 304 at elevated temperatures. Mater. Today Proc. 2015, 2, 1479–1486. [Google Scholar] [CrossRef]
  10. Yetim, A.; Codur, M.; Yazici, M. Using of artificial neural network for the prediction of tribological properties of plasma nitrided 316L stainless steel. Mater. Lett. 2015, 158, 170–173. [Google Scholar] [CrossRef]
  11. Desu, R.K.; Hansoge, N.; Balu, A.; Gupta, A.; Singh, S. Mechanical properties of Austenitic Stainless Steel 304L and 316L at elevated temperatures. J. Mater. Res. Technol. 2016, 5, 13–20. [Google Scholar] [CrossRef]
  12. Lakshmi, A.; Rao, C.; Srikanth, M.; Faisal, V.; Fayaz, K.; Puspalatha, K.; Singh, S. Prediction of mechanical properties of ASS 304 in superplastic region using artificial neural networks. Mater. Today Proc. 2018, 5, 3704–3712. [Google Scholar] [CrossRef]
  13. Gupta, M.; Korkmaz, M.; Shibi, C.; Ross, N.; Singh, G.; Demirsöz, R.; Jamil, M.; Królczyk, G. Tribological characteristics of additively manufactured 316 stainless steels against 100 cr6 alloy using deep learning. Tribol. Int. 2023, 188, 108893. [Google Scholar] [CrossRef]
  14. Mohamed, Y.; Shehata, H.; Abdellatif, M.; Awad, T. Steel crack depth estimation based on 2D images using artificial neural networks. Alex. Eng. J. 2019, 58, 1167–1174. [Google Scholar] [CrossRef]
  15. Ai, L.; Bayat, M.; Ziehl, P. Localizing damage on stainless steel structures using acoustic emission signals and weighted ensemble regression-based convolutional neural network. Meas. J. Int. Meas. Confed. 2023, 211, 112659. [Google Scholar] [CrossRef]
  16. Prasad, G.; Vijay, G.; Kamath, R. Comparative study on classification of machined surfaces using ML techniques applied to GLCM based image features. Mater. Today Proc. 2022, 62, 1440–1445. [Google Scholar] [CrossRef]
  17. Gapsari, F.; Darmadi, D.B.; Setyarini, P.H.; Wijaya, H.; Madurani, K.A.; Juliano, H.; Sulaiman, A.M.; Hidayatullah, S.; Tanji, A.; Hermawan, H. Analysis of corrosion inhibition of Kleinhovia hospita plant extract aided by quantification of hydrogen evolution using a GLCM/SVM method. Int. J. Hydrogen Energy 2023, 48, 15392–15405. [Google Scholar] [CrossRef]
  18. Darnton, A.; Ruzzene, M. Phase Congruency for damage mapping with guided wavefields. NDT E Int. 2017, 92, 10–21. [Google Scholar] [CrossRef]
  19. Sommer, N.; Lee, S.; Stredak, F.; Wolf, C.; Suckau, A.; Vollmer, M.; Shao, S.; Niendorf, T.; Shamsaei, N.; Böhm, S. Dynamic tensile deformation behavior of AISI 316L stainless steel fabricated by laser-beam directed energy deposition. J. Mater. Res. Technol. 2023, 27, 5896–5909. [Google Scholar] [CrossRef]
  20. Küllaç, M.T.; Çuvalcı, O. Correlation statistics of a Fourier transform feature with flank wear on different sections of turned surface images for real time monitoring applications. Measurement 2023, 207, 112399. [Google Scholar] [CrossRef]
  21. Guerrero, M.C.; Parada, J.S.; Espitia, H.E. EEG signal analysis using classification techniques: Logistic regression, artificial neural networks, support vector machines, and convolutional neural networks. Heliyon 2021, 7, e07258. [Google Scholar] [CrossRef]
  22. Bennett-Lenane, H.; Griffin, B.T.; O’Shea, J.P. Machine learning methods for prediction of food effects on bioavailability: A comparison of support vector machines and artificial neural networks. Eur. J. Pharm. Sci. 2022, 168, 106018. [Google Scholar] [CrossRef]
  23. Mikołajczyk, T.; Nowicki, K.; Kłodowski, A.; Pimenov, D. Neural network approach for automatic image analysis of cutting-edge wear. Mech. Syst. Signal Process. 2017, 88, 100–110. [Google Scholar] [CrossRef]
  24. Blackledge, J. Digital Image Processing: Mathematical and Computational Methods; Horwood Publishing: Chichester, UK, 2005. [Google Scholar]
  25. Kovesi, P. Image features from phase congruency. Videre J. Comput. Vis. Res. 1999, 1, 1–26. [Google Scholar]
  26. Zhang, F.; Zhang, B.; Zhang, R.; Zhang, X. SPCM: Image quality assessment based on symmetry phase congruency. Appl. Soft Comput. 2020, 87, 105987. [Google Scholar] [CrossRef]
  27. Li, C.; Huang, Y.; Zhu, L. Color texture image retrieval based on Gaussian copula models of Gabor wavelets. Pattern Recognit. 2017, 64, 118–129. [Google Scholar] [CrossRef]
  28. Bounneche, M.; Boubchir, L.; Bouridane, A.; Nekhoul, B.; Ali-Chérif, A. Multi-spectral palmprint recognition based on oriented multiscale log-Gabor filters. Neurocomputing 2016, 205, 274–286. [Google Scholar] [CrossRef]
  29. Nabizadeh, N.; Kubat, M. Brain tumors detection and segmentation in MR images: Gabor wavelet vs. statistical features. Comput. Electr. Eng. Int. J. 2015, 45, 286–301. [Google Scholar] [CrossRef]
  30. Kamaruzaman, F.; Shafie, A. Recognizing faces with normalized local Gabor features and Spiking Neuron Patterns. Pattern Recognit. 2016, 53, 102–115. [Google Scholar] [CrossRef]
  31. Gottwald, S. The VNR Concise Encyclopedia of Mathematics, 2nd ed.; Gellert, W., Hellwich, M., Kästner, H., Küstner, H., Eds.; Springer: New York, NY, USA, 2016. [Google Scholar] [CrossRef]
  32. Jiménez, E.; Navarro, D.; Cisneros, M. Procesamiento Digital de Imágenes con MATLAB y Simulación; RA MA Editorial Y Publicaciones SA: Madrid, Spain, 2010. [Google Scholar]
  33. Oprisescu, S.; Coliban, R.; Ivanovici, M. Polarization-based optical characterization for color texture analysis and segmentation. Pattern Recognit. Lett. 2022, 163, 74–81. [Google Scholar] [CrossRef]
  34. Siéler, L.; Tanougast, C.; Bouridane, A. A scalable and embedded FPGA architecture for efficient computation of grey level co-occurrence matrices and Haralick textures features. Microprocess. Microsyst. 2010, 34, 14–24. [Google Scholar] [CrossRef]
  35. Alanis, A.; Arana-Daniel, N.; Lopez-Franco, C. Artificial Neural Networks for Engineering Applications; Academic Press: Cambridge, MA, USA, 2019. [Google Scholar]
  36. Elsheikh, A.; Elaziz, M. Artificial Neural Networks for Renewable Energy Systems and Real-World Applications; Academic Press: Cambridge, MA, USA, 2022. [Google Scholar]
  37. Cartwright, H. Artificial Neural Networks, 3rd ed.; Springer: Berlin/Heidelberg, Germany, 2020. [Google Scholar]
  38. Erkaymaz, O.; Ozer, M.; Perc, M. Performance of small-world feedforward neural networks for the diagnosis of diabetes. Appl. Math. Comput. 2017, 311, 22–28. [Google Scholar] [CrossRef]
  39. Vinodha, K.; Gopi, E. Analyzing the performance improvement of hierarchical binary classifiers using ACO through Monte Carlo simulation and multiclass engine vibration data. Expert Syst. Appl. 2024, 238, 121730. [Google Scholar] [CrossRef]
Figure 1. Microstructures of AISI 304 stainless steel. (a) No intergranular corrosion, working temperature approx. 500 °C. (b) Presence of intergranular corrosion, working temperature approx. 700 °C. (c) Precipitation of chromium carbides, working temperature approx. 850 °C.
Figure 1. Microstructures of AISI 304 stainless steel. (a) No intergranular corrosion, working temperature approx. 500 °C. (b) Presence of intergranular corrosion, working temperature approx. 700 °C. (c) Precipitation of chromium carbides, working temperature approx. 850 °C.
Applsci 14 05077 g001
Figure 2. Polar diagram of the components of Fourier series at a point in a signal.
Figure 2. Polar diagram of the components of Fourier series at a point in a signal.
Applsci 14 05077 g002
Figure 3. Digital processing of the metallographic image to apply the phase congruency method: (a) original metallographic pattern and (b) thresholding.
Figure 3. Digital processing of the metallographic image to apply the phase congruency method: (a) original metallographic pattern and (b) thresholding.
Applsci 14 05077 g003
Figure 4. Cost value versus validation error. (a) Phase congruence method. (b) GLCM method.
Figure 4. Cost value versus validation error. (a) Phase congruence method. (b) GLCM method.
Applsci 14 05077 g004
Table 1. AISI 304 stainless steel composition. ASTM A240.
Table 1. AISI 304 stainless steel composition. ASTM A240.
CMnSPSiCrNiN
0.072.00.030.0450.7517.5–19.58.0–10.50.10
Table 2. Vectors generated by the phase congruence method.
Table 2. Vectors generated by the phase congruence method.
ComponentMetallographic Patterns Generated in the Microstructure of AISI 304 Stainless Steel
NICPICPCC
15.31594.99380.9298
27.92659.75081.6579
38.565514.30552.7167
47.503013.47164.8411
55.44498.82307.2431
65.68874.98940.9540
78.30489.58801.6770
88.801214.10522.7884
97.635213.42665.0512
105.34388.90497.5339
116.11574.98000.9552
128.80289.57461.6814
139.159514.05072.8174
147.858113.39295.1690
155.58298.85047.7330
166.12664.95640.9377
178.97019.69361.6947
189.481414.27182.8464
198.115113.62355.2423
205.71558.98977.5972
216.11055.14380.9102
228.89579.92531.6098
239.380514.46332.7363
248.053513.86085.0907
255.69369.17597.5296
265.67205.15100.9024
278.32029.97271.5837
288.804514.54272.6544
297.646613.75904.8481
305.63999.00817.2917
Table 4. Training and testing matrix.
Table 4. Training and testing matrix.
Phase Congruence MethodGLCM Method
TrainingTestTrainingTest
Images411127411127
Metallographic patternDimensionDimension
NIC145 × 3045 × 30145 × 1445 × 14
PCI167 × 3050 × 30167 × 1450 × 14
PCC99 × 3032 × 3099 × 1432 × 14
Table 5. Topologies of artificial neural networks developed for the training phase.
Table 5. Topologies of artificial neural networks developed for the training phase.
Topologies123456
Number of neurons 545455555656
Learning rate0.010.0050.010.0050.010.005
Allowed error1 × 10−41 × 10−51 × 10−41 × 10−51 × 10−41 × 10−5
Number of iterations129324201457163210502130
MSE0.0910.1060.0950.0880.0950.103
Table 6. Selected topology.
Table 6. Selected topology.
ParameterSpecification
Neurons hidden layer55
Activation functionSigmoidal tangent
Learning rate0.005
Allowed error1 × 10−5
Number of iterations1632
MSE0.088
Convergence time00:01:13
Table 7. Topologies of artificial neural networks.
Table 7. Topologies of artificial neural networks.
Topologies123456
Number of neurons 80809090100100
Learning rate0.0050.010.0050.010.0050.01
Allowed error1 × 10−41 × 10−41 × 10−41 × 10−41 × 10−41 × 10−4
Number of iterations15,12522,92118,45018,41914,34914,413
MSE0.01920.12680.03230.02510.10640.0219
Table 8. Selected topology.
Table 8. Selected topology.
ParameterSpecification
Neurons hidden layer100
Activation functionSigmoidal tangent
Learning rate0.01
Allowed error1 × 10−4
Number of iterations14,413
MSE0.0219
Convergence time00:07:06
Table 3. Vectors generated using the gray-level co-occurrence matrix method (GLCM).
Table 3. Vectors generated using the gray-level co-occurrence matrix method (GLCM).
ComponentMetallographic Patterns Generated in the Microstructure of AISI 304 Stainless Steel
NICPCIPCC
10.68920.83410.3379
20.15680.03770.1270
30.75840.90590.9525
433.920334.648739.3598
50.94620.98180.9406
611.623611.769912.3639
7119.3224129.0370125.8385
80.75250.44401.3812
91.25120.68072.1270
100.14350.04410.1126
110.36990.15800.3759
12−0.4078−0.6376−0.6365
130.68790.68640.9288
140.76450.90830.9772
Table 9. Performance indicators using the phase congruence method.
Table 9. Performance indicators using the phase congruence method.
SensitivitySpecificityAccuracy
No intergranular corrosion (NIC)0.861.000.97
Presence of intergranular corrosion (PCI)1.001.001.00
Precipitation of chromium carbides (PCC)1.000.950.97
Table 10. Performance indicators using the GLCM method.
Table 10. Performance indicators using the GLCM method.
SensitivitySpecificityAccuracy
No intergranular corrosion (NIC)0.931.000.99
Presence of intergranular corrosion (PCI)1.000.960.97
Precipitation of chromium carbides (PCC)0.971.000.99
Table 11. Performance indicators using the phase congruence method.
Table 11. Performance indicators using the phase congruence method.
SensitivitySpecificityAccuracy
No intergranular corrosion (NIC)0.950.940.96
Presence of intergranular corrosion (PCI)0.940.920.95
Precipitation of chromium carbides (PCC)0.980.990.98
Table 12. Performance indicators using the GLCM method.
Table 12. Performance indicators using the GLCM method.
SensitivitySpecificityAccuracy
No intergranular corrosion (NIC)0.900.870.88
Presence of intergranular corrosion (PCI)0.920.950.95
Precipitation of chromium carbides (PCC)0.940.980.92
Table 13. Fuzzy ARTMAP artificial neural network architectures.
Table 13. Fuzzy ARTMAP artificial neural network architectures.
ParametersPhase CongruenceGLCM Matrix
Input vector dimension[30 × 1][14 × 1]
Output vector dimension11
Base Vigilance ( ρ a ) 0.10.2
Vigilance ( ρ b ) 0.80.9
Rho map ( ρ m a p ) .0.90.7
Table 14. Performance indicators using the phase congruence method.
Table 14. Performance indicators using the phase congruence method.
SensitivitySpecificityAccuracy
No intergranular corrosion (NIC)0.930.930.92
Presence of intergranular corrosion (PCI)0.910.840.89
Precipitation of chromium carbides (PCC)0.950.960.93
Table 15. Performance indicators using the GLCM method.
Table 15. Performance indicators using the GLCM method.
SensitivitySpecificityAccuracy
No intergranular corrosion (NIC)1.000.960.97
Presence of intergranular corrosion (PCI)1.000.910.98
Precipitation of chromium carbides (PCC)0.931.000.98
Table 16. Average accuracy by classification model.
Table 16. Average accuracy by classification model.
Classification ModelPhase CongruenceGLCM Matrix
Multilayer perceptron ANN98%98%
Vector support machine96%92%
Fuzzy ARTMAP ANN91%98%
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Ruelas-Santoyo, E.A.; Ríos-Lira, A.J.; Pantoja-Pacheco, Y.V.; Jiménez-García, J.A.; Hernández-González, S.; Cruz-Domínguez, O. Recognition of Intergranular Corrosion in AISI 304 Stainless Steel by Integrating a Multilayer Perceptron Artificial Neural Network and Metallographic Image Processing. Appl. Sci. 2024, 14, 5077. https://doi.org/10.3390/app14125077

AMA Style

Ruelas-Santoyo EA, Ríos-Lira AJ, Pantoja-Pacheco YV, Jiménez-García JA, Hernández-González S, Cruz-Domínguez O. Recognition of Intergranular Corrosion in AISI 304 Stainless Steel by Integrating a Multilayer Perceptron Artificial Neural Network and Metallographic Image Processing. Applied Sciences. 2024; 14(12):5077. https://doi.org/10.3390/app14125077

Chicago/Turabian Style

Ruelas-Santoyo, Edgar Augusto, Armando Javier Ríos-Lira, Yaquelin Verenice Pantoja-Pacheco, José Alfredo Jiménez-García, Salvador Hernández-González, and Oscar Cruz-Domínguez. 2024. "Recognition of Intergranular Corrosion in AISI 304 Stainless Steel by Integrating a Multilayer Perceptron Artificial Neural Network and Metallographic Image Processing" Applied Sciences 14, no. 12: 5077. https://doi.org/10.3390/app14125077

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop