Machine learning, a subset of artificial intelligence, focuses on developing algorithms that enable computers to learn from data and improve over time. It has roots in statistics, computer science, and cognitive psychology, often involving supervised, unsupervised, and reinforcement learning approaches to identify patterns and make decisions.