Klasifikasi Citra Sampah Botol Plastik Jenis HDPE dan PET Menggunakan Algoritma YOLOv7
DOI:
https://doi.org/10.47065/bulletincsr.v5i4.654Keywords:
Image Classification; Plastic Waste; Object Detection; YOLOv7; HDPE; PET; RecyclingAbstract
The classification of plastic bottle waste, particularly High Density Polyethylene (HDPE) and Polyethylene Terephthalate (PET), remains a challenge in recycling processes due to their similar visual characteristics. Misclassification can lead to a decline in recycled material quality and economic losses in the waste management industry. This research aims to develop an automated image-based classification system to distinguish between HDPE and PET plastic waste using the You Only Look Once version 7 (YOLOv7) object detection algorithm. The dataset consists of plastic bottle images in various physical conditions, annotated with bounding boxes to support model training. The data were split into 70% for training, 20% for validation, and 10% for testing. The best performance was achieved with a batch size of 16 and 100 training epochs, resulting in a precision of 93.9%, recall of 91.6%, and a mean Average Precision (mAP@0.5) of 96.5%. The model demonstrated the ability to accurately classify both types of plastic bottles, even when objects were deformed. These results suggest that the YOLOv7 algorithm is highly capable for implementation in image-based waste classification systems, enhancing sorting efficiency and supporting more sustainable plastic waste management practices.
Downloads
References
M. R. Diani, D. Haniifah, dan F. R. Dianty, “Analisis proyeksi pertumbuhan penduduk dan volume sampah DKI Jakarta terhadap dampak yang ditimbulkan,” J. Waste Sustain. Consum., vol. 1, no. 1, hal. 27–45, 2024, doi: 10.61511/jwsc.v1i1.2024.691.
I. A. Rahmat et al., “Sosialisasi Dan Demonstrasi Pengolahan Sampah Plastik Menjadi Paving Block Di Desa Kamulyan Kecamtan Manonjaya Kabupaten Tasikmalaya,” J. Pengabdi. Masy. Bangsa, vol. 2, no. 10, hal. 4784–4791, 2024, doi: 10.59837/jpmba.v2i10.1865.
M. A. Fayshal, “Current practices of plastic waste management, environmental impacts, and potential alternatives for reducing pollution and improving management,” Heliyon, vol. 10, no. 23, hal. e40838, 2024, doi: 10.1016/j.heliyon.2024.e40838.
M. Hoseini dan T. Bond, “Predicting the global environmental distribution of plastic polymers,” Environ. Pollut., vol. 300, no. February, hal. 118966, 2022, doi: 10.1016/j.envpol.2022.118966.
A. Chamas et al., “Degradation Rates of Plastics in the Environment,” ACS Sustain. Chem. Eng., vol. 8, no. 9, hal. 3494–3511, 2020, doi: 10.1021/acssuschemeng.9b06635.
E. C. Boz Noyan, A. Venkatesh, dan A. Boldizar, “Mechanical and Thermal Properties of Mixed PE Fractions from Post-Consumer Plastic Packaging Waste,” ACS Omega, vol. 7, no. 49, hal. 45181–45188, 2022, doi: 10.1021/acsomega.2c05621.
J. Vaucher, A. Demongeot, V. Michaud, dan Y. Leterrier, “Recycling of Bottle Grade PET: Influence of HDPE Contamination on the Microstructure and Mechanical Performance of 3D Printed Parts,” Polymers (Basel)., vol. 14, no. 24, 2022, doi: 10.3390/polym14245507.
M. Dawoud dan I. Taha, “Effects of Contamination with Selected Polymers on the Mechanical Properties of Post-Industrial Recycled Polypropylene,” Polymers (Basel)., vol. 16, no. 16, 2024, doi: 10.3390/polym16162301.
K. M. Bataineh, “Life-Cycle Assessment of Recycling Postconsumer High-Density Polyethylene and Polyethylene Terephthalate,” Adv. Civ. Eng., vol. 2020, 2020, doi: 10.1155/2020/8905431.
Alfattah Atalarais, Kana Saputra S, Hermawan Syahputra, Said Iskandar Al Idrus, dan Insan Taufik, “Automatic Waste Type Detection Using YOLO for Waste Management Efficiency,” J. Artif. Intell. Eng. Appl., vol. 4, no. 2, hal. 883–892, 2025, doi: 10.59934/jaiea.v4i2.770.
N. L. Kirana, D. Kurnianingtyas, dan Indriati, “A Deep Learning Approach to Plastic Bottle Waste Detection on the Water Surface using YOLOv6 and YOLOv7,” Eng. Technol. Appl. Sci. Res., vol. 14, no. 6, hal. 18623–18630, 2024, doi: 10.48084/etasr.8592.
D. S. Bacea dan F. Oniga, “ECF-YOLOv7-Tiny: Improving Feature Fusion and the Receptive Field for Lightweight Object Detectors,” Proc. - 2025 IEEE Winter Conf. Appl. Comput. Vision, WACV 2025, hal. 1577–1586, 2025, doi: 10.1109/WACV61041.2025.00161.
C. PENG, B. HE, W. XI, dan G. LIN, “Improved YOLOv7 Algorithm for Floating Waste Detection Based on GFPN and Long-Range Attention Mechanism,” Wuhan Univ. J. Nat. Sci., vol. 29, no. 4, hal. 338–348, 2024, doi: 10.1051/wujns/2024294338.
X. Zhang, D. Zhu, dan W. Gan, “YOLOv7t-CEBC Network for Underwater Litter Detection,” J. Mar. Sci. Eng., vol. 12, no. 4, 2024, doi: 10.3390/jmse12040524.
S. Han, C. Miao, dan Y. Li, “Effects of urban polycentric spatial structure on carbon emissions in the Yellow River Basin,” Dili Yanjiu, vol. 42, no. 4, hal. 936–954, 2023, doi: 10.11821/dlyj020220769.
Z. Ge et al., “Lightweight YOLOv7 Algorithm for Multi-Object Recognition on Contrabands in Terahertz Images,” Appl. Sci., vol. 14, no. 4, 2024, doi: 10.3390/app14041398.
M. R. Jabed dan M. Shamsuzzaman, “YOLObin: Non-Decomposable Garbage Identification and Classification Based on YOLOv7,” J. Comput. Commun., vol. 10, no. 10, hal. 104–121, 2022, doi: 10.4236/jcc.2022.1010008.
A. B. Wahyutama dan M. Hwang, “YOLO-Based Object Detection for Separate Collection of Recyclables and Capacity Monitoring of Trash Bins,” Electron., vol. 11, no. 9, 2022, doi: 10.3390/electronics11091323.
R. Giel, M. Fiede?, dan A. D?browska, “Real-Time Automatic Identification of Plastic Waste Streams for Advanced Waste Sorting Systems,” Sustain., vol. 17, no. 5, 2025, doi: 10.3390/su17052157.
C. Lubongo, M. A. A. Bin Daej, dan P. Alexandridis, “Recent Developments in Technology for Sorting Plastic for Recycling: The Emergence of Artificial Intelligence and the Rise of the Robots,” Recycling, vol. 9, no. 4, 2024, doi: 10.3390/recycling9040059.
S. Li, T. Tao, Y. Zhang, M. Li, dan H. Qu, “YOLO v7-CS: A YOLO v7-Based Model for Lightweight Bayberry Target Detection Count,” Agronomy, vol. 13, no. 12, 2023, doi: 10.3390/agronomy13122952.
Y. Wang, H. Wang, dan Z. Xin, “Efficient Detection Model of Steel Strip Surface Defects Based on YOLO-V7,” IEEE Access, vol. 10, no. December, hal. 133936–133944, 2022, doi: 10.1109/ACCESS.2022.3230894.
Y. Wang, C. Yang, Q. Yang, R. Zhong, dan K. Wang, “Diagnosis of cervical lymphoma using a YOLO ? v7 ? based model with transfer learning,” Sci. Rep., hal. 1–10, 2024, doi: 10.1038/s41598-024-61955-x.
J. Wang dan K. Xu, “An Accelerating Method of YOLOv7 Based on Lightweight Network Architecture,” Appl. Sci., vol. 15, no. 5, 2025, doi: 10.3390/app15052528.
R. Banovbi, P. Irsal, F. Utaminingrum, dan K. Ogata, “Swin transformer adaptation into YOLOv7 for road damage detection,” vol. 13, no. 4, hal. 2527–2536, 2024, doi: 10.11591/eei.v13i4.7556.
D. Wu et al., “Detection of Camellia oleifera Fruit in Complex Scenes by Using YOLOv7 and Data Augmentation,” Appl. Sci., vol. 12, no. 22, 2022, doi: 10.3390/app122211318.
B. Chen dan Z. Dang, “Fast PCB Defect Detection Method Based on FasterNet Backbone Network and CBAM Attention Mechanism Integrated With Feature Fusion Module in Improved YOLOv7,” IEEE Access, vol. 11, no. July, hal. 95092–95103, 2023, doi: 10.1109/ACCESS.2023.3311260.
J. Lu, M. M. Yu, dan J. Liu, “Lightweight strip steel defect detection algorithm based on improved YOLOv7,” Sci. Rep., vol. 14, no. 1, hal. 1–15, 2024, doi: 10.1038/s41598-024-64080-x.
Y. He dan L. Wan, “YOLOv7-PD: Incorporating DE-ELAN and NWD-CIoU for Advanced Pedestrian Detection Method,” Inf. Technol. Control, vol. 53, no. 2, hal. 390–407, 2024, doi: 10.5755/j01.itc.53.2.35569.
G. Zhu dan G. Zheng, “Improvement of defect detection for steel based on YOLOv7 algorithm,” J. Phys. Conf. Ser., vol. 2816, no. 1, 2024, doi: 10.1088/1742-6596/2816/1/012043.
O. M. Ma’arif dan T. Kurniasih, “Perancangan Sistem Inventory Berbasis Web Menggunakan Framework Flask?: PT. Gagas Mitra Jaya (Area Salatiga),” J. Indones. Manaj. Inform. dan Komun., vol. 5, no. 2, hal. 1947–1959, 2024, doi: 10.35870/jimik.v5i2.822.
T. A. A. H. Kusuma, K. Usman, dan S. Saidah, “People Counting for Public Transportations Using You Only Look Once Method,” J. Tek. Inform., vol. 2, no. 1, hal. 57–66, 2021, doi: 10.20884/1.jutif.2021.2.2.77.
Bila bermanfaat silahkan share artikel ini
Berikan Komentar Anda terhadap artikel Klasifikasi Citra Sampah Botol Plastik Jenis HDPE dan PET Menggunakan Algoritma YOLOv7
ARTICLE HISTORY
How to Cite
Issue
Section
Copyright (c) 2025 Opita Purwasih, Wijang Widhiarso, Muhammad Rizky Pribadi

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under Creative Commons Attribution 4.0 International License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (Refer to The Effect of Open Access).