Nutri Analyser AI for Smarter Grocery Shopping
Extract, normalise and compare nutrition labels
I built Nutri-Analyser AI to solve a frustrating problem I often face during my grocery trip: decoding confusing food labels. It can be exhausting to stand in a supermarket aisle comparing two similar products, only to find one boasts "Low Fat" while hiding massive amounts of sodium, while the other claims "0% Sugar" but is packed with chemical additives. Because brands use inconsistent nutritional baselines and non-standardised serving sizes, making an optimal choice on the spot becomes a tedious math puzzle instead of a quick decision.
I put the app to the test during my recent supermarket trip to see how it handled real-world conditions. I snapped photos of two different yogurt tubs, and the lightweight Qwen-7B Vision model instantly extracted the raw label text, calculated the math to normalise their mismatched serving sizes, and evaluated them against my pre-defined health goal.
Within seconds, a side-by-side comparison matrix and an objective verdict popped up on my phone. I confidently grabbed the winning tub and moved on to the next item on my shopping list ๐
The Nutri-Analyser application uses a decoupled, resource-optimised client-server pipeline designed to execute heavy multi-modal inference within a low-memory constraints container environment.

4-Bit Memory Compression: A raw 7B model running at FP16 precision requires ~17GBโ18GB of VRAM to process image tokens and text generation, easily surpassing standard free cluster caps. By enforcing an NF4 quantization configuration, the model footprint is compressed down to a highly efficient ~5.5GB, leaving plenty of memory headroom on an Nvidia T4
Structured Chain-of-Thought Prompting: the system prompt initiates an explicit, multi-stage logical pipeline including normalising the nutritional labels:
Deterministic Evaluation: Setting temperature=0.0 and do_sample=False forces strict greedy token selection. This shifts the model from a "creative writer" into a deterministic calculator, ensuring accurate fractional arithmetic and table structuring
Check out the app and code below to see how the orchestration works under the hood ๐
|
๐ Nutri-Analyser Real-World Demo |
#BuildSmallHackathon #BackyardAI
Extract, normalise and compare nutrition labels
More from this author