A multistage skeleton detection refinement pipeline using MediaPipe with Viterbi-based fusion for Kinect-based clinical gait videos
Abstract
Accurate and temporally stable skeleton detection is essential for gait analysis in clinical videos, where interference from other people, illumination variation, and complex backgrounds often produce missing or unreliable keypoints. We propose a multistage skeleton refinement pipeline that generates multiple candidate pose streams using complementary preprocessing strategies, removes implausible detections through geometric filtering, and applies Viterbi-based sequence optimisation to obtain a temporally coherent skeleton path. Temporal filtering and interpolation are subsequently used to suppress unstable detections and bridge missing frames. Performance is evaluated using skeleton availability and qualified skeleton coverage, together with shoulder-width-normalised position, first-order temporal, and second-order temporal errors against ground truth. Experiments show that the proposed pipeline increases the proportion of reliable skeletons while preserving spatial accuracy. The refinement strategy is further evaluated with MediaPipe, OpenPose, and MMPose, while TAR-ViTPose is included as an standalone video-based reference. A downstream analysis further evaluates mediolateral torso-centre trajectory and upper-arm opening-angle trajectories against ground truth. In addition, a depth-free ablation demonstrates that the refinement remains effective when the auxiliary depth-enhanced stream is removed. This result indicates reduced dependence on depth information within the evaluated Kinect infrared acquisition domain. Together with the relatively lightweight refinement stage and the computational efficiency of MediaPipe, these findings provide a technical basis for future portable gait-analysis applications. Clinical validation of derived gait measures and rehabilitation outcomes remains outside the scope of the present study.
// Source
Authors: Taotao Chen, Kateřina Trnková, Karel Štícha, Jan Kohout, Martin Chovanec, Jan Mareš
Institutions: Charles University, University of Chemistry and Technology, Prague, University Hospital Kralovske Vinohrady, University of Pardubice