FP16 and INT8 Quantization-Based Optimization of YOLOv8 Using TensorFlow Lite for Edge-Based Tempe Quality Recognition

Authors

  • Isa Mahfudi Electrical Engineering Department, Politeknik Negeri Malang, Indonesia
  • Mila Kusumawardani Electrical Engineering Department, Politeknik Negeri Malang, Indonesia
  • Moechammad Sarosa Electrical Engineering Department, Politeknik Negeri Malang, Indonesia
  • Chandrasena Setiadi Electrical Engineering Department, Politeknik Negeri Malang, Indonesia

DOI:

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

Keywords:

Edge AI, Embedded Vision, Model Quantization, TensorFlow Lite, YOLOv8

Abstract

Tempe is a traditional Indonesian fermented soybean product whose quality is highly influenced by environmental conditions. Manual quality assessment remains subjective and inconsistent, creating the need for an automated and objective real-time detection system. This study proposes a quantization-based optimization of the YOLOv8m model using TensorFlow Lite (TFLite) for edge-based tempe quality recognition deployed on a Raspberry Pi 4 device. A dataset of 1,000 images categorized into good and defective tempe was used for model training and evaluation. The methodological novelty of this work lies in the explicit benchmarking of FP16 and INT8 post-training quantization strategies under identical hardware conditions, analyzing their impact on inference time, model size, memory usage, and detection accuracy. Experimental results show that compared to the baseline YOLOv8 FP32 model, the INT8-quantized model reduced inference time from 420 ms/frame to 120 ms/frame (71.4% faster), decreased model size from 85.6 MB to 24.9 MB (70.9% smaller), and reduced RAM usage from 780 MB to 410 MB (47.4% lower), while maintaining high detection performance with mAP@0.5 of 0.935 (1.89% accuracy drop). The FP16 model achieved intermediate efficiency gains with minimal accuracy degradation. The optimized models were integrated into a Flask-based web monitoring system, achieving stable real-time visualization with consistent frame updates under edge deployment constraints. These findings demonstrate that INT8 quantization provides the best efficiency–accuracy trade-off for embedded vision systems. This study contributes to Informatics and Computer Science by providing a systematic edge AI deployment framework for efficient model optimization and benchmarking in resource-constrained environments.

Downloads

Download data is not yet available.

References

O. H. Kristiadi and A. T. Lunggani, “Tempe Kacang Kedelai Sebagai Pangan Fermentasi Unggulan Khas Indonesia: Literature Review,” J. Andaliman-Jurnal Gizi Pangan, Klin. Dan Masy., vol. 2, no. 2, pp. 48–56, 2022.

S. B. Erkan, H. N. Gürler, D. G. Bilgin, M. Germec, and I. Turhan, “Production and characterization of tempehs from different sources of legume by Rhizopus oligosporus,” Elsavier -LWT, vol. 119, no. 112, pp. 1231–1238, 2020.

Y. Sine and E. S. Soetarto, “Kualitas Tempe Gude (Cajanus cajan (L) Millps.) Berdasarkan Karakteristik Morfologi Dan Lama Waktu Fermentasi,” Indig. Biol. J. Pendidik. dan Sains Biol., vol. 3, no. 3, pp. 96–102, 2020.

Q. Zhou, Z. Wang, Y. Zhong, F. Zhong, and L. Wang, “Efficient Optimized YOLOv8 Model with Extended Vision,” Sensors, vol. 24, no. 20, pp. 1–24, 2024.

M. Tan, R. Pang, and Q. V Le, “EfficientDet : Scalable and Efficient Object Detection,” in Conference on Computer Vision and Pattern Recognition (CVPR), 2020, pp. 10778–10787.

Z. Lyu, T. Yu, F. Pan, Y. Zhang, J. Luo, and D. Zhang, A survey of model compression strategies for object detection, vol. 83, no. 16. Springer US, 2024.

Z. Jiang, C. Li, T. Qu, and C. He, “MSQuant : Efficient Post-Training Quantization for Object Detection via Migration Scale Search,” Electronics, vol. 14, no. 504, pp. 1–15, 2025.

R. Cordova-cardenas, D. Amor, and Á. Gutiérrez, “Edge AI in Practice : A Survey and Deployment Framework for Neural Networks on Embedded Systems,” Electronics, vol. 14, no. 22, pp. 1–39, 2025.

J. Zhang, Z. V. Beliaeva, and Y. Huang, “Accuracy–Efficiency Trade-Off: Optimizing YOLOv8 for Structural Crack Detection,” Sensors, vol. 25, no. 13, p. 123, 2025.

J. H. Sim, N. MaMuriyah, and A. Yulianto, “Evaluating YOLOv5 and YOLOv8: Advancements in Human Detection,” J. Inf. Syst. Informatics, vol. 6, no. 4, pp. 2999–3015, 2024.

N. Surantha and N. Sutisna, “Key Considerations for Real-Time Object Recognition on Edge Computing Devices,” Appl. Sci., vol. 15, no. 13, pp. 1–26, 2025.

X. Wang, H. Kong, H. Kong, and H. Kong, “Empowering Edge Intelligence : A Comprehensive Survey on On-Device AI Models,” ACM Comput. Surv., vol. 57, no. 9, pp. 212–218, 2025.

P. Mittal, A comprehensive survey of deep learning ‑ based lightweight object detection models for edge devices, vol. 57, no. 9. Springer Netherlands, 2024.

H. Ahn et al., “Performance Characterization of Using Quantization for DNN Inference on Edge Devices,” in International Conference on Fog and Edge Computing (ICFEC), 2023, pp. 112–128.

C. M. Bhushan, P. Koppuravuri, N. Prasanthi, and F. Gazi, “Deploying TinyML for energy- efficient object detection and communication in low-power edge AI systems,” Sci. Rep., vol. 1, no. 22, pp. 1–16, 2025.

D. Verma, T. Gupta, A. Gupta, and S. Massey, “Road Sign Detection System using YOLOv8 on Raspberry Pi 4,” Int. J. Res. Publ. Rev., vol. 6, no. 4, pp. 9805–9811, 2025.

L. Gao et al., “A Lightweight YOLOv8 Model for Apple Leaf Disease Detection,” Appl. Sci., vol. 14, no. 15, 2024.

H. Lee, N. K. Lee, and S. Lee, “A Method of Deep Learning Model Optimization for Image Classification on Edge Device,” Sensors, vol. 22, no. 19, pp. 1–15, 2022.

T. Sumallika and R. S. Prasad, “A Combined Ensemble Model (CEM) for a Liver Cancer Detection System,” Int. J. Adv. Comput. Sci. Appl., vol. 15, no. 2, pp. 163–172, 2024.

S. L. Nita and M. I. Mihailescu, “A Novel Authentication Scheme Based on Verifiable Credentials Using Digital Identity in the Context of Web 3.0,” Electron., vol. 13, no. 6, 2024.

E. Safrianti, L. O. Sari, F. Wulandari, and F. Feranita, “IoT Applications in Fermented Tempe Production,” Int. J. Electr. Energy Power Syst. Eng., vol. 5, no. 1, pp. 1–5, 2022.

I. Adeleke, N. Nwulu, and O. A. Adebo, “Internet of Things (IoT) in the food fermentation process: A bibliometric review,” J. Food Process Eng., vol. 46, no. 5, pp. 1–13, 2023.

R. Riccosan, S. Yora, N. A. Karim, and E. F. S. Wibisana, “Soybeans tempeh image dataset for tempeh maturity detection,” Data Br., vol. 61, no. 81, p. 111732, 2025.

I. Istiadi, A. Y. Rahman, and A. D. R. Wisnu, “Identification of Tempe Fermentation Maturity Using Principal Component Analysis and K-Nearest Neighbor,” Sinkron, vol. 8, no. 1, pp. 286–294, 2023.

D. Liu, E. Zuo, D. Wang, L. He, L. Dong, and X. Lu, “Deep Learning in Food Image Recognition: A Comprehensive Review,” Appl. Sci., vol. 15, no. 14, pp. 1–18, 2025.

M. Xu, S. Yoon, A. Fuentes, and D. S. Park, “A Comprehensive Survey of Image Augmentation Techniques for Deep Learning,” Pattern Recognit., vol. 137, no. 123, p. 109347, 2023.

Additional Files

Published

2026-10-10

How to Cite

[1]
I. Mahfudi, M. Kusumawardani, M. . Sarosa, and C. . Setiadi, “FP16 and INT8 Quantization-Based Optimization of YOLOv8 Using TensorFlow Lite for Edge-Based Tempe Quality Recognition”, J. Tek. Inform. (JUTIF), vol. 7, no. 5, pp. 4668–4678, Oct. 2026.