Machine Learning (ML) is a domain of AI that focuses on teaching computers to learn patterns from data and make predictions or decisions without being explicitly programmed for every scenario. In ML, the system improves its performance automatically as it is exposed to more data. Machine learning can be supervised (learning from labeled data, like predicting house prices from past sales), unsupervised (finding hidden patterns, like grouping customers into segments), or reinforcement learning (learning by trial and error, like teaching a robot to walk).
Email services like Gmail use machine learning to detect spam. The system learns from millions of emails labeled as “spam” or “not spam” and then predicts whether a new incoming email is spam or safe.