Code Monkey home page Code Monkey logo

eanet's Introduction

EANet: Iterative Edge Attention Network for Medical Image Segmentation

Awesome MIT License PRs Welcome

Authors: Kun Wang, Xiaohong Zhang, Xiangbo Zhang, Yuting Lu, Sheng Huang, Dan Yang

1.1. 🔥NEWS🔥 :

  • [2021/04/22]:fire: Release the inference code!
  • [2021/04/20] Create repository.

Video Demo

gif

Prerequisites

Clone repository

git clone https://github.com/DLWK/EANet.git
cd EANet/

Download dataset

Download the datasets and unzip them into data folder

Training & Evaluation

 cd train/
 python3 train.py

Overview

1.2. Abstract

Accurate and automatic segmentation of medical images can greatly assist the clinical diagnosis and analysis. However, it remains a challenging task due to (1) the diversity of scale in the medical image targets and (2) the complex context environments of medical images, including ambiguity of structural boundaries, complexity of shapes, and the heterogeneity of textures. To comprehensively tackle these challenges, we propose a novel and effective iterative edge attention network (EANet) for medical image segmentation with steps as follows. First, we propose a dynamic scale-aware context (DSC) module, which dynamically adjusts the receptive fields to extract multi-scale contextual information efficiently. Second, an edge-attention preservation (EAP) module is employed to guide effectively removes noise and helps the edge stream focus on processing only the boundary-related information. Finally, a multi-level pairwise regression (MPR) module is designed to combine the complementary edge and region information for refining the ambiguous structure. This iterative optimization helps to learn better representations and more accurate saliency maps. Extensive experimental results demonstrate that the proposed network achieves superior segmentation performance to state-of-the-art methods in four different challenging medical segmentation tasks, including lung nodule segmentation, COVID-19 infection segmentation, lung segmentation, and thyroid nodule segmentation.

Overview framework


Figure 1: Overview of the proposed EANet. Our network is in an encoder-decoder style, it consists of the VGG-19 feature encoder E1 ∼ E5, dynamic scale-aware context (DSC) module, edge attention preservation (EAP) module, the feature decoder D1 ∼ D5 and multilevel pairwise regression (MPR) module. HFF denotes hybrid feature fusion block, which is a component of MPR. The final prediction is the generated global map (Sg) after iterative optimization by combining edge information and region information. The Si, {i = 2, 3, 4, 5} indicates the feature map of the side-output laye.

1.3. State-of-the-art Approaches

  1. "CE-Net: Context encoder network for 2d medical image segmentation" TMI, 2019. doi:https://ieeexplore.ieee.org/abstract/document/8662594/
  2. "Recurrent Residual Convolutional Neural Network based on U-Net (R2U-Net) for Medical Image Segmentation" 2018. doi: https://arxiv.org/abs/1802.06955
  3. "Rethinking Atrous Convolution for Semantic Image Segmentation" IEEE TPAMI, 2018 doi: https://arxiv.org/abs/1706.05587
  4. "Unet++: A nested u-net architecture for medical image segmentation" IEEE TMI, 2019 doi: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7329239/
  5. "U-Net: Convolutional networks for biomed- ical image segmentation" MICCAI, 2015.
  6. "FCN8s:Fully Convolutional Networks for Semantic Segmentation" CVPR, 2015. doi:https://arxiv.org/abs/1411.4038

1.4. Visualization Results


Figure 2:Visual comparison of COVID-19 infection segmentation results, where the red and green labels indicate the predicted segmentation and ground truth, respectively.


Figure 3:The visual comparison of results on the TN-SCUI dataset, where the blue and green labels indicate the predicted segmentation and ground truth, respectively


Figure 4:Visual comparison of feature maps for showing the effect of multi-level pairwise regression module (MPR). D5 ∼ D1 denote the feature maps of each decoder block. The odd and even rows show the baseline results without or with MPR, respectively.

Citation

  • If you find this work is helpful, please cite our paper
@article{wang2022eanet,
  title={EANet: Iterative edge attention network for medical image segmentation},
  author={Wang, Kun and Zhang, Xiaohong and Zhang, Xiangbo and Lu, Yuting and Huang, Sheng and Yang, Dan},
  journal={Pattern Recognition},
  volume={127},
  pages={108636},
  year={2022},
  publisher={Elsevier}
}

⬆ back to top

eanet's People

Contributors

dlwk avatar isse-ailab avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

eanet's Issues

Some questions about the edge attention?

作者您好,请问您论文如下图所示的edge attention图是如何如何可视化出来的?我采用x = cv2.applyColorMap(x, cv2.COLORMAP_JET)进行可视化,但显示的并不是边界部分的特征,还是类似最后的分割结果的区域部分,可以请教下您是怎么进行可视化的吗,是直接对输出的ss进行可视化还是?

关于数据集的问题

作者大大你好,请问LIDC肺结节分割是用的哪个dataloader呢,LIDC数据集好像是3D的,模型好像输入是2D的,需要做怎样的处理才能用于训练呢,可以提供这部分处理的代码吗,或者有没有能参考的教程?谢谢

关于评价指标的问题,dice =0.0

作者你好,不好意思又来打扰你了,在每轮训练完成之后的测试部分,评价指标除了acc是正常的,其他指标均为0,我将pred和label保存下来,发现从图片上看无论位置和大小也比较相似,但指标却总为0,感觉很疑惑,大佬能给些建议吗?谢谢!

关于Decoder

论文中Decoder部分没有像传统的UNet结构使用自底向上结构,
而是使用了自顶向下结构,请问为什么要这样做啊,有没有消融实验可以对比一下。

数据集中的edge标签

很抱歉打扰作者大大,请问数据集中的edge标签是怎么获得的,我是用的是LUNA16数据集,标签只有mask图像,edge的边缘标签是怎么处理的,希望作者大大解答一下,万分感谢!

关于复现EANet的一些问题

感谢帅哥的开源代码,我是也是做图像分割方向的,所以才会来打扰帅哥。
帅哥的代码有清楚的注释,便于学习,实在是业内的良心。
由于之前问问题没有总结到位,几次打扰到您,实在是不好意思。由于缺少一些包,自己写了点评价指标的代码,现在代码可以实现训练验证了,但是想尽可能的复现帅哥的代码运用在自己的数据集上,所以还是想得到帅哥的源码。
缺少的包总结,如以下:1:utils.metric包。2:evaluation文件。
最后帅哥可以提供一份可以测试训练权重的代码吗,看了一下,现在的包里面只有训练和验证的代码,如果能够提供,那实在是太棒了。
最后祝帅哥天天开心,多发top期刊论文。

关于edge attention可视化

作者您好,请问您论文如下图所示的edge attention图是如何如何可视化出来的?是直接将特征图保存为灰度图然后进行色彩变化得到这种效果的吗?
图片
如果我想可视化的话是不是要将EANet/models /models.py中133行的 edge_out保存为图片?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.