Although used interchangeably, machine learning is closely related to AI. Artificial intelligence is a much broader topic that encompasses machines carrying out tasks in an ‘intelligent way' as they are programmed to mimic humans.