ReachTrace: Hand-to-face reach metrics from synchronized pose and video
Contributors
Hosting institution:
Description
Desktop PyQt application for replaying preprocessed pose sessions to quantify hand-to-face reaching tasks for neurology research in movement disorders (e.g., Parkinson's disease).
Key capabilities
Upload or point to preprocessed pose caches and synchronized video; derive nose-to-hand distance signals and hand trajectory time series.
Compute reach onset/offset, peak velocities, movement time, accuracy metrics, and smoothness indicators (for example, spectral arc length and jerk-based measures).
Support signal smoothing (moving average, Gaussian, Savitzky-Golay), segmentation of reaches, and export workflows (CSV/JSON/NPZ).
Visualize reconstructed video with synchronized pose overlays, reach markers, and temporal plots of hand-to-nose distance and velocity.
Features, scope
Designed for interactive desktop inspection and reporting; relies on precomputed pose estimates (DWPose/OpenPose outputs) and synchronized video.
Pose inference is expected to be performed separately; this application focuses on processing, visualization, and measurement extraction from pose time series.
Requires a DATA_BASE_DIR layout with per-recording pose caches and synchronized video.
What's included
Source: app_reachtrace.py (desktop entry), views for video/processing/statistics, and supporting libraries for signal processing and export.
Docs: latex/ReachTrace-documentation.tex (documentation sources and compiled PDF expected in the latex folder).
Environment: requirements.txt for Python dependencies (PyTorch optional, OpenCV, NumPy/SciPy, Matplotlib).
Minimum requirements
OS: Desktop Linux/Windows with video playback support.
Runtime: Python 3.10+; key deps include OpenCV, NumPy, SciPy, and Matplotlib.
Hardware: GPU not required
Data: Preprocessed pose caches (JSON/NPZ) and synchronized video files for each recording.
How to run
Set .env (if used) with DATA_BASE_DIR=<path to parsed data>.
Create venv; pip install -r requirements.txt.
Launch: python app_reachtrace.py.
See ReachTrace-documentation.pdf (and latex/ReachTrace-documentation.tex) for full installation/run instructions.
How to cite
Cite the Zenodo DOI for this version.
Files
ReachTrace-documentation.pdf
Additional details
Funding
- European Union
- The project National Institute for Neurological Research, Programme EXCELES, Next Generation EU LX22NPO510x
References
- Gary Bradski. The opencv library. Dr. Dobb's Journal of Software Tools, 2000.
- Charles R Harris, K Jarrod Millman, Stéfan J van der Walt, Ralf Gommers, Pauli Virtanen, David Cournapeau, Eric Wieser, Julian Taylor, Sebastian Berg, Nathaniel J Smith, Robert Kern, Matti Picus, Stephan Hoyer, Marten H van Kerkwijk, Matthew Brett, Allan Haldane, Jaime Fernández del Río, Mark Wiebe, Pearu Peterson, Pierre Gérard-Marchant, Kevin Sheppard, Tyler Reddy, Warren Weckesser, Hameer Abbasi, Christoph Gohlke, Travis E Oliphant, et al. Array programming with numpy. Nature, 585(7825):357–362, 2020. doi: 10.1038/s41586-020-2649-2.
- Pauli Virtanen, Ralf Gommers, Travis E Oliphant, Matt Haberland, Tyler Reddy, David Cournapeau, Evgeni Burovski, Pearu Peterson, Warren Weckesser, Jonathan Bright, Sté- fan J van der Walt, Matthew Brett, Joshua Wilson, K Jarrod Millman, Nikolay Mayorov, Andrew R J Nelson, Eric Jones, Robert Kern, Eric Larson, C J Carey, İlhan Polat, Yu Feng, Eric W Moore, Jake VanderPlas, Denis Laxalde, Josef Perktold, Robert Cimrman, Ian Hen- riksen, E A Quintero, Charles R Harris, Anne M Archibald, Antônio H Ribeiro, Fabian Pedregosa, Paul van Mulbregt, and SciPy 1.0 Contributors. Scipy 1.0: Fundamental al- gorithms for scientific computing in python. Nature Methods, 17(3):261–272, 2020. doi: 10.1038/s41592-019-0686-2.