FreshGuard The whole story  ·  Source code

Is this produce fresh?

Pick a photo or upload your own. The model looks at it and decides whether the item can go on the shelf at full price, should be marked down today, or should come off the shelf.

Runs in your browser. Your photo never leaves this device.

1. Pick a photo

Apple, banana, bell pepper, carrot, cucumber, mango, orange, potato, strawberry or tomato.

Loading the model (10 MB, once)...

2. The verdict

Choose a photo above.

The model is a fine-tuned MobileNetV2 that scored 95.8% on photos it never saw in training (20 classes: 10 kinds of produce, fresh or rotten). Sample photos come from that held-out test set: the first photo of each class that has no stock-photo watermark, plus the hard calls: picked by eye from the test photos the model puts between fresh and rotten, for still looking edible. "Bruise one yourself" paints spots on a fresh photo in the browser; the page says so whenever it shows one. The shelf life is the full app's rule of thumb (about a week when fresh, less as it rots), not a learned number.

The tiers, the "not sure" rule and the prices are the same as in the full app. The full app also finds and tracks each item in a live camera feed with a detector and forecasts spoilage; this page grades a photo, or your camera without the detector (one item filling the box).

The heat map ("what it looked at") is Grad-CAM, prepared in advance for the sample photos.

See the whole story: the data, the three models and the business case