Weighted average ensemble-based semantic segmentation in biological electron microscopy images

Kavitha Shaga Devan, Hans A. Kestler, Clarissa Read, Paul Walther

Abstract

Semantic segmentation of electron microscopy (EM) images using deep learning is a valuable tool for detailed analysis of organelles and cell structures. However, these methods typically require large amounts of labeled ground truth data, which is often unavailable. This paper presents WAE-Net, a weighted average ensemble model designed to automatically segment biological structures in EM images using small datasets. By combining diverse base-learners, the model outperforms single segmentation architectures. Experiments across seven biological EM datasets demonstrate significant quantitative and qualitative improvements. Furthermore, the integration of Grad-CAM allows for the interpretation and verification of model predictions. WAE-Net shows superior performance compared to standard U-Net models, highlighting its potential for automated biological applications with limited labeled data.

Introduction

Deep learning, particularly Convolutional Neural Networks (CNNs), has transformed image analysis. However, these models are notoriously "data-hungry," often requiring thousands of expert-labeled images to generalize effectively. In biological electron microscopy, generating this "ground truth" is a major bottleneck; it requires specialized knowledge, is tedious, and is prone to human bias.

Existing tools often struggle with the inherent variability of EM data, such as differences in contrast, noise, and sample preparation artifacts. This research introduces a robust, "small-data" friendly framework that enables professional-grade segmentation using only a few dozen to a few hundred labeled images.

Methodology

The core of this work is the WAE-Net (Weighted Average Ensemble Network). The architecture builds upon the popular U-Net framework but incorporates several key enhancements to improve performance on small datasets.

Figure 1: Overview of the WAE-Net workflow, from ImageNet pre-training to ensemble prediction and visualization.

Transfer Learning and Base-Learners

Instead of training from scratch, the authors utilize transfer learning. The U-Net encoder is replaced with five state-of-the-art CNNs pre-trained on ImageNet: ResNet34, InceptionV3, VGG19, SeResNet34, and EfficientNet-B4. This allows the model to leverage low-level features (edges, textures) learned from a massive general-purpose dataset.

Weighted Ensemble Strategy

For any specific dataset, all five base-learners are trained, but only the top three performers are selected for the final ensemble. A grid search is then employed to determine the optimal weights for each model's contribution, creating a consensus segmentation map that is more accurate than any individual model.

Hybrid Loss and Explainability

To address class imbalance (e.g., small organelles vs. large cytoplasm), a combination of Focal Loss and Dice Loss is used. Additionally, Gradient-weighted Class Activation Mapping (Grad-CAM) is integrated to visualize the regions influencing the model's decisions, providing a necessary "sanity check" for researchers.

Experimental Setup

The model was evaluated on seven diverse biological EM datasets, covering both Transmission (TEM) and Scanning (SEM) modalities. These datasets include human pancreatic cells, BON cells during various cell cycle phases, and several T-cell and B-cell lines.

Figure 6: Summary of the seven datasets used for evaluation, highlighting the small number of training images.

The training sets were intentionally kept small, ranging from 66 to 258 images, to reflect the realistic constraints of a typical research laboratory.

Key Results and Discussion

WAE-Net demonstrated clear superiority over standard approaches:

  • Quantitative Performance: The model achieved a mean Jaccard Index (JI) of 0.9087 and a mean F1 score of 0.9203 across all datasets, significantly higher than the standard U-Net (JI: 0.7709, F1: 0.7680).
  • Handling Complexity: The ensemble approach was particularly effective for difficult, small structures. For instance, in Dataset 2, WAE-Net achieved a JI of 0.6826 for chromosomes, compared to 0.4867 for a standard U-Net.
  • Efficiency: Training the WAE-Net takes between 4 to 8 hours on a single GPU, a fraction of the time required for manual segmentation.

The "wisdom of the crowd" effect was evident: no single model was best for every dataset. By combining models, the ensemble captured a more complete representation of the data. Grad-CAM visualizations confirmed that different base-learners often focused on different features, allowing the ensemble to compensate for individual model weaknesses.

Conclusion

WAE-Net provides a powerful solution for semantic segmentation in biological EM when labeled data is limited. While challenges remain—such as segmenting extremely sparse structures like mitochondria in complex scenes—the ensemble method significantly mitigates overfitting and improves generalization. Future work will explore more diverse pre-trained architectures and apply the framework to other imaging modalities like X-ray tomography.

Summary updated

BibTeX
@inproceedings{devan2022weighted,
  author = {Kavitha Shaga Devan and Hans A. Kestler and Clarissa Read and Paul Walther},
  title = {{Weighted average ensemble-based semantic segmentation in biological electron microscopy images}},
  booktitle = {Histochemistry},
  year = {2022},
  doi = {10.1007/s00418-022-02148-3},
}
Figure