Create a Dataset
Add a dataset to a project and choose where its data comes from
A dataset holds a project's imaging data. Every project needs at least one, and you can add more, for example to keep training and test data apart or to keep each site's data separate in a multi-site project. All datasets in a project share the same labels and users.
Datasets are managed on the project's Edit page, which only project admins can open. Share and Crowdsourcing projects can have only one dataset.
Multi-site projects
To annotate data from several institutions with the same labels and team, for example for federated learning, create one dataset per site in the same project. You can then export annotations per dataset and train on each site's data separately.
Create a dataset
On the projects page, click Edit on the project card. From inside the annotator, open the Info panel and click Edit Project.
Under Datasets, choose the Dataset Source: where the data will come from. The source can't be changed later.
Click New Dataset. The dataset is created with the name "Dataset".
Enter a Dataset Name (up to 200 characters) and, optionally, a Dataset Description in Markdown.
If needed, open Processing Options and set them before loading data.
Dataset sources
| Source | How data arrives |
|---|---|
| Upload | Drag and drop in the browser, or the CLI |
| DICOM Push (C-STORE) | Sent from a PACS or modality over DICOM |
| Google Cloud Storage | Read from a GCS bucket |
| Amazon S3 | Read from an S3 bucket |
| Microsoft Azure Blob Storage | Read from an Azure container |
| Google Cloud Healthcare API | Read from a DICOM store |
Available sources depend on your MD.ai deployment. Unavailable sources are greyed out in the list. For example, DICOM Push and Google Cloud Healthcare API aren't available on public.md.ai.
You can also create a dataset from a subset of an existing one with label filters.
Supported data
DICOM. Instances with these modalities are loaded. Others, such as structured reports (SR), segmentations (SEG) and presentation states (PR), are skipped.
| Modality | Description | Modality | Description |
|---|---|---|---|
AR | Autorefraction | OP | Ophthalmic Photography |
CR | Computed Radiography | OPM | Ophthalmic Mapping |
CT | Computed Tomography | OPT | Ophthalmic Tomography |
DX | Digital Radiography | OPV | Ophthalmic Visual Field |
ES | Endoscopy | OT | Other |
IO | Intra-oral Radiography | PT | Positron Emission Tomography |
IOL | Intraocular Lens Data | RF | Radio Fluoroscopy |
IVOCT | Intravascular Optical Coherence Tomography | RG | Radiographic Imaging (film/screen) |
KER | Keratometry | SRF | Subjective Refraction |
LEN | Lensometry | US | Ultrasound |
MG | Mammography | XA | X-Ray Angiography |
MR | Magnetic Resonance | XC | External-camera Photography |
NM | Nuclear Medicine | OAM | Ophthalmic Axial Measurements |
OCT | Optical Coherence Tomography (non-ophthalmic) |
Images: JPEG, PNG and BMP.
Videos: MP4, MPEG, MOV, AVI, WebM and Ogg, and any file with an H.264 or HEVC stream. Files are recognized by their content, not their extension. Videos can only be loaded into Upload datasets; cloud storage sources load DICOM and images only, and skip archive files. See Annotating videos.
Organizing images and videos
MD.ai stores everything as DICOM, so images and videos are wrapped in a DICOM exam > series > image hierarchy. Use folders to control the grouping:
| Data | Folder structure | Result |
|---|---|---|
| Images | [root_folder/]<exam_folder>/<series_folder>/<image_file> | Images in the same series folder form a series |
| Videos | [root_folder/]<exam_folder>/<video_file> | Each video is a series in its exam |
The root folder is optional. Without the folder structure, each image or video becomes its own exam.
Processing options
Open Processing Options on the dataset to change how data is processed. Set them before you load data: they apply to data loaded afterwards. For cloud sources, they can't be changed after the bucket or store is connected.
| Option | Upload | GCS, S3, Azure | DICOM Push | Healthcare API |
|---|---|---|---|---|
Order Exams By | ✓ | ✓ | ✓ | ✓ |
Ignore Secondary Capture | ✓ | ✓ | ✓ | ✓ |
Filename Preset | ✓ | ✓ | ||
Frame Rate [video only] | ✓ | |||
Duplicate UID Policy | ✓ |
Order exams by
Each exam gets a permanent number in its dataset, used for navigation and assignments. Order Exams By decides how numbers are given:
| Option | Numbering |
|---|---|
Default | In upload order. Existing exams are never renumbered. |
Patient ID, Patient Name, Study Date/Time, Study Description | Sorted by that field. Existing exams are renumbered when a later upload sorts ahead of them. |
Random | New exams are numbered randomly among themselves, after the exams already there. |
If you assign exams by number, use Default or Random, so later uploads don't renumber exams
that are already assigned.
Ignore secondary capture
Skips DICOM Secondary Capture images. Secondary captures are often screenshots with burned-in patient information, so this helps with de-identification.
Filename preset
Builds the DICOM hierarchy for JPEG and PNG images from a filename pattern. Only shown when your deployment defines presets.
Frame rate
The number of frames per second extracted from videos. By default, the video's own frame rate is kept; you can only lower it.
Duplicate UID policy
Controls what happens when DICOM Push receives an instance whose UID already exists:
Strict(default): accepted only if all its DICOM tags match the existing instance.Pixel Data Only: replaces the existing instance if the pixel data is unchanged. This also affects other datasets that contain the instance.
Dataset access
Dataset Access controls who sees a dataset:
Project-Wide(default): visible to everyone in the project, subject to their assignments.Restricted: visible only to project admins and the dataset's creator.
Access can't be changed in Share, Education and Crowdsourcing projects.
Track processing
After data arrives, MD.ai processes it in the background: it reads each file, builds the exam hierarchy and generates thumbnails. The dataset shows live progress, with an estimate of the time left and a table of any files that failed.
Processing History lists every past processing run. Click a run to see its steps, duration and errors.
If processing seems stuck, see Troubleshooting.
Rename or delete a dataset
Project admins and the dataset's creator can rename a dataset by editing its Dataset Name.
To delete a dataset, open its More Options (⋯) menu, choose Delete Dataset, and type the dataset name to confirm. This deletes all of its data, annotations and model outputs, and can't be undone.
You can't delete a dataset while it is processing, or a DICOM Push dataset while it is unlocked.
In a cloned project, datasets can only be added or changed if the original project allows it.