- About this Journal ·
- Abstracting and Indexing ·
- Aims and Scope ·
- Annual Issues ·
- Article Processing Charges ·
- Articles in Press ·
- Author Guidelines ·
- Bibliographic Information ·
- Citations to this Journal ·
- Contact Information ·
- Editorial Board ·
- Editorial Workflow ·
- Free eTOC Alerts ·
- Publication Ethics ·
- Reviewers Acknowledgment ·
- Submit a Manuscript ·
- Subscription Information ·
- Table of Contents

Abstract and Applied Analysis

Volume 2014 (2014), Article ID 731368, 7 pages

http://dx.doi.org/10.1155/2014/731368

## PSO-RBF Neural Network PID Control Algorithm of Electric Gas Pressure Regulator

^{1}College of Communication Engineering, Chongqing University, Chongqing 400044, China^{2}School of Automation, Chongqing University, Chongqing 400044, China

Received 8 April 2014; Accepted 2 June 2014; Published 24 July 2014

Academic Editor: Zidong Wang

Copyright © 2014 Yuanchang Zhong 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.

#### Abstract

The current electric gas pressure regulator often adopts the conventional PID control algorithm to take drive control of the core part (micromotor) of electric gas pressure regulator. In order to further improve tracking performance and to shorten response time, this paper presents an improved PID intelligent control algorithm which applies to the electric gas pressure regulator. The algorithm uses the improved RBF neural network based on PSO algorithm to make online adjustment on PID parameters. Theoretical analysis and simulation result show that the algorithm shortens the step response time and improves tracking performance.

#### 1. Introduction

With the implementation of the strategy on Western development and west-east gas transmission project, the city gas has developed rapidly. How to use gas for higher energy saving and environmental protection and ensure the safety and reliability of the system has been a key problem and this brings opportunity to gas pressure regulating. Gas pressure regulating is one of the most important parts of city gas pipeline system and the key technology of highly efficient use of natural gas resources. The gas pressure regulating can ensure the output pressure in special range; when the pressure reaches a certain value, it can be effectively shut off to ensure safe delivery of gas. Currently, the accuracy of gas pressure regulators at home and abroad that adopt the traditional direct- or indirect-acting regulating principle is not high and susceptible to external environmental factors. The accuracy of gas pressure regulator affects the downstream gas supply system directly and reduces the efficiency of energy conversion, thus resulting in energy waste and environmental pollution and even possible supply security issues [1, 2]. In order to solve the problems of mechanical gas regulator, electric gas pressure regulating has become the main direction of the future pressure regulating technology. The focus and difficult problem of this field is how to improve the precision and stability and shorten the response time [3, 4]. We had an in-depth study in electric gas pressure regulator under the joint support of national innovation fund and Chongqing science and technology research project and achieved a series of research results; this paper discussed the control algorithms of electric gas pressure regulator.

The current electric gas pressure regulator often adopts the conventional PID control mode to take drive control of the core part (micromotor) of electric gas pressure regulator [5, 6]. For piped gas, because of the unpredictable changes of downstream load, the pipe friction, and temperature, the system is time-varying, nonlinear, and it’s difficult to build a precise mathematical model. The parameters of conventional PID controller, set by experts, cannot be modified online, which brings much difficulty to achieve the expected effects [7]. The conventional PID controller ameliorating is needed to further improve accuracy and stability and to shorten response time.

Researches show that RBF [8, 9], with fast convergence speed and strong global approximation capability, can approximate any continuous and nonlinear networks with arbitrary precision and shows better performance in the nonlinear system problem-solving [10–12]. Compared with back propagation (BP) neural network, radial basis function (RBF) neural network has many advantages: faster convergence speed, less training iteration, stronger robustness, and no local minimum, and so forth [13–15]. RBF is extremely sensitive to the base-width vector, the center vector, the radial basis layer, and the selection of the initial value of connection weights of output layer [16–18]. If the parameters of this system are selected inappropriately, the convergence rate of the network will be slow and easy to fall into local minima. To this end, we put forward a kind of improved PID intelligent control algorithm which applies to the electric gas pressure regulator. The algorithm uses the RBF neural network based on PSO [19, 20] to determine the initial parameters of the network [21] and then makes online adjustment on PID parameters to improve the control accuracy, response speed, and tracking performance of the system.

#### 2. Electric Gas Pressure Regulating System

The basic principle of traditional pressure regulating is mechanical balance. The electric gas pressure regulating system range from simple single stage [22] to more complex multistage [23], and the principle of operation is the same in all [24, 25]. The internal structure is shown in Figure 1. When the outlet pressure P2 is stable, the upward force P2 acting on the film is balanced against the spring force. If P2 decreases, the spring force is greater than the upward force of the film. Then the spring will move down and pull the valve to move upward to increase valve opening and the downstream flow, thereby increasing the gas outlet pressure until the system reaches a new mechanical equilibrium. Obviously, as time goes on, the loss of accuracy of the regulator occurs because of the reduced elasticity of the spring and the friction’s damage on diaphragm. Therefore, we replace the original mechanical pressure regulating components with stepping motor and driving system (part 1 of Figure 1) thereof by rebuilding core parts of pressure regulator. The system principle diagram of the improved electric gas pressure regulating is shown in Figure 2. We use the intelligent air pressure sensor array and adopts the information fusion algorithm to detect the electric gas regulator’s inlet and outlet pressure [26]. Making differential operation with set pressure value and the result value as the input parameter of controller is to adjust the rotation angle of the stepping motor according to the control algorithm. If the outlet pressure value is less than the set pressure value, the stepping motor will rotate forward, on the contrary, it will reverse. The motor, through the driving system, transforms the angle of motor into linear displacement of output shaft which drives the valve rod to control the valve opening and adjust the outlet pressure. From the working principle, we can draw that the regulator system is a single input/single output closed-loop control system.

For static and dynamic analysis of the system, we need to model the system that mainly includes drive motor model, transmission model, and regulator valve model. According to the pneumatic dynamics, the transfer function of controlled object system of pressure valve [27] can be approximately expressed as

#### 3. PID Controller Based on PSO-RBF Neural Network

##### 3.1. Parameters Tuning of PID Controller by RBF Neural Network

Choose the stepper motor as the operator of the electric gas pressure regulator and use digital incremental PID control mode; the control algorithm can be expressed by the following difference equation: In formula (2), , , and are constant parameters which cannot be adjusted online and expected control effect is impossible to get when the controlled system is nonlinear or is with large delay. Therefore, we adjust PID parameters with RBF neural network online. The performance index of PID parameter is In formula (3), is the set value of outlet pressure, is the actual output value of system, and is the sampling time. In order to minimize the , , , and are sets via the gradient descent method. Consider To find , , and in (4), (5), and (6), respectively, we must figure out which can be approximately got by Jacobian matrix of RBF neural network. The radial basis function is and it is usually expressed by Gauss function. Consider In formula (7), is the -dimensional input layer vector; is the central value of node; and is basis-width vector of the network. is weight vector of the network, so the output layer can be expressed as . The performance index function of RBF is In formula (8), is the actual output of the controlled object after iterations. In order to make minimum, according to the gradient descent method, the iterative algorithm of output weights, center vector, and basis-width vector parameters is shown as follows: In (9), is the learning rate and is the momentum factor. Since the online identification ability of neural networks in Jacobian matrix (sensitivity of output versus input change) is powerful, when the neural network identifier can approach the object, we can use instead of the actual output of the controlled object in the system . The Jacobian matrix algorithm of neural network is In formula (10), , . Taking Jacobian information of the RBF neural network into (4), (5), and (6), three parameter variations of PID can be obtained. Although RBF neural network can adjust PID parameters online, the selection of the initial parameters of RBF network will affect the performance of PID control directly, so we use the particle swarm algorithm to optimize RBF neural network to determine initial parameters of the network.

##### 3.2. Realization of Particle Swarm Algorithm to Optimize RBF Neural Network

Suppose there are m particles in a swarm; the information of th particle is expressed by vector, so its position and velocity are expressed, respectively, as and . After each iteration, every particle updates its position and velocity according to individual extremism (pbest) and group extremum (gbest), which are shown as follows: In formula (11), and are learning factors, and are random variables, is the inertia factor, and is an iteration number. A large number of experiments show that: with the algorithm iteration performing, decreases linearly, improving the convergence of the performance of the algorithm significantly [28]. Consider In formula (13), and are the maximum and minimum values of and is the total number of iterations and make and . The PSO algorithm convergence is quick but easy to fall into local optima. This paper makes individual mutate at a certain probability by using genetic algorithm variation theory. The specific steps of center vector, basis-width vector, and output weights of RBF neural network optimized by particle swarm optimization are as follows:(1)particle swarm initialization: determine the number of particle swarm, the initial position, speed, individual extremum, and swarm extremum;(2)map each individual component to the RBF network parameters and put them into the neural network to calculate the fitness value;(3)identify individual extremum and swarm extremum according to fitness value;(4)update the particle’s velocities and positions according to formulas (11) and (12);(5)if the number of iterations reaches a predetermined maximum or meet the performance requirements of minimum error, stop the iteration and output current swarm extremum as initial parameters of the RBF neural network or return to Step .

##### 3.3. PID Controller Design of PSO-RBF Neural Network

RBF neural network-based PID control algorithm can solve the shortage problem of conventional PID control and PSO algorithm can solve the problem of the initial parameters of RBF network. The structure of PID controller of PSO-RBF neural network is shown in Figure 3.

The controller is composed of two parts: the classic PID controller with , , and modified by PSO-RBF online and PSO-RBF network; firstly it uses PSO algorithm to initialize the output weights, the node center, and the basis-width of the RBF neural network and secondly it utilizes the gradient information of RBF neural network online identification to adjust three parameters of PID controller online, control electric regulator valve opening, and adjust the downstream outlet pressure quickly and accurately. The steps of PID intelligent controller algorithm of PSO-RBF neural network are as follows:(1)select RBF structure: initialize the input layer node number , the hidden layer node number , the learning rate , and the momentum factor ;(2)determine the output weights, center node, and initial value of node basis-width vector of RBF neural network algorithm by using particle swarm algorithm;(3)take the Jacobian information into formulas (4), (5), and (6), obtain PID parameter increments , , and , and correct , , and online;(4)make and return to Step until it reaches the cycle index or meets the performance index.

#### 4. Simulation Results and Analysis

The function of electric gas pressure regulator system can refer to formula (1) with the following values: , , , , , and ; then discretize it considering the sampling period s and get the transform:

##### 4.1. Step Response

To test the ability of the system response to a step input, RBF network structure is chosen as 3-6-1. Suppose , , , and . Individual information of particle swarm consists of 30 dimension vectors, which are mapped to the RBF network parameters and its evaluation standard is the minimum error of RBF neural network PID controller. The population size of PSO algorithm is 20 and the number of iterations is 100, , and individual mutation probability is 0.04. In RBF network, without being optimized by PSO, its initial value is ; ; and . The conventional PID parameters . The step response of three kinds of algorithms in Figure 4 shows that the step response curve time of the system is 2.4 s and is in a stable state under the adaptive control of PID parameter by PSO-RBF. While without using PSO to optimize RBF or adopting conventional PID control, the curve reaches a steady state in 12 s and 32 s, respectively. The conclusion is that PSO-RBF-PID has the shortest response time and the minimum error.

The parameters adaptive tuning curve of PSO-RBF neural network PID controller is shown in Figure 5; it is set finally that , , and .

The minimum error evolution of PSO-RBF neural network is shown in Figure 6. The minimum error changes obviously in the early stage and reaches an optimal value at 63th iteration. RBF network parameters optimized after 100 times are as follows:

##### 4.2. Tracking Performance

According to the actual needs of the regulator, electric pressure regulator will be formulated according to the input pressure, fast regulate valve opening, and make the outlet pressure stable in the range of errors. So we need to test the tracking performance of the control system. The tracking curves of three kinds of control algorithms are shown in Figure 7. It shows that electric gas pressure regulator which adopts the PSO-RBF-PID has good dynamic performance and higher control precision.

#### 5. Conclusion

An in-depth research has been conducted on the mechanism of electric gas regulator about its nonhigh control precision and stability and a longer response time. It shows that the existing electric gas regulators widely use conventional PID control mode for it is simple and easy to be implemented. However, it is difficult to establish a precise mathematical model given that the pressure regulating system is time-varying and nonlinear. Meanwhile, the conventional PID controller parameters, usually set in line with human experience, cannot be modified online. So, it is hard to achieve the expected control effect to use conventional incremental PID control mode. Therefore, on the basis of the original incremental PID control mode, the RBF neural network based on PSO optimization is utilized to determine the initial parameters of the network, and then again set PID parameters online; thus an improved PID intelligent control algorithm suitable for electric gas pressure regulator is established. Theoretical analysis and experimental results demonstrate that the algorithm improves the control accuracy, response speed, and tracking performance of electric gas pressure regulator and can be widely applied to the field of electric gas pressure.

#### Conflict of Interests

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

#### Acknowledgments

This paper was supported by the National Natural Science Foundation of China (no. 10C26215113031) and the Scientific and Technological Project of Chongqing (no. CSTC2010gg-yyjs40010).

#### References

- C. Gongjian, S. Fengbin, W. Lili et al., “Analysis on natural gas pressure regulator design principle and it's influence factors,”
*Natural Gas and Oil*, vol. 29, no. 3, pp. 67–71, 2011. View at Google Scholar - F. Liang, J. Di, and L. Shuhui, “Study on dynamic model of single-stage self-operated gas regulator,”
*Gas and Heat*, vol. 29, no. 2, pp. B10–B13, 2009. View at Google Scholar - C. Yudong, W. Yong, and L. Yanjun, “Overview of control valve technology,”
*Control and Instruments in Chemical Industry*, vol. 39, no. 9, pp. 1111–1114, 2012. View at Google Scholar - Z. Xiaomu and Z. Mingjun, “Optimum configuration in pressure regulation system at delivery station in gas pipeline,”
*Natural Gas and Oil*, vol. 23, no. 4, pp. 27–29, 2005. View at Google Scholar - Z. Rongrong, Z. Shiwen, and S. Guohua, “The design of an intelligent controller for use with electric valve-actuators,”
*Industral Instrumentation Automation*, no. 4, pp. 26–28, 2005. View at Google Scholar - L. Zhiguo, L. Jian, and X. Lixin, “Electric pressure regulating valve and self-reliance type pressure regulating valve of combination station,”
*Oil-Gas Field Surface Engineering*, vol. 31, no. 11, p. 108, 2012. View at Google Scholar - L. Wang, W. F. Li, and D. Z. Zheng, “Optimal design of controllers for non-minimum phase systems,”
*Acta Automatica Sinica*, vol. 29, no. 1, pp. 135–141, 2003. View at Google Scholar · View at MathSciNet - Y. D. Song, Q. Cao, X. Du, and H. R. Karimi, “Control strategy based on wavelet transform and neural network for hybrid power system,”
*Journal of Applied Mathematics*, vol. 2013, Article ID 375840, 8 pages, 2013. View at Publisher · View at Google Scholar - A. Zhang, C. Chen, and H. R. Karimi, “A new adaptive LSSVR with online multikernel RBF tuning to evaluate analog circuit performance,”
*Abstract and Applied Analysis*, vol. 2013, Article ID 231735, 7 pages, 2013. View at Publisher · View at Google Scholar - X. Dong, Y. Zhao, H. R. Karimi, and P. Shi, “Adaptive variable structure fuzzy neural identification and control for a class of MIMO nonlinear system,”
*Journal of the Franklin Institute*, vol. 350, no. 5, pp. 1221–1247, 2013. View at Publisher · View at Google Scholar · View at MathSciNet · View at Scopus - C. C. Chuang, J. T. Jeng, and P. T. Lin, “Annealing robust radial basis function networks for function approximation with outliers,”
*Neurocomputing*, vol. 56, no. 1–4, pp. 123–139, 2004. View at Publisher · View at Google Scholar · View at Scopus - J. K. Sing, D. K. Basu, M. Nasipuri, and M. Kundu, “Face recognition using point symmetry distance-based RBF network,”
*Applied Soft Computing Journal*, vol. 7, no. 1, pp. 58–70, 2007. View at Publisher · View at Google Scholar · View at Scopus - H. Liu, S. Wang, and P. Ouyang, “Fault diagnosis in a hydraulic position servo system using RBF neural network,”
*Chinese Journal of Aeronautics*, vol. 19, no. 4, pp. 346–353, 2006. View at Publisher · View at Google Scholar · View at Scopus - Z. A. Bashir and M. E. El-Hawary, “Applying wavelets to short-term load forecasting using PSO-based neural networks,”
*IEEE Transactions on Power Systems*, vol. 24, no. 1, pp. 20–27, 2009. View at Google Scholar - C. Zhang, M. Lin, and M. Tang, “BP neural network optimized with PSO algorithm for daily load forecasting,” in
*Proceedings of the International Conference on Information Management, Innovation Management and Industrial Engineering (ICIII '08)*, vol. 56, pp. 82–85, December 2008. View at Publisher · View at Google Scholar · View at Scopus - K. Meng, Z. Y. Dong, D. H. Wang, and K. P. Wong, “A self-adaptive RBF neural network classifier for transformer fault analysis,”
*IEEE Transactions on Power Systems*, vol. 25, no. 3, pp. 1350–1360, 2010. View at Publisher · View at Google Scholar · View at Scopus - G. Li, Q. Zhang, and Y. Liang, “GA-based PID neural network control for magnetic bearing systems,”
*Chinese Journal of Mechanical Engineering*, vol. 20, no. 2, pp. 56–59, 2007. View at Publisher · View at Google Scholar · View at Scopus - W. Lianghong, W. Yaonan, Z. Shaowu, and T. Wen, “Design of pid controller with incomplete derivation based on differential evolution algorithm,”
*Journal of Systems Engineering and Electronics*, vol. 19, no. 3, pp. 578–583, 2008. View at Publisher · View at Google Scholar · View at Scopus - J. Kennedy and R. Eberhart, “Particle swarm optimization,” in
*Proceedings of IEEE International Conference on Neural Networks*, pp. 1942–1948, December 1995. View at Scopus - M. Barari, H. R. Karimi, and F. Razaghian, “Analog circuit design optimization based on evolutionary algorithms,”
*Mathematical Problems in Engineering*, vol. 2014, Article ID 593684, 12 pages, 2014. View at Publisher · View at Google Scholar - M. Sheikhan, R. Shahnazi, and S. Garoucy, “Synchronization of general chaotic systems using neural controllers with application to secure communication,”
*Neural Computing and Applications*, vol. 22, no. 2, pp. 361–373, 2013. View at Publisher · View at Google Scholar · View at Scopus - R. Mooney, “Pilot-loaded regulators: what you need to know,”
*Gas Industries*, vol. 34, no. 1, pp. 31–33, 1989. View at Google Scholar · View at Scopus - A. Krigman,
*Guide to Selecting Pressure Regulators*, InTech, 1984. - A. E. Rundell, S. V. Drakunov, and R. A. DeCarlo, “A sliding mode observer and controller for stabilization of rotational motion of a vertical shaft magnetic bearing,”
*IEEE Transactions on Control Systems Technology*, vol. 4, no. 5, pp. 598–608, 1996. View at Publisher · View at Google Scholar · View at Scopus - N. Zafer and G. R. Luecke, “Stability of gas pressure regulators,”
*Applied Mathematical Modelling*, vol. 32, no. 1, pp. 61–82, 2008. View at Publisher · View at Google Scholar · View at Scopus - Y. Zhong, F. Wang, L. Zhang, and C. Tao, “The information fusion algorithm on gas pressure regulator inlet/outlet detection,”
*Journal of Computational Information Systems*, vol. 10, no. 5, pp. 2145–2153, 2014. View at Google Scholar - W. Zhi,
*Study on Dynamic Characteristic and Control of Electric Control Valve*, Shan Dong University, 2013. - Y. H. Shi and R. C. Eberhart, “Empirical study of particle swarm optimization,” in
*Proceedings of the Congress on Evolutionary Computation*, pp. 1945–1950, Piscataway, NJ, USA, 1999.