FreshAlert: A Novel AI-Driven Approach to Food Spoilage Detection for Reducing Household Food Waste
CSEF · 2026 Environmental Engineering (Track 2) (Senior Division)
Overview
Approximately 931 million tons of food were wasted globally in 2019, with spoilage as a major contributor. Most homes rely on visual and smell-based spoilage checks, missing unsafe microbial progressions. This project developed and validated a reusable smart food-storage box that continuously collects sensor data and monitors food to predict spoilage over time. We engineered a food-safe container equipped with an Arduino Nicla Vision platform and gas and environmental sensors (VOC/eCO2, CO2, temperature, humidity, and ammonia-related sensing). Data was collected every 30 seconds and analyzed in 6-minute buckets. We used a gradient boosting regression (GBR) classification algorithm to model spoilage on a 5-stage scale (Fresh to Spoiled) and a GBR quantile algorithm to predict a time-to-spoilage range. Test 1 ran until bacterial and visual testing confirmed spoilage; this dataset was used to calibrate and lock the model. Test 2 was an in-progress validation run to evaluate projection performance on new data. On Test 1, the model achieved 99.67% stage classification accuracy and 99.51% recall. Transition timing error averaged 2.06 hours overall, with Stage 2-4 transitions within ≤7 minutes, while Stage 5 showed the largest error and remains the main area for further trials. On Test 2, the locked model projected progression correctly for the ongoing run. We designed a dashboard to display spoilage status (stage and time-to-spoilage) in a user-friendly manner. Results indicate that continuous sensing provides practical early warnings of spoilage and helps reduce food waste in households and industrial settings through earlier, data-driven decisions.
Competition history
- CSEF 2026
Related projects
CSEF · 2017
BioFresh Food Smarts: An Eco-friendly, Smart Solution to Reduce Wastage of Climacteric Produce
ISEF · 2021
The SLED (Shelf Life Expiration Date) Tracking System: Combating Food Waste and Food Borne Illnesses from Expiration Using Machine Learning
CSEF · 2018
Spoiler Alert! An Arduino Sensor-Based Approach to Detecting Food Spoilage
CWSF · 2026
Test Before You Toss: Using ATP and AI to Assess Milk Freshness
CSEF · 2026
Fridge Firefly
CSEF · 2026
How Much Hidden Degradation Is Behind Your Favorite Drinks?
AJAS · 2024
Democratizing Produce Waste Reduction Using Hyperspectral Imaging
CSEF · 2016
TrackBar: Tracking Food Expiration to Reduce Wastage
Closest projects by meaning, across every fair and year in the corpus.
Browse more like this
Source: California Science & Engineering Fair public projects