Learning intermediate features of affordances with a convolutional neural network