Abstract
This paper proposes an improved switching nonlinear proportional-derivative (S-NPD) control algorithm for a six-degree-of-freedom Stewart platform which has strong nonlinearity and uncertainty characteristics, designed to achieve vibration isolation and suppression over a wide bandwidth range while solving the problem of the difficulty in parameter tuning. The controller is designed based on the idea of variable-structure control, which achieves independent real-time adjustments of the control gains of the six legs and takes the sign of the proportional and differential errors as the switching function to realize the feed-forward correction of the proportional gain. This control input can track the expected value more precisely, thus strengthening the system's ability to cope with high dynamics. To validate the results of the proposed approach, numerical simulations are compared with those obtained from PD and NPD controls. The findings confirmed that the designed S-NPD controller shows commendable stability and robustness, and the vibration attenuation of the upper platform under low- and medium-frequency conditions is substantially improved. In addition, it obtains smoother vibration waveforms and lower control force under random disturbance conditions. Consequently, it is proved that the S-NPD control can obtain better regulation accuracy. Compared with the PD and NPD controls, the S-NPD control achieves up to 64% and 31.4% relative performance improvement in vibration attenuation rate, respectively.
Introduction
The Stewart platform has a high response speed and large range of motion, and the use of the Stewart parallel mechanism for vibration isolation is one of the most crucial applications currently.1–5 In most studies, the Stewart platform is applied on the ground where the environment is characterized by large mass and mechanical simplicity. However, as the platform application scenarios continue to expand, additional requirements on the platform structural design, such as lightweight construction and reduced volume. Simultaneously, the corresponding control algorithms must be improved to meet the evolving demands of diverse application scenarios.6–9
The dynamics of the Stewart mechanism include workspace dynamics and joint space dynamics equations in which the workspace dynamics equations are used to describe the dynamics relationship between the driving force of each leg and the platform's positional parameters, while the joint space dynamics equations are used to describe the dynamics relationship between the driving force of each leg and the change in the loudness displacement between the upper and lower parts of each leg. Consequently, control strategies for these dynamic models can correspondingly categorized into two types: workspace-based control and joint-space-based control. Workspace-based control is a multi-input and multi-output approach directly based on the positional attitude deviation of the platform in inertial space. However, joint-space-based control translates the end attitude position information into the joint space of the legs. Owing to the mutual coupling of the Stewart mechanism, the workspace-based positive solution is complicated to solve, and the joint-space-based decentralized control strategy for each actuator is usually adopted.
In current academic research and engineering applications, the proportional-integral-derivative (PID) control algorithm remains a widely adopted strategy for the Stewart platform due to its ease-to-implement characteristics and good control performance. However, with the increasing complexity of the control object structure, its strong nonlinearity, strong coupling and uncertainty content also gradually increase.8,9 Despite these problems, the performance of PID is severely constrained, and its controller can no longer meet the performance requirements under some high-precision working conditions.
To overcome this shortcoming, based on the classical control theory of PID, scholars have made a series of improvements and research, and many strategies and theories have been put forward one after another. The literatures10–12 combine fuzzy control, neural networks, and other contents with PID control theory to form an improved PID control that adds functions such as parameter online tuning, and the control performance achieves a favorable improvement effect. Fuzzy PID control requires setting the fuzzy structure first. If the fuzzy structure is not set accurately, it will directly affect the control performance of the system. 10 The 2-DOF PID enhances the controller's anti-interference ability by adding a set of independent parameters to be adjusted, however at the same time, more undetermined parameters also increase the system's complexity, which reduces its application convenience. 13 The nonlinear proportional derivative (NPD) control proposed by Prof. Han Jingqing,14,15 using the advantage of nonlinear function, to a certain extent, solved the problem that PD control does not apply to complex working conditions, and provided a new method of thinking for the improvement of PID control. In Professor Han's research, it was pointed out that the feedback of error integral in PID control has a certain effect on suppressing constant disturbances. However, when there is no disturbance, integral feedback often deteriorates the dynamic characteristics of the closed-loop. For time-varying disturbances, the suppression ability of integral feedback is not significant enough, and it will increase the complexity of the system and the difficulty of parameter tuning. Therefore, in his subsequent research and improvement (NPD and related research), he omitted integral feedback and only retained PD control. Zheng et al. 16 derived and analyzed the role of the δ parameter in the NPD control equation, pointed out that a very small value of δ may cause potential jitter, and provided a theoretical basis for the assignment of this parameter. To further improve the performance of NPD control, it is essential to introduce new features to the control algorithm while retaining the advantages of NPD control. The nonlinear function in the error term is well-established and challenging to modify; therefore, the improvement mainly focuses on the control gain term. Two improvement ideas emerge: the first involves the combination of the previously mentioned neural network method. Different neural network control algorithms are distinguished by different neural network functions, among which the more common ones include Sigmoid, 17 Radical Basis Function (RBF) 10 and Brain Emotional Learning Based Intelligent Controller (BELBIC). 18 Neural networks using Sigmoid basis functions have strong fault tolerance and function approximation capabilities, but the energy of Sigmoid functions is infinite, requiring infinite weights, and the network size is difficult to determine. The RBF has a faster learning rate but also requires more radial basis function neurons. Neuroendocrine feedback through simulating hormone regulation, however, there may be slow or overshoot issues while it has self adjustment function. 19 BELBIC implements neural network patterns by simulating the learning structure of the human brain, which also requires a complex and time-consuming learning process. While this reduces parameterization difficulty and improves the algorithm's applicability, it introduces complexity to the system. Although the neural network reduces the difficulty of parameterization, it also increases the complexity of the system simultaneously. The neural network needs to undergo several training and adjustments to achieve the expected control effect, which is in contradiction with the PD/NPD control. This contradicts the advantages of a simple structure and easy application.
The second idea is based on adaptive gain, allowing real-time adjustment to control gain for further system performance enhancement.20–23 Compared with the first idea, the adaptive gain has better rapidity, and the control performance of the system can be improved in real-time only by setting the function for the control gain in advance. Armstrong et al. 24 set up two groups of PD gain parameters with different sizes, taking the sign of proportional error and its derivative as the switching condition for the control system of the servo motor and using different parameters under the same and different sign conditions, to realize a simple switching control. However, the simplicity of the structural setup leads to limitations in the robustness of the system. Sliding mode control (SMC) improves the controller's ability to cope with uncertainty by setting the sliding mode surface and switching conditions. Meng et al. 25 proposed a model-based sliding mode controller design that determines the amount of gain of the control in terms of the system's damping and intrinsic frequency. This design reduces the difficulty of parameter tuning and at the same time increases the requirements for the model information and accuracy. Boudjedir et al. 26 proposed a method to combine NPD control with SMC, which is oriented to the application scenario of delta parallel robots, and improved NPD control by taking the proportional and differential error as the switching condition to realize the dynamic change of NPD control parameters. The simulation results show a significant improvement in the effectiveness of the improved control algorithm in tracking a given curve. However, the control law does not take into account the feedback loop, which may cause the controller to be susceptible to conditions such as vibration jittering. Therefore, it is necessary to introduce a feedback link to further strengthen its robustness.
In this paper, the theory of variable structure control is applied to the parameter rectification of NPD control, and the switching nonlinear proportional-derivative (S-NPD) control algorithm is applied to the Stewart platform. Based on the theory of the variable structure, the S-function is proposed to be applied to parameter tuning, and the error variation is estimated by the proposed S-function to enable the advance correction of parameters. In this way, the correction of the control gain becomes more stable and precise. Compared with neural network control, the improved NPD control does not require additional neural network construction, nor does it require a long period of learning. Parameter adjustments are made in real-time during the working process. The subsequent sections of this paper are organized as follows. System modeling, including kinematic and dynamic modeling is introduced in Dynamic modeling section. The improved NPD controller design is introduced in Improved NPD controller design section. Experiments based on a six-degree-of-freedom Stewart platform and results analysis of PD, NPD and improved S-NPD are introduced in Numerical simulation and analysis section, which proves that the improved S-NPD controller can realize a higher vibration attenuation rate of the upper platform and lower input driving force. Finally, Conclusion section presents the conclusion of the research.
Dynamic modeling
Coordinate system definition
In this paper, the following assumptions are made for the models: the lower leg serves as the driving leg with the upper leg as the driven leg; the six legs are identical and orthogonal to each other for easy decoupling; both the upper and lower platforms are treated as rigid bodies, and the load is located on top of the upper platform; ball hinges connect the hinge points between the outriggers and the platform while sliding hinges the upper and lower outriggers at the expansion and contraction points.
The schematic diagram of the parallel platform model, defining the global coordinate system

Mechanical model drawing of parallel platform/structural drawing of parallel platform.
To determine the number of degrees of freedom in a parallel platform, the methodology outlined in the literature 27 is employed. The three rotational degrees of freedom of the upper and lower platforms involve attitude changes, which are usually described using attitude parameters such as Euler angles and quaternions.
According to Leonhard Euler,
28
any rotation can be expressed as a combination of three angles around three axes of rotation in sequence, known as Euler angles. To transform from coordinate system A to coordinate system B using the Euler angle parameter, for system A the rotation angle around the x-axis is
Derivation of the angular velocity of rotation for the B coordinate system yields the following formula for the angular velocity described by quaternions:
Kinematic modeling
The main geometric parameters of the platform are described in the figure below. In Figure 2,

Schematic description of kinematics.
Based on the above kinematic description, the position vectors at the hinge points of the upper and lower platforms can be obtained as:
According to equation (5), the length of the leg i which represents the kinematic inverse solution
Subtracting the two terms of equation (8) and projecting them in the direction of the leg, the rate of change of the leg can be obtained as follows:
In the same way, it can be deduced that:
Dynamic modeling
The legs are treated as rigid for dynamics analysis, considering that the six-degree-of-freedom parallel platform operates in a space environment; therefore, the effect of gravity is ignored. In addition, friction during the relative motion of the legs has little effect on the overall motion of the parallel platform and is therefore ignored in the modeling process. 28
The equations of rotational balance of the upper and lower legs are:
Thereby obtain

Equivalent model of leg.
The axial force in the leg i can be expressed as follows:
Substituting into the original formula to further simplify, the expression of the axial force of the leg is:
The equilibrium equation for the parallel platform is:
Improved NPD controller design
Nonlinear functions
Compared with the traditional PD control, NPD control offers better rapidity and higher accuracy, capable of compensating for unknown or uncertain disturbances through its nonlinear nature. Confronting strongly coupled, strongly nonlinear, and uncertain systems, NPD control enhances the robustness of the system by introducing a nonlinear function in the error term, leading to a more favorable and stable control performance.
Before proceeding to the controller design, a central concept in NPD control, which is defined as a nonlinear function (fal function), shall be first introduced. When initially proposed by Han Jingqing, several different forms of nonlinear functions were developed to cope with different working conditions.14,15 Subsequent studies and experiments have revealed that the fal function is the most widely used nonlinear function, defined as follows:14,15
Based on the different values of α, the nonlinear function is further analyzed. When

Images of the fal function corresponding to different values of
For cases where
Improved S-NPD method
Figure 5 shows the overall control scheme of the Stewart platform. Based on the fal function, a generalized expression for NPD control is introduced as14,15

NPD/S-NPD control system block diagram.
Here, the first term corresponds to the proportional (P) component of PD control, the second term corresponds to the differential (D) component of the PD control,
In contrast to PD control, where the error term is a simple difference between the actual and desired values, NPD control adjusts this term to be a nonlinear function of the difference modifiable by two parameters:
While generalized NPD theory can initially meet control performance in most cases, specific considerations are essential for applications involving the six-degree-of-freedom Stewart platform, as addressed in this paper. The following points merit attention:
The direct control focus is on the six legs of the platform, each of which has different motion states and error information during coupling. Using identical parameters for controlling all six legs may result in information loss, compromising overall control effectiveness. For the aforementioned challenge in (1), it is a solution idea to adjust the parameters of the six legs separately. However, this approach significantly escalates the difficulty and complexity of parameter adjustment, posing challenges to the practicality and simplicity of the NPD. Realising real-time adjustment and online change of parameters is an idea that has been proposed since the research of PID, and the studies in the literatures 15, 16, 20 have proved its feasibility and improvement effect. Therefore, to further improve the performance of NPD control, it is essential to add this function.
To address the above challenge and deficiencies based on the theoretical formulas mentioned in Nonlinear functions section, coupled with the idea of adaptive gain, the parameters before the error term are also set in the form of nonlinear variable. Therefore, the parameters also change with the change of the error, making the nonlinear PD parameter evolve from the original ‘comprehensive optimization’ to the ‘point-by-point optimization’, to achieve the purpose of improving the control effect. This makes the nonlinear PD parameters evolve from the original ‘comprehensive optimization’ to ‘point-by-point optimization’ to achieve the purpose of improving the control effect.
To distinguish the two NPD controls, the constant control gain
Theorem: the larger the error is, the larger the control force is needed,
Assumption: in real engineering applications, the disturbance and control errors suffered by the system when it reaches a steady state are always bounded.
The differential error, which is the derivative function of the proportional error reflects the trend of the latter, providing a basis for feed-forward correction of the parameters, thereby a new function S is defined as follows:
Based on the proposed S-function formulation, the complete improved PD parameter formulation is given:
However, when estimating the differential gain term, calculating the acceleration of the error change is necessary, leading to an increase in the computational and system complexity. Consequently, the S-function is not introduced in the differential term to avoid further complexities.
When the system is subjected to a large transient disturbance, or the sensor signal suffers a large disturbance, the error undergoes abrupt changes. During such instances, the PD parameters are calculated based on Equation (32), likewise change abruptly. To prevent the effects caused by this situation, the saturation zone of the PD parameter changes is set, and the calculated parameter values are limited to the set boundary values when they exceed the upper and lower limits, preventing excessive gain from generating additional jitter, which improves the system's stability.
With the proposed parameter formulas, it becomes apparent that smaller errors correspond to smaller proportional parameters and control gains, while large errors correspond to larger proportional parameters and control gains, thus theoretically realizing more precise control.
Numerical simulation and analysis
Simulation conditions
For the six-degree-of-freedom Stewart platform, the control gain is a six-dimensional vector, which is calculated separately for each leg.
Platform parameter.
Results and analysis
The data obtained from the simulation are processed using the absolute amplitude integral formula proposed below:
Three simulation conditions were set up with the first two being sinusoidal vibration, mainly used to simulate vibration in ideal environments and verify the basic performance of the proposed controller. In literature, 29 sine vibration was also used as input, and they designed a Stewart platform and control system for vibration isolation on ships. The design based on sinusoidal simulation verification also achieved good results. Condition 3 is composed of a series of vibrations with random amplitudes and frequencies within a certain range, which are superimposed to simulate situations that are closer to reality.
Case 1: Simulation of low-frequency disturbances, the vibration is sinusoidal with a frequency of 0.5 Hz and an amplitude of 0.2°. The control gain is set to

Upper platform vibration image of Case 1.

Input force image for legs 1 and 2 of Case 1.

Input force image for legs 3 and 6 of Case 1.

Input force image for legs 4 and 5 of Case 1.
From Table 2 above it is observed that the improved S-NPD control algorithm on vibration suppression has a better performance, and under Case 1, compared with the original PD and NPD controls, S-NPD has a relative performance improvement of 17.2% and 16.4% respectively.
Summary of Case 1 regulation data.
The average vibration attenuation rate reflects the steady-state performance of the system throughout the simulation phase. In addition, we also want to focus on the transient performance of the system, so the maximum amplitude is chosen as another evaluation indicator. From the table data, it can be seen that S-NPD has a decrease of 0.055° in maximum amplitude compared to PD. This value itself provides a reference value, as there are certain differences between the specific values in the simulation environment and the real environment. Therefore, we focus on the reduced relative proportion, where 0.055° corresponds to a maximum amplitude attenuation of 69.6%, which is a significant performance improvement.
The driving force of the leg is an auxiliary evaluation indicator. If the required driving force is too high, it indicates that the actuator needs to face significant physical constraints, which may not be achievable in practical applications or significantly increase the complexity of the system. Due to the upper limit of the output driving force of the actuator, excessive driving force required can make the selection of the actuator more stringent. 26
Summary of Case 1 IAE data.
A lower required driving force indicates a looser physical material constraint on the actuator, and at the same time it corresponds to lower energy consumption, which has contribution to practical engineering applications.
An analysis was conducted on the displacement errors of the three types of control corresponding to case 1, the results are shown in Figures 10–12, and the integral absolute error was calculated. Compared with NPD control, S-NPD control achieved a reduction of over 60% in the IAE of leg displacement as shown in Table 3, which is a performance improvement. However, the overall waveform and trend of leg error are similar to the changes in platform attitude. This is because the platform attitude is jointly controlled by six legs, and the vibration attenuation of the platform is our main performance indicator of concern. Therefore, in subsequent working conditions we did not separately analyze the displacement of the legs.

Displacement error for leg 1 and 2.

Displacement error for leg 3 and 6.

Displacement error for leg 4 and 5.
Case 2: Simulation of intermediate frequency disturbances, the vibration is sinusoidal with a frequency of 1 Hz and an amplitude of 0.1°, The control gain is set to

Upper platform vibration image of Case 2.

Input force image for legs 1 and 2 of Case 2.

Input force image for legs 3 and 6 of Case 2.

Input force image for legs 4 and 5 of Case 2.
Based on the dynamic analysis and simulation verification, the intrinsic frequency of the model is approximated to be 1 Hz. Therefore, the regulation of working Case 2 is the most challenging and the regulation effect is relatively the worst as shown in Table 4. Simultaneously, S-NPD is compared with the original PD control and NPD control, and S-NPD has a relative performance improvement of 64.0% and 31.4% respectively.
Summary of Case 2 regulation data.
A comprehensive analysis of the vibration pattern of the upper platform shows that the input disturbance is a sinusoidal vibration with favorable periodicity, and the vibration of the upper platform reflects its corresponding attitude. Analyzing the vibration images of the upper platform under the control of the three different algorithms, it is observed that under the low-frequency disturbance (Cases 1 and 2), the overall vibration curves of the PD control are smoother but the peaks of the vibration are higher, in the startup phase, both the NPD control and the S-NPD control correspond to the faster change of the driving force. Thus, resulting in faster amplitude change. However, after reaching the stabilizing stage, the change in the upper platform's attitude under the NPD control tends to be smoother and the stability of the modulated platform is more powerful.
In practical settings, vibrations, especially those of high frequency, often manifest as a composite of various frequencies and amplitudes. To further verify the efficacy of the designed controller in addressing the intricacies of environmental complexity and its ability to suppress vibrations, the following conditions are proposed for continued simulation tests:
Case 3: Simulation of random disturbances, the vibration is superimposed by random sinusoidal vibrations of which the frequency ranges from 5−15 Hz and the amplitude ranges from 0.003°−0.015°. The control gain is set to

Upper platform vibration image of Case 3.

Input force image for legs 1 and 2 of Case 3.

Input force image for legs 3 and 6 of Case 3.

Input force image for legs 4 and 5 of Case 3.
In simulated real-world conditions featuring random vibration, PD control experiences a further decline in performance, resulting in large vibration peaks. During such instances, the advantages of NPD control become even more pronounced. The improved S-NPD control further optimizes this effect, producing smoother vibration waveforms and enhancing overall regulation stability as shown in Table 5.
Summary of Case 3 regulation data.
The driving forces of NPD and S-NPD control are similar in the overall change trend, with a close frequency and period. However, the amplitude of the driving force of S-NPD is smaller due to the inclusion of the link of online rectification coefficients, which makes the driving force change in real time according to the regulation needs and improves the control efficiency.
When the vibration frequency is low (Cases 1 and 2), the frequency of change of the driving force of the PD control is low, which makes the driving force lack the capability to make changes in advancing the disturbance, leading to the slower change of the position of the controlled object, and the error generated by the disturbance cannot be regulated on time, restricting the control effect. The composition of the error term of the PD and NPD control is different, and the original error presents a relatively smooth sinusoidal change. In contrast, the NPD control's error term, processed nonlinearly, has a higher change frequency and initial amplitude, providing a more agile response to disturbances. However, once the entire control system stabilizes in a steady state, the driving force of NPD control becomes even lower. In cases where disturbance frequencies vary and represent a complex case of multiple vibrations superimposed on each other (Case 3), the driving forces corresponding to the three controls share similar overall waveforms, while the improved S-NPD control corresponds to the lowest driving force with the peaks, which is in agreement with the conclusions drawn from the simple case tests.
Conclusion
This paper proposes a S-NPD control algorithm designed to facilitate real-time parameter adjustments and improve controller robustness. The proposed S-NPD controller addresses the challenges of information omission and parameter immutability, inheriting the advantages of classical PD control while using the nonlinear advantages of NPD control.
Using the Newton-Euler method, a dynamics model is developed for the Stewart platform, and a series of simulation tests are conducted. The simulations cover cases with low frequencies (0.5 Hz), intrinsic frequencies (1 Hz), and random sinusoidal vibrations (frequencies ranging from 5−15 Hz). Comparative analyses with PD and NPD control reveal that S-NPD control consistently achieves better control effectiveness with lower input driving force in each simulation condition. This becomes particularly advantageous when considering actuator constraints.
Future endeavors can focus on further optimizing switching conditions, and conducting tests that account for flexible structure.
Footnotes
Authors’ contributions
All authors contributed to the model and controller design, simulation and analysis of the research.
Declaration of conflicting interests
The authors declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The authors disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: This work was supported by the National Natural Science Foundation of China, (grant number 12102316, 12072246, 12472156).
Data Availability Statement
Data sharing not applicable to this article as no datasets were generated or analyzed during the current study.
