Next Article in Journal
PPG-Based Heart Rate Accuracy in Hispanic Adults with Fitzpatrick III–V Skin Tones: An Evaluation of Body Composition and Skin-Tone Effects
Next Article in Special Issue
Integrating Metabolomics and Machine Learning for Advanced Chemical Detection
Previous Article in Journal
Robot-Assisted Gait Training Enhances Phase-Specific Torque Generation, Balance, and Motor Recovery in Hemiplegia
Previous Article in Special Issue
A Fluorescence-Based Sensor Combined with Chemometric and Deep Learning Approaches for Detecting and Quantifying Coconut Milk Fraud in Bovine Milk
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Low-Cost Portable Sensor Node for Gas and Chemical Leak Detection with Kalman-Filtering-Based UWB Localization

by
Mohammed Faeik Ruzaij Al-Okby
1,2,*,
Thomas Roddelkopf
3 and
Kerstin Thurow
1
1
Center for Life Science Automation (Celisca), University of Rostock, 18119 Rostock, Germany
2
Technical Institute of Babylon, Al-Furat Al-Awsat Technical University (ATU), Kufa 54003, Iraq
3
Institute of Automation, University of Rostock, 18119 Rostock, Germany
*
Author to whom correspondence should be addressed.
Sensors 2026, 26(10), 2921; https://doi.org/10.3390/s26102921
Submission received: 27 March 2026 / Revised: 5 May 2026 / Accepted: 5 May 2026 / Published: 7 May 2026

Abstract

The work environment in automated laboratories and industrial sites exposes workers to the risks associated with chemical gas and vapor leaks caused by unforeseen incidents. Such leaks may result in severe health hazards as well as damage to equipment or infrastructure at the leak site. Therefore, the development of systems capable of early detection and highly accurate localization of chemical leaks is of high importance for occupational safety. In this work, a low-cost, portable sensor node based on the Internet of Things (IoT) is proposed for the detection and localization of gas and chemical leaks in indoor environments. The sensor node features a modular design that enables flexible integration and replacement of gas and environmental sensors depending on the target application. In addition, the system includes an ultra-wideband (UWB)-based positioning and tracking unit, allowing operation across multiple indoor zones. The main contribution of this work lies in the combined integration of (i) multi-sensor-based environmental event detection and prediction and (ii) high-precision location within a dynamic multi-zone tracking architecture. The system automatically selects the most relevant anchors in each zone and applies trilateration and least-squares estimation, enhanced by Kalman filtering techniques. In particular, an extended Kalman filter (EKF) and an unscented Kalman filter (UKF) are employed, with sensor fusion incorporating inertial measurement unit (IMU) data to mitigate the effects of on-line-of-sight (NLoS) conditions and signal degradation caused by obstacles. Experimental results demonstrate that both the EKF and UKF significantly reduce positioning errors and improve tracking stability compared to baseline methods under challenging indoor conditions. The UKF shows superior performance in highly nonlinear scenarios. A quantitative evaluation using manually surveyed reference points showed that the UKF achieved the best overall performance, with a mean error of 39.72 cm and an RMSE of 43.03 cm. These findings confirm the effectiveness of Kalman filter-based sensor fusion for reliable indoor positioning and highlight the suitability of the proposed system for real-time safety monitoring applications.

1. Introduction

In recent years, increasing attention has been paid to the monitoring of indoor air quality and airborne chemical pollution due to their impact on human health, safety, and productivity. This is particularly relevant in automated laboratories and industrial environments, where hazardous chemicals and gases are routinely handled. Accidental leaks of such substances may lead to severe health risks, environmental contamination, and damage to infrastructure, highlighting the need for reliable monitoring and early warning systems. In addition, increasing regulatory and industrial environments further emphasize the importance of continuous and intelligent environmental monitoring solutions.
Traditional environmental monitoring systems typically rely on high-precision equipment, which is often complex and expensive, limiting their scalability and widespread deployment. In contrast, recent research in this field has focused on the development of low-cost sensor networks capable of real-time air quality monitoring and anomaly detection. These systems commonly integrate gas sensors, particulate matter sensors, and environmental sensors to identify indoor pollution sources and detect abnormal environmental events. Sensor nodes have thus become key components of smart building monitoring and control systems, enabling continuous observation and early detection of hazardous conditions, such as chemical leaks, smoke, or fire.
Driven by advances in sensor technology and communication electronics, modern sensor nodes have evolved from simple data acquisition units into intelligent systems capable of multi-sensor data processing, wireless communications, and integration with Internet of Things (IoT) and edge computing frameworks. This evolution enables not only real-time monitoring but also local data processing and decision-making, reducing latency and dependence on centralized infrastructure. More recently, the increasing use of mobile robots and autonomous platforms in laboratories and industrial environments has created a demand for mobile sensor nodes that can detect hazardous substances and simultaneously determine their spatial location. Accurate localization of such events is essential for effective risk mitigation and targeted intervention, particularly in dynamic or large-scale indoor environments [1,2,3].
Baseline deviation analysis is widely used in environmental monitoring systems, where real-time measurements are compared against reference values to detect any anomalies. For example, elevated levels of volatile organic compounds (VOC), particulate matter (PM), or carbon dioxide equivalent (eCO2) may indicate chemical leaks, smoke generation, or combustion processes. Due to its computational efficiency, this approach is well-suited for real-time applications [4,5]. In addition, rule-based event detection frameworks have widely been employed to classify environmental conditions based on threshold exceedances and temporal trends, enabling the identification of events such as smoke emissions, chemical emissions, or fire incidents [6,7,8].
Several studies have addressed the development of sensor systems and localization approaches in indoor environments. Ge et al. proposed a machine learning-based indoor localization system that utilizes environmental and temporal sensor data, such as temperature, humidity, and light intensity, to classify indoor locations using algorithms including Random Forest, support vector machine, K-nearest neighbor, Decision Tree, and Adaptive Boosting [9].
Tan et al. introduced a magnetic induction-based localization system designed for environments with limited line-of-sight (LoS), demonstrating improved robustness in complex indoor scenarios [10].
Pham et al. developed a sensor fusion approach combining passive infrared sensor (PIR) and inertial measurement units (IMU) with particle filtering for indoor human localization, achieving high positioning accuracy [11].
Furthermore, LiDAR-based approaches have been explored for simultaneous localization and mapping (SLAM), providing high accuracy but typically at a higher cost and system complexity [12]. In the context of gas detection, Kumar et al. proposed an IoT-based system integrating gas sensor arrays with machine learning (ML) techniques for hazardous gas identification, achieving high classification accuracy in a controlled environment [13].
Recent studies have also explored advanced gas-sensing strategies for environmental and hazardous substance monitoring. In particular, plasmonic and material-engineered sensing approaches have demonstrated high sensitivity under controlled measurement conditions. However, such solutions typically rely on specialized sensing structures and more complex instrumentation, which may limit their direct integration into compact, low-cost, and mobile sensor platforms [14].
Other recent works have further highlighted the importance of accurate gas- and air-quality monitoring in safety-oriented applications. These studies confirm the increasing demand for reliable detection of hazardous environmental conditions. However, their primary focus remains on sensing performance itself, whereas the present work emphasizes the joint integration of environmental event detection and real-time indoor localization within a portable embedded architecture [15].
Beyond the co-existence of sensing and positioning modules, an important research gap remains in the interaction mechanism between these subsystems. In many existing implementations, environmental sensing and localization are treated as loosely connected processes, where detection results and positioning outputs are combined only at a superficial level. This often neglects critical aspects such as temporal alignment between sensor measurements and position estimates, as well as the potential for mutual awareness between environmental anomalies and localization uncertainties. For instance, sudden changes in environmental sensor readings caused by an event may coincide with reduced positioning accuracy under non-line-of-sight (NLoS) conditions, highlighting the need for a tighter coupling between environmental event detection and localization, rather than independent processing. Addressing this interaction requires deeper system-level integration, where sensor and positioning data are processed within a unified processing framework that supports consistent spatial and temporal data interpretation. This goes beyond hardware-level integration and enables coherent spatiotemporal alignment of environmental measurements and position estimates [16,17,18].
Despite these advances, existing approaches typically focus either on environmental sensing or on localization, while only a limited number of systems address the combined problem of real-time hazard detection and accurate indoor positioning in a unified low-cost architecture. In addition, many localization approaches suffer from reduced accuracy in indoor environments due to non-line-of-sight (NLoS) conditions and signal attenuation caused by obstacles such as walls and laboratory equipment. Moreover, the integration of reliable event classification with robust localization remains a significant challenge, particularly in dynamic and cluttered indoor settings.
To address these challenges, this work proposes a low-cost, portable sensor node that integrates multi-sensor-based environmental monitoring with high-precision indoor localization. Unlike many existing systems that treat sensing and localization as loosely coupled processes, the proposed approach emphasizes coordinated operation within a unified processing framework. This enables consistent spatiotemporal interpretation of environmental events, ensuring that sensing and localization data are jointly interpreted in both spatial and temporal domains.
The main contributions of this work can be summarized as follows:
  • Development of a modular IoT-based sensor node for detecting hazardous gases, particulate matter, and environmental parameters;
  • Design of a dynamic multi-zone indoor tracking system based on ultra-wideband (UWB) technology with adaptive anchor selection;
  • Implementation and comparison of Kalman filter-based localization approaches (KF, EKF, and UKF), including sensor fusion with IMU data for improved robustness under NLoS conditions;
  • Development of a rule-based multi-sensor environmental event detection framework for classifying VOC leaks, smoke, and fire events.
The remainder of this paper is organized as follows. Section 2 describes “Methods and Materials”, including the hardware and software components and system architecture. Section 3, “Work Description” presents the system design and the implemented algorithms. Section 4, “Experimental Tests and Results”, discusses the experimental setup and results. Section 5, “Discussion and Conclusions”, provides a detailed discussion of the findings, and concludes the paper and outlines directions for the future.

2. Materials and Methods

The proposed system consists of two main components: (i) the hardware platform and (ii) the monitoring software. The hardware comprises a prototype sensor node equipped with multiple environmental sensors and a positioning unit. The software is responsible for data processing, visualization, and event detection.
The sensor node is designed as a modular platform that integrates different types of sensors for measuring gas concentrations, particulate matter (PM), temperature, and relative humidity. In addition, the sensor node incorporates an ultrawideband (UWB) tracking unit that operates in conjunction with multiple fixed anchors deployed within the building. The following subsections describe the individual system components in detail. Figure 1 illustrates the sensor node used in this work.

2.1. UWB Module

Ultra-wideband (UWB) technology forms the backbone of the positioning and tracking system, enabling precise indoor localization in real-time. UWB units can be deployed as mobile tags or carried by laboratory personnel, and can also be integrated into robotic platforms or autonomous systems operating in hazardous environments.
In this work, the MaUWB_ESP32S3 (Makerfabs, Shenzhen, China) was selected for system implementation. The module integrates several functional units. It is based on the DWM3000 transceiver (Qorvo, Greensboro, NC, USA), which provides key functionalities such as an integrated ceramic antenna, a real-time clock, RF front-end, and power management system. The transceiver supports two-way ranging (TWR) as well as time difference of arrival (TDoA) methods for distance estimation.
The DWM3000 is controlled via AT commands using an integrated STM32F103RCT6 microcontroller (STMicroelectronics, Geneva, Switzerland), which allows low-level access to internal registers and configuration parameters. In addition, the module included an ESP32-S3 IoT microcontroller (Espressif Systems, Shanghai, China), which provided Wi-Fi and Bluetooth 5 connectivity. In the proposed system, the ESP32-S3 is used for processing UWB data and readings from various sensors, as well as for transmitting data to the monitoring and tracking server. The module further includes a 1.3-inch OLED display for local visualization and a set of input/output interfaces for sensor integration. Owing to its functionality and relatively low cost (approximately €50), the module represents a suitable solution for real-time indoor tracking applications. Figure 2 shows the UWB module used.

2.2. Gas and Environmental Sensors

To enable a reliable detection of chemical leaks, smoke, and fire-related events, the sensor node integrates multiple gas and environmental sensors. The SGP41 gas sensor (Sensirion AG, Stafa, Switzerland) is used to measure the volatile organic compound (VOC) index and the Nitrogen oxides (NOx) index. Both indices are unitless and range from 0 to 500, representing air quality levels from excellent to poor. These parameters provide important indicators for the detection of chemical leaks (VOC index) and combustion-related events (NOx index). In addition, the SGP30 sensor (Sensirion AG, Stafa, Switzerland) is used to measure total VOC (TVOC) concentration and the carbon dioxide equivalent (eCO2) concentration [19,20].
Environmental conditions are further monitored using the SHT41 sensor (Sensirion AG, Stafa, Switzerland), which measures temperature and related humidity in the operational ranges of −40 to 125 °C and 0 to 100% RH, respectively. Rapid changes in temperature and humidity can indicate abnormal conditions such as fire or smoke. However, these parameters alone are insufficient for reliable detection, as they may also be influenced by other environmental factors. Therefore, their integration with gas and particulate matter sensors is essential to improve the detection robustness [21].
Two particulate matter sensors are employed to measure PM1 (1-micron diameter), PM2.5 (2.5-micron diameter), and PM10 (10-micron diameter) concentrations in the air: the PMSA003I (Nanchang Panteng Technology Co., Ltd., Nanchang, China) and the BMV080 (Bosch Sensortec, Reutlingen, Germany). The BMV080 is a compact sensor with a measurement range of 0 to 1000 μg/m3 and a resolution of 1 μg/m3, which makes it well-suited for portable applications. In addition, it can be hosted with any processor with an I2C or SPI bus [22]. The PMSA003I operated based on the laser scattering principle and communicates via an I2C interface [23].

2.3. BNO085 Inertial Measurement Unit

The BNO085 (CEVA Technologies, Inc., Rockville, MD, USA) inertial measurement unit (IMU) integrates a triaxial accelerometer, magnetometer, and gyroscope, providing nine degrees of freedom for the inertial measurement unit. These sensors are coupled with an embedded ARM Cortex M0 processor running the Hillcrest SH-2 sensor fusion firmware (Hillcrest Labs, Inc., Rockville, MD, USA). The IMS provides processed motion data, including yaw, pitch, and roll angles, quaternion, rotation vector, linear acceleration, and gravity vectors. In this work, IMU data are used to support the localization process by enabling sensor fusion with UWB measurements. Specifically, the IMU contributes to mitigating the effects of signal degradation and non-line-of-sight (NLOS) conditions, which commonly occur in indoor environments due to obstacles such as walls and equipment. The integration of IMU data with UWB measurements is performed within the unscented Kalman filter (UKF) framework described in Section 3 [24]. Table 1 summarizes the main sensors and hardware components integrated into the proposed system.

3. Work Description

The current project aims to design a low-cost, indoor chemical leak detection system with multi-tag, multi-zone tracking and location capabilities, utilizing commercially available components. It is important to note that the algorithms employed in this work are based on established methods. However, their integration, coordination, and adaptation within a dynamic multi-zone indoor environment represent the main contribution of the proposed framework. The system architecture consists of fixed anchors that continuously transmit UWB signals. These signals are received by a mobile tag, which calculates the distances from the eight nearest anchors in the operating environment and wirelessly transmits the sensor array data via Wi-Fi to a monitoring server. The moving tag sends data in the form of five JSON arrays, representing the tag number, distances from the nearest eight anchors, anchor numbers, environmental sensor data, and inertial measurement unit data. The transmission uses the UDP protocol to ensure high-speed, uninterrupted data flow along the tracking path.
On the monitoring server side, a Python 3.12 program receives, sorts, and processes the incoming data, applying algorithms to determine the tag positions and sensor readings with an initial guess of the expected environmental event based on the measurements.
The main tracking tasks of the monitoring program are summarized as follows:
  • Continuously receive UWB data via UDP for each tag.
  • For each tag,
    • Identify the active room (zone/room) based on the distances to anchors in the received UDP message.
    • Select the top three anchors (usually the closest/nearest within the room).
    • Calculate an initial position using Least Squares (LSQ) (three anchors).
    • Update smoothing/tracking filters (KF/UKF/EKF) using appropriate measurements.
  • Map the results:
    • Display only the anchors within the active rooms.
    • Highlight the three anchors currently in use.
    • Color tag points according to filter type.
  • Calculate the dynamic GDOP for active room(s) based on selected anchors and current tag position.
  • Store the results in a log file for analysis and performance evaluation.
The following sub-sections will describe the main algorithms in the monitoring and tracking program in detail.

3.1. Multi-Zone Room Selection

The monitoring program dynamically selects the active room/zone for each tag, regardless of the number of tags or zones. It does not assume a fixed room; instead, the active room is determined by calculating a weight score based on anchors that appeared in the received message. The anchors are predefined and operate in a single room only.
The active room is selected by summing the inverse values of the distances of anchors in each room:
A c t i v e   R o m e =   1 / ( R a n g e + )
where the ε value is a small amount, 0.001, and provides additional protection against division by zero when the distance is very small, which is a rare occurrence.
Hysteresis is applied to avoid “flickering” of a room or zone when a tag crosses boundaries. The system only switches the active zone if the new room achieves the highest score in consecutive frames (e.g., 3). This process ensures the selection of the three closest anchors in the room or zone for localization. Figure 3 shows a flowchart of the active room/zone selection process. The proposed weighting and hysteresis mechanism is designed to ensure stable zone selection during transitions between adjacent rooms, where signal conditions and anchor visibility may change rapidly.

3.2. Anchor Selection

After defining the room, three anchors are selected for trilateration.
  • Valid measurements are collected for each anchor. If fewer than eight anchors are active, missing distances are replaced with (0) for distance and missing anchor numbers with (−1).
  • Anchors belonging to the selected room are preferred.
  • If fewer than three anchors are available, the system falls back to the nearest three anchors to prevent the program from crashing or obtaining inaccurate results during trilateration.
  • The selected anchors are stored in the active anchors matrix for the current tag and are used for
    • LSQ/KF calculations;
    • UKF/EKF ranges;
    • Map highlights;
    • Dynamic GDOP computation.
Dynamic GDOP is calculated per frame based on the current tag position. If multiple tags occupy the same room, the average GDOP for the room is used, which causes the GDOP index to change as the tag moves from one area to another.

3.3. Least Squares Algorithm (LSQ)

The Least Squares Estimation method (LSQ) estimated tag coordinates (x, y) by selecting three distance measurements from the three nearest anchors with predefined coordinates within the monitoring program (xi, yi) and real-time distance measurements (di). The model is based on the circle equation for each anchor:
d i 2 = ( x x i ) 2 + ( y y i ) 2
Subtracting the first anchor equation from the others eliminates the quadratic terms (x2, y2), resulting in a linear system:
Ap = b , p = x y = 2 ( x 2 x 1 ) 2 ( y 2 y 1 ) 2 ( x 3 x 1 ) 2 ( y 3 y 1 ) b = d 1 2 d 2 2 + x 2 2 + y 2 2 x 1 2 y 1 2 d 1 2 d 3 2 + x 3 2 + y 3 2 x 1 2 y 1 2
The “p” value (tag coordinates) is estimated by solving the LSQ:
p = ( A T A ) 1 A T b
when (AT A) is reversible, which is implemented by the tracking program code via the numpy.linalg.lstsq function, the resulting coordinates are measurements for subsequent Kalman filtering [25].

3.4. Linear Kalman Filter (KF)

A linear Kalman filter was used to smooth and track the position of the moving tag using a four-state model, x = [x, y, vx, vy]T, by assuming constant velocity. With a time step of dt, the transition equation is
x k | k 1 = F   x k 1 | k 1 , F = 1 0 d t 0 0 1 0 d t 0 0 1 0 0 0 0 1 ,
Position is measured only from the LSQ in the monitoring software via
z k = Hx k + v k , H = 1 0 0 0 0 1 0 0 ,
where vkN(0,R). KF undergoes two standard stages:
The prediction
Pk∣k−1 = FPk−1∣k−1FT + Q,
And the update
Kk = Pk∣k−1HT(HPk∣k−1HT + R)−1,
xk∣k = xk∣k−1 + Kk(zk − Hxk∣k−1),  
Pk∣k = (I − KkH)Pk∣k−1                   
The KF provides a smooth estimate of tag position (P) and tag speed (v). The instantaneous tag speed is calculated based on the velocity components produced by the Kalman filter using the equation v = √(vx2 + vy2). The adopted linear Kalman filtering framework follows the standard discrete-time formulation widely used in tracking applications [26,27].

3.5. Extended Kalman Filter (EKF)

The EKF handles the nonlinear relationship between UWB ranges and tag position, accounting for NLoS and multipath propagation. Instead of using the initial coordinates in LSQ, the moving tag coordinates are calculated using distance measurements from the three selected anchors in the effective region. When the measurement is the range measurement vector to the anchors z = [r1, r2, r3]T and not the position directly, the system state is defined for the KF as x = [x, y, vx, vy]T with a linear motion model F (constant velocity). The nonlinear measurement function is
H i ( x ) = ( x a x , i ) 2 + ( y a y , i ) 2 ,
where i = 1, 2, 3,
zk = h(xk) + vk.
The EKF linearizes this function using the Jacobian matrix:
H k = h ( x ) x x = x k | k 1 ,
where the anchor row i is approximately equal to
h i x = x a x , i d i , h i y = y a y , i d i , h i v x = 0 , h i v y = 0 ,
using
d i x = x a x , i 2 + y a y , i 2 + ε
where a small ε may be added in implementation to avoid division by zero to ensure numerical stability. Then, the same Kalman linear update equations are implemented, but using Hk. The innovation is computed as
yk = zk − h(xk∣k−1),      
Sk = HkPk∣k−1HkT + R,
Kk = Pk∣k−1HkTSk − 1  
In this way, EKF deals with the nonlinearity of UWB (distance) measurements through a local linear approximation around the expected state [28,29,30].

3.6. Unscented Kalman Filter (UKF)

The UKF is employed to estimate the tag position by fusing UWB range measurements with IMU data. Unlike the EKF, the UKF avoids explicit linearization by propagating a set of deterministically chosen sigma points through nonlinear system dynamics. The system state is defined as
x k = [ x k   y k   v x , y   v y , k ] T
where (xk, yk) represents the position and (vx,k, vy,k) the velocity.
For a state of dimension nnn, a set of 2n + 1 sigma points is generated:
X 0 = x , X i = x + ( ( n + λ ) P ) i , X i + n = x ( ( n + λ ) P ) i ,
where i = 1, …, n, with weights
W 0 ( m ) = λ n + λ , W 0 ( c ) = λ n + λ + ( 1 α 2 + β ) , W i ( m ) = W i ( c ) 1 2 ( n + λ )
In contrast to a standard constant-velocity model, the proposed approach incorporates IMU acceleration as an external input to the motion model. The continuous-time dynamics are defined as
x ¯ = v x , y ¯ = v y , v ¯ x = a x , v ¯ y = a y
After discretization, the state evolution becomes:
x k + 1 = x k + v x , k t + 1 2 a x t 2 y k + 1 = y k + v y , k t + 1 2 a y t 2
v x , k + 1 = v x , k + a x t v y , k + 1 = v y , k + a y t
The acceleration components ax, ay are derived from the IMU through
  • Coordinate transformation (body → world frame):
    a w = R ( q ) a b
  • Low-pass filtering:
    a f = α a f , p r e v + ( 1 α ) a r a w
  • Bias estimation (during quasi-static conditions):
    b = 1 β b + β a f
    a = a f b
Thus, the IMU contributes directly to the state transition function:
X i k + 1 = f ( X i k , a , t )
which improves short-term motion prediction (dead-reckoning).
The measurement vector consists of distances to anchors:
z k = d 1 d 2 d 3
with
d j = ( x a x , j ) 2 + ( y a y , j ) 2 .
Each sigma point is projected into measurement space:
Z i = h ( X i ) , z = h ( x ) = ( x a x , 1 ) 2 + ( y a y , 1 ) 2 ( x a x , 2 ) 2 + ( y a y , 2 ) 2 ( x a x , 3 ) 2 + ( y a y , 3 ) 2 ,
The predicted measurement mean and covariance
z ^ k = W i ( m ) Z i P z z = W i ( c ) ( Z i z ^ k ) ( Z i z ^ k ) T P x z = W i ( c ) ( X i x ^ k ) ( Z i z ^ k ) T
The Kalman gain is derived using the unscented transform as K = P x z P z z 1 , and the state update is expressed as follows
x k | k = x k | k 1 + K ( z k z ^ k ) P k | k = P k | k 1 K P z z K T
The proposed framework performs loosely coupled sensor fusion: IMU data are integrated in the prediction step as control inputs, and the UWB measurements are used in the update step for absolute position correction. This complementary structure enables
  • IMU → smooth short-term motion (dead-reckoning);
  • UWB → long-term drift correction.
Finally, the system performs integrated sensing and localization through a time-synchronized processing pipeline, where environmental measurements and localization estimates are aligned in real time. This enables direct spatial association of detected events with their corresponding positions, forming a unified spatiotemporal representation of the environment [31,32,33].

3.7. Environmental Events Analysis and Detection Algorithm

The environmental event analysis and detection algorithm employs a rule-based event prediction approach that transforms multi-sensor readings into a probabilistic description of the environmental condition, such as normal conditions, VOC leaks, smoke, or fire.

3.7.1. Definition of Weights Used for Measured Factors

Decision-making in the detection and analysis algorithm relies on the weighting coefficients assigned to environmental sensor features relevant to a given event. The weights were determined based on a series of practical experiments and observations of the algorithm’s response under different scenarios. In particular, the impact of different weight configurations was evaluated with respect to decision accuracy and the avoidance of misclassification or false alarms. This considers the expected characteristics of each event type, including VOC leaks, smoke, and fire. Fixed weights were assigned to each feature-event combination and remain constant during operation, while being adjustable based on system performance if required. Higher weights were assigned to features strongly associated with a particular event (e.g., particulate matter for smoke and temperature for fire). In addition, negative weights were introduced to reduce the influence of misleading or non-discriminative signals (e.g., the effect of particulate matter alone on VOC events). Table 2 illustrates the weights used in the weighting functions.

3.7.2. Feature Extraction

The process begins with real-time acquisition of environmental sensor data, including temperature, humidity, VOC index, NOx index, total volatile organic compound (TVOC) concentration, carbon dioxide equivalent (eCO2), and particulate matter concentrations (PM2.5). Sensors used are PMSA003I and BMV080. The algorithm does not rely solely on raw sensor values; instead, it constructs a dynamic baseline for each variable under normal conditions and calculates the relative deviation from this baseline:
r x = x b m a x ( b , 1 )
where x is the current measurement and b is the baseline. Absolute baseline values below 1 are ignored to prevent division by zero and avoid inflated deviations. This metric indicates how much the current measurement deviates from normal environmental conditions. Additionally, the algorithm calculates the time rates of change for each parameter to capture rapid variations that may be more indicative of an event than absolute values:
x ˙ = x t x ( t 1 ) t
Critical parameters include d ( T V O C ) d t , d ( P M 2.5 ) d t , d ( e C O 2 ) d t , d ( T ) d t , and d ( R H ) d t .
The program creates weighted scores for each possible event type, combining multiple indicators into a single score for VOC leakage, smoke, and fire.
  • VOC leaks are characterized by high TVOC concentrations and VOC index, with low particulate matter. The event score increases with Δr (TVOC) and Δr (VOC index) over time and decreases if fine particles rise significantly.
  • Smoke is indicated primarily by a rapid increase in PM2.5 rate of change, with minor contribution from TVOC.
  • Fire is considered a complex combustion event, with intensity increasing when multiple parameters rise simultaneously, including PM2.5, eCO2, and temperature over time.
The event scoring logic can be expressed as
S c o r e e v e n t = i w i f i ( x i , x ˙ i , r ( x i ) )
where wi represents the experimental weights, xI are measured variables (e.g., TVOC, PM2.5, or eCO2), x ˙ i is the time derivative of xi, and fi incorporates both the relative deviation and the rate of change.
Each feature fi combines multiple components derived from sensor data:
f i = w 1 . r x i + w 2 . x ˙ i + w 3 . ( x i b i )
where
  • w1, w2, and w3 are weighting coefficients that determine the relative contribution of each feature;
  • w1 corresponds to the weight of the relative change Δr(xi);
  • w2 corresponds to the weight of the rate of change x ˙ i ;
  • w3 corresponds to the weight of the absolute deviation from baseline (xi − bi).
This formulation follows established principles in time-series anomaly detection, where multiple complementary features are combined to capture deviations from normal behavior [34,35,36].
An environmental event is identified when the resulting score surpasses a predefined threshold.
S c o r e e v e n t > τ e
Here, τ denotes an empirically determined threshold specific to each event, derived from experimental observations. The index e indicates the category of the environmental event (such as a VOC leak, smoke, or fire). These thresholds are event-specific (VOC leak, smoke, and fire) and remain fixed during system operation.
For each event category, an independent score is calculated: S c o r e V O C , S c o r e S m o k e , S c o r e F i r e . The final decision is obtained by selecting the event with the highest score, provided that the required activation condition is satisfied. In cases of overlapping signals, priority is given to fire detection due to its critical safety relevance, followed by smoke detection, and finally VOC leakage.
To avoid rapid oscillation in event classification, the system employs a two-state time-stabilization mechanism:
  • The candidate state represents a potentially new event.
  • The current steady state represents the confirmed environmental condition.
The system transitions from steady state to candidate state only if the same candidate event is detected for a user-defined number of consecutive cycles. This allows the user to adjust sensitivity before final classification. Otherwise, the previous state remains unchanged. This logic reduces false alarms and prevents positive errors. Once confirmed, the system provides a visual warning indicating the event type, event color, approximate confidence level, and precise location of the detected event.

3.7.3. Thresholds and Baseline Adaptation Strategy

The selected thresholds and weighting factors were determined empirically based on experimental observations under controlled indoor scenarios. In addition to the assessment mechanism described in the previous section, the proposed algorithm incorporates indicative threshold levels and an adaptive baseline update mechanism to ensure robust performance under varying environmental conditions. The detection process uses thresholds that can be adjusted based on user feedback and the baseline level of the operating environment. These thresholds are derived from empirical observations and typical indoor air quality ranges. The current threshold values are VOC index = 150 and NOx index = 5, TVOC = 67 ppb, and PM2.5 level = 150 mg/L, which significantly exceed normal background conditions and act as trigger levels for event detection. However, these thresholds are not used as strict binary decision boundaries but rather as soft trigger conditions within the assessment framework, allowing gradual transitions instead of abrupt classifications. The baseline for each environmental parameter is initialized from the first valid measurements, requiring a warm-up period of approximately 5 min after the first operation of the sensor node to ensure the completion of the heating phase. After initialization, the baseline is continuously updated using a low-rate exponential moving average:
b t + 1 = 1 α b t + α x t
where α is a small smoothing coefficient (set to 0.01 in this work). This formulation enables slow adaptation to long-term environmental changes while maintaining sensitivity to transient events. Importantly, baseline updating is performed only under stable “normal” conditions and is temporarily suspended when abnormal events are detected. This prevents contamination of the reference baseline during hazardous situations and improves the robustness of anomaly detection.

4. Experimental Tests and Results

Two types of practical tests were conducted to evaluate the system’s performance. The first set of experiments assessed the environmental event analysis algorithm, focusing on the detection of smoke, fire, gas leaks, and chemical vapors. The second set evaluated the indoor tracking and positioning system under different Kalman filtering strategies, comparing their accuracy and robustness. The details of both tests are described in the following subsections.

4.1. Environmental Events Analysis and Detection Tests

These experiments targeted three types of environmental incidents expected in chemical handling facilities: chemical (VOC) leaks, smoke, and fire.
For the detection of chemical or VOC leaks, 99% ethanol was chosen to evaluate the algorithm’s performance. Very small volumes of ethanol (10, 30, 50, and 100 microliters) were used, placed in a Petri dish 1 m away from the sensor node.
The algorithm successfully detected VOC leakage for all tested samples. Figure 4a–c illustrates the monitoring program before and after the alarm threshold was reached, and Figure 4d shows the corresponding SGP41 sensors’ response.
To test the smoke event, a special type of spray, “LogiLink Rauchmelder” Test-Spray (2direct GmbH, Schalksmühle, Germany), designed for testing smoke alarms in homes, was used. The test was performed by spraying a sample of the aerosol from a distance of 1 m towards a sensor node at a fixed location. The test was repeated 10 times, and the algorithm succeeded in 8 out of 10 trials; two trials produced false-positive identifications. Figure 5 shows monitoring screenshots before and after spraying the test aerosol for smoke detection.
Due to the presence of a fire-sensitive system in the laboratories, a special gas-testing chamber made of polyvinyl chloride (PVC) was used to completely cover the sensor node and prevent the smoke produced during the experiment from escaping. A candle was placed inside the chamber, and the sensor node test began by placing the sensor node outside, then lighting the candle, then inserting the sensor node inside the chamber, and monitoring the sensor node via the monitoring program. This experiment was repeated 10 times, and the detection result was correct for all ten tests. Figure 6a shows the test chamber; Figure 6b,c show a screenshot of the monitoring program before and after the fire was lit inside the test chamber.

4.2. Indoor Tracking and Positioning Tests with Kalman Filtering

The objective of these experiments was to determine the optimal Kalman filter for improving positioning performance accuracy under prevalent no-line-of-sight (NLoS) conditions in indoor environments. The tracking system tests were conducted in two adjacent automated laboratories with numerous large obstacles obstructing UWB signal propagation. The laboratories are separated by a thick concrete wall and aluminum-framed glass doors that allow movement between them. Extensive laboratory furniture extends along the dividing wall, creating a challenging indoor environment (see Figure 7). Four anchors were installed in each laboratory at a height of two meters from the floor to mitigate the effects of NLoS. The actual test path was predefined and physically fixed on the floor across both laboratories (Room 1 and Room 2). The trajectory was designed to intentionally traverse different indoor conditions, including line-of-sight (LoS) and non-line-of-sight (NLoS) regions caused by walls, doors, and laboratory equipment. This setup enables a realistic evaluation of the tracking system under varying propagation conditions. The recorded results are stored on the monitoring server as log files containing the coordinate data for each algorithm or filter used for each moving marker. Figure 8 shows the test results for the tracking system: (a) using the least squares algorithm, (b) using the linear Kalman filter (KF), (c) using the extended Kalman filter (EKF), and (d) using the unscented Kalman filter (UKF).

4.3. Quantitative Localization Error Evaluation

To quantitatively evaluate the localization accuracy, 23 manually surveyed reference points were selected in Room 1 under representative LoS and NLoS conditions. For each reference point, the mobile tag was kept stationary, and the estimated coordinates obtained by LSQ, KF, EKF, and UKF were recorded over the measurement interval. The mean estimated position for each method was then computed, and the Euclidean localization error with respect to the reference coordinates was calculated as
e = ( x e s t x r e f ) 2 + ( y e s t y r e f ) 2
where x r e f , y r e f denotes the manually measured reference position, and ( x e s t , y e s t ) represents the estimated tag position.
The quantitative results confirm the advantage of nonlinear filtering methods over baseline approaches. In particular, the UKF achieved the best overall performance, with a mean error of 39.72 cm and an RMSE of 43.03 cm, compared to 41.26 cm and 44.58 cm for EKF, 79.74 cm and 84.54 cm for KF, and 79.13 cm and 83.80 cm for LSQ. Relative to LSQ, the UKF reduced the mean localization error by approximately 49.8% and the RMSE by approximately 48.7%. Table 3 shows the quantitative localization error comparison for LSQ, KF, EKF, and UKF.

5. Discussion and Conclusions

The practical tests conducted on the proposed system provide strong evidence of its effectiveness in both environmental event detection and indoor tracking. The environmental event analysis algorithm demonstrated robust performance, achieving full detection of ethanol leaks and fire events, while smoke detection showed a slightly lower success rate with occasional misclassification. These results indicate that the algorithm can reliably identify hazardous events using real-time sensor data, while the integration of dynamic baselines and time-derivative analyses allows it to account for both absolute and rapid changes in environmental conditions. The use of a two-stage stabilization mechanism further reduces false alarms, ensuring that transient fluctuations in sensor readings do not trigger unwarranted alerts. In addition, the observed performance highlights the suitability of combining multiple low-cost sensors to achieve robust detection capabilities without relying on expensive analytical instrumentation, which is particularly relevant for scalable deployment scenarios.
The tracking and positioning system also exhibited promising results. The active room anchor selection algorithm effectively mitigates the influence of anchors from adjacent rooms, which could otherwise introduce errors due to signal propagation through walls. While the least squares and linear Kalman filter approaches provide baseline tracking performance, significant improvements were observed when nonlinear filtering techniques were applied. The extended Kalman filter (EKF) reduced errors caused by nonlinearity in UWB distance measurements, and the unscented Kalman filter (UKF) further enhanced accuracy and smoothness by fusing UWB and inertial measurement unit data. Even under challenging NLoS conditions, the UKF-based system maintained reliable positioning, highlighting the value of sensor fusion in indoor localization. In addition to the qualitative trajectory comparison shown in Figure 8, the quantitative evaluation based on 23 manually surveyed reference points confirms the superiority of the nonlinear filtering approaches over LSQ and KF. The UKF achieved the best overall performance, with a mean error of 39.72 cm and an RMSE of 43.03 cm, followed closely by the EKF. These results indicate that the improvement is not only visual, but also supported by objective numerical error metrics under representative indoor LoS/NLoS conditions. These results emphasize that incorporating motion dynamics and inertial information is essential for achieving stable localization in complex indoor environments.
Unlike simple post-processing approaches, the proposed system maintains a continuous spatiotemporal coupling between sensing and localization, enabling real-time mapping of environmental events. Although the current implementation does not employ fully joint probabilistic fusion, it provides a practical integration framework that combines motion-aware localization with environmental context. This work demonstrates that a low-cost system can simultaneously achieve environmental event detection and precise indoor tracking, offering real-time hazard identification and localization. From an application perspective, this approach is particularly beneficial for automated laboratories, smart industrial environments, and safety-critical infrastructures, where rapid and reliable response to hazardous events is required. The modular architecture of the proposed system further supports its adaptability and integration into existing IoT-based monitoring frameworks. For future research, expanding the detection tests to a broader range of volatile organic compounds and optimizing the algorithmic weighting of environmental factors will help to further enhance prediction accuracy. Additionally, while UKF improves resilience to NLoS errors, some residual positioning errors remain, suggesting the need for further refinement of the system architecture and filtering strategies, for example, through advanced fusion methods or adaptive filtering techniques. Overall, the presented approach provides a scalable and practical solution for chemical safety in laboratory and industrial environments, integrating predictive analytics and sensor-fusion localization in a cohesive framework. Future work will investigate tighter coupling between sensing and localization, including joint probabilistic estimation and cross-module feedback.

Author Contributions

Conceptualization, M.F.R.A.-O., T.R. and K.T.; practical investigations and measurements, M.F.R.A.-O.; methodology, M.F.R.A.-O. and K.T.; formal analysis, M.F.R.A.-O.; writing—original draft preparation, M.F.R.A.-O.; writing—review and editing, M.F.R.A.-O. and K.T.; visualization, M.F.R.A.-O.; supervision, K.T.; project administration, T.R. and K.T. All authors have read and agreed to the published version of the manuscript.

Funding

This research is part of the Synergy Project ADAM (Autonomous Discovery of Advanced Materials), funded by the European Research Council (grant number 856405).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data presented in this study are available on request from the corresponding author due to institutional restrictions and the use of proprietary software and resources belonging to our institute.

Acknowledgments

The authors would like to thank Anne Reichelt, Sybille Horn, and Heiko Engelhardt for their help and technical support.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Frederickson, L.B.; Petersen-Sonn, E.A.; Shen, Y.; Hertel, O.; Hong, Y.; Schmidt, J.; Johnson, M.S. Low-Cost Sensors for Indoor and Outdoor Pollution. In Air Pollution Sources, Statistics and Health Effects; Springer: New York, NY, USA, 2021; pp. 423–453. [Google Scholar]
  2. Zimmerman, N.; Presto, A.A.; Kumar, S.P.N.; Gu, J.; Hauryliuk, A.; Robinson, E.S.; Robinson, A.L.; Subramanian, R. A Machine Learning Calibration Model Using Random Forests to Improve Sensor Performance for Lower-Cost Air Quality Monitoring. Atmos. Meas. Tech. 2018, 11, 291–313. [Google Scholar] [CrossRef]
  3. Al-Okby, M.F.R.; Junginger, S.; Roddelkopf, T.; Thurow, K. RTIMS: Real-Time Indoor Monitoring Systems: A Comprehensive Review. Appl. Sci. 2025, 15, 13217. [Google Scholar] [CrossRef]
  4. Silva, G.; Duarte, J.; Baptista, J.S.; Rufo, J.C. Low-Cost Sensors for Indoor Air Quality Monitoring: A Systematic Review of Accuracy, Applications, and Limitations. J. Air Waste Manag. Assoc. 2026, 76, 315–341. [Google Scholar] [CrossRef]
  5. Yu, M.; Yuan, H.; Li, K.; Wang, J. Research on Multi-Detector Real-Time Fire Alarm Technology Based on Signal Similarity. Fire Saf. J. 2023, 136, 103724. [Google Scholar] [CrossRef]
  6. Zhuang, Y. A Multi-Sensor Based Fire Detection Technique. In Proceedings of the 4th International Conference on Computer, Artificial Intelligence and Control Engineering; Association for Computing Machinery: New York, NY, USA, 2025; pp. 403–406. [Google Scholar]
  7. Al-Okby, M.F.R.; Neubert, S.; Roddelkopf, T.; Fleischer, H.; Thurow, K. Evaluating of IAQ-Index and TVOC as Measurements Parameters for IoT-Based Hazardous Gases Detection and Alarming Systems. In Proceedings of the 2022 IEEE 20th Jubilee World Symposium on Applied Machine Intelligence and Informatics (SAMI), Poprad, Slovakia, 2–5 March 2022; pp. 000291–000298. [Google Scholar]
  8. Rathbone, C.J.; Bousiotis, D.; Rose, O.G.; Pope, F.D. Using Low-Cost Sensors to Assess Common Air Pollution Sources across Multiple Residences. Sci. Rep. 2025, 15, 1803. [Google Scholar] [CrossRef]
  9. Ge, H.; Sun, Z.; Chiba, Y.; Koshizuka, N. Accurate Indoor Location Awareness Based on Machine Learning of Environmental Sensing Data. Comput. Electr. Eng. 2022, 98, 107676. [Google Scholar] [CrossRef]
  10. Tan, X.; Sun, Z.; Wang, P.; Sun, Y. Environment-Aware Localization for Wireless Sensor Networks Using Magnetic Induction. Ad Hoc Netw. 2020, 98, 102030. [Google Scholar] [CrossRef]
  11. Pham, M.; Yang, D.; Sheng, W. A Sensor Fusion Approach to Indoor Human Localization Based on Environmental and Wearable Sensors. IEEE Trans. Autom. Sci. Eng. 2019, 16, 339–350. [Google Scholar] [CrossRef]
  12. Trisanto, A.; Nugraha, A.V.; Taufik, M.; Sitompul, E.; Syafei, N.S.; Supriyana, E.; Turnip, A. Environmental Sensing Using LiDAR Sensor with Simultaneous Localization and Mapping Method Based on Robot Operating System. Internetworking Indones. J. 2022, 14, 39–45. [Google Scholar]
  13. Kumar, K.; Verma, A.; Verma, P. IoT-HGDS: Internet of Things Integrated Machine Learning Based Hazardous Gases Detection System for Smart Kitchen. Internet Things 2024, 28, 101396. [Google Scholar] [CrossRef]
  14. Farooq, S.; Bereczki, A.; Habib, M.; Costa, I.; Cardozo, O. High-Performance Plasmonics Nanostructures in Gas Sensing: A Comprehensive Review. Med. Gas Res. 2025, 15, 1–9. [Google Scholar] [CrossRef] [PubMed]
  15. Mahapatra, C. Recent Advances in Medical Gas Sensing with Artificial Intelligence–Enabled Technology. Med. Gas Res. 2025, 15, 318. [Google Scholar] [CrossRef] [PubMed]
  16. Pavan Krishna, U.; Janarthanan, N.; Shajilin Loret, J.B. Edge-Based Hazardous Gas Classification Using Multimodal Sensor Fusion and Hybrid Machine Learning. In Proceedings of the 2025 5th International Conference on Mobile Networks and Wireless Communications (ICMNWC), Tumkūr, India, 10–11 December 2025; pp. 1–8. [Google Scholar]
  17. Mounier, E.; Elhabiby, M.; Korenberg, M.; Noureldin, A. LiDAR-Based Multisensor Fusion with 3-D Digital Maps for High-Precision Positioning. IEEE Internet Things J. 2025, 12, 7209–7224. [Google Scholar] [CrossRef]
  18. Devi, H.; Kumar, P.; Govindarajan, V.; Kumar, S.; Lohano, R.; Hitesh, H.; Shiwlani, A. A Comparative Study of Classical Machine Learning and Deep Learning Approaches for Human Behavior Detection Using Multisensor Data. IEEE Access 2026, 14, 25311–25325. [Google Scholar] [CrossRef]
  19. Sensirion AG. SGP41—VOC and NOx Sensor for Indoor Air Quality Applications. Available online: https://sensirion.com/products/catalog/SGP41 (accessed on 4 March 2026).
  20. Sensirion AG. SGP30—Multi-Gas (VOC and CO2eq) Sensor. Available online: https://sensirion.com/products/catalog/SGP30 (accessed on 4 March 2026).
  21. Sensirion AG. SHT41—±1.8%/Max. ±2.5% RH Digital Humidity and Temperature Sensor. Available online: https://sensirion.com/products/catalog/SHT41 (accessed on 4 March 2026).
  22. Bosch Sensortec BMV080. Available online: https://www.bosch-sensortec.com/en/products/environmental-sensors/particulate-matter-sensor/bmv080/ (accessed on 4 March 2026).
  23. PMSA003—Laser PM2.5 Sensor-Plantower Technology. Available online: https://www.plantower.com/en/products_33/77.html (accessed on 4 March 2026).
  24. Adafruit Industries. Adafruit 9-DOF Orientation IMU Fusion Breakout—BNO085 (BNO080). Available online: https://www.adafruit.com/product/4754 (accessed on 16 February 2026).
  25. Al-Okby, M.F.R.; Junginger, S.; Roddelkopf, T.; Thurow, K. UWB-Based Real-Time Indoor Positioning Systems: A Comprehensive Review. Appl. Sci. 2024, 14, 11005. [Google Scholar] [CrossRef]
  26. Feng, S.; Li, X.; Zhang, S.; Jian, Z.; Duan, H.; Wang, Z. A Review: State Estimation Based on Hybrid Models of Kalman Filter and Neural Network. Syst. Sci. Control Eng. 2023, 11, 2173682. [Google Scholar] [CrossRef]
  27. Bai, Y.; Yan, B.; Zhou, C.; Su, T.; Jin, X. State of Art on State Estimation: Kalman Filter Driven by Machine Learning. Annu. Rev. Control 2023, 56, 100909. [Google Scholar] [CrossRef]
  28. Omeragić, T.; Velagić, J. Tracking of Moving Objects Based on Extended Kalman Filter. In Proceedings of the 2020 International Symposium ELMAR, Zadar, Croatia, 14–15 September 2020; pp. 137–140. [Google Scholar]
  29. Thuy, D.V.; Belov, M.P.; Phuong, T.H. State Estimation Based Adaptive Extended Kalman Filter for Moving Object Tracking with Angle-Only Measurements. In Proceedings of the 2021 IEEE Conference of Russian Young Researchers in Electrical and Electronic Engineering (ElConRus), Moscow Russia, 26–29 January 2021; pp. 866–869. [Google Scholar]
  30. Yang, S.; Baum, M. Extended Kalman Filter for Extended Object Tracking. In Proceedings of the 2017 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), New Orleans, LA, USA, 5–9 March 2017; pp. 4386–4390. [Google Scholar]
  31. Zhao, J.; Zhang, Y.; Li, S.; Wang, J.; Fang, L.; Ning, L.; Feng, J.; Zhang, J. An Improved Unscented Kalman Filter Applied to Positioning and Navigation of Autonomous Underwater Vehicles. Sensors 2025, 25, 551. [Google Scholar] [CrossRef]
  32. Madhukar, P.S.; Prasad, L.B. State Estimation Using Extended Kalman Filter and Unscented Kalman Filter. In Proceedings of the 2020 International Conference on Emerging Trends in Communication, Control and Computing (ICONC3), Lakshmangarh, India, 21–22 February 2020; pp. 1–4. [Google Scholar]
  33. Cheng, L.; Lin, H. Sequential Fusion Unscented Kalman Filter for Multi-Rate Multi-Sensor Nonlinear Systems with Correlated Noises. In Proceedings of the 2025 37th Chinese Control and Decision Conference (CCDC), Xiamen, China, 16–19 May 2025; pp. 5383–5388. [Google Scholar]
  34. Zhang, W.; Li, X.; Li, J.; Ma, J.; Kong, P.; Zhang, S.; Liu, Y. A Time–Frequency Contrastive Learning Model for Anomaly Detection in Multivariate Time Series. Complex Intell. Syst. 2025, 11, 475. [Google Scholar] [CrossRef]
  35. Zamanzadeh Darban, Z.; Webb, G.I.; Pan, S.; Aggarwal, C.; Salehi, M. Deep Learning for Time Series Anomaly Detection: A Survey. ACM Comput. Surv. 2024, 57, 15. [Google Scholar] [CrossRef]
  36. Correia, L.; Goos, J.-C.; Klein, P.; Bäck, T.; Kononova, A.V. Online Model-Based Anomaly Detection in Multivariate Time Series: Taxonomy, Survey, Research Challenges and Future Directions. Eng. Appl. Artif. Intell. 2024, 138, 109323. [Google Scholar] [CrossRef]
Figure 1. Top view of the components of the sensor node used.
Figure 1. Top view of the components of the sensor node used.
Sensors 26 02921 g001
Figure 2. MaUWB_ESP32S3 UWB module.
Figure 2. MaUWB_ESP32S3 UWB module.
Sensors 26 02921 g002
Figure 3. Flowchart of the active room selection algorithm.
Figure 3. Flowchart of the active room selection algorithm.
Sensors 26 02921 g003
Figure 4. Screenshots of the monitoring program for VOC leak detection (a) before the sample is placed, (b) after the sample is placed and before reaching the alarm threshold, (c) after crossing the alarm threshold, and (d) the SGP41 sensor responses for the tested ethanol volumes.
Figure 4. Screenshots of the monitoring program for VOC leak detection (a) before the sample is placed, (b) after the sample is placed and before reaching the alarm threshold, (c) after crossing the alarm threshold, and (d) the SGP41 sensor responses for the tested ethanol volumes.
Sensors 26 02921 g004
Figure 5. Screenshots of the monitoring program for smoke detection (a) before spraying the test spray, (b) after spraying the test spray.
Figure 5. Screenshots of the monitoring program for smoke detection (a) before spraying the test spray, (b) after spraying the test spray.
Sensors 26 02921 g005
Figure 6. Testing for fire detection: (a) test chamber, screenshots of the monitoring program (b) before the fire, (c) after the fire.
Figure 6. Testing for fire detection: (a) test chamber, screenshots of the monitoring program (b) before the fire, (c) after the fire.
Sensors 26 02921 g006
Figure 7. Test environments (ac) Lab 1, and (df) Lab 2.
Figure 7. Test environments (ac) Lab 1, and (df) Lab 2.
Sensors 26 02921 g007
Figure 8. System tracking testing for movable tag in Lab. 1 and Lab. 2 using (a) least square, (b) Kalman filter, (c) extended Kalman filter, (d) unscented Kalman filter.
Figure 8. System tracking testing for movable tag in Lab. 1 and Lab. 2 using (a) least square, (b) Kalman filter, (c) extended Kalman filter, (d) unscented Kalman filter.
Sensors 26 02921 g008aSensors 26 02921 g008b
Table 1. Overview of sensors and hardware components used in the proposed system.
Table 1. Overview of sensors and hardware components used in the proposed system.
Component TypeModelManufacturerMeasured ParametersMeasurement Range/OutputInterface
UWB ModuleMaUWB_ESP32S3MakerfabsDistance, position
(via UWB)
cm-level accuracyUART/SPI
UWBDWM3000QorvoTime-of-flight-SPI
MicrocontrollerESP32-S3Espressif SystemsData processing, communication-Wi-Fi/BT
Gas SensorSGP41Sensirion AGVOC index, NOx index0–500 (index)I2C
Gas SensorSGP30Sensirion AGTVOC, eCO2TVOC: 0–60,000 ppb; eCO2: 400–60,000 ppmI2C
Environmental SensorSHT41Sensirion AGTemperature, humidity−40–125 °C; 0–100% RHI2C
PM SensorPMSA003IPlantowerPM1, PM2.5, PM100–1000 µg/m3I2C
PM SensorBMV080Bosch SensortechPM2, PM2.5, PM100–1000 µg/m3 (1 µg/m3 resolution)I2C
IMUBNO085Bosch Sensortech/Hillcrest LaboratoriesAcceleration, rotation, orientation9-DOF output (quaternion, Euler angles)I2C, SPI
DisplayOLED (1.3″) Visualization128 × 64 pixelsI2C, SPI
Table 2. Event-dependent feature weighting scheme for multi-sensor fusion.
Table 2. Event-dependent feature weighting scheme for multi-sensor fusion.
EventFeatureWeightInterpretation
VOC leakTVOC change2.5primary indicator of VOC release
VOC leakVOC index change2.5supporting gas-quality indicator
VOC leakPM change−1.5suppresses confusion with smoke
SmokePM change3.0dominant smoke feature
SmokePM slope0.06fast smoke buildup
SmokeTVOC change0.4secondary contribution
FirePM change2.2combustion particles
FireeCO2 change2.2combustion-related gas accumulation
FireTemperature change3.0strongest fire indicator
FireNOx index change0.8secondary combustion-related cue
Table 3. Quantitative localization error comparison for LSQ, KF, EKF, and UKF.
Table 3. Quantitative localization error comparison for LSQ, KF, EKF, and UKF.
MethodMean Error (cm)RMSE (cm)Std (cm)Max Error (cm)95th Perc. (cm)Median (cm)
LSQ79.1383.8028.22135.43134.0076.68
KF79.7484.5428.69135.24132.7176.18
EKF41.2644.5817.2779.7269.5240.44
UKF39.7243.0316.9376.8665.1138.56
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Al-Okby, M.F.R.; Roddelkopf, T.; Thurow, K. Low-Cost Portable Sensor Node for Gas and Chemical Leak Detection with Kalman-Filtering-Based UWB Localization. Sensors 2026, 26, 2921. https://doi.org/10.3390/s26102921

AMA Style

Al-Okby MFR, Roddelkopf T, Thurow K. Low-Cost Portable Sensor Node for Gas and Chemical Leak Detection with Kalman-Filtering-Based UWB Localization. Sensors. 2026; 26(10):2921. https://doi.org/10.3390/s26102921

Chicago/Turabian Style

Al-Okby, Mohammed Faeik Ruzaij, Thomas Roddelkopf, and Kerstin Thurow. 2026. "Low-Cost Portable Sensor Node for Gas and Chemical Leak Detection with Kalman-Filtering-Based UWB Localization" Sensors 26, no. 10: 2921. https://doi.org/10.3390/s26102921

APA Style

Al-Okby, M. F. R., Roddelkopf, T., & Thurow, K. (2026). Low-Cost Portable Sensor Node for Gas and Chemical Leak Detection with Kalman-Filtering-Based UWB Localization. Sensors, 26(10), 2921. https://doi.org/10.3390/s26102921

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop