Next Article in Journal
Identification of Photodegradation Products of Escitalopram in Surface Water by HPLC-MS/MS and Preliminary Characterization of Their Potential Impact on the Environment
Previous Article in Journal
Extraction and Isolation of Natural Products
Previous Article in Special Issue
Accurate Flow Regime Classification and Void Fraction Measurement in Two-Phase Flowmeters Using Frequency-Domain Feature Extraction and Neural Networks
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Increasing the Accuracy and Optimizing the Structure of the Scale Thickness Detection System by Extracting the Optimal Characteristics Using Wavelet Transform

by
Abdulilah Mohammad Mayet
1,
Tzu-Chia Chen
2,3,*,
Seyed Mehdi Alizadeh
4,
Ali Awadh Al-Qahtani
1,
Ramy Mohammed Aiesh Qaisi
5,
Hala H. Alhashim
6 and
Ehsan Eftekhari-Zadeh
7,*
1
Electrical Engineering Department, King Khalid University, Abha 61411, Saudi Arabia
2
College of Management and Design, Ming Chi University of Technology, New Taipei City 243303, Taiwan
3
International College, Krirk University, Bangkok, 3 Ram Inthra Rd, Khwaeng Anusawari, Khet Bang Khen, Bangkok 10220, Thailand
4
Petroleum Engineering Department, Australian University, Kuwait City 13015, Kuwait
5
Department Electrical and of Electronic Engineering, College of Engineering, University of Jeddah, Jeddah 21589, Saudi Arabia
6
Department of Physics, College of Science, Imam Abdulrahman Bin Faisal University, Dammam 31441, Saudi Arabia
7
Institute of Optics and Quantum Electronics, Friedrich Schiller University Jena, Max-Wien-Platz 1, 07743 Jena, Germany
*
Authors to whom correspondence should be addressed.
Separations 2022, 9(10), 288; https://doi.org/10.3390/separations9100288
Submission received: 27 August 2022 / Revised: 17 September 2022 / Accepted: 29 September 2022 / Published: 5 October 2022
(This article belongs to the Special Issue New Strategies for Oil-Water Separation)

Abstract

:
Loss of energy, decrement of efficiency, and decrement of the effective diameter of the oil pipe are among the consequences of scale inside oil condensate transfer pipes. To prevent these incidents and their consequences and take timely action, it is important to detect the amount of scale. One of the accurate diagnosis methods is the use of non-invasive systems based on gamma-ray attenuation. The detection method proposed in this research consists of a detector that receives the radiation sent by the gamma source with dual energy (radioisotopes 241Am and 133Ba) after passing through the test pipe with inner scale (in different thicknesses). This structure was simulated by Monte Carlo N Particle code. The simulation performed in the test pipe included a three-phase flow consisting of water, gas, and oil in a stratified flow regime in different volume percentages. The signals received by the detector were processed by wavelet transform, which provided sufficient inputs to design the radial basis function (RBF) neural network. The scale thickness value deposited in the pipe can be predicted with an MSE of 0.02. The use of a detector optimizes the structure, and its high accuracy guarantees the usefulness of its use in practical situations.

1. Introduction

In the oil industry, scale formation inside the transmission pipes causes major problems. The formation of scales makes the internal cross-section of the pipe smaller and reduces the fluid flow, and failure to identify this problem causes malfunctions in pumps and related equipment, emergency shutdowns, damage to oil equipment, increased repair costs, and reduced efficiency. Researchers who considered it necessary to have accurate detection systems to detect the amount of scale inside the pipe always used gamma ray attenuation systems as the gold standard in determining the various parameters of multiphase flows [1,2,3,4,5,6,7,8]. In the study [1], an attempt was made to predict the volume percentage and classification of flow regimes. Using a cesium source, two sodium iodide detectors, and the test pipe, the researchers implemented a two-phase flow in three regimes, stratified, annular, and bubbling, and using the information obtained from both detectors as input for the radial basis function (RBF) network were able to reach their goal. Roshni et al. in [2], at the cost of increasing the computational load to the system, were able to increase the accuracy by using three GMDH networks. Finally, they were able to achieve good accuracy in determining the volume percentage and detecting the type of flow regimes in three-phase flows. In 2016, in similar research, a 60Co source and a NaI detector were used for obtaining the kind of flow patterns and volume percentage, which was met with low accuracy and unfavorable results due to the lack of extraction of appropriate characteristics from the received signals [3]. In 2019, authors used Jaya’s optimization algorithm for predicting the volume percentage of a three-phase flow in the stratified pattern [4]. Sattari et al. in [5] proposed a structure with a cesium source and two NaI detectors around the tested pipe to be able to perform volume percentages prediction and classification of flow regimes with high accuracy. The use of time characteristics and the correct selection of characteristics, while reducing the computational load, resulted in a high-precision system. Later research [6] used a GMDH neural network for detecting the kind of flow patterns and predicting the volume percentage. High accuracy was achieved in determining volume percentages, but not considering the amount of scale inside the pipe is one of the gaps in this research. Alamoudi et al. [7] tried for detecting the thickness of scale in the oil pipe. They simulated a two-phase flow in disparate regimes. They considered Gamma peak counts of Ba-133 and Cs-137 from the first transmission photon detector and the total number from the second scattered photon detector as inputs to the RBF neural network, and they were able to foretell the scale thickness with the RMSE of less than 0.22. In another study, the researchers simulated a three-phase flow in the annular pattern by considering the thickness of the scale inside the pipe to inquire into different volume percentages. Finally, the photopeaks 241Am and 133Ba recorded in two transmitted detectors were extracted and considered as the input of an RBF neural network. They predicted the amount of intra-pipe scaling with RMSE of less than 0.09 [8]. In recent years, many researchers have turned to using an X-ray source instead of gamma in their structures, the reason for which is to get rid of problems such as the need to use protective clothing by personnel when working with this device (due to the inability to turn it off) can be stated. They differentiated the parameters of multiphase flows using X-ray tubes [9,10,11,12]. For example, in [9], the aforementioned alternative source was used. The training of two existing multilayer perceptron (MLP) neural networks in their proposed structure was also done by the temporal features, which are extracted from the signals received by the detector. In the research [10], three-phase flows were perused, and three patterns were simulated in distinct volume percentages. In this research, three RBF neural networks were trained with the frequency characteristics of the received signals, and the result brought relatively good accuracy. In Ref. [11], an X-ray tube was used for designing a control system. Four petroleum products that are mixed two by two with distinct volumes were simulated with the Monte Carlo N Particle code (MCNP) code. The recorded signals were used as inputs of three MLP neural networks for predicting the volume ratio of the three products. Although the introduced method predicted the type and amount of products, the lack of feature extraction techniques prevented high accuracy. To develop the previous research (Ref. [11]), Balubaid et al. [12] used wavelet transform for feature extraction, which resulted in an effective reduction of computational load and increased accurateness. Numerous studies have been conducted to gauge scale thickness and examine various features [13,14] with more detectors or higher errors. In this study, inspired by the existing history of similar studies, an attempt was made to design a high-precision system to acquire the scale value inside the pipe. For this purpose, a three-phase flow pattern consisting of water, gas, and oil in distinct volume percentages was simulated. A different value of scale thickness was considered in each simulation. A dual-energy gamma source (241Am and 133Ba) and a sodium iodide detector were placed on both sides of a test pipe. From the signals received from the detector, the wavelet characteristics were extracted. These extracted characteristics were considered as the inputs of the RBF neural network to obtain the output, which was the scale thickness inside the pipe. The result of this research is the introduction of an effective and accurate method to detect the amount of scale inside the pipe. The contributions made by this study are as follows:
  • Examining the wavelet transform’s properties and effectiveness in calculating scale thickness.
  • Using a single detector lowers costs and the structure of the detecting system’s complexity.
  • Increasing the precision of scale thickness determination by extracting useful features from received signals.
  • Using the RBF neural network as a fast-learning network to calculate scale thickness.

2. Simulated Detection System

In recent years, researchers have obtained positive results from radiation-based system simulations with the MCNP code [15,16,17,18,19]. In addition, in this study, the MCNP code has been used. A dual-energy gamma source, a steel test pipe, and a sodium iodide detector are the main parts of the proposed structure. The gamma source consists of radioisotopes 241Am and 133Ba, with photon energies of 59 and 356 keV, respectively. In the simulation of the three-phase flow in the stratified regime, as well as the simulation of the sediment scale, a test pipe made of steel is used, which has an internal diameter of 10 cm and a thickness of 0.5 cm. The detector measuring 2.54 cm2 is placed at a distance of 30 cm from the source with a zero angle to the assumed line of the source to receive the passing signals. The proposed structure of this study has been validated by the experimental structure implemented in Ref. [1]. This structure of a three-phase flow is simulated in a stratified regime consisting of gas, water, and oil in a volume percentage between 10% to 80%. The deposited scale inside the pipe is considered cylindrical and with a thickness of 0, 0.05, 1, 1.5, 2, 2.5, and 3 cm. The said scale is made of BaSO4 and has a density of 4.5 g per cubic centimeter. Water, oil, and gas considered in this simulation also had densities of 1, 0.826, and 0.00125 g per cubic centimeter. In Ref. [1], a two-phase flow was implemented in the annular regime, and the simulation of the same structure was performed by the MCNP code. The recorded counts obtained from the detectors of the simulated structure and the experimental structure were compared. It was observed that there is an acceptable match between the two. Seven scale thickness values × 36 different volumetric percentages = 252 simulations were performed. Figure 1 shows the proposed structure of this study and how this structure reaches the goal of determining the thickness of the scale. The signals received by the detector are shown in Figure 2. In this figure, the x-axis shows the thickness of the scale, the y-axis represents the source energy, and the z-axis represents the amount of intensity absorbed by the detector.

3. Discrete Wavelet Transform

One of the widely used numerical analyzes is discrete wavelet transform (DWT), in which the wavelet is sampled discretely. In discrete wavelet transform, in addition to frequency features, time features are also available, which is its most important advantage over the Fourier transform. To calculate the DWT of a signal, first, a low-pass filter with the impulse response g is applied to the signal, resulting in the convolution of the two as follows [20,21].
y [ n ] = ( x g ) [ n ] = k = x [ k ] g [ n k ]
In addition, simultaneously, another high pass filter (h) decomposes the signal. Figure 3 clearly shows the signal decomposition process. The output of this process is detail coefficients (output of high-pass filter) and approximate coefficients (output of low-pass filter). At the output of the filters, as seen from the figure, there is a downsampler with 2 in each step. The downsampled results of the low-pass filter provide the approximation (A), and the output of the low-pass samplers of the high-pass filter provides the detail (D). Knowing that at each step, the approximate part can be decomposed over and over again. In this research, the analysis has continued up to four stages. The wavelet operation calculates the wavelet coefficients of a separate set of child wavelets for a given mother wavelet ψ(t). In the case of discrete wavelet transform, the mother wavelet is shifted and scaled by powers of two [20,21].
ψ j , k = 1 2 j ψ ( t k 2 j 2 j )
where j denotes the scale parameter and k the shift parameter. Since x(t) is a 2N-length signal, the wavelet coefficients derived from it may be thought of as the projection of x(t) onto a wavelet. A member of the above-mentioned discrete wavelet family is a child wavelet if and only if [20,21]:
γ j k = x ( t ) 1 2 j ψ ( t k 2 j 2 j ) d t
Then, j is fixed, and the γ j k is obtained only in terms of a function of k. In the above equation,   γ j k can be obtained as the convolution of the x(t) with the mother wavelet signal, h ( t ) = 1 2 j ψ ( t 2 j ) , sampled at points 1, 2j. 2j, …, 2N. These are details of discrete wavelet coefficients at level j. Detail coefficients of the filter bank, therefore, match perfectly to a wavelet coefficient of a discrete collection of child wavelets for a given mother wavelet ψ(t), assuming an acceptable choice of h[n] and g[n] (t). From the analyzed signals, the characteristics of average of a4 and average of d1 to d4 were extracted and used in the next steps. Since they were originally proposed as useful characteristics in earlier studies [12,22,23], these features have been utilized to improve the accuracy and structure of the scale thickness detection system.

4. RBF Neural Network

Neurons, also known as nerve cells, are the smallest components of the human brain that send and receive signals from the brain. While there are many similarities between neurons and cells, neurons are completely unique in function and structure. All these neurons, which number up to millions, are somehow connected to each other. However, according to their location and responsibility, neurons have three main parts in terms of size, shape, and structure: Cell body, axon, and dendrite. Neurons are actually computing units that have branches called dendrites through which they receive information from other neurons. The neuron’s center functions as a processing unit, which then sends the processed data via the axon to neighboring neurons. It all happens biochemically, but researchers have offered ways to describe this architecture mathematically. Radial basis function networks are a popular kind of neural network used to solve this problem (RBF). An RBF network is a kind of convolutional neural network that employs radial basis functions as activation functions. Having been designed for a broad range of purposes, this network has quickly become a popular alternative to the more established multi-layer perceptron. To simplify, RBF employs a three-layer design. There is no processing performed in the input layer since it is a puller layer. Through a non-linear adaptation between the input space and another space with higher dimensions, the second layer (the hidden layer) is able to provide more complex results. The linear output and the final weight total are both generated in the third layer. Such an output is helpful if RBF is used to approximate the function, however, a hard limiter or sigmoid function may be applied to the output neurons to generate 1 or 0 if pattern categorization is necessary. RBF’s standout characteristic is the processing that occurs in the hidden layer. This technique’s fundamental concept was to generate clusters from preexisting patterns in the input space. The distance from the cluster center may be calculated if its centers are known. Since this is a non-linear distance measure, the result obtained will be close to 1 if a pattern is found in the vicinity of the cluster’s center. Outside of this region, the value drops dramatically. The non-linear function may be expressed in terms of the radial basis since this area is radially symmetric around the cluster’s center. Radial basis functions often have the following shape [24]:
φ ( r ) = exp [ r 2 2 σ 2 ]
The parameter of r in an RBF is the numeral value of the interval from the center of the cluster. Equation (4) shows a typical bell curve. Generally, the measured distance to the cluster center is the Euclidean distance. In the hidden layer, for each neuron, the coordinates of the cluster center are represented by weights. Therefore, when a neuron receives an input pattern X, the interval is obtained using the following equation [24]:
r j = i = 1 n ( x i w i j ) 2
This leads to the following output from the j neuron in the hidden layer [24]:
j = exp [ i = 1 n ( x i w i j ) 2 2 σ 2 ]
The width or radius of the bell curve is defined by the variable σ and in some cases, it is appointed only experimentally. The hidden layer of an RBF network has units that have weights, and these weights represent the cluster center vector. Weights can be obtained using traditional methods such as the K-Mean algorithm or methods based on the Kohonen algorithm. In any case, the training is done unsupervised, but the expected number of clusters (k) is already selected, then these algorithms obtain the best fit for these clusters. As a strong mathematical tool, numerical computations [25,26,27,28,29,30,31] have been used recently for a variety of engineering challenges, most notably, artificial networks [32,33,34,35,36,37,38,39,40,41,42,43,44]. The available data are split into two groups: training data and test data, in order to address the issue of over-fitting and under-fitting. The data that the neural network observes and uses to fit the data is included in the training data. Test data are used to evaluate the effectiveness of the neural network following the training phase. The planned network will be protected against the issues of over-fitting and under-fitting by the neural network’s suitable reaction to these two sets of data.

5. Result and Discussion

The features introduced in the previous sections were given as inputs to the RBF neural network so that the output, which is a 1 × 252 matrix determines the thickness of the scale inside the pipe. Several neural networks were put into practice, each with a distinct hidden layer of neurons. The structure of the optimal trained network can be seen in Figure 4. This network has five input neurons and one output neuron, which are the extracted characteristics and scale thickness value, respectively. Between the input and output layers, there is a hidden layer with 18 neurons, which is responsible for transferring the input space to the output space. In order to show the proper functioning of the neural network, three fit, regression, and error diagrams were drawn for three categories of all data, training, and testing data in Figure 5. The network output is represented by a blue line in the fitting diagram, whereas the intended output is represented by a black dashed line. In this diagram, the horizontal axis represents the data number, while the vertical axis represents the scale’s thickness. Two MSE and RMSE criteria were taken into account while calculating the error value of the implemented network. These criterion equations are as follows:
M S E = j = 1 N ( X j ( E x p ) X j ( P r e d ) ) 2 N
R M S E = [ j = 1 N ( X j ( E x p ) X j ( P r e d ) ) 2 N ] 0.5
The symbols “X (Exp)” and “X (Pred)” reflect the experimental and predicted (ANN) values, respectively. N represents the number of data points. The second diagram shows the desired output as a black line and the neural network’s outputs as blue squares. Regression diagram is the name given to this illustration. The error figure shows the difference between the network output and the desired output for each data. Table 1 shows the target value of the network and the value predicted by the network. In addition, in Table 2, a comparison is presented in terms of the error rate of the systems introduced in previous research and the detection system in this research. In this research, due to the correct processing of the obtained signals and the training of the neural network with effective characteristics, the error rate has been reported to be significantly low. On the other hand, the effective use of a detector and the reduction of the number of detectors has led to the optimization of the structure and the reduction of the construction cost. According to the present study procedure, the flows through the pipe and the various scale thicknesses inside the pipe were first simulated using the MCNP code, and the signals picked up by the detectors were labeled. Then, five characteristics of the average of a4 and average of d1 to d4 were obtained from the signals of each simulation after the received signals had been processed using the wavelet transform. The collected characteristics were used to forecast the scale thickness within the pipe using the RBF neural network. The output of the neural network was compared with the desired output after training to check that it was operating correctly. The main limitation of this study is the need to use protective equipment and clothing when working with radioisotope devices because they have harmful effects on the human body. Using the features and methodology introduced in this research and investigating the performance of different neural networks for productivity in future research are strongly recommended to researchers in this field.

6. Conclusions

Preventing sudden shutdowns and problems in the operation of oil equipment requires detecting the amount of scale inside the oil pipes and dealing with it. In this research, special attention is paid to this need, and an accurate system is used to detect the amount of sediment inside the pipes based on the gamma-ray attenuation technique to measure the thickness parameter of the internal scale of the pipe. The proposed structure for the detection system is simulated using the MCNP code, and a three-phase fluid passage pipe is tested in the stratified regime where scale is present. The dual energy source emits photons on the one hand, and the detector collects them on the other hand of the test pipe. The aforementioned flow was simulated in different volume percentages while different scale values were investigated. Two hundred fifty-two different conditions, including seven scale thickness values from 0 to 3 cm and 36 different volume percentages from 10% to 80%, were simulated. The received signals from the detectors finally led to the extraction of wavelet features, which were the inputs of the RBF neural network. The value of scale thickness was also considered as output in the training phase. The designed neural network had an input layer, a hidden layer, and an output layer, which had 5, 18, and 1 neurons, respectively. The scale thickness in this neural network was predicted by the designed RBF neural network with an MSE of 0.02, which is a much smaller error value according to the results of previous research. Due to its high accuracy, this detection system can be considered a vital part of oil fluid transfer systems, and its use is strongly recommended to oil industry managers. Future research in this area is advised to focus on the application of various neural networks, particularly deep neural networks, in detecting various three-phase current parameters and analyzing the time and frequency characteristics of the received signals.

Author Contributions

Funding acquisition, E.E.-Z.; Investigation, T.-C.C. and S.M.A.; Methodology, A.M.M., A.A.A.-Q., R.M.A.Q. and H.H.A.; Software, A.M.M., A.A.A.-Q., R.M.A.Q. and H.H.A.; Supervision, E.E.-Z.; Writing—original draft, T.-C.C. and S.M.A. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the Deanship of Scientific Research at King Khalid University (Grant numbers RGP.1/243/42). The authors acknowledge support from the German Research Foundation and the Open Access Publication Fund of the Thueringer Universitaets-und Landesbibliothek Jena Projekt-Nr. 433052568; the BMBF-Projekt 05P21SJFA2 Verbundprojekt 05P2021 (ErUM-FSP T05).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Nazemi, E.; Roshani, G.H.; Feghhi, S.A.H.; Setayeshi, S.; Zadeh, E.E.; Fatehi, A. Optimization of a method for identifying the flow regime and measuring void fraction in a broad beam gamma-ray attenuation technique. Int. J. Hydrog. Energy 2016, 41, 7438–7444. [Google Scholar] [CrossRef]
  2. Roshani, M.; Giang, P.; Gholam, H.R.; Robert, H.; Behrooz, N.; Enrico, C.; Ehsan, N. Combination of X-ray tube and GMDH neural network as a nondestructive and potential technique for measuring characteristics of gas-oil–water three phase flows. Measurement 2021, 168, 108427. [Google Scholar] [CrossRef]
  3. Roshani, G.H.; Nazemi, E.; Feghhi, S.A.H. Investigation of using 60Co source and one detector for determining the flow regime and void fraction in gas–liquid two-phase flows. Flow Meas. Instrum. 2016, 50, 73–79. [Google Scholar] [CrossRef]
  4. Roshani, G.H.; Karami, A.; Nazemi, E. An intelligent integrated approach of Jaya optimization algorithm and neuro-fuzzy network to model the stratified three-phase flow of gas–oil–water. Comput. Appl. Math. 2019, 38, 1–26. [Google Scholar] [CrossRef]
  5. Sattari, M.A.; Roshani, G.H.; Hanus, R.; Nazemi, E. Applicability of time-domain feature extraction methods and artificial intelligence in two-phase flow meters based on gamma-ray absorption technique. Measurement 2021, 168, 108474. [Google Scholar] [CrossRef]
  6. Sattari, M.A.; Roshani, G.H.; Hanus, R. Improving the structure of two-phase flow meter using feature extraction and GMDH neural network. Radiat. Phys. Chem. 2020, 171, 108725. [Google Scholar] [CrossRef]
  7. Alamoudi, M.; Sattari, M.A.; Balubaid, M.; Eftekhari-Zadeh, E.; Nazemi, E.; Taylan, O.; Kalmoun, E.M. Application of Gamma Attenuation Technique and Artificial Intelligence to Detect Scale Thickness in Pipelines in Which Two-Phase Flows with Different Flow Regimes and Void Fractions Exist. Symmetry 2021, 13, 1198. [Google Scholar] [CrossRef]
  8. Taylan, O.; Abusurrah, M.; Amiri, S.; Nazemi, E.; Eftekhari-Zadeh, E.; Roshani, G.H. Proposing an Intelligent Dual-Energy Radiation-Based System for Metering Scale Layer Thickness in Oil Pipelines Containing an Annular Regime of Three-Phase Flow. Mathematics 2021, 9, 2391. [Google Scholar] [CrossRef]
  9. Basahel, A.; Sattari, M.A.; Taylan, O.; Nazemi, E. Application of Feature Extraction and Artificial Intelligence Techniques for Increasing the Accuracy of X-ray Radiation Based Two Phase Flow Meter. Mathematics 2021, 9, 1227. [Google Scholar] [CrossRef]
  10. Taylan, O.; Sattari, M.A.; Essoussi, I.E.; Nazemi, E. Frequency Domain Feature Extraction Investigation to Increase the Accuracy of an Intelligent Nondestructive System for Volume Fraction and Regime Determination of Gas-Water-Oil Three-Phase Flows. Mathematics 2021, 9, 2091. [Google Scholar] [CrossRef]
  11. Roshani, G.H.; Ali, P.J.M.; Mohammed, S.; Hanus, R.; Abdulkareem, L.; Alanezi, A.A.; Sattari, M.A.; Amiri, S.; Nazemi, E.; Eftekhari-Zadeh, E.; et al. Simulation Study of Utilizing X-ray Tube in Monitoring Systems of Liquid Petroleum Products. Processes 2021, 9, 828. [Google Scholar] [CrossRef]
  12. Balubaid, M.; Sattari, M.A.; Taylan, O.; Bakhsh, A.A.; Nazemi, E. Applications of discrete wavelet transform for feature extraction to increase the accuracy of monitoring systems of liquid petroleum products. Mathematics 2021, 9, 3215. [Google Scholar] [CrossRef]
  13. Mayet, A.M.; Chen, T.-C.; Alizadeh, S.M.; Al-Qahtani, A.A.; Alanazi, A.K.; Ghamry, N.A.; Alhashim, H.H.; Eftekhari-Zadeh, E. Optimizing the gamma ray-based detection system to measure the scale thickness in three-phase flow through oil and petrochemical pipelines in view of stratified regime. Processes 2022, 10, 1866. [Google Scholar] [CrossRef]
  14. Mayet, A.M.; Chen, T.-C.; Ahmad, I.; Tag Eldin, E.; Al-Qahtani, A.A.; Narozhnyy, I.M.; Guerrero, J.W.G.; Alhashim, H.H. Application of neural network and dual-energy radiation-based detection techniques to measure scale layer thickness in oil pipelines containing a stratified regime of three-phase flow. Mathematics 2022, 10, 3544. [Google Scholar] [CrossRef]
  15. Pelowitz, D.B. MCNP-X TM User’s Manual, Version 2.5.0; LA-CP-05e0369; Los Alamos National Laboratory: Los Alamos, NM, USA, 2005. [Google Scholar]
  16. Hosseini, S.; Taylan, O.; Abusurrah, M.; Akilan, T.; Nazemi, E.; Eftekhari-Zadeh, E.; Bano, F.; Roshani, G.H. Application of Wavelet Feature Extraction and Artificial Neural Networks for Improving the Performance of Gas–Liquid Two-Phase Flow Meters Used in Oil and Petrochemical Industries. Polymers 2021, 13, 3647. [Google Scholar] [CrossRef]
  17. Sattari, M.A.; Korani, N.; Hanus, R.; Roshani, G.H.; Nazemi, E. Improving the performance of gamma radiation based two phase flow meters using optimal time characteristics of the detector output signal extraction. J. Nucl. Sci. Technol. 2020, 41, 42–54. [Google Scholar]
  18. Iliyasu, A.M.; Mayet, A.M.; Hanus, R.; El-Latif, A.A.A.; Salama, A.S. Abd El-Latif, and Ahmed, S. Salama. Employing GMDH-Type Neural Network and Signal Frequency Feature Extraction Approaches for Detection of Scale Thickness inside Oil Pipelines. Energies 2022, 15, 4500. [Google Scholar] [CrossRef]
  19. Mayet, A.M.; Salama, A.S.; Alizadeh, S.M.; Nesic, S.; Guerrero, J.W.G.; Eftekhari-Zadeh, E.; Nazemi, E.; Iliyasu, A.M. Applying data mining and artificial intelligence techniques for high precision measuring of the two-phase flow’s characteristics independent of the pipe’s scale layer. Electronics 2022, 11, 459. [Google Scholar] [CrossRef]
  20. Daubechies, I. The wavelet transform, time-frequency localization and signal analysis. IEEE Trans. Inf. Theory 1990, 36, 961–1005. [Google Scholar] [CrossRef] [Green Version]
  21. Soltani, S. On the use of the wavelet decomposition for time series prediction. Neurocomputing 2002, 48, 267–277. [Google Scholar] [CrossRef]
  22. Eftekhari-Zadeh, E.; Bensalama, A.S.; Roshani, G.H.; Salama, A.S.; Spielmann, C.; Iliyasu, A.M. Enhanced Gamma-Ray Attenuation-Based Detection System Using an Artificial Neural Network. Photonics 2022, 9, 382. [Google Scholar] [CrossRef]
  23. Mayet, A.M.; Alizadeh, S.M.; Kakarash, Z.A.; Al-Qahtani, A.A.; Alanazi, A.K.; Alhashimi, H.H.; Eftekhari-Zadeh, E.; Nazemi, E. Introducing a Precise System for Determining Volume Percentages Independent of Scale Thickness and Type of Flow Regime. Mathematics 2022, 10, 1770. [Google Scholar] [CrossRef]
  24. Hartman, E.J.; Keeler, J.D.; Kowalski, J.M. Layered neural networks with Gaussian hidden units as universal approximations. Neural Comput. 1990, 2, 210–215. [Google Scholar] [CrossRef]
  25. Lalbakhsh, A.; Mohamadpour, G.; Roshani, S.; Ami, M.; Roshani, S.; Sayem, A.S.M.; Alibakhshikenari, M.; Koziel, S. Design of a compact planar transmission line for miniaturized rat-race coupler with harmonics suppression. IEEE Access 2021, 9, 129207–129217. [Google Scholar] [CrossRef]
  26. Hookari, M.; Roshani, S.; Roshani, S. High-efficiency balanced power amplifier using miniaturized harmonics suppressed coupler. Int. J. RF Microw. Comput. Aided Eng. 2020, 30, e22252. [Google Scholar] [CrossRef]
  27. Lotfi, S.; Roshani, S.; Roshani, S.; Gilan, M.S. Wilkinson power divider with band-pass filtering response and harmonics suppression using open and short stubs. Frequenz 2020, 74, 169–176. [Google Scholar] [CrossRef]
  28. Jamshidi, M.; Siahkamari, H.; Roshani, S.; Roshani, S. A compact Gysel power divider design using U-shaped and T-shaped resonators with harmonics suppression. Electromagnetics 2019, 39, 491–504. [Google Scholar] [CrossRef]
  29. Roshani, S.; Jamshidi, M.B.; Mohebi, F.; Roshani, S. Design and modeling of a compact power divider with squared resonators using artificial intelligence. Wirel. Pers. Commun. 2021, 117, 2085–2096. [Google Scholar] [CrossRef]
  30. Roshani, S.; Azizian, J.; Roshani, S.; Jamshidi, M.B.; Parandin, F. Design of a miniaturized branch line microstrip coupler with a simple structure using artificial neural network. Frequenz 2022, 76, 255–263. [Google Scholar] [CrossRef]
  31. Khaleghi, M.; Salimi, J.; Farhangi, V.; Moradi, M.J.; Karakouzian, M. Application of artificial neural network to predict load bearing capacity and stiffness of perforated masonry walls. CivilEng 2021, 2, 48–67. [Google Scholar] [CrossRef]
  32. Dabiri, H.; Farhangi, V.; Moradi, M.J.; Zadehmohamad, M.; Karakouzian, M. Applications of Decision Tree and Random Forest as Tree-Based Machine Learning Techniques for Analyzing the Ultimate Strain of Spliced and Non-Spliced Reinforcement Bars. Appl. Sci. 2022, 12, 4851. [Google Scholar] [CrossRef]
  33. Zych, M.; Petryka, L.; Kępiński, J.; Hanus, R.; Bujak, T.; Puskarczyk, E. Radioisotope investigations of compound two-phase flows in an open channel. Flow Meas. Instrum. 2014, 35, 11–15. [Google Scholar] [CrossRef]
  34. Zych, M.; Hanus, R.; Wilk, B.; Petryka, L.; Świsulski, D. Comparison of noise reduction methods in radiometric correlation measurements of two-phase liquid-gas flows. Measurement 2018, 129, 288–295. [Google Scholar] [CrossRef]
  35. Golijanek-Jędrzejczyk, A.; Mrowiec, A.; Hanus, R.; Zych, M.; Świsulski, D. Uncertainty of mass flow measurement using centric and eccentric orifice for Reynolds number in the range 10,000 ≤ Re ≤ 20,000. Measurement 2020, 160, 107851. [Google Scholar] [CrossRef]
  36. Alanazi, A.K.; Alizadeh, S.M.; Nurgalieva, K.S.; Nesic, S.; Grimaldo Guerrero, J.W.; Abo-Dief, H.M.; Eftekhari-Zadeh, E.; Nazemi, E.; Narozhnyy, I.M. Application of Neural Network and Time-Domain Feature Extraction Techniques for Determining Volumetric Percentages and the Type of Two Phase Flow Regimes Independent of Scale Layer Thickness. Appl. Sci. 2022, 12, 1336. [Google Scholar] [CrossRef]
  37. Mayet, A.M.; Hussain, A.M.; Hussain, M.M. Three-terminal nanoelectromechanical switch based on tungsten nitride—An amorphous metallic material. Nanotechnology 2015, 27, 035202. [Google Scholar] [CrossRef]
  38. Shukla, N.K.; Mayet, A.M.; Vats, A.; Aggarwal, M.; Raja, R.K.; Verma, R.; Muqeet, M.A. High speed integrated RF–VLC data communication system: Performance constraints and capacity considerations. Phys. Commun. 2022, 50, 101492. [Google Scholar] [CrossRef]
  39. Mayet, A.; Smith, C.E.; Hussain, M.M. Energy reversible switching from amorphous metal based nanoelectromechanical switch. In Proceedings of the 2013 13th IEEE International Conference on Nanotechnology (IEEE-NANO 2013), Beijing, China, 5–8 August 2013; IEEE: Piscataway, NJ, USA, 2013; pp. 366–369. [Google Scholar]
  40. Khaibullina, K. Technology to remove asphaltene, resin and paraffin deposits in wells using organic solvents. In Proceedings of the SPE Annual Technical Conference and Exhibition, Dubai, United Arab Emirates, 26–28 September 2016; Available online: https://onepetro.org (accessed on 21 September 2022). [CrossRef]
  41. Tikhomirova, E.A.; Sagirova, L.R.; Khaibullina, K.S. A review on methods of oil saturation modelling using IRAP RMS. In IOP Conference Series: Earth and Environmental Science; IOP Publishing: Bristol, UK, 2019; Volume 378, p. 012075. [Google Scholar]
  42. Khaibullina, K.S.; Korobov, G.Y.; Lekomtsev, A.V. Development of an asphalt-resin-paraffin deposits inhibitor and substantiation of the technological parameters of its injection into the bottom-hole formation zone. Period. Tche Quim. 2022, 17, 769–781. [Google Scholar] [CrossRef]
  43. Khaibullina, K.S.; Sagirova, L.R.; Sandyga, M.S. Substantiation and selection of an inhibitor for preventing the formation of asphalt-resin-paraffin deposits. Period. Tche Quim. 2020, 17, 541–551. [Google Scholar] [CrossRef]
  44. Mayet, A.M.; Alizadeh, S.M.; Nurgalieva, K.S.; Hanus, R.; Nazemi, E.; Narozhnyy, I.M. Extraction of Time-Domain Characteristics and Selection of Effective Features Using Correlation Analysis to Increase the Accuracy of Petroleum Fluid Monitoring Systems. Energies 2022, 15, 1986. [Google Scholar] [CrossRef]
  45. Roshani, M.; Sattari, M.A.; Ali, P.J.M.; Roshani, G.H.; Nazemi, B.; Corniani, E.; Nazemi, E. Application of GMDH neural network technique to improve measuring precision of a simplified photon attenuation based two-phase flowmeter. Flow Meas. Instrum. 2020, 75, 101804. [Google Scholar] [CrossRef]
  46. Hosseini, S.; Roshani, G.H.; Setayeshi, S. Precise gamma based two-phase flow meter using frequency feature extraction and only one detector. Flow Meas. Instrum. 2020, 72, 101693. [Google Scholar] [CrossRef]
  47. Roshani, M.; Ali, P.J.M.; Roshani, G.H.; Nazemi, B.; Corniani, E.; Phan, N.H.; Tran, H.O.; Nazemi, E. X-ray tube with artificial neural network model as a promising alternative for radioisotope source in radiation based two phase flowmeters. Appl. Radiat. Isot. 2020, 164, 109255. [Google Scholar] [CrossRef] [PubMed]
  48. Gholipour Peyvandi, R.; Islami Rad, S.Z. Application of artificial neural networks for the prediction of volume fraction using spectra of gamma rays backscattered by three-phase flows. Eur. Phys. J. Plus 2017, 132, 1–8. [Google Scholar] [CrossRef]
  49. Roshani Gholam, H.; Ehsan, N.; Farzin, S.; Mohammad, A.I.; Salar, M. Designing a simple radiometric system to predict void fraction percentage independent of flow pattern using radial basis function. Metrol. Meas. Syst. 2018, 25, 2. [Google Scholar]
  50. Roshani, G.H.; Nazemi, E.; Feghhi, S.A.H.; Setayeshi, S. Flow regime identification and void fraction prediction in two-phase flows based on gamma ray attenuation. Measurement 2015, 62, 25–32. [Google Scholar] [CrossRef]
Figure 1. The proposed structure of the detection system: 1-NaI detector, 2-gas phase, 3-scale, 4-steel pipe, 5-water phase, 6-oil phase, 7-dual-energy gamma source, and 8-protective case.
Figure 1. The proposed structure of the detection system: 1-NaI detector, 2-gas phase, 3-scale, 4-steel pipe, 5-water phase, 6-oil phase, 7-dual-energy gamma source, and 8-protective case.
Separations 09 00288 g001
Figure 2. The signal received by the NaI detector.
Figure 2. The signal received by the NaI detector.
Separations 09 00288 g002
Figure 3. (a) Decomposed signal into approximation and details by wavelet transform, (b) wavelet transform tree. From each simulation, five characteristics with the names of the mean value of a4, d4, d3, d2, and d1 were extracted, in total; a matrix of 5 × 252 was extracted for neural network training.
Figure 3. (a) Decomposed signal into approximation and details by wavelet transform, (b) wavelet transform tree. From each simulation, five characteristics with the names of the mean value of a4, d4, d3, d2, and d1 were extracted, in total; a matrix of 5 × 252 was extracted for neural network training.
Separations 09 00288 g003aSeparations 09 00288 g003b
Figure 4. The architecture of the trained RBF neural network.
Figure 4. The architecture of the trained RBF neural network.
Separations 09 00288 g004
Figure 5. Neural network performance against (a) all data, (b) training data, (c) and test data.
Figure 5. Neural network performance against (a) all data, (b) training data, (c) and test data.
Separations 09 00288 g005aSeparations 09 00288 g005b
Table 1. Comparison of target values with neural network outputs.
Table 1. Comparison of target values with neural network outputs.
Train TargetsTrain OutputsTest TargetsTest Outputs
13.00002.85071.50001.5502
22.50002.635800.0084
32.00001.95911.00001.2299
42.50002.63282.50002.6055
500.02461.50001.4134
62.50002.69082.00002.1296
70.50000.53171.00000.8584
81.00000.99592.00002.2414
90.50000.50002.50002.6178
103.00002.95191.50001.7279
112.00002.27063.00002.8875
123.00002.97780.50000.5834
132.50002.31071.00000.8300
141.00001.22582.50002.5796
150.50000.50773.00002.8871
1600.05220.50000.6381
171.00000.71092.00002.2191
182.50002.35320.50000.5247
1900.02311.50001.2896
203.00003.03350.50000.6990
2100.07521.00001.2803
222.00002.34393.00002.9794
232.50002.72860.50000.5555
241.50001.58132.50002.4208
253.00002.880000.0852
263.00002.99351.50001.5737
271.00000.87662.50002.4476
282.50002.41820.50000.5218
291.00001.17073.00002.8760
303.00003.04921.00001.2615
310.50000.55512.50002.5231
320−0.11120.50000.5853
331.00000.98882.00001.8922
341.50001.62681.50001.4737
353.00003.01851.00000.8781
361.00001.21720−0.1686
373.00002.90452.50002.8822
382.00002.26470−0.0797
390−0.03430−0.2528
402.00002.01622.50002.8470
4100.03992.50002.3918
422.00002.373000.0240
430.50000.66061.50001.3381
440−0.18470.50000.6577
4500.19002.50002.7493
4600.00071.50001.7535
471.50001.57492.00001.8070
483.00002.80472.00002.3398
490.50000.41502.00002.0685
5000.11942.50002.7588
512.50002.58921.50001.6536
522.50002.67170.50000.6614
533.00002.88931.00000.8097
540−0.06541.50001.2968
551.50001.41040−0.1245
5600.05711.00000.9329
571.00000.75800−0.0362
582.00002.37643.00002.8228
5900.01561.00001.0669
603.00002.77952.00001.8055
613.00003.07472.50002.6317
623.00003.00700.50000.5188
631.00001.23881.50001.4472
643.00003.08720.50000.6452
652.50002.45171.50001.5560
662.00001.84132.00001.7887
673.00002.99101.00001.0048
680.50000.43941.00001.2338
690−0.04800.50000.6543
701.50001.48881.00000.8751
712.50002.52880−0.1118
722.00002.04341.00001.0108
731.50001.34142.00001.9147
743.00002.81350.50000.5529
750.50000.42462.00001.8891
760.50000.56722.00002.3440
770.50000.6651
782.50002.4111
792.00001.9201
800.50000.4180
811.50001.7401
8200.1030
832.00002.3196
841.00000.8052
852.50002.7879
862.00001.8781
870.50000.5666
881.50001.5677
891.00001.1954
902.50002.3980
912.00002.3241
921.50001.2039
930.50000.6220
942.50002.5530
950−0.0323
962.50002.4175
970.50000.3938
981.00001.0718
991.00000.7100
1000.50000.6053
10100.0484
1020.50000.6160
1032.50002.3416
1042.00001.8580
1051.50001.6659
1063.00002.9056
1072.50002.3207
1082.00002.0069
1092.50002.3241
1100.50000.5279
1111.50001.6442
1121.00001.0299
11300.0031
11400.0226
1150−0.0417
1163.00002.9503
1170.50000.6860
1181.50001.7487
1192.00001.8221
1201.00000.9477
1211.00001.1897
1222.00001.9254
1231.50001.2626
1242.00002.2340
1251.50001.2649
1263.00002.9737
1272.00001.7831
1280−0.0127
1290.50000.6844
1302.50002.6940
1312.50002.4228
1323.00002.8849
1333.00002.7392
1342.50002.3055
1352.00002.2171
1363.00002.8540
1371.00000.8989
1380−0.1658
1391.50001.6764
1401.50001.6445
1413.00002.8768
1420.50000.5343
1431.00000.9241
1441.50001.5487
1451.50001.3810
1463.00002.9438
1473.00003.0738
1481.00001.3264
1490.50000.5668
1501.50001.7114
1512.00002.1932
1522.50002.4678
1530.50000.6429
1541.50001.7403
1551.00001.2559
1562.00001.8254
1570−0.0976
1583.00002.8746
1591.00000.9637
1603.00003.0812
1613.00002.9221
1621.00001.2994
1633.00002.8575
16400.0467
1651.50001.7537
1661.50001.2195
1672.50002.7950
1681.50001.5556
1692.00001.7226
1703.00003.0435
1710.50000.4247
1722.00001.6679
17300.0561
1741.50001.7550
1751.00001.0100
1760−0.0189
Table 2. A comparison of the accuracy of the proposed detection system and previous studies.
Table 2. A comparison of the accuracy of the proposed detection system and previous studies.
RefNumber of
Detectors
Extracted FeaturesSource TypeType of
Neural
Network
Maximum MSEMaximum RMSE
[6]1Time features137CsGMDH1.241.11
[5]2Time features137CsMLP0.210.46
[45]1No feature extraction60CoGMDH7.342.71
[46]2Frequency features137CsMLP0.670.82
[47]1No feature extractionX-Ray tubeMLP17.054.13
[48]1No feature extraction137CsMLP2.561.6
[49]1Compton continuum and
counts under full energy peaks of 1173 and 1333 keV
60CoRBF37.456.12
[50]2full energy peak (transmission count), photon counts of Compton edge in transmission detector, and total count in the scattering detector137CsMLP1.081.04
[current study]1Wavelet featuresDual-energy gamma sourceRBF0.020.15
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Mayet, A.M.; Chen, T.-C.; Alizadeh, S.M.; Al-Qahtani, A.A.; Qaisi, R.M.A.; Alhashim, H.H.; Eftekhari-Zadeh, E. Increasing the Accuracy and Optimizing the Structure of the Scale Thickness Detection System by Extracting the Optimal Characteristics Using Wavelet Transform. Separations 2022, 9, 288. https://doi.org/10.3390/separations9100288

AMA Style

Mayet AM, Chen T-C, Alizadeh SM, Al-Qahtani AA, Qaisi RMA, Alhashim HH, Eftekhari-Zadeh E. Increasing the Accuracy and Optimizing the Structure of the Scale Thickness Detection System by Extracting the Optimal Characteristics Using Wavelet Transform. Separations. 2022; 9(10):288. https://doi.org/10.3390/separations9100288

Chicago/Turabian Style

Mayet, Abdulilah Mohammad, Tzu-Chia Chen, Seyed Mehdi Alizadeh, Ali Awadh Al-Qahtani, Ramy Mohammed Aiesh Qaisi, Hala H. Alhashim, and Ehsan Eftekhari-Zadeh. 2022. "Increasing the Accuracy and Optimizing the Structure of the Scale Thickness Detection System by Extracting the Optimal Characteristics Using Wavelet Transform" Separations 9, no. 10: 288. https://doi.org/10.3390/separations9100288

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