# fatma3598/eeg-imagined-speech-neuro-signal-preprocessing-dl architecture

> Architecture diagram of the GitHub repository fatma3598/eeg-imagined-speech-neuro-signal-preprocessing-dl, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/fatma3598/eeg-imagined-speech-neuro-signal-preprocessing-dl
- Repository: https://github.com/fatma3598/eeg-imagined-speech-neuro-signal-preprocessing-dl

## Overview

This small repository provides a TensorFlow/Keras model builder for EEG imagined-speech classification, not a complete preprocessing or training pipeline. The workflow is to construct the CNN-2-Bi-LSTM, pass EEG windows through its normalization, convolution/pooling, recurrent, and dense stages, and produce class probabilities. The implementation shows the layer sequence; the README explicitly says preprocessing, training, validation, and evaluation are not yet included. No caller is present, so the initiating relationship is unverified.

Main entry points: [`architecture/CNN_2_Bi_LSTM.py`](https://github.com/fatma3598/eeg-imagined-speech-neuro-signal-preprocessing-dl/blob/main/architecture/CNN_2_Bi_LSTM.py) (CNN-2-Bi-LSTM builder)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_consumer(("Model consumer"))
node_builder["CNN-2-Bi-LSTM builder<br/>[CNN_2_Bi_LSTM.py]"]
node_input["EEG input<br/>[CNN_2_Bi_LSTM.py]"]
node_conv["Convolution stage<br/>[CNN_2_Bi_LSTM.py]"]
node_pool["Pooling stage<br/>[CNN_2_Bi_LSTM.py]"]
node_recurrent["Bi-LSTM stages<br/>[CNN_2_Bi_LSTM.py]"]
node_dense["Dense classifier<br/>[CNN_2_Bi_LSTM.py]"]
node_probabilities["Class probabilities<br/>[CNN_2_Bi_LSTM.py]"]
node_keras_model["Keras model<br/>[CNN_2_Bi_LSTM.py]"]

node_consumer -.->|"requests model"| node_builder
node_input -->|"normalizes, convolves"| node_conv
node_conv -->|"normalizes, pools"| node_pool
node_pool -->|"feeds sequences"| node_recurrent
node_recurrent -->|"feeds features"| node_dense
node_dense -->|"classifies"| node_probabilities
node_builder -->|"defines"| node_input
node_builder -->|"returns"| node_keras_model

click node_builder "https://github.com/fatma3598/eeg-imagined-speech-neuro-signal-preprocessing-dl/blob/main/architecture/CNN_2_Bi_LSTM.py"
click node_input "https://github.com/fatma3598/eeg-imagined-speech-neuro-signal-preprocessing-dl/blob/main/architecture/CNN_2_Bi_LSTM.py"
click node_conv "https://github.com/fatma3598/eeg-imagined-speech-neuro-signal-preprocessing-dl/blob/main/architecture/CNN_2_Bi_LSTM.py"
click node_pool "https://github.com/fatma3598/eeg-imagined-speech-neuro-signal-preprocessing-dl/blob/main/architecture/CNN_2_Bi_LSTM.py"
click node_recurrent "https://github.com/fatma3598/eeg-imagined-speech-neuro-signal-preprocessing-dl/blob/main/architecture/CNN_2_Bi_LSTM.py"
click node_dense "https://github.com/fatma3598/eeg-imagined-speech-neuro-signal-preprocessing-dl/blob/main/architecture/CNN_2_Bi_LSTM.py"
click node_probabilities "https://github.com/fatma3598/eeg-imagined-speech-neuro-signal-preprocessing-dl/blob/main/architecture/CNN_2_Bi_LSTM.py"
click node_keras_model "https://github.com/fatma3598/eeg-imagined-speech-neuro-signal-preprocessing-dl/blob/main/architecture/CNN_2_Bi_LSTM.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_consumer,node_keras_model toneIndigo
class node_builder,node_input,node_conv,node_pool,node_recurrent,node_dense,node_probabilities toneTeal
```

## Components

### Other components

- **Model consumer**
- [CNN-2-Bi-LSTM builder](https://github.com/fatma3598/eeg-imagined-speech-neuro-signal-preprocessing-dl/blob/main/architecture/CNN_2_Bi_LSTM.py): `architecture/CNN_2_Bi_LSTM.py`
- [EEG input](https://github.com/fatma3598/eeg-imagined-speech-neuro-signal-preprocessing-dl/blob/main/architecture/CNN_2_Bi_LSTM.py): `architecture/CNN_2_Bi_LSTM.py`
- [Convolution stage](https://github.com/fatma3598/eeg-imagined-speech-neuro-signal-preprocessing-dl/blob/main/architecture/CNN_2_Bi_LSTM.py): `architecture/CNN_2_Bi_LSTM.py`
- [Pooling stage](https://github.com/fatma3598/eeg-imagined-speech-neuro-signal-preprocessing-dl/blob/main/architecture/CNN_2_Bi_LSTM.py): `architecture/CNN_2_Bi_LSTM.py`
- [Bi-LSTM stages](https://github.com/fatma3598/eeg-imagined-speech-neuro-signal-preprocessing-dl/blob/main/architecture/CNN_2_Bi_LSTM.py): `architecture/CNN_2_Bi_LSTM.py`
- [Dense classifier](https://github.com/fatma3598/eeg-imagined-speech-neuro-signal-preprocessing-dl/blob/main/architecture/CNN_2_Bi_LSTM.py): `architecture/CNN_2_Bi_LSTM.py`
- [Class probabilities](https://github.com/fatma3598/eeg-imagined-speech-neuro-signal-preprocessing-dl/blob/main/architecture/CNN_2_Bi_LSTM.py): `architecture/CNN_2_Bi_LSTM.py`
- [Keras model](https://github.com/fatma3598/eeg-imagined-speech-neuro-signal-preprocessing-dl/blob/main/architecture/CNN_2_Bi_LSTM.py): `architecture/CNN_2_Bi_LSTM.py`

## Connections

- Model consumer → CNN-2-Bi-LSTM builder: requests model
- EEG input → Convolution stage: normalizes, convolves (evidence: `architecture/CNN_2_Bi_LSTM.py`)
- Convolution stage → Pooling stage: normalizes, pools (evidence: `architecture/CNN_2_Bi_LSTM.py`)
- Pooling stage → Bi-LSTM stages: feeds sequences (evidence: `architecture/CNN_2_Bi_LSTM.py`)
- Bi-LSTM stages → Dense classifier: feeds features (evidence: `architecture/CNN_2_Bi_LSTM.py`)
- Dense classifier → Class probabilities: classifies (evidence: `architecture/CNN_2_Bi_LSTM.py`)
- CNN-2-Bi-LSTM builder → EEG input: defines (evidence: `architecture/CNN_2_Bi_LSTM.py`)
- CNN-2-Bi-LSTM builder → Keras model: returns (evidence: `architecture/CNN_2_Bi_LSTM.py`)
