Next Article in Journal
The Performance of the Magneto-Impedance Effect for the Detection of Superparamagnetic Particles
Next Article in Special Issue
Robust Estimation of Carbon Monoxide Measurements
Previous Article in Journal / Special Issue
A Multi-Node Detection Algorithm Based on Serial and Threshold in Intelligent Sensor Networks
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Temperature Sensor Denoising Algorithm Based on Curve Fitting and Compound Kalman Filtering

1
The College of Engineering, Ocean University of China, Shandong 266100, China
2
College of Letters and Science, University of Wisconsin-Madison, Madison, WI 53711, USA
*
Author to whom correspondence should be addressed.
Sensors 2020, 20(7), 1959; https://doi.org/10.3390/s20071959
Submission received: 13 March 2020 / Revised: 27 March 2020 / Accepted: 30 March 2020 / Published: 31 March 2020

Abstract

:
One of the most important ocean water parameters in world ocean observations is temperature. In the application of high-precision ocean sensors, there are often various interferences and random noises. These noises will cause the linearity of the sensor to change, and it is difficult to estimate the statistical characteristics, and the results will deviate from the real temperature. Aiming at the problems in the application, this paper proposes a compound Kalman smoothing filter (CKSF) algorithm based on least square curve fitting. This algorithm first analyzes the system model of the sensor, uses the least square method to fit the theoretical data and eliminate the non-linear factors caused by system itself, then estimates the statistical characteristics of the noise required by modeling, using the wavelet transform method to track the change of noise in real time and to accurately estimate the noise variance. Finally, a compound filtering method including wavelet transform and Kalman smoothing filtering is used as the main denoising algorithm, which is more accurate than a single Kalman filtering result. The algorithm is applied to the temperature measurement process of the ocean temperature sensor. The results show that the accuracy and stability of the sensor are improved.

1. Introduction

The sensor is a detection device that can convert the detected values into an electrical signal. It is a key device to achieve complex control in the field of mechanical control and automation design. In particular, temperature sensors have important applications in the fields of water quality prediction and industrial control [1,2], and temperature is also an important marine physical parameter. According to relevant studies [3], a deviation of 0.25 °C in seawater temperature will cause changes in water oxygen content, threatening the survival of some marine organisms. If the temperature fluctuation is large, it will cause natural meteorological disasters, and most physical parameters and detection instruments require temperature compensation. Therefore, high precision and stable temperature sensors are very important in research [4]. However, the complex environmental noise and system errors often limit the improvement of sensor accuracy. In the application, various filtering algorithms are often used to improve stability and precision, such as low-pass filtering, which can reduce the ripple caused by stable environmental noise, but a single hardware filtering method cannot adapt to the complex and changeable marine environment and time-varying noise. Therefore, in many sensors (e.g., the surface acoustic wave sensors, temperature sensor etc.) design processes often need to add intelligent algorithms to achieve sensor denoising.
At present, the more practical algorithms for temperature sensor denoising are the methods proposed in [2,5]. Although these algorithms can improve the accuracy of temperature sensors, the marine environment is often changeable and complex, so a single algorithm is difficult to adapt. In addition, the Kalman filter model needs to estimate the statistical characteristics and system characteristics of the noise, especially the estimation of the covariance of the noise, which is very important for the output accuracy of the model. In [6,7], different algorithms were proposed, and most of them used complex mathematical methods to solve the statistical characteristics of noise. The application background is complex, and it is suitable for multivariate signal processing.
In this paper, a compound Kalman filtering method is proposed, which has a higher robustness and accuracy than the single Kalman filter method. It mainly consists of two parts: the least square method for fitting and wavelet transform for noises variance estimation. This focuses on the problem of estimating the statistical characteristics of noise during non-stationary temperature measurement, using the wavelet transform method. This method has the advantage of local signal analysis and optimization, and predicts noise changes in real time [8]. We then focus on the non-linear characteristics of the sensor caused by noise, using the least square method for curve fitting to get mathematical relationship between resistance and temperature, selecting the appropriate degree of fit to eliminate fault values. The output of the system after curve fitting could be only disturbed by the environmental noise, reducing the influence of system-inherent errors, and further improving the stability and accuracy of the compound Kalman smoothing filter (CKSF) model. Using smoothing filters after Kalman filtering can make the results of Kalman filtering more accurate.
The main difference between the method in this paper and the traditional Kalman denoising algorithm is that the observed noise variance P(k) in Equation (10) is not determined in advance based on empirical values, but is estimated based on the signal value of the measured noise. This proves that the variance of the observation noise used in the calculation is basically the same as the variance of the observation noise of the actual system. Even if the noise of the actual system changes due to some interference, the variance estimated by the algorithm can accurately follow the variation of the noise of the observed signal. In order to verify the algorithm, the article takes a temperature sensor based on platinum (Pt) thermal resistance. However, during the actual measurement in the seawater for seven days, we found that the sensor is affected by environmental noise and system noise, which caused the measured temperature value to fluctuate greatly and inaccurately reflect the true temperature. The comparative experimental results show that the optimized design greatly improves the measurement accuracy.

2. CKSF Denoising Algorithm Analysis

2.1. Kalman Filter Model of Temperature Sensor

The Kalman filter includes two parts: the prior estimation and the posterior estimation of the state [9]. Based on the sensor system, this article designs a Kalman smoothing filter based on Kalman estimation, which mainly consists of noise variance characteristics estimation and Kalman filtering and data averaging. By comparing the single Kalman filter model and the CKSF algorithms, we show that the algorithm in this paper can effectively reduce the 0.006 °C (an average of errors) error. The actual application of the sensor system is shown in Figure 1.
The main advantage of the platinum thermal resistance temperature sensor (PTS) over thermocouples and thermistors is that PTSs have good linearity, so the sensor discrete control system can be approximated as:
x k = F k 1 x k 1 + W k 1 y k = B k x k + V k
In Equation (1), F(k-1), B(k) is the state transition matrix of the sensor system. If the sensor is a temperature sensor, X ( k ) R n × 1 is defined as the temperature value at the moment k; y(k) is the observation value; W(k-1) and V(k) are the state noise and observation noise of the temperature sensor, the statistical characteristics of this noise are random and uncertain in applications. The method of wavelet transform is used to estimate the variance characteristics of this kind of uncertainty noise. It is assumed here that the noise is White Gaussian Noise, and the statistical characteristics of the noise satisfy:
E W k 1 = E V k = 0 C o v W k 1 = Q k 1 C o v V k = R k
where Q(k-1) and R(k) represent the variance of process noise W(k-1) and measurement noise V(k). Therefore, the sampling temperature value (T) output by the system at continuous moments is:
Y k = n = 1 k y n = T 1 + T 2 + + T n
The specific algorithm steps of using the improved Kalman filtering algorithm to the temperature sensor are:
The estimated value of the temperature at time k-1 is x ^ k 1 , then the further estimation (prior estimate) of the state at moment k is the Equation (4) and the estimated covariance is Equation (5), x ^ k | k 1 indicates that the temperature at time k is estimated using time k-1.
x ^ k | k 1 = F k 1 x ^ k 1
P k | k 1 = E x k 1 x ^ k 1 x k 1 x ^ k 1 T
Equations (4) and (5) complete the prior rough estimation of the state from k-1 to k. Obviously, different noises may be added in this process [10], and the predicted value may not completely reflect the true temperature. Using the state recursive estimation, the estimated value after error correction is shown in Figure 2. where the innovation is usually represented by a(k), indicating the difference between the predicted value and the actual value, and Kalman gain G(k) indicates that this part of the innovation information occupies proportions [11,12]. So, based on the estimation method in Figure 2, we can deduce:
x ^ k = x ^ k 1 + G k a k a k = y k H k x ^ ( k | k 1 )
where y(k) indicates the state observation measurement of the posterior estimation, and H(k) indicates the state transition at time k. In addition, the state value x(k) and observed value y(k) are both the environment temperature value (°C). There is no state transition. Assume H(k) = I for ease of calculation.
Moreover, the covariance of the innovation in the temperature estimation process can be obtained:
P k = E a k a k T = E x k + V k x ^ k | k 1 x ^ k | k 1 T = R k + P e k
Because of the state prediction and observation noise correlation coefficients ρ satisfies ρ V k , e k = 0 . The innovation variance can be written as the result of Equation (7), E [ e ^ ( k ) e ^ ( k ) T ] = P e ( k ) is the state prediction error covariance. Establishing a posterior estimation model, the estimated state results need be evaluated, so the error in the state estimation process is defined as
e ( k ) = x ( k ) x ^ ( k ) = [ I G ( k ) H ( k ) ] e ( k | k 1 ) P ( k ) = [ I G ( k ) H ( k ) ] P ( k | k 1 )
where e(k|k-1) and P(k) represents the state prediction error and the covariance of the state estimation error for the posterior estimation model, e(k) represents the deviation between real value and predictive value at the moment of k.
Equations (2) to (8) are the modeling processes of improved Kalman filter estimation. Because the Kalman filter algorithm is a recursive algorithm based on prior and posterior estimates [9], the Kalman filter algorithm can only be used for state estimation at moment k and k-n(n<k). The improved algorithm adds an average value of smooth filtering and the wavelet transform method, which reduces the data error and improves the accuracy of the state estimation, as shown in Figure 3.
However, in practical problems, CKSF modeling requires two important parameters, namely the Kalman gain and the initial temperature value of the sensor observation. In this paper, using the Kalman recursive least squares estimation to solve the Kalman gain, Z(k) is defined as the objective function, as shown in Equation (9):
Z ( k ) = E [ e ( k ) e ( k ) T ] = E [ t r ( e ( k ) e ( k ) T ) ]
where tr[e(k)e(k)T] represents the trace of matrix. The objective function Z(k) is minimized using the Lagrange multiplication and matrix inversion method [13] to deduce the proportion of innovation information, that is, Kalman gain G(k). Here, assume H to be the identity matrix.
G ( k ) = P ( k k 1 ) H T [ H P ( k k 1 ) H T + P ( k ) ] 1
The second parameter is to solve the initial temperature values. The CKSF algorithm needs to assume the initial state of the system and the initial estimation error covariance. Generally, the initial estimation error covariance of the system is not set to zero because it will cause the Kalman filtering algorithm to trust the initial prediction state too much. As a result, the estimation error of the algorithm will be too large. Based on the empirical model [10], the initial estimation error covariance of the temperature sensor is:
P ( 0 ) = E { [ x ( 0 ) x ^ ( 0 ) ] [ x ( 0 ) x ^ ( 0 ) ] T }

2.2. Estimation of Noise Variance During Temperature Observation

The modeling assumes that the noise in the temperature sensor observation process is Gaussian white noise, but the statistical characteristics and distribution of the noise in the actual process are unknown. If the statistical characteristics of the noise change significantly, the mean square error of the improved Kalman filter solution has deviated from the real situation (real temperature values) and cannot reflect the accuracy of the state estimation, although the effect on the result may be small for a period of time [12]. That is to say the ideal model observation data is a mixture of signal and noise [14] and not suitable for practical applications.
When noise and signal are mixed, the analysis process becomes complicated. At present, there are many methods for separating noise and signal, such as the commonly used oblique projection filtering, particle filter, and blind separation algorithm [15,16]. However, in the Kalman smoothing filter, only the statistical characteristics of the noise needs to be known, and the noise and signals need not be accurately separated, therefore using the wavelet transform method to estimate the statistical characteristics of the noise. The wavelet transform can focus on the signal detailed aspect and realize the precise local optimization. Using this method, we can separate the high-frequency noise that mainly affects the actual measurement data, and solve the variance of the high-frequency noise.
The detection temperature values of the sensor with random noise is approximated by a polynomial expansion method with an error f(k):
y k = b 0 k 0 + b 1 k 1 + + f k
Yielding the Equation (13) by the linear transformation of the wavelet function:
ψ a , τ ( k ) = a 0.5 ψ ( k τ a )
Equation (13) describes the relationship between the zoom (a) and translation (τ) transformed from the wavelet mother function and the mother function transformation sequence ψ a , τ ( k ) .
Using wavelet transform to process the temperature sensor observation data y(k):
W t l a , τ = y k × ψ a , τ k = W t a , τ + W l a , τ
The W t l a , τ represents the function after wavelet transform. The W t a , τ   and   W l a , τ denotes the approximate part and the detail part of the wavelet coefficients. Choosing the suitable vanishing moments of the mother function, the wavelet transform will enhance the ability of the observed signal to suppress the source signal, so that only the noise component W l ( a , τ ) is retained [17].
If the state value of the temperature is the piecewise polynomial within a period of time, a suitable observation interval is selected so that the vanishing moment of the wavelet mother function is greater than the order of the highest polynomial in the piecewise polynomial. The implicit noise variance in the process of measuring the temperature value can be presented by using the median estimation of the approximate part of the wavelet coefficients in the wavelet transform [18], which is Equation (15):
D δ ( k ) M A D 0.6745
where the MAD is the median value of the high-frequency sub-band wavelet coefficient amplitudes contained in all decomposition layers after wavelet transform [19]. The Dδ (k) is the noise global variance. In summary, the steps of estimating the variance of noise by wavelet transform are shown in Figure 4.

2.3. Sensor Resistance and Temperature (R_T) Fitting Model

The thermal resistance temperature sensor is mainly used in this paper. The linearity of platinum thermal resistance is better than that of a thermistor, and the measurement value between low and medium temperature measurement is stable. If the sensor is affected by noise, the linearity deteriorates and the non-linear characteristics increases. This will cause the Kalman filtering algorithm result and accuracy to deviate from the ideal values. At present, the basic processing method is system linearization, such as the use of extended Kalman filter (EKF), volume Kalman filter (VKF) and other methods, which can solve nonlinear problems [20]. However, the algorithm is complicated, and the robustness of the system will be reduced [21]. For the non-linear part of the system, it only appears in the stage of interference, thus the direct linearization method is not very practical. The main method used in this paper is to fit the temperature characteristic curve by using the least square method, and then to perform the Kalman smoothing method. The data results show that the system is stable and the temperature observation value is closer to the real temperature.
Using the least square method fitting for the curve of R_T, the discrete state equation of the observation is the Equation (1). For a given state value x(k), there is a corresponding y ^ k in the state estimation, the estimated value is often different from the observed value y(k). There is a deviation between them. The sum of the squared deviations is defined as:
J ( k ) = i = 1 n [ y ( k ) y ^ ( k ) ] [ y ( k ) y ^ ( k ) ] T
In the state estimation, the state estimation of the regression equation should be as accurate as possible. According to the minimum mean square error (MMSE) methods, the partial derivatives for J(k) need satisfy [22]:
x i J ( k ) = 0
In this paper, we perform a first- and second-order fitting on the temperature data. By comparing the conventional residuals, as shown in Figure 5, the second-order fitting has the best effect.

3. Experimental Data Analysis and Discussion

3.1. Temperature Sensor Selection and Application

The data were measured by using a temperature sensor, and a series of actual interference and theoretical noise were added. The validity of the CKSF algorithm is verified by comparing the processed data with the original data. In this experiment, the host computer software was written by using C SHARPE and Visual Studio 2019 software (Microsoft Corporation) to obtain the resistance and temperature values measured by the temperature sensor.
The temperature sensor used in the experiment is a platinum thermal resistance (PTR) type, degrees B (technical parameter), the values of temperature coefficient of resistance (TCR) is 0.003851 and the temperature calculation follows the empirical Equation (18):
R ( t ) = R 0 ( 1 + A t + B t 2 )
where A and B are constants, R0 is the resistance values at 0 °C.

3.2. The Analysis of Least Squares Method Results

This analysis is based on Section 2.3, using the least squares second-order fitting to calculate the value of the constant A and B in Equation (18). The resistance data of the least squares fitting is derived from the output of the precision resistance box. This calibration method can greatly improve the accuracy of the sensor compared to directly using the resistance parameters in the technical manual (In the technical manual of PTR, there are general reference values of A and B.). As the PTR sensors use different A and B parameters, Table 1 shows the comparison between using second order fitting methods and sensor manual parameters.
In addition to the system error reflected in Table 1, in the actual measurement process, even temperature ranges with good linearity will fluctuate. These fluctuations will make the Kalman filter result inaccurate. The least square curve fitting can ensure the accuracy of the sensor’s input curve and reduce the influence of error on the observed value. In Figure 6, 1#, 2# and 3# represent the R_T data measured by three different temperature sensors. It can be seen from the experimental results that the least square method is not used to preprocess the curve, and the system error during the measurement process will cause the curve to be unstable and nonlinear.
The experimental data were preprocessed by the least square method. Figure 6 shows that the processing of the least square method (only processing the sensor 2#) can ensure that the data measured by the sensor is approximately linear, and the fitting process can make the Kalman filter model identify and predict the data more accurately.

3.3. The Analysis of Wavelet Transforms Results

The data output by the sensor is obtained on the basis of the least square method to compensate the system error. However, the actual measurement process is also affected by the position of the sensor in the liquid, the environment (humidity, mechanical vibration, etc.) and the accuracy of the data calculation. It is very important for modeling to estimate the variance of these random noises.
In order to verify the performance of the CKSF algorithm in eliminating observation noise, we used the wavelet transform to process the observation data (here choosing the negative temperature coefficient sensor). The approximate part and the detail part are separated, and then the noise covariance is solved to estimate the preliminary statistical characteristics of the noise. According to the calculation in Paper [19], the sliding window was selected as 30S in the experiment.
As shown in Figure 7, the wavelet transform can effectively separate the approximate part and the detailed part of the observation signal. According to the Equation (14), choosing a suitable wavelet vanishing moment for the separated noise can effectively calculate the covariance of the noise, solve the problem that the covariance of the observed noise of the Kalman filter model is difficult to estimate and have good followability for the method, identifying time-varying signals of noise change [7]. The noise covariance estimation is shown in Figure 8 (the right figure shows the monitoring values of different sensors in a constant temperature water of 15 Celsius in 200s, and the left figure shows the noise covariance estimation by using wavelet transform).
According to the analysis on the left in Figure 8, it can be observed that the wavelet transform can effectively estimate the noise covariance within a certain error range, and can track the change of noise in real time, providing a guarantee for an accurate Kalman filter model. In addition, the average filtering method is usually used to process data with large variance fluctuations.

3.4. Comparative Analysis with Other Algorithms

Here, we focus on the data with random noise, using the wavelet transform method to estimate covariance. The Kalman algorithm was used to build the CKSF model. Through comparison with the unfiltered temperature value, the observation temperature is stable even with uninterrupted random noise by using CKSF algorithms. By adjusting the interval of the filtering and compensation, the high-precision output of the sensor can be effectively realized in the case of interference. The noise sources in the experiment are mainly electromagnetic vibration, humid environment, sensor position and more. The temperature data containing random noise are observed in the constant-temperature water bath (at standard atmospheric pressure, the water temperature is 28.51 degrees Celsius), as shown in Figure 9.
It can be seen from Figure 9 that the artificial application of process noise will cause the measured value of the temperature sensor to deviate from the actual value, so it is inaccurate to directly use the temperature value of the disturbed sensor. Using the CKSF algorithm and the single Kalman method to process the actual observation temperature value, the algorithm in this paper is smoother than the single Kalman filter, and the experimental data is closer to the real temperature, as observed in Figure 10 and Table 2.

4. Conclusions

This paper mainly designs the CKSF algorithm for cases where the ocean temperature sensor is easily influenced by uncertainty and random noise, which causes the measurement data to fluctuate greatly, and deviate from the real environment temperature.
Firstly, the noise of the sensor is analyzed, and a model using wavelet transform to estimate the statistical characteristics of the noise is proposed, including use of the least square curve fitting method to reduce the system error of the sensor. Furthermore, based on this model, we deduce the sensor data processing algorithm that compounds the Kalman smoothing filtering algorithm. Through analysis and simulation using the CKSF method, the temperature value detected by the sensor can effectively restore the actual temperature under the conditions of random and uncertain noise. Therefore, it has potential to be applied in sensor design and data processing.

Author Contributions

The authors of this paper were Y.Z., R.W., S.L. and S.Q. They proposed relevant methods and conducted experiments and data analysis. S.Q. is project manager and put forward constructive suggestions in the algorithm. Y.Z. mainly perfected the algorithms. R.W. contributed the design of the hardware and formal analysis. S.L. participated in the design of software. All authors have read and agreed to the published version of the manuscript.

Funding

This research was supported by the Fundamental Research Funds for the Central Universities (grant No. 201964014).

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Kang, A.; Zhang, C.; Luo, Z. SAW RFID Enabled Multi-Functional Sensors for Food Safety Applications. In Proceedings of the IEEE International Conference on RFID-Technology and Applications, Guangzhou, China, 17–19 June 2010. [Google Scholar]
  2. Stroganov, K.; Kornilov, T.; Onidov, T.; Luylin, B. SAW Temperature Sensors for Electric Power Transmission Lines. In Proceedings of the European Frequency and Time Forum, Denver, CO, USA, 13–15 April 2015. [Google Scholar]
  3. Munday, P.L.; Crawley, N.E.; Nilsson, G.E. Interacting effects of elevated temperature and ocean acidification on the aerobic performance of coral reef fishes. Mar. Ecol. Prog. 2009, 388, 235–242. [Google Scholar] [CrossRef] [Green Version]
  4. Izadi, D.; Abawajy, J.H.; Ghanavati, S.; Herawan, T. A data fusion method in wireless sensor networks. Sensors 2015, 15, 2964–2979. [Google Scholar] [CrossRef] [PubMed]
  5. Gao, Y. Theory and Application of Self-Confirmation Sensor; Fudan University: Shanghai, China, 2008. [Google Scholar]
  6. Cradoso, J.F. Infomax and maximum likelihood for blind source separation. IEEE Signal Process. Lett. 1997, 4, 112–114. [Google Scholar] [CrossRef]
  7. Liu, X.; Peng, K.; Chen, Z.; Pu, H.; Yu, Z. A new capacitive displacement sensor with nanometer accuracy and long range. IEEE Sens. J. 2016, 16, 2306–2316. [Google Scholar] [CrossRef]
  8. Liu, Z.C. Research on On-Line Sensor Performance Evaluation and Fault Diagnosis Method; National Defense Industry Press: Beijing, China, 2013. [Google Scholar]
  9. Wang, S.Y.; Huang, J.W.; Xie, Z.G. Principle and Application of Nonlinear Kalman Filter; Electronic Industry Press: Beijing, China, 2015. [Google Scholar]
  10. Fan, X.; Dong, C.; Miao, H. A wavelet adaptive cancellation algorithm based on multi-inertial sensors for the reduction of motion artifacts in ambulatory ECGs. Sensors 2020, 20, 970. [Google Scholar]
  11. Li, X.; Wang, Y.; Khoshelham, K. Comparative analysis of robust extended Kalman filter and incremental smoothing for UWB/PDR fusion positioning in NLOS environments. Acta Geod. Geophys. 2019, 54, 157–179. [Google Scholar] [CrossRef]
  12. Musoff, H.; Zarchan, P. Fundamentals of Kalman filtering: A practical approach, second edition. Prog. Astronaut. Aeronaut. 2015, 190, 83. [Google Scholar]
  13. Abbas, S.; Tsui, C.Y. Approximate Matrix Inversion for Linear Pre-coders in Massive MIMO. IFIP/IEEE International Conference on Very Large-Scale Integration System on a Chip, Tallinn, Estonia, 26–28 September 2016. [Google Scholar]
  14. Zeng, C.; Yang, Q.; Wang, J. Chaos and mixed synchronization of a new fractional-order system with one saddle and two stable node-foci. Nonlinear Dyn. 2011, 65, 457–466. [Google Scholar] [CrossRef]
  15. Zuo, J.; Liang, Y.; Zhang, Y. Particle filter with multimode sampling strategy. Signal Process. 2013, 93, 3192–3201. [Google Scholar] [CrossRef]
  16. Paek, J.; Ko, J.G. K-means clustering-based data compression scheme for wireless imaging sensor networks. IEEE Syst. J. 2017, 11, 2652–2662. [Google Scholar] [CrossRef]
  17. Timothy, P.; Idris, A.E.; Hernando, C.O. Dynamic classification using multivariate locally stationary wavelet processes. Signal Process. 2018, 152, 118–129. [Google Scholar]
  18. Feng, W.; Ke, Y.; Mingming, Y. Self-Adaptive Wavelet Denoising for Feature Extraction of Mechanical Fault Diagnosis Based on a Modified Sparse Coding Shrinkage. In Proceedings of the 2012 international conference on Intelligent Control, Automatic Detection and High-End, Beijing, China, 27–29 July 2012. [Google Scholar]
  19. Xu, L.; Zhang, J.Q.; Yan, Y.A. Wavelet-Based Multi-sensor Data Fusion Algorithm. IEEE Trans. Instrum. Meas. 2004, 53, 1539–1545. [Google Scholar] [CrossRef]
  20. Parida, A.K.; Maity, K. Effect of nose radius on forces, and process parameters in hot machining of Inconel 718 using finite element analysis. Eng. Sci. Technol. Int. J. 2017, 20, 687–693. [Google Scholar] [CrossRef] [Green Version]
  21. Zhang, Y.; Qi, S.; Zhou, L. Single channel blind source separation for wind turbine aeroacoustics signals based on variational mode decomposition. IEEE Access 2018, 6, 73952–73964. [Google Scholar] [CrossRef]
  22. Sun, X.; Dong, X.; Cai, L. Visible-NIR spectroscopy and least square support vector machines regression for determination of vitamin C of mandarin fruit. Sens. Lett. 2012, 10, 506–510. [Google Scholar] [CrossRef]
Figure 1. The algorithm application diagram, the upper left picture is the temperature sensor data fit, and the red waveform is a schematic diagram of the collected temperature data.
Figure 1. The algorithm application diagram, the upper left picture is the temperature sensor data fit, and the red waveform is a schematic diagram of the collected temperature data.
Sensors 20 01959 g001
Figure 2. Schematic of using state recursive estimation to correct errors.
Figure 2. Schematic of using state recursive estimation to correct errors.
Sensors 20 01959 g002
Figure 3. The measurement principle block diagram of the improved Kalman filter algorithm, including two parts of design data processing by algorithm and average value filtering (The method of averaging the observations is called smooth filtering in diagram.).
Figure 3. The measurement principle block diagram of the improved Kalman filter algorithm, including two parts of design data processing by algorithm and average value filtering (The method of averaging the observations is called smooth filtering in diagram.).
Sensors 20 01959 g003
Figure 4. The flow diagram of the wavelet transform algorithm to solve the noise variance.
Figure 4. The flow diagram of the wavelet transform algorithm to solve the noise variance.
Sensors 20 01959 g004
Figure 5. Comparison chart of the effect of first-order and second-order fitting using the least square method.
Figure 5. Comparison chart of the effect of first-order and second-order fitting using the least square method.
Sensors 20 01959 g005
Figure 6. Comparison chart of the effect of first-order and second-order fitting using the least square method. The resistance on the way is the resistance of the thermistor.
Figure 6. Comparison chart of the effect of first-order and second-order fitting using the least square method. The resistance on the way is the resistance of the thermistor.
Sensors 20 01959 g006
Figure 7. (a) Temperature and resistance curve with random noise; (b) Details of wavelet transform; (c) Approximate part of wavelet transform. Here, the abscissa represents the temperature value (°C), and the ordinate represents the corresponding resistance value (ohm).
Figure 7. (a) Temperature and resistance curve with random noise; (b) Details of wavelet transform; (c) Approximate part of wavelet transform. Here, the abscissa represents the temperature value (°C), and the ordinate represents the corresponding resistance value (ohm).
Sensors 20 01959 g007
Figure 8. Estimation of noise variance based on wavelet transform for different sensor.
Figure 8. Estimation of noise variance based on wavelet transform for different sensor.
Sensors 20 01959 g008
Figure 9. Temperature observation with random noise of constant temperature water bath.
Figure 9. Temperature observation with random noise of constant temperature water bath.
Sensors 20 01959 g009
Figure 10. Comparison of Kalman filtering and Kalman smooth filtering.
Figure 10. Comparison of Kalman filtering and Kalman smooth filtering.
Sensors 20 01959 g010
Table 1. The influence of temperature for different methods to obtain the parameters of A and B.
Table 1. The influence of temperature for different methods to obtain the parameters of A and B.
Temperature/°C 1Fitting ParaManual
2019.619.3
3029.729.1
4039.939.0
5049.549.1
6059.959.4
7069.869.8
1 Temperature represents the ambient temperature at this time; Fitting para represents using LS methods to detect temperature; Manual represents using sensor manual rate A and B value to detect temperature. For obvious comparison, we have only kept one decimal place.
Table 2. The data of using different algorithms to process temperature detected by ocean conductivity temperature depth sensor.
Table 2. The data of using different algorithms to process temperature detected by ocean conductivity temperature depth sensor.
Temp1 1Error1 2Temp2 3Error2 4
25.776−2.73428.5420.032
28.485−0.02528.323−0.187
28.416−0.09428.254−0.256
28.505−0.00528.233−0.277
28.495−0.01528.167−0.343
28.498−0.01228.075−0.435
28.483−0.02728.054−0.456
28.221−0.28928.337−0.173
28.36−0.15028.433−0.077
28.457−0.05328.248−0.262
28.199−0.31128.005−0.505
28.499−0.001128.016−0.494
28.491−0.01928.334−0.176
28.510.00028.280−0.23
28.445−0.06528.117−0.393
28.265−0.24528.371−0.139
28.322−0.18828.5560.046
28.423−0.08728.386−0.124
28.424−0.08628.365−0.145
28.356−0.15428.6960.186
28.500−0.01028.7080.198
28.5340.02428.9050.395
28.5430.03328.5790.069
28.5710.06128.6940.184
28.5540.04428.476−0.034
28.5660.05628.6100.100
28.570.06028.6850.175
28.5890.07928.6640.154
28.5970.08728.6290.119
28.5620.05228.429−0.081
28.520.01028.353−0.157
1 Temp1 represents the sensor temperature data (°C) processed by the algorithm in this paper. 2 Error1 represents the error between Temp1 and the standard environment temperature. 3 Temp2 is the sensor data (°C) processed by the single Kalman algorithm. 4 Error2 is the error between Temp2 and the standard environment temperature.

Share and Cite

MDPI and ACS Style

Zhang, Y.; Wang, R.; Li, S.; Qi, S. Temperature Sensor Denoising Algorithm Based on Curve Fitting and Compound Kalman Filtering. Sensors 2020, 20, 1959. https://doi.org/10.3390/s20071959

AMA Style

Zhang Y, Wang R, Li S, Qi S. Temperature Sensor Denoising Algorithm Based on Curve Fitting and Compound Kalman Filtering. Sensors. 2020; 20(7):1959. https://doi.org/10.3390/s20071959

Chicago/Turabian Style

Zhang, Yang, Rong Wang, Shouzhe Li, and Shengbo Qi. 2020. "Temperature Sensor Denoising Algorithm Based on Curve Fitting and Compound Kalman Filtering" Sensors 20, no. 7: 1959. https://doi.org/10.3390/s20071959

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop