Using DICOM Files as Input for a 3D CNN

6 views (last 30 days)
Raquel
Raquel on 28 Feb 2025
Answered: aditi bagora on 4 Mar 2025
I am working on a project with tomosynthesis images of patients with breast cancer, in which I will use 3D CNNs. At the moment, I am selecting the slices where the cancer is visible, and my file format is DICOM. To use 3D CNNs, should I save the selected slices in a new single DICOM file, or should I save each slice in a separate file? What is the best format to use as input for my 3D CNN?
Additionally, to save the selected slices, which DICOM file metadata should I modify? I am modifying only the SOPInstanceUID and the PixelData.

Answers (1)

aditi bagora
aditi bagora on 4 Mar 2025
I would suggest to create a separate DICOM file with the selected images and then pass this 3D pixel data i.e. stack of images of selected slices as an input to the 3D CNN. In order to create a new file along with the pixeldata following metdata fields needs to be updated:
  • SeriesInstanceUID : Identifier for a new series
  • SOPInstanceUID: Within the series identifies the instance
  • InstanceNumber: Identifies the slice number in stack of slices.
However, if your goal is for the 3D CNN to learn how to classify slices based on the presence of cancer, it might be beneficial not to filter the data. Providing the entire series, including slices both with and without visible cancer, will enable the CNN to learn to distinguish between slices that contain cancer and those that do not. Otherwise, by only supplying positive samples, you limit the model's ability to differentiate.

Categories

Find more on DICOM Format in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!