Introduction
The demand of sensors is growing rapidly worldwide. Besides the growth of the quantity, the technical requirements for better performance of sensors and the demand of customed sensing systems from industrials are increasing greatly due to the development of Internet of Things (IoT) enabled technologies [1]–[6]. Wang et al. [1] proposed an intelligent trust evaluation scheme in sensor-cloud-enabled industrial IoT. Qi et al. [2], [3] reviewed data fusion techniques for IoT applications and IoT for healthcare systems, and did researches on IoT enabled wearable sensors. Astill et al. [4] reviewed smart sensors, big data, and IoT for smart poultry management. Kamilaris and Pitsillides [5] reviewed IoT in mobile phone computing. Liu et al. [6] reviewed spintronic sensors with Internet of Things for smart living.
Wireless passive surface acoustic wave (WP-SAW) sensors have been increasingly investigated by worldwide researchers nowadays. It is so attractive because of its passive characteristics which makes batteries unnecessary in sensing systems, outstanding stability and reliability in harsh environment, small size making it easy to deploy for various applications, and its investor-friendly low cost [7]–[14].
WP-SAW sensors have been developed for measuring different kinds of physical quantities such as temperature [15], pressure [16], toque [17], strain [18], etc. and gas densities such as NO2 [19], CO2 [20], etc. However, the sensing data obtained and processed by newly designed and fabricated sensors are affected by errors due to various interferences, e.g., characteristics of materials, vibration effect, chip integration orientation misalignment, heating issues, random noise of operating environment, handling of world users, etc. [21]–[25].
Researchers made efforts on reduction of sensing errors caused by these interferences. Some algorithms were developed by previous researchers [26], such as least squares [27], polynomial fitting [28], and interpolation [29], etc., but these methods do not reflect real-time output data and cannot be used for real-time monitoring tasks. This disadvantage limits their usage scenarios. A traditional two-point simple moving average has very limited effect on error reduction on sensing errors if the variance is not close to 1 [30].
In order to resolve the aforementioned problem, an improved multi-iterative two-point simple moving average (MI-2P-SMA) method is proposed in this paper. For verification of its characteristics and effectiveness, it is applied to the original experimental sensing data of a newly designed and fabricated WP-SAW reflective delay line temperature and pressure sensor.
This research makes the following contributions.
The improved MI-2P-SMA is derived mathematically from the traditional 2P-SMA and analyzed using a diagram.
The improved MI-2P-SMA is successfully utilized to reduce relative errors on a WP-SAW reflective delay line temperature and pressure sensor.
The limitations of the improved MI-2P-SMA are summarized that the iteration time is limited to keep the characteristics of original data and at least half data points.
The rest paper is organized as follows. In Section II, the mathematical derivation of the improved MI-2P-SMA is presented. It is derived from the fundamental SMA theory and improved from the traditional 2P-SMA. It is described by a mathematic equation and a diagram. An architecture of data flow is proposed to explain how the MI-2P-SMA method works. In Section III, the WP-SAW reflective delay line temperature and pressure sensor is introduced. In Section IV, the experiments for obtaining sensing data are presented. In Section V, experimental data are compared with the data after MI-2P-SMA is applied. Regression and relative error analysis are utilized for data analysis. Finally, in Section VI, the results are concluded.
Multi-Iteration Enhanced Two-Point Simple Moving Average
A. Mathmatical Derivation
SMA can be utilized to reduce random noise and retain a sharp step response. It operates by averaging a series of points from input to produce each point in the output signal, which can be described as (1).\begin{equation*} y\left ({i }\right)=\frac {1}{M}\sum \limits _{j=0}^{M-1} {x(i+j)}\tag{1}\end{equation*}
Therefore, a 2P-SMA is that the number of points in average is 2, which is described as (2).\begin{equation*} y_{1}\left ({i }\right)=\frac {x\left ({i }\right)+x\left ({i+1 }\right)}{2}\tag{2}\end{equation*}
If the output of this 2P-SMA is the input of another 2P-SMA process, this entire two-step process is defined as a 2-iterative 2P-SMA, which can be described as (3).\begin{align*} y_{2}\left ({i }\right)=\frac {y_{1}\left ({i }\right)+y_{1}\left ({i+1 }\right)}{2}=\frac {x\left ({i }\right)+2x\left ({i+1 }\right)+x\left ({i+2 }\right)}{4}\!\! \\ {}\tag{3}\end{align*}
If this goes further, an \begin{align*} y_{n}\left ({i }\right)=&\frac {C_{n}^{0}x\left ({i }\right)\!+\!C_{n}^{1}x\left ({i\!+\!1 }\right)\!+\!C_{n}^{2} x\left ({i\!+\!2 }\right)\!+\!\ldots \!+\!C_{n}^{n} x\left ({i\!+\!n }\right)}{2^{n}} \\=&\frac {1}{2^{n}}\sum \limits _{j=0}^{n} {C_{n}^{j} x(i+j)}\tag{4}\end{align*}
\begin{equation*} C_{n}^{k}=\frac {n!}{k!\left ({\hbox {n-k} }\right)!}\tag{5}\end{equation*}
Equation (4), an
B. Diagram and Analisis
Figure 1 is the diagram of the MI-2P-SMA, which shows the data flow and also some features of the MI-2P-SMA. The feathers of MI-2P-SMA are summarized as follows. The first row shows the
C. Iteration Time
In order to improve the accuracy of sensing systems, MI-2P-SMA is applied to the original experimental data. However, the iteration time
Figure 2 shows the flow chart to select appropriate iteration time
WP-SAW Water Temperature and Pressure Sensor
The newly designed and fabricated WP-SAW sensor node is a WP-SAW reflective delay line temperature and pressure sensor node fabricated on a 0.5 mm thick Y-Z cut LiNbO3 piezoelectric crystal substrate, which has been presented in our previous work [31]–[33]. Table 1 shows the parameters of this WP-SAW sensor, and Figure 3 shows the structure of this WP-SAW sensor node.
An IDT is fabricated in the center of the surface of the substrate for converting received RF signals to the energy of SAW, and also re-converting the reflected SAW energy back to RF signals. The antenna is connected to the IDT for interrogation RF signal receiving and response signal transmission. The SAW propagates on the surface of the substrate, which is vertical to the IDT bars and to both opposite directions from the IDT. Three reflectors are fabricated on the surface of the substrate on the way of SAW propagation, which are paralleled to the IDT. Sound absorption materials are applied to the edges of the substrate for absorbing redundant SAW energy to avoid interferences on the useful SAW reflections. In Fig. 3, one reflector R1 is on the left side of the IDT for pressure sensing purpose, and two reflectors R2 and R3 are on the right side of the IDT for temperature sensing purpose. On the left side of the IDT, the substrate acts as a cantilever on which ambient pressure change acts on it to make deformation to the left side of the substrate. This leads to the change of the distance between R1 and the IDT, and subsequently influences the SAW propagation to make time delay change for sensing purpose. On the right side of the IDT, the substrate is bonded to the package to sense the temperature change. The temperature change can also make deformation of the substrate to make SAW propagation change which further causes the time delay change.
This WP-SAW reflective delay line temperature and pressure sensor has the following regulations based on our previous work [30]. In time domain, phase differences of the response signals reflected by the three reflectors from the sensor node have linear relationships with testing temperature and pressure changes, which can be shown in (6) and (7).\begin{align*} T-T_{i}=&A\left ({\varphi _{3}-\varphi _{3i} }\right) \tag{6}\\ P-P_{i}=&B(\varphi _{1}-\varphi _{1i})-C(T-T_{i})\tag{7}\end{align*}
Experiments
Figure 4 shows the photo of the experimental framework for testing the fabricated WP-SAW reflective delay line temperature and pressure sensor node. The instruments include an Agilent 33220A Function/Arbitrary Waveform Generator (20 MHz), an Agilent E4438C ESG Vector Signal Generator (250 kHz – 6 GHz), an Agilent MSO 6104A Mixed Signal Oscilloscope (1 GHz) and an Agilent E4440A PSA Series Spectrum Analyzer (30 kHz – 26.5 GHz). The sensor node is placed in the inner layer top of a double-layer glass pipe. The inner layer of the pipe is strictly sealed by the steal substrate and have access to the liquid pressure transfer platform for pressure test purpose. The outer layer of the pipe is sealed by a rubber plug and connected to the water bath temperature controller by two rubber hoses for a water cycle to control the temperature of the inner layer pipe. The sensor node receives the interrogation RF signal which is the wireless modulated signal from the Agilent E4438C ESG Vector Signal Generator, and then reflect it to form response signals with sensing information to the Agilent MSO 6104A Mixed Signal Oscilloscope and Agilent E4440A PSA Series Spectrum Analyzer which are used to record and process both interrogation and response RF signals.
Results and Discussions
A. Temperature Data
Figure 5 shows the comparison of original experimental temperature data, 5-, and 10-time MI-2P-SMA processed data with linear regression analysis: blue dots and line shows original experimental data and their trend line; orange dots and line shows 5-time MI-2P-SMA processed data and their trend line; grey dots and line shows 10-time MI-2P-SMA processed data and their trend line. Table 2 shows the linear regression equations and variances of original experimental temperature data, 5-, and 10-time MI-2P-SMA processed data, where x is the temperature value and y is the phase difference value. The linear regression equation represents the theoretical linear relation between temperature and the phase difference of the response signal reflected by R3. The variance values are close to 1, which means the data are close to their linear regression equations.
The comparison of original experimental data, 5-, and 10-time MI-2P-SMA processed data with linear regression analysis: blue – original, orange – 5, grey – 10.
Relative error can be calculated by (8). Figure 6 shows the comparison of relative errors of original experimental temperature data, 5-, and 10-time MI-2P-SMA processed data. Table 3 shows the range of relative errors of original experimental temperature data, 5-, and 10-time MI-2P-SMA processed data. The range of relative errors of the original experimental temperature data is from −3.40% to 1.87%. After 5-, and 10-time MI-2P-SMA, the range of relative errors is from −0.88% to 0.35%, and from −0.17% to 0.13%, respectively.\begin{align*}& \delta =\frac {\Delta }{L}\ast 100\% =\frac {Experimental~value-Theoretical~value}{Theoretical~value} \\& \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \ast \, 100\%\tag{8}\end{align*}
The comparison of relative errors of original experimental data, 5-, and 10-time MI-2P-SMA processed data: blue – original, orange – 5, grey – 10.
In summary of temperature data analysis, the MI-2P-SMA method does not change the original characteristics of experimental temperature data. The more iterative times of MI-2P-SMA applies, the range of relative errors is more significantly reduced, and the variance values are closer to 1. This indicates that the more iterative times of MI-2P-SMA applies, the temperature data are closer to their linear regression equations. Figure 5 shows the obvious reduction of the number of data points, which verified the regulation of MI-2P-SMA presented in Section 2. In this temperature data case, the characteristic curve of original experimental temperature data is almost linear. After 10-time MI-2P-SMA, the variance is extremely close to 1; the range of the relative errors is significantly reduced; more than half data points are kept. Therefore, 10 iteration times are selected for this temperature data case.
B. Pressure Data
Figure 7 shows the comparison of original experimental pressure data, 4-, 5-, 6-, and 10-time MI-2P-SMA processed data with linear regression analysis: blue dots and line shows original experimental data and their trend line; orange dots and line shows 4-time MI-2P-SMA processed data and their trend line; grey dots and line shows 5-time MI-2P-SMA processed data and their trend line; yellow dots and line shows 6-time MI-2P-SMA processed data and their trend line; sky blue dots and line shows 5-time MI-2P-SMA processed data and their trend line. Table 4 shows the linear regression equations and variances of original experimental pressure data, 4-, 5-, 6-, and 10-time MI-2P-SMA processed data, where
The comparison of original experimental pressure data, 4-, 5-, 6-, and 10-time MI-2P-SMA processed data with linear regression analysis: blue – original, orange – 4, grey – 5, yellow – 6, sky blue – 10.
Figure 8 shows the comparison of relative errors of original experimental pressure data, 4-, 5-, 6-, and 10-time MI-2P-SMA processed data. Table 5 shows the range of relative errors of original experimental pressure data, 4-, 5-, 6-, and 10-time MI-2P-SMA processed data. The range of relative errors of the original experimental pressure data is from −3.38% to 2.95%. After 4-, 5-, 6-, and 10-time MI-2P-SMA, the range of relative errors is from −1.62% to 1.52%, from −1.45% to 1.44%, from −1.22% to 1.38%, and from −1.30% to 0.96%, respectively.
The comparison of relative errors of original experimental pressure data, 4-, 5-, 6-, and 10-time MI-2P-SMA processed data: blue – original, orange – 4, grey – 5, yellow – 6, sky blue – 10.
In summary of pressure data analysis, the MI-2P-SMA method does not change the original characteristics of experimental pressure data. The more iterative times of MI-2P-SMA applies, the range of relative errors is more significantly reduced, but in this pressure data case, the variance value reaches highest after 5-time MI-2P-SMA, and then it gradually drops. Figure 7 also shows the obvious reduction of the number of data points, which verified the regulation of MI-2P-SMA presented in Section 2. In this pressure data case, the characteristic curve of original experimental pressure data is almost linear. After 10-time MI-2P-SMA, the range of relative errors is significantly reduced, and more than half data points are kept. Therefore, 10 iteration times are selected for this pressure data case.
Compared with the temperature data, the original experimental pressure data have larger error range than the original experimental temperature data. This is due to the higher relative resolution and accuracy of temperature sensing than pressure by this WP-SAW reflective delay line temperature and pressure sensor. The relative resolution and accuracy are related to the sensor node design and the standard of the fabrication processes.
Conclusion
The improved MI-2P-SMA method is presented by mathematic deviation from fundamental SMA and traditional 2P-SMA and diagram analysis. The method of selection of the iterative time
ACKNOWLEDGMENT
The authors would like to thank Dr. Tianli Li from the Shenzhen Key Laboratory of Electromagnetic Control, College of Mechatronics and Control Engineering, Shenzhen University, China.