Artificial intelligence (AI) refers to systems that simulate human intelligence, while machine learning (ML) is a subset of AI focused on algorithms that learn from data to improve over time.