← back to theory
AI

AI, Machine Learning, and Deep Learning Basics

Artificial Intelligence (AI), Machine Learning (ML), and Deep Learning (DL) are often used interchangeably, but they describe different layers of the same field. Understanding how they relate provides the foundation for modern AI systems, including tools like ChatGPT, Copilot, image generators, recommendation engines, and autonomous systems.

Artificial Intelligence (AI)

Artificial Intelligence is the broad field of building systems capable of performing tasks that normally require human intelligence. These tasks include reasoning, learning, decision-making, language understanding, perception, and problem solving.

AI is not a single technology. Instead, it is an umbrella term covering many approaches and disciplines such as:

  • Natural Language Processing (NLP)
  • Computer Vision
  • Robotics
  • Expert Systems
  • Machine Learning

Modern AI is primarily focused on augmenting human capabilities by automating repetitive work, analyzing large datasets, and supporting decision-making.

Machine Learning (ML)

Machine Learning is a subset of AI that allows systems to learn patterns from data instead of relying solely on manually programmed rules.

Rather than explicitly telling a computer every possible scenario, an ML model is trained using examples and learns relationships within the data. Once trained, the model can make predictions or decisions on previously unseen inputs.

Example:

Instead of writing rules to identify whether an image contains a cat or dog, thousands of labeled images are provided to a model, which learns the visual differences automatically.

Types of Machine Learning

Supervised Learning

The model learns using labeled data where the correct answer is already known.

  • Spam detection
  • Malware classification
  • Fraud detection
  • Image recognition

Unsupervised Learning

The model receives unlabeled data and attempts to identify patterns or relationships on its own.

  • Customer segmentation
  • Anomaly detection
  • Behavior analysis
  • Data clustering

Reinforcement Learning

The model learns through trial and error. Actions that lead to positive outcomes are rewarded, while poor decisions are penalized.

  • Game-playing agents
  • Robotics
  • Autonomous vehicles

Deep Learning (DL)

Deep Learning is a specialized subset of Machine Learning that uses large neural networks containing many layers. These networks automatically learn increasingly complex representations from data.

Deep Learning became practical due to large datasets, powerful GPUs, and advances in neural network architectures.

Compared to traditional ML, Deep Learning excels when working with:

  • Images
  • Video
  • Speech
  • Natural language
  • Large unstructured datasets

Common Neural Network Types

CNNs (Convolutional Neural Networks)

Optimized for image and video analysis. CNNs identify patterns such as edges, shapes, textures, and eventually complete objects.

RNNs (Recurrent Neural Networks)

Designed for sequential data such as text, time-series information, and speech. Modern systems have largely replaced RNNs with transformers.

Transformers

The architecture powering most modern generative AI systems. Transformers use attention mechanisms to understand relationships between words, tokens, images, and other forms of data.

Large Language Models (LLMs) such as ChatGPT are built using transformer-based architectures.

The Relationship Between AI, ML, and DL

The easiest way to think about these terms is as nested categories:

Artificial Intelligence (AI)
└── Machine Learning (ML)
    └── Deep Learning (DL)

AI is the overall goal of creating intelligent systems. Machine Learning provides a method for learning from data, while Deep Learning uses large neural networks to solve particularly complex problems.

Why It Matters

Nearly every modern AI system — from chatbots and recommendation engines to autonomous vehicles and threat detection platforms — is built on Machine Learning, with many state-of-the-art systems using Deep Learning and transformer models.

Understanding the distinction between AI, ML, and DL is important because these terms describe different levels of the technology stack. AI is the objective, ML is the learning approach, and DL is one of the most powerful implementations of that approach used today.

Why It Matters for Security

On a security site this isn't just background. The same ideas show up on both sides of the fence:

  • Defence. Modern EDR, SIEM, and anti-spam engines lean on supervised and unsupervised ML for malware classification, anomaly detection, and behavioural baselining — which is also why evasion research targets the specific features a model relies on.
  • Attacks against models. Adversarial ML treats the model itself as the target: evasion (crafting inputs that are deliberately misclassified), data poisoning (corrupting the training set), and model inversion or extraction (recovering training data or cloning the model).
  • LLM-specific risks. Transformer-based LLMs add their own attack surface — prompt injection, jailbreaks, insecure tool and plugin use, and training-data leakage. The OWASP Top 10 for LLM Applications is the standard reference for these.

Knowing whether a system learns from labelled data, clusters unlabelled data, or generates output with a transformer tells you immediately where its weaknesses are likely to be.

Related reading