{'fraction_non_alphanumeric': 0.0191044776119403, 'fraction_numerical': 0.0, 'mean_word_length': 5.348484848484849, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Adaptive Selecting and Learning Network and a New Benchmark for Imbalanced Fine-Grained Ship Classification

Ship classification is one of the most essential tasks in ship surveillance, which is an important but challenging problem. Most existing methods are designed for remote sensing images and there are few works processing natural ship images captured by camera. In this paper, we design a new framework called Adaptive Selecting and Learning Network (ASL), to solve the problem of fine-grained classification of ship natural images in the real world. Our method has two key contributions to enable more effective learning from the imbalanced ship data. First, we present a memory network equipped with an adaptive selecting learning strategy to selectively memorize the hard samples that are difficult to classify. The presented learning strategy can re-balance the data distribution of different classes in the training procedure, which achieves more effective learning. Second, we design an inference network with an attention mechanism, to capture the structural similarities between new samples and hard samples. The attention mechanism can enhance the training of hard samples and yields better learning performance. Moreover, our framework can be easily combined with existing fine-grained methods. In addition, we propose a new Dachan Island Ship (DIS) dataset, which is collected in the real-world scenarios. The DIS dataset has a significant imbalanced distribution between classes that aligns with the real situation. Extensive experimental results on the proposed DIS show that our model outperforms most of the existing fine-grained classification methods.