Project 7 - Improved 3D U-Net for Prostate MRI Segmentation (Abhya Garg- 48299785)#285
Open
abhyagarg22 wants to merge 63 commits intoshakes76:mainfrom
Open
Project 7 - Improved 3D U-Net for Prostate MRI Segmentation (Abhya Garg- 48299785)#285abhyagarg22 wants to merge 63 commits intoshakes76:mainfrom
abhyagarg22 wants to merge 63 commits intoshakes76:mainfrom
Conversation
…tternAnalysis-2025 into topic-recognition
Collaborator
|
<This is an initial inspection, no action is required at this point.> File Organizing:
Problem Solving:
Model and functions:
Code design: Good. Code comment and docstring:
Difficulty: Hard. Additional Comments:
|
Author
|
I have now fixed the readme files and about the dice test score I have
pasted the picture in the readme and you can see it in my report as well.
My dice score test result was able to show in the report I submitted on
blackboard. For instance, here is my test score again.
…On Sat, Nov 22, 2025 at 7:10 AM Zhao WANG ***@***.***> wrote:
*wangzhaomxy* left a comment (shakes76/PatternAnalysis-2025#285)
<#285 (comment)>
*<This is an initial inspection, no action is required at this point.>*
*File Organizing:*
-
*The README file is currently placed in the wrong directory. Please move
it to your project folder at
/PatternAnalysis-2025/recognition/unet_3d_segmentation instead of the
current root directory: /PatternAnalysis-2025/recognition/.*
- *In addition, please restore the original README file in the root
folder /PatternAnalysis-2025/ and /PatternAnalysis-2025/recognition/.*
- *Kindly make these corrections; otherwise, the merge request will be
rejected.*
*Problem Solving:*
- The algorithm solves the problem appropriately.
- Accuracy in testing dataset (Dice): *No test results in the report.
Just show training and validation results.*
*Model and functions:*
- It correctly uses PyTorch to construct the improved UNet 3D models
and functions.
- Good data augmentation.
- Properly split and use the train/validation/test datasets.
*Code design:* Good.
*Code comment and docstring:*
- Good code comments
- Good function docstrings
- *Minimal* header block
*Difficulty:* Hard.
*Additional Comments:*
- Good commits
- *The README design can be more structured but the report content is
comprehensive. Well done!*
—
Reply to this email directly, view it on GitHub
<#285 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BJCKZBYTYW2X3TS2DZBLBKT3555SVAVCNFSM6AAAAACLLOFGVOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTKNRUGU4TMNJSHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Author
|
I even added dice score output log again as Screenshot.png |
Collaborator
Marking
Marked as per the due date and changes after which aren't necessarily allowed to contribute to grade for fairness. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Author
|
Hi I already fixed and made the requested changes to fix the file locations. Kindly have a look at them and please reconsider the feedback action require marks. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Improved 3D U-Net for Prostate MRI Segmentation
This project implements an Improved 3D U-Net architecture to perform multi-class segmentation of prostate MRI scans from the HipMRI Study Open Dataset.
The goal is to automatically identify and delineate anatomical structures (prostate zones, bladder, rectum, etc.) from volumetric MRI data, reducing the need for time-consuming manual annotations.
The model enhances the traditional 3D U-Net by incorporating residual connections, dropout regularization, and a multi-class Dice + Cross Entropy loss, leading to more stable training and better generalization across classes.
Training was conducted on the UQ Rangpur GPU Cluster (A100) for 15 epochs, with consistent convergence and reliable segmentation quality.
Key Features
/home/groups/comp3710/HipMRI_Study_open/(semantic MRI & labels)Implementation Highlights
modules.py: Defines the Improved 3D U-Net modeldataset.py: Loads and normalizes 3D MRI and label volumestrain.py: Handles GPU training and Dice evaluation per epochpredict.py: Generates predicted segmentation maps and saves resultstrain_gpu.slurm: SLURM job script for automated GPU executionvisualization/: Contains final loss and Dice coefficient plots, segmentation visualsResults
The Dice coefficient improved steadily across epochs, reaching 0.74, confirming effective learning and boundary recognition for prostate structures.
Conclusion
The Improved 3D U-Net demonstrated robust segmentation capabilities on 3D MRI data.
Residual learning, dropout, and Dice optimization contributed to smoother boundary detection and stable convergence.
With further fine-tuning (e.g., extended epochs or data augmentation), the model can achieve near-clinical accuracy for prostate delineation tasks.