[Paper Review] FoodTracker: A Real-time Food Detection Mobile Application by Deep Convolutional Neural Networks
FoodTracker proposes a real-time mobile application using a lightweight YOLOv2-based deep convolutional neural network (DCNN) with depth-wise separable convolutions to detect multiple food items in a single image, achieving 80% mean average precision. The system runs entirely on-device, with 75ms wall-clock inference time and 8.1MB model size, delivering nutrition facts via API integration for each detected food item.
We present a mobile application made to recognize food items of multi-object meal from a single image in real-time, and then return the nutrition facts with components and approximate amounts. Our work is organized in two parts. First, we build a deep convolutional neural network merging with YOLO, a state-of-the-art detection strategy, to achieve simultaneous multi-object recognition and localization with nearly 80% mean average precision. Second, we adapt our model into a mobile application with extending function for nutrition analysis. After inferring and decoding the model output in the app side, we present detection results that include bounding box position and class label in either real-time or local mode. Our model is well-suited for mobile devices with negligible inference time and small memory requirements with a deep learning algorithm.
Motivation & Objective
- To develop a real-time, on-device food detection system that eliminates manual food journaling.
- To enable multi-object food recognition and localization in natural meal images with high accuracy.
- To integrate nutrition fact retrieval from a global database using detected food labels.
- To optimize deep learning inference for mobile deployment with minimal latency and memory usage.
- To support both real-time camera input and local image analysis in a single mobile application.
Proposed method
- The system uses a YOLOv2-based DCNN architecture with MobileNet backbone to enable real-time object detection.
- Depth-wise separable convolutions reduce computation and parameter count by up to 8–9× compared to standard convolutions.
- The model is trained on UECFood100 and UECFood256 datasets with 100 and 256 food categories, respectively.
- Non-maximum suppression is applied to remove overlapping bounding boxes with IoU threshold >30%.
- Inference is performed locally on mobile devices using TensorFlow Java API, with no remote server dependency.
- Nutrition facts are retrieved via the Nutritionix API using detected food class labels.
Experimental results
Research questions
- RQ1Can a lightweight deep learning model achieve high-accuracy food detection in real-time on mobile devices?
- RQ2How can depth-wise separable convolutions reduce model size and inference time without sacrificing detection performance?
- RQ3Can a mobile application integrate food detection with real-time nutrition fact retrieval from a global database?
- RQ4What is the performance of on-device inference in terms of latency and memory usage for real-world meal images?
- RQ5How effective is the system in detecting multiple food items in complex, real-life meal scenes?
Key findings
- The FoodTracker model achieves 80% mean average precision on the UECFood100 and UECFood256 benchmarks.
- The system achieves 75ms wall-clock inference time and 15ms CPU time per image on a Google Pixel 2.
- The DCNN model size is only 8.1MB, with 242.2MB runtime memory usage on mobile devices.
- The application supports both real-time camera-based detection and local image analysis without requiring server-side computation.
- Nutrition facts are successfully retrieved for each detected food item via the Nutritionix API, enabling automatic meal logging.
- The use of depth-wise separable convolutions enables a 9× reduction in computation cost compared to standard convolutions, with minimal accuracy loss.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.