End-to-End Nutritional Label Analysis of Packaged Beverages Using YOLOv8, Optical Character Recognition, and Support Vector Machine for Health Risk Assessment

Authors

  • Firji Achmad Fahresi Department of Computer Engineering, Faculty of Engineering, Universitas Negeri Makassar, Indonesia
  • Muh Faqih S Musgamy Department of Computer Engineering, Faculty of Engineering, Universitas Negeri Makassar, Indonesia
  • Hanum Zalsabilah Idham Department of Computer Engineering, Faculty of Engineering, Universitas Negeri Makassar, Indonesia
  • Andi Baso Kaswar Department of Computer Engineering, Faculty of Engineering, Universitas Negeri Makassar, Indonesia
  • Muh Fajar Bakri Department of Computer Engineering, Faculty of Engineering, Universitas Negeri Makassar, Indonesia
  • Dyah Darma Andayani Department of Computer Engineering, Faculty of Engineering, Universitas Negeri Makassar, Indonesia
  • Muliadi Department of Computer Engineering, Faculty of Engineering, Universitas Negeri Makassar, Indonesia

DOI:

https://doi.org/10.52436/1.jutif.2026.7.5.5793

Keywords:

Disease Risk Mapping, Nutritional Label Analysis, Optical Character Recognition, Packaged Beverages, Support Vector Machine, YOLOv8

Abstract

The increasing consumption of packaged beverages high in sugar, sodium, and fat has raised concerns about their contribution to non-communicable diseases. Although nutritional information is available on product packaging, consumers often face difficulties in locating, reading, and interpreting it accurately, especially under varying lighting conditions and on complex package surfaces. This study aims to develop and evaluate an integrated nutritional label analysis system for packaged beverages by combining object detection, OCR-based text extraction, structured feature construction, health status classification, and potential disease risk mapping. The proposed system uses YOLOv8 for label detection, applies preprocessing and postprocessing to improve Tesseract v5 OCR results, constructs structured numerical features, balances training data using SMOTE, normalizes features with the z-score method, and classifies products into safe and unsafe categories using an SVM model. The dataset consisted of 2,414 augmented images derived from 1,207 selected nutritional label images. The results show that YOLOv8 achieved an mAP@0.5 of 0.969 for nutritional label detection. In the OCR stage, preprocessing and postprocessing reduced recognition errors across different image conditions, with WER and CER reaching zero in the ideal- and low-light evaluation samples. The optimized SVM-RBF model achieved a test accuracy of 0.9959 in classifying safe and unsafe products. These findings indicate that the proposed system provides an interpretable computational framework that contributes to computer vision and health informatics by transforming visual nutritional labels into structured health-related information to support nutritional literacy and healthier consumption decisions.

Downloads

Download data is not yet available.

References

I. Sakinah and I. N. Muhdar, “Konsumsi Minuman dan Makanan Kemasan serta Aktivitas Fisik Dengan Kejadian Gizi Lebih pada Remaja Di Jakarta,” Nutr. Diaita, vol. 14, no. 01, pp. 8–14, 2022, doi: 10.47007/nut.v14i01.4430.

N. Andarwulan, S. Madanijah, D. Briawan, K. Anwar, and A. Bararah, “Food Consumption Pattern and the Intake of Sugar, Salt, and Fat in the South Jakarta City-Indonesia,” Nutrients, vol. 13, no. 4, pp. 1–19, 2021, doi: 10.3390/nu13041289.

E. Shabrina, D. Briawan, I. Ekayanti, and W. Riyadina, “Changes in sugar, salt, and fat intake among obese adults : cohort study,” Indones. J. Nutr. Diet., vol. 10, no. 3, pp. 109–118, 2022, doi: http://dx.org/10.21927/ijnd.2022.10(3).109-118.

S. L. Sari, D. M. Utari, and T. Sudiarti, “Konsumsi minuman berpemanis kemasan pada remaja Sugar-sweetened beverages consumptions among adolescents,” Ilmu Gizi Indones., vol. 05, no. 01, pp. 91–100, 2021, doi: 10.35842/ilgi.v5i1.253.

H. Yuningrum, H. Trisnowati, and N. N. Rosdewi, “Faktor Risiko Penyakit Tidak Menular ( PTM ) pada Remaja : Studi Kasus pada SMA Negeri dan Swasta di Kota Yogyakarta,” J. Formil (Forum Ilmiah) Kesmas Respati, vol. 6, no. 1, pp. 41–49, 2021, doi: 10.35842/formil.v6i1.343.

N. Chayati, Marwanti, D. P. Sejahtera, M. B. Ats-tsaqib, and R. P. Munarji, “Identifikasi Nilai Indeks Massa Tubuh, Lingkar Perut, dan Konsumsi Buah Sayur sebagai Faktor Risiko Penyakit Tidak Menular,” Media Karya Kesehat., vol. 6, no. 1, pp. 130–141, 2023, doi: 10.24198/mkk.v6i1.39292.

W. and W. FAO, IFAD, UNICEF, The State of Food Security and Nutrition in the World 2024 – Financing to end hunger, food insecurity and malnutrition in all its forms. Rome, 2024. doi: 10.4060/cd1254en.

F. Diba, “Ultra-processed foods, Innovation in the modern food industry,” Ibnu Sina J. Kedokt. dan Kesehatan-Fakultas Kedokt. Univ. Islam Sumatera Utara, vol. 24, no. 1, pp. 191–201, 2025, doi: 10.30743/ibnusina.v24i1.798.

L. Dyah, A. Oktafiani, N. Fitri, W. Astuti, and F. W. Ningtyias, “Consumption patterns of Sugar Sweetened Beverages ( SSB ) and its relationship with the risk of excess sugar intake among adolescents pola konsumsi Minuman Berpemanis Dalam Kemasan ( MBDK ) dan kaitannya dengan risiko asupan gula berlebih pada remaja Abst,” Aceh Nutr. J., vol. 10, no. 3, pp. 584–593, 2025, doi: 10.30867/action.v10i3.2287.

A. Widarjono, R. Afin, G. K. Id, M. Z. Firdaus, and O. Herlinda, “Taxing sugar sweetened beverages in Indonesia : Projections of demand change and fiscal revenue,” PLoS One, vol. 18, pp. 1–11, 2023, doi: 10.1371/journal.pone.0293913.

M. of H. of the R. of Indonesia, “The dangers of excessive sugar consumption: Impact and how to prevent it,” 2024. Accessed: Mar. 24, 2025. [Online]. Available: https://ayosehat.kemkes.go.id/bahaya-konsumsi-gula-berlebihan

H. D. P. Agency, “Key Outcomes of the 2023 IHS,” 2023. Accessed: Mar. 24, 2025. [Online]. Available: https://www.badankebijakan.kemkes.go.id/daftar-frequently-asked-question-seputar-hasil-utama-ski-2023/hasil-utama-ski-2023/

L. Gong et al., “A novel unified deep neural networks methodology for use by date recognition in retail food package image,” Signal, Image Video Process., vol. 15, no. 3, pp. 449–457, 2021, doi: 10.1007/s11760-020-01764-7.

A. C. Seker and S. C. Ahn, “A generalized framework for recognition of expiration dates on product packages using fully convolutional networks,” Expert Syst. Appl., vol. 203, p. 117310, 2022, doi: 10.1016/j.eswa.2022.117310.

J. Zheng, J. Li, Z. Ding, L. Kong, and Q. Chen, “Recognition of expiry data on food packages based on improved DBNet,” Conn. Sci., vol. 35, no. 1, pp. 1–16, 2023, doi: 10.1080/09540091.2023.2202363.

Q. Thames, A. Karpur, W. Norris, F. Xia, L. Panait, and T. Weyand, “Nutrition5k: Towards Automatic Nutritional Understanding of Generic Food,” Conf. Comput. Vis. Pattern Recognit., pp. 8899–8907, 2021, doi: 10.1109/CVPR46437.2021.00879.

M. Ahmed, A. Schermel, J. Lee, M. Weippert, B. Franco-arellano, and M. L. Abbé, “Development of the Food Label Information Program : A Comprehensive Canadian Branded Food Composition Database,” Front. Nutr., vol. 8, no. 825050, pp. 1–11, 2022, doi: 10.3389/fnut.2021.825050.

A. Chaitanya, J. Shetty, and P. Chiplunkar, “Food Image Classification and Data Extraction Using Convolutional Food Image Classification and Data Extraction Using Convolutional Neural Network and Web Crawlers Neural Network and a , Web Crawlers Chaitanya,” Procedia Comput. Sci., vol. 218, no. 6, pp. 143–152, 2023, doi: 10.1016/j.procs.2022.12.410.

J. Park, Y. Cho, and M. Park, “Consumer Usability Test of Mobile Food Safety Inquiry Platform Based on Image Recognition,” sustainability, vol. 16, no. 21, pp. 1–21, 2024, doi: 10.3390/su16219538.

M. Han and J. Chen, “NutrifyAI : An AI-Powered System for Real-Time Food Detection , Nutritional Analysis , and Personalized Meal Recommendations,” ArXiv, vol. 2408, no. 10532, pp. 4–7, 2024, doi: 10.48550/arXiv.2408.10532.

S. Guru, K. D. Bamane, A. P. Chandan, C. A. Katre, and D. Vyavahare, “Implementation of Health Impact Assessment of Packaged Foods through Nutritional Label Recognition using OCR,” Front. Heal. Informatics, vol. 13, no. 3, pp. 4783–4793, 2024.

R. Borade, A. Gupta, A. Kathpalia, T. Jain, and P. Chakurkar, “Machine Learning Model for Optical Character Recognition-Based Food Allergen Detection with Recommendation System for Alternative Food,” Int. J. Intell. Syst. Appl. Eng., vol. 12, no. 21s, pp. 1869–1875, 2024, [Online]. Available: https://ijisae.org/index.php/IJISAE/article/view/5757

S. Tarannum, S. Jalal, and M. N. Huda, “HalalCheck : A Multi-Faceted Approach for Intelligent Halal Packaged Food Recognition and Analysis,” IEEE Access, vol. 12, no. February, pp. 28462–28474, 2024, doi: 10.1109/ACCESS.2024.3367983.

D. Kim, S. K. Id, R. Yoo, J. Choo, and H. Y. Id, “Innovative AI methods for monitoring front- of-package information : A case study on infant foods,” PLoS One, vol. 19, no. 5, pp. 1–14, 2024, doi: 10.1371/journal.pone.0303083.

H. Seitaj and V. Elangovan, “Information extraction from product labels: A machine vision approach,” Int. J. Artif. Intell. Appl., vol. 15, no. 2, pp. 57–76, 2024, doi: 10.5121/ijaia.2024.15204.

S. Bhatlawande, S. Shilaskar, and A. Surana, “A smart scanner system for ingredient categorization and identification of nutritional composition in packaged food items,” J. Integr. Sci. Technol., vol. 13, no. 1, pp. 1–8, 2025, doi: 10.62110/sciencein.jist.2025.v13.1008.

M. Sivakumar and S. Parthasarathy, “Trade-off between training and testing ratio in machine learning for medical image processing,” PeerJ Comput. Sci., vol. 10, no. e2245, pp. 1–17, 2024, doi: 10.7717/peerj-cs.2245.

Y. Wu et al., “YOLOv8-segANDcal : and calculation of soybean radicle features,” Front. Plant Sci., vol. 15, no. 1425100, pp. 1–20, 2024, doi: 10.3389/fpls.2024.1425100.

S. Faizullah, M. S. Ayub, T. Alghamdi, T. S. Ali, M. A. Khan, and E. Nabil, “Revolutionizing Historical Document Digitization : LSTM-Enhanced OCR for Arabic Handwritten Manuscripts,” Int. J. Adv. Comput. Sci. Appl., vol. 15, no. 10, 2024, doi: 10.14569/IJACSA.2024.01510120.

R. Guido, S. Ferrisi, and D. Lofaro, “An Overview on the Advancements of Support Vector Machine Models in Healthcare Applications : A Review,” information, vol. 15, no. 4, p. 235, 2024, doi: 10.3390/info15040235.

K. Kementerian Kesehatan Republik Indonesia, “Penting, Ini yang Perlu Anda Ketahui Mengenai Konsumsi Gula, Garam dan Lemak,” 2019. [Online]. Available: https://ayosehat.kemkes.go.id/penting-ini-yang-perlu-anda-ketahui-mengenai-konsumsi-gula-garam-dan-lemak

W. World Health Organization, “WHO updates guidelines on fats and carbohydrates,” 2023. [Online]. Available: https://www.who.int/news/item/17-07-2023-who-updates-guidelines-on-fats-and-carbohydrates

T. Wongvorachan and S. He, “A Comparison of Undersampling , Oversampling , and SMOTE Methods for Dealing with Imbalanced Classification in Educational Data Mining,” information, vol. 14, no. 1, p. 54, 2023, doi: 10.3390/info14010054.

M. Risaldi et al., “Real-Time Table Availability Detection in Dynamic Dining Environments Using YOLOv8 and Geometric Overlap Analysis,” Proc. Eng. Technol. Innov., vol. 32, pp. 104–117, 2026, doi: 10.46604/peti.2026.15704.

L. Kang, P. Riba, M. Rusiñol, A. Fornés, and M. Villegas, “Pay attention to what you read : Non-recurrent handwritten text-Line recognition,” Pattern Recognit., vol. 129, p. 108766, 2022, doi: 10.1016/j.patcog.2022.108766.

K. M. Sujon, R. Hassan, K. Choi, and A. Samad, “Accuracy, precision, recall, f1-score, or MCC? empirical evidence from advanced statistics, ML, and XAI for evaluating business predictive models,” J. Big Data, vol. 12, no. 268, 2025, doi: 10.1186/s40537-025-01313-4.

Additional Files

Published

2026-10-10

How to Cite

[1]
F. A. Fahresi, “End-to-End Nutritional Label Analysis of Packaged Beverages Using YOLOv8, Optical Character Recognition, and Support Vector Machine for Health Risk Assessment”, J. Tek. Inform. (JUTIF), vol. 7, no. 5, pp. 4897–4917, Oct. 2026.

Most read articles by the same author(s)

1 2 > >>