Deep learning algorithm applied to bacteria recognition