Creating an unsupervised model to cluster MNIST digits based on intermediate representations in a convolutional architecture