# avauco/healthgait architecture

> Architecture diagram of the GitHub repository avauco/healthgait, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/avauco/healthgait
- Repository: https://github.com/avauco/healthgait

## Overview

Health&Gait is both a multimodal gait dataset and a set of research utilities for deriving gait measures and evaluating prediction methods. The main workflow is to prepare participant partitions, estimate gait parameters from pose and segmentation inputs when needed, then run technical validation for sex, age, or weight and inspect dataset visualizations. The README documents these capabilities; the sampled sources show representative partitioning, gait-estimation, MoviNet, and validation logic. Other model scripts are retained as documented validation branches, but their internal calls are not inferred.

Main entry points: [`scripts/technical_validation.py`](https://github.com/avauco/healthgait/blob/main/scripts/technical_validation.py) (Technical validation), [`code/create_partitions/create_partitions.py`](https://github.com/avauco/healthgait/blob/main/code/create_partitions/create_partitions.py) (Stratified partitions), [`code/gait_estimation/gait_parameters_estimation.py`](https://github.com/avauco/healthgait/blob/main/code/gait_estimation/gait_parameters_estimation.py) (Pose gait estimation), [`code/visualization/dataset_graphs.py`](https://github.com/avauco/healthgait/blob/main/code/visualization/dataset_graphs.py) (Dataset visualizations)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Dataset and analysis"]
  node_dataset[("Health&amp;Gait dataset")]
  node_gaitcsv["Estimated gait measures"]
  node_visuals["Dataset visualizations<br/>[dataset_graphs.py]"]
end

subgraph group_prep["Preparation"]
  node_partitioner["Stratified partitions"]
  node_partitionfiles["Train/test splits"]
  node_gaitest["Pose gait estimation"]
end

subgraph group_models["Prediction models"]
  node_movic["MoviNet classification"]
  node_movir["MoviNet regression"]
  node_evalc["MoviNet classification eval"]
  node_evalr["MoviNet regression eval"]
  node_mlpc["MLP classification"]
  node_mlpr["MLP regression"]
  node_xgbc["XGBoost classification"]
  node_xgbr["XGBoost regression"]
end

subgraph group_validation["Validation orchestration"]
  node_runner["Technical validation"]
  node_results["Evaluation results"]
end

node_researcher(("Researcher"))

node_researcher -->|"uses"| node_dataset
node_researcher -->|"creates splits"| node_partitioner
node_partitioner -->|"writes splits"| node_partitionfiles
node_researcher -->|"estimates gait"| node_gaitest
node_gaitest -->|"writes measures"| node_gaitcsv
node_researcher -->|"runs validation"| node_runner
node_runner -->|"dispatches"| node_movic
node_runner -->|"dispatches"| node_movir
node_runner -->|"dispatches"| node_evalc
node_runner -->|"dispatches"| node_evalr
node_runner -->|"dispatches"| node_mlpc
node_runner -->|"dispatches"| node_mlpr
node_runner -->|"dispatches"| node_xgbc
node_runner -->|"dispatches"| node_xgbr
node_researcher -.->|"plots dataset"| node_visuals

click node_partitioner "https://github.com/avauco/healthgait/blob/main/code/create_partitions/create_partitions.py"
click node_partitionfiles "https://github.com/avauco/healthgait/tree/main/partitions"
click node_gaitest "https://github.com/avauco/healthgait/blob/main/code/gait_estimation/gait_parameters_estimation.py"
click node_visuals "https://github.com/avauco/healthgait/blob/main/code/visualization/dataset_graphs.py"
click node_runner "https://github.com/avauco/healthgait/blob/main/scripts/technical_validation.py"
click node_movic "https://github.com/avauco/healthgait/blob/main/code/train/train_MoviNet_classification.py"
click node_movir "https://github.com/avauco/healthgait/blob/main/code/train/train_MoviNet_regression.py"
click node_evalc "https://github.com/avauco/healthgait/blob/main/code/train/evaluate_MoviNet_classification.py"
click node_evalr "https://github.com/avauco/healthgait/blob/main/code/train/evaluate_MoviNet_regression.py"
click node_mlpc "https://github.com/avauco/healthgait/blob/main/code/train/train_mlp_classification.py"
click node_mlpr "https://github.com/avauco/healthgait/blob/main/code/train/train_mlp_regression.py"
click node_xgbc "https://github.com/avauco/healthgait/blob/main/code/train/train_xgboost_classification.py"
click node_xgbr "https://github.com/avauco/healthgait/blob/main/code/train/train_xgboost_regression.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_dataset,node_gaitcsv,node_visuals toneBlue
class node_partitioner,node_partitionfiles,node_gaitest toneAmber
class node_movic,node_movir,node_evalc,node_evalr,node_mlpc,node_mlpr,node_xgbc,node_xgbr toneMint
class node_runner,node_results toneRose
class node_researcher toneIndigo
```

## Components

### Dataset and analysis

- **Health&Gait dataset**
- **Estimated gait measures**
- [Dataset visualizations](https://github.com/avauco/healthgait/blob/main/code/visualization/dataset_graphs.py): `code/visualization/dataset_graphs.py`

### Preparation

- [Stratified partitions](https://github.com/avauco/healthgait/blob/main/code/create_partitions/create_partitions.py): `code/create_partitions/create_partitions.py`
- [Train/test splits](https://github.com/avauco/healthgait/tree/main/partitions): `partitions`
- [Pose gait estimation](https://github.com/avauco/healthgait/blob/main/code/gait_estimation/gait_parameters_estimation.py): `code/gait_estimation/gait_parameters_estimation.py`

### Prediction models

- [MoviNet classification](https://github.com/avauco/healthgait/blob/main/code/train/train_MoviNet_classification.py): `code/train/train_MoviNet_classification.py`
- [MoviNet regression](https://github.com/avauco/healthgait/blob/main/code/train/train_MoviNet_regression.py): `code/train/train_MoviNet_regression.py`
- [MoviNet classification eval](https://github.com/avauco/healthgait/blob/main/code/train/evaluate_MoviNet_classification.py): `code/train/evaluate_MoviNet_classification.py`
- [MoviNet regression eval](https://github.com/avauco/healthgait/blob/main/code/train/evaluate_MoviNet_regression.py): `code/train/evaluate_MoviNet_regression.py`
- [MLP classification](https://github.com/avauco/healthgait/blob/main/code/train/train_mlp_classification.py): `code/train/train_mlp_classification.py`
- [MLP regression](https://github.com/avauco/healthgait/blob/main/code/train/train_mlp_regression.py): `code/train/train_mlp_regression.py`
- [XGBoost classification](https://github.com/avauco/healthgait/blob/main/code/train/train_xgboost_classification.py): `code/train/train_xgboost_classification.py`
- [XGBoost regression](https://github.com/avauco/healthgait/blob/main/code/train/train_xgboost_regression.py): `code/train/train_xgboost_regression.py`

### Validation orchestration

- [Technical validation](https://github.com/avauco/healthgait/blob/main/scripts/technical_validation.py): `scripts/technical_validation.py`
- **Evaluation results**

### Other components

- **Researcher**

## Connections

- Researcher → Health&Gait dataset: uses (evidence: `README.md`)
- Researcher → Stratified partitions: creates splits (evidence: `README.md`)
- Stratified partitions → Train/test splits: writes splits (evidence: `code/create_partitions/create_partitions.py`)
- Researcher → Pose gait estimation: estimates gait (evidence: `README.md`)
- Pose gait estimation → Estimated gait measures: writes measures (evidence: `code/gait_estimation/gait_parameters_estimation.py`)
- Researcher → Technical validation: runs validation (evidence: `README.md`)
- Technical validation → MoviNet classification: dispatches (evidence: `scripts/technical_validation.py`)
- Technical validation → MoviNet regression: dispatches (evidence: `scripts/technical_validation.py`)
- Technical validation → MoviNet classification eval: dispatches (evidence: `scripts/technical_validation.py`)
- Technical validation → MoviNet regression eval: dispatches (evidence: `scripts/technical_validation.py`)
- Technical validation → MLP classification: dispatches (evidence: `scripts/technical_validation.py`)
- Technical validation → MLP regression: dispatches (evidence: `scripts/technical_validation.py`)
- Technical validation → XGBoost classification: dispatches (evidence: `scripts/technical_validation.py`)
- Technical validation → XGBoost regression: dispatches (evidence: `scripts/technical_validation.py`)
- Researcher → Dataset visualizations: plots dataset
