UARK-AICV / MEGANet

[WACV 2024] An implementation of MEGANet for polyp segmentation with multi-scale edge-guided attention
https://arxiv.org/abs/2309.03329
43 stars 3 forks source link
edge-guided polyp-segmentation wacv2024

MEGANet: Multi-Scale Edge-Guided Attention Network for Weak Boundary Polyp Segmentation (WACV 2024)

Nhat-Tan Bui · Dinh-Hieu Hoang · Quang-Thuc Nguyen · Minh-Triet Tran . Ngan Le

arXiv . open access

Introduction

Efficient polyp segmentation in healthcare plays a critical role in enabling early diagnosis of colorectal cancer. However, the segmentation of polyps presents numerous challenges, including the intricate distribution of backgrounds, variations in polyp sizes and shapes, and indistinct boundaries. Defining the boundary between the foreground (i.e. polyp itself) and the background (surrounding tissue) is difficult. To mitigate these challenges, we propose **M**ulti-Scale **E**dge-**G**uided **A**ttention Network (MEGANet) tailored specifically for polyp segmentation within colonoscopy images. This network draws inspiration from the fusion of a classical edge detection technique with an attention mechanism. By combining these techniques, MEGANet effectively preserves high-frequency information, notably edges and boundaries, which tend to erode as neural networks deepen. MEGANet is designed as an end-to-end framework, encompassing three key modules: an encoder, which is responsible for capturing and abstracting the features from the input image, a decoder, which focuses on salient features, and the Edge-Guided Attention module (EGA) that employs the Laplacian Operator to accentuate polyp boundaries. Extensive experiments, both qualitative and quantitative, on five benchmark datasets, demonstrate that our MEGANet outperforms other existing SOTA methods under six evaluation metrics. #### Note that our model has been renamed. This means EGANet in the code file is now MEGANet in the paper. ## Prerequisites ## Datasets and Trained Models ## Usage ### Training ``` python train.py --trainsize "training size" --train_path "path to train dataset" --train_save "path to save checkpoint" ``` ### Testing ``` python test.py --testsize "testing size" --pth_path "path to checkpoint" ``` ### Evaluating ``` python predict_score.py ``` ## Predictions ## Citation ``` @InProceedings{Bui_2024_WACV, author = {Bui, Nhat-Tan and Hoang, Dinh-Hieu and Nguyen, Quang-Thuc and Tran, Minh-Triet and Le, Ngan}, title = {MEGANet: Multi-Scale Edge-Guided Attention Network for Weak Boundary Polyp Segmentation}, booktitle = {Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision (WACV)}, month = {January}, year = {2024}, pages = {7985-7994} } ``` ## Acknowledgment A part of this code is adapted from these previous works: [PraNet](https://github.com/DengPingFan/PraNet), [CCBANet](https://github.com/ntcongvn/CCBANet) and [UACANet](https://github.com/plemeri/UACANet). ## FAQ If you have any questions, please feel free to create an issue on this repository or contact us at / .