Unsupervised machine learning for automatic corrosion staging using optical microscope images

Machine Learning


Calculation of local porosity

The method for calculating local porosity is divided into three parts: (i) pore detection, (ii) local porosity estimation, and (iii) pore characterization. The process of characterizing the porosity of the overall thickness of the boiler deposit is shown in Figure 8.

Figure 8: Important steps to characterize local porosity over boiler deposit thickness.
Figure 8

A cartoon photo showing the important steps involved in characterizing local porosity over the thickness of boiler deposits.

k-means36 is an unsupervised clustering algorithm in which cluster (or group) data points are used for pore detection depending on the similarity score (often square error). In contrast to other machine learning methods, unsupervised learning reduces dependency on labeled data, which is extremely rare in corrosion datasets. In certain images, a random cluster of centrosomes is first selected and the cluster centroids are refined in multiple iterations until the convergence criteria are met. As shown in Figure 9a, there are three clusters. (i) waterfront areas, (ii) sediments, and (iii) metal pipes that can group data points. Each pixel (data point) has three intensity values ​​corresponding to the red, green, and blue (RGB) color model. A detailed breakdown of pore detection from optical microscope (OM) images is shown in Figure 9.

Figure 9: Pore detection process in optical microscope (OM) images.
Figure 9

Diagram of key steps involved in pore detection (a) Original OM image (cluster C1: sample support, C2: deposition area and C3: metal tube), (b) segmented images obtained after k-means clustering, (c) tube deposits filled with blobs, (d) tube deposits in pores, and (e) Detected pores. The operations performed at each step were provided accordingly at the bottom of the image.

Consider an OM image made up of each pixel (each pixel) (each pixel)x1,. . . xn) is represented by vector 3×1. The goal was to divide the data into three clusters to minimize the distance within each cluster and maximize the distance between each cluster. For a specific data point xn and Centroid μk Binary variables for KTH clusters gnk 0, 1 indicates whether xn It belongs to cluster k. In other words, the case xn It is assigned to group K. gnk Gets the value of 1. Otherwise, a value of 0 is required. The clustering process is intended to minimize:

$$ j = \mathop {\sum}\limits_ {n = 1}^{n}\mathop {\sum}\limits_ {k = 1}^{3} {g}_{nk} | | {x}_{n} – {\mu}_{k} | {| }^{2} $$

(1)

The algorithm starts by assigning a random value to each cluster centroid. μk. The first is the objective function j Minimizes with regard to equation (1) gnk Maintaining μk Repaired. after that, j It is minimized regarding μk While maintaining the value of gnk Repaired. This two-stage process is repeated until convergence is achieved. After that, blob removed37 Runned to fill small black/white areas of segmented images s(r, c) (Figure 9b) Acquire tube deposition images t(r, c) (Figure 9c). here, (r, c) corresponds to rth Line and cth A row of OM images. This is followed by logic and operations37 To obtain tube deposits in pores tp(r, c)(eq. (2)) As shown in Figure 9d,

$${t}_{p}(r,c)=\left\{\begin{array}{ll}1\quad\,\text{if}s(r,c)=1,\text{and}\,t(r,c)=1\\0

(2)

Finally, pores p(r, c) Extracted using the XOR operation t(r, c) (Figure 9c) and tp(r, c) (Figure 9d): (3). Equation (3) produces an output consisting of pores present in the deposition region, as shown in Figure 9E.

$$p(r,c)=\left\{\begin{array}{ll}1\quad\,{\text{if}} t(r,c)=1,{\text{and}}\,{t}_{p}(r,c)=0\\1\quad\,{\text{if}} t(r,c)=0,{\text{and}}\,{t}_{p}(r,c)=1\\0\quad

(3)

Local porosity estimation processes first generate local porosity maps by aggregating the porosity values ​​within the defined neighborhood for each pore. To calculate the porosity within this neighborhood, m All entries were set to 1 and adopted with a size of 55×55. This corresponds to a physical area of ​​5μm x 5μm. This matrix m Next, it is convolved with a pore image p(r, c) and tube deposit image t(r, c), as shown in the formula. (4), and equation (5), respectively.

$${v}_{v}^{local}(r,c)=\mathop{\sum}\limits_{dr=-a}^{a}\mathop{\sum}\limits_{dc=-b}^{b}m(dr,dc)

(4)

$${v}_{t}^{local}(r,c)=\mathop{\sum}\limits_{dr=-a}^{a}\mathop{\sum}\limits_{dc=-b}^{b}m(dr,dc)

(5)

Edge of p and t There's a proper zero pad. but, \({v}_{v}^{local}(r,c)\) and \({v}_{t}^{local}(r,c)\) Trimmed to maintain the same size p. This step is performed using MATLAB's CONV2D function32. Samples of accumulated pores (\({v}_{v}^{local}(r,c)\)and accumulated tube deposits (\({v}_{t}^{local}(r,c)\)) considered local neighborhoods are shown in Figures 10a, b, respectively. The local porosity map/image (Fig. 10c) is then calculated as

$${\phi}^{local}(r,c) = \left \{\begin {array}{ll}\frac {{v}_{v}^{local}(r,c)}{{v}_{t}^{local}(r,c)\quad \,{\text {if}}\,p(r,c) = 1 \\ 0 \quad. \end {array} \ right. $$

(6)

Finally, the averaged local porosity is calculated as the average of the local porosity map given to the equation. (6). Ref. 33. Similarly, local torture was calculated using the same empirical relationship for torture, but porosity was replaced by mean local porosity.

Figure 10: Local porosity map generation.
Figure 10

Example case (left to right) display (a) accumulated pores (b) accumulated tube deposits, andc) local porosity map obtained using the equation. (6).

Characterizes local porosity along the thickness ϕth(r) of deposits, ϕlocal(r, c) Equation (6) Averaged on each row r Local porous images,

$${\phi}^{th}(r)=\frac {1}{{n}_{c}}\mathop {\sum}\limits_{c=1}^{c}{\phi}^{local}(r,c), $$

(7)

where nc The number of pores of rthrow. The thickest part of the deposits in each sample image is identified, and the sediment width at that location is

$$Thickness = {n}_{p}\times Resolution, $$

(8)

where np Number of pixels and resolutIon The length of pixels expressed in μm. In this case, the pixel resolution is 0.11μm.

Criteria for corrosion stage classification

This study further evaluated the importance of calculated sediment thickness and local porosity. 33. Classification was performed based on porosity. Porosity was initially calculated as the percentage of total pores of total pores. By analyzing experimental studies reported by Abitha et al.33,Each OM image is assigned a UDC stage based on the porosity values ​​listed in Table 1. The same criteria based on porosity values ​​were used for averaged local porosity-based classification. In thickness-based classification, UDC stages are assigned according to the thickness values ​​reported in Table 1.33. Secondly, for the voting method, if the two criteria mentioned above agree, a corresponding stage is assigned to the OM image. If not agreed with each other, a thickness-based standard was used.

Table 1. Criteria for UDC stage classification based on porosity and thickness ratio

The four boilers operating in a total volatile processing (AVT) implementation produced 12 coil pieces each measuring about 1 m long. The OM images used in this study were all obtained from a group of boilers that suffer from UDC and theoretically identically behaved. Typically, boilers have a helical coil design38,39 There is boiling water on the outside and hot process gas inside. For more information on image acquisition and characterization of corrosion stages of UDCs, see Abitha et al.33.



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *