Professional Documents
Culture Documents
A R T I C L E I N F O A B S T R A C T
Keywords: This study presents a methodology based on the dual-mode gamma densitometry technique in combination with
Gamma densitometry artificial neural networks to simultaneously determine type and quantity of four different fluids (Gasoline,
MCNP6 code Glycerol, Kerosene and Fuel Oil) to assist operators of a fluid transport system in pipelines commonly found in
Artificial neural network
the petrochemical industry, as it is necessary to continuously monitor information about the fluids being
Polyduct
Petroleum by-products
transferred. The detection system is composed of a 661.657 keV (137Cs) gamma-ray emitting source and two NaI
(Tl) scintillation detectors to record transmitted and scattered photons. The information recorded in both de
tectors was directly applied as input data for the artificial neural networks. The proposed intelligent system
consists of three artificial neural networks capable of predicting the fluid volume percentages (purity level) with
94.6% of all data with errors less than 5% and MRE of 1.12%, as well as identifying the pair of fluids moving in
the pipeline with 95.9% accuracy.
1. Introduction are to be transported at which time, i.e., how the products are
sequenced, in order to optimize the transport process. It is important for
Petroleum is an essential raw material for various industrial activ the operators of this system to continuously monitor the characteristics
ities and its derivatives are used daily by humans in a wide variety of of the transferred fluids, such as their type, density and quantity.
applications, such as fuel, liquefied petroleum gas, plastics, asphalt Consecutive transport of fluids in poly-pipeline of two different products
products and solvents. The high demand for these products has made the without any physical separation (pigs) between them causes mixing
process of extraction, refining and distribution key activities for a (contamination) of these fluids forming a third product with original
country’s economy. The transportation of oil products plays a very specification (Sasikumar et al., 1997; Salgado et al., 2020). The entire
important role in reducing the logistical costs of oil companies. To make volume formed by this mixture is called the interface region. In this case,
the connection between refineries (origin) and distribution centers the volume of the interface region (contaminated fluids) must go to a
(destination) more efficient, pipeline transport is used, which consists of suitable tank so that it can be reprocessed or sold at a lower added value,
pipes connected to form a transport line called a poly-pipeline. Although all of which leads to increased production costs (Milidiú et al., 2003).
poly-pipelines have a high implementation cost compared to other This situation highlights the need to develop techniques applied to
modes, the operating costs are lower and they have a high level of poly-pipeline transport to accurately identify the interface region and
reliability. thus reduce the volume of fluid discarded to minimize damage. Many
Another great advantage of this system is that the same poly-pipeline papers already published prove that techniques based on gamma-ray
is capable of transporting several products (fluids), such as: gasoline, attenuation/scattering can be used in non-destructive measurements
diesel and kerosene. However, this transport is carried out in batches of to obtain different properties of fluid, making it a potentially reliable
one product at a time, in sequence, so it is obvious that during the and applicable technique in the oil and petrochemical industries (Dam
operation of the poly-pipeline it is necessary to decide which products et al., 2019; Abdul-Majid, 2013; Hanus et al., 2014; Mosorov 2019;
* Corresponding author. Programa de Engenharia Nuclear – (PEN/COPPE), Universidade Federal do Rio de Janeiro – (UFRJ), Avenida Horácio de Macedo 2030, G
– 206, 21941-914 Cidade Universitária, RJ, Brazil.
E-mail addresses: william.otero@coppe.ufrj.br (W.L. Salgado), rdam@coppe.ufrj.br (R.S.F. Dam), eddieavilan@gmail.com (E.J.A. Puertas), otero@ien.gov.br
(C.M. Salgado), ademir@con.ufrj.br (A.X. Silva).
https://doi.org/10.1016/j.apradiso.2022.110267
Received 23 February 2022; Received in revised form 8 April 2022; Accepted 28 April 2022
Available online 4 May 2022
0969-8043/© 2022 Elsevier Ltd. All rights reserved.
W.L. Salgado et al. Applied Radiation and Isotopes 186 (2022) 110267
Table 1
Data on fluids investigated in this study.
Fluid Element Mass Fraction Density Formula
2
W.L. Salgado et al. Applied Radiation and Isotopes 186 (2022) 110267
the SI, SP and SB commands available in the MCNP6 code. In all simu 2.2. Artificial neural network (ANN)
lations, a collimation with an angular aperture of 8.7◦ was used, which is
sufficient to provide good counting statistics in the NaI(Tl) detectors. An artificial neural network (ANN) is a computational model capable
In the simulations, a 316L steel pipe with an inside diameter of 40.64 of recognizing patterns through a group of interconnected units (neu
cm, a wall thickness of 0.03 cm and a density of 8.0 g cm− 3 was defined. rons) where each connection has a weight. The weights are associated
The proposed model was tested with four different types of petroleum with the input signals, and when adjusted, the network can correctly
by-products: Gasoline (Gas), Kerosene (Ker), Fuel Oil (Oil) and Glycerine adapt to a certain function and produce an expected (target) output
(Gly) and their main characteristics are presented in Table 1 (McConn signal. This allows predictive models to be built from a database. This
et al., 2011). requires a network structure consisting of an input layer, one or more
As the study also aims to identify the interface region in pipeline intermediate (hidden) layers and an output layer, all fully connected to
transport, six fluid groups were formed for the investigation: Gas-Ker, each other. The training of the network, using the supervised learning
Gas-Oil, Gas-Gly, Ker-Gly, Ker-Oil, Oil-Gly. Fig. 2 illustrates the trans algorithm Backpropagation, consists of presenting data to the input
port curve of four Ker-Oil-Gly-Gas batches. layer of the network. The resulting signal is propagated through the
In fact, the interface region represents a combination between two network layers until it produces a response in the output layer (predic
fluids that are in contact with each other. In this region, the amount of tion). The value obtained is compared with the expected value and its
the fluid being transported at the current moment (e.g., Gas) gradually error is calculated. This error is then back-propagated from the output
increases relative to the fluid transported previously (in this example, layer to the input layer, and the connection weights of the inner/inter
Gly). To model this interface region, the six possible combinations of mediate layer units are adjusted to progressively reduce this error. In
two fluids mentioned above were considered using the stratified flow other words, it is an algorithm based on adjusting the weights of the
regime. The interface region was modelled by varying the fluid fractions units of a network from the error rate obtained in the previous iteration
from 0 to 100%, in the range from 0% to 10% and from 90% to 100% (epoch). A proper adjustment of the weights reduces the error rates and
with 1% steps and in the intermediate range from 10% to 90% with 10% makes the model reliable, increasing its generalizability. At the end of
steps. In this way, 222 simulations (6 interface regions × 37 combina this process, the model is ready to make predictions for unknown input
tions of fluid quantities) were performed, but always considering two-in- data. In general, the training of neural networks or learning models
two fluid transport. occurs according to the following phases:
3
W.L. Salgado et al. Applied Radiation and Isotopes 186 (2022) 110267
Fig. 5. Espectros para 100% de Gasolina obtidos pelos detectores: a) D1; b) D2.
i. Initialization – Initial weights are applied to all neurons. used the Cross Validation method (Haykin, 1994; Zhang and Rong,
ii. Forward propagation – inputs from a dataset are propagated 1996) which divides the database into three subsets, where the first
through the neural network and an output is calculated. subset called Training (TRT) is used to train the network, in this phase
iii. Error function – An error function is defined, compared with the the synaptic weights are updated; the second one, called Test (TST), is
expected output value, i.e., how far the model is from the ex used to test the training of the network; in this phase the generalizability
pected result. of the network is evaluated; the third subset is used for the final vali
iv. Backpropagation – The algorithm changes the gradient values of dation of the training of the network, and is used with the already
the neuron weights to reduce the error function to a minimum. trained network. In both networks (ANN 1 and ANN 2), 156 data were
v. Update of weights - Weights are changed to the optimal values implemented for training, 44 data for testing and 22 data for validating
according to the results of the algorithm. the efficiency of the network. To find the optimal architecture of the
neural networks, different architectures based on the backpropagation
This study aims to determine the purity levels and identify the fluids algorithm were used, in addition to the number of neurons in the in
that form a certain interface region that is formed during transport in termediate layers and the activation functions.
poly-pipeline. To achieve these steps, two neural networks were devel The mean relative error (MRE) and root mean square error (RMSE)
oped, the first one (ANN 1) called predictive network of the purity levels are good parameters to evaluate the performance of the networks by
of the fluids and the second one (ANN 2) classifier, where the objective is comparing the actual data (MCNP6) with the data predicted by the
to classify the pair of fluids that form a certain interface region. All the networks. The RMSE is a measure of the measurement uncertainty
networks used are 3-layer feed-forward Multilayer Perceptron (Haykin, compared to the actual value for a given data set and is calculated using
1994) trained with the supervised learning algorithm Backpropagation. Equation 1.
The architecture of the prediction network (ANN 1) proposed to
determine the purity level of each of the four petroleum by-products 1 ∑
N
(xactual − xANN )
MRE = (1)
investigated in this study is illustrated in Fig. 3. The inputs of the N 1 xactual
network are the PHD1 (20–720 keV) and PHD2 (20–360 keV) recorded
The RMSE is a measure often used to measure the differences be
at detectors D1 and D2 respectively, thus forming 106 neurons. While
tween the values predicted by the network and the actual values and can
the outputs represent the amount of each of the fluids (Gas, Gly, Oil and
be calculated using Equation 2. The RMSE shows how far the data are
Ker) present in this investigation, then 4 output neurons are required.
from the regression line.
The development of the classifier network (ANN 2) attempted to
√̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅
automatically identify the fluids present in the interface region and √ N
√∑ (xactual − xANN )2
consisted of using also the PHDs recorded in both detectors as input data RMSE = √ (2)
N
for the network, while the outputs represent the pair of fluids in trans 1
port and are given by the combination of the fluids: Gas-Gly, Gas-Ker,
Gas-Oil, Ker-Gly, Ker-Oil and Oil-Gas forming 6 neurons, as shown in Where:
Fig. 4. A binary configuration is proposed to obtain the identification of
the fluids in the interface region of the transport system. The network is N – number of data;
designed to set the highest value among the network outputs to “1” for xactual – actual value given by MCNP6 code;
each fluid pair and “0” for the others. As an example, suppose the fluids xANN – forecasted value by the ANN.
are Gas-Ker, then the network should set the output to Gas-Gly = 0, Gas-
Ker = 1, Gas-Oil = 0, Ker-Gly = 0, Ker-Oil = 0 and Oil-Gas = 0. 3. Results and discussions
In Monte Carlo simulations 222 different data were modelled. To
control the generalizability of the network, avoiding overtraining, we Fig. 5 shows a graphical representation of the PHDs obtained in both
detectors considering the tube containing only Gasoline (Gas), as an
example. The energy resolution fitting coefficients for the NaI(Tl) de
Table 2 tector used in the GEB command of the MCNP6 code, a = − 0.0071 MeV,
Predictive performance of the proposed ANN 1. b = 0.0904 MeV1/2 and c = − 0.1768 MeV− 1, were fitted in previous
Output Percent (%) Quantity (%)
work (Salgado et al., 2022). The same energy resolution was considered
for both detectors. The gamma-ray energy range was varied from 20 to
Gas Gly Ker Oil
720 keV in 10 keV steps for PHD1 (detector D1) and from 20 to 360 keV
5 83.33 92.59 78.70 81.48 in 10 keV steps for PHD2 (detector D2). A number per stories (NPS) of 2
5 to 10 7.41 0.93 6.48 5.56
× 108 was determined to obtain the relative error below 1% for all en
10 to 20 5.56 3.70 4.63 9.26
20 to 30 0.92 1.85 5.56 1.85 ergy ranges for both PHDs.
over 30 2.78 0.93 4.63 1.85 With the data set for training and evaluation of the network, different
4
W.L. Salgado et al. Applied Radiation and Isotopes 186 (2022) 110267
Table 3
Mathematical metrics for evaluating the ANN 1 prediction.
SET METRICS Gas Gly Ker Oil
5
W.L. Salgado et al. Applied Radiation and Isotopes 186 (2022) 110267
4. Conclusions
Table 8
Mathematical metrics for the assessment of ANN network prediction 3.
Network Output MRE (%) RMSE
6
W.L. Salgado et al. Applied Radiation and Isotopes 186 (2022) 110267
the work reported in this paper. reproduced here with permission from Springer-Verlag. Translated from the German
by Dr. Lars Bergström.
McConn, R.J., Gesh, C.J., Pagh, R.T., Rucker, R.A., Williams III, R., 2011. Compendium
Acknowledgments of Material Composition Data for Radiation Transport Modeling (No. PNNL- 15870
Rev. 1)”, Pacific Northwest National Lab. (PNNL). Richland, WA (United States).
The authors gratefully acknowledge scholarships from Comissão Milidiú, R.L., Liporace, F.D.S., Lucena, C.J.P.D., 2003. Pipesworld: planning pipeline
transportation of petroleum derivatives. In: ICAPS’03 – 13th International
Nacional de Energia Nuclear (CNEN). Thanks also to Instituto de Conference on Automated Planning & Scheduling (Trento, Italy).
Engenharia Nuclear (IEN) and Programa de Engenharia Nuclear – Mosorov, V., 2019. Improving the accuracy of single radioactive particle technique for
Instituto Alberto Luiz Coimbra de Pós-Graduação e Pesquisa de Engen flow velocity measurements. Flow Meas. Instrum. 66, 150–156.
Nazemi, E., Feghhi, S.A.H., Roshani, G.H., Gholipour Peyvandi, R., Setayeshi, S., 2016.
haria (PEN/COPPE), da Universidade Federal do Rio de Janeiro (UFRJ). Precise void fraction measurement in two-phase flows independent of the flow
regime using gamma-ray attenuation. Nucl. Eng. Technol. 48, 64–71.
References Roshani, G.H., Nazemi, E., Shama, F., Imani, M.A., Mohammadi, S., 2018. Designing a
simple radiometric system to predict void fraction percentage independent of flow
pattern using radial basis function. Metrol. Meas. Syst. 25 (2), 347–358.
Abdul-Majid, S., 2013. Determination of wax deposition and corrosion in pipelines by
Salgado, C.M., Brandão, L.E., Nascimento, C.M., Schirru, R., Ramos, R., Silva, A.X., 2009.
neutron back diffusion collimation and neutron capture gamma rays. Appl. Radiat.
Prediction of volume fractions in three-phase flows using nuclear technique and
Isot. 74, 102–108.
artificial neural network. Appl. Radiat. Isot. 67, 1812–1818.
Affonso, R.R.W., Dam, R.S.F., Salgado, W.L., Silva, A.X., Salgado, C.M., 2020. Flow
Salgado, C.M., Brandão, L.E.B., Conti, C.C., Salgado, W.L., 2016. Density prediction for
regime and volume fraction identification using nuclear techniques, artificial neural
petroleum and derivatives by gamma-ray attenuation and artificial neural networks.
networks and computational fluid dynamics. Appl. Radiat. Isot. 159, 109103.
Appl. Radiat. Isot. 116, 143–149.
AlQuraishi, A.A., Shokir, E.M., 2011. Artificial neural networks modeling for
Salgado, C.M., Pereira, C.M.N.A., Schirru, R., Brandao, L.E.B., 2010. Flow regime
hydrocarbon gas viscosity and density estimation. J. King Saud Univ. Eng. Sci. 23,
identification and volume fraction prediction in multiphase flows by means of
123–129.
gamma-ray attenuation and artificial neural networks. Prog. Nucl. Energy 52,
Dam, R.S.F., Barbosa, C.M., Lopes, J.M., Thalhofer, J.L., Silva, L.B., Salgado, C.M.,
555–562.
Silva, A.X., 2019. Radioactive particle tracking methodology to evaluate concrete
Salgado, W.L., Dam, R.S.D.F., Barbosa, C.M., Silva, A.X., Salgado, C.M., 2020. Monitoring
mixer using MCNPX code. Radiat. Phys. Chem. 160, 26–29.
system of oil by-products interface in pipelines using the gamma radiation
Goorley, T., James, M., Booth, T., Brown, F., Bull, J., Cox, L.J., Durkee, J., Elson, J.,
attenuation. Appl. Radiat. Isot. 160, 109125.
Fensin, M., Forster, R.A., Hendricks, J., Hughes, H.G., Johns, R., Kiedrowski, B.,
Salgado, W.L., Dam, R.S.F., Barbosa, C.M., Puertas, E.J.A., Silva, A.X., Salgado, C.M.,
Martz, R., Mashnik, S., McKinney, G., Pelowitz, D., Prael, R., Sweezy, J., Waters, L.,
2021b. System to detect the interface region and identify products transported by
Wilcox, T., Zukaitis, T., 2016. Features of MCNP6. Ann. Nucl. Energy 87, 772–783.
polyducts using artificial intelligence and gamma radiation through MCNP6 code.
Hanus, R., Petryka, L., Zych, M., 2014. Velocity measurement of the liquid solid flow in a
Measurements 185, 110093.
vertical pipeline using gamma-ray absorption and weighted cross-correlation. Flow
Salgado, W.L., Dam, R.S.F., Ramos, L.L., Silva, A.X., Conti, C.C., Salgado, C.M., 2022.
Meas. Instrum. 40, 58–63.
Experimental and simulated methods to characterize the response of a scintillator
Hanus, R., Zych, M., Kusy, M., Jaszczur, M., Petryka, L., 2018. Identification of liquid-gas
detector. Radiat. Phys. Chem. 192, 109895.
flow regime in a pipeline using gamma-ray absorption technique and computational
Salgado, W.L., Dam, R.S.F., Salgado, C.M., 2021a. Optimization of a flow regime
intelligence methods. Flow Meas. Instrum. 60 (1), 17–23.
identification system and prediction of volume fractions in three-phase systems
Haykin, S., 1994. Neural Networks – A Comprehensive Foundation”. Macmillan College
using gamma-rays and artificial neural network. Appl. Radiat. Isot. 169, 109552.
Publishing Company.
Salgado, W.L., Dam, R.S.F., Silva, A.X., Salgado, C.M., 2021c. Identification of the
Karami, A., Roshani, G.H., Khazaei, A., Nazemi, E., Fallahi, M., 2020. Investigation of
interface region in transport of petroleum by-products in polyducts using artificial
different sources in order to optimize the nuclear metering system of gas-oil-water
neural network and gamma densitometry by the MCNPX code. Radiat. Phys. Chem.
annular flows. Neural Comput. Appl. 32 (3), 3619–3631.
192, 109908.
Khorsandi, M., Feghhi, S.A.H., Salehizadeh, A., Roshani, G.H., 2013. Developing a
Sasikumar, M., Prakash, P.R., Patil, S.M., Ramani, S., 1997. Pipes: a heuristic search
gamma ray fluid densitometer in petroleum products monitoring applications using
model for pipeline schedule generation. Knowl. Base Syst. 10 (3), 169–175.
Artificial Neural Network. Radiat. Meas. 59, 183–187.
Zhang, Y.M., Li, X.R., 1996. Hybrid training of RBF networks with application to
Klein, O., Nishina, Y., 1929. On the scattering of radiation by free electrons according to
nonlinear systems identification. In: Proceedings of the 35th Conference on Decision
Dirac’s new relativistic quantum dynamics*”,. “*Original in Zeitschrift Physik”, 52
and Control. Kobe, Japan.