A Python toolkit for analysis of graphomotor data collected via Curious.
Welcome to graphomotor, a specialized Python library for analyzing graphomotor data collected via Curious. This toolkit provides comprehensive tools for processing, analyzing, and visualizing data from various graphomotor assessment tasks including spiral drawing, trails making, alphabetic writing, digit symbol substitution, and the Rey-Osterrieth Complex Figure Test.
The toolkit extracts clinically relevant metrics from digitized drawing data. Currently implemented features include:
- Temporal Features: Task completion duration
- Velocity Features: Velocity analysis including linear, radial, and angular velocity components with statistical measures (sum, median, variation, skewness, kurtosis)
- Distance Features: Spatial accuracy measurements using Hausdorff distance metrics with temporal normalizations and segment-specific analysis
- Drawing Error Features: Area under the curve (AUC) calculations between drawn paths and ideal reference trajectories to quantify spatial accuracy
Note: This toolkit is under active development, with a primary focus on the spiral drawing task and planned expansion to additional graphomotor assessments in subsequent releases.
| Task | Preprocessing | Feature Extraction | Visualization |
|---|---|---|---|
| Spiral | |||
| Rey-Osterrieth Complex Figure | |||
| Alphabetic Writing | |||
| Digit Symbol Substitution | |||
| Trails Making |
Install the graphomotor package from PyPI:
pip install graphomotorOr install the latest development version directly from GitHub:
pip install git+https://github.com/childmindresearch/graphomotorCurrently, graphomotor is available as an importable Python library. CLI functionality is planned for future releases.
from graphomotor.core import orchestrator
# Path to your spiral drawing data file
input_file = "path/to/your/spiral_data.csv"
# Directory where extracted features will be saved
output_dir = "path/to/output/directory"
# Run the analysis pipeline
features = orchestrator.run_pipeline(
input_path=input_file,
output_path=output_dir
)
# Features are returned as a dictionary and saved as CSV
print(f"Successfully extracted {len(features)} feature categories")For detailed configuration options and additional parameters, refer to the run_pipeline documentation.
Note: Currently, only single file processing is supported, with batch processing planned for future releases.
The Graphomotor Study Toolkit is under active development. For more detailed information about upcoming features and development plans, please refer to the GitHub Issues page.
We welcome contributions from the community! If you're interested in contributing, please review our Contributing Guidelines for information on how to get started, coding standards, and the pull request process.
- Messan, K. S., Kia, S. M., Narayan, V. A., Redmond, S. J., Kogan, A., Hussain, M. A., McKhann, G. M. II, & Vahdat, S. (2022). Assessment of Smartphone-Based Spiral Tracing in Multiple Sclerosis Reveals Intra-Individual Reproducibility as a Major Determinant of the Clinical Utility of the Digital Test. Frontiers in Medical Technology, 3, 714682. https://doi.org/10.3389/fmedt.2021.714682