Berkeley's 'Electric Nose' Could Detect Spoiled Food and Allergens With 93% Accuracy

Over 1.5 million annual deaths from food-borne illnesses globally, with 3.4 million emergency hospital visits yearly in the US due to food allergies.
Your fridge could tell you when food is about to spoil
Carla Bassil describes the practical application of Berkeley's electronic nose technology in smart home appliances.

For millennia, human survival has depended on the fallibility of our own senses to judge what is safe to eat — a fragile arrangement that costs 1.5 million lives each year. Engineers at UC Berkeley have now built a 16-sensor electronic nose, guided by machine learning, that identifies food spoilage and allergens with 93 percent accuracy, offering a potential bridge between ancient instinct and modern precision. The device, simple enough to manufacture at scale, gestures toward a future in which the question of whether food will harm us need not be answered by a hopeful sniff.

  • Over 850 million people fall ill from contaminated food each year, and our primary defense — the human nose — fails quietly and often enough to sustain a global crisis measured in millions of deaths.
  • UC Berkeley's electronic nose packs 16 carbon nanotube sensors into a device that converts rising food gases into electrical signals, then uses machine learning to judge safety with 93 percent accuracy — a leap beyond the 2-to-10-sensor ceiling of most competing technologies.
  • The allergen-detection capability strikes at a separate emergency: 3.4 million food-allergy hospital visits occur in the US alone each year, roughly one every ten seconds, and the device can already detect as little as one-hundredth of a single walnut.
  • Real-world complexity remains the device's unresolved adversary — detecting a trace of walnut inside a baked cake, or isolating one spoiled item among a full refrigerator, are challenges the lab setting has not yet confronted.
  • The researchers envision smart fridges, smartphone-synced portable scanners for restaurant diners, and eventually health-monitoring applications — but the cost and viability in low-resource settings, where food-borne illness is most deadly, remain open and urgent questions.

Every year, more than 850 million people fall ill from contaminated food, and 1.5 million of them die. The tool most of us rely on to prevent this is our nose — and it is wrong often enough that the crisis continues unchecked.

Engineers at UC Berkeley set out to do better. They built an electronic nose: a 16-sensor device that detects gases rising from food, converts chemical reactions into electrical signals, and uses machine learning to determine whether what you're about to eat is safe. The result is a system that identifies food freshness and allergens with 93 percent accuracy across 16 food types, including fruits, raw chicken, milk, eggs left unrefrigerated for up to 48 hours, and common allergens like walnuts and peanuts.

What separates this device from its predecessors is scale and simplicity. Most electronic nose technologies use between 2 and 10 sensors. Berkeley's version uses 16, operates at room temperature through carbon nanotube semiconductors, and is manufactured through a straightforward process called drop casting — a nanoparticle solution applied to a chip, rinsed, and dried. All sensing materials can be deposited in a single step, making mass production genuinely plausible.

The applications imagined by lead engineer Carla Bassil are wide-ranging: smart refrigerators that warn you before food turns, portable devices synced to smartphone apps for restaurant diners checking their sushi, and allergen detection that could reduce some of the 3.4 million emergency hospital visits caused by food allergies in the US each year — roughly one every ten seconds.

Yet the device has not been tested in the messy real world. Detecting a trace of walnut inside a baked cake, or identifying a single spoiled item among a full refrigerator, are far harder problems than the controlled lab setting has yet addressed. Researchers are also working to distinguish tree nuts from peanuts — a critical gap, since both trigger different and potentially fatal allergic responses.

Deeper questions linger around cost and access. The places where food-borne illness kills most — where refrigeration is unreliable and water is contaminated — are also the places least likely to afford new technology. Still, Bassil sees the research as a step toward a world where human survival no longer depends on the hopeful, imperfect act of taking a sniff.

Every year, more than 850 million people get sick from eating contaminated food. The World Health Organization estimates that 1.5 million of them die. Most of us never think about this statistic until we're bent over a toilet at 3 a.m., wondering if that leftover chicken was really safe. We rely on the oldest technology available: our nose. We sniff the milk. We sniff the fish. We sniff yesterday's takeout. And we're wrong often enough that the global food-poisoning crisis continues unchecked.

Engineers at UC Berkeley decided this was unacceptable. They built what they call an "electric nose"—a device with 16 sensors, each tuned to detect a different combination of gases rising from food. The sensors work by converting chemical reactions into electrical signals. Machine learning algorithms then interpret those signals, comparing them against patterns the system has been trained to recognize. The result: a machine that can identify whether food is safe to eat with 93 percent accuracy.

Carla Bassil, the electrical engineer who led the project, describes each sensor as a digital taste bud. The device was trained to recognize 16 different food products, including fruits, common allergens like walnuts and peanuts, and the particularly unpleasant task of identifying raw chicken, milk, and eggs that have been left out of refrigeration for 24 to 48 hours. What makes this system different from other electronic nose technologies is its simplicity and scale. Most competing devices use only 2 to 10 sensors. Berkeley's version operates at room temperature, thanks to semiconductors made from carbon nanotubes—a material with exceptional surface area and strength. Manufacturing the device requires a straightforward technique called drop casting: researchers apply a nanoparticle solution to a chip, rinse it, and dry it with nitrogen. All the different sensing materials can be deposited in a single step, making the process genuinely scalable.

The implications are substantial. Bassil imagines smart refrigerators equipped with this technology, devices that could alert you when your broccoli is about to wilt or your chicken is entering its final day of safety. A portable version, synced to a smartphone app, could allow restaurant diners to verify the freshness of their sushi before eating it. The allergen-detection capability alone could prevent some of the 3.4 million emergency hospital visits that occur each year in the United States due to food allergies—roughly one patient every ten seconds.

But the technology is not yet perfect. The device can detect as little as 0.05 grams of isolated walnut, about one-hundredth of a single nut. However, it has not been tested in the messy real world—detecting a hint of walnut baked into a cake, or identifying a single spoiled item in a refrigerator full of food, are far more complex challenges. The researchers are already working to prevent category confusion, particularly between tree nuts and peanuts, which are legumes and trigger different allergic responses. Both are among the nine most common allergens in the United States and can cause life-threatening anaphylaxis.

There are broader questions too. The cost of such a device remains unknown. Whether it could function in low-resource settings—where many food-borne illnesses occur due to lack of refrigeration, contaminated water, or unreliable electricity—is still uncertain. These are the places where the technology could save the most lives, yet they are also the places least likely to afford it. Still, Bassil sees the potential extending far beyond food safety. Machine learning has transformed sensor technology, she notes, making it possible to train an electronic nose on virtually any object and design sensors tailored to almost any application. The research, published in Science Advances, represents a step toward a world where we no longer have to trust our imperfect human senses to keep us safe.

How great would it be if your fridge could tell you your chicken is on its last day?
— Carla Bassil, UC Berkeley electrical engineer
Machine learning has proved to be a game changer for sensor technology, thanks to advances in pattern recognition capabilities
— Carla Bassil
A Conversa do Hearth Outra perspectiva sobre a história
Inventor

Why does the human nose fail us so badly at detecting spoilage?

Model

Our nose evolved to detect presence and absence, not safety thresholds. A smell might mean something is off, but by the time we notice it, the bacteria have already multiplied enough to make us sick. We're working with a detection system that's subjective and delayed.

Inventor

The 93 percent accuracy—how does that compare to what a trained food inspector could do?

Model

A trained inspector might be more accurate in some cases, but they're also expensive and slow. This device could be in every kitchen, checking food constantly. It's not about replacing expertise; it's about democratizing detection.

Inventor

What happens when the device is wrong? Who's liable if someone gets sick?

Model

That's the real question nobody's answered yet. The technology works in controlled conditions. Real kitchens are chaos—competing smells, temperature fluctuations, cross-contamination. We need to know how it performs when it fails.

Inventor

You mentioned allergen detection. How does that change the stakes?

Model

Allergens are different from spoilage. A peanut doesn't smell bad; it just triggers anaphylaxis in some people. If this device can reliably distinguish between tree nuts and peanuts, it could prevent deaths in people who don't even know they're eating their allergen.

Inventor

The portable version synced to a phone—that feels like the real product.

Model

It does. But it also assumes everyone has a smartphone and the electricity to charge it. The places with the worst food-poisoning problems often have neither. That's the gap the researchers haven't solved.

Inventor

What's the timeline before this is actually in stores?

Model

Unknown. The research is solid, but moving from a lab prototype to a consumer product is a different challenge entirely. Manufacturing at scale, regulatory approval, cost reduction—those are years away, if they happen at all.

Quer a matéria completa? Leia o original em ScienceAlert ↗
Fale Conosco FAQ