Literature DB >> 35890628

Increasing the Efficiency of a Control System for Detecting the Type and Amount of Oil Product Passing through Pipelines Based on Gamma-Ray Attenuation, Time Domain Feature Extraction, and Artificial Neural Networks.

Abdulilah Mohammad Mayet1, Seyed Mehdi Alizadeh2, Zana Azeez Kakarash3,4, Ali Awadh Al-Qahtani1, Abdullah K Alanazi5, John William Grimaldo Guerrero6, Hala H Alhashimi7, Ehsan Eftekhari-Zadeh8.   

Abstract

Instantaneously determining the type and amount of oil product passing through pipelines is one of the most critical operations in the oil, polymer and petrochemical industries. In this research, a detection system is proposed in order to monitor oil pipelines. The system uses a dual-energy gamma source of americium-241 and barium-133, a test pipe, and a NaI detector. This structure is implemented in the Monte Carlo N Particle (MCNP) code. It should be noted that the results of this simulation have been validated with a laboratory structure. In the test pipe, four oil products-ethylene glycol, crude oil, gasoil, and gasoline-were simulated two by two at various volume percentages. After receiving the signal from the detector, the feature extraction operation was started in order to provide suitable inputs for training the neural network. Four time characteristics-variance, fourth order moment, skewness, and kurtosis-were extracted from the received signal and used as the inputs of four Radial Basis Function (RBF) neural networks. The implemented neural networks were able to predict the volume ratio of each product with great accuracy. High accuracy, low cost in implementing the proposed system, and lower computational cost than previous detection methods are among the advantages of this research that increases its applicability in the oil industry. It is worth mentioning that although the presented system in this study is for monitoring of petroleum fluids, it can be easily used for other types of fluids such as polymeric fluids.

Entities:  

Keywords:  RBF neural network; detection system; dual-energy gamma source; feature extraction; oil and polymeric fluids

Year:  2022        PMID: 35890628      PMCID: PMC9319693          DOI: 10.3390/polym14142852

Source DB:  PubMed          Journal:  Polymers (Basel)        ISSN: 2073-4360            Impact factor:   4.967


1. Introduction

In the oil industry, a pipe is usually used to transport various oil products, which significantly reduces the cost of product transfer operations. When one product is inside the pipe, and the next product is loaded into the pipe, the two products mix at a cross-section, which is called the interface region. Therefore, the implementation of a control system to determine the amount and type of product inside the pipe is very important. Previous researchers have used gamma-ray-based systems as a reliable system for determining the parameters of two-phase [1,2,3] and three-phase [4,5,6] flows. In [1], researchers used wavelet transform as an effective method for feature extraction. The structure consisted of a Cs-137 source, two sodium iodide detectors, and a test pipe. Three homogeneous, stratified, and annular flow regimes at different volume percentages were simulated using the MCNP code. All flow regimes were fully detectable and volumetric percentages were predicted with relatively high accuracy. Nazemi et al. [2] implemented a laboratory structure in which they implemented the three flow regimes of annular, stratified, and bubbly in a test pipe at different volume percentages. Two NaI detectors and a cesium source were placed on either side of the pipe. The received signals were applied to the RBF neural network without any characteristic extraction to determine the volume fraction and type of flow regimes. Roshani et al. used a sodium iodide detector to optimize the structure of the detection system [3]. Co-60 was utilized as the gamma source and the properties of count under full energy peaks of 1.173 and 1.333 MeV, and count under Compton continuum were extracted from the signals received by the detector. Due to the extraction of inappropriate features in this study, flow regimes were not fully classifiable. In [4], the researchers simulated a three-phase flow regime, including water, oil, and gas, only in an annular flow regime and at different volume percentages. In this study, an adaptive neuro-fuzzy inference system (ANFIS) has been used to predict volume percentages, which obtained relatively good accuracy for predicting volume percentages. Studies [5,6] examined the performance of a GMDH neural network and Jaya algorithm to determine volume percentages of three-phase flows, respectively. In Articles [7,8], Sattari et al. used time-domain feature extraction techniques to increase the accuracy of determining the type of flow regimes and volume percentages, and they implemented neural networks such as GMDH and MLP with the time characteristics. In previous studies [9], Roshani et al. examined the characteristics of count under Compton continuum, count under photopeak of 1.173 MeV, count under photopeak of 1.333 MeV, and average value. By using a GMDH neural network, they recognized the type of flow regime and the volume percentage of two-phase flows with high accuracy. In another study [10], the thickness of the scale inside the pipe was predicted using the characteristics of counts under photopeak of Ba-133 and Cs-137 with energy of 356 keV and 662 keV and the RBF neural network. In [11], the researchers implemented a structure to control the type and amount of petroleum product in the pipe, which consisted of a dual-energy gamma source, a test pipe, and a detector. Although the amount and type of volume percentages were detectable in this study, the lack of use of feature extraction techniques prevents the achievement of a high-precision system. In several previous studies, X-ray tubes have been used more than radioisotopes due to the ability to turn them off; this advantage limits potential health risks for people working with this device. In studies [12,13], the authors used a structure based on an X-ray tube to detect the type of flow regime and the volume percentages of multiphase flows. In [12], time characteristics, namely variance, skewness, kurtosis, Summation of Square Roots (SSR), and Summation of Variable Exponent Roots (SVER), were extracted from the received signal from a detector and defined as inputs for the MLP neural network. In [13], a three-phase flow was investigated. An X-ray tube, a pipe, and two NaI detectors were used in the structure of the detection system. The received signals from the two detectors were transmitted to the frequency domain using Fast Fourier Transform (FFT) and frequency characteristics were extracted. Three RBF neural networks were trained with the tasks of determining volume percentages and detecting the type of flow regimes using frequency characteristics. In [14], X-ray tubes were used to implement a diagnostic system, but the lack of characteristic extraction techniques was a disadvantage of this system. In another study [15], wavelet transform characteristics were applied to develop previous work ([14]). In [15], the characteristics of the fifth stage approximation and the details of the first to fifth stages were extracted using wavelet transform and introduced as the inputs for the MLP neural network. In [16], in order to design a system for detecting the type and amount of petroleum products in a pipe, different time characteristics were extracted. By calculating the correlation of these characteristics with each other, the characteristics that have the least similarity with each other were considered as the input for the MLP neural network. In all previous research, gamma-based systems have been introduced as the golden standard and a reliable system for determining the parameters of multiphase flows. In this research, following the implementation of a precise system to control the type and amount of product in the pipe, a dual-energy gamma-ray-based system with a detector and a test pipe is proposed. Extracting the characteristics of the received signals and implementing the RBF neural networks using these characteristics is the difference between the proposed system and previous research, which has significantly increased the accuracy of the detection system. The present paper is divided as follows: In Section 2, the simulated structure with the MCNP is reported. Section 3 describes the extracted features in detail. The next section contains descriptions of the RBF neural network. Section 5 and Section 6 are result and discussion and conclusion sections, respectively.

2. Simulation Geometry

The purpose of this study is to propose a control system to determine the amount and type of oil product passing through pipelines. For this purpose, a test pipe with a dual-energy gamma source and a NaI detector on both sides is simulated. Ethylene glycol, crude oil, gasoline, and gasoil are the four petroleum products that have been studied in this study, and their density values are 1.114, 0.975, 0.721, and 0.826 g/cm3, respectively. This simulation was performed using a Monte Carlo N Particle (MCNP) code. When there is one product in the pipe and the other product is loaded in the pipe, in a cross-section, these two products are mixed. Subsequently, as the flow passes through the pipe, the amount of the first product decreases and the amount of the second product increases. The mentioned products were examined two by two in six different cases. All six possible modes were simulated at different volume ratios (from 5% to 95%). A total of 118 (6 different modes × 19 different volume ratios + 4 modes with only one product in the pipe) modes were simulated. The gamma source on one side of the pipe contains an americium-241 and barium-133. After the gamma-ray is emitted and collides with the test pipe and the products inside the pipe, the transmitted photons are collected by the detector, located on the other side of the pipe and directly in front of the source. The size of this detector is 25.4 mm × 25.4 mm and it is situated at a distance of 30 cm from the source. The simulated structure and sample of the signal received by the detector are shown in Figure 1. The simulation results of this study have been validated by previous studies [17]. In this study, several laboratory structures were implemented and compared to the results obtained from the MCNP code. Since the tally output in the MCNP code is per source particle, both were normalized to units to compare experimental and simulation data. The maximum relative error of 2.2% was the difference between the simulation results and the laboratory structure. The attenuation for the narrow gamma-ray beam follows Lambert–Beer’s law according to the following equation: where the intensity of un-collided and primary photons is shown by I and I0, respectively. µ and represent the mass attenuation coefficient and density of absorber material, respectively. x is the beam path length through the absorber. According to this equation, different intensities are recorded by the detector due to the collision of photons with different objects. This difference in recorded intensity can be an important factor in determining the volume ratio of the petroleum product in the pipe.
Figure 1

Simulated structure and sample signal recorded by the detector.

3. Characteristic Extraction

The raw signals received from the detector need to be analyzed and processed so that they can be used as suitable inputs for the design of neural networks. To better interpret the received signals, reduce the size of the data, and reduce the computational costs imposed on neural networks, the feature extraction technique in the time domain was applied. Four time characteristics—variance, fourth order moment, skewness, and kurtosis—were extracted from the received signals with the following equations. The extracted features have been introduced as very useful features in previous research [7,8,18]. For this reason, in this research, in order to increase the efficiency of the control system, these characteristics have been extracted from the signals received by the detector. where n is the number of data sets, N is the total number of data, and Xn denotes main signal in time domain. variance: fourth order moment: skewness: kurtosis:

4. Radial Basis Function Neural Network

In recent years, different mathematical approaches have been used for analyzing data in plenty of engineering fields [19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46], but it has been proven that an artificial neural network (ANN) is the most well-known and powerful tool for prediction and classification. RBF neural networks, abbreviated as “Radial Basis Function”, are special types of artificial neural networks that are distance-based and measure the similarity between data based on distance. An RBF network is a type of feed-forward artificial neural network that consists of three layers: the input layer, the hidden layer, and the output layer. Hidden layer neurons are activated by a Radial Basis Function. The most common form of radial base function is as follows [47]: r is the numerical value of the distance from the center of the cluster. Equation (7) shows a normal bell-shaped curve. A hidden layer consists of an array of computational units called hidden nodes. Each hidden node contains a central vector c, which is a parametric vector of length similar to the input vector x. The Euclidean distance between the center vector and the input vector x of the network is defined as [48]: Therefore, the output of the jth neuron in the hidden layer is as follows: The width or radius of the bell curve is described by . The hidden layer of an RBF network has units that are weighted, and these weights corresponding to the vector represent the center of the cluster. Weights can be obtained using traditional methods such as the K-Mean algorithm or techniques based on the Kohonen algorithm. In any case, the training is performed non-supervised but the number of expected clusters (k) is pre-selected, these algorithms then obtain the best fit for these clusters. To design a neural network, the available data are usually divided into two categories: training and testing data. Training data contains more data (usually 70%). With this data, the neural network is implemented and the final model is fitted to the data. After this step, the function of the neural network should be tested. For this purpose, test data is given as input to the network. It should be noted that the neural network has not seen this data before, and the correct response to this data can assure that the network is functioning properly. MATLAB (2016, The MathWorks Inc., Natick, MA, USA) software was used to extract the characteristics mentioned in the previous section and to implement the RBF neural network. In this MATLAB software, there are several toolboxes for implementing neural networks; however, in this research, no pre-designed toolboxes have been used to implement neural networks and all stages of training and testing the neural networks have been programmed step-by-step for more freedom of action. It should be noted that the “newrb” function has been used to train the neural network. After providing the appropriate inputs, the neural network design operation began. The goal was to determine the volume ratio of the four oil products passing through the pipeline, which are mixed in a cross-section. For this purpose, four neural networks with the same inputs were designed, in which the output of each neural network is a percentage of the volume ratio of each product. There are various methods to show the function of neural networks but one of the most widely used methods is the use of regression and error diagrams. To increase productivity and increase speed in neural network training, available data should be optimized. There are various optimization methods that can be used according to the type and nature of available data [49,50,51,52,53]. In this research, in order to optimize the data, all the input and output data were transferred to a range between 0 and 1, and after training the network, the output data were returned to their original state.

5. Result and Discussion

The performance of the designed networks can be seen in the regression and error diagrams for the training and test data shown in Figure 2, Figure 3, Figure 4 and Figure 5. In the regression diagrams, the black line represents the desired outputs and the blue circle represents the output of the neural network. The error diagram shows the amount of error between the target data and the network output for each sample. The greater compatibility of the line and the circle indicates the high accuracy of the designed network. The specifications of these networks are shown in Table 1. The general process of the proposed detection system can be seen in Figure 6. The general process of the current research is that four oil products mixed two by two at different volume rates were first simulated in a test pipe. On both sides of this pipe, a dual-energy gamma source and a sodium iodide detector were placed. The detector provides the intensity of the transmitted photons. Four characteristics—variance, fourth order moment, skewness, and kurtosis—were extracted from the received spectrum to reduce dimensions, allow for better interpretation of data, and reduce computational load. The extracted features were considered as the inputs of four RBF neural networks. Each of these neural networks is responsible for determining the volume percentages of a product. By operating these four neural networks simultaneously, the type of product and volume percentage in the pipe can be recognized. One of the advantages of this research is reducing computational load. In this way, by manually extracting the characteristic, it has become easier for the neural network to assign the data and predict the volume rates with a fewer number of neurons.
Figure 2

(a) The structure of the ethylene glycol volume ratio predictor network, (b) network performance against training, and (c) testing data.

Figure 3

(a) The structure of the gasoil volume ratio predictor network, (b) network performance against training, and (c) testing data.

Figure 4

(a) The structure of the crude oil volume ratio predictor network, (b) network performance against training, and (c) testing data.

Figure 5

(a) The structure of the gasoline volume ratio predictor network, (b) network performance against training, and (c) testing data.

Table 1

Specifications of designed networks.

Output Ethylene GlycolGasoilCrude OilGasoline
Goal of MSE 0000
RBF spread 3122
Number of neurons in hidden layer 26352430
Calculated MSE Train dataTest dataTrain dataTest dataTrain dataTest dataTrain dataTest data
0.420.390.290.370.440.300.110.46
Calculated RMSE 0.650.620.530.600.670.550.330.68
Figure 6

The general process of determining the type and amount of petroleum products.

In order to calculate the error of the designed neural networks, two error criteria (mean square error (MSE) and root mean square error (RMSE)) were calculated with the following equations, and the obtained values are shown in Table 1. Proper feature extraction is always one of the most important steps in signal analysis. Failure to use feature extraction techniques or not selecting the appropriate feature to determine volume ratio can be an obstacle to achieving high efficiency regarding the detection system. As can be seen from Table 1, the calculated error of the designed networks is very low, which is due to the application of appropriate inputs to the neural networks. Appropriate inputs in this study have been obtained by extracting time characteristics. The use of these features as input to other neural networks to achieve higher efficiency is highly recommended in future research. The target outputs and the outputs of all four designed neural networks are shown in Table 2. The comparison of this detection system with the others is shown in Table 3. It is clear that, by extracting the convenient characteristics, the error of the system can be outstandingly decreased.
Table 2

Comparison of target values with neural network outputs.

Ethylene GlycolGasoilCrude OilGasoline
TrainTestTrainTestTrainTestTrainTest
TargetOutputTargetOutputTargetOutputTargetOutputTargetOutputTargetOutputTargetOutputTargetOutput
0−0.07995555.76648585.000000.289400.02220−0.89370−1.18693030.9895
00.54519089.654500.000255.33424545.00028080.08451515.00002525.8423
5050.447400.81078079.999800.97267070.00030−0.418900.00161010.8828
0−0.45495554.79510−0.046100.922900.00123535.75938584.99990−0.5858
0−0.171700.295100.00026060.66480−0.000100.296400.00016060.9125
1515.05894544.39243030.00007069.16654545.00136060.550000.004500.2852
00.076301.04960−0.000100.94140−0.00016565.61130−0.00042525.8621
8585.381001.05212020.00000−0.02331010.59473030.322200.00019090.6989
3535.443500.26384545.000000.015000.001100.970655.253900.4766
0−1.03541010.63883535.000000.51050−0.03821515.502200.006900.8508
00.34987071.18971515.00259090.29236059.99900−0.06340−0.00009090.6827
100100.02100.99439595.00008585.30377070.000700.34611514.99223030.1708
00.90456060.27954545.00004040.58520−0.22894040.22423534.99992020.4114
9595.65456060.13880−0.000000.83485049.999400.040000.007754.3704
2020.24040−0.80260−0.24265555.94110−0.383200.24887575.00013030.0776
7575.357600.045100.00005050.82000−0.24983535.25153535.06500−1.0564
2020.552900.31462020.08231010.68998080.000000.09300−0.002800.7847
5555.54120−0.634600.00003535.33758080.00002020.760800.00048080.5792
8080.29903535.77166565.00000−0.83440−0.000000.7931109.146300.2380
6565.52955050.67799595.000000.556000.000100.90050−0.000000.9723
00.763800.443500.029200.130554.99979595.244300.00046060.8552
0−0.89240−0.42372526.42950−0.39930−0.20986565.40680−0.00069595.4927
00.62320−0.845500.000000.19890−0.10531515.13296564.99986565.8907
2524.888855.38460−0.003700.60410−2.05281010.30234039.99882020.6045
2525.10760−0.740101.093200.43319090.000000.36700−0.08864040.2360
6564.795100.57633029.75980−0.19179595.00005555.92506059.999900.2360
0−0.626800.38525555.00117575.061600.00121515.15200−0.650500.3405
00.049000.679800.00000−0.294800.00244545.644400.00592020.7590
0−0.622900.422000.00000−0.861700.53373030.57810−0.000500.9098
00.35769089.66239090.00004545.98910−0.00719090.92449595.00004040.7515
4039.43570−0.113100.00198080.09832019.959800.66583535.00008585.8415
1010.185755.11517575.000001.00053535.002200.63387575.00000−0.8019
00.49829595.55500−0.581300.560456.073800.916500.049500.2068
8584.75212525.838000.01969090.57838584.99992525.154000.00060−0.6944
5049.388800.6127100100.0000−0.21378585.000100.22354545.00039595.0399
7575.5998--00.6066--4040.0326--0−0.0001--
4040.3048--00.0000--7575.0001--0−0.0064--
0−0.2791--00.2134--0−0.2452--00.0021--
1515.2345--54.4292--0−0.0000--109.9998--
00.0998--00.4372--0−0.0046--6565.0000--
0−0.0330--3029.8013--7069.9999--8079.9997--
0−0.0174--1011.7721--0−1.2382--7070.0000--
0−0.7205--5050.0000--5050.0001--00.6206--
2019.7326--6060.0000--3029.9999--1514.7291--
6059.4201--0−0.0388--5050.0023--0−0.0000--
0−0.0077--0−0.0017--0−0.3565--0−0.7858--
0−0.2518--01.0294--00.0142--0−0.4207--
1514.8732--8080.0000--6565.0003--5555.0000--
0−0.9549--55.8091--0−0.0003--0−0.0084--
3029.6232--9595.0000--02.7451--0−0.0025--
7574.9045--5049.9970--0−0.0040--5049.9994--
00.9123--1515.0002--7575.0004--8585.0000--
3029.7462--0−0.0003--0−0.4358--0−0.0002--
3030.1388--6564.9998--00.5822--5050.0000--
8080.0138--2526.5605--9595.0000--0−0.0035--
9594.5685--00.8941--5555.0000--0−0.0004--
4545.5548--00.0009--00.0002--0−0.0000--
0−0.4510--00.0000--2525.2575--00.5518--
00.0060--00.6777--8585.0000--8080.0000--
00.8263--109.9997--4039.9999--0−0.0211--
3534.8439--0−0.3033--00.0013--9090.0000--
7070.2326--7575.0000--7575.0000--00.0001--
1010.0451--3535.2954--0−0.0009--00.0280--
0−1.0487--4040.0000--0−0.0009--00.0000--
00.5138--5555.0000--00.5212--00.2641--
0−0.1034--0−1.9185--0−0.1818--100100.0000--
0−0.0799--4039.7019--2524.9999--5050.0002--
9089.8810--00.0017--54.9890--7070.0000--
4545.0490--00.0000--00.0021--4545.0004--
8585.1076--6059.9987--100100.0000--00.0012--
6565.2951--0−0.0000--6059.9999--2524.9994--
55.6701--00.0000--9089.9995--0−0.3680--
0−0.3612--2018.2032--0−1.3001--55.0004--
00.0724--7070.0000--00.1209--5555.0008--
00.2326--8585.0000--00.0029--0−0.0036--
0−4.2127--0−0.0000--109.9997--02.0414--
7069.6701--6565.0000--5555.0000--00.7757--
00.6545--7070.0000--0−0.0000--4545.0000--
0−0.2674--01.3162--2017.2149--7575.0002--
8080.0920--1513.6166--00.0003--5555.0004--
01.0060--00.0000--03.3660--0−0.0002--
00.2482--2525.0000--0−0.0013--00.0022--
4039.9279--00.3553--0−0.0004--7070.0000--
Table 3

A comparison of the error of the proposed detection system and previous studies.

Refs.Extracted FeaturesType of Neural NetworkMaximum MSEMaximum RMSE
[7] Time-domainGMDH1.241.11
[8] Time-domainMLP0.210.46
[9] Lack of feature extractionGMDH7.342.71
[54] Frequency-domainMLP0.670.82
[55] Lack of feature extractionMLP17.054.13
[56] Lack of feature extractionMLP2.561.6
[current study] Frequency-domain RBF 0.46 0.68

6. Conclusions

Designing an effective and reliable control system is very important in the oil industry. For this purpose, a structure consisting of a dual-energy gamma source and a NaI detector was simulated. It should be noted that a pipe has also been used to simulate different combinations of petroleum products. After simulating two by two combinations of four different oil products at different volume ratios, the received signals from the detector were processed. From each of the received signals, four time characteristics—variance, fourth order moment, skewness, and kurtosis—were extracted and defined as inputs of neural networks. Four RBF neural networks were designed to determine the amount of each oil product. The simultaneous operation of four neural networks allows the amount and type of product within the pipeline to be measured quickly. The maximum RMSE of designed networks is 0.68, which is a very low error value for predicting volume ratios. This low error has turned the system into an efficient system that can help the oil industry to control oil products crossing the pipeline. The use of this methodology to determine parameters, such as the type of flow regimes and volume percentages of multiphase flows, as well as the use of deep neural networks can be considered as future research topics. Due to being unable to turn off gamma sources, users who use these sources must wear protective clothing, which is a major limitation in this research.
  4 in total

1.  Three-terminal nanoelectromechanical switch based on tungsten nitride--an amorphous metallic material.

Authors:  Abdulilah M Mayet; Aftab M Hussain; Muhammad M Hussain
Journal:  Nanotechnology       Date:  2015-12-04       Impact factor: 3.874

2.  Size reduction and performance improvement of a microstrip Wilkinson power divider using a hybrid design technique.

Authors:  Mohammad Behdad Jamshidi; Saeed Roshani; Jakub Talla; Sobhan Roshani; Zdenek Peroutka
Journal:  Sci Rep       Date:  2021-04-08       Impact factor: 4.379

  4 in total

北京卡尤迪生物科技股份有限公司 © 2022-2023.