Enhancing Box and Block Test with Computer Vision for Post-Stroke Upper Extremity Motor Evaluation

David Robinson, Animesh Gupta, Elizabeth Clark, Olga Melnik, Qiushi Fu, Mubarak ShaharXiv 2026

TL;DR

This paper introduces a computer vision framework that extracts world-aligned 3D joint angles from standard smartphone videos of the Box and Block Test (BBT) for post-stroke motor evaluation. By automatically aligning skeletal poses with the direction of gravity, the system captures subtle compensatory movements without requiring depth sensors or manual calibration. Crucially, the unsupervised framework can differentiate between patients who achieve identical clinical scores but use completely different physical strategies to complete the task.

What Problem Does This Paper Address?

In stroke rehabilitation, tracking upper-extremity (UE) motor recovery is vital. Clinicians typically rely on two types of assessments: subjective ordinal scales (like the Fugl-Meyer Assessment), which are comprehensive but time-consuming and low-resolution, or time-based metrics like the Box and Block Test (BBT), which measures how many blocks a patient can transfer over a partition in one minute.

While the BBT is fast and widely adopted, it only measures speed, completely ignoring movement quality. For instance, a patient might achieve a high block count by abnormally leaning their entire torso to compensate for a weak elbow. Previous attempts to use computer vision to automate the BBT either required specialized depth cameras (like the Microsoft Kinect) or simply automated the block counting, providing no new clinical insights. The authors address this gap by extracting rich, objective movement quality data from standard, single-camera (monocular) RGB video without disrupting standard clinical workflows.

Methods

The authors developed a calibration-free, camera-invariant pipeline to estimate 3D joint angles of the trunk, arm, and fingers:

  1. Zero-Shot Monocular Extrinsic Calibration: To make the system robust to varying camera angles (e.g., a therapist holding a phone), the system estimates the camera's pitch relative to gravity. It uses a fine-tuned semantic segmentation model (SegMAN) to isolate the BBT box, feeds this into SAM 3D Objects to generate a 3D point cloud, and computes surface normals from the front face of the box to determine the camera tilt.
  2. Monocular 3D Pose Estimation: The full video frame is processed using SAM 3D Body to extract 3D keypoints for both the body and hands.
  3. Gravity Alignment: The extracted keypoints are rotated based on the calculated camera pitch. This "world-alignment" ensures that trunk leaning or arm extensions are measured accurately, independent of where the camera is placed.
  4. Unsupervised Feature Embedding: For each frame, an 18-element feature vector is constructed (14 finger joint angles compressed via PCA to 9 principal components, plus 4 angles representing the shoulder, elbow, wrist, and trunk). These features are projected into a 2D space using Uniform Manifold Approximation and Projection (UMAP) to visualize and cluster movement patterns without requiring manual clinical labels.
Fig. 1: Overview of our world-aligned 3D joint angle estimation pipeline. Video frames from the Box and Block Test are segmented to recover the box orientation, which is used to estimate camera pitch through surface normals. Monocular 3D keypoints are then extracted and rotated to align with gravity, enabling measurement of finger and arm joint angles independent of camera orientation.

Datasets

The framework was evaluated on a dataset of 136 BBT video recordings collected from:

  • 48 healthy individuals (ages 5–73), providing baseline data (one recording per hand).
  • 7 individuals post-stroke, who recorded three sessions per hand across three weekly visits to track variations.

For the box segmentation component, SegMAN was fine-tuned on a subset of 660 annotated images and tested on 165 images using an 80/20 train-test split.

Key Insights and Ideas

  • The "Same Score, Different Posture" Phenomenon: The most significant finding is that patients with nearly identical raw BBT scores can exhibit completely distinct clusters in the UMAP space. This proves that the vision framework captures hidden compensatory strategies that traditional timing metrics miss entirely.
  • Hidden Deviations in the "Less Impaired" Side: The unsupervised embeddings revealed that even when stroke patients used their less-impaired limb—which often scores within normal ranges on standard tests—their movement patterns still deviated from healthy controls. This highlights the presence of sub-clinical compensatory habits.
  • Clinical Viability via Gravity Alignment: By deriving the camera pitch directly from the geometry of the test apparatus (the box itself), the method eliminates the need for tedious calibration objects or fixed camera tripods, making it practical for busy clinics.

Key Results

  • Segmentation Accuracy: The fine-tuned SegMAN model achieved a mean Intersection over Union (mIoU) of 0.9492 on the test set, ensuring highly stable surface normal and camera pitch estimations.
  • Pose Estimation Benchmarking: Qualitative side-view analysis showed that SAM 3D Body provided superior depth consistency and joint articulation compared to alternative models like PromptHMR and SMPLer-X, which tended to over-extend the arm under depth ambiguity.
  • Quantitative Posture Deviation: Using a K-Nearest Neighbor (KNN) distance ratio against the healthy baseline, the authors showed that stroke patients consistently scored higher than 1.0 (indicating deviation). For example, Patient 2 and Patient 7 both had mild impairments and similar block counts, yet their distinct UMAP clusters successfully mapped their differing physical constraints.
Fig. 3: UMAP embeddings of joint angles. Healthy embeddings are shown in all figures to provide a common reference for visual comparison. The separation between healthy and patient distributions is observed without using supervision or clinical labels.

Limitations and Future Work

The primary limitation is the small sample size of stroke patients (only 7 individuals), which restricts the generalizability of the identified movement clusters. Additionally, the current analysis is strictly frame-by-frame and lacks temporal context, meaning it cannot yet evaluate movement dynamics like smoothness or acceleration over time.

Moving forward, the authors plan to expand their dataset significantly and integrate temporal machine learning models. They also aim to combine this pipeline with action-phase classification to analyze movement quality separately during the distinct "grasping" and "transport" phases of the test.

Summary updated

BibTeX
@misc{robinson2026enhancing,
  author = {David Robinson and Animesh Gupta and Elizabeth Clark and Olga Melnik and Qiushi Fu and Mubarak Shah},
  title = {{Enhancing Box and Block Test with Computer Vision for Post-Stroke Upper Extremity Motor Evaluation}},
  year = {2026},
  eprint = {2603.29101},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.29101},
}
Figure