Skip to main content
Scientific Reports logoLink to Scientific Reports
. 2026 Apr 4;16:16072. doi: 10.1038/s41598-026-47124-2

A novel nonlinear PID controller design with adaptive gains

Abdulkadir S Ozgun 1,2, Erman Selim 1, Alper Bayrak 3, Enver Tatlicioglu 1,✉
PMCID: PMC13199441  PMID: 41933166

Abstract

In this study, a novel nonlinear PID controller is developed for a class of second-order nonlinear systems subject to uncertainties and external disturbances. The proposed control architecture preserves the intuitive structure of the conventional PID framework while enhancing it through a systematically designed nonlinear adaptation mechanism. In particular, the controller gains are updated online via a newly constructed adaptive update rule with an innovative structural formulation, enabling improved performance under varying operating conditions. A rigorous stability analysis of the closed-loop system is carried out using Lyapunov-type methods specifically tailored for the proposed adaptive structure. It is formally proven that all closed-loop signals remain bounded, and semi-global uniform ultimate stability (SGUUS) of the tracking error is guaranteed. Unlike many adaptive or nonlinear PID formulations in the literature, the derived stability results are not limited solely to the adaptive case. It is emphasized that the proposed analytical framework is also directly applicable to classical constant-gain PID controllers. Therefore, this study additionally provides a novel stability analysis of PID control for second-order nonlinear systems, extending existing theoretical results. The practical applicability and robustness of the proposed control methodology are validated through extensive experimental studies conducted on a real-time platform. The experimental results demonstrate improved tracking performance, robustness against uncertainties, and effective disturbance rejection. The proposed controller reduces the average tracking errors by about Inline graphic in pitch and Inline graphic in roll compared with the fixed-gain PID case, thereby confirming the theoretical findings and highlighting the effectiveness of the proposed nonlinear PID design.

Keywords: PID control, Omnidirectional mobile robot, Lyapunov-based methods

Subject terms: Engineering, Mathematics and computing

Introduction

The three-term control method known as PID (short for proportional–integral–derivative) was introduced about a century ago by Nicolas Minorsky1,2 and, since then, its conventional form has been used without much change in almost all areas of industry. The main reasons why PID is so widely used lie in its simple structure and effectiveness. Due to its simple structure, it is relatively easy to understand and implement. Despite its ability to shape the transient response and reject constant disturbances, the theoretically proven applicability of the conventional PID controller is restricted to systems up to second order3,4. Moreover, since it is a linear controller, this characteristic is often regarded as a disadvantage. In other words, the commonly accepted stability analysis of the PID controller is valid only for linear systems having at most two states4,5. Therefore, to achieve stability results for nonlinear systems controlled by PID, researchers typically resort to linearization techniques. In that case, the nonlinear behavior of the system is ignored and the stability region becomes limited. In addition, the PID gains obtained via linear stability analysis tools may not perform well outside that region. A solution to the stabilization problem was proposed by Zhao and Lei in6. In their notable study, a stability analysis of a PID controller applied to second-order uncertain nonlinear systems was presented. As highlighted in their work, fully actuated mechanical systems are second-order; thus, the aforementioned study is valid for a wide range of applications. In that study, sufficient conditions on the PID gains that guarantee stability were also provided.

The conventional PID controller has constant gains and thus suffers from performance degradation, mainly because these constant gains are used for all operating conditions of the system, as well as due to parameter variations and external disturbances7. In the literature, this problem has been addressed by developing tuning methods for PID-type controllers. The two main approaches used for tuning PID gains are numerical-based approaches and analytical-based ones.

Numerical approaches employ methods such as genetic algorithms, neural networks (NN), fuzzy logic, and other heuristic optimization techniques. There are many studies that focus on investigating the effects of numerical methods on the performance of PID controllers or that utilize existing methods to improve the performance of control systems. Bidikli proposed an artificial NN-based self-tuning PID control method for multi-input multi-output (MIMO) nonlinear systems8. Li et al. used genetic algorithms to adjust the PID gains for a water-level control system9. Inci et al. proposed a saturation function–based velocity observer that estimates velocity without requiring system dynamics and automatically tunes its gains through an adaptive update law, and a self-tuned robust control for Euler Lagrange systems10–12. Fan et al. utilized back-propagation NN to adjust PID gains for the control of a rehabilitation robot. Zheng et al. used a fuzzy inference rule-based PID controller for an electro-hydraulic position servo control system13. Jiang and Jiang used a fuzzy PID controller for temperature control systems14. Hasan et al. proposed an adaptive neuro-fuzzy with a nonlinear PID controller to solve the speed-tracking problem in electric vehicles with brushless DC motor15. Nguyen et al. presented an adaptive nonlinear PID radial basis function neural network for ballbots with external force16. Lu et al. used the particle swarm optimization method to tune the PID gains for a turbine engine control system17. Gupta et al. utilized the grey wolf optimizer method to tune the PID gains for the control of a grid-connected PV inverter system18. Gopi et al. proposed a particle swarm optimization method to tune the gains of a PID controller for an automatic voltage regulator system19. The works in20 and21 proposed PID controllers in which the gains are tuned using the artificial lemming algorithm. Rad et al. presented an algorithm for the self-tuning of PID controllers that uses the Ziegler–Nichols tuning method22. Park et al. proposed an NN-based self-tuning method for vibration control systems23. Arega et al. presented a novel approach for the trajectory tracking control of a three wheeled mobile robot using neural network based nonlinear PID controller combined with the backstepping control techniques24. To optimally tune the parameters of a PID controller for a system subject to stochastic delays, Qi et al. proposed an approach based on the particle swarm optimization algorithm25. Reviews of self-tuning methods for PID controllers can be found in26 and27. From the review of the relevant literature, it can be stated that studies utilizing numerical methods generally do not provide a rigorous stability analysis; rather, they evaluate the performance of the closed-loop control system through empirical or simulation-based studies.

Unlike numerical approaches, analytical approaches employ stability analysis methods to design update rules for tuning PID gains. Zhao et al. analyzed the fundamental limitations of classical PID control for second-order nonlinear systems and proposed robust nonlinear PID controllers with rigorous global stability proofs, offering new perspectives on nonlinear, adaptive, and gain-tunable PID designs for modern industrial applications28. Izadbakhsh and Kheirkhahan proposed a model-free nonlinear PID-type controller incorporating a sector-bounded nonlinear gain and considering actuator saturation for flexible joint robot manipulators29. Su et al. proposed a nonlinear PID (NPID) controller to enhance the performance of conventional PID controllers30. Gambier and Nazaruddin presented results of the NPID approach in30 for the pitch control system of a large wind turbine. Bouhabza and Kara proposed an adaptive nonlinear PID controller for attitude control of quadrotor system31. In32, a design method for NPID control with partial state knowledge was demonstrated for the general case, and a complete analysis, including necessary and sufficient conditions for the existence of a design, was provided. Shahruz and Schwartz proposed a nonlinear PI compensator for linear time-invariant single-input single-output (SISO) systems33. Lee et al. proposed a systematic design method for tuning the gains of a PID controller based on backstepping control with time-delay estimation and nonlinear damping34. Kler et al. applied an NPID controller to photovoltaic systems for maximum power point tracking35. Xu et al. proposed a robust nonlinear PID controller for quadrotor attitude tracking under disturbances, employing a reduced-order extended state observer for disturbance compensation36. Chen et al. presented an NPID structure fused with nonlinear norm transformation37. Gupta et al. presented a fractional-order NPID control method for normalized power distribution management of an advanced heavy water reactor38. In39, a sliding mode-based NPID-like tracking controller was proposed to address the trajectory tracking problem of rigid robots carrying an object without exact knowledge of the payload. Yu et al. proposed an NPID controller for driving an underwater autonomous vehicle along a desired trajectory with improved accuracy40. In41, an NPID controller based on a Lyapunov-based nonlinear model predictive control algorithm was proposed and verified via numerical simulations performed on nonlinear models of a batch reactor and quadrotor systems. Xiang et al. developed a nonlinear adaptive PID tracking control method for a class of MIMO nonlinear systems, incorporating three trimming functions that reshape or nonlinearly transform the generalized tracking errors, thereby establishing an analytical connection between fixed-gain linear PID control and nonlinear PID control42. Bayrak presented a sliding mode-based self-tuning NPID controller for uncertain second-order systems43. These methods are mathematically rigorous and guarantee the stability of the closed-loop system. However, the resulting control structure after substituting the update rules deviates significantly from the conventional constant-gain PID controller; thus, these designs are generally classified as nonlinear PID controllers.

Recent studies in control and networked systems have increasingly focused on advanced methodologies that integrate robustness, security, and data-driven intelligence. In particular, consensus-based control strategies for multi-agent systems have been extensively investigated under various complexities such as fractional-order dynamics, cyber-attacks, and communication constraints. For instance, sliding mode and adaptive neural network-based approaches have been proposed to ensure resilient consensus tracking in the presence of uncertainties and deception attacks44,45, while fuzzy-based Inline graphic control frameworks have been developed to address quantization effects and sampled-data mechanisms in secure environments46. In parallel, the rapid development of intelligent transportation systems has led to a growing body of work on traffic flow prediction, where both classical computational methods and deep learning-based models have been comprehensively explored to capture complex spatiotemporal dynamics47,48. Moreover, communication and computation infrastructures such as heterogeneous 5G networks and cloud datacenters have been studied from the perspectives of quality-of-service enhancement and energy-efficient resource allocation49,50. These studies collectively highlight the importance of robustness, adaptability, and efficiency in modern engineering systems, motivating the continued development of advanced control strategies, including self-tuning mechanisms, to address increasingly complex and uncertain environments.

In this paper, a novel nonlinear PID controller for second-order nonlinear systems with an adaptive gain tuning mechanism is proposed. The adaptive update rule is designed with an innovative structural formulation that distinguishes it from existing adaptive PID schemes. Lyapunov-based analysis is employed to guarantee that all closed-loop signals are bounded and that the tracking error is semi-globally uniformly ultimately stable. Notably, the stability framework can also be applied to classical PID controllers with constant gains, thereby providing new theoretical insight into PID control for nonlinear systems. The proposed methodology has been experimentally validated on an omnidirectional self-balancing robot, demonstrating both theoretical and practical effectiveness.

The contribution of the study to the literature are summarized below:

  • A novel nonlinear PID controller design is proposed for a class of second-order nonlinear systems.

  • A new adaptive gain update rule is developed for tuning the PID parameters, featuring an innovative structural formulation distinct from existing adaptive PID schemes.

  • A rigorous Lyapunov-based stability analysis of the closed-loop system is provided.

  • Boundedness of all closed-loop signals is formally proven.

  • Semi-global uniform ultimate stability (SGUUS) of the tracking error is guaranteed.

  • The presented stability analysis framework is also valid for constant-gain PID controllers, thereby extending theoretical stability results of traditional PID control to second-order nonlinear systems.

  • The proposed methodology is experimentally validated on an omnidirectional self-balancing robot, demonstrating its practical effectiveness.

The remainder of the paper is organized as follows. First, the mathematical model of the considered second-order nonlinear system is introduced. Then, the open-loop error system is developed, followed by the proposed control design and the derivation of the closed-loop error dynamics. Next, the stability analysis is presented. The experimental results are then provided. Finally, the paper concludes with closing remarks and future directions.

Mathematical model

The dynamical representation of a second order SISO system is given as

graphic file with name d33e442.gif 1

where x(t), Inline graphic, and Inline graphic are position, velocity, and acceleration of the system, respectively, m(x) is the mass term, Inline graphic denotes nonlinear effects on the model and u(t) is the control input.

The dynamic model terms m(x) and Inline graphic are continuously differentiable up to their second order derivatives. Furthermore, their first and second derivatives with respect to their arguments remain bounded, provided that their arguments are bounded. Additionally, the mass term m(x) is positive and satisfies

graphic file with name d33e497.gif 2

for positive constants Inline graphic, Inline graphic for all possible x.

Open loop error system development

The main objective of this work is to design a nonlinear PID controller to ensure that the position x tracks a reference/desired time varying trajectory despite the lack of accurate dynamic model knowledge (i.e., m and f in (1) are uncertain). To ease the gain adjusting process, self-tuning the controller gains is aimed as well. Guaranteeing the overall stability of the closed loop system is also essential. The subsequent development relies on the common assumption that position x and velocity Inline graphic are available states.

The tracking error, denoted by Inline graphic, represents the discrepancy between the desired trajectory, Inline graphic, and the actual value, x(t), and is defined as

graphic file with name d33e556.gif 3

The standard assumption that the desired trajectory along with its first three time derivatives is made (i.e., Inline graphic, Inline graphic, Inline graphic, Inline graphic). An auxiliary error term, shown with Inline graphic, is defined as

graphic file with name d33e586.gif 4

where Inline graphic is a positive gain. Another auxiliary error, represented with Inline graphic, that is specifically introduced to ease the presentation of the subsequent design and analysis, is defined as

graphic file with name d33e599.gif 5

where Inline graphic is a positive gain. It is emphasized that since position and velocity measurements are available than both e and s can be accessed, however, since r depends on acceleration sensing, it is not an available signal.

From the structures of (4) and (5), dynamics of e and s can be obtained, respectively. In that aspect, the rest of this section will be devoted to attaining the open loop dynamics of r.

Taking the time derivative of (5), multiplying the resultant with m to which substituting second time derivative of (4), third time derivative of (3) and time derivative of (1) reveal

graphic file with name d33e653.gif 6

Defining an auxiliary uncertain term, represented with Inline graphic, in the following manner

graphic file with name d33e662.gif 7

allows the right hand side of (6) to be rewritten in the below compact form

graphic file with name d33e670.gif 8

The auxiliary term N, as introduced in (7), depends on both uncertain dynamic model terms and acceleration measurements, and will be suppressed after being segregated into two terms. Specifically, its desired form, shown with Inline graphic, is defined as follows

graphic file with name d33e686.gif 9

Since Inline graphic depends only on desired trajectory and its time derivatives, which are all bounded functions of time, then it can be upper bounded as

graphic file with name d33e695.gif 10

for some positive constant Inline graphic. An error-like term, denoted with Inline graphic, is introduced as

graphic file with name d33e709.gif 11

The structures of (7) and (9) can be used along with mean value theorem51 to obtain an upper bound for Inline graphic as

graphic file with name d33e729.gif 12

where Inline graphic is a non-decreasing function of its argument with Inline graphic being the combined error vector. In view of (11), (8) is manipulated to reach

graphic file with name d33e748.gif 13

Control design & closed loop error dynamics

The nonlinear PID controller is proposed as

graphic file with name d33e756.gif 14

with adaptive gain Inline graphic is designed as

graphic file with name d33e765.gif 15

where Inline graphic is a positive gain used to adjust the speed of the adaptation and Inline graphic is a constant offset that is, for the sake of the subsequent stability analysis, formed as below

graphic file with name d33e779.gif 16

with Inline graphic, Inline graphic, Inline graphic being positive constants. In (14), the constant term of “Inline graphic” is introduced specifically to satisfy Inline graphic.

The proposed controller of (14) is not in the PID from due to the presence of s rather than the tracking error e. Since s, as defined in (4), can be viewed as PD form of e. In that respect, from (14), first and third terms can be seen as PD and IP (i.e., integral of PD) forms of e, respectively, to reach a PID control structure with adaptive gains. Alternatively, substituting (4) into (14) followed by straightforward mathematical manipulations yields the below form of the controller

graphic file with name d33e845.gif 17

where the proportional, derivative, integral terms are separately presented along with the constant offset term.

The time derivative of the control input in (14) is obtained as

graphic file with name d33e855.gif 18

where the time derivative of (15) is reached as

graphic file with name d33e863.gif 19

where (5) was used in obtaining both expressions. Substituting (18) into (13) yields the following closed loop error dynamics for r

graphic file with name d33e880.gif 20

Figure 1 shows the block diagram of the proposed nonlinear PID-type controller. The control input is generated from the tracking error through the proportional, derivative, and integral terms, while the adaptive gain is updated online.

Fig. 1.

Fig. 1

Block Diagram of the Proposed Adaptive PID-Type Controller..

Stability analysis

Theorem 1

The proposed nonlinear PID controller in (14) in conjunction with the adaptive gain designed in (15) ensures boundedness of all the signals under the closed loop operation and semi-global uniform ultimate boundedness of the tracking error provided that the constant gains are chosen to satisfy Inline graphic, Inline graphic, and Inline graphic is chosen big when compared to the initial conditions of the system.

Proof 1

A nonnegative Lyapunov function, represented with Inline graphic, is defined as follows

graphic file with name d33e927.gif 21

Via utilizing (2), following bounds are in order

graphic file with name d33e935.gif 22

where Inline graphic and Inline graphic were previously introduced in (2).

Time derivative of (21) is obtained as

graphic file with name d33e957.gif 23

Substituting (4), (5) and (20), respectively, for dynamics of e, s and r reveal

graphic file with name d33e981.gif 24

which is simplified to reach

graphic file with name d33e986.gif 25

After utilizing (10), (12) and the fact that Inline graphic along with (16), the right hand side of (25) can be upper bounded as

graphic file with name d33e1008.gif 26

Completing the squares as of the following forms

graphic file with name d33e1013.gif 27
graphic file with name d33e1018.gif 28

and making use of Young’s inequality as given below

graphic file with name d33e1023.gif 29

allow the right hand side of (26) to be further upper bounded as

graphic file with name d33e1031.gif 30

Provided the gain conditions of Inline graphic, Inline graphic are satisfied and Inline graphic is chosen big when compared to the initial conditions of the system, following bound can be obtained

graphic file with name d33e1049.gif 31

for some positive constants Inline graphic, Inline graphic. Via utilizing (22), following differential inequality is in order

graphic file with name d33e1065.gif 32

solving which yields

graphic file with name d33e1071.gif 33

In view of (22), the tracking error is proven to be bounded as

graphic file with name d33e1079.gif 34

and for increasing t, converges to the following ultimate bound

graphic file with name d33e1087.gif 35

How to use this nonlinear PID controller

The proposed nonlinear PID controller can be used for different aims. The authors outlined three major possible usages of the proposed control methodology. Firstly, the proposed nonlinear PID controller can be used as is. This type of usage is recommended especially for systems having fast varying dynamics and/or systems subject to persistent external disturbances. Alternatively, if the system signals do not variate much after the system at hand reaches transient state, provided the tracking error settles in some desired envelope, the adaptive tuning mechanism can be turned off and the controller can be continued to run with the constant final values of the gains52. Or these two could be considered together in the sense that when the error converges inside an a priori determined desired bound, gain tuning could be turned off and then turned on, if the error goes outside. The controller parameters should be selected in accordance with the stability conditions, in particular Inline graphic and Inline graphic. Moreover, Inline graphic serves as the adaptation gain and can be chosen according to the dynamics of the system under consideration. In practice, larger values of Inline graphic may result in faster adaptation, whereas smaller values may lead to smoother gain evolution. For the above usages, the proposed methodology can be named as nonlinear PID controller. In a slightly different approach, the system at hand is operated at extreme conditions under the proposed nonlinear PID controller, then the final values of the proportional, integral, derivative gains are kept, and the system is restarted under a standard PID controller with constant gains which are set as the saved gains. In this approach, the proposed methodology can be considered as a gain tuning technique for PID controllers.

Experiment results

Experimental tests were carried out with the BallBot robot to corroborate the effectiveness and robustness of the proposed method. BallBot is an omnidirectional self-balancing mobile robot that can carry a moderate load. Unlike classical flat-shaped mobile robots, BallBot lacks static balance. Despite this drawback, the BallBot is an ideal choice for specific applications due to its high agility and remarkably small footprint. The total weight of the robot is approximately 7 kg, while the bowling ball used in the platform also weighs 7 kg. In addition, the height of the robot is 65 cm. The robot is placed on a bowling ball and is driven by three omniwheels, which are placed at 120-degree horizontal angles and 45-degree azimuth angles. This arrangement of the omniwheels allows the robot to move in any direction, making it highly maneuverable. The omniwheels are powered by stepper motors (57BHH82, CWD556 as driver) for precise position control. To obtain the Euler angles, we employ the BMX160 IMU with Kalman filter-based sensor fusion. Real-time operation is carried out on the STM32f746zg microcontroller, handling low-level tasks. Sensor reading and controller tasks run at a sampling rate of 1 kHz. For a detailed system model of BallBot, the reader is referred to the work of Inci et al.53.

The proposed method is examined in the context of two important scenarios that a mobile robot may encounter. In the experimental validation, payload loading and battery-voltage depletion are practical manifestations of model complexity and parameter uncertainty, since they directly alter the effective dynamics of the platform during operation. The first scenario involves loading weight onto the already balanced robot. This scenario can be considered as an application of a system having instantly varying dynamics. In this situation, the optimal gains for the unweighted case suddenly become insufficient and require re-tuning, as expected. Tests start with no a priori model knowledge so all gains are initiated with zero. Time evolution of the gains are shown in Fig. 2 where initial training and weight loading phases are depicted with a gray background. For the initial training phase, the robot is tilted up to a limited angle with human assistance. It is observed that the gains converge to the values that can keep the robot in balance approximately after Inline graphic. The weight loading process is done by adding two 2.5kg masses between the 50th and 77th seconds. It is clearly seen that with the weight loading, the gains automatically converge to the new values. As can be seen from Fig. 3, the gain adaptation effectively limits the roll and pitch regulation errors back to within a Inline graphic degrees band. This result shows that the proposed adaptive mechanism can effectively accommodate the sudden dynamic change caused by payload addition. The improved regulation performance is achieved through online retuning of the PID gains, which enables the controller to restore balance without manual intervention.

Fig. 2.

Fig. 2

[First scenario] Adaptation of the PID gains for the pitch and roll channels..

Fig. 3.

Fig. 3

[First scenario] Roll and pitch tracking errors under adaptive gain adjustment. The shaded regions indicate the initial training and weight-loading intervals.

To demonstrate the contribution of the proposed method, the first scenario is repeated with the adaptation being turned off before weight loading. In this scenario, the effect of turning the adaptation algorithms off is investigated. Specifically, the adaptation was stopped approximately after the 37th second, as can be seen from Fig. 4. Similar to the first scenario, weight loading is performed between the 50th and 77th seconds of the experiment. Weight loading can be interpreted as both a step disturbance and a parameter/model variation. From Fig. 5, it is evident that the error range increases considerably with the weight loading and since there is no gain tuning, the errors are not decreased and reside in Inline graphic degrees band. The average and maximum tracking errors obtained for the roll and pitch angles under adaptive and fixed control cases are summarized in Table 1. For both cases, the average error values are calculated over the interval after Inline graphic, which corresponds to the post adaptation phase. As can be observed, the adaptive case yields lower error values for both angles compared to the fixed-gain case.

Fig. 4.

Fig. 4

[First scenario] Time evolution of gains with adaptation turned off after initial training.

Fig. 5.

Fig. 5

[First scenario] Roll and pitch tracking errors with fixed gains. The shaded regions indicate the initial training and weight-loading intervals, and the vertical line marks the instant when adaptation is stopped.

Table 1.

Average and maximum tracking errors for roll and pitch angles.

Control type Error metric Pitch Roll
Adaptive Average error 0.2336 0.2617
Adaptive Maximum error 0.6177 1.0442
Fixed Average error 0.8457 1.1581
Fixed Maximum error 1.8503 2.1242

The second scenario is that the preset gains are not suitable due to changes in the battery voltage, which is commonly encountered in mobile robots. This scenario may be considered as a system subject to persistent nonlinear effects. Specifically, the robot uses a six-cell lithium battery that can vary between 25V and 18V. Battery voltage level being lower than 18V causes the system to be automatically turned off. In addition, as a characteristic feature of lithium batteries, the voltage drop, especially below the rated voltage, is non-linear. To show that controller gains need to be readjusted under battery voltage variation, a 26 minutes long testing was performed with a semi-charged battery. Battery discharging can be interpreted as a parameter/model variation. Figure 6 shows the battery voltage dropping from 21 V to 18 V and eventually automatically turning the battery off and thus the system. As can be seen from Fig. 7, the pitch and roll errors remain within the Inline graphic degree band even when the battery voltage changes which is obtained by increasing the gains as shown in Fig. 8. This result shows that online gain adjustment helps preserve regulation performance under battery-voltage depletion.

Fig. 6.

Fig. 6

[Second scenario] Time evolution of the BallBot battery voltage. The inset provides a magnified view of the gradual voltage drop over the experiment..

Fig. 7.

Fig. 7

[Second scenario] BallBot pitch and roll tracking errors under the proposed adaptive controller during the battery-voltage drop experiment.

Fig. 8.

Fig. 8

[Second scenario] Adaptation of the PID gains for the pitch and roll channels during the experiment with decreasing battery voltage..

Conclusions

In this study, a novel nonlinear PID control framework with automatically tuned gains has been proposed for second-order nonlinear systems. The proposed design allows the controller to function either as a self-tuning PID mechanism or as a gain adaptation algorithm for classical constant-gain PID controllers, bridging the gap between conventional linear PID control and modern nonlinear adaptive control. A rigorous Lyapunov-based stability analysis has been developed, establishing uniform ultimate boundedness of the tracking error and guaranteeing boundedness of all closed-loop signals. Notably, the analysis extends to classical PID controllers with constant gains, providing new theoretical insight into the stability properties of PID control for nonlinear systems; a contribution that strengthens the foundational understanding of PID theory. Extensive experiments on an unstable omnidirectional self-balancing robot under multiple operating scenarios demonstrated that the proposed controller achieves stable tracking, robust disturbance rejection, and improved transient performance without manual gain retuning. These results confirm both the practical applicability and the theoretical predictions of the proposed methodology. Future research will focus on extending the stability framework to nonlinear systems with relative degree higher than two and to underactuated mechanical systems54. Further investigations may also explore fusing the proposed framework with observer-based designs to eliminate velocity sensing, and with adaptive, optimal, reinforcement learning55,56, RISE-based57–59, or prescribed-time60 control strategies to improve robustness and performance, thereby further advancing the theory and application of PID controllers in complex nonlinear systems.

Acknowledgements

This study was supported by Scientific and Technological Research Council of Turkey (TUBITAK) under the Grant Number 121E296. The authors thank to TUBITAK for their supports.

Author contributions

A.S.O.: Writing—original draft, Writing—review & editing, Validation, Software, Visualization, Investigation, Formal analysis. A.B.: Writing—review & editing, Writing—original draft, Visualization, Software, Investigation, Formal analysis. E.S.: Writing—review & editing, Writing—original draft, Project administration, Validation, Investigation. E.T.: Writing—review & editing, Writing—original draft, Supervision, Project administration, Methodology, Investigation, Formal analysis, Conceptualization.

Data availability

The data supporting this study is securely stored in a cloud application managed by the first author (A.S.O.) and is available upon request. Interested parties may contact the first author for details on access.

Declarations

Competing interests

The authors declare that they have no competing interests.

Footnotes

Publisher’s note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

References

  • 1.Minorsky, N. Directional stability of automatically steered bodies. J. Am. Soc. Nav. Eng.34, 280–309 (1922). [Google Scholar]
  • 2.Bennett, S. Nicholas Minorsky and the automatic steering of ships. IEEE Control. Syst. Mag.4, 10–15 (1984). [Google Scholar]
  • 3.Krstic, M. On the applicability of PID control to nonlinear second-order systems. Natl. Sci. Rev.4, 668–668 (2017). [Google Scholar]
  • 4.Astrom, K. J. & Hagglund, T. PID controllers: Theory, design and tuning (Instrument Society of America, Research Triangle Park, 1995). [Google Scholar]
  • 5.Golnaraghi, F. & Kuo, B. C. Automatic Control Systems (McGraw-Hill Education, 2017).
  • 6.Zhao, C. & Guo, L. PID controller design for second order nonlinear uncertain systems. Sci. China Inf. Sci.60, 1–13 (2017). [Google Scholar]
  • 7.Kuo, T., Huang, Y., Chen, C. & Chang, C. Adaptive sliding mode control with PID tuning for uncertain systems. Eng. Lett.16, 06 (2008). [Google Scholar]
  • 8.Bidikli, B. A self-tuning PID control method for multi-input-multi-output nonlinear systems. Electrica18, 218–226 (2018). [Google Scholar]
  • 9.Li, C. & Lian, J. The application of immune genetic algorithm in PID parameter optimization for level control system. In IEEE International Conference on Automation and Logistics, 782–786 (2007).
  • 10.Inci, H., Selim, E., Tatlicioglu, E., Zergeroglu, E. & Savran, A. A new auto-tuned velocity estimator design formechatronic systems. IET Control Theory Appl.20, e70077 (2026). [Google Scholar]
  • 11.Inci, H., Selim, E., Tatlicioglu, E., Zergeroglu, E. & Taskingollu, S. A novel dynamically self tuned force/torque observer formulation for human interaction in collaborative robotic applications. In IFAC Workshop on Cyber-Physical Human Systems, 67–72 (Antalya, Turkiye, 2024).
  • 12.Inci, H., Selim, E., Tatlicioglu, E., Zergeroglu, E. & Savran, A. A saturation based self-tuned robust control design for Euler Lagrange systems. ISA Trans.156, 565–578 (2025). [DOI] [PubMed] [Google Scholar]
  • 13.Zheng, J.-M., Zhao, S.-D. & Wei, S.-G. Application of self-tuning fuzzy PID controller for a SRM direct drive volume control hydraulic press. Control Eng. Pract.17, 1398–1404 (2009). [Google Scholar]
  • 14.Jiang, W. & Jiang, X. Design of an intelligent temperature control system based on the fuzzy self-tuning PID. Procedia Eng.43, 307–311 (2012). [Google Scholar]
  • 15.Hasan, M. W., Mohammed, A. S. & Noaman, S. F. An adaptive neuro-fuzzy with nonlinear PID controller design for electric vehicles. IFAC J. Syst. Control27, 100238 (2024). [Google Scholar]
  • 16.Nguyen, V.-T. et al. Robust adaptive nonlinear PID controller using radial basis function neural network for ballbots with external force. Eng. Sci. Technol. Int. J.61, 101914 (2025). [Google Scholar]
  • 17.Lu, J. et al. Self-tuning PID control scheme with swarm intelligence based on support vector machine. In IEEE International Conference on Mechatronics and Automation, 1554–1558 (2014).
  • 18.Gupta, M. et al. Grid-connected PV inverter system control optimization using grey wolf optimized PID controller. Sci. Rep.15, 28869 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 19.Gopi, P., Reddy, S. V., Bajaj, M., Zaitsev, I. & Prokop, L. Performance and robustness analysis of v-tiger PID controller for automatic voltage regulator. Sci. Rep.14, 7867 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 20.Jabari, M. et al. Efficient pressure regulation in nonlinear shell-and-tube steam condensers via a novel TDN (1+ PIDN) controller and DCSA algorithm. Sci. Rep.15, 2090 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 21.Ekinci, S. et al. A novel hyperbolic tangent-based PID controller tuned by the artificial lemming algorithm for nonlinear steam condenser pressure control. Sci. Rep.16, 4600 (2026). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 22.Rad, A. B., Lo, W. L. & Tsang, K. M. Self-tuning PID controller using Newton-Raphson search method. IEEE Trans. Ind. Electron.44, 717–725 (1997). [Google Scholar]
  • 23.Park, J., Lee, H. & Park, P. Vibration control of a strip in a continuous galvanizing line using self-tuning neuro-PID controller. In International Conference on Control, Automation and Systems, 1183–1188 (2016).
  • 24.Arega, T. B., Tesfa, Y. M. & Abdissa, C. M. Three-wheeled mobile robot trajectory tracking control using nonlinear PID controller based neural network combined with backstepping controller. IEEE Access13, 100167 (2025). [Google Scholar]
  • 25.Qi, Z., Shi, Q. & Zhang, H. Tuning of digital PID controllers using particle swarm optimization algorithm for a CAN-based DC motor subject to stochastic delays. IEEE Trans. Ind. Electron.67, 5637–5646 (2020). [Google Scholar]
  • 26.Bansal, H. O., Sharma, R. & Shreeraman, P. PID controller tuning techniques: A review. J. Control Eng. Technol2, 168–176 (2012). [Google Scholar]
  • 27.Purnama, H. S., Sutikno, T., Alavandar, S. & Subrata, A. C. Intelligent control strategies for tuning PID of speed control of DC motor - A review. In IEEE Conference on Energy Conversion, 24–30 (2019).
  • 28.Zhao, C., Wang, D. & Xue, W. Beyond linear limits: Design of robust nonlinear PID control. Automatica173, 112075 (2025). [Google Scholar]
  • 29.Izadbakhsh, A. & Kheirkhahan, P. Nonlinear PID control of electrical flexible joint robots-theory and experimental verification. In 2018 IEEE International Conference on Industrial Technology (ICIT), 250–255 (IEEE, 2018).
  • 30.Su, Y., Sun, D. & Duan, B. Design of an enhanced nonlinear PID controller. Mechatronics15, 1005–1024 (2005). [Google Scholar]
  • 31.Bouhabza, N. & Kara, K. A new nonlinear PID controller design for a quadrotor system using teaching learning based optimisation algorithm. Int. J. Model. Identif. Control45, 1–10 (2024). [Google Scholar]
  • 32.Armstrong, B. & Wade, B. A. Nonlinear PID control with partial state knowledge: Damping without derivatives. Int. J. Robot. Res.19, 715–731 (2000). [Google Scholar]
  • 33.Shahruz, S. & Schwartz, A. Design and optimal tuning of nonlinear PI compensators. J. Optim. Theory Appl.83, 181–198 (1994). [Google Scholar]
  • 34.Lee, J. Y., Jin, M. & Chang, P. H. Variable PID gain tuning method using backstepping control with time-delay estimation and nonlinear damping. IEEE Trans. Ind. Electron.61, 6975–6985 (2014). [Google Scholar]
  • 35.Kler, D., Rana, K. & Kumar, V. A nonlinear PID controller based novel maximum power point tracker for PV systems. J. Frankl. Inst.355, 7827–7864 (2018). [Google Scholar]
  • 36.Xu, G., Luo, S., Huang, Y. & Deng, X. Extended state observer based robust nonlinear PID attitude tracking control of quadrotor with lumped disturbance. Processes13, 1470 (2025). [Google Scholar]
  • 37.Chen, Z., Xu, X. & Wang, S. Intelligence analysis and improvement of nonlinear PID based on nonlinear norm transformation. In IEEE International Conference on Machine Learning and Cybernetics, 1105–1108 (2004).
  • 38.Gupta, D., Goyal, V. & Kumar, J. Design of fractional-order NPID controller for the NPK model of advanced nuclear reactor. Prog. Nucl. Energy150, 104319 (2022). [Google Scholar]
  • 39.Liu, B.-S., Tian, B.-L. & Lin, F.-C. A class of globally stable SM-NPID-like tracking controllers for robotic manipulators. Int. Conf. Comput. Sci. Inf. Technol.2, 340–345 (2010). [Google Scholar]
  • 40.Yu, D., Wang, D. & Xia, N. A class of nonlinear PID control for a modified Duffing system. In American Control Conference, 4308–4313 (2006).
  • 41.Kumar, S. S., Indiran, T., Itty, G. V., Shettigar, J. P. & Paul, T. V. Development of a nonlinear model predictive control-based nonlinear three-mode controller for a nonlinear system. ACS Omega7, 42418–42437 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 42.Xiang, K., Song, Y. & Ioannou, P. Nonlinear adaptive PID control for nonlinear systems. IEEE Trans. Autom. Control.70, 7000 (2025). [Google Scholar]
  • 43.Bayrak, A. Sliding mode based self-tuning PID controller for second order systems. Süleyman Demirel Univ. J. Nat. Appl. Sci.21, 866–872 (2017). [Google Scholar]
  • 44.Sharafian, A. et al. Consensus tracking control of incommensurate fractional order multiagent systems using sliding mode for secure communication systems. Phys. Scr.100, 085260 (2025). [Google Scholar]
  • 45.Sharafian, A. et al. Resilience to deception attacks in consensus tracking control of incommensurate fractional-order power systems via adaptive rbf neural network. Expert. Syst. Appl.283, 127763 (2025). [Google Scholar]
  • 46.Samy, S. A. et al. Secure fuzzy-based consensus control for nonlinear multi-agent systems under quantized sampled-data mechanism and its applications. Eng. Appl. Artif. Intell.162, 112715 (2025). [Google Scholar]
  • 47.Ali, A. et al. Advanced computational models for urban traffic flow prediction: A comprehensive review and future directions. Comput. Sci. Rev.60, 100886 (2026). [Google Scholar]
  • 48.Ali, R. et al. A comprehensive survey of deep learning-based traffic flow prediction models for intelligent transportation systems. ICCK Trans. Adv. Comput. Syst.1, 117–137 (2024). [Google Scholar]
  • 49.Ahmed, A. et al. Quality enhancement in a mm-wave multi-hop, multi-tier heterogeneous 5G network architecture. Telecommun. Syst.80, 169–187 (2022). [Google Scholar]
  • 50.Ali, A., Lu, L., Zhu, Y. & Yu, J. An energy efficient algorithm for virtual machine allocation in cloud datacenters. In Conference, 61–72 (Springer, 2016).
  • 51.Khalil, H. K. Nonlinear systems 3rd edn. (Prentice Hall, New York, NY, USA, 2002). [Google Scholar]
  • 52.Krstic, M. Invariant manifolds and asymptotic properties of adaptive nonlinear stabilizers. IEEE Trans. Autom. Control.41, 817–829 (1996). [Google Scholar]
  • 53.Inci, H., Ozturk, H. D., Selim, E. & Tatlicioglu, E. Design, modeling and experimental investigation of a ballbot. J. Eng. Sci. Des.13, 1165–1177 (2025). [Google Scholar]
  • 54.Bayrak, A. Saturated rise-based control design for fixed-wing uav. Unmanned Systems (2026).
  • 55.Dao, P. N., Nguyen, Q. P. & Vu, M. H. Adaptive optimal coordination control of perturbed bilateral teleoperators with variable time delays using actor-critic reinforcement learning algorithm. Math. Comput. Simul.229, 151–175 (2025). [Google Scholar]
  • 56.Dao, P. N. & Phung, M. H. Nonlinear robust integral based actor-critic reinforcement learning control for a perturbed three-wheeled mobile robot with Mecanum wheels. Comput. Electr. Eng.121, 109870 (2025). [Google Scholar]
  • 57.Benazouz, R., Chemori, A. & Creuze, V. A novel intelligent rise feedback control of autonomous tethered underwater vehicles: Design & real-time experiments. Ocean Eng.300, 117470 (2024). [Google Scholar]
  • 58.Dao, P. N. et al. Nonlinear rise based integral reinforcement learning algorithms for perturbed bilateral teleoperators with variable time delay. Neurocomputing605, 128355 (2024). [Google Scholar]
  • 59.Hu, C. et al. Ackf-based finite-time prescribed performance rise control for asymptotic trajectory tracking of asvs with input saturation. IEEE Trans. Veh. Technol.74, 2715–2725 (2024). [Google Scholar]
  • 60.Ozturk, H. D. et al. Prescribed time velocity tracking control of direct current motor systems. In AIAA SCITECH Forum, 1–9 (Orlando, FL, USA, 2026).

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Data Availability Statement

The data supporting this study is securely stored in a cloud application managed by the first author (A.S.O.) and is available upon request. Interested parties may contact the first author for details on access.


Articles from Scientific Reports are provided here courtesy of Nature Publishing Group

RESOURCES