Artificial intelligence (AI) is a general concept that uses computer software to mimic human thought and perform tasks in real-world environments. Machine learning (ML) is a subset of AI that uses algorithms trained on data to produce models that can perform complex tasks. Most AI is performed using ML, so the two terms are often used interchangeably