Endoscopic Artefact Detection using Cascade R-CNN based Model

Zhimiao Yu, Yuanfan GuoEndocv@isbi 2020

Abstract

Endoscopic imaging is critical for minimally invasive procedures, yet it is frequently compromised by various artifacts such as motion blur, bubbles, and specular reflections. This paper presents a robust detection framework based on the Cascade R-CNN architecture to identify eight distinct artifact classes. By integrating a ResNet101 backbone with a Feature Pyramid Network (FPN), adjusting anchor scales, and employing strategic data augmentation through random resizing, the model achieves state-of-the-art performance on the Endoscopic Artefact Detection (EAD) challenge dataset. Key innovations include a modified loss function to mitigate confusion between visually similar artifacts and the use of Soft-NMS for improved detection in crowded scenes.

Introduction

Endoscopy is a fundamental tool for early cancer detection and surgical intervention. However, the video feed is often "noisy," cluttered with artifacts like motion blur, specular reflections, bubbles, and blood. These artifacts not only distract clinicians but also hinder automated post-analysis tools essential for follow-up care. A significant challenge is that a single frame often contains multiple, overlapping artifact types. Furthermore, many artifacts exhibit high visual mimicry; for instance, bubbles and specular reflections both appear as small, bright spots, complicating classification.

Examples of endoscopic artifacts including blur, contrast issues, and bubbles, illustrating the visual complexity of the detection task.

Methods

The proposed system utilizes the Cascade R-CNN architecture, which employs a sequence of detectors trained with progressively higher IoU thresholds to refine bounding box predictions.

Architecture and Post-processing

The model uses a ResNet101 backbone combined with a Feature Pyramid Network (FPN) to handle objects at varying scales. Base anchor areas were adjusted (from $16^2$ to $512^2$) to better match the physical size of endoscopic artifacts. To improve detection in crowded scenes, standard Non-Maximum Suppression (NMS) was replaced with Soft-NMS, which decays the scores of overlapping boxes rather than deleting them.

The Cascade R-CNN architecture, utilizing a ResNet101 backbone and Feature Pyramid Network (FPN) for multi-stage object detection.

Training Strategies

A critical technical insight involved addressing the scale mismatch between training (~500px) and test (~1000px) images. By implementing random resizing (scaling between 512 and 1024 pixels) during training, the model's ability to detect small artifacts ($AP_{small}$) was significantly enhanced. Additionally, to combat the confusion between specularity, bubbles, and general artifacts, the loss function was modified to penalize these specific misclassifications more heavily.

Results and Discussion

The model was evaluated on the Endoscopic Artefact Detection (EAD) dataset, which includes 2,200 annotated frames across 8 classes. The baseline model achieved a mean Average Precision (mAP) of 0.260. The introduction of resizing augmentation improved the mAP to 0.277. On the official challenge leaderboard, the model achieved a dscore of 0.2603 on the 50% test set.

The model demonstrated exceptional performance in detecting "instruments" (0.569 AP) and "contrast" issues (0.422 AP), likely due to their distinct visual signatures. However, "blur" remains a difficult class to detect accurately, possibly due to inconsistent annotation or the inherent difficulty in defining blurry region boundaries. While the modified loss function helped distinguish between "spot-like" artifacts, it resulted in a slight trade-off in overall mAP.

Conclusion

This study demonstrates that a Cascade R-CNN based approach, combined with scale-aware data augmentation and targeted loss functions, can effectively detect diverse endoscopic artifacts. Future work will focus on specialized classifiers for visually similar spot-like artifacts and more advanced feature extraction backbones to improve the detection of motion blur.

Summary updated

BibTeX
@inproceedings{yu2020endoscopic,
  author = {Zhimiao Yu and Yuanfan Guo},
  title = {{Endoscopic Artefact Detection using Cascade R-CNN based Model}},
  booktitle = {Endocv@isbi},
  year = {2020},
}
Figure