What this track covers
- What AI and machine learning are (this lesson): the words, without the hype.
- How a model learns: data, features, labels, training, and testing.
- Kinds of learning, and where security uses them.
- Limits and failure modes: false alarms, bias, and attacks on models.
- Using AI responsibly at work, and wrap-up.
Four words, from widest to narrowest
- Artificial intelligence (AI) is the widest term: computer systems doing tasks that normally need human judgment, such as recognizing images, understanding language, or deciding what is suspicious. It says nothing about how they do it.
- Machine learning (ML) is one way to build AI: instead of writing the rules by hand, you show the computer many examples and let it learn the patterns.
- Deep learning is a kind of machine learning that uses large neural networks, layers of simple maths units loosely inspired by brain cells. It powers modern image and speech recognition.
- Generative AI is deep learning that produces new content: text, images, code, audio. Chat assistants are built on large language models (LLMs), the subject of the next track.
Each is a part of the one before it: generative AI is deep learning, deep learning is machine learning, and machine learning is one way to do AI.
Rules versus learning
The key difference between âclassicâ software and machine learning is who writes the logic:
- Rule-based: a person writes the rules. âIf the email contains âyou wonâ and a link, mark it as spam.â Easy to explain; misses anything the rule writer did not think of.
- Learned: a person collects thousands of emails labeled spam or not spam, and a learning algorithm finds the patterns. Catches patterns no person would have written down; harder to explain why it decided something.
Many real products mix both. And many products called âAIâ are mostly rules, which is not a bad thing, just worth knowing.
A model is a function
A model is the result of learning: a function that takes an input and gives an output, like the functions in the Python track. A spam model takes an email and returns âspamâ or ânot spamâ, usually with a confidence score between 0 and 1. The model does not âunderstandâ email the way you do. It has learned which patterns tended to come with which label in the examples it saw.
Hands-on: sort the claims
Here are eight claims, the kind you see in product pages and news. For each, decide whether it describes rule-based logic, machine learning, generative AI, or is too vague to tell. Write your answers down, then compare.
- âBlocks any login from a country the user has never logged in from.â
- âTrained on 10 million labeled malware samples to classify new files.â
- âWrites a summary of each incident in plain English.â
- âUses AI to keep you safe.â
- âLearns each userâs normal behavior and alerts on unusual activity.â
- âFlags passwords shorter than 12 characters.â
- âGenerates realistic phishing emails for staff training.â
- âNext-generation intelligent protection powered by advanced algorithms.â
Compare your answers
- Rule-based. A fixed condition anyone could write down.
- Machine learning (a classifier trained on labeled examples; Lesson 3 names this âsupervised learningâ).
- Generative AI. It produces new text.
- Too vague to tell. This could be anything.
- Machine learning (it learns a baseline from data; Lesson 3 calls this anomaly detection).
- Rule-based.
- Generative AI.
- Too vague to tell. Many words, no information.
What to notice
- AI is the goal; machine learning is learning from examples; deep learning uses neural networks; generative AI creates content.
- Rule-based systems are explainable but limited; learned systems find patterns nobody wrote down, but are harder to explain.
- A model is a learned function with a confidence score, not understanding.
- âAI-poweredâ alone tells you nothing. Ask about the data and the output.