robotology/assistive-rehab

Test the TUG metrics accuracy with and without human planes projection

mfussi66 opened this issue ยท 3 comments

Now that the transformation of the skeleton keypoints and the projection on the human planes (sagittal, coronal, transverse) are implemented, it might be useful to test if the latter is actually an improvement.
The projection of, i.e. the step length on the sagittal plane requires accurate placement of the shoulders, and the Realsense depth noise might corrupt this information.
This issue will be a collector of tests on the subject, in order to draw conclusions and evaluate possible strategies.

Here is a comparison between the measurements taken by projecting the steps on the human planes, and a simple euclidean between the two ankles:

euclidean distance

plot_motion_norm

replay_norm-2022-11-14_15.23.23.mp4

We can see that the information is of course fused together, so if the ankles are sufficiently far apart, their distance is significant even if no step is taken. However, the distance is invariant wrt the person orientation, and the steps are measured fairly accurately (see the peaks from 35sec).

Projection on planes

plot_motion_abs

replay_abs-2022-11-14_15.32.14.mp4

In this case we have accurate results only when the person faces the robot, since OpenPose and the skeletonRetriever struggle with occluded keypoints.

I think we could use the first solution to run the demos, and later verify with the other parties involved if the metrics can be considered useful. In the future, a kalman-based estimator could be used to improve the keypoints tracking.

Nice comparison ๐Ÿ‘๐Ÿป

I think we could use the first solution to run the demos, and later verify with the other parties involved if the metrics can be considered useful. In the future, a kalman-based estimator could be used to improve the keypoints tracking.

I agree ๐Ÿ‘๐Ÿป

Related PR to apply the first solution: