🍜 YOLOv8 Indonesian Food Detection v1
This model is a YOLOv8-based object detection model trained to detect various Indonesian and international food items from images.
It is trained using a COCO-format dataset converted into YOLO format and fine-tuned using Ultralytics YOLOv8.
📌 Model Details
- Architecture: YOLOv8 (Ultralytics)
- Task: Object Detection
- Framework: PyTorch / Ultralytics
- Base Model: YOLOv8n
- Classes: 12 food categories
- Image Size: 640x640
- Training Epochs: 50
🍱 Classes
The model can detect the following food categories:
- 0: Ayam Goreng
- 1: Bakso
- 2: Capcay
- 3: Mie Goreng
- 4: Nasi Goreng
- 5: Pempek
- 6: Rendang Sapi
- 7: Sate
- 8: Tahu Goreng
- 9: Tempe Goreng
- 10: Terong Balado
- 11: Tumis Kangkung
🚀 Usage
Install dependencies
1from ultralytics import YOLO
2
3model = YOLO("https://huggingface.co/wuriyanto/yolo8-indonesian-food-detection-v1/resolve/main/model.pt")
4
5results = model("food.jpg", conf=0.25)
6
7import matplotlib.pyplot as plt
8plt.imshow(results[0].plot()[:, :, ::-1])
9plt.axis("off")
10plt.show()
📊 Example Output
The model detects food items and draws bounding boxes around them.
Example inference result:
📚 Dataset
- Source: COCO-format Indonesian Food Dataset (multi-source)
- Converted to YOLO format for training
- Includes mixed Indonesian + international food categories
- Split: Train / Validation / Test
⚠️ Limitations
This model has several known limitations:
❌ Dataset is imbalanced across classes some classes have very few samples (e.g., Capcay)
❌ Detection may be inaccurate for: visually similar foods (e.g., Tahu vs Tempe) small objects in complex scenes
❌ Model does NOT perform classification beyond bounding box detection
❌ No calorie estimation or nutritional inference
❌ Performance may degrade in: low light conditions heavy occlusion non-food or abstract images
💡 Future Improvements (v2 roadmap)
- Dataset balancing (increase low-sample classes like Capcay)
- Remove non-food or irrelevant classes
- Improve annotation consistency
- Add segmentation version (YOLOv8-seg)
- Integrate food recognition + calorie estimation pipeline
📜 License
This project is released under the MIT License.
Feel free to use, modify, and improve.
📖 Citation
If you use this model, please cite:
@misc{wuriyanto2026yolo8indonesianfood,
title = {YOLOv8 Indonesian Food Detection v1},
author = {Wuriyanto},
year = {2026},
url = {https://huggingface.co/wuriyanto/yolo8-indonesian-food-detection-v1}
}