Keywords

1 Introduction

The control of IP is a standard problem among all other problems in the control system engineering field owing to non-minimum phase, nonlinear, and under-actuated characteristics as reported in the references [1,2,3]. Additionally, the IP system exhibits a significant number of industrial applications like self-balancing two-wheeled vehicles or a kind of Sag-way, guided missiles, rockets, intelligent robots, and other crane models [4]. In this present study, an adaptive law of control approach is being tested and analyzed to choose the IP system as it possesses a significant relevance with the control dynamics. During the past three decades, so many control strategy techniques are suggested and tested for control of AP of pendulum within the stable range. Time-discrete and switching PID control strategy is implemented in IP problems with variable control gains based on the measured AP of the pendulum [5, 6]. However, the optimal gain parameter setting, a lesser range of robust control, and need of change of gain setting with varying conditions are the major limitations to limit the real-time application of these controllers. Among other projected robust control algorithms implemented for limiting the AP of the pendulum are fuzzy [7], linear quadratic regulator (LQR) [8,9,10], neurocontrol [11], backstepping control [12], passivity control [13], state feedback control [14], H-infinity \((H\infty )\) control [15], sliding mode (SM) control [16], fuzzy sliding mode (FSM) control [17, 18], and BLQG control [19]. However, even if these control techniques are implemented effectively to control the AP of the pendulum with better accuracy, still they fail to handle various constraints and random change found in a trajectory of motion in the pendulum. These control techniques are not completely insensitive to the disturbances and the uncertainties of the model in spite of the improved performance. Hence, optimal control parameters setting for better performance and for avoiding slow response following process disturbance, the current work suggests an alternative novel hybrid technique based on the Kalman filtering and sliding mode control concept.

In this study, a hybrid concept based on Kalman filtering approach and principles of sliding mode control is projected with the title Kalman filtering sliding mode controller (KFSMC). The hybrid approach concept leads to an enhanced control performance with respect to robustness, accuracy, stability, and better ability to handle uncertainty. The novel idea followed in this formulation is to modify CSMC with a state estimator according to the approach of Kalman filtering. Secondly, a stabilizing control law is framed by using the Kalman filtering approach [20,21,22]. Application of the proposed approach is to control the AP of pendulum results to ensure a better robust controller in comparison with other contemporary well-accepted methods under both harmonized and incompatible uncertainties.

The highlights of this manuscript are as follows:

  • Development of a SIMULINK model of an IP.

  • Design of a KFSMC to control the AP of the pendulum within a stable range.

  • Estimation of the control actions of the KFSMC under huge deviation of process disturbance.

  • Comparative investigation to certify the better response of the KFSMC.

This manuscript is structured as follows: Sect. 2 concisely illustrates the IP system with mathematical details reflecting to its dynamic characteristics. Also, it clearly demonstrates the simulation execution of the system on MATLAB environment. A detailed presentation on how the control technique is formulated and how it is implemented for this problem is presented in Sect. 3. Comparative results of the proposed approach with other published control techniques and the related analysis are provided in Sect. 4. The concluding comments are summarized in Sect. 5.

2 Problem Formulation and Modeling

2.1 System Overview

The closed-loop model of the IP is depicted in Fig. 1a. The applied horizontal force F(t) and v(t) are reflected as the process disturbance and the sensor noise, respectively, in this study. The controller receives information about the AP of the pendulum as an input to provide the optimal control force u(t), and it balances the pendulum.

Fig. 1
figure 1figure 1

a IP model with KFSMC; b schematic model of the IP system; c simulation model of the nonlinear IP system; d the horizontal force acting on the cart at the time of 0.1 s

2.2 System Modeling

Figure 1b reflects the cart-pendulum model connected to a flexible cart rail with a free swinging pole. The CP is being controlled by a DC motor. The nonlinear IP modeling through the Newton’s law-based mathematical equations has been carried out. It is presumed that the vertical force does not affect the CP and the CP is disturbed by the horizontal force F(t) based on the operation of the DC motor [23, 24]. All the physical activities of the IP system are expressed mathematically and specified by Eqs. (1) and (2). All nomenclature and specifications for IP are shown in Tables 1 and 2, respectively. The SIMULINK model of the IP is established with respect to the Eqs. (1) and (2) as displayed in Fig. 1c.

Table 1 IP model states and parameters
Table 2 IP model specification values
$$\begin{aligned} & (M + m)\frac{{{\text{d}}^{2} x(t)}}{{{\text{d}}t^{2} }} - ml\frac{{{\text{d}}^{2} \theta (t)}}{{{\text{d}}t^{2} }}\cos \theta (t) \\ & \quad + ml\left( {\frac{{{\text{d}}\theta (t)}}{{{\text{d}}t}}} \right)^{2} \sin \theta (t) + b\frac{{{\text{d}}x(t)}}{{{\text{d}}t}} = F(t) \\ \end{aligned}$$
(1)
$$\left( {i + Ml^{2} } \right)\frac{{{\text{d}}^{2} \theta (t)}}{{{\text{d}}t^{2} }} - mgl\sin \theta (t) = ml\frac{{{\text{d}}^{2} x(t)}}{{{\text{d}}t^{2} }}\cos \theta (t)$$
(2)

2.3 Linearization of IP Model

The nonlinear IP system is linearized surrounding the operating point for the design of KFSMC to control the system dynamics within the stable range. The linearization of the IP system based on Eqs. (1) and (2) is done by neglecting the higher-order terms such as \(\left( {\frac{{{\text{d}}\theta (t)}}{{{\text{d}}t}}} \right)^{2}\). For linearization of the nonlinear IP system, the dynamic Eqs. (1) and (2) are reduced to Eqs. (3) and (4) based on the stable conditions such as \(\theta (t) = 0\), \(\frac{{{\text{d}}^{2} \theta (t)}}{{{\text{d}}t^{2} }} \cong 0\), and \(\cos (0) = 1\).

$$(M + m)\frac{{{\text{d}}^{2} x(t)}}{{{\text{d}}t^{2} }} + b\frac{{{\text{d}}x(t)}}{{{\text{d}}t}} - ml\frac{{{\text{d}}^{2} \theta (t)}}{{{\text{d}}t^{2} }} = F(t)$$
(3)
$$\left( {i + ml^{2} } \right)\frac{{{\text{d}}^{2} \theta (t)}}{{{\text{d}}t^{2} }} - mgl\theta (t) = ml\frac{{{\text{d}}^{2} x(t)}}{{{\text{d}}t^{2} }}$$
(4)

The transfer function (TF) of the CP and AP of the pendulum is derived as follows [23]:

$$\frac{X(s)}{U(s)} = \frac{{\frac{{\left( {i + ml^{2} } \right)s^{2} - mgl}}{\psi }}}{{s^{4} + \frac{{b\left( {i + ml^{2} } \right)}}{\psi }s^{3} - \frac{(M + m)mgl}{\psi }s^{2} - \frac{bmgl}{\psi }s}}$$
(5)
$$\frac{\theta (s)}{U(s)} = \frac{{\frac{ml}{\psi }s}}{{s^{3} + \frac{{b\left( {i + ml^{2} } \right)}}{\psi }s^{2} - \frac{(M + m)mgl}{\psi }s - \frac{bmgl}{\psi }}}$$
(6)

where \(\psi = \left[ {(M + m)\left( {i + Ml^{2} } \right) - ml^{2} } \right]\). The linearized equation of the IP system with F(t) and v(t) based on the Eqs. (5) and (6) can be expressed as follows [23]:

$$\left. {\begin{array}{*{20}l} {\frac{{{\text{d}}x_{m} (t)}}{dt} = \dot{x}_{m} (t) = A_{m} x_{m} (t) + B_{m} u(t) + B_{d} F(t)} \hfill \\ {y(t) = C_{m} x_{m} (t) + D_{m} u(t) + v(t)} \hfill \\ \end{array} } \right\}$$
(7)

where \(x_{m} (t)\), u(t), and y(t) are represented as the state variable, control input, and regulated output, respectively. The state-space matrices of the IP system are represented as Am, Bm, Cm, Dm and Bd. The detailed description of linearization is described in the literature [23]. In MATLAB, the command ‘linmod’ is used to evaluate the state-space matrices on the SIMULINK model of IP as depicted in Fig. 1c.

2.4 Response of IP Model

There are four roots in IP system. One of them lies in right-hand side of the complex plane. As a result, the system becomes unstable. This needs the design of an adaptive controller for improving the stability of the system by means of shifting the roots into the left-hand side of the complex plane. The IP system SIMULINK model in the open-loop form is depicted in Fig. 1c. The IP system consists of two inputs and four outputs. The control force u(t) and applied horizontal force F(t) are the two inputs of the IP system. The CP and AP of the pendulum are the four outputs of the IP system. An uncontrolled system dynamics such as AP of the pendulum and CP are being observed owing to the application of 1 N impulsive horizontal force F(t) on the cart at the time t = 1.0 s.

The uncontrolled system dynamics are illustrated in Fig. 2a, b. Figure 2a, b illustrates the unstable dynamics under various model uncertainties and disturbances. The unstable dynamics can be reduced by applying the suitable control techniques. In this case, the AP of the pendulum is the most essential outcome that needs to be controlled within a stable range through suitable control techniques, and CP is analyzed in order to view the motion trajectory.

Fig. 2
figure 2

a AP of pendulum with application of F(t); b CP with application of F(t)

3 Control Algorithm

The KFSMC control algorithm is demonstrated in this section. The closed-loop system response with respect to robustness, accuracy, and stability are analyzed. The control specifications such as settling time ts, steady-state error ess, maximum overshoot Omax, and maximum undershoot Umax are also evaluated and examined with proper validation of the controller action.

3.1 Design of KFSMC

The linearized model of the IP as discussed in Sect. 2.3 has been taken for the formulation of the suggested control algorithm to regulate the CP and AP of the pendulum. For accomplishing an upgraded performance and the adjustment of controller parameters of the suggested KFSMC, it is integrated into the linearized model of the IP as illustrated in Fig. 3. The KFSMC is designed by integrating a state estimator with the CSMC as shown in Fig. 1a. The state estimator is implemented to estimate all the states of the system in a recursive manner to enhance the control performances such as robustness, accuracy, and stability. The linearized model of the IP with F(t) and v(t) is formulated as represented in Eq. (7), where both v(t) and F(t) are represented as the Gaussian noise. The relationship between v(t) and F(t) is as follows:

Fig. 3
figure 3

Closed-loop IP model with KFSMC in the state-space representation

$$\left. {\begin{array}{*{20}l} {E\{ F(t)\} = 0} \hfill \\ {E\{ v(t)\} = 0} \hfill \\ \end{array} } \right\}$$
(8)
$$E\left\{ {F(t)F^{T} (\tau )} \right\} = Q_{2} \delta (t - \tau )$$
(9)
$$E\left\{ {v(t)v^{T} (\tau )} \right\} = R_{2} \delta (t - \tau )$$
(10)

F(t) is uncorrelated to the v(t); therefore, it can be defined as follows:

$$E\left\{ {F(t)v^{T} (\tau )} \right\} = 0$$
(11)

where Q2 and R2 are symbolized as the positive semi-definite intensity matrices of the F(t) and v(t), respectively. Figure 3 illustrates the linearized model of the IP with the feedback gain kc and Kalman filtering gain kf. The mathematical expressions of kc and kf are presented in Sect. 3.1.2. The calculation of the TF of the KFSMC is described in Sect. 3.1.3.

The control signal u(t) of proposed controller has two major components such as switching function ust(t) and equivalent control input ueq(t). This is defined as represented in Eq. (12).

$$u(t) = u_{\text{st}} (t) + u_{\text{eq}} (t)$$
(12)

For the formulation of the proposed control algorithm, two basic steps are required. In the first step, the switching function ust(t) is to be ensured reaching condition by pulling the all states of a nominal model inside the boundary layer near the sliding hyperplanes; as a result, chattering is reduced and also robustness of a system is improved. In the second step, the desired ueq(t) is to be formulated in such a manner that accuracy, and stability of a system is enhanced. The design procedures of first and second steps of the KFSMC are analyzed in Sects. 3.1.1 and 3.1.2, respectively.

3.1.1 Reaching Condition (RC)

To achieve RC, all the states of the nominal model are to be inside the boundary layer near the sliding hyperplanes. Secondly, these states should remain inside the boundary layer after that [20]. The robustness of a model is enhanced by achieving the RC. Under this situation, the system dynamics are independent to the model uncertainty and disturbances. It can be possible through the sliding hyperplane parameter Gs.

  1. (A)

    Sliding hyperplane parameter:

The sliding hyperplane parameter Gs for a system with \(\alpha\) number of inputs is related to the equal number of \(\alpha\) hyperplane vectors as follows [20]:

$$s_{i} (t) = g_{i}^{T} x_{m} (t)$$
(13)
$$s(t) = G_{s} x_{m} (t)$$
(14)

where s(t) stands for si(t), Gs stands for \(g_{i}^{T}\), \(s_{i} (t) = \left[ {s_{1} (t),s_{2} (t),s_{3} (t), \ldots, s_{\alpha } (t)} \right]\), \(s_{i} (t)\) is the ith hyperplane vector, \(g_{i}^{T} = \left[ {g_{1} ,g_{2} ,g_{3} , \ldots, g_{\alpha } } \right]^{T}\), \(g_{i}^{T}\) is the transpose of ith hyperplane parameter, \(\alpha\) is the number of inputs of a system, and i varies from 1 to \(\alpha\). When \(s_{i} (t) = 0,\) \(\alpha\) number of hyperplanes move through the origin in state-space as shown in Fig. 4. These hyperplanes are called as sliding hyperplanes.

Fig. 4
figure 4

Location of boundary layer near the sliding hyperplane

Under the above condition, s(t) and Gs are known as the sliding hyperplane vector and sliding hyperplane parameter of the IP model, respectively. Equation (14) can be rewritten as follows:

$$\dot{s}(t) = G_{s} \dot{x}_{m} (t)$$
(15)

The Gs is derived by using the similarity transformation controllable canonical form (STCCF) of an IP model. The STCCF of an IP model is defined as follows [20]:

$$\dot{q}(t) = \overline{A}_{m} q(t) + \overline{A}_{m} u(t) + \overline{A}_{d} w(t)$$
(16)

where \(q(t) = Hx_{m} (t)\), \(\overline{A}_{m} = HA_{m} H^{ - 1}\), \(\overline{B}_{m} = HB_{m}\), \(\overline{B}_{d} = HB_{d}\). The H matrix is computed by using Eq. (17).

$$H = \left[ {\begin{array}{*{20}l} F \hfill & {B_{m} } \hfill \\ \end{array} } \right]^{T}$$
(17)

where \(F = {\text{null}}\left( {B_{m}^{T} } \right)\). The \(q(t)\) can be decomposed as follows:

$$q(t) = \left[ {\begin{array}{*{20}c} {q_{1} (t)} \\ {q_{2} (t)} \\ \end{array} } \right]$$
(18)

where \(q_{1} (t)\) and \(q_{2} (t)\) are vectors with size of \((n - \alpha ) \times \alpha\) and \(\alpha \times \alpha\), respectively. The n represents the order of the Am. When the rank of a system matrix Am is not matched with the rank of the controllable matrix \(c\left( {A_{m} ,B_{m} } \right)\) of the system, the appropriate system is uncontrollable in nature. The system can be decomposed into controllable and uncontrollable parts. The decomposed controllable and uncontrollable parts of the system with respect to Eq. (16) are defined as follows [20]:

$$\left[ {\begin{array}{*{20}c} {\dot{q}_{1} (t)} \\ {\dot{q}_{2} (t)} \\ \end{array} } \right] = \left[ {\begin{array}{*{20}c} {\overline{A}_{m11} } & {\overline{A}_{m12} } \\ {\overline{A}_{m21} } & {\overline{A}_{m22} } \\ \end{array} } \right]\left[ {\begin{array}{*{20}c} {q_{1} (t)} \\ {q_{2} (t)} \\ \end{array} } \right] + \left[ {\begin{array}{*{20}c} 0 \\ {\overline{B}_{mr} } \\ \end{array} } \right]u(t) + \left[ {\begin{array}{*{20}c} 0 \\ {\overline{B}_{dr} } \\ \end{array} } \right]w(t)$$
(19)

where \(q_{1} (t)\) and \(q_{2} (t)\) are the controllable and uncontrollable parts of the system, respectively. The \(\overline{B}_{mr}\) consists of the last \(\alpha\)-rows of the matrix \(\overline{B}_{m}\), and \(\overline{B}_{dr}\) consists of the last \(\alpha\)-rows of the matrix \(\overline{B}_{d}\). The sliding hyperplane vector can be expressed in the form of \(q_{1} (t)\) and \(q_{2} (t)\) as follows [20]:

$$s(t) = q_{2} (t) + kq_{1} (t)$$
(20)

The Gs can be derived based on Eqs. (14) and (20), as follows [20]:

$$G_{s} = \left[ {\begin{array}{*{20}c} k & {I_{\alpha } } \\ \end{array} } \right]H$$
(21)

where k denotes the gain matrix of the proposed KFSMC, and \(I_{\alpha }\) denotes an unitary matrix with dimension of \(\alpha \times \alpha\).

  1. (B)

    Gain matrix of KFSMC

The k is computed based on the IP model dynamics for the minimum value of the quadratic performance index j as specified in Eq. (22).

$$j = \int\limits_{0}^{\infty } {\left[ {q(t)^{T} Q_{q} q(t)} \right]} {\text{d}}t$$
(22)

where \(Q_{q} = \left( {H^{ - 1} } \right)^{T} Q_{1} H^{ - 1}\) and \(Q_{1} = C_{m}^{T} C_{m}\). The Q1 signifies a positive semi-definite weighted matrix of state. The matrix Qq can be decomposed with respect to Eq. (19) as follows:

$$Q_{q} = \left[ {\begin{array}{*{20}c} {Q_{r} } & N \\ {N^{T} } & {R_{1} } \\ \end{array} } \right]$$
(23)

where the matrix Qr is the first subpart of the matrix Qq with size of \((n - \alpha) \times (n - \alpha)\). The matrix N is the second subpart of the matrix Qq with size of \((n - \alpha) \times \alpha\). The NT is the third subpart of the Qq with dimension of \(\alpha \times (n - \alpha)\). The R1 symbolizes a positive definite weighted matrix of input, and it is the fourth subpart of the matrix Qq with size of \(\alpha \times \alpha\). Equation (22) can be reformulated as follows:

$$j = \int\limits_{0}^{\infty } {\left[ {q_{1} (t)^{T} Q_{r} q_{1} (t) + 2q_{1} (t)^{T} Nq_{2} (t) + q_{2} (t)^{T} R_{1} q_{2} (t)} \right]{\text{d}}t}$$
(24)

The system can achieve RC, only when \(s(t) = 0\). Under RC, the system dynamics can be formulated based on the full state feedback along with size of \((n - \alpha ) \times \alpha\) as follows [20]:

$$\dot{q}_{1} (t) = \overline{A}_{m1} q_{1} (t) + \overline{A}_{m12} q_{2} (t)$$
(25)

The k is computed based on the Eqs. (23) and (25) for the minimum value of the quadratic performance index as specified in Eq. (26).

$$k = R_{1}^{ - 1} \left( {\overline{A}_{m12}^{T} P + N^{T} } \right)$$
(26)

where P denotes the controller algebraic Riccati equation (CARE) solution. The CARE is specified as follows [20]:

$$\begin{aligned} & P(\overline{A}_{m11} - \overline{A}_{m12} R_{1}^{ - 1} N^{T} ) + (\overline{A}_{m11}^{T} - NR_{1}^{ - 1} \overline{A}_{m12}^{T} )P \\ & \quad - P\bar{A}_{m12} R_{1}^{ - 1} \overline{A}_{m12}^{T} P + Q_{r} - NR_{1}^{ - 1} N^{T} = 0 \\ \end{aligned}$$
(27)

The sliding hyperplane parameter Gs can be computed by putting Eq. (26) in Eq. (21). The system can achieve RC and enhanced robustness through the sliding hyperplane parameter Gs. To satisfy the RC and chattering free control is chosen as [20]:

$$u(t) = - \left( {G_{s} B_{m} } \right)^{ - 1} \text{diag} (\eta )\text{sat} (s(t)) + u_\text{eq} (t)$$
(28)

where \(- \left( {G_{s} B_{m} } \right)^{ - 1} \text{diag} (\eta )\text{sat} (s(t))\) is the switching function \(u_{st} (t)\) and \({\text{diag}}(\eta )\) is a diagonal matrix with ith diagonal element equal to a positive number \(\eta_{i}\). The ith element of \({\text{sat}}(s(t))\) is formulated as:

$${\text{sat}}\left( {s_{i} (t)} \right) = \left\{ {\begin{array}{*{20}l} {\text{sgn} \left( {s_{i} (t)} \right)} \hfill & {{\text{ if}}\;\left| {s_{i} (t)} \right| > \rho_{i} } \hfill \\ {s_{i} /\rho_{i} } \hfill & {\text{otherwise}} \hfill \\ \end{array} } \right.$$
(29)

where \(\rho_{i}\) denotes the boundary layer thickness nearby the ith hyperplane as shown in Fig. 4.

3.1.2 Equivalent Control Input \(u_{\text{eq}} (t)\)

To satisfy the RC, the \(u_{\text{eq}} (t)\) can be formulated with the use of kf and kc. The states of the system are estimated recursively based on the Kalman filtering approach to enhance the system response. The estimated state-space equation of the system is defined as [20]:

$$\dot{\hat{x}}_{m} (t) = A_{m} \hat{x}_{m} (t) + B_{m} u(t) + k_{f} [r(t) - y(t) - \hat{y}(t)]$$
(30)
$$\hat{y}(t) = C_{m} \hat{x}_{m} (t)$$
(31)

where \(\hat{x}_{m} (t)\) signifies the estimated state and \(\hat{y}(t)\) signifies the estimated output.

The kf can be formulated as [20]:

$$k_{f} = \Sigma_{k} C_{m}^{T} R_{2}^{ - 1}$$
(32)

where \(\Sigma _{k}\) signifies the filter algebraic Riccati equation (FARE) solution. The FARE is specified as follows [20]:

$$A_{m}\Sigma _{k} + \Sigma_{k} A_{m}^{T} + B_{d} Q_{2} B_{d}^{T} -\Sigma _{k} C_{m}^{T} R_{2}^{ - 1} C_{m}\Sigma _{k} = 0$$
(33)

The sliding hyperplane vector s(t) can be formulated with the use of Gs and \(\hat{x}_{m} (t)\) as follows [20]:

$$s(t) = G_{s} \hat{x}_{m} (t)$$
(34)

To satisfy the RC, the \(u_{\text{eq}} (t)\) can be derived from Eqs. (30) and (34) as [20]:

$$u_{\text{eq}} (t) = - \left( {G_{s} B_{m} } \right)^{ - 1} \left[ {G_{s} \left( {A_{m} - k_{f} C_{m} } \right)\hat{x}_{m} (t) + G_{s} k_{f} [r(t) - y(t)]} \right]$$
(35)

Under RC, the control law u(t) of suggested KFSMC is formulated based on Eqs. (28), (29), and (35) as follows [20]:

$$u(t) = - \left( {G_{s} B_{m} } \right)^{ - 1} \left[ {G_{s} \left( {A_{m} - k_{f} C_{m} + \gamma I_{n} } \right)\hat{x}_{m} (t) + G_{s} k_{f} [r(t) - y(t)]} \right]$$
(36)
$$u(t) = - k_{c} \hat{x}_{m} (t) - K_{s} [r(t) - y(t)]$$
(37)

where \(K_{s} = \left( {G_{s} B_{m} } \right)^{ - 1} G_{s} k_{f}\) and \(k_{c} = \left( {G_{s} B_{m} } \right)^{ - 1} G_{s} \left( {A_{m} - k_{f} C_{m} + \gamma I_{n} } \right)\). The In is an unitary matrix with size of \(n \times n\), and n is the order of the Am. The kc and \(\gamma\) are denoted for the feedback gain and sliding parameter of the suggested KFSMC, respectively. The \(\gamma\) can be estimated as:

$$\gamma = \frac{{\eta_{i} }}{{\rho_{i} }} = \frac{\eta }{\rho }$$
(38)

where \(\rho_{i}\) and \(\eta_{i}\) are denoted for the thickness of the boundary layer and any positive number of the ith sliding hyperplane, respectively, as illustrated in Fig. 4. Both \(\eta_{i}\) and \(\rho_{i}\) are taken as identical value for each \(\gamma\) and set to \(\eta\) and \(\rho\), respectively.

3.1.3 Transfer Function (TF) of KFSMC

The TF of the KFSMC is defined from Eqs. (30) and (37) as follows [20]:

$$K(s) = \beta_{1} \left( {sI_{n} - A_{m} + B_{m} \beta_{1} + k_{f} C_{m} } \right)^{ - 1} \beta_{2} + \left( {G_{s} B_{m} } \right)^{ - 1} G_{s} k_{f}$$
(39)

where \(K(s)\) is denoted as the TF of KFSMC, \(\beta_{1} = \left( {G_{s} B_{m} } \right)^{ - 1} G_{s} \left( {A_{m} + \gamma I_{n} - k_{f} C_{m} } \right)\) and \(\beta_{2} = k_{f} - B_{m} \left( {G_{s} B_{m} } \right)^{ - 1} G_{s} k_{f}\). The packed matrix notation of K(s) is specified as follows [20]:

(40)

For the design of suggested KFSMC, the optimal values of control parameters are evaluated with help of MATLAB and represented as in Table 3.

Table 3 The optimal values of control parameters

4 Outcomes and Discussions

The response of the closed-loop IP with proposed KFSMC is described in detail in this section. The proposed control approach (KFSMC) is compared with other popular control algorithms to justify its enhanced performance.

4.1 Performance Analysis of IP System with KFSMC

In this section, all physical activities of the closed-loop IP model with suggested KFSMC are examined under different conditions and the huge deviation of applied horizontal force. The closed-loop system dynamics with 1 N impulsive horizontal force F(t) at the time of 1.0 s are displayed in Fig. 5a, b. The outcomes clearly specify the pendulum achieves the zero AP with less settling time and cart also attains the balance position where the IP system is absolutely steady. To achieve the enhanced system response, the required control force u(t) is generated by the suggested KFSMC and demonstrated in Fig. 6.

Fig. 5
figure 5

a AP of the pendulum with the application of F(t) based on KFSMC; b CP with the application of F(t) based on KFSMC

Fig. 6
figure 6

Controlled signal u(t) of the KFSMC

4.2 Robustness of the KFSMC

Figure 7 illustrates the AP and AV of the pendulum with suggested KFSMC under the huge deviation of applied horizontal force F(t). The time-domain outcomes under huge deviation of applied forces show the enhanced performance of the closed-loop IP model with KFSMC. Overall in each case, the pendulum achieves finally zero AP and zero AV with less settling time. As indicated by the results, the suggested KFSMC robust performance under the huge deviation of applied horizontal forces is much better.

Fig. 7
figure 7

AP of the pendulum with a deviation of \(\pm 40\%\) applied F(t) based on KFSMC

4.3 Stability Investigation

Figure 8a, b illustrates the magnitude plots result of the open-loop and closed-loop IP system to verify and analyze the stability conditions. From both the magnitude plots, it is observed a better smoothness referring to the wider steady-state stability of closed-loop system (Fig. 8b) than the open-loop system (Fig. 8a). In other words, the bandwidth is increased in case of a closed-loop system with KFSMC than the open-loop system. This clearly indicates a faster dynamics, and also it results zero AP and zero AV of pendulum with quick settling time in case of the closed-loop system. This justifies better stability during system operation.

Fig. 8
figure 8

a Magnitude plot of the IP system; b Magnitude plot of the closed-loop IP system

4.4 Comparative Study

The proposed KFSMC control approach is compared with other popular control approaches such as PID, fuzzy, LQR, \(H\infty\), FSM, and BLQG which justify its enhanced performance as a controller. Figure 5a illustrates the effect of applied force in the AP of the pendulum with the proposed KFSMC approach. Table 4 presents a comparative analysis with respect to ts (sec), \(O_{\text{Max}}\) (rad), \(U_{\text{Max}}\) (rad), noise (%), and \(e_{ss} (\% )\). The effect of applied force in the AP of pendulum applying different control approaches such as PID, fuzzy, LQR, \(H\infty\), FSM, and BLQG is also demonstrated in Table 4 based on the references [5, 7, 9, 15, 18, 19], respectively. Similar working conditions are followed with the same level of sensor noise in all control techniques application for comparison.

Table 4 Comparative result analysis related to AP of pendulum

The AP of pendulum under 1 N impulsive horizontal force is tested. The corresponding results are presented for the various control approaches along with the proposed KFSMC with respect to time-domain specifications such as OMax(rad), UMax(rad), and ts(s). The results signify the better controllability of the KFSMC. The simulation results also demonstrate the high noise and chattering elimination capability with high robustness for the proposed approach. Overall, by looking to the above comparative analysis, the findings of suggested approach advantages are the higher accuracy and stability, more robustness, high noise and chattering elimination capability, and better capability to handle uncertainty under various conditions and huge deviation of road disturbance.

5 Conclusions

The manuscript proposed a novel control strategy (KFSMC) based on the Kalman filtering approach to balance the pendulum. To justify its enhanced performance, it has been applied and tested to control the system dynamics of IP system within the stable range. Initially, the IP system is modeled as the fourth-order state-space representation. Then, the proposed control approach (KFSMC) is designed. In suggested KFSMC, state estimator is utilized to enhance the control performance. The comparative results clearly reflect that the suggested KFSMC is arrived at better performance than the other control approaches such as PID, fuzzy, LQR, \(H\infty\), FSM, and BLQG with respect to stability, reliability, and robustness under various abnormal conditions and disturbances. The better performance of the suggested approach in terms of improved accuracy and stability, enhanced robustness, high noise and chattering elimination capability, and better ability to control uncertainty which justifies its real-time application.