AI refers to creating machines with artificial intelligence (AI). Machine learning, on the other hand, refers to training computers to recognize data patterns and make decisions autonomously.