bit-Tech
Vol. 8 No. 1 (2025): bit-Tech

Designing a Real-Time TOXMAP Backend Based on FastAPI and Firebase for B3 Waste

Lubis, Gading Aurelia Nabila (Unknown)
Purnamasari, Rita (Unknown)
Saleh, Khaerudin (Unknown)



Article Info

Publish Date
10 Aug 2025

Abstract

Household waste classified as Hazardous and Toxic Waste (Bahan Berbahaya dan Beracun—B3) poses serious risks to health and the environment if not managed properly. Mismanagement can result in groundwater contamination, soil degradation, and long-term exposure to carcinogens. To address this issue, TOXMAP was developed as a mobile-based system that integrates real-time image classification with location-based disposal guidance. This paper discusses the development of the TOXMAP backend using a FastAPI server to process image input and classify waste using a pre-trained Support Vector Machine (SVM) model. Firebase supports user authentication, image storage, and retrieval of nearby dropbox locations. The Flutter-based frontend enables cross-platform access and supports real-time camera input. Load and integration tests show that the system responds in under one second with good classification accuracy and high user responsiveness. The system architecture effectively combines machine learning inference, cloud-based data handling, and mobile accessibility. FastAPI, Firebase, and SVM were selected to ensure lightweight, responsive, and accurate performance. Testing confirmed strong system stability and efficient computation during iterative use. The SVM model offers a balance between prediction accuracy and resource efficiency. By providing accurate classification and practical location guidance, the TOXMAP system enhances environmental awareness and promotes responsible disposal behavior. This architecture presents a scalable, lightweight, and accessible solution to support better household hazardous waste management and sustainable behavioral change.

Copyrights © 2025






Journal Info

Abbrev

bt

Publisher

Subject

Computer Science & IT

Description

The bit-Tech journal was developed with the aim of accommodating the scientific work of Lecturers and Students, both the results of scientific papers and research in the form of literature study results. It is hoped that this journal will increase the knowledge and exchange of scientific ...