# hossamfakher1/autism-behavior-detection-using-pose-estimation architecture

> Architecture diagram of the GitHub repository hossamfakher1/autism-behavior-detection-using-pose-estimation, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/hossamfakher1/autism-behavior-detection-using-pose-estimation
- Repository: https://github.com/hossamfakher1/autism-behavior-detection-using-pose-estimation

## Overview

This research repository describes a video-based workflow for classifying repetitive autism-related behaviors. Its visible scripts cover frame-count analysis, interpolation, and video augmentation; the README documents the broader pose-estimation and machine-learning workflow. The training notebook and data contents were not inspected, so their internal stages are represented at the documented level, and no unverified connections to the visible scripts are inferred.

Main entry points: [`data`](https://github.com/hossamfakher1/autism-behavior-detection-using-pose-estimation/tree/main/data) (Video dataset), [`notebooks/model_training.ipynb`](https://github.com/hossamfakher1/autism-behavior-detection-using-pose-estimation/blob/main/notebooks/model_training.ipynb) (Behavior classification), [`scr/Count Frames.py`](https://github.com/hossamfakher1/autism-behavior-detection-using-pose-estimation/blob/main/scr/Count%20Frames.py) (Frame-count analysis), [`scr/linear interpolation.py`](https://github.com/hossamfakher1/autism-behavior-detection-using-pose-estimation/blob/main/scr/linear%20interpolation.py) (Frame interpolation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_prep["Video preparation"]
  node_interpolation["Frame interpolation"]
  node_augmentation["Video augmentation<br/>[Augment Videos.py]"]
end

subgraph group_pose["Pose features"]
  node_pose_estimation["RTMPose estimation"]
  node_keypoints["Keypoint export"]
end

subgraph group_model["Behavior modeling"]
  node_feature_processing["Feature extraction and PCA"]
  node_classification["Behavior classification"]
  node_evaluation["Evaluation and visualization"]
end

subgraph group_analysis["Frame analysis"]
  node_frame_count["Frame-count analysis<br/>[Count Frames.py]"]
  node_frame_report["Frame-count CSV and plot<br/>[Count Frames.py]"]
end

node_researcher(("Researcher"))
node_videos[("Video dataset")]
node_rtmpose["RTMPose framework"]
node_ml_models["ML models"]

node_researcher -->|"runs"| node_interpolation
node_researcher -->|"runs"| node_augmentation
node_researcher -->|"runs"| node_frame_count
node_videos -->|"reads videos"| node_interpolation
node_videos -->|"reads videos"| node_augmentation
node_videos -->|"counts frames"| node_frame_count
node_frame_count -->|"writes report"| node_frame_report
node_videos -->|"provides frames"| node_pose_estimation
node_rtmpose -->|"estimates poses"| node_pose_estimation
node_pose_estimation -->|"exports keypoints"| node_keypoints
node_keypoints -->|"supplies features"| node_feature_processing
node_feature_processing -->|"produces features"| node_classification
node_ml_models -->|"provides classifiers"| node_classification
node_classification -->|"evaluated by"| node_evaluation

click node_interpolation "https://github.com/hossamfakher1/autism-behavior-detection-using-pose-estimation/blob/main/scr/linear%20interpolation.py"
click node_augmentation "https://github.com/hossamfakher1/autism-behavior-detection-using-pose-estimation/blob/main/scr/Augment%20Videos.py"
click node_feature_processing "https://github.com/hossamfakher1/autism-behavior-detection-using-pose-estimation/blob/main/notebooks/model_training.ipynb"
click node_classification "https://github.com/hossamfakher1/autism-behavior-detection-using-pose-estimation/blob/main/notebooks/model_training.ipynb"
click node_evaluation "https://github.com/hossamfakher1/autism-behavior-detection-using-pose-estimation/blob/main/notebooks/model_training.ipynb"
click node_frame_count "https://github.com/hossamfakher1/autism-behavior-detection-using-pose-estimation/blob/main/scr/Count%20Frames.py"
click node_frame_report "https://github.com/hossamfakher1/autism-behavior-detection-using-pose-estimation/blob/main/scr/Count%20Frames.py"
click node_videos "https://github.com/hossamfakher1/autism-behavior-detection-using-pose-estimation/tree/main/data"

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_interpolation,node_augmentation toneBlue
class node_pose_estimation,node_keypoints,node_videos toneAmber
class node_feature_processing,node_classification,node_evaluation toneMint
class node_frame_count,node_frame_report toneRose
class node_researcher,node_rtmpose,node_ml_models toneIndigo
```

## Components

### Video preparation

- [Frame interpolation](https://github.com/hossamfakher1/autism-behavior-detection-using-pose-estimation/blob/main/scr/linear%20interpolation.py): `scr/linear interpolation.py`
- [Video augmentation](https://github.com/hossamfakher1/autism-behavior-detection-using-pose-estimation/blob/main/scr/Augment%20Videos.py): `scr/Augment Videos.py`

### Pose features

- **RTMPose estimation**
- **Keypoint export**

### Behavior modeling

- [Feature extraction and PCA](https://github.com/hossamfakher1/autism-behavior-detection-using-pose-estimation/blob/main/notebooks/model_training.ipynb): `notebooks/model_training.ipynb`
- [Behavior classification](https://github.com/hossamfakher1/autism-behavior-detection-using-pose-estimation/blob/main/notebooks/model_training.ipynb): `notebooks/model_training.ipynb`
- [Evaluation and visualization](https://github.com/hossamfakher1/autism-behavior-detection-using-pose-estimation/blob/main/notebooks/model_training.ipynb): `notebooks/model_training.ipynb`

### Frame analysis

- [Frame-count analysis](https://github.com/hossamfakher1/autism-behavior-detection-using-pose-estimation/blob/main/scr/Count%20Frames.py): `scr/Count Frames.py`
- [Frame-count CSV and plot](https://github.com/hossamfakher1/autism-behavior-detection-using-pose-estimation/blob/main/scr/Count%20Frames.py): `scr/Count Frames.py`

### Other components

- **Researcher**
- [Video dataset](https://github.com/hossamfakher1/autism-behavior-detection-using-pose-estimation/tree/main/data): `data`
- **RTMPose framework**
- **ML models**

## Connections

- Researcher → Frame interpolation: runs (evidence: `scr/linear interpolation.py`)
- Researcher → Video augmentation: runs (evidence: `scr/Augment Videos.py`)
- Researcher → Frame-count analysis: runs (evidence: `scr/Count Frames.py`)
- Video dataset → Frame interpolation: reads videos (evidence: `scr/linear interpolation.py`)
- Video dataset → Video augmentation: reads videos (evidence: `scr/Augment Videos.py`)
- Video dataset → Frame-count analysis: counts frames (evidence: `scr/Count Frames.py`)
- Frame-count analysis → Frame-count CSV and plot: writes report (evidence: `scr/Count Frames.py`)
- Video dataset → RTMPose estimation: provides frames (evidence: `README.md`)
- RTMPose framework → RTMPose estimation: estimates poses (evidence: `README.md`)
- RTMPose estimation → Keypoint export: exports keypoints (evidence: `README.md`)
- Keypoint export → Feature extraction and PCA: supplies features (evidence: `README.md`)
- Feature extraction and PCA → Behavior classification: produces features (evidence: `README.md`)
- ML models → Behavior classification: provides classifiers (evidence: `README.md`)
- Behavior classification → Evaluation and visualization: evaluated by (evidence: `README.md`)
