Skip to content

This repository provides a clean and modular implementation of the V-Net architecture, specifically designed for 3D volumetric medical image segmentation. It is ideal for tasks involving CT or MRI scans, such as organ or tumor segmentation, particularly where residual connections and Dice-based optimization are beneficial.

Notifications You must be signed in to change notification settings

InayaImtiyaz/V-Net

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 

Repository files navigation

V-Net

🧠 V-Net for 3D Medical Image Segmentation

This repository provides a clean and modular implementation of the V-Net architecture, specifically designed for 3D volumetric medical image segmentation. It is ideal for tasks involving CT or MRI scans, such as organ or tumor segmentation, particularly where residual connections and Dice-based optimization are beneficial.

πŸ₯ Application

This implementation has been tested on the Liver Tumor Segmentation (LiTS) dataset. It can be easily adapted to any 3D medical dataset in NIfTI or NumPy format.

πŸ“Œ Features

βœ… Residual V-Net architecture with full 3D convolutions βœ… Designed for volumetric input (NIfTI or .npy format) βœ… Optimized using soft Dice loss for segmentation accuracy βœ… Patch-based training for efficient GPU usage βœ… Model checkpointing and resumption support βœ… Visualizes 3D slices and predicted segmentations

🧱 Model Architecture

V-Net is built with a fully convolutional 3D encoder-decoder structure that incorporates residual learning, enabling better gradient flow and deeper representations.

Encoder: Residual Blocks β†’ 3D Convolution β†’ PReLU Activation β†’ Downsampling

Bottleneck: Deepest 3D feature representation with residual layers

Decoder: Up-convolution (transposed 3D conv) β†’ Residual Blocks β†’ Skip Connections

Output Layer: 1 Γ— 1 Γ— 1 1Γ—1Γ—1 convolution to generate voxel-wise predictions

Loss Function: Trained using Dice Loss, which is more robust to class imbalance β€” a common challenge in medical image segmentation tasks.

πŸ“Š Evaluation

Evaluate performance using metrics such as Dice Similarity Coefficient (DSC) and Intersection over Union (IoU). Visual tools are included to inspect slice-wise predictions and 3D overlays.

Trained on https://www.kaggle.com/datasets/andrewmvd/liver-tumor-segmentation

About

This repository provides a clean and modular implementation of the V-Net architecture, specifically designed for 3D volumetric medical image segmentation. It is ideal for tasks involving CT or MRI scans, such as organ or tumor segmentation, particularly where residual connections and Dice-based optimization are beneficial.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published