Frame-Based Systems

What are some examples of AI models?

A plain-English tour of common AI model examples, from rule-based and frame-based systems to decision trees, neural networks and language models.

On this page
  1. The short answer
  2. What an AI model is
  3. Models built from explicit rules and knowledge
  4. Models that learn from data
  5. Neural network models
  6. How to tell which kind of model you are looking at
  7. Where to go next

The short answer

Common examples of AI models include rule-based systems, frame-based systems, decision trees, linear regression, support vector machines, convolutional neural networks, transformer-based models and large language models. They fall into two broad groups: models that people design with explicit rules and knowledge, and models that learn patterns from data.

What an AI model is

In AI, a model is the part of a system that turns inputs into outputs. A spam filter takes an email and outputs a decision about whether it is spam. A translation system takes a sentence in one language and outputs a sentence in another.

A model can be built by hand, with rules a person chose. It can also be built from data, where the patterns are learned from examples. Both kinds count as AI models, and they behave in quite different ways.

Models built from explicit rules and knowledge

These models use knowledge that people write down.

  • Rule-based systems use if-then rules. An example rule might say: if the engine will not start and the battery is flat, check the battery first. The system applies rules to known facts to reach new conclusions, a process covered in types of inference in artificial intelligence. Rule-based systems were common in expert systems in the 1980s.
  • Frame-based systems store knowledge in frames, which are records with slots, default values and links to more general frames. For worked examples, see frame based system in artificial intelligence examples.
  • Logic-based systems reason with formal statements, such as predicate logic.

Models that learn from data

Machine learning models are trained on examples so they can make predictions about new inputs.

  • Linear regression predicts a number, such as a house price from its size.
  • Logistic regression predicts a yes-or-no outcome, such as whether an email is spam.
  • Decision trees ask a series of questions about an input, such as whether a value is above a threshold, and follow a path to an answer.
  • Support vector machines find a boundary between classes of examples that keeps the gap between them as wide as possible.
  • Nearest-neighbor methods make a prediction by looking at the most similar examples the model has seen.

Learning a general pattern from specific examples is called induction, which is the idea behind inductive learning in artificial intelligence example.

Neural network models

Neural networks are built from layers of connected units. Their weights are adjusted during training. Some common types are:

  • Convolutional neural networks (CNNs) are widely used for images. They look for local patterns, such as edges and textures, using small filters that slide across the picture.
  • Recurrent neural networks (RNNs) process sequences one step at a time, such as text or time series data.
  • Transformer models use attention to weigh the relationships between parts of an input. Many modern large language models are built this way.
  • Large language models (LLMs) are transformer-based models trained on large amounts of text to predict the next token, which is a word or part of a word. That training lets them generate and answer questions in text.
  • Diffusion models generate images by learning to reverse a process that adds noise to pictures.

How to tell which kind of model you are looking at

A few questions help sort a model:

  • Were its rules written by people, or learned from data?
  • What kind of input does it take: numbers, images, text, or structured records?
  • Can you read the logic behind its answers? Rule and frame systems usually can be read, but many neural networks are hard to inspect.

Where to go next

If you want to see how symbolic systems like these store what they know, read about knowledge representation approaches in ai. It covers the other side of the split between designed models and learned ones.

The complete guide to frame-based systems

Frame-Based Systems in Artificial Intelligence With Examples
Read the guide

Keep exploring

Guides from other topics

All topics →