This repository contains several Jupyter Notebooks that demonstrate various tasks including segmentation, classification, and multi-task learning using different model backbones on the Breast Ultrasound Images Dataset.
This project utilizes several neural network architectures for the following tasks:
- Segmentation: Identifying the regions of interest in breast ultrasound images.
- Classification: Classifying the breast ultrasound images into categories.
- Multi-task learning: Performing both segmentation and classification simultaneously.
The models used in this project are:
- ResNet50
- VGG16
- SwinV2 Tiny
- VMamba
Our paper on this project has been accepted by the 2024 7th International Conference on Pattern Recognition and Artificial Intelligence. The paper will be available online after the conference.
The dataset used in this project is the Breast Ultrasound Images Dataset, which can be downloaded from Kaggle. After downloading, please place all images in the Dataset_BUSI_with_GT
folder.
The project is divided into several notebooks, each targeting specific tasks with different model backbones:
- reset_segmentation.ipynb: Segmentation using a U-Net with ResNet50 backbone.
- resnet_multi.ipynb: Multi-task classification and segmentation using ResNet50.
- resnet_classification.ipynb: Classification using ResNet50.
- vgg_segmentation.ipynb: Segmentation using a U-Net with VGG16 backbone.
- vgg_multi.ipynb: Multi-task classification and segmentation using VGG16.
- vgg_classification.ipynb: Classification using VGG16.
- swinv2tiny_segmentation.ipynb: Segmentation using a U-Net with SwinV2 Tiny backbone.
- swinv2tiny_multi.ipynb: Multi-task classification and segmentation using SwinV2 Tiny.
- swinv2tiny_classification.ipynb: Classification using SwinV2 Tiny.
- vmamba_segmentation.ipynb: Segmentation using a U-Net with VMamba backbone.
- vmamba_multi.ipynb: Multi-task classification and segmentation using VMamba.
- vmamba_classification.ipynb: Classification using VMamba.
- ROC curve.ipynb: Drawing the ROC curve for all the classification models.
- Clone the repository:
git clone https://github.com/kuanhuang0624/buscseg.git
cd buscseg
- Follow the VMamba GitHub to install requirements.
- Download the Breast Ultrasound Images Dataset from Kaggle and place all images in the Dataset_BUSI_with_GT folder.
- Run the desired notebook using Jupyter Notebook or Jupyter Lab.
We utilized the code from the VMamba GitHub Repository and are grateful for their excellent work. If you use the VMamba model, please cite the following paper:
@misc{liu2024vmambavisualstatespace,
title={VMamba: Visual State Space Model},
author={Yue Liu and Yunjie Tian and Yuzhong Zhao and Hongtian Yu and Lingxi Xie and Yaowei Wang and Qixiang Ye and Yunfan Liu},
year={2024},
eprint={2401.10166},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2401.10166},
}
This project is licensed under the MIT License - see the LICENSE file for details.