1. Home
  2. Explore
  3. Computer Science
  4. Machine Learning in Robotics

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Machine Learning in Robotics

Data-Driven Robotics, Shared Autonomy, and Adaptive Control

Robotics at the Intersection of Hardware and Machine Learning

Robotics depends on more than capable mechanisms. A robot also needs intelligent control: it must interpret incomplete sensory information, plan actions in changing environments, account for uncertain dynamics, and work safely alongside people. Data-driven methods from machine learning can complement physics-based models by learning patterns or correcting mismatches between a model and a real machine.

A useful approach combines:

  • Analytical models, such as Newtonian mechanics, kinematics, and known constraints.

  • Data-driven learning, which can capture effects that are difficult to model exactly.

  • Feedback control, which continually adjusts actions using new sensor information.

This combination is especially important when robots operate outside controlled industrial settings. Applications include manufacturing, mining, agriculture, smart cities, autonomous transport, health care, medical robotics, field inspection, and nuclear decommissioning. In decommissioning, robots can inspect and assist with hazardous facilities that are difficult, dangerous, or costly for people to enter.


Shared Autonomy

What shared autonomy means

Robotic operation is often described as lying between two extremes:

  • Teleoperation: a human directly specifies the robot’s actions.

  • Full autonomy: the robot makes decisions and acts without ongoing human input.

  • Shared autonomy: the human and robot divide responsibility, shifting between human direction and autonomous behavior as circumstances require.

Shared autonomy is useful when a task is too complex or risky for either pure teleoperation or full autonomy. The robot can perform low-level actions—such as obstacle avoidance, balance control, or grasp adjustment—while the human specifies goals or intervenes when judgment is needed.

The goal is to reduce the operator’s cognitive load without removing meaningful human oversight. The system should preserve human intentions and allow human control to become more prominent when needed.

Why shared autonomy is difficult

A shared-autonomy system is not simply an autonomous controller with a human interface added. Human input becomes part of the control loop. The system may need to account for:

  • The user’s intentions, which may be incomplete or ambiguous.

  • Human and robot actions that cooperate or conflict.

  • Forces applied simultaneously by a person and a robot to the same object or device.

  • Noisy sensing, multiple objects, and uncertain contacts.

  • Unmodeled behavior and constrained environments.

  • Safety requirements and the need for reliable operation.

These factors make the design problem harder than either a fully human-controlled or fully autonomous system.

Shared autonomy for remote operations

Remote operation becomes especially challenging when the operator has no direct line of sight to the robot, communications have limited bandwidth, or transmission delays are significant. In these conditions, the operator cannot continuously correct every motion.

A more effective arrangement uses low-bandwidth, high-level human commands and lets the robot handle much of the detailed execution. For example:

  • The human specifies a goal, such as picking up an object and placing it at a destination.

  • The robot autonomously navigates, avoids obstacles, selects an arm, and maintains balance.

  • The human can supply intermediate guidance or override the robot when necessary.

This approach is relevant to nuclear decommissioning, disaster response, and other dangerous environments. Its purpose is to make remote operation possible even when continuous, precise human control is impractical.

Shared autonomy in construction and industry

The same principle can simplify the operation of complex equipment. In underground construction, for example, an operator can provide high-level direction while the machine uses live sensing to control a cement-spraying nozzle. Embedding autonomy in the low-level control can reduce the technical skill required from the operator and help make machines more robust to variation in the environment.


Perception and Real-Time Feedback

From raw images to useful information

An RGB-D camera provides color and depth information, but raw images do not directly tell a robot which objects matter, what can be grasped, or which regions are unsafe. The robot must interpret sensor data to detect objects, estimate their poses, identify obstacles, and select suitable actions.

One approach is model-based visual tracking. The robot uses a model of an object to estimate its position and orientation over time. Bayesian inference helps manage uncertainty caused by:

  • Occlusion, when an object is partly hidden.

  • Clutter, when many objects or visual features appear together.

  • Depth limitations or missing depth information.

  • Camera motion, such as when the camera is mounted on a moving robot.

Tracking must be both accurate and fast enough to support feedback control. If perception is too slow, the robot cannot adjust its actions promptly as the scene changes.

Terrain interpretation and footstep planning

Legged robots need to decide where to place each foot. A sensing-and-control pipeline can:

  1. Gather live sensor data about nearby terrain.

  2. Segment the terrain into geometric regions, such as planes.

  3. Estimate which regions are suitable for stepping.

  4. Plan a short sequence of footsteps.

  5. Use feedback to revise the plan as new information arrives.

  6. Execute the steps while considering balance and stability.

This illustrates how perception, planning, and control form a single loop rather than independent stages. A terrain model is useful only if it supports timely decisions about where and how the robot should move.


Modular Motion Planning with EXOTica

Complex motion planning is easier to study and improve when it is divided into explicit components. The EXOTica framework organizes planning into three elements.

Motion planner

The planner searches for a motion satisfying the specified task and constraints. Different planners can be substituted, including established planning libraries and methods based on Bayesian inference.

Task maps and planning objectives

A task map defines the variables or task features that matter. Examples include an end-effector’s position or a measure of the robot’s balance. A cost function then specifies what the planner should optimize, such as keeping the robot balanced while performing a manipulation.

Choosing the right objective is difficult: a planner may fail because the search method is unsuitable, but it may also fail because the task has been expressed through a poor or incomplete cost function.

Planning scene and robot model

The planning scene contains the robot and its environment, including the robot’s geometric and dynamic descriptions. A mismatch between the model and the physical robot can cause planned motions to behave differently in reality.

Why the separation is useful

The modular structure makes it possible to diagnose failures systematically:

  • A failure may originate in the motion-planning algorithm.

  • The task map or cost function may not express the intended behavior.

  • The robot or environment model may be inaccurate.

Separating these possibilities supports fairer comparison of algorithms and makes it easier to identify what needs improvement.


Integrated Control of Mobile Bases and Manipulator Arms

Mobile manipulation often treats the vehicle base and the robot arm as separate systems. The base moves to a location and stops; then the arm performs the task. Integrated control instead plans and controls the whole body—base and arm together.

When the base and arm are controlled jointly:

  • Base motion can be coordinated with arm motion.

  • Disturbances in one part can be compensated for by the other.

  • The robot can perform tasks while moving rather than repeatedly stopping.

  • The combined system can respond more flexibly to force-based task requirements.

An example is sensor placement by an omnidirectional mobile robot. The system selects a target, positions a sensor, and responds to force-related goals while the base remains in motion. This is useful in settings such as warehouses, where stopping for every manipulation can reduce efficiency.

Integrated mobile manipulation also applies to collaborative manufacturing and infrastructure work, including underground construction and inspection.


Relational and Topological Representations for Planning

Why ordinary coordinates can be limiting

Robots often represent goals in Euclidean coordinates—for example, a target position expressed relative to a coordinate frame. This works well for simple tasks, but can make replanning difficult when objects move or when the task depends on a relationship rather than an exact position.

A person might describe a goal relationally: place an object inside a box or keep a tool around a pipe. A robot must translate such language into control variables, often involving coordinate frames and geometric constraints.

Topological task descriptions

A topological representation focuses on relationships and properties that remain meaningful under certain geometric changes. For example, if a robot is instructed to reach inside a box, “inside the box” remains the target even when the box moves. The robot can adjust its motion to preserve the relationship rather than treating the original target coordinates as fixed.

This can reduce the need for explicit collision-avoidance replanning. The system can optimize in a relational or topological space, maintaining a task property as the environment changes.

Applications to complex robots and flexible objects

Relational and topological representations are useful when conventional motion planning becomes computationally difficult, especially for systems with many degrees of freedom or complex contacts. Examples include:

  • Continuum and snake-like robots.

  • Ropes and flexible surfaces.

  • Manipulation involving multiple simultaneous contacts.

  • Tasks defined by winding, wrapping, or rotation around an object.

A goal may be expressed in terms of how many times a robot or flexible object should wrap around something, rather than by specifying every joint coordinate along the path. Such representations can make the relevant structure of a task easier to plan over.

Interaction meshes

An interaction mesh represents relationships among people, robots, and objects. Instead of relying only on Euclidean distances between bodies, the controller can maintain a desired relational configuration. For example, the relation between a tracked person and a robot can guide the robot’s motion and help it avoid obstacles while preserving the intended interaction.


Compliance and Variable Impedance

Why compliance matters

Even with good sensing and planning, real environments remain uncertain. Sensor estimates are imperfect, contacts are unpredictable, and objects may not behave exactly as expected. A robot that is too rigid can respond poorly to disturbances or make contact in an unsafe way.

Compliance allows a robot to yield under external forces. It can improve robustness when the environment or the task is uncertain.

Variable stiffness and damping

Some robot mechanisms can adjust joint stiffness and damping during motion. Rather than controlling only the torque applied at a joint, the system can also change how rigid or damped the joint behaves.

  • Stiffness determines how strongly the joint resists displacement.

  • Damping determines how strongly it resists motion and dissipates energy.

A robot may benefit from being soft in one situation and stiff in another. The best setting depends on the task, the environment, and the desired balance among performance, energy use, and disturbance rejection.

The key problem is therefore not merely to build compliant mechanisms, but to determine how stiffness and damping should change over time.

Variable impedance as an optimal-control problem

A robot with adjustable stiffness can be modeled as a system whose dynamics depend on both motion commands and impedance settings. An optimal controller can choose:

  • The motion or equilibrium position of each joint.

  • The stiffness and damping settings.

  • Feedback actions that respond to the robot’s evolving state.

A task is expressed through an objective or cost function. For example, in a ball-throwing task, the objective can reward greater throwing distance while accounting for other costs, such as effort or force.

Classical optimal-control methods can solve this type of problem when the system dynamics and objective are specified. The machine-learning formulation described represents the problem using states, actions, transition probabilities, and costs, in the form of a Markov decision process.

Inference across levels of abstraction

A robot task can be described at multiple levels:

  • Joint angles and motor commands.

  • End-effector positions from forward kinematics.

  • Relationships among objects and key points on the robot.

Planning across these representations requires consistency between levels. For instance, a desired end-effector relationship must correspond to feasible joint motions. Variational-inference methods provide a way to reason across these linked representations and integrate uncertainty over variables in the model.

This perspective allows techniques from machine learning to be applied to optimal-control problems, including inference over possible actions and states.

Learning to throw a ball

In a variable-stiffness throwing task, the controller optimizes the motions and stiffness settings of a two-link arm over a fixed time interval. The joints have separate controls for:

  • Their equilibrium positions.

  • Their stiffness levels.

By adjusting stiffness during loading and motion, the arm can store energy in elastic elements and release it during the throw. This can produce a more energetic motion than simply swinging with fixed stiffness.

The reported experiments found an approximately 20–25% improvement over an optimized fixed-stiffness alternative. The underlying principle resembles pumping a swing: energy can be added more effectively when the timing and stiffness are coordinated with the motion.

Variable stiffness for legged robots

The same idea can be applied to quadrupeds. Rather than changing only joint stiffness, the controller can adjust task-space or operational-space stiffness in selected directions. The system can then adapt the robot’s response to the terrain and optimize its trajectory accordingly.

For example, the robot may need different compliance depending on whether it is moving over a firm surface, a slippery surface, or uneven terrain.

Cooperative object manipulation

Variable impedance also supports manipulation of a shared object. In a decentralized arrangement, multiple arms can coordinate through force-based control. Adjusting stiffness between the robot and the object can help maintain the grasp and respond when external conditions change, such as when the object’s weight is altered. Learning can help the system detect that the object or task has changed, infer the cause, and update its model.

In a collaborative balancing task, the objective is to keep the object from slipping or being dropped while minimizing the net force applied to it. The control must respect friction constraints: the tangential force at the contact must remain within the limit allowed by friction. The system therefore balances secure contact against avoiding excessive squeezing.


Human–Robot Collaborative Manipulation

In dyadic collaboration, a person and a robot manipulate an object together. The robot’s motion should respond to the collaborator’s policy or behavior. The described approach assumes that the collaborator’s policy can be estimated separately and then incorporated into the robot’s control.

The controller must coordinate several decisions:

  • The object’s motion trajectory and the forces applied to it.

  • The locations at which the robot grasps or holds the object.

  • The timing of changes in grasp, including when the robot should re-grasp.

This is a hybrid optimization problem because it combines continuous decisions, such as trajectories and forces, with discrete decisions, such as which grasp sequence to use.

One strategy separates the problem into two stages:

  1. Optimize a sequence of grasp or hold changes.

  2. Optimize continuous motion and dynamics within each selected sequence.

A search method can select among discrete grasp sequences, while continuous optimization refines the trajectories and forces. This decomposition can make computation more efficient and the resulting behavior more responsive.

Applications include high-value manufacturing and multi-contact human–robot collaboration.


Multi-Robot Inspection and Field Robotics

Remote inspection and maintenance can involve several kinds of robots working together. A quadruped may move across surfaces, aerial drones may inspect high-rise structures, and underwater robots may examine submerged assets. Their observations can be combined to support asset reporting and maintenance.

Quadrupeds face particular challenges on stairs, slippery surfaces, and other terrain unsuitable for conventional wheeled robots. Their motion planning and control must account for terrain geometry, foot placement, contact, and balance.

Relational planning methods can help in inspection tasks involving complex structures. For example, a continuum or snake-like robot can be guided through a space using relationships such as “pass around” or “wrap around,” rather than relying only on conventional coordinate-based motion planning.


Humanoid Robotics: Valkyrie

Humanoid robots are intended to perform tasks that require a broad range of human-like capabilities, such as walking, balancing, and dexterous manipulation. These abilities are difficult because they require coordination of many joints while responding to changing conditions.

A humanoid such as Valkyrie combines many movable joints with cameras and scanning sensors. Its potential uses include work in disaster zones, maintenance, and exploration environments that are dangerous for astronauts or other people.

Autonomous navigation and manipulation

The described work combines:

  • Full-body motion planning and control.

  • Real-time sensing to detect obstacles.

  • Mapping of the surrounding environment.

  • Local navigation and footstep planning.

  • Selection of a stable body pose for a grasp.

  • Manipulation planning for the final reach and grasp.

For a grasping task, the robot must select not only how to move its hand, but also where to stand so that the arm has good manipulability. The robot can use live sensing to update its map and navigation plan as obstacles are encountered.

Uneven terrain and manipulation

On uneven or slanted surfaces, the robot needs to sense the terrain and place its feet appropriately. It also needs to choose a stable body position before manipulating an object. This highlights the close connection between locomotion and manipulation: the location of the feet and body affects whether the arms can perform the task safely.

Humanoid hardware can be fragile or unreliable, and repeated experiments may lead to degraded performance. Even so, demonstrations on difficult terrain illustrate the importance of combining perception, locomotion, balance, and local manipulation in a single system.


Learning and Correcting Robot Dynamics

Physics-based models are valuable, but real robots often behave differently from their mathematical models. A robot may have unmodeled friction, compliance, delays, or other effects. A useful strategy is to retain the known physical model while learning the residual dynamics—the difference between predicted and observed behavior.

A general learning loop is:

  1. Use the current model to predict how the robot will respond.

  2. Execute actions and collect data.

  3. Compare observed behavior with the prediction.

  4. Update the model to capture the mismatch.

  5. Use the improved model in planning and control.

This approach can support tasks such as balancing a pole. Earlier approaches learned dynamics in a separate loop or in inverse-dynamics settings. A further direction is to update learned dynamics within a stochastic optimal-control process, so the model and controller can improve together.

Important remaining challenges include the amount of data needed and the complexity of the learned model. The approach is especially promising in lower-dimensional settings where the learning and control loop can be completed reliably.


Upper-Limb Prosthetics and Shared Control

Inferring user intent

An upper-limb prosthesis can combine electromyography (EMG), which measures muscle activity, with inertial measurement unit (IMU) data, which captures motion. Combining these signals can improve prediction of what the user intends to do.

For example, the system can classify or predict a desired grasp early enough to pre-shape the prosthetic hand. This can reduce the user’s cognitive and physical effort.

Human input combined with local autonomy

A prosthetic-hand demonstration illustrates a three-part control arrangement:

  1. Human input: coarse commands such as opening or closing the hand.

  2. Local intelligence in the hand: sensors detect contact or load at individual fingers and determine when each finger should stop closing.

  3. External device input: a separate device can select or change the hand’s operating mode.

The human therefore provides the high-level intention, while the hand’s local control adapts finger closure to the object. This makes it possible to grasp objects with different shapes without requiring the user to control every finger separately.

The external device can also select different grasp modes, such as a general finger grasp or a grasp suitable for a thin object like a credit card. The example demonstrates how adding autonomy can improve usability, while also making the control architecture more complex because multiple sources of input must be coordinated.


Lower-Limb Exoskeletons and Gait Assistance

Lower-limb exoskeletons can apply forces to a person’s legs during walking. An ankle–pelvis orthosis, for example, can be used with a split treadmill that also allows controlled perturbations. Potential goals include assisting walking and reducing the risk of falls.

Evaluating gait and assistance

A central challenge is deciding how to measure whether an exoskeleton is helping. Traditional gait assessment may compare a person’s movement to a standardized kinematic pattern or examine left–right symmetry. However, this can mistake natural variation for a problem and may fail to reflect the individual’s abilities.

Alternative evaluation aims to identify measures that capture stability while allowing for natural variability. Examples include:

  • Margin of stability: an estimate of how well the person can recover from a disturbance, such as a push.

  • Support-region measures: examining whether the center of mass remains appropriately related to the region supported by the feet as they move.

  • Left–right gait symmetry: useful as one indicator, but not a complete measure of stability or function.

The objective is to find metrics that distinguish stable from unstable gait, including across normal and impaired walking, without forcing every person’s gait into a single idealized pattern.

Optimizing assistance

Once a useful gait metric has been defined, the exoskeleton’s force profile can be adjusted to improve it. The described method uses optimization and gradients in the metric space, with sampling used to estimate how changes in assistance affect the outcome.

The assistance profile is parameterized by features such as:

  • Rise time.

  • Time of crossing through zero.

  • Maximum force peak.

These parameters can be optimized to find a useful force pattern. A fully derivative-based approach would be more principled, but is difficult because models of human–robot interaction are inaccurate, particularly due to soft-tissue contact.


Safety, Ethics, and Responsible Deployment

Robots deployed in real settings raise questions beyond technical performance. Important issues include:

  • Safety: whether a robot can operate reliably around people and valuable assets.

  • Responsibility: who is accountable when a robot makes an incorrect decision.

  • Security: how robotic systems can be protected against misuse or attack.

  • Explainability: whether the robot’s decisions can be understood.

  • Robustness and verification: whether behavior can be checked and trusted under uncertainty.

  • Causal understanding and transfer of control: when a system should act autonomously, when a human should take over, and how rapidly that transition should occur.

Data-driven systems make these questions especially important because learned behavior may be difficult to predict in unfamiliar situations. Deployment therefore requires methods that are not only capable, but also verifiable, robust, and understandable.

Research programs addressing these issues focus on scaling algorithms while respecting constraints, supporting computation across multiple agents, and developing robust and explainable decision-making for robotic and autonomous systems. Practical work can be organized around test environments for robots in extreme settings, health care, and assisted living.


Main Principles

  • Robotics combines physical capability with intelligent decision-making. Machine learning can complement analytical models, especially when the real robot differs from its model.

  • Shared autonomy distributes control between humans and robots. Humans can specify goals while robots handle detailed actions such as navigation, balance, or grasp adaptation.

  • Perception, planning, and control must operate as a feedback loop. Real-time sensing is essential for responding to moving cameras, uncertain terrain, and changing obstacles.

  • Good representations simplify planning. Relational and topological descriptions can express meaningful task goals more robustly than fixed coordinates.

  • Compliance can improve performance and safety. Variable stiffness and damping let robots adapt their mechanical response to the task.

  • Complex tasks often benefit from decomposition. Separating discrete choices, continuous optimization, planning components, and objective functions helps identify failures and improve efficiency.

  • Human variability must be respected. In prosthetics and gait assistance, successful control depends on measuring individual intent and stability rather than forcing people into a single standardized movement pattern.

  • Robotic progress requires responsible deployment. Safety, verification, explainability, security, and appropriate human oversight are central to real-world use.

  • Technology expectations should be realistic. Near-term capabilities can be overestimated, while long-term effects may be underestimated. Planning for robotics therefore requires both skepticism about immediate claims and attention to the social and policy consequences of widespread deployment.

  • Human motor control remains highly capable. Examples of delicate, precise athletic performance underscore that robots have not surpassed human skill across all tasks, despite major advances in robotics.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent