Lesson 2 of 2245 minutes

The Sense-Estimate-Plan-Act-Check Loop

Start with the lesson question, connect the representations, and test the model with evidence.

perceptionstate estimationplanningcontrolfeedback

Learning objectives

  • Distinguish automation, robotics, AI, and embodied AI.
  • Trace a complete sense-estimate-plan-act-check loop.
  • Identify autonomy boundaries and human oversight points.
Lesson flowHook, model, explanationShow guidance

Inspect the opening phenomenon

Predict what changes, then name the evidence.

Apply in the lab

Name the evidence before reading the answer.

Read only what helps

Then use the lab and recall check.

More when needed

Transcript and resources stay available below.

Course progress

AI & Robotics Foundations · What Makes a Robot Intelligent? · Lesson 2

The Sense-Estimate-Plan-Act-Check Loop

In progress

Decision challenge

Observe the phenomenon. Then connect the representations.

Use the opening example to make a prediction, identify evidence, and explain which model supports it.

How Robots Think: Sense, Estimate, Plan, Act & Learn

Predict what evidence belongs in Sense, Estimate, Plan, Act, Check, and Update.

Follow the robot evidence loop, then diagnose the earliest broken link when expected and observed results differ.

Before

Predict what evidence belongs in Sense, Estimate, Plan, Act, Check, and Update.

During

Record the evidence entering and leaving each stage and note where the human goal and safety limits apply.

After

Reconstruct the loop and diagnose the earliest broken link in a failed mission.

Reference drawerTranscript, source notes, scripts, and package status stay tucked away until you need them.7 files

Lesson reading

live

45 min

Video script

draft

Transcript fallback

available

courses/ai-robotics/modules/01-what-makes-a-robot-intelligent/lessons/02-sense-estimate-plan-act-check/video-transcript.md

Robot Loop Failure Lab

ready

25 min

Mastery check

live

6 questions / 10 min

Book section:courses/ai-robotics/modules/01-what-makes-a-robot-intelligent/lessons/02-sense-estimate-plan-act-check/book-section.md
Transcript for accessibility and fallback

# Video Transcript A robot failure is rarely explained by saying “the AI made a mistake.” Start with the goal. Then follow the evidence. Sensors produce measurements. Estimation turns those measurements into a belief about the current state. Planning chooses actions that should reach the goal while respecting constraints. Controllers send commands to physical actuators. Then the robot senses again and checks whether reality matched the prediction. For a delivery robot avoiding a box, the camera may detect points ahead, the estimator may infer the box position, and the planner may choose a curve. But a stale estimate, an ignored robot width, or a slipping wheel can each create the same visible collision. The check stage distinguishes expectation from observation and decides whether to correct, replan, stop, or ask a human. Trace the earliest broken link. That is where diagnosis begins.

Reading lab

Core explanation

Connect the lesson's words, diagrams, graphs, evidence, and equations.

Begin With a Failure

A delivery robot sees an obstacle, turns left, and still clips a box. Saying “the AI failed” is not useful enough to repair it. Engineers need to locate the failure: Was the box sensed? Was its position estimated incorrectly? Did the planner choose an unsafe path? Did the wheels execute the command? Did the robot check the result?

That investigation follows a reusable loop:

goal -> sense -> estimate -> plan -> act -> check -> update

1. Goal: Define Success and Boundaries

The goal says what outcome matters. “Reach loading bay B” is a goal. Constraints refine it: stay inside the marked lane, keep 0.5 metres from people, and stop when confidence is too low. A robot cannot judge success unless designers make the objective and limits observable.

2. Sense: Collect Measurements

Sensors produce measurements, not truth. A camera produces pixels. A lidar returns distances. Wheel encoders report rotation. Measurements can be noisy, delayed, blocked, or ambiguous.

For the delivery robot, a depth camera might report a cluster of points two metres ahead. That is evidence, but it is not yet a complete claim about the world.

3. Estimate: Build the Best Current State

Estimation turns measurements into a working belief: “A stationary box is two metres ahead and slightly right; the robot is moving at 0.4 metres per second.” The estimate may combine several sensors and always contains uncertainty.

This distinction is crucial:

  • measurement: what a sensor reported;
  • state estimate: what the robot currently believes about itself and the environment.

4. Plan: Choose an Action Sequence

Planning compares possible actions against the goal and constraints. The robot may slow down, steer around the box, stop, or request help. A plan is only as good as the state and assumptions it receives.

5. Act: Affect the Physical World

Controllers translate a planned motion into actuator commands. Motors, brakes, joints, and grippers have limits. Wheels can slip; batteries sag; payloads change stopping distance. A correct plan can still fail during execution.

6. Check: Compare Expected and Observed Results

After acting, the robot senses again. It compares the expected result with evidence. Did it turn far enough? Is the obstacle farther away? Is the goal closer? A mismatch triggers correction, replanning, stopping, or human escalation.

Without checking, the chain becomes open loop: command once and hope.

Worked Trace: Avoiding the Box

StageDelivery robot examplePossible failure
GoalReach bay B while maintaining clearanceSafety distance omitted
SenseDepth camera returns nearby pointsDark surface is missed
EstimateBox position and robot speed are inferredPosition is stale
PlanSlow and curve leftPath ignores robot width
ActMotors receive steering and speed commandsLeft wheel slips
CheckNew range and pose are compared with predictionCheck occurs too late

The table shows why failures propagate. A late or incorrect estimate can produce a reasonable plan for the wrong world.

Watch: The Robot Evidence Loop

Watch How Robots Think: Sense, Estimate, Plan, Act & Learn. Before pressing play, write the six loop stages from memory.

While watching, capture one concrete item for each stage:

StageEvidence to capture
SenseThe raw measurement available to the robot
EstimateThe robot's current belief about itself or the world
PlanThe selected safe path or action
ActThe physical command and resulting movement
CheckThe expected result compared with the observation
UpdateCorrect, replan, stop, or ask a human

After watching, explain where the human goal and safety limits enter the loop. Then answer: if the camera measured the box correctly but its stored position was stale, which is the earliest broken link?

Use the accompanying vertical infographic as a reference, but reconstruct the loop without looking before attempting the retrieval check.

The Loop Runs at Several Speeds

A motor controller may check velocity hundreds of times per second. Navigation may replan every second. A human supervisor may review a mission after several minutes. These nested loops should exchange clear state, confidence, and stop conditions.

Retrieval Check

  1. Why is a sensor measurement not the same as a state estimate?
  2. Give one example of a correct plan failing during action.
  3. What evidence should the check stage compare?
  4. Where would you place a human escalation rule in the loop?

Key Takeaway

Intelligent robot behavior is not one mysterious decision. It is a chain of evidence and responsibility. Trace the goal, measurement, estimate, plan, physical action, and feedback separately; then repair the earliest broken link.

Practice labRobot Loop Failure LabOpen this when you are ready to apply the model, collect evidence, and check your explanation.25 min

Objective

Trace a robot mission through the complete loop and diagnose failures using evidence.

Materials

  • Paper, diagramming tool, or spreadsheet
  • A timer
  • Optional toy vehicle or phone camera for observation

Steps

  1. Choose one mission: a vacuum avoiding a chair, a rover reaching a marker, or a gripper moving a cup.
  2. Write the goal and two safety constraints.
  3. Create seven boxes: goal, sense, estimate, plan, act, check, update.
  4. Put one concrete input and output in every box.
  5. Add uncertainty to one sensor measurement.
  6. Predict how that uncertainty propagates through the remaining stages.
  7. Add a check that detects the mismatch and choose: correct, replan, stop, or ask a human.
  8. Repeat with an actuator failure instead of a sensor failure.

Expected Result

Your diagram distinguishes measurements from estimates, connects every action to feedback, and identifies the earliest stage supported by evidence as the failure source.

Reflection Questions

  • Which failure was easiest to detect but hardest to recover from?
  • What confidence or threshold should trigger human help?
  • How would a slower check rate change safety?

Extension Challenge

Design two nested loops for the same robot: a fast motor-control loop and a slower navigation loop. Mark what information crosses between them.