Skip to content

About

🍎 **NutriScientia – Food Insight AI** is an Virtual Food Lab that analyzes food images, identifies ingredients, explores nutritional values, and detects potential food safety risks. πŸ€– Powered by AI, computer vision, and deep learning, it transforms food images into smart food insights. πŸš€ sho

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

🍎 NutriScientia β€” Food Insight AI

AI-Powered Food Intelligence Platform & Virtual Food Experimentation Laboratory

Understand food. Evaluate nutrition. Explore new formulations.

Live Application Project Documentation


πŸ“‘ Table of Contents


🌟 1. Project Overview

NutriScientia – Food Insight AI is an AI-powered food intelligence platform that combines food image understanding, ingredient analysis, nutrition intelligence, food-safety assessment, scientific evidence retrieval, and virtual food experimentation.

The platform is organized around two connected applications:

  1. FoodInsightAI β€” analyzes food images and presents structured insights about food identity, visible ingredients, nutritional composition, allergens, potential safety concerns, and supporting evidence.
  2. FoodLab β€” provides a virtual experimentation workflow where users select food items, define quantities and objectives, explore a proposed formulation, and review its nutritional and safety considerations.

The solution is designed around a two-model workflow: a food-identification stage produces structured food information, and a downstream food-intelligence stage uses that information together with food-composition data, reference material, calculations, and analysis rules.

Project at a glance

Item Description
Project NutriScientia – Food Insight AI
Domain Artificial Intelligence, Food Technology, Nutrition Intelligence
Product modules FoodInsightAI and FoodLab
Model architecture Two-stage food identification and food intelligence
Analysis approach AI-assisted interpretation, data retrieval, calculations and rules
Deployment endpoint 52.87.185.169.nip.io
Team Six-member AI/ML engineering and research team

🧭 2. Product Modules

🍽️ FoodInsightAI β€” Intelligent Food Analysis

FoodInsightAI is the image-led analysis experience. A user captures or uploads a food image. The application identifies the food, interprets visible components, retrieves relevant food-composition information, and presents an organized analysis.

Primary outputs

  • Predicted food name and category.
  • Visible ingredient/component candidates.
  • Estimated nutritional composition where sufficient data is available.
  • Allergen information and potential cross-contact considerations.
  • Potential food-safety and health considerations.
  • Supporting references and uncertainty notes.
  • Analysis history and report access where implemented.

πŸ§ͺ FoodLab β€” Virtual Food Experimentation Laboratory

FoodLab is the formulation and experimentation experience. A user selects multiple food items, defines their quantities, provides an experiment objective and constraints, and reviews the resulting analysis.

Primary outputs

  • Selected ingredient formulation.
  • Quantity-aware composition.
  • Nutrition analysis.
  • Allergen and safety considerations.
  • Health and suitability observations.
  • Formulation recommendations.
  • Downloadable experiment report where enabled.

✨ 3. Key Capabilities

Capability Description
Food recognition Identifies food items and predicts their categories from submitted images.
Ingredient understanding Extracts visible components and maps ingredient names to standardized records where possible.
Nutrition intelligence Retrieves or estimates energy and nutrient composition using available food data and serving information.
Allergen assessment Highlights known allergens and possible cross-contact considerations based on available data.
Food-safety analysis Evaluates potential risks using supplied inputs, available references, and configured rules.
Health impact Presents serving-context and dietary observations without making medical diagnoses.
Evidence retrieval Retrieves relevant food, nutrition, and scientific reference material.
What-if analysis Allows ingredient or quantity changes to be explored and compared.
Virtual formulation Supports food-combination experiments and candidate formulation analysis.
Reporting Presents structured results and supports report generation where implemented.

πŸ—οΈ 4. Graphical System Architecture

The architecture below describes the logical end-to-end flow of the platform. It is a system-level view; the exact runtime components and service boundaries should be aligned with the deployed repository configuration.

4.1 End-to-end platform architecture

flowchart TB
    U(["πŸ‘€ User"])
    subgraph CLIENT["CLIENT APPLICATIONS"]
        WEB["FoodInsightAI<br/>Food image analysis"]
        LAB["FoodLab<br/>Virtual experimentation"]
    end

    subgraph API["APPLICATION & API LAYER"]
        APIENTRY["Backend API<br/>Request handling"]
        VALIDATE["Input validation<br/>File and payload checks"]
        JOB["Analysis / Experiment<br/>workflow"]
    end

    subgraph VISION["FOOD IDENTIFICATION"]
        PRE["Image pre-processing<br/>Resize β€’ quality β€’ region"]
        DETECT["Model 1<br/>Food detection & classification"]
        STRUCT["Structured food result<br/>Name β€’ category β€’ components β€’ confidence"]
    end

    subgraph INTEL["FOOD INTELLIGENCE"]
        MODEL2["Model 2<br/>Food intelligence engine"]
        MAP["Ingredient mapping<br/>& normalization"]
        RETRIEVE["Food data & evidence<br/>retrieval"]
        CALC["Nutrition calculations<br/>& serving context"]
    end

    subgraph SCIENCE["SCIENTIFIC EVALUATION"]
        MODULES["Six-part analysis<br/>Composition β€’ Nutrition β€’ Allergens<br/>Safety β€’ Health β€’ Evidence"]
        DECISION["Decision and completeness checks<br/>SAFE β€’ CAUTION β€’ UNSAFE β€’ INSUFFICIENT"]
    end

    subgraph DATA["DATA & PERSISTENCE"]
        FOODDB[("Food datasets<br/>& reference resources")]
        DB[("Application database<br/>if configured")]
        FILES[("Image and report storage<br/>if configured")]
        CACHE[("Cache / job state<br/>if configured")]
    end

    RESULT["Structured result<br/>Dashboard β€’ JSON β€’ Report"]

    U --> WEB
    U --> LAB
    WEB --> APIENTRY
    LAB --> APIENTRY
    APIENTRY --> VALIDATE --> JOB
    JOB --> PRE --> DETECT --> STRUCT
    STRUCT --> MODEL2 --> MAP
    MAP --> RETRIEVE
    FOODDB --> RETRIEVE
    RETRIEVE --> CALC --> MODULES
    MODULES --> DECISION --> RESULT
    RESULT --> WEB
    RESULT --> LAB
    RESULT -. persistence .-> DB
    RESULT -. report / image files .-> FILES
    JOB -. optional job state .-> CACHE

    classDef client fill:#E8F2FF,stroke:#3675B9,color:#153B64,stroke-width:1.5px;
    classDef api fill:#F0EAFE,stroke:#7952B8,color:#38205E,stroke-width:1.5px;
    classDef vision fill:#E7F7F0,stroke:#26845C,color:#124B35,stroke-width:1.5px;
    classDef intel fill:#FFF4DF,stroke:#C58A25,color:#68430C,stroke-width:1.5px;
    classDef science fill:#FDECEF,stroke:#C34F64,color:#6D2432,stroke-width:1.5px;
    classDef data fill:#EAF0F5,stroke:#63788B,color:#25394B,stroke-width:1.5px;
    classDef result fill:#E4F5E8,stroke:#258447,color:#124C27,stroke-width:2px;

    class WEB,LAB client;
    class APIENTRY,VALIDATE,JOB api;
    class PRE,DETECT,STRUCT vision;
    class MODEL2,MAP,RETRIEVE,CALC intel;
    class MODULES,DECISION science;
    class FOODDB,DB,FILES,CACHE data;
    class RESULT result;
Loading

4.2 Architecture layer responsibilities

Layer Responsibility
Client applications Collect food images, food selections, quantities, dietary constraints, and experiment requirements.
API layer Receives requests, validates input, coordinates workflows, and returns results.
Image pre-processing Prepares images for inference and checks basic image quality.
Model 1 Identifies food items and returns structured recognition information.
Model 2 Interprets recognized food information and coordinates deeper food analysis.
Data retrieval Looks up food-composition, ingredient, safety, and research information from available resources.
Scientific evaluation Organizes the analysis into six modules and applies configured rules and checks.
Persistence Stores application records, images, reports, or job state where configured.
Results layer Delivers structured analysis to the application and report workflow.

4.3 Request lifecycle

sequenceDiagram
    autonumber
    actor User
    participant UI as FoodInsightAI / FoodLab
    participant API as Backend API
    participant Vision as Model 1
    participant Intel as Model 2
    participant Data as Food Data / References
    participant Eval as Scientific Evaluation
    participant Store as Persistence Layer

    User->>UI: Submit image or experiment
    UI->>API: Send request and input data
    API->>API: Validate request and create workflow
    API->>Vision: Send prepared image (image analysis)
    Vision-->>API: Food identity and structured output
    API->>Intel: Pass structured food information
    Intel->>Data: Retrieve composition and evidence
    Data-->>Intel: Return matching reference data
    Intel->>Eval: Submit analysis inputs
    Eval-->>API: Structured scientific result
    API->>Store: Persist result/report if configured
    API-->>UI: Return status and result
    UI-->>User: Display analysis or experiment report
Loading

πŸ“± 5. FoodInsightAI β€” Application Flow

The following is the twelve-screen user journey represented in the supplied FoodInsightAI application design.

FoodInsightAI application flow

Screen-by-screen explanation

Step Screen User experience
1 Home β€” Food Intelligence Hub Start food scanning, upload a document, describe food, or open quick actions.
2 Food Capture Capture a food photo or select an existing image.
3 Food Identification Review the predicted food name, category, confidence, possible matches, and detected components.
4 Analysis Progress Follow the analysis stages: image understanding, ingredient resolution, nutrition retrieval, safety checks, evidence retrieval, and insight generation.
5 Overview Dashboard Review the high-level summary, nutrition indicators, safety status, and profile context.
6 Detailed Composition Explore the estimated ingredient list, proportions, and descriptions.
7 Nutrition Intelligence Review calories, macronutrients, fibre, and available micronutrients.
8 Food Safety & Risk Analysis Review allergen information, potential food-safety concerns, and risk factors.
9 Evidence Explorer Inspect supporting food, nutrition, and scientific reference material.
10 FoodLab β€” What-If Analysis Modify an ingredient or quantity and compare the original and modified food.
11 Ask Intelligence Ask follow-up questions about the current food analysis.
12 User Profile & History Manage preferences and review previous analyses.

FoodInsightAI user-flow diagram

flowchart TD
    A(["1. Home β€” Food Intelligence Hub"])
    B["2. Food Capture<br/>Camera / Upload"]
    C["3. Food Identification<br/>Food β€’ Category β€’ Confidence"]
    D["4. Analysis Progress<br/>Track analysis stages"]
    E["5. Overview Dashboard<br/>Summary and assessment"]
    F["6. Detailed Composition<br/>Ingredient breakdown"]
    G["7. Nutrition Intelligence<br/>Nutrients and serving context"]
    H["8. Food Safety & Risk<br/>Allergens and potential risks"]
    I["9. Evidence Explorer<br/>Sources and references"]
    J["10. What-If Analysis<br/>Modify and compare"]
    K["11. Ask Intelligence<br/>Contextual questions"]
    L(["12. User Profile & History"])

    A --> B --> C --> D --> E --> F --> G --> H --> I --> J --> K --> L

    classDef start fill:#E5F5E9,stroke:#26864A,color:#174B2B,stroke-width:2px;
    classDef step fill:#EEF4FF,stroke:#4779B8,color:#173B68,stroke-width:1.5px;
    classDef analysis fill:#F5EEFF,stroke:#8656B8,color:#48266B,stroke-width:1.5px;
    class A,L start;
    class B,C,D,E,F,G,H,I step;
    class J,K analysis;
Loading

Main user inputs

  • Food image captured through a camera or selected from a device.
  • Optional serving size or quantity.
  • Optional dietary preferences and constraints.
  • Optional allergy information and profile context.

Main user outputs

  • Food identity and confidence.
  • Ingredient and composition information.
  • Nutrition and serving-context results.
  • Allergen and safety observations.
  • Evidence and uncertainty notes.
  • Analysis history and reports where available.

πŸ§ͺ 6. FoodLab β€” Application Flow

FoodLab is the virtual food experimentation workflow. The following eight-screen flow follows the supplied application design.

FoodLab application flow

Screen-by-screen explanation

Step Screen User experience
1 Home Screen Start a new experiment or access the food catalogue, saved experiments, reports, and help.
2 Select Food Items Search, browse, filter, and select two or more food items.
3 Combine & Formulate Define ingredient quantities and provide a proposed product name.
4 Set Experiment Requirements Select a research objective, target population, and optional dietary preferences.
5 Run Simulation Start the formulation, nutrition, safety, and health analysis workflow.
6 Results Overview Review the overall assessment and key result indicators.
7 Detailed Analysis Inspect nutrition, safety, health, and ingredient-level findings.
8 Generate & Download Report Generate a report and save the experiment for future reference where supported.

FoodLab user-flow diagram

flowchart TD
    A(["1. Home Screen"])
    B["2. Select Food Items<br/>Search β€’ Browse β€’ Select"]
    C["3. Combine & Formulate<br/>Ingredients β€’ Quantities β€’ Product name"]
    D["4. Set Requirements<br/>Objective β€’ Population β€’ Preferences"]
    E["5. Run Simulation<br/>Execute analysis workflow"]
    F["6. Results Overview<br/>Summary β€’ Suitability"]
    G["7. Detailed Analysis<br/>Nutrition β€’ Safety β€’ Health"]
    H(["8. Generate & Download Report"])

    A --> B --> C --> D --> E --> F --> G --> H

    classDef start fill:#E5F5E9,stroke:#26864A,color:#174B2B,stroke-width:2px;
    classDef process fill:#F0F5FF,stroke:#4779B8,color:#173B68,stroke-width:1.5px;
    classDef result fill:#F2EAFE,stroke:#8656B8,color:#48266B,stroke-width:1.5px;
    class A,H start;
    class B,C,D,E process;
    class F,G result;
Loading

FoodLab inputs

  • Selected food items.
  • Ingredient quantities and units.
  • Formulation or proposed product name.
  • Experiment objective.
  • Target population.
  • Optional dietary preferences and constraints.

FoodLab outputs

  • Formulation summary.
  • Ingredient-level composition.
  • Nutrition analysis.
  • Allergen and food-safety observations.
  • Health and suitability considerations.
  • Optimization suggestions where supported.
  • Experiment report.

βš™οΈ 7. Food Analysis β€” Technical Pipeline

This six-stage technical pipeline explains how a food image is transformed into a structured analysis result.

NutriScientia food analysis pipeline

Six-stage processing flow

flowchart LR
    S1["STAGE 1<br/>User Input &<br/>API Ingestion"]
    S2["STAGE 2<br/>Image<br/>Pre-processing"]
    S3["STAGE 3<br/>MODEL 1<br/>Food Identification"]
    S4["STAGE 4<br/>MODEL 2<br/>Food Intelligence"]
    S5["STAGE 5<br/>Six-Part Scientific<br/>Analysis"]
    S6["STAGE 6<br/>Results, Reports<br/>& Storage"]

    S1 --> S2 --> S3 --> S4 --> S5 --> S6

    classDef ingest fill:#E8F1FF,stroke:#3976B8,color:#173C65,stroke-width:2px;
    classDef prep fill:#FFF2DF,stroke:#C1842D,color:#67420D,stroke-width:2px;
    classDef model fill:#F0EAFE,stroke:#8056B5,color:#43256A,stroke-width:2px;
    classDef analysis fill:#E7F6ED,stroke:#318458,color:#174D31,stroke-width:2px;
    classDef output fill:#FCEBED,stroke:#C25A68,color:#6D2933,stroke-width:2px;

    class S1 ingest;
    class S2 prep;
    class S3,S4 model;
    class S5 analysis;
    class S6 output;
Loading

Stage 1 β€” User Input & Ingestion

  • Accept a food image from the application.
  • Receive optional quantity, serving size, and user constraints.
  • Validate the uploaded file and request.
  • Create an analysis identifier.
  • Forward the request to the processing workflow.

Stage 2 β€” Image Pre-processing

  • Validate image format and integrity.
  • Resize and normalize the image.
  • Check image quality, blur, and noise.
  • Prepare food regions for model inference.
  • Apply the configured detection or segmentation process.

Stage 3 β€” Model 1: Food Identification

  • Detect one or multiple food items.
  • Predict food name and category.
  • Identify visible ingredients where possible.
  • Generate confidence information.
  • Return food regions or bounding boxes if supported.

Stage 4 β€” Model 2: Food Intelligence & Data Retrieval

  • Receive Model 1's structured output.
  • Map and normalize ingredient names.
  • Retrieve food-composition information.
  • Calculate nutrition using available quantity and serving data.
  • Evaluate allergens and potential risks.
  • Retrieve supporting evidence where configured.

Stage 5 β€” Six-Part Scientific Analysis

The analysis is organized into composition, nutrition, allergen, safety, health-impact, and research-evidence modules.

Stage 6 β€” Results, Reports & Storage

  • Return structured results.
  • Display analysis in the application.
  • Generate a report where implemented.
  • Persist analysis and experiment records where configured.

πŸ€– 8. Two-Model AI Architecture

Model 1 β€” Food Identification

Primary objective: identify the food shown in the submitted image.

Responsibility Description
Food detection Locate food items in the image.
Food classification Predict the food name and category.
Component recognition Identify visible food components where possible.
Confidence Return model confidence information.
Region output Return bounding boxes or detected regions if supported.

Model 1 output β€” illustrative JSON

{
  "food_name": "Idli",
  "food_category": "Breakfast",
  "visible_ingredients": ["Idli"],
  "confidence": 0.92,
  "uncertainties": []
}

The JSON is an illustrative example. The actual API response schema is defined by the backend implementation.

Model 2 β€” Food Intelligence

Primary objective: turn identified food information into a deeper, structured analysis.

Responsibility Description
Ingredient mapping Map recognized ingredients to standardized food records.
Nutrition retrieval Retrieve relevant composition data.
Nutrition calculation Calculate values using available quantities and serving context.
Allergen assessment Identify known allergens and relevant concerns.
Safety evaluation Assess potential food-safety risks using available evidence and rules.
Health impact Present relevant serving and dietary considerations.
Evidence retrieval Retrieve supporting references where configured.

Model communication

flowchart TD
    IMG["Food Image"] --> M1["Model 1<br/>Food Identification"]
    M1 --> JSON["Structured Identification Result"]
    JSON --> M2["Model 2<br/>Food Intelligence"]
    M2 --> MAP["Ingredient Mapping"]
    MAP --> RET["Food Data & Reference Retrieval"]
    RET --> CALC["Nutrition & Serving Calculations"]
    CALC --> SAFE["Allergen & Safety Assessment"]
    SAFE --> OUT["Structured Food Analysis"]
Loading

Important distinction: Model 1 is responsible for visual food identification. Model 2 is responsible for deeper food intelligence and analysis. Neither stage should invent hidden ingredients, exact quantities, or verified safety conclusions that cannot be established from the available information.


🧬 9. Six-Part Scientific Analysis

No. Analysis module Main purpose
1 Food & Ingredient Composition Describe the identified food and its ingredient composition.
2 Nutritional Analysis Evaluate energy, protein, carbohydrates, fats, fibre, and available micronutrients.
3 Allergen Assessment Identify known allergens and possible cross-contact concerns.
4 Food Safety & Risk Analysis Evaluate potential contamination, additives, toxins, and handling-related risks using available information.
5 Health Impact Analysis Present serving-context and dietary considerations.
6 Research Evidence Analysis Retrieve relevant research, guidelines, and supporting references.

Decision classification

Status Interpretation
🟒 SAFE No significant concern was identified by the available checks. This does not guarantee that the food is safe.
🟑 CAUTION One or more concerns, limitations, or conditions require attention.
πŸ”΄ UNSAFE Available rules or evidence indicate a serious risk.
βšͺ INSUFFICIENT Available information is not sufficient to make a reliable assessment.

A decision status should be accompanied by the evidence, limitations, and uncertainty that support it.


🧰 10. Technology Stack

The following table separates the core technologies associated with the project from components that must be confirmed against the current repository before being described as active production dependencies.

Core engineering and AI technologies

Layer Technology Role
Backend language Python Backend services and AI/ML workflows
API framework FastAPI Backend API and request handling
Computer vision YOLO Food detection and region identification where integrated
Deep learning PyTorch Model execution and experimentation
Vision-language model Qwen3-VL Visual food understanding in the model workflow
Local model runtime Ollama Local model serving and inference during development
Cloud model integration Hugging Face Inference API Hosted model inference where configured

Architecture and infrastructure components

Layer Technology Intended role
AI orchestration LangGraph Multi-step or multi-agent workflow orchestration where implemented
Retrieval RAG Retrieval-supported analysis
Vector search FAISS Similarity search over vector embeddings where configured
Database PostgreSQL Structured application data where configured
Cache Redis Caching or job-state support where configured
Containerization Docker Container packaging where used
Cloud AWS EC2 Application or model hosting
Object storage AWS S3 Image and report storage where configured

Technology verification note

The project diagrams and previous development work reference the technologies above. Before treating every item as an active production dependency, verify it against the current source code, dependency manifests, and AWS configuration. Do not represent a planned or experimental component as deployed.


πŸ“š 11. Datasets & Knowledge Resources

The following resources are associated with the project's food-identification and food-intelligence research.

Food image datasets

Dataset Intended use
Food-101 Food image classification research and evaluation
UEC-Food256 Food recognition and classification
UEC-FoodPix Food image segmentation and region understanding
SOHL Multi-Dish Indian Food Indian multi-dish food recognition

Food composition and scientific references

Resource Intended use
IFCT 2017 Indian food composition reference
USDA FoodData Central Food and nutrient composition data
FSSAI Food standards and safety references
PubMed Scientific and biomedical literature
Europe PMC Scientific literature and research discovery

Dataset availability, licensing, source attribution, annotation quality, and permitted usage must be checked before training or redistributing data.


πŸ”Œ 12. Backend, API & Data Architecture

The backend is responsible for accepting application requests, validating inputs, coordinating the analysis workflow, and returning structured results.

Logical API lifecycle

flowchart TD
    A["Client Request"] --> B["API Route"]
    B --> C["Request Validation"]
    C --> D{"Input Type"}
    D -->|Food image| E["Food Analysis Workflow"]
    D -->|Food combination| F["FoodLab Experiment Workflow"]
    E --> G["AI Model Processing"]
    F --> H["Formulation & Analysis"]
    G --> I["Result Structuring"]
    H --> I
    I --> J["Persistence / Report Generation"]
    J --> K["API Response"]
    K --> L["Frontend Results"]
Loading

API documentation

Document the actual API endpoints from the backend source code. The following are examples of endpoint patterns represented in the project architecture, not a guarantee that each route is currently active:

Method Example route Purpose
POST /analyze Submit a food analysis request
GET /analysis/{id} Retrieve an analysis result
GET /report/{id} Retrieve or download a report
POST /experiments Create a FoodLab experiment, if implemented
GET /experiments/{id} Retrieve an experiment, if implemented

For the final API contract, use the actual FastAPI route definitions and schemas. Include request examples, response examples, authentication requirements, and error responses only when verified.

Data responsibilities

Data category Example information
Food identification Predicted food name, category, confidence, detected regions
Ingredient information Ingredient identity and normalized names
Nutrition Nutrient values, units, and serving context
Safety Allergen information, risk observations, evidence
Experiment Selected foods, quantities, objective, formulation
Results Structured analysis, status, uncertainty, references
Reports Generated report files and metadata

☁️ 13. AWS Production Deployment

The project is deployed through the public application endpoint:

Live application: https://52.87.185.169.nip.io/

Logical deployment view

flowchart TB
    USER(["🌐 User / Browser"])
    DNS["Public domain / DNS"]
    HTTPS["HTTPS entry point"]
    APP["Deployed application"]
    API["Backend API"]
    AI["AI inference services"]
    DB[("Database<br/>if configured")]
    STORAGE[("Object storage<br/>if configured")]

    USER --> DNS --> HTTPS --> APP
    APP --> API --> AI
    API -. data access .-> DB
    API -. file access .-> STORAGE

    classDef public fill:#E8F1FF,stroke:#3976B8,color:#173C65,stroke-width:1.5px;
    classDef service fill:#F0EAFE,stroke:#8056B5,color:#43256A,stroke-width:1.5px;
    classDef data fill:#E7F6ED,stroke:#318458,color:#174D31,stroke-width:1.5px;

    class USER,DNS,HTTPS public;
    class APP,API,AI service;
    class DB,STORAGE data;
Loading

Deployment documentation checklist

The final deployment details should be confirmed from the actual AWS environment and repository:

  • Compute instance and operating environment.
  • Frontend hosting method.
  • Backend process and service manager.
  • Public DNS and TLS/HTTPS configuration.
  • Model inference location and runtime.
  • Database endpoint and access controls.
  • Image and report storage configuration.
  • Environment variables and secret management.
  • Deployment and rollback procedure.
  • Monitoring, logs, and health checks.

Architecture note: This diagram is a logical deployment view. It intentionally does not claim that unverified services such as Kubernetes, Docker, Redis, or S3 are part of the live deployment.


πŸ—‚οΈ 14. Repository Documentation Layout

Recommended documentation organization:

NutriScientia/
β”‚
β”œβ”€β”€ README.md
β”‚
β”œβ”€β”€ docs/
β”‚   β”œβ”€β”€ images/
β”‚   β”‚   β”œβ”€β”€ food-analysis-pipeline.png
β”‚   β”‚   β”œβ”€β”€ foodlab-application-flow.png
β”‚   β”‚   └── foodinsightai-application-flow.png
β”‚   β”‚
β”‚   └── architecture/
β”‚       β”œβ”€β”€ system-architecture.md
β”‚       β”œβ”€β”€ ai-model-pipeline.md
β”‚       β”œβ”€β”€ foodlab-workflow.md
β”‚       β”œβ”€β”€ foodinsightai-workflow.md
β”‚       └── deployment-architecture.md
β”‚
β”œβ”€β”€ backend/
β”œβ”€β”€ frontend/
β”œβ”€β”€ models/
β”œβ”€β”€ datasets/
β”œβ”€β”€ scripts/
└── tests/

This is a documentation-oriented example. The actual source repository structure may differ; retain the existing application structure.


πŸ’» 15. Development Setup

Use the actual repository instructions and dependency files when setting up the project.

Prerequisites

  • Git
  • Python version supported by the backend dependencies
  • Required frontend runtime and package manager
  • Access to configured model providers, if required
  • Database and storage services required by the selected environment

Clone the repository

git clone <YOUR_REPOSITORY_URL>
cd <YOUR_REPOSITORY_DIRECTORY>

Backend setup β€” example for a Python/FastAPI service

python -m venv .venv

Windows PowerShell:

.venv\Scripts\Activate.ps1

Linux/macOS:

source .venv/bin/activate

Install dependencies if the repository provides requirements.txt:

pip install -r requirements.txt

Start the service using the actual application entry point. For example, if the project defines app.main:app:

uvicorn app.main:app --host 127.0.0.1 --port 8000

Environment configuration

Create a local environment file based on the repository's .env.example, if available.

Never commit production credentials, API keys, database passwords, or private tokens.

Frontend setup

Use the package manager and startup command specified by the actual frontend project configuration.


πŸ” 16. Security & Responsible AI

  • Validate uploaded images and request payloads.
  • Enforce file-size and file-type restrictions.
  • Keep credentials outside source control.
  • Restrict access to stored images, reports, and user records.
  • Avoid logging sensitive user information.
  • Return uncertainty when the image or reference data is incomplete.
  • Do not invent hidden ingredients or exact quantities.
  • Distinguish potential risk indicators from confirmed contamination or toxicity.
  • Cite authoritative sources for scientific claims where available.
  • Do not present image-based analysis as a laboratory test, medical diagnosis, or guarantee of food safety.

πŸ‘₯ 17. Project Team

NutriScientia β€” AI Research & Engineering Team

NutriScientia is developed by a six-member multidisciplinary team working across AI/ML engineering, knowledge representation, backend systems, data engineering, scientific research, model evaluation, and cloud deployment.

Team member Designation Primary ownership
Varun Team Lead & AI/ML Engineering and Research Lead Technical leadership, AI/ML architecture, research direction, system integration, and production readiness
Praneeth Knowledge Graph & Backend Engineer Knowledge graph engineering, backend services, API development, and data integration
Akshay Data Engineer & Dataset Acquisition Specialist Dataset collection, data cleaning, preprocessing, annotation coordination, and data quality
Murali Scientific Researcher & Research Paper Writer Literature review, research methodology, experimental documentation, and research paper preparation
Manoj Machine Learning Engineer β€” Training & Evaluation Model training, experimentation, validation, performance evaluation, and optimization
Siddaratha AI/ML Deployment & Cloud Engineer Model serving, AWS infrastructure, deployment configuration, and cloud operations

Individual responsibilities

Varun β€” Team Lead & AI/ML Engineering and Research Lead

  • Leads the overall technical direction and architecture.
  • Defines AI/ML engineering and research priorities.
  • Coordinates the six engineering and research workstreams.
  • Integrates frontend, backend, datasets, and AI model components.
  • Oversees end-to-end testing and technical quality.
  • Coordinates production readiness and final release.

Praneeth β€” Knowledge Graph & Backend Engineer

  • Designs and develops knowledge representation and graph structures.
  • Builds backend services and API integrations.
  • Connects application workflows with structured food knowledge.
  • Supports data consistency and backend reliability.

Akshay β€” Data Engineer & Dataset Acquisition Specialist

  • Researches and collects relevant food datasets.
  • Organizes, cleans, and preprocesses data.
  • Supports annotation and data-quality checks.
  • Prepares datasets for training, validation, and experimentation.
  • Maintains dataset documentation and source references.

Murali β€” Scientific Researcher & Research Paper Writer

  • Reviews relevant scientific literature.
  • Develops research methodology documentation.
  • Records experimental methods and findings.
  • Prepares technical and scientific research content.
  • Supports research paper drafting and reference management.

Manoj β€” Machine Learning Engineer, Training & Evaluation

  • Runs model training and experimentation workflows.
  • Configures training and validation procedures.
  • Evaluates model performance and errors.
  • Compares model results and identifies improvement areas.
  • Documents evaluation metrics and findings.

Siddaratha β€” AI/ML Deployment & Cloud Engineer

  • Prepares models for deployment and inference.
  • Configures cloud runtime environments.
  • Supports AWS infrastructure and deployment operations.
  • Validates deployed model services.
  • Troubleshoots runtime and cloud integration issues.

πŸ”„ 18. Team Collaboration & Delivery Workflow

The team works in coordinated, parallel workstreams. The diagram below represents ownership and collaboration, not a rigid sequence in which one person must finish all work before another can begin.

18.1 Graphical team collaboration architecture

flowchart TB
    LEAD["πŸ‘¨β€πŸ’» VARUN<br/>Team Lead β€’ AI/ML Architecture<br/>Research Direction β€’ System Integration"]

    subgraph WORKSTREAMS["SPECIALIZED ENGINEERING & RESEARCH WORKSTREAMS"]
        DATA["AKSHAY<br/>Data Engineering<br/>Dataset Collection & Preparation"]
        ML["MANOJ<br/>Model Training<br/>Validation & Evaluation"]
        BACKEND["PRANEETH<br/>Knowledge Graph<br/>Backend & API Engineering"]
        CLOUD["SIDDARATHA<br/>Model Deployment<br/>AWS & Cloud Operations"]
        RESEARCH["MURALI<br/>Scientific Research<br/>Paper & Technical Writing"]
    end

    INTEGRATION["INTEGRATION & VALIDATION<br/>Model + Backend + Data + Application"]
    RELEASE["PRODUCTION READINESS<br/>Testing β€’ Deployment Validation β€’ Release"]

    LEAD --> DATA
    LEAD --> ML
    LEAD --> BACKEND
    LEAD --> CLOUD
    LEAD --> RESEARCH

    DATA --> ML
    ML --> INTEGRATION
    BACKEND --> INTEGRATION
    CLOUD --> INTEGRATION
    RESEARCH -. research evidence and documentation .-> INTEGRATION
    INTEGRATION --> LEAD
    LEAD --> RELEASE

    classDef lead fill:#E9EFFF,stroke:#345FA8,color:#17345F,stroke-width:2px;
    classDef stream fill:#F2F5FA,stroke:#71839A,color:#25394D,stroke-width:1.5px;
    classDef integrate fill:#F0EAFE,stroke:#8056B5,color:#43256A,stroke-width:2px;
    classDef release fill:#E5F5E9,stroke:#26864A,color:#174B2B,stroke-width:2px;

    class LEAD lead;
    class DATA,ML,BACKEND,CLOUD,RESEARCH stream;
    class INTEGRATION integrate;
    class RELEASE release;
Loading

18.2 Responsibility and deliverables matrix

Owner Workstream Main deliverables
Varun Leadership, AI/ML architecture and integration Architecture decisions, integrated application, technical validation, release coordination
Praneeth Knowledge graph and backend Backend services, APIs, knowledge structures, integrations
Akshay Data engineering Dataset inventory, cleaned/prepared data, data-quality documentation
Murali Scientific research Literature review, methodology, experiment documentation, research paper drafts
Manoj Model training and evaluation Trained model artifacts where applicable, evaluation results, metrics, improvement analysis
Siddaratha Deployment and cloud Deployment configuration, model-serving environment, AWS operations and validation

18.3 Engineering handoffs

  1. Data preparation: Akshay prepares and documents datasets for model development.
  2. Model development: Manoj uses the prepared data for training, validation, and performance evaluation.
  3. Backend and knowledge integration: Praneeth builds the backend and knowledge structures that connect the application and analysis services.
  4. Cloud deployment: Siddaratha prepares model-serving and cloud deployment operations.
  5. Scientific documentation: Murali documents literature, methodology, experiments, results, and research findings throughout the project.
  6. System integration and release: Varun coordinates the workstreams, integrates the components, validates the end-to-end application, and leads production readiness.

The workstreams collaborate continuously. Model evaluation can lead to new data requirements, backend integration can reveal model-interface changes, and deployment testing can lead to performance or reliability improvements.


πŸ›£οΈ 19. Future Development

Potential areas for continued improvement include:

  • Expanding food recognition coverage and evaluation.
  • Improving ingredient normalization and food-composition mapping.
  • Strengthening serving-size and quantity-aware calculations.
  • Improving allergen and food-safety evidence handling.
  • Increasing retrieval relevance and reference traceability.
  • Improving model confidence calibration and uncertainty reporting.
  • Validating FoodLab formulation outputs against expert review and laboratory measurements.
  • Expanding automated tests, monitoring, and deployment validation.
  • Developing reproducible research and model-evaluation reports.

βš–οΈ 20. Disclaimer

NutriScientia is an AI-assisted informational and experimental platform. Its outputs may be incomplete or uncertain, particularly when images are unclear, quantities are unknown, recipes vary, or reference data is unavailable.

The platform is not a certified food-testing laboratory, medical diagnostic system, or official food-safety authority. Image-based analysis cannot independently confirm hidden ingredients, contamination, exact nutrient composition, or clinical suitability. Important allergy, medical, and food-safety decisions should be verified with qualified professionals and authoritative sources.


🌱 Our Vision

Bringing Artificial Intelligence, Food Science, Nutrition Intelligence, and Virtual Experimentation together in one connected platform.

NutriScientia β€” Food Insight AI

Understand Food. Analyze Science. Explore Innovation. πŸš€

About

🍎 **NutriScientia – Food Insight AI** is an Virtual Food Lab that analyzes food images, identifies ingredients, explores nutritional values, and detects potential food safety risks. πŸ€– Powered by AI, computer vision, and deep learning, it transforms food images into smart food insights. πŸš€ sho

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages