The Use of Pre-trained Convolutional Neural Network Models for Seafood Classification

Authors

  • Michael Kuswanto Program Studi Teknik Informatika, Fakultas Teknologi dan Rekayasa Cerdas, Universitas Kristen Maranatha
  • Hendra Bunyamin Program Studi Teknik Informatika, Fakultas Teknologi dan Rekayasa Cerdas, Universitas Kristen Maranatha

DOI:

https://doi.org/10.28932/jste.v2i2.13160

Keywords:

Seafood Allergy, Image Classification, Convolutional Neural Network (CNN), MobileNetV2, EfficientNetV2-S, TensorFlow Lite

Abstract

Seafood allergies such as shrimp, crab, shellfish, and fish are common triggers of allergic reactions that can pose serious health risks. To address the challenge of identifying foods containing allergens, this study developed an image classification system based on Convolutional Neural Networks (CNN) using MobileNetV2 and EfficientNetV2-S architectures. Data was collected through Web scraping and preprocessed via resizing, normalization, and augmentation. The models were trained using pretrained weights with manually tuned hyperparameters, including dropout, regularization, and fine-tuning strategies. Evaluation was conducted using accuracy, precision, recall, and F1-Score. The best-performing model, EfficientNetV2-S, achieved an accuracy of 97,5%, precision 97,59%, recall 97,5%, and F1-score 97,5%, and showed greater stability in avoiding overfitting compared to MobileNetV2. The optimal hyperparameters included a dropout rate of 0.5, L1 and L2 regularization values of 0.01 each, a batch size of 32, and frozen layers. The trained model was converted into TensorFlow Lite format and integrated into the FoodLergic mobile application. Final testing on new images and through the mobile interface demonstrated consistent and accurate predictions. These findings suggest the system is feasible as an initial solution for detecting food allergens through images on mobile devices.

References

Z. Azizah, A. H. Falihah, B. A. B. Santoso, I. Puspitasari and M. N. A. Sahid, "Frekuensi Alergi Makanan Berdasarkan Survei pada Orang Dewasa di Wilayah Yogyakarta dan Jawa," 7 July 2023. [Online]. Available: https://journal.ugm.ac.id/majalahfarmaseutik/article/view/85546/39420.

F. Chollet, Deep learning with Python Second Edition, Manning Publications Co., 2021.

M. Elgendy, Deep learning for Vision Systems, Manning Publications Co., 2021.

H. Asad, V. R. Shrimali and N. Singh, The Computer Vision Workshop, Packt Publishing Ltd., 2020.

J. Brownlee, Machine learning Mastery With Python, Machine learning Mastery, 2019.

V. Lakshmanan, M. Görner and R. Gillard, Practical Machine learning for Computer Vision, O’Reilly Media, Inc., 2021.

A. Tragoudaras, P. Stoikos, K. Fanaras, A. Tziouvaras, G. Floros, G. Dimitriou, K. Kolomvatsos and G. Stamoulis, "Design Space Exploration of a Sparse MobileNetV2 Using High-Level Synthesis and Sparse Matrix Techniques on FPGAs," MDPI, 2022.

M. Tan and Q. V. Le, "EfficientNetV2: Smaller Models and Faster Training," 23 June 2021. [Online]. Available: https://arxiv.org/abs/2104.00298. [Accessed 19 March 2025].

T. Lee, Y. Na, B. G. Kim, S. Lee and Y. Choi, "Identification of Individual Hanwoo Cattle by Muzzle Pattern Images through Deep learning ," MDPI, 2023.

DeepLearning.AI, "Convolutional Neural Networks in TensorFlow," 27 October 2024. [Online]. Available: https://www.coursera.org/programs/bangkit-2024-machine-learning-ftkc9/learn/convolutional-neural-networks-TensorFlow.

DeepLearning.AI, "Device-based Models with TensorFlow Lite," 17 November 2024. [Online]. Available: https://www.coursera.org/programs/bangkit-2024-machine-learning-ftkc9/learn/device-based-models-TensorFlow.

TensorFlow, "TensorFlow API Documentation," 8 November 2024. [Online]. Available: https://www.TensorFlow.org/.

M. Moocarme, A. So and A. Maddalone, The TensorFlow Workshop, Packt Publishing Ltd., 2021.

R. Mitchell, Web scraping with Python, Sebastopol: O’Reilly Media, 2018.

Published

2026-06-30

Issue

Section

Articles