Abstract
The physical layer security of Internet of Things (IoT) networks has become increasingly important but also introduces major security vulnerabilities due to the open and shared nature of wireless channels. Therefore, authentication and authorization remain critical challenges. To address these issues, this paper proposes a lightweight hybrid authentication framework that integrates Extended Kalman Filter (EKF)-based signal refinement with machine learning (ML) classification to strengthen device trust verification at the physical layer. The framework operates across device, edge, and cloud tiers, utilizing real-time received signal strength indicator (RSSI), link quality indicator (LQI), temperature, and battery level to generate unique device fingerprints. The EKF minimizes environmental noise and extracts stable signal characteristics, while the XGBoost classifier provides adaptive and efficient authentication. Experimental results show that the proposed hybrid model achieves 99.56% accuracy, a 99.71% F1-score, and a very low false acceptance rate. These findings confirm that the EKF–ML integration enhances signal stability and resistance to spoofing, offering a secure and scalable authentication solution for IoT networks.
1. Introduction
The rapid growth of the Internet of Things (IoT) has created a highly interconnected environment in which billions of devices exchange data across diverse domains, including healthcare, industrial automation, transportation, and defense [1,2]. Among its emerging branches, the Internet of Vehicles (IoV) has gained significant attention as an integration of vehicular ad hoc networks with advanced sensing and communication technologies [3]. The IoV enables interaction between vehicles and roadside infrastructure to improve road safety, traffic efficiency, and autonomous navigation. However, the high mobility of vehicles and the open nature of wireless communication make IoV systems vulnerable to impersonation and data manipulation attacks. Therefore, designing authentication mechanisms capable of providing rapid, reliable, and resource-efficient verification with minimal communication latency is essential.
Projections indicate that tens of billions of IoT devices will be deployed globally within this decade, creating dense and heterogeneous network environments. Unlike traditional wired infrastructures, the open and shared nature of wireless communication exposes IoT systems to serious security threats, including spoofing, cloning, and unauthorized access [4,5]. Conventional security mechanisms, mainly based on upper-layer cryptographic algorithms, rely on computational complexity and key management to ensure confidentiality and authentication. However, the growing computational power of adversaries and the advancement of blockchain-based technologies have reduced the effectiveness of such mechanisms, making them increasingly prone to brute-force and analytical attacks [6,7,8].
The challenge is further compounded by the resource limitations inherent to IoT devices, including restricted processing power, limited memory, and constrained energy reserves [9]. These factors make it difficult to deploy conventional cryptographic techniques or certificate-based verification processes on a large scale As a result, devices operating under these constraints are often unable to execute complex authentication procedures, which undermines the integrity of large scale IoT systems—particularly those requiring real-time communication and low latency. Moreover, the rapid proliferation of wireless technologies and communication protocols has expanded the attack surface, enabling diverse threats such as impersonation, replay, and Sybil attacks [10,11,12]. Consequently, the need for lightweight, adaptive, and context-aware authentication mechanisms has become critical for ensuring security and trust in next-generation IoT environments.
The advent of physical-layer authentication presents a promising alternative to conventional cryptographic methodologies. This technique exploits the intrinsic hardware-dependent channel attributes, including RSSI, Channel State Information (CSI), and LQI, to authenticate devices based on characteristics that are inherently challenging to falsify or reproduce [13,14,15]. Such an approach obviates the necessity for substantial key exchanges and inherently offers a lightweight protective layer. The incorporation of machine learning algorithms further augments this framework, enabling authentication models to dynamically adjust to environmental fluctuations and the mobility of devices [16,17].
Despite these advances, existing physical-layer and ML-based authentication techniques still face several challenges. Many supervised learning algorithms require labeled datasets that include both legitimate and illegitimate nodes—data that is rarely available in practical IoT scenarios [18]. Other methods depend on static thresholds or fixed models that fail to adapt to fluctuating environmental conditions or increased channel noise. Deep learning–based approaches, while demonstrating high classification accuracy, generally require extensive training datasets and significant computational power [19], limiting their applicability in low-power IoT and edge computing systems.
In response to these challenges, the present study proposes a novel framework for authentication and authorization, characterized by its lightweight nature and designed specifically to operate at the physical layer, thereby optimizing its application within IoT systems. The proposed architecture is systematically structured into three operational tiers: device, edge, and cloud. It utilizes real-time assessments of RSSI and LQI, complemented by supplementary parameters, including temperature and battery level, to generate unique device fingerprints. The EKF augments feature stability by attenuating noise and monitoring signal fluctuations, whereas an XGBoost-based machine learning classifier facilitates adaptive and efficient authentication decisions. Empirical analyses indicate that the proposed EKF–ML hybrid framework provides superior authentication accuracy, exhibits robustness against spoofing attacks, and demonstrates scalability across diverse IoT devices. This framework constitutes a secure and energy-efficient solution for next-generation connected environments. The main contributions of this paper can be summarized as follows:
- EKF-based Signal Feature Extraction: An Extended Kalman Filter is employed to process RSSI and LQI measurements in order to extract stable, device-specific features. Signal consistency is assessed through residual analysis using the Mahalanobis distance and is subsequently combined with physical device attributes, such as battery level and temperature, to capture both short-term signal dynamics and long-term behavioral characteristics.
- Probabilistic Legitimacy Estimation: A supervised machine learning model is trained on the integrated feature set to estimate the probability of device legitimacy. This probabilistic assessment complements real-time signal analysis by incorporating historical and contextual information, thereby improving authentication reliability.
- Hybrid Trust Framework: A unified trust score is derived by fusing EKF-based signal consistency with the legitimacy probability estimated by the machine learning model. This hybrid trust mechanism enables adaptive, multi-level authentication decisions, enhancing robustness and security in resource-constrained IoT environments.
The remainder of this paper is organized as follows. Section 2 reviews related work. Section 3 describes the proposed system model. Section 4 presents the materials and methods used in this study. Section 5 discusses the simulation setup and results. Section 6 outlines the limitations of the proposed approach and identifies directions for future work. Finally, Section 7 concludes the paper.
2. Related Work
Recent advancements in the domain of physical-layer authentication have concentrated on enhancing the security of IoT and wireless communication systems by leveraging distinct physical-layer attributes, machine learning algorithms, and deep learning models in conjunction with lightweight cryptographic primitives. Although these methodologies exhibit promising outcomes, persistent challenges are identified in terms of scalability, resilience to noise, retraining overhead, and adaptability to dynamic channel environments.
In [20], a modified physical-layer authentication scheme combines a soft information–based detection algorithm with a hash-mapped key randomization mechanism. The approach employs a challenge–response procedure using one-way hash functions to ensure key noninvertibility and antifalsification. Monte Carlo simulations show improved performance under low signal-to-noise ratio (SNR) conditions. However, the method relies heavily on computationally intensive hash operations and lacks flexibility in time-varying channels.
The work in [21] introduces an RF fingerprinting (RFF) framework using Siamese networks to distinguish between legitimate and malicious IoT devices without retraining. The proposed Similarity-Based Embedding Classification (SBEC) algorithm achieves 98% identification accuracy with I/Q samples collected from ten software-defined radios (SDRs). Although this method effectively generalizes to unseen devices, its dependence on large datasets and device-specific calibration restricts scalability in heterogeneous IoT deployments.
A separate study [22] addresses authentication in vehicle-to-everything (V2X) networks by employing extended and unscented Kalman filters to capture nonlinear channel dynamics. This approach enhances robustness in fast-varying vehicular environments but incurs high computational costs due to continuous channel estimation, limiting its practicality in lightweight IoT systems.
In the study presented in [23], advanced deep learning methodologies—specifically generative adversarial networks (GANs) and convolutional neural networks (CNNs)—have been employed to analyze wavelet-transformed radio signals for the purpose of spoofing detection within LoRa-based IoT systems. This approach yields an authentication accuracy of 92.4% in both line-of-sight (LoS) and non-line-of-sight (NLoS) conditions. However, the complexity associated with the training process and the limited generalization across different frequency bands pose significant challenges for the deployment of this method in real-time applications or in environments with constrained computational resources.
The authors of [24] propose a federated learning–based, trust-aware authentication framework utilizing physical-layer indicators such as the RSSI, LQI, and internal device parameters. The approach achieves over 99% accuracy while maintaining user data privacy. However, synchronization delays and communication latency among distributed edge nodes hinder real-time adaptability. For complex Bluetooth signals, ref. [25] combines statistical feature extraction from multiple domains with a ResNet-50-1D-inspired model to tackle the generalization challenge posed by frequency-hopping spread spectrum.
The study in [26] presents a deep channel state information (CSI)-based authentication model that maps CSI features to device locations, with a confidence scoring branch that improves robustness under 60% CSI noise. While effective, its reliance on high-precision CSI measurements limits its feasibility for low-cost IoT hardware. Similarly, ref. [27] applies ResNet-based transfer learning to CSI features from mobile transmitters, achieving 99.64% classification accuracy. Yet, the model’s computational demands and need for data augmentation restrict on-device deployment.
In [28], a semi-supervised Positive–Unlabeled (PU) learning approach with bootstrap aggregation is proposed to classify legitimate and illegitimate nodes using amplitude, phase, and variance features. Although suitable for partially labeled data, it shows instability when feature distributions vary due to changes in the channel. A lightweight mutual authentication scheme for Internet of Vehicles (IoV) applications is proposed in [29], combining physically unclonable functions (PUFs) with Multiple Input Multiple Output (MIMO) communications. Despite its resilience to modeling attacks, reliance on hardware-based challenge–response pairs (CRPs) reduces flexibility and increases implementation complexity. Additionally, ref. [30] introduces a blockchain-based lightweight authentication framework employing a simplified proof-of-stake (PoS) mechanism, achieving 54% energy savings. However, its dependence on distributed ledgers introduces communication overhead and scalability challenges. Complementarily, ref. [26] presents an inter-domain authentication and authorization scheme using BBS group signatures, enabling privacy-preserving and revocable access across different IoT domains without a central online authority.
Overall, prior research has demonstrated substantial progress in physical-layer authentication through the integration of machine learning–based modeling, advanced signal feature extraction, and cryptographic enhancements, as summarized in Table 1. Nevertheless, most existing methods remain limited by high computational overhead, vulnerability to environmental noise, and inadequate adaptability under real-time operating conditions. Only a few frameworks have effectively combined dynamic signal filtering with ML-based trust evaluation to achieve both high accuracy and computational efficiency.
Table 1.
Comparison of recent physical-layer authentication methods.
To overcome these limitations, this work proposes a hybrid authentication architecture that integrates the EKF with ML-based classification across device, edge, and cloud layers. The proposed system utilizes real-time measurements of RSSI, LQI, temperature, and battery levels to construct distinctive device fingerprints. The EKF mitigates environmental noise and captures stable signal patterns, while an XGBoost-based classifier performs adaptive and efficient device authentication. This integrated design enhances reliability, scalability, and robustness for physical-layer security in IoT networks.
3. Proposed System Model
The proposed system introduces a lightweight, physical-layer-assisted authentication and authorization framework for IoT environments, as illustrated in Figure 1. The architecture is structured into three functional layers: the device layer, the edge or gateway layer, and the cloud-based trust management layer.
Figure 1.
System model.
At the device layer, heterogeneous IoT nodes (e.g., sensors, embedded systems, and mobile devices) gather environmental data and communicate with the gateway layer. Each gateway hosts a local EKF–ML model, shown in Figure 2, which processes real-time physical-layer measurements—specifically the RSSI and LQI—to produce device-specific fingerprints. These measurements are closely linked to the physical propagation environment, making them difficult to replicate and providing robust authentication cues.
Figure 2.
Proposed EKF–ML-based authentication and authorization system model.
Additional parameters, including temperature, battery level, and short-term signal variations, further enhance feature distinctiveness. The EKF–ML model effectively filters noise and extracts reliable features, enabling fast on-site authentication and early rejection of unauthorized devices. At the cloud layer, the global trust management node aggregates data from multiple gateways to train and update a global ML model, which is synchronized across distributed controllers to ensure consistent trust evaluation and adaptive learning. This distributed approach improves scalability, fault tolerance, and resilience while maintaining reliable and consistent authentication and authorization decisions across the network.
4. Materials and Methods
4.1. Dataset Description
The dataset employed in this study to evaluate the effectiveness of the proposed EKF–ML framework for IoT device authentication and authorization was originally introduced in [32]. The data acquisition involved four ZigBee Zolertia Z1 motes, with one designated as the receiver (gateway) and three as sender nodes. These sender nodes were positioned at fixed distances of 1 m, 2 m, and 3 m from the gateway to capture spatial diversity in the signal characteristics. Three different antenna orientations (0°, 90°, and 180°) were tested for each sender, while the nodes remained stationary during measurements. The experiments were conducted in the IoT and Wireless Communication Protocols Laboratory, chosen to minimize obstructions and external wireless interference. Minor environmental disturbances, such as occasional movement of individuals outside the laboratory, were present to provide realistic dynamic conditions. The measurements were repeated by varying the placement of transmitter and receiver nodes to assess positional effects on the captured parameters.
The dataset contains multiple physical-layer attributes crucial for detecting spoofed transmissions. The RSSI captures the power level at the receiver, which is typically consistent for authentic devices but may fluctuate for spoofed transmissions originating from varied locations. The LQI evaluates the reliability of the communication channel, with spoofing activity often associated with lower link quality. Device-specific parameters, including battery level and internal temperature, are also recorded; genuine devices generally exhibit predictable battery consumption and stable internal temperatures, while spoofed devices may show irregular patterns or deviations. Additional parameters, such as acceleration in the X, Y, and Z axes, channel check rate, radio channel, and transmission power, are included to provide a comprehensive characterization of the wireless environment.
A total of 347,200 instances were collected over 24 h intervals to capture day–night variations and their impact on RSSI, LQI, and other metrics. The distribution and attributes of these features are illustrated in Figure 3 and Table 2, highlighting their significance in distinguishing authentic devices from malicious or spoofed nodes.
Figure 3.
(a) Distribution of trusted and spoofed samples for each client device. (b) Representation of physical and signal features extracted from the dataset. The upper plots illustrate the variation in temperature and battery level, while the lower plots depict the RSSI and LQI signal behavior for different clients.
Table 2.
Summary of the dataset.
4.2. Extended Kalman Filter
This work employs an EKF for feature extraction, where received signal indicators are processed through recursive estimation to capture device-specific characteristics. In this framework, signal parameters such as RSS and LQI are treated as dynamic system inputs, while physical attributes, including temperature and battery level, complement the extracted features to improve trust score estimation through machine learning models. The EKF extends the conventional linear Kalman Filter (LKF) by accommodating nonlinear state transitions through local linearization, making it suitable for dynamic IoT environments where signal propagation is inherently nonlinear [33].
The filter operates through two main stages: prediction and update. During the prediction phase, the EKF predicts the next state of the system using the state transition model, while in the update phase, new measurements are incorporated to refine the prediction. This iterative correction mechanism allows the filter to achieve an accurate state estimate in the presence of noise and uncertainty [34,35]. Such recursive estimation improves the quality and stability of signal-derived features, which are crucial for physical-layer authentication and device trust assessment. The general nonlinear state transition is represented as:
In this context, denotes the state vector at the discrete time step k. The function is indicative of the nonlinear state transition function, which serves to propagate the preceding state . The variable represents the control input applied at the prior time step. Additionally, is indicative of the noise component, which adheres to a Gaussian distribution with zero mean and a covariance matrix denoted as Q.
The associated measurement model is articulated as follows:
where represents the measurement vector, signifies the nonlinear measurement function, and embodies Gaussian measurement noise characterized by a covariance matrix . The EKF linearized both the state transition and measurement functions around the current state estimate by employing a first-order Taylor series expansion, resulting in the formation of Jacobian matrices that provide approximations of the system dynamics. The recursive equations are formulated as follows:
In this framework, and represent the Jacobian matrices associated with the state transition function and the measurement function, respectively. The Kalman gain is denoted by , the innovation vector is indicated by , and the innovation covariance is symbolized by . This methodology enables efficient state estimation, even in the presence of nonlinear dynamics and noise perturbations in the signals.
EKF-Based Feature Extraction
The EKF is integral to transforming raw signal data into stable, distinctive features essential for authenticating IoT devices. By continuously analyzing metrics such as RSSI and LQI, the EKF effectively captures device-specific transmission behaviors, even in the presence of interference. Its recursive prediction–update mechanism attenuates noise while preserving long-term signal trends, enabling the generation of consistent radio-frequency fingerprints. Furthermore, the EKF strengthens anomaly detection through residual analysis and Mahalanobis distance, thereby enhancing the reliability of machine learning–based trust evaluation systems. The state vector is precisely designed to represent both signal magnitudes and short-term dynamics, facilitating the accurate identification of subtle device behavior patterns, as detailed below:
where and denote the estimated RSS and LQI biases, respectively, while and represent their corresponding temporal trends. This formulation allows the EKF to model gradual signal variations caused by channel dynamics while filtering out random noise and short-term interference.
The state transition and observation models are defined by the matrices F and H as follows:
where denotes the time interval between successive measurements. The matrix F captures the constant velocity model of the RSSI and LQI trends, while H maps the hidden state variables to the observable measurements. This structure enables the EKF to robustly estimate signal dynamics and suppress noise, providing stable features for trust computation in the subsequent stage.
The residual r between the measured and predicted values serves as a key indicator of signal behavior:
These residuals quantify deviations from the expected signal patterns. Persistent or abrupt variations in the residuals may indicate spoofing or unauthorized transmission attempts, as legitimate devices typically exhibit consistent signal dynamics. The estimated biases and capture stable transmitter characteristics that can serve as unique radio-frequency fingerprints.
To characterize temporal stability, rolling statistical metrics are computed within a sliding window w:
where represents the signal observations (RSSI and LQI). The mean indicates the underlying trend, while the standard deviation reflects the stability of the signal. High values typically correspond to irregular propagation or interference events.
An additional anomaly detection metric employed in this work is the Mahalanobis distance [36,37], which accounts for the correlations between the signal features extracted through the covariance matrix . It is computed as follows:
where denotes the innovation vector obtained from the difference between the actual measurement and its prediction from the EKF, and represents the innovation covariance matrix that captures the statistical relationships between signal features such as RSSI and LQI. Unlike Euclidean distance, the Mahalanobis distance normalizes the residuals by the estimated covariance, thereby scaling each deviation relative to its expected variance and inter-feature correlation.
Smaller values indicate that the observed measurements closely resemble the predicted signal behavior, suggesting normal operation of the device. In contrast, larger values represent significant statistical deviations from the expected trajectory of the model. Such deviations often arise when the characteristics of the signal deviate from their learned correlation structure—an effect typically caused by spoofing, replay attacks, or unauthorized device transmissions [38,39].
Physical parameters, such as battery status and temperature, complement the signal-level features:
where captures the battery consumption rate and measures the variation in temperature. Unusual behavior in these parameters can suggest tampering or unauthorized device activity.
The EKF effectively tracks RSSI and LQI measurements by suppressing rapid fluctuations and highlighting the underlying stable trends, as shown in Figure 4a. This demonstrates the EKF’s ability to reduce measurement noise while preserving essential signal characteristics that reflect normal device behavior. In contrast, Figure 4b presents the EKF’s tracking results for spoofed samples, where deviations from expected patterns are clearly observable.
Figure 4.
Tracking of samples using the EKF; upper plots show RSSI, while lower plots represent LQI. (a) Normal samples, (b) Spoofed samples.
Each extracted feature corresponds to a specific measurement or parameter utilized in trust evaluation, as depicted in Table 3 and Figure 5. These features encapsulate both transient and steady-state behaviors of devices, thereby offering a comprehensive input set for machine learning algorithms to accurately classify nodes as either authenticated or non-authenticated. A summary of these features is provided in the subsequent section. The complete dataset utilized in the proposed model, which includes features derived via the Extended Kalman Filter (EKF), is delineated as follows:
Table 3.
Description of Extracted Features.
Figure 5.
Sample of features extracted using the EKF.
4.3. Machine Learning Model Training
The machine learning model within the proposed framework estimates the probability that a device is legitimate, denoted as . This probabilistic measure serves as a key input to the hybrid trust computation process discussed in Section 4.4. The model is trained on a comprehensive feature set that combines device-level attributes—such as Battery Level, LQI, RSSI, and Temperature—with signal-level parameters extracted from the EKF, including residuals, biases, and the Mahalanobis distance. This integration enables the model to capture both the behavioral and signal-domain characteristics, enhancing its ability to distinguish between trusted and spoofed devices under diverse network conditions.
The Extreme Gradient Boosting (XGBoost) algorithm was selected following a comparative evaluation of multiple machine learning and deep learning methodologies, as it demonstrated an optimal balance between predictive accuracy and computational efficiency. To ensure consistent model performance and mitigate the potential for overfitting, a five-fold cross-validation approach was employed.
Upon completion of the training phase, the XGBoost model computes the probability estimates of device legitimacy through its internal softmax output layer. For each device instance, the predict_proba() function generates a two-element vector that represents the posterior probabilities of the categories “untrusted” and “trusted.” The second element of this vector signifies the probability of the device being legitimate, denoted as . This probability value indicates the model’s confidence regarding the device’s authenticity, based on the inferred distribution of input features.
4.4. Hybrid Trust Score and Authentication Policy
The proposed framework employs a hybrid trust computation mechanism that integrates ML with signal-level consistency analysis derived from the EKF. This design improves the reliability of authentication by combining historical behavioral learning with real-time signal monitoring. The hybrid computation process is summarized in Algorithm 1.
The hybrid trust score, denoted , is formulated as a weighted combination of the probability output of ML and the trust component based on EKF, as follows:
where denotes the posterior probability of the “trusted” class estimated by the ML classifier, and represents the EKF-based trust value, reflecting signal stability and residual consistency. The weighting parameters and are empirically selected to balance the contributions of both components, ensuring sensitivity to dynamic signal variations while preserving robust classification accuracy.
The ML probability component is obtained from the trained classifier using the set of characteristics described in the previous subsection. Reflects the statistical behavior of the device based on previously learned data and network observations. Meanwhile, the EKF trust component is calculated using the normalized inverse of the Mahalanobis distance, which measures the deviation between the observed and predicted signal states as:
where denotes the Mahalanobis distance. A higher reflects a greater deviation from the expected state, leading to a lower trust value. This formulation enhances numerical stability and maintains robustness against transient noise fluctuations.
The computed trust score is assigned to four authentication levels to enable adaptive access control. The corresponding policy is defined as follows:
Each level represents a distinct access privilege and network response. The adaptive authentication structure enables dynamic policy enforcement based on real-time trust evaluation. Table 4 summarizes the trust levels and corresponding authorization actions.
| Algorithm 1 Hybrid Trust-Based Authentication Framework for IoT Devices | |
| Input: Device feature vector , trained ML model , EKF parameters | |
| Output: Final trust score , authentication decision | |
| 1: | procedure Hybrid Authentication(, ) |
| 2: | Phase 1: EKF-Based Feature Extraction |
| 3: | Extract signal measurements: |
| 4: | Initialize EKF parameters: |
| 5: | for to N do |
| 6: | |
| 7: | |
| 8: | |
| 9: | |
| 10: | |
| 11: | |
| 12: | Compute residuals: |
| , | |
| 13: | Compute Mahalanobis distance: |
| 14: | Compute Rolling Statistics (window ): |
| , | |
| 15: | Compute battery drain rate: |
| 16: | Compute temperature variation: |
| 17: | end for |
| 18: | |
| 19: | Phase 2: Machine Learning Training and Prediction |
| 20: | |
| 21: | Train model |
| 22: | |
| 23: | Phase 3: Hybrid Trust Fusion |
| 24: | |
| 25: | Phase 4: Authentication Decision |
| 26: | if then |
| 27: | return Grant Access (HIGH) |
| 28: | else if then |
| 29: | return Monitor Access (MEDIUM) |
| 30: | else if then |
| 31: | return Restrict Access (LOW) |
| 32: | else |
| 33: | return Block Access (DENIED) |
| 34: | end if |
| 35: | end procedure |
Table 4.
Trust Levels and Access Policies.
5. Simulation and Results Discussion
5.1. Performance Metrics
To evaluate the performance of the proposed hybrid EKF–ML framework, a comprehensive set of statistical and classification metrics was applied. These metrics were designed to assess both the overall accuracy of the model and its robustness in distinguishing between spoofed and legitimate devices under various network conditions. For each experimental configuration, a confusion matrix was constructed to record the counts of True Positives (TP), True Negatives (TN), False Positives (FP), and False Negatives (FN).
The overall classification accuracy was calculated as
where higher values indicate improved global classification performance. The True Positive Rate (TPR), or Recall, measures the proportion of correctly identified legitimate devices and is expressed as
The precision metric evaluates the reliability of positive classifications and is defined as
To maintain a balanced representation between precision and recall, the F1-score was used, defined as
A comprehensive evaluation was also performed using the Matthews Correlation Coefficient (MCC), which provides a balanced measure of model performance across all classification outcomes and is formulated as
In addition, error-related metrics were used to analyze the framework’s sensitivity to incorrect classifications. The False Acceptance Rate (FAR) quantifies the percentage of spoofed devices mistakenly accepted as legitimate:
Similarly, the False Discovery Rate (FDR) measures the proportion of incorrect positive identifications:
The False Rejection Rate (FRR) represents the proportion of legitimate devices erroneously classified as spoofed and is expressed as
These evaluation metrics collectively provide a detailed assessment of the proposed framework’s precision, stability, and reliability in handling security anomalies. Maintaining high precision while minimizing both FAR and FRR is crucial for preventing unauthorized access and ensuring that legitimate devices are authenticated without rejection.
5.2. ML Performance
In this section, we conduct a comprehensive evaluation of the proposed hybrid trust-based authentication framework, utilizing a dataset composed of 347,200 samples, which includes 264,454 trusted and 82,746 untrusted (spoofed) device instances. This dataset was derived via an EKF-based feature extraction method, yielding 17 unique features that encapsulate both device-level and signal-domain characteristics.
To ascertain the efficacy of the proposed model, a variety of machine learning and deep learning algorithms were employed, such as Support Vector Machine (SVM), Logistic Regression, K-Nearest Neighbors (KNN), Random Forest, Multi-Layer Perceptron (MLP) Neural Network, and eXtreme Gradient Boosting (XGBoost). Each algorithm was trained on identical feature sets and tested under consistent experimental conditions. A five-fold cross-validation approach was implemented to ensure robust and unbiased performance across all models. The comparative results are presented in Table 5, which delineates essential performance metrics, including precision, the mean and standard deviation of cross-validation, execution time, and the F1-score.
Table 5.
Performance Comparison of Machine Learning and Deep Learning Models.
The empirical findings unequivocally demonstrate that the XGBoost algorithm attained a superior accuracy rate of 99.57% and an F1-score of 0.9972. This performance surpasses that of both conventional machine learning models and contemporary deep learning architectures while concurrently sustaining minimal computational expenditure.
5.3. Trust Score Evaluation
The trust score represents the probabilistic confidence generated by the proposed hybrid authentication model, which integrates the ML classifier with the EKF. Its computation depends on two weighting factors, and , which regulate the contributions of the stability of the EKF-based signal and the reliability of the ML-based classification. To identify the optimal configuration, three weighting combinations were evaluated: –, –, and –. Figure 6 illustrates the authentication performance in these configurations using different primary evaluation metrics. The results demonstrate that the – configuration consistently produces better performance, achieving an Accuracy of 99.56%, a Precision of 99.43%, an F1-Score of 99.71% and an MCC of 98.79%. The model – again demonstrates the most balanced outcome, with a FAR of 1.82%, a TRR of 98.18% and an FDR of 0.57%. The findings emphasize that increasing the contribution of the EKF improves the stability of the computed trust score and reinforces the robustness of the authentication process. The – configuration, therefore, represents an optimal trade-off between dynamic adaptability and signal consistency, achieving maximal detection accuracy while minimizing security risks in IoT network environments.
Figure 6.
Comparative analysis of authentication performance using different and parameters: (a) Accuracy and F1-Score, (b) Percentage of FAR, FRR, and FDR.
5.4. Hybrid Model Performance Evaluation
The proposed hybrid authentication framework integrates an ML classifier with an EKF to enhance both classification accuracy and temporal stability. The system generates a dynamic trust score that quantifies the probabilistic confidence in device authenticity. This score is obtained through a weighted fusion of ML- and EKF-based decisions, governed by two parameters, and , which determine the respective influence of instantaneous ML classification and EKF-based temporal estimation.
As illustrated in Figure 7a, the fused trust scores are categorized into four authorization levels—Denied, Low, Medium, and High. This hierarchical structure supports interpretable and adaptive access control decisions suitable for heterogeneous IoT environments. Figure 7b demonstrates that ML-based scores exhibit sharper classification boundaries, while EKF-based estimations provide smoother temporal transitions. When combined under and , the hybrid model achieves an optimal balance between responsiveness and stability. Figure 7c further confirms the consistency of trust score evolution across multiple IoT devices, highlighting the model’s generalization capability.
Figure 7.
Hybrid model performance: (a) Authorization levels based on combined device scores, (b) Distribution of ML and EKF scores with and , (c) Score distribution across different devices.
Figure 8 validates the hybrid model’s overall performance under the – configuration. Both the ROC and Precision–Recall curves achieve AUC values of 0.999, indicating near-perfect class discrimination. The confusion matrix reveals well-separated class boundaries with minimal false acceptances and rejections. Under the optimal configuration –, the model attains 99.56% Accuracy, 99.43% Precision, 99.71% F1–Score, and an MCC of 98.79%. It also maintains a low FAR of 1.82%, a TRR of 98.18%, and an FDR of 0.57%.
Figure 8.
Comparative analysis of authentication performance under different and parameter configurations. (a) ROC curve, (b) Precision recall, (c) Accuracy, F1-score, and error rate variation, (d) Confusion matrix.
As summarized in Table 6, the statistical evaluation is presented from two complementary perspectives: AA–Overall and Attack–Overall. The AA–Overall metrics quantify the model’s authentication accuracy for legitimate devices, computed directly from the true and predicted labels. Conversely, the Attack–Overall metrics measure the model’s ability to detect and reject adversarial access attempts. These are obtained by inverting the true and predicted labels during computation. This dual analysis provides a comprehensive understanding of the framework’s behavior in both acceptance and rejection scenarios, ensuring balanced system performance across diverse IoT security conditions.
Table 6.
Performance comparison between Authentication Accuracy (AA) and Attack Detection.
5.5. Comparative Discussion
The Related Work section provides a synthesis of several recent advancements in physical-layer authentication methodologies. The majority of these methods are predicated on machine learning-based classification techniques, including but not limited to deep neural networks, Siamese network architectures, and models based on feature-space correlation. These methodologies have demonstrated classification accuracies ranging from 92% to 100%. Nevertheless, these approaches typically presuppose ideal or static channel conditions. In practical scenarios, the wireless communication medium is continuously exposed to noise, fading, and interference, which can markedly impair the reliability of classification outcomes.
To emphasize this aspect, Table 7 presents a focused comparison highlighting the influence of noise handling and temporal signal stability. While some prior works (e.g., [24,27,28]) achieved high nominal accuracy, they exhibit reduced robustness when channel fluctuations occur. In contrast, the proposed EKF-ML assisted hybrid model explicitly compensates for temporal and stochastic noise variations, maintaining stable performance even under dynamic signal conditions. This makes it more applicable to real-world IoT and edge deployments, where transmission quality can vary unpredictably.
Table 7.
Comparison of prior works with the proposed EKF–ML hybrid framework.
The comparative evaluation confirms that the EKF component contributes to enhanced signal smoothing and temporal coherence, effectively filtering transient channel noise before final classification. This characteristic ensures that the trust score remains consistent even when RSSI, LQI, or temperature signals fluctuate during transmission. Consequently, although certain static-environment models report slightly higher accuracy, they lack robustness when exposed to real-world noise or device mobility. The hybrid ML–EKF framework, therefore, provides a more reliable and deployable solution for continuous authentication and authorization in practical IoT systems.
6. Limitations and Future Work
While the proposed EKF–ML framework demonstrates strong authentication performance and robustness against noisy channel conditions, its current validation is subject to several limitations. The experimental evaluation was conducted in a controlled, small-scale indoor environment using a limited number of devices. Although this setup enabled accurate performance analysis and repeatability, it does not fully represent large-scale IoT deployments characterized by high node density, heterogeneous hardware, and complex interference patterns.
Moreover, the dataset assumes stationary nodes throughout the experiments. The EKF component effectively smooths temporal variations in physical-layer features such as RSSI and LQI under static conditions; however, the current state model does not account for mobility-related dynamics. As a result, the framework has not yet been evaluated under rapidly changing channel conditions typically observed in mobile IoT or Internet of Vehicles (IoV) scenarios, which may affect estimation accuracy and authentication stability.
Future work will focus on extending the framework toward more dynamic and large-scale environments. This includes collecting data from mobile nodes and validating the model under realistic mobility conditions. To support this, the EKF state formulation will be redesigned to incorporate motion-related parameters, such as velocity and acceleration, enabling improved tracking of time-varying signal behavior. In addition, evaluations in denser and interference-rich settings will be conducted to further assess scalability, computational efficiency, and robustness, thereby strengthening the framework’s applicability to real-world IoT deployments.
7. Conclusions
This study introduces a hybrid framework that integrates the Extended Kalman Filter with Machine Learning to enhance device authentication in Internet of Things networks. The proposed system combines EKF-based signal refinement with ML classification to improve physical-layer security, achieving an effective balance between accuracy, temporal stability, and computational efficiency. This approach addresses the limitations of conventional ML-only methods, which often experience performance degradation under noisy or dynamic channel conditions.
Simulation results show that the hybrid model, configured with parameters and , delivers optimal performance, achieving 99.56% accuracy, a 99.71% F1-score, and a very low false acceptance rate. The framework maintained high precision, recall, F1-score, and a strong MCC, confirming its reliability in distinguishing legitimate devices from spoofing attacks across diverse operational scenarios. Among the classifiers tested, XGBoost demonstrated the most consistent performance with minimal computational overhead, while the neural network and random forest models also exhibited notable robustness. Overall, the proposed EKF–ML framework provides a scalable, energy-efficient, and noise-resilient solution for continuous device authentication, offering a practical and reliable foundation for securing next-generation IoT systems.
Funding
This study is supported via funding from Prince Sattam bin Abdulaziz University project number (PSAU/2025/R/1446).
Data Availability Statement
Data are contained within the article.
Acknowledgments
The author would like to thank Prince Sattam Bin Abdulaziz University (PSAU) for funding this research.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Lin, Z.; Xiang, W. Wireless Sensing and Networking for the Internet of Things. Sensors 2023, 23, 1461. [Google Scholar] [CrossRef] [Scilit]
- Adeyeye, A.; Lynch, C.; He, X.; Lee, S.; Cressler, J.D.; Tentzeris, M.M. Fully inkjet printed 60GHz backscatter 5G RFID modules for sensing and localization in internet of things (IoT) and digital twins applications. In Proceedings of the 2021 IEEE 71st Electronic Components and Technology Conference (ECTC), Virtual, 1–4 July 2021; IEEE: Piscataway Township, NJ, USA, 2021; pp. 1193–1198. [Google Scholar]
- Alalwany, E.; Mahgoub, I. Security and trust management in the internet of vehicles (IoV): Challenges and machine learning solutions. Sensors 2024, 24, 368. [Google Scholar] [CrossRef] [Scilit]
- Alhamarneh, R.A.; Mahinderjit Singh, M. Strengthening internet of things security: Surveying physical unclonable functions for authentication, communication protocols, challenges, and applications. Appl. Sci. 2024, 14, 1700. [Google Scholar] [CrossRef] [Scilit]
- Zakaria, A.A.; Amr, T.; Ragheb, A.A. IoT in Smart Urban Planning: A Comprehensive Review of Applications, Developments and Engineering Perspectives. IEEE Access 2025, 13, 135316–135335. [Google Scholar] [CrossRef] [Scilit]
- Mustafa, R.; Sarkar, N.I.; Mohaghegh, M.; Pervez, S. A cross-layer secure and energy-efficient framework for the internet of things: A comprehensive survey. Sensors 2024, 24, 7209. [Google Scholar] [CrossRef] [Scilit]
- Sarkar, S.; Shafaei, S.; Jones, T.S.; Totaro, M.W. Secure Communication in Drone Networks: A Comprehensive Survey of Lightweight Encryption and Key Management Techniques. Drones 2025, 9, 583. [Google Scholar] [CrossRef] [Scilit]
- Ni, J.; Fang, G.; Zhao, Y.; Ren, J.; Chen, L.; Ren, Y. Distributed Group Key Management Based on Blockchain. Electronics 2024, 13, 2216. [Google Scholar] [CrossRef] [Scilit]
- Elhanashi, A.; Dini, P.; Saponara, S.; Zheng, Q. Advancements in TinyML: Applications, limitations, and impact on IoT devices. Electronics 2024, 13, 3562. [Google Scholar] [CrossRef] [Scilit]
- Sasi, T.; Lashkari, A.H.; Lu, R.; Xiong, P.; Iqbal, S. A comprehensive survey on IoT attacks: Taxonomy, detection mechanisms and challenges. J. Inf. Intell. 2024, 2, 455–513. [Google Scholar] [CrossRef] [Scilit]
- Alrefaei, A.; Ilyas, M. Using machine learning multiclass classification technique to detect IoT attacks in real time. Sensors 2024, 24, 4516. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Altulaihan, E.; Almaiah, M.A.; Aljughaiman, A. Anomaly detection IDS for detecting DoS attacks in IoT networks based on machine learning algorithms. Sensors 2024, 24, 713. [Google Scholar] [CrossRef] [Scilit]
- Yao, X.; Yang, H.; Zeng, W. Lightweight physical-layer authentication for IoT devices access against jamming attacks. Phys. Commun. 2025, 72, 102787. [Google Scholar] [CrossRef] [Scilit]
- Hoang, T.M.; Vahid, A.; Tuan, H.D.; Hanzo, L. Physical layer authentication and security design in the machine learning era. IEEE Commun. Surv. Tutorials 2024, 26, 1830–1860. [Google Scholar] [CrossRef] [Scilit]
- Roopak, M.; Ran, Y.; Chen, X.; Tian, G.Y.; Parkinson, S. Channel state information based physical layer authentication for Wi-Fi sensing systems using deep learning in Internet of things networks. IET Wirel. Sens. Syst. 2024, 14, 441–450. [Google Scholar] [CrossRef] [Scilit]
- Qin, C.; Niu, M.; He, J.; Zhang, P. Improved PHY-Layer Authentication Utilizing Radiation Pattern Feature for 6G-IoT Systems. IEEE Internet Things J. 2025, 12, 34619–34622. [Google Scholar] [CrossRef] [Scilit]
- He, J.; Niu, M.; Zhang, P.; Qin, C. Enhancing PHY-layer authentication in RIS-assisted IoT systems with cascaded channel features. IEEE Internet Things J. 2024, 11, 24984–24997. [Google Scholar] [CrossRef] [Scilit]
- Stomaci, A.; Marabissi, D.; Mucchi, L. Comparison of machine learning approaches based on multiple channel attributes for authentication andspoofing detection at the physical layer. J. Commun. 2024, 19, 99–106. [Google Scholar] [CrossRef] [Scilit]
- Siddiq, M.S.; Younis, S. Federated Learning Scheme for Physical Layer Authentication in Industrial IoT Application. In Proceedings of the 2024 10th International Engineering Conference on Advances in Computer and Civil Engineering (IEC), Yogyakarta, Indonesia, 23–24 October 2024; IEEE: Piscataway Township, NJ, USA, 2024; pp. 7–12. [Google Scholar]
- Wang, Y.; Jin, J.; Li, Y.; Choi, C. A reliable physical layer authentication algorithm for massive IoT systems. IEEE Access 2020, 8, 80684–80690. [Google Scholar] [CrossRef] [Scilit]
- Dhakal, R.; Kandel, L.N.; Shekhar, P. Radio Frequency Fingerprinting Authentication for IoT Networks Using Siamese Networks. IoT 2025, 6, 47. [Google Scholar] [CrossRef] [Scilit]
- Wang, J.; Shao, Y.; Wang, Y.; Ge, Y.; Yu, R. Physical layer authentication based on nonlinear Kalman filter for V2X communication. IEEE Access 2020, 8, 163746–163757. [Google Scholar] [CrossRef] [Scilit]
- Huang, D.; Al-Hourani, A. Physical layer spoof detection and authentication for IoT devices using deep learning methods. IEEE Trans. Mach. Learn. Commun. Netw. 2024, 2, 841–854. [Google Scholar] [CrossRef] [Scilit]
- Ahmed, K.I.; Tahir, M.; Lau, S.L.; Habaebi, M.H.; Ahad, A.; Mughees, A. Trust-Aware Authentication and Authorization for IoT: A Federated Machine Learning Approach. IEEE Internet Things J. 2024, 12, 9889–9904. [Google Scholar] [CrossRef] [Scilit]
- Quadar, N.; Chehri, A.; Debaque, B. Wireless Security and IoT Device Identification using RF Fingerprinting and Deep Learning. In Proceedings of the 2024 IEEE 100th Vehicular Technology Conference (VTC2024-Fall), Washington, DC, USA, 7–10 October 2024; IEEE: Piscataway Township, NJ, USA, 2024; pp. 1–5. [Google Scholar]
- Mohammadali, A.; AlTawy, R.; Youssef, A. Privacy-Preserving Interdomain Authorization and Authentication for Internet of Things. IEEE Internet Things J. 2025, 12, 33493–33505. [Google Scholar] [CrossRef] [Scilit]
- Jing, T.; Huang, H.; Gao, Q.; Wu, Y.; Huo, Y.; Wang, Y. Multi-user physical layer authentication based on CSI using ResNet in mobile IIoT. IEEE Trans. Inf. Forensics Secur. 2023, 19, 1896–1907. [Google Scholar] [CrossRef] [Scilit]
- Du, R.; Zhen, L.; Liu, Y. Physical layer authentication based on integrated semi-supervised learning in wireless networks for dynamic industrial scenarios. IEEE Trans. Veh. Technol. 2022, 72, 6154–6164. [Google Scholar] [CrossRef] [Scilit]
- Alkanhal, M.; Alali, A.; Younis, M. A distributed lightweight PUF-based mutual authentication protocol for IoV. IoT 2023, 5, 1–19. [Google Scholar] [CrossRef] [Scilit]
- Villegas-Ch, W.; Gutierrez, R.; Navarro, A.M.; Mera-Navarrete, A. Lightweight Blockchain for Authentication and Authorization in Resource-Constrained IoT Networks. IEEE Access 2025, 13, 48047–48067. [Google Scholar] [CrossRef] [Scilit]
- Baldini, G.; Giuliani, R.; Dimc, F. Physical layer authentication of Internet of Things wireless devices using convolutional neural networks and recurrence plots. Internet Technol. Lett. 2019, 2, e81. [Google Scholar] [CrossRef] [Scilit]
- Ahmed, K.I.; Tahir, M.; Lau, S.L.; Habaebi, M.H.; Ahad, A.; Pires, I.M. Dataset for authentication and authorization using physical layer properties in indoor environment. Data Brief 2024, 55, 110589. [Google Scholar] [CrossRef] [Scilit]
- Huang, Z.; Xu, Q.; Sun, M.; Zhu, X. A Kalman Filter-Based Localization Calibration Method Optimized by Reinforcement Learning and Information Matrix Fusion. Entropy 2025, 27, 821. [Google Scholar] [CrossRef] [Scilit]
- Li, D.C.; Felix, J.R.; Chin, Y.L.; Jusuf, L.V.; Susanto, L.J. Integrated extended Kalman filter and deep learning platform for electric vehicle battery health prediction. Appl. Sci. 2024, 14, 4354. [Google Scholar] [CrossRef] [Scilit]
- Yan, Z.; Xu, Y.; Wang, L.; Hu, A. Feature extraction by enhanced time–frequency analysis method based on Vold-Kalman filter. Measurement 2023, 207, 112383. [Google Scholar] [CrossRef] [Scilit]
- Kadhim, M.N.; Al-Shammary, D.; Mahdi, A.M.; Ibaida, A. Feature selection based on Mahalanobis distance for early Parkinson disease classification. Comput. Methods Programs Biomed. Update 2025, 7, 100177. [Google Scholar] [CrossRef] [Scilit]
- Oursland, A. Interpreting neural networks through mahalanobis distance. arXiv 2024, arXiv:2410.19352. [Google Scholar] [CrossRef] [Scilit]
- Jezequel, L.; Vu, N.S.; Beaudet, J.; Histace, A. Efficient anomaly detection using self-supervised multi-cue tasks. IEEE Trans. Image Process. 2023, 32, 807–821. [Google Scholar] [CrossRef] [Scilit]
- Xia, S.; Tao, X.; Li, N.; Wang, S.; Sui, T.; Wu, H.; Xu, J.; Han, Z. Multiple correlated attributes based physical layer authentication in wireless networks. IEEE Trans. Veh. Technol. 2021, 70, 1673–1687. [Google Scholar] [CrossRef] [Scilit]
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. |
© 2025 by the author. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.







