1. Introduction
In the process of production, transportation and distribution of fluids, in particular in the petroleum industry, multiphase flow is commonly used. The measurement of velocities in different phases is an important factor for safety and for controlling the flow, as is the volume fraction. The flow measurement technique using electrical resistance tomography (ERT) and based on cross correlation has been established for many years. With the fast development of computing power, ERT techniques are growing rapidly. In particular 3D ERT, which is now feasible as a non-invasive detection method, where the interior distribution can be displayed with high speed data collection [
1,
2]. ERT can be applied to several fields that could benefit from its property of being non-invasive, low cost of the required hardware system and good mobility. In this case, EIT has been applied to many aspects of the medical field, such as, lung [
3], brain [
4], and breast [
5] imaging, and also in the geophysical research applications, for instance in works about the study of infiltration and evaporation processes of porous media using EIT and the magneto-electrical resistivity imaging technique (MERIT) described by Haegel and Zimmermann [
6], and the study of moisture flow in cement-based materials [
7,
8], where in [
7], a mortar sample has been used to perform an experiment conducted in order to find out the feasibility of quantitatively monitoring this aspect the using 3D EIT, and authors of [
8] investigated the capability of EIT of testing fluids of different flow rates and viscosities.
Electrical tomography and cross-correlation-based flowmeters are ideally suited for measuring multiphase flows and have been adopted in the past few years [
9]. Many applications have been suggested, for example, Gurau and Vassallo [
10] proposed the use of cross-correlation to calculate the phase velocity of a two phase air-water flow, from the output signals of hot-film probes, and Saoud and Mosorov [
11] utilised cross-correlation with ECT in velocity measurements of gas/solid swirl flows.
We are particularly interested in a two-phase flowing system of liquid and heavy oil. In this case, an oil drop breaks away from the core and sinks to the inner wall of the pipe. With the accumulation of oil dropping down, the pipeline can potentially become blocked. It is expected that the location of such an occurrence inside the pipe can be found using the ability of ERT ‘to see inside’. When the fluid is transported, an average flow speed can be reconstructed with the position of the inclusion. If the sticky oil is attached to the pipe, the flow speed would be gradually slowed down. With the measurement of the velocity profile, this situation could be recognized and amended promptly. The ERT image can also provide information about the location of the oil-phase in the pipeline.
Some of the previous studies about velocity profiles were based on 2D ERT with a dual-plane model, where a double-channel ERT system was applied and cross-correlation between output signals obtained from two electrode channels was used. Deng and Dong [
12] designed a dual-plane system for the measurement of gas and liquid bubbly flow. With the extracted eigenvalue of the data from the gas/liquid flow in the vertical pipe, the dispersed phase velocity was measured accurately by Dong and Xu [
13]. Wu and Li [
14] compared the dynamic distribution and velocity among different flow regimes. However, the flow being measured is a 3D structured object, in other word, 2D modelling and measurement methods are a simplification. Many efforts have also been made for 3D imaging with electrical tomography methods such as ECT [
15,
16] and ERT [
17], however, for many cases, especially ERT, 2D imaging techniques are always considered for practical use due to the features of long operation time, more sensitivity to error and the high complexity of 3D ERT imaging [
18]. However, in some special cases, the information in the z-direction is quite important and the simplifications of the 2D method may not be enough to describe what we are expecting, for example, when a 3D visualization of the object is expected, or we want to track the movement of an irregular inclusion inside a flow. In this case, 3D measurement methods are necessary [
19].
In this paper we present a new method using a single-channel ERT system in a temporal 2D imaging mode for 2D flow visualization and angular speed, and in temporal 3D ERT (4D) mode for axial velocity measurement. A novel spatiotemporal TV algorithm is adapted for dynamic flow visualization for ERT reconstruction together with a cross-correlation for velocity profile calculation. To assess the proposed method, a series of images were reconstructed with the temporal TV algorithm. Cross-correlation was used afterwards for calculating the flow parameters. In order to analyze the cross-correlated result, the actual speed was measured experimentally and the relative error was calculated and further discussed.
2. Method
For a general ERT model, the sensing field is a bounded domain, where electrodes are normally attached to its boundary. The electric field and current flux are generated via electrodes with excitation current applied successively, and voltage data are measured from the boundary of domain from the remaining pairs of electrodes. The conductivity distribution will then be reconstructed via boundary data using a mathematical algorithm, where a forward problem and inverse problem are developed.
2.1. Forward Problem
The forward problem of ERT is the process of calculating the voltages via a known conductivity distribution, where a numerical technique, finite element meshing [
20], is utilised to discrete the domain of interest and to calculate the potential as a forward solver. In an ERT system, an electrical field is generated via electrodes by injecting an electrical current into the boundary and measuring boundary voltages. Given the electrical conductivity
and electrical potential
u, the forward model for ERT is given by Laplace’s equation:
Boundary conditions and electrode model must be considered in a forward model. The boundary condition was introduced due to that the electrodes are inevitably attached to the boundary of the sensing field for a conventional ERT model [
21]. The current density is given by (2) with Neumann boundary conditions:
where
is outward unit normal.
To choose an appropriate current
J, a choice of electrode model must be made. Four different models, the ‘continuum model’, ‘gap model’, ‘shunt model’ and ‘complete model’, have been proposed and investigated previously. The complete electrode model (CEM) combined the first three electrode models, and considering constant potential, contact impedance, and the voltage drop on electrodes, and has been used as a constraint of the forward model equation [
22]. Given the CEM equation:
In Equation (3), is contact impedance, is the constant potential on electrodes and donates the voltage drop on electrodes.
The expression of driving current is the integral of the current density on the electrode surface. From (2):
In Equations (4) and (5), N is the number of electrodes and S is the electrode surface.
The charge conservation law is applied to ensure the uniqueness of the solution of the EIT forward model [
9]:
The forward operator F is then defined as a map from the conductivity distribution to the measured boundary voltage u, that is,.
2.2. Inverse Problem for Flow ERT
The linear inverse problem in ERT can be defined as the recovery of a change in conductivity
from a change in measured boundary voltage
, where
. The Jacobian
J is computed by the Fréchet derivative of
u with respect to
[
23]. In this case, a reference boundary voltage
is available, where
,
, and
In flow imaging, the unknown conductivity changes and data are 4D objects. Let’s redefine
and data
, where
, for
and
I is the number of temporal frames. It is common to recover each frame independently but this is not optimal, as it does not exploit redundant information across frames. In this case, previous works have defined the inverse problem as follows [
24]:
where
is a convex regularization functional that carries a priori information of the unknown conductivity distribution for a single frame.
2.3. Spatiotemporal Total Variation Algorithm
In this paper, we propose a spatiotemporal reconstruction framework that exploits regularization. We chose spatiotemporal total variation, as ERT images can be well approximated by a piecewise constant function and consecutives frames are expected to be similar. This allows to exploiting redundant information across consecutive frames. The spatiotemporal total variation problem can be written as follows [
25,
26]:
where first and second terms correspond to isotropic spatial TV and temporal TV functional, respectively, and where
represents a 4D conductivity distribution and
is an augmented Jacobian operating on a acts in a frame-by-frame basis.
The constrained optimization problem (7) can be solved using the split Bregman formulation, which efficiently handled constrained optimization and L1-regularization [
27,
28]. Using the Bregman iteration, the constrained problem (7) is converted to an iterative scheme:
where (8) is an unconstrained optimization problem and (9) is a Bregman iteration that imposes the constraint iteratively. The cost function in (8) is still hard to minimize given the non-differentiability of the TV functional, but this can be easily done with a splitting technique. Including auxiliary variables allow splitting L1- and L2-functional in such a way that they can be solved in separate steps in an easy manner. Images
are given analytically by solving a linear systems and L1-functional are solved using shrinkage formulae. To perform the split, we include
, so Equation (8) becomes
Constraints in Equation (10) can be handled using the Bregman iteration as above, which leads to the following iterative scheme:
Equation (11) is a linear system that can be solved efficiently using a Krylov solver [
25,
26,
29], such as the bi-conjugate gradient stabilized method, which involves only matrix-vector multiplications. The number of Bregman iterations and other imaging parameters are selected empirically.
2.4. Cross Correlation for Velocity Profile
The technique has been adopted to calculate the velocity is pixel-pixel or voxel-voxel cross-correlation for 2D and 3D, which produces the velocity between pixels of a cross-section or voxels from different ‘layers’. Cross-correlation is actually working out the transit time between two output signal vectors generated from pixels or voxels, and velocity calculation would be available with the known distance. From [
2,
5], in terms of the problem mentioned in this paper, the discrete cross-correlation function of series
and
is defined as follows:
where signals
and
are corresponds to the characteristic value vectors from two different image matrixes that the cross-correlation applied to.
N is the length of vectors, and
gives time-step.
The cross-correlation procedure that has been used in this paper has the following steps:
Definition of each pixel or voxel by domain division.
The characteristic value extracting from each pixel or voxel (in this paper, the characteristic value is given by an average value).
Characteristic value vectors are composed from pixels or voxels.
Pixel-to-pixel cross correlation or voxel-to-voxel cross correlation conducted by function (18).
Plot the result of cross correlation, and the peak will correspond to the transit time.
The acquired transit time
corresponds to the peak of the plotted cross correlation function
. For the case of 16 pixels (2D) and 27 voxels (3D), the velocity profile is given by [
5]:
In this paper, the average speed of the moving inclusion was calculated and made comparison between different algorithms. In this case, the speed is given by:
where
Height is given by the size of
z-axis of the defined domain, as showing in the
Figure 1.
3. Results
In this section, the set up and procedure of simulation and experiment in both 2D and 3D situations are demonstrated in details, and the results of each part, including reconstructed images and speed calculation, are displayed and will be further discussed in the following section. The purposes of this section are feasibility analysis on dynamic model monitoring and velocity profile measurement. The proposed temporal TV algorithm will be used for reconstruction with consecutive frames containing time-related information. In addition, pixels and voxels, in both 2D and 3D case, will be defined as a specific area in each frame, where the output signal from each of them is composed with extracted characteristic values from every frames. Moreover, the pixel-pixel and voxel-voxel cross correlation for 2D and 3D cases could be made with these characteristic value vectors in order to work out the speed. Here we describe software flow diagram for simulated and experimental data.
Software process with simulation data:
Setting up shape and size of the domain, electrode (size, number and locations),
Selection of excitation and measurement method
Set up the conductivity value of background () and inclusion ()
Set up the movement of the inclusion
Solve boundary data based on FEM
Jacobian calculation (J)
Image reconstruction based on proposed method
Using cross correlation to find out the transit time ()
Feasibility analysis of speed calculation ()
Software process for experimental procedure:
Phantom design according to the setting up
Data acquisition (),
Image reconstruction based on proposed method using J
Using cross correlation with thresholding data to find the transit time
Calculation of the speed of the moving inclusion with the transit time
3.1. Simulation in 2D
The 2D simulation test was setting up that the inclusion was moving continuously along a circle with a constant angular speed within a 2D circular model, where a 16-electrode ring was applied. The migration path was divided into many steps, where 200 locations were selected homogenously along the path for image reconstruction on each location. The aim of this test is to investigate whether the movement is detectable, and the feasibility of working out the speed. The forward model was constructed using EIDORS, where the injected current was setting at 1 mA, and semi diameter of the sensing field and the movement path are 7 cm and 5 cm with 1.5 cm radius of the circular inclusion. The conductivity of the background and object are 1 and 0, respectively. In order to calculate the velocity distribution through the pixel-pixel cross correlation method, each frame of the image was divided into 16 pixels for characteristic value extracting. The distribution of the pixels is shown in
Figure 2a. In
Figure 2b, the movement of the inclusion is demonstrated, and some reconstructed images using proposed algorithm are displayed in
Figure 3. Some plots of cross correlation result and corresponding pixels are showing in the
Figure 4, in which the first four plots on the top represent the cross-correlation result plots, and the ones below show the plots of the corresponding pixels. These plots show the dynamic change of the object movement within each pixel. Satisfactory results are displayed in the top four plotted images and the frame number related with each peak value are consistent with the corresponding two pixel plots below them.
The transit time could be reflected from the frame number of the peak, as shown in
Figure 4, where the time-step between adjacent frames is known, and angular speed calculation is attainable. As a result, it is verifying the feasibility of movement monitoring and speed calculating with the proposed algorithm. In the following part, some results from real data will be discussed.
3.2. Experiment in 2D
In this part, a series of data were collected from the continuous movement of the inclusion. The phantom adopted (showing in
Figure 5), is a cylinder shaped transparent glass container with an inner diameter of 14 cm, and a height of 25 cm. Rectangular shaped stainless-steel sheets (4 cm × 3 cm) were used as electrodes. Screws were utilized for the purpose of connection and fixing on the phantom properly. An extra screw was installed on the wall above the electrode ring to connect with the ground wire with the data collection system. To be consistent with the simulation, the model is kept to be the same size and same way of circular movement. In the 2D experiment, a plastic bar was used as an inclusion and it was moving continuously along the inner wall of the phantom anticlockwise with R = 5 cm until it came back to the origin. There were 70 frames collected from the ERT KHU Mark 2.5 data collection system (Kyung Hee University, South Korea) with an injected current of 100 µA and 11.25 KHz, where neighboring excitation and measurement method were used and 208 individual voltages in total were collected for each frame. The current injection pattern and voltage measurement pattern are summarized in the
Table 1. In this case, 70 corresponding images are produced. As mentioned in the 2D simulation, Temporal TV algorithm was used for reconstructing images for proposes of movement monitoring, and angular speed calculation was conducted by cross correlation.
The pictures in
Figure 6 show the result of the reconstruction (only six frames are displayed here for illustrating the monitoring performance). The objects displayed in images got slight bigger and overlapped compared with the case of simulation, which would be caused by the generation of inter-frame data from the dynamically moving inclusion. In terms of the plotted line graphs of 16 pixels (
Figure 7), they display that the inclusion is moving from a location within pixel 12, then experienced most of the pixels (can be found from the peak value) along the phantom edge sequentially until it come back again at its origin, which demonstrates the monitoring purpose was achieved. The cross-correlation result is shown in
Figure 8, where the peak value indicates that 51 frames were collected while the bar was moving through the whole circle. The transit time is 10.71 s, which could be given by the system data collection speed. Assuming the moving route was a proper circle, the angular speed can be calculated using 360 degrees and the corresponding transit time. The details of the speed calculation and error study are discussed further in
Section 4.
3.3. Simulation in 3D
In the 3D simulation test, a 16-electrode cylindrical 3D model with two rings of eight electrodes were constructed, where the size of each electrode is 3 cm 4 cm. Two rings were located at a height of 9 cm and 16 cm, respectively. A neighboring data collecting method was selected for current excitation and voltage measurement. The forward model was built using EIDORS and 3D mesh was generated by NETGEN, where the injected current was setting at 1 mA. The inclusion has been simulated is a sphere with a radius of 1 cm, and the conductivity value was setting at 0 (non-conductive), while we set the conductivity value of the background at 1.
In the vertical direction, 71 locations of the inclusion were chosen evenly between (5, 0, 16) and (5, 0, 9), where it was assumed that the sphere was dropping 0.1 cm each step, and a frame (208 independent measurements) of the image is produced split into 27 voxels (3 × 3 × 3). A drawing of the experimental phantom and voxels distribution is shown in
Figure 9a,b respectively. The cross-correlation procedure for 3D is similar to the 2D one. For all voxels, a vector of length 71 (number of frames) could be composed by 71 average values from each of the frames, and there were 27 vectors generated in total. Frames are time-related with each other, and the data collection speed of the ERT system and the overall velocity of the movement are both constant, hence, 27 signals are generated. With the cross-correlation method, the transit time between two different voxels comes to be available from signals of different voxels, and the overall flow speed could be calculated with distance.
The aim of this test is to find out the feasibility of monitoring and velocity measurement in a 3D model. Based on the simulation set up described above, 3D image reconstruction was conducted by the temporal TV algorithm. The reconstruction results are shown in
Figure 10, where the overall situation of the sphere movement was being monitored as expected as the object is moving down. We can see that the object is moving down gradually with the translocation of the inclusion, which demonstrates the good performance of temporal TV, although the objects in the middle seems weaker than the ones located on the top and the bottom.
Compared with 2D ERT reconstruction, it is obvious that the conductivity value of the object (referring to the color bar) was varying with as the location of the inclusion was going downwards, especially those that are located in the middle close to the center in the visualization domain, are suffer especially from low resolution. When the inclusion is on the top and bottom of the domain, the color of the objects from the images indicates a more non-conductive character of the inclusion, and the character weakens when it came to the middle area, although the inclusion was always the same. The reason of this appearance could be that the intensity of the electric field in the center area is relatively weaker than the area closer to the electrodes where the current is injected. The effect of noise (that could potentially be produced from contact impedance and system measurement error, especially in the experimental test), could weaken the character of the movement, which may lead to less accurate result of cross-correlation in 3D. To eliminate noise, some unexpected measurement errors need to be removed, and thresholding is needed before the cross-correlation, where binary image values were used instead of decimal data. In this case, 0 and 1 will be the only two values to appear in the matrix of the reconstructed images.
In
Figure 11, the output vectors of 27 voxels from 71 frames are plotted, which illustrate the moving process of the object within the simulated phantom. From the plot of vox1
8, vox2
8, and vox3
8, it could be seen that the characteristic value is fluctuating, which could be understood as the process of how the inclusion was entering and leaving the specific voxels. The plots of signals from other voxels are a parallel line and the value remains at 0, which indicates the sample did not go through them and this is consistent with the set up of the simulation test. For cross-correlation of a 3D case, the distance in function (20) is a known constant and determined by the size of height as we defined the sensitivity map (
Figure 9b). Considering that the object is moving from vox1
8 to vox3
8, the required time could be calculated from the peak value of the cross-correlation plot between these two voxels since the object is moving downwards from vox1
8 to vox3
8. Hence, the speed calculation would be achievable.
Figure 12 shows the result of the cross-correlation.
This 3D simulation test discussed the performance of sample movement monitoring via 3D image reconstruction of the simulated dynamic movement of the sphere, and speed calculation using the proposed method. It is verified that temporal TV could meet the requirements discussed in this paper. In the next part, some results from real data will be shown, and the calculated speed result will be illustrated and analyzed in
Section 4.
3.4. Experiment in 3D
The phantom used for the 3D experimental test is designed as a 16-electrode cylinder container with a height of 25 cm and diameter of 14 cm and using the same material with all components as the 2D one. Two rings of eight electrodes (3 cm × 4 cm rectangular-shaped) are fixed on the wall of the sensor at a height of 9 cm and 16 cm, respectively, which is consistent with the situation of the simulation test. A small plastic bottle filled with sand was used to stand in for a dispersed phase and tap water was poured into the phantom as a continuous phase. To create a relative movement, the bottle was controlled to move up and down continuously using a string that connected with the bottle. As shown in the pictures, the bottle was released down and pulled up vertically (starting from the water surface). During the movement, it was on the left-hand side and close to the inner wall of the sensor. The data collection system and method are identical as mentioned before, and the driving frequency was set to be 10 KHz.
Figure 13 shows the 3D experimental phantom and the inclusion.
During the experiment, there were periods where the bottle movement happened, and 200 frames were collected. The pictures shown in
Figure 14 illustrate the whole movement process. Compared with the reconstructed images of the simulation test, it seems that experimental test obtained a slightly degraded result. However, during the simulation, a certain location of the object corresponds to the calculated boundary voltage data, which contributes to a frame of the image. For the 3D reconstruction of the experiment, the real boundary data is measured by a data collection system, and is coming from the dynamic movement of the bottle. It is worth emphasizing that the time required to measure the data of each frame could not be neglected, whereas the simulation did. During this time interval, the bottle was still keep moving, which leads to inter-frame data being produced.
The plots of voxels are displayed in the
Figure 15, which demonstrate how the movement of the inclusion affects individual voxels. The first few frames could be ignored as the bottle had not started to move, and it is actually the background data which are plotted and would not affect the velocity profile result. Since the real data of the 3D experiment contains more unexpected noise, the reconstructed results shown in
Figure 14 are not as good as in the 2D case. To eliminate the unwanted factors, as what was doing in the 3D simulation, thresholding was conducted.
The voxels used for the cross-correlation calculation in
Figure 15 are from the top voxels layer and bottom voxels layer which correspond to the case that the object was moving through this space. The peak value of the function indicates the moment that two signals have maximum similarity, which gives the transit time of the object moving from the top to the bottom. In the case of
Figure 16, the transit time corresponds to 86 frames. The average movement speed could be calculated with the known data collection speed of the system and the distance that is defined by the sensitivity matrix. The result will be shown and analyzed in the next section.
4. Discussion
In this section, all of the results of both 2D and 3D experimental tests, including the reconstructed images and results of velocity are summarized. The quality of the images are discussed and the cross-correlated results using the proposed spatiotemporal TV algorithms are presented, where the relative errors of the speed are calculated, and further analysis are carried out.
Table 2 shows the speed results. The cross correlated average angular speed is given by the expression 360
/(Transit time
System speed). The speed in this section is the angular speed due to the circular movement of the plastic bar, while the measured time of the whole process, which is 10.8 s and stands for the length of time that the inclusion moves through the whole circle (360°) was determined by a timer, and then the real average angular speed could then be calculated with the formula 360
/(Measured time
System speed).
In the 3D experiment, as shown in
Table 3, the distance used for calculations was the distance between the top voxel layer and the bottom voxel layer, which is defined as 13 cm. It was calculated that the transit time was 17.85 s from the number of frames given by the peak of the cross-correlation plot. The cross-correlated speed and real speed are given by 0.76 and 0.73, respectively, which gives a 4% relative error.
The 2D and 3D images have been shown in the previous section. It worth noticing that the reconstruction results from simulation and experiment might be different. It needs to be pointed out that the dynamic model is more complicated than a static one as the sample is actually kept moving at any moment, which would affect the data measurement. In the simulation part of both, it was assumed that the boundary data corresponds to a specific location of the sample although what has been simulated is a dynamic model. However, for a real dynamic situation, the location of the sample keeps changing while that frame of data was being measured, which leads to the circumstance that the data are overlapping.
In terms of the image reconstruction quality, the proposed algorithm has a good performance in the 2D test (shown in
Figure 2 and
Figure 5). By contrast, the object of the experimental images got slightly overlapped compared to the simulation ones, which could also be for the reason stated above. In the 3D simulation and experiment test, the sample movement could be monitored properly although the ones in the middle area are seems relatively weaker than the ones close to rings. Images produced in experiment are still acceptable despite the inter-frame data generated.
In conclusion, the method of flow measurement using ERT with the proposed algorithm is validated by 2D simulations and experimental tests. For the case using 3D ERT, even if the reconstructed images are not as good as in the 2D case and suffer from the problem of inter-frame data, however, a low speed data collection ERT system were used and the simulation study result still shows good performance. The speed measurement result of experimental test is controlled below 4%, which is still acceptable and proved that the speed measurement using the technique of 2D and 3D ERT with spatiotemporal TV algorithm combined and cross correlation is achievable, and the result could potentially be upgraded with a faster ERT data collection system. The cross-correlated result accuracy is actually determined by the images. The quality of a reconstructed image would be quite important and must be upgraded, which is always a challenging topic to study. In further work, in terms of the proposed algorithm, a more effective parameter selection method could be further studied in order to reconstruct images in a more time-efficient way. To eliminate the negative effect of inter-frame data, the time interval of boundary data collection should be shortened, in this case, the data collection system would be required to be fast enough.
5. Conclusions
Velocity profile measurement using a high speed two-channel 2D ERT and cross-correlation between two separate rings has been investigated for a few decades due to its fast implementation in the industrial field. Since flow is a three-dimensional concept, using 2D ERT to obtain consecutive cross-sectional slices may ignore some occurrences in the flow pipe. In this case, it is desirable to combine the measurement method with a 3D reconstruction technique, so a single multi-plane ERT can provide 3D flow velocity information. With a series of phantom experiments, the measurement method based on 2D ERT was tested and validated, and the speed measurement method based on 3D ERT using a spatiotemporal TV algorithm combined with a voxel-voxel cross-correlation method is proposed. The reconstructed images showed the feasibility of the speed measurement of a dynamic sample in 2D and 3D. The process reconstruction of 2D shows great performance with the proposed algorithm. A slightly degraded result in 3D experiments was shown, and the reasons, as stated in the Discussion section, could be due to both insufficient time resolution and the inter-frame data generation. Noise produced in the experiments can also be an influencing factor to degrade the image quality. In this paper, all the experiments were conducted by using an experimental tank with a manually moved inclusion instead of real two-phase flow, so the test is done in a semi-dynamic setting, making it much more robust compared to fully static tests and making the presented results a very useful method for flow measurement and interior flow system monitoring.