Autonomous Systems

Introduction to Autonomous Systems

Autonomous systems are AI-powered agents that perceive their environment, make decisions, and act in the physical world with minimal or no human intervention. From self-driving cars and delivery drones to surgical robots and planetary rovers, these systems represent some of the most challenging and impactful applications of artificial intelligence.

📚 Autonomous System

A system capable of sensing its environment, processing sensory information, making decisions, and executing actions to achieve specified goals without continuous human supervision. Autonomy exists on a spectrum: from simple rule-based automation to fully self-directed agents operating in complex, dynamic, and unstructured environments.

The design of autonomous systems integrates nearly every AI sub-discipline: computer vision for perception, search and planning algorithms for decision-making, control theory for actuation, and machine learning for adaptation and improvement. This makes autonomous systems a capstone topic that ties together concepts from across the AI curriculum.

💡 GATE DA Relevance

Autonomous systems integrate concepts from search (Ch. 02–03), planning (Ch. 13), reinforcement learning (Ch. 12), computer vision (Ch. 11), and probabilistic reasoning (Ch. 07). Understanding the perception-planning-control pipeline and SLAM provides a unifying context for these topics. Questions may present autonomous system scenarios requiring you to identify which AI techniques apply.

SAE Levels of Driving Automation

The Society of Automotive Engineers (SAE) defines six levels of driving automation (J3016 standard), providing a widely-used framework for classifying autonomous vehicle capabilities.

📚 SAE J3016 Levels

A taxonomy ranging from Level 0 (no automation) to Level 5 (full automation), defining the division of driving tasks between human and machine. The key transition is between Level 2 (human must always supervise) and Level 3 (system handles driving in defined conditions; human is fallback).

Level Name Description Human Role Example
0 No Automation Human performs all driving tasks Full control Standard manual car
1 Driver Assistance System assists with steering OR speed (not both) Always supervising Adaptive cruise control
2 Partial Automation System handles steering AND speed simultaneously Must monitor at all times Tesla Autopilot, GM Super Cruise
3 Conditional Automation System handles all driving in specific conditions Fallback when requested Mercedes Drive Pilot (traffic jam)
4 High Automation System handles all driving in defined operational domain Not needed in domain Waymo robotaxi (geofenced)
5 Full Automation System handles all driving everywhere Passenger only Not yet achieved

⚠️ The Level 2–3 Gap

The transition from Level 2 to Level 3 is critical because it shifts legal liability from the human driver to the manufacturer. At Level 2, the human is always responsible; at Level 3+, the system is responsible when active. This has profound legal, insurance, and ethical implications, and explains why many companies have been cautious about deploying Level 3 systems.

Perception: Sensing the Environment

Perception is the first stage of the autonomous systems pipeline: converting raw sensor data into a structured understanding of the environment.

📚 Perception in Autonomous Systems

The process of using sensors and AI algorithms to detect, classify, and track objects, estimate the vehicle’s position, and build a representation of the surrounding environment. This includes tasks such as object detection, semantic segmentation, depth estimation, lane detection, and traffic sign recognition.

Key Sensors

  • Cameras: RGB images for object detection, lane marking, traffic signs. Cheap and information-dense but sensitive to lighting and weather.
  • LiDAR (Light Detection and Ranging): Emits laser pulses to create a 3D point cloud. Accurate depth measurement, works in low light, but expensive and sparse.
  • Radar: Uses radio waves for object detection and velocity estimation. Works in all weather conditions, good at measuring relative speed, but low resolution.
  • Ultrasonic Sensors: Short-range proximity detection for parking assistance.
  • GNSS/GPS + IMU: Global positioning and inertial measurement for vehicle localisation.

🔬 Example — LiDAR vs Camera Debate

The autonomous driving industry is divided between two philosophies: Multi-sensor (Waymo, Cruise): uses cameras + LiDAR + radar for redundancy and complementary strengths. LiDAR provides accurate 3D geometry; cameras provide rich semantic information; radar works in all weather. Vision-only (Tesla): argues that cameras alone are sufficient since humans drive with vision only, and that LiDAR is an expensive “crutch” that hinders scalability. Both approaches have trade-offs in cost, safety margins, and capability.

Perception Tasks

  • 3D Object Detection: Detecting and localising objects (vehicles, pedestrians, cyclists) in 3D space. Models like PointPillars (LiDAR), BEVFormer (camera), and PointPainting (fusion) are widely used.
  • Semantic Segmentation: Classifying every pixel/point as road, sidewalk, building, vegetation, etc.
  • Lane Detection: Identifying lane boundaries and their geometry for path planning.
  • Occupancy Prediction: Predicting which 3D voxels in the scene are occupied, providing a unified representation that handles objects of any shape.

Sensor Fusion

No single sensor is sufficient for robust autonomous driving. Sensor fusion combines data from multiple sensors to produce a more accurate, reliable, and complete understanding of the environment.

📚 Sensor Fusion

The process of combining data from multiple heterogeneous sensors to produce a unified representation that is more accurate and robust than any individual sensor alone. Fusion can occur at different levels: data-level (raw), feature-level, or decision-level.

Fusion Levels

  1. Early (Data-level) Fusion: Raw sensor data is projected into a common coordinate frame and merged before processing. Example: projecting LiDAR points onto camera images to create RGBD images.
  2. Mid-level (Feature-level) Fusion: Each sensor is processed by its own feature extractor, and the features are merged before the final detection head. Example: BEVFusion transforms camera and LiDAR features into a shared Bird’s Eye View (BEV) representation.
  3. Late (Decision-level) Fusion: Each sensor produces independent detections, which are combined using techniques like non-maximum suppression (NMS) or tracking-based association.

📒 Kalman Filter for Sensor Fusion

The Kalman Filter is a fundamental algorithm for fusing noisy measurements from multiple sensors. It maintains a belief (Gaussian distribution) over the system state and updates it in two steps: (1) Predict: Use the motion model to propagate the state forward. (2) Update: Incorporate the new sensor measurement, weighting it by the Kalman gain (inversely proportional to measurement noise). The Extended Kalman Filter (EKF) handles nonlinear systems by linearising around the current estimate.

🔬 Example — Multi-Sensor Fusion for Pedestrian Detection

A camera detects a pedestrian at bearing 30° with high confidence but unknown distance. A radar detects an object at 15m, 28° with known velocity 1.2 m/s but cannot classify it. LiDAR detects a point cluster at (14.8m, 29°) with precise shape but no semantic label. Sensor fusion combines all three: the camera provides classification (pedestrian), LiDAR provides precise 3D position, and radar provides velocity. The fused output: “pedestrian at 14.9m, 29°, moving at 1.2 m/s”—more complete and reliable than any single sensor.

Simultaneous Localisation and Mapping (SLAM)

SLAM is the problem of building a map of an unknown environment while simultaneously determining the agent’s location within that map—a chicken-and-egg problem that is fundamental to autonomous navigation.

📚 SLAM

Simultaneous Localisation and Mapping: Given a sequence of sensor observations and control inputs, estimate both the map m of the environment and the trajectory x1:t of the agent. Formally: find the posterior P(x1:t, m | z1:t, u1:t), where z are observations and u are control commands.

Types of SLAM

  • Visual SLAM (vSLAM): Uses cameras as the primary sensor. ORB-SLAM3 is a prominent example that extracts ORB features, matches them across frames, and optimises the pose graph.
  • LiDAR SLAM: Uses LiDAR point clouds. LOAM (LiDAR Odometry and Mapping) extracts edge and planar features for efficient scan matching.
  • Filter-based SLAM: Uses EKF or particle filters (FastSLAM) to maintain a probabilistic estimate of the robot pose and landmark positions.
  • Graph-based SLAM: Represents poses as nodes and constraints (odometry, loop closures) as edges in a graph, then optimises the entire graph jointly.

🔬 Example — Loop Closure in SLAM

A robot navigates a building and returns to a previously visited location. Due to accumulated odometry drift, it believes it is 3 meters away from its true position. Loop closure detection recognises that the current observation matches a previous one (e.g., same visual landmarks), creating a constraint that “these two poses should be the same location.” The SLAM system then re-optimises the entire trajectory, correcting the accumulated drift and producing a consistent map.

⚠️ SLAM Challenges

(1) Dynamic environments: Moving objects (people, vehicles) violate the static world assumption of classical SLAM. (2) Perceptual aliasing: Different locations that look similar cause false loop closures. (3) Scale ambiguity: Monocular visual SLAM cannot determine absolute scale without additional sensors. (4) Computational cost: Full graph optimisation becomes expensive as the map grows large; techniques like sliding-window optimisation and marginalisation help manage complexity.

Planning and Decision-Making

After perceiving the environment, an autonomous system must decide what to do. Planning in autonomous driving typically operates at three levels:

Route Planning (Mission Level)

High-level path from origin to destination using road networks. Uses graph search algorithms (Dijkstra, A*) on road maps. This is the layer provided by navigation systems like Google Maps.

Behavioural Planning

Decides high-level driving behaviours: lane changes, merges, turns, stops, yielding. Often implemented as a finite state machine (FSM) or decision tree that considers traffic rules, other agents’ intentions, and safety constraints.

Motion Planning (Trajectory Level)

Generates a smooth, feasible trajectory that follows the behavioural plan while respecting vehicle dynamics, comfort constraints, and obstacle avoidance.

📚 Motion Planning

The problem of finding a collision-free path from the current state to a goal state that satisfies kinematic/dynamic constraints, optimises for smoothness and comfort, and is safe with respect to predicted agent trajectories. Common approaches include lattice planners, optimisation-based planners, and sampling-based methods (RRT, RRT*).

🔬 Example — Three-Level Planning Pipeline

A self-driving car needs to get from point A to point B: (1) Route planner: Computes the fastest route via highways and city streets using A* on the road graph. (2) Behavioural planner: At an intersection, decides to wait for a pedestrian to cross before turning left. (3) Motion planner: Generates a smooth left-turn trajectory with appropriate speed profile, ensuring the vehicle stays in the correct lane and maintains safe distance from the crosswalk.

💡 End-to-End vs Modular Approaches

Traditional autonomous driving uses a modular pipeline (perception → prediction → planning → control) where each module is designed and optimised separately. Recent research explores end-to-end approaches that learn to map directly from sensor inputs to control outputs using imitation learning or RL. End-to-end models (e.g., UniAD, MILE) can potentially avoid error propagation between modules, but are harder to debug and verify for safety.

Control: Executing Actions

The control system converts planned trajectories into physical actuator commands (steering angle, throttle, brake) that the vehicle can execute.

📚 Vehicle Control

The process of computing and applying actuator commands to track a desired reference trajectory. Control must handle vehicle dynamics (non-holonomic constraints, tire physics, delays) and disturbances (road irregularities, wind). Common controllers include PID, pure pursuit, Stanley, and Model Predictive Control (MPC).

Common Control Algorithms

Controller Type Strengths Weaknesses
PID Reactive Simple, well-understood, easy to tune No prediction; struggles with complex dynamics
Pure Pursuit Geometric Smooth paths, simple implementation Cuts corners at high speed; no speed control
Stanley Geometric Good cross-track error correction Oscillation-prone at low speeds
MPC Optimisation-based Handles constraints and dynamics; predictive Computationally expensive; requires accurate model

📒 Model Predictive Control (MPC)

MPC solves a finite-horizon optimisation problem at each time step: minimise a cost function (tracking error + control effort) subject to vehicle dynamics and constraints (speed limits, acceleration bounds, steering limits), over a prediction horizon of N steps. Only the first control command is applied; the process repeats at the next time step with updated state (“receding horizon”). MPC is the gold standard for autonomous vehicle control due to its ability to handle constraints explicitly.

Sim-to-Real Transfer

Training and testing autonomous systems in the real world is dangerous, expensive, and slow. Simulation provides a safe, scalable alternative—but models trained in simulation often fail when deployed in reality due to the reality gap.

📚 Sim-to-Real Transfer

The process of training an AI model in a simulated environment and deploying it in the real world. The reality gap (or domain gap) refers to differences between simulation and reality—in visual appearance, physics, sensor noise, and agent behaviour—that cause models to underperform when transferred.

Techniques for Bridging the Reality Gap

  • Domain Randomisation: Randomise simulation parameters (textures, lighting, object sizes, physics properties) so the model learns features robust to variation. The real world becomes “just another variation.”
  • Domain Adaptation: Use techniques like adversarial training, style transfer, or CycleGAN to make simulated images look more realistic, or to align feature distributions between domains.
  • System Identification: Carefully measure and replicate real-world physical parameters (friction, mass, delay) in simulation.
  • Real-World Fine-Tuning: Pre-train in simulation, then fine-tune on a small amount of real-world data.

🔬 Example — Domain Randomisation

OpenAI trained a robotic hand (Dactyl) to solve a Rubik’s cube entirely in simulation. They randomised hundreds of parameters: cube size (±15%), friction coefficients (0.5–2.0×), gravity direction (±0.5 rad), camera positions, lighting angles, and table textures. After training on billions of randomised episodes, the policy transferred successfully to a physical robot hand that had never been used during training. The key insight: sufficient randomisation makes the model robust enough that reality falls within the distribution of training variations.

⚠️ Sim-to-Real Challenges

(1) Unmodelled phenomena: Real-world physics includes effects that simulators don’t capture (deformable objects, complex fluid dynamics, cable entanglement). (2) Computational cost: High-fidelity simulation with domain randomisation requires massive compute. (3) Reward hacking in simulation: Agents may exploit simulator bugs that don’t exist in reality. (4) Long-tail events: Rare but critical scenarios (unusual obstacles, extreme weather) may not be covered even by randomised simulation.

Edge AI

Autonomous systems must make decisions in real-time, often in environments with limited or no cloud connectivity. Edge AI refers to running AI inference directly on the device (vehicle, drone, robot) rather than in the cloud.

📚 Edge AI

The deployment of AI models on local, resource-constrained devices at the network edge. For autonomous systems, this means running perception, planning, and control models on on-board hardware (GPUs, TPUs, FPGAs, or specialised ASICs) with strict latency, power, and thermal constraints.

Key Considerations

  • Latency: Self-driving requires end-to-end latency under 100ms(sensor → decision → actuation). Cloud round-trip times (50–200ms) are unacceptable for safety-critical decisions.
  • Model Compression: Techniques like quantisation (FP32 → INT8), pruning, knowledge distillation, and neural architecture search (NAS) reduce model size and inference time.
  • Hardware Platforms: NVIDIA Jetson (GPU), Google Edge TPU, Intel Movidius (VPU), custom ASICs (Tesla FSD chip: 144 TOPS at 72W).
  • Power Budget: An autonomous vehicle’s compute system typically consumes 300–2000W, compared to a data centre GPU at 300–700W per card.

🔬 Example — Tesla FSD Chip

Tesla designed a custom SoC (System-on-Chip) for Full Self-Driving: (1) Two redundant inference chips, each delivering 72 TOPS (trillions of operations per second). (2) 36 TOPS at INT8 precision per neural network accelerator. (3) Total system power: ~72W. (4) Processes 8 cameras + 12 ultrasonic sensors + 1 radar (previously) in real-time. (5) Runs the full perception-planning-control stack with <100ms latency. This demonstrates the tight coupling between AI algorithms and custom hardware in autonomous systems.

💡 Quantisation for Edge Deployment

Post-Training Quantisation (PTQ): Convert a trained FP32 model to INT8 by calibrating with a representative dataset. Typically loses <1% accuracy with 4× speedup. Quantisation-Aware Training (QAT): Simulate quantisation during training, allowing the model to adapt. Achieves near-FP32 accuracy with INT8 or even INT4 precision. For autonomous systems, INT8 inference is the de facto standard for deploying large perception models on edge hardware.

Key Takeaways for GATE DA

📚 Summary of Core Concepts

  • SAE Levels: 0 (none) to 5 (full); Level 3 shifts liability from human to system.
  • Perception: Cameras (semantic), LiDAR (3D geometry), radar (velocity, all-weather).
  • Sensor Fusion: Early (data), mid (feature), late (decision); Kalman filter for state estimation.
  • SLAM: Simultaneous localisation and mapping; filter-based or graph-based; loop closure is critical.
  • Planning: Route (graph search) → Behavioural (FSM) → Motion (trajectory optimisation).
  • Control: PID (simple), MPC (optimal with constraints); receding horizon strategy.
  • Sim-to-Real: Domain randomisation, domain adaptation; reality gap is the core challenge.
  • Edge AI: On-device inference <100ms; quantisation (INT8) for deployment; custom ASICs.

💡 Exam Tips

Focus on the perception-planning-control pipeline and be able to explain each stage. Know the SAE levels (especially the Level 2/3 distinction). Understand sensor trade-offs (camera vs LiDAR vs radar). For SLAM, remember it solves localisation and mapping simultaneously, and loop closure corrects drift. MPC is the most important control algorithm to understand for exam purposes.