• Foundation
  • About 15 min
  • 5 practice questions

Branches of AI: machine learning, deep learning, NLP, computer vision, speech and robotics

Name the main branches of AI, say what each does with an everyday example, and explain how AI, machine learning and deep learning fit inside one another.

If something looks wrong, please tell us.

AI is a large field with several branches. Questions often give a situation - a phone reading a number plate, an app translating Hindi into English - and ask which branch is at work. This lesson gives you a map of the branches and a quick way to identify each.

AI, machine learning and deep learning: circles inside circles

Picture three circles, one inside the next. AI is the biggest circle: any technique that makes machines perform intelligent tasks. Inside it is machine learning (ML): AI that learns from data instead of following only hand-written rules. Inside ML is deep learning (DL): machine learning that uses neural networks with many layers. So all deep learning is machine learning, and all machine learning is AI, but not the other way round.

Neural networks in one paragraph

An artificial neural network is loosely inspired by the brain's neurons. It has an input layer that receives data (such as the pixels of a photo), one or more hidden layers that process it, and an output layer that gives the answer (such as 'cat'). Each connection has a weight that is adjusted during training. 'Deep' simply means many hidden layers, which lets the network learn complex patterns step by step - edges, then shapes, then whole objects.

Layers of a neural network

  1. Input layer Receives the data, such as the pixels of a photo.
  2. Hidden layers Process it; many hidden layers make a network deep.
  3. Output layer Gives the answer, such as 'cat'.

Three ways machines learn

Three ways machines learn

  • Supervised learning From examples labelled with the right answer.
    • Emails marked spam or not spam
  • Unsupervised learning From unlabelled data, finding groups or patterns on its own.
    • Grouping shoppers with similar buying habits
  • Reinforcement learning By trial and error, with rewards and penalties.
    • A program learning to play a game by playing it many times
Type of machine learningHow it learnsExample
Supervised learningFrom examples labelled with the right answerEmails marked spam or not spam
Unsupervised learningFrom unlabelled data, finding groups or patterns on its ownGrouping shoppers with similar buying habits
Reinforcement learningBy trial and error, earning rewards for good actions and penalties for bad onesA program learning to play a game by playing it many times

The main branches

Branches of AI
BranchWhat it doesEveryday example
Machine learningLearns patterns from data to predict or decideFraud alerts on unusual payments, product recommendations
Deep learning and neural networksMachine learning with many-layered networks for complex dataFace recognition, modern speech recognition
Natural language processing (NLP)Understands and produces human languageHindi-English translation, chatbots, grammar suggestions
Computer visionUnderstands images and videoFace unlock, number-plate reading, spotting crop disease in leaf photos
Speech recognitionTurns spoken words into textVoice typing, voice assistants
RoboticsMachines that sense and act in the physical worldWarehouse robots, robot vacuum cleaners, factory robot arms
Expert systemsApply if-then rules taken from human expertsEarly medical-advice systems

Two cautions. First, a robot is not automatically AI: an arm that repeats the same welding motion all day is automation. It becomes AI when it senses and decides, for example a warehouse robot that finds its way around obstacles. Second, real products usually combine branches, as the first worked example shows.

Worked example 1: one voice question, four branches

  1. You say, 'Kal Jaipur mein mausam kaisa rahega?' (What will the weather be in Jaipur tomorrow?)
  2. Speech recognition converts your voice into text.
  3. NLP works out the meaning: a weather request, for Jaipur, for tomorrow.
  4. The assistant fetches the forecast from a weather service.
  5. Speech synthesis (text-to-speech) reads the reply aloud. Deep learning powers most of these steps.

Worked example 2: name the branch

SituationBranchClue
A toll plaza camera reads vehicle number platesComputer visionUnderstanding an image
An app translates a Tamil sign into EnglishNLP (with computer vision to read the sign)Language
A bank groups customers by spending habits without labelsMachine learning (unsupervised)Finding groups in unlabelled data
A farmer speaks a query and it appears as textSpeech recognitionVoice to text

AI ⊃ machine learning ⊃ deep learning. Language → NLP; images → computer vision; voice to text → speech recognition; physical action → robotics; if-then expert rules → expert systems.

Key takeaways: deep learning sits inside machine learning, which sits inside AI. Neural networks have input, hidden and output layers; 'deep' means many hidden layers. ML learns in supervised, unsupervised or reinforcement ways. Identify a branch by its input: language, images, speech, physical action or expert rules.

Check your understanding

  1. 1. Which statement about AI, machine learning (ML) and deep learning (DL) is correct?

    1. DL is a part of ML, and ML is a part of AI
    2. AI is a part of ML
    3. ML is a part of DL
    4. The three are unrelated fields
    Show answer

    Answer: A. Think of circles inside circles: AI is the largest, ML is AI that learns from data, and DL is ML that uses many-layered neural networks. So DL lies inside ML, which lies inside AI.

  2. 2. An app reads the printed text on a photographed electricity bill and fills a payment form. Reading text from the image mainly uses:

    1. Reinforcement learning
    2. Speech recognition
    3. Computer vision
    4. Robotics
    Show answer

    Answer: C. Getting information out of an image is computer vision (reading printed text from images is often called OCR, optical character recognition). No speech, physical movement or reward-based learning is involved.

  3. 3. A program learns to play a game by playing it repeatedly, getting points for good moves and losing points for bad ones. This is:

    1. Supervised learning
    2. Reinforcement learning
    3. An expert system
    4. Unsupervised learning
    Show answer

    Answer: B. Learning by trial and error with rewards and penalties is reinforcement learning. Supervised learning needs labelled examples, and unsupervised learning finds groups in unlabelled data.

  4. 4. In a neural network, the word 'deep' refers to:

    1. How expensive the computer is
    2. The network being stored underground
    3. The network having only one layer
    4. The network having many hidden layers
    Show answer

    Answer: D. Deep learning uses neural networks with many hidden layers between the input and output layers. More layers let the network learn complex patterns step by step.

  5. 5. Which branch of AI deals with understanding and producing human language, as in chatbots and translation?

    1. Natural language processing (NLP)
    2. Computer vision
    3. Robotics
    4. Expert systems
    Show answer

    Answer: A. NLP is the branch for human language: translation, chatbots, summaries and grammar suggestions. Computer vision handles images, robotics handles physical action, and expert systems apply if-then rules.

Privacy · Terms · Refunds · Delivery