4.1. Process Control Analysis of Resistance Training
Figure 6 shows a complete resistance training process, where
is the pedal speed,
is the set training speed, and
is the motor speed. Stage
A is the starting stage of the leg extension, with the pedal accelerating but remaining below the training speed, and the clutch is in the slipping state at this time. Stage
B is the constant speed leg extension stage, at which point the pedal reaches the training speed and maintains a constant speed, and the clutch is in the slip state at this time. Stage
C is the slow stop stage of leg extension with the pedal decelerating above zero, and the clutch state is unchanged. Stage
D is the stage of bending leg transition with the pedal accelerating inversely but below the motor speed, and the clutch is in an unsynchronized state. Stage
E is the stage of constant speed leg bending, in which the pedal speed is always the motor speed, and the clutch is in a synchronous state. Stage
F is the slow stop stage of bending legs with the pedal decelerating but remaining above zero, and the clutch is in an unsynchronized state at this time.
In resistance training, isokinetic control only acts on the patient’s muscle tension phase, and muscle tension or relaxation depend on the patient’s consciousness. When the patient wants to finish a training return, if the control goal of the system is to maintain a constant pedal speed, the system is unstable. The reason is that there is no power for the pedal to advance, which is the patient’s power. The system has no power source and cannot provide forward power. Therefore, it is necessary to distinguish the control objectives of each stage of the system. The stimulation rate Z stimulates the joint torque to present two states: the training torque (assumed to be fixed) and the rest torque (assumed to be fixed).
Table 5 shows the system motion parameters at different stages.
In the table,
,
,
, and
represent the pedal-to-slide force of training state, the pedal-to-slide force of rest state, the control term coefficient, and the system quality constant, respectively. According to the information in
Table 5, it is specified that
(consciousness is in the state of leg extension) is the training stage, and the system control objective function is
. The
segment (consciousness is in the curved leg) is the rest phase, and the system control objective function is
;
is the return safe torque.
4.2. Sliding Mode Variable Structure Controller Design
The dynamic Equation (2) is shown as follows:
where
,
,
,
, and
are the control quantities. Because the actual man–machine system model is difficult to identify and some system model parameters are uncertain and time-varying, here, the certain and the uncertain parameters of the system are considered separately, and we can further obtain:
where
,
, and
represent the certain parameters of the system, respectively,
,
, and
represent the uncertain parameters of the system, respectively,
is the system interference term,
represents the sum of the system uncertainties superposition. The
was introduced in Equation (8),
K,
B, X
0, and
Z introduced in Equation (9) are related to the physical condition of the trainer itself. These parameters are unknown and different (each person is different), and Z means muscle stimulation rate and is characterized by time variance.
Suppose that the sum of the uncertainties superposition is bounded:
First, we can define the system tracking error
and its derivative
. Transferring them to Equation (19), we can obtain:
Define
as the sliding surface function, then
. For the linear and the nonlinear part of the system dynamics equation, the sliding mode control quantity is divided into two parts [
24,
25]; one is the equivalent control quantity of the first approximation system, and the other is the robust control quantity to deal with the nonlinear term [
26,
27].
The equivalent control quantity of the first approximation system is obtained.
The nonlinear control quantity is obtained.
where
is a real number greater than zero.
Therefore, the sliding mode control of resistance training can be rewritten as the following:
In the equation, the switching function is composed of the system disturbance boundary and the robust coefficient . Both of these are fixed values. When there is a large error, the large control effect helps to reduce the error rapidly, but when the error is extremely small, the smallest control effect will destroy the stability of the system.
In order to eliminate the jitter caused by the robust term , this function term is slightly improved. That means setting the switching interface of the switching law-reaching law, , through the segmentation control.
In the
region, the control function of the robust term
is maintained to ensure the fast convergence of the error. In the
region, a derivative term
is introduced to soften the control signal, weaken frequent overshoot, and reduce or avoid chattering. The improved function is as follows:
where
.
When
, the essence of the
is used proportion and derivative (PD) control [
28].
4.3. Fuzzy Identifier Design
The fuzzy controller in an integral form is used as the system disturbance identifier to control the uncertain term of the nonlinear part of the system. The structure of the fuzzy sliding mode resistance training controller is shown in
Figure 7.
Compared with the resistance training controller of the sliding mode variable structure, the fuzzy sliding mode resistance training controller makes use of the fuzzy rule library, which replaces the switching function part of the output function of the sliding mode control. The switching function takes the system disturbance limit
as the coefficient. When the system is on the sliding surface and is not affected by external disturbances, the equivalent control of the system will ensure that the system continues to move along the sliding surface S = 0. However, when the system deviates from the sliding mode surface due to external interference or the influence of uncertain factors, the output of fuzzy control will drive the system to re-enter the sliding mode surface [
29,
30].
The disturbance compensation control quantity is represented by
. When people start training, there is a fixed minimum training force, which is
. Therefore, the initial value of the fuzzy control amount is set as
and finally:
where
means the current sampling period.
System error
and its derivative
are input as fuzzy controller, and
is output as fuzzy control increases. The value of the error fuzzy domain is [−3, 3], the unit of measurement is millimeters, and the error rate
represents the change rate of the leg speed. According to the design parameters of the device, the rate of change of velocity is [−1, 1]. The unit is millimeters per second, the basic domain of the
is [−10, 10], and the unit is mA. Take the area center of gravity method as a clear method. The fuzzy control rule table of
is shown in
Table 6.
Among them, NB, NM, NS, ZO, PB, PM and PS mean Negative Big, Negative Medium, Negative Small, Zero, Positive Big, Positive Medium, and Positive Small, respectively.