An Intelligent CCTV-Based Anomaly Detection System for Flood Prevention Caused by Waste in Urban River Streams
DOI:
https://doi.org/10.31963/elekterika.v22i1.6018Keywords:
CCTV; waste detection; artificial intelligence; YOLOv8; MediaPipe; face recognition; anomaly detectionAbstract
Flooding is the most frequent natural disaster in Indonesia, with BNPB data showing a sharp increase since 2016, reaching 1,794 incidents in 2021. In 2024, 1,420 flood cases were reported, the majority of which were caused by waste accumulation in river channels. One example is the flood in Gadingrejo Village, Central Java, which submerged 100 houses due to waste obstructing the river flow. This issue motivated the development of RiverEye, an intelligent system based on CCTV and anomaly detection to prevent floods caused by waste in urban river channels. The system is designed using Raspberry Pi cameras, a buzzer as an early warning alarm, and a mini-computer running Artificial Intelligence (AI) models. The research methodology integrates YOLOv8 for object detection of waste and humans, MediaPipe Pose for detecting littering gestures, and face recognition to identify the perpetrators. The system includes a Flask-based monitoring dashboard that displays real-time detection results and a WhatsApp bot for automatic reporting. Testing was conducted on five main functions, achieving an average success rate of 89%, including pose detection 93%, object detection 90%, face recognition 83%, alarm 80%, and WhatsApp bot integration 100%. The findings demonstrate that RiverEye can detect littering behavior quickly and accurately, providing early warnings of potential river obstructions. The system has the potential to be applied as an effective, efficient, and environmentally friendly AI-based disaster mitigation tool. Further research is recommended to expand the testing area, increase the river visual dataset, and develop flood prediction features based on historical data for sustainable implementation.References
[1] Badan Nasional Penanggulangan Bencana. 2024. Kompilasi Data Jumlah dan Dampak Kejadian Bencana di Indonesia. https://data.bnpb.go.id/dataset/data-bencana-indonesia/resource/9b41007e-c998-456b-8cbc-385b17986e46. Diakses tanggal 18 Mei 2025.
[2] Sitohang, T.R., Simbolon, G.A. dan Pakpahan, S. 2022. Peningkatan Pengetahuan Masyarakat Tentang Pengelolaan Sampah Dalam Upaya Pencegahan Banjir. JURNAL KREATIVITAS PENGABDIAN KEPADA MASYARAKAT (PKM), 5(6), pp. 1918–1926. https://doi.org/10.33024/jkpm.v5i6.6749.
[3] Daryono, Y. 2025. Air Sungai Tersumbat Sampah, Desa Gadingrejo Juwana Dilanda Banjir Parah. https://www.rmoljawatengah.id/air-sungai-tersumbat-sampah-desa-gadingrejo-juwana-dilanda-banjir-parah. Diakses tanggal 18 Mei 2025.
[4] Yulyanto, Nugraha, R. dan M Rasul, A. 2022. Kampanye Konservasi Sungai Di Kuningan Melalui Animasi Pendek. Bulletin of Information Technology (BIT), 3(1), pp. 34–42. https://doi.org/10.47065/bit.v3i1.259.
[5] Vandaele, R., Dance, S.L. dan Ojha, V. 2021. Deep learning for automated river-level monitoring through river-camera images: an approach based on water segmentation and transfer learning. Hydrology and Earth System Sciences, 25(8), pp. 4435–4453. https://doi.org/10.5194/hess-25-4435-2021.
[6] Henderi, S., Kurniawan, R. dan Widodo, T. 2022. Portable Monitoring Systems for Rivers Waste Based on Internet of Things. 2022 Seventh International Conference on Informatics and Computing (ICIC). IEEE, pp. 1–5. https://doi.org/10.1109/ICIC56845.2022.10006906.
[7] Nikhilesh, V., Anantha, V., Sundar, C. dan Ramanan, B. 2022. Surveillance Systems Using Efficient Storage Solutions. 2022 Third International Conference on Intelligent Computing Instrumentation and Control Technologies (ICICICT). IEEE, pp. 1512–1517. https://doi.org/10.1109/ICICICT54557.2022.9917675.
[8] Sio, G. A., Guantero, D., & Villaverde, J. F. (2022, October 3). Plastic Waste Detection on Rivers Using YOLOv5 Algorithm. International Conference on Computing Communication and Networking Technologies. https://doi.org/10.1109/ICCCNT54827.2022.9984439
[9] Zailan, N. A., Azizan, M. M., Hasikin, K., Mohd Khairuddin, A. S., & Khairuddin, U. (2022). An automated solid waste detection using the optimized YOLO model for riverine management. Frontiers in Public Health. https://doi.org/10.3389/fpubh.2022.907280
[10] Jain, S., Gupta, N., Khanna, A., Gupta, A., & Gupta, D. (2020). Detection of Garbage Disposal from a Mobile Vehicle Using Image Processing. https://doi.org/10.1007/978-981-15-1286-5_62
[11] Rudavskyi, I., Stepanov, O., & Klym, H. (2023). Air Quality Monitoring System Based on Raspberry Pi and Arduino Hardware-Programmable Platform. https://doi.org/10.1109/csit61576.2023.10324008
[12] Florea, A. G., & Oara, C. (2022, October 19). Improving the Accuracy of Object Detection Models using Patch Splitting. International Conference on System Theory, Control and Computing. https://doi.org/10.1109/ICSTCC55426.2022.9931855
[13] Ait dahmad, H., Ayad, H., García-Cerezo, A., & Mousannif, H. (2024). Implementation of a Weed Detection System Based on YOLOv8-n. https://doi.org/10.1109/rem63063.2024.10735578
[14] Plastic Waste Detection on Rivers Using YOLOv5 Algorithm. (2022, October 3). 2022 13th International Conference on Computing Communication and Networking Technologies (ICCCNT). https://doi.org/10.1109/icccnt54827.2022.9984439
[15] Dubey, A. K. (2022, April 28). Development of Computer Vision and Deep Learning based Algorithm to Improve Waste Management System. 2022 2nd International Conference on Advance Computing and Innovative Technologies in Engineering (ICACITE). https://doi.org/10.1109/icacite53722.2022.9823449
[16] Alzubaidi, L., Duan, Y., Al-Dujaili, A. Q., Ibraheem, I. K., Alkenani, A. H., Alkenani, A. H., Santamaría, J., Fadhel, M. A., Al-Shamma, O., & Zhang, J. (2021). Deepening into the suitability of using pre-trained models of ImageNet against a lightweight convolutional neural network in medical imaging: an experimental study. PeerJ. https://doi.org/10.7717/PEERJ-CS.715
[17] Korchani, B., & Sethom, K. (2021, March 16). Real-Time Littering Detection for Smart City using Deep Learning Algorithm. International Conference on Communications. https://doi.org/10.1109/ICCSPA49915.2021.9385721
[18] Wang, Q., & Wen, B. (2024). Design and implementation of garbage classification and detection system based on YOLOv8. https://doi.org/10.1117/12.3015103
[19] Maier, H. R., Zheng, F., Gupta, H. V., Chen, J., Mai, J., Savic, D., Loritz, R., Wu, W., Guo, D., Bennett, A. D., Jakeman, A., Razavi, S., & Zhao, J. (2023). On how data are partitioned in model development and evaluation: Confronting the elephant in the room to enhance model generalization. Environmental Modelling and Software. https://doi.org/10.1016/j.envsoft.2023.105779
[20] Kumar, P., & Kumar, V. (2023, December 10). Exploring the Frontier of Object Detection: A Deep Dive into YOLOv8 and the COCO Dataset. https://doi.org/10.1109/cvmi59935.2023.10464837
[21] Sutikno, S., Sugiharto, A., Kusumaningrum, R., & Wibawa, H. A. (2024). Improved car detection performance on highways based on YOLOv8. Bulletin of Electrical Engineering and Informatics. https://doi.org/10.11591/eei.v13i5.8031
[22] Shroff, M., Desai, A., & Garg, D. (2023, October 18). YOLOv8-based Waste Detection System for Recycling Plants: A Deep Learning Approach. https://doi.org/10.1109/icssas57918.2023.10331643
[23] Dubey, P., & Kumar, R. (2024). Suspicious Object Detection Using Images Using YoloV8 Model. https://doi.org/10.58532/nbennurch214
[24] Zailan, N. A., Khairuddin, A. S. M., Khairuddin, U., & Taguchi, A. (2021, June 12). YOLO-based Network Fusion for Riverine Floating Debris Monitoring System. https://doi.org/10.1109/ICECCE52056.2021.9514096
[25] Yu, Z., Lei, Y., & Shen, F. (2023). Research on Identification and Detection of Transmission Line Insulator Defects Based on a Lightweight YOLOv5 Network. Remote Sensing. https://doi.org/10.3390/rs15184552
[26] Chepino, B. G., Yacoub, R. R., Aula, A., Saleh, M., & Sanjaya, B. W. (2023). Effect of minmax normalization on orb data for improved ann accuracy. https://doi.org/10.26418/j3eit.v11i2.68689
[27] Deshpande, M. M., Agarwal, A., & Kamathe, R. (2024). Development of an energy-efficient cctv camera system for real-time human detection using YOLOv8 model. Eastern-European Journal of Enterprise Technologies. https://doi.org/10.15587/1729-4061.2024.310401
[28] Wenkel, S., Alhazmi, K., Liiv, T., Alrshoud, S. R., & Simon, M. (2021). Confidence Score: The Forgotten Dimension of Object Detection Performance Evaluation. Sensors. https://doi.org/10.3390/S21134350
[29] Lin, F., Hou, T., Jin, Q., & You, A. (2021). Improved YOLO Based Detection Algorithm for Floating Debris in Waterway. Entropy. https://doi.org/10.3390/E23091111
[30] Ismail, A. S., Azahar, M. A. B., Tahir, N. M., Daud, K., & Kasim, N. M. (2023, August 25). Human Action Recognition (HAR) using Image Processing on Deep Learning. https://doi.org/10.1109/iccsce58721.2023.10237158
[31] Hu, Z., Zhang, C., Wang, X., & Ge, A. (2024). Light-Adaptive Human Body Key Point Detection Algorithm Based on Multi-Source Information Fusion. https://doi.org/10.3390/s24103021
[32] Ranjani, S. (2021). A Study on Human Face Recognition Techniques. https://doi.org/10.1007/978-981-15-9647-6_66
[33] Jayakumar, D., & Peddakrishna, S. (2024). Performance Evaluation of YOLOv5-based Custom Object Detection Model for Campus-Specific Scenario. International Journal of Experimental Research and Review. https://doi.org/10.52756/ijerr.2024.v38.005
Downloads
Published
Issue
Section
License

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







