Project · 2025

DAPPLI

On-device ingredient recognition & AI-generated Filipino recipes

Full-Stack DeveloperThesis-to-startup project — development paused

DAPPLI turns a kitchen camera into an offline-first recipe assistant. I built its recognition pipeline: a custom on-device model for 30 Filipino ingredients, cloud fallback for uncertain frames, and allergen-aware recipe generation.

PythonYOLOTensorFlow LiteFlutterFirebaseGoogle Gemini SDK

From thesis question to product

The thesis asked whether a mobile app could close the gap between what's in a Filipino kitchen and what ends up on the table. I was a developer on the four-member research team, and my personal scope was the technical core: ingredient recognition, Firebase integration, and the LLM-assisted recipe pipeline. After the thesis cycle, the project was carried forward as a seven-member startup venture.

The thesis — Recipe-Generating Mobile Application Using YOLO and Transformer-Based Language Models — received Best Thesis recognition, and I received the Best Programmer Award (April 2026). Separately, at CPU RESONATE 2026 the research earned Best Paper (Category A – Advanced Technologies, Computer Science Researches) under the registered title Augmented Reality Food-Scanning Recipe-Generating Mobile Application Using YOLO and NLP Algorithm for Filipino Cuisine, as listed in CPU's official RESONATE 2026 results. The DAPPLI project also earned the DOST-CPUGAD TBI SKYBOUND Excellence and Apex awards.

Dual-layer ingredient recognition

Recognition runs in two layers, chosen for Philippine connectivity realities:

  1. On-device first. A custom YOLOv8n model converted to TensorFlow Lite (6.2 MB, tflite_flutter) classifies 30 Filipino ingredient classes — ampalaya, pechay, monggo, and the like — with no network at all. The class list ships in the repository.
  2. Cloud fallback. When the on-device model is unsure, frames go to Google Gemini for cloud vision, so coverage extends beyond the 30 trained classes.

This layering is the engineering heart of the app: recognition that works in a kitchen with no signal, and graceful degradation when it doesn't.

Training a model on Filipino ingredients

Off-the-shelf food models are trained on broad food taxonomies, so the team labeled its own data — 5,000+ ingredient images — around ingredients used in Filipino kitchens. The latest documented run trained YOLOv8n on Google Colab for 100 epochs, with a batch size of 16, 640px input, and pretrained weights as the starting point.

Read from the supplied final-epoch curves, the run reached approximately 0.87 precision, 0.75 recall, 0.81 mAP@50, and 0.59 mAP@50–95. Training and validation losses continue trending downward through the run. I present these as approximate because they are read from the plotted curves rather than an exported metrics table; they describe this validation run, not performance across every kitchen, camera, or lighting condition.

The trained weights were then exported to TensorFlow Lite at the same 640px input size for on-device integration in Flutter.

YOLOv8 training results across 100 epochs, with falling train and validation losses and rising precision, recall, mAP at 50, and mAP at 50 to 95
Latest documented 100-epoch run. The final plotted curves are approximately 0.87 precision, 0.75 recall, 0.81 mAP@50, and 0.59 mAP@50–95.

Checking a validation image

A validation-set image provides a concrete check on the recognition path: the model localizes an Ampalaya and labels it at 0.78 confidence against a plain background.

This is a qualitative example, not a substitute for the full validation metrics above. Its value is narrower and practical: it shows the trained detector returning the class, confidence score, and bounding box that the mobile experience needs before the model is converted to TensorFlow Lite.

YOLOv8 validation result showing a bounding box around an Ampalaya with 0.78 confidence
Validation sample: Ampalaya localized at 0.78 confidence. A single example demonstrates the inference output, not general accuracy.

Recipes, allergens, and community

Recognized ingredients feed recipe generation through a cloud LLM, with allergen filtering and personalization from an onboarding survey. Around the core, the app grew the features a recipe product needs: a community recipe feed with search and infinite scroll, a personal cookbook, and user profiles that use Philippine geographic data (philippines_rpcmb) for regional context.

Firebase (Auth, Firestore, Storage) carries the backend; keys stay in environment configuration.

Where it stands

DAPPLI is the strongest evidence I have of applied AI work — a real model, trained on real data, running on a real device. It is also honestly paused: development is currently paused, and the source repository remains private. A code and architecture walkthrough is available on request.

The recognition pipeline, the training workflow, and the offline-first instincts it taught me carry directly into how I build today — including the on-device thinking behind my later work.

Evidence