- Akshat Kalra (UBC)

1. Approach to Solving the Problem

My solution/approach:


Image Input (Batch of 100)
      ↓
Client sends batch images to FastAPI endpoint
      ↓
Model Inference (yolov8n-seg model for instance segmentation)
      ↓
Segmentation & Food Detection (model identifies food items)
      ↓
Area Calculation (Each segmentation mask’s pixel count is computed to derive the item’s area.)
      ↓
Results Output (Aggregated JSON response: Food Item + Area)

2. Scalability Strategy

2.1 Vertical Scaling