Implementation of the DenseNet201 Architecture with Transfer Learning for Web-Based Shallot Quality Classification
DOI:
https://doi.org/10.59934/jaiea.v6i1.3104Keywords:
DenseNet201, Transfer Learning, Image Classification, Shallot Quality, Deep LearningAbstract
Shallot quality is one of the important factors affecting product value and market acceptance. However, the quality assessment process is generally performed manually through visual inspection, making it prone to subjectivity and inconsistency. This study aims to design and implement a web-based shallot quality classification system using the DenseNet201 architecture with the Transfer Learning method and to evaluate the effect of batch size variations on model performance. The dataset consisted of 1,200 shallot images divided into two classes: good quality and poor quality. The research stages included data collection, image preprocessing using Contrast Limited Adaptive Histogram Equalization (CLAHE) and sharpening, dataset splitting, model training using DenseNet201 Transfer Learning, and system implementation using Laravel and Flask frameworks. Experiments were conducted using three batch size configurations: 16, 32, and 64. The training results showed that all configurations achieved excellent performance, with validation accuracy reaching 99.44% at the end of the fine-tuning stage. During testing, the model with a batch size of 32 achieved the best performance, obtaining 100% accuracy, 100% precision, 100% recall, 100% F1-score, and a loss value of 0.0456. Furthermore, the developed system was able to classify shallot images automatically through a web interface with an average inference time of 294 ms per image. The results demonstrate that the combination of DenseNet201 and Transfer Learning is an effective approach for shallot quality classification and has the potential to support faster, more consistent, and objective quality assessment processes
Downloads
References
Alsyatry, H., Saragih, E. C., Rambu, F., & Mbana, L. (2024). Analisis Faktor-Faktor Yang Mempengaruhi Permintaan Bawang Merah Di Kelurahan Matawai Kecamatan Kota Waingapu Analysis Of Factors Influencing The Demand For Shallots In Matawai Village Waingapu City District. 20, 875–884.
Badan Pusat Statistik. (2024). Produksi Tanaman Sayuran Tahun 2023. Jakarta: Badan Pusat Statistik. Diakses dari https://www.bps.go.id/indicator/55/61/1/produksi-tanaman-sayuran.html.
Huang, G., Liu, Z., Van Der Maaten, L., & Weinberger, K. Q. (2017). Densely connected convolutional networks. Proceedings - 30th IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2017, 2017-January, 2261–2269. https://doi.org/10.1109/CVPR.2017.243.
Kamilaris, A., & Prenafeta-Boldú, F. X. (2018). Deep learning in agriculture: A survey. Computers and Electronics in Agriculture, 147(July 2017), 70–90. https://doi.org/10.1016/j.compag.2018.02.016
Lecun, Y., Bengio, Y., & Hinton, G. (2015). Deep learning. Nature, 521(7553), 436–444. https://doi.org/10.1038/nature14539.
Markoulidakis, I., Rallis, I., Georgoulas, I., Kopsiaftis, G., Doulamis, A., & Doulamis, N. (2021). Multiclass Confusion Matrix Reduction Method and Its Application on Net Promoter Score Classification Problem. Technologies, 9(4), 81. https://doi.org/10.3390/technologies9040081
Mocsari, E., & Stone, S. S. (2010). Colostral IgA, IgG, and IgM-IgA fractions as fluorescent antibody for the detection of the coronavirus of transmissible gastroenteritis. American Journal of Veterinary Research, 39(9), 1442–1446. https://doi.org/10.2460/ajvr.1978.39.09.1442
Mohanty, S. P., Hughes, D. P., & Salathé, M. (2016). Using deep learning for image-based plant disease detection. Frontiers in Plant Science, 7(September), 1–10. https://doi.org/10.3389/fpls.2016.01419
otta, I. V. C., Vuillerme, N., Pham, H. H., & de Figueiredo, F. A. P. (2025). Machine learning techniques for coffee classification: a comprehensive review of scientific research. Artificial Intelligence Review, 58(1). https://doi.org/10.1007/s10462-024-11004-w
Munir, R. (2024). 21-Convolutional Neutral Network. Departemen Teknik Informatika, STEI ITB. https://informatika.stei.itb.ac.id/~rinaldi.munir/Citra/2023-2024/21-CNN-2023.pdf
Pada, P., Pengkajian, B., Pertanian, T., Kompleks, S. B., Gubernur, P., Barat, S., Abdul, J., & Pattanaendeng, M. (2017). Perbaikan usaha tani bawang merah dataran rendah dengan perbandingan paket teknologi petani dengan paket teknologi introduksi di Kabupaten Majene. Jurnal Agrotan, 3(1), 56–66
Pan, S. J., & Yang, Q. (2010). A survey on transfer learning. IEEE Transactions on Knowledge and Data Engineering, 22(10), 1345–1359. https://doi.org/10.1109/TKDE.2009.191
Pradana, Y. A., Dewi, L. P., Rahmah, M. A., Wijanarko, A., Ishartono, N., & Kusumaningtyas, D. A. (2023). Penyelesaian Aplikasi Persamaan Diophantine dengan Algoritma Euclid. Jurnal Keilmuan Dan Keislaman, 10–18. https://doi.org/10.23917/jkk.v3i1.173
Primananda, M. I., & Akbar, M. (2024). Klasifikasi Bawang Merah Asli dan Palsu Menggunakan Convolutional Neural Network. Remik: Riset Dan E-Jurnal Manajemen Informatika Komputer, 8, 864–870. http://doi.org/10.33395/remik.v8i3.13994.
Ramcharan, A., Baranowski, K., McCloskey, P., Ahmed, B., Legg, J., & Hughes, D. P. (2017). Deep learning for image-based cassava disease detection. Frontiers in Plant Science, 8(October), 1–7. https://doi.org/10.3389/fpls.2017.01852
Shafiq, M., & Gu, Z. (2022). Deep Residual Learning for Image Recognition: A Survey. Applied Sciences (Switzerland), 12(18), 1–43. https://doi.org/10.3390/app12188972
Sofyan, S. N., & Sitorus, Z. (2025). Implementasi data mining untuk clustering produktivitas bawang merah menggunakan metode K-means. Jurnal Jatilima, 7(2), 1–9. https://doi.org/10.54209/jatilima.v7i02.1442
zegedy, C., Vanhoucke, V., Ioffe, S., Shlens, J., & Wojna, Z. (2016). Rethinking the Inception Architecture for Computer Vision. Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition, 2016-December, 2818–2826. https://doi.org/10.1109/CVPR.2016.308
Tajbakhsh, N., Shin, J. Y., Gurudu, S. R., Hurst, R. T., Kendall, C. B., Gotway, M. B., & Liang, J. (2016). Convolutional Neural Networks for Medical Image Analysis: Full Training or Fine Tuning? IEEE Transactions on Medical Imaging, 35(5), 1299–1312. https://doi.org/10.1109/TMI.2016.2535302
Takamitsu, Y., & Orita, Y. (1978). Effect of glomerular change on the electrolyte reabsorption of the renal tubule in glomerulonephritis (author’s transl). Japanese Journal of Nephrology, 20(11), 1221–1227
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Journal of Artificial Intelligence and Engineering Applications (JAIEA)

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.








