Although the batteries are often digested normally, if they come into prolonged contact with the tissue of the oesophagus or stomach they can cause an electric current that produces hydroxide and burns a hole in the tissue. Small and circular lithium batteries are a particular risk for small children.
The NHS holds no specific figures on the number of UK cases, but swallowing batteries is known to have caused the deaths of some children.
In trials conducted by the MIT-led team, the robot rolled towards the lithium battery before attaching itself. With the help of external magnets, the robot was then able to drag the battery away.
The scientists say the robot, and any foreign objects it is tasked with removing, can leave the body by being dragged towards the gut where it can be passed naturally.
"It's really exciting to see our small origami robots doing something with potential important applications to healthcare," said Daniela Rus, professor of electrical engineering and computer science at MIT.
Rus said she was initially sceptical about the importance of ensuring the robot could remove batteries until Shuhei Miyashita, now a lecturer at York University, gave her a crude demonstration.
"Shuhei bought a piece of ham and he put the battery on it," she said.
"Within half an hour the battery was fully submerged in the ham, so that made me realise that, yes, this is important. If you have a battery in your body, you really want it out as soon as possible."
The robot is made from the same type of dried pig intestine used in sausage casings. Rus said the ultimate aim was to develop sensors on the device so it could perform tasks automatically, without an external controller.
Dr Miyashita said the next stage would be to test the robot in the stomachs of animals such as cows before moving on to human trials.
It is hoped the device will be available for clinical use in six to eight years, he said.