Perancangan Sistem Backend Real-Time Berbasis FastAPI dan Firebase Untuk Klasifikasi Sampah Bahan Berbahaya dan Beracun Serta Pengambilan Lokasi Dropbox Pada Aplikasi Mobile TOXMAP
Abstract
Hazardous household waste (B3) poses serious risks to the environment and public health when improperly managed. To address this, TOXMAP was developed as a mobile-based system that combines real-time image classification with location-based waste disposal guidance. This study presents the backend development of TOXMAP, which integrates a FastAPI server to process image inputs and classify waste types using a pre-trained Support Vector Machine (SVM) model. Firebase services support user authentication, image storage, and dropbox location retrieval. To complement this backend, the TOXMAP frontend was built using Flutter, enabling cross-platform mobile deployment with support for camera access and real-time image submission. Integration and load testing show that the system can respond in under one second per request while maintaining classification accuracy and user responsiveness. This architecture offers a lightweight, scalable, and user-accessible infrastructure to promote public awareness and responsible household B3 waste management.
Keywords— backend, real-time system, image classification, FastAPI, Firebase, B3 waste
References
Arah Environmental. "Apa Itu Limbah B3 dan Jenis-Jenis Limbah B3 yang Sering Kita Abaikan". Tersedia: https://arahenvironmental.com/apa- itu-limbah-b3-dan-jenis-jenis-limbah-b3-yang-sering-kita-abaikan/, August. 15, 2020 [Jul. 15, 2025].
A. Nursabrina, T. Joko, dan O. Septiani. (2021). "Kondisi Pengelolaan Limbah B3 Industri di Indonesia dan Potensi Dampaknya: Studi Literatur." Jurnal Riset Kesehatan, 13(1), pp. 80–89. Tersedia: https://juriskes.com/index.php/jrk/article/view/1841. [Jul. 15, 2025].
G. M. Nyabuto, V. Mony, & S. Mbugua. (2024). “Architectural Review of Client–Server Models.” International Journal of Scientific Research & Engineering Trends (IJSRET), 10(1), pp. 139–143. Tersedia: https://ijsret.com/wp-content/uploads/2024/01/IJSRET_V10_issue1_125.pdf. [Jul. 15, 2025]
N. Barochiya, “Unlocking the Power of Firebase: A Comprehensive Guide to Google’s BaaS Platform,” Medium. Tersedia: https://medium.com/@nandeepbarochiya/unlocking‑the‑power‑of‑firebase‑a‑comprehensive‑guide‑to‑googles‑baas‑platform‑827ed88567f2, 2023. [Jul. 15, 2025].
FastAPI “Concurrency and async/await,” FastAPI Documentation. Tersedia: https://fastapi.tiangolo.com/async/, 2025 [Jul. 15, 2025].
C. T. Ho, “How to Use FastAPI for Machine Learning,” JETBrains. Tersedia: https://blog.jetbrains.com/pycharm/2024/09/how-to-use-fastapi-for-machine-learning/, 2024 [Jul. 15, 2025].
Gusti, A. “API Endpoint: Pengertian, Manfaat dan Cara Menemukannya.” IDwebhost. Tersedia: https://idwebhost.com/blog/api-endpoint/, 2025 [Jul. 15, 2025].
Bogner, J., Kotstein, S., & Pfaff, T. (2023). “Do RESTful API design rules have an impact on the understandability of Web APIs?” Empirical Software Engineering. Vol. 28(132). Tersedia: https://link.springer.com/article/10.1007/s10664-023-10367-y [Jul. 15, 2025].



