Convolutional autoencoder-based multimodal one-class classification

Firas Laakom, Fahad Sohrab, Jenni Raitoharju, Alexandros Iosifidis, Moncef Gabbouj

TL;DR

This paper introduces a novel multimodal one-class classification (OCC) approach using two jointly trained convolutional autoencoders. By learning to reconstruct data from two modalities while mapping their representations to a compact latent space, the method effectively identifies anomalies. Experimental results demonstrate that this multimodal strategy significantly outperforms unimodal approaches on a benthic macroinvertebrate dataset.

What Problem Does This Paper Address?

One-class classification (OCC) is a challenging task where the goal is to build a model that can distinguish between data belonging to a single "normal" class and any other "outlier" class, without ever seeing examples of the outliers during training. This is particularly useful when negative class data is scarce, difficult to obtain, or highly diverse. While unimodal OCC methods are well-studied, the potential of leveraging multimodal data (e.g., from different sensors or viewpoints) for OCC remains less explored. This paper aims to bridge this gap by proposing a deep learning framework that effectively integrates information from multiple modalities for robust one-class classification.

Methods

The core of the proposed method is a multimodal convolutional autoencoder architecture. It consists of two separate convolutional autoencoders, one for each modality (e.g., two different image views of the same object). During training, the encoders process the input data from each modality, and their outputs are concatenated to form a joint latent representation. This representation is then passed through two decoders, one for each modality, to reconstruct the original inputs.

The training objective is twofold:

  1. Compact Latent Representation: Minimize the L2-norm of the joint latent representation, pushing all positive class data towards the origin in the latent space. This encourages a compact representation of the normal class.
  2. Reconstruction Loss: Minimize the mean squared error between the original inputs and their reconstructed versions by the decoders. This acts as a regularizer, preventing degenerate solutions where the model simply maps everything to the origin without learning meaningful features.

During inference, the decoder part is discarded. The anomaly score for a test sample is calculated as the L2-norm of its joint latent representation from the origin. A threshold, determined from the training data, is used to classify samples as either belonging to the positive class or as anomalies. The authors also investigate the impact of input image size and explore the use of feature diversity regularizers to further enhance performance.

Datasets

The primary dataset used for evaluation is a subset of the multimodal image classification dataset of benthic macroinvertebrates, FIN-Benthic [20]. This dataset provides pairs of RGB images from two perpendicular viewpoints for each sample, serving as the two modalities. The authors constructed four distinct one-class classification tasks using four different classes from this dataset (Leptophlebia sp., Baetis rhodani, Elmis aenea larva, and Oulimnius tuberculatus larva). For each task, one class was designated as the normal class, and the remaining three formed the anomaly class. The data was split into 66% for training and 34% for testing.

Key Insights and Ideas

  • Multimodal Fusion for OCC: The paper strongly suggests that combining information from multiple modalities significantly enhances the performance of one-class classification, outperforming methods that rely on a single modality.
  • Autoencoders as OCC Tools: Convolutional autoencoders, when trained with a specific objective (compact latent space + reconstruction loss), are effective for learning discriminative representations for OCC.
  • Latent Space Compactness is Key: The core idea of mapping positive class data to a tight region around the origin in the latent space is a powerful strategy for anomaly detection.
  • Reconstruction Loss as Regularization: The reconstruction loss is crucial for preventing the autoencoder from collapsing into trivial solutions and ensures that the learned latent representations are meaningful.
  • Input Size Trade-off: While higher input resolutions can capture more detail, they can also introduce noise and make the learning task harder, especially with limited training data. A smaller, optimized input size (32x32) yielded the best results in their experiments.
  • Feature Diversity Regularizers Help: The inclusion of feature diversity regularizers, designed to reduce redundancy in the bottleneck representations, demonstrably improves the performance of the multimodal OCC model.

Key Results

  • Superior Multimodal Performance: The proposed multimodal approach consistently outperformed unimodal (left and right) models across all evaluated metrics (Recall, Precision@n, and ROC AUC).
  • Significant ROC Improvement: On average, the multimodal model achieved a 0.067 and 0.088 improvement in ROC AUC compared to the unimodal models.
  • Robustness: Even in the worst-case scenario for the multimodal model (Elmis aenea larva), the ROC AUC was 0.427, which was still better than the worst ROCs achieved by the unimodal models (0.367 and 0.330).
  • Input Size Impact: The best performance was achieved with a 32x32 pixel input size. Larger sizes (64x64, 128x128) led to decreased performance, likely due to increased noise and complexity with limited training data.
  • Regularizer Benefits: Applying feature diversity regularizers (WLD-Reg) led to slight but noticeable improvements in performance, with the "det" variant showing a marginal edge.

Limitations and Future Work

  • Limited Modalities: The current work focuses on two modalities. The authors suggest that the approach can be extended to handle more than two modalities.
  • Input Size Sensitivity: The performance was found to be sensitive to input image size, with smaller sizes performing better on their specific dataset and training setup. This suggests a need for careful hyperparameter tuning or more robust architectures for handling varying resolutions.
  • Shared Weights: While using shared weights for encoders and decoders acts as a regularization, exploring modality-specific weights could potentially offer further improvements if sufficient data is available.
  • Future Work: The authors implicitly suggest future work in exploring more sophisticated feature diversity regularizers and extending the framework to a larger number of modalities. They also highlight the potential for this method in scenarios with limited negative class data.

Summary updated

BibTeX
@misc{laakom2023convolutional,
  author = {Firas Laakom and Fahad Sohrab and Jenni Raitoharju and Alexandros Iosifidis and Moncef Gabbouj},
  title = {{Convolutional autoencoder-based multimodal one-class classification}},
  year = {2023},
  eprint = {2309.14090},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2309.14090},
}
Figure