Convolutional neural network-based algorithm for weed detection in Cotton