# ECT Image Recognition of Pipe Plugging Flow Patterns Based on Broad Learning System in Mining Filling

Authors: Xuebin Qin; ChenChen Ji; Yutong Shen; Pai Wang; Mingqiao Li; Junle Zhang
Journal: Advances in Civil Engineering
 (2021)

---

## Abstract

The process of mining filling, when the slurry is transported to the goaf by the filling pipeline, is very important to find the location and size of the caking in the filling pipeline in time for the safe and stable operation of the mine filling pipeline. It is an important research work to detect different flow patterns after two-dimensional section reconstruction in closed filling pipeline based on ECT (electrical capacitance tomography) visualization method. Slurry flow in pipeline is regarded as a two-phase flow, and the multishape distribution was reconstructed into images by ECT and intelligently recognized by broad learning system (BLS) algorithm. BLS is a feedforward neural network with few optimization parameters and fast training speed. In this paper, three features of two-phase sample images, the number of regional blocks, the roundness of regional blocks, and barycenter of regional blocks, are combined with network structure of BLS to recognize different flow patterns. Through the simulation, the recognition accuracy of two-phase fillback image is more than 99%. This conclusion indicates the effectiveness of BLS to predict different two-phase flow patterns; it also provides a new solution for the pattern recognition of the flow pattern in the mining filling pipeline.


---

## Body

## 1. Introduction

In the filling pipeline from the surface to the goaf, due to the unstable slurry flow pattern, there is a large density difference between the upper and lower parts of the pipe. The transport velocity is too low to make the coarse slurry deposit at the bottom of the pipe, which can easily cause serious blockage in the junction section between the horizontal pipeline and the vertical (or inclined) pipeline [1, 2]. ECT visualization and BLS image recognition technology are helpful for rapid detection and slurry location in pipe blockage.As slurry materials and proportions, strength and other factors lead to different flow conditions [3]; ECT visualization of pipeline cross section focuses on the permittivity of the medium in backfill pipeline. A possible option is to dynamically observe the internal conditions of the pipeline in the area where the blockage is most likely to occur a priori. ECT is a visualization technique for two-dimensional or three-dimensional image reconstruction of limited mediums or mixtures in a closed container [4]. ECT technology has the advantages of high accuracy and low cost. Its hardware mainly includes capacitive sensor, acquisition circuit, and computer. The capacitive sensor may be composed of 8 or 12 or 16 electrodes, in which each electrode travels around the closed container at an equal distance and is attached to the outer wall of backfill pipeline. When the ECT system is working, a set of independent capacitance data is collected through different excitation orders of electrodes to the computer for image reconstruction. From this set of independent capacitance data, the permittivity distribution of the slurry flow is inverted by image reconstruction algorithm. ECT technology has great potential for applications such as multiphase flow detection [5], combustion imaging [6], and fluidized bed solid particle monitoring [7]. In this paper, ECT technology is used to detect the insulation of mining fillings.The classic image reconstruction algorithms of ECT technology include linear back projection (LBP) [8], Landweber [9], and Tikhonov regularization [10]. These algorithms have advantages and disadvantages. For example, using LBP algorithm has fast imaging speed but low accuracy, while the result of using the Landweber algorithm is that the image quality depends on parameters. Accuracy and efficiency have become the main obstacle for the field application of ECT technology, and it is also the main research direction of relevant scientific researchers. Wang Pai used least squares-support vector machines (LS-SVM) method to predict the capacitance error caused by the soft field, the fitness function of annealing particle swarm optimization (APSO) algorithm is constructed according to the capacitance error, and the image reconstruction with high precision is realized by searching for the best resolution [11]. Zhang proposed the ECT image reconstruction algorithm based on the compressed sensing theory and used the discrete Fourier transform basis to sparse the original image gray signal, and l1−norm regularization and primal-dual interior point method were used to reconstruct the image [12]. ECT is becoming more mature with the advent of many fast and accurate reconstruction algorithms.ECT algorithms include forward and inverse problem solving. The forward problem refers to the establishment of mathematical model based on the distribution of permittivity in sensitive field and boundary conditions of sensitive field so as to obtain the mutual capacitance between electrode pairs. The inverse problem is to reconstruct the distribution of permittivity in sensitive field by the sensitivity of the field and the measured capacitance data and take the image as the final representation. However, the unprocessed reconstructed images cannot meet the requirements of the site. In order to achieve intelligent and integrated operation flow, ECT technology still needs various postprocessing, among which flow pattern recognition is the basic requirement. AbdeelJ Roman extracted the features of the space average permittivity and the position of the center of mass and combined them and used neural network to automatically identify the liquid-vapor two-phase flow patterns of refrigerant in horizontal tubes. The final experiment showed that the classification results of the nine flow patterns reached an average accuracy of 98.1% [13]. By using long short-term memory (LSTM) method, which can overcome the gradient disappearance or escalation, Rafael Johansen provided a successful application scenario for the flow pattern identification of annular, plug, slug, stratified, and wavy flow regimes [14]. Image reconstruction of two-phase flow and flow pattern identification as a link in the field assembly line, their training speed, and classification accuracy has important influence on the subsequent operation.In this paper, the ECT system is used to reconstruct the two-dimensional cross-sectional image inside the mining filling pipeline, and the broad learning system (BLS) provides a new idea for the flow pattern recognition inside the filling pipeline [15].BLS is a novel neural network framework, which has the advantages of fewer parameters to be optimized and shorter training time compared with deep structural neural network. The simple BLS network is suitable for processing small sample sets of low dimensions and establishing online learning model efficiently. BLS network structure is flexible, and it can be used in combination with other networks. For example, the features extracted by convolutional neural network (CNN) are combined with the output of BLS feature layer to enhance the ability of network prediction or classification under the premise of optimal training time. In this paper, the idea of combining features is adopted to realize flow pattern identification.This paper is organized as follows: in Section2, the basic principles of BLS theory are introduced. In Section 3, three artificial feature extraction methods are described. In Section 4, artificial feature extraction method and BLS are combined to enhance the ability of model recognition. The reconstruction results are analyzed and evaluated through simulation in Section 5. Concluding remarks are presented in Section 6.


## 2. BLS Theory

The predecessor of BLS is random vector functional-link neural network [16] (RVFLNN), which essentially belongs to feedforward neural network (FNN). BLS network consists of mapping layer, enhancement layer, and output layer. A BLS network is shown in Figure 1. First, input data is mapped to “feature nodes” through sparse weight mapping, and these “feature nodes” form the mapping layer. Second, the output of the mapping layer serves as the input of the enhancement layer and is activated by the “enhancement node.” Finally, the output of the mapping layer and the output of the enhancement layer are combined as the input vector of the output network, and the corresponding weight is calculated by the Moore−Penrose generalized inverse.Figure 1
Network model of BLS.The main network relations of each layer are as follows:(1)mapping layer:Z=ϕXWe+βe,enhancement layer:H=ξZWh+βh,output layer:Y=Z|HWm,where X is the input data; Y is known label data; ϕ· is the identity mapping function; ξ· is the tansig activation function (tansigx=2/1+e−2x−1); We, Wh, and Wm are weights of mapping layer, enhancement layer, and output layer, respectively; βe and βh are biases; Z and H are the outputs of the mapping layer and the enhancement layer, respectively.Set the input data toXm×n (m is the number of samples in the training set and n is the number of pixels). A column vector whose entries are all constants adds to the end of Xm×n and the new matrix is written as Xm×n+1, so equation (1) can be abbreviated as(2)Z=ϕXWee,where Wee is a randomly generated n+1×N1 weight matrix (N1 is the number of “feature nodes” in the mapping layer). It is a necessary processing to sparse Wee to effectively reduce the linear correlation of new “feature nodes.”The outputZm×N1 of the mapping layer is the input to the enhancement layer. Similarly, equation (1) can be abbreviated as(3)H=ξZWhh,where Whh is the randomly generated weight matrix of N1+1×N2 (N2 is the number of “enhancement nodes” of the enhancement layer). The orthonormal basis of Whh was used to improve the feature extraction ability of the enhancement layer. Z|Hm×N1+N2 is obtained by combining the output features of the mapping layer and the enhancement layer. AA=Z|Hm×N1+N2 directly establishes the mapping equation (1) with label data Y. In order to solve the weight Wm of the output layer, the optimization of equation (1) is established as(4)argminWmY−AWm22+λWm22,where λ is a parameter close to the l2−norm and regularization method is adopted to prevent model overfitting.To solve for weightWm is to solve for the Moore−Penrose generalized inverse.(5)Wm=ATA+λI−1ATY.The BLS network model is mainly composed ofW1 of the mapping layer, W2 of the enhancement layer, and W3 of the output layer. Since there is no need for backpropagation during training, the training time is very short. In addition, BLS can provide incremental learning similar to migration learning when dealing with big data, including incremental enhancement node, incremental feature node, and incremental input data. Incremental learning avoids data retraining and greatly saves training time.


## 3. Feature Extraction

In this paper, the BLS network is used to identify the flow pattern inside the mining filling pipeline, and the characteristics of the filling body are added to the branches of the original BLS network to further improve the recognition accuracy. These are three different functions and their extraction methods.


### 3.1. Number of Regional Blocks

Obtaining the number of area blocks is an important index to judge the pipeline blockage. Based on OpenCV library, the binary image of two-phase flow is used to obtain the number of blocks in the pipeline.


### 3.2. Circularity of Regional Block

Block shape complexity can be described by shape coefficient. For example, the circularity coefficient of stratified flow is small, while that of bubble flow is large.(6)ff=4π⋅SC2,where S represents the area of the block and C represents the perimeter of the block.


### 3.3. Barycenter of Regional Block

Barycenter reflects the location information of the region block. For example, pixels barycenter of stratified flow is near the bottom of the pipe, and pixels barycenter of circulation is generally near the center. Barycenter position of the block is calculated by means of moment based binary image of two-phase flow section [17].(7)M00=∑I∑Jvi,j,M10=∑I∑Ji⋅vi,j,M01=∑I∑Jj⋅vi,j,xc=M10M00,yc=M01M00,where M00 is the area of the white area of the image block. vi,j represents the pixel value of the white region on the binary image, where i,j is the coordinate on the image; M10 and M01, respectively, represent the accumulation of coordinate values in the x direction and y direction of the white area on the binary image. xc,yc are the barycentric coordinates.


## 3.1. Number of Regional Blocks

Obtaining the number of area blocks is an important index to judge the pipeline blockage. Based on OpenCV library, the binary image of two-phase flow is used to obtain the number of blocks in the pipeline.


## 3.2. Circularity of Regional Block

Block shape complexity can be described by shape coefficient. For example, the circularity coefficient of stratified flow is small, while that of bubble flow is large.(6)ff=4π⋅SC2,where S represents the area of the block and C represents the perimeter of the block.


## 3.3. Barycenter of Regional Block

Barycenter reflects the location information of the region block. For example, pixels barycenter of stratified flow is near the bottom of the pipe, and pixels barycenter of circulation is generally near the center. Barycenter position of the block is calculated by means of moment based binary image of two-phase flow section [17].(7)M00=∑I∑Jvi,j,M10=∑I∑Ji⋅vi,j,M01=∑I∑Jj⋅vi,j,xc=M10M00,yc=M01M00,where M00 is the area of the white area of the image block. vi,j represents the pixel value of the white region on the binary image, where i,j is the coordinate on the image; M10 and M01, respectively, represent the accumulation of coordinate values in the x direction and y direction of the white area on the binary image. xc,yc are the barycentric coordinates.


## 4. Proposed Method

For the three features extracted from sample sets, the number of regional blocks, circularity, and the barycentric coordinates are represented byP1,P2,P3, respectively. After combining them, P=P1P2P3 is obtained, where P1,P2,P3 is the matrix of m×1, m×q, and m×2q, respectively,m is the number of sample sets, and the value of q is equal to the number of categories to be classified. The number of categories in this article is 6; then q = 6 is set.IfPi=P1iP2iP3i calculated from the ith sample image, then the calculated value of the circular degree corresponding to the sample is placed in the front position of matrix P2i, and the remaining position is filled with 0; the barycentric coordinate is placed in the front position of matrix P3i, and the remaining position is filled with 0.As shown in Figure2, the BLS mapping layer is augmented with “feature node,” and the output of the mapping layer is combined with the feature matrixPto form a new matrix Z|P. After the normalization of P, the input of BLS’s enhancement layer is also Z|P:(8)H∗=ξZ|PWhh,Y=Z|P|H∗Wm=A∗Wm,where H∗ is the output of the enhancement layer; A∗=Z|P|H∗, representing the input to the output layer.Figure 2
Network model of BLS.Additional features are added to the BLS architecture to ensure the accuracy of identification; and because the amount of data for additional features is small, it hardly affects the training speed.


## 5. Simulation and Experiment

### 5.1. The Data Set

The data set in this article simulates ECT to reconstruct a two-dimensional cross-sectional image of a mining filling pipeline, and the size of each sample image is64×64 pixels. There are 6 types of flow patterns: single bubble, double bubbles, three bubbles, four bubbles, stratified, and annular flow. The data set includes training set, training set label, test set, and test set label. The training set has a total of 3000 images, including 500 images of different categories. The test set has a total of 500 images, with 100 images for each category. Part of the training set is shown in Figure 3.Figure 3
Presentation of partial sample sets. (a) Single bubble. (b) Two bubbles. (c) Three bubbles. (d) Four bubbles. (e) Stratified. (f) Annular.
(a)(b)(c)(d)(e)(f)After the pixels of the sample image are compressed to32×32 pixels, and row by row into a 1 by 2 row vector 1×1024, the training set is a 3000×1024 matrix and the test set is a 500×1024 matrix.The training set label and the test set label are matrices of3000×6 and 500×6, respectively. The elements of the label matrix are 0 and 1. The row corresponds to different samples and the column corresponds to different categories.


### 5.2. Feature Representation

Based on the feature extraction method proposed in Section4, three features are extracted from the reconstructed binary image by ECT. Figure 4 shows a sample of stratified flow. The image size is 64×64 pixels. The number of regional blocks is 1, the barycenter coordinate is (31,45), and the circularity is 0.5344. It can be seen from this sample that the barycenter of the stratified flow image is downward, and the circularity is small.Figure 4
Feature extraction of ECT reconstructed images. (a) Reconstructed gray-scale image. (b) Reconstructed binary image.
(a)(b)


### 5.3. Simulation Result

In order to verify the influence of additional features on BLS network flow pattern identification, this paper discusses three groups of schemes, namely, BLS network to train data, the combination of BLS networks with individual features to train data, and the combination of BLS networks with three features to train data.


#### 5.3.1. BLS Network Training Results

Adjust the number of feature nodes and enhancement nodes in BLS network, and the training accuracy, test accuracy, and training time are shown in Table1.Table 1
The result of BLS.
Feature nodesEnhancement nodesTraining accuracy (%)Testing accuracy (%)Training time (s)200200099.5766.960.5787200400099.8468.921.3383200600099.8769.982.1988200800099.7669.804.31352001000099.9170.346.65912001200099.6668.569.35965001000099.5370.347.016820001000099.8567.1414.563240001000099.7268.2145.6702As shown in the first row of Table1, the numbers of feature nodes and enhancement nodes were set as 200 and 2000, respectively, and the training accuracy was 99.57% after the training set data was input into the BLS network, and the training time was 0.5787 s; the test accuracy is 66.96% after the test set data was input into BLS network.In Table1, the number of feature nodes was set to 200. With the increase of the number of enhanced nodes, the test accuracy is improved by a small margin. The number of enhancement nodes was fixed at 10000. With the increase of the number of feature nodes, the accuracy of the test set decreases by a small margin. This indicates that the enhancement layer of BLS greatly influences the training results. Since the activation function of BLS enhancement layer is tansig⋅, it has the ability to fit nonlinear functions, which is also the core function of BLS network.The training accuracy of BLS network is close to 100%, but the test accuracy is low, which is a typical overfitting phenomenon. There are two possible reasons for the overfitting phenomenon in BLS network:(1)
The mapping layer is a direct linear transformation system, whose extracted features are not sufficiently expressive or have few extracted features(2)
There are too many parameters in the enhancement layer, which overfits the training set, resulting in poor performance of the model on the test set


#### 5.3.2. Combination of Features

The main reasons for the poor classification results of two-phase flow by single BLS network are the limitations of network architecture and insufficient feature extraction ability. In this section, the additional extracted features, includingP1 (the number of regional blocks), P2 (the circularity of the regional blocks), and P3 (the barycenter coordinates of the regional blocks), are combined with the “feature nodes” of the BLS mapping layer, respectively. The classification results of the two-phase flow by this network are shown in Table 2.Table 2
The result of adding one feature to BLS.
Feature nodesEnhancement nodesTesting accuracy (%)Training time (s)P1P2P3P1P2P3200200076.7397.1398.350.61870.67540.7246200400082.0697.2898.521.15921.26271.3174200600083.3097.4698.762.16412.35414.2512200800083.8497.5998.894.31354.24294.58542001000084.1997.6398.866.22576.24666.33502001200082.9597.3598.499.36989.33219.12785001000080.8297.4198.217.15767.27567.185320001000075.6697.2598.4314.277514.585314.442840001000073.8997.3398.3746.441247.118547.6614As shown in the first row of Table2, 200 feature nodes and 2000 enhancement nodes were set, respectively. When feature nodes of BLS and P1 are combined, the accuracy rate of test set is 76.73% and the training time is 0.6187 s. When P2 is combined with feature nodes, the accuracy of test set is 97.13% and the training time is 0.6754 s. When P3 is combined with feature nodes, the accuracy of test set is 97.13% and the training time is 0.6754 s.Combine the three additional featuresP1, P2, and P3 into P=P1P2P3; three additional features, P1, P2, and P3, are combined into P=P1P2P3, and P is combined with feature nodes of BLS mapping layer. The identification results of the two-phase flow data set are shown in Table 3.Table 3
The result of adding three features to BLS.
Feature nodesEnhancement nodesTraining accuracy (%)Testing accuracy (%)Training time (s)200200099.9899.540.6083200400099.9499.671.2704200600099.9899.762.2515200800099.9599.794.02512001000099.9099.826.09062001200099.9699.659.12255001000099.9999.817.305620001000099.9299.8514.043740001000099.9399.8747.9779As shown in the first row of Table3, the numbers of feature nodes and enhancement nodes were set as 200 and 2000, respectively. The training accuracy was 99.68% and the training time was 0.6083 s after the training data was input into BLS network; the test accuracy is 66.54% when test data was input into BLS network.The results of Table2 show that P1 improves BLS network to some extent, but the effect is not significant; P2 and P3 have significant improvement effect on BLS network and high accuracy of test set. The results of Table 3 show that the test accuracy is close to 100% when P1, P2, and P3 jointly affect the BLS network. The training time of the BLS network with the additional features is similar to that of the single BLS network, which hardly affected the training speed.


## 5.1. The Data Set

The data set in this article simulates ECT to reconstruct a two-dimensional cross-sectional image of a mining filling pipeline, and the size of each sample image is64×64 pixels. There are 6 types of flow patterns: single bubble, double bubbles, three bubbles, four bubbles, stratified, and annular flow. The data set includes training set, training set label, test set, and test set label. The training set has a total of 3000 images, including 500 images of different categories. The test set has a total of 500 images, with 100 images for each category. Part of the training set is shown in Figure 3.Figure 3
Presentation of partial sample sets. (a) Single bubble. (b) Two bubbles. (c) Three bubbles. (d) Four bubbles. (e) Stratified. (f) Annular.
(a)(b)(c)(d)(e)(f)After the pixels of the sample image are compressed to32×32 pixels, and row by row into a 1 by 2 row vector 1×1024, the training set is a 3000×1024 matrix and the test set is a 500×1024 matrix.The training set label and the test set label are matrices of3000×6 and 500×6, respectively. The elements of the label matrix are 0 and 1. The row corresponds to different samples and the column corresponds to different categories.


## 5.2. Feature Representation

Based on the feature extraction method proposed in Section4, three features are extracted from the reconstructed binary image by ECT. Figure 4 shows a sample of stratified flow. The image size is 64×64 pixels. The number of regional blocks is 1, the barycenter coordinate is (31,45), and the circularity is 0.5344. It can be seen from this sample that the barycenter of the stratified flow image is downward, and the circularity is small.Figure 4
Feature extraction of ECT reconstructed images. (a) Reconstructed gray-scale image. (b) Reconstructed binary image.
(a)(b)


## 5.3. Simulation Result

In order to verify the influence of additional features on BLS network flow pattern identification, this paper discusses three groups of schemes, namely, BLS network to train data, the combination of BLS networks with individual features to train data, and the combination of BLS networks with three features to train data.


### 5.3.1. BLS Network Training Results

Adjust the number of feature nodes and enhancement nodes in BLS network, and the training accuracy, test accuracy, and training time are shown in Table1.Table 1
The result of BLS.
Feature nodesEnhancement nodesTraining accuracy (%)Testing accuracy (%)Training time (s)200200099.5766.960.5787200400099.8468.921.3383200600099.8769.982.1988200800099.7669.804.31352001000099.9170.346.65912001200099.6668.569.35965001000099.5370.347.016820001000099.8567.1414.563240001000099.7268.2145.6702As shown in the first row of Table1, the numbers of feature nodes and enhancement nodes were set as 200 and 2000, respectively, and the training accuracy was 99.57% after the training set data was input into the BLS network, and the training time was 0.5787 s; the test accuracy is 66.96% after the test set data was input into BLS network.In Table1, the number of feature nodes was set to 200. With the increase of the number of enhanced nodes, the test accuracy is improved by a small margin. The number of enhancement nodes was fixed at 10000. With the increase of the number of feature nodes, the accuracy of the test set decreases by a small margin. This indicates that the enhancement layer of BLS greatly influences the training results. Since the activation function of BLS enhancement layer is tansig⋅, it has the ability to fit nonlinear functions, which is also the core function of BLS network.The training accuracy of BLS network is close to 100%, but the test accuracy is low, which is a typical overfitting phenomenon. There are two possible reasons for the overfitting phenomenon in BLS network:(1)
The mapping layer is a direct linear transformation system, whose extracted features are not sufficiently expressive or have few extracted features(2)
There are too many parameters in the enhancement layer, which overfits the training set, resulting in poor performance of the model on the test set


### 5.3.2. Combination of Features

The main reasons for the poor classification results of two-phase flow by single BLS network are the limitations of network architecture and insufficient feature extraction ability. In this section, the additional extracted features, includingP1 (the number of regional blocks), P2 (the circularity of the regional blocks), and P3 (the barycenter coordinates of the regional blocks), are combined with the “feature nodes” of the BLS mapping layer, respectively. The classification results of the two-phase flow by this network are shown in Table 2.Table 2
The result of adding one feature to BLS.
Feature nodesEnhancement nodesTesting accuracy (%)Training time (s)P1P2P3P1P2P3200200076.7397.1398.350.61870.67540.7246200400082.0697.2898.521.15921.26271.3174200600083.3097.4698.762.16412.35414.2512200800083.8497.5998.894.31354.24294.58542001000084.1997.6398.866.22576.24666.33502001200082.9597.3598.499.36989.33219.12785001000080.8297.4198.217.15767.27567.185320001000075.6697.2598.4314.277514.585314.442840001000073.8997.3398.3746.441247.118547.6614As shown in the first row of Table2, 200 feature nodes and 2000 enhancement nodes were set, respectively. When feature nodes of BLS and P1 are combined, the accuracy rate of test set is 76.73% and the training time is 0.6187 s. When P2 is combined with feature nodes, the accuracy of test set is 97.13% and the training time is 0.6754 s. When P3 is combined with feature nodes, the accuracy of test set is 97.13% and the training time is 0.6754 s.Combine the three additional featuresP1, P2, and P3 into P=P1P2P3; three additional features, P1, P2, and P3, are combined into P=P1P2P3, and P is combined with feature nodes of BLS mapping layer. The identification results of the two-phase flow data set are shown in Table 3.Table 3
The result of adding three features to BLS.
Feature nodesEnhancement nodesTraining accuracy (%)Testing accuracy (%)Training time (s)200200099.9899.540.6083200400099.9499.671.2704200600099.9899.762.2515200800099.9599.794.02512001000099.9099.826.09062001200099.9699.659.12255001000099.9999.817.305620001000099.9299.8514.043740001000099.9399.8747.9779As shown in the first row of Table3, the numbers of feature nodes and enhancement nodes were set as 200 and 2000, respectively. The training accuracy was 99.68% and the training time was 0.6083 s after the training data was input into BLS network; the test accuracy is 66.54% when test data was input into BLS network.The results of Table2 show that P1 improves BLS network to some extent, but the effect is not significant; P2 and P3 have significant improvement effect on BLS network and high accuracy of test set. The results of Table 3 show that the test accuracy is close to 100% when P1, P2, and P3 jointly affect the BLS network. The training time of the BLS network with the additional features is similar to that of the single BLS network, which hardly affected the training speed.


## 5.3.1. BLS Network Training Results

Adjust the number of feature nodes and enhancement nodes in BLS network, and the training accuracy, test accuracy, and training time are shown in Table1.Table 1
The result of BLS.
Feature nodesEnhancement nodesTraining accuracy (%)Testing accuracy (%)Training time (s)200200099.5766.960.5787200400099.8468.921.3383200600099.8769.982.1988200800099.7669.804.31352001000099.9170.346.65912001200099.6668.569.35965001000099.5370.347.016820001000099.8567.1414.563240001000099.7268.2145.6702As shown in the first row of Table1, the numbers of feature nodes and enhancement nodes were set as 200 and 2000, respectively, and the training accuracy was 99.57% after the training set data was input into the BLS network, and the training time was 0.5787 s; the test accuracy is 66.96% after the test set data was input into BLS network.In Table1, the number of feature nodes was set to 200. With the increase of the number of enhanced nodes, the test accuracy is improved by a small margin. The number of enhancement nodes was fixed at 10000. With the increase of the number of feature nodes, the accuracy of the test set decreases by a small margin. This indicates that the enhancement layer of BLS greatly influences the training results. Since the activation function of BLS enhancement layer is tansig⋅, it has the ability to fit nonlinear functions, which is also the core function of BLS network.The training accuracy of BLS network is close to 100%, but the test accuracy is low, which is a typical overfitting phenomenon. There are two possible reasons for the overfitting phenomenon in BLS network:(1)
The mapping layer is a direct linear transformation system, whose extracted features are not sufficiently expressive or have few extracted features(2)
There are too many parameters in the enhancement layer, which overfits the training set, resulting in poor performance of the model on the test set


## 5.3.2. Combination of Features

The main reasons for the poor classification results of two-phase flow by single BLS network are the limitations of network architecture and insufficient feature extraction ability. In this section, the additional extracted features, includingP1 (the number of regional blocks), P2 (the circularity of the regional blocks), and P3 (the barycenter coordinates of the regional blocks), are combined with the “feature nodes” of the BLS mapping layer, respectively. The classification results of the two-phase flow by this network are shown in Table 2.Table 2
The result of adding one feature to BLS.
Feature nodesEnhancement nodesTesting accuracy (%)Training time (s)P1P2P3P1P2P3200200076.7397.1398.350.61870.67540.7246200400082.0697.2898.521.15921.26271.3174200600083.3097.4698.762.16412.35414.2512200800083.8497.5998.894.31354.24294.58542001000084.1997.6398.866.22576.24666.33502001200082.9597.3598.499.36989.33219.12785001000080.8297.4198.217.15767.27567.185320001000075.6697.2598.4314.277514.585314.442840001000073.8997.3398.3746.441247.118547.6614As shown in the first row of Table2, 200 feature nodes and 2000 enhancement nodes were set, respectively. When feature nodes of BLS and P1 are combined, the accuracy rate of test set is 76.73% and the training time is 0.6187 s. When P2 is combined with feature nodes, the accuracy of test set is 97.13% and the training time is 0.6754 s. When P3 is combined with feature nodes, the accuracy of test set is 97.13% and the training time is 0.6754 s.Combine the three additional featuresP1, P2, and P3 into P=P1P2P3; three additional features, P1, P2, and P3, are combined into P=P1P2P3, and P is combined with feature nodes of BLS mapping layer. The identification results of the two-phase flow data set are shown in Table 3.Table 3
The result of adding three features to BLS.
Feature nodesEnhancement nodesTraining accuracy (%)Testing accuracy (%)Training time (s)200200099.9899.540.6083200400099.9499.671.2704200600099.9899.762.2515200800099.9599.794.02512001000099.9099.826.09062001200099.9699.659.12255001000099.9999.817.305620001000099.9299.8514.043740001000099.9399.8747.9779As shown in the first row of Table3, the numbers of feature nodes and enhancement nodes were set as 200 and 2000, respectively. The training accuracy was 99.68% and the training time was 0.6083 s after the training data was input into BLS network; the test accuracy is 66.54% when test data was input into BLS network.The results of Table2 show that P1 improves BLS network to some extent, but the effect is not significant; P2 and P3 have significant improvement effect on BLS network and high accuracy of test set. The results of Table 3 show that the test accuracy is close to 100% when P1, P2, and P3 jointly affect the BLS network. The training time of the BLS network with the additional features is similar to that of the single BLS network, which hardly affected the training speed.


## 6. Summary and Prospect

In order to better analyze the distribution of blockage material in filling pipeline comprehensively, this paper proposes to adopt ECT method to observe the blockage area visually. According to the permittivity of the plugging material, six shapes of fluids (single-bubble, double-bubble, three-bubble, four-bubble, stratified, and annular flow) in the cross-sectional view are simulated. A fusion method of artificial features and BLS was proposed to recognize the flow pattern of blocked pipes in the gray image reconstructed by ECT. The training set and test set have 3000 and 500 sample images, respectively. In the simulation, the BLS network that can be quickly trained is used to identify the flow pattern of two-phase flow images. Due to the lack of feature extraction ability of BLS network, the simulation results show that the identification effect of test set is poor. In view of this situation, this paper used the method of nonneural network to extract three additional features, which are the number of regional blocks, the circularity of regional blocks, and the barycenter coordinates of regional blocks. Three different features are combined with feature nodes of BLS mapping layer to realize high accuracy test set recognition. In addition, the training time is almost unaffected because of the small amount of data of the additional features selected. Further work is to extract fewer and more prominent features from ECT reconstructed images, thereby improving the accuracy and speed of recognition.



---

*Source: 6677639-2021-04-12.xml*