Lesion Search with Self-supervised Learning

Kristin Qi, Jiali Cheng, Daniel HaehnSubmission to Tiny Papers @ ICLR

In the world of medical imaging, a single CT scan can contain a wealth of information. However, finding "similar cases" to help with a diagnosis is often a manual, needle-in-a-haystack search. A new approach introduces a way to automate this process using self-supervised learning, potentially giving radiologists a powerful new tool for clinical decision support.

The Challenge of Lesion Retrieval

Radiologists spend a significant portion of their day interpreting lesions—nodules, tumors, and surface-level abnormalities. These features vary wildly in size, shape, and texture. Traditionally, finding similar historical cases to aid in diagnosis required either manual searching or Content-Based Image Retrieval (CBIR) systems that relied on expensive, human-labeled datasets.

The challenge is two-fold:

  1. Intra-class variation: Two lesions of the same type might look completely different.
  2. Inter-class similarity: Two different types of lesions might look nearly identical if captured at similar stages of disease progression.

Researchers sought to build a system that learns the "language" of lesions directly from the data, bypassing the need for manual labels while maintaining high retrieval accuracy.

Methods and Architecture

To address these challenges, the researchers built their pipeline on SimCLR, a popular self-supervised contrastive learning framework. Instead of learning from explicit labels (e.g., "this is a lung nodule"), the model learns by looking at different augmented versions of the same image and recognizing that they represent the same underlying pathology.

Overview of the lesion retrieval pipeline

Key technical components of the system include:

  • Frangi Filter Preprocessing: A Hessian-based filter specifically designed to enhance tube-like structures (vessels) and blobs (lesions) while suppressing background noise. This domain-specific preprocessing proved crucial for performance.
  • ResNet-18 Backbone: A standard, efficient neural network architecture used for feature extraction.
  • GeM (Generalized-Mean) Pooling: Unlike standard global average pooling, GeM pooling allows the model to focus on more salient, localized features within the image. This is followed by L2 normalization to prepare the data for similarity searching.
  • The Application: Beyond the model, the team built a web-based DICOM viewer using AngularJS and Flask. This allows clinicians to drag and drop medical images, annotate them, and immediately search for similar cases in a repository.
The web-based DICOM viewer application

Datasets

The study utilized the DeepLesion dataset, a massive, publicly available repository from the NIH Clinical Center. It contains over 33,000 CT images from nearly 4,500 unique patients. Its inclusion of a wide variety of lesions across the body (lungs, liver, lymph nodes, etc.) makes it a universal benchmark for lesion detection and retrieval.

Key Insights

  • Preprocessing is the "Secret Sauce": The most striking finding was the impact of the Frangi filter. Adding this filter to the SimCLR baseline jumped the classification accuracy from 64.52% to 80.39%. This suggests that for medical imaging, "raw" deep learning benefits immensely from classical computer vision techniques that highlight biological structures.
  • Contrastive over Generative: The authors compared SimCLR (a contrastive method) against a Variational AutoEncoder (VAE, a generative method). SimCLR consistently outperformed the VAE in retrieval metrics, suggesting that learning to distinguish between images is more useful for search than learning to reconstruct them.
  • The "Same-Patient" Advantage: Retrieval precision was significantly higher when searching for lesions within the same patient (intra-patient) compared to across different patients, highlighting the high degree of visual consistency in how a disease manifests within an individual.

Results

The researchers evaluated their system on two fronts: classification (identifying the lesion type) and retrieval (finding similar images).

  • Classification: The best-performing model (SimCLR + Frangi + GeM) achieved an accuracy of 80.73% and an F1-score of 77.83%.
  • Retrieval (CBIR): In the "All-patients" category, the SimCLR approach achieved a mean Average Precision (mAP@10) of 0.729, comfortably beating the VAE baseline of 0.688.
  • Precision: For same-patient searches, the model achieved a Precision@1 of 0.757, meaning the very first result returned was a correct match over 75% of the time.

Limitations and Future Work

While the results are promising, a few hurdles remain. The Frangi filter relies on specific parameters that might need to be tuned for different datasets or imaging modalities, potentially limiting its out-of-the-box generalizability. Furthermore, the study compared the method against standard baselines (SimCLR/VAE) but did not compare it against more recent, specialized medical SSL architectures. Finally, it remains to be seen how well this specific pipeline performs on non-CT medical data, such as MRI or Ultrasound.

By making their code and application open-source, the authors encourage the community to integrate these SSL-based search tools into clinical workflows and continue refining the technology.

Summary updated

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.
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