Dual-Stream Contrastive Predictive Network with Joint Handcrafted Feature View for SAR Ship Classification

Xianting Feng, Hao Zheng, Zhigang Hu, Liu Yang, Meiguang Zheng · DOI

TL;DR

This paper introduces DCPNet, a novel dual-stream contrastive learning framework that effectively fuses deep and handcrafted features for SAR ship classification. By leveraging both unlabeled data and domain-specific handcrafted features, DCPNet significantly improves classification accuracy and learns more robust representations compared to existing methods.

What Problem Does This Paper Address?

Classifying ships in Synthetic Aperture Radar (SAR) images is crucial for maritime applications, but it's hampered by the scarcity of labeled data. While deep learning models excel with large datasets, they struggle with limited labels. Existing approaches that try to incorporate traditional handcrafted features often suffer from information redundancy and fail to effectively capture the interplay between deep and handcrafted representations. This paper aims to bridge this gap by developing a method that can learn powerful ship classification models from limited labeled data by intelligently fusing deep and handcrafted features.

Methods

The core of this work is the Dual-Stream Contrastive Predictive Network (DCPNet), a self-supervised pre-training framework. DCPNet employs a dual-stream architecture: one stream processes deep features extracted by a CNN, and the other leverages handcrafted features. Key components include:

  • Asymmetric Task Design: Two main contrastive learning tasks are introduced:
  • Handcrafted Feature Prediction Task: This task encourages knowledge transfer by learning the correspondence between deep and handcrafted features, mitigating redundancy. A prediction head G is used to map deep features to a space comparable to handcrafted features, minimizing their difference.
  • Instance-Level Image Similarity Comparison Task: This standard contrastive learning task aims to learn general representations by pulling augmented views of the same image closer while pushing apart views from different images.
  • Cluster Consistency Task: To further enhance class separability and compactness within clusters, a cluster-level loss is introduced. This task ensures that different augmentations of images from the same category have similar distribution representations.
  • False Negative Sample Elimination (FNSE) Module: To address the issue of unreliable negative samples in the memory bank (which can arise from unlabeled data), this module uses pseudo-labels generated from high-confidence predictions to filter out potentially misleading negative samples.

The overall training objective is a weighted sum of the losses from these three tasks.

Datasets

The paper uses two publicly available SAR ship datasets for training and evaluation:

  • OpenSARShip: Collected from the Sentinel-1A satellite, containing three ship types: bulk carriers, container ships, and tankers.
  • FUSAR-Ship: Extracted from the FUSAR GF-3 SAR dataset, featuring seven ship types: bulk carriers, container, fishing, tankers, general cargo, other cargo, and others. This dataset offers higher resolution than OpenSARShip.

The pre-training dataset consists of 2,296 and 11,884 ship chips from OpenSARShip and FUSAR-Ship, respectively, cropped to 224x224.

Key Insights and Ideas

  • Handcrafted Features as Knowledge Transfer Guides: Instead of simply concatenating handcrafted features, DCPNet uses them to guide the learning of deep features, facilitating knowledge transfer and reducing redundancy. This is a significant departure from prior methods.
  • The Power of Contrastive Learning for SAR: The paper demonstrates that contrastive learning, when adapted with handcrafted features and cluster-level objectives, is highly effective for SAR ship classification, even with limited labeled data.
  • False Negatives are a Real Problem: The FNSE module's significant accuracy gains highlight that carefully curated negative samples are crucial for effective contrastive learning, especially in domains with complex unlabeled data.
  • Cluster-Level Consistency Boosts Separability: Adding a cluster-level loss improves the model's ability to distinguish between different ship categories, leading to better overall classification performance.

Key Results

DCPNet achieves state-of-the-art performance on both OpenSARShip and FUSAR-Ship datasets.

  • Fine-tuning Accuracy: When fine-tuned, DCPNet significantly outperforms other self-supervised methods like MoCo, BYOL, and SimSiam. For instance, on FUSAR-Ship with 200 pre-training epochs, DCPNet achieves 87.94% accuracy, a substantial improvement over MoCo (74.69%). Even with just 20 pre-training epochs, DCPNet shows competitive results.
  • KNN-way Accuracy: The "KNN-way" evaluation, which assesses the quality of learned features directly, also shows DCPNet's superiority, indicating that its learned representations are highly discriminative.
  • Supervised Baseline Improvement: When used for pre-training, DCPNet enables supervised models (like ResNet-18/34/50) to achieve higher accuracy on downstream tasks. For example, using DCPNet pre-training, ResNet-50 achieves 87.94% on FUSAR-Ship, compared to a baseline supervised training that might yield lower results (though not explicitly stated for the baseline alone, the improvement is noted as 1.51% and 6.98% over standard supervised training).
  • Ablation Studies: The ablation studies confirm the effectiveness of each proposed component:
  • The handcrafted prediction task improves accuracy by 1.96% (OpenSARShip) and 6.84% (FUSAR-Ship).
  • The cluster consistency task adds 1.10% (OpenSARShip) and 3.37% (FUSAR-Ship) accuracy.
  • The FSNE module provides a gain of 3.00% (OpenSARShip) and 4.55% (FUSAR-Ship).

Limitations and Future Work

  • Single Handcrafted Feature: The current DCPNet framework only incorporates a single type of handcrafted feature (HOG). The authors suggest that future research should focus on how to aggregate information from multiple handcrafted features.
  • Computational Cost: While not explicitly detailed as a limitation, contrastive learning methods can be computationally intensive, especially with large datasets and memory banks.
  • Generalization to Other Domains: The effectiveness of this specific fusion strategy might need further validation on SAR datasets with different characteristics or for other remote sensing tasks.

Summary updated

BibTeX
@misc{feng2023dual,
  author = {Xianting Feng and Hao Zheng and Zhigang Hu and Liu Yang and Meiguang Zheng},
  title = {{Dual-Stream Contrastive Predictive Network with Joint Handcrafted Feature View for SAR Ship Classification}},
  year = {2023},
  eprint = {2311.15202},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.15202},
}
Figure