The robot watched as Shikhar Bahl(opens in new window) opened the refrigerator door. It recorded his movements, the swing of the door, the location of the refrigerator and more, analyzing this data and readying itself to mimic what Bahl had done.
It failed at first, missing the handle completely at times, grabbing it in the wrong spot or pulling it incorrectly. But after a few hours of practice, the robot succeeded and opened the door.
"Imitation is a great way to learn," said Bahl, a Ph.D. student at the Robotics Institute(opens in new window) (RI) in Carnegie Mellon University’s School of Computer Science(opens in new window). "Having robots actually learn from directly watching humans remains an unsolved problem in the field, but this work takes a significant step in enabling that ability."
Bahl worked with Deepak Pathak(opens in new window) and Abhinav Gupta(opens in new window), both faculty members in the RI, to develop a new learning method for robots called WHIRL(opens in new window), short for�In the Wild Human-Imitated Robot Learning. WHIRL is an efficient algorithm for one-shot visual imitation. It can learn directly from human-interaction videos and generalize that information to new tasks, making robots well-suited to learning household chores. With WHIRL, a robot can observe the various tasks someone performs at home and gather the video data it needs to eventually determine how to complete the job itself.
The team added a camera and their software to an off-the-shelf robot, and it learned how to do more than 20 tasks — from opening and closing appliances, cabinet doors and drawers, to putting a lid on a pot, pushing in a chair and even taking a garbage bag out of the bin. Each time, the robot watched a human complete the task once and then went about practicing and learning to accomplish the task on its own. The team presented their research this month at the Robotics: Science and Systems(opens in new window) conference in New York.
"This work presents a way to bring robots into the home," said Pathak. "Instead of waiting for robots to be programmed or trained to successfully complete different tasks before deploying them into people’s homes, this technology allows us to deploy the robots and have them learn how to complete tasks, all the while adapting to their environments and improving solely by watching."
Current methods for teaching a robot a task typically rely on imitation or reinforcement learning. In imitation learning, humans manually operate a robot to teach it how to complete a task. This process must be done several times for a single task before the robot learns. In reinforcement learning, the robot is typically trained on millions of examples in simulation and then asked to adapt that training to the real world.
Both learning models work well when teaching a robot a single task in a structured environment, but they are difficult to scale and deploy. WHIRL can learn from any video of a human doing a task. It is easily scalable, not confined to one specific task and can operate in realistic home environments. The team is even working on a version of WHIRL trained by watching videos of human interaction from YouTube and Flickr.
Progress in computer vision made the work possible. Using models trained on internet data, computers can now understand and model movement in 3D. The team used these models to understand human movement, facilitating training WHIRL.
With WHIRL, a robot can accomplish tasks in their natural environments. The appliances, doors, drawers, lids, chairs and garbage bag were not modified or manipulated to suit the robot. The robot’s first several attempts at a task ended in failure, but once it had a few successes, it quickly latched on to how to accomplish it and mastered it. While the robot may not accomplish the task with the same movements as a human, that’s not the goal. Humans and robots have different parts, and they move differently. What matters is that the end result is the same. The door is opened. The switch is turned off. The faucet is turned on.
"To scale robotics in the wild, the data must be reliable and stable, and the robots should become better in their environment by practicing on their own," Pathak said.