journal article·2022-11-02Open access

Automated Detection and Classification of Returnable Packaging Based on YOLOV4 Algorithm

Matko Glučina, Sandi Baressi Šegota, Nikola Anđelić, Zlatan Car

Applied Sciences· Volume 12· Issue 21

Abstract

This article describes the implementation of the You Only Look Once (YOLO) detection algorithm for the detection of returnable packaging. The method of creating an original dataset and creating an augmented dataset is shown. The model was evaluated using mean Average Precision (mAP), F1score, Precision, Recall, Average Intersection over Union (Average IoU) score, and Average Loss. The training was conducted in four cycles, i.e., 6000, 8000, 10,000, and 20,000 max batches with three different activation functions Mish, ReLU, and Linear (used in 6000 and 8000 max batches). The influence train/test dataset ratio was also investigated. The conducted investigation showed that variation of hyperparameters (activation function and max batch sizes) have a significant influence on detection and classification accuracy with the best results obtained in the case of YOLO version 4 (YOLOV4) with the Mish activation function and max batch size of 20,000 that achieved the highest mAP of 99.96% and lowest average error of 0.3643.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Industrial Vision Systems and Defect Detection · Currency Recognition and Detection · Vehicle License Plate Recognition

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

University of Rijeka, Trg Braće Mažuranića 10, 51000 Rijeka, Croatia

Faculty of Engineering, University of Rijeka, Vukovarska 58, 51000 Rijeka, Croatia

References (68)

Show source-provided references
1. Waste and waste management10.1146/annurev-anthro-102214-014146 ↗
2. Guan, L. (2017). Multimedia Image and Video Processing, CRC Press.10.1201/b11716 ↗
3. Alsanabani, A.A., Ahmed, M.A., and Al Smadi, A.A. (2020, January 25–27). Vehicle counting using detecting-tracking combinations: A comparative analysis. Proceedings of the 4th International Conference on Video and Image Processing, Shanghai, China.10.1145/3447450.3447458 ↗
4. Wu, J., Osuntogun, A., Choudhury, T., Philipose, M., and Rehg, J.M. (2007, January 14–21). A scalable approach to activity recognition based on object use. Proceedings of the 2007 IEEE 11th International Conference on Computer Vision, Rio De Janeiro, Brazil.10.1109/ICCV.2007.4408865 ↗
5. Face detection techniques: A review10.1007/s10462-018-9650-2 ↗
6. A review and comparative study on probabilistic object detection in autonomous driving10.1109/TITS.2021.3096854 ↗
7. Aydin, I., and Othman, N.A. (2017, January 16–17). A new IoT combined face detection of people by using computer vision for security application. Proceedings of the 2017 International Artificial Intelligence and Data Processing Symposium (IDAP), Malatya, Turkey.10.1109/IDAP.2017.8090171 ↗
8. Vehicle detection in intelligent transport system under a hazy environment: A survey10.1049/iet-ipr.2018.5351 ↗
9. Alsubaei, F.S., Al-Wesabi, F.N., and Hilal, A.M. (2022). Deep Learning-Based Small Object Detection and Classification Model for Garbage Waste Management in Smart Cities and IoT Environment. Appl. Sci., 12.10.3390/app12052281 ↗
10. Recycling waste classification using optimized convolutional neural network10.1016/j.resconrec.2020.105132 ↗
11. Classification of trash for recyclability status
12. Intelligent waste classification system using deep learning convolutional neural network10.1016/j.promfg.2019.05.086 ↗
13. Bobulski, J., and Kubanek, M. (2019). Waste classification system using image processing and convolutional neural networks. International Work-Conference on Artificial Neural Networks, Springer.10.1007/978-3-030-20518-8_30 ↗
14. Shi, C., Tan, C., Wang, T., and Wang, L. (2021). A waste classification method based on a multilayer hybrid convolution neural network. Appl. Sci., 11.10.3390/app11188572 ↗
15. Meng, S., and Chu, W.T. (2020, January 7–15). A study of garbage classification with convolutional neural networks. Proceedings of the 2020 Indo–Taiwan 2nd International Conference on Computing, Analytics and Networks (Indo-Taiwan ICAN), Rajpura, India.10.1109/Indo-TaiwanICAN48429.2020.9181311 ↗
16. Cchangcs (2022, October 11). Garbage Classification. Available online: https://www.kaggle.com/datasets/asdasdasasdas/garbage-classification.
17. Intelligent solid waste classification using deep convolutional neural networks10.1007/s13762-021-03179-4 ↗
18. Aishwarya, A., Wadhwa, P., Owais, O., and Vashisht, V. (2021, January 28–29). A waste management technique to detect and separate non-biodegradable waste using machine learning and YOLO algorithm. Proceedings of the 2021 11th International Conference on Cloud Computing, Data Science & Engineering (Confluence), Noida, India.10.1109/Confluence51648.2021.9377163 ↗
19. Wahyutama, A.B., and Hwang, M. (2022). YOLO-Based Object Detection for Separate Collection of Recyclables and Capacity Monitoring of Trash Bins. Electronics, 11.10.3390/electronics11091323 ↗
20. Lin, W. (2021, January 15–18). YOLO-Green: A Real-Time Classification and Object Detection Model Optimized for Waste Management. Proceedings of the 2021 IEEE International Conference on Big Data (Big Data), Orlando, FL, USA.10.1109/BigData52589.2021.9671821 ↗
21. Ye, A., Pang, B., Jin, Y., and Cui, J. (2020, January 24–26). A YOLO-based neural network with VAE for intelligent garbage detection and classification. Proceedings of the 2020 3rd International Conference on Algorithms, Computing and Artificial Intelligence, Sanya, China.10.1145/3446132.3446400 ↗
22. Kim, J.A., Sung, J.Y., and Park, S.H. (2020, January 1–3). Comparison of Faster-RCNN, YOLO, and SSD for real-time vehicle type recognition. Proceedings of the 2020 IEEE International Conference on Consumer Electronics-Asia (ICCE-Asia), Seoul, Korea.10.1109/ICCE-Asia49877.2020.9277040 ↗
23. Kulshreshtha, M., Chandra, S.S., Randhawa, P., Tsaramirsis, G., Khadidos, A., and Khadidos, A.O. (2021). OATCR: Outdoor autonomous trash-collecting robot design using YOLOv4-tiny. Electronics, 10.10.3390/electronics10182292 ↗
24. A modified YOLOv4 detection method for a vision-based underwater garbage cleaning robot10.1631/FITEE.2100473 ↗
25. (2021, November 24). Drinking Waste Classification. Available online: https://www.kaggle.com/arkadiyhacks/drinking-waste-classification.
26. A multi-dataset data-collection strategy produces better diffraction data10.1107/S0108767311037469 ↗
27. Improving data quality: Actors, incentives, and capabilities10.1093/pan/mpm007 ↗
28. Han, K., Lee, S., Lee, W., Lee, J., and Lee, D.h. (2021). An Evaluation Dataset and Strategy for Building Robust Multi-turn Response Selection Model. arXiv.10.18653/v1/2021.emnlp-main.180 ↗
29. Howse, J. (2013). OpenCV Computer Vision with Python, Packt Publishing.
30. Bui, H.M., Lech, M., Cheng, E., Neville, K., and Burnett, I.S. (2016, January 27–29). Using grayscale images for object recognition with convolutional-recursive neural network. Proceedings of the 2016 IEEE Sixth International Conference on Communications and Electronics (ICCE), Ha-Long, Vietnam.10.1109/CCE.2016.7562656 ↗
31. Grum, E., and Vasseure, B. (2022, October 11). How to Select the Best Dataset for a Task?. Available online: https://pdfhall.com/how-to-select-the-best-dataset-for-a-task_5b6ecd57097c47a9568b4687.html.
32. Soekhoe, D., Van Der Putten, P., and Plaat, A. (2016). On the impact of data set size in transfer learning using deep neural networks. International Symposium on Intelligent Data Analysis, Springer.10.1007/978-3-319-46349-0_5 ↗
33. Using deep neural network with small dataset to predict material defects10.1016/j.matdes.2018.11.060 ↗
34. Lippi, M., Bonucci, N., Carpio, R.F., Contarini, M., Speranza, S., and Gasparri, A. (2021, January 22–25). A yolo-based pest detection system for precision agriculture. Proceedings of the 2021 29th Mediterranean Conference on Control and Automation (MED), Puglia, Italy.10.1109/MED51440.2021.9480344 ↗
35. Perez, L., and Wang, J. (2017). The effectiveness of data augmentation in image classification using deep learning. arXiv.
36. Taylor, L., and Nitschke, G. (2018, January 18–21). Improving deep learning with generic data augmentation. Proceedings of the 2018 IEEE Symposium Series on Computational Intelligence (SSCI), Bangalore, India.10.1109/SSCI.2018.8628742 ↗
37. Beyeler, M. (2017). Machine Learning for OpenCV, Packt Publishing Ltd.
38. Imbalanced dataset classification and solutions: A review
39. Picard, S., Chapdelaine, C., Cappi, C., Gardes, L., Jenn, E., Lefèvre, B., and Soumarmon, T. (2020, January 12–15). Ensuring Dataset Quality for Machine Learning Certification. Proceedings of the 2020 IEEE International Symposium on Software Reliability Engineering Workshops (ISSREW), Coimbra, Portugal.10.1109/ISSREW51248.2020.00085 ↗
40. Yadav, S., Ekbal, A., Saha, S., and Bhattacharyya, P. (2016, January 11). Deep learning architecture for patient data de-identification in clinical records. Proceedings of the Clinical Natural Language Processing Workshop (ClinicalNLP), Osaka, Japan.
41. Brownlee, J. (2020). Data Preparation for Machine Learning: Data Cleaning, Feature Selection, and Data Transforms in Python, Machine Learning Mastery.
42. Lin, J.P., and Sun, M.T. (December, January 30). A YOLO-based traffic counting system. Proceedings of the 2018 Conference on Technologies and Applications of Artificial Intelligence (TAAI), Taichung, Taiwan.10.1109/TAAI.2018.00027 ↗
43. Dharneeshkar, J., Aniruthan, S., Karthika, R., and Parameswaran, L. (2020, January 26–28). Deep Learning based Detection of potholes in Indian roads using YOLO. Proceedings of the 2020 International Conference on Inventive Computation Technologies (ICICT), Coimbatore, India.
44. Redmon, J., Divvala, S., Girshick, R., and Farhadi, A. (2016, January 27–30). You only look once: Unified, real-time object detection. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA.10.1109/CVPR.2016.91 ↗
45. Yu, J., and Zhang, W. (2021). Face mask wearing detection algorithm based on improved YOLO-v4. Sensors, 21.10.3390/s21093263 ↗
46. Ma, J., Chen, L., and Gao, Z. (2017). Hardware implementation and optimization of tiny-yolo network. International Forum on Digital TV and Wireless Multimedia Communications, Springer.10.1007/978-981-10-8108-8_21 ↗
47. R-CNN
48. Roh, M.C., and Lee, J.y. (2017, January 8–12). Refining faster-RCNN for accurate object detection. Proceedings of the 2017 Fifteenth IAPR International Conference on Machine Vision Applications (MVA), Nagoya, Japan.10.23919/MVA.2017.7986913 ↗
49. Girshick, R. (2015, January 7–13). Fast r-cnn. Proceedings of the IEEE International Conference on Computer Vision, Santiago, Chile.10.1109/ICCV.2015.169 ↗
50. Chen, S., and Lin, W. (2019, January 11–13). Embedded system real-time vehicle detection based on improved YOLO network. Proceedings of the 2019 IEEE 3rd Advanced Information Management, Communicates, Electronic and Automation Control Conference (IMCEC), Chongqing, China.10.1109/IMCEC46724.2019.8984055 ↗
51. YOLO based human action recognition and localization10.1016/j.procs.2018.07.112 ↗
52. Neubeck, A., and Van Gool, L. (2006, January 20–24). Efficient non-maximum suppression. Proceedings of the 18th International Conference on Pattern Recognition (ICPR’06), Hong Kong, China.10.1109/ICPR.2006.479 ↗
53. Hosang, J., Benenson, R., and Schiele, B. (2017, January 21–26). Learning non-maximum suppression. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Honolulu, HI, USA.10.1109/CVPR.2017.685 ↗
54. Wang, A., Hu, C., Liu, X., Iwahori, Y., and Kang, R. (2016). A modified non-maximum suppression algorithm. Information Science and Electronic Engineering, CRC Press.10.1201/9781315265278-23 ↗
55. Shi, P., Jiang, Q., Shi, C., Xi, J., Tao, G., Zhang, S., Zhang, Z., Liu, B., Gao, X., and Wu, Q. (2021). Oil Well Detection via Large-Scale and High-Resolution Remote Sensing Images Based on Improved YOLO v4. Remote Sens., 13.10.3390/rs13163243 ↗
56. Baressi Šegota, S., Lorencin, I., Smolić, K., Anđelić, N., Markić, D., Mrzljak, V., Štifanić, D., Musulin, J., Španjol, J., and Car, Z. (2021). Semantic Segmentation of Urinary Bladder Cancer Masses from CT Images: A Transfer Learning Approach. Biology, 10.10.3390/biology10111134 ↗
57. Semantic segmentation of chest X-ray images based on the severity of COVID-19 infected patients
58. Wu, T.H., Wang, T.W., and Liu, Y.Q. (2021, January 18–20). Real-time vehicle and distance detection based on improved yolo v5 network. Proceedings of the 2021 3rd World Symposium on Artificial Intelligence (WSAI), Guangzhou, China.10.1109/WSAI51899.2021.9486316 ↗
59. Yang, W., and Jiachun, Z. (2018, January 23–27). Real-time face detection based on YOLO. Proceedings of the 2018 1st IEEE International Conference on Knowledge Innovation and Invention (ICKII), Jeju Island, Korea.10.1109/ICKII.2018.8569109 ↗
60. Seo, J., Sa, J., Choi, Y., Chung, Y., Park, D., and Kim, H. (2019, January 17–20). A yolo-based separation of touching-pigs for smart pig farm applications. Proceedings of the 2019 21st International Conference on Advanced Communication Technology (ICACT), PyeongChang, Korea.10.23919/ICACT.2019.8701968 ↗
61. A robust multiclass 3D object recognition based on modern YOLO deep learning algorithms10.1002/cpe.6517 ↗
62. Zhang, P., and Su, W. (2012, January 29–31). Statistical inference on recall, precision and average precision under random selection. Proceedings of the 2012 9th International Conference on Fuzzy Systems and Knowledge Discovery, Chongqing, China.10.1109/FSKD.2012.6234049 ↗
63. The advantages of the Matthews correlation coefficient (MCC) over F1 score and accuracy in binary classification evaluation10.1186/s12864-019-6413-7 ↗
64. Charuchinda, P., and Kasetkasem, T. (2019). Land Cover Mapping Using the Class Activation Map. [Ph.D. Thesis, Kasetsart University].
65. A self-organizing neural network for supervised learning, recognition, and prediction10.1109/35.156802 ↗
66. Influence of data splitting on performance of machine learning models in prediction of shear strength of soil10.1155/2021/4832864 ↗
67. Faster-YOLO: An accurate and faster object detection method10.1016/j.dsp.2020.102756 ↗
68. ERF-YOLO: A YOLO algorithm compatible with fewer parameters and higher accuracy10.1016/j.imavis.2021.104317 ↗