What Is AI?
A clear, hype-free definition of artificial intelligence, machine learning, deep learning, and foundation models, and how they fit together in the systems you use every day.
You have probably used AI a dozen times today without noticing. Your phone unlocked by recognizing your face. Your email quietly moved a scam into the spam folder. A map app rerouted you around traffic. And maybe you asked a chat assistant to explain something, draft a message, or fix a bug. All of these get called "AI", yet they work in very different ways. This first lesson gives you a precise mental model, so that for the rest of the course you always know what kind of system you are looking at, what it can plausibly do, and where it is likely to fail.
A working definition
There is no single official definition of artificial intelligence, but a useful one is:
Artificial intelligence is the field of building computer systems that perform tasks which, when humans do them, we would say require intelligence: perceiving, reasoning, learning, planning, using language, and making decisions.
Notice that this definition is about tasks, not about consciousness or feelings. A system that translates French to English is doing an "intelligent" task whether or not it has any inner experience. Focusing on observable behaviour keeps us honest and makes systems testable: you can measure whether a translation is good, but you cannot measure whether a program "really" understands.
A second useful framing, from the classic textbook by Russell and Norvig, is the agent view: an AI system perceives its environment and takes actions to achieve goals. A thermostat is a trivial agent. A chess engine is a smarter one. A modern assistant that reads your request, searches the web, runs code, and reports back is an agent too. This framing will matter a lot when you build AI agents in Module 10 (Building AI Applications).
Two ways to build intelligent behaviour
Suppose you want a program that decides whether an email is spam. There are two fundamentally different strategies.
Strategy 1: write the rules yourself. You sit down and encode what you know:
def is_spam_rules(email: str) -> bool:
text = email.lower()
suspicious = ["free money", "wire transfer", "you have won", "click here now"]
return any(phrase in text for phrase in suspicious)
print(is_spam_rules("Congratulations, YOU HAVE WON a prize!")) # True
print(is_spam_rules("Lunch at noon?")) # False
This is symbolic or rule-based AI: the program's behaviour comes entirely from rules a person wrote down. It is transparent and predictable, but brittle: spammers write "fr3e m0ney" and your rules miss it. Every new trick requires a human to notice it and write a new rule.
Strategy 2: let the computer learn the rules from examples. You collect thousands of emails labelled "spam" or "not spam" and use an algorithm that finds the patterns that separate them. This is machine learning (ML). Here is a tiny but real example using scikit-learn:
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.naive_bayes import MultinomialNB
emails = [
"win free money now", "claim your prize today", "cheap loans click here",
"meeting moved to 3pm", "can you review my draft", "lunch tomorrow?",
]
labels = [1, 1, 1, 0, 0, 0] # 1 = spam, 0 = not spam
vectorizer = CountVectorizer()
X = vectorizer.fit_transform(emails) # turn text into word counts
model = MultinomialNB().fit(X, labels) # learn which words signal spam
test = vectorizer.transform(["free prize money", "draft for the meeting"])
print(model.predict(test)) # [1 0]
Nobody told the model that "prize" is suspicious. It inferred that from the data: during training, the algorithm counted how often each word appears in spam versus normal email and stored those statistics as numbers. Those learned numbers are called the model's parameters. Give it more and better examples and it gets better, without anyone editing rules. The trade-off is that the "rules" are now buried in learned numbers, which makes the system harder to inspect and means it can only be as good as its data.
Note: The two strategies are not enemies. Real products mix them: a learned model scores an email, and hand-written rules block known-bad senders or enforce company policy. Modern AI assistants likewise combine a learned model with ordinary code that decides which tools it may use.
The nesting dolls: AI, ML, deep learning, foundation models
These terms are often used interchangeably, but they nest inside each other. One new term first: a neural network is a particular kind of learnable function, loosely inspired by brain cells, built from many simple units arranged in layers. Each unit takes a weighted sum of numbers from the previous layer and passes the result on; training adjusts the weights. "Deep" learning simply means networks with many layers stacked on top of each other. You will build one by hand in Module 02 (Math for AI).
The diagram reads left to right from the broadest idea to the most specific: every foundation model is a deep learning model, every deep learning model is a machine learning model, and all of them are AI, while symbolic methods form a separate branch of AI that does not learn from data.
| Term | What it means | Example |
|---|---|---|
| Artificial intelligence | The overall goal: machines doing intelligent tasks, by any method | Chess engine, route planner, chatbot |
| Machine learning | A subset of AI where behaviour is learned from data | Spam filter trained on labelled emails |
| Deep learning | A subset of ML using neural networks with many layers | Image recognition, speech-to-text |
| Foundation models | Very large deep learning models trained on broad data, then adapted to many tasks | Chat assistants, coding assistants, image generators |
| Large language models (LLMs) | Foundation models trained mainly to predict text; many now also handle images and audio | The models behind today's chat assistants |
A classic route planner that searches a road graph with a shortest-path algorithm is AI, but not ML: nothing is learned. A fraud detector built on gradient-boosted decision trees (many small yes/no flowcharts learned from data and combined) is ML, but not deep learning. Getting these distinctions right helps you choose tools: many business problems on spreadsheets are still best solved with classic ML, not a giant neural network.
The three main flavours of machine learning
Within ML, it helps to know three broad learning setups, because you will meet them constantly.
- Supervised learning: you have inputs paired with correct answers (labels), and the model learns to map one to the other. Spam detection, price prediction, and medical image classification are supervised.
- Unsupervised learning: you have inputs without labels and the model discovers structure, such as grouping customers into segments or compressing data.
- Reinforcement learning (RL): an agent takes actions in an environment and learns from rewards and penalties, as in game-playing systems or robot control.
Modern large language models blend all three. They are first trained with self-supervised learning: predict the next piece of text, where the "label" comes free from the text itself, so no human labelling is needed and the model can learn from enormous amounts of data. They are then refined with supervised examples of good answers, and finally with reinforcement learning from human feedback and from automatically checkable rewards. Lesson 4 of this module walks through that recipe step by step.
Models versus systems
When people say "the AI did X", they usually mean a system, not just a model. This distinction will save you a lot of confusion.
- The model is the trained artifact: a file of learned numbers (parameters) plus the code that runs them. Given an input, it produces an output, such as a probability or the next word.
- The system wraps the model with everything else: instructions (often called a system prompt), access to tools like web search or a code interpreter, retrieval of your documents, memory, safety filters, and a user interface.
The sequence diagram shows who does what: the model only ever reads and writes text, while the surrounding system decides which tools exist, actually runs them, and passes results back. So when an assistant gives you today's weather, the model did not "know" it; the system fetched it with a tool and the model summarized the result. When an assistant invents a fake citation, that is the model generating plausible text without a tool to check it. Asking "is this coming from the model's training, or from a tool?" is one of the most useful habits you can build.
What AI is not
A precise definition also tells you what to be sceptical about.
- AI is not magic. Every system is code, data, and mathematics. When something seems magical, it usually means a lot of data and computation went into it.
- AI is not automatically objective. A model learns from data that humans collected, and it inherits the gaps and biases in that data.
- Fluency is not correctness. A language model can produce confident, well-written text that is simply wrong. You will learn to verify, not just trust.
- Narrow skill does not imply general skill. A model that is superb at one task may fail badly at a closely related one, and today's general-purpose assistants still have surprising blind spots.
- Capability today is not capability forever. The field moves fast. A limitation you read about last year may be fixed, and a new one may appear. Learn the durable principles in this course, and check current capabilities against fresh evidence.
Note: Whether large models "understand" or "reason" is genuinely debated among researchers. For practical work, a better question is: what does this system reliably do, under what conditions, and how do I know?
Common misconceptions
| Misconception | Better mental model |
|---|---|
| "The AI looked it up." | Unless a tool was used, it generated text from patterns learned in training. |
| "More parameters always means better." | Data quality, training recipe, and the task matter as much as size. Small models often win on cost. |
| "It's just autocomplete, so it can't be useful." | Next-word prediction at scale produces genuinely useful capabilities, and also real failure modes. Both are true. |
| "AI is one thing." | It is a toolbox: rules, search, classic ML, deep learning, and foundation models each suit different problems. |
Hands-on exercise
- Write down five AI systems you have interacted with this week. For each, guess whether it is mostly rule-based, classic ML, deep learning, or a foundation model, and what data it might have learned from.
- Run the scikit-learn spam example above (in Google Colab if you have no local Python yet; lesson 6 covers setup). Add three new emails of your own to the training set, including one tricky one, and test the model on sentences it has never seen. Where does it fail, and why? Hint: words the model never saw during training are simply ignored.
- Extend
is_spam_rulesto catch "fr3e m0ney". Then estimate how many rules you would need to keep up with real spammers. That feeling is the motivation for machine learning. - Ask a chat assistant a question about something that happened this week. Did it use a tool (search) or answer from training? How can you tell from the response?
Expected outcome: you can classify everyday systems by approach, you have run your first ML model, and you can explain the model-versus-system distinction to a friend.
Key takeaways
- AI is the broad field of building systems that perform tasks we associate with intelligence; it is defined by behaviour, not by consciousness.
- Rule-based AI encodes human knowledge directly; machine learning learns patterns from examples. Real products mix both.
- AI contains ML, ML contains deep learning, and today's foundation models and LLMs are very large deep learning systems.
- Supervised, unsupervised, and reinforcement learning are the three classic setups; LLMs combine self-supervised pretraining with supervised and RL refinement.
- Distinguish the model (learned parameters) from the system (model plus tools, instructions, and safeguards).
- Be precise and sceptical: fluency is not truth, and data shapes behaviour.
Next, we trace how the field got here, from rule-based programs in the 1950s to the reasoning models and AI agents of 2025 and 2026, and why each shift happened. Along the way you will see why the history matters: it explains both what today's systems are good at and why so many past predictions about AI were wrong.
Further reading
- Stuart Russell and Peter Norvig, Artificial Intelligence: A Modern Approach (4th edition): the standard textbook, especially chapter 1 on definitions of AI and the agent view.
- Alan Turing, "Computing Machinery and Intelligence" (1950): the paper that proposed the imitation game; short and still worth reading.
- Elements of AI, a free introductory course from the University of Helsinki: https://www.elementsofai.com/
- Stanford HAI, AI Index Report (published yearly): data on capabilities, costs, and adoption at https://aiindex.stanford.edu/
Save your progress and earn XP
Create a free account to take the quiz, track progress and unlock badges.