Lesion Search with Self-supervised Learning

Kristin Qi, Jiali Cheng, Daniel Haehn · OpenReview

Abstract

Content-based image retrieval (CBIR) with self-supervised learning (SSL) accelerates clinicians' interpretation of similar images without manual annotations. We develop a CBIR from the contrastive learning SimCLR and incorporate a generalized-mean (GeM) pooling followed by L2 normalization to classify lesion types and retrieve similar images before clinicians' analysis. Results have shown improved performance. We additionally build an open-source application for image analysis and retrieval. The application is easy to integrate, relieving manual efforts and suggesting the potential to support clinicians' everyday activities.

Introduction

Radiologists face a daunting task: interpreting lesions that vary wildly in size, shape, and texture. When a clinician identifies a suspicious nodule, comparing it to confirmed historical cases is a critical step in diagnosis. However, building a "search engine" for lesions is notoriously difficult. Traditional supervised learning requires massive amounts of expert-annotated data, which is expensive and time-consuming to produce. Furthermore, medical images suffer from high intra-class variation (the same type of lesion can look very different) and high inter-class similarity (different diseases can look nearly identical at certain stages).

This paper introduces an open-source tool that leverages self-supervised learning (SSL) to bridge this gap, allowing for effective content-based image retrieval (CBIR) without the need for thousands of manual labels.

Methodology

The researchers developed a pipeline that combines modern computer vision frameworks with specialized medical image preprocessing to extract meaningful features from unlabeled data.

Self-Supervised Learning (SimCLR)

Instead of relying on labels, the model (ResNet-18) utilizes the SimCLR contrastive learning framework. The model learns by comparing different augmented versions of the same image. By recognizing that a rotated, cropped, or blurred version of a lesion remains the same object, the network builds a robust internal representation of lesion characteristics.

Frangi Filter Preprocessing

A key domain-specific innovation in this pipeline is the application of a Hessian-based Frangi filter to raw CT scans. This mathematical filter is designed to highlight tube-like and blob-like structures—such as vessels and lesions—while suppressing background noise. This step effectively "cleans" the signal for the neural network.

Advanced Feature Aggregation

To improve retrieval performance, the authors replaced standard Global Average Pooling with Generalized-Mean (GeM) pooling followed by L2 normalization. GeM is a tunable pooling layer that helps the model focus on the most salient features of an image, which is particularly effective for distinguishing subtle differences in medical search tasks.

Clinical Application

The system is packaged into a web-based DICOM (Digital Imaging and Communications in Medicine) viewer built with AngularJS and Flask. This allows clinicians to drag and drop images and search the database for similar cases in real-time.

Experimental Setup and Dataset

The study utilized the DeepLesion dataset from the NIH Clinical Center, a massive repository containing 33,688 CT images from 4,477 unique patients. The dataset includes a wide variety of lesions, including lung, liver, and lymph nodes, providing a rigorous test for the model's generalization capabilities.

Results and Key Insights

The authors evaluated the method on two fronts: classification (identifying the lesion type) and retrieval (finding similar images).

  • Classification Accuracy: The best-performing configuration (SimCLR + Frangi + GeM) achieved 80.73% accuracy, a nearly 16-point improvement over the standard SimCLR baseline (~64%).
  • Retrieval Performance: Using Mean Average Precision at 10 (mAP@10), the SimCLR approach scored 0.729, significantly outperforming the Variational Autoencoder (VAE) generative approach (0.688).
  • Precision: In the "same-patient" retrieval task, the model achieved a Precision@1 of 0.757, meaning the top search result was a correct match over 75% of the time.

The Impact of Preprocessing

The most striking finding was the impact of the Frangi filter. The jump in accuracy suggests that for medical imaging, deep learning benefits immensely from classical mathematical filters that highlight relevant biological structures. Additionally, the results confirmed that contrastive methods (SimCLR) are superior to generative methods (VAE) for retrieval tasks, as learning to distinguish between images is more useful for search than learning to reconstruct them.

Limitations and Future Work

While the results are promising, several hurdles remain. The Frangi filter requires careful parameter tuning, which may vary between datasets. Furthermore, while the model performed exceptionally well at finding similar lesions within the same patient, cross-patient retrieval remains a significant challenge due to biological diversity. Future work will focus on testing the pipeline against more recent SSL architectures and evaluating its performance on other modalities like MRI or Ultrasound.

Summary updated

BibTeX
@misc{qi2023lesion,
  author = {Kristin Qi and Jiali Cheng and Daniel Haehn},
  title = {{Lesion Search with Self-supervised Learning}},
  year = {2023},
  eprint = {2311.11014},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.11014},
}
Figure