kinderseg
Code used in KinderSeg project: Zughayyar, I., et al. (2025). A FastSurfer Database for Age-Specific Brain Volumes in Healthy Children: A Tool for Quantifying Brain Volume Alterations in Pediatric Patients.
Science Score: 67.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 20 DOI reference(s) in README -
✓Academic publication links
Links to: wiley.com -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (11.0%) to scientific vocabulary
Repository
Code used in KinderSeg project: Zughayyar, I., et al. (2025). A FastSurfer Database for Age-Specific Brain Volumes in Healthy Children: A Tool for Quantifying Brain Volume Alterations in Pediatric Patients.
Basic Info
- Host: GitHub
- Owner: ibrazug
- License: mit
- Language: Python
- Default Branch: main
- Homepage: https://doi.org/10.31219/osf.io/dw7p4
- Size: 6.1 MB
Statistics
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 2
- Releases: 2
Metadata Files
README.md
KinderSeg: FastSurfer Database for Age-Specific Brain Volumes in Healthy Children
Code for the paper:
``` Zughayyar, I., Bauer, M., Güttler, C., de Almeida Marcelino, A.L., Kühne, F., Buss, C., Heim, C., Aigner, A., Tietze, A. and Dell'Orco, A. (2025), A FastSurfer Database for Age-Specific Brain Volumes in Healthy Children: A Tool for Quantifying Localized and Global Brain Volume Alterations in Pediatric Patients. Brain Behav, 15: e70689. https://doi.org/10.1002/brb3.70689

Run with Docker
git clone https://github.com/ibrazug/kinderseg.git
cd kinderseg/Docker
cp </path/to/your/license.txt> .
docker build -t kinderseg .
docker run --gpus all --rm \
-v <nifti_data>:/data \
-v <output_dir>:/output \
kinderseg \
--age <age> \
--threads <threads, optional, default=4>
IMPORTANT NOTE: --threads is used to define the number of threads in total. not per hemisphere.
nifti_data can be either a directory containing NIfTI files or a single NIfTI file. The output will be saved in the output directory in a subdirectory named after the input NIfTI file, without the extension. Example:
docker run --gpus all --rm \
-v $PWD/sub-001/ses-01/anat/sub-001_ses-01_T1w.nii.gz:/data/sub-001_ses-01_T1w.nii.gz \
-v ./output:/output \
kinderseg --age 12
Run with Apptainer/Singularity
```bash git clone https://github.com/ibrazug/kinderseg.git cd kinderseg/Docker cp . # copy your FreeSurfer license into this folder docker build -t kinderseg . apptainer build kinderseg.sif docker-daemon://kinderseg:latest
Run the container with proper mounting:
apptainer run --nv kinderseg.sif \
-B
Notes:
- Use relative paths (
./data,./output) instead of$PWDto avoid mount errors. - Bind all
-Boptions before the image name (kinderseg.sif).
Requirements
- At least 5 GB of RAM
- GPU (optional, but recommended)
- a valid FreeSurfer license: you can get one for free by clicking here.
- we also provided Docker.amd version for AMD chips.
Dataset Statistics
| Dataset | N° in total | Ex (QC) | N° after QC | Ex (SC) | N° after SC | |--------------|-------------|---------|-------------|---------|-------------| | HBN | 170 | 21 | 149 | 10 | 139 | | LOC | 125 | 32 | 93 | 1 | 92 | | Kids2Health | 211 | 5 | 206 | 1 | 205 | | Total | 506 | 58 | 448 | 12 | 436 |
MRI Segmentation and Volumetric Analysis of the dataset subjects
MRI Post-processing
- DICOM data converted to NIfTI format using
dcm2niixand Python version 3.9 was used for data manipulation
Segmentation Tools
FreeSurfer v7.4: Ran on a Slurm cluster with a 16-core Intel Xeon E5-2650 CPU, Utilized GNU Parallel for parallel processing
FastSurfer v2.3.3: Utilized FastSurferCNN pipeline on a workstation with an AMD 3970X CPU and NVIDIA GeForce RTX 3090 GPU
Data Analysis
- R version 4.1.2 used for analysis
- Libraries: ggplot2, tidyverse, viridis (R)
KinderSeg Module Files
The kinderseg directory contains the following key files and scripts:
metrics.py:- Implements metrics and evaluation methods for comparing segmented brain volumes.
- Includes the
DiceNiiRoisclass for calculating the Dice similarity coefficient between ROIs in NIfTI files. - Outputs a Pandas DataFrame with the Dice similarity between all ROIs.
- Implements metrics and evaluation methods for comparing segmented brain volumes.
sums.py:- Contains utility classes for summarizing region of interest (ROI) data and volume tables.
- Classes:
SumNiiRois: Summarizes ROIs as defined in thesumroi_mapping.csvfile and generates output NIfTI files.SumVolTable: Summarizes volume tables (from FastSurfer and FreeSurfer) based on mapped ROIs, creating CSV output.
- Uses parallel processing to speed up calculations and ROI summarization.
- Contains utility classes for summarizing region of interest (ROI) data and volume tables.
sumroi_mapping.csv:- A CSV file that contains mappings between raw ROIs and summarized ROIs.
- Supports mappings from VINN and FreeSurfer 7 (FS7) formats.
- Used by
sums.pyto transform and summarize volume data efficiently.
- A CSV file that contains mappings between raw ROIs and summarized ROIs.
Article Citation
To cite this work, please use the following reference:
Zughayyar, I., Bauer, M., Güttler, C., de Almeida Marcelino, A.L., Kühne, F., Buss, C., Heim, C., Aigner, A., Tietze, A. and Dell'Orco, A. (2025), A FastSurfer Database for Age-Specific Brain Volumes in Healthy Children: A Tool for Quantifying Localized and Global Brain Volume Alterations in Pediatric Patients. Brain Behav, 15: e70689. https://doi.org/10.1002/brb3.70689
@article{https://doi.org/10.1002/brb3.70689,
author = {Zughayyar, Ibrahim and Bauer, Martin and Güttler, Christopher and de Almeida Marcelino, Ana Luisa and Kühne, Fabienne and Buss, Claudia and Heim, Christine and Aigner, Annette and Tietze, Anna and Dell'Orco, Andrea},
title = {A FastSurfer Database for Age-Specific Brain Volumes in Healthy Children: A Tool for Quantifying Localized and Global Brain Volume Alterations in Pediatric Patients},
journal = {Brain and Behavior},
volume = {15},
number = {7},
pages = {e70689},
keywords = {automated segmentation, brain volumetry, FastSurfer, FreeSurfer, hemispheric asymmetries, neuroimaging, pediatric MRI},
doi = {https://doi.org/10.1002/brb3.70689},
url = {https://onlinelibrary.wiley.com/doi/abs/10.1002/brb3.70689},
eprint = {https://onlinelibrary.wiley.com/doi/pdf/10.1002/brb3.70689},
year = {2025}
}
TY - JOUR
T1 - A FastSurfer Database for Age-Specific Brain Volumes in Healthy Children: A Tool for Quantifying Localized and Global Brain Volume Alterations in Pediatric Patients
AU - Zughayyar, Ibrahim
AU - Bauer, Martin
AU - Güttler, Christopher
AU - de Almeida Marcelino, Ana Luisa
AU - Kühne, Fabienne
AU - Buss, Claudia
AU - Heim, Christine
AU - Aigner, Annette
AU - Tietze, Anna
AU - Dell'Orco, Andrea
Y1 - 2025/07/01
PY - 2025
DA - 2025/07/01
DO - https://doi.org/10.1002/brb3.70689
T2 - Brain and Behavior
JF - Brain and Behavior
JO - Brain and Behavior
JA - Brain Behav
SP - e70689
VL - 15
IS - 7
KW - automated segmentation
KW - brain volumetry
KW - FastSurfer
KW - FreeSurfer
KW - hemispheric asymmetries
KW - neuroimaging
KW - pediatric MRI
PB - John Wiley & Sons, Ltd
SN - 2162-3279
UR - https://doi.org/10.1002/brb3.70689
Y2 - 2025/08/08
Owner
- Name: Ibrahim Zughayyar
- Login: ibrazug
- Kind: user
- Repositories: 1
- Profile: https://github.com/ibrazug
Citation (CITATION.cff)
cff-version: 1.2.0
title: >-
KinderSeg: FastSurfer Database for Age-Specific Brain
Volumes in Healthy Children
message: >-
If you use this software, please cite it using the
metadata from this file.
type: software
authors:
- given-names: 'Ibrahim '
family-names: Zughayyar
email: ibrahim.zughayyar@gmail.com
orcid: 'https://orcid.org/0009-0000-4598-8161'
- given-names: 'Andrea '
family-names: Dell'Orco
orcid: 'https://orcid.org/0000-0002-3964-8360'
identifiers:
- type: doi
value: 10.5281/zenodo.12773962
repository-code: 'https://github.com/ibrazug/kinderseg/'
keywords:
- freesurfer
- fastsurfer
- neuroradiology
- pediatrics
license: MIT
commit: 63370e0a1179889e0cb0fd3db40f252eb4d2f528
version: v0.2
date-released: '2024-07-18'
preferred-citation:
type: article
authors:
- given-names: Ibrahim
family-names: Zughayyar
- given-names: Martin
family-names: Bauer
- given-names: Christopher
family-names: Güttler
- given-names: Ana Luísa
family-names: de Almeida Marcelino
- given-names: Fabienne
family-names: Kühne
- given-names: Claudia
family-names: Buss
- given-names: Christine
family-names: Heim
- given-names: Annette
family-names: Aigner
- given-names: Anna
family-names: Tietze
- given-names: Andrea
family-names: Dell'Orco
title: "A FastSurfer Database for Age-Specific Brain Volumes in Healthy Children: A Tool for Quantifying Localized and Global Brain Volume Alterations in Pediatric Patients"
journal: "Brain and Behavior"
volume: 15
article-number: e70689
year: 2025
doi: 10.1002/brb3.70689
url: 'https://doi.org/10.1002/brb3.70689'
GitHub Events
Total
- Create event: 3
- Release event: 1
- Issues event: 6
- Issue comment event: 4
- Push event: 28
- Pull request review event: 2
- Pull request review comment event: 1
- Pull request event: 5
Last Year
- Create event: 3
- Release event: 1
- Issues event: 6
- Issue comment event: 4
- Push event: 28
- Pull request review event: 2
- Pull request review comment event: 1
- Pull request event: 5