Research Article

Garbage image recognition and classification based on CNN

Yuhui Chen1, Yan He2, Jinghan Lin1,*, Siyu Sun3
1. Haide bilingual school Dongguan,523661
2. Chongqing Jiangbei Bachuan Quantum Middle School,400000
3. Guangdong Country Garden School,528312

* Corresponding author: [email protected]

Abstract

The trend in today's society is to pursue a higher quality of life. Trash classificationn obviously needs to be taken into account. In reality, however, many people have problems with sorting, making them so inefficient that the time and effort spent on it outweighs the rewards. A model program based on a Convolutional Neural Network (CNN) machine learning approach is employed to perform the job of identifying and classifying to solve the problem. By dividing the data set into different uses and performing processes such as mirroring images, the recognition capability of the model is enhanced, and its accuracy can be verified. The number of layers is set at a reasonable level and various parameters are initialized. The learning rate set by the project adjusts itself to avoid overshooting and too low efficiency, but it also leads to fluctuations in cost during convergence. After a careful comparison of the pros and cons, the ReLu function was chosen as the activation function to ensure proper operation of the program and to speed up training and reduce computation. The experimental test results prove that the model outperforms its predecessors. The convolution of CNN compresses the data well, and the number of iterations ensures the accuracy of the model prediction. It could go even further, if more samples and more powerful hardware could be used to solve the problems of over-fitting and insufficient computing power.

Keywords: Trash Classification; CNN; Machine Learning.
Published: May 31, 2023
DOI: 10.54254/2755-2721/4/20230507
Volume: ACE Vol.4
pp. 416-421
Download PDF

References

  1. Hangzhou Daily, 2015, retrieved from https://huanbao.bjx.com.cn/news/20150716/642650. Shtml.
  2. Gyawali D et al. 2020. Comparative analysis of multiple deep CNN models for waste classification. arXiv preprint arXiv:2004.02168.
  3. Kaggle. 2018. Garbage classification. https://www.kaggle.com/datasets/asdasdasasdas/garbage-classification
  4. Albawi S 2017. Understanding of a convolutional neural network. In 2017 international conference on engineering and technology (ICET) (pp. 1-6). Ieee.
  5. Kingma D P 2014. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980.
  6. Sharma S et al. 2017. Activation functions in neural networks. towards data science, 6(12), 310-316.
  7. Analyticsindiamag 2021. Guide to Different Padding Methods for CNN Models, https://analyticsindiamag.com/guide-to-different-padding-methods-for-cnn-models
  8. Cnblog. Studying for pooling layer. www.cnblogs.com/MrSaver/p/10356695.html
  9. Jeczmionek E. 2021. Flattening Layer Pruning in Convolutional Neural Networks. Symmetry, 13(7), 1147.
  10. Analyticsindiamag 2021. Guide to Different Padding Methods for CNN Models, https://analyticsindiamag.com/guide-to-different-padding-methods-for-cnn-models
  11. Brosch T 2016 et al. Deep 3-D convolutional encoder networks with shortcuts for multiscale feature integration applied to multiple sclerosis lesion segmentation. IEEE Trans Med Imaging 35(5):1229–1239
  12. Yang M 2016 Classification of trash for recyclability status. CS229 project report, 2016(1), 3.