원시데이터 수집 시스템
선정목록으로

A Multifunctional Sensor in Ternary Solution Using Canonical Correlations for Variable Links Assessment

관련 산업용 섬유 · (9) 타이어코드

기본 정보

저자
  1. Dan Liu — Harbin Institute of Technology, School of Electrical Engineering & Automation, Harbin 150001, China
  2. Qisong Wang — Harbin Institute of Technology, School of Electrical Engineering & Automation, Harbin 150001, China
  3. Xin Liu — Harbin Institute of Technology, School of Transportation Science and Engineering, Harbin 150090, China
  4. Ruixin Niu — Department of Electrical and Computer Engineering, Virginia Commonwealth University, Richmond, VA 23284, USA
  5. Yan Zhang — Harbin Institute of Technology, School of Electrical Engineering & Automation, Harbin 150001, China
  6. Jinwei Sun — Harbin Institute of Technology, School of Electrical Engineering & Automation, Harbin 150001, China
DOI
10.3390/s16101661
저널
Sensors
발행년도
2016
발행기관
Multidisciplinary Digital Publishing Institute
피인용수
3
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.3390/s16101661
토픽
Analytical Chemistry and Sensors
OpenAlex ID
W2538796356

평가 내용

관련도
관련
사업분야
산업용 섬유 · (9) 타이어코드
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '산업용 섬유 > 타이어코드' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Accurately measuring the oil content and salt content of crude oil is very important for both estimating oil reserves and predicting the lifetime of an oil well. There are some problems with the current methods such as high cost, low precision, and difficulties in operation. To solve these problems, we present a multifunctional sensor, which applies, respectively, conductivity method and ultrasound method to measure the contents of oil, water, and salt. Based on cross sensitivity theory, these two transducers are ideally integrated for simplifying the structure. A concentration test of ternary solutions is carried out to testify its effectiveness, and then Canonical Correlation Analysis is applied to evaluate the data. From the perspective of statistics, the sensor inputs, for instance, oil concentration, salt concentration, and temperature, are closely related to its outputs including output voltage and time of flight of ultrasound wave, which further identify the correctness of the sensing theory and the feasibility of the integrated design. Combined with reconstruction algorithms, the sensor can realize the content measurement of the solution precisely. The potential development of the proposed sensor and method in the aspect of online test for crude oil is of important reference and practical value.

본문 55,433자

본문 펼치기
# _sensors_ _Article_ ## A Multifunctional Sensor in Ternary Solution Using Canonical Correlations for Variable Links Assessment Dan Liu <sup>1,</sup> *, Qisong Wang <sup>1,</sup> *, Xin Liu <sup>2</sup> , Ruixin Niu <sup>3</sup> , Yan Zhang <sup>1</sup> and Jinwei Sun <sup>1</sup> 1 Harbin Institute of Technology, School of Electrical Engineering & Automation, Harbin 150001, China; zyhit@hit.edu.cn (Y.Z.); jwsun@hit.edu.cn (J.S.) 2 Harbin Institute of Technology, School of Transportation Science and Engineering, Harbin 150090, China; xinliu@hit.edu.cn 3 Department of Electrical and Computer Engineering, Virginia Commonwealth University, Richmond, VA 23284, USA; rniu@vcu.edu * Correspondence: liudan@hit.edu.cn (D.L.); wangqisong@hit.edu.cn (Q.W.); Tel.: +86-451-8641-3621 (ext. 809) (D.L. & Q.W.) Academic Editors: Pak Kwong Chan and Holden King-Ho Li Received: 30 July 2016; Accepted: 30 September 2016; Published: 21 October 2016 Abstract: Accurately measuring the oil content and salt content of crude oil is very important for both estimating oil reserves and predicting the lifetime of an oil well. There are some problems with the current methods such as high cost, low precision, and difficulties in operation. To solve these problems, we present a multifunctional sensor, which applies, respectively, conductivity method and ultrasound method to measure the contents of oil, water, and salt. Based on cross sensitivity theory, these two transducers are ideally integrated for simplifying the structure. A concentration test of ternary solutions is carried out to testify its effectiveness, and then Canonical Correlation Analysis is applied to evaluate the data. From the perspective of statistics, the sensor inputs, for instance, oil concentration, salt concentration, and temperature, are closely related to its outputs including output voltage and time of flight of ultrasound wave, which further identify the correctness of the sensing theory and the feasibility of the integrated design. Combined with reconstruction algorithms, the sensor can realize the content measurement of the solution precisely. The potential development of the proposed sensor and method in the aspect of online test for crude oil is of important reference and practical value. Keywords: multifunctional sensor; ternary solution; content measurement; canonical correlation analysis 1. Introduction According to the theory of hydrocarbon generation, extracted crude oil usually contains amount of salt and water because the thickly oil-covered earth always appears along with salt and water layer [1]. Most of the salts are inorganic and water-soluble, and are mainly the chloride of the alkaline-earth metals. Water in oil exists in three different states: suspended, emulsified, and dissolved [2]. The presence of salt and water affect crude oil mining, refining, and marketing directly. This is the reason that crude oil must be dehydrated from the oil field before its transmission. Even so, the oil in the refinery still contains certain amounts of salt and water [3]. As a matter of fact, crude oil mixed with too much water could increase heating consumption and lead to instability in the procedure of distillation. The salt in the crude may also cause damage by generating highly corrosive hydrochloric acid. Furthermore, salts may deposit and form salt fouling on the pipe wall, which can not only reduce the thermal efficiency, but also increase the flow resistance and even block the pipe [4]. In addition, catalyst poisoning sometimes appears due to the existence of water and salt. Consequently, before being fed into refining machine, crude oil has to be dehydrated and desalinated. Accurate and timely _Sensors_ 2016, _16_, 1661; doi:10.3390/s16101661 [www.mdpi.com/journal/sensors](http://www.mdpi.com/journal/sensors) _Sensors_ 2016, _16_, 1661 2 of 16 measurement of moisture content and salt content is one of the important requirements in processes such as oil production, storage, transportation and refining. It is of great significance for locating the oil layer, estimating the output, predicting the life of oil well, improving the transportation method and developing the refining technology. Meanwhile, reliable data on water and salt concentrations may give an indication of the working status of the oil well. It also helps reduce energy consumption and realize efficient management of oil field [5]. At present, there are many methods to measure salt concentration in crude oil, among which the most representative ones are microcoulometry [6], conductometry [7,8], and potentiometric titration [9]. Microcoulometry is a time-consuming and inconvenient method. It can be affected by external factors easily because of the tedious operation and the strict requirement of experiment. Conductometry is one of the most popular methods and is currently used in evaluating the effects of flow pattern and salinity of oil-water two-phase flow on water holdup measurement [8]. However, it is mostly applied to the extract of crude sample for offline measurement. This shortcoming makes it available only for laboratory conditions and restricts the extensibility greatly. As for potentiometric titration, the titrimetric efficiency depends on the quality of electrode and is highly demanding for operators’ experience. Thus, it is only suitable for experienced professionals. Similarly, measurement methods of oil concentration in crude oil are well developed nowadays. They can be divided into two classes roughly: offline measurement and online measurement. The former contains Distillation [10], Near-infrared (NIR) [11], Ultrasound [5,12], and Coplanar Waveguide (CPW) [13]. The common drawback of these methods is manual sampling, which is always coupled with randomness and failure to indicate the change of oil concentration timely. It is even more inappropriate to apply these measurement methods to dispersive oil wells, especially in poor weather conditions. The developments of the methods are greatly restrained for being unable to meet the needs of automatic production and management. The online measurements represented by Hydrometer [14], γ-ray [15,16], Capacitance [1,17–19], and Microwave [20] methods behave much better in this aspect. However, these methods have their own weaknesses. For example, Hydrometer method has the problem of low accuracy for sand-containing oil. Furthermore, the hydrometer installation is very rigorous for being sensitive to the external environment. These problems can be very difficult to overcome. γ-ray method works based on the difference of γ-ray absorption between oil and water. The relatively small difference determines that the water content measurement will inevitably suffer from low precision. Additionally, this method has other disadvantages of radiation pollution, high cost, and poor accessibility. Oil content measurement based on Capacitance method takes the advantage of significant permittivity difference between water and oil. In the past two decades, Electrical Capacitance Tomography (ECT) has been developed, aiming for multi-phase flow measurement. It is useful in monitoring the parameters of the non-uniform flows including the Water-in-Liquid Ratio (WLR), the thickness of liquid layer and the position of the gas core [19]. However, the lack of flexibility of the measurement range destines that it is only suitable for the oil field with oil content lower than 30%. As for the Microwave method, it is also not very popular for the reason of high cost, as well as inconvenient usage and maintenance. With development of oil production and management, the demand for efficient salt and oil content measurement techniques is becoming more and more urgent [8,9,13]. For instance, improvement of the measurement efficiency makes it possible to shorten the logging period and assess the status of oil well timely. Increasing sensing accuracy can offer more reliable data to the management. To suit the needs of modern industrial automation, the online measurement of salt and oil content has to evolve as well. To meet this demand, this article proposed a novel sensing method of ternary solutions composed of water, oil and salt. Conductivity method and ultrasound method are adopted, respectively, for estimating the oil and salt concentration in the solution. Traditional multi-parameter measurement is usually fulfilled with the joint efforts of several sensors, which might be bulky, complicated and have high-power consumption. In order to overcome the shortcomings, multifunctional sensor based on cross sensitivity theory is applied by combining the two parts of transducers so that the measurement _Sensors_ 2016, _16_, 1661 3 of 16 mission can be accomplished with fewer devices. It is theoretically possible that the input signals of the multifunctional sensor, coupling with signal reconstruction algorithm, would be calculated reversely to achieve the measurement online. The proposed method provides a very promising solution to the problems of precision, realtimeness, and automation, which are encountered by the existing methods. The contributions of this paper mainly focus on the following aspects. First of all, a novel multifunctional sensor is designed and manufactured for concentration measurement of the ternary solution, which is made up with oil, salt, and water. Secondly, Simple Correlation Analysis (SCA) and Canonical Correlation Analysis (CCA) are applied to quantify the relationship between the input and output signals of the sensor for the purpose of verifying the rationality of the design. At last, a signal reconstruction method is applied to estimate the sensor inputs using the outputs, which proves the effectiveness of its usage. The paper is organized as follows. In Section 2, we introduce the structure of the multifunctional sensor and the measurement principle of the solute concentration in the ternary solution. In Section 3, the experiment design and data acquisition are proposed. In Section 4, we formulate the derivation of Canonical Correlation Analysis. In Sections 5.1 and 5.2, we present the analysis results for the sensor data based on SCA and CCA methods, respectively. In Section 6, a signal reconstruction method based on Support Vector Machine and the corresponding reconstructed results of the sensor are introduced. In Section 7, we give a conclusion about the experimental result of the multifunctional sensor. 2. Structure of the Multifunctional Sensor The multifunctional sensor is designed to measure the salt and oil concentrations of a ternary solution online. Provided with accuracy and stability, it is able to measure several parameters simultaneously. With compact size, it also possesses excellent characters of corrosion resistance and long service life. The structure of multifunctional sensor is shown in Figure 1 and mainly consists of several parts: substrate (acrylic resin plate, 3 mm thick, 56 mm in diameter), conductivity electrodes (stainless steel, 0.5 mm thick, 25 mm in diameter), piezoelectric transducer (piezoelectric ceramic, 2 mm thick, 13 mm in diameter), thermometer (platinum resistance, 50 mm long, 4 mm in diameter), and support beam (acrylic resin plate, 45 mm long, 4 mm in inner diameter and 8 mm in outer diameter). The sensor has two functions: one is ultrasound-based velocimetry, and the other is conductivity sensing. The ultrasound transducer works in the mode of pulse-echo. By applying AC voltage to the piezoelectric (PZT) material (component 3), an ultrasound (2 MHz sine wave) will be generated from the bottom of the sensor. The wave will travel through the water and reach the upper plate (component 2). After rebound by the upper plate, it will finally return to the PZT and motivate AC voltage according to theory of inverse piezoelectric effects. Based on the output electrical signal, Time of Flight (TOF) could be calculated and recorded. Then the ultrasound speed can be achieved with the known length of wave path, 2 _d_ . The test of conductivity is enabled by using the stainless steel electrodes, which, shown as element 1 in Figure 1, are embedded in the acrylic resin substrate (component 1). If the electrodes are applied by a constant electric field, a stable current will occur between them. Thus, it is easy to obtain the resistance and the conductivity of the solution with the measurement of the voltage difference. Since the effects of temperature on ultrasound speed and solution conductivity should not be neglected, a thermometer is installed on the sensor. Considering the asymmetry of temperature, we chose a thermistor probe (component 4) and bolted it between the substrate, which is also used to stabilize and balance the sensor with the support beam (component 5). The sensor is capable of measuring multiple parameters including ultrasound speed, conductivity and temperature. Based on the nonlinear relationship between the input parameters (salt concentration, oil concentration, and temperature) and output ones (ultrasound speed and solution conductivity), salt content and water content can be both estimated with a proper algorithm in a four-dimensional space. A distinctive feature of the multifunctional sensor is that the electrode plate (component 2), one part of the conductivity transducer, is also used as the reflector of ultrasound. In this way, the ultrasound _Sensors_ 2016, _16_, 1661 4 of 16 sensing and conductivity sensing are aligned perfectly, making it a multifunctional sensor in a real sense. There are two important things to note about the usage of the multifunctional sensor, especially for the measurement of crude oil. One is the ultrasonic attenuation property. Ultrasound decays rapidly in the case that gas bubbles suspend in the oil, which means the multifunctional sensor cannot work under these circumstances. Thus, an online defoaming procedure such as heating, stirring, or defoamer addition must be conducted before the measurement. The other thing is that heterogeneous distribution of oil and water are very common in crude oil. This phenomenon limits the measurement reliability of both the conductivity sensor and the ultrasound sensor. To achieve credible results, the mixed solution needs to be homogenized by adding emulsifying agents, which could be easily implemented online. Figure 1. Sensor probe: ( 1 ) acrylic resin substrate; ( 2 ) stainless steel electrode; ( 3 ) piezoelectric transducer; ( 4 ) thermometer; ( 5 ) support beam; ( 6 ) ultrasonic transducer wire; ( 7 ) conductivity sensor wire; and ( 8 ) Thermometer wire. _2.1._ _Principle of Conductivity Measurement_ The equivalent circuit of conductivity sensing is shown in Figure 2. The input voltage _Vin_ provided by signal generator is a sinusoidal signal with frequency of 1 kHz and amplitude of 1 V. Because the input impedances of the amplifiers A1 and A2 are both extremely high, the currents flowing through the resistance _R_ 1 and _R_ 2 are close to zero approximately. Since _Vin_ is constant, the relationship between the solution conductance _Gs_ and the current _IGs_ flowing through it can be expressed by: _IGs_ = _VinGs_ . (1) According to the definition of conductivity, we can get the function of conductivity _σ_ and _IGs_ shown as: _IGs_ = <sup>_<u>Vin</u>_</sup> _K_ <sup>_<u>in</u>_</sup> (2) _K_ <sup>_σ_</sup> <sup>,</sup> with _K_ standing for the conductivity cell constant. To facilitate the measurement, reference resistance _Rre f_ is plugged into the input of the amplifier A2 to generate a stable current _IGs_ . Because the current passing through the resistances _R_ 1 and _R_ 2 are near to zeros, there is little voltage on them. Based on the principle of dummy short, _VGs_, the voltage on _Gs_, is nearly equal to _Vin_, then we get: _<u>Vr</u>_ _IGs_ = _Rre f_ = <sup>_<u>V</u>_</sup> _K_ <sup>_<u>in</u>_</sup> <sup>_<u>V</u>_</sup> _K_ <sup>_<u>in</u>_</sup> <sup>_σ ≈_</sup> <sup>_<u>V</u>_</sup> _K_ <sup>_<u>Gs</u>_</sup> (3) _K_ <sup>_<u>Gs</u>_</sup> <sup>_σ_</sup> <sup>,</sup> namely: _<u>K</u>_ _σ_ = _Rre f Vex_ _Vr_ . (4) _Sensors_ 2016, _16_, 1661 5 of 16 As shown in Equation (4), the conductivity of the solution is proportional to output voltage _Vr_ . Since the parameters such as _Rre f_, _K_, and _Vin_ are constant for an identified solution, _Vr_, in practice, may reflect the variance of conductivity _σ_ . Thus, we take the output voltage _Vr_, instead of _σ_, as one of the outputs of the multifunctional sensor in the following experiment. Figure 2. Equivalent circuit of conductivity measurement. _2.2._ _Principle of Ultrasound Speed Measurement_ As shown in Figure 1, the round-trip distance the ultrasound travels during the time from being generated to arriving at the receiver is fixed at 2 _d_ . Thus, the velocity _vs_ and the time of flight _t f_ conform to: _t f_ = <sup><u>2</u></sup> <sup>_<u>d</u>_</sup> _vs_ , (5) which means that _t f_ is inverse proportional to _vs_ . For the reciprocal relation, we replace the velocity with TOF as the other output of the multifunctional sensor to demonstrate the variation caused by different concentration of the solutes. Figure 3 shows the measurement procedure of TOF. At time _t_ = _t_ 0, the signal generator controlled by the microprocessors generates a signal envelope as shown in Figure 4, which is composed of four cycles of sinusoidal waves with frequency of 2 MHz and amplitude of 10 V. Simultaneously, time-delay circuit is also controlled to initiate its timer and keeps the analog switch closing until _tw_ . During this period, the input signals can reach the piezoelectric material and excite the ultrasonic waves. At the moment _t_ = _tw_, the switch disconnects the path of input signals and then makes the channel CH1 of the oscilloscope receive the echo signals. To make it work, it has to be guaranteed that the delay time lasts longer than the duration of the input signals _te_, namely _tw_ _>_ _te_ . The ultrasound keeps bouncing back and forth between the emitter/receiver and the reflector until it vanishes. Thus, the echo, as a matter of fact, is a pulse train composed by a series of envelope signals. For the sake of accuracy, we regard the time that the receiver catches the first impulse among the echoes as the end of one test. By using level detection circuit, _t f_, namely TOF, shown in Figure 4, can be finally measured and recorded. It is the time lag between emitting and receiving of the ultrasound, and needs to be recorded by oscilloscope manually. Figure 3. Schematic diagram of TOF measurement. _Sensors_ 2016, _16_, 1661 6 of 16 Figure 4. Sketch of transmitted and reflected waves. 3. Experiment To simulate the crude oil containing salt and water, we choose a petroleum derivative, Hydraulan Dot4 braking fluid, for consideration of stability of the mixed solution. The braking fluid dissolves in water so that the solution made of it is homogeneous. All the solutes and solvents are miscible with each other requiring neither stirring nor an emulsifier. In this way, the bubbles accompanied with stirring will never appear, which would scatter and absorb ultrasound tremendously. The excellent dissolution makes sure that the ultrasound sensor works properly and the measurement precision can be improved correspondingly. The first step of the experiment is preparing the gradient solutions. To simulate the actual condition under which it works, we mix water and salt according to the ratios of 96:4, 94:6, 92:8, 90:10, 88:12, 86:14, 84:16, 82:18 and 80:20. After dividing every solution into 9 units, we add the braking fluid of mass fraction of 20%, 27.5%, 35%, 42.5%, 50%, 57.5%, 65%, 72.5% and 80% with reference to the quality of the brine. The second step is collecting the data of the multifunctional sensor. As clear as the descriptions above, 81 samples of solutions are needed throughout the experiment. The procedures of measurement for each sample are the same: put the sample into a thermostat, then record the output voltage and TOF in the condition that the temperature of the sample is steady at 5 <sup>_◦_</sup> C, 15 <sup>_◦_</sup> C, 25 <sup>_◦_</sup> C and 35 <sup>_◦_</sup> C. The final data are drawn in Figure 5. In total, there are 5 parameters of the sensor inputs and outputs, so it is impossible to display all of them in one figure visually. Via dimension reduction, the parameters are divided into two groups and described in Figure 5a,b. Furthermore, therein, Figure 5a shows 4 parameters: salt concentration, oil concentration, solution temperature, and output voltage, and Figure 5b demonstrates the other composition of parameters: salt concentration, oil concentration, solution temperature, and TOF. 2 1.5 1 0.5 0 20 40 39 38 37 36 35 34 5 ℃ 15 ℃ 25 ℃ 35 ℃ 15 80 70 60 50 30 40 20 10 5 0 5 ℃ 15 ℃ 25 ℃ 35 ℃ 20 30 40 50 60 70 80 20 15 10 5 0 ( a ) ( b ) Figure 5. Experimental data: ( a ) Output voltage; and ( b ) Time of Flight. _Sensors_ 2016, _16_, 1661 7 of 16 4. Canonical Correlation Analysis (CCA) In order to illustrate the internal correlations among the parameters of the presented multifunctional sensor, and then demonstrate the correctness of its design and usage theoretically, we conduct a correlation analysis concerning the recorded data. Canonical Correlation Analysis (CCA) [21], similar with Principal Component Analysis (PCA) [22], selects several representative variables from the sets to compose synthesized indicators called canonical variables. Studying the correlation among these canonical variables rather than the groups of the original ones makes more sense and will help us take more rational decisions [21,23]. Given two sets of variables, x and y, with the dimension of _p_ 1 and _p_ 2 under the condition of _p_ 1 _≤_ _p_ 2, we can get:    , E [ z ] = _µ_ 1 _µ_ 2 z = x y (6) Σ = var( z ) = E _{_ ( z _−_ E[ z ])( z _−_ E[ z ]) <sup>T</sup> _}_ = - Σ11 Σ12 Σ21 Σ22 , where Σ represents the variance matrix of z . Σ11 and Σ22 are, respectively, on behalf of those of x and y . Σ12 stands for their covariance with the transpose expressed as Σ21. Define the matrixes, u and v, as the canonical variables of x and y with: - u = a <sup>T</sup> x (7) v = b <sup>T</sup> y, where a and b stand for their eigenvector coefficients. As expected, the correlation coefficient is obtained based on: <u>a</u> <sup>T</sup> <u>Σ12</u> <u>b</u> corr( u, v ) = <u>�</u> a <sup>T</sup> Σ11 a <u>�</u> b <u>�</u> b <sup>T</sup> Σ22 b . (8) Then we need to calculate the coefficients a and b by maximizing: _J_ = max( a <sup>T</sup> Σ12 b ). (9) Amplified or shrunk proportionally, a and b still conform to Equation (9), which means Equation (9) has infinite solutions. To avoid this, it is necessary to add constraints in Equation (13):    a <sup>T</sup> Σ11 a = 1 b <sup>T</sup> Σ22 b = 1 . (10) The calculations of the coefficients could be achieved by constructing Lagrangian equation: _L_ = a <sup>T</sup> Σ12 b _−_ <sup>_<u>λ</u>_</sup> 2 - a <sup>T</sup> Σ11 a _−_ 1 - _−_ <sup>_<u>θ</u>_</sup> 2 - b <sup>T</sup> Σ22 b _−_ 1 . (11) The eigenvalues of corr( u, v ) are achieved in the form of: _λ_ = _θ_ = a <sup>T</sup> Σ12 b . (12) On the premise that Σ11 and Σ22 are invertible, Equation (12) may be simplified as:    Σ11 <sup>_−_</sup> <sup>1</sup> Σ22 <sup>_−_</sup> <sup>1</sup> . (13) 22 <sup>_−_</sup> <sup>1Σ21</sup> <sup>a</sup> <sup>=</sup> <sup>_λ_</sup> <sup>b</sup> 11 <sup>_−_</sup> <sup>1Σ12</sup> <sup>b</sup> <sup>=</sup> <sup>_λ_</sup> <sup>a</sup> _Sensors_ 2016, _16_, 1661 8 of 16 Apparently, the coefficients a and b, as well as the canonical correlation, corr( u, v ), can be easily obtained, as long as the maximum eigenvalue, _λ_ max, is acquired. Suppose that _λ_ is the maximum of all the eigenvalues, then the coefficients we just obtained from the calculations are actually a 1 and b 1, the eigenvector coefficients of _λ_ . Then the equations: - u 1 = a <sup>T</sup> 1 <sup>T</sup> 1 <sup>_x_</sup> (14) <sup>T</sup> 1 <sup>_y_</sup> <sup>,</sup> v 1 = b <sup>T</sup> 1 are established with u 1 and v 1 being the first set of canonical variables. _λ_ is the canonical correlation of u and v we desire. In the same way, we can finally calculate all _p_ 1 sets of canonical variables. 5. Correlation Analysis of Experimental Data _5.1._ _Simple Correlation Analysis_ Based on the theory mentioned above, Simple Correlation Analysis, namely Pearson Product-moment Correlation Coefficient [24], is carried out for the data of multifunctional sensor. Firstly, regard sensor inputs such as oil concentration, salt concentration and temperature as the observable variable x . As for the observation variable y, it is composed of output voltage and TOF, namely the outputs of the sensor. By conducting the auto- and cross-correlation analysis, the simple coefficient of correlation shown in Table 1 is achieved. Owning smaller coefficients means that the two variables have less overlapping information. On the contrary, the ones with bigger coefficients have more things in common. Additionally, if the coefficient is greater than zero, there will be a positive correlation between the two variables, which means they will evolve in the same direction. On the other hand, if the coefficient is less than zero, the correlation is negative so that the variables will increase or decrease inversely. As shown as the internal correlation coefficients of x, oil concentration, salt concentration, and temperature are all independent of each other. This matches up with the principle of experiment setting. The auto-correlation of y is actually used for indicating the relationship between output voltage and TOF, which is negative and significant. Table 1. Simple correlation coefficients of input and output variables. Voltage Transit Time Oil Concentration Salt Concentration Temperature Voltage 1.0000 _−_ 0.4864 _−_ 0.7951 0.2430 0.2845 Transit Time _−_ 0.4864 1.0000 0.8371 0.0990 0.4350 Oil Concentration _−_ 0.7951 0.8371 1.0000 0.0000 0.0000 Salt Concentration 0.2430 0.0990 0.0000 1.0000 0.0000 Temperature 0.2845 0.4350 0.0000 0.0000 1.0000 More importantly, Table 1 gives the correlation between the inputs and outputs of the sensor. Obviously, output voltage is closely related to all of the input variables. Its positive correlations with salt concentration and temperature as well as its negative correlation with oil concentration can be explained from the physical point of view. In the section of conductivity measurement, the positive and the negative ions will keep moving oppositely to create a current in the electric field. The generated potential difference is the output voltage we mentioned above, which is proportional to the conductivity of the solution. The quantity of conductivity is up to the migration rates of the ions. If salt content increases proportionally, the carriers’ concentration will increase correspondingly resulted in the rising of conductivity and output voltage. On the other hand, increase of oil concentration leads to decrease of the carriers. In the macroscopic view, resistance to the motions of ions becomes larger, which will guide to the reduction of conductivity and output voltage. Accompanied with increasing of temperature, solution viscosity drops and reduces the resistance of ion migration. As a result, conductivity and output voltage increase along with the temperature. As for output voltage, the _Sensors_ 2016, _16_, 1661 9 of 16 weights of temperature, salt and oil concentrations can be demonstrated with the absolute values of their correlation coefficients. Analyzing the data listed in Table 1, we can draw the conclusion that oil content plays a primary role in determining output voltage, and the influence of salt content and temperature is relatively small. As a mechanical wave, ultrasound interacts with the media around it and its propagation character is closely related to media’s physicochemical properties. The speed of ultrasound is relevant to the adiabatic compressibility and density of the solution, which can be expressed by: <u>1</u> _v_ <sup>2</sup> mix = _n_ ### ∑ _i_ =1 _xiρiKi_ (15) where, _v_ mix is the velocity of ultrasound travelling in water, and _xi_ stands for mass fraction of Solute _i_ . _ρi_ and _Ki_ represent its density and isothermal compressibility, which is equal to the reciprocal of elasticity modulus numerically. On the premise that there is no other fluid source introduced into the solution, the wave equation of ultrasound will be defined with: <u>1</u> _v_ <sup>2</sup> _i_ = _ρiKi_ (16) where _vi_ is the velocity of ultrasound while travelling in solution _i_ . For the ternary solution used in this experiment, Equation (15) can be transformed into: + <sup>_<u>xo</u>_</sup> _v_ <sup>2</sup> _o_ <u>1</u> _v_ <sup>2</sup> mix = <sup>_<u>xs</u>_</sup> _v_ <sup>2</sup> _s_ (17) where _vs_ and _vo_ stand for the ultrasound speed in oil and brine, whose mass fractions, represented as _xs_ and _xo_, are constant for a certain solution. Known from Equation (17), _v_ mix varies with _xs_ and _xo_ : increasing of _xs_ and _xo_ leads to the decreasing of _v_ mix, and then extension of TOF. It means TOF is positively associated with oil and salt concentration. This conclusion is also supported by the data in Table 1: the correlation coefficient between oil concentration and TOF is 0.8371 and that between salt concentration and TOF is 0.0990. The data also demonstrate that oil concentration take the lead in effecting TOF. TOF, as shown in Table 1, is also related to temperature manifesting that the higher the temperature is, the longer it takes for ultrasound wave traveling between the electrode plates. This phenomenon can be explained by the temperature property of ternary solution. Compressibility coefficient _K_ 0 and density _ρ_ 0 of the solution vary as: _K_ = _K_ 0(1 + _ε_ ∆ _T_ ) (18) _ρ_ = _ρ_ 0(1 + _α_ ∆ _T_ + _β_ ∆ _T_ <sup>2</sup> ) (19) responding to the variation of the temperature. ∆ _T_ is temperature difference. _ε_, _α_ and _β_ are all the coefficients and usually treated as constants for a stable solution. From Equation (16), the ultrasound velocity can be derived as: _v_ <sup>2</sup> = _<u>v</u>_ <sup>2</sup> <u>0</u> (20) (1 + _ε_ ∆ _T_ )(1 + _α_ ∆ _T_ + _β_ ∆ _T_ <sup>2</sup> ) where _vo_ represents the velocity at temperature of _T_ 0. Obviously, when the temperature rises, the velocity would be falling and lead to the increasing of TOF. The positive correlation between TOF and temperature matches the result obtained from Simple Correlation Analysis. The correlation coefficient of 0.4350 also demonstrates the significance of the influence on TOF by temperature. _Sensors_ 2016, _16_, 1661 10 of 16 _5.2._ _Canonical Correlation Analysis_ For the interaction between the variables, simple correlation coefficients are all for reference only, incapable of demonstrating the actual relationship from a unitary perspective. Canonical Correlation Analysis, on the contrary, is able to extract the representative aggregate variable from the sets and maximize the overall correlations among them. By dividing the experiment data into two groups of variables, input and output, the results of Canonical Correlation Analysis can be obtained as shown in Table 2. Table 2. Canonical Correlation Analysis and Test Results. Roots Canonical Correlation Eigen Value Significance Level 1 0.963 12.768 0.000 2 0.776 1.514 0.000 The canonical correlations of the pairs of canonical variates are 0.963 and 0.776. The first pair of variates, a linear combination of input measurements and that of output measurements, has a correlation coefficient of 0.963. The second pair has a correlation coefficient of 0.776. Each subsequent pair of canonical variates is less correlated. The corresponding eigenvalues can be calculated by: (21) _Ei_ = _Ci_ <sup>2/</sup> �1 _−_ _Ci_ <sup>2</sup> where _Ci_ is the canonical correlation coefficient with the eigenvalue of _Ei_ . _i_ belongs to [1, _p_ 1], and for the data set of the proposed sensor, _i_ = 1, 2. Clearly, the coefficients of Canonical Correlation Analysis are generally greater than those of Simple Correlation Analysis, which illustrates the distinction between them. Since the above results are obtained from the experiment data, a null hypothesis of chi-square test is applied to the set of roots. The null hypothesis is that all of the correlations associated with the roots in the given set are equal to zero in the population. By testing these different sets of roots, we are determining how many dimensions are required to describe the relationship between the two groups of variables. Because each root in Table 2 is less informative than the one before it, unnecessary dimensions will be associated with the smallest eigenvalues. It is possible to pick out the roots that can describe the relationship between the two groups of variables without losing too much information. Thus, we start our test with the full set of roots and then test subsets generated by omitting the greatest root in the previous set. Then we repeat the procedure until there is only one root left. Here, Wilk’s Lambda test statistic is used for testing the null hypothesis that the given canonical correlation and all smaller ones are equal to zero in the population. Each value can be calculated as the product of the values of (1-canonical correlation <sup>2</sup> ) for the set of canonical correlations being tested, namely: . (22) _Si_ = 2 ### ∏ _i_ �1 _−_ _Ci_ <sup>2</sup> As can be seen, the smaller the value of Wilk’s Lambda, the greater the contribution offered by the canonical correlation coefficient. Thus, the contribution of the first coefficient is greater than that of the second one. Significance Level is the _p_ -value associated with the F value of a given test statistic. The null hypothesis of the two sets of variables having no relationship is evaluated with regard to this _p_ -value. For a given alpha level, such as 0.05, if the _p_ -value is less than alpha, the null hypothesis is rejected. If not, then we fail to reject the null hypothesis. As shown in Table 2, the _p_ -values corresponding to the two canonical correlation coefficients are both 0.000. It means that the null hypothesis is invalid and the coefficients are statistically significant. In conclusion, there is an obvious linear interrelationship between the inputs and outputs of the multifunctional sensor, whose correlation study can be converted to the correlation analysis of their canonical variates. _Sensors_ 2016, _16_, 1661 11 of 16 Tables 3 and 4 present the input and output signal set of the sensor, respectively, including Raw Canonical Variable Coefficients (RCVC) and Standardized Canonical Variable Coefficients (SCVC), which can be abbreviated as raw coefficients and standardized coefficients. The former defines the linear relationship between the variables in the given group and the canonical ones. They can be interpreted in the same manner as regression coefficients, assuming the canonical variates as the outcome variables. When the variables in the model have very different standard deviations, RCVC do not allow for easier comparisons among the variables. This problem induces the presence of SCVC. If all of the variables in the analysis are rescaled to have a mean of zero and a standard deviation of 1, the coefficients generating the canonical variates would indicate how a one standard deviation increase in the variable would change the variates. SCVC are interpreted in a manner analogous to interpreting standardized regression coefficients. Lack of consistent dimension of sensor inputs and outputs, it would be better to adopt SCVC in such case. With the information shown in Tables 3 and 4, the first canonical variates of input and output sets, _U_ 1 and _V_ 1, may be acquired as: - _U_ 1 = 0.966 _x_ 1 <sup>_∗_</sup> 3 (23) 1 <sup>_∗_</sup> <sup>+ 0.792</sup> <sup>_y_</sup> 2 <sup>_∗_</sup> 0.966 _x_ 1 <sup>_∗_</sup> <sup>_−_</sup> <sup>0.004</sup> <sup>_x_</sup> 2 <sup>_∗_</sup> <sup>+ 0.258</sup> <sup>_x_</sup> 3 <sup>_∗_</sup> _V_ 1 = _−_ 0.337 _y_ 1 <sup>_∗_</sup> <sup>+ 0.792</sup> <sup>_y_</sup> 2 <sup>_∗_</sup> where, _x_ 1 <sup>_∗_</sup> where, _x_ 1 <sup>_∗_</sup> <sup>,</sup> <sup>_x_</sup> 2 <sup>_∗_</sup> <sup>and</sup> <sup>_x_</sup> 3 <sup>_∗_</sup> <sup>stand for the standardized variables of oil concentration, salt concentration, and</sup> temperature. _y_ 1 <sup>_∗_</sup> <sup>and</sup> <sup>_y_</sup> 2 <sup>_∗_</sup> <sup>are defined as those of output voltage and TOF. In the same way, the second</sup> temperature. _y_ 1 <sup>_∗_</sup> <sup>and</sup> <sup>_y_</sup> 2 <sup>_∗_</sup> <sup>are defined as those of output voltage and TOF. In the same way, the second</sup> canonical variates, _U_ 2 and _V_ 2, can also be determined as: - _U_ 2 = _−_ 0.229 _x_ 1 <sup>_∗_</sup> 3 (24) 1 <sup>_∗_</sup> <sup>+ 0.826</sup> <sup>_y_</sup> 2 <sup>_∗_</sup> _−_ 0.229 _x_ 1 <sup>_∗_</sup> <sup>+ 0.448</sup> <sup>_x_</sup> 2 <sup>_∗_</sup> <sup>+ 0.864</sup> <sup>_x_</sup> 3 <sup>_∗_</sup> _V_ 2 = 1.094 _y_ 1 <sup>_∗_</sup> <sup>+ 0.826</sup> <sup>_y_</sup> 2 <sup>_∗_</sup> Table 3. Canonical variate coefficients of input set. Standardized Canonical Coefficients Raw Canonical Coefficients 1st Can. Var. 2nd Can. Var. 1st Can. Var. 2nd Can. Var. Oil Concentration 0.966 _−_ 0.229 0.050 _−_ 0.012 Salt Concentration _−_ 0.004 0.448 _−_ 0.001 0.087 Temperature 0.258 0.864 0.023 0.077 Table 4. Canonical variate coefficients of output set. Standardized Canonical Coefficients Raw Canonical Coefficients 1st Can. Var. 2nd Can. Var. 1st Can. Var. 2nd Can. Var. Voltage _−_ 0.337 1.094 _−_ 0.920 2.986 Transit Time 0.792 0.826 0.648 0.676 According to Equations (23) and (24), _U_ 1 is mainly on behalf of oil concentration, and TOF is the main component of _V_ 1. While, _U_ 2 stands for salt concentration and temperature chiefly, and _V_ 2 represents for all output variates. We can draw the conclusion that the first canonical variate does not play an important role in explaining salt concentration. Furthermore, both the first and second variates are closely related to every set of signals. In order to explain to what extent the canonical variates expressing the observational ones, the computations of canonical loading coefficient and cross loading coefficient are carried out. The former, also known as coefficient of structural relationship, is the pair-wise correlation coefficient between the canonical variates and the observational ones. It is the complement to canonical variate coefficient and can be considered as the total effect observational variates caused by the canonical ones, while cross loading coefficient is the pair-wise correlation coefficient between the canonical variates and the other set of observational variates. The purpose of studying this coefficient is to construct the _Sensors_ 2016, _16_, 1661 12 of 16 relationship between the sets. Table 5 lists these two kinds of coefficients of the sensor inputs. Since the input signals are mutual independent, canonical loading coefficients are identical to those of canonical variates. Apparently, canonical variates corresponding to sensor inputs mainly explain the variables of oil concentration and temperature. Canonical and cross loading coefficients of sensor outputs are shown in Table 6. Judging from the values, Equations (23) and (24) can adequately represent the output variables of the multifunctional sensor. In conclusion, correlation analysis of observational variates is equivalent to Canonical Correlation Analysis. Using correlation analysis of observational variates, instead of CCA, would make the correlation study between the inputs and outputs become more reasonable and intuitive. Table 5. Loading coefficients of input set. Canonical Loading Coefficients Cross Loading Coefficients _U_ 1 _U_ 2 _V_ 1 _V_ 2 Oil Concentration 0.966 _−_ 0.229 0.931 _−_ 0.178 Salt Concentration _−_ 0.004 0.448 _−_ 0.004 0.348 Temperature 0.258 0.864 0.249 0.671 Table 6. Loading coefficients of output set. Canonical Loading Coefficients Cross Loading Coefficients _V_ 1 _V_ 2 _U_ 1 _U_ 2 Voltage _−_ 0.722 0.692 _−_ 0.696 0.537 Transit Time 0.956 0.294 0.921 0.229 6. Signal Reconstruction In general, the multifunctional sensing technique is composed of two procedures, sensing and reconstructing. The former takes charge of multiple variable detection with sensitive components based on their crossing sensitivity properties, and the latter is responsible for regressing the measured variables by using corresponding algorithm. The signal sensing and reconstructing procedure is shown in Figure 6, where Oil Concentration, Salt Concentration, and Temperature are the physical quantities under measurement, Time of Flight and Output Voltage are the sensor output signals, while Regressed Oil Concentration and Regressed Salt Concentration are the estimation of the measured quantities that can be obtained through the signal reconstruction algorithm. Accompanying the development of multifunctional sensors, signal reconstruction algorithm is well studied. Empirical Risk Minimization (ERM) principle is popular in these methods, which ensures the actual risk close to the value of empirical risk when the sample data set is large. The signal reconstruction is usually a high-dimensional signal processing problem, while, the sample data set obtained from the experiment, on the contrary, is relatively small. In this case, minimizing the empirical risk cannot guarantee a small value of actual risk, and thus lead to the overfitting and poor generalization capabilities [25]. Support Vector Machine (SVM) could provide powerful and efficient tools that are capable of dealing with the small sample size problem and theoretical bounds on the generalization error through replacing ERM principle with Structural Risk Minimization (SRM) principle, which defines a tradeoff between the quality of the approximation of given data set and the complexity of approximating function, motivated by statistical learning theory [26]. Considering the outstanding performance of SVM in machine learning, we applied it to the reconstruction of the proposed multifunctional sensor. As shown in Figure 5, there are 81 samples of solutions included in the experiment. In order to verify the effectiveness of both the sensor and the reconstruction algorithm, these samples are divided into two groups randomly. One group is the training data set comprising 61 samples. The other, the testing data set, is made up of the remaining samples, which are used to evaluate the model constructed by SVM algorithm with the training data. _Sensors_ 2016, _16_, 1661 13 of 16 _C_ <sup></sup> _o_ _C_ <sup></sup> _s_ Figure 6. Schematic structure of multifunctional sensing technique. The oil concentrations, at 5 <sup>_◦_</sup> C, 15 <sup>_◦_</sup> C, 25 <sup>_◦_</sup> C, and 35 <sup>_◦_</sup> C, were regressed based on the reconstruction algorithm with the relative errors shown in Figure 7a–d. The maximum values of the errors are respectively 4.13%, 4.21%, 4.42%, and 4.26%. In the same way, the salt concentrations were also regressed based on the reconstruction algorithm at 5 <sup>_◦_</sup> C, 15 <sup>_◦_</sup> C, 25 <sup>_◦_</sup> C, and 35 <sup>_◦_</sup> C. The figures of the relative errors are shown in Figure 8a–d, respectively, with the maximum values of the errors, 4.63%, 4.27%, 4.32%, and 4.27%. In general, the reconstructed signals are relatively precise and satisfactory. The results demonstrate not only the correlation between sensor inputs (oil concentration, salt concentration, and temperature) and sensor outputs (output voltage and TOF), but also the feasibility of the multifunctional sensor used in content detection of the ternary solution. 6 4 2 0 -2 20 6 4 2 0 -2 20 15 15 ( a ) ( b ) 6 4 2 0 -2 20 5 4 3 2 1 0 -1 20 10 1 ~~0~~ 80 80 15 5 5 60 60 10 80 80 0 0 ~~<u>40</u>~~ 40 5 60 60 ~~20~~ 20 0 20 40 ~~40~~ 15 10 <u>5</u> ~~2~~ <u>0</u> 0 ( c ) ( d ) Figure 7. Relative e ~~r~~ <u>rors</u> of reconstructed oil concentrations at: ( a ) 5 <sup>_<u>◦</u>_</sup> C; <u>(</u> b ) 15 <sup>_◦_</sup> C; ( c ) 25 <sup>_◦_</sup> C; and ( d ) 35 <sup>_◦_</sup> C. Black stars (*) stand for the relative errors of the training data, and red circles (o) represent those of the testing data. _Sensors_ 2016, _16_, 1661 14 of 16 2 0 -2 -4 -6 20 6 4 2 0 -2 -4 20 15 15 ( a ) ( b ) 6 4 2 0 -2 -4 20 2 0 -2 -4 -6 20 10 10 80 80 15 5 5 60 60 10 80 80 0 0 40 40 5 60 60 20 20 0 20 40 40 15 10 5 0 20 ( c ) ( d ) Figure 8. Relative error of reconstructed salt concentration at: ( a ) 5 <sup>_◦_</sup> C; ( b ) 15 <sup>_◦_</sup> C; ( c ) 25 <sup>_◦_</sup> C; and ( d ) 35 <sup>_◦_</sup> C. Black stars (*) stand for the relative errors of the training data, and red circles (o) represent those of the testing data. 7. Conclusions To meet the requirement of oil and salt content test in the process of production, storage, and refinement of crude oil, we presented a multifunctional sensor integrated with conductivity and ultrasound transducers. We also prepared ternary solutions composed of water, oil, and salt, and then carried out the gradient experiments. After recording and processing the experimental data, we came to several conclusions. Firstly, the higher the solution temperature is, the slower the ultrasound travels in it. The increase of oil and salt contents will lead to reduced wave velocity. Compared with salt content, oil content is more dominant in the effect. Secondly, under the condition of oil and salt contents being constant, solution conductivity will rise along with its temperature. Given the temperature and the salt content, the changing trend of the conductivity will be opposite to that of oil content. For the fixed temperature and oil content, the increasing salt content will improve the conductivity of ternary solutions. Furthermore, the improvement is more significant than those caused by the variations of oil content and temperature. Finally, we conducted correlation analysis for the multifunctional sensor input set (salt concentration, oil concentration and temperature) and output one (output voltage and TOF). From the perspectives of Simple Correlation Analysis and Canonical Correlation Analysis, the relationships between input variates and output ones are established numerically. According to the calculated coefficients, we estimated the contributions of all the variables to the results, and then presented the _Sensors_ 2016, _16_, 1661 15 of 16 variation tendency of the experimental data theoretically. The results indicated that there are essential connections between the inputs and outputs, which testified the correctness of the design of the multifunctional sensor and the reliability of the achieved results. Taking advantage of the conclusion, we applied a signal reconstruction method, Support Vector Machine, to the multifunctional sensor for the purpose of data training and testing. The reconstructed results indicate that the multifunctional sensor is capable of detecting the oil and salt concentrations in the ternary solution with high accuracy. The performance of sensing and reconstructing procedure can both meet the requirements of the application, which proves that online estimations of concentrations for ternary solution, even for crude oil, can be theoretically realized based on the modeling of this multifunctional sensor. Acknowledgments: This work was supported by the National Natural Science Foundation of China (Grant No. 61301012, and 61401117). Author Contributions: Dan Liu designed the experiments, carried out the experiment and wrote this paper. Qisong Wang fabricated the multifunctional sensor and the entire circuit. Xin Liu participated in the experiment were responsible for the data acquisition. Yan Zhang processed the experimental data and discussed the results. Ruixin Niu revised the manuscript. Jinwei Sun supervised the entire project. All authors reviewed the manuscript. Conflicts of Interest: The authors declare no conflict of interest. Abbreviations The following abbreviations are used in this manuscript: ECT Electrical Capacitance Tomography WLR Water-in-Liquid Ratio SCA Simple Correlation Analysis CCA Canonical Correlation Analysis PZT Piezoelectric TOF Time of Flight PCA Principal Component Analysis RCVC Raw Canonical Variable Coefficients SCVC Standardized Canonical Variable Coefficients ERM Empirical Risk Minimization SVM Support Vector Machine SRM Structural Risk Minimization References 1. Vittorio, F.; Domenico, S.; Pietro, P. A capacitive sensor system for the analysis of two-phase flows of oil and conductive water. _Sens._ _Actuators A_ 2010, _163_, 172–179. 2. Vittorio, F.; Domenico, S. A sensor system for oil fraction estimation in a two phase oil-water flow. _Procedia Chem._ 2009, _1_, 1247–1250. 3. Wu, D.Y.; Wang, C.; Yan, Y.; Shao, J.Q. Study on reducing the effect of salinity in the phase fraction measurement of oil/water two-phase flow. In Proceedings of the International Instrumentation and Measurement Technology Conference, Singapore, 5–7 May 2009; pp. 487–491. 4. Huang, S.F.; Zhang, X.G.; Wang, D.; Li, Z.H. Water holdup measurement in kerosene-water two-phase flows. _Meas._ _Sci._ _Technol._ 2007, _18_, 3784–3794. [[CrossRef]](http://dx.doi.org/10.1088/0957-0233/18/12/013) 5. Meng, G.T.; Artur, J.J.; Neil, M.W. Composition measurements of crude oil and process water emulsions using thick-film ultrasonic transducers. _Chem._ _Eng._ _Process._ 2006, _45_, 383–339. [[CrossRef]](http://dx.doi.org/10.1016/j.cep.2005.10.004) 6. Gao, J.; Qi, B.F.; Zhang, H.C.; Wang, L.J.; Cheng, Z.Q. The Study for Determination of Sulfur in Heave Petroleum Products by UltravioLet Fluorescene Method. _Contemp._ _Chem._ _Ind._ 2006, _35_, 66–68. 7. Abdulgader, H.; Yang, W.Q. A single rod multi-modality multi-interface level sensor using an AC current source. In Proceedings of the IEEE International Workshop on Imaging Systems and Techniques, Chania, Greece, 10–12 September 2008; pp. 165–169. 8. Liu, W.X.; Jin, N.D.; Han, Y.F.; Zhai, L.S.; Chen, X.; Zhang, H.X. Effects of flow patterns and salinity on water holdup measurement of oil-water two-phase flow using a conductance method. _Measurement_ 2016, _93_, 503–514. [[CrossRef]](http://dx.doi.org/10.1016/j.measurement.2016.07.053) _Sensors_ 2016, _16_, 1661 16 of 16 9. Zhang, D.Z.; Hu, G.Q.; Xia, B.K. Analysis of Multi-Factor Influence on Measurement of Water Content in Crude Oil and Its Prediction Model. In Proceedings of the 27th Chinese Control Conference, Kunming, China, 16–18 July 2008; pp. 430–435. 10. Zhang, Y.; Chen, D.Z.; Zou, L.S.; Bi, Y.B.; Xie, J.C. Influence of Non-Thermal Plasma Pretreatment on Viscous Crude Oil Wastewater Evaporation Process and on Quality of the Distilled Water. In Proceedings of the International Conference on Materials for Renewable Energy and Environment, Chengdu, China, 19–21 August 2013; pp. 653–657. 11. Adams, M.J.; Awaja, F.; Bhargava, S.; Grocott, S.; Romeo, M. Prediction of oil yield from oil shale minerals using diffuse reflectance infrared Fourier transform spectroscopy. _Fuel_ 2005, _84_, 1986–1991. [[CrossRef]](http://dx.doi.org/10.1016/j.fuel.2005.04.011) 12. Mahmoud, M.; Nabeel, A.R.; Ahmed, A.N.; Ali, A.B.; Khamis, A.B.; Adel, M. Integration of impedance measurements with acoustic measurements for accurate two phase flow metering in case of high water-cut. _Flow Meas._ _Instrum._ 2010, _21_, 8–19. 13. Mohamed, A.M.O.; Elgamal, M.; Said, R.A. Determination of water content and salinity from a producing oil well using CPW probe and eigendecomposition. _Sens._ _Actuators A Phys._ 2006, _125_, 133–142. [[CrossRef]](http://dx.doi.org/10.1016/j.sna.2005.06.014) 14. Kumara, W.A.S.; Halvorsen, B.M.; Melaaen, M.C. Single-beam gamma densitometry measurements of oil-water flow in horizontal and slightly inclined pipes. _Int._ _J. Multiph._ _Flow_ 2010, _36_, 467–480. [[CrossRef]](http://dx.doi.org/10.1016/j.ijmultiphaseflow.2010.02.003) 15. César, M.S.; Cláudio, M.N.A.P.; Roberto, S.; Luis, E.B.B. Flow regime identification and volume fraction prediction in multiphase flows by means of gamma-ray attenuation and artificial neural networks. _Prog. Nucl. Energy_ 2010, _52_, 555–562. 16. Froystein, T.; Kvandal, H.; Aakre, H. Dual Energy Gamma Tomography System for High Pressure Multiphase Flow. _Flow Meas._ _Instrum._ 2005, _16_, 99–112. [[CrossRef]](http://dx.doi.org/10.1016/j.flowmeasinst.2005.02.005) 17. Silva, M.J.D.; Schleicher, E.; Hampel, U. Capacitance wire-mesh sensor for fast measurement of phase fraction distributions. _Meas._ _Sci._ _Technol._ 2007, _18_, 2245–2251. [[CrossRef]](http://dx.doi.org/10.1088/0957-0233/18/7/059) 18. Wael, H.A. Capacitance sensors for void-fraction measurements and flow-pattern identification in air-oil two-phase flow. _IEEE Sens._ _J._ 2006, _6_, 1153–1163. 19. Yang, W.Q.; Li, Y.; Wu, X.P.; Tsamakis, D.; Learmonth, D.; Xie, C.G.; Huang, S.M.; Lenn, C.; Cutler, A. Multiphase flow measurement by electrical capacitance tomography. In Proceedings of the IEEE International Conference on Imaging Systems and Techniques, Penang, Malaysia, 17–18 May 2011; pp. 108–111. 20. Oystein, L.B.; Ebbe, N. Application of microwave spectroscopy for the detection of water fraction and water salinity in water/oil/gas pipe flow. _J. Non-Cryst._ _Solids_ 2002, _305_, 345–353. 21. David, R.H.; Sandor, S.; John, S.T. Canonical correlation analysis: An overview with application to learning methods. _Neural Comput._ 2004, _16_, 2639–2664. 22. Wiesel, A.; Hero, A.O. Decomposable Principal Component Analysis. _IEEE Trans._ _Signal Process._ 2009, _57_, 4369–4377. [[CrossRef]](http://dx.doi.org/10.1109/TSP.2009.2025806) 23. Javier, V.; Ignacio, S.; Jesus, P. A learning algorithm for adaptive canonical correlation analysis of several data sets. _Neural Netw._ 2007, _20_, 139–152. 24. Prion, S.; Haerling, K.A. Making Sense of Methods and Measurement: Pearson Product-Moment Correlation Coefficient. _Clin._ _Simul._ _Nurs._ 2014, _10_, 587–588. [[CrossRef]](http://dx.doi.org/10.1016/j.ecns.2014.07.010) 25. Bot, R.I.; Lorenz, N. Optimization problems in statistical learning: Duality and optimality conditions. _Eur._ _J._ _Oper._ _Res._ 2011, _213_, 395–404. [[CrossRef]](http://dx.doi.org/10.1016/j.ejor.2011.03.021) 26. Liu, X.; Wei, G.; Sun, J.W.; Liu, D. Nonlinear multifunctional sensor signal reconstruction based on least squares support vector machines and total least squares algorithm. _J. Zhejiang Univ._ _Sci._ _A_ 2009, _10_, 497–503. [[CrossRef]](http://dx.doi.org/10.1631/jzus.A0820282) © 2016 by the authors; licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution [(CC-BY) license (http://creativecommons.org/licenses/by/4.0/).](http://creativecommons.org/licenses/by/4.0/.)

섹션 본문 61문단 · 40,872자

(제목 없음)

1Accurately measuring the oil content and salt content of crude oil is very important for both estimating oil reserves and predicting the lifetime of an oil well. There are some problems with the current methods such as high cost, low precision, and difficulties in operation. To solve these problems, we present a multifunctional sensor, which applies, respectively, conductivity method and ultrasound method to measure the contents of oil, water, and salt. Based on cross sensitivity theory, these two transducers are ideally integrated for simplifying the structure. A concentration test of ternary solutions is carried out to testify its effectiveness, and then Canonical Correlation Analysis is applied to evaluate the data. From the perspective of statistics, the sensor inputs, for instance, oil concentration, salt concentration, and temperature, are closely related to its outputs including output voltage and time of flight of ultrasound wave, which further identify the correctness of the sensing theory and the feasibility of the integrated design. Combined with reconstruction algorithms, the sensor can realize the content measurement of the solution precisely. The potential development of the proposed sensor and method in the aspect of online test for crude oil is of important reference and practical value.

Introduction

2According to the theory of hydrocarbon generation, extracted crude oil usually contains amount of salt and water because the thickly oil-covered earth always appears along with salt and water layer [1]. Most of the salts are inorganic and water-soluble, and are mainly the chloride of the alkaline-earth metals. Water in oil exists in three different states: suspended, emulsified, and dissolved [2]. The presence of salt and water affect crude oil mining, refining, and marketing directly. This is the reason that crude oil must be dehydrated from the oil field before its transmission. Even so, the oil in the refinery still contains certain amounts of salt and water [3]. As a matter of fact, crude oil mixed with too much water could increase heating consumption and lead to instability in the procedure of distillation. The salt in the crude may also cause damage by generating highly corrosive hydrochloric acid. Furthermore, salts may deposit and form salt fouling on the pipe wall, which can not only reduce the thermal efficiency, but also increase the flow resistance and even block the pipe [4]. In addition, catalyst poisoning sometimes appears due to the existence of water and salt. Consequently, before being fed into refining machine, crude oil has to be dehydrated and desalinated. Accurate and timely mission can be accomplished with fewer devices. It is theoretically possible that the input signals of the multifunctional sensor, coupling with signal reconstruction algorithm, would be calculated reversely to achieve the measurement online. The proposed method provides a very promising solution to the problems of precision, realtimeness, and automation, which are encountered by the existing methods.

3The contributions of this paper mainly focus on the following aspects. First of all, a novel multifunctional sensor is designed and manufactured for concentration measurement of the ternary solution, which is made up with oil, salt, and water. Secondly, Simple Correlation Analysis (SCA) and Canonical Correlation Analysis (CCA) are applied to quantify the relationship between the input and output signals of the sensor for the purpose of verifying the rationality of the design. At last, a signal reconstruction method is applied to estimate the sensor inputs using the outputs, which proves the effectiveness of its usage.

4The paper is organized as follows. In Section 2, we introduce the structure of the multifunctional sensor and the measurement principle of the solute concentration in the ternary solution. In Section 3, the experiment design and data acquisition are proposed. In Section 4, we formulate the derivation of Canonical Correlation Analysis. In Sections 5.1 and 5.2, we present the analysis results for the sensor data based on SCA and CCA methods, respectively. In Section 6, a signal reconstruction method based on Support Vector Machine and the corresponding reconstructed results of the sensor are introduced. In Section 7, we give a conclusion about the experimental result of the multifunctional sensor.

Structure of the Multifunctional Sensor

5The multifunctional sensor is designed to measure the salt and oil concentrations of a ternary solution online. Provided with accuracy and stability, it is able to measure several parameters simultaneously. With compact size, it also possesses excellent characters of corrosion resistance and long service life.

6The structure of multifunctional sensor is shown in Figure 1 and mainly consists of several parts: substrate (acrylic resin plate, 3 mm thick, 56 mm in diameter), conductivity electrodes (stainless steel, 0.5 mm thick, 25 mm in diameter), piezoelectric transducer (piezoelectric ceramic, 2 mm thick, 13 mm in diameter), thermometer (platinum resistance, 50 mm long, 4 mm in diameter), and support beam (acrylic resin plate, 45 mm long, 4 mm in inner diameter and 8 mm in outer diameter). The sensor has two functions: one is ultrasound-based velocimetry, and the other is conductivity sensing. The ultrasound transducer works in the mode of pulse-echo. By applying AC voltage to the piezoelectric (PZT) material (component 3), an ultrasound (2 MHz sine wave) will be generated from the bottom of the sensor. The wave will travel through the water and reach the upper plate (component 2). After rebound by the upper plate, it will finally return to the PZT and motivate AC voltage according to theory of inverse piezoelectric effects. Based on the output electrical signal, Time of Flight (TOF) could be calculated and recorded. Then the ultrasound speed can be achieved with the known length of wave path, 2d. The test of conductivity is enabled by using the stainless steel electrodes, which, shown as element 1 in Figure 1, are embedded in the acrylic resin substrate (component 1). If the electrodes are applied by a constant electric field, a stable current will occur between them. Thus, it is easy to obtain the resistance and the conductivity of the solution with the measurement of the voltage difference. Since the effects of temperature on ultrasound speed and solution conductivity should not be neglected, a thermometer is installed on the sensor. Considering the asymmetry of temperature, we chose a thermistor probe (component 4) and bolted it between the substrate, which is also used to stabilize and balance the sensor with the support beam (component 5).

7The sensor is capable of measuring multiple parameters including ultrasound speed, conductivity and temperature. Based on the nonlinear relationship between the input parameters (salt concentration, oil concentration, and temperature) and output ones (ultrasound speed and solution conductivity), salt content and water content can be both estimated with a proper algorithm in a four-dimensional space. A distinctive feature of the multifunctional sensor is that the electrode plate (component 2), one part of the conductivity transducer, is also used as the reflector of ultrasound. In this way, the ultrasound sensing and conductivity sensing are aligned perfectly, making it a multifunctional sensor in a real sense. There are two important things to note about the usage of the multifunctional sensor, especially for the measurement of crude oil. One is the ultrasonic attenuation property. Ultrasound decays rapidly in the case that gas bubbles suspend in the oil, which means the multifunctional sensor cannot work under these circumstances. Thus, an online defoaming procedure such as heating, stirring, or defoamer addition must be conducted before the measurement. The other thing is that heterogeneous distribution of oil and water are very common in crude oil. This phenomenon limits the measurement reliability of both the conductivity sensor and the ultrasound sensor. To achieve credible results, the mixed solution needs to be homogenized by adding emulsifying agents, which could be easily implemented online.

Principle of Conductivity Measurement

8The equivalent circuit of conductivity sensing is shown in Figure 2. The input voltage V in provided by signal generator is a sinusoidal signal with frequency of 1 kHz and amplitude of 1 V. Because the input impedances of the amplifiers A 1 and A 2 are both extremely high, the currents flowing through the resistance R 1 and R 2 are close to zero approximately. Since V in is constant, the relationship between the solution conductance G s and the current I Gs flowing through it can be expressed by:

9According to the definition of conductivity, we can get the function of conductivity σ and I Gs shown as:

10with K standing for the conductivity cell constant. To facilitate the measurement, reference resistance R re f is plugged into the input of the amplifier A 2 to generate a stable current I Gs . Because the current passing through the resistances R 1 and R 2 are near to zeros, there is little voltage on them. Based on the principle of dummy short, V Gs , the voltage on G s , is nearly equal to V in , then we get:

11namely: As shown in Equation (4), the conductivity of the solution is proportional to output voltage V r . Since the parameters such as R re f , K, and V in are constant for an identified solution, V r , in practice, may reflect the variance of conductivity σ. Thus, we take the output voltage V r , instead of σ, as one of the outputs of the multifunctional sensor in the following experiment. , namely:

12As shown in Equation (4), the conductivity of the solution is proportional to output voltage r V . Since the parameters such as ref R , K , and in V are constant for an identified solution, r V , in practice, may reflect the variance of conductivity  . Thus, we take the output voltage r V , instead of  , as one of the outputs of the multifunctional sensor in the following experiment.

Principle of Ultrasound Speed Measurement

13As shown in Figure 1, the round-trip distance the ultrasound travels during the time from being generated to arriving at the receiver is fixed at d 2 . Thus, the velocity s v and the time of flight f t conform to:

14which means that f t is inverse proportional to s v . For the reciprocal relation, we replace the velocity with TOF as the other output of the multifunctional sensor to demonstrate the variation caused by different concentration of the solutes. Figure 3 shows the measurement procedure of TOF. At time 0  t t , the signal generator controlled by the microprocessors generates a signal envelope as shown in Figure 4, which is composed of four cycles of sinusoidal waves with frequency of 2 MHz and amplitude of 10 V. Simultaneously, time-delay circuit is also controlled to initiate its timer and keeps the analog switch closing until w t . During this period, the input signals can reach the piezoelectric material and excite the ultrasonic waves. At the moment  w t t , the switch disconnects the path of input signals and then makes the channel CH1 of the oscilloscope receive the echo signals. To make it work, it has to be guaranteed that the delay time lasts longer than the duration of the input signals e t , namely  w e t t . The ultrasound keeps bouncing back and forth between the emitter/receiver and the reflector until it vanishes. Thus, the echo, as a matter of fact, is a pulse train composed by a series of envelope signals. For the sake of accuracy, we regard the time that the receiver catches the first impulse among the echoes as the end of one test. By using level detection circuit, f t , namely TOF, shown in Figure 4, can be finally measured and recorded. It is the time lag between emitting and receiving of the ultrasound, and needs to be recorded by oscilloscope manually.

15As shown in Figure 1, the round-trip distance the ultrasound travels during the time from being generated to arriving at the receiver is fixed at 2d. Thus, the velocity v s and the time of flight t f conform to:

16which means that t f is inverse proportional to v s . For the reciprocal relation, we replace the velocity with TOF as the other output of the multifunctional sensor to demonstrate the variation caused by different concentration of the solutes. Figure 3 shows the measurement procedure of TOF. At time t = t 0 , the signal generator controlled by the microprocessors generates a signal envelope as shown in Figure 4, which is composed of four cycles of sinusoidal waves with frequency of 2 MHz and amplitude of 10 V. Simultaneously, time-delay circuit is also controlled to initiate its timer and keeps the analog switch closing until t w . During this period, the input signals can reach the piezoelectric material and excite the ultrasonic waves. At the moment t = t w , the switch disconnects the path of input signals and then makes the channel CH1 of the oscilloscope receive the echo signals. To make it work, it has to be guaranteed that the delay time lasts longer than the duration of the input signals t e , namely t w > t e . The ultrasound keeps bouncing back and forth between the emitter/receiver and the reflector until it vanishes. Thus, the echo, as a matter of fact, is a pulse train composed by a series of envelope signals. For the sake of accuracy, we regard the time that the receiver catches the first impulse among the echoes as the end of one test. By using level detection circuit, t f , namely TOF, shown in Figure 4, can be finally measured and recorded. It is the time lag between emitting and receiving of the ultrasound, and needs to be recorded by oscilloscope manually.

Experiment

17To simulate the crude oil containing salt and water, we choose a petroleum derivative, Hydraulan Dot4 braking fluid, for consideration of stability of the mixed solution. The braking fluid dissolves in water so that the solution made of it is homogeneous. All the solutes and solvents are miscible with each other requiring neither stirring nor an emulsifier. In this way, the bubbles accompanied with stirring will never appear, which would scatter and absorb ultrasound tremendously. The excellent dissolution makes sure that the ultrasound sensor works properly and the measurement precision can be improved correspondingly.

18The first step of the experiment is preparing the gradient solutions. To simulate the actual condition under which it works, we mix water and salt according to the ratios of 96:4, 94:6, 92:8, 90:10, 88:12, 86:14, 84:16, 82:18 and 80:20. After dividing every solution into 9 units, we add the braking fluid of mass fraction of 20%, 27.5%, 35%, 42.5%, 50%, 57.5%, 65%, 72.5% and 80% with reference to the quality of the brine.

19The second step is collecting the data of the multifunctional sensor. As clear as the descriptions above, 81 samples of solutions are needed throughout the experiment. The procedures of measurement for each sample are the same: put the sample into a thermostat, then record the output voltage and TOF in the condition that the temperature of the sample is steady at 5 °C, 15 °C, 25 °C and 35 °C. The final data are drawn in Figure 5. In total, there are 5 parameters of the sensor inputs and outputs, so it is impossible to display all of them in one figure visually. Via dimension reduction, the parameters are divided into two groups and described in Figure 5a

20To simulate the crude oil containing salt and water, we choose a petroleum derivative, Hydraulan Dot4 braking fluid, for consideration of stability of the mixed solution. The braking fluid dissolves in water so that the solution made of it is homogeneous. All the solutes and solvents are miscible with each other requiring neither stirring nor an emulsifier. In this way, the bubbles accompanied with stirring will never appear, which would scatter and absorb ultrasound tremendously. The excellent dissolution makes sure that the ultrasound sensor works properly and the measurement precision can be improved correspondingly.

21The first step of the experiment is preparing the gradient solutions. To simulate the actual condition under which it works, we mix water and salt according to the ratios of 96:4, 94:6, 92:8, 90:10, 88:12, 86:14, 84:16, 82:18 and 80:20. After dividing every solution into 9 units, we add the braking fluid of mass fraction of 20%, 27.5%, 35%, 42.5%, 50%, 57.5%, 65%, 72.5% and 80% with reference to the quality of the brine.

22The second step is collecting the data of the multifunctional sensor. As clear as the descriptions above, 81 samples of solutions are needed throughout the experiment. The procedures of measurement for each sample are the same: put the sample into a thermostat, then record the output voltage and TOF in the condition that the temperature of the sample is steady at 5 • C, 15 • C, 25 • C and 35 • C. The final data are drawn in Figure 5. In total, there are 5 parameters of the sensor inputs and outputs, so it is impossible to display all of them in one figure visually. Via dimension reduction, the parameters are divided into two groups and described in Figure 5a

Canonical Correlation Analysis (CCA)

23In order to illustrate the internal correlations among the parameters of the presented multifunctional sensor, and then demonstrate the correctness of its design and usage theoretically, we conduct a correlation analysis concerning the recorded data. Canonical Correlation Analysis (CCA) [21], similar with Principal Component Analysis (PCA) [22], selects several representative

24In order to illustrate the internal correlations among the parameters of the presented multifunctional sensor, and then demonstrate the correctness of its design and usage theoretically, we conduct a correlation analysis concerning the recorded data. Canonical Correlation Analysis (CCA) [21], similar with Principal Component Analysis (PCA) [22], selects several representative variables from the sets to compose synthesized indicators called canonical variables. Studying the correlation among these canonical variables rather than the groups of the original ones makes more sense and will help us take more rational decisions [21,23].

25Given two sets of variables, x and y, with the dimension of p 1 and p 2 under the condition of p 1 ≤ p 2 , we can get:

26where Σ represents the variance matrix of z. Σ 11 and Σ 22 are, respectively, on behalf of those of x and y. Σ 12 stands for their covariance with the transpose expressed as Σ 21 .

27Define the matrixes, u and v, as the canonical variables of x and y with:

28where a and b stand for their eigenvector coefficients. As expected, the correlation coefficient is obtained based on:

29Then we need to calculate the coefficients a and b by maximizing:

30Amplified or shrunk proportionally, a and b still conform to Equation (9), which means Equation (9) has infinite solutions. To avoid this, it is necessary to add constraints in Equation (13):

31The calculations of the coefficients could be achieved by constructing Lagrangian equation:

32The eigenvalues of corr(u, v) are achieved in the form of:

33On the premise that Σ 11 and Σ 22 are invertible, Equation (12) may be simplified as: Apparently, the coefficients a and b, as well as the canonical correlation, corr(u, v), can be easily obtained, as long as the maximum eigenvalue, λ max , is acquired. Suppose that λ is the maximum of all the eigenvalues, then the coefficients we just obtained from the calculations are actually a 1 and b 1 , the eigenvector coefficients of λ. Then the equations:

34are established with u 1 and v 1 being the first set of canonical variables. λ is the canonical correlation of u and v we desire. In the same way, we can finally calculate all p 1 sets of canonical variables.

Simple Correlation Analysis

35Based on the theory mentioned above, Simple Correlation Analysis, namely Pearson Product-moment Correlation Coefficient [24], is carried out for the data of multifunctional sensor. Firstly, regard sensor inputs such as oil concentration, salt concentration and temperature as the observable variable x. As for the observation variable y, it is composed of output voltage and TOF, namely the outputs of the sensor. By conducting the auto-and cross-correlation analysis, the simple coefficient of correlation shown in Table 1 is achieved. Owning smaller coefficients means that the two variables have less overlapping information. On the contrary, the ones with bigger coefficients have more things in common. Additionally, if the coefficient is greater than zero, there will be a positive correlation between the two variables, which means they will evolve in the same direction. On the other hand, if the coefficient is less than zero, the correlation is negative so that the variables will increase or decrease inversely.

36As shown as the internal correlation coefficients of x, oil concentration, salt concentration, and temperature are all independent of each other. This matches up with the principle of experiment setting. The auto-correlation of y is actually used for indicating the relationship between output voltage and TOF, which is negative and significant. More importantly, Table 1 gives the correlation between the inputs and outputs of the sensor. Obviously, output voltage is closely related to all of the input variables. Its positive correlations with salt concentration and temperature as well as its negative correlation with oil concentration can be explained from the physical point of view. In the section of conductivity measurement, the positive and the negative ions will keep moving oppositely to create a current in the electric field. The generated potential difference is the output voltage we mentioned above, which is proportional to the conductivity of the solution. The quantity of conductivity is up to the migration rates of the ions. If salt content increases proportionally, the carriers' concentration will increase correspondingly resulted in the rising of conductivity and output voltage. On the other hand, increase of oil concentration leads to decrease of the carriers. In the macroscopic view, resistance to the motions of ions becomes larger, which will guide to the reduction of conductivity and output voltage. Accompanied with increasing of temperature, solution viscosity drops and reduces the resistance of ion migration. As a result, conductivity and output voltage increase along with the temperature. As for output voltage, the weights of temperature, salt and oil concentrations can be demonstrated with the absolute values of their correlation coefficients. Analyzing the data listed in Table 1, we can draw the conclusion that oil content plays a primary role in determining output voltage, and the influence of salt content and temperature is relatively small.

37As a mechanical wave, ultrasound interacts with the media around it and its propagation character is closely related to media's physicochemical properties. The speed of ultrasound is relevant to the adiabatic compressibility and density of the solution, which can be expressed by:

38where, v mix is the velocity of ultrasound travelling in water, and x i stands for mass fraction of Solute i. ρ i and K i represent its density and isothermal compressibility, which is equal to the reciprocal of elasticity modulus numerically. On the premise that there is no other fluid source introduced into the solution, the wave equation of ultrasound will be defined with:

39where v i is the velocity of ultrasound while travelling in solution i. For the ternary solution used in this experiment, Equation (15) can be transformed into:

40where v s and v o stand for the ultrasound speed in oil and brine, whose mass fractions, represented as x s and x o , are constant for a certain solution. Known from Equation (17), v mix varies with x s and x o : increasing of x s and x o leads to the decreasing of v mix , and then extension of TOF. It means TOF is positively associated with oil and salt concentration. This conclusion is also supported by the data in Table 1: the correlation coefficient between oil concentration and TOF is 0.8371 and that between salt concentration and TOF is 0.0990. The data also demonstrate that oil concentration take the lead in effecting TOF. TOF, as shown in Table 1, is also related to temperature manifesting that the higher the temperature is, the longer it takes for ultrasound wave traveling between the electrode plates. This phenomenon can be explained by the temperature property of ternary solution. Compressibility coefficient K 0 and density ρ 0 of the solution vary as:

41responding to the variation of the temperature. ∆T is temperature difference. ε, α and β are all the coefficients and usually treated as constants for a stable solution. From Equation (16), the ultrasound velocity can be derived as:

42where v o represents the velocity at temperature of T 0 . Obviously, when the temperature rises, the velocity would be falling and lead to the increasing of TOF. The positive correlation between TOF and temperature matches the result obtained from Simple Correlation Analysis. The correlation coefficient of 0.4350 also demonstrates the significance of the influence on TOF by temperature.

Canonical Correlation Analysis

43For the interaction between the variables, simple correlation coefficients are all for reference only, incapable of demonstrating the actual relationship from a unitary perspective. Canonical Correlation Analysis, on the contrary, is able to extract the representative aggregate variable from the sets and maximize the overall correlations among them. By dividing the experiment data into two groups of variables, input and output, the results of Canonical Correlation Analysis can be obtained as shown in Table 2. The canonical correlations of the pairs of canonical variates are 0.963 and 0.776. The first pair of variates, a linear combination of input measurements and that of output measurements, has a correlation coefficient of 0.963. The second pair has a correlation coefficient of 0.776. Each subsequent pair of canonical variates is less correlated. The corresponding eigenvalues can be calculated by:

44where C i is the canonical correlation coefficient with the eigenvalue of E i . i belongs to [1, p 1 ], and for the data set of the proposed sensor, i = 1, 2. Clearly, the coefficients of Canonical Correlation Analysis are generally greater than those of Simple Correlation Analysis, which illustrates the distinction between them.

45Since the above results are obtained from the experiment data, a null hypothesis of chi-square test is applied to the set of roots. The null hypothesis is that all of the correlations associated with the roots in the given set are equal to zero in the population. By testing these different sets of roots, we are determining how many dimensions are required to describe the relationship between the two groups of variables. Because each root in Table 2 is less informative than the one before it, unnecessary dimensions will be associated with the smallest eigenvalues. It is possible to pick out the roots that can describe the relationship between the two groups of variables without losing too much information. Thus, we start our test with the full set of roots and then test subsets generated by omitting the greatest root in the previous set. Then we repeat the procedure until there is only one root left.

46Here, Wilk's Lambda test statistic is used for testing the null hypothesis that the given canonical correlation and all smaller ones are equal to zero in the population. Each value can be calculated as the product of the values of (1-canonical correlation 2 ) for the set of canonical correlations being tested, namely:

47As can be seen, the smaller the value of Wilk's Lambda, the greater the contribution offered by the canonical correlation coefficient. Thus, the contribution of the first coefficient is greater than that of the second one. Significance Level is the p-value associated with the F value of a given test statistic. The null hypothesis of the two sets of variables having no relationship is evaluated with regard to this p-value. For a given alpha level, such as 0.05, if the p-value is less than alpha, the null hypothesis is rejected. If not, then we fail to reject the null hypothesis. As shown in Table 2, the p-values corresponding to the two canonical correlation coefficients are both 0.000. It means that the null hypothesis is invalid and the coefficients are statistically significant. In conclusion, there is an obvious linear interrelationship between the inputs and outputs of the multifunctional sensor, whose correlation study can be converted to the correlation analysis of their canonical variates. Tables 3 and 4 present the input and output signal set of the sensor, respectively, including Raw Canonical Variable Coefficients (RCVC) and Standardized Canonical Variable Coefficients (SCVC), which can be abbreviated as raw coefficients and standardized coefficients. The former defines the linear relationship between the variables in the given group and the canonical ones. They can be interpreted in the same manner as regression coefficients, assuming the canonical variates as the outcome variables. When the variables in the model have very different standard deviations, RCVC do not allow for easier comparisons among the variables. This problem induces the presence of SCVC. If all of the variables in the analysis are rescaled to have a mean of zero and a standard deviation of 1, the coefficients generating the canonical variates would indicate how a one standard deviation increase in the variable would change the variates. SCVC are interpreted in a manner analogous to interpreting standardized regression coefficients. Lack of consistent dimension of sensor inputs and outputs, it would be better to adopt SCVC in such case. With the information shown in Tables 3 and 4, the first canonical variates of input and output sets, U 1 and V 1 , may be acquired as:

48where, x * 1 , x * 2 and x * 3 stand for the standardized variables of oil concentration, salt concentration, and temperature. y * 1 and y * 2 are defined as those of output voltage and TOF. In the same way, the second canonical variates, U 2 and V 2 , can also be determined as: According to Equations (23) and (24), U 1 is mainly on behalf of oil concentration, and TOF is the main component of V 1 . While, U 2 stands for salt concentration and temperature chiefly, and V 2 represents for all output variates. We can draw the conclusion that the first canonical variate does not play an important role in explaining salt concentration. Furthermore, both the first and second variates are closely related to every set of signals.

49In order to explain to what extent the canonical variates expressing the observational ones, the computations of canonical loading coefficient and cross loading coefficient are carried out. The former, also known as coefficient of structural relationship, is the pair-wise correlation coefficient between the canonical variates and the observational ones. It is the complement to canonical variate coefficient and can be considered as the total effect observational variates caused by the canonical ones, while cross loading coefficient is the pair-wise correlation coefficient between the canonical variates and the other set of observational variates. The purpose of studying this coefficient is to construct the relationship between the sets. Table 5 lists these two kinds of coefficients of the sensor inputs. Since the input signals are mutual independent, canonical loading coefficients are identical to those of canonical variates. Apparently, canonical variates corresponding to sensor inputs mainly explain the variables of oil concentration and temperature. Canonical and cross loading coefficients of sensor outputs are shown in Table 6. Judging from the values, Equations (23) and (24) can adequately represent the output variables of the multifunctional sensor. In conclusion, correlation analysis of observational variates is equivalent to Canonical Correlation Analysis. Using correlation analysis of observational variates, instead of CCA, would make the correlation study between the inputs and outputs become more reasonable and intuitive. Table 6. Loading coefficients of output set.

Signal Reconstruction

50In general, the multifunctional sensing technique is composed of two procedures, sensing and reconstructing. The former takes charge of multiple variable detection with sensitive components based on their crossing sensitivity properties, and the latter is responsible for regressing the measured variables by using corresponding algorithm. The signal sensing and reconstructing procedure is shown in Figure 6, where Oil Concentration, Salt Concentration, and Temperature are the physical quantities under measurement, Time of Flight and Output Voltage are the sensor output signals, while Regressed Oil Concentration and Regressed Salt Concentration are the estimation of the measured quantities that can be obtained through the signal reconstruction algorithm.

51Accompanying the development of multifunctional sensors, signal reconstruction algorithm is well studied. Empirical Risk Minimization (ERM) principle is popular in these methods, which ensures the actual risk close to the value of empirical risk when the sample data set is large. The signal reconstruction is usually a high-dimensional signal processing problem, while, the sample data set obtained from the experiment, on the contrary, is relatively small. In this case, minimizing the empirical risk cannot guarantee a small value of actual risk, and thus lead to the overfitting and poor generalization capabilities [25]. Support Vector Machine (SVM) could provide powerful and efficient tools that are capable of dealing with the small sample size problem and theoretical bounds on the generalization error through replacing ERM principle with Structural Risk Minimization (SRM) principle, which defines a tradeoff between the quality of the approximation of given data set and the complexity of approximating function, motivated by statistical learning theory [26].

52Considering the outstanding performance of SVM in machine learning, we applied it to the reconstruction of the proposed multifunctional sensor. As shown in Figure 5, there are 81 samples of solutions included in the experiment. In order to verify the effectiveness of both the sensor and the reconstruction algorithm, these samples are divided into two groups randomly. One group is the training data set comprising 61 samples. The other, the testing data set, is made up of the remaining samples, which are used to evaluate the model constructed by SVM algorithm with the training data. Accompanying the development of multifunctional sensors, signal reconstruction algorithm is well studied. Empirical Risk Minimization (ERM) principle is popular in these methods, which ensures the actual risk close to the value of empirical risk when the sample data set is large. The signal reconstruction is usually a high-dimensional signal processing problem, while, the sample data set obtained from the experiment, on the contrary, is relatively small. In this case, minimizing the empirical risk cannot guarantee a small value of actual risk, and thus lead to the overfitting and poor generalization capabilities [25]. Support Vector Machine (SVM) could provide powerful and efficient tools that are capable of dealing with the small sample size problem and theoretical bounds on the generalization error through replacing ERM principle with Structural Risk Minimization (SRM) principle, which defines a tradeoff between the quality of the approximation of given data set and the complexity of approximating function, motivated by statistical learning theory [26].

53Considering the outstanding performance of SVM in machine learning, we applied it to the reconstruction of the proposed multifunctional sensor. As shown in Figure 5, there are 81 samples of solutions included in the experiment. In order to verify the effectiveness of both the sensor and the reconstruction algorithm, these samples are divided into two groups randomly. One group is the training data set comprising 61 samples. The other, the testing data set, is made up of the remaining samples, which are used to evaluate the model constructed by SVM algorithm with the training data.

54The Accompanying the development of multifunctional sensors, signal reconstruction algorithm is well studied. Empirical Risk Minimization (ERM) principle is popular in these methods, which ensures the actual risk close to the value of empirical risk when the sample data set is large. The signal reconstruction is usually a high-dimensional signal processing problem, while, the sample data set obtained from the experiment, on the contrary, is relatively small. In this case, minimizing the empirical risk cannot guarantee a small value of actual risk, and thus lead to the overfitting and poor generalization capabilities [25]. Support Vector Machine (SVM) could provide powerful and efficient tools that are capable of dealing with the small sample size problem and theoretical bounds on the generalization error through replacing ERM principle with Structural Risk Minimization (SRM) principle, which defines a tradeoff between the quality of the approximation of given data set and the complexity of approximating function, motivated by statistical learning theory [26].

55Considering the outstanding performance of SVM in machine learning, we applied it to the reconstruction of the proposed multifunctional sensor. As shown in Figure 5, there are 81 samples of solutions included in the experiment. In order to verify the effectiveness of both the sensor and the reconstruction algorithm, these samples are divided into two groups randomly. One group is the training data set comprising 61 samples. The other, the testing data set, is made up of the remaining samples, which are used to evaluate the model constructed by SVM algorithm with the training data.

56The oil concentrations, at 5 °C, 15 °C, 25 °C, and 35 °C, were regressed based on the reconstruction algorithm with the relative errors shown in Figure 7a

Conclusions

57To meet the requirement of oil and salt content test in the process of production, storage, and refinement of crude oil, we presented a multifunctional sensor integrated with conductivity and ultrasound transducers. We also prepared ternary solutions composed of water, oil, and salt, and

58To meet the requirement of oil and salt content test in the process of production, storage, and refinement of crude oil, we presented a multifunctional sensor integrated with conductivity and ultrasound transducers. We also prepared ternary solutions composed of water, oil, and salt, and then carried out the gradient experiments. After recording and processing the experimental data, we came to several conclusions.

59Firstly, the higher the solution temperature is, the slower the ultrasound travels in it. The increase of oil and salt contents will lead to reduced wave velocity. Compared with salt content, oil content is more dominant in the effect.

60Secondly, under the condition of oil and salt contents being constant, solution conductivity will rise along with its temperature. Given the temperature and the salt content, the changing trend of the conductivity will be opposite to that of oil content. For the fixed temperature and oil content, the increasing salt content will improve the conductivity of ternary solutions. Furthermore, the improvement is more significant than those caused by the variations of oil content and temperature.

61Finally, we conducted correlation analysis for the multifunctional sensor input set (salt concentration, oil concentration and temperature) and output one (output voltage and TOF). From the perspectives of Simple Correlation Analysis and Canonical Correlation Analysis, the relationships between input variates and output ones are established numerically. According to the calculated coefficients, we estimated the contributions of all the variables to the results, and then presented the variation tendency of the experimental data theoretically. The results indicated that there are essential connections between the inputs and outputs, which testified the correctness of the design of the multifunctional sensor and the reliability of the achieved results. Taking advantage of the conclusion, we applied a signal reconstruction method, Support Vector Machine, to the multifunctional sensor for the purpose of data training and testing. The reconstructed results indicate that the multifunctional sensor is capable of detecting the oil and salt concentrations in the ternary solution with high accuracy. The performance of sensing and reconstructing procedure can both meet the requirements of the application, which proves that online estimations of concentrations for ternary solution, even for crude oil, can be theoretically realized based on the modeling of this multifunctional sensor.

참고문헌 23건

  1. Nonlinear multifunctional sensor signal reconstruction based on least squares support vector machines and total least squares algorithm Journal of Zhejiang University. Science A · Springer Science+Business Media · 2009 10.1631/jzus.a0820282
  2. Integration of impedance measurements with acoustic measurements for accurate two phase flow metering in case of high water-cut Flow Measurement and Instrumentation · Elsevier BV · 2009 10.1016/j.flowmeasinst.2009.09.002
  3. A sensor system for oil fraction estimation in a two phase oil-water flow Procedia Chemistry · Elsevier BV · 2009 10.1016/j.proche.2009.07.311
  4. Capacitance wire-mesh sensor for fast measurement of phase fraction distributions Measurement Science and Technology · IOP Publishing · 2007 10.1088/0957-0233/18/7/059
  5. A learning algorithm for adaptive canonical correlation analysis of several data sets Neural Networks · Elsevier BV · 2006 10.1016/j.neunet.2006.09.011
  6. Flow regime identification and volume fraction prediction in multiphase flows by means of gamma-ray attenuation and artificial neural networks Progress in Nuclear Energy · Elsevier BV · 2010 10.1016/j.pnucene.2010.02.001
  7. Dual energy gamma tomography system for high pressure multiphase flow Flow Measurement and Instrumentation · Elsevier BV · 2005 10.1016/j.flowmeasinst.2005.02.005
  8. Water holdup measurement in kerosene–water two-phase flows Measurement Science and Technology · IOP Publishing · 2007 10.1088/0957-0233/18/12/013
  9. Application of microwave spectroscopy for the detection of water fraction and water salinity in water/oil/gas pipe flow Journal of Non-Crystalline Solids · Elsevier BV · 2002 10.1016/s0022-3093(02)01130-4
  10. A capacitive sensor system for the analysis of two-phase flows of oil and conductive water Sensors and Actuators A Physical · Elsevier BV · 2010 10.1016/j.sna.2010.08.018
  11. Optimization problems in statistical learning: Duality and optimality conditions European Journal of Operational Research · Elsevier BV · 2011 10.1016/j.ejor.2011.03.021
  12. Prediction of oil yield from oil shale minerals using diffuse reflectance infrared Fourier transform spectroscopy Fuel · Elsevier BV · 2005 10.1016/j.fuel.2005.04.011
  13. Determination of water content and salinity from a producing oil well using CPW probe and eigendecomposition Sensors and Actuators A Physical · Elsevier BV · 2005 10.1016/j.sna.2005.06.014
  14. Canonical Correlation Analysis: An Overview with Application to Learning Methods Neural Computation · The MIT Press · 2004 10.1162/0899766042321814
  15. Multiphase flow measurement by electrical capacitance tomography 2011 10.1109/ist.2011.5962201
  16. A single rod multi-modality multi-interface level sensor using an AC current source IEEE International Workshop on Imaging Systems and Techniques · 2008 10.1109/ist.2008.4659962
  17. Capacitance Sensors for Void-Fraction Measurements and Flow-Pattern Identification in Air–Oil Two-Phase Flow IEEE Sensors Journal · IEEE Sensors Council · 2006 10.1109/jsen.2006.881390
  18. Composition measurements of crude oil and process water emulsions using thick-film ultrasonic transducers Chemical Engineering and Processing - Process Intensification · Elsevier BV · 2005 10.1016/j.cep.2005.10.004
  19. Decomposable Principal Component Analysis IEEE Transactions on Signal Processing · Institute of Electrical and Electronics Engineers · 2009 10.1109/tsp.2009.2025806
  20. Single-beam gamma densitometry measurements of oil–water flow in horizontal and slightly inclined pipes International Journal of Multiphase Flow · Elsevier BV · 2010 10.1016/j.ijmultiphaseflow.2010.02.003
  21. Making Sense of Methods and Measurement: Pearson Product-Moment Correlation Coefficient Clinical Simulation in Nursing · Elsevier BV · 2014 10.1016/j.ecns.2014.07.010
  22. Influence of non-thermal plasma pretreatment on viscous crude oil wastewater evaporation process and on quality of the distilled water 2013 10.1109/icmree.2013.6893758
  23. Effects of flow patterns and salinity on water holdup measurement of oil-water two-phase flow using a conductance method Measurement · Elsevier BV · 2016 10.1016/j.measurement.2016.07.053