Next Article in Journal
Innovative Technologies to Improve Occupational Safety in Mining and Construction Industries—Part I
Previous Article in Journal
EMFE-YOLO: A Lightweight Small Object Detection Model for UAVs
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Sensor-Driven RSSI Prediction via Adaptive Machine Learning and Environmental Sensing

by
Anya Apavatjrut
OASYS Research Group, Computer Engineering, Chiang Mai University, Chiang Mai 50200, Thailand
Sensors 2025, 25(16), 5199; https://doi.org/10.3390/s25165199
Submission received: 8 July 2025 / Revised: 18 August 2025 / Accepted: 19 August 2025 / Published: 21 August 2025

Abstract

Received Signal Strength Indicator (RSSI) prediction is valuable for network planning and optimization as it helps determine the optimal placements of wireless access points and enables better coverage planning. It is also crucial for efficient handover management between cells or access points, reducing dropped connections and improving service quality. Additionally, RSSI prediction supports indoor positioning systems, power management optimization, and cost-efficient network deployment. Path loss models have historically served as the foundation for RSSI prediction, providing a theoretical framework for estimating signal strength degradation. However, modern machine learning approaches have emerged as a revolutionary solution for network optimization, providing more versatile and data-driven methods to enhance wireless network performance. In this paper, an adaptive machine learning framework integrating environmental sensing parameters such as temperature, relative humidity, barometric pressure, and particulate matter for RSSI prediction is proposed. Performance analysis reveals that RSSI values are influenced by environmental factors through complex, non-linear interactions, thereby challenging the conventional linear assumptions of traditional path loss models. The proposed model demonstrates improved predictive accuracy over the baseline, with relative increases in variance explained of 6.02% and 2.04% compared to the baseline model excluding and including environmental parameters, respectively. Additionally, the root mean squared error is reduced to 1.40 dB. These results demonstrate that cognitive methods incorporating environmental data can substantially enhance RSSI prediction accuracy in wireless communications.

1. Introduction

A Received Signal Strength Indicator (RSSI) is a crucial metric that measures the power level of a radio signal received by a wireless device. Expressed in decibels (dB) or decibel-milliwatts (dBm), RSSI quantifies the signal strength at the receiving antenna and serves as an indicator of link quality and reliability.
In recent wireless technologies, the RSSI plays a vital role in optimizing network performance. It enables the identification and mitigation of interference sources, enhancing the overall quality of services [1,2]. By leveraging RSSI data, network operators can anticipate signal strength variations and dynamically adapt transmission power, routing strategies, and sleep cycles. This optimization leads to reduced power consumption and improved network reliability [3,4]. Additionally, RSSI information facilitates intelligent decision-making regarding base station placement, antenna configurations, and power management [1,5]. In scenarios where GPS signals are ineffective, the RSSI serves as a valuable alternative for range-based localization [6,7].
Traditional RSSI estimation at varying distances relies on path loss models to characterize signal attenuation between the transmitter and the receiver. However, these models face several limitations in accurately predicting real-world signal behavior. First, radio signals are not only susceptible to path loss but also to various other factors that affect signal degradation, such as fading and multi-path propagation. Additionally, the path loss model’s performance typically depends on the specific environment where it is deployed. As a result, specialized knowledge of radio propagation is required to identify an appropriate model for each specific location. Both empirical models, which rely on statistically collected data, and linear regression methods have been introduced to optimize path loss parameters.
In contrast to conventional approaches that rely on regression to adjust environment-specific parameters in path loss models, this paper introduces a fully dynamic and adaptive machine learning approach that operates independently of traditional modeling, offering greater flexibility and adaptability. Building on the study by González-Palacio et al. [8], which employed multiple linear regressions to model path loss and establish a predictive baseline, this paper introduces a novel adaptive machine learning framework for RSSI prediction using the same dataset. The results demonstrate that the proposed technique improves RSSI prediction accuracy, and this improvement is further enhanced when environmental factors such as temperature, humidity, barometric pressure, and particulate matter (PM2.5) collected from sensors are included as features. These findings suggest that the relationship between the RSSI and environmental parameters may be more complex than previously assumed. Although individual linear correlations between parameters might be weak, analyzing them collectively through machine learning reveals intricate interactions, highlighting the cognitive nature of path loss modeling. This innovative approach enables more accurate and adaptive RSSI prediction, allowing network operators to optimize their systems based on real-time environmental conditions.

2. Literature Review

Traditional path loss models have been widely used for RSSI prediction in wireless communications. These models initially focused on basic parameters such as distance and frequency as the primary sources of signal attenuation [9,10]. Over time, researchers incorporated additional factors into these models, such as fading and multi-path effects from obstacles and environmental conditions, through extra path loss exponents in the log-distance path loss model [10,11,12].
The evolution of path loss modeling has led to increasingly specialized models for various environments and conditions. Researchers have developed specific models for urban, forest, and coastal areas [13], as well as indoor, campus, city, and suburban environments [14]. These models account for various factors including antenna characteristics [15], human presence and movement [16], terrain profiles with diffraction and fading [17], foliage thickness [18], tree height, and electromagnetic wave polarization [19].
Despite numerous attempts to create highly accurate path loss models, a significant limitation remains: these models are typically constrained by location-specific environmental characteristics, as multiple factors can affect signal propagation. Empirical path loss models were later developed to account for various environmental factors using extrapolated measurement data [13,20].
Machine learning has revolutionized wireless communication optimization in recent years, offering powerful new solutions across multiple domains. One particularly promising application is in path loss modeling, where machine learning algorithms were used to perform sophisticated regression analysis to optimize environmental parameters to enhance prediction accuracy. Early implementations successfully integrated machine learning techniques with conventional path loss models, enabling more precise parameter tuning based on specific environmental conditions. This hybrid approach represents an advancement in modeling wireless signal propagation and environmental interactions. There are several previous research studies that employed various techniques such as linear regression, support vector regression, random forests [21], and artificial neural networks [22] to account for environmental data and antenna characteristics [8,19,23,24]. Although regression-based path loss modeling may introduce accuracy improvements, the path loss model still relies on basic mathematical forms such as linear or exponential equations, which may not fully capture the complexity of real-world signal behavior.
More recently, researchers have introduced fully adaptive machine learning approaches for RSSI prediction. For instance, in [25], the authors focused on cellular configuration, leveraging antenna characteristics to predict the reference signal received power (RSRP). This method bypasses traditional path loss modeling, offering greater flexibility by avoiding the constraints of conventional models. Machine learning enables the identification of complex, non-linear relationships among environmental variables, resulting in more accurate and adaptive signal strength predictions.
In [26], Goldoni et al. collected an empirical dataset from LoRaWAN sensor nodes deployed in an agricultural field, which included environmental measurements such as temperature, relative humidity, barometric pressure, and soil characteristics. Their study underscored the potential of these variables for developing more accurate path loss and shadowing models. While the paper presented basic analyses of the relationships among these variables, it did not propose a unified model that integrates them for RSSI prediction.
The importance of incorporating environmental parameters into path loss modeling was further emphasized in [8], where multiple linear regressions were applied to enhance traditional log-distance path loss models. The study demonstrated the benefits of integrating environmental measurements to improve prediction accuracy and introduced two distinct modeling approaches to achieve this. Expanding on this research work, which employed multiple linear regression-based path loss model for estimation, this paper adopts a fundamentally different strategy by leveraging the dynamic and adaptive capabilities of machine learning to construct a purely data-driven framework for RSSI prediction. Instead of explicitly predicting the RSSI by modeling path loss, this paper proposes using trained models to capture complex, non-linear interactions among variables, thereby eliminating the reliance on predefined propagation models. This methodology aligns with the approach introduced by Fauzi et al. [25], where antenna characteristics were incorporated as predictive features within a machine learning framework. In contrast, the present study emphasizes environmental parameters as the primary features. Utilizing the same dataset examined by González-Palacio et al. [8], the selected environmental features include temperature, relative humidity, barometric pressure, and particulate matter (PM2.5).

3. Methodology Overview

This section outlines the experimental framework, including both hardware and software components. It provides an overview of the dataset, including the collection procedures and parameter characteristics. The specifications of the baseline model are described, followed by the implemented machine learning algorithms, their configurations, and the evaluation metrics employed in this study.

3.1. Experimental Framework

The dataset used in this study is derived from the data provided by González-Palacio et al. [8]. The data is collected from a LoRaWAN network consisting of four LoRa nodes communicating with a single gateway using the LoRa radio frequency protocol. A detailed description of the hardware and dataset is presented in this section.

3.1.1. Hardware Description

According to the hardware description in [8], the four LoRa nodes communicated with a gateway using a radio frequency protocol operating in the 902–928 MHz band. The transmission bandwidth is 125 kHz and cycles through various sub-bands in the ISM US915 band (903.9, 904.1, 904.3, 904.7, 904.9, 905, and 905.1 MHz). The LoRa nodes were positioned at distances of d 1 = 2.11, d 2 = 3.42, d 3 = 5.32, and d 4 = 8.21 km, respectively, from the gateway, as illustrated in Figure 1.
The LoRa nodes, also referred to as end nodes in the referenced paper, were based on the PyCom LoPy4 platform. These nodes were equipped with an SX1276 (Semtech Corp., Camarillo, CA, USA) radio for LoRa transmission. The antenna used is an omnidirectional PSKN3-900 (Mobile Mark Inc., Itasca, IL, USA) with a peak gain of 3 dBi. The nodes measured environmental variables using various sensors, including a DHT22 (Aosong Electronics Co., Guangzhou, China) for temperature and relative humidity, a BMP280 (Bosch Sensortec GmbH, Reutlingen, Germany) for barometric pressure, an HPMA11500 (Honeywell International Inc., Charlotte, NC, USA) for particulate matter (PM2.5), and an INA219 (Texas Instruments Inc., Dallas, TX, USA) for energy consumption.
The LG308 (Dragino Technology Co., Shenzhen, China) gateway functions as an intermediary between the LoRa nodes and the network server. It is equipped with two radios SX1257 and SX1301 (Semtech Corp., Camarillo, CA, USA) and features an antenna with a peak gain of 4.4 dBi. Upon receiving data from the nodes, the gateway transmits the information to a cloud-hosted message queuing telemetry transport (MQTT) broker, where the payloads are published for subsequent processing.

3.1.2. Dataset Description

The provided dataset contains 930,753 observations recorded in Medellín, Colombia, from October 2021 to March 2022, with a mean sampling interval of 60 s. The data includes the following information, as presented in Table 1 [8].
Based on the dataset described in Table 1, eight relevant fields were selected for this study. The selected fields include the target variable for prediction, the Received Signal Strength Indicator (rssi), and key features commonly used in path loss models, such as frequency (f) and distance (d). Additionally, environmental parameters including temperature (T), relative humidity (rh), barometric pressure (bp), and particulate matter (pm2_5) are incorporated to enhance model accuracy. Additionally, the signal-to-noise ratio (snr) is included as part of the training data. Although correlation analysis indicates a very strong relationship between the SNR and the RSSI, suggesting that the SNR alone could serve as an effective predictor of the RSSI, this study includes the SNR as an optional feature. This decision is made to maintain consistency and comparability with the baseline path loss regression model, as described in Equation (3), which already incorporates the SNR as one of its parameters. An initial dataset analysis was conducted in this paper to explore the relationships among these variables, focusing on their correlation and distribution, as illustrated in Figure 2 and Figure 3, respectively.
Figure 2 presents the correlation coefficients between variables. Notably, barometric pressure exhibits a strong positive correlation with the RSSI, with a coefficient of 0.91. This relationship may be influenced by the varying antenna installation heights, as described in the data collection setup. A higher barometric pressure can enhance radio wave propagation through atmospheric ducting effects, which could explain the observed correlation. Additionally, air quality, as represented by the PM2.5 concentration, shows a moderate positive correlation with the RSSI, suggesting that environmental conditions affect signal behavior.
Figure 3 illustrates the distribution profiles of the variables of interest, with the y-axis indicating the frequency of occurrence for each value.The analysis reveals that all variables deviate from normal distributions, with PM2.5 showing the most extreme departure through high positive skewness (1.91) and heavy tails, indicating frequent pollution spikes. Humidity also has some outlier measurements, but they are much fewer. Temperature shows slight positive skewness, indicating occasional hot extremes, while humidity exhibits negative skewness, suggesting more frequent high-humidity conditions.

3.2. Baseline Model

Traditionally, the Received Signal Strength Indicator (RSSI) is derived from path loss models, where the log-distance equation serves as the fundamental formulation. To improve the accuracy of predictions, several additional parameters have been introduced, typically involving antenna configurations and environmental factors. Such parameters, as proposed in [8], aim to better align the model with real-world conditions.
The first path loss model mentioned in [8] involves using a multiple linear regression algorithm to determine the coefficients of the well-known Log-Distance Path Loss Model (LDPLM), which accounts for path loss along with a random component representing shadowing effects, as shown in Equation (1):
LDPLM = K + 10 · γ · log 10 d d 0 + ψ .
In this equation, K represents a scaling factor that adjusts the received signal strength based on system-specific parameters such as antenna gain, system losses, and environmental characteristics; d denotes the distance between the transmitter and the receiver; d 0 is the reference distance, typically set within the far-field region; γ is the path loss exponent, which characterizes the rate at which the signal attenuates with distance; and ψ is a random variable representing shadowing effects, whose statistical distribution is defined as follows in Equation (2):
p ( ψ ) = ξ 2 π · σ ψ · ψ · exp ( 10 · log 10 ( ψ ) μ ψ ) 2 2 · σ ψ 2 , ψ > 0 ,
where ξ = 10 ln ( 10 ) , σ ψ is the standard deviation of ψ , and μ ψ is its mean. Based on the results of linear regression analysis, the optimal coefficients that best fit the dataset were specified as γ = 2.739 and K = 1.75 .
The second model proposed in [8] is the Multiple Linear Regression Model (MLRM), which extends the LDPLM by incorporating environmental variables such as temperature (T), relative humidity (rh), barometric pressure (bp), particulate matter (pm2_5), and the signal-to-noise ratio (snr). These variables are empirically determined through regression analysis to better align the model with real-world signal behavior. The model is expressed as follows:
MLRM = β ^ 0 + 10 γ log 10 ( d ) + 20 log 10 ( f ) + β ^ 1 T + β ^ 2 rh + β ^ 3 bp + β ^ 4 pm 2 _ 5 + β ^ 5 snr + ψ .
In this equation, β ^ 0 represents the offset coefficient, which is analogous to K in Equation (1). The coefficients β ^ i for i { 1 , , 5 } were determined through regression analysis. The model predictors include f, the frequency in Hertz (Hz); T, the temperature in degrees Celsius; rh, the relative humidity in percentage (%); bp, the barometric pressure in hectopascals (hPa); pm2_5, the concentration of particulate matter with a diameter less than 2.5 μm (μg/m3); and snr, the signal-to-noise ratio. The term ψ denotes the shadow fading component, as defined in Equation (2). The coefficient values for each predictor in the MLRM, based on the approach proposed in [25], are summarized in Table 2.

3.3. Proposed Model

The model proposed in this paper adopts a novel methodology that utilizes the adaptive capabilities of machine learning to develop a fully data-driven framework for RSSI estimation, referred to as the Adaptive Machine Learning Model (AMLM). Rather than relying on traditional path loss equations, the approach employs trained algorithms to capture intricate, non-linear relationships among influencing factors, thereby eliminating the need for predefined signal propagation models.

3.3.1. Model Selection

Low-complexity models, particularly tree-based ensemble methods, were primarily selected in this paper due to the resource constraints of the embedded LoRa gateway framework. This choice is supported by findings reported in [27], indicating that lightweight random forest regressors outperform neural networks with respect to RSSI estimation accuracy, reliability, and computational efficiency. The models explored in this paper range from basic approaches such as linear regression to more advanced regression techniques.
The first basic model selected is linear regression (LR) [28], which assumes a linear relationship between input features and the target variable, aiming to determine the optimal line that best fits the data. Next, decision trees (DTs) [29] are included. These models build hierarchical structures by recursively splitting the dataset based on feature values, offering interpretable decision-making capabilities, although they are prone to overfitting.
Tree-based ensemble methods considered such as the random forest (RF) [30], Gradient Boosting [31], Extreme Gradient Boosting (XGBoost or XGB) [32], and Categorial Boosting (CatBoost or CB) [33] combine multiple weak learners to form a strong predictive model. The random forest is an ensemble of decision trees that mitigate overfitting and enhance generalization. Gradient Boosting constructs models in a stage-wise manner, iteratively minimizing a loss function to improve performance. XGBoost and CatBoost are advanced implementations of Gradient Boosting, offering additional features and optimizations that improve speed and accuracy. CatBoost was specifically developed to efficiently handle categorical data.
The objective of this study is to evaluate these machine learning algorithms based on their effectiveness in predicting RSSI values. This evaluation aims to assess how well these algorithms can model and capture non-linear relationships among environmental and signal-related variables.

3.3.2. Model Setup

In this study, the framework is implemented using Python libraries, as outlined in Table 3. For ensemble and boosted tree methods, a total of 100 base estimators with a maximum depth of 5 are employed. To ensure reproducibility, the random seed is fixed at 42. The learning rate for both XGBoost and CatBoost is set to 0.1.
The proposed framework was specifically trained to estimate received signal strength at the gateway. To ensure a robust evaluation, the dataset is divided into the training (75%) and testing (25%) subsets.

3.4. Evaluation Metrics

To evaluate the performance of the machine learning algorithms, two key metrics were selected: the Percentage of Variance (PoV) and the Root Mean Squared Error (RMSE). In addition, the Mean Absolute Percentage Error (MAPE) is also presented to provide further insight into the prediction accuracy across different models.

3.4.1. Percentage of Variance

The Percentage of Variance (PoV) assesses the percentage of total variance in observed data that can be accounted for by a model’s predictions, providing an indication of the model’s capability to capture underlying patterns and relationships in the data. A higher PoV value suggests a better fit and more precise predictions.
The PoV is calculated using the following equation:
PoV = 1 i = 1 n ( y i y ^ i ) 2 i = 1 n ( y i y ¯ ) 2 × 100 % ,
where n represents the number of observations in the dataset, y i is the actual (observed) value of the dependent variable for the i-th observation, y ^ i denotes the predicted value given by the model, and y ¯ is the mean of the observed values.

3.4.2. Root Mean Squared Error

The Root Mean Squared Error (RMSE) measures the average magnitude of the errors between the predicted and actual values. In the context of RSSI prediction, a lower RMSE value indicates that the predicted distances are, on average, closer to the actual distances.
The RMSE is calculated using the following formula:
RMSE = 1 n i = 1 n ( y i y ^ i ) 2 ,
where n is the number of observations, y i represents the actual (observed) value of the i-th observation, and y ^ i is the predicted value of the i-th observation.

3.4.3. Mean Absolute Percentage Error

The Mean Absolute Percentage Error (MAPE) quantifies the average magnitude of prediction errors relative to the actual values and is expressed as a percentage. This characteristic makes it particularly effective for comparing prediction performance across different models. The MAPE is calculated as follows:
MAPE = 1 n i = 1 n y i y ^ i y i × 100 % ,
where n is the total number of observations, y i denotes the actual value of the i-th observation, and y ^ i represents the corresponding predicted value.

4. Results and Evaluation

This section presents a performance analysis of the proposed Adaptive Machine Learning Model (AMLM) model. The first subsection evaluates the prediction performance of the framework across various machine learning algorithms, followed by a comparative analysis of their results. Subsequently, the most effective models are selected and benchmarked against predictive results based on the baseline Multiple Linear Regression Model (MLRM) to assess their relative performance.

4.1. Performance Analysis of the Proposed Model

The proposed Adaptive Machine Learning Model (AMLM) for RSSI prediction is developed based on several algorithms, including linear regression (LR), decision trees (DTs), random forest (RFs), Gradient Boosting (GB), Extreme Gradient Boosting (XGBoost or XGB), and Categorical Boosting (CatBoost or CB). The models are trained on input features derived from traditional path loss models, specifically distance (d) and frequency (f), as well as environmental variables that may influence the RSSI, such as temperature (T), relative humidity (rh), barometric pressure (bp), and fine particulate matter with a diameter of 2.5 micrometers or less (pm2_5). Additionally, the signal-to-noise ratio (snr) is incorporated to ensure consistency with the baseline model, thereby enabling fair and meaningful comparisons. Model performance is evaluated using multiple metrics, including the Percentage of Variance (PoV), the Root Mean Square Error (RMSE), and execution time, as presented in Table 4, Table 5 and Table 6, respectively.

4.1.1. Percentage of Variance Analysis

The Percentage of Variance (PoV) results in Table 4 demonstrate that model performance improves significantly with the inclusion of additional environmental features. Traditionally, RSSI prediction relies on distance (d) and frequency (f), which are core components of path loss models. Using distance alone yields PoV values over 93% across most machine learning algorithms, except for linear regression, which performs poorly. In contrast, frequency (f) has minimal predictive value, consistently resulting in PoV values below 1%.
Combining distance and frequency offers a slight performance boost, but the most notable improvements occur when environmental parameters such as temperature, relative humidity, barometric pressure, and particulate matter are included. Among these, relative humidity and particulate matter are particularly influential, likely due to their effects on radio wave absorption and scattering. Incorporating all environmental features leads to the highest overall accuracy, emphasizing the value of a comprehensive feature set.
Extreme Gradient Boosting (XGBoost) stands out as the best-performing algorithm thanks to its gradient boosting framework enhanced by optimized tree pruning and regularization. Since the dataset contains only numerical features, Categorical Boosting is not applicable and offer no added benefit. Accordingly, XGBoost results are highlighted in bold in Table 4.
Using only the fundamental variables commonly found in traditional path loss models, such as frequency (f) and distance (d), XGBoost achieves a prediction accuracy (PoV) of 93.81%. When environmental variables are added (f, d, temperature (T), relative humidity (rh), barometric pressure (bp), and particulate matter (pm2_5)), accuracy improves to 95.69%. Incorporating the full feature set as defined in Equation (3), which includes the signal-to-noise ratio (snr), further boosts the PoV to 97.86%, demonstrating superior model generalization and fit. Two rows in Table 4 are highlighted in gray to indicate key configurations. These configurations will be referenced in the next section for comparison with RSSI predictions generated using the Multiple Linear Regression Model (MLRM) of path loss, which serves as the baseline.

4.1.2. Root Mean Square Error Analysis

The Root Mean Square Error (RMSE) values presented in Table 5 exhibit a trend consistent with the PoV results. Simpler models and limited feature sets result in higher prediction errors, with linear regression performing the worst. As more features are incorporated, the RMSE decreases across all models. XGBoost consistently achieves the lowest RMSE, particularly when the full feature set is utilized. Specifically, it reaches an RMSE of 1.40 when all parameters defined in Equation (3) are included, indicating minimal prediction error. This outcome reinforces XGBoost’s robustness in handling complex, multi-dimensional data.

4.1.3. Execution Time

Execution time (Table 6) reveals a trade-off between accuracy and computational efficiency. While tree-based ensemble methods like the random forest and Gradient Boosting offer high accuracy, they incur significantly higher delays (e.g., over 68 s with full features). In contrast, XGBoost maintains a balance, achieving top performance with relatively low execution time (e.g., 1.90 s with all features). Linear models are the fastest (e.g., 0.02–0.14 s), but their predictive performance is substantially lower. CatBoost also shows moderate execution time (up to 6.14 s) but does not outperform XGBoost in terms of accuracy.
The implementation based on a Python (version 3.11) script was executed on an Intel Core i7-4790S processor (Intel Corporation, Santa Clara, CA, USA) featuring four physical cores with hyper-threading (eight logical cores total), operating at a 3.20 GHz base frequency with turbo boost up to 4.00 GHz. The CPU includes a multi-level cache system with an 8 MiB shared L3 cache and supports an x86_64 architecture with advanced instruction sets including AVX2 for enhanced mathematical computations.
Overall, based on the proposed adaptive machine learning framework, Extreme Gradient Boosting (XGBoost) emerges as the most effective algorithm for RSSI prediction, offering the best trade-off in terms of accuracy (the highest PoV and the lowest RMSE). XGBoost demonstrates the most favorable balance between execution time and model accuracy, making it the most computationally efficient choice among the evaluated algorithms.
The inclusion of environmental and signal-related features significantly enhances model performance, underscoring the importance of comprehensive feature engineering in wireless signal modeling. Using XGBoost, the experimental results demonstrate that incorporating all environmental parameters as input features yields the highest prediction accuracy among all feature selection strategies, achieving a PoV of 97.86% and an RMSE of 1.40.

4.2. Evaluation Relative to the Baseline Model

This section evaluates the RSSI prediction results obtained from the proposed Adaptive Machine Learning Model (AMLM), with a particular emphasis on the Extreme Gradient Boosting (XGBoost) algorithm, which achieved the highest RSSI prediction accuracy among all evaluated models. These results are compared with the predictive results using the Multiple Linear Regression Model (MLRM) mentioned in [8].
The MLRM model, based on Equations (2) and (3), enabled path loss prediction with a PoV of 92.50% and an RMSE of 1.84 dB [8]. Unlike path loss prediction, the focus of this paper is on the Received Signal Strength Indicator (RSSI), which can be derived from path loss using a conversion equation also provided by [8]. The equation is as follows:
PL = ptx + gtx + grx lrx rssi .
The performance comparison of RSSI prediction between the two models is illustrated in Figure 4. The performance is evaluated under two metrics, namely the Percentage of Variance (PoV) and the Root Mean Square Error (RMSE), and is conducted under two scenarios: one that includes environmental variables and one that excludes them.
Figure 4 indicates that the proposed AMLM demonstrated superior performance, particularly when environmental data is incorporated. Compared to the baseline, the higher PoV achieved by the proposed model indicates its ability to explain a greater percentage of variance in the observed data and to more effectively capture underlying signal patterns. This improvement is consistent across both scenarios regardless of whether environmental factors are considered or not. Regarding the PoV, compared to the prediction when environmental features are excluded (i.e., the MLRM without environmental data, which is equivalent to the LDPLM described in Equation (1)), the PoV increases from 92.30% to 95.90%. When environmental features are included, the PoV further improves from 93.53% to 97.86%, indicating a strong correlation between predicted and actual RSSI values. According to the interpretation guidelines in [34], this level of PoV approaches near-perfect prediction, highlighting the model’s high predictive power. Additionally, the lower RMSE values down to 1.40 dB further validate the enhanced accuracy, indicating that the predicted RSSI values are, on average, closer to the actual measurements.
Figure 5 and Figure 6 present scatter plots comparing actual and predicted RSSI values using the Multiple Linear Regression Model (MLRM) and the Advanced Machine Learning Model (AMLM), respectively, under identical conditions. The left plot shows predictions without considering environmental factors, while the right plot incorporates sensing data. In both plots, actual RSSI values are displayed on the x-axis and predicted values on the y-axis. Ideally, perfect predictions would align along the diagonal line, indicating a one-to-one correspondence. Compared to Figure 5, Figure 6 exhibits a tighter clustering around the diagonal line, especially when environmental data is included, highlighting superior predictive accuracy when environmental sensing data is considered.
The integration of environmental factors into the adaptive machine learning model using XGBoost enhances its ability to capture the complex interactions between wireless signal propagation and the surrounding environment. By incorporating variables such as temperature, relative humidity, barometric pressure, and particulate matter (PM2.5), the model can better account for fluctuations in signal strength influenced by these conditions, leading to more accurate RSSI predictions.
Figure 7 compares the distribution of prediction errors across different models. Each box shows how far predicted values deviate from actual values, with the y-axis representing the prediction error. The plot helps assess model accuracy and consistency by highlighting bias, spread, and outliers in prediction performance. The accuracy improvement is evidenced in Figure 7, where the Mean Absolute Percentage Error (MAPE) of the AMLM decreases from 2.42% to 1.37% when environmental factors are included, compared to the baseline model, which shows a reduction from 2.68% to 1.93%. This result demonstrates a meaningful and reliable improvement in performance.
The proposed adaptive machine learning model demonstrates the capability to capture complex, non-linear relationships and interactions among features, characteristics that are often present in real-world wireless signal environments. Unlike traditional path loss modeling, which typically assumes linear relationships and is sensitive to outliers, machine learning approaches such as XGBoost can learn adaptively from data, handle noise more effectively, and automatically model intricate feature interactions. This leads to a better predictive performance, as evidenced by higher PoV and lower RMSE values.

5. Conclusions

This paper proposes an innovative approach for predicting the Received Signal Strength Indicator (RSSI) using adaptive machine learning techniques and environmental sensing data. Unlike conventional methods that rely on path loss modeling, which is typically based on linear assumptions, this sensor-driven framework dynamically learns complex, non-linear relationships among environmental variables. These include temperature, relative humidity, barometric pressure, and fine particulate matter (PM2.5), which are collected via a LoRa network.
The adaptive learning capability of the proposed model enables it to capture intricate dependencies that are often overlooked by traditional models. Experimental results demonstrate that the Extreme Gradient Boosting (XGBoost) algorithm achieves strong predictive performance, explaining 97.86% of the variance in the RSSI with a root mean square error of 1.40 dBm. The proposed model demonstrates improved predictive accuracy over the baseline, with relative increases in variance explained of 6.02% (from 92.30% to 97.86%) and 2.04% (from 95.90% to 97.86%) when compared to the baseline model excluding and including environmental parameters, respectively. This outperforms the prediction using a baseline regression-based path loss model. By integrating advanced algorithms with multi-sensor data, the model offers enhanced accuracy and greater adaptability across diverse environmental conditions.
Despite its promising performance, this study’s scope may be constrained by the use of data from only four LoRa nodes, each placed at a distinct distance. Future research can extend this framework by incorporating a wider range of distance measurements and environmental conditions to enhance generalizability. Feature selection may include physical obstacles, atmospheric conditions, electromagnetic interference, and environmental dynamics. Additionally, factors such as antenna characteristics and positioning could further improve the model’s robustness and predictive accuracy.
Overall, this approach introduces a new direction for integrating environmental data into wireless communication systems. Through the use of multiple sensor inputs and sophisticated learning techniques, it offers a deeper understanding of how environmental factors influence signal propagation, with the potential to significantly improve network reliability and overall system performance.

Funding

This research received no external funding.

Data Availability Statement

The data presented in this study are available on request from the corresponding author.

Conflicts of Interest

The author declares no conflicts of interest.

References

  1. Aiboud, Y.; Elhassani, I.; Griguer, H. RSSI optimization method for indoor positioning systems. In Proceedings of the International Conference on Wireless Networks and Mobile Communications (WINCOM), Rabat, Morocco, 1–4 November 2017; pp. 246–248. [Google Scholar]
  2. Raj, N.; Wang, X. IndoorRSSINet—Deep learning based 2D RSSI map prediction for indoor environments with application to wireless localization. In Proceedings of the 15th International Conference on COMmunication Systems & NETworkS (COMSNETS), Bangalore, India, 3–8 January 2023; pp. 609–616. [Google Scholar]
  3. Bashyam, S.L.R.; Chandra, J.; Devi, S.R. An Efficient Node to Node Coverage and Connectivity with RSSI Using Grey-Wolf Prediction Optimization Algorithm in Remote Low Accessibility Area. In Proceedings of the 2nd International Conference on Vision Towards Emerging Trends in Communication and Networking Technologies (ViTECoN), Vellore, India, 5–6 May 2023; pp. 1–6. [Google Scholar]
  4. Li, M.; de Oliveira, T.E.A. EP-FPG applied to RSSI-Based Wireless Indoor Localization. In Proceedings of the IEEE Canadian Conference on Electrical and Computer Engineering (CCECE), London, ON, Canada, 30 August–2 September 2020; pp. 1–6. [Google Scholar]
  5. Ogawa, Y.; Umehira, M.; Wang, X. Kriging-based RSSI Prediction for Cell Coverage Discovery using Spectrum Database in 5G Multi-band Cellular Networks. In Proceedings of the 17th International Symposium on Communications and Information Technologies (ISCIT), Perth, WA, Australia, 11–13 December 2017; pp. 1–6. [Google Scholar]
  6. Apavatjrut, A.; Boonyasiwapong, E. Indoor WIFI localization on embedded systems. In Information Science and Applications; Springer: Berlin/Heidelberg, Germany, 2015; Volume 339, ISBN 978-3-662-46577-6. [Google Scholar]
  7. Daiya, V.; Ebenezer, J.; Murty, S.A.V.S.; Raj, B. Experimental Analysis of RSSI for Distance and Position Estimation. In Proceedings of the International Conference on Recent Trends in Information Technology (ICRTIT), Chennai, India, 3–5 June 2011; pp. 1093–1098. [Google Scholar]
  8. González-Palacio, M.; Tobón-Vallejo, D.; Sepúlveda-Cano, L.M.; Rúa, S.; Pau, G.; Le, L.B. LoRaWAN Path Loss Measurements in an Urban Scenario including Environmental Effects. Data 2023, 8, 4. [Google Scholar] [CrossRef]
  9. Molisch, A.F. Wireless Communications; John Wiley & Sons: Hoboken, NJ, USA, 2012. [Google Scholar]
  10. Rademacher, M.; Linka, H.; Horstmann, T.; Henze, M. Path Loss in Urban LoRa Networks: A Large-Scale Measurement Study. In Proceedings of the 2021 IEEE 94th Vehicular Technology Conference (VTC2021-Fall), Norman, OK, USA, 27–30 September 2021; pp. 1–6. [Google Scholar]
  11. Kabiri, M.; Cimarelli, C.; Bavle, H.; Sanchez-Lopez, J.L.; Voos, H. A Review of Radio Frequency Based Localisation for Aerial and Ground Robots with 5G Future Perspectives. Sensors 2023, 23, 188. [Google Scholar] [CrossRef] [PubMed]
  12. Raj, N. Indoor RSSI Prediction using Machine Learning for Wireless Networks. In Proceedings of the International Conference on COMmunication Systems & NETworkS (COMSNETS), Bangalore, India, 5–9 January 2021; pp. 372–374. [Google Scholar]
  13. Callebaut, G.; Perre, L.V. Characterization of LoRa Point-to-Point Path Loss: Measurement Campaigns and Modeling Considering Censored Data. IEEE Internet Things J. 2020, 7, 1910–1918. [Google Scholar] [CrossRef]
  14. Chall, R.E.; Lahoud, S.; Helou, M.E. LoRaWAN Network: Radio Propagation Models and Performance Evaluation in Various Environments in Lebanon. IEEE Internet Things J. 2019, 6, 2366–2378. [Google Scholar] [CrossRef]
  15. Alobaidy, A.A.H.; Mandeep, J.S.; Behjati, M.; Nordin, R.; Abdullah, N.F. Wireless Transmissions, Propagation and Channel Modeling for IoT Technologies: Applications and Challenges. IEEE Access 2021, 10, 24095–24131. [Google Scholar] [CrossRef]
  16. Obeidat, H.; Shuaieb, W.; Obeidat, O.; Abd-Alhameed, R. A Review of Indoor Localization Techniques and Wireless Technologies. Wirel. Pers. Commun. 2021, 119, 289–327. [Google Scholar] [CrossRef]
  17. Seybold, J.S. Introduction to RF Propagation; John Wiley & Sons: Hoboken, NJ, USA, 2005; p. 143. ISBN 0-471-65596-1. [Google Scholar]
  18. Quispetupa, D.A.; Fernandez, J.P.; Tacas, R.Q. An experimental evaluation of RSSI-LoRa in an olive tree plantations. In Proceedings of the IEEE Engineering International Research Conference (EIRCON), Lima, Peru, 26–28 October 2022; pp. 1–4. [Google Scholar]
  19. Barbosa, B.S.d.S.; Cruz, H.A.O.; Macedo, A.S.; Cardoso, C.M.M.; Fernandes, F.C.; Eras, L.E.C.; Araújo, J.P.L.d.; Calvacante, G.P.S.; Barros, F.J.B. Application of Artificial Neural Networks for Prediction of Received Signal Strength Indication and Signal-to-Noise Ratio in Amazonian Wooded Environments. Sensors 2024, 24, 2542. [Google Scholar] [CrossRef] [PubMed]
  20. Hata, M. Empirical Formula for Propagation Loss in Land Mobile Radio Services. IEEE Trans. Veh. Technol. 1980, 29, 317–325. [Google Scholar] [CrossRef]
  21. Sousa, M.; Alves, A.; Vieira, P.; Queluz, M.P.; Rodrigues, A. Analysis and Optimization of 5G Coverage Predictions Using a Beamforming Antenna Model and Real Drive Test Measurements. IEEE Access 2021, 9, 101787–101808. [Google Scholar] [CrossRef]
  22. Jo, H.-S.; Park, C.; Lee, E.; Choi, H.K.; Park, J. Path Loss Prediction Based on Machine Learning Techniques: Principal Component Analysis, Artificial Neural Network, and Gaussian Process. Sensors 2020, 20, 1927. [Google Scholar] [CrossRef] [PubMed]
  23. Moraitis, N.; Tsipi, L.; Gkioni, D.V.A.; Louvros, S. Performance evaluation of machine learning methods for path loss prediction in rural environment at 3.7 GHz. Wirel. Netw. 2021, 27, 4169–4188. [Google Scholar] [CrossRef]
  24. He, R.; Gong, Y.; Bai, W.; Li, Y.; Wang, X. Random Forests Based Path Loss Prediction in Mobile Communication Systems. In Proceedings of the 2020 IEEE 6th International Conference on Computer and Communications (ICCC), Chengdu, China, 11–14 December 2020; pp. 1246–1250. [Google Scholar]
  25. Fauzi, M.F.A.; Nordin, R.; Abdullah, N.F.; Alobaidy, H.A.H. Mobile Network Coverage Prediction Based on Supervised Machine Learning Algorithms. IEEE Access 2022, 10, 55782–55793. [Google Scholar] [CrossRef]
  26. Goldoni, E.; Savazzi, P.; Favalli, L.; Vizziello, A. Correlation between weather and signal strength in LoRaWAN networks: An extensive dataset. Comput. Netw. 2022, 202, 108627. [Google Scholar] [CrossRef]
  27. Arif, S.; Khan, M.A.; Rehman, S.U. A Lightweight Received Signal Strength Indicator Estimation Model for Low-Power Internet of Things Devices in Constrained Indoor Networks. Appl. Sci. 2025, 15, 3535. [Google Scholar] [CrossRef]
  28. Freedman, D.A. Statistical Models: Theory and Practice; Cambridge University Press: Cambridge, UK, 2009. [Google Scholar]
  29. Quinlan, J.R. Induction of Decision Trees. Mach. Learn. 1986, 1, 81–106. [Google Scholar] [CrossRef]
  30. Breiman, L. Random Forests. Mach. Learn. 2001, 45, 5–32. [Google Scholar] [CrossRef]
  31. Friedman, J.H. Greedy Function Approximation: A Gradient Boosting Machine. Ann. Stat. 2001, 29, 1189–1232. [Google Scholar] [CrossRef]
  32. Chen, T.; Guestrin, C. XGBoost: A Scalable Tree Boosting System. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, San Francisco, CA, USA, 13–17 August 2016; pp. 785–794. [Google Scholar]
  33. Prokhorenkova, L.; Gusev, G.; Vorobev, A.; Dorogush, A.V.; Gulin, A. CatBoost: Unbiased Boosting with Categorical Features. In Proceedings of the 32nd International Conference on Neural Information Processing Systems, Montreal, QC, Canada, 3–8 December 2018; pp. 6639–6649. [Google Scholar]
  34. Turney, S. Coefficient of Determination (R2)|Calculation & Interpretation. Scribbr. 2022. Available online: https://www.scribbr.com/statistics/coefficient-of-determination (accessed on 1 July 2024).
Figure 1. LoRaWAN architecture for dataset retrieval.
Figure 1. LoRaWAN architecture for dataset retrieval.
Sensors 25 05199 g001
Figure 2. Correlation matrix of variables of interest.
Figure 2. Correlation matrix of variables of interest.
Sensors 25 05199 g002
Figure 3. Distribution profiles of variables of interest.
Figure 3. Distribution profiles of variables of interest.
Sensors 25 05199 g003
Figure 4. Comparison of the PoV and the RMSE Between the MLRM and the AMLM with and without environmental data for RSSI prediction.
Figure 4. Comparison of the PoV and the RMSE Between the MLRM and the AMLM with and without environmental data for RSSI prediction.
Sensors 25 05199 g004
Figure 5. Scatter plot of actual RSSI values vs. predicted RSSI values of the baseline MLRM.
Figure 5. Scatter plot of actual RSSI values vs. predicted RSSI values of the baseline MLRM.
Sensors 25 05199 g005
Figure 6. Scatter plot of actual RSSI values vs. predicted RSSI values of the proposed AMLM.
Figure 6. Scatter plot of actual RSSI values vs. predicted RSSI values of the proposed AMLM.
Sensors 25 05199 g006
Figure 7. Comparison of prediction error distributions across various models.
Figure 7. Comparison of prediction error distributions across various models.
Sensors 25 05199 g007
Table 1. Dataset details and descriptions.
Table 1. Dataset details and descriptions.
Column NameDescription
indexSequential number identifying the corresponding observation.
timestampDate and time of the observation in the format of yyyy-mm-dd hh:mm:ss.
device_idIdentifier of the LoRa node defined as EN1, EN2, EN3, or EN4.
distance (d)Distance between the corresponding LoRa node and the gateway in meters.
htAntenna height of the transmitter (LoRa node) in meters.
hrAntenna height of the receiver (gateway) in meters.
ptxTransmitted radiated power in dBm (fixed at 20 dBm).
ltxLoss associated with cables and connectors at the transmitter in dB.
gtxAntenna gain of the transmitter (LoRa node) in dBi.
lrxLoss associated with cables and connectors at the receiver (gateway) in dB (measured as 4.25 dB).
grxAntenna gain of the receiver (gateway) measured as 4.161 dBi.
frequency (f)Carrier frequency in Hz, operating in the US 902–928 MHz ISM band.
frame_lengthNumber of bytes in the current transmission payload.
temperature (T)Temperature in °C.
rhRelative humidity in %.
bpBarometric pressure in hPa.
pm2_5Particulate matter (PM2.5) in μg/m3.
rssiThe Received Signal Strength Indicator measured at the gateway in dBm.
snrThe signal-to-noise ratio in dB.
toaTime on air in seconds.
experimental_plExperimental path loss in dB, calculated as ptx + gtx + grx - lrx - rssi.
energyEnergy consumed during the current transmission in Joules.
espEffective signal power of the current transmission in dBm.
pnNoise power in dBm.
Table 2. Model predictors and coefficient values for the Multiple Linear Regression Model.
Table 2. Model predictors and coefficient values for the Multiple Linear Regression Model.
PredictorVariableValueUnit
Intercept K ^ 505.640 dB
Path loss exponent γ ^ 2.203 -
Temperature β ^ 1 0.123 dB/°C
Relative humidity β ^ 2 0.011 dB/%
Barometric pressure β ^ 3 0.407 dB/hPa
PM2.5 β ^ 4 0.002 dB/μg/m3
SNR β ^ 5 0.635 dB/dB
Table 3. Machine learning libraries.
Table 3. Machine learning libraries.
TechniqueLibrary
LRsklearn.linear_model.LinearRegression()
DTsklearn.tree.DecisionTreeRegressor()
RFsklearn.ensemble.RandomForestRegressor()
GBsklearn.ensemble.GradientBoostingRegressor()
XGBxgboost.XGBRegressor()
CBcatboost.CatBoostRegressor()
Table 4. PoV-based evaluation predictions across different feature selection methods.
Table 4. PoV-based evaluation predictions across different feature selection methods.
Feature SelectionLRDTRFGBXGBCB
d36.4893.5393.5393.5393.5393.53
f0.190.560.560.560.560.56
d, f36.6493.7893.7893.8093.8193.81
d, f, T38.9293.9493.9594.0694.1294.07
d, f, rh36.9794.0094.0194.1294.1994.15
d, f, bp86.3593.8293.8293.9193.9593.93
d, f, pm2_536.7994.5094.5194.5894.6394.61
d, f, T, rh, bp, pm2_586.6294.8094.8295.1695.6995.38
d, f, snr, T, rh, bp, pm2_596.8897.5497.5897.7997.8697.79
Note: In Table 4, Table 5 and Table 6, two rows are highlighted in gray to indicate key configurations used for comparison in Section 4.2. Additionally, results from the XGBoost model are highlighted in bold to help quickly identify the most relevant findings discussed in the analysis.
Table 5. RMSE-based evaluation predictions across different feature selection methods.
Table 5. RMSE-based evaluation predictions across different feature selection methods.
Feature SelectionLRDTRFGBXGBCB
d7.612.432.432.432.432.43
f9.559.539.539.539.539.53
d, f7.612.382.382.382.382.38
d, f7.612.382.382.382.382.38
d, f, T7.472.352.352.332.322.33
d, f, rh7.592.342.342.322.302.31
d, f, bp3.532.382.382.362.352.35
d, f, pm2_57.602.242.242.222.212.22
d, fT, rh, bar, pm2_53.492.182.172.101.982.05
d, f, T, rh, bp, pm2_53.492.182.172.101.982.05
d, f, snr, T, rh, bp, pm2_51.691.501.491.421.401.42
Table 6. Time delay (s) from RSSI estimation with various feature selections.
Table 6. Time delay (s) from RSSI estimation with various feature selections.
Feature SelectionLRDTRFGBXGBCB
d0.020.034.725.480.873.46
f0.020.079.588.801.233.58
d, f0.040.1515.4616.752.914.61
d, f, T0.050.3227.1828.891.674.87
d, f, rh0.050.3930.5831.021.694.84
d, f, bp0.050.3126.6628.381.555.00
d, f, pm2_50.050.2622.8624.991.645.26
d, f, T, rh, bp, pm2_50.110.8258.6963.212.675.65
d, f, snr, T, rh, bp, pm2_50.140.9668.2574.201.906.14
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

Apavatjrut, A. Sensor-Driven RSSI Prediction via Adaptive Machine Learning and Environmental Sensing. Sensors 2025, 25, 5199. https://doi.org/10.3390/s25165199

AMA Style

Apavatjrut A. Sensor-Driven RSSI Prediction via Adaptive Machine Learning and Environmental Sensing. Sensors. 2025; 25(16):5199. https://doi.org/10.3390/s25165199

Chicago/Turabian Style

Apavatjrut, Anya. 2025. "Sensor-Driven RSSI Prediction via Adaptive Machine Learning and Environmental Sensing" Sensors 25, no. 16: 5199. https://doi.org/10.3390/s25165199

APA Style

Apavatjrut, A. (2025). Sensor-Driven RSSI Prediction via Adaptive Machine Learning and Environmental Sensing. Sensors, 25(16), 5199. https://doi.org/10.3390/s25165199

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