Part 5 · Article 3 Stage 2 · How modern AI works

RECOGNISE, LOCATE, OUTLINE

Classification, Object Detection, and Segmentation—the three escalating superpowers of computer vision, from naming a photo to tracing a tumor down to the exact millimeter.

About 13–15 minutes

01

Three Different Questions You Can Ask About the Exact Same Picture

Hand a busy street photo—or a brain MRI scan—to a vision AI. Telling it "Look at this picture!" isn't enough; you have to decide how much spatial precision you actually need. Almost every computer vision system on Earth falls into one of three escalating levels of detail [1]:

  1. Level 1 — Image Classification ("What is in this picture?"): Hands back a single overall label for the whole image. "Yes, this chest X-ray contains a fracture." Great for triage sorting—but doesn't tell you where!
  2. Level 2 — Object Detection ("What is there, AND where is it?"): Draws crisp rectangular bounding boxes around every item it spots, each with its own label and confidence score. "Fracture #1 at top-left rib (94%); Fracture #2 at lower-right rib (88%)."
  3. Level 3 — Image Segmentation ("Which exact pixels belong to it?"): Colors in the exact organic contour of every object down to the individual pixel—like a precision coloring book. Essential when a radiation oncologist needs to zap a jagged brain tumor while sparing healthy brain tissue sitting 2 millimeters away!

ZappyWait—why not just use pixel-perfect Segmentation for everything if it's the most detailed?

Prof. BoltBecause tracing exact pixel outlines by hand to create training flashcards takes 10 to 50 times longer than typing one quick label! You don't hire a master portrait painter just to sort mail into two bins.

02

Level 1: Classification (The Fast Triage Sorter)

Image Classification takes an entire image and outputs one (or several) category probabilities. It is the simplest, cheapest, and fastest vision task to train because labeling is quick: a specialist glances at a retinal photo and clicks one button—"Referable Diabetic Retinopathy" vs. "Normal"—taking 15 seconds per image.

In real hospitals, classification models shine as worklist prioritizers. Every night, an emergency radiology department receives hundreds of routine and urgent CT head scans. A classification model scans every incoming study in 3 seconds; if it detects a high probability of intracranial hemorrhage (brain bleed), it immediately moves that scan to the very top of the on-call radiologist's screen so the patient is treated 30 to 60 minutes faster [2].

Its limitation? If a photo contains five different things—a pedestrian, two bikes, a traffic light, and a pothole—or if a chest X-ray shows three separate nodules in different lobes, a single whole-image label leaves you hunting for where each one sits.

Escalating Precision Across the Three Vision Tasks
1. Classify: "Tumor Present" 2. Detect: Draw Box Around Tumor 3. Segment: Trace Exact Millimeter Border
BOXES & PIXEL MASKS: YOLO AND U-NETThe two legendary architectures that taught machines to locate fast and outline with surgical precision
03

Level 2: Object Detection (Drawing Smart Boxes in Real Time)

Object Detection answers both "What?" and "Where?" by predicting four box coordinates (x, y, width, height) plus a class label for every object in the frame. Self-driving cars rely heavily on object detection to track 30 moving cars, cyclists, and traffic lights simultaneously at 30 frames per second.

Early detectors were painfully slow—sliding a classifier over thousands of candidate boxes per photo. Then in 2015, researchers unveiled YOLO ("You Only Look Once") [3]: it divides the entire image into a single grid and predicts all bounding boxes and labels in one single lightning-fast pass, hitting real-time video speed! When multiple overlapping boxes accidentally detect the exact same car or fracture, a tidy cleanup rule called Non-Maximum Suppression (NMS) keeps the sharpest, highest-confidence box and erases the redundant duplicates.

In medicine, object detection powers real-time colonoscopy polyp detectors (flashing a live green box around subtle flat polyps on the monitor while the gastroenterologist steers the scope—significantly reducing missed precancerous polyps in randomized clinical trials!) [4] and emergency wrist/hip fracture boxes that highlight subtle cracks for tired night-shift doctors.

Semantic Segmentation (Group Paint)

Paints every pixel belonging to the same category one shared color: all "road" pixels blue, all "car" pixels red, all "bone" pixels yellow—without separating Car #1 from Car #2.

Instance Segmentation (Individual Outlines)

Separates every individual object cleanly: Car #1 (bright red), Car #2 (dark red), Rib #4 vs. Rib #5, or Tumor Nodule #1 vs. Nodule #2 so each can be measured independently!

04

Level 3: Segmentation & U-Net (The Surgeon's Precision Tracing Tool)

Bounding boxes are wonderful for counting cars or flagging polyps, yet human anatomy is never a neat rectangle! If an orthopaedic surgical robot is planning exact bone cuts for a total knee replacement, or a radiation oncologist is aiming high-energy beams at a prostate tumor sitting millimeters from the bladder wall, a clunky rectangular box won't cut it—you need exact, pixel-by-pixel organic contours.

That is Image Segmentation, and its undisputed hero in healthcare is a 2015 architecture invented specifically for biomedical microscopy called U-Net [5]. Look at why U-Net is shaped like a giant letter "U":

  • Left Side (The Encoder — Zooming Out): Applies convolutions and pooling to shrink the scan down and grasp the big picture ("Here is the femur, here is the tibia, here is the worn cartilage").
  • Right Side (The Decoder — Zooming Back In): Expands the map step by step back up to full original pixel resolution to paint the exact millimeter border.
  • Horizontal Bridges (Skip Connections): Copies razor-sharp early edge maps straight across the "U" from left to right so the final outline hugs exact bone and tumor curves without turning blurry!

Today, foundation segmentation models like Meta's SAM (Segment Anything Model) and medical variants (MedSAM) let a clinician click a single dot on an organ or lesion and instantly generate a crisp 3D outline in one second—slashing radiation-planning contouring time from 45 minutes down to under 5 minutes [6].

05

How Engineers Grade Boxes and Outlines: Meet IoU and Dice Score

Wait—how do you grade an AI's bounding box or pixel outline? Plain "pixel accuracy" falls straight into our old 99% trap! If a tiny brain tumor covers only 1% of an MRI slice, a lazy model that paints the entire screen "Healthy" scores 99% pixel accuracy while missing the tumor completely.

Instead, vision engineers measure geometric overlap using two clean cousin metrics: IoU (Intersection over Union) for bounding boxes, and the Dice Score (widely used in medical imaging) for pixel segmentation. Both ask the exact same simple question: "Take the area where the AI's outline overlaps the doctor's true outline, and divide by their combined footprint!" A score of 0.00 means total miss; 1.00 means a 100% trace match; in clinical radiology, a Dice score above 0.85–0.90 often matches the natural agreement level between two board-certified human specialists.

Vision TaskOutput ShapeLabeling EffortGrading MetricClinical / Real-World Example
ClassificationWhole-image tagLow (1 click)ROC-AUC, Recall, PrecisionBrain-bleed CT triage queue
Object DetectionRectangular boxesMedium (draw boxes)IoU & mAPLive colonoscopy polyp boxes, self-driving cars
SegmentationExact pixel maskHigh (trace contours)Dice Score & IoU3D knee-replacement bone planning, tumor radiotherapy
Match the vision task to the real decision: use Classification to sort queues fast, Detection to box multiple moving or discrete items, and Segmentation (like U-Net) whenever exact millimeter borders and volumes matter.
06

Walkthrough: All Three Vision Levels Inside One Single Trauma ER Visit

Watch how Classification, Detection, and Segmentation team up seamlessly when a 45-year-old motorcyclist arrives at a trauma center after a high-speed fall:

  1. Minute 2 — Classification (Triage Priority): The emergency CT head and chest scans finish. Within 45 seconds, a whole-scan classifier flags "High Probability: Acute Intracranial Hemorrhage + Rib Trauma" and bumps the study to the #1 flashing red slot on the on-call radiologist's monitor.
  2. Minute 4 — Object Detection (Pinpointing Every Injury): A bounding-box detector overlays crisp numbered boxes on the chest scan—pinpointing three subtle hairline rib fractures (Ribs 5, 6, and 7) and a small collapsed-lung pocket that can easily be missed at 2:30 AM when doctors are focused primarily on the head injury.
  3. Minute 6 — 3D Pixel Segmentation (Measuring Exact Volume): A U-Net segmentation model traces the exact organic outline of the brain bleed across every CT slice and calculates its exact volume: 18.4 milliliters. Because neurosurgeons decide between emergency surgery versus close ICU monitoring based directly on bleed volume (and whether it expands by even 3 mL on a repeat scan four hours later), that millimeter-accurate pixel mask turns raw imaging into life-saving quantitative precision!

Notice how each level adds exactly the right amount of detail at the exact right moment—speed first, location second, millimeter measurement third.

The evidence file

Checked December 2026. Source types are labelled. Dialogue is fictional.

  1. CS231n: Classification, Detection, and Segmentation Overview, Stanford University, updated 2025; canonical taxonomy of core computer vision tasks.
  2. Prioritization of Head CT Studies for Intracranial Hemorrhage Using Deep Learning, Radiology (RSNA), 2019; clinical triage speedups via whole-scan classification.
  3. You Only Look Once: Unified, Real-Time Object Detection (YOLO), CVPR (Redmon et al.), 2016; single-pass real-time bounding-box detection.
  4. Effect of a deep-learning computer-aided detection system on adenoma detection during colonoscopy, The Lancet Gastroenterology & Hepatology, 2020; randomized trial of live polyp bounding boxes.
  5. U-Net: Convolutional Networks for Biomedical Image Segmentation, MICCAI (Ronneberger et al.), 2015; landmark encoder-decoder architecture for medical pixel outlining.
  6. Segment anything in medical images (MedSAM), Nature Communications, 2024; promptable foundation segmentation across CT, MRI, ultrasound, and endoscopy.
Write to ussrini.present@gmail.com
Read more: srinipresents.com