A 2D Markerless Gait Analysis Methodology: Validation on Healthy Subjects
A 2D markerless technique is proposed to perform lower limb sagittal plane kinematic analysis using a single video camera. A subject-specific, multisegmental model of the lower limb was calibrated with the subject in an upright standing position. Ankle socks and underwear garments were used to track the feet and pelvis segments, whereas shank and thigh segments were tracked by means of reference points identified on the model. The method was validated against a marker based clinical gait model. The accuracy of the spatiotemporal parameters estimation was found suitable for clinical use (errors between 1% and 3% of the corresponding true values). Comparison analysis of the kinematics patterns obtained with the two systems revealed high correlation for all the joints . Differences between the joint kinematics estimates ranged from 3.9 deg to 6.1 deg for the hip, from 2.7 deg to 4.4 deg for the knee, and from 3.0 deg to 4.7 deg for the ankle. The proposed technique allows a quantitative assessment of the lower limb motion in the sagittal plane, simplifying the experimental setup and reducing the cost with respect to traditional marker based gait analysis protocols.
Three-dimensional (3D) marker-based clinical gait analysis is generally recognized to play an important role in the assessment, therapy planning, and evaluation of gait related disorders . It is performed by attaching physical markers on the skin of the subject and recording their position via multiple cameras. To date, optoelectronic stereophotogrammetric systems represent the most accurate technology for the assessment of joint kinematics . While the 3D characterization of motion represents the standard for clinical gait analysis laboratories and research environments, 3D gait analysis remains underused in ambulatory environments due to the costs, time, and technical requirements of this technology.
Multicamera, video-based markerless (ML) systems can represent a promising alternative to 3D marker-based systems [3–5]. In fact, the use of ML techniques does not require the application of fixtures on the skin of the patients , making the experimental sessions faster and simpler (e.g., do not have to worry about markers falling off during the sessions) . 3D ML motion capture techniques have been extensively presented in [5–9] for different types of applications, including clinical gait analysis and biomechanics. However, 3D ML approaches, similarly to 3D marker-based techniques, require the use of multiple cameras , specific calibration procedures, time synchronization between cameras, and a considerable dedicated space. Furthermore, the number of cameras and their high image resolution dramatically increase the computing time and resources required.
When a 3D analysis is not strictly required, a simpler 2D analysis on the sagittal plane could be successfully used to quantify gait and to address specific clinical questions [10, 11]. A single-camera approach is sufficient for the description of gait in 2D and allows for a simplified experimental setup reducing the space needed for the equipment, the number of cameras, and the costs associated. Video recording in combination with observational gait evaluation scales  is commonly employed to perform visual and qualitative gait analysis. In this regard, a methodology to quantitatively assess joint kinematics from the video footage can provide added value to the patient care with no extra resources involved.
Single-camera ML techniques have been mainly developed for motion recognition and classification [12–19]. To the best of our knowledge, only a paucity of studies have proposed ML methods for the estimation of the lower limb joint kinematics for clinical evaluations [20–24]. However, in the abovementioned studies, the analyses were either limited to a single joint [20, 21], or they lacked a validation against a clinically accepted gold standard [22, 23]. These limitations hampered the wide spread use of such techniques in clinical settings [4, 7, 9].
In this study, we present a novel 2D, model-based, ML method for clinical gait analysis using a single camera: the SEGMARK method. It provides unilateral joint kinematics of hip, knee, and ankle in the sagittal plane, along with the estimation of gait events and spatiotemporal parameters. The method uses garments (i.e., socks and underwear) worn by the subjects as segmental markers to track the pelvis and feet segments. The segments’ model templates and the relevant anatomical coordinate systems are calibrated in a static reference image from anatomical landmarks manually identified by an operator. The method applicability was tested and the performance evaluation was carried out on ten healthy subjects walking at three different speeds using an optoelectronic marker-based system as gold standard.
2. Materials and Methods
2.1. Experimental Protocol and Setup
Ten healthy subjects (males, age y.o.), wearing only homogeneously coloured (white) and adherent ankle socks and underwear, were asked to walk at comfortable, slow, and fast speed along a straight 8-meter walkway. An RGB video camera (Vicon Bonita Video 720c, 1280 × 720 p, 50 fps) was positioned laterally to the walkway. A homogenous blue background was placed opposite to the camera. To prevent blurred images, the exposure time was set to a low value (5 ms), and the illumination level was set accordingly. The image coordinate system (CSI) of the video camera was aligned to the sagittal plane, identified by the direction of progression and the vertical direction.
Three trials per subject were captured for each gait speed. The starting line was set so that the foot in the foreground could enter the field of view first and hit the ground when fully visible. A static reference image, with the subject in an upright standing position, centered in the field of view of the camera, was captured prior to each experimental session. The subjects were then asked to walk along a line drawn on the floor, placed at a known distance from the image plane, identical to the distance between the camera and the subject during the static reference image acquisition. For validation purposes, 3D marker-based data, synchronous with the video data, was captured at 50 fps using a 6-camera stereophotogrammetric system (Vicon T20). Retroreflective spherical markers (14 mm diameter) were attached to the subjects according to the Davis model  provided by the Vicon Nexus software (Plug in Gait).
2.2. Image Preprocessing
Camera lens distortion was corrected using the Heikkilä undistortion algorithm . The spatial mapping of the camera image was determined by associating the measured foot length to the foot segmental marker length expressed in pixels, from the static reference image (1 pixel ≈ 1 mm).
To separate the moving subject from the background, a segmentation procedure based on background subtraction in the HSV color space was applied . The underwear and ankle socks were extracted using a white color filter and used as segmental markers. An automatic labelling process to identify the segmental markers was performed. The pelvis segmental marker was identified as the group of white pixels with higher vertical coordinates in the CSI. The feet segmental markers were identified and tracked using the predicted positions of their centroids, based on their velocity at the previous two frames. Canny’s edge operator  was used to obtain the silhouette (Figure 1) and the segmental markers contours.
2.3. Cycle Segmentation and Gait Parameters Determination
Heel strike and toe off events were automatically estimated using a method originally developed for marker-based systems  and adapted to our ML method. Per each time frame, the centroids of the pelvis and both feet were determined. The gait events (heel strike and toe off) instants were determined when the maximum horizontal relative distance between the pelvis and the foot centroids is achieved.
An expert operator manually identified the same gait events, using the video footage and the heel and toe 3D marker trajectories as reference. The following spatial and temporal parameters were then calculated for both ML and marker-based data: cadence, walking speed, stride time, and stride length. The estimated parameters were compared for validation purposes.
2.4. Model Calibration
A subject-specific, multisegmental model of the lower limb, was used to track the segments and to compute the relevant joint kinematics. The model is made of four segments (foot, tibia, femur, and pelvis) connected by hinges. The position of the following anatomical landmarks was manually identified by the operator in the static reference image: lateral malleolus (), lateral femoral epicondyle (), and greater trochanter () (Figure 2(a)).
The foot model template was defined as the posterior half of the foot segmental marker contour. The anatomical coordinate system (CSA) of the foot was defined on the foot model template, with the positive -axis coincident with the line fitting the lower-posterior contour and oriented towards the toes. The origin was made to coincide with the most posterior point of the foot segmental marker contour. A technical coordinate system (CST) was defined with the -axis coinciding with the corresponding axis of the CSI and centred in (Figure 2(b)). The transformation matrix between the CST and CSA of the foot was computed .
The CSA of the tibia was defined with the -axis joining with (origin on ). The tibia model template was defined based on ten reference points identified on the silhouette as the intersections between the shank contour and the circles of radius , centered in (Figure 2(a)). The length of the imposed radii was chosen so that the reference points would fall within the middle portion of the shank segment (between the 25% and 75% of the segment length). This avoided the reference points to fall on the portions of the segment adjacent to the joints. These areas are, in fact, subject to a larger soft tissue deformation during gait . The tibia CST was defined with the -axis parallel to the -axis of the CSI and centred in the centroid of the tibia reference points. The transformation matrix between CST and CSA of the tibia was computed (Figure 2(a)). and positions and the tibia reference points were then expressed in the tibia CST (, ).
The CSA of the femur was defined with the -axis joining with (origin on ). The femur model template was defined based on six reference points identified on the silhouette as the intersections between the thigh contour and the circles of radius , centered in (Figure 2(a)). The femur CST was defined with the -axis parallel to the -axis of the CSI and centred in the centroid of the thigh reference points. The transformation matrix between the CST and CSA of the femur was computed (Figure 2(a)). and positions and the femur reference points were then expressed in the femur CST (, ).
The pelvis CSA origin was set in the most lateral point () of the pelvis segmental marker upper contour (Figure 2(a)). The -axis was oriented as the line fitting the portion of the pelvis segmental marker upper contour defined from pixels and pointing towards the direction of progression. Due to both parallax effect and pelvis axial rotation during gait, the shape of the pelvis segmental marker changes remarkably throughout the gait cycle (Figure 2(c)). To improve the quality of the tracking process, a double calibration approach was implemented. At the first and last frames of the gait cycle, the positions were manually identified by the operator (PLfirst, PLlast) whereas the positions of the most posterior point (PPfirst and PPlast) of the pelvis upper contour were automatically identified. The horizontal distances between PLfirst and PPfirst () and between PLlast and PPlast () were calculated and the incremental frame by frame variation was computed according to with representing the number of frames.
The incremental frame variation was then used to compute the distance between the points PP and PL in correspondence of the th frame:
The position of at the th instant () was determined from the automatically detected position of at the same time instant ():
2.5. Dynamic Processing
The dynamic trials were processed using a bottom-up tracking approach, starting from the foot and moving up the chain. The foot was tracked using an iterative contour subtraction matching technique between the contour at the th frame and the template foot contour. At the th frame, the foot CST was rotated and translated around the prediction of the position based on its velocity estimated in the previous two frames. To make the process more efficient, the rotational span limits were defined based on the gait cycle phase: ±10 degrees during the stance phase and ±30 degrees during the swing phase. The transformation matrix between the foot CST and the CSI was determined by maximizing the superimposition between the foot template and the foot contour at the th frame (i.e., the minimum number of active pixels resulting from the image subtraction). The transformation matrix between the foot CSA and the CSI was computed as
Due to leg superimposition and soft tissues deformation, the silhouette contours of the shank and thigh change during the gait cycle, making the tracking difficult (Figure 1). To overcome this issue, the following procedure was adopted for the tibia. At the th frame, a registration of first approximation between the tibia CST and the CSI was carried out using the position of and the prediction of . An approximated estimate of the tibia reference points positions with respect to the CSI was then obtained and a 10 × 10 pixels region of interest was created around each point. The final reference position vectors of the tibia were detected as the intersection, where available, between the portion of the shank contour included in the region of interest, and the circle of radius . The transformation matrix between the CSI and CST was determined using a Singular Value Decomposition procedure  between the position vectors and the corresponding points . Due to leg superimposition, the number of points involved in the fitting procedure varied according to the number of intersections available (Figure 3). The transformation matrix between the tibia CSA and the CSI was computed as
An identical procedure was employed to determine the transformation between the CSI and CSA of the femur at the th frame.
From the relevant transformation matrices, the joint angles between the pelvis and the femur (hip flex/ext.), between the femur and the tibia (knee joint flex/ext.), and between the tibia and the foot (ankle joint flex/ext.) were computed.
2.6. Data Analysis
For each gait speed, the accuracy of the spatiotemporal gait parameters estimated by the approach was assessed in terms of the mean absolute error () and MAE% over trials and subjects (3 × 10 trials). Both the and marker-based angular kinematic curves were filtered using a fourth-order Butterworth filter (cut-off frequency at 10 Hz). The sagittal angular kinematics produced by the Plug in Gait protocol was used as gold standard .
The kinematic variables were time-normalized to the gait cycle. Furthermore, for each gait trial and each joint, the average root-mean-square deviation () value between the joint kinematic curves estimated by the method and the gold standard were computed over the gait cycle and averaged across trials and subjects. The similarity between the curves provided by the method and the gold standard was assessed using the linear-fit method proposed by Iosa and colleagues . The kinematic curves produced by the system were plotted versus those produced by the gold standard, and the coefficients of the linear interpolation were used to compare the curves in terms of shape similarity (), amplitude (angular coefficient, ), and offset (constant term, ). The average of and across trials and subjects was calculated for each gait speed.
The results relative to the spatiotemporal gait parameters are shown in Table 1. For all parameters and gait speeds, the errors were between 1% and 3% of the corresponding true values.
Results relative to the joint kinematics are shown in Table 2. Average values, over trials and subjects, ranged from 3.9 deg to 6.1 deg for the hip, from 2.7 deg to 4.4 deg for the knee, from 3.0 deg to 4.7 deg for the ankle, and from 2.8 deg to 3.8 deg for the pelvic tilt.
The results of the linear-fit method () highlighted excellent correlation (from 0.96 to 0.99 for all gait speeds) for hip and knee joint kinematics. The ankle kinematics showed strong correlation (from 0.82 to 0.87 for all gait speed). Conversely, the pelvic tilt showed no correlation. The hip and ankle joint kinematics were underestimated in terms of amplitude ( ranged from 0.73 to 0.76 and from 0.82 to 0.87 for the hip and ankle, resp.), whereas the knee kinematics were overestimated ( from 1.08 to 1.11). The values of the offset were consistent amongst the different gait speeds (maximum difference of 2.4 deg for the hip joint, across all gait velocities) and ranged from −0.1 deg to 2.3 deg, from −7.7 deg to −6.4 deg, and from −4.7 deg to −3.3 deg for the hip, knee, and ankle, respectively. The joint kinematics and pelvic tilt curves, averaged over trials and subjects and normalised to the gait cycle, are reported in Figures 4, 5, 6, and 7.
4. Discussion and Conclusion
The aim of this study is to implement and validate a ML method based on the use of a single RGB camera for lower limb clinical gait analysis (SEGMARK method). The estimated quantities consist of hip, knee, and ankle joint kinematics in the sagittal plane, pelvic tilt, and spatiotemporal parameters of the foreground limb. The SEGMARK method is based on the extraction of the lower limbs silhouette and the use of garment segmental markers for the tracking of the foot and pelvis.
Key factors of the proposed method are the use of anatomically based coordinate systems for the joint kinematics description, the automatic management of the superimposition between the foreground and background legs, and a double calibration procedure for the pelvis tracking.
For a clinically meaningful description of the joint kinematics, it is required, for each bone segment, to define a coordinate system based on the repeatable identification of anatomical landmarks . In our method, the anatomical calibration is performed by an operator on the static reference image, by clicking on the relevant image pixels. Although it might sound as a limitation, the manual anatomical landmarks calibration is a desired feature because it allows the operator to have full control on the model definition.
When using a single RGB camera for recording gait, the contours of the foreground and background legs are projected onto the image plane, and their superimposition makes difficult the tracking of the femur and tibia segments during specific gait cycle phases (Figure 1). To overcome this problem, the model templates of the femur and tibia segments were matched, for each frame, to an adaptable set of target points automatically selected from the thigh and shank contours.
The use of a silhouette-based approach implies that no information related to the pixel greyscale intensity or color values are exploited, except for the background subtraction procedure [7, 8]. This should make the method less sensitive to change in light conditions or cameras specifications [7, 8].
The accuracy with which the spatiotemporal parameters are estimated (Table 1) is slightly better than other ML methods [14, 15]. Furthermore, the percentage error was always lower than 3%. The errors associated to the gait temporal parameter (stride time) estimation were less than 0.02 s, for all gait speeds.
The kinematic quantities estimated by the SEGMARK method and those obtained using a clinically validated gait analysis protocol were compared in terms of root-mean-square deviation (), shape (), amplitude (), and offset () (Table 2). In this respect, it is worth noting that the differences found are not entirely due to errors in the joint kinematics estimates, but also to the different definitions used for the CSA and the different angular conventions adopted (2D angles versus 3D Euler angles).
Overall, the values ranged between 2.7 and 6.1 deg across joints and gait speeds. The smallest values were found for the knee joint kinematics, followed by the hip and ankle joints kinematics. We reckon that the differences at the hip angle between the SEGMARK method and the Plug in Gait model were mainly due to inaccuracies in the pelvis tracking, which proved to be a critical aspect of the single-camera technique proposed. This is mainly due to intrinsic difficulties associated to the pelvis tracking, such as the small range of motion in the sagittal plane during gait (<5 deg), the wider range of motion in the frontal and horizontal planes, and the difficulty to isolate the pelvis from the lower trunk. The differences in the ankle joint kinematics observed between the SEGMARK method and the Plug in Gait model (Table 2) can be probably ascribed to the 2D tracking of the foot segment. In fact, the SEGMARK method cannot account for the foot motion in the transverse plane, leading to an underestimation of the ankle joint motion amplitude ( varied from 0.82 to 0.68 for increasing gait speed). The waveform similarity analysis highlighted that the amplitude of the knee joint angle was consistently overestimated ( equals to 1.11 for comfortable speed) whereas the hip and ankle joint kinematic curves were consistently underestimated ( equals to 0.76 and 0.74 for hip and ankle, resp., for comfortable speed). This can be explained by the consistent overestimation of the pelvis motion, which was in phase with the femur angular displacement, combined with the underestimation of the foot motion in the sagittal plane. An increase of the gait speed showed a negative effect on the accuracy of the kinematics estimation for all the joints due to the significantly smaller number of frames recorded at the fast gait (≈40 frames) compared to the slow gait (≈80 frames). This result underlines the importance of a sufficiently high frame rate when recording the video footage.
To our knowledge, amongst the 2D ML methods for clinical gait analysis proposed in the literature, just a few use anatomically relevant points to define the CSA [22, 32, 33]. Goffredo and colleagues  used an approach based on skeletonisation and obtained the proportions of the human body segments from anatomical studies . This approach, although completely automatic, neglects the subject-specific characteristics, possibly leading to joint angles estimation inaccuracies. Other recent validation studies rely upon the built-in algorithm of the Microsoft Kinect to identify joint centres [33, 35], which are therefore not based on anatomical information, making the use of such techniques questionable for clinical applications. Another important limitation of the 2D methods previously proposed is the lack of a systematic validation via a well-established gold standard for clinical gait analysis applications [13–19]. To our knowledge, only the work presented by Majernik  compared the joint kinematics with the sagittal plane joint angles produced by a simultaneously captured 3D marker-based protocol. However, neither reference to the specific clinical gait analysis protocol used nor a quantitative assessment of the method performance is reported. Similarly, Goffredo and colleagues  only performed a qualitative validation of their method by comparing the estimated joint kinematics to standard patterns taken from the literature. Moreover, none of the abovementioned works described the procedure used to track the pelvis, which is critical for the correct estimation of the hip joint angle.
Interestingly, when comparing our results with the joint sagittal kinematics obtained from more complex 3D techniques, we found errors either comparable or smaller. Specifically, Sandau et al.  reported a of 2.6 deg for the hip, 3.5 deg for the knee, and 2.5 deg for the ankle, which are comparable with the values reported in Table 2 for the comfortable gait speed. Ceseracciu et al.  reported a of 17.6 deg for the hip, 11.8 deg for the knee, and 7.2 deg for the ankle, sensibly higher than the values reported in this work. This further confirms the potential of the SEGMARK approach for the study of the lower limb motion in the sagittal plane for clinical applications.
This study has limitations, some of them inherent to the proposed technique, whereas others related to the experimental design of the study. First, the joint kinematics is only available for the limb in the foreground, while other authors managed to obtain a bilateral joint kinematics description using a single camera . Therefore, to obtain kinematics from both sides, the subject has to walk in both directions of progression. Second, the segmentation procedure for the subject silhouette extraction takes advantage of a homogeneous blue background. This allows for optimal segmentation results, but it adds a constraint in the experimental setup. For those applications where the use of a uniform background is not acceptable, more advanced segmentation techniques can be employed [7–9]. Finally, the anatomical calibration procedure requires the operator to visually identify the anatomical landmarks in the static image, and this operation necessarily implies some repeatability errors which would need to be assessed in terms of inter and intra observer and inter and intrasubject variability . As a future step, the present methodology will be applied and validated on pathological populations such as cerebral palsy children.
Conflict of Interests
The authors declare that there is no conflict of interests regarding the publication of this paper.
L. Mündermann, S. Corazza, A. M. Chaudhari, T. P. Andriacchi, A. Sundaresan, and R. Chellappa, “Measuring human movement for biomechanical applications using markerless motion capture,” in 7th Three-Dimensional Image Capture and Applications, vol. 6056 of Proceedings of SPIE, p. 60560R, International Society for Optics and Photonics, San Jose, Calif, USA, January 2006.View at: Publisher Site | Google Scholar
N. Vishnoi, Z. Duric, and N. L. Gerber, “Markerless identification of key events in gait cycle using image flow,” in Proceedings of the Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC '12), pp. 4839–4842, 2012.View at: Google Scholar
N. R. Howe, M. E. Leventon, and W. T. Freeman, “Bayesian reconstruction of 3D human motion from single-camera video,” in Advances in Neural Information Processing Systems, pp. 820–826, MIT Press, 1999.View at: Google Scholar
A. Schmitz, M. Ye, R. Shapiro, R. Yang, and B. Noehren, “Accuracy and repeatability of joint angles measured using a single camera markerless motion capture system,” Gait & Posture, vol. 47, pp. 587–591, 2014.View at: Google Scholar
M. Goffredo, J. N. Carter, and M. S. Nixon, “2D markerless gait analysis,” in Proceedings of the 4th European Conference of the International Federation for Medical and Biological Engineering, vol. 22 of IFMBE Proceedings, pp. 67–71, Springer, Berlin, Germany, 2009.View at: Publisher Site | Google Scholar
A. Leu, D. Ristic-Durrant, and A. Graser, “A robust markerless vision-based human gait analysis system,” in Proceedings of the 6th IEEE International Symposium on Applied Computational Intelligence and Informatics (SACI '11), pp. 415–420, Timisoara, Romania, May 2011.View at: Publisher Site | Google Scholar
J. Majernik, “Marker-free method for reconstruction of human motion trajectories,” Advances in Optoelectronic Materials, vol. 1, no. 1, 2013.View at: Google Scholar
M. Gabel, R. Gilad-Bachrach, E. Renshaw, and A. Schuster, “Full body gait analysis with Kinect,” in Proceedings of the 34th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBS '12), pp. 1964–1967, San Diego, Calif, USA, September 2012.View at: Publisher Site | Google Scholar