A surgeon's hands hover over a patient's open abdomen when suddenly the camera goes dark. Blood has coated the lens. The surgeon must now pull the camera out, clean it, reinsert it, and reorient — precious minutes lost during a critical procedure.

This scenario plays out in operating rooms around the world. But researchers at the University of Florida in Gainesville are working on a solution: a tiny robotic camera that cleans itself just like a human eye.

"When humans have sand in their eyes, we just blink our eyes and the eyelid wipes away the sand, using tears," said Shuai Li, Ph.D., an associate professor in the university's Department of Civil and Coastal Engineering. "So we're trying to mimic how human eyes function, using robots that have eyelid wipers and a passage-like nozzle."

Traditional laparoscopic surgery — where a camera is threaded through a small incision into the abdomen, which is inflated with carbon dioxide gas for better visibility — requires the surgeon to pause and clean the camera whenever blood or smoke obscures the lens. Li and his team have built a soft, magnetically driven device that moves independently along the abdominal wall, keeping a clear view without human intervention.

The key to the system is artificial intelligence. "AI can quickly detect if there is contamination, and then control the robot, control the eyelid wiper and clean the lens," Li explained. "So all the time, the surgeon will have a clear vision and can focus on the procedure." The device also has an outflow nozzle that blows away smoke generated during surgery.

The project is led by Jindong Tan, Ph.D., at the University of Tennessee, working with Li at Florida. But their technology may someday serve purposes far beyond Earth's hospitals.

The same challenges that plague surgery — poor visibility, debris, and the need for safety — exist on the Moon. "In lunar construction, if we are trying to build a habitat, it's very different from Earth," Li said. "There is a lot of debris and very fine dust on everything that will adhere to the camera lens. With this self-cleaning, software-powered robotic camera, we would probably be able to solve a big challenge for lunar construction."

So the device that helps a surgeon save a life today might one day help robots build homes for humans on the Moon.