1 Introduction

1.1 Background and motivation

The main source of air pollution in towns and cities is road transport. More than half of nitrogen oxide, carbon monoxide, and volatile organic compound emissions in urban areas come from road traffic [1]. Electric vehicles can be considered a promising technology in terms of addressing the above-mentioned issues since there is no oil usage or CO2 emissions, on a per-km basis [2]. However, lack of physical activity of the passengers [3], and excessive use of public spaces for parking usage are some of the disadvantages of individual car usage, be it electric or not [4]. Using a conventional bicycle or an electric-assisted bicycle (e-bike) is a good solution to these problems, and particularly the latter for long distances or uphill segments. E-bikes further offer the advantage that they allow the rider to easily adjust the physical activity while maintaining higher levels of enjoyment compared to conventional bicycles [5].

On the other hand, for older adults, maintaining a regular physical activity routine is shown to beneficially affect brain function and executive cognitive processes [6]. Also, including physical fitness, and specifically muscular strength work, in daily physical activities is important since it can promote healthy and successful aging [7]. The use of e-bikes allows the user to cover longer distances than walking and requires less physical effort compared to regular bicycles, while still providing a beneficial exercise alternative for older adults [8]. As a result, older e-bike cyclists experience a rewarding feeling that, in turn, encourages more cycling time [8, 9].

When dealing with dual-task conditions, older adults exhibit abnormalities in temporal and spatial parameters of gait [10]. Furthermore, a reduction in gait speed due to reduced executive functions, memory, or attention can increase the fall risk [11]. Bicycling is a usable mode of transportation but is a source of severe injury among the elderly population [12]. Therefore, we selected a recumbent trike (Fig. 1) as a test platform to maintain the advantages of the e-bike while removing the fall risk stemming from the required balance ability and studied effective power assistance algorithms for older adults.

Fig. 1
figure 1

ICE recumbent trike model Sprint X

1.2 Problem statement

Joint-related diseases, such as osteoarthritis and a decrease in muscle strength, are problems commonly seen among the elderly population [13, 14]. Performing a safe and effective physical activity is proven to increase muscle strength and power, improve physical function and reduce joint-related pain [15,16,17]. Another study has shown that, during cycling, the human body generates and directs power to the bicycle crank through its muscles in a coordinated and systematic way [18]. By analyzing the body configuration and human cycling dynamics, it is possible to investigate and determine the patterns of muscle movement and joint torques [19,20,21].

A problem is that conventional e-bikes do not consider the dynamics and joint torque pattern of the cyclist during cycling. Furthermore, conventional crank torque sensors cannot independently measure the pedal forces of both legs, and the joint torque pattern of each leg is not calculated accurately. Therefore, cyclist-specific assistance is not possible.

1.3 Related works

In terms of related works, various approaches to adapt and improve the e-bike system to provide a safe and efficient means of transportation while still being an effective exercise have been proposed. Guarisco et al. [22] proposed a control strategy for a dual-motor bicycle with regenerative braking to improve battery autonomy and lifetime, and they used the crank speed and torque sensor to determine the electric current that needs to be applied to each motor. Abagnale et al. [23] studied the assistance of pedaling, but instead of the motor being located in one of the bicycle wheel hubs, an electric motor was situated in a central position attached to the frame of the e-bike and transmitted the power to the pedal shaft. Lee et al. [24] proposed an enhanced fuzzy-logic-based control approach with a user-adaptive mechanism to online adjust the fuzzy parameters for power-assisted regulation to ensure riding comfort and safety. Abhilash et al. [25] proposed a gradient sensor-based throttle controller to control the e-bike. Huang et al. [26] used an observer-based sensor fusion algorithm to control the torque of the motor instead of using a torque sensor. These studies have not considered the specific joint torque reduction using inverse dynamics.

1.4 Scope and contribution

This paper proposes novel power assistance algorithms using the crank position, pedal forces, and pedal angle information to determine the motor assistive torque for our developed electric trike instead of using a conventional crank torque sensor. This feature enables us to calculate the independent crank torques for the right and left pedal motions, which is significant for our algorithms. Hence, compared to other studies, it is possible to calculate the accurate joint torques of each leg independently through inverse dynamics of the lower body, and estimate accurate rear-wheel torque contributed by the rider during cycling. This means that the proposed algorithms can generate the variable motor assistive torque according to the joint torques and rear-wheel torque in real-time.

In this paper, two types of assistive methods are presented. The first is rear-wheel torque assistance for older adults with weak lower body muscle strength and the second is a leg joint assistive algorithm that reduces the physical effort for a specific leg joint (hip, knee, or ankle), based on inverse dynamics, for elderly people with joint problems.

1.5 Organization

This paper comprises six chapters. Chapter 2 presents the hardware design of our system, describing the smart pedal, actuator, and control system to build our e-trike test platform. Chapter 3 describes the human cycling dynamics which is required to calculate joint torques of each leg. In Chapter 4, the two types of assistance strategies are proposed in detail. To validate the proposed algorithms, the experiment setup, experimental results, and discussions are presented in Chapter 5. Finally, Chapter 6 concludes this paper with future works.

2 Hardware design

For our study, the ICE recumbent trike model Sprint X shown in Fig. 1 was modified into a power-assisted e-trike with minimum alterations to its original frame. The original pedals were substituted with smart pedals, which were developed in this study, and the actuator support structure was attached to the back of the trike's frame. The main controller and absolute encoder were attached to the front part of the frame, as shown in Fig. 2.

Fig. 2
figure 2

Power-assisted trike developed in this study

2.1 Smart pedal design

The smart pedal (Fig. 3) was designed to measure the inclination and the normal force of the pedal during cycling. These data are used to calculate the human cycling dynamics, the crank torque, and the rear-wheel torque of the e-trike. Pedal support structures were made of aluminum, and the controller box and foothold parts were made of PLA. Those materials were selected for both the lightweight structure and high friction of the foothold.

Fig. 3
figure 3

Smart Pedal

An Arduino Micro, which is small and lightweight, was used to collect the data from FSR sensors and an IMU sensor at a frequency of 300 Hz. The circuit is located inside the controller box that is attached to the lower part of the pedal. To power the Arduino Micro, two Li-Po batteries were used (Fig. 4).

Fig. 4
figure 4

Inside of the Smart pedal

Two FSR sensors were used on each pedal to measure the normal pedal force during cycling. Its maximum sensing force is 100 N; two FSR sensors of each pedal can thus measure max. 200 N. For our experimental setup, because the normal force does not reach values higher than 160 N, two FSR sensors are suitable. When the cyclist pushes the upper part of the pedal, the force is distributed to two square-shaped parts that are located over the sensing area of the FSR sensor, and hence the normal force is the sum of the two sensor outputs. The calibration of the FSR sensor was done using MATLAB. Known loads from 200 g to 8 kg were placed over the sensor and the output resistance values, \({r}_{s}\), of the sensor were collected, as shown in Fig. 5. Using the MATLAB Curve Fitting Toolbox, a conversion equation was finally created to find the force \({F}_{s}\) in newtons as follows:

$$ \begin{aligned} F_{s} & = 1486 - 1883\cos \left( {0.002336~r_{s} } \right) - 1231\sin \left( {0.002336~r_{s} } \right) + 356.7\cos \left( {0.004672~r_{s} } \right) \\ & \quad + 883.1\sin \left( {0.004672~r_{s} } \right) + 40.22\cos \left( {0.007008~r_{s} } \right) - 176.3\sin \left( {0.007008~r_{s} } \right) \\ \end{aligned} $$
(1)
Fig. 5
figure 5

Force sensor calibration

2.2 Electric actuator design

The actuator that assists the cyclist during pedaling is composed of a 200 W BLDC motor, a 100 W BLDC motor, a harmonic planetary gear, and a 14 teeth sprocket that is attached to the trike chain (Fig. 6). The harmonic planetary gear has a reduction ratio of 30:1. The 100 W motor was not currently used for this study, but it was added to the system for further studies. The actuation system is used to assist the muscle power of the pilot during cycling; the motor was thus selected by considering that the actuator has to supply at least double the necessary power to move the trike on level ground at an avg. speed of 40 km/h (Fig. 7).

Fig. 6
figure 6

Electric actuator design

Fig. 7
figure 7

Power trajectory of the rear wheel at avg. speed of 40 km/h

2.3 Control system design

The control system is composed of the main controller, an absolute rotary encoder, two smart pedals, the electric actuator, and an EPOS4 Maxon motor controller that controls the torque of the motor. Table 1 shows its detailed specifications.

Table 1 Specifications of the control system

The role of the main controller is to collect the data from the sensors and send the proper torque commands to the motor controller. More specifically, the Arduino Mega, which is used as the main controller, calculates human cycling dynamics and the necessary torque of the motor at a frequency of 200 Hz through the sensory data such as the crank angle, obtained from the absolute encoder, and the pedal force and angle acquired from the smart pedal (Fig. 8).

Fig. 8
figure 8

Control system block diagram

3 Human cycling dynamics

Solving the lower-body dynamics during the cycling motion of our trike system is essential, because it allows us to calculate the joint torques and joint powers of the hip, knee, and ankle joints through pedal force, pedal angle, and crank angle. These results are used to determine motor torque provided by the actuation system for the joint torque assistance.

3.1 3-Link planar mechanism

The dynamic analysis is performed by modeling the lower body as a 3-link planar mechanism, where the end point is moving along a circular pedal path while cycling, as shown in Fig. 9. The lengths of each linkage of the lower body and the crank arm are considered as constants. Considering the hip joint as the origin of the base coordinate frame, the joint angles are kinematically calculated from the pedal angle, which is equivalent to the foot inclination and the ankle position (Fig. 10a). Inverse kinematic equations are presented in Eqs. (2)-(7), where \(\theta _{1}\) is the hip angle, \(\theta _{2}\) is the knee angle, \(\theta _{3}\) is the ankle angle, \(\alpha\) is the pedal angle with respect to the horizontal axis,\(~\delta\) is the crank angle with respect to the vertical axis, \(L_{1}\), \(L_{2}\) and \(L_{3}\) are, respectively, the thigh, calf, and foot lengths, \(x_{a}\) and \(y_{a} ~\) are the ankle position, and \(x_{p} ~\) and \(y_{p} ~\) are the pedal position on the circular pedal path.

$$ \theta _{1} = atan2\left( {y_{a} ,x_{a} } \right) - atan2\left( {L_{2} \sin \theta _{2} ,~L_{1} + L_{2} \cos \theta _{2} } \right) $$
(2)
$$ \theta _{2} = atan2\left( { - \sqrt {1 - \cos ^{2} \theta _{2} } ,\cos \theta _{2} } \right) $$
(3)
$$ \cos \theta _{2} = ~\frac{{x_{a}^{2} + y_{a}^{2} - L_{1}^{2} - L_{2}^{2} }}{{2L_{1} L_{2} }} $$
(4)
$$ \theta _{3} = \alpha - \theta _{1} - \theta _{2} $$
(5)
$$ \left\{ {\begin{array}{*{20}c} {x_{p} = 600 + r\sin \delta } \\ {y_{p} = r\cos \delta } \\ \end{array} } \right. $$
(6)
$$ \left\{ {\begin{array}{*{20}c} {x_{a} = x_{p} - L_{3} \cos \alpha } \\ {y_{a} = y_{p} - L_{3} \sin \alpha } \\ \end{array} } \right. $$
(7)
Fig. 9
figure 9

3-link planar mechanism for analyzing human lower limbs

Fig. 10
figure 10

Kinematic configuration of the 3-link planar mechanism

The circular pedal path with a diameter of 340 mm has its center located at (600, 0) [mm] in relation to the origin. For calculation purposes, each link is considered as a rectangular prism and has its center of gravity in the middle of the link (Fig. 10b). Equation 8 gives the mass moment of inertia (\(I_{i}\)) for the rectangular prism. \(m_{1}\), \(m_{2}\), and \(m_{3}\) are, respectively, the thigh, calf, and foot mass, and \(L_{{ci}}\) is half of \(L_{i}\). Link length, width, and mass were obtained from the test subject, as shown in Table 2.

$$ I_{i} = \frac{1}{{12}}m_{i} \left( {r_{i}^{2} + L_{i}^{2} } \right) $$
(8)
Table 2 Test subject information and parameters of the 3-link planar mechanism

3.2 Joint torque due to cycling motion

To perform the cycling motion, human joints require torque and power. The relation between motion and torque can be derived through the rigid-body dynamics and the joint torque and power can be calculated using Eq. (9).

$$ M\left( \theta \right)\ddot{\theta } + C\left( {\theta ,\dot{\theta }} \right)\dot{\theta } + G\left( \theta \right) = \tau $$
(9)
$$\left[\begin{array}{cc}{M}_{11}& \begin{array}{cc}{M}_{12}& {M}_{13}\end{array}\\ \begin{array}{c}{M}_{21}\\ {M}_{31}\end{array}& \begin{array}{cc}\begin{array}{c}{M}_{22}\\ {M}_{32}\end{array}& \begin{array}{c}{M}_{23}\\ {M}_{33}\end{array}\end{array}\end{array}\right]\left(\begin{array}{c}{\ddot{\theta }}_{1}\\ {\ddot{\theta }}_{2}\\ {\ddot{\theta }}_{3}\end{array}\right)+\left[\begin{array}{c}{A}_{112}{\dot{\theta }}_{1}{\dot{\theta }}_{2}+{A}_{123}{\dot{\theta }}_{2}{\dot{\theta }}_{3}+{A}_{113}{\dot{\theta }}_{1}{\dot{\theta }}_{3}+{A}_{122}{\dot{\theta }}_{2}^{2}+{A}_{133}{\dot{\theta }}_{3}^{3}\\ {A}_{211}{\dot{\theta }}_{1}^{2}+{A}_{233}{\dot{\theta }}_{3}^{2}+{A}_{212}{\dot{\theta }}_{1}{\dot{\theta }}_{2}+{A}_{223}{\dot{\theta }}_{2}{\dot{\theta }}_{3}+{A}_{213}{\dot{\theta }}_{1}{\dot{\theta }}_{3}\\ {A}_{311}{\dot{\theta }}_{1}^{2}+{A}_{322}{\dot{\theta }}_{2}^{2}+{A}_{312}{\dot{\theta }}_{1}{\dot{\theta }}_{2}+{A}_{323}{\dot{\theta }}_{2}{\dot{\theta }}_{3}+{A}_{313}{\dot{\theta }}_{1}{\dot{\theta }}_{3}\end{array}\right]+\left[\begin{array}{c}{G}_{1}\\ {G}_{2}\\ {G}_{3}\end{array}\right]=\left[\begin{array}{c}{\tau }_{1}\\ {\tau }_{2}\\ {\tau }_{3}\end{array}\right]$$
(10)

where,

$$ \begin{gathered} M_{{11}} = m_{1} L_{{c1}}^{2} + I_{1} + m_{2} L_{1}^{2} + ~ + m_{2} L_{{c2}}^{2} + 2m_{2} L_{1} L_{{c2}} c_{2} + I_{2} \hfill \\ ~~~~~~~~~~~~ + ~m_{3} L_{1}^{2} + m_{3} L_{2}^{2} + m_{3} L_{{c3}}^{2} + 2m_{3} L_{1} L_{2} c_{2} \hfill \\ ~~~~~~~~~~~~ + ~2m_{3} L_{2} L_{{c3}} c_{3} + 2m_{3} L_{1} L_{{c3}} c_{{23}} + I_{3} \hfill \\ \end{gathered} $$
(11)
$$ \begin{gathered} M_{{12}} = m_{2} L_{{c2}}^{2} + m_{2} L_{1} L_{{c2}} c_{2} + I_{2} + m_{3} L_{2}^{2} + m_{3} L_{{c3}}^{2} \hfill \\ ~~~~~~~~~~~~~~~ + ~m_{3} L_{1} L_{2} c_{2} + 2m_{3} L_{2} L_{{c3}} c_{3} + m_{3} L_{1} L_{{c3}} c_{{23}} + I_{3} \hfill \\ \end{gathered} $$
(12)
$$ M_{{13}} = m_{3} L_{{c3}}^{2} + m_{3} L_{2} L_{{c3}} c_{3} + m_{3} L_{1} L_{{c3}} c_{{23}} + I_{3} $$
(13)
$$ \begin{aligned} M_{{21}} & = m_{2} L_{{c2}}^{2} + I_{3} + m_{2} L_{1} L_{{c2}} c_{2} + I_{2} + m_{3} L_{2}^{2} + m_{3} L_{{c3}}^{2} \\ & \quad + ~m_{3} L_{1} L_{2} c_{2} + 2m_{3} L_{2} L_{{c3}} c_{3} + m_{3} L_{1} L_{{c3}} c_{{23}} \\ \end{aligned} $$
(14)
$$ M_{{22}} = m_{2} L_{{c2}}^{2} + I_{3} + I_{2} + m_{3} L_{2}^{2} + m_{3} L_{{c3}}^{2} + 2m_{3} L_{2} L_{{c3}} c_{3} $$
(15)
$$ M_{{23}} = m_{3} L_{{c3}}^{2} + m_{3} L_{2} L_{{c3}} c_{3} + I_{3} $$
(16)
$$ M_{{31}} = m_{3} L_{{c3}}^{2} + m_{3} L_{2} L_{{c3}} c_{3} + m_{3} L_{1} L_{{c3}} c_{{23}} + I_{3} $$
(17)
$$ M_{{32}} = m_{3} L_{{c3}}^{2} + m_{3} L_{2} L_{{c3}} c_{3} + I_{3} $$
(18)
$$ M_{{33}} = m_{3} L_{{c3}}^{2} + I_{3} $$
(19)
$$ A_{{112}} = - 2m_{2} L_{1} L_{{c2}} s_{2} - 2m_{3} L_{1} L_{2} s_{2} - 2m_{3} L_{1} L_{{c3}} s_{{23}} $$
(20)
$$ A_{{123}} = - 2m_{3} L_{2} L_{{c3}} s_{3} - 2m_{3} L_{1} L_{{c3}} s_{{23}} $$
(21)
$$ A_{{113}} = - 2m_{3} L_{2} L_{{c3}} s_{3} - 2m_{3} L_{1} L_{{c3}} s_{{23}} $$
(22)
$$ A_{{122}} = - 2m_{2} L_{1} L_{{c2}} s_{2} - m_{3} L_{1} L_{2} s_{2} - m_{3} L_{1} L_{{c3}} s_{{23}} $$
(23)
$$ A_{{133}} = - m_{3} L_{1} L_{{c3}} s_{{23}} - m_{3} L_{2} L_{{c3}} s_{3} $$
(24)
$$ A_{{211}} = m_{2} L_{1} L_{{c2}} s_{2} + m_{3} L_{1} L_{2} s_{2} + m_{3} L_{1} L_{{c3}} s_{{23}} $$
(25)
$$ A_{{233}} = - L_{1} L_{{c3}} m_{3} c_{{23}} + L_{1} L_{{c3}} m_{3} s_{{23}} $$
(26)
$$ A_{{223}} = 0 $$
(27)
$$ A_{{213}} = - L_{1} L_{{c3}} m_{3} c_{{23}} - 2m_{3} L_{2} L_{{c3}} s_{3} + L_{1} L_{{c3}} m_{3} s_{{23}} $$
(28)
$$ A_{{311}} = m_{3} L_{2} L_{{c3}} s_{3} + m_{3} L_{1} L_{{c3}} s_{{23}} $$
(29)
$$ A_{{322}} = m_{3} L_{2} L_{{c3}} s_{3} $$
(30)
$$ A_{{312}} = 2m_{3} L_{2} L_{{c3}} s_{3} $$
(31)
$$ A_{{323}} = 0 $$
(32)
$$ A_{{313}} = 0 $$
(33)
$$ G_{1} = m_{1} gL_{{c1}} c_{1} + m_{2} g\left( {L_{1} c_{1} + L_{{c2}} c_{{12}} } \right) + m_{3} g\left( {L_{1} c_{1} + L_{2} c_{{12}} + L_{{c3}} c_{{123}} } \right) $$
(34)
$$ G_{2} = m_{2} gL_{{c2}} c_{{12}} + m_{3} g\left( {L_{2} c_{{12}} + L_{{c3}} c_{{123}} } \right) $$
(35)
$$ G_{3} = m_{3} gL_{{c3}} c_{{123}} $$
(36)

In Eq. (9) \(\theta\), \(\dot{\theta }\), and \(\ddot{\theta }~\) are, respectively, the joint angle, joint velocity, and joint acceleration vectors, \(M\left( \theta \right)\) is the inertia matrix, \(C(\theta\),\(\dot{\theta }\)) is the centrifugal and Coriolis matrix, \(G(\theta\)) is the gravity matrix, and τ is the joint torque vector. Equation (10) is the detailed form of rigid-body dynamics of our 3-link planar mechanism (Fig. 10).

When the pedal position and angle trajectories are given as Fig. 11, joint torque and power trajectories are calculated as Fig. 12 and 13.

Fig. 11
figure 11

Pedal data used to calculate joint torque and power

Fig. 12
figure 12

Joint torque trajectories due to the cycling motion

Fig. 13
figure 13

Absolute joint power trajectories due to cycling motion

3.3 Joint torque for pedal force

While cycling, the foot force is applied to the pedal to drive the crank. This pedal force requires additional joint torques. Given the force \(F_{p} ~~\)(Fig. 14) during the pedal movement, the necessary additional torque (\(\tau '\)) on each joint can be found using Eq. (37). \(J^{T} ~\) is the transposed Jacobian matrix (Eq. (38)) and \(F_{p}^{0} ~\)(Eq. (39)) is the force vector at the pedal with respect to the base frame at the hip joint. Because our pedal can only measure the normal force, the other forces were assumed to be zero.

$$ \tau ' = J^{T} F_{p}^{0} $$
(37)
$$ J^{T} = \left[ {\begin{array}{*{20}c} { - L_{1} s_{1} - L_{2} s_{{12}} - L_{3} s_{{123}} } & {L_{1} c_{1} + L_{2} c_{{12}} + L_{3} c_{{123}} } & 0 \\ { - L_{{12}} s_{{12}} - L_{3} s_{{123}} } & {L_{2} c_{{12}} + L_{3} c_{{123}} } & 0 \\ { - L_{3} s_{{123}} } & {L_{3} c_{{123}} } & 0 \\ \end{array} } \right] $$
(38)
$$ F_{p}^{0} = R_{3}^{0} F_{p}^{3} = \left[ {\begin{array}{*{20}c} {c_{{123}} } & {s_{{123}} } & 0 \\ {s_{{123}} } & {c_{{123}} } & 0 \\ 0 & 0 & 0 \\ \end{array} } \right]\left[ { - \begin{array}{*{20}c} 0 \\ {F_{p} } \\ 0 \\ \end{array} } \right] $$
(39)

where \(c_{i} = {\text{cos}}\left( {\theta _{i} } \right)~~,{\text{~}}~s_{i} = {\text{sin}}\left( {\theta _{i} } \right)~,{\text{~}}~c_{{ij}} = \cos \left( {\theta _{i} + \theta _{j} } \right)~,{\text{~}}s_{{ij}} = \sin \left( {\theta _{i} + \theta _{j} } \right)~,{\text{~}}c_{{ijk}} = \cos \left( {\theta _{i} + \theta _{j} + \theta _{k} } \right)~,~~s_{{ijk}} = \sin \left( {\theta _{i} + \theta _{j} + \theta _{k} } \right)~\), \(R_{3}^{0}\) is the rotation matrix between the base frame and the foot frame and \(F_{p}^{3}\) is the force vector with respect to the foot frame.

Fig. 14
figure 14

Additional joint torques for pedal force

After solving the above equations, we found that the additional torque at each joint can be derived by using Eq. (40).

$$ \left[ {\begin{array}{*{20}c} {\tau '_{1} } \\ {\tau '_{2} } \\ {\tau '_{3} } \\ \end{array} } \right] = \left[ {\begin{array}{*{20}c} { - F_{p} \left( {L_{1} c_{{23}} + L_{2} c_{3} + L_{3} } \right)} \\ { - F_{p} \left( {L_{2} c_{3} + L_{3} } \right)} \\ { - F_{p} L_{3} } \\ \end{array} } \right] $$
(40)

In Figs. 15, 16 and 17, it is seen that the additional joint torque and power trajectories were calculated well from the given pedal force trajectory during the same cycling motion as in Sect. 3.2. The final torque on each joint is the sum of the torque generated by performing the cycling motion and the additional torque for the pedal force. Figure 18 shows the final joint torque trajectories. The absolute power of each joint is calculated in the same manner: it is the sum of cycling motion power and pedal force power (Fig. 19).

Fig. 15
figure 15

Example of pedal force trajectory

Fig. 16
figure 16

Additional joint torque trajectories for the pedal force

Fig. 17
figure 17

Additional absolute joint power trajectories for the pedal force

Fig. 18
figure 18

Final torque trajectories on each joint considering both cycling motion and pedal force

Fig. 19
figure 19

Final absolute power trajectories on each joint considering both cycling motion power and pedal force power

4 Power assistance algorithms

In this study, two types of assistive algorithms are proposed to determine the assistive torque. First, the rear wheel torque assistance algorithm is aimed at older adults with weak muscle strength on the lower body, and it focuses on reducing the cyclist's total amount of muscle power necessary to ride the trike (Fig. 20a). On the other hand, the joint torque assistance algorithm is designed to reduce the physical effort of a specific joint of the leg for people with an abnormal joint condition that makes it hard for them to cycle without aggravating the preexisting problem (Fig. 20b).

Fig. 20
figure 20

Flowcharts of the proposed assistive algorithms: a Rear-wheel torque assistance, b Joint torque assistance

4.1 Relationship between the pedal and the rear-wheel

By analyzing the gear ratio of the trike, it is possible to find important relationships for the assistive algorithms. Figure 21 shows the sprocket schematic of the trike system and Table 3 presents the symbols and dimensions. The first step is to find the crank torque \(\tau _{{FS}}\), due to both pedal forces; this can be done by using the measured pedal forces \(~F_{{pr}}\) and \(F_{{pl}}\), pedal angles \(\alpha _{r}\) and \(\alpha _{l}\), and crank angle \(\delta\). From the schematic of Fig. 22, the right crank torque \(\tau _{r}\) due to the right pedal and the left crank torque \(\tau _{l}\) due to the left pedal can be found by using the following equations.

$$ \tau _{r} = R_{p} F_{{pr}} \sin \beta _{r} $$
(41)
$$ \tau _{l} = R_{p} F_{{pl}} \sin \beta _{l} $$
(42)
Fig. 21
figure 21

Trike sprockets schematic

Table 3 Symbol description of sprocket schematics
Fig. 22
figure 22

Front sprocket schematic

where

$$ \beta _{r} = \delta + 90^\circ - \alpha _{r} $$
(43)
$$ \beta _{l} = \delta + 270^\circ - \alpha _{l} $$
(44)

The crank torque \(\tau _{{FS}}\), which is the same as the front sprocket torque, is the sum of the right and left crank torques, resulting in Eq. (45).

$$ \tau _{{FS}} = ~\tau _{r} + ~\tau _{l} $$
(45)

Considering the front sprocket as the driver and the rear sprocket as the driven, the relationship between the front and rear sprocket torque is given by Eq. (46).

$$ \tau _{{RW}} = \frac{{\tau _{{FS}} R_{{RS}} }}{{R_{{FS}} }} $$
(46)

4.2 Rear-wheel torque assistance

The rear-wheel torque assistance algorithm works by relating the rear wheel torque \(\tau _{{RW}}\), with the motor torque \(~\tau _{{motor}}\). Because of the harmonic planetary gear of the actuation system, the relationship between the motor torque and the actuator sprocket torque \(~\tau _{{AS}}\), is given by Eq. (47). Here, 30 is the reduction ratio of the harmonic planetary gear, \(\eta _{{gear}}\) is the gear efficiency of 0.9, \(\tau _{f}\) is the friction torque of 0.045 Nm from the motor to the harmonic gear, and \(\tau _{{motor}}\) is the motor torque.

$$ \tau _{{AS}} = 30{\text{~}}\eta _{{gear}} \left( {\tau _{{motor}} - \tau _{f} } \right) $$
(47)

Because the actuator sprocket was considered the driver and the rear sprocket was considered the driven, we can derive Eq. (48), which calculates the actuator sprocket torque as a function of the rear wheel torque.

$$ \tau _{{AS}} = \frac{{\tau _{{RW}} R_{{AS}} }}{{R_{{RS}} }} $$
(48)

By combining Eqs. (47) and (48), it is possible to relate the motor torque with the rear-wheel torque as given in Eq. (49).

$$ \tau _{{motor}} = \frac{{\tau _{{RW}} R_{{AS}} }}{{30{\text{~}}\eta _{{gear}} R_{{RS}} }} + \tau _{f} $$
(49)

Therefore, we can continuously calculate the rear-wheel torque using Eq. (46) during cycling and then determine the assistive motor torque by using the following equation with an assistive gain.

$$ \tau _{{motor}} = \varepsilon \frac{{\tau _{{RW}} R_{{AS}} }}{{30~\eta _{{gear}} R_{{RS}} }} + \tau _{f} $$
(50)

In Eq. (50), \(\varepsilon\) is the wheel torque assistive gain. The motor only works while the rider is pedaling, and the motor is used to reduce the amount of effort from the pilot while cycling. The rear-wheel torque assistive gain, \(\varepsilon\), determines how much assistance is given by the motor, where 0 is 0% assistance, i.e., the motor is not working, and 1 is 100% assistance.

4.3 Joint torque assistance

The joint torque assistance algorithm determines the torque of the motor in relation to the joint torques described in Chapter 3. To reduce the specific joint torque during cycling, the motor torque should be determined according to the target joint torque. This means that the assistive motor torque can be proportional to the final joint torque due to cycling motion and pedal force, which is calculated in real-time. Equation (51) shows the assistive motor torque for the final joint torques for a single leg.

$$ \tau _{{motor}} = k_{h} \left| {\tau _{{hip}} } \right| + k_{k} \left| {\tau _{{knee}} } \right| + k_{a} \left| {\tau _{{ankle}} } \right| $$
(51)
$$ \left\{ {\begin{array}{*{20}c} {\tau _{{hip}} = \tau _{1} + \tau '_{1} } \\ {\tau _{{knee}} = \tau _{2} + \tau '_{2} } \\ {\tau _{{ankle}} = \tau _{3} + \tau '_{3} } \\ \end{array} } \right. $$
(52)

where \(\tau _{{hip}}\), \(\tau _{{knee}}\), \(\tau _{{ankle}}\) are the final joint torques composed of the torque \(\tau\) from the cycling motion and the torque \(\tau '\) from the pedal force, and \(k_{h}\),\(~k_{k}\), and \(k_{a}\) are, respectively, the joint assistive gains for the hip, knee, and ankle joints. By determining the gain values, it is possible to assist one specific joint or multiple joints. The gains can be heuristically determined depending on the degree of joint assistance desired. The joint torques are also calculated without difficulty according to the passenger’s body parameters; hence, the assistive gains act as scaling factors for the absolute joint torques. Although Eq. (51) is for one leg, it can be applied for both legs.

5 Experiments

5.1 Experimental setup

The experiments were conducted in the laboratory using an adjustable brake friction device, which was developed in this study, to apply suitable friction torque on the rear wheel. This device can provide a controlled experimental environment with minimal uncertainties that can alter the experiment results. Currently, it is composed of a 24 V magnetic particle brake and a roller (Fig. 23).

Fig. 23
figure 23

Developed adjustable brake friction device

During experiments, electromyography (EMG) signals were collected from five muscles of the lower limbs that are mainly involved in cycling (Fig. 24): gluteus maximus (GMX), hamstring (HAM), rectus femoris (RF), medial gastrocnemius (GAS), and tibialis anterior (TA). The average integrated EMG values of the five muscles were plotted in each test and RMS values were compared after the experiments. The test subject's average cycling speed during all experiments was 25 RPM.

Fig. 24
figure 24

Location of superficial electrode: (1) RF, (2) TA, (3) GMX, (4) HAM, (5) GAS

5.2 Rear-wheel torque assistance test

To verify the rear-wheel torque assistance, we compared the experimental data with and without the motor’s assistance [27]. The test subject described in Table 2 conducted this test, and the cycling speed was maintained at 25 RPM in each test. The experiments were done with two different brake friction settings: a constant and a varying friction torque for the roller. The constant brake friction torque was 0.25 Nm, and the varying friction torque changed from 0.20 Nm to 0.42 Nm according to the distance.

The motor's assistance level was set to 50%; \(\epsilon \) from Eq. (50) hence was 0.5. In the case of 50%-motor assistance with constant brake friction, the actuator torque trajectory is shown in Fig. 25 and the calculated rear-wheel torque trajectory from the pedal force is presented in Fig. 26. In Fig. 26, it can be seen that the calculated rear-wheel torque was reduced with the assistance of the motor at the same speed and friction level. This means that the pedal forces were reduced during cycling. The EMG signal in Fig. 27 was also reduced with motor assistance, compared to cycling without assistance. With the motor's assistance, there was less demand for power from the leg muscles.

Fig. 25
figure 25

Actuator torque trajectory for constant brake friction

Fig. 26
figure 26

Calculated rear wheel torque for constant brake friction

Fig. 27
figure 27

Average integrated EMG signals for constant brake friction

When there was assistance from the motor (Fig. 28) for the varying brake friction, wheel torque values (Fig. 29) and the average integrated EMG signals (Fig. 30) were reduced similarly.

Fig. 28
figure 28

Actuator torque trajectory for varying brake friction

Fig. 29
figure 29

Calculated rear wheel torque for varying brake friction

Fig. 30
figure 30

Average integrated EMG signals for varying brake friction

Table 4 shows the RMS values for the calculated rear wheel torque and the EMG signal. From this, it is easier to visualize the degree of reduction provided by the motor. The rear-wheel torque was 30% assisted and the EMG signals were reduced by approximately 19% for both cases.

Table 4 RMS values of calculated rear wheel torque and EMG signal at the same speed

5.3 Joint torque assistance test

In this section, the joint torque assistance was also verified by comparing the experimental data with and without the assistance of the motor [27]. In particular, in this case, the experimental data from the right and left legs were analyzed separately, because we assumed that the right leg of the rider has a problem; hence, the joints of the right leg were assisted only. Also, for these tests, the same test subject participated, and the cycling cadence was 25 RPM. The experiments were performed with varying friction torque changing from 0.20 Nm to 0.42 Nm according to the distance. Three specific joint assistive experiments were performed: the first was right hip joint assistance only with \({k}_{h}\)= 0.01, the second was right knee joint assistance only with \({k}_{k}\)= 0.02, and the third was right ankle joint assistance only with \({k}_{a}\)= 0.02. The joint assistive gains were experimentally determined, and the joint assistive gains of the joints that were not being assisted were set to zero.

The actuator torque trajectories for the three experiments are presented in Fig. 31. The data from both leg joint torques with and without assistance can be seen in Figs. 32, 33 and 34 and the calculated RMS values are given in Table 5. From these figures, the reductions in the joint torques for both legs are easily noticeable even though only the right leg was assisted. However, when looking at the RMS values in Table 5, the reductions on the right joint torques were two times higher than those on the left joint torques. These results mean that both legs were assisted; however, the assistance of the target leg was sufficiently larger than that for the other leg.

Fig. 31
figure 31

Actuator torque trajectories of three joint torque assistance tests for varying brake friction

Fig. 32
figure 32

Hip joint torque trajectories for both legs with and without right hip assistance. RH = right hip; LH = left hip

Fig. 33
figure 33

Knee joint torque trajectories for both legs with and without right knee assistance. RK = right knee; LK = left knee

Fig. 34
figure 34

Ankle joint torque trajectories for both legs with and without right ankle assistance. RA = right ankle; LA = left ankle

Table 5 RMS values of joints torque trajectories for the three tests

The average integrated EMG data of the five muscles in the right leg were collected for all three joint assistive experiments and compared with the case without assistance (Fig. 35). From the figure, we can easily notice that the EMG signal of the right leg without assistance, compared to all three assisted experiments, was considerably higher. The RMS values of the EMG signals are also summarized in Table 6 with the reduction rate. It can be seen that the muscle activities were substantially reduced, and the reduction rate of the knee joint was the highest.

Fig. 35
figure 35

Averaged integrated EMG signal trajectories for right leg with and without three types of assistance

Table 6 RMS values of EMG signal for the three tests

5.4 Discussion

As shown in the experimental results, there were significant reductions in pedal forces when using the rear-wheel torque assistance method, and also there was a significant reduction in the joint torque for the target leg joint. While previous studies have focused on external and environmental parameters to determine the motor's assistive power [22,23,24,25,26], our experimental results demonstrated that it is possible to use the human parameters, conditions, and cycling pattern to provide more personal assistance that can be adjusted by the rider's necessity.

There are two things to notice from the results. First, when analyzing the results for the rear-wheel torque assistance method, it is inevitable to notice that the reduction rate for the 50% assistance level was less than 50%. This occurred because this method requires an amount of force being applied to the pedal for the motor to work; hence, even with 100% motor assistance, it would still not be possible to achieve a 100% reduction rate. Second, regarding the joint torque assistance, not only the target leg joint was assisted, but also the joint from the opposite leg got a meaningful reduction. This demonstrates that independent joint assistance is not possible, because when the motor rotates the crank both pedal arms are turned.

6 Conclusion

In this paper, two types of assistive methods for an e-trike were proposed to reduce the muscle power and joint torque required during cycling for older adults who have weak lower body muscles and joint-related problems so that they can participate in helpful physical activities. More specifically, the rear-wheel torque assistance method is to reduce the total amount of muscle power on the lower body, and the joint torque assistance method is to reduce the physical effort of a specific joint of the leg without aggravating the preexisting problem. We built an indoor experiment environment and showed that the experimental results for both assistive methods successfully verified the performances. First, the rear-wheel torque assistive method showed high reductions in the torque (approx. 30%-reduction) of the rear wheel calculated from the pedal forces for the same resistance and speed, as well as in the EMG signal (approx. 19%-reduction) of the legs. Second, the joint torque assistive method was able to reduce the specific joint torque higher than 38% during cycling. It was seen that the joint torque assistance also reduced the torque of the same joint of the opposite leg, however, the reduction rates of the joint of the opposite leg were two times lower.

As a result, we believe that the proposed power assistive e-trike can be effectively utilized as a safe rehabilitation or exciting exercise tool for older adults or patients with lower limb disabilities. When older adults use the proposed e-trike outdoor, they will be able to exercise their upper body muscles for steering and train their immediate judgment from visual feedback. Currently, there are many commercial recumbent e-trikes, but they mostly use thumb throttles and do not consider the cyclist’s dynamics or joint conditions. Hence, we hope that our study will provide useful insight for developing a recumbent e-trike.

In the near future, we will conduct outdoor cycling experiments after system improvement, and analyze the effectiveness of the proposed method for varying speed and resistance. Consequently, we will verify our algorithms for the older adults and patients by adjusting the assistive gains and body parameters after obtaining an IRB approval. As a long-term study, machine learning algorithms will be applied to automatically determine the suitable assistive gains for individual customization.