Journal of Applied Science, Technology & Humanities
Vol. 3 No. 3 (2026): June 2026

Implementation of Mamdani Fuzzy Logic in Fire Early Warning Based on Gas Leaks

Inas Samara Taqia (IPB University)
Muhammad Rafi Riza Pratama (IPB University)
Muhammmad Eka Fauzan (IPB University)



Article Info

Publish Date
28 Jun 2026

Abstract

Gas leaks represent one of the most critical triggers of residential and industrial fire accidents, particularly in environments reliant on Liquefied Petroleum Gas (LPG). Conventional threshold-based detection systems exhibit fundamental limitations in interpreting the gradual and simultaneous dynamics of multiple hazardous parameters, rendering them prone to delayed responses or false alarms. This study proposes an intelligent early warning system for fire detection based on gas leakage, employing the Mamdani Fuzzy Inference System (FIS) implemented on an Arduino Uno microcontroller. The system integrates three environmental input variables Gas Concentration (MQ-2 sensor), Flame Distance (IR flame sensor), and Ambient Temperature (DHT22 sensor) to determine the proportional speed output of a DC exhaust fan via Pulse Width Modulation (PWM) control. A rule base of 27 IF-THEN rules governs the inference process. The system was validated through MATLAB Fuzzy Logic Toolbox simulation and direct hardware implementation, yielding an average error rate of 0.22% between simulated, hardware computation, and actual outputs. The results demonstrate that the proposed multi-parameter Mamdani fuzzy system provides a significantly more adaptive and precise hazard assessment compared to conventional single-threshold approaches, offering a robust foundation for smart safety system deployment.

Copyrights © 2026






Journal Info

Abbrev

batrisya

Publisher

Subject

Humanities Computer Science & IT Control & Systems Engineering Economics, Econometrics & Finance Social Sciences

Description

Journal of Applied Science, Technology & Humanities is published by Batrisya Education. Published five times a year, in January, March, June, September, November and already have a registration number ISSN 3032-5765, DOI: https://doi.org/10.62535/jasth. Journal of Applied Science, Technology & ...