Artificial Intelligence

Chapter 11
Computer Vision, Robotics and Embodied AI

Post Graduate Program in IT Engineering
Artificial Intelligence   •   Post Graduate

Computer Vision, Robotics and Embodied AI

Introduction and Context

Computer vision enables machines to interpret images and video; robotics enables them to act through physical mechanisms; and embodied artificial intelligence (AI) integrates perception, reasoning, action, and learning in an environment. Together, these fields form a central engineering pathway from data-centric AI to autonomous systems that operate in the physical world.

An embodied system differs from a conventional software model because its decisions are constrained by sensors, geometry, uncertainty, time, energy, mechanical limits, safety requirements, and interaction with people. A warehouse robot must not merely classify an object; it must locate the object, estimate whether it can be grasped, plan a collision-free motion, execute that motion, and recover when perception or actuation is imperfect.

This chapter examines the computational and engineering foundations of computer vision, robotics, and embodied AI, with emphasis on image processing, detection, recognition, segmentation, multimodal learning, sensing, localization, motion planning, control, and human–robot collaboration.

Learning Objectives

After completing this chapter, the reader should be able to:

1. Explain the major stages of a computer-vision pipeline.

2. Distinguish image classification, object detection, recognition, and segmentation.

3. Select suitable visual and non-visual sensors for a robotic task.

4. Explain camera geometry, localization, mapping, planning, and feedback control.

5. Analyze how multimodal learning supports embodied intelligence.

6. Design an integrated perception–planning–control architecture.

7. Evaluate systems using technical, operational, ethical, and safety criteria.

1. Computer Vision as Perception

Computer vision transforms measurements of light into structured information. A typical pipeline contains acquisition, preprocessing, representation, inference, and decision-making. The pipeline is not necessarily linear: later stages may request new viewpoints, adjust sensor exposure, or direct robot motion.

1.1 Image formation and representation

A digital image is a sampled measurement of scene radiance. A grayscale image can be represented as a function I(x,y), where x and y are pixel coordinates and I is intensity. A colour image commonly stores three channels, such as red, green, and blue. Pixel values depend on illumination, surface reflectance, optics, sensor noise, exposure, and quantization.

Important sources of variation include:

  • illumination changes, shadows, and reflections;
  • viewpoint, scale, and object deformation;
  • occlusion and truncation;
  • sensor noise, blur, and compression;
  • domain shift between training and deployment environments.

Preprocessing may include resizing, normalization, denoising, contrast adjustment, geometric correction, and colour-space conversion. These operations can improve robustness, but they may also remove information. For example, excessive smoothing can erase small defects that are important in industrial inspection.

Convolutional neural networks (CNNs) learn local-to-global visual representations through convolution, nonlinear activation, and subsampling. Vision Transformers model relationships among image patches using attention. In both cases, representation quality depends on data diversity, annotation quality, architecture, optimization, and the match between training and operational conditions.

1.2 Core vision tasks

Classification assigns one or more labels to an entire image. It answers, “What is present?” but not necessarily “Where is it?”

Object detection returns object categories and approximate locations, normally as bounding boxes. A detector must both classify candidate regions and localize them.

Recognition identifies an instance or identity, such as a particular vehicle, person, or product. Recognition can involve closed-set classification or open-set identification, in which the system must reject unfamiliar entities.

Semantic segmentation assigns a class label to every pixel. All pixels belonging to the same class receive the same label, even if they belong to different objects.

Instance segmentation assigns pixels to individual object instances. Two adjacent cars therefore receive separate masks.

Panoptic segmentation combines semantic and instance segmentation by assigning every pixel a class and, where relevant, an instance identity.

Pose estimation estimates keypoints or the orientation and position of an object or human body. It is especially important for manipulation, ergonomics, and human–robot interaction.

These tasks are related but not interchangeable. A robot picking fruit may require detection to find candidate fruits, instance segmentation to separate touching fruits, depth estimation to determine distance, and pose estimation to select a grasp.

1.3 Evaluation of vision systems

For binary decisions, precision is the proportion of predicted positives that are correct, while recall is the proportion of actual positives that are detected:

Precision = TP / (TP + FP)

Recall = TP / (TP + FN)

where TP, FP, and FN denote true positives, false positives, and false negatives. The F1 score is the harmonic mean of precision and recall:

F1 = 2PR / (P + R)

These measures assume a defined decision threshold and a meaningful positive class. Detection systems are commonly evaluated using intersection over union (IoU), defined for predicted region A and ground-truth region B as:

IoU = area(A ∩ B) / area(A ∪ B)

Average precision summarizes the precision–recall relationship across confidence thresholds, and mean average precision averages this quantity over classes or IoU criteria. Accuracy alone can be misleading for imbalanced data, such as rare defects or safety-critical pedestrians.

A deployed vision system should also be evaluated for calibration, latency, memory use, robustness, fairness, failure severity, and performance across demographic and environmental subgroups.

2. From Images to Meaning: Recognition and Multimodal Learning

Visual recognition is increasingly combined with language, depth, touch, sound, proprioception, and action history. Multimodal learning seeks a shared or coordinated representation of these signals.

A camera may show that an object is present, while depth estimates its distance, tactile sensing confirms contact, and language specifies the task: “Place the fragile cup on the upper shelf.” The modalities are complementary. Vision is information-rich but affected by occlusion and lighting; tactile sensing is local but useful during contact; proprioception provides joint state but does not directly describe the external scene.

Common multimodal strategies include:

1. Early fusion: concatenate or jointly process signals near the input stage.

2. Intermediate fusion: learn separate modality encoders and combine their representations.

3. Late fusion: produce modality-specific predictions and combine decisions.

4. Cross-attention: allow one modality, such as language, to attend selectively to another, such as image regions.

5. Shared embedding spaces: map images and text into a space where related concepts are close.

Fusion must address synchronization, coordinate alignment, missing data, different sampling rates, and unequal reliability. A robot should not treat a noisy depth reading as equally trustworthy as a calibrated stereo estimate. Reliability-aware fusion and uncertainty estimation are therefore important.

Vision-language-action models extend multimodal learning toward action selection. However, fluent language output does not guarantee geometric correctness, safe control, or physical competence. Embodied evaluation must measure task completion, collision rate, recovery behaviour, and generalization to novel scenes rather than language quality alone.

3. Robotic Sensing and State Estimation

A robot does not observe its complete state directly. It receives sensor measurements and estimates quantities such as position, velocity, object pose, and map structure.

3.1 Sensors

Common sensors include:

  • RGB cameras for colour and texture;
  • stereo cameras for depth from disparity;
  • RGB-D cameras for aligned colour and depth;
  • lidar for geometric range measurements;
  • inertial measurement units (IMUs) for acceleration and angular velocity;
  • wheel encoders for odometry;
  • force–torque sensors for interaction forces;
  • tactile arrays for contact distribution;
  • microphones and radar for acoustic or radio sensing.

Sensor selection should consider range, spatial and temporal resolution, field of view, latency, environmental sensitivity, calibration burden, cost, and failure modes. Sensor redundancy is valuable in safety-critical systems, but redundancy increases integration complexity.

3.2 Coordinate frames and calibration

Robotic reasoning requires transformations among coordinate frames: camera, robot base, end effector, object, and world. A rigid transformation is often represented by a homogeneous matrix T in the special Euclidean group SE(3):

T = [ R t ; 0 1 ]

where R is a 3 × 3 rotation matrix and t is a 3 × 1 translation vector. If a point has coordinates p in one frame, its coordinates in another frame are obtained by p' = Rp + t. Composition of transformations follows matrix multiplication, and order matters.

Intrinsic calibration estimates camera parameters such as focal lengths and principal point. Extrinsic calibration estimates the relative pose between sensors or between a sensor and the robot. Calibration errors can produce systematic grasping and localization errors even when the learned vision model is accurate.

3.3 Localization and mapping

Localization estimates the robot pose, while mapping estimates environmental structure. Simultaneous localization and mapping (SLAM) performs both when a prior map is unavailable or incomplete.

A standard probabilistic formulation represents a belief over state x given measurements z and controls u. In recursive estimation, a prediction step uses the motion model, and a correction step incorporates sensor evidence. The Kalman filter is appropriate for approximately linear systems with Gaussian noise. Extended and unscented variants address nonlinear models; particle filters represent non-Gaussian or multimodal beliefs.

For a simplified linear Gaussian model,

x_t = A x_{t-1} + B u_t + w_t

z_t = H x_t + v_t

where A and B describe state dynamics, H maps state to measurements, and w_t and v_t are process and measurement noise. The Kalman filter assumes known noise statistics and uses covariance to express uncertainty. Real robotic systems often violate these assumptions; robust estimation, factor graphs, visual–inertial odometry, and loop-closure methods are then used.

Localization failures may arise from perceptual aliasing, dynamic objects, poor texture, wheel slip, GPS denial, or map changes. A responsible system monitors estimator confidence and enters a safe mode when localization becomes unreliable.

4. Motion Planning and Manipulation

Motion planning determines a feasible path or trajectory from an initial configuration to a goal. The configuration space represents robot states using joint angles or other degrees of freedom. Obstacles in physical space become forbidden regions in configuration space.

A path is geometrically feasible if it avoids collision. A trajectory additionally specifies time and must satisfy velocity, acceleration, torque, and actuator constraints. Planning methods include:

  • graph search, such as A*, on discretized spaces;
  • sampling-based methods, such as probabilistic roadmaps and rapidly exploring random trees;
  • optimization-based trajectory generation;
  • reactive methods for immediate obstacle avoidance.

Sampling-based planning is useful in high-dimensional spaces where explicit discretization is expensive. Optimization can produce smooth, efficient trajectories but may be sensitive to initialization and local minima. Practical systems often combine a global planner with a local reactive controller.

For manipulation, a grasp must account for object geometry, friction, mass distribution, uncertainty, and the robot’s reachability. A visually plausible grasp may fail because the object is slippery, deformable, occluded, or heavier than expected. Closed-loop visual servoing can correct errors during approach rather than relying entirely on an open-loop plan.

5. Control: From Plans to Physical Action

Control converts a desired state into actuator commands. In feedback control, measured state is compared with a reference and the error drives corrective action. For a scalar proportional–integral–derivative (PID) controller,

u(t) = K_p e(t) + K_i ∫ e(τ)dτ + K_d de(t)/dt

where e(t) is reference minus measured output, u(t) is the command, and K_p, K_i, and K_d are gains. The derivative term may amplify noise, so filtering and actuator limits are important. Integral action can reduce steady-state error but can cause windup when actuators saturate; anti-windup mechanisms are therefore commonly used.

More advanced systems use computed-torque control, impedance control, model predictive control, or reinforcement learning. Impedance control is valuable for human–robot interaction because it regulates a compliant relationship between force and motion rather than enforcing rigid position tracking. Model predictive control repeatedly solves a finite-horizon optimization, applies part of the solution, measures the new state, and replans.

The perception–planning–control loop must account for latency. A delayed camera measurement can cause oscillation or collision if the robot moves rapidly. Designs should specify update rates, end-to-end latency, timing guarantees, and fallback behaviour.

6. Human–Robot Collaboration

Collaborative robots operate near people and must account for human intent, comfort, safety, and agency. Collaboration may involve co-located manipulation, shared workspaces, handover, instruction by speech or gesture, and assistive interaction.

A safe collaborative system should include:

  • physical design that limits force and pinch hazards;
  • speed and separation monitoring;
  • reliable detection of humans and body parts;
  • emergency stops and independent safety channels;
  • predictable motion and understandable signalling;
  • permission management and role-based access;
  • recovery procedures for sensor or communication failure.

Human detection is not equivalent to human understanding. A robot may detect a person but fail to infer whether the person intends to pass an object, enter a restricted area, or interrupt a task. Interaction models should represent uncertainty and allow clarification.

Ethically, systems must protect privacy, avoid unjustified biometric identification, provide meaningful human oversight, and prevent automation from obscuring accountability. Workplace deployment also requires risk assessment, training, incident reporting, and compliance with applicable machinery, occupational-safety, data-protection, and AI-governance requirements.

7. Integrated Embodied-AI Architecture

An embodied AI architecture can be organized into five layers:

1. Sensing: collects synchronized multimodal measurements.

2. Perception and state estimation: detects entities and estimates robot and world state.

3. World modelling: maintains maps, object relations, uncertainty, and task context.

4. Planning and decision-making: selects goals, actions, and recovery strategies.

5. Control and execution: converts plans into safe actuator commands and monitors outcomes.

Learning may occur at every layer, but learned components should be bounded by safety constraints and tested under distribution shift. A modular design improves diagnosis and certification, whereas end-to-end learning can exploit interactions that are difficult to hand-engineer. The choice is therefore architectural rather than ideological: systems should use learning where it offers measurable benefit and explicit models where guarantees, interpretability, or safety are essential.

Worked Example: Visual-Guided Robotic Pick-and-Place

Consider a mobile manipulator that must pick a labelled parcel from a shelf and place it on a conveyor.

First, an RGB-D camera detects candidate parcels and segments their visible surfaces. Optical and depth calibration transform the parcel pose from the camera frame into the robot base frame. The estimator attaches uncertainty to this pose because part of the parcel is occluded.

Second, the planner checks reachability and collision constraints. If the direct grasp path intersects the shelf, it generates a staged approach: move to a pre-grasp pose, align the gripper, approach along a safe direction, close the fingers, and verify contact using force or motor-current feedback.

Third, the robot lifts slowly while monitoring grasp stability. If the estimated parcel pose changes or the gripper detects slipping, the controller pauses and replans. After transport, the robot uses visual servoing to align the parcel with the conveyor placement region.

The principal engineering lesson is that detection accuracy alone is insufficient. Successful operation depends on calibration, uncertainty handling, reachable planning, feedback control, and recovery behaviour.

Illustrative Case Study: Hospital Supply Robot

Background. A hospital introduces autonomous mobile robots to transport sealed supplies between a central store and nursing wards.

Problem. Corridors contain people, carts, reflective surfaces, changing lighting, and temporary obstacles. The robot must navigate safely without continuously requiring staff intervention.

Analysis. Cameras provide semantic information but can be affected by glare and occlusion. Lidar supports geometric obstacle detection but may not identify whether an obstacle is a person or equipment. Wheel odometry drifts, while wireless positioning may be intermittent. The system therefore requires sensor fusion, dynamic obstacle tracking, robust localization, and a clear human override.

Approach. The robot uses a pre-existing map with lidar-based localization, camera-based semantic detection, wheel and inertial odometry, and a local planner that maintains conservative separation from people. A supervisory layer monitors localization covariance, sensor health, battery level, and communication. When uncertainty exceeds a threshold, the robot slows, stops, or requests assistance. Logs are reviewed for near misses and subgroup performance, including visibility conditions and corridor locations.

Outcome. The design improves delivery consistency while retaining human control during ambiguous events. The key benefit is not a single neural model but the integration of perception, estimation, planning, control, safety monitoring, and operational governance.

Learning points. Deployment should begin with constrained routes and measurable acceptance criteria. Safety cases must address foreseeable misuse and failure, not only normal operation. Performance should be evaluated in the real environment, including rare but consequential events.

Challenges, Limitations, and Contemporary Directions

Embodied systems face the reality gap between laboratory data and physical environments. Rare events, changing layouts, reflective materials, transparent objects, and novel human behaviour can defeat learned models. Simulation accelerates development, but simulated sensors and contact dynamics may not reproduce reality; sim-to-real transfer therefore requires domain randomization, calibration, adaptation, and real-world validation.

Other limitations include annotation cost, energy consumption, computational latency, model brittleness, adversarial inputs, cybersecurity threats, and inadequate uncertainty estimates. Foundation models offer broad visual and linguistic knowledge, but their outputs may be difficult to verify and may encode social or geographic bias. Retrieval, tool use, structured world models, and action-conditioned learning are active research directions.

Emerging developments include event-based cameras, tactile skins, neural radiance and three-dimensional scene representations, differentiable simulation, dexterous manipulation, self-supervised robotic learning, lifelong adaptation, and multi-robot coordination. Progress should be judged by reliability, transfer, safety, maintainability, and societal value rather than benchmark scores alone.

Best-Practice Design Principles

1. Define the operational design domain before selecting a model.

2. Use calibrated, time-synchronized sensors and record calibration quality.

3. Represent uncertainty and monitor confidence at runtime.

4. Separate perception confidence from action permission.

5. Combine global planning with local collision avoidance and feedback.

6. Test nominal, degraded, adversarial, and recovery scenarios.

7. Keep humans informed, empowered to intervene, and accountable for governance.

8. Measure latency, energy, fairness, safety incidents, and task success.

9. Maintain reproducible data, model, software, and hardware configurations.

10. Design graceful degradation rather than assuming perfect autonomy.

Chapter Summary

Computer vision provides visual perception through classification, detection, recognition, segmentation, and pose estimation. Robotic systems combine cameras, lidar, inertial, proprioceptive, force, and tactile sensors to estimate state under uncertainty. Coordinate transformations and calibration connect measurements to physical action. Localization and SLAM maintain knowledge of robot pose and environment, while motion planning produces feasible paths subject to collision and actuator constraints. Feedback control converts plans into robust action and supports correction during execution.

Embodied AI integrates perception, multimodal representation, world modelling, planning, control, and interaction. Its success depends on more than model accuracy: timing, uncertainty, calibration, safety, recovery, human oversight, ethics, and deployment context are equally important. The most reliable systems use learning and explicit engineering models together, validate performance in real operational conditions, and treat failure management as a core design objective.

Key Terms

Computer vision: Computational interpretation of images and video.

Object detection: Estimation of object categories and locations.

Semantic segmentation: Pixel-level classification by semantic class.

Instance segmentation: Pixel-level separation of individual object instances.

Pose estimation: Estimation of an object’s position and orientation or body keypoints.

Multimodal learning: Joint learning from multiple data modalities.

Sensor fusion: Combining measurements from different sensors.

Calibration: Estimation of sensor parameters and spatial relationships.

Coordinate frame: A reference system used to express position and orientation.

SLAM: Simultaneous localization and mapping.

Configuration space: Space representing the possible states of a robot.

Motion planning: Generation of feasible paths or trajectories.

Visual servoing: Control using visual feedback.

Feedback control: Control based on measured error between desired and actual states.

Impedance control: Regulation of dynamic compliance between force and motion.

Embodied AI: AI whose intelligence is expressed through sensing and physical action.

Human–robot collaboration: Cooperative activity between people and robots.

Domain shift: Change between training conditions and deployment conditions.

Operational design domain: Defined environment and conditions in which a system is intended to operate.

Review Questions

Short Answer Questions

1. Distinguish object detection from instance segmentation.

2. What is the purpose of extrinsic camera calibration?

3. Why is uncertainty important in robotic localization?

4. State two advantages and one limitation of multimodal sensing.

5. What problem does feedback control address?

Long Answer Questions

1. Explain the complete perception–planning–control loop for a manipulation task.

2. Compare semantic, instance, and panoptic segmentation and give an application for each.

3. Discuss the assumptions and limitations of Kalman-filter-based state estimation.

4. Explain how human safety, privacy, and accountability should influence collaborative-robot design.

5. Compare sampling-based and optimization-based motion planning.

Analytical / Application Questions

1. Design a sensor-fusion architecture for an outdoor delivery robot operating in rain, darkness, and crowded pedestrian areas. Justify sensor selection and fallback behaviour.

2. A warehouse robot frequently misses transparent packages but otherwise achieves high detection accuracy. Diagnose likely causes and propose a validation and improvement plan.

3. Develop acceptance criteria for deploying a hospital supply robot, including perception, localization, planning, control, safety, human oversight, and post-deployment monitoring.

Multiple Choice Questions with Answers

Question 1

Which task assigns a semantic class to every pixel while not distinguishing separate objects of the same class?

A. Image classification

B. Semantic segmentation

C. Object recognition

D. Visual odometry

Correct Answer: B. Semantic segmentation

Question 2

Intersection over union is computed as:

A. Area of intersection divided by area of union

B. Area of union divided by area of intersection

C. True positives divided by all predictions

D. False positives divided by true positives

Correct Answer: A. Area of intersection divided by area of union

Question 3

What is the primary purpose of extrinsic calibration?

A. To increase image colour saturation

B. To estimate the relationship between sensor coordinate frames

C. To remove all sensor noise

D. To classify objects in an image

Correct Answer: B. To estimate the relationship between sensor coordinate frames

Question 4

Which sensor is especially useful for measuring contact forces during manipulation?

A. Force–torque sensor

B. RGB camera

C. Wheel encoder

D. GPS receiver

Correct Answer: A. Force–torque sensor

Question 5

In the transformation p' = Rp + t, what do R and t represent?

A. Recall and threshold

B. Range and time

C. Rotation and translation

D. Risk and temperature

Correct Answer: C. Rotation and translation

Question 6

A robot that estimates both its position and an unknown map is performing:

A. Semantic classification

B. SLAM

C. Image compression

D. Inverse rendering only

Correct Answer: B. SLAM

Question 7

Which controller term can reduce steady-state error but may cause windup under actuator saturation?

A. Proportional

B. Integral

C. Derivative

D. Feed-forward colour

Correct Answer: B. Integral

Question 8

Why is a global planner often combined with a local reactive planner?

A. To eliminate the need for sensors

B. To combine long-range route selection with immediate obstacle avoidance

C. To guarantee that perception is correct

D. To replace calibration

Correct Answer: B. To combine long-range route selection with immediate obstacle avoidance

Question 9

Which statement best describes multimodal learning?

A. Learning exclusively from labelled RGB images

B. Combining information from modalities such as vision, language, depth, and touch

C. Increasing camera resolution without changing the model

D. Using only motor encoders for navigation

Correct Answer: B. Combining information from modalities such as vision, language, depth, and touch

Question 10

Which is a best practice for an embodied-AI deployment?

A. Assume laboratory accuracy transfers perfectly to the field

B. Ignore uncertainty when confidence is high on average

C. Test degraded and recovery scenarios in the operational environment

D. Allow learned predictions to bypass all safety constraints

Correct Answer: C. Test degraded and recovery scenarios in the operational environment

Artificial Intelligence
Chapter 11 of 15