Leveraging Old Knowledge to Continually Learn New Classes in Medical Images

Evelyn Chee, Mong-Li Lee, Wynne Hsu

Abstract

Deep learning models in medical imaging often face the challenge of class-incremental learning, where new diseases or stages are introduced over time. Standard models suffer from "catastrophic forgetting," losing performance on previously learned classes as they adapt to new data. This paper presents a novel framework designed specifically for medical imaging that utilizes a dynamic architecture and a dual-objective training strategy. By freezing old parameters and expanding high-level feature extractors, the model preserves existing knowledge. Crucially, it leverages overlapping clinical features between classes, leading to "negative forgetting"—a phenomenon where learning new classes actually improves performance on old ones. The framework demonstrates state-of-the-art performance across histology, retinal, and skin lesion datasets.

Introduction

In clinical practice, medical knowledge is dynamic. New diseases emerge, and rare conditions may initially lack sufficient data for robust AI training. When standard Deep Neural Networks (DNNs) are updated with new classes, they typically experience catastrophic forgetting, where the weights optimized for previous tasks are overwritten. This is particularly problematic in medicine, where diagnostic categories often share underlying features or represent different stages of a single disease progression. This paper introduces a framework that treats medical classes not as independent entities, but as a cumulative knowledge base, allowing models to learn new concepts more efficiently while maintaining—or even improving—performance on old ones.

Methods

The proposed framework addresses incremental learning through two primary mechanisms:

1. Dynamic Architecture

The model employs a modular design to manage knowledge expansion:

  • Shared Low-Level Extractor: A base layer captures fundamental textures and shapes common across medical images.
  • Expanding High-Level Extractors: For each new set of classes, a new "branch" or high-level feature extractor is added.
  • Parameter Freezing: To prevent forgetting, the low-level extractor and all previous high-level branches are frozen. Only the newest branch and the final classifier are updated during the current learning phase.
  • Unified Classifier: The final layer expands its weight matrix to integrate features from the new branch while retaining connections to old features.

2. Dual-Objective Training

To balance new learning with memory retention, the model alternates between two loss functions:

  • $L^{new}$: Focuses on learning discriminative features for incoming data using standard classification loss, distillation loss (to maintain consistency with the previous model state), and margin loss (to ensure separation between old and new class representations).
  • $L^{old}$: Addresses the class imbalance inherent in keeping only a small "memory" of old samples. It utilizes a class-balanced focal loss to heavily penalize misclassifications of under-represented old classes.

Datasets and Clinical Context

The framework was validated on three distinct medical imaging tasks:

  • CCH5000: 5,000 histological images of human colorectal cancer across 8 tissue categories.
  • EyePACS: Over 35,000 retinal images for Diabetic Retinopathy (DR) grading. This dataset is highly imbalanced, with a majority of "no disease" cases.
  • HAM10000: Over 10,000 dermatoscopic images of skin lesions across 7 types.
Representative images from the CCH5000 (histology) and EyePACS (retinal) datasets showing various tissue types and disease stages.

The choice of these datasets highlights the importance of feature overlap. For instance, as shown in the figure above, the "proliferative" stage of DR contains clinical signs like microaneurysms and hemorrhages that are also present in "mild" and "severe" stages. The model can use features learned from "simple stroma" to help identify more complex tissue types later.

Key Results and Insights

The proposed method consistently outperformed state-of-the-art baselines (e.g., iCaRL, UCIR, DER) across all benchmarks:

  • EyePACS: Achieved an 11.7% accuracy boost over UCIR, with a "forgetting rate" of -0.2%, indicating that the model actually improved on old classes after learning new ones.
  • CCH5000: Showed a 2.5% increase in accuracy and a 1.6% reduction in forgetting.
  • HAM10000: Improved accuracy by 4.0% in challenging incremental settings.

A significant finding was the occurrence of "negative forgetting." By learning new, related classes, the model refined its understanding of previously learned ones. For example, learning the "mild" stage of a disease helped the model better define the boundaries for the "moderate" stage it had learned previously. Visualizations using Grad-CAM confirmed that the model's attention became more clinically relevant over time, focusing on specific markers like microaneurysms that were initially overlooked.

Conclusion and Future Work

This research demonstrates that class-incremental learning in medical imaging can be optimized by leveraging the cumulative nature of medical knowledge. While the dynamic architecture effectively prevents forgetting, it does lead to increased computational costs as the model grows. Future research will focus on optimizing branch expansion and developing better metrics to quantify the contribution of new features to the overall knowledge base. Additionally, exploring the limits of memory buffer sizes will be crucial for deploying these models in resource-constrained clinical environments.

Summary updated

BibTeX
@inproceedings{chee2023leveraging,
  author = {Evelyn Chee and Mong-Li Lee and Wynne Hsu},
  title = {{Leveraging Old Knowledge to Continually Learn New Classes in Medical Images}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i12.26659},
}
Figure