Related Experiment Video
Updated: Jun 25, 2025

Inter-Brain Synchrony in Open-Ended Collaborative Learning: An fNIRS-Hyperscanning Study
Published on: July 21, 2021
ninjaCap: A fully customizable and 3D printable headgear for fNIRS and EEG brain imaging
Significance:
Accurate sensor placement is vital for non-invasive brain imaging, particularly for functional near infrared spectroscopy (fNIRS) and diffuse optical tomography (DOT), which lack standardized layouts like EEG. Custom, manually prepared probe layouts on textile caps are often imprecise and labor-intensive.
Aim:
We introduce a method for creating personalized, 3D-printed headgear, enabling accurate translation of 3D brain coordinates to 2D printable panels for custom fNIRS and EEG sensor layouts, reducing costs and manual labor.
Approach:
Our approach uses atlas-based or subject-specific head models and a spring-relaxation algorithm for flattening 3D coordinates onto 2D panels, using 10-5 EEG coordinates for reference. This process ensures geometrical fidelity, crucial for accurate probe placement. Probe geometries and holder types are customizable and printed directly on the cap, making the approach agnostic to instrument manufacturers and probe types.
Results:
Our ninjaCap method offers 2.2±1.5 mm probe placement accuracy. Over the last five years, we have developed and validated this approach with over 50 cap models and 500 participants. A cloud-based ninjaCap generation pipeline along with detailed instructions is now available at openfnirs.org.
Conclusions:
The ninjaCap marks a significant advancement in creating individualized neuroimaging caps, reducing costs and labor while improving probe placement accuracy, thereby reducing variability in research.

