MIC-DKFZ/HD-BET
MRI brain extraction tool
What it solves
Brain extraction (also called skull stripping) is the step of separating brain tissue from the rest of an MRI scan, such as the skull, eyes, and skin. Standard tools often struggle with brain scans from tumor patients, where the anatomy is distorted, or with MRI sequences that are not the typical T1-weighted pre-contrast type. HD-BET is a brain extraction tool trained on a large, multicentric dataset that includes tumor cases and multiple MRI sequences, so it is designed to handle a wider range of real-world scans than earlier methods.
How it works
HD-BET uses an artificial neural network (specifically, an nnU-Net-based architecture) to analyse 3D MRI images and produce a brain mask for each scan. You run it from the command line, giving it an input image (or a folder of images) and an output location. It automatically downloads its pretrained model weights the first time you run it. The tool accepts NIfTI files (.nii.gz) and works with several MRI sequences, though it was trained on pre-/post-contrast T1-weighted, T2-weighted, and FLAIR images, which work best. Input images must be oriented to the MNI152 standard; you may need to reorient them first. HD-BET runs on GPU (fastest), MPS, or CPU, and by default uses test-time data augmentation (mirroring) to improve accuracy, which you can disable to speed up processing.
Who it's for
This is for researchers, radiologists, or anyone working with brain MRI data who needs a reliable, automated way to remove non-brain tissue before further analysis. It is especially useful when scans come from different machines or include tumor-related changes, because HD-BET was designed to be robust to those conditions. The tool is open-source and installable via pip, so it fits into existing Python-based imaging workflows.
Highlights
- Outperformed five common brain extraction tools (FSL BET, AFNI 3DSkullStrip, Brainsuite BSE, ROBEX, and BEaST) on multiple datasets.
- Trained on a large multicentric clinical trial covering 37 institutions, with a wide range of MRI hardware, acquisition parameters, pathologies, and treatment-related tissue changes.
- Works on pre-contrast T1-weighted, post-contrast T1-weighted, T2-weighted, and FLAIR sequences, and may also handle others.
- Fast: under 5 seconds per sequence on GPU; about 2 minutes on CPU with test-time augmentation disabled.
- Simple command-line usage for single files or batch processing of entire folders.
Related
- Project
- Project
- Project
- Project