Deep Transfer Learning-Based Classification of Peanut Pods and Seeds using Low-Cost RGB Images

Authors

DOI:

https://doi.org/10.29408/edumatic.v10i3.36777

Keywords:

computer vision, deep transfer learning, peanut quality assessment, rgb imaging, smart agriculture

Abstract

Assessing peanut quality is an important part of post-harvest management because poor quality can affect product value, market competitiveness, and consumer acceptance. Although traditional manual inspection methods are subjective, time-consuming, and heavily reliant on human knowledge and experience, current imaging techniques such as hyperspectral imaging provide useful spectral information but require expensive equipment and complex acquisition processes, which limits their use in real agricultural settings. This study presents a low-cost deep transfer-learning framework based on RGB images to automatically classify peanut pods and seeds. We collected 10,018 RGB images of harvested pods, dried pods, and seeds, including normal, damaged, split, and foreign-object types. We assessed the classification performance of two convolutional architectures, VGG16 and ResNet50, using stratified cross-validation. The results show that ResNet50 outperformed VGG16 at all stages of classification, achieving accuracy, precision, recall, and F1-score values of 98% for harvested pods, 99% for dried pods, and 99% for seeability. The results show that remote recognition can identify peanut surface characteristics from RGB images. The approach suggested here offers a cost-effective basis for developing automated peanut quality inspection systems in smart agriculture.

References

Anhar, A., Wajidi, F., & Nur Insani, C. (2026). Two-Stage Transfer Learning with EfficientNetB0 for Four-Class Banana Ripeness Classification. Edumatic: Jurnal Pendidikan Informatika, 10(2), 300–309. https://doi.org/10.29408/edumatic.v10i2.34588

Barburiceanu, S., Meza, S., Orza, B., Malutan, R., & Terebes, R. (2021). Convolutional neural networks for texture feature extraction. Applications to leaf disease classification in precision agriculture. Ieee Access, 9, 160085-160103. https://doi.org/10.1109/ACCESS.2021.3131002

Chen, S., Zhang, Y., Wang, J., Li, X., & Liu, Y. (2025). Deep learning-based visual inspection for agricultural product quality evaluation: Current advances and future perspectives. Computers and Electronics in Agriculture, 225, 109256.

Dai, G., & Fan, J. (2022). An industrial-grade solution for crop disease image detection tasks. Frontiers in Plant Science, 13, 921057. https://doi.org/10.3389/fpls.2022.921057

de Freitas Floriano, R., Gräbin, K., Rossi, R. C., Ferreira, C. D., & Ziegler, V. (2020). Impact of roasting conditions on the quality and acceptance of the peanut paste. Journal of texture studies, 51(5), 841-848. https://doi.org/10.1111/jtxs.12541

Dhanya, V. G., Subeesh, A., Kushwaha, N. L., Vishwakarma, D. K., Kumar, T. N., Ritika, G., & Singh, A. N. (2022). Deep learning based computer vision approaches for smart agricultural applications. Artificial Intelligence in Agriculture, 6, 211-229. https://doi.org/10.1016/j.aiia.2022.09.007

Elfatimi, E., Eryiğit, R., & Elfatimi, L. (2025). Automated End-to-End Deep Learning Framework for Complex Multiclass Brassica Seed Classification. Seeds, 4(4), 67. https://doi.org/10.3390/seeds4040067

Erukude, S. T., Mascarenhas, J. N., & Shamir, L. (2025). CornViT: A Multi-Stage Convolutional Vision Transformer Framework for Hierarchical Corn Kernel Analysis. Computers, 15(1), 2. https://doi.org/10.3390/computers15010002

Han, Z., & Gao, X. (2019). A novel method for peanut aflatoxin detection based on hyperspectral imaging and deep learning. Computers and Electronics in Agriculture, 165, 104947. https://doi.org/10.1016/j.compag.2019.104888

Hassan, E. (2024). Enhancing coffee bean classification: a comparative analysis of pre-trained deep learning models. Neural Computing and Applications, 36(16), 9023-9052. https://doi.org/10.1007/s00521-024-09623-z

Jiang, C., Miao, K., Hu, Z., Gu, F., & Yi, K. (2025). Image Recognition Technology in Smart Agriculture: A Review of Current Applications Challenges and Future Prospects. Processes, 13(5), 1402. https://doi.org/10.3390/pr13051402

Liu, C.-M., Shen, Y., Mu, F., Long, H., Bilal, A., Xia, Y., & Dai, Q. (2025). Detection of surface defects in soybean seeds based on improved Yolov9. Scientific Reports, 15(1). https://doi.org/10.1038/s41598-025-92429-3

Luo, T., Zhao, J., Gu, Y., Zhang, S., Qiao, X., Tian, W., & Han, Y. (2023). Classification of weed seeds based on visual images and deep learning. Information Processing in Agriculture, 10(1), 40-51. https://doi.org/10.1016/j.inpa.2021.10.002

Martinez, E. E. P., Kudenov, M. W., Dunne, J. C., & Garrity, N. (2025). Enhancing peanut pre‐sizing with PodTracker: A multiple pod tracking algorithm. The Plant Phenome Journal, 8(1). https://doi.org/10.1002/ppj2.70035

Pranta, A. S. U. K., Fardin, H., Hossain, A., Sakib, A. H., Ahmed, Md. R., Haque, R., Reza, A. W., & Dewan, M. A. A. (2025). A Novel MaxViT Model for Accelerated and Precise Soybean Leaf and Seed Disease Identification. Computers, 14(5), 197. https://doi.org/10.3390/computers14050197

Putra, I. G. A. D., Gunadi, I. G. A., & Sunarya, I. M. G. (2026). Benchmarking CNN and YOLO Models for Automated Classification of Fish Freshness. Edumatic: Jurnal Pendidikan Informatika, 10(2), 340–349. https://doi.org/10.29408/edumatic.v10i2.35019

Qu, H. R., & Su, W. H. (2024). Deep learning-based weed–crop recognition for smart agricultural equipment: A review. Agronomy, 14(2), 363.

Ramdhana, A. C., & Pratiwi, N. (2023). Perbandingan Kinerja Model Convolutional Neural Network pada Klasifikasi Kanker Kulit. Edumatic: Jurnal Pendidikan Informatika, 7(2), 197–206. https://doi.org/10.29408/edumatic.v7i2.19823

Shafiq, M., & Gu, Z. (2022). Deep residual learning for image recognition: A survey. Applied sciences, 12(18), 8972. https://doi.org/10.3390/app12188972

Simonyan, K., & Zisserman, A. (2026). Very deep convolutional networks for large-scale image recognition. arXiv. 2014 doi: 10.48550. arXiv preprint arXiv.1409.1556, 1409.

Upadhyay, A., Chandel, N. S., Singh, K. P., Chakraborty, S. K., Nandede, B. M., Kumar, M., ... & Elbeltagi, A. (2025). Deep learning and computer vision in plant disease detection: a comprehensive review of techniques, models, and trends in precision agriculture. Artificial Intelligence Review, 58(3), 92. https://doi.org/10.1007/s10462-024-11100-x

Vera, Y. P., Flores, M. K. C. C., Córdova, S. A. A. A., Macedo, I. E. C. C., Biamonte, P. A. L. L., & Callohuanca, E. A. R. R. (2026). Deep Learning Models for Defect Identification in Oryza sativa Rice Grains: A Comparative Study. Agriengineering, 8(6), 252. https://doi.org/10.3390/agriengineering8060252

Yang, H., Ni, J., Gao, J., Han, Z., & Luan, T. (2021). A novel method for peanut variety identification and classification by Improved VGG16. Scientific Reports, 11(1). https://doi.org/10.1038/s41598-021-95240-y

Yang, L., Wang, C., Yu, J., Xu, N., & Wang, D. (2023). Method of Peanut Pod Quality Detection Based on Improved ResNet. Agriculture, 13(7), 1352. https://doi.org/10.3390/agriculture13071352

Yang, Y., Chen, J., & Chen, L. (2025). A comprehensive insight into peanut storage: Patterns of quality changes, pathways of quality deterioration, and storage strategies. Food Chemistry: X, 102973. https://doi.org/10.1016/j.fochx.2025.102973

Zou, X., Zhao, J., Povey, M., & Holmes, M. (2019). Nondestructive maturity detection of peanut pods using hyperspectral imaging and machine learning methods. Computers and Electronics in Agriculture, 162, 663–670.

Downloads

Published

2026-11-25

How to Cite

Wisni, N. N., Kesiman, M. W. A., & Suputra, P. H. (2026). Deep Transfer Learning-Based Classification of Peanut Pods and Seeds using Low-Cost RGB Images . Edumatic: Jurnal Pendidikan Informatika, 10(3), 510–519. https://doi.org/10.29408/edumatic.v10i3.36777

Similar Articles

<< < 16 17 18 19 20 21 22 23 24 25 > >> 

You may also start an advanced similarity search for this article.