Related Experiment Video
Updated: Feb 12, 2026

PIPEMAT-RS: Development and Validation of a Standardized MATLAB Pipeline for Resting-State EEG Preprocessing
Published on: June 6, 2025
The FieldTrip-SimBio pipeline for EEG forward solutions
Johannes Vorwerk1,2, Robert Oostenveld3,4, Maria Carla Piastra5
1Institute for Biomagnetism and Biosignalanalysis, University of Münster, Malmedyweg 15, 48149, Münster, Germany. j.vorwerk@uni-muenster.de.
This study introduces a user-friendly MATLAB pipeline for electroencephalography (EEG) source analysis using finite element method (FEM) head models. The pipeline enhances accuracy by employing five-compartment models, improving upon traditional three-compartment approaches for reliable EEG source reconstruction.
Area of Science:
- Neuroscience
- Computational Biology
- Biophysics
Background:
- Accurate electroencephalography (EEG) source analysis relies on solving the EEG forward problem.
- Multicompartment head models and the finite element method (FEM) offer high accuracy but are computationally intensive and complex to implement.
- Existing software solutions for FEM-based EEG analysis are often difficult to use, limiting wider research application.
Purpose of the Study:
- To develop and present a user-friendly, MATLAB-based pipeline for applying five-compartment head models with FEM in EEG source analysis.
- To integrate the SimBio FEM toolbox (St. Venant approach) into the FieldTrip toolbox for streamlined EEG analysis.
- To evaluate the accuracy and performance of the developed pipeline for EEG source localization.
Main Methods:
- Integration of the SimBio FEM solver with the FieldTrip toolbox.
- Development of a MATLAB pipeline for automated generation and application of five-compartment hexahedral head models (skin, skull, CSF, gray matter, white matter).
- Source localization of somatosensory evoked potentials (SEPs) using the pipeline and comparison with a detailed tetrahedral head model.
Main Results:
- The pipeline successfully localized the P20 component of SEPs with a high goodness of fit.
- The automatically generated five-compartment head model demonstrated accuracy comparable to a highly detailed four-compartment model.
- A significant improvement in accuracy was observed compared to commonly used three-compartment head models, highlighting the importance of modeling the cerebrospinal fluid (CSF) compartment.
Conclusions:
- The developed pipeline simplifies the use of five-compartment head models with FEM for EEG source analysis.
- The pipeline enhances the accuracy of solving the EEG forward problem, leading to more reliable EEG source reconstruction.
- This facilitates broader adoption of advanced FEM techniques in EEG research for improved brain activity localization.
Related Concept Videos
Ideal Solutions
General Properties of Solutions
Solution Formation
This selective...
Enthalpy of Solution
Standard Solutions
Blank Solutions
In some experimental cases, the reagents, solvents, or lab equipment used in...

