Text this: Spoilage detection of tomatoes using a convolutional neural network