Most modern AI follows the same basic cycle: it takes in large amounts of data, finds patterns in that data, builds a model from those patterns, and then uses the model to make predictions or decisions about new inputs. The more relevant data it learns from, the better those predictions tend to become.
The engine behind this is machine learning, which lets systems improve through experience rather than explicit programming. Machine learning can be supervised (learning from labeled examples), unsupervised (finding hidden structure in unlabeled data), or reinforcement-based (learning by trial and error with rewards). Deep learning takes this further with neural networks made of many layers, which can pick out complex patterns in raw data such as images, sound, and text.
Several specialized fields build on these methods. Natural language processing lets machines understand and generate human language, which is what powers today's large language models. Computer vision lets machines interpret images and video, from recognizing faces to spotting defects on a production line. And generative AI combines these abilities to create new text, images, audio, and video from simple prompts.