Automated Floor Cleaning System for Hedgehog Cages using The You Only Look Once (YOLO) Algorithm for Waste Detection
Main Article Content
Abstract
African pygmy hedgehogs (Atelerix albiventris) have gained popularity as exotic pets; their reliance on olfactory and auditory senses makes them highly sensitive to environmental changes, particularly poor cage hygiene. Unsanitary conditions may cause odor accumulation, microbial growth, and parasitic infestations, leading to stress, reduced appetite, digestive disorders, infections, and respiratory issues. This study presents the design and evaluation of an automated cage floor cleaning system for hedgehogs based on computer vision using the You Only Look Once (YOLO) algorithm. The proposed system performs precise waste detection, autonomous cleaning, and remote monitoring and control via a mobile application. The cage consists of six PETG floor plates rotated by 180° using six MG996R servo motors, while a 12V submersible pump performs rinsing. Processing is conducted on a Raspberry Pi 4B with a PCA9685 PWM driver, integrated with Google Cloud/Firebase and a Flutter-based mobile application. Real-time video streaming is implemented using WebRTC and decoupled from the detection pipeline to maintain a stable frame rate. A YOLOv11s model was trained for object detection, achieving a precision of 0.785, recall of 0.753, and mAP@0.5 of 0.802 (mAP@0.5–0.95 of 0.491). Hedgehog detection achieved high performance (AP 0.969), while waste detection showed lower performance (AP 0.676) due to visual similarity with wooden pellets. Experimental results demonstrate smooth real-time streaming (23–27 FPS), low control latency, and reliable automated cleaning with a safety interlock mechanism that prevents cleaning when a hedgehog is detected. The system is feasible for automated cage maintenance, with future improvements focusing on dataset enhancement and system optimization.
Article Details

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
References
[2] G. A. Doss dan J. W. Carpenter, “African Pygmy Hedgehogs,” dalam Ferrets, Rabbits, and Rodents, Elsevier, 2020, hlm. 401–415. doi: 10.1016/B978-0-323-48435-0.00028-9.
[3] N. Wissink‐Argilaga, “African Pygmy Hedgehogs,” dalam Handbook of Exotic Pet Medicine, Wiley, 2020, hlm. 13–26. doi: 10.1002/9781119389934.ch2.
[4] M. R. Muzaky, Y. A. Pranoto, dan N. Vendyansyah, “PENERAPAN IOT (INTERNET OF THINGS) PADA PEMANTAUAN KESEHATAN KANDANG HEWAN JENIS LANDAK MINI BERBASIS ARDUINO DENGAN MENGGUNAKAN METODE LOGIKA FUZZY,” JATI (Jurnal Mahasiswa Teknik Informatika), vol. 5, no. 2, hlm. 541–547, Okt 2021, doi: 10.36040/jati.v5i2.3732.
[5] E. D. Widianto, M. Khasanah, A. B. Prasetijo, dan R. Septiana, “Sistem Otomatisasi Pembersihan Kotoran dan Pengaturan Suhu Kandang Kelinci Berbasis Arduino Mega2560,” Jurnal Rekayasa Elektrika, vol. 13, no. 3, hlm. 133, Des 2017, doi: 10.17529/jre.v13i3.8422.
[6] O. I. Adebisi, I. A. Adejumobi, F. O. Durodola, A. O. Fasakin, dan O. E. Abiodun, “Development of a Microcontroller Based Automated Regulating System for Efficient Management of Poultry Operation,” Int. J. Adv. Sci. Eng. Inf. Technol., vol. 13, no. 4, hlm. 1404–1413, Agu 2023, doi: 10.18517/ijaseit.13.4.16929.
[7] M. Bhakti, “Strategi Mengendalikan Amonia di Kandang.” Diakses: 8 Oktober 2023. [Daring]. Tersedia pada: https://www.medion.co.id/strategi-mengendalikan-amonia-di-kandang/
[8] M. Garbuio, B. Cordioli, E. Riva, L. Bano, dan G. Provolo, “Intra-farm dynamic of environmental conditions in commercial rabbitries with respiratory disorders using an innovative IoT device,” Smart Agricultural Technology, vol. 13, hlm. 101725, Mar 2026, doi: 10.1016/j.atech.2025.101725.
[9] J. D. Donlon, C. G. McAloon, R. Hyde, S. Aly, B. Pardon, dan J. F. Mee, “A systematic review of the relationship between housing environmental factors and bovine respiratory disease in preweaned calves – Part 1: Ammonia, air microbial count, particulate matter and endotoxins,” The Veterinary Journal, vol. 300–302, hlm. 106031, Okt 2023, doi: 10.1016/j.tvjl.2023.106031.
[10] J. Redmon, S. Divvala, R. Girshick, dan A. Farhadi, “You Only Look Once: Unified, Real-Time Object Detection,” dalam 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), IEEE, Jun 2016, hlm. 779–788. doi: 10.1109/CVPR.2016.91.
[11] A. R. Wasril, M. S. Ghozali, dan M. B. Mustafa, “Pembuatan Pendeteksi Obyek Dengan Metode You Only Look Once (YOLO) Untuk Automated Teller Machine (ATM),” Majalah Ilmiah UNIKOM, hlm. 69–75, 2019.
[12] V. A. Adibhatla, H.-C. Chih, C.-C. Hsu, J. Cheng, M. F. Abbod, dan J.-S. Shieh, “Applying deep learning to defect detection in printed circuit boards via a newest model of you-only-look-once,” Mathematical Biosciences and Engineering, vol. 18, no. 4, hlm. 4411–4428, 2021, doi: 10.3934/mbe.2021223.
[13] J. B. ReVelle, Quality essentials: A reference guide from A to Z. Quality Press, 2004.
[14] Arducam Technology, “Arducam 16MP Autofocus Camera Product Brief.” Diakses: 12 November 2023. [Daring]. Tersedia pada: https://docs.arducam.com/
[15] Raspberry Pi, “Raspberry Pi Camera Module 2,” https://www.raspberrypi.com/products/camera-module-v2/.
[16] O. Geffen, Y. Yitzhaky, N. Barchilon, S. Druyan, dan I. Halachmi, “A machine vision system to detect and count laying hens in battery cages,” Animal, vol. 14, no. 12, hlm. 2628–2634, 2020, doi: 10.1017/S1751731120001676.
[17] L. Cao dkk., “Automated Chicken Counting in Surveillance Camera Environments Based on the Point Supervision Algorithm: LC-DenseFCN,” Agriculture, vol. 11, no. 6, hlm. 493, Mei 2021, doi: 10.3390/agriculture11060493.
[18] W. M. Elmessery dkk., “YOLO-Based Model for Automatic Detection of Broiler Pathological Phenomena through Visual and Thermal Images in Intensive Poultry Houses,” Agriculture, vol. 13, no. 8, hlm. 1527, Jul 2023, doi: 10.3390/agriculture13081527.
[19] G. Li dkk., “Real-time detection of kiwifruit flower and bud simultaneously in orchard using YOLOv4 for robotic pollination,” Comput. Electron. Agric., vol. 193, hlm. 106641, Feb 2022, doi: 10.1016/j.compag.2021.106641.
[20] Tower Pro, “MG90S.”
[21] Futaba, “S3003 Servo.”
[22] Tower Pro, “MG966R -Tower Pro.” Diakses: 12 November 2023. [Daring]. Tersedia pada: https://www.towerpro.com.tw/product/mg996r/
[23] Raspberry Pi, “Raspberry Pi 4 Tech Specs.” Diakses: 12 November 2023. [Daring]. Tersedia pada: https://www.raspberrypi.com/products/raspberry-pi-4-model-b/specifications/
[24] NVIDIA Developer, “Jetson Nano System-on-Module Data Sheet,” Jan 2024.
[25] S. Boukhary dan E. Colmenares, “A Clean Approach to Flutter Development through the Flutter Clean Architecture Package,” dalam 2019 International Conference on Computational Science and Computational Intelligence (CSCI), IEEE, Des 2019, hlm. 1115–1120. doi: 10.1109/CSCI49370.2019.00211.
[26] O. O. Tooki, A. A. Aderinto, I. A. Ojerinde, R. Abolade, dan D. Aborisade, “Development of an Intelligence based hexapod for Surveillance using Raspberry Pi,” dalam 2024 International Conference on Science, Engineering and Business for Driving Sustainable Development Goals (SEB4SDG), IEEE, Apr 2024, hlm. 1–3. doi: 10.1109/SEB4SDG60871.2024.10629977.
[27] S. Kom. , M. Kom. Mira, S. Kom. , M. Kom. Chandra Gudiato, dan BCS. Brian Chan, Computer Vision dan YOLO Menggali Potensi Computer Vision dan Implementasi YOLO untuk Pertanian Pintar. Jawa Timur: Uwais Inspirasi Indonesia, 2023.
[28] G. I. E. Soen, M. Marlina, dan R. Renny, “Implementasi Cloud Computing dengan Google Colaboratory pada Aplikasi Pengolah Data Zoom Participants,” JITU : Journal Informatic Technology And Communication, vol. 6, no. 1, hlm. 24–30, Jun 2022, [Daring]. Tersedia pada: https://ejournal.uby.ac.id/index.php/jitu/article/view/781
[29] Ultralytics, “Ultralytics YOLO11,” https://docs.ultralytics.com/models/yolo11/.
[30] Riyadhul Fajri, Sriwinar, dan Firzha Fitria, “Pengembangan Real-TIme Object Detection System pada Perangkat Single-Board Computer,” Kajian Ilmiah Informatika dan Komputer, vol. 4, no. 2, Okt 2023.
[31] S. Viswanadh Kandala dkk., “Engineering End-to-End Remote Labs Using IoT-Based Retrofitting,” IEEE Access, vol. 13, hlm. 1106–1132, 2024, doi: 10.1109/ACCESS.2024.3523066.