This repository contains tools for generating synthetic non-contrast CT datasets of intracranial hemorrhage (ICH). These datasets are designed to be used for developing, testing, and evaluating AI detection devices.
Intracranial hemorrhage (ICH) is a life-threatening brain bleed requiring immediate medical care. AI-powered Computer-Aided Triage (CADt) devices can accelerate diagnosis by analyzing emergency room CT scans (e.g., Rapid ICH K221456).
However, a significant data gap exists for pediatric patients. ICH occurs less frequently in children, leading to a scarcity of annotated pediatric data. An AI model trained predominantly on adults may perform poorly on pediatric scans, potentially delaying time-sensitive treatment for children.
To address this data availability challenge, InSilicoICH supplements real patient data with in silico (computer-simulated) data. By using realistic computational human phantoms and physics-based CT simulations, we can generate perfectly-labeled datasets at a fraction of the cost and time required for manual annotation of real data.
Our simulation pipeline combines several state-of-the-art components:
- Digital Phantoms: We use the MIDA phantom1 and the NIHPD head phantoms 23, which are detailed, anatomically-realistic patient-based models of the head.
- Hemorrhage Insertion: A knowledge-based algorithm inserts synthetic hemorrhages into the phantoms. This algorithm controls the placement, shape, volume, and attenuation based on models from real hemorrhage segmentation data.
- Physics-Based CT Simulation: The final phantom, complete with the synthetic hemorrhage, is imaged using XCIST, a realistic X-ray CT simulation framework that models the entire image acquisition process.
The tool currently supports three major hemorrhage subtypes:
- Intraparenchymal (IPH)
- Epidural (EDH)
- Subdural (SDH)
Intraventricular (IVH) and subarachnoid (SAH) hemorrhages are underdevelopment here.
The simulation is highly customizable, allowing you to control dozens of parameters.
-
Patient Characteristics
- Phantom Identifier: Select a specific phantom from the cohort.
- Age:
6.5 - 38 years(based on the available phantom library).
-
Lesion Characteristics
- Hemorrhage Type:
IPH,SDH,EDH, orNone. - Hemorrhage Volume:
0 - 100 mL. - Intensity (Attenuation):
-30 - 100 HU. - Mass Effect:
TrueorFalse. - Edema:
0 - 15 voxels(IPH only).
- Hemorrhage Type:
-
Acquisition Characteristics
- X-ray Tube Current:
10 - 1500 mA. - X-ray Tube Peak Voltage:
70 - 140 kVp. - Reconstruction FOV:
100 - 500 mm. - Reconstruction Kernel: e.g.,
Soft,Standard,Bone. - View Count: Number of projection views (e.g.,
1000).
- X-ray Tube Current:
-
Output & Metadata
- Random Seed: For reproducibility.
- Image & Mask Locations: Control where output files are saved.
Below are example outputs using the MIDA phantom, showing the simulated CT images and the corresponding ground truth segmentation masks.
Simulated CT Images with ICH
Ground Truth Segmentation Masks
For worked examples and tutorials on how to use the included functions and tools to generate phantoms with ICH and all relevant parameters, please refer to the notebooks folder.
- Python (tested on versions >=3.11 and <3.13)
- We recommend using a
condaorvenvvirtual environment.
Install Directly
Install the package directly from GitHub using pip:
pip install git+https://github.com/DIDSR/InSilicoICH.gitInstall from GitHub Clone
-
Clone the repository:
git clone https://github.com/DIDSR/InSilicoICH.git cd InSilicoICH -
Install dependencies:
pip install .
Footnotes
-
U.S. Food and Drug Administration. (2023). MIDA: A Multimodal Imaging-Based Model of the Human Head and Neck (RST24NO05.01). https://cdrh-rst.fda.gov/mida-multimodal-imaging-based-model-human-head-and-neck ↩
-
VS Fonov, AC Evans, K Botteron, CR Almli, RC McKinstry, DL Collins and BDCG, Unbiased average age-appropriate atlases for pediatric studies, NeuroImage, In Press, ISSN 1053–8119, DOI: 10.1016/j.neuroimage.2010.07.033 ↩
-
VS Fonov, AC Evans, RC McKinstry, CR Almli and DL Collins Unbiased nonlinear average age-appropriate brain templates from birth to adulthood NeuroImage, Volume 47, Supplement 1, July 2009, Page S102 Organization for Human Brain Mapping 2009 Annual Meeting, DOI: 10.1016/S1053-8119(09)70884-5 ↩



