Banner Banner

Cedalion tutorial: a Python-based framework for comprehensive analysis of multimodal fNIRS and DOT from the lab to the everyday world

Eike Middell
Laura B. Carlton
Shakiba Moradi
Tomás Codina
Thomas Fischer
Josef Cutler
Shannon M. Kelley
Jacqueline Behrendt
Theekshana Dissanayake
Nils Harmening
Meryem A. Yücel
David A. Boas
Alexander von Lühmann

August 14, 2026

Functional near-infrared spectroscopy (fNIRS) and diffuse optical 1 tomography (DOT) are rapidly evolving toward wearable, multimodal, data-driven, and artificial-intelligence-supported neuroimaging in the everyday world. However, current analytical tools are fragmented across platforms, limiting reproducibility, interoperability, and integration with modern machine learning (ML) workflows. Cedalion is a Python-based open-source framework designed to unify advanced model-based and data-driven analysis of multimodal fNIRS and DOT data within a reproducible, extensible, and community-driven environment. Cedalion integrates forward modeling, photogrammetric optode coregistration, signal processing, general linear model (GLM) analysis, DOT image reconstruction, and ML-based data-driven methods within a single standardized architecture based on the Python ecosystem. It adheres to SNIRF and BIDS standards, supports cloud-executable Jupyter notebooks, and provides containerized workflows for scalable, fully reproducible analysis pipelines that can be provided alongside original research publications. Cedalion connects established optical-neuroimaging pipelines with ML frameworks such as scikit-learn and PyTorch, enabling seamless multimodal fusion with electroencephalography (EEG), magnetoencephalography (MEG), and physiological data. It implements validated algorithms for signal quality assessment, motion correction, GLM modeling, and DOT reconstruction, complemented by modules for simulation, data augmentation, and multimodal physiology analysis. Automated documentation links each method to its source publication, and continuous-integration testing ensures robustness. This tutorial paper provides seven fully executable notebooks that demonstrate core features. Cedalion offers an open, transparent, and community-extensible foundation that supports reproducible, scalable, and cloud- and ML-ready fNIRS/ DOT workflows for laboratory-based and real-world neuroimaging.