A MedPlore.com Tool for EEG Research & Education
Select mental states, inject artifacts, and analyze signals with the Spectrogram & Scalp Map.
1. Introduction
Welcome to the Advanced EEG (Electroencephalography) Simulator, a powerful and intuitive tool designed for educational, research, and experimental purposes in the field of neuroscience. Developed by MedPlore.com, this simulator provides a realistic and interactive environment for understanding the complexities of electroencephalography (EEG).
Whether you are a student learning about brain waves for the first time, a researcher testing signal processing algorithms, or a clinician looking for a teaching aid, this simulator offers a rich feature set to meet your needs. You can generate complex EEG signals, simulate various mental states, introduce common artifacts, and analyze the output in real-time.
2. Use Cases & Benefits
This simulator is a versatile tool with a wide range of applications:
- For Students: A safe, interactive, and free way to learn EEG fundamentals without needing expensive hardware. It allows you to visualize textbook concepts like the Alpha block, sleep spindles, and the effect of various artifacts on the signal.
- For Educators: A powerful in-classroom teaching aid to demonstrate EEG principles in real-time. You can create specific scenarios to test students’ knowledge or walk them through the process of identifying different wave patterns.
- For Researchers: A tool for generating synthetic datasets. If you are developing a new algorithm for artifact removal or frequency analysis, you can use the simulator to create clean, predictable data to validate your methods.
- For Hobbyists & Enthusiasts: A fun and engaging way to explore the fascinating world of brainwaves and learn more about the electrical activity of the human brain.
3. Interface Overview
The simulator’s interface is divided into three main areas: the Header, the Sidebar, and the Main Display with its associated controls.
- Header: Located at the very top, the header provides at-a-glance status information. This includes the recording status (Recording/Paused), the current sample rate in Hertz (Hz), and the elapsed time of the current session.
- Sidebar: The control center of the simulator. The sidebar contains numerous collapsible sections that allow you to manipulate every parameter of the EEG signal.
- Main Display & Controls: This is the largest area, where the EEG waveforms or spectrogram are rendered. Directly above the display is a row of primary action buttons for controlling the simulation’s state (Pause, Reset, etc.).
4. Detailed Feature Guide
This section provides a detailed breakdown of every control in the simulator.
Main Controls
- Pause/Play: Toggles the live simulation.
- Reset: Resets the entire simulation to its initial state, clearing all recorded data and markers.
- Add Marker: Prompts for a label to add a marker at the precise time on the waveform that you click.
- Spectrogram/Waveform: Toggles the main display between the traditional waveform view and the spectrogram view.
Sidebar Controls
The sidebar gives you granular control over the simulation parameters, from channel count and mental state to individual frequency bands and artifacts.
5. Exporting Data & Images
The simulator provides four ways to export your work:
- Export CSV/JSON: Saves the recorded raw data, suitable for analysis in external programs like Excel, Python, or MATLAB.
- Export Image: Saves a PNG image of the current canvas view. This image now includes an overlay with the key simulation parameters used to generate the signal, making it perfect for reports and presentations.
- Export Replay: Packages the session into a self-contained HTML file. When opened, this file replays the waveform and includes a list of the simulation parameters that were active, allowing you to share your findings with full context.
6. Performance & Resource Usage
Is the simulator resource-intensive?
Yes, to a degree. The simulator performs complex calculations in real-time to generate realistic data, which can be demanding on your system.
- CPU (Processor): The main CPU load comes from the continuous generation of waveform data for each channel and the periodic calculation of the Fast Fourier Transform (FFT) for the spectrogram and analysis panel. Performance is generally best on modern computers.
- Memory (RAM): The simulator records your entire session in memory to enable the “Export Replay” feature. While this is efficient for short- to medium-length sessions (up to 10-15 minutes), running a single session for a very long time on a device with limited RAM may lead to slowdowns as the memory buffer grows.
How can I improve performance?
If the simulation is running slow, try these steps:
- Reduce the Channel Count to 8 or 16 in the sidebar.
- Lower the Sample Rate to 128 Hz.
- For very long recording sessions, occasionally press the Reset button to clear the memory buffer and start fresh.
7. FAQ
What is the difference between Sweep Speed and Time Scale?
They both affect how the wave is displayed. Time Scale is like a zoom lens; it changes the amount of time visible on the screen (e.g., 10s vs 30s). Sweep Speed is how fast that window of time scrolls across the screen.
How do I use the exported CSV/JSON data?
The CSV file can be opened in any spreadsheet program (like Microsoft Excel) for basic analysis. For more advanced work, you can load the CSV or JSON file into a programming environment like Python (using the Pandas library), MATLAB, or R.
Can this tool be used for medical diagnosis?
Absolutely not. This simulator is strictly for educational and research purposes. The generated signals are realistic but are still simulations. Never use this tool for any form of medical diagnosis, treatment, or clinical decision-making.
9. The Technology Behind the Simulator
While it may look like a simple chart, the simulator uses several powerful browser-based technologies to generate and display realistic brain activity in real-time. Here’s a simple breakdown of the core components:
1. Signal Synthesis: Composing the Brainwave
Think of the final EEG signal as a piece of music played by an orchestra. Each instrument represents a different frequency band (Delta, Theta, Alpha, Beta, Gamma). The simulator acts as the composer, mixing these signals together. When you select a “Mental State” like “Focused,” it tells the “Beta instrument” to play louder. For realism, we also add a special type of background static called Pink Noise, which is common in many natural systems and makes the signal feel less like a perfect, sterile computer generation and more organic.
2. The FFT: A Prism for Brainwaves
The most mind-blowing piece of tech we use is the Fast Fourier Transform (FFT). Imagine the complex EEG signal is a musical chord. The FFT is a magical prism that breaks that chord down into the individual notes that form it, telling us exactly how loud each note is being played. This is what powers the Spectrogram view.
The spectrogram takes a small slice of the waveform and uses the FFT to show you the power of each frequency band. The bright, colorful bands you see correspond to the “loudest notes” in the brainwave signal at that moment. This is how we can objectively analyze the signal and determine which brainwaves are dominant.
10. Recommended Tools
If you found this EEG simulator helpful, you might also be interested in our Advanced ECG Simulator.
- Advanced ECG Simulator: An interactive tool for simulating and analyzing electrocardiogram (ECG) signals. Learn to identify different cardiac rhythms, arrhythmias, and artifacts in a realistic, controllable environment.