Training a robot to recognize and pour water

Pour me a glass
A robot uses AI and image translation to pour a glass of water. Credit: Carnegie Mellon University

A horse, a zebra and artificial intelligence helped a team of Carnegie Mellon University researchers teach a robot to recognize water and pour it into a glass.

Water presents a tricky challenge for robots because it is clear. Robots have learned how to pour before, but previous techniques like heating the water and using a thermal camera or placing the glass in front of a checkerboard background don't transition well to everyday life. An easier solution could enable servers to refill water glasses, robot pharmacists to measure and mix medicines, or robot gardeners to .

Gautham Narasimhan, who earned his master's degree in the Robotics Institute in 2020, worked with a team in the institute's Robots Perceiving and Doing Lab to use AI and image translation to solve the problem.

Image translation algorithms use collections of images to train to convert images from one style to another, such as transforming a photo into a Monet-style painting or making an image of a horse look like a zebra. For this research, the team used a method called contrastive learning for unpaired image-to-image translation (CUT, for short).

"You need some way of telling the algorithm what the right and wrong answers are during the training phase of learning," said David Held, an assistant professor in the Robotics Institute who advised Narasimhan. "However, labeling data can be a time-consuming process, especially for teaching a robot to pour water, for which the human might need to label individual water droplets in an image."

Enter the horse and zebra.

A robot uses AI and image translation to pour a glass of water. Credit: Carnegie Mellon University

"Just like we can train a model to translate an image of a horse to look like a zebra, we can similarly train a model to translate an image of colored liquid into an image of transparent liquid," Held said. "We used this model to enable the robot to understand transparent liquids."

A transparent liquid like water is hard for a robot to see because the way it reflects, refracts and absorbs light varies depending on the background. To teach the computer how to see different backgrounds through a glass of water, the team played YouTube videos behind a transparent glass full of water. Training the system this way will allow the robot to pour water against varied backgrounds in the real world, regardless of where the robot is located.

"Even for humans, sometimes it's hard to precisely identify the boundary between water and air," Narasimhan said.

Using their method, the robot was able to pour the water until it reached a certain height in a . The experiment was then repeated with glasses of different shapes and sizes.

Narasimhan said there's room for future research to expand upon this method—adding different lighting conditions, challenging the robot to pour water from one container to another, or estimating not only the height of the water, but also the volume.

The research was presented at the IEEE International Conference on Robotics and Automation last month in Philadelphia. Reaction to the work has been positive, Narasimhan said.

"People in robotics really appreciate it when research works in the and not just in simulation," said Narasimhan, who now works as a computer vision engineer with Path Robotics in Columbus, Ohio. "We wanted to do something that's quite simple yet effective."


Explore further

Robotic telekinesis: Allowing humans to remotely operate and train robotic hands

More information: Conference: www.icra2022.org/

Research: sites.google.com/view/transparentliquidpouring

Citation: Training a robot to recognize and pour water (2022, June 9) retrieved 12 August 2022 from https://techxplore.com/news/2022-06-robot.html
This document is subject to copyright. Apart from any fair dealing for the purpose of private study or research, no part may be reproduced without the written permission. The content is provided for information purposes only.
97 shares

Feedback to editors