1 Introduction

The main intention of an adaptive cruise control (ACC) vehicle is to lessen the number of accidents by accomplishing greater deceleration or transitional maneuvers. To avoid or reduce the severity of a collision, the insecure reduction in speed should consider the technical constraints of the ACC system armed vehicles [1, 2]. While analyzing relevant research studies in the field of ACC systems, it is essential to comprehend the nature of the dynamic model and control [3] presented, as well as the effects generated by different sources on achieving an ACC system. The recent study has focused on how to onboard intelligent driver assistance technologies that may improve comfort and safety in urban areas and public road transportation networks [4].

The traditional PID control strategy is inappropriate for a complicated and nonlinear system. Much more emphasis is placed on fractional calculus in the discipline of control systems to fix nonlinearity in dynamic structures [5]. The fractional PID controller \({\text{PI}}^{\lambda } D^{\mu }\) has an integrator of order λ and a differentiator of order μ. It has been confirmed that this controller offers superior performance compared to the classical PID controller. FOPID controller is categorized by five factors: proportional gain, integration gain, derivative gain, integration order, and derivative order [6]. The two extra parameters give the controller designer more design options than a conventional PID controller but also make controller implementation more difficult. Regarding resilience, the controllers that use fractional order derivatives and integrals perform better than traditional controllers [7]. The fractional powers in integral and derivative relations are supplemented to obtain the FO controllers from the integer order [8]. The additional differential and integral order parameters boost the design flexibility of the controller, allowing for improved dynamic performance and durability when using this kind of controller. Compared to integer order systems, fractional order systems have exceptional performance [9]. To improve performance, the FOPID type controller has memory capability and can correctly change the controller’s output based on error history data. Finally, the additional fractional order terms simplify modifying the closed high-frequency loop’s and low-frequency properties [10].

FLC is also used with the fractional order controller to fine-tune parametric gains and optimum efficiency in the face of nonlinearities, load disturbances, and variations in plant parameters [11]. The fuzzy system’s adaptive method will boost the fractional order controller’s dynamic capability, enabling it to react quickly to stricture variations [12]. The genetic algorithm (GA) optimizes the scaling factors by minimizing many integral error indices while maintaining the control signal as the objective function [13]. A fractional order fuzzy PD+I controller (FOFPD+I) is designed and implemented to control complex, uncertain, and nonlinear robotic manipulators [14]. FOFPD+I controller has derived from fractional order PD and fractional order I controller. The proposed control strategy has an adaptive capability due to its nonlinear gains and preserves the linear structure of the fractional order PD+I controller [15].

A fractional order ANFIS PD plus I scheme is developed for improved control performance and quicker reaction times after taking these factors into account. This manuscript is organized as follows. In Sect. 2, the nonlinear system modeling is discussed. Section 3 demonstrates the design of the fractional order PID control structures. The strategy of FO ANFIS PID and FO ANFIS PD plus I structure is deliberated in Sect. 4. The adaptive neuro-fuzzy inference system for the cruise control system is portrayed in Sect. 5. Simulations of various controllers are merged as one plot for comparison in Sect. 6. Section 7 concludes the result discussions of the proposed research.

2 Nonlinear system modeling

The cruise control mechanism regulates the vehicle’s speed by providing acceleration and deceleration signals to the engine control unit through the electronic control unit. This process generates a persistent velocity even in turbulences mainly instigated by alterations in the slope of a road. By considering the horizontal and slanting position of the car, the nonlinear example of the vehicle has been assembled based on Newton’s law of motion [16] by incorporating parameters such as mass of the vehicle m, wind resistance B, wheel rolling resistance (Fr), and input force cu(t) to the engine in both horizontal and slanting positions. It is shown in Fig. 1. The range of engine throttle varies from 0 ≤ u(t) ≤ 1, and c represents the proportionality constant. Hence, the total force applied to the vehicle is \({\text{Ftot}}\left( t \right) \, = ma\left( t \right) = m\dot{v}\left( t \right) = {\text{cu}}\left( t \right), t \ge \, 0\).

Fig. 1
figure 1

Nonlinear system model

Wind drag force acts as the first counterforce on the vehicle due to the product between wind resistance constant B and velocity squared time v2(t). The second counterforce emerged as wheel rolling resistance by combining the dimensionless rolling resistance coefficient \(C_{{\text{r}}}\) with mg. While considering the slanting position of the vehicle with an angle θ, road gradient force mg sin(θ) has evolved as a third counterforce due to gravity. The angle considered for the slanting position is too small, representing it as sinθ θ.

$$ F_{r} = C_{{\text{r}}} W,{\text{where}} \;W = mg $$
$$ F_{r} = C_{{\text{r}}} mg $$

The equation of motion is now

$$ m\dot{v} = {\text{cu}}\left( t \right) - Bv^{2} \left( t \right) - C_{{\text{r}}} mg - mg\sin \theta $$
$$ \dot{v} = \frac{C}{m}u\left( t \right) - \frac{B}{m}v^{2} \left( t \right) - C_{{\text{r}}} g - g\theta $$
(1)

The nature of Eq. (1) is nonlinear and differential, representing the velocity of the vehicle \(v\left( t \right)\). Three significant scenarios are considered for linearization.

Scenario 1

Consider the car is on the flat plane (θ = 0), and its desired regulated value is 1. Therefore, Eq. (1) is reformed as follows:

$$ \dot{v} = \frac{C}{m}u\left( t \right) - \frac{B}{m}v^{2} \left( t \right) - C_{{\text{r}}} g $$
(2)
$$\dot{v}\left( t \right){\text{ becomes}}\;0\;{\text{when}}\;t \to \infty $$

Equation (2) is further reduced to

$$ v^{2}_{\max } = \frac{C}{B} - \frac{{C_{{\text{r}}} mg}}{B} $$
$$ v_{\max } = \sqrt {\frac{C}{B} - \frac{{C_{{\text{r}}} mg}}{B}} = \sqrt {\frac{{C - C_{{\text{r}}} mg}}{B}} $$

Scenario 2

While climbing the hill, the car will stall due to the full throttle applied to handle some crucial slanting angle θs and it, resulting in zero velocity. Therefore, the crucial slanting angle is expressed as follows:

$$ 0 = \frac{C}{m} - \frac{B}{m}\left( 0 \right) - C_{{\text{r}}} g - g\sin \left( {\theta_{0} } \right) $$
$$ \frac{C}{m} - C_{{\text{r}}} g = g\sin \left( {\theta_{0} } \right) $$
$$ \sin \left( {\theta_{0} } \right) = \frac{{C - C_{{\text{r}}} mg}}{mg} $$
$$ \theta_{s} = \theta_{0} = sin^{ - 1} \left( {\frac{{C - C_{r} mg}}{mg}} \right) $$

This inspection is based on the assumption that the vehicle remains in a fixed gear. We most likely downshift to the lowest gear when driving a car to avoid stalling.

Scenario 3

Consider the car withextreme throttle and its slanting angle θ = 0.

$$ w = \frac{v}{{v_{\max } }} = \frac{v}{{\sqrt {\frac{{C - C_{{\text{r}}} mg}}{B}} }}, $$

where

$$ v_{max} = \sqrt {\frac{{C - C_{r} mg}}{B}} $$
$$ \frac{{{\text{d}}v\left( t \right)}}{{{\text{d}}t}} = \frac{C}{m}u\left( t \right) - \frac{B}{m}v^{2} \left( t \right) - C_{{\text{r}}} g $$
(3)

where

$$ v = w\sqrt {\frac{{C - C_{{\text{r}}} mg}}{B}} $$
(4)

Differentiating Eq. (4) concerning t

$$ \frac{{{\text{d}}v\left( t \right)}}{{{\text{d}}t}} = \frac{{{\text{d}}w}}{{{\text{d}}t}}\sqrt {\frac{{C - C_{{\text{r}}} mg}}{B}} $$

Substitute in Eq. (3)

$$ \frac{{{\text{d}}w\left( t \right)}}{{{\text{d}}t}}\sqrt {\frac{{C - C_{{\text{r}}} mg}}{B}} = \frac{C}{m}u\left( t \right) - \frac{B}{m}\left( {\frac{{C - C_{{\text{r}}} mg}}{B}} \right)w^{2} \left( t \right) - C_{{\text{r}}} g $$
$$ \frac{{{\text{d}}w\left( t \right)}}{{{\text{d}}t}} = \frac{C}{m}\sqrt {\frac{B}{{C - C_{{\text{r}}} mg}}} u\left( t \right) - \frac{B}{m}\sqrt {\frac{{C - C_{{\text{r}}} mg}}{B}} w^{2 } \left( t \right) - C_{{\text{r}}} g\sqrt {\frac{B}{{C - C_{{\text{r}}} mg}}} $$
$$ {\text{Assume}}\;\alpha = \sqrt {\frac{{C - C_{{\text{r}}} mg}}{B}} $$

Henceforth, the nonlinear equation of the vehicle is

$$ \frac{{{\text{d}}w\left( t \right)}}{{{\text{d}}t}} = \frac{C}{m}\frac{1}{\alpha }u\left( t \right) - \frac{B}{m}\alpha w^{2 } \left( t \right) - \frac{{C_{{\text{r}}} g}}{\alpha } $$
(5)

The meticulousresult of this streamlined form is v(t) = vmaxtanh(t \(\alpha\)). Figure 2 shows the Simulink model of the nonlinear equation, and its parameters are listed in Table 1.

Fig. 2
figure 2

Simulink model of the vehicle

Table 1 Design considerations

3 Fractional order PID control structures

The derivatives and integrals of fractional calculus can be any real integer [7]. The FOPID \({\text{PI}}^{\lambda } D^{\mu }\) controller is a leeway of conventional PID controller [9], where a new integral factor \(\lambda\) and a new derivative factor \(\mu \) have fractional values that augment more flexibility and make the system less subtle to factor changes. The differential equation of the parallel \({\text{PI}}^{\lambda } D^{\mu }\) controller can be defined as follows:

$$ G_{c}^{{{\text{FOPID}}}} \left( s \right) = k_{{\text{p}}} + K_{{\text{i}}} \frac{1}{{s^{\lambda } }} + k_{{\text{d}}} s^{\mu } $$
(6)

where \(k_{{\text{p}}} , K_{{\text{i}}} , k_{{\text{d}}}\), \(\lambda\), and \(\mu\) are proportional gain, integral gain, derivative gain, and scaling factors. The ideals of these orders \(\{ \lambda ,\mu \}\) along with \(k_{{\text{p}}} , K_{{\text{i}}} , k_{{\text{d}}}\) are the optimization variables in the genetic procedure. The FOMCON toolbox is used to advance the system controller based on Oustaloup’s rational estimating approach [13]. Figure 4 represents the FOPID structure, while Fig. 3 depicts the closed-loop model of the system with an FOPID controller.

Fig. 3
figure 3

Closed-loop model of the system with FOPID controller

4 FO I−PD and FO PI−D controller

FOPI−D and FOI−PD structures have been introduced to reduce overshoot-damped oscillations and settling time. The fundamental goal of the redesigned structures is to shift the derivative component, the proportional component, or both from the critical route to the feedback path. Since the remaining terms will still transfer the change in set point, they are not directly affected by the jump in set value, but their impact on the comparable effect is still present. The construction of the fractional order PID controller is altered into a fractional order integral minus proportional derivative (FO I−PD) controller (Fig. 4).

$$ uI^{\lambda } - {\text{PD}}^{\mu } \left( t \right) = k_{{\text{I}}} D^{ - \lambda } e\left( t \right) - \left[ {k_{{\text{P}}} y\left( t \right) + k_{{\text{D}}} D^{\mu } y\left( t \right)} \right] $$
(7)

where \(uI^{\lambda } - {\text{PD}}^{\mu } \left( t \right)\) is the control action of the fractional order I−PD controller.

Fig. 4
figure 4

FOPID structure

The fractional order I−PD levers the unforeseen variations in the reference set point and eliminates the spikes from the control signal in the set point tracking approach. While in disturbance rejection mode, it fails to regulate the system smoothly due to the occurrence of spikes. To remove spikes from the response, the control structure is modified as a fractional order proportional integral minus derivative (PI−D) controller.

$$ u{\text{PI}}^{\lambda } - D^{\mu } \left( t \right) = \left[ {k_{{\text{P}}} e\left( t \right) + k_{{\text{I}}} D^{ - \lambda } e\left( t \right)} \right] - k_{{\text{D}}} D^{\mu } y\left( t \right)] $$
(8)

where \(u{\text{PI}}^{\lambda } - D^{\mu } \left( t \right)\) is the control action of the fractional order PI−D. The structure of fractional order I−PD and fractional order PI−D is revealed in Figs. 5 and 6.

Fig. 5
figure 5

FO I−PD controller

Fig. 6
figure 6

FO PI−D controller

5 Design of FO ANFIS PID and FO ANFIS PD plus I structure

The fractional order adaptive neuro-fuzzy PID structureis framed by referring to various literature like fuzzy PID structure [14,15,16,17] with \(k_{e}\) and \(k_{d}\). As the input scaling aspects and beta and alpha as output scaling aspects for better improvement, it is shown in Fig. 7. In this structure, the inputs to the fuzzy inference system are obtained by recording the model’s error values and the derivative of error values. The output of the adaptive neuro-fuzzy was multiplied by alpha, and its integral was multiplied by beta before being added to form the total output of the controller. The integer order rate of the error at the ANFIS input is replaced with the fractional order counterpart (\(\mu\)). At the ANFIS output, the order of the integral is likewise replaced with a fractional order (\(\lambda\)), denoting a fractional order integration of the ANFIS results. The ideals of these orders \(\{ \lambda ,\mu \}\) along with \(k_{e}\), \(k_{{\text{d}}}\) are the optimization variables in the genetic algorithm, and the alpha and beta values lie in the interval of {1, 2} and {0, 1}, respectively, to accomplish the superior response. Fractional order ANFIS PD plus I controller offers a very modest design procedure for the cruise control problem. The structure of the controller is shown in Fig. 8. The inputs to the fuzzy inference system are obtained by recording the model’s error values and derivative error values. Then, the derivative output is also provided to the ANFIS toolbox to avoid the problem of derivative kick. The Sugeno fuzzy system is reformed as the fuzzy inference system. An ANFIS with linguistic variables is articulated to pretend the control system. The Gaussian membership functions can define the linguistic ideals to solve nonlinearities which are uttered as follows:

$$ \mu_{{o_{i} }} ,h_{i} \left( {x_{i} } \right) = e^{{\left[ { - \left( {\frac{{x_{i} - v_{i} ,h_{i} }}{{\sigma_{i} , h_{i} }}} \right)} \right]}} $$
(9)
Fig. 7
figure 7

FO ANFIS PID structure

Fig. 8
figure 8

ANFIS loading data

The output of the adaptive neuro-fuzzy inference system is then added to the output of the error integral. If a sustained error occurs in a steady state, integral action is required, which increases the control signal if there is a small positive error and decreases it when there is a negative error. To avoid the complexity of writing the rule base for the ANFIS PID controller and the problem of integral windup, incremental action is used in this control strategy instead of the integral of the error as an input to the fuzzy inference system. This incremental action augments a change in control signal Δu to the current control signal u,

$$ ie_{n} = \mathop \sum \limits_{i} (e_{i} *T_{s} ) $$

where \(ie_{n}\) represents error at nth time instant, and \(T_{{\text{s}}}\) signifies sampling time.

The ANFIS uses the error with \(k_{{\text{P}}}\) and derivative error inputs with \(k_{{\text{D}}}\) for fractional order ANFIS PID and fractional order ANFIS PD plus I control structure to compute the scaling factor for proportional and derivative terms. Then, these ideals are used to appraise the gain aspects of fractional order ANFIS PID controller and fractional order ANFIS PD plus I controller. Hence, the final gain values of \(k_{{\text{P}}}\), \(k_{{\text{I}}}\), and \(k_{{\text{D}}}\) for FO ANFIS PID and FO ANFIS PD plus I controller are computed from the following expression:

$$ k_{{\text{P}}} = k_{{\text{P}}} + \delta k_{{\text{P}}} $$
$$ k_{{\text{D}}} = k_{{\text{D}}} + \delta k_{{\text{D}}} $$
$$ k_{{\text{I}}} = k_{{\text{I}}} $$

These updated values are useful in framing the ANFIS FO PD plus I structure as follows:

$$ {\text{PD}}^{\mu } \left( t \right) + uI^{\lambda } = k_{{\text{P}}} e\left( t \right) + k_{{\text{I}}} D^{ - \lambda } e\left( t \right) + k_{{\text{D}}} D^{\mu } e\left( t \right) $$
(10)

Once the scaling factors are updated based on ANFIS, the fractional order ANFIS PD plus I controller will behave exactly as the linear PID controller.

6 Adaptive neuro-fuzzy inference system controller

ANFIS is artificial neural networks based on the Takagi–Sugeno fuzzy inference structure, which combines the quality of FLC [18,19,20,21,22,23] and neural networks. ANFIS is a Sugeno-type fuzzy inference scheme. The parameters connected with particular membership functions are computed utilizing either a back-propagation gradient descent algorithm alone or in grouping with the least squares technique. It has been broadly applied to unsystematic data sequences with extremely irregular dynamics. The range of error input is from − 0.778 to 40, the error change is from − 713.591 to 0.157, and the output range is from 9.675 to 10,000. Figures 9, 10, and 11 correspondingly represent the ANFIS loading data, trained data, and ANFIS structure. ANFIS parameters are listed in Table 2.

Fig. 9
figure 9

FO ANFIS PD plus I structure

Fig. 10
figure 10

Trained data and FIS output

Fig. 11
figure 11

ANFIS structure

Table 2 ANFIS parameters

7 Optimal tuning

The parameters that organize the search space for the fractional order PID structures, including the adaptive neuro-fuzzy inference system, are \(k_{{\text{p}}} , k_{{\text{i}}} , k_{{\text{d}}} ,\lambda {\text{and }}\mu\). The intervals of the search space for these variables are \(\left\{ {k_{{\text{p}}} , k_{{\text{i}}} , k_{{\text{d}}} } \right\} = \left[ {0, 600} \right] \) and \(\{ \lambda ,\mu \} = \left[ {0, \, 2} \right]\). The variables are encrypted as real ideals in the procedure. The genetic algorithm has been widely used to find the best settings for controller tuning. To resolve the nonlinear model of the vehicle’s cruise control system, the envisioned fractional order ANFIS PD plus I parameters are ideally adjusted using a genetic algorithm [24, 25]. Three distinct objective functions based on time-domain evaluation metrics have been created by incorporating the integral of squared control signal (ISCO) with diverse integral error indices such as IAE, ISE, and ITAE. It has been introduced by designing the proposed fractional order ANFIS PD plus I and its other versions such as fractional order ANFIS [26,27,28] PID, FOPI−D, FOPID, and FOI−PD, sustaining the identical set of optimality norms. It is used to analyze the effort of the different controllers. Depending on the nature of the application and the relative importance of the error index and low control signal, the weights \(\alpha\) in the control objective (11–13) allow the designer more options. To obtain controller parameters, optimization with equal factors loading for integral error indices and the integral control signal, i.e.,\(\alpha\) is performed. Equations (1113) show the three control objectives used in this simulation exercise.

$$ \begin{aligned} O1 = & \mathop \int \limits_{0}^{\infty } \alpha \left| {e\left( t \right)} \right|{\text{d}}t + \alpha u^{2} \left( t \right){\text{d}}t \\ = & \left( {\alpha \times {\text{ IAE}}} \right) + \left( {\alpha \times {\text{ ISCO}}} \right) \\ \end{aligned} $$
(11)
$$ \begin{aligned} O2 = & \mathop \int \limits_{0}^{\infty } \alpha \left| {e^{2} \left( t \right)} \right|{\text{d}}t + \alpha u^{2} \left( t \right){\text{d}}t \\ = & \left( {\alpha \times {\text{ISE}}} \right) + \left( {\alpha \times {\text{ISCO}}} \right) \\ \end{aligned} $$
(12)
$$ \begin{aligned} O3 = & \mathop \int \limits_{0}^{\infty } \alpha \left( {t\left| {e\left( t \right)} \right|} \right){\text{d}}t + \alpha u^{2} \left( t \right){\text{d}}t \\ & = \left( {\alpha \times {\text{ITAE}}} \right) + \left( {\alpha \times {\text{ISCO}}} \right) \\ \end{aligned} $$
(13)

Over the rounds, GA gradually minimizes the objective functions (11–13) while determining the best custom settings for the fractional order fuzzy PID structure. The genetic algorithm pseudocode for controller parameter optimization is shown in Table 3. The population size is 250 to run the GA optimization algorithm associated with parameters such as normalized geometric selection, arithmetic crossover, and uniform mutation. This method terminates if the value of the desired function does not significantly change between repetitions or if the maximum number of repetitions is reached. The number of repetitions is limited to 150. It is also significantly reduced as part of the goal function with GA to prevent massive control signals that could inundate the actuator and end up causing integral winding. Finally, curtailment of regulatory requirements (11–13) yields the optimal model for the fractional order ANFIS PD plus I and other controllers such as the FOPI−D, FOPID, and FOI−PD.

Table 3 Pseudocode

8 Simulation results

The three objective functions (11–13) are minimized for each fractional order ANFIS PD plus I, fractional order ANFIS PID, FOPI-D, FOPID, and FOI−PD controller with the corresponding controller parameters described in Tables 4 and 5 for servo response and regulator response, respectively. By associating the outcomes in Tables 4 and 5, the objective function (O1) related to IAE provides the minimum value for all the controllers employed in this cruise control system, which signifies a great reduction in the controller effort. Therefore, the comparative investigation among the controllers has been made based on IAE-based tuning, displayed in Figs. 12 and 13. It reveals the cruise control system’s servo and regulator behavior, respectively.

Table 4 Optimal parameters of various controllers for servo response
Table 5 Optimal parameters of various controllers for regulator response
Fig. 12
figure 12

Servo response for IAE-based tuning of different controllers

Fig. 13
figure 13

a Regulator response for IAE-based tuning of different controllers and b close vision of regulator response

The servo response of FOPID shows large initial overshoot and damped oscillations with longer settling times but small spikes in the regulatory response. FOI−PD shows some delay in settling time with no overshoot in the servo response but a large enough spike in the regulatory response.

The servo response of FOPI−D has a little overshoot compared to FOPID and a little spike in the regulator response compared to FOI−PD. The set point tracking capability of FO ANFIS PD+I and FO ANFIS PID controllers is superior to non-ANFIS controllers such as FOPI−D, FOPID, and FOI−PD. Both the FO ANFIS PD plus I and the FO ANFIS PID contribute a lower peak overshoot and a better load turbulence response. Furthermore, the load turbulence behavior of the FOPI−D, FOPID, and FOI−PD controllers is limited. Hence, the FO ANFIS PD plus I confirms a noble load disturbance rejection and good set point tracking among all the controllers employed in the modeled cruise control system.

9 Conclusions

Therefore, this work carried out a successive investigation of fractional order controllers on cruise control systems by designing various control structures such as fractional order proportional–integral–derivative (FOPID), fractional order integral minus proportional derivative (FOI−PD), fractional order proportional integral minus derivative (FOPI-D), and adaptive neuro-fuzzy-based fractional order structures (FO ANFIS PID and FO ANFIS PD plus I). A genetic algorithm-based appropriate time-domain modification minimizes the linear combination of many integral evaluation metrics and the control signal. It is tuned for both servo and regulator responses to achieve optimal results. Adaptive neuro-fuzzy-based fractional order structures are implemented to avoid integral windup and derivative kick issues. The performance of the controllers is seen to be impacted by the type of process to be regulated as well as the selection of integral evaluation metrics. Therefore, the performance of FO ANFIS PD plus I controller surpasses the others in set point tracing and load turbulence denial criteria based on the result comparison.