16th IEEE International Conference on Signal Processing (ICSP) · 2022

Contrastive Pretraining for Pulmonary Pathology Classification

Learning Representations from 3D CT Patches

A. Djahnine, Popoff Alexandre, E. Jupin-Delevaux, Cottin Vincent, Nempont Olivier, Boussel Loic

INSA Lyon (CREATIS) · Hospices Civils de Lyon · Philips

90.33%
max weighted accuracy, SimCLR fine-tuned
77.75%
best ImageNet initialization
65.87%
best random initialization
3D
chest CT patches
CT patch encoder, SimCLR pretraining architecture, transformation comparisons, and embedding visualizations
Research overview. Select the figure to view it at full resolution.

Abstract

Learning useful representations is a key task for supervised, unsupervised, and self-supervised algorithms. These latter methods have shown great promise for learning meaningful visual representations from unlabeled data, which can then be readily used for downstream tasks (e.g., classification). Recently proposed contrastive self-supervised learning methods have shown high performance on natural images. In this work, we show the usefulness of such approaches in the medical domain when used for 3D chest CT patch pathology classification. We observe that pretraining on unlabeled domain-specific medical images using contrastive self-supervised learning with specific data transformation significantly improves the accuracy of our 3D patch-based pathology classifiers. Specifically, we show that contrastive pretraining outperforms end-to-end supervised training by a large margin (weighted accuracy: 90.33 % vs 77.75 %, respectively).

Keywords: Training; Pathology; Visualization; Three-dimensional displays; Computed tomography; Signal processing algorithms; Self-supervised learning

Method

The research overview pairs a CT patch encoder with a SimCLR projection head for pretraining and a classification head for downstream evaluation. It compares transformations and weight-initialization strategies.

Two transformed views of a CT patch are used during contrastive pretraining. The projection head serves representation learning, while a separate classification head evaluates the learned features. The overview also visualizes the resulting patch embeddings.

2.1SimCLR pretraining

  1. Patch sampling. Random 50 × 50 × 50 patches containing at least 80% lung.
  2. Two correlated views. A transformation module randomly alters each patch twice.
  3. Encoder. CT-Net, a 2.5D alternative to 3D ResNets built on a 2D ResNet-50, producing a 2048-d representation and allowing ImageNet initialization for comparison.
  4. Contrastive loss. A 2-layer projection head maps representations to 1024-d; the NT-Xent loss pulls the two views together and pushes other patches apart. The head is discarded after pretraining.
SimCLR diagram with two augmented views, an encoder and a projection head
Figure 1: SimCLR contrastive learning: two random transformations produce correlated views; the encoder f and projection head g are trained to maximize their agreement.

2.2Tailoring the transformations to CT

Eight transformations common in medical imaging were evaluated in pairs (56 configurations), each with a frozen pretrained encoder over 10 runs: mirror, 90° rotation, zoom, colour distortion, Gaussian blur, Laplacian, lung masking and a random lung mask from another patient.

Four CT slices showing the four studied thoracic signs
Figure 2: The thoracic signs to classify: (a) low lung density (emphysema, cysts), (b) consolidation, (c) nodules, (d) interstitial pattern.

Experiments

The research figure compares weight initialization, augmentation, and whether pretrained encoder weights remain frozen. Maximum and average weighted accuracy are reported separately.

Results

Table 1: Classification comparison reproduced from the research overview

InitializationFrozen encoderAugmentationMaximum weighted accuracy (%)Average weighted accuracy (%)
RandomNoNo64.8962.9 ± 1.36
RandomNoYes65.8764.0 ± 1.86
ImageNetNoNo76.8373.45 ± 0.93
ImageNetNoYes77.7576.6 ± 0.80
SimCLRYesYes89.8988.5 ± 1.03
SimCLR, fine-tunedNoYes90.3389.3 ± 0.56

The ± values follow the notation in the supplied research figure.

Key findings

  • Pretraining: both SimCLR configurations exceed the ImageNet and random-initialization configurations shown.
  • Fine-tuning: updating the pretrained encoder yields the highest reported average weighted accuracy.
  • Augmentation: the figure also compares CT transformations, showing that the pretraining setup includes choices beyond encoder architecture.

Transformation study

  • Zoom matters most: the best transformation pairs all include zoom (mirror then zoom: 82.0% weighted accuracy with a frozen encoder).
  • Avoid intensity changes: Gaussian blur, Laplacian and colour distortion degrade accuracy, since Hounsfield values carry the diagnostic signal. The final recipe is random mask, mirror, 90° rotation and zoom.
t-SNE projection, Random initialization
(a) Random initialization
t-SNE projection, ImageNet initialization
(b) ImageNet initialization
t-SNE projection, SimCLR, frozen
(c) SimCLR, frozen
t-SNE projection, SimCLR, fine-tuned
(d) SimCLR, fine-tuned

Figure 3: t-SNE projections of test-patch representations. Green NORMAL, blue NOD, orange EMPH, red COND, black INTER. Signs form distinct clusters only with SimCLR pretraining.

F1 score versus percentage of labelled data for four initialization strategies
Figure 4: Patch-classifier F1 score versus the fraction of labelled data used for fine-tuning. SimCLR fine-tuning leads at every level of supervision.

Conclusions & limitations

Domain-specific representation learning is the central contribution. The comparison concerns 3D patch classification; it should not be read as a patient-level diagnostic accuracy result.

Related links

Conference paper · Original research overview and comparison table.

BibTeX

@inproceedings{djahnine2022contrastivepretraining,
  title = {Tailored 3D CT contrastive pretraining to improve pulmonary pathology classification},
  author = {A. Djahnine and Popoff Alexandre and E. Jupin-Delevaux and Cottin Vincent and Nempont Olivier and Boussel Loic},
  booktitle = {16th IEEE International Conference on Signal Processing (ICSP)},
  year = {2022},
  doi = {10.1109/ICSP56322.2022.9965218}
}

More research