AI Fundamentals

What Is Artificial Intelligence? A Working Definition

Define AI in one sentence, place machine learning, deep learning and generative AI inside it, and question any product sold under the label.

Examples learn Model apply Prediction

The short answer

Artificial intelligence is software that takes an input and works out an output: a prediction, a recommendation, a decision or new content. Machine learning is the part of AI that learns patterns from examples. Deep learning is one kind of machine learning, and generative AI is the kind of deep learning that produces text, images or audio.

What is artificial intelligence?

Artificial intelligence (AI) is software that takes an input and works out an output: a prediction, a recommendation, a decision or new content. A spam filter takes an email and predicts whether it is junk. A chatbot takes your question and writes a reply.

The OECD's definition, updated in 2023, has the same shape: a machine-based system that infers, from the input it receives, how to generate outputs such as predictions, content, recommendations or decisions. The verb to notice is infers. The system works out an answer for an input it has not seen before.

The label covers a wide family. A chess program from the 1990s counts, and so does the model behind ChatGPT. The sentence "we use AI" tells you little until you know which kind.

How do AI, machine learning, deep learning and generative AI relate?

Each term names a field that sits inside the one before it. Machine learning is one way to build AI, deep learning is one kind of machine learning, and generative AI is one use of deep learning.

  • Artificial intelligence is the whole field, including older systems that follow rules a person wrote.
  • Machine learning covers systems that learn patterns from examples in place of following written rules.
  • Deep learning is machine learning built on neural networks, stacks of simple calculations arranged in many layers. It handles speech, images and language.
  • Generative AI covers deep learning models that produce new text, images, audio or code.
Artificial intelligence rule-based systems, search, planning Machine learning spam filters, demand forecasts Deep learning speech recognition, face unlock Generative AI chatbots, image generators
Every generative AI system is also deep learning, machine learning and AI, and the reverse does not hold.

A large language model, the system behind ChatGPT, Claude and Gemini, sits in the innermost box. How large language models work explains what it does with your prompt.

What separates written rules from learned patterns?

A rule-based system follows instructions a person wrote. A machine learning system builds its own instructions from examples. That one difference decides how you build, test and trust each kind.

Take expense claims. With rules, a finance officer writes: flag any claim above the limit, and any claim with no receipt. With machine learning, you collect past claims that staff marked as approved or rejected and run a training process over them. The process produces a model, a file of numbers that encodes the patterns it found, and the model scores each new claim.

Rules written by a person A person writes rules by hand Program Decision new case Patterns learned from examples Examples with answers training Model Prediction new case
Both pipelines handle a new case, and only the first has logic that a person wrote and can read.

You can read a rule, audit it and predict its answer. It covers the cases its author thought of and no others. A model copes with inputs no rule can describe, such as handwriting, photographs or a customer's free-form sentence. In exchange, you cannot read its reasoning as a list, and it gets some cases wrong. You test it with examples, the way you would test a new hire.

Working products often combine the two. An intake agent I built in n8n uses a language model to read each form submission, and it applies five business rules that I wrote in plain language.

What are today's AI systems good and bad at?

Today's systems do well on tasks with plenty of past examples and room for a small error. They struggle on tasks where one wrong detail costs you and nobody checks the output.

Sorting, classifying, drafting, summarising and translating sit on the strong side, and a model handles them at a volume no team could match. The weak side looks different. A language model can state a false fact in confident prose, slip on exact arithmetic, and miss anything that happened after its training ended. It also carries no accountability: a person in your organisation answers for the decision.

Dependable Check each answer Sorting and classifying Drafting and summarising Translating languages Exact calculation Facts with no source
The further right a task sits, the more of the output a person has to verify.

Place each task on that line before you automate it. For work near the right-hand end, keep a person reviewing the output. Human in the loop covers where that review step belongs.

Which everyday tools use which type of AI?

You are likely to use all four types in a single day. The table sorts common examples by the type doing the main work.

Everyday exampleTypeHow it gets its answer
Route planner finding the shortest driveRule-based AIFollows a search method a person programmed
Email spam filterMachine learningLearned from emails that people marked as junk
Bank alert for an unusual card paymentMachine learningLearned from past payment records
Phone that unlocks on seeing your faceDeep learningA neural network trained on images
Voice assistant turning speech into textDeep learningA neural network trained on recordings
Chatbot drafting an emailGenerative AIA language model predicting text
Image generator drawing from a sentenceGenerative AIA model trained on captioned images

Give a generative model a goal and a set of tools it can call, and you have an AI agent, a system that works through a task in steps.

How do you use this definition at work?

Ask three questions of any product sold as AI: what goes in, what comes out, and who wrote the logic. If a person wrote the logic, ask to read the rules. If a training process produced it, ask which examples it learned from and how the vendor tested it.

Then ask who checks the output, and what they do on finding an error. Those questions are the start of AI literacy: enough understanding to use these systems and to judge their answers.

Common questions

Is machine learning the same as artificial intelligence?

No. Machine learning is one part of artificial intelligence: the part where a system learns patterns from examples. AI also includes systems that follow rules a person wrote, such as a route planner.

Is ChatGPT artificial intelligence or machine learning?

Both. ChatGPT runs on a large language model, which is a generative AI system. Generative AI is a kind of deep learning, deep learning is a kind of machine learning, and machine learning is part of AI.

Does AI understand what it is doing?

Researchers disagree on the word "understand". For practical work, treat an AI system as software that found patterns in examples and applies them to new inputs. Judge it by testing its output on your own cases.

Sources and references

  1. OECD.AI, Updates to the OECD's definition of an AI system explained
  2. Google for Developers, Machine Learning Glossary
  3. Google for Developers, What is Machine Learning?

Concepts covered: artificial intelligence, machine learning, deep learning, generative AI, rule-based system, neural network, large language model.

Weekly newsletter

The AI Brief by Clarence Cheang

A weekly exploration of the developments, technologies and ideas shaping artificial intelligence.

One email a week. Unsubscribe in one click. What is in each issue