Introduction
In practical control applications, classical control (CC) methods such as proportional integral derivative (PID) methods are widely used [1]. More than 90% control applications and processes of production are based on PID control [2], [3]. The PID method was proposed in the 1910s. In the following years, PID-based autotuning and online tuning methods have been developed and improved [4], [5]. Online tuning work for control parameters is necessary and important because the control systems cannot keep working with good performance [6], [7] without the online tuning process. Artificial intelligence (AI) has become state-of-the-art technology, which is widely applied in automatic control engineering. Therefore, AI-based improved control methods are widely concerned in practical engineering including the above 90% applications.
According to the above background, the motivations of this study are as follows: (1) Try to solve the control problems in the non-linear and time-varying environment which widely exist in the practical applications such as classical PID control, fuzzy control without PID, neural network based PID control [5], etc. (2) Try to improve the performance of existing classical PID and advanced fuzzy PID methods by increasing the control speed, reducing the steady-state error which are needed in most practical applications. (3) Try to increase the ability of anti-interference and suppress the overshoot of classical PID and Fuzzy PID, etc., because overshoot is not expected to appear in various applications. All the above motivations are similar as the previous published research such as [5].
There are some existing advanced control methods. In previous researches with different methods, some important conclusions [5] have been discussed in detail, which can be summarized as follows:
The predictive control method (PDC) has been widely used in industry since 1970s, and it has a good feature of strong robustness. Until now, most predictive control technologies are applied in linear control system, which rely on the experiences and ability of engineers to achieve a good control [8], [9]. It could help people to build dynamic closed-loop system with good stability in a limited time [10]. However, the predictive control for non-linear systems and stochastic uncertain systems is insufficient. The predictive control often requires more accurate models and higher computing performance [11].
The adaptive control method (ADC) has been proved to design stable, safe, and automated systems since it was proposed in the last century [12]. In current applications, the characteristics of the disturbance are usually unknown and time-varying [13]. The adaptive control method can continuously identify model parameters and adjust control parameters to satisfy the changes of the work environment [14].
However, it is theoretically difficult to obtain a general solution, and the process of parameter estimation takes a long time to converge. Measurement errors in practical applications will directly affect the parameters of the controller. Direct adaptive control adjusts control gain based on error calculation. Therefore, it is difficult to design a nonlinear adaptive control system.
The intelligent control method (AIC) includes fuzzy logic control [15], [16], neural network control, expert control, hierarchical intelligent control [17], etc. The advantages of AIC are obvious in control parameters online tuning and adjusting which can be used to solve the problems of non-linear and complex control. In addition, AIC has good ability of fault tolerance and functions to correct some errors [18], [19]. However, a simple intelligence-based control is often unable to control well because the control systems are complex, unknown, and dynamic. The theoretical analysis of intelligent control methods such as fuzzy control is very difficult because the models of them are complex and difficult to analyze with existing methods.
Artificial intelligence (AI)-based improved classical control (CC) methods (AI-CC) use AI methods to adjust control parameters of CC online.
AI-CC is valuable to be studied [20] because of the following reasons: (1) AI-CC methods are based on the classical control theory so most classical control theories can be used for theoretical analysis such as dynamic, non-linear and complex features analysis. (2) AI-CC methods have both advantages of intelligent methods and classical control methods [20]. (3) AI-CC methods have more practical values because they are based on the classical control methods which already have a wide range of applications.
A. Related Work
The existing AI-CC methods are as follows: (1) Expert system-based self-tuning PID (E-PID) [22], (2) Fuzzy reasoning-based self-tuning PID (F-PID) [23], (3) Genetic Algorithms-based self-tuning PID (GA-PID) [24], (4) Neural network (NN)-based PID (NN-PID) methods such as: Back propagation neural networks-based self-tuning PID (BPNN-PID) [25], Radial basis function neural networks-based self-tuning PID (RBFNN-PID) [26], Wavelet neural networks-based self-tuning PID (WNN-PID) [27], etc. In the previous research [5], the above NN-PID-based methods and improvements are discussed. In this study, the above (2) F-PID method is focused, the reason is as follows:
The problems of the above existing AI-CC methods are as follows: (1) In E-PID, instability occurs because of sudden changes of the control parameters and disturbances. Undesirable overshoot occurs in some practical applications [28]; (2) In NN-PID, the structure of the neural network is complex, and the speed of training is slow [29]; (3) The dynamic features, steady-state error and other performances of both F-PID and NN-PID need to be further improved.
Therefore, this study is focused on F-PID because of the following reasons: Firstly, compared with the expert rules-based reasoning method of E-PID, fuzzy calculation can express more complex control logic. Secondly, compared with NN-PID, the fuzzy calculation is faster, while the neural networks are complex, and the training process of neural networks costs more time.
The comparisons among the related fuzzy control methods are as follows: (1) A suitable controller was designed based on the extension of Kessler’s methods in the inner loop, supported by predictive technique and PID-fuzzy controller in the outer loop [31], [32]. This method has good performances in parallel distributed control. (2) A stable state-feedback fuzzy controller was designed based on a neuro-fuzzy state-space model. This model is successfully trained using the experimental data acquired from a real robotic arm [33]. (3) A new approach to the stable design of Takagi–Sugeno–Kang fuzzy logic control systems was supported by a novel stability analysis theorem. This theorem is based on previous results concerning the application of Lyapunov’s direct method for a general class of chaotic systems [34]. (4) A hybrid controller was designed based on Magneto-rheological damper lookup table for quarter car suspension [35]. Its effectiveness has been proved in controlling vehicle suspension system. (5) A PID-type fuzzy logic controller tuning strategy based on direct fuzzy relations is proposed to compute the PID constants. It helps a motion control algorithm for robots to reach a desired position decreasing the steady error and energy consumption which shows that performances such as saturation time and overshoot of F-PID are better than classical PID [1]. (6) A fuzzy PID controller with nonlinear compensation term is designed, in which the parameters of membership functions are optimized by PSO algorithm. It shows that F-PID can achieve satisfactory control effect in areas like suppressing random disturbances comparing with classical PID [36]. (7) A Takagi-Sugeno fuzzy PID control is proposed for variable pitch system and the PI parameters of the current loop are set by using the internal model principle. It shows that simple fuzzy reasoning system combined with PID control will form a compound control method which have better stability and dynamic performance [37].
Comparing with adaptive fuzzy control (AFC) methods, the problems of the non-adaptive fuzzy control (N-AFC) methods are as follows: N-AFC methods need to configure parameters before the control process, and those parameters are usually obtained by the experience of engineers. However, the precise parameters given by engineers might not be the optimal parameters, and they cannot be adjusted during the control process to adapt to the changes of control environment so the control effect cannot keep best. Therefore, this study is focused on AFC methods: AFC methods do not need accurate configurations of control parameters before the control process. AFC can automatically adjust parameters during the process to obtain the better values which will make the control process keep better performances.
The specific class of control system issecond-order linear systems with time delay which is also described in detail at the beginning of Section II in order to show that our idea is general under our assumptions, which have been discussed in the previous work in reference [5]. Structures, descriptions, equations and pseudocodes of all existing, improved methods, simulations, results, and analysis are provided in the following sections.
B. Contributions
Main contribution of this study are as follows:
FA-PID is the improvement of F-PID method. In F-PID method, control parameters are calculated directly by fuzzy calculation. Change ratios and control parameters of last control cycle are multiplied to adjust PID parameters, which makes FA-PID has better performance than F-PID.
FA-PID is improved based on F-PID, BPNN-F-PID is improved based on F-PID, and BPNN-FA-PID is improved based on FA-PID. In order to reduce the overshoot of the control system in some special situations, BPNN predictor is considered. Both BPNN-F-PID and BPNN-FA-PID use the predicted output of control system to adjust control parameters, which can improve the anti-interference ability of F-PID and FA-PID.
Comparative simulations of all the existing and improved methods are implemented in order to find the improvements. Two types of simulation are designed: unsaturated experiment which has short-term interference and saturated experiment which has long-term interference.According to the results of the above two types of simulation, better performance of the control system such as speed, overshoot and anti-interference are found.
The differences between the improved methods and existing methods are as follows: (1) The adjusted control parameters of FA-PID are calculated according to change ratios and the historical values of control parameters, while the adjusted control parameters of F-PID are queried directly from the fuzzy rules. (2) The adjusted control parameters of BPNN-FA-PID are calculated according to the predicted output of control system, while the adjusted control parameters of FA-PID are calculated according to the current system output.
The rest of the paper is organized as follows: In Section II, existing PID and F-PID models are described. In Section III, the improved FA-PID models are described. In Section IV, the improved BPNN-F-PID model and the improved BPNN-FA-PID model are described. In Section V, the comparative simulations of all the existing and improved methods are implemented in order to find advantages and disadvantages. In Section VI, conclusions and future work are discussed.
F-PID Model (Existing Model)
In the previous section, the background, motivation, contribution, and structure of this article are introduced. In this section, existing models such as PID and F-PID are described which are the basis of the improved methods of this study. This section is organized as follows: In part A, the existing PID model is described in detail. In part B, the existing F-PID model is described in detail.
Assumptions 1:
The controlled plant of the model has the characteristics of second-order delay.
Assumptions 2:
The PID parameters of the controller can be adjusted in each operation cycle.
Assumptions 3:
The disturbance in the system can be calculated to the input of the controlled plant so that the disturbance can be added to the next round of tuning.
Definition 1 Adjustment cycle (AC):
‘1 AC’ is only one control process at one fixed simulation time (e.g.
Definition 2 Change ratio:
Change ratios
A. Classical PID Model (Existing Method)
PID control is a classical control method, which realizes control process according to the error of system output and applies the correction based on proportional, integral, and derivative terms. The classical PID model has been studied [5], and the important conclusion is summarized as follows:
The structure of classical PID system is shown in Fig. 1. At time
The model of classical PID controller is defined as (1):\begin{equation*} u(t)=K_{p}\cdot \left({e\left ({t }\right)+\frac {1}{K_{i}}\int {e\left ({t }\right)} dt+K_{d}\frac {de\left ({t }\right)}{dt}}\right)\tag{1}\end{equation*}
At time \begin{align*}&\hspace {-0.5pc}\Delta u(t)=K_{p}(t)\left ({e\left ({t }\right)-e\left ({t-1 }\right) }\right)+K_{i}(t)e\left ({t }\right) \\&\qquad \qquad \qquad \displaystyle {+K_{d}(t)\left ({e\left ({t }\right)-2e\left ({t-1 }\right)+e\left ({t-2 }\right) }\right)} \tag{2}\end{align*}
The output of control system \begin{align*} y_{out}\left ({t }\right)=&-a\left ({2 }\right)y\left ({t-1 }\right)-a\left ({3 }\right)y\left ({t-2 }\right)-a\left ({4 }\right)y\left ({t-3 }\right) \\&+\,b\left ({2 }\right)u\left ({t-1 }\right)\!+\!b\left ({3 }\right)u\left ({t-2 }\right)\!+\!b\left ({4 }\right)u\left ({t-3 }\right) \\\tag{3}\end{align*}
Pseudocode of PID control method is provided as Algorithm 1:
Algorithm 1 The Existing Classical PID Method
Begin
Initialize PID control system;
While (
Simulation time updated: t = t + 1;
System input
Calculate
Calculate
End while
End
B. F-PID Model (Existing Method)
1) Structure of F-PID
Fuzzy PID (F-PID) is a typical AI-CC method. The structure of the F-PID control system is shown in Fig. 2: (1) The input of control system is
The control variable \begin{equation*} u(t)=K_{p}(t)\cdot (e\left ({t }\right)+\frac {1}{K_{i}\left ({t }\right)}\int {e\left ({t }\right)} dt+K_{d}(t)\frac {de\left ({t }\right)}{dt}\tag{4}\end{equation*}
2) Design of FRC
FRC has three parts which are shown in the dotted line area in Fig. 2: (1) Input of Fuzzy Calculation, (2) Fuzzy Calculation and (3) Output of Fuzzy Calculation.
The general design of FRC are shown in Fig. 3, which are specifically described in the following 3 parts.
In the first row of Fig. 3, the first sub-figures show the relationship of the above 3 parts. The following 5 sub-figures in the first and second rows of Fig. 3 show the member functions of fuzzified and defuzzified calculations. In the last row of Fig. 3, the relationship between the inputs and outputs are shown.
Input of Fuzzy Calculation:
The inputs of fuzzy controller are
, the fuzzified result of system errore_{f}\left ({t }\right) , ande(t) , the fuzzified result of differential of system error{ec}_{f}\left ({t }\right) .ec(t) ande(t) are also the inputs of FRC.ec(t) The above fuzzified results are calculated based on the membership functions which are provided as (5) and (6):
\begin{align*} e_{f}\left ({t }\right)=&\mathrm {Fuzzified\_{}e}(e(t)) \tag{5}\\ {ec}_{f}\left ({t }\right)=&\mathrm {Fuzzified\_{}ec}(ec(t))\tag{6}\end{align*} View Source\begin{align*} e_{f}\left ({t }\right)=&\mathrm {Fuzzified\_{}e}(e(t)) \tag{5}\\ {ec}_{f}\left ({t }\right)=&\mathrm {Fuzzified\_{}ec}(ec(t))\tag{6}\end{align*}
The membership functions are listed in TABLE 1.
can be expressed as\mathrm {Fuzzified\_{}e()} {NB(Negative Big), Z(Zero), PB(Positive Big)}. The membership functione can be expressed as\mathrm {Fuzzified\_{}ec()} {NB(Negative Big), Z(Zero), PB(Positive Big)}.ec In TABLE 1, “zmf”, “trimf” and “smf” stand for Z-membership function, triangular membership function, and S-membership function, respectively. The data in the TABLE 1 is the knee point of each variable. For example, as for the input variable 1, the knee points for three membership functions are [−3,1], [−2,0,2], and [−1,3].
Fuzzy Calculation:
The design principles of fuzzy rules of fuzzy calculation are based on the principles of PID control which can be listed as follows: Firstly, when
is a large value,e \boldsymbol {(t)} should be set to a large value in order to get shorter rising time of control process, andK_{p} \boldsymbol {(t)} should be set to small value in order to reduce the overshoot. Secondly, whenK_{d} \boldsymbol {(t)} is a large value, smallere \boldsymbol {(t)} and largerK_{p} \boldsymbol {(t)} should be adopted. Thirdly, whenK_{i} \boldsymbol {(t)} is small,ec \boldsymbol {(t)} andK_{p} \boldsymbol {(t)} should be set to large values for better stability.K_{i} \boldsymbol {(t)} According to the above principles, the fuzzy calculation of F-PID is designed based on the fuzzy rules which can be listed in “If-Then” format as follows:
If (
is NB) and (e_{f} is NB) then ({ec}_{f} is PB)(K_{pf} is NB)(K_{if} is Z)K_{df} If (
is NB) and (e_{f} is Z) then ({ec}_{f} is PB)(K_{pf} is NB)(K_{if} is NB)K_{df} If (
is NB) and (e_{f} is PB) then ({ec}_{f} is Z)(K_{pf} is Z)(K_{if} is Z)K_{df} If (
is Z) and (e_{f} is NB) then ({ec}_{f} is PB)(K_{pf} is NB)(K_{if} is Z)K_{df} If (
is Z) and (e_{f} is Z) then ({ec}_{f} is Z)(K_{pf} is Z)(K_{if} is Z)K_{df} If (
is Z) and (e_{f} is PB) then ({ec}_{f} is NB)(K_{pf} is PB)(K_{if} is Z)K_{df} If (
is PB) and (e_{f} is NB) then ({ec}_{f} is Z)(K_{pf} is Z)(K_{if} is PB)K_{df} If (
is PB) and (e_{f} is Z) then ({ec}_{f} is NB)(K_{pf} is PB)(K_{if} is PB)K_{df} If (
is PB) and (e_{f} is PB) then ({ec}_{f} is NB)(K_{pf} is PB)(K_{if} is PB)K_{df}
Output of Fuzzy Calculation:
The outputs of fuzzy calculation are fuzzified results of
,K_{pf}(t) andK_{if}(t) . The adjusted results ofK_{df}(t) ,K_{p}(t) andK_{i}(t) are the defuzzified results ofK_{d}(t) ,K_{pf}(t) andK_{if}(t) respectively, according to (7) to (9):K_{df}\left ({t }\right) \begin{align*} K_{p}(t)=&\mathrm {Defuzzified\_{}}K_{p}(K_{pf}(t)) \tag{7}\\ K_{i}(t)=&\mathrm {Defuzzified\_{}}K_{i}(K_{if}(t)) \tag{8}\\ K_{d}(t)=&\mathrm {Defuzzified\_{}}K_{d}(K_{df}(t))\tag{9}\end{align*} View Source\begin{align*} K_{p}(t)=&\mathrm {Defuzzified\_{}}K_{p}(K_{pf}(t)) \tag{7}\\ K_{i}(t)=&\mathrm {Defuzzified\_{}}K_{i}(K_{if}(t)) \tag{8}\\ K_{d}(t)=&\mathrm {Defuzzified\_{}}K_{d}(K_{df}(t))\tag{9}\end{align*}
The membership functions of
The membership function
\begin{align*} K_{p}(t)=&\frac {\sum \nolimits _{j=1}^{n} {\mu _{Kp}\left ({x_{j} }\right)\mathrm {.}x_{j}} }{\sum \nolimits _{j=1}^{n} {\mu _{Kp}\left ({x_{j} }\right)}} \tag{10}\\ K_{i}(t)=&\frac {\sum \nolimits _{j=1}^{n} {\mu _{Ki}\left ({x_{j} }\right)\mathrm {.}x_{j}} }{\sum \nolimits _{j=1}^{n} {\mu _{Ki}\left ({x_{j} }\right)}} \tag{11}\\ K_{d}(t)=&\frac {\sum \nolimits _{j=1}^{n} {\mu _{Kd}\left ({x_{j} }\right)\mathrm {.}x_{j}} }{\sum \nolimits _{j=1}^{n} {\mu _{Kd}\left ({x_{j} }\right)}}\tag{12}\end{align*}
3) Implement of F-PID
The pseudocode of F-PID can be presented as Algorithm 2:
Algorithm 2 The Existing F-PID Method
Begin
Initialize X-PID control system model;
Input Fuzzy Rules’ Table;
While (
Simulation time updated: t = t + 1;
System input
Calculate
Calculate
Calculate
End while
End
FA-PID Model (Improved Methods)
In the previous section, the F-PID method is introduced. In this section, FA-PID is the improvement of F-PID to make the performance of the existing control method better. This section is organized as follows: In part A, the structure of FA-PID model is described in detail. In part B, the change ratio of FA-PID is explained. In part C, the fuzzy controller is designed. Part D is the implement of FA-PID. The researched contents of Section III to V are the core parts of improved methods which are different from all the previous series research of our AI-CC research group.
A. Structure of FA-PID
F-PID is improved by change ratio-based fuzzy adjusted PID control (FA-PID) method. In FA-PID method, control parameters at time
The system structure of FA-PID methods is shown in Fig. 4.
B. Calculation of Change Ratio
Main differences between FA-PID and F-PID are specifically described as follows: (1) In F-PID method, the adjusted
Then, values of the updated
In FA-PID, \begin{align*} K_{p}(t)=&R_{p}(t\mathrm {)\cdot }K_{p}(t\mathrm {-1)} \tag{13}\\ K_{i}(t)=&R_{i}(t\mathrm {)\cdot }K_{i}(t\mathrm {-1)} \tag{14}\\ K_{d}(t)=&R_{d}(t\mathrm {)\cdot }K_{d}(t\mathrm {-1)}\tag{15}\end{align*}
C. Design of Fuzzy Calculation
FRC of FA-PID is also designed based on fuzzy rules, which is similar to the FRC of F-PID.
Input of Fuzzy Calculation:
The input of fuzzy controller of FA-PID are also
, the fuzzified result of system errore_{f}\left ({t }\right) , andec(t) , the fuzzified result of differential of system error{ec}_{f}\left ({t }\right) .ec(t) ande(t) are also the inputs of FRC of FA-PID. The fuzzified results are calculated based on the membership functions as (5) and (6)ec(t) The values of membership functions FA-PID are provided and shown in TABLE 2 and Fig. 5.
Fuzzy Calculation:
The fuzzy calculation of FA-PID is designed based on the fuzzy rules which can be listed in “If-Then” format, which is similar as F-PID as follows:
If (
is NB) and (e_{f} is NB) then ({ec}_{f} is PB)(R_{pf} is NB)(R_{if} is Z)R_{df} If (
is NB) and (e_{f} is Z) then ({ec}_{f} is PB)(R_{pf} is NB)(R_{if} is NB)R_{df} If (
is NB) and (e_{f} is PB) then ({ec}_{f} is Z)(R_{pf} is Z)(R_{if} is Z)R_{df} If (
is Z) and (e_{f} is NB) then ({ec}_{f} is PB)(R_{pf} is NB)(R_{if} is Z)R_{df} If (
is Z) and (e_{f} is Z) then ({ec}_{f} is Z)(R_{pf} is Z)(R_{if} is Z)R_{df} If (
is Z) and (e_{f} is PB) then ({ec}_{f} is NB)(R_{pf} is PB)(R is Z)R_{df} If (
is PB) and (e_{f} is NB) then ({ec}_{f} is Z)(R_{pf} is Z)(R is PB)R_{df} If (
is PB) and (e_{f} is Z) then ({ec}_{f} is NB)(R_{pf} is PB)(R is PB)R_{df} If (
is PB) and (e_{f} is PB) then ({ec}_{f} is NB)(R_{pf} is PB)(R is PB)R_{df}
Output of Fuzzy Calculation:
The output of fuzzy calculation of FA-PID are fuzzified results of
,R_{pf}(t) , andR_{if}(t) . The defuzzification method of FA-PID is similar to the defuzzification method of F-PID, which is based on centroid method. The defuzzified calculation are according to (16)–(18):R_{df}(t) \begin{align*} R_{p}(t)=&\frac {\sum \nolimits _{j=1}^{n} {\mu _{Rp}\left ({x_{j} }\right)\mathrm {.}x_{j}} }{\sum \nolimits _{j=1}^{n} {\mu _{Rp}\left ({x_{j} }\right)}} \tag{16}\\ R_{i}(t)=&\frac {\sum \nolimits _{j=1}^{n} {\mu _{Ri}\left ({x_{j} }\right)\mathrm {.}x_{j}} }{\sum \nolimits _{j=1}^{n} {\mu _{Ri}\left ({x_{j} }\right)}} \tag{17}\\ R_{d}(t)=&\frac {\sum \nolimits _{j=1}^{n} {\mu _{Rd}\left ({x_{j} }\right)\mathrm {.}x_{j}} }{\sum \nolimits _{j=1}^{n} {\mu _{Rd}\left ({x_{j} }\right)}}\tag{18}\end{align*} View Source\begin{align*} R_{p}(t)=&\frac {\sum \nolimits _{j=1}^{n} {\mu _{Rp}\left ({x_{j} }\right)\mathrm {.}x_{j}} }{\sum \nolimits _{j=1}^{n} {\mu _{Rp}\left ({x_{j} }\right)}} \tag{16}\\ R_{i}(t)=&\frac {\sum \nolimits _{j=1}^{n} {\mu _{Ri}\left ({x_{j} }\right)\mathrm {.}x_{j}} }{\sum \nolimits _{j=1}^{n} {\mu _{Ri}\left ({x_{j} }\right)}} \tag{17}\\ R_{d}(t)=&\frac {\sum \nolimits _{j=1}^{n} {\mu _{Rd}\left ({x_{j} }\right)\mathrm {.}x_{j}} }{\sum \nolimits _{j=1}^{n} {\mu _{Rd}\left ({x_{j} }\right)}}\tag{18}\end{align*}
The adjusted results of
D. Implement of FA-PID
The AI-CC algorithms of FA-PID can be designed as Algorithm 3:
Algorithm 3 FA-PID
Begin
Initialize XA-PID control system model;
Input Fuzzy Rules’ Table;
While (
Simulation time updated:
System input
Calculate
Calculate
End while
End
Design of BPNN-F-PID and BPNN-FA-PID
In the previous section, the FA-PID method are introduced. In this section the BPNN prediction-based F-PID (BPNN-F-PID) method and BPNN prediction-based FA-PID (BPNN-FA-PID) are introduced. This section is organized as follows: In part A, the structure of BPNN-F-PID model and BPNN-FA-PID model are described in detail. In part B, the input and output of BPNN Predictor are explained. In part C, the calculation of BPNN Predictor is introduced. In part D, BPNN-F-PID and BPNN-FA-PID are implemented. In part E, the differences of the above four methods are compared.
Assumption in this study: It is assumed that the performance of control system will be better (the control parameters are better adjusted) in two conditions: (1) The current output
Training, validating, and testing processes of BPNN are as follows:
Training: The features of the training set are the history values of status of control system, which can be expressed as: [
,r_{in}(t) ,u(t\mathrm {), }y_{out}(t) ,k_{p}(t) ,k_{i}(t) ], [k_{d}(t) ,r_{in}(t\mathrm {-1)} ,u(t\mathrm {-1), }y_{out}(t\mathrm {-1)} ,k_{p}(t\mathrm {-1)} ,k_{i}(t\mathrm {-1)} ],…,[k_{d}(t\mathrm {-1)} ,r_{in}(t-N) ,u(t-N\mathrm {), }y_{out}(t-N) ,k_{p}(t-N) ,k_{i}(t-N) ]. The label of trainset isk_{d}(t-N) . So, after training, the predictor can predicty_{out}(t+M) . The trainset is from various control processes.y_{predict}(t+M) Validating: According to the above successful training, the predicted results can be validated by more control processes. Comparing each predicted result of
and the real values of labely_{predict}(t+M) , the errors can be found and judged.y_{out}(t+M) Testing: In the applications of control process, after the 100th control cycles, there are enough [
,r_{in}(t) ,u(t\mathrm {), }y_{out}(t) ,k_{p}(t) ,k_{i}(t) ], [k_{d}(t) ,r_{in}(t\mathrm {-1)} ,u(t\mathrm {-1), }y_{out}(t\mathrm {-1)} ,k_{p}(t\mathrm {-1)} ,k_{i}(t\mathrm {-1)} ],…, [k_{d}(t\mathrm {-1)} ,r_{in}(t-N) ,u(t-N\mathrm {), }y_{out}(t-N) ,k_{p}(t-N) ,k_{i}(t-N) ] to train the predictor to predictk_{d}(t-N) .y_{out}(t+M)
A. Structure of BPNN-F-PID and BPNN-FA-PID
Structure of BPNN-F-PID control system can be drawn as Fig. 6. The difference between Fig. 2 and Fig. 6 is that: control parameters of classical controller will be tuned online by BP neural network. BP neural network is the online tuner.
Structure of BPNN-FA-PID control system can be drawn as Fig. 7. The difference between Fig. 4 and Fig. 7 is the same as the difference between F-PID and FA-PID: FRC for F-PID is replaced by FRC for FA-PID.
B. Input and Output of BPNN Predictor
The inputs of BPNN predictor (time series with historical information) and outputs of control system are as follows: \begin{align*}&X(t)=\{r_{in}\left ({t }\right),K_{p}\left ({t }\right),K_{i}\left ({t }\right),K_{d}\left ({t }\right),u\left ({t }\right),y_{out}\left ({t }\right), \\&{r_{in}\left ({t-3 }\right),K}_{p}\left ({t-3 }\right),K_{i}\left ({t-3 }\right),K_{d}\left ({t-3 }\right), \\&u\left ({t-3 }\right),y_{out}\left ({t-3 }\right),r_{in}\left ({t-6 }\right)\mathrm {, }K_{p}\left ({t-6 }\right), \\&K_{i}\left ({t-6 }\right),K_{d}\left ({t-6 }\right),u\left ({t-6 }\right)\mathrm {, }y_{out}\left ({t-6 }\right)\}\tag{19}\end{align*}
In (19),
The output of BP predictor at future time \begin{equation*} y_{predict}\left ({t }\right)=O_{k}=\sigma \left ({\sum {\sigma \left ({\sum {X{\left ({t }\right)W}_{ij}} }\right)W_{jk}} }\right)\tag{20}\end{equation*}
C. Calculation of BPNN Predictor
The target of BPNN-F-PID is to get the minimum error of the control system. The system error is affected by the control parameters, and the control parameters are tuned by the BPNN according to the weights of the BPNN. The target function can be expressed as (21).\begin{equation*} \min E(t)=\frac {1}{2}(r_{in}(t)-y_{out}(t))^{2}\tag{21}\end{equation*}
An alternative target function can be expressed as (22). According to the simulation results, the effects of different target functions are similar so both above target functions can be adopted. All the simulations should apply the same target functions. In this study, mean square error of (22) is adopted as the target function.\begin{equation*} \min E(t)=|r_{in}(t)-y_{out}(t)|\tag{22}\end{equation*}
Formulas of training process of BPNN are expressed as follows:\begin{align*} W_{ij}\left ({t+1 }\right)=&W_{ij}\left ({t }\right)\mathrm {+\Delta }W_{ij}\left ({t }\right)+\beta \Delta W_{ij}\left ({t-1 }\right)\tag{23}\\ W_{jk}\left ({t+1 }\right)=&W_{jk}\left ({t }\right)\mathrm {+\Delta }W_{jk}\left ({t }\right)+\beta \Delta W_{jk}\left ({t-1 }\right)\tag{24}\\ \Delta W_{jk}\left ({t }\right)=&-\eta \left ({O_{k}-t_{k} }\right)O_{k}\left ({1-O_{k} }\right)O_{j}\tag{25}\\ \Delta W_{ij}\left ({t }\right)=&-\eta O_{i}O_{j}\left ({1-O_{j} }\right) \\&\times \,\sum \limits _{k=1}^{K} {\left ({O_{k}-t_{k} }\right)O_{k}\left ({1-O_{k} }\right)W_{jk}}\tag{26}\\ O_{k}=&\sigma \left ({\sum \limits _{j=1}^{J} {\sigma \left ({\sum \limits _{i=1}^{I} {X(t\mathrm {)\cdot }W_{ij}} }\right)\cdot W_{jk}} }\right)\qquad \tag{27}\\ O_{i}=&X(t)\tag{28}\\ O_{j}=&\sigma \left ({O_{i}\cdot W_{ij} }\right)\tag{29}\end{align*}
In (29),
D. Implement of BPNN-F-PID and BPNN-FA-PID
The algorithms of BPNN-F-PID and BPNN-FA-PID can be designed as Algorithm 4:
Algorithm 4 BPNN-F-PID and BPNN-FA-PID
Begin
Initialize the control system of BPNN-F-PID;
Initialize BPNN weights
While
Simulation time is updated:
System input
If
If
Create BPNN
End If
Train BPNN
Calculate
Else
Calculate
End If
Training of BPNN: update
Calculate
Calculate
End while
End
E. Comparison Among F-PID, FA-PID, BPNN-F-PID and BPNN-FA-PID
The differences among F-PID, FA-PID, BPNN-F-PID, and BPNN-FA-PID are as follows:
Function of adjustment: F-PID adjusts parameters according to the rule table only. FA-PID uses the change ratio from the old parameters and the rule table. BPNN-F-PID and BPNN-FA-PID add the BPNN predictor based on the F-PID and FA-PID.
Basis of adjustment: Both of F-PID and BPNN-F-PID are based on the calculation of the fuzzy rules, while the FA-PID and BPNN-FA-PID are based on the change ratio and fuzzy rules.
Calculation of adjustment: The adjustment of F-PID and BPNN-F-PID are the output of the controller. The adjustment of FA-PID and BPNN-FA-PID are the result of the output times the old parameter.
Simulation
In the previous section, the existing method and improved method are introduced. In this section the simulations of those methods are introduced and the result of simulations are compared to show the improvement of the new method improved in this article. This section is organized as follows: In part A, two types of simulations are described. In part B, saturated simulations of F-PID, FA-PID, BPNN-F-PID, and BPNN-FA-PID methods are implemented to verify the effects of the improvements. In part C, unsaturated simulation is implemented.
A. Design of Simulation
Two types of simulations are designed in this study: (1) Unsaturated simulation, which has a short-term interference, (2) Saturated simulation, which has a long-term interference. The second simulation proves that the output of the first simulation is unsaturated and shows different results under the short-term and long-term interferences. Configurations of F-PID and FA-PID systems should be set similarly.
Basic configuration for both saturated and unsaturated simulations: (1) In each AC (see Definition 1), parameters should be tuned one time. (2) Incremental digital PID algorithm is adopted as the controller model. (3) Second-order with delay is used as the controlled plant model, which can be expressed as
B. Results Analysis of Saturated Simulation
Configuration for saturated simulation: (1) The max simulation time (max number of AC) is set as
Comparative simulation results of F-PID, FA-PID, BPNN-F-PID, and BPNN-FA-PID control systems are shown in Fig. 8 (a) to (d) respectively. The change curves of system input, system output, system error, control variable and control parameters
The above results show that: (1) FA-PID and BP-FA-PID methods are verified to be feasible because the output curves can approach system input and keep stable. (2) F-PID and BP-F-PID cannot converge under the influence of interference.
According to the above simulations, the comparative results of simulation with the 4 methods (F-PID, FA-PID, BP-F-PID and BP-FA-PID) are shown in Fig. 9 (a) and (b)
Fig. 9 shows the result of the saturated simulation. From the Fig. 9 (a) it can be found that the F-PID and the BP-F-PID do not converge after the long-term interference. That means F-PID and BP-F-PID are not stable after the long-term interference. In the unsaturated simulation, all the above four methods can converge under the short-term interference.
The result of the saturated simulation shows that: FA-PID and BPNN-FA-PID has the better performance of control speed (The curves of the FA-PID and the BPNN-FA-PID rise faster). Meanwhile, both of those two methods have better performance of anti-interference (converged after long-term interference).
C. Results Analysis of Unsaturated Simulation
Configuration for unsaturated simulation: (1) The max simulation time is set as
Configuration for unsaturated simulation: The results of simulations with the 4 methods (F-PID, FA-PID, BP-F-PID and BP-FA-PID) are shown in Fig. 10 (a) and (b). The peaks (max values) of output curve of unsaturated simulation in Fig. 10 are lower than the peaks (top values) of output curve of saturated simulation in Fig. 9. This proves that the output of control system in unsaturated simulation in Fig. 10 are unsaturated.
More simulation details of Fig. 10 are listed in TABLE 4. In TABLE 4, Rising Time
According to the simulation results in Fig. 9, Fig. 10 and TABLE 4, findings are as follows:
FA-PID has improved the control speed of F-PID. The rising curves in Fig. 9(b) and Fig. 10(b) show that the control speed of FA-PID and BPNN-FA-PID are faster than the control speed of F-PID and BPNN-F-PID. FA-PID has the fastest speed to reach steady state (i.e. settling time of FA-PID is the smallest). The speed of BP-FA-PID (smaller rising time and settling time) is faster than BP-F-PID. More details are shown in TABLE 4: Control speed of FA-PID is the fastest (Tr = 269 and Ts = 324 are the smallest). BPNN-FA-PID (Tr = 275, Ts = 330) is faster than others. It means that FA-PID has faster control speed than F-PID. The reason of this improved effect is that: the range of adjusted control parameters of FA-PID are larger than F-PID. In another word, the possible larger values of control parameters of FA-PID are more than F-PID.
FA-PID has improved the steady-state error of F-PID. F-PID has the smallest steady-state error at the beginning because of the overshoot, but after around time equal to 1500 to 3000 in Fig. 10 (a), FA-PID has the smallest steady-state error. More details are shown in TABLE 4: The stability of FA-PID is the best (Steady-state error = 0.0037 is the smallest). BPNN-FA-PID (Steady-state error = 0.0064) is better than BPNN-F-PID (Steady-state error = 0.01115), which means BPNN-FA-PID has smaller Steady-state error than BPNN-F-PID. The reason of this improved effect is same as the above first conclusion.
The overshoot of the control system of BPNN prediction-based methods are smaller. Overshoot is restrained by BPNN. BPNN-FA-PID method has the smallest overshoot shown in Fig. 9(a) and Fig. 10(a), which means it can restrain the overshoot in some cases. More details are shown in TABLE 4: The overshoot of BPNN-FA-PID is the best (overshoot = 0.0074 is the smallest). BPNN-F-PID (overshoot = 0.0076) is better than FA-PID (overshoot = 0.0087). Therefore, the BPNN-FA-PID is the best one for some industry processes compared with other methods. Those industry processes require control variable to approach the plant value gradually. The overshoot of BPNN-F-PID is smaller than that of F-PID and FA-PID. The reason of this improved effect is that: the unexpected larger output values of control system (such as overshoot) can be predicted by BPNN based predictor so the control parameters are adjusted in advance according to the predicted output of control system.
BPNN-F-PID and BPNN-FA-PID have improved the ability of anti-interference of F-PID and FA-PID. BPNN-F-PID has the best recover speed in short term shown in Fig. 10(a). The recovery time of BPNN-F-PID in short term is the shortest. BPNN-FA-PID has the second good ability of anti-interference. There is no saturation under the influence of continuous interference. F-PID and BPNN-F-PID are the worst in long term interference (i.e. they are unstable and cannot converge) shown in Fig. 9(a). The reason of this improved effect is same as the above third conclusion.
Results (output of system) of unsaturated simulation is unsaturated so the results are valid: comparing the results between unsaturated simulation and saturated simulation which are shown in Fig. 9(a) and Fig. 10(a). It can be found that the system output of unsaturated simulation is unsaturated because the maximum output of unsaturated simulation (with longer time of interference) is larger than the maximum system output of saturated simulation.
In conclusion, according to unsaturated and saturated simulations, most performances of BPNN-FA-PID are better than BPNN-F-PID. Most performances of FA-PID are better than F-PID and BPNN-F-PID. The effects (faster control speed, smaller steady-state error, smaller overshoot, and stronger ability of anti-interference) of the improvements are better.
Conclusion
In the previous section, related work, existing and improved methods, comparative simulations are discussed. In this section, all the improved effects are compared together, and the future work are discussed based on the comparison of related and latest research of references.
The comparative results of F-PID, FA-PID, BPNN-F-PID, and BPNN-FA-PID simulations are summarized in TABLE 5. Comparative indicators are designed as follows: (1) Control speed is measured by
In this study, F-PID is improved by 3 methods (FA-PID, BPNN-F-PID, and BPNN-FA-PID). The adjustment rules of control parameters of F-PID are replaced by the change ratio rules of FA-PID. In BPNN-F-PID and BPNN-FA-PID, the predictor of BPNN neural network are adopted to predict the system output.
Comparative simulation results among F-PID, FA-PID, BPNN-F-PID, and BPNN-FA-PID methods can be summarized in TABLE 5.
According to TABLE 5, conclusions are summarized as follows: (1) The improvements of FA-PID are as follows: The control speed of FA-PID is faster than F-PID, BPNN-F-PID and BPNN-FA-PID. The steady-state error of FA-PID is smaller than that of F-PID and BPNN-F-PID. The overshoot of FA-PID is smaller than that of F-PID. It means that the performance of F-PID is improved by FA-PID. (2) The improvements of BPNN-FA-PID are as follows: BPNN-FA-PID can suppress the overshoot, and it is stable under long term interference.
Comparing other related fuzzy control methods with improved methods of this study, many advantages are adopted in this study to improve the PID and F-PID methods with faster control speed, smaller steady-state error, smaller overshoot, and better ability of anti-interference. Details of comparisons and adoptions are as follows: (1) Reference [31] and [32] provide the high quality control signals and sensory feedback to facilitate surgery over the time-delay network. The above idea is adopted to this study, and the structure and controlled plant are based on the classical PID control model, which make the old practical applications easy and convenient to upgrade. (2) Reference [33] improves the transient performance during initial stages and suitably switches to the original stable controller to utilize its better performance during steady-state conditions. The above idea is adopted to this study. Excellent (optimal) initialized configurations and fuzzy rules are not necessary to be configured before the system goes into production. The improved method can adjust and optimize control parameters in the production process by change ratio. The scale of adjusted control parameters of FA-PID are wider than F-PID. (3) Reference [34] shows a serious advantage with respect to LMI-based fuzzy logic control system design approaches that involve control laws, which are sensitive to all process parameters. The above idea is adopted to this study, and the improved methods can be also applied to wide practical applications because the classical PID method is widely used. (4) Reference [35] shows that the proposed Hybrid control lookup table provides better vibration isolation capability. The above idea is adopted in this study. Two types of fuzzy table are designed to calculate the control parameters of F-PID and the change ratio of FA-PID. Some improved effects can be found in the comparative results.
In the future: Existing industrial applications of PID systems will be upgraded to FA-PID and BPNN-FA-PID systems. Performances such as faster control speed, lower steady-state error, etc., will be better improved by adopting more intelligent AI methods such as deep learning, etc.