πŸ«€ Atrium Segmentation Project using U-Net

MAIN TOOL

Python

Techniques

Pytorch, UNET

INDUSTRY

Medical Imaging Analysis

πŸ“š About the Project

Β Project Overview

The goal of this project is to accurately segment the left atrium from MRI images, providing clear boundaries for better clinical assessments. The segmentation is achieved using a robustΒ U-NetΒ model, tailored for biomedical image segmentation tasks.

πŸ”Β Key Features:

  • End-to-End Pipeline: Data preprocessing, model training, evaluation, and visualization.
  • Advanced Data Augmentation: Enhances generalization using elastic transformations, rotations, and affine augmentations.
  • High-Quality Results: Achieves accurate segmentation even on complex cardiac MRI scans.

🧠 U-Net Architecture

The U-Net model is specifically designed for biomedical image segmentation tasks. Its architecture consists of an encoder-decoder structure with skip connections, ensuring the preservation of spatial information.

U-Net Architecture

Why U-Net?

  • Efficient for small datasets (common in medical imaging).
  • Maintains high accuracy through symmetric contracting and expanding paths.
  • Excellent for pixel-wise classification tasks like segmentation.

πŸš€Β Model Training

The training process involves feeding preprocessed MRI slices into the U-Net model with corresponding segmentation masks. Data augmentation techniques improve the model’s robustness to variations in input data.

Training Process

Training Details:

  • Optimizer:Β Adam
  • Loss Function:Β Dice Coefficient Loss
  • Epochs:Β 75
  • Batch Size:Β 16
  • Learning Rate:Β 0.001

πŸŽ₯Β Model Evaluation

Click on the image below to download and watch a sample MRI tested using the model

Click to Watch

πŸ—‚οΈΒ Project Structure

Atrium-Segmentation/ β”œβ”€β”€ data/ # Raw MRI images and labels β”œβ”€β”€ Preprocessed/ # Processed images and masks β”œβ”€β”€ models/ # Trained model weights β”œβ”€β”€ utils/ # Helper functions for data handling β”œβ”€β”€ notebooks/ # Jupyter notebooks for EDA and model training β”œβ”€β”€ Atrium Segmentation Evaluated on a subject.mp4 β”œβ”€β”€ Atrium Segmentation Training.png β”œβ”€β”€ unet.png └── README.md # Project documentation
Β 

πŸ“ˆΒ Results

The U-Net model achieves:

  • Dice Similarity Coefficient (DSC):Β 0.95

This result demonstrates the model’s strong ability to segment atrial structures accurately.


🀝 Contributing

Contributions are welcome! To contribute:

1. **Fork** the repository.  
2. **Create a new branch:**
git checkout -b feature-branch 
Β 

πŸ“œ License

This project is licensed under the MIT License. See the LICENSE file for details.

πŸ™Œ Acknowledgments

Special thanks to:

The medical imaging community for datasets and resources. U-Net developers for the foundational architecture. nibabel for neuroimaging data processing.