Machine learning is a subset of artificial intelligence (AI) that involves statistical models and algorithm development to help computers perform certain tasks. Deep learning is a subset of machine learning that focuses on neural networks with many layers (deep neural networks).