Abstract
This paper presents a novel kinematic reconstruction of the human arm chain with five degrees of freedom and the estimation of the shoulder location during rehabilitation therapy assisted by end-effector robotic devices. This algorithm is based on the pseudoinverse of the Jacobian through the acceleration of the upper arm, measured using an accelerometer, and the orientation of the shoulder, estimated with a magnetic angular rate and gravity (MARG) device. The results show a high accuracy in terms of arm joints and shoulder movement with respect to the real arm measured through an optoelectronic system. Furthermore, the range of motion (ROM) of 50 healthy subjects is studied from two different trials, one trying to avoid shoulder movements and the second one forcing them. Moreover, the shoulder movement in the second trial is also estimated accurately. Besides the fact that the posture of the patient can be corrected during the exercise, the therapist could use the presented algorithm as an objective assessment tool. In conclusion, the joints’ estimation enables a better adjustment of the therapy, taking into account the needs of the patient, and consequently, the arm motion improves faster.
Keywords: kinematic reconstruction, neuro-rehabilitation, end-effector robots, upper limbs, MARG
1. Introduction
Robot-aided neuro-rehabilitation therapies have become an interesting field in the robotics area. There are several devices, such as exoskeletons, prosthesis or end-effector configuration robots, developed for this purpose [1,2]. They are able to help and assist the shortcomings of human beings. Post-stroke patients usually lose limb mobility due to the impairment in motor activity. Rehabilitation in this field takes an important role when it comes to improving the motor and proprioceptive activity [3,4]. In terms of the activities of daily living (ADL), the total or partial recovery of the upper limbs is the most important part in early rehabilitation. End-effector configuration robots are the most common devices used in these therapies. They are easily adapted to and easy to use by patients with different diseases.
These robots provide objective information about the trajectory followed by the end effector and the improvement in the motor recovery. However, they are not able to measure and control the arm movements. The progress in the arm joints, i.e., the range of motion (ROM), is an important parameter in these kinds of therapies. This estimation requires non-invasive wearable sensors, which must be easy to place onto the patient’s arm and must be extended to a clinical environment. Visual feedback of the arm configuration is studied in some rehabilitation therapies, though the arm joints cannot be measured [5,6]. This estimation can be accurately performed with optoelectronic systems based on motion tracking, even though they cannot be adapted to a rehabilitation environment [7,8]. In 2006, Mihelj developed a method to estimate the arm joints through two accelerometers placed onto the upper arm [9]. Then, Papaleo et al. improved this method using a numerical integration through the augmented Jacobian in order to estimate the arm configuration with only one accelerometer [10,11]. This algorithm performs a kinematic reconstruction of the simplified human arm model with seven degrees of freedom (DoFs) assuming that the shoulder is fixed during the therapy. Due to the loss of motor function, shoulder movements cannot be avoided by the patient, and therefore, this assumption cannot be always accomplished. Thus, it is necessary to measure shoulder movements in order to correct the position of the patient during the activity. This compensation can be detected and categorized through the fusion of a depth camera with skeleton tracking algorithms [12]. However, to compute the kinematic reconstruction, the position and orientation of the shoulder with respect to the robot are necessary.
This paper presents a kinematic reconstruction algorithm of human arm joints assuming a simplified model with five DoFs. Furthermore, this method is able to estimate the shoulder movement, i.e., its position and orientation. It is based on the inverse kinematics through the pseudo-inverse of the Jacobian [13]. The end-effector planar robot, called “PUPArm”, with three DoFs (see Figure 1), designed and built by Neuro-Bioengineering Research Group (nBio), Miguel Hernández University of Elche, Spain, is used [14]. The accuracy of the estimated joints with respect to the real arm joints, measured through a tracking camera, is studied. In addition, the ROMs on 50 healthy subjects performing a therapy activity are evaluated in two different cases: trying not to move the shoulder during the exercise and following the movement with the trunk to reach the goal.
2. Algorithm Description
2.1. Human Arm Kinematic Chain
The human arm is a complex kinematic chain that can be defined as the contribution of several robotic joints. The arm was defined as a chain of nine rotational joints by Lenarčič and Umek [15]. Only seven DoFs take part in this experiment: a spherical joint in the shoulder; an elbow joint; and a spherical joint in the wrist; as is shown in Figure 2a. On the other hand, the PUPArm robot fixes two kinds of movements: the ulnar-radial deviation and the flexion-extension of the hand; thus, abduction-adduction (), flexion-extension () and internal-external rotation () of the shoulder, flexion-extension () of the elbow and pronation-supination () of the forearm comprise the kinematic chain linked through two segments: the upper arm () and the forearm (). The Denavit–Hartenberg (DH) parameters of the arm are shown in Table 1, and their reference systems are shown in Figure 2b.
Table 1.
i | ||||
---|---|---|---|---|
1 | 0 | 0 | ||
2 | 0 | 0 | ||
3 | 0 | |||
4 | 0 | 0 | ||
5 | 0 | 0 |
2.2. Integration Method
The inverse kinematics of the human arm during the exercise is based on the numerical integration through the pseudo-inverse of the Jacobian (J) [10]. The necessary devices to estimate the arm joints are: the end-effector robot; an accelerometer placed onto the upper arm and a magnetic angular rate and gravity (MARG) device placed onto the shoulder. Instantaneous joint velocities may be assessed as:
(1) |
being the Cartesian vector of the hand velocity and the error committed due to the numerical integration. It should be noted that is the hand velocity vector with respect to the shoulder, estimated through the MARG and the accelerometer. To minimize this error, a gain matrix K is added to this Equation [13]. Then, the current arm joints are computed as:
(2) |
where is the previous estimated joints, is the joint velocity vector obtained through Equation (1) and is the sampling time. On the other hand, the initial arm joints are necessary to begin the integration method; their computation is explained in Section 2.6.
2.3. Accelerometer Orientation
If slow movements are assumed, the orientation of the accelerometer can be estimated in any position of the arm within the reachable workspace of the robot. When joints to are equal to zero, the reference position of the arm is set; a visual representation of this position is shown in Figure 2b. The acceleration acquired in the reference orientation of the accelerometer regarding the gravity, which is shown in Figure 3a, is:
(3) |
Moreover, at any random position of the arm, can be computed through the applied rotation to the accelerometer () as:
(4) |
being the acceleration at this random position regarding the gravity.
Equation (4) has infinite rotation matrices over the gravity vector, though one possible solution may be computed as:
(5) |
with:
(6) |
Thereby, a plane can be shaped by the X axis and Y axis of (plane Π). This plane only contains the elbow point (E), but the correct orientation of the accelerometer must also contain the shoulder (S) and the wrist (W) points. Thus, the rotation angle (θ) is defined as the angle between the known wrist point and the new wrist point (), contained in the plane Π, when it is rotated around the gravity vector (g) placed in E (see Figure 3b). Therefore, , expressed in terms of θ, can be defined as:
(7) |
where and . Then, θ can be obtained solving the following equation:
(8) |
having the plane Π computed as follows:
(9) |
Two possible solutions are obtained through Equation (8) and, therefore, two values of . The correct solution is one for which the Z axis is in the same direction as the cross product between the elbow-wrist segment and elbow-shoulder segment due to the reference position of the accelerometer. Finally, the rotation of the accelerometer regarding the robot is computed as:
(10) |
being the reference orientation of the accelerometer concerning the robot (see Figure 3a). This orientation is required to estimate the elbow orientation and shoulder position during the exercise.
2.4. MARG Orientation
The orientation of magneto-inertial devices is usually based on Kalman filtering [16]; nevertheless, they can be quite complicated, and an extended Kalman filter is needed to linearize the problem. The orientation filter to measure the rotation of the MARG of Madgwick et al. is used in this algorithm [17]. The magnetic distortion that may be introduced by external sources, including metal furniture and metal structures within a building, is performed in this filter [18]. Furthermore, the orientation algorithm requires an adjustable parameter (β) that can be adjusted to the requirements of this exercise. Hence, the value of this parameter () was established after a “trial and error” approach tested before the experiment, taking into account the features of the exercises.
This filter measures the reference quaternion of the device with respect to the Earth reference system, defined by the gravity vector and the Earth’s magnetic field lines. However, the rotation of the Earth concerning the robot is unknown. If the MARG is placed in a known orientation with respect to the robot (), the acquired transformation defines the Earth frame relative to the sensor frame (), and therefore, the reference transformation between the robot and the Earth is known as:
(11) |
Therefore, every rotation of the MARG is defined in the workspace as:
(12) |
where is the current value of the sensor. In this way, the shoulder orientation is estimated during the exercise.
2.5. Elbow and Shoulder Location
The hand, as was said before, is tightly attached to the end effector of the robot, and the ulnar-radial deviation and flexion-extension of the hand remain constant. Hence, the transformation matrix between the hand and the end effector () is known, and therefore, the elbow position may be obtained as:
(13) |
The orientation of the elbow, since the rotation matrix between the elbow and the accelerometer orientation () is known (see Figure 3a), may be calculated as:
(14) |
with the rotation matrix computed through Equation (10). Thus, the transformation of the elbow relative to the robot remains:
(15) |
On the other hand, one of the most important points of this algorithm is the ability to estimate the shoulder position and orientation during the exercise. The shoulder position can be processed easily through Equation (15) as:
(16) |
Whilst the orientation of the MARG relative to the robot is known by Equation (12), its rotation matrix is directly obtained [19]. Thus, the shoulder orientation is estimated as:
(17) |
where is the current rotation of the sensor with respect to the robot and the reference position of the MARG relative to the shoulder (see Figure 3a). Hence, the transformation of the shoulder relative to the robot remains:
(18) |
Finally, since the elbow and the shoulder location are instantaneously known, the initial conditions and the integration method can be performed.
2.6. Initial Conditions
In this algorithm, since it is based on a numerical integration, the initial conditions are required. The locations of the three main points, namely the shoulder (), the elbow () and the wrist (), are known. The shoulder joints (, and ) are directly related to the matrix , defined in the previous section, and they can be acquired by the spherical joint method [13]. This matrix, in terms of the corresponding joints, can be expressed by DH parameters shown in Table 1 as:
(19) |
having and , . If the transformation matrix is defined as:
(20) |
two possible solutions of the shoulder joints are obtained; if :
(21) |
and if :
(22) |
Thereby, the elbow joint () is directly determined with the cosine law as:
(23) |
and its homogeneous matrix remains:
(24) |
Thus, the transformation matrix between the systems and can be computed. The known matrix defines the transformation between the system and . On the other hand, the last joint, , is defined with the DH parameters as:
(25) |
and therefore, is estimated as:
(26) |
Finally, two possible configurations of the arm joints are found, even though only one solution is possible. Due to the limits of the arm joints, , only one solution accomplishes this restriction, and the initial position of the arm is assessed. This method can produce abrupt changes in the estimated arm joints caused by possible perturbations in the accelerometer that might lead to a non-anatomical position. Hence, since the new position depends on the latest position and the sample time, the integration method for real-time reconstruction is the best way to overcome the aforementioned drawbacks following Equations (1) and (2).
3. Results and Discussion
3.1. Experimental Exercises
With the aim of studying the arm joint estimation algorithm, with N/ms (chosen by the “trial and error” approach tested before the experiment), two different experiments were performed. The first exercise was to compute the algorithm accuracy in terms of the arm joints and the position of the shoulder, performed by four healthy subjects. Then, a rehabilitation exercise with two different trials was performed by 50 healthy subject (aged between 20 and 72) to test the behavior of the presented algorithm. In both cases, the length of the upper arm was measured from the lateral side of the acromion to the proximal radius head, in the elbow joint. From the proximal radius head to the radial styloids, the distal part of the radius, the forearm length was measured [20]. Moreover, both experiments are performed under the same activity: 3D roulette, which may be seen in Figure 4. The activity consisted of taking a box from the perimeter and placing it in the center of the screen; hand movements are symbolized as a wrench (see Figure 4). One movement is considered when the subject goes from the center of the roulette to the perimeter and returns again to the center.
A magneto-inertial sensor, developed by Shimmer©, is tightly attached onto the upper arm and onto the shoulder to compute the kinematic reconstruction algorithm. The real position of the arm is computed with a six DoF optical tracking camera Optitrak V120: Trio, developed by NaturalPoint®. Specific parts attached to the hand, upper arm and forearm with retro-reflective markers were developed for this purpose. Information about the subjects who carried out the validation experiment are shown in Table 2; they performed three trials of the same exercise.
Table 2.
ID | Age | Gender | Forearm Length (m) | Upper Arm |
---|---|---|---|---|
1 | 21 | Male | 0.23 | 0.32 |
2 | 51 | Female | 0.21 | 0.33 |
3 | 32 | Male | 0.25 | 0.31 |
4 | 31 | Male | 0.21 | 0.33 |
In the second experiment, two different trials of the same activity were performed. The first trial was intended not to move the shoulder while the exercise was being conducted, i.e., without compensation with the trunk. However, the participants were asked to follow the hand movements with the shoulder in the second exercise. Each trial consisted of 24 movements.
3.2. Algorithm Validation
The mean error committed, in terms of root mean square error (RMSE) and standard deviation, is shown in Figure 5a. The mean RMSE of the joints is 0.047 rad with a standard deviation of 0.013 rad. Otherwise, the error committed on the shoulder position estimation, which may be found in Figure 5b, shows the mean RMSE committed, less than 0.87 cm, and the standard deviation, around 0.83 cm. The good results show that the error committed is small (it is hardly noticeable by the human eye), and therefore, the accuracy of the presented algorithm with respect to the real arm movements is high. A kinematic reconstruction of the arm joints and the estimation of shoulder position acquired from both methods through the presented algorithm (red dotted line) and the direct reconstruction (blue line) are pictured in Figure 6.
3.3. Arm Joint Range
In this experiment, the ROM between both trials, with and without compensation with the trunk, is studied. Furthermore, the shoulder movement is compared to its real position, acquired with the optoelectronical system mentioned before. To compare both groups, statistical analysis is performed through the t-test for paired data for each ROM. Joints 1 to 4 show significant differences (), but nevertheless, Joint 5, as the subject wrist is attached to the end effector of the robot, does not show significant differences ().
The estimated ROM in the exercise without compensation and with compensation is shown in Figure 7a, and the error committed might be seen in Figure 7b. It should be noted that the error committed in each joint for both exercises is smaller than six degrees. On the other hand, the ROM estimated for the trial without compensation is larger than that from the other trial. This result was expected, because the shoulder compensation affects the joint range. However, the ROMs of Joint 5 are similar, because the pronation-supination of the forearm is not affected when the compensation is performed.
The accuracy of the shoulder position, taking into account the whole population (N = 51), is shown in Figure 8a. The estimated shoulder position with respect to the real shoulder location in a compensation trial performed by one subject can be seen in Figure 8b.
4. Conclusions
In this paper, a kinematic reconstruction of the upper limbs during robot-aided rehabilitation with planar robots taking into account shoulder movements is presented. The estimated arm joints are very accurate with respect to the real position of the arm. Thus, the arm joint improvements of the patient can be measured objectively, and a better adaptation of the therapy to the patient needs can be also performed.
The measurement of the shoulder movement can be also computed accurately. To the best of our knowledge, this feature is not included in the previous algorithms where the shoulder is assumed to be fixed, even when little movements cannot be avoided during the exercise. This feature helps the therapist to correct the patient’s posture during exercise for faster improvement in terms of arm mobility.
In summary, the arm joints’ improvement may be included as a new objective assessment parameter in addition to the motor and proprioceptive activity and assessments scales, which are, by definition, subjective, as the Fugl–Meyer assessment [21].
Acknowledgments
This work was supported by the European Commission under FP7-ICT Contract 231143 (ECHORD (European Clearing House for Open Robotics Development)).
Author Contributions
N.G.-A., F.J.B and L.D.L. conceived of and designed the experiments. A.B.-M. and S.E. performed the experiments. A.B.-M. drafted the paper. A.B.-M., J.M.C. and J.A.D. analyzed the data. All authors read and approved the manuscript.
Conflicts of Interest
The authors declare no conflict of interest.
References
- 1.Nef T., Mihelj M., Colombo G., Riener R. ARMin-robot for rehabilitation of the upper extremities; Proceedings of the 2006 IEEE International Conference on Robotics and Automation; Orlando, FL, USA. 15–19 May 2006. [Google Scholar]
- 2.Tang Z., Zhang K., Sun S., Gao Z., Zhang L., Yang Z. An upper-limb power-assist exoskeleton using proportional myoelectric control. Sensors. 2014 doi: 10.3390/s140406677. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 3.Lum P.S., Burgar C.G., Shor P.C., Majmundar M., der Loos M.V. Robot-assisted movement training compared with conventional therapy techniques for the rehabilitation of upper-limb motor function after stroke. Arch. Phys. Med. Rehabil. 2002;83:952–959. doi: 10.1053/apmr.2001.33101. [DOI] [PubMed] [Google Scholar]
- 4.Badesa F., Morales R., Garcia-Aracil N., Alfaro A., Bernabeu A., Fernandez E., Sabater J. Robot-assisted rehabilitation treatment of a 65-year old woman with alien hand syndrome. Biomed. Robot. Biomech. 2002 doi: 10.1109/BIOROB.2014.6913809. [DOI] [Google Scholar]
- 5.Cameirao M., Badia S., Oller E., Verschure P. Neurorehabilitation using the virtual reality based Rehabilitation Gaming System: methodology, design, psychometrics, usability and validation. J. NeuroEng. Rehabil. 2010 doi: 10.1186/1743-0003-7-48. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 6.Wittmann F., Lambercy O., Gonzenbach R.R., van Raai M.A., Hover R., Held J., Starkey M.L., Curt A., Luft A., Gassert R. Assessment-driven arm therapy at home using an IMU-based virtual reality system. Rehabil. Robot. 2015 doi: 10.1109/ICORR.2015.7281284. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 7.Klopčar N., Lenarčič J. Kinematic model for determination of human arm reachable workspace. Meccanica. 2005;40:203–219. doi: 10.1007/s11012-005-3067-0. [DOI] [Google Scholar]
- 8.Rab G., Petuskey K., Bagley A. A method for determination of upper extremity kinematics. Gait Posture. 2002 doi: 10.1016/S0966-6362(01)00155-2. [DOI] [PubMed] [Google Scholar]
- 9.Mihelj M. Human arm kinematics for robot based rehabilitation. Robotica. 2006;24:377–383. doi: 10.1017/S0263574705002304. [DOI] [Google Scholar]
- 10.Papaleo E., Zollo L., Garcia-Aracil N., Badesa F., Morales R., Mazzoleni S., Sterzi S., Guglielmelli E. Upper-limb kinematic reconstruction during stroke robot-aided therapy. Med. Biol. Eng. Comput. 2015;53:815–828. doi: 10.1007/s11517-015-1276-9. [DOI] [PubMed] [Google Scholar]
- 11.Kreutz-Delgado K., Long M., Seraji H. Kinematic analysis of 7 DOF anthropomorphic arms. Robot. Autom. 1990 doi: 10.1109/ROBOT.1990.126090. [DOI] [Google Scholar]
- 12.Taati B., Wang R., Huq R., Snoek J., Mihailidis A. Vision-based posture assessment to detect and categorize compensation during robotic rehabilitation therapy. Biomed. Robot. Biomech. 2012 doi: 10.1109/BioRob.2012.6290668. [DOI] [Google Scholar]
- 13.Siciliano B., Sciavicco L., Villani L., Oriolo G. Robotics: Modelling, Planning and Control. Springer-Verlag London; London, UK: 2009. [Google Scholar]
- 14.Badesa F.J., Llinares A., Morales R., Garcia-Aracil N., Sabater J.M., Perez-Vidal C. Pneumatic planar rehabilitation robot for post-stroke patientes. Biomed. Eng. Appl. Basis Commun. 2014 doi: 10.4015/S1016237214500252. [DOI] [Google Scholar]
- 15.Lenarčič J., Umek A. Simple model of human arm reachable workspace. IEEE Trans. Syst. Man. Cybern. 1994;24:1239–1246. doi: 10.1109/21.299704. [DOI] [Google Scholar]
- 16.Kalman R.E. A new approach to linear filtering and prediction problems. J. Basic Eng. 1960;82:35–45. doi: 10.1115/1.3662552. [DOI] [Google Scholar]
- 17.Madgwick S., Harrison A., Vaidyanathan R. Estimation of IMU and MARG orientation using a gradient descent algorithm. Rehabil. Robot. 2011 doi: 10.1109/ICORR.2011.5975346. [DOI] [PubMed] [Google Scholar]
- 18.Bachmann E., Yun X., Peterson C. An investigation of the effects of magnetic variations on inertial/magnetic orientation sensors. Robot. Autom. 2004 doi: 10.1109/ROBOT.2004.1307974. [DOI] [Google Scholar]
- 19.Kuipers J.B. Quaternions and Rotation Sequences. Princeton University Press; Princeton, NJ, USA: 1999. [Google Scholar]
- 20.Mazza J.C. Mediciones antropométricas. Estandarización de las Técnicas de medición, Actualizada según Parámetros Internacionales. [(accessed on 9 October 2015)]. Available online: http://g-se.com/es/journals/publice-standard/articulos/mediciones-antropometricas.-estandariza-cion-de-las-tecnicas-de-medicion-actualizada-segun-parametros-internacionales-197.
- 21.McCrea P.H., Eng J.J., Hodgson A.J. Biomechanics of reaching: Clinical implications for individuals with acquired brain injury. Disabil. Rehabil. 2002;24:534–541. doi: 10.1080/09638280110115393. [DOI] [PMC free article] [PubMed] [Google Scholar]