Aller au contenu
Londres, Royaume-Uni · Fondé en 1994
Français

Unit 1: What AI Is and How It Works

A plain-language introduction to artificial intelligence: where it came from, how machines learn from data, and what a model actually is.

Unit 1 of 5 · about 54 minutes

1.1 What we mean by artificial intelligence

Artificial intelligence, usually shortened to AI, is a broad term for computer systems that carry out tasks we would normally associate with human thinking. These tasks include recognising speech, understanding and writing text, identifying objects in images, making recommendations and spotting patterns in large amounts of information. The term covers a wide family of techniques rather than a single technology, which is one reason it can feel confusing at first.

A useful working definition is this: an AI system takes some input, such as a photograph, a sentence or a set of numbers, and produces an output, such as a label, a prediction, a recommendation or a piece of new content, in a way that was learned or designed to resemble intelligent behaviour. The key idea is that the system is not simply following a fixed list of instructions written line by line for every situation. Instead, much modern AI has learned how to respond by studying many examples.

Narrow AI and general AI

It helps to separate two ideas that are often mixed together in public discussion.

  • Narrow AI (sometimes called weak AI) is designed for a particular task or group of tasks. A spam filter, a route planner, a fraud detection system and a chat assistant are all examples. Every AI system in everyday use today is narrow in this sense, even when it appears very capable.
  • General AI (often called artificial general intelligence, or AGI) refers to a hypothetical system that could understand, learn and act across almost any task at least as well as a person. Researchers and companies disagree about whether, when and how this might be achieved. For practical purposes at work, you are dealing with narrow systems.

Keeping this distinction in mind protects you from two common mistakes: assuming that AI can do anything, and assuming that because it cannot do everything it is of little use.

A brief history

The ideas behind AI are older than many people realise. In 1950 the mathematician Alan Turing published a paper asking whether machines could think, and proposed what became known as the Turing test. The term "artificial intelligence" itself was introduced in the proposal for a research workshop held at Dartmouth College in the United States in 1956, which is often treated as the founding moment of the field.

PeriodWhat happened
1950s to 1960sEarly optimism; programs that solved logic puzzles and played simple games.
1970s to 1980s"Expert systems" built from hand-written rules; periods of reduced funding known as "AI winters".
1990s to 2000sGrowth of statistical methods and machine learning; a computer defeated the world chess champion in 1997.
2010sDeep learning, powered by large datasets and faster hardware, transformed image and speech recognition.
2020sGenerative AI and large language models brought chat assistants and image generators to the general public.

The pattern is worth noticing. Progress has come in waves, often followed by disappointment when early promises were not met. Today's systems are far more capable than earlier ones, but the history is a reminder to keep a balanced view.

Where you already meet AI

Most people use AI many times a day without thinking about it. Examples include:

  • the predictive text and autocorrect on your phone;
  • recommendations for films, music or products based on what you and similar people have chosen;
  • email filters that move unwanted messages to a junk folder;
  • navigation apps that estimate journey times using live traffic patterns;
  • banking systems that flag an unusual card payment and ask you to confirm it;
  • automatic captions on video calls and voice assistants that respond to spoken requests.

None of these systems "understands" the world in the way a person does. Each has been built or trained to perform one kind of task well enough to be useful.

Remember: AI is a toolset, not a single machine with a mind of its own. Asking "what kind of AI, doing what task, with what data?" is usually more helpful than asking "is this AI?"

In practice

When someone at work proposes "using AI", try to translate the idea into concrete terms. What is the input? What output is expected? Who will use that output, and what happens if it is wrong? For example, "using AI for customer service" might mean a system that sorts incoming emails by topic, a chat assistant that drafts replies for staff to review, or a tool that summarises long complaint histories. Each option involves different benefits, costs and risks. Being able to ask these simple questions is the first and most important skill this course will help you build.

1.2 How machines learn from data

Traditional software works by following rules that a programmer has written explicitly. If you want a program to calculate VAT, you tell it the rate and the formula, and it applies them in exactly the same way every time. This approach works very well when the rules are clear and stable.

Many real-world tasks, however, are hard to describe with precise rules. Try writing instructions that would allow a computer to recognise a cat in any photograph, whatever the lighting, angle or breed. Or rules that perfectly separate genuine emails from scams. The list of exceptions quickly becomes endless. Machine learning offers a different approach: instead of writing the rules, we show the computer many examples and let it find the patterns itself.

The basic idea of machine learning

Machine learning is a branch of AI in which systems improve at a task by learning from data. In simple terms, the process looks like this:

  1. Collect examples. For a spam filter, this might be many thousands of emails, each labelled as "spam" or "not spam".
  2. Train a model. A learning algorithm examines the examples and adjusts a large set of internal settings, called parameters, so that the model's guesses match the labels as closely as possible.
  3. Test the model. The model is checked on examples it has not seen before, to find out whether it has learned general patterns or merely memorised the training data.
  4. Use the model. Once it performs well enough, it is put to work on new emails, sorting them automatically.

The computer is not given a definition of spam. It discovers which features, such as certain phrases, unusual links or particular sending patterns, tend to be associated with spam, and it weighs them up when making a prediction.

Three main styles of learning

  • Supervised learning uses examples that come with the correct answer attached. Predicting house prices from past sales, or identifying faulty products from labelled photographs, are typical cases. This is the most common style in business applications.
  • Unsupervised learning works with data that has no labels. The system looks for structure on its own, for example grouping customers into segments with similar buying habits, or spotting transactions that look unusual compared with the rest.
  • Reinforcement learning involves a system that learns by trial and error, receiving a reward signal when it does well. It has been used to train systems to play complex games and to control robots, and a form of it, using human feedback, is also used to refine chat assistants.

Neural networks and deep learning

Many of today's most capable systems use a technique called a neural network. Loosely inspired by the way brain cells connect, a neural network is made of many simple mathematical units arranged in layers. Each unit passes signals to the next, and training adjusts the strength of those connections. When a network has many layers, the approach is called deep learning.

Deep learning became dominant in the 2010s because three things came together: very large collections of digital data, much faster computer chips (particularly graphics processors), and improved training methods. It is the foundation for modern image recognition, speech recognition, translation and the large language models discussed in the next unit.

It is important not to take the brain comparison too literally. Neural networks are mathematical systems that process numbers. They can be remarkably effective without having anything like human understanding or awareness.

Generalisation and its limits

The goal of training is generalisation: performing well on new cases, not just the ones seen during training. A model that has memorised its training data but fails on fresh examples is said to be "overfitted". Equally, a model only learns patterns that are present in its data. If a system trained to detect skin conditions has mostly seen images of lighter skin, it may perform poorly on darker skin. If a demand forecasting model was trained before a major change in customer behaviour, its predictions may no longer hold.

Tip: Whenever you hear that a system "learned" something, ask what it learned from. The answer tells you a great deal about where it is likely to work well and where it may struggle.

In practice

You do not need to build models to benefit from understanding how they learn. If your organisation is considering an AI tool for, say, screening invoices for errors, useful questions include: what examples was it trained on, and do they resemble our invoices? How was it tested, and on what kind of data? How will we know if its performance drops over time? A supplier who can answer these questions clearly is usually more trustworthy than one who relies only on impressive demonstrations.

1.3 Models, predictions and data quality

The word "model" appears constantly in conversations about AI, so it is worth being clear about what it means. A model is the result of training: a mathematical representation of the patterns found in data, stored as a large set of numbers. When you give it a new input, it uses those numbers to produce an output. You can think of it as a highly compressed summary of experience, which can be applied to situations it has not met before.

Training and inference

Two stages in the life of a model are often distinguished:

  • Training is when the model learns from data. For large systems this can take weeks, require enormous computing power and cost a great deal. It is usually done by specialist teams or technology providers.
  • Inference is when the trained model is used to answer new questions or make predictions. Every time you ask a chat assistant something, or a bank checks a payment, inference is taking place. This is the stage most organisations and users interact with.

An important consequence follows. A model's knowledge is largely fixed at the end of training. Unless it is retrained, updated or connected to other sources of information, it will not automatically know about events, prices or policies that changed afterwards.

Predictions are probabilities

Most AI systems do not produce certainties. They produce outputs that are likely, given the patterns they learned. A fraud system might estimate that a transaction has a high probability of being fraudulent. An image system might be very confident that a photograph shows a dog but less confident about the breed. Even when a tool presents a single, clean answer, there is usually a calculation of likelihood underneath.

This has two practical implications. First, every system will sometimes be wrong. Second, organisations must decide what level of confidence is acceptable and what should happen when the system is unsure.

Two kinds of error

Consider a system that flags job applications for a recruiter to review, or one that screens medical scans for signs of disease. It can make two kinds of mistake:

  • a false positive, where it flags something that is actually fine (a healthy scan marked as concerning);
  • a false negative, where it misses something that matters (a concerning scan marked as healthy).

Reducing one type of error often increases the other. Which matters more depends on the context. In medical screening, missing a disease is usually far more serious than an extra follow-up check. In a marketing campaign, sending an offer to the wrong person is a minor cost. A single "accuracy" figure can hide these differences, which is why it is worth asking what kinds of errors a system makes, not just how often.

Data quality: the foundation

Because models learn from data, the quality of that data shapes everything that follows. Common problems include:

  1. Incomplete data, where important cases or groups are missing.
  2. Inaccurate data, such as mistyped entries, duplicates or wrong labels.
  3. Outdated data, which reflects conditions that no longer apply.
  4. Biased data, which reflects past unfairness, for example historic hiring decisions that favoured one group.
  5. Poorly documented data, where nobody is sure where it came from or what each field means.

The old computing phrase "garbage in, garbage out" still applies. A sophisticated model trained on poor data will produce confident but poor results. In many AI projects, preparing and checking data takes far more time than building the model itself.

Remember: An AI system is only as reliable as the data it learned from and the checks that surround it. Good data and good oversight matter more than clever algorithms.

Models keep needing attention

The world changes, and models can gradually become less accurate as it does. This is sometimes called "model drift". A model predicting customer demand may perform well for a year and then start to slip after a change in pricing, a new competitor or a shift in habits. Responsible organisations monitor performance over time, compare predictions with what actually happened, and retrain or adjust models when needed.

In practice

Think about a decision in your own work that relies on judgement and information, such as prioritising sales leads, scheduling staff or approving expenses. If an AI system were to support it, what data would it need? Is that data available, accurate and up to date? What would a false positive and a false negative look like, and which would cause more harm? Working through these questions before adopting a tool is one of the most valuable contributions a non-technical professional can make to an AI project.

Case study: Predicting late deliveries at a regional wholesaler

Hartwell Supplies, a fictional food wholesaler serving restaurants across the Midlands, wanted to warn customers earlier when deliveries were likely to be late. Rather than writing rules by hand, the operations team worked with an analytics partner to train a model on two years of delivery records, including routes, weather, order size, driver schedules and whether each delivery arrived on time.

Early tests looked promising, but the operations manager, who had no technical background, asked a simple question: how did the model perform on routes opened in the last six months? The answer was poorly, because those routes were barely represented in the training data. The team added more recent records and agreed to retrain the model every quarter.

They also discussed the two kinds of error. Warning a customer about a delay that did not happen was a small inconvenience; failing to warn about a real delay could cost a restaurant its evening service. They therefore set the system to issue warnings at a lower level of confidence, accepting more false alarms in exchange for fewer missed delays. Staff reviewed the warnings each morning before they were sent.

Activity

Choose three tools or services you used in the past week that you suspect involve AI. For each one, write down the input it takes, the output it produces and what data it was probably trained on. Then note one situation in which it might get things wrong, and say whether that would be a false positive or a false negative.

Compare with a model answer

A good answer identifies specific, everyday tools rather than general categories, for example a navigation app, an email junk filter and a streaming service's recommendations. For each, it describes the input clearly (current location and destination; the content and sender of an email; viewing history) and the output (a route and arrival time; a "junk" or "inbox" decision; a list of suggested programmes).

It makes a sensible guess about training data, such as historic journey times, large collections of labelled emails or the viewing choices of many users. It then names a realistic failure: an important email wrongly sent to junk is a false positive for spam, while a scam email reaching the inbox is a false negative. The strongest answers also comment on which error matters more in that context and why.

Key takeaways

  • AI is a family of techniques for tasks associated with human thinking; all systems in everyday use today are narrow, task-specific AI.
  • Machine learning systems learn patterns from examples rather than following hand-written rules, and deep learning uses many-layered neural networks to do this at scale.
  • A model is the stored result of training; its knowledge is largely fixed at that point unless it is updated or connected to other information.
  • AI outputs are probabilities, so every system makes errors; it is important to understand both false positives and false negatives.
  • Data quality and ongoing monitoring matter as much as the model itself.

Unit check

Create a free account to answer the check, save your progress and receive your free certificate.

Create a free account Log in
← Course overview Unit 2 →
WhatsApp