Evaluates few-shot learning methods for decoding brain activation maps from fMRI data. It probes a model's ability to classify cognitive tasks using very limited labeled examples (1 or 5 per class) by randomly sampling novel classes and instances. Use when the user wants to benchmark on IBC dataset, or asks about evaluating this task. Reports accuracy.
Scanned 9/11/2026
Install to Claude Code
npx -y skills add qhjqhj00/research-skills-pool --skill fewshot-fmri-decoding-eval --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Fewshot Fmri Decoding Eval?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/qhjqhj00-fewshot-fmri-decoding-eval)More formats (shields.io, HTML) on the badges page.
---
name: fewshot-fmri-decoding-eval
description: Evaluates few-shot learning methods for decoding brain activation maps from fMRI data. It probes a model's ability to classify cognitive tasks using very limited labeled examples (1 or 5 per class) by randomly sampling novel classes and instances. Use when the user wants to benchmark on IBC dataset, or asks about evaluating this task. Reports accuracy.
metadata:
skill_kind: dataset_eval
source_arxiv: 2010.12500
bibtex_key: bontonou2020fewshot
confidence: high
---
# fewshot-fmri-decoding-eval
> Few-shot Decoding of Brain Activation Maps — Bontonou et al. (2020) (arXiv:2010.12500, 2020)
## What this evaluates
Evaluates few-shot learning methods for decoding brain activation maps from fMRI data. It probes a model's ability to classify cognitive tasks using very limited labeled examples (1 or 5 per class) by randomly sampling novel classes and instances.
## Datasets
- **IBC dataset** — total 2120; splits: train (-1), val (-1), test (-1); repo https://github.com/mbonto/fewshot_neuroimaging_classification
## Metrics
- `accuracy` **(primary)** — range: [0, 1]
- Classification accuracy averaged over 10,000 randomly synthesized few-shot tasks. Each task consists of a support set (1 or 5 shots per class) and a query set (15 samples per class) from 5 novel classes.
## Input / output format
**Input**: fMRI brain activation maps (processed through backbones like MLP, GNN, or CNN) for a support set of labeled examples and a query set of unlabeled examples from 5 novel cognitive task classes.
**Output**: Class label prediction for each query sample from the 5 novel classes.
## Scoring recipe
```python
def compute_accuracy(predictions, labels, n_tasks=10000, shots=5):
correct = 0
total = 0
for _ in range(n_tasks):
support, query = sample_fewshot_task(classes, shots=shots)
preds = model.predict(query, support)
correct += sum(p == l for p, l in zip(preds, query.labels))
total += len(query.labels)
return correct / total
```
## Common pitfalls
- Tasks are synthesized on-the-fly by randomly sampling classes and samples, so results are averaged over 10,000 random tasks rather than evaluated on a fixed test set.
- Hyperparameters are tuned on a validation split of 500 tasks, not directly on the test/novel split.
- The baseline uses raw features with Nearest Class Mean (NCM), while few-shot methods use learned backbones, making direct comparison sensitive to feature extraction quality.
## Evidence (verbatim from paper)
> Following the trend in few-shot learning, we consider the two most common case studies: 5-way 5-shot 15-query and 5-way 1-shot 15-query tasks. In practice, other settings could be studied depending on the application at stake. The tasks are synthesized by randomly sampling classes and samples in these classes. To obtain statistically robust results on the novel dataset, we average the accuracy over 10000 tasks and we report the confidence interval at 95%.
## Citation
```bibtex
@misc{bontonou2020fewshot,
title={Few-shot Decoding of Brain Activation Maps},
author={Bontonou et al. (2020)},
year={2020},
note={arXiv:2010.12500}
}
```
- arXiv: 2010.12500
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!