Machine learning technology detects and automatically captures the document and selfie images to provide a smooth customer experience, optimize image quality and achieve superior verification rates. Machine learning is also critical in classifying documents and detecting fraud by comparing selfie and document images.