Classifying galaxies with artificial intelligence