Development of deep learning neural network for ecological and medical images