This project aims to develop an AI-driven segmentation approach tailored for breast tumor delineation, focusing on efficiency and interpretability. The primary objective is to design an Attention UNet model capable of achieving high segmentation accuracy while addressing computational constraints commonly encountered in medical imaging tasks.
git clone https://github.com/TianQijia/Explainable_AttentionUnet.git
cd Explainable_AttentionUnet
pip install -r requirements.txt
jupyter notebook
finalcode.ipynb file and open it.data directory.finalcode.ipynb notebook. Follow the instructions provided in the notebook to train the model.finalcode.ipynb notebook. Follow the instructions provided in the notebook to evaluate the model.finalcode.ipynb notebook to generate visualizations. This includes visualizing GradCAM and other interpretability methods to understand the model's decision-making process.The dataset used for training is the Breast Ultrasound Images Dataset from Kaggle, containing 780 images of breast ultrasounds with annotations for tumor regions.
The model architecture is based on the UNet framework, enhanced with attention mechanisms to improve interpretability and segmentation accuracy. The model includes Encoder Blocks, Decoder Blocks, and Attention Gates.
The model's performance is evaluated using metrics such as Dice coefficient, Intersection over Union (IoU), accuracy, sensitivity, and specificity.
The model demonstrates high segmentation accuracy, with extensive experimentation revealing stable performance metrics. The use of interpretability methods like GradCAM provides valuable insights into the model's decision-making process.
Despite its promise, the model has limitations such as a small dataset size and instability in training performance. Future work involves expanding the dataset, improving evaluation metrics, and integrating advanced architectures like Transformers.
Contributions are welcome! Please fork the repository and submit pull requests.
This project is licensed under the MIT License. See the LICENSE file for details.
Special thanks to the project supervisors Dr. Can Li and contributors for their guidance and support.
For source code, please refer to the source code.