Mathematical Problems in Engineering

Mathematical Problems in Engineering / 2015 / Article

Research Article | Open Access

Volume 2015 |Article ID 854945 | 6 pages | https://doi.org/10.1155/2015/854945

The Research of Temperature Compensation for Thermopile Sensor Based on Improved PSO-BP Algorithm

Academic Editor: Hakim Naceur
Received02 Feb 2015
Revised27 May 2015
Accepted30 May 2015
Published13 Aug 2015

Abstract

When thermopile sensor is used for safety monitoring of equipment in industrial environments, particularly for measuring the thermal radiation information of device, the measured result of this kind of sensor is usually affected by ambient temperature due to its unique structure. An improved PSO-BP algorithm is proposed for temperature compensation of thermopile sensor and correcting the error in the condition of the system accuracy requirements reduced by temperature. The core of improved PSO-BP algorithm is to improve the certainty of initial weights and thresholds that belonged to BP neural network and then train the samples by using BP neural network for enhancing the generalization ability and stability of system. The experimental results show that the proposed PSO-BP network outperforms other similar algorithms with faster convergence speed, lower errors, and higher accuracy.

1. Introduction

Condition monitoring of man-made systems is an important task in terms of system maintenance and process automation. In order to keep the security operation of various systems, many scholars have been working on the area of fast identification of faulty components based on various types of sensor data and intelligent evolutionary algorithms, which provides a basis for the fault isolation.

In the numerous fault monitoring, temperature is an essential factor about health status of the equipment. For the majority of electrical devices, equipment failure usually leads to temperature increment on the surface of device, which is the omen of short circuit or overcurrent. In particular, the joint position is easy to heat. Instead of the point-to-point temperature-measuring device, we use a real-time device named thermopile sensor for monitoring electrical equipment. Thermopile sensor is equivalent to several point-type infrared sensors, which can provide the distribution of temperature about mini-type area around the target. It turned the thermal radiation information into temperature data based on the theory of black-body radiation. The accuracy of temperature measurement is affected by the radiation information of environment or ambient temperature, which is a typical nonlinear programming problem. Several methods or models are proposed for solving this kind of problems such as expert system [1], artificial neural network (ANN) [2], fuzzy theory [3], and optimization theory [4]. These methods still have some disadvantages. For example, the knowledge base of the expert system is difficult to obtain from the complex working conditions. And the accurate fuzzy rules and membership functions are harder to determine. In the framework of ANN-based method, numerous training samples are closely related to the accuracy of output data. But back propagation (BP) neural network is usually used to solve some application problems based on its unique advantages such as high accuracy and simple operation. So our emphasis is on reducing the uncertainty of initial weight value and threshold of BP neural network for improving its directional generalization ability, which is a typical optimization problem.

There are many intelligence algorithms with different performance for solving the optimization problem such as genetic algorithm (GA) [4] and particle swarm optimization (PSO) [5]. Compared with other algorithms, PSO has few parameters to adjust, which is easy to implement. So it is one of the most popular optimization algorithms. Lazzús [6] combined the advantage of BP and PSO for predicting thermal properties of the organic compounds, which can improve the convergence speed and prediction accuracy of the traditional BP network. Zhang et al. [7] and Li and Zhou [8] proposed two kinds of improved PSO algorithm for overcoming shortcoming of the traditional BP network, which can adjust the inertia weight coefficients and learning factors adaptively.

In this paper, we propose an improved PSO algorithm based on optimizing the initial weight value and threshold for increasing the generalization ability of BP network. Then the improved PSO-BP algorithm is used to solve the temperature compensation of thermopile sensor. In order to demonstrate the effectiveness of the proposed method, we compare the proposed one with traditional BP and two kinds of improved PSO-BP algorithm [7, 8].

The rest of this paper is organized as follows. In Section 2, we introduce the basic PSO and the improved PSO algorithm. The improved PSO-BP method is proposed in Section 3; then we regarded some temperature data in the different ambient temperature conditions as the test set. The result and analysis of experiments are shown in Section 4 and the important conclusions are drawn in Section 5.

2. Basic and Improved PSO Algorithm

2.1. Basic PSO Algorithm

The inspiration of PSO algorithm is derived from the phenomenon of birds’ cluster which solves the problem of continuous variable optimization as its background. In the theoretical framework of PSO, every potential feasible solution is represented as a particle existing in the search space. There are two important variables that belonged to each particle: the position vector and velocity vector . The velocity vector is used to control the speed in which the particle moves towards the optimal solution. Meanwhile, every position vector has correlation with the particle fitness value. In the process of iteration, the particle updates its velocity and positions based on the following equations:where is the inertia weight, the larger is easy to result in global optimization, the smaller one is easy to generate local optimization, and . and are learning factors which represent two kinds of evolution ability such as self-learning and social learning, respectively. is the best solution and is the best known position existing in the entire swarm.

2.2. Improved PSO Algorithm
2.2.1. The Inertia Weight

In all kinds of improved algorithms, the inertia weight occupies an important role in the PSO, which is the balance point between the global and local search ability. For avoiding PSO algorithm into local optimum, different solutions are put forward for updating . Zhan et al. [9] proposed the following adjustment strategies and Zhang et al. [7] proved its effectiveness:where and are the maximum and minimum distance between all particles and optimal particle and is Euclidean distance between the th particle and the optimal particle, which is defined aswhere is the dimensions of each particle, and are the position value on the th dimension that belonged to the th particle and the optimal particle at the -iteration of PSO, respectively. is a constant. is the linear decreasing function for directed searching of . is the number of iterations where is the maximum value. The update rule based on Euclidean distance shown in (2) has more outstanding performance for enhancing the global search result to some extent. But the computational complexity of searching is more than which increases the burden of computer. Li and Zhou [8] proposed a simple method for updating based on the fitness function and proved the effectiveness of selection rules in the framework of PSO-BP algorithm. So we also use the fitness function to revise the formula shown in (2), which is written as follows:where is the fitted value in the current position where and are the minimum and maximum values, respectively. In addition, .

2.2.2. Learning Factors and

The learning factors and , called acceleration constants, are responsible for controlling individual cognitive component and group cognitive component . Due to the lack of methods and formula, the learning factor is usually determined on a general scope. Li and Zhou [8] utilized formula (1) at the different number of iterations for building a special linear difference equation with constant coefficients and gave the value range of and . Let ; the range of and is shown as follows [8]:

We suppose an extreme case for narrowing the scope of . Let us assume that is equal to , so the ideal range of is , which can provide the basis of constant selection about the adjusted equation inspired by Gao and Liao [10]. Two learning factors are updated by using the following criterion [10]:where is the average distance between each particle and the optimal particle at the th iteration, which is shown aswhere denotes the number of the swarm. In addition, Gao and Liao [10] proved that the PSO algorithm ultimately tends to the optimal solution with the help of updating the two factors based on the rule mentioned above. In the proposed algorithm, we also use the rule mentioned above and limit the scope of , which affects the convergence speed and accuracy. In the subsequent trial, we set .

3. Improved PSO-BP Flow (IPSO-BP)

BP neural network [11] is a feed-forward network, which is composed of input layer, hidden layer, and output layer. It substantially turns an input/output problem into a nonlinear optimization problem. BP algorithm depends on learning and training a certain amount of samples for determining weights and threshold of the network. Traditional BP network not only requires a large number of iterations but easily falls into local minimum. So we use the improved PSO algorithm to optimize the initial weights and the thresholds of basic BP algorithm and then train the samples for enhancing the generalization ability and stability of BP network. When BP network is used for temperature compensation, the original input is the measured temperature based on the thermopile sensor and ambient temperature; meanwhile, the output of network is the actual temperature of targets. The algorithm flow chart is shown in Figure 1.

The algorithm steps are shown as follows.

Step 1. Considering the process of initialization such as population size , particle dimension , the maximum number of iterations , the error precision of particles , the maximum speed , and the position .

Step 2. The initial weights and the thresholds of basic BP algorithm are become a column which are the initial population of PSO algorithm. Suppose the number of initial population is and the number of initial weights and thresholds is . is the initial position of one particle, .

Step 3. Initialize the velocity vector of particles. The forward network built by newff is regarded as the fitness function . The output of is , where is the data after normalized calibration [8].

Step 4. Compute the fitness value of every particle and find the best position along with updating particle based on formula (1) until training the best position of the whole particle swarm.

Step 5. Terminal condition: if the fitness value is less than the error precision of particles or is reached, the algorithm terminates; otherwise, go to Step 4.

4. Experiment and Analysis

4.1. Experimental Platform

The infrared temperature measurement system is shown in Figure 2, which consists of temperature sensor DS18B20, infrared thermopile sensor MLX90620, ultrasonic ranging module, and the core processor AT91SAM7S256. The role of components is displayed as follows.

DS18B20 is a kind of contact-type chip for targets’ surface temperature measurement. After being demarcated by mercurial thermometer with the accuracy of 0.1°C, the accuracy of DS18B20 reaches ±0.2°C within the limits of [−10°C, +85°C], whose data is used to be the reference data.

MLX90620 is the thermopile chip of noncontact temperature measurement, whose data is the aim of compensation. The measuring distance affects the accuracy of MLX90620 seriously, and its maximum distance is 1 m.

The ultrasonic module HC-SR04 is used for keeping distance between the sensor and the target which has the accuracy of 0.5%.

4.2. Sample Data Acquisition

The experiment was carried out on eight different environmental temperatures, and we use MLX90620 sensor to measure the surface temperature of eight different targets at the same distance, respectively. The sample data is shown in Table 1, where AT denotes the ambient temperature based on black ball temperature method that reflected environmental thermal radiation information. Reference and measured data are obtained from DS18B20 and MLX90620, respectively. Restricted by experimental conditions and methods, the range of AT is set to [15°C, 50°C].


AT = 15.2°CReference data (°C)20.523.926.128.732.4
Measured data (°C)24.225.228.931.236.0

AT = 19.4°CReference data (°C)21.422.625.229.230.2
Measured data (°C)23.124.726.930.432.3

AT = 26.7°CReference data (°C)22.223.624.830.433.8
Measured data (°C)24.325.926.131.734.5

AT = 30.0°CReference data (°C)20.221.624.225.332.8
Measured data (°C)22.923.926.427.633.8

AT = 35.2°CReference data (°C)25.427.528.331.233.5
Measured data (°C)28.429.032.133.436.0

AT = 39.3°CReference data (°C)24.428.530.631.534.6
Measured data (°C)27.630.433.135.037.5

AT = 43.5°CReference data (°C)23.226.532.735.837.7
Measured data (°C)25.729.034.437.940.0

AT = 46.2°CReference data (°C)24.526.728.333.436.7
Measured data (°C)26.428.531.636.839.0

We select 15.2°C, 19.4°C, 26.7°C, 35.2°C, 39.3°C as the training sample set, and 30.0°C, 43.5°C, 46.2°C is regarded as the test sample set. In order to make the collected data unified, we present a normalization to deal with these data according to formula (8) shown as follows. All the data are normalized to aswhere is the ambient temperature, and are the maximum and minimum of ambient temperature, respectively. is the normalized data. Similarly, we can obtain the target’s normalized data of measured temperature value.

4.3. Experimental Results

In this section, we adopt three algorithms such as basic BP, improved PSO-BP [7], and improved PSO-BP [8] for illustrating the effectiveness of the proposed approach. Kinds of basic parameter are set as follows:PSO: , , , , , , , , , .

BP: we adopted three-layer topology for building the network. The numbers of input, hidden, and output layer neurons are 2, 19, and 1, respectively. The training maximum number is 8000 and expects error to be 0.001; the hidden layer transfer function adopts S type tangent function “tansig,” the output layer transfer function uses linear function “purelin,” and the training function is “trainlm.”

In order to analyze the compensation effect quantitatively, we contrast the effect by the absolute value of error , which is written aswhere is the absolute error and is the reference value. Temperature compensation results are shown in Tables 2, 3, and 4.


Reference dataMeasured dataBP IPSO-BP [7] IPSO-BP [8]Proposed PSO-BP of BP of IPSO-BP [7] of IPSO-BP [8] of proposed PSO-BP

20.222.919.2119.7820.1820.134.90%2.1%0.1%0.35%
21.623.922.3322.421.9321.513.38%3.7%1.5%0.42%
24.226.422.1624.7324.6724.508.43%2.2%1.9%1.24%
25.327.622.5426.125.7725.1310.91%3.2%1.8%0.67%
32.833.833.6531.2632.4932.642.59%4.7%0.9%0.49%


Reference dataMeasured dataBP IPSO-BP [7] IPSO-BP [8]Proposed PSO-BP of BP of IPSO-BP [7] of IPSO-BP [8] of proposed PSO-BP

23.225.722.1523.1423.0723.14.5%0.27%0.6%0.4%
26.529.025.8125.7826.7726.412.6%2.7%1.1%0.34%
32.734.430.932.3632.7832.555.5%1.0%0.24%0.45%
35.837.933.9735.435.2335.655.1%1.1%1.6%0.41%
37.740.036.937.2137.9238.02.1%1.3%0.58%0.81%


Reference dataMeasured dataBP IPSO-BP [7] IPSO-BP [8]Proposed PSO-BP of BP of IPSO-BP [7] of IPSO-BP [8] of proposed PSO-BP

24.526.421.324.0324.8724.213.1%1.92%1.5%1.2%
26.728.524.1726.1826.5126.49.4%1.94%0.71%1.1%
28.331.627.2329.0629.7328.353.7%2.67%0.51%0.17%
33.436.831.4834.1433.6533.515.7% 2.2%0.74%0.32%
36.739.035.9736.4936.8136.892.0%0.57%0.31%0.52%

From Tables 2 to 4, we can see that temperature compensation algorithm based on BP network is fit for improving the accuracy of measurement. However, BP network has great volatility and contingency in continuous operation with the larger error precision. The maximum error of BP optimization actually reached 13.1%. Compared with traditional BP network, kinds of improved algorithm based on PSO have superiority in the area of reliability and stability with the help of optimizing the weights and threshold of BP network. They reduce the opportunity of falling into local minimum to a large extent, which is very meaningful for enhancing the effectiveness of temperature compensation. From the whole analysis, the proposed IPSO-BP algorithm has lower absolute error than other improved IPSO-BP. Meanwhile, the proposed method gives a higher precision with less training times due to the constraint condition about learning factor and inertia weight which improves the generalization ability. The compensation effect of the proposed method is obviously better than other algorithms, which greatly reduces the influence of ambient temperature on the thermopile sensor. In practical application, we could increase the number of samples based on the requirement of system.

5. Conclusions

An improved PSO-BP network is proposed in this paper, which is superior to the traditional BP neural network in several aspects such as low study efficiency, slow convergence speed, and being easily jumped out of local optimal. The core of the proposed algorithm is to reduce the uncertainty of selecting the initial values and weights of BP network for improving the ability of generalization. Compared with the traditional BP and two kinds of improved PSO-BP [7, 8], we demonstrate the effectiveness of the proposed approach. The compensation results show that the network optimized by the improved PSO algorithm has better performance with faster convergence speed, lower errors, higher accuracy, and learning ability.

The proposed algorithm is used for the condition monitoring of electrical equipment which reflects long-term variation trend. So we use upper computer to optimize temperature data and meet the demand of status forecast.

Conflict of Interests

The authors declare that there is no conflict of interests regarding the publication of this paper.

Acknowledgments

This work is supported by The Postdoctoral Fund in Jiangsu Province under Grant 1302027C. Thanks are due to the support of Image Processing Lab of Jiang Su University of Science and Technology.

References

  1. C. A. Protopapas, K. P. Psaltiras, and A. V. Machias, “An expert system for substation fault diagnosis and alarm processing,” IEEE Transactions on Power Delivery, vol. 6, no. 2, pp. 648–655, 1991. View at: Publisher Site | Google Scholar
  2. M. A. P. Rodrigues, J. C. S. Souza, and M. T. Schilling, “Fault diagnosis in electrical power systems using artificial neural networks,” in Proceedings of the International Conference on Electric Power Engineering (PowerTech '99), p. 130, Budapest, Hungary, 1999. View at: Google Scholar
  3. J. Sun, S.-Y. Qin, and Y.-H. Song, “Fault diagnosis of electric power systems based on fuzzy Petri nets,” IEEE Transactions on Power Systems, vol. 19, no. 4, pp. 2053–2059, 2004. View at: Publisher Site | Google Scholar
  4. F. Wen and Z. Han, “Fault section estimation in power system using genetic algorithm and simulated annealing,” Proceedings of the CSEE, vol. 14, no. 3, pp. 29–36, 1994 (Chinese). View at: Google Scholar
  5. J. Kennedy and R. Eberhart, “Particle swarm optimization,” in Proceedings of the IEEE International Conference on Neural Networks, pp. 1942–1948, December 1995. View at: Google Scholar
  6. J. A. Lazzús, “Neural network-particle swarm modeling to predict thermal properties,” Mathematical and Computer Modelling, vol. 57, no. 9-10, pp. 2408–2418, 2013. View at: Publisher Site | Google Scholar
  7. L. Zhang, J.-Q. Zhao, X.-N. Zhang, and S.-L. Zhang, “Study of a new improved PSO–BP neural network algorithm,” Journal of Harbin Institute of Technology (New Series), vol. 20, no. 5, pp. 106–112, 2013. View at: Google Scholar
  8. Q. Li and K.-X. Zhou, “The research of the pressure sensor temperature compensation based on PSO-BP algorithm,” Acta Electronica Sinica, vol. 43, no. 2, pp. 413–416, 2015. View at: Google Scholar
  9. Z.-H. Zhan, J. Zhang, Y. Li, and H. S.-H. Chung, “Adaptive particle swarm optimization,” IEEE Transactions on Systems, Man, and Cybernetics, Part B: Cybernetics, vol. 39, no. 6, pp. 1362–1381, 2009. View at: Publisher Site | Google Scholar
  10. Z. Gao and X.-Z. Liao, “Hybrid adaptive particle swarm optimization based on average velocity,” Control and Decision, vol. 27, no. 1, pp. 152–160, 2012. View at: Google Scholar
  11. Z. J. Zhao, “The network traffic prediction and research based on PSO-BP neural network,” Computer Applications and Software, vol. 26, pp. 219–220, 2009. View at: Google Scholar

Copyright © 2015 Yuanjiang Li et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

1212 Views | 508 Downloads | 5 Citations
 PDF  Download Citation  Citation
 Download other formatsMore
 Order printed copiesOrder

We are committed to sharing findings related to COVID-19 as quickly and safely as possible. Any author submitting a COVID-19 paper should notify us at help@hindawi.com to ensure their research is fast-tracked and made available on a preprint server as soon as possible. We will be providing unlimited waivers of publication charges for accepted articles related to COVID-19. Sign up here as a reviewer to help fast-track new submissions.