Rethinking Bayesian Deep Learning Methods for Semi-Supervised Volumetric Medical Image Segmentation

Jianfeng Wang, Thomas LukasiewiczCVPR 2022

Abstract

Recently, several Bayesian deep learning methods have been proposed for semi-supervised medical image segmentation. Although they have achieved promising results on medical benchmarks, some problems are still existing. Firstly, their overall architectures belong to the discriminative models, and hence, in the early stage of training, they only use labeled data for training, which might make them overfit to the labeled data. Secondly, in fact, they are only partially based on Bayesian deep learning, as their overall architectures are not designed under the Bayesian framework. However, unifying the overall architecture under the Bayesian perspective can make the architecture have a rigorous theoretical basis, so that each part of the architecture can have a clear probabilistic interpretation. Therefore, to solve the problems, we propose a new generative Bayesian deep learning (GBDL) architecture. GBDL belongs to the generative models, whose target is to estimate the joint distribution of input medical volumes and their corresponding labels. Estimating the joint distribution implicitly involves the distribution of data, so both labeled and unlabeled data can be utilized in the early stage of training, which alleviates the potential overfitting problem. Besides, GBDL is completely designed under the Bayesian framework, and thus we give its full Bayesian formulation, which lays a theoretical probabilistic foundation for our architecture. Extensive experiments show that our GBDL outperforms previous state-of-the-art methods in terms of four commonly used evaluation indicators on three public medical datasets.

Introduction

In the field of medical imaging, acquiring high-quality expert annotations is a significant bottleneck. Semi-supervised learning (SSL) has emerged as a vital strategy to leverage large volumes of unlabeled data alongside a small set of labeled examples. While Bayesian deep learning (BDL) methods have shown promise in this domain by providing uncertainty estimates, existing approaches often suffer from two critical limitations.

First, most current SSL methods are discriminative, focusing on modeling the conditional probability $P(Y|X)$ (the label given the image). This often leads to overfitting on the small labeled set during early training phases. Second, many models incorporate Bayesian components, such as Monte Carlo (MC) dropout, as heuristic additions rather than building the architecture upon a unified probabilistic foundation. This research introduces Generative Bayesian Deep Learning (GBDL) to address these gaps by modeling the joint distribution $P(X, Y)$ within a rigorous Bayesian framework.

Methodology: Generative Bayesian Deep Learning

Architecture Overview

The core of GBDL is a generative architecture that learns a latent representation $Z$ governing both the input volumes $X$ and their labels $Y$. Unlike standard 3D Conditional Variational Autoencoders (cVAEs) that might compress an entire volume into a single vector, GBDL employs a slice-by-slice modeling approach. This captures fine-grained spatial relationships by treating each slice's latent representation as part of a joint Gaussian distribution.

Overview of the proposed Generative Bayesian Deep Learning (GBDL) framework, showing the flow from input volume to latent representation, reconstruction, and label generation.

As shown in Figure 2, the architecture consists of dual 3D-UNet encoders and decoders. One path focuses on reconstructing the input volume to learn the data distribution $P(X|Z)$, while the other generates segmentation labels $P(Y|X, Z)$. By incorporating a covariance matrix for each slice's latent vector, the model faithfully captures the intrinsic relationships between inputs and labels.

Training and Inference

The model is trained by maximizing the Evidence Lower Bound (ELBO), which combines three loss components:

  1. Reconstruction Loss ($L_{MSE}$): Ensures the latent space can accurately recreate the input image.
  2. Segmentation Loss ($L_{CE} + L_{Dice}$): Optimizes the accuracy of predicted labels against ground truth.
  3. KL Divergence ($L_{KL}$): Regularizes the latent space against a prior distribution.

During inference, the model utilizes MC dropout to perform multiple forward passes. This allows for the calculation of epistemic uncertainty, providing clinicians with a measure of the model's confidence for each segmented voxel.

Experimental Results

Performance and Robustness

GBDL was evaluated on three public benchmarks: KiTS19 (kidney tumors), Atrial Segmentation Challenge (left atrium), and Liver Segmentation (MICCAI 2018). The results demonstrate superior performance over state-of-the-art methods like UA-MT and SASSNet. For instance, on the KiTS19 dataset with only 16 labeled scans, GBDL achieved a Dice score of 0.911, compared to 0.838 for a baseline 3D-UNet. Furthermore, GBDL showed remarkable stability when labeled data was scarce; on the Atrial dataset, reducing labeled scans from 16 to 8 resulted in only a marginal performance drop (0.894 to 0.884).

Uncertainty and Computational Trade-offs

A key advantage of GBDL is its improved calibration. Using the PAvPU metric, which aligns uncertainty with error, GBDL consistently outperformed other Bayesian methods. However, the reliance on MC dropout introduces a computational overhead.

Influence of the number of MC samples on (a) time consumption, (b) Dice score, and (c) PAvPU metric across different datasets.

As illustrated in Figure 6, increasing the number of MC samples ($T$) improves both the Dice score and uncertainty calibration (PAvPU), but at the cost of linear increases in processing time. The authors identify $T=5$ as a practical "sweet spot" for clinical applications, balancing high performance with manageable latency.

Conclusion

By shifting to a generative Bayesian framework, GBDL effectively utilizes unlabeled data from the onset of training, mitigating the overfitting common in discriminative models. The architecture provides not only state-of-the-art segmentation accuracy but also reliable uncertainty estimates, which are crucial for safety-critical medical environments. Future work will focus on optimizing inference speed and integrating additional semi-supervised strategies like consistency regularization.

Summary updated

BibTeX
@inproceedings{wang2022rethinking,
  author = {Jianfeng Wang and Thomas Lukasiewicz},
  title = {{Rethinking Bayesian Deep Learning Methods for Semi-Supervised Volumetric Medical Image Segmentation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
  url = {https://openreview.net/forum?id=F1mHVO0R2G},
}
Figure