# jigote/tinyml-eeg architecture

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

- Interactive diagram: https://gitdiagram.com/jigote/tinyml-eeg
- Repository: https://github.com/jigote/tinyml-eeg

## Overview

This repository is a single Jupyter notebook for building a tinyML model from motor-imagery EEG signals. The documented workflow uses EEG data to build a TensorFlow neural network, then converts the model for TensorFlow Lite Micro. The notebook’s implementation details were not available, so the graph shows only these README-supported stages and relationships.

Main entry points: [`Motor_Imagery_(MI).ipynb`](https://github.com/jigote/tinyml-eeg/blob/main/Motor_Imagery_(MI).ipynb) (TensorFlow model)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_modeling["Modeling"]
  node_eeg["Motor-imagery EEG"]
  node_tensorflow_model["TensorFlow model"]
end

subgraph group_tinyml["TinyML conversion"]
  node_tflite_micro["Lite Micro model"]
end

node_user(("Model builder"))

node_user -->|"builds"| node_tensorflow_model
node_eeg -->|"trains with"| node_tensorflow_model
node_tensorflow_model -->|"converts to"| node_tflite_micro

click node_eeg "https://github.com/jigote/tinyml-eeg/blob/main/Motor_Imagery_(MI).ipynb"
click node_tensorflow_model "https://github.com/jigote/tinyml-eeg/blob/main/Motor_Imagery_(MI).ipynb"
click node_tflite_micro "https://github.com/jigote/tinyml-eeg/blob/main/Motor_Imagery_(MI).ipynb"

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_eeg,node_tensorflow_model toneBlue
class node_tflite_micro toneAmber
class node_user toneIndigo
```

## Components

### Modeling

- [Motor-imagery EEG](https://github.com/jigote/tinyml-eeg/blob/main/Motor_Imagery_(MI).ipynb): `Motor_Imagery_(MI).ipynb`
- [TensorFlow model](https://github.com/jigote/tinyml-eeg/blob/main/Motor_Imagery_(MI).ipynb): `Motor_Imagery_(MI).ipynb`

### TinyML conversion

- [Lite Micro model](https://github.com/jigote/tinyml-eeg/blob/main/Motor_Imagery_(MI).ipynb): `Motor_Imagery_(MI).ipynb`

### Other components

- **Model builder**

## Connections

- Model builder → TensorFlow model: builds (evidence: `README.md`)
- Motor-imagery EEG → TensorFlow model: trains with (evidence: `README.md`)
- TensorFlow model → Lite Micro model: converts to (evidence: `README.md`)
