eeg-ssl-emotion-eval
PARSE: Pairwise Alignment of Representations in Semi-Supervised EEG Learning for Emotion Recognition — Zhang et al. (2022) (arXiv:2202.05400, 2022)
What this evaluates
Evaluates semi-supervised EEG-based emotion recognition under extreme label scarcity. It probes the model's ability to leverage unlabeled data via representation alignment while maintaining classification performance across subject-dependent and subject-independent protocols.
Datasets
- SEED — total ?; splits: train (9), test (6)
- SEED-IV — total ?; splits: train (16), test (8)
- SEED-V — total ?; splits: train (5), val (5), test (5)
- AMIGOS — total ?; splits: train (-1), test (-1)
Metrics
accuracy (primary) — range: [0, 1]
- Ratio of correctly predicted instances to the total number of instances. Computed per subject-dependent fold.
F1-score — range: [0, 1]
- Macro-averaged F1-score across all classes. Harmonic mean of precision and recall per class, then averaged. Used for the imbalanced AMIGOS dataset.
Input / output format
Input: 1-D feature vectors extracted from EEG segments. For SEED-series: Differential Entropy across 5 bands (delta, theta, alpha, beta, gamma) from 62 channels, reshaped and min-max normalized to [0,1]. For AMIGOS: Log-PSD across 5 bands + asymmetry from 14 channels, reshaped and normalized to [0,1].
Output: Discrete class predictions (3 classes for SEED/IV, 5 classes for SEED-V, 2 classes for AMIGOS valence/arousal).
Scoring recipe
def compute_metric(predictions, gold, metric_type):
if metric_type == 'accuracy':
return sum(p == g for p, g in zip(predictions, gold)) / len(gold)
elif metric_type == 'f1':
classes = sorted(set(gold))
f1s = []
for c in classes:
tp = sum(p == c and g == c for p, g in zip(predictions, gold))
fp = sum(p == c and g != c for p, g in zip(predictions, gold))
fn = sum(p != c and g == c for p, g in zip(predictions, gold))
prec = tp / (tp + fp) if (tp + fp) > 0 else 0
rec = tp / (tp + fn) if (tp + fn) > 0 else 0
f1 = 2 * prec * rec / (prec + rec) if (prec + rec) > 0 else 0
f1s.append(f1)
return sum(f1s) / len(f1s)
Common pitfalls
- Applying accuracy instead of macro F1-score for the highly imbalanced AMIGOS dataset, which violates the paper's explicit protocol.
- Mixing subject-dependent and subject-independent evaluation splits (SEED-series use fixed trial splits per participant, AMIGOS uses leave-one-participant-out).
- Failing to vary the number of labeled samples per class (m ∈ {1,3,5,7,10,25}) when reporting semi-supervised results, as the protocol requires evaluation across multiple label scarcity levels.
Evidence (verbatim from paper)
Since the class distributions are almost balanced in the SEED-series datasets, accuracy is selected as the evaluation metric. In AMIGOS, we adopt the same leave-one-participant-out protocol for training and testing data splits... As the class distribution is very imbalanced, we use the F1-score (mean F1-score for both classes) as the evaluation metric as suggested in [13].
Citation
@misc{zhang2022parse,
title={PARSE: Pairwise Alignment of Representations in Semi-Supervised EEG Learning for Emotion Recognition},
author={Zhang et al. (2022)},
year={2022},
note={arXiv:2202.05400}
}
1---2name: eeg-ssl-emotion-eval3description: Evaluates semi-supervised EEG-based emotion recognition under extreme label scarcity. It probes the model's ability to leverage unlabeled data via representation alignment while maintaining classification performance across subject-dependent and subject-independent protocols. Use when the user wants to benchmark on SEED, SEED-IV, SEED-V, AMIGOS, or asks about evaluating this task. Reports accuracy.4metadata:5 source: https://skillmd.com/skills/qhjqhj00/eeg-ssl-emotion-eval6 skill_kind: dataset_eval7 source_arxiv: 2202.054008 bibtex_key: zhang2022parse9 confidence: high10---1112# eeg-ssl-emotion-eval1314> PARSE: Pairwise Alignment of Representations in Semi-Supervised EEG Learning for Emotion Recognition — Zhang et al. (2022) (arXiv:2202.05400, 2022)1516## What this evaluates1718Evaluates semi-supervised EEG-based emotion recognition under extreme label scarcity. It probes the model's ability to leverage unlabeled data via representation alignment while maintaining classification performance across subject-dependent and subject-independent protocols.1920## Datasets2122- **SEED** — total ?; splits: train (9), test (6)23- **SEED-IV** — total ?; splits: train (16), test (8)24- **SEED-V** — total ?; splits: train (5), val (5), test (5)25- **AMIGOS** — total ?; splits: train (-1), test (-1)2627## Metrics2829- `accuracy` **(primary)** — range: [0, 1]30 - Ratio of correctly predicted instances to the total number of instances. Computed per subject-dependent fold.31- `F1-score` — range: [0, 1]32 - Macro-averaged F1-score across all classes. Harmonic mean of precision and recall per class, then averaged. Used for the imbalanced AMIGOS dataset.3334## Input / output format3536**Input**: 1-D feature vectors extracted from EEG segments. For SEED-series: Differential Entropy across 5 bands (delta, theta, alpha, beta, gamma) from 62 channels, reshaped and min-max normalized to [0,1]. For AMIGOS: Log-PSD across 5 bands + asymmetry from 14 channels, reshaped and normalized to [0,1].3738**Output**: Discrete class predictions (3 classes for SEED/IV, 5 classes for SEED-V, 2 classes for AMIGOS valence/arousal).3940## Scoring recipe4142```python43def compute_metric(predictions, gold, metric_type):44 if metric_type == 'accuracy':45 return sum(p == g for p, g in zip(predictions, gold)) / len(gold)46 elif metric_type == 'f1':47 classes = sorted(set(gold))48 f1s = []49 for c in classes:50 tp = sum(p == c and g == c for p, g in zip(predictions, gold))51 fp = sum(p == c and g != c for p, g in zip(predictions, gold))52 fn = sum(p != c and g == c for p, g in zip(predictions, gold))53 prec = tp / (tp + fp) if (tp + fp) > 0 else 054 rec = tp / (tp + fn) if (tp + fn) > 0 else 055 f1 = 2 * prec * rec / (prec + rec) if (prec + rec) > 0 else 056 f1s.append(f1)57 return sum(f1s) / len(f1s)58```5960## Common pitfalls6162- Applying accuracy instead of macro F1-score for the highly imbalanced AMIGOS dataset, which violates the paper's explicit protocol.63- Mixing subject-dependent and subject-independent evaluation splits (SEED-series use fixed trial splits per participant, AMIGOS uses leave-one-participant-out).64- Failing to vary the number of labeled samples per class (m ∈ {1,3,5,7,10,25}) when reporting semi-supervised results, as the protocol requires evaluation across multiple label scarcity levels.6566## Evidence (verbatim from paper)6768> Since the class distributions are almost balanced in the SEED-series datasets, accuracy is selected as the evaluation metric. In AMIGOS, we adopt the same leave-one-participant-out protocol for training and testing data splits... As the class distribution is very imbalanced, we use the F1-score (mean F1-score for both classes) as the evaluation metric as suggested in [13].6970## Citation7172```bibtex73@misc{zhang2022parse,74 title={PARSE: Pairwise Alignment of Representations in Semi-Supervised EEG Learning for Emotion Recognition},75 author={Zhang et al. (2022)},76 year={2022},77 note={arXiv:2202.05400}78}79```8081- arXiv: 2202.05400