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

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.

Authors

Institutions

Publication Details

Journal
bit-Tech
Published
2025-08-10
DOI
https://doi.org/10.32877/bt.v8i1.2888
Primary Topic
Internet of Things and AI
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

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

Rita Purnamasari, Kassem Saleh, Gading Aurelia Nabila Lubis
bit-Tech
Internet of Things and AI
article

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

Rita Purnamasari, Kassem Saleh, Gading Aurelia Nabila Lubis
article en

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.

bit-TechVol. 8(1)
Telkom University (ID)
Openalex Percentile: Top 69%
Internet of Things and AI
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.