electric nose

An “electronic nose” created by UC Berkeley researchers can detect the gases emitted by spoiled food and food allergens better than human noses. (Credit: Brandon Sánchez-Mejia/UC Berkeley)

Forget Sniffing the Milk: Researchers Built a Tiny Chip That Does It for You

In A Nutshell

  • Researchers built a fingernail-sized chip with 16 different sensors that can identify 16 foods by their airborne chemical signatures, reaching 92.6% overall accuracy in lab tests.
  • When focused on spoilage alone, a specialized AI model hit 99.0% accuracy distinguishing fresh, 24-hour-old, and 48-hour-old chicken, eggs, and milk.
  • The chip also distinguished four types of nuts by scent, which researchers flagged as a potential future use case given the life-threatening nature of nut allergies.
  • All results come from controlled laboratory conditions; the chip is a prototype and has not been tested in real-world food storage or handling environments.

Smell is one of the oldest tools humans have for spotting when food may be going bad. But human noses are inconsistent, easily fooled, and can’t send a warning when the chicken in the fridge has turned. Now, a team of researchers has built a chip smaller than a postage stamp that can, under laboratory conditions, detect the chemical signatures associated with spoiled food, distinguish between different types of nuts, and tell the difference between 16 different foods with an accuracy rate of 92.6%.

Described in the journal Science Advances, the device is about the size of a small square of fingernail, just 7.5 millimeters on each side. It works by detecting the invisible chemical clouds that every food item releases into the air, then pairs that detection with artificial intelligence to make sense of what it’s smelling. It is an electronic nose that does not get tired or sick, though it still has to be trained on examples before it can recognize what it is smelling.

What Sets This Chip Apart From Earlier Electronic Noses

Most existing electronic nose devices use only a handful of sensors, typically between two and ten, and those sensors often react to the same chemicals in similar ways. This new chip uses 16 completely different sensing materials packed onto a single platform, so each one picks up on different chemical signals, producing a richer fingerprint for each food.

At the heart of the device are microscopic transistors coated with materials that react when certain airborne chemicals land on them. Researchers used carbon nanotubes, incredibly thin cylinders of carbon that are highly sensitive to chemicals even at room temperature.

That last part matters more than it might seem: most existing gas sensors need to be heated to very high temperatures to work properly, which limits what other materials can be used alongside them. Carbon nanotubes sidestep that problem entirely. Each sensor received a different coating, from electrically conductive plastics to metal-based powders, deposited through a process the researchers designed to be compatible with automated manufacturing systems.

electric nose
The electronic nose contains 16 different gas-sensitive materials (small circles in the center) that each react to the gas molecules presented to it (left). The device records the reactions of each material and, using a machine learning model, learns which set of reactions are associated with a specific food or scent (right). Credit: Brandon Sánchez-Mejia

How the Electronic Nose Chip Was Trained to Identify Food

When a food item is placed in a sealed flask and air is passed over it and into the device chamber, the chip’s 16 sensors respond simultaneously, each one shifting its electrical current by a different amount depending on which chemicals it encounters. Those shifting electrical signals become a kind of scent signature, which is then fed into a machine learning model, a type of artificial intelligence, trained to match signatures to specific foods.

Training the AI was a careful process. Each food was exposed to the chip 20 times in timed pulses: 95 seconds of exposure followed by a 185-second recovery window. The first pulse from each session was discarded to account for startup inconsistencies, leaving 19 usable readings per food. Those readings were divided into training, validation, and testing groups so the AI could learn on some data and be evaluated on data it had never seen before.

Foods tested covered a wide range: raw chicken, boiled eggs, whole milk, four types of nuts (walnut, hazelnut, cashew, and peanut), and freeze-dried fruits including blueberries, strawberries, and bananas. Spoilage tests tracked chicken, eggs, and milk at fresh, 24-hour, and 48-hour stages, all left out at room temperature between measurements.

Where the Chip Struggled and Where It Performed Best

Across all 16 foods, the system landed at 92.6% accuracy. Toughest calls were between hazelnuts and peanuts, which share enough chemical overlap that even a 16-sensor AI nose gets confused. Similarly, 48-hour spoiled boiled egg and spoiled raw chicken were occasionally mixed up, likely because both produce similar breakdown chemicals as they decay.

When the researchers trained a separate, more focused model exclusively on the spoilage data, accuracy climbed to 99.0%. A nut-only model brought hazelnut accuracy from 77.4% to 92.0% and peanut accuracy from 37.2% to 80.7%. A more specialized model that isn’t trying to distinguish 16 foods at once performs dramatically better at the specific jobs that matter most.

Nut classification was also tested as a possible future food-labeling or screening use case. Peanut and tree nut allergies can be life-threatening, so the researchers flagged this as a high-stakes area worth pursuing. According to the paper, this appears to be the first demonstration of a gas sensor array used to detect and distinguish different nut samples by their airborne chemical signatures. It is not an allergy-safety tool yet: the chip distinguished scent profiles from nut samples under lab conditions, not trace allergen contamination in a kitchen or a factory.

For now, this remains a laboratory prototype. Real-world messiness, from humidity to temperature swings to competing smells, still stands between this chip and a grocery store shelf. But the architecture is in place, and what it managed in a controlled setting is hard to dismiss.


Paper Notes

Limitations

Humidity affected some sensors more than others, and the researchers note that more thorough testing specifically addressing moisture across a wider range of food storage conditions will be necessary in future work. All testing was conducted under controlled laboratory conditions using a custom gas chamber and dry air as the carrier gas, which may not fully replicate real-world environments where air composition, temperature, and food handling vary considerably. Classification accuracy for certain within-category comparisons, particularly between hazelnuts and peanuts, remained imperfect, and the researchers suggest that larger training datasets, better-tailored sensing materials, or improved AI model design could address this. The system has not been tested outside a laboratory setting.

Funding and Disclosures

Work received support tied to Lawrence Berkeley National Laboratory under contract DE-AC02-05CH11231, the NSF Graduate Research Fellowship Program under grant DGE 2146752, and the Bakar Ignite Scholars Program. The authors declared no competing interests.

Publication Details

Paper Title: Scalable multiplexed machine learning gas sensor chips for food classification | Authors: Carla Bassil, Kichul Lee, Xun Liao, Divya Krishnan, Yifei Zhan, Theodorus Jonathan Wijaya, Edward Hester, Minhyun Kim, Il-Doo Kim, Inkyu Park, and Ali Javey. Bassil and Lee contributed equally to this work. | Journal: Science Advances, Volume 12, article eaec7965 | Publication Date: June 17, 2026 | DOI: 10.1126/sciadv.aec7965

About StudyFinds Analysis

Called "brilliant," "fantastic," and "spot on" by scientists and researchers, our acclaimed StudyFinds Analysis articles are created using an exclusive AI-based model with complete human oversight by the StudyFinds Editorial Team. For these articles, we use an unparalleled LLM process across multiple systems to analyze entire journal papers, extract data, and create accurate, accessible content. Our writing and editing team proofreads and polishes each and every article before publishing. With recent studies showing that artificial intelligence can interpret scientific research as well as (or even better) than field experts and specialists, StudyFinds was among the earliest to adopt and test this technology before approving its widespread use on our site. We stand by our practice and continuously update our processes to ensure the very highest level of accuracy. Read our AI Policy (link below) for more information.

Our Editorial Process

StudyFinds publishes digestible, agenda-free, transparent research summaries that are intended to inform the reader as well as stir civil, educated debate. We do not agree nor disagree with any of the studies we post, rather, we encourage our readers to debate the veracity of the findings themselves. All articles published on StudyFinds are vetted by our editors prior to publication and include links back to the source or corresponding journal article, if possible.

Our Editorial Team

Steve Fink

Editor-in-Chief

John Anderer

Associate Editor

Leave a Comment