Active Learning for Imbalanced Civil Infrastructure Data

Thomas Frick, Diego Antognini, Mattia Rigotti, Ioana Giurgiu, Benjamin F. Grewe, Cristiano MalossiWorkshops @ ECCV 2022

TL;DR

This paper tackles the challenge of efficiently annotating data for detecting rare defects in civil infrastructure using active learning. They introduce a novel method that replaces the traditional acquisition function with a binary discriminator, specifically designed to identify minority class samples in imbalanced datasets. This approach significantly outperforms existing active learning methods, especially on their custom, highly imbalanced civil infrastructure dataset.

What Problem Does This Paper Address?

Manually inspecting aging civil infrastructure for critical defects like cracks or rust is a time-consuming, costly, and sometimes dangerous process. While drone technology and deep learning offer promising avenues for automating these inspections, a major bottleneck is the high cost of annotating the vast amounts of image data required. This is particularly true for civil infrastructure datasets, which often suffer from severe class imbalance – critical defects are rare compared to normal structural elements. Traditional active learning methods, designed to select the most informative samples for labeling, struggle in these scenarios, especially when starting with a large, already partially labeled dataset. They tend to favor majority classes, failing to effectively identify and label the rare but crucial defect instances.

Methods

The core of this paper's contribution lies in a novel active learning strategy that deviates from standard approaches. Instead of using a traditional acquisition function (like BALD or Entropy) that aims to improve performance across all classes, they propose replacing it with an auxiliary binary discriminator. This discriminator is trained in a "one-vs-all" fashion to distinguish between the minority class (e.g., critical defects) and all majority classes.

Here's how it works:

  1. Discriminator Training: In each active learning cycle, the binary discriminator is trained on the currently labeled data.
  2. Sample Selection: The trained discriminator then predicts on the unlabeled pool. Samples with the highest prediction scores (indicating they are likely minority class instances) are selected for labeling.
  3. Iterative Improvement: These newly labeled samples are added to the training set, and the process repeats, iteratively improving the model's ability to identify rare defects.

To further enhance the discriminator's performance on imbalanced data, they employ several techniques:

  • Oversampling: The positive class (minority class) is oversampled to balance it with the negative class (majority classes).
  • Standard Image Augmentations: Techniques like flipping, shifting, scaling, rotation, and brightness/contrast adjustments are applied to diversify the minority class samples.
  • Batch Augmentations: Methods like MixUp and CutMix are used to further diversify samples within a batch, stabilizing training.

For their experiments, they also developed a patch-based dataset conversion algorithm to transform their instance segmentation dataset into a classification dataset. This involves extracting fixed-size patches from images and assigning them a class label (defect type or "background").

Datasets

  • CIFAR-10: A standard, publicly available image classification dataset used for evaluating the proposed method against traditional active learning approaches in a controlled, artificially imbalanced setting.
  • Proprietary Civil Engineering Dataset: This is the primary dataset used in the paper. It consists of high-resolution images of concrete bridge pillars captured by drones. The dataset is characterized by:
  • Instance Segmentation Annotations: Initially, defects were annotated with precise masks.
  • Class Imbalance: Critical defects (like rust or cracks with precipitation) are infrequent, leading to a severe long-tailed distribution (up to a 1:130 imbalance ratio).
  • Classification Dataset Conversion: The instance segmentation dataset was converted into a classification dataset using their patch-based algorithm, resulting in a dataset with four classes: background, algae, crack, and spalling.

Key Insights and Ideas

  • Focusing on the Minority: The paper's core insight is that for severely imbalanced datasets, traditional active learning's broad approach to finding "informative" samples is less effective than a targeted strategy that specifically seeks out minority class instances.
  • Discriminator as Acquisition Function: Replacing a complex uncertainty-based acquisition function with a simpler, yet specialized, binary discriminator proves to be a powerful strategy for imbalanced data. It directly addresses the problem of identifying rare classes.
  • Large Initial Labeled Pool: Unlike many active learning studies that start with very few labeled samples, this work addresses a more realistic industrial scenario where a substantial initial labeled dataset might already exist. Their method shows resilience to the size of this initial pool.
  • Data Augmentation for Minority Class: The extensive use of data augmentation techniques is crucial for generating a diverse set of minority class samples, which is vital for training a robust discriminator.

Key Results

The proposed method consistently outperformed traditional active learning methods (BALD, Entropy) and a random baseline across both CIFAR-10 and their proprietary civil engineering dataset.

  • CIFAR-10:
    • Improved minority class recall by an average of 25% compared to the random baseline.
  • BALD improved recall by 5%, and Entropy by 0.3%.
  • Overall accuracy also saw a significant increase.
  • Civil Engineering Dataset:
    • Achieved a 38% improvement in minority class recall and 18% in minority precision compared to the random baseline.
  • Overall accuracy improved by 16%.
  • This represents a substantial gain over BALD (6% minority recall, 2% overall accuracy) and Entropy (3% minority recall, 1% overall accuracy).
  • Initial Pool Size Sensitivity: The proposed method showed less sensitivity to the size of the initial labeled training pool, retaining more performance gains as the pool grew, unlike traditional methods which saw diminishing returns.

Limitations and Future Work

  • Dataset Size and Class Count: The authors note that due to the need to simulate large unlabeled pools and introduce artificial imbalance, their experiments were limited to datasets with either many classes and small images or few classes and large images. This excluded many popular large datasets.
  • Classification Focus: The current work focuses on classification tasks. Future research could extend the method to full instance segmentation by adapting it to sliding window patches and aggregating statistics.
  • Multiple Minority Classes: The current method focuses on a single minority class. Extending it to handle multiple minority classes simultaneously is a promising direction.
  • Pre-trained Models: Future work could also explore comparing their method with feature space diversity-based active learning methods when pre-trained models (transfer learning or self-supervised learning) are available.

Summary updated

BibTeX
@inproceedings{frick2022active,
  author = {Thomas Frick and Diego Antognini and Mattia Rigotti and Ioana Giurgiu and Benjamin F. Grewe and Cristiano Malossi},
  title = {{Active Learning for Imbalanced Civil Infrastructure Data}},
  booktitle = {Workshops @ ECCV},
  year = {2022},
  url = {https://openreview.net/forum?id=dDZJgzsYZF},
}
Figure