© 2019 IEEE. Detection of underwater mines is important for ensuring the safety of maritime routes. This paper presents a new approach for mine-like object sensing in sonar imagery. We propose a deep learning architecture that combines a convolution neural network and a hierarchical Gaussian process classifier. The proposed architecture is designed to improve the classification accuracy of the conventional convolutional neural network and to provide a well-calibrated measure of classification uncertainty. It can be trained in an end-to-end manner with labeled examples, or sonar snapshots, of underwater objects. To address the data scarcity in this application, we apply the generative adversarial network to produce extra sonar snapshots for training. Evaluated on a dataset of 349 sonar snapshots, the proposed method achieves an overall classification rate of 81.6%, which is significantly higher than the existing methods.