Optimization of Convolutional Neural Networks for Imbalanced Set Classification