Skip to content

Repository files navigation

Overview

This project focuses on developing a deep learning framework for predicting three-dimensional radiotherapy dose distributions for prostate cancer treatment planning.

The pipeline uses a 3D U-Net implemented using the MONAI framework and is trained on processed clinical radiotherapy datasets containing:

  • CT scans,
  • Planning Target Volume (PTV) masks,
  • Bladder Signed Distance Maps (SDMs),
  • Anorectum Signed Distance Maps (SDMs),
  • and clinically delivered radiation dose distributions.

The long-term objective of the project is to explore physics-guided deep learning strategies for radiotherapy treatment planning.


Project Motivation

Modern radiotherapy planning is a highly complex optimization problem involving:

  • accurate tumor dose coverage,
  • sparing of healthy organs-at-risk (OARs),
  • spatial dose falloff,
  • and clinically meaningful dose distributions.

Traditional voxel-wise regression losses such as Mean Squared Error (MSE) do not explicitly encode these physical and clinical constraints.

This project therefore aims to investigate hybrid approaches combining:

  • deep learning,
  • geometric anatomical priors,
  • and physics-guided optimization strategies.

Current Pipeline

Input Channels

For each patient, the model uses four aligned volumetric input channels:

Channel Description
0000 CT Scan
0001 Planning Target Volume (PTV)
0002 Bladder Signed Distance Map (SDM)
0003 Anorectum Signed Distance Map (SDM)

The target output is the clinically delivered 3D radiation dose distribution.


Data Preprocessing

The preprocessing pipeline performs:

  • DICOM/NIfTI loading,
  • channel formatting,
  • voxel spacing resampling,
  • CT intensity normalization,
  • multi-channel tensor concatenation,
  • and volumetric patch extraction.

All patient volumes are resampled to a uniform voxel spacing:

TARGET_SPACING = (1.27, 1.27, 2.5)

Training is performed using random 3D patches:

PATCH_SIZE = (96, 96, 96)

Model Architecture

The current implementation uses a MONAI-based 3D U-Net architecture:

UNet(
    spatial_dims=3,
    in_channels=4,
    out_channels=1,
    channels=(16, 32, 64, 128, 256),
    strides=(2, 2, 2, 2),
    num_res_units=2,
)

The network predicts a continuous-valued radiation dose distribution.


Loss Function

The baseline implementation currently uses voxel-wise Mean Squared Error (MSE):

loss = MSE(predicted_dose, true_dose)

Future work aims to extend this toward physics-guided losses incorporating:

  • PTV coverage constraints,
  • organ-at-risk penalties,
  • smoothness regularization,
  • distance-aware weighting,
  • and DVH-based optimization.

Inference Pipeline

Inference is performed using MONAI sliding-window inference to handle large 3D patient volumes efficiently.

The workflow:

  1. Loads the trained model,
  2. Applies preprocessing transforms,
  3. Performs patch-wise volumetric inference,
  4. Reconstructs the full dose distribution,
  5. Saves predicted dose volumes in NIfTI format.

Clinical Evaluation Metrics

Current validation metrics include:

  • Validation Mean Squared Error (MSE),
  • PTV D95,
  • Mean Bladder Dose,
  • Mean Rectum Dose.

These metrics provide clinically interpretable measures of:

  • target coverage,
  • and organ-at-risk sparing.

Future Directions

Planned future developments include:

  • Physics-guided loss formulations,
  • Dose Volume Histogram (DVH)-based optimization,
  • Beam geometry integration,
  • Attention-based architectures,
  • Improved volumetric sampling strategies,
  • and clinically informed evaluation pipelines.

Frameworks and Libraries

This project currently uses:

  • PyTorch
  • MONAI
  • NumPy
  • SimpleITK

Research Context

This work is being developed as part of a research internship in deep learning-assisted radiation treatment planning.

The project lies at the intersection of:

  • medical physics,
  • deep learning,
  • optimization,
  • and computational radiotherapy.

Disclaimer

This project is currently intended for research and educational purposes only. It is not validated for clinical deployment or patient treatment use.

Shield: CC BY-NC-ND 4.0

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 4.0 International License.

CC BY-NC-ND 4.0

About

Physics Based Radiotherapy Dose Prediction with Deep Learning

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages