Privacy note: We capture your IP address to provide customised and focused services. See our Privacy Policy.

Machine Learning Foundations — Alpha School

Lesson 15: Deep Learning in Everyday Life

Deep learning — neural networks with many hidden layers — is the technology behind most of the AI you meet every day, and it is worth seeing plainly where it works, where it is merely convenient, and where it should not be trusted. Its great strength is layered patterns: images are made of edges, shapes and objects; speech is made of sounds, syllables and words; language is made of letters, words and meaning. Wherever the data has that layered structure, deep learning tends to win.

Take your phone. When it unlocks by recognising your face, a deep network has turned the image into layers of features — edges, then facial parts, then a pattern that matches you — and compared it with the pattern it stored. When you speak to a voice assistant, another network turns sound waves into words, and yet another turns those words into an answer. When a photo app sorts your pictures into people, places and pets, or when a translation app turns a street sign from one language into another, the same idea is at work: layers of learned patterns, trained on enormous amounts of data.

Where it works, and where it does not

Deep learning also sits behind many things you never see. Hospitals use it to help spot signs of disease in scans, though a doctor always makes the final call. Farms use it to spot sick crops from drone photos. Banks use it to flag transactions that look like fraud. In each case the pattern is the same: the task involves images, sound or language, there is a great deal of training data, and a human stays in charge of the final decision.

But there are places deep learning should not go, or should go only with care. It needs huge amounts of data, so it is a poor choice for a problem with a hundred examples. It is hard to explain, so it is a poor choice where a person must be told why a decision was made — a loan refusal, a medical diagnosis, a school admission. And it inherits whatever is in its training data, so a system trained mostly on one group of people will serve that group best and others worst. The technology is remarkable, but the judgement about where to use it is human work, and it is the subject of Unit 5.

The quiet failures of deep learning

Deep learning's failures are rarely dramatic; they are quiet. A model that recognises faces brilliantly on the photos it was trained on may fail on photos taken in different lighting, with different cameras, or of people from groups poorly represented in its data — and it will fail confidently, without warning. A translation model may handle common sentences well and produce fluent nonsense for an unusual one. A medical model may work in the hospital whose scans trained it and fail in another hospital whose machines produce slightly different images. These are all the same failure: the model learned the patterns of its training data, not the underlying reality, and the world outside that data is different in ways nobody noticed. The defence is the same in every case: test on data from the place and the people the model will actually serve, not only on data like the training set, and keep a human checking the cases where the model is most likely to be wrong.

The most important thing to remember about deep learning is that it is not a different kind of intelligence. It is pattern matching at a scale and depth that earlier models could not reach, trained on more data than any person could ever read. That is enough to recognise faces, translate languages and transcribe speech — and not enough to understand any of it. Keeping that distinction in mind is what lets you use these tools well without being fooled by them.

Key Terms

Deep learning
Machine learning with neural networks that have many hidden layers, used for images, sound and language.
Face recognition
Identifying a person from a photo or video by matching learned patterns in the image.
Speech recognition
Turning spoken sound into written words, usually with a deep neural network.
Translation model
A model that converts text or speech from one language to another, trained on large collections of translated text.
Training data scale
The amount of data a model learns from; deep learning typically needs far more data than simpler models.
Human in the loop
Keeping a person in charge of the final decision when a model assists, rather than letting the model decide alone.

Discussion Questions

  1. Your phone unlocks by face recognition. What happens to people the system was rarely trained on, and whose problem is that?
  2. Why should a doctor, not a model, make the final call on a scan? What could go wrong if the model decided alone?
  3. Deep learning needs huge amounts of data. What kinds of problems does that rule out?

Practice Questions

  1. Why is deep learning good at images and speech?
  2. Give two everyday uses of deep learning.
  3. Why is deep learning a poor choice for a problem with only a hundred examples?
  4. What does keeping a human in the loop mean?
  5. Deep learning can translate languages but does not understand them. What does that mean?
Show answers
  1. Because images and speech are made of layered patterns — edges into shapes, sounds into words. Many hidden layers build up those patterns step by step, which simpler models cannot do.
  2. Face unlock on a phone and voice assistants turning speech into words. Photo sorting, translation apps and fraud flagging are other examples from the lesson.
  3. Because it needs huge amounts of data to train its many weights. With little data it will memorise the examples instead of learning a real pattern.
  4. A person stays in charge of the final decision while the model assists. For example, a doctor makes the final call on a scan the model helped to examine.
  5. It matches patterns in translated text, without knowing what the words mean. It can produce fluent translations from statistical patterns while having no understanding of the content.
Keep reading to complete this lesson