Real-Time Food Ingredient Detection and Rule-Based Recipe Recommendation Using CPU-Deployable YOLOv8n
DOI:
https://doi.org/10.26905/jeemecs.v9i2.17284Keywords:
YOLOv8, OpenCV, Recipe Recommendation, Computer Vision, Real-time inferenceAbstract
This paper presents a real-time food ingredient detection and rule-based recipe recommendation system using YOLOv8n for CPU-only deployment. The system detects five common household ingredients tempeh, egg, spring onion, soy sauce, and noodle—from a live webcam stream and maps the detected ingredient set to predefined recipe rules. A custom dataset of 1,250 images was collected under variations in lighting, distance, and camera angle, annotated in YOLO format, and divided into training, validation, and test subsets using stratified sampling. Experimental results on the held-out test set showed an overall precision of 0.88, recall of 0.84, F1-score of 0.86, [email protected] of 0.89, and [email protected]:0.95 of 0.59. On a CPU-only Intel Core i5-1135G7 laptop, the system achieved approximately 28 FPS, indicating its feasibility for real-time kitchen-assistance applications. The rule-based recommendation module achieved 90.0% strict accuracy and 96.7% lenient accuracy across valid, partial, and invalid ingredient combinations. These results suggest that YOLOv8n can be integrated with an interpretable rule-based recommendation engine for lightweight food-related applications. However, the current system remains limited by the small number of ingredient classes, sensitivity to lighting and occlusion, and the static recipe database.
Downloads
References
[1] A. F. Qadafi and A. D. Wahyudi, "Sistem informasi inventory gudang dalam ketersediaan stok barang menggunakan metode buffer stok," JATIKA, vol. 1, no. 2, 2021.
[2] A. Carolina and L. Lina, "Sistem penjualan dengan pengenalan produk secara otomatis menggunakan metode yolo," Simtek: Jurnal Sistem Informasi dan Teknik Komputer, vol. 8, no. 2, 2023.
[3] A. Aqilah, S. Bustamin, and S. S. Sahrir, "Sistem informasi manajemen persediaan berbasis web di cv. makmur sejahtera palopo," Jurnal PROCESSOR, vol. 18, no. 2, 2023.
[4] A. E. Farhan, P. Prajoko, and A. P. Pambudi, "Pendeteksian kandungan gula dan karbohidrat pada umbi-umbian dengan metode yolo (you only look once) v8," JATI (Jurnal Mahasiswa Teknik Informatika), vol. 8, no. 5, 2024.
[5] B. S. B. Dewantara, A. Z. Devy, M. Bachtiar, and Setiawardhana, "Recognition of food material and measurement of quality using yolo and wld-svm," Asia Pacific Symposium on Intelligent and Evolutionary Systems, 2021.
[6] D. T. Anggoro, R. Yunestri, and S. N. Chaniago, "Perancangan sistem informasi manajemen stok makanan pada restoran bubur ayam doplangan," OSF Preprints, 2021.
[7] Edbert and S. P. Tamba, "Penerapan data mining algoritma apriori dalam menentukan stok bahan baku pada restoran nelayan menggunakan metode association rule," Jurnal Sistem Informasi dan Ilmu Komputer Prima (JUSIKOM PRIMA), vol. 5, no. 2, 2022.
[8] F. Satria and E. Poerwandono, "Implementasi yolov8 untuk deteksi dan klasifikasi tingkat kematangan buah mangga berdasarkan citra digital," Storage Jurnal Ilmiah Teknik dan Ilmu Komputer, vol. 4, no. 4, 2025.
[9] F. Yoga, B. Mulyawan, and M. D. Lauro, "Sistem penentuan menu makanan berdasarkan bahan makanan pilihan berbasis web dan android," Jurnal Ilmu Komputer dan Sistem Informasi, vol. 9, no. 2, 2021.
[10] H. Hartatik, S. Nurhayati, and W. Widayani, "Sistem rekomendasi wisata kuliner di yogyakarta dengan metode item-based collaborative filtering," Journal Automation Computer Information System, vol. 1, no. 2, 2021.
[11] H. R. Santoso and S. Yulina, "Rancang bangun aplikasi food waste management pada usaha food and beverages," Jurnal Komputer Terapan, vol. 9, no. 1, 2023.
[12] H. Tanujaya and Lina, "Pengenalan objek menggunakan metode single shot multibox detector pada bahan sembako," Jurnal Ilmu Komputer dan Sistem Informasi, vol. 11, no. 1, 2023.
[13] H. Anthony and A. Yulianto, "Pengembangan sistem pengenalan plat nomor indonesia menggunakan yolov8 dan easyocr," Jurnal Ilmiah Komputasi, vol. 23, no. 4, 2024.
[14] I. P. A. Tipan and A. Yumang, "Integrating yolov8 and cosine similarity for food recipe-specific ingredient collection and recommendation," International Conference on Computing Communication and Networking Technologies, 2024.
[15] J. Anggara, E. Ryansyah, and B. A. Dermawan, "Implementasi object detection dalam klasifikasi sampah untuk meningkatkan efisiensi pengelolaan limbah," JATI (Jurnal Mahasiswa Teknik Informatika), vol. 9, no. 3, 2025.
[16] K. S. Kartini, I. N. T. A. Putra, K. J. Atmaja, and N. Widiani, "Sistem informasi penjualan pada salad yoo," Jurnal Krisnadana, vol. 1, no. 2, 2022.
[17] L. Satya, R. Dwi, M. W. Sarjono, M. Cahyanti, and E. R. Swedia, "Sistem pendeteksi plat nomor polisi kendaraan dengan arsitektur yolov8," Sebatik, vol. 27, no. 2, 2023.
[18] L. Rahma, H. Syaputra, A. Mirza, and S. Purnamasari, "Objek deteksi makanan khas palembang menggunakan algoritma yolo (you only look once)," Jurnal Nasional Ilmu Komputer, vol. 2, no. 3, 2021.
[19] M. Nur, I. Muhlashin, and A. Stefanie, "Klasifikasi penyakit mata berdasarkan citra fundus menggunakan yolo v8," JATI (Jurnal Mahasiswa Teknik Informatika), vol. 7, no. 2, 2023.
[20] M. Rahmawita and A. Wiratama, "Aplikasi pemesanan menu makanan restoran dan cafe berbasis android," Jurnal Ilmiah Rekayasa dan Manajemen Sistem Informasi, vol. 7, no. 1, 2021.
[21] M. Alfin, M. B. Akbar, A. R. Manik, J. Purba, and A. Perdana, "Pengembangan aplikasi rekomendasi resep makanan berdasarkan bahan menggunakan api," JATI (Jurnal Mahasiswa Teknik Informatika), vol. 9, no. 6, 2025.
[22] M. F. Golfantara, "Penggunaan algoritma yolo v8 untuk identifikasi rempah-rempah," Jurnal Informatika dan Teknik Elektro Terapan, vol. 12, no. 3s1, 2024.
[23] M. Naufal, S. Bahri, I. Putu, Y. D. Jaya, B. Dirgantoro, U. Ahmad, and R. Septiawan, "Implementasi sistem rekomendasi makanan pada aplikasi eataja menggunakan algoritma collaborative filtering," MULTINETICS, vol. 7, no. 2, 2022.
[24] N. Purnomo, W. Gata, M. R. Kusuma, R. M. Dinata, and M. B. Husna, "Implementasi you only look once v8 dalam deteksi makanan warung tegal untuk sistem perhitungan harga otomatis," JATI (Jurnal Mahasiswa Teknik Informatika), vol. 9, no. 2, 2025.
[25] N. E. Budiyanta, M. Mulyadi, and H. Tanudjaja, "Sistem deteksi kemurnian beras berbasis computer vision dengan pendekatan algoritma YOLO," Jurnal Informatika: Jurnal Pengembangan IT, vol. 6, no. 1, 2021.
[26] N. R. Muntiari, I. Chairun, A. Sriekaningih, A. Yogi, A. Prasetyo, M. Yusril, and A. Info, "Penerapan algoritma YOLOv8 dalam indentifikasi wajah secara real-time menggunakan cctv untuk presensi siswa," Decode: Jurnal Pendidikan Teknologi Informasi, vol. 4, no. 3, 2024.
[27] R. Richo, "Analisis keandalan yolov8m untuk deteksi varian produk kemasan kotak pada sistem manajemen kesediaan stock," Informatics and Digital Expert (INDEX), vol. 6, no. 2, 2024.
[28] R. A. Brahmantyo, J. Wibowo, and V. Nurcahyawati, "Manajemen persediaan menggunakan metode safety stock dan reorder point," Jurnal Sains dan Informatika, vol. 9, no. 1, 2023.
[29] R. Setiawan and W. Nugroho, Rancang bangun aplikasi pemesanan makanan berbasis android," Journal of Information Systems and Informatics, vol. 3, no. 2, 2021.
[30] Y. Yanto, F. Aziz, and I. Irmawati, "YOLO-v8 peningkatan algoritma untuk deteksi pemakaian masker wajah," JATI (Jurnal Mahasiswa Teknik Informatika), vol. 7, no. 3, 2023.
Published
Issue
Section
License
Copyright (c) 2026 JEEMECS (Journal of Electrical Engineering, Mechatronic and Computer Science)

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Our ethic statements are based on COPE’s Best Practice Guidelines for Journal Editors.
Publication decisions
The editor is responsible for deciding which of the articles submitted to the journal should be published.
The editor may be guided by the policies of the journal's editorial board and constrained by such legal requirements as shall then be in force regarding libel, copyright infringement and plagiarism. The editor may confer with other editors or reviewers in making this decision.
Fair play
An editor at any time evaluate manuscripts for their intellectual content without regard to race, gender, sexual orientation, religious belief, ethnic origin, citizenship, or political philosophy of the authors.
Confidentiality
The editor and any editorial staff must not disclose any information about a submitted manuscript to anyone other than the corresponding author, reviewers, potential reviewers, other editorial advisers, and the publisher, as appropriate.
Disclosure and conflicts of interest
Unpublished materials disclosed in a submitted manuscript must not be used in an editor's own research without the express written consent of the author.
Duties of Reviewers
Contribution to Editorial Decisions
Peer review assists the editor in making editorial decisions and through the editorial communications with the author may also assist the author in improving the paper.
Promptness
Any selected referee who feels unqualified to review the research reported in a manuscript or knows that its prompt review will be impossible should notify the editor and excuse himself from the review process.
Confidentiality
Any manuscripts received for review must be treated as confidential documents. They must not be shown to or discussed with others except as authorized by the editor.
Standards of Objectivity
Reviews should be conducted objectively. Personal criticism of the author is inappropriate. Referees should express their views clearly with supporting arguments.
Acknowledgement of Sources
Reviewers should identify relevant published work that has not been cited by the authors. Any statement that an observation, derivation, or argument had been previously reported should be accompanied by the relevant citation. A reviewer should also call to the editor's attention any substantial similarity or overlap between the manuscript under consideration and any other published paper of which they have personal knowledge.
Disclosure and Conflict of Interest
Privileged information or ideas obtained through peer review must be kept confidential and not used for personal advantage. Reviewers should not consider manuscripts in which they have conflicts of interest resulting from competitive, collaborative, or other relationships or connections with any of the authors, companies, or institutions connected to the papers.
Duties of Authors
Reporting standards
Authors of reports of original research should present an accurate account of the work performed as well as an objective discussion of its significance. Underlying data should be represented accurately in the paper. A paper should contain sufficient detail and references to permit others to replicate the work. Fraudulent or knowingly inaccurate statements constitute unethical behavior and are unacceptable.
Originality and Plagiarism
The authors should ensure that they have written entirely original works, and if the authors have used the work and/or words of others that this has been appropriately cited or quoted.
Multiple, Redundant or Concurrent Publication
An author should not in general publish manuscripts describing essentially the same research in more than one journal or primary publication. Submitting the same manuscript to more than one journal concurrently constitutes unethical publishing behaviour and is unacceptable.
Acknowledgement of Sources
Proper acknowledgment of the work of others must always be given. Authors should cite publications that have been influential in determining the nature of the reported work.
Authorship of the Paper
Authorship should be limited to those who have made a significant contribution to the conception, design, execution, or interpretation of the reported study. All those who have made significant contributions should be listed as co-authors. Where there are others who have participated in certain substantive aspects of the research project, they should be acknowledged or listed as contributors.
The corresponding author should ensure that all appropriate co-authors and no inappropriate co-authors are included on the paper, and that all co-authors have seen and approved the final version of the paper and have agreed to its submission for publication.
Disclosure and Conflicts of Interest
All authors should disclose in their manuscript any financial or other substantive conflict of interest that might be construed to influence the results or interpretation of their manuscript. All sources of financial support for the project should be disclosed.
Fundamental errors in published works
When an author discovers a significant error or inaccuracy in his/her own published work, it is the author’s obligation to promptly notify the journal editor or publisher and cooperate with the editor to retract or correct the paper.








