File size: 2,492 Bytes
6f3df9c
e82863f
5511bf0
37b67bf
5511bf0
6f3df9c
 
 
e82863f
6f3df9c
e82863f
6f3df9c
 
5511bf0
6f3df9c
5511bf0
6f3df9c
5511bf0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
---
title: EEG Mental Arithmetic Task Visualizer
emoji: πŸ’»
colorFrom: green
colorTo: purple
sdk: docker
app_port: 8501
tags:
- streamlit
pinned: false
short_description: EEG Visualizer & Data Exploration Space
---

# 🧠 EEG Mental Arithmetic Explorer

Interactive visualization tool for exploring the EEG During Mental Arithmetic Tasks dataset.

## Repository Structure

```
space/
β”œβ”€β”€ scr/ 
β”œβ”€β”€β”€β”€β”€β”€ app.py           # Main Streamlit application
β”œβ”€β”€ requirements.txt     # Python dependencies
β”œβ”€β”€ README.md            # This file
└── edf_files.zip        # Compressed EDF files (auto-extracted on launch)
```

The EDF files are automatically extracted when the Space starts.

## Features

### πŸ“ˆ Signal Viewer
- Visualize EEG signals from 23 channels
- Stacked or overlay plot options
- Adjustable time windows
- Multi-channel selection

### 🌈 Spectral Analysis
- Power Spectral Density (PSD) visualization
- Frequency band analysis (Delta, Theta, Alpha, Beta, Gamma)
- Band power comparison
- Individual channel analysis

### πŸ“Š Statistics
- Channel-wise statistical metrics
- Correlation matrix heatmap
- Comprehensive data overview

### πŸ‘€ Subject Selection
- Browse all subjects
- View performance groups (Good/Poor)
- Toggle between resting and task states
- Support for both CSV and EDF formats

## Dataset

This explorer uses the [EEG During Mental Arithmetic Tasks](https://huggingface.co/datasets/BrainSpectralAnalytics/eeg-mental-arithmetic) dataset containing:
- 36 subjects with paired recordings
- 23 EEG channels (International 10/20 system)
- Resting state and mental arithmetic task recordings
- Performance-based classification

## Usage

1. **Select Subject**: Choose from 36 available subjects
2. **Choose Recording**: Resting state or mental arithmetic task
3. **Select Format**: CSV (processed) or EDF (original)
4. **Explore**: Navigate through the different visualization tabs

## Citation

```bibtex
@article{zyma2019eegmat,
  author = {Zyma, Igor and Tukaev, Sergii and Seleznov, Ivan and others},
  title = {Electroencephalograms during Mental Arithmetic Task Performance},
  journal = {Data},
  volume = {4},
  number = {1},
  year = {2019},
  doi = {10.3390/data4010014}
}
```

## Links

- [Dataset on Hugging Face](https://huggingface.co/datasets/BrainSpectralAnalytics/eeg-mental-arithmetic)
- [PhysioNet Page](https://physionet.org/content/eegmat/1.0.0/)
- [Original Paper](https://doi.org/10.3390/data4010014)