8000 GitHub - braindatalab/CaliBrain: Python framework to measure uncertainty estimation and calibration in EEG/MEG inverse source imaging.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

braindatalab/CaliBrain

Repository files navigation

Convert this to readme.rst format:

CaliBrain

Uncertainty Calibration in Brain Source Imaging

CaliBrain Logo

commits Documentation (latest)


Overview

CaliBrain is a Python framework for uncertainty estimation and calibration in EEG/MEG inverse source imaging.

It supports both:

  • Regression tasks (continuous source estimates)
  • Classification tasks (binary activation detection)

Key Features:

  • Setup of source space, BEM model, forward solution, and leadfield matrices.
  • Simulation of source activity and sensor-level measurements with controllable noise and source orientation (fixed or free).
  • Solving the inverse problem and reconstructing source time courses.
  • Estimation and visualization of confidence intervals.
  • Calibration analysis by comparing expected vs. observed confidence levels.

Supported Inverse Methods

  • Gamma-MAP
  • eLORETA
  • Bayesian Minimum Norm

Calibration Tasks

1. Regression (Confidence Interval Calibration)

  • Check if true simulated source currents fall within predicted confidence intervals.
  • Plot calibration curve (Expected vs. Observed coverage).
  • Well-calibrated models should follow the diagonal.

2. Classification (Activation Calibration)

  • Assess if estimated activation probabilities match true activation frequencies.
  • Plot calibration curve for activation detection.
  • Ideal calibration follows the diagonal.

Main Parameters

  • Estimator: Gamma-MAP, eLORETA, Bayesian Minimum Norm
  • Orientation: Fixed or Free
  • Noise Type: Oracle, Baseline, Cross-Validation, Joint Learning
  • SNR Level (α): Control regularization strength
  • Active Sources (nnz): Number of nonzero sources

un-ca-param


Outcomes

  • Regression Calibration Curves (confidence intervals)
  • Classification Calibration Curves (activation probabilities)
  • Quantitative Calibration Metrics

Installation

Please see the Installation Guide.


Usage

Please see the Usage Guide.


Contributing

We welcome contributions! Please see CONTRIBUTING.md.


License

This project is licensed under the GNU Affero General Public License v3.0. See LICENSE.


Citation

If you use CaliBrain, please cite relevant works in EEG/MEG source imaging and uncertainty quantification.

About

Python framework to measure uncertainty estimation and calibration in EEG/MEG inverse source imaging.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages

0