ShelfSaver - From Manual Paper Tracking to AI Automation

Inspiration

Working at a small retail shop, I witnessed a frustrating daily ritual that happens in thousands of businesses worldwide. Every 2-3 days, employees had to manually walk through refrigerators, checking expiry dates one by one, writing everything down on paper lists. This manual process was time-consuming, error-prone, and inevitably led to forgotten products. I watched perfectly good food get thrown away simply because someone forgot to check a corner of the fridge or misread a date.

The "aha moment" came when I realized that modern AI could completely eliminate this manual checking process. Why should employees spend 30 minutes daily doing what a computer could do in 3 seconds? As someone passionate about both technology and sustainability, I knew there had to be a better way to solve this $1.3 trillion global food waste problem.

What it does

ShelfSaver transforms any smartphone into an intelligent inventory management system. Users simply take photos of their products, and our AI instantly extracts expiry dates, product names, quantities, and barcodes with 90-100% accuracy. The system then:

  • Processes photos in 2-5 seconds using AWS Textract OCR
  • Stores product data in a searchable database
  • Sends smart notifications 1-3 days before items expire
  • Provides a web dashboard for inventory overview and bulk operations
  • Works via Telegram - no app installation required

The magic is that it's completely invisible to users. They just know their food waste problems disappeared, while the AI handles all the complexity behind the scenes.

How we built it

Architecture: Full-stack serverless solution using AWS Lambda as the backbone

Week 1: Core AI Pipeline Built the heart of ShelfSaver as a single AWS Lambda function that handles the entire flow: image download from Telegram to S3, text extraction using AWS Textract, intelligent processing with custom regex patterns for French/English products, and data storage in DynamoDB.

Week 2: Production Features

  • Multi-region deployment: Images in Paris (eu-west-3), data in Stockholm (eu-north-1)
  • Telegram Bot integration with webhook management
  • Smart notification system with dynamic multi-user support
  • Mobile-responsive web dashboard with real-time updates
  • Intelligent text processing handling French/English products

Key Innovation: Developed weighted confidence scoring system that achieves 80-100% accuracy on real-world products by prioritizing expiry dates while gracefully handling uncertain extractions.

Challenges we ran into

Multi-Language OCR Accuracy: French product labels with mixed text layouts confused standard OCR approaches. We solved this by developing sophisticated regex patterns specifically for French retail products and implementing weighted confidence scoring to handle uncertain extractions gracefully.

Telegram Webhook Reliability: Lambda cold starts caused webhook timeouts, breaking the bot connection. We implemented comprehensive webhook health monitoring with automatic reset procedures and graceful error handling with user-friendly fallbacks.

Dynamic Multi-User Support: The biggest challenge was handling notifications for potentially thousands of users without hardcoding chat IDs. We built intelligent chat ID detection that extracts user identifiers from their scanned products, enabling truly dynamic multi-user operation.

Real-World Deployment Complexity: Managing AWS resources across multiple regions while maintaining cost efficiency required careful architecture planning. We designed a lean serverless solution with strategic resource placement (images in Paris, data in Stockholm) and efficient API integration.

Accomplishments that we're proud of

  • Sub-3-second processing from photo to structured data across global regions
  • 80-100% OCR accuracy on real French and English products in varied lighting conditions
  • Zero-downtime architecture that automatically scales from 1 to 1000+ users
  • Cost-efficient operation at under $0.10/day per business
  • Production-ready in 2 weeks - from concept to fully functional system.

Most importantly, we created a solution so seamless that users forget they're using AI - they just know their food waste problems disappeared.

What we learned

Technical Mastery: Building ShelfSaver taught us invaluable lessons about full-stack serverless development, AWS Textract integration, multi-region architecture, intelligent text processing, and Telegram bot development.

The Serverless Advantage: AWS Lambda changed everything. What would traditionally take months of server provisioning, CI/CD setup, and infrastructure management was accomplished in 2 weeks by focusing 100% on solving the actual business problem instead of managing servers.

User-Centric Design: Small business owners need solutions that work immediately without training. The best technology solutions are invisible to users - they just work.

Business Impact: Real innovation comes from solving real problems. We learned that sometimes the biggest opportunities are hiding in the most mundane daily tasks, like checking expiry dates on paper lists.

What's next for ShelfSaver

Immediate Fixes & Features: Now that we've proven the concept works, we're focused on refining the core functionality, improving OCR accuracy for edge cases, and adding user-requested features like bulk product management and custom notification preferences.

Comprehensive Platform: We're expanding ShelfSaver into a complete inventory management solution with predictive analytics for demand forecasting, supply chain integration for automatic reordering, and sustainability tracking for environmental impact measurement.

Global Scale: ShelfSaver started as a solution to one small shop's problem, but it's architected to scale to thousands of businesses worldwide. We're planning partnerships with retail associations and developing enterprise features for larger operations.

Beyond Food Waste: The core technology can be applied to any expiry-date tracking scenario - pharmaceuticals, cosmetics, industrial supplies. We're exploring these adjacent markets while perfecting our food retail solution.

The vision is simple: eliminate manual expiry date checking everywhere, giving people their time back while reducing waste globally.

Built With

Share this project:

Updates