Imagine a tiny device, smaller than a postage stamp, that unfolds itself inside your body like a piece of origami. Scientists at Imperial College London and the University of Southern California have built exactly that — and it could one day replace the needle pricks and blood tests people rely on today to monitor conditions like diabetes or safe lithium levels for mental health medications.

The device is called MiFi, short for Minimally Invasive Foldable bioelectronic implant. It looks a bit like an accordion when folded, small enough to slip under the skin through a tiny opening. Once inside, it unfolds by itself into a flat square just 2.1 centimeters wide — about the size of a fingernail — and thinner than a credit card at just 0.3 millimeters.

"The ideal implantable bioelectronic sensing device should have a transient geometry: the implant should be as small as possible during implantation to reduce invasiveness, and large when needed after implantation," the researchers wrote in their paper published in the journal Advanced Materials.

Made from flexible polyimide materials, the MiFi ditched bulky batteries in favor of near-field communication — the same wireless technology that lets you pay with your phone at checkout. A nearby reader powers the device and collects data through your tissue. In tests using pig skin as a stand-in for human tissue, the system sent signals through more than 20 millimeters of material.

The researchers fitted the device with sensors that can track heart rate, breathing rate, body temperature, tissue acidity, and lithium levels. That last sensor could be a game-changer for the roughly 10 million people worldwide who take lithium to treat bipolar disorder. Lithium has a narrow safe range — too little won't help, too much can become toxic. Currently, patients need regular blood draws to check their levels. With MiFi, a doctor's office reader could pull that data instantly, without a needle in sight.

Tests so far have used anesthetized rats and tissue samples, so human trials are still years away. But the team sees a future where people could get quick, suture-free health monitoring that currently requires invasive procedures or frequent lab visits.

"Ultimately, our approach could provide multiplexed monitoring using quick and suture-free insertion procedures, which may provide a unique advantage in the transition toward personalized health care," the authors wrote.

For people managing chronic conditions, a future visit to the doctor might involve no needles at all — just a quick scan that reads your body from the inside.