Endoscopy Artefact Detection and Segmentation using Deep Convolutional Neural Network

Haijian Chen, Chenyu Lian, Liansheng WangEndoCV@ISBI 2020

Introduction

Endoscopy is a cornerstone of modern medicine, particularly for early cancer detection. However, the video feed is often corrupted by various artifacts: bubbles, blood, motion blur, and specular reflections (glare). These artifacts can obscure critical tissue details or lead to false positives. This paper presents a robust deep learning pipeline for the EAD2020 challenge, designed to automatically detect and segment these artifacts. By leveraging advanced architectures like Cascade R-CNN and DeepLab v3+, the authors provide a framework to clean up clinical footage, potentially improving diagnostic accuracy.

Methodology

The authors treat detection and segmentation as two independent problems, allowing for specialized optimization of each task.

Object Detection

The detection component utilizes Cascade R-CNN with a ResNetXt-101 backbone and Feature Pyramid Networks (FPN). To handle the challenge of small objects common in endoscopic frames, the authors increased the Non-Maximum Suppression (NMS) threshold to 0.8 and employed Soft-NMS. This prevents the model from accidentally discarding overlapping bounding boxes. They also experimented with Hyper Task Cascade (HTC) to improve information flow between detection and segmentation branches.

Semantic Segmentation

For segmentation, the authors chose DeepLab v3+ with a ResNet101 backbone. A key contribution is the use of a hybrid Binary Cross Entropy (BCE) + Dice loss function. While BCE handles pixel-wise classification, Dice loss specifically addresses class imbalance by focusing on the overlap between predicted and ground-truth masks.

Comparison of original endoscopic image (left), predicted segmentation mask (center), and ground truth (right).

Dataset and Training

The study utilizes the EAD2020 dataset, which includes eight classes: specularity, artifact, bubbles, saturation, contrast, blur, instrument, and blood. The data is highly skewed; for example, 'specularity' makes up 36.2% of the data, while 'instrument' is only 1.7%. To combat this, the authors ensured a class-balanced validation split. Multi-scale training was also employed, with images resized to both $512 \times 512$ and $1024 \times 1024$ to improve generalization across different resolutions.

Results and Discussion

The proposed models achieved competitive results on the validation set. The Cascade R-CNN reached a mean Average Precision (mAP) of 0.267. 'Instruments' were the easiest to detect (mAP ~0.65) due to their distinct shapes, whereas 'specularity' and 'bubbles' remained challenging.

In segmentation, the DeepLab v3+ model using BCE+Dice loss achieved an F1 score of 0.6728 and an IoU of 0.5523, significantly outperforming standard U-Net configurations. The authors found that combining BCE and Dice loss provided the best balance of precision and recall, as BCE alone is often dominated by the background.

Multi-class detection and segmentation results across various endoscopic frames, demonstrating the model's ability to handle diverse artifact types.

Conclusion

While the pipeline demonstrates strong performance, limitations remain regarding small object detection and the "generalization gap" between different types of endoscopic equipment. Future work will focus on improving robustness to out-of-sample data and refining the detection of minute artifacts. Despite these hurdles, this work represents a significant step toward automated, real-time artifact removal in clinical endoscopy.

Summary updated

BibTeX
@inproceedings{chen2020endoscopy,
  author = {Haijian Chen and Chenyu Lian and Liansheng Wang},
  title = {{Endoscopy Artefact Detection and Segmentation using Deep Convolutional Neural Network}},
  booktitle = {EndoCV@ISBI},
  year = {2020},
  url = {https://openreview.net/forum?id=TXYydjIwX-j},
}
Figure