Machine learning and image recognition: theory, application