Bacterial classification with convolutional neural networks based on different data reduction layers