Repository modules
This section groups the main repository components into their functional roles inside the pipeline.
Overview
The project is organized into four main layers:
Shared infrastructure -
msToolsBottom-up semantic construction -
msCodeID-find_mscodeidsMovement and gait detection -
msGait-find_gaitValidation and supporting utilities -
testsand auxiliary scripts outside the main package structure
Pipeline view
![digraph repo_modules {
rankdir=LR;
graph [fontname="Helvetica"];
node [shape=box, fontname="Helvetica"];
edge [fontname="Helvetica"];
msTools [label="msTools\n(shared infrastructure)"];
msCodeID [label="msCodeID\n(bottom-up semantic construction)"];
find_mscodeids [label="find_mscodeids\nCLI"];
msGait [label="msGait\nmovement and gait detection)"];
find_gait [label="find_gait\nCLI"];
tests [label="tests\nvalidation utilities"];
msTools -> msCodeID;
msTools -> msGait;
msCodeID -> find_mscodeids;
msGait -> find_gait;
find_mscodeids -> find_gait;
find_gait -> tests;
}](_images/graphviz-ef149a4d8573e3aef3350248ba4934612e36a2ff.png)
Repository module relationships
Module groups
Bottom-up semantic construction
Movement and gait detection
How the pieces fit together
msToolsProvides configuration loading, UTC normalization, internationalization, shared models, and PostgreSQL/InfluxDB access.
msCodeIDImplements the bottom-up construction of semantic activity windows from raw wearable references.
find_mscodeidsRuns the first executable pipeline stage and stores
activity_legandactivity_all.msGaitImplements inertial movement detection, bilateral gait derivation, and GPS enrichment.
find_gaitRuns the second executable pipeline stage and stores
effective_movementandeffective_gait.testsContains empirical validation utilities based on manually labeled ground-truth windows.
Notes
The repository is intentionally structured so that semantic construction and gait detection are separated into two stages:
a first stage that builds semantic candidate windows from raw wearable data
a second stage that performs inertial analysis and gait validation on those previously built windows