A systematic study of the class imbalance problem in convolutional neural networks