A cutting-edge project combining real-time EEG data streaming, fatigue analysis, and visualization.
Smart EEG Fatigue Detection System is a modern full-stack application that simulates, streams, and analyzes EEG brainwave data.
It enables live plotting, data logging, and offline playback for performance tracking and fatigue detection β designed for researchers, developers, and students exploring NeuroTech + AI.
-
π Real-time EEG Data Simulation
Generates synthetic EEG signals using an asynchronous simulator. -
π‘ Live WebSocket Streaming
Uses FastAPI + WebSockets for real-time bidirectional data exchange. -
π Live Plot Visualization
Displays continuous brainwave graph updates using Matplotlib. -
πΎ Automatic Data Logging
Saves EEG samples locally in.csvformat for later analysis. -
π Offline Replay Mode
Replay and visualize previously recorded EEG sessions anytime. -
β‘ FastAPI Backend API
Handles data input/output, model integration, and session management. -
π§ Fatigue Detection Logic (extendable)
Ready to plug in ML/AI models for real fatigue state prediction.
| Layer | Tools & Libraries |
|---|---|
| Backend | FastAPI, Uvicorn, Pydantic |
| Realtime | WebSockets |
| Simulator | Python AsyncIO, Matplotlib |
| Data Handling | CSV, JSON |
| Frontend (optional) | React / Streamlit (extendable) |
| Visualization | Matplotlib, Numpy |
| Deployment | Docker, GitHub Actions (planned) |
flowchart LR
A[EEG Simulator π§©] -->|WebSocket| B(FastAPI Backend βοΈ)
B --> C[(Database / CSV Logger πΎ)]
B --> D[Visualization / Dashboard π]
D --> E[User π§ββοΈ]