Skip to content
itismemuhammadaliPublic

About

Dietary fiber AI computer vision analyzer powered by Google Gemini 1.5 Flash and USDA FoodData Central database integration.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

Repository files navigation

🥗 FiberSnap — AI Computer Vision Dietary Fiber Tracker & Clinical Nutrition Engine

FiberSnap Logo

React Native TypeScript Google Gemini AI USDA FoodData Firebase License


🌟 Executive Overview & Clinical Problem Solved

FiberSnap is an intelligent mobile nutrition platform engineered to eliminate the friction of manual dietary logging. While mainstream fitness applications focus generically on calories and macronutrients, FiberSnap is clinically targeted at dietary fiber optimization—one of the most critical deficiencies in modern diets linked to metabolic health, cardiovascular resilience, and microbiome diversity.

By fusing multimodal computer vision (Google Gemini 1.5 Flash) with the USDA FoodData Central clinical food database, FiberSnap enables users to photograph complex meals and receive instant, verifiable breakdowns of soluble, insoluble, and total dietary fiber content within seconds.


🚀 Core Platform Capabilities

1. Multimodal AI Meal Vision Scanner

  • One-Tap Photo Logging: Users take a snapshot of a meal or plate.
  • Ingredient Decomposition: The Gemini AI vision model identifies distinct meal components, cooking preparations, and spatial volume estimates.
  • Granular Fiber Quantification: Automatically calculates total dietary fiber, categorizing soluble fiber (cholesterol and blood glucose modulation) versus insoluble fiber (digestive motility).

2. Verified USDA FoodData Central Grounding

  • Scientific Nutritional Precision: Every AI estimation is grounded against verified chemical nutrient analyses from the USDA FoodData Central database.
  • Micronutrient & Prebiotic Insights: Tracks prebiotic density (inulin, resistant starch, pectin, beta-glucan) to deliver personalized gut-health scorecards.

3. Barcode & Packaged Food Scanner

  • Global UPC/EAN Scanning: Instant camera barcode scanner retrieving verified nutritional labels from packaged groceries.
  • Net Carb & Fiber Impact: Computes total digestible carbohydrates versus non-digestible fiber impact for metabolic and glycemic monitoring.

4. Interactive Health Analytics & Longitudinal Trends

  • Daily Target Rings: Dynamic goal pacing adjusting targets based on age, gender, and personal health protocols.
  • Digestive Symptom Correlation: Allows users to record wellness and fullness ratings, correlating dietary fiber intake with digestive comfort over weekly and monthly horizons.

🏛️ System Architecture

┌─────────────────────────────────────────────────────────────────────────────┐
│                          MOBILE APPLICATION LAYER                           │
│                                                                             │
│   ┌─────────────────────────────────────────────────────────────────────┐   │
│   │                      FiberSnap Mobile (React Native / Expo)         │   │
│   │   • Camera Vision Viewfinder  • Barcode Camera Scanner              │   │
│   │   • Daily Fiber Target Rings  • Longitudinal Progress Charts        │   │
│   └──────────────────────────────────┬──────────────────────────────────┘   │
└──────────────────────────────────────┼──────────────────────────────────────┘
                                       ▼
┌─────────────────────────────────────────────────────────────────────────────┐
│                     CLOUD INTELLIGENCE & PROCESSING LAYER                   │
│                                                                             │
│   ┌───────────────────────────────┐       ┌─────────────────────────────┐   │
│   │   Google Gemini 1.5 Vision    │       │  USDA FoodData Central API  │   │
│   │  • Meal Segment Identification│       │  • Ground-Truth Chemistry   │   │
│   │  • Volume & Portion Estimator │       │  • Soluble / Insoluble Ratios│  │
│   └───────────────┬───────────────┘       └──────────────┬──────────────┘   │
│                   └───────────────────────┬──────────────┘                  │
│                                           ▼                                 │
│                   Firebase Cloud Functions (Node.js / Express)              │
│                   • Prompt Orchestration & Validation Pipeline              │
│                   • Food Cache & Token Rate-Limiter Engine                  │
└──────────────────────────────────────┬──────────────────────────────────────┘
                                       ▼
┌─────────────────────────────────────────────────────────────────────────────┐
│                       CLOUD STORAGE & DATABASE LAYER                        │
│            Cloud Firestore Database  •  Firebase Cloud Storage              │
└─────────────────────────────────────────────────────────────────────────────┘

🛠️ Complete Technology Stack

Domain Technology Implementation Detail
Mobile Architecture React Native 0.74, Expo SDK 51 Cross-platform native iOS & Android with TypeScript
Visual AI Engine Google Gemini 1.5 Flash Vision Multi-modal visual inference pipeline with structured JSON outputs
Nutrient Database USDA FoodData Central API Verified clinical nutrient values and standard portion sizes
Cloud Middleware Firebase Cloud Functions Serverless orchestration, rate-limiting, and key security
Persistence Cloud Firestore Real-time offline-first sync of meal history and health metrics
Authentication Firebase Auth Seamless anonymous onboarding with Google & Apple sign-in

🏛️ Engineering Provenance

Architected, engineered, and maintained by Muhammad Ali as Principal Mobile Architect.

About

Dietary fiber AI computer vision analyzer powered by Google Gemini 1.5 Flash and USDA FoodData Central database integration.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages