Introduction
The rapid onset of the COVID-19 pandemic highlighted a critical "cold start" problem in medical AI: deep learning models are notoriously data-hungry, yet clinicians require screening tools immediately when data is most scarce. While standard transfer learning is the typical solution for medical imaging, it often fails under extreme class imbalance—where thousands of "Normal" images exist but only a handful of confirmed "COVID-19" samples are available. This paper explores imprinted weights, a low-shot learning technique designed to enable accurate detection with as few as 20 images, significantly outperforming traditional methods in the early stages of data collection.
Methodology
The researchers utilized a ResNet-50 backbone, initially pre-trained on ImageNet and further specialized on a binary task (Normal vs. Pneumonia). The core innovation lies in the transition to a 3-class model using two key mechanisms:
- Weight Imprinting: Instead of initializing the final classification layer with random weights, the model "imprints" the weights for the COVID-19 class by taking the average mathematical embedding of the available COVID-19 samples.
- L2 Normalization: By applying L2 normalization to both image embeddings and weights in the final softmax layer, the classification task is transformed into a cosine similarity problem. The model measures the "angle" between a new image and the learned class templates rather than raw values.
Data and Experimental Setup
Experiments were conducted on the COVIDx-CXR dataset, which exemplifies the imbalance challenge: it contains 7,966 Normal and 5,469 Pneumonia training images, but only 507 COVID-19 samples. The authors evaluated "n-shot" performance by varying the number of COVID-19 training samples from 20 up to 300 to observe how the model scales with increasing data.
Results and Discussion
The imprinted weights approach demonstrated a clear advantage in data-scarce environments, particularly in terms of sensitivity and stability.
As shown in the performance curves, at n=20 shots, the imprinted model maintains a significant lead in COVID-19 sensitivity compared to a standard 3-class joint model. This advantage persists until approximately the 200-shot mark. Beyond 300 samples, the standard joint model begins to catch up as it gains enough data to learn complex decision boundaries that the more rigid "imprinted" templates might overlook.
A key insight from the study is the importance of pathological similarity. By training the base classifier on pneumonia first, the model learns a relevant "vocabulary" of lung infection features, making the subsequent imprinting of COVID-19 highly effective. Furthermore, the imprinted model reached peak performance faster and with fewer oscillations during training than the baseline.
Conclusion
Weight imprinting offers a powerful solution for rapid AI deployment during public health crises. While the benefits of this approach diminish as datasets grow large enough for standard joint training (typically >300 samples), its ability to provide high sensitivity with minimal data is invaluable for early-stage response. Future research could compare this method against more complex few-shot architectures like Prototypical or Relation Networks.
Summary updated