The use of convolutional neural networks for automatic diseases detection tasks