Skip to Content
EnergiesEnergies
  • Article
  • Open Access

8 May 2026

36 Pages

Optimizing Smart-Home Energy Systems Through Energy-Efficient Off-Chain Blockchain-Based Attribute-Based Access Control (ABAC): A Hybrid LightGBM Approach

,
,
,
,
,
,
and
1
Department of Computer Science, DHA Suffa University, Karachi 75500, Pakistan
2
Department of Information Technology, DHA Suffa University, Karachi 75500, Pakistan
3
Department of Electrical Engineering, College of Engineering, University of Business and Technology, Jeddah 21361, Saudi Arabia
4
Department of Electrical Engineering, Faculty of Engineering and Architecture, Umm Al Qura University, Makkah 24382, Saudi Arabia

Abstract

The widespread deployment of Internet of Things (IoT) technologies in smart-home energy systems has increased the demand for secure, context-aware, and energy-efficient access control (AC) mechanisms. Although blockchain-based AC provides immutability, auditability, and fine-grained policy enforcement, its dependence on on-chain decision-making introduces significant computational latency and energy overhead, limiting its suitability for resource-constrained IoT environments. This paper proposes Optimized Dynamic-Attribute-Based Access Control-IoT (ODABAC-IoT), a hybrid off-chain and decentralized ABAC framework that combines off-chain LightGBM inference with selective on-chain verification to reduce blockchain workload while preserving trust and transparency. This work focuses on improving the computational efficiency, latency, and energy consumption of blockchain-enabled AC within smart-home energy systems, rather than directly optimizing physical energy consumption. In the proposed framework, high-confidence access requests are evaluated off-chain, whereas uncertain requests are forwarded to smart contracts for final validation. This hybrid decision-making strategy reduces unnecessary blockchain transactions, lowers latency, and improves computational efficiency without compromising security. Experimental results demonstrate up to 65% reduction in blockchain transaction volume, 64% improvement in latency, and 65% reduction compared to on-chain ABAC and 50% compared to hybrid blockchain approaches. These gains correspond to a reduction in daily blockchain energy consumption from 10 kWh to 3.5 kWh in a representative household scenario. The results indicate that ODABAC-IoT improves scalability, energy efficiency of the digital control layer, and responsiveness in IoT-enabled smart home energy systems, offering an effective pathway toward energy-aware and secure AC in the digital infrastructure of smart home energy systems.

1. Introduction

The increasing demand of the world towards more energy-efficient and sustainable technologies has enhanced the necessity of more complex control of electricity use and efficient management in interconnected surroundings. In smart-home and smart-grid scenarios, there is a wide range of IoT devices constantly communicating to balance loads, distributed generation, and overall energy efficiency. However, despite providing a high level of security and transparency, blockchain-based AC often results in both computational and energy overhead, which can undermine the efficiency benefits themselves. As a result, an increasing demand is building around lightweight and intelligent frameworks to ensure controlled and energy-aware operation of IoT-enabled energy systems.
IoT is becoming an increasing mainstay in industries such as healthcare, smart cities, and industrial automation. Nevertheless, as IoT Networks grow, concerns about AC, security, and scalability have also increased. Hasan et al. in [1] proposed a smart-contract-based AC framework addressing these challenges by utilizing blockchain for decentralized and secure policy enforcement. Waheed et al. [2] proposes a dynamic ABAC framework that integrated off-chain machine learning (ML) to reduce computational costs and improved system responsiveness by pre-evaluating access requests before they were processed on the blockchain, addressing the limitations of traditional Role-Based Access Control (RBAC), which is inflexible for fast-paced IoT environments with devices frequently joining and leaving networks. As a more context-sensitive solution, ABAC has potential but is not practically implemented due to complexity and insufficient decentralization [3].
Blockchain technology provides a decentralized way of AC, increasing the integrity and transparency of data sharing in IoT systems [4]. The use of smart contracts generated on a blockchain platform is beneficial as it provides automated and tamper-proof access decisions. However, using blockchain in the IoT presents issues in terms of performance and latency, notably with the availability of resources for low-powered devices [5].
In order to circumvent these issues, researchers have proposed hybrid models that pair blockchain with off-chain ML components. In a hybrid architecture, ML models can be employed to preprocess incoming access requests to filter out low-risk or high-confidence decisions and only submit ambiguous decisions to the blockchain, which reduces overhead [6]. LightGBM and Random Forest classifiers, for example, have shown good performance in improving the accuracy of access decisions and responsiveness of the system in a hybrid model architecture [7].
Recent studies have shown that ML can improve authentication and AC in resource-constrained IoT settings with good accuracy and lightweight performance [8]. Also, the use of distributed blockchain frameworks using ABAC can reduce single points of failure and improve scalability [9].
While these approaches improve AC efficiency, their impact on the energy consumption of the underlying blockchain infrastructure in smart-home energy systems remains insufficiently explored.
This paper proposes ODABAC-IoT, an off-chain and decentralized ABAC framework for IoT. ODABAC-IoT employs a preprocessing layer using LightGBM to assess access requests off-chain. Only those requests that are uncertain are forwarded to on-chain smart contracts for final validation. This represents a meaningful decrease in both the volume of blockchain transactions and latency, while retaining the audit ability and transparency properties/benefits of the model. The proposed framework focuses on optimizing the computational and energy efficiency of the digital AC layer within smart-home energy systems, rather than directly modifying physical energy consumption patterns. This proposed framework attempts to address the performance, scalability, and security shortcomings of existing IoT AC solutions [10].
The contributions of this work are threefold:
  • Optimization of a hybrid blockchain architecture decision-making pipeline with integration of off-chain ML implication with on-chain verification.
  • Optimization of cost and performance through selective on-chain execution and periodic audit mechanisms.
  • Optimization of system efficiency through comprehensive evaluation demonstrating reductions in on-chain transaction volume, latency, and blockchain-related energy consumption with negligible loss in decision accuracy.
This paper is structured into the following: Section 2 carries out a detailed literature review of the related approaches, outlining current methodologies and highlighting the existing limitations thereof. Section 3 elaborates the presented ODABAC-IoT framework, including its architectural elements and design principles. Section 4 shows how the framework can be applied to the example of a smart-home energy-management process. Section 5 describes the experimental results and provides a detailed discussion, including transaction-volume reduction, latency reduction, storage optimization, blockchain-related energy savings, compliance with energy standards, and a general evaluation of the framework performance.

3. Methodology

The proposed ODABAC-IoT framework is an optimized hybrid blockchain-enabled AC mechanism for smart-home energy systems. The methodology is built directly on a hybrid blockchain-based dynamic ABAC framework for smart energy environments. It combines Hyperledger Fabric and Hyperledger Besu to achieve decentralized, tamper-proof, and context-sensitive AC while ensuring strong security and operational efficiency and to overcome the computational overhead and scalability challenges arising from the high frequency of on-chain access evaluations. This model also introduces an off-chain Light Gradient-Boosted Machine (LightGBM)-driven pre-evaluation layer. LightGBM is a gradient-boosting decision tree framework specifically optimized for high-speed inference on tabular data, which aligns with the structured and context-rich nature of IoT AC attributes. Its ability to handle categorical, numerical, and temporal features efficiently makes it well suited for processing heterogeneous IoT request data in real time. The methodology focuses on optimizing the computational efficiency, latency, and blockchain-related energy consumption of the digital access control layer, rather than directly modifying physical energy consumption in the smart home. In the proposed framework, high-confidence decisions are executed off-chain using the lightweight LightGBM classifier, while low-confidence requests are enforced for full blockchain-based ABAC implementation. The low latency implication of LightGBM, along with a small memory footprint, makes it a suitable choice for deployment on edge devices and ensures scalability in resource-constrained IoT environments.
Trust is preserved using cryptographic signing, and audit logs ensure integrity and traceability, enabling the system to attain substantial cost and latency reductions without compromising immutability or transparency. Unless otherwise stated, all performance and energy-related results refer to the computational and blockchain infrastructure layer.
The architecture of the proposed ODABAC-IoT framework is shown in Figure 1 and consists of three layers: the IoT Device Layer, the Off-Channel ML Processing Layer, and the On-Channel Blockchain Layer. The first layer comprises smart meters, appliances, and energy management controllers that generate access requests along with contextual attributes. The Off-chain ML Processing Layer, which serves as the second layer, includes LightGBM as a prediction engine, hosted on edge nodes, to enable high-speed evaluation of access requests. Finally, the third on-chain blockchain layer utilizes the Hyperledger Fabric network to host smart contracts for policy enforcement, secure logging, and continuous trust recalibration. The solid line represents a compulsory interaction, whereas the dotted line represents a conditional interaction between the components. The white lines represent the optimization in the framework proposed in [2] study, whereas the black lines represent the adoption of the framework described by Waheed et al. in [2].
Figure 1. ODABAC-IoT hybrid architecture with off-chain ML and on-chain verification.
In the proposed architecture, in keeping with the zero-trust model, there is no trust implicit at any point in the system; every request for access is verified contextually via LightGBM inference and then validated again by blockchain-enabled ABAC policies.
This makes it possible to continuously adjust trust according to user behavior, thus applying the principle of least privilege. The use of off-chain ML improves decision-making speed without compromising on validation, whereas on-chain auditing ensures nothing escapes cryptographic scrutiny. Latency refers to the period of time taken between the creation of an access request and the ultimate decision made to grant permission.

3.1. IoT Device Layer

This includes smart-home devices and energy management components that continuously interact with the Home Energy Management System (HEMS) and external utility services and serve as the data generation and request initiation point inside the ODABAC-IoT framework. To be specific, this layer comprises smart meters for household consumption and tariff status reporting, HVAC systems (air conditioners and water heaters) for controllable load management, renewable energy units (solar inverters), and energy storage systems that manage charging and discharging cycles. Also, EV chargers, demand response controllers, and environmental sensors for monitoring temperature, occupancy, voltage, and frequency. Over time, these devices, generate requests for access like “turn on the EV charger for 2 h,” “switch air conditioner on at 5 p.m.,” etc., so they are categorized into static (device ID, owner ID, manufacturer), dynamic (energy usage, device state, battery SOC, current tariff), and contextual (location, time of request, occupancy, peak/off peak periods) classes.
The AC pipeline’s initial stage is formed by this layer, which guarantees that every single piece of operational and contextual data is collected. This in turn allows for aware and fine-grained context both for LightGBM off-chain inference and ABAC policy execution. The collected attributes are assumed to represent typical smart-home operational conditions and are used as inputs for both off-chain ML inference and on-chain policy evaluation.

3.2. Off-Chain Processing

All access requests are preevaluated off-chain before they experience blockchain processing costs. The off-chain processing pipeline in Figure 2 serves as the first level of intelligence in the ODABAC-IoT architecture, transforming raw IoT attributes into clean, standardized, and contextually enriched feature vectors, and leveraging LightGBM to make fast access predictions with high confidence. It balances efficiency and trust, and the model is trained against audited ABAC decisions, i.e., reducing blockchain execution overheads while still maintaining security and flexibility as indicated by conditional interaction represented by dotted line with in the framework. Thus, it reduces blockchain execution costs and preserves security and adaptability. This tiered architecture ensures on-chain reliable AC outcomes optimizing both system performance and policy robustness in dynamic IoT environments. The concept of an off-chain processing phase assumes that an access request’s attributes and distribution will match standard models that are used in typical smart-home application systems; therefore, obtaining a generalized solution to this problem becomes feasible. The training set includes simulated access requests based on ABAC on a blockchain and IOT access request simulations based on normal and abnormal access patterns.
Figure 2. Computation flow of off-chain processing in ODABAC-IoT framework.

3.2.1. Attribute Acquisition and Preprocessing

Each AC decision in IoT environments can be represented as a collection of attributes from four domains:
  • User attributes: identity, role, authentication level, past behavior history.
  • Device attributes: type of device (e.g., air conditioner, EV charger), power rating, criticality level.
  • Request attributes: action requested (turn on/off, limit usage), requested duration, resource demand.
  • Contextual attributes: time of day, tariff period (peak/off-peak), household occupancy, grid load state, renewable availability.
It is assumed that all attributes are time-synchronized at the moment of request generation and that missing values occur randomly rather than systematically. The data from the IoT devices are collected through secure channels and passed to the preprocessing module, as shown in Figure 3. These collected data are first processed for missing values by median imputation to ensure data completeness while maintaining distributional integrity. Next, robust anomaly scoring using the robust z score is applied to identify and mitigate outliers arising from sensor noise or malicious injections. The cleaned data then undergo standardization of numerical attributes, transforming them to zero mean and unit variance for stable learning.
Figure 3. Attribute preprocessing module for IoT access requests.
For energy-related readings, device-aware normalization is employed to scale features relative to each device’s operational range. Discrete variables are handled through categorical encoding, converting symbolic attributes into machine-readable form. Temporal and contextual variables are processed with cyclical encoding, preserving natural periodicity such as daily or weekly cycles. Finally, all transformed features are combined through feature assembly, producing a unified vector ( x i ) suitable for input to the ML prediction engine. The raw attribute vector for a request at time t i can be expressed using Equation (1), where u i , v i , r i , and c i denote user, device, request and contextual attributes respectively.
x i = [ u i , v i , r i , c i ] ∈ R d
  • Missing-Value Masking and Median Imputation 
For each feature j, a binary mask m i ∈ [ 0 , 1 ] d indicates whether the value is observed ( m i j = 1 ) or missing ( m i j = 0 ). Missing values are replaced using median-based imputation. For each feature i, let m e d j be the median computed on the training set as presented in Equation (2).
x ˜ i j = m i , j · x i , j + ( 1 − m i j ) · m e d j
This assumes that missing values do not carry semantic meaning and can be approximated using median-based imputation without introducing significant bias.
  • Robust Anomaly Scoring (Robust z-Score) 
The robust z-score is used to flag anomalous values, where the median m e d j provides a robust estimate of central tendency, and the median absolute deviation M A D j captures the spread of each attribute as shown in Equation (3).
M A D j = m e d i a n k ( | x k j − m e d j | )
The robust z-score ensures that occasional noisy readings (e.g., sudden spikes in smart-meter values or abnormal temperature readings from sensors) do not distort the preprocessing pipeline. This allows the system to reliably detect and handle anomalous attribute values before they are passed to the LightGBM classifier or the blockchain-based ABAC engine, thereby reducing false denials and improving model robustness in dynamic IoT environments. Therefore, the normalized distance of a data point x i , j from the median of that attribute, scaled by the typical spread ( M A D ) is shown in Equation (4). Thus, r i j is basically an anomaly score per attribute per request.
a = x ˜ i j − m e d j 1.4826 · M A D j
where
  • x i j = value of attribute j for data instance i
  • m e d j = median of attribute j
  • M A D j = median absolute deviation, a robust measure of spread.
  • The constant 1.4826 ensures consistency with standard deviation under normal distribution assumptions.
  • Standardization of Numerical Attributes 
Numerical attributes excluding power/energy features that will undergo device-aware scaling are standardized to ensure comparability across devices with different measurement scales. Standardization transforms each attribute x i j into z i , j as shown in Equation (5)
z i , j = x i , j · μ j σ j
where μ j and σ j denote the mean and standard deviation of the attribute. This yields zero mean, unit variance features so attributes with larger raw ranges (e.g., latency vs. temperature) do not dominate the model.
  • Device-Aware Normalization for Power/Energy Features 
For power and energy consumption, device-aware normalization is applied. Each device’s readings are scaled relative to its own operating range or rated capacity, so that both low-power devices (e.g., bulbs) and high-power devices (e.g., EV chargers) contribute comparably to the classifier. For instance, the min and max consumption of device d is known then the normalized power/energy value of feature j for request i from device d can be expressed as shown in Equation (6).
p i , j ( d ) = x i j − m i n d m a x d − m i n d
Similarly, if the rated capacity of device d is known, then normalized power/energy value of feature j for request i from device d can be expressed as shown in Equation (7).
p i , j ( d ) = x i j r a t e d · d d
This assumes that device operational ranges and rated capacities are known and remain stable over time.
  • Categorical Encoding 
Categorical attributes are transformed via one-hot encoding. Formally, if feature j takes value x i j = k k (the K t h category), the encoding function maps it to the one-hot vector as shown in Equation (8)
ϕ j x i j = e k , x i j = κ k .
where e k is a K-dimensional unit vector with 1 at the k t h position and 0 elsewhere.
  • Cyclical Encoding for Temporal/Contextual Variables 
Temporal/contextual variables such as time of day and day of week are encoded as cyclical features as expressed in Equation (9)
t i sin = sin 2 π · h i 24 , t i cos = cos 2 π · h i 24 .
where t i indicates time of day or day of week.
This unified feature representation ensures that heterogeneous IoT attributes are transformed into a consistent numerical space suitable for ML inference.
  • Feature Assembly 
The complete preprocessing pipeline yields a model-ready feature vector as represented in Equation (10)
ϕ i = z i ∥ p i ( d ) ∥ o i ∥ t i ∥ a i ∈ R d ′ .
where
  • Z i is a standardized numeric;
  • p i ( d ) is the device-aware power/energy;
  • o i represents the one-hot encoding;
  • t i is the cyclical time/context;
  • a i are anomaly flags.
This formalized preprocessing ensures that attributes collected from IoT devices are clean, normalized, and contextually enriched before being passed to the off-chain inference engine and ABAC policy evaluator.

3.2.2. Machine Learning Prediction Engine

The ML Prediction Engine is an off-chain module responsible for making fast and reliable AC predictions. Algorithm 1 and Figure 4 illustrates the off-chain ML Prediction Engine workflow within the ODABAC-IoT framework with conditional interaction in the form of dotted line, feature importance and explainable AI. Attribute data from IoT devices, contextual features, and trust recalibration history are preprocessed into feature vectors ϕ i . These vectors are passed to the LightGBM model, which iteratively combines shallow decision trees to produce a predicted access decision with calibrated confidence p i ∈ [ 0 , 1 ] as shown in Equation (11).
y i ∈ { Allow , Deny }
Figure 4. Machine learning prediction engine pipeline in ODABAC-IoT.
The prediction model is implemented using Gradient-Boosted Decision Trees (GBDTs), an ensemble learning approach that builds a strong classifier by combining the outputs of many weak learners, typically shallow decision trees. Unlike a single decision tree, which often suffers from overfitting or limited generalization, GBDTs improve performance by training trees sequentially, where each new tree is optimized to correct the residual errors of the previous ensemble. The training dataset was extracted from CouchDB off-chain storage, which contains historical attribute decision pairs along with trust recalibration history. This ensured that the model was trained on realistic access patterns and could generalize well to future requests. Formally, let the cleaned training dataset be as shown in Equation (12):
D = ( ϕ i , y i ) i = 1 N
where ϕ i are the feature vector and y i ∈ [ 0 , 1 ] are the binary labels.
The off-chain database (CouchDB) that provides the training dataset for the LightGBM model was based on historical access-control logs, containing attribute–decision pairs produced as a result of previous ABAC checks. To preserve privacy, user identifications were not utilized in any way; only anonymous attributes were considered as contextual and behavioral features. Additionally, using off-chain technology for training purposes helped protect personal information by keeping the raw sensitive data away from the blockchain.
An 80:20 split was used to create both an 80% (training subset) and a 20% (validation subset) subset of the total dataset in order to allow for an assessment of the generalizability of the final classification performance. The model built using LightGBM on the training subset and its performance were assessed using a validation (testing) subset. The classification performance of each method was evaluated using standard classification metrics of accuracy, precision, recall, and F1-score across each model and subset, and the models’ robustness (i.e., their ability to prevent overfitting) were further evaluated through the use of k-fold cross-validation (where k = 5) to test the model with 5 different (random) partitions of the data.
The model aims to minimize a differentiable loss function. The classifier is trained by minimizing a loss function as shown in Equation (13), where y denotes the ground-truth access decision obtained from blockchain ABAC enforcement, ϕ represents the preprocessed attribute vector, and f ( ϕ ) is the predicted decision score from the LightGBM model.
L ( y , f ( ϕ ) )
The LightGBM training process begins with an initial constant prediction equal to the log odds of the positive class, i.e., the ratio of Allow vs. Deny outcomes in the blockchain-verified dataset as shown in Equation (14), where p is the proportion of “Allow” decisions in the training data.
F 0 = log p 1 p ,
Training proceeds iteratively, where in each round residuals are computed as the difference between ground-truth blockchain decisions and the model’s predictions. For instance, at each round m it measures the difference between the blockchain’s decision u i and the model’s current prediction f m 1 ( ϕ i ) as presented in Equation (15)
r i m = u i f m 1 ϕ i
A shallow regression tree is trained on the pairs ( ϕ i , r i m ) to predict these residuals. This tree learns where the current model is making errors. The outputs of the new tree h m ( ϕ ) are added to the model, scaled by a learning rate η as shown in Equation (16). This ensures gradual corrections and prevents overfitting.
f m ( ϕ ) = f m 1 ( ϕ ) + η · h m ( ϕ )
After M boosting rounds, the final LightGBM model is expressed in Equation (17)
f M ( ϕ ) = F 0 + ∑ m = 1 M η · h m ( ϕ )
where f M ( ϕ ) outputs a logit score. A sigmoid transformation converts it into the probability of an Allow decision as represented in Equation (18)
P ( Allow ∣ ϕ ) = σ f M ( ϕ ) = 1 1 + e f M ( ϕ )
The predicted probabilities are assumed to be well-calibrated outputs of the LightGBM model; however, no explicit calibration method is applied, which may introduce uncertainty in confidence estimation.
If the confidence score exceeds a predefined threshold τ , the decision is directly accepted and logged on-chain to minimize energy consumption. Otherwise, low-confidence cases are deferred to a full on-chain ABAC evaluation for stricter verification as shown in Equation (19).
y i = Allow , if p i ≥ τ , Deny , if p i < τ .
The confidence threshold τ is analytically set (e.g., τ = 0.9) and controls the trade-off between off-chain efficiency and on-chain security verification.
Algorithm 1 Training and inference of ODABAC-IoT classifier
Input:
 •
Training dataset D = { ( ϕ i , u i ) } i = 1 N , where ϕ i are preprocessed attribute vectors and u i are blockchain ABAC labels;
 •
Learning rate η ; number of boosting rounds M.
Output:
 •
Trained LightGBM classifier f M ( ϕ ) .
Training Phase
  1:
Initialization: Compute initial model score (logit baseline):
F 0 = log p 1 p , p = 1 N ∑ i = 1 N u i
  Set f 0 ( ϕ ) = F 0 .
  2:
Boosting Rounds (for m = 1 to M):
 (a)
Pseudo residuals for each sample:
r i m = u i σ f m 1 ( ϕ i )
 (b)
Fit a regression tree h m ( ϕ ) to map ϕ i ↦ r i m .
 (c)
Update the model:
f m ( ϕ ) = f m 1 ( ϕ ) + η · h m ( ϕ )
  3:
Return final model:
f M ( ϕ ) = F 0 + ∑ m = 1 M η · h m ( ϕ )
Inference Phase (Access Request Evaluation)
  1:
For an incoming IoT request with raw attributes z , preprocess:
ϕ = Φ ( z )
  2:
Compute logit score:
y ^ = f M ( ϕ )
  3:
Convert to probability:
P ( Allow ∣ ϕ ) = σ ( y ^ ) = 1 1 + e y ^
  4:
Apply confidence threshold τ :
 If P ≥ τ : decision = Allow, cryptographically signed, logged on-chain.
 If P < τ : escalate to full blockchain ABAC evaluation.

3.2.3. Cryptographic Result Signing

Adversarial attack resilience is a key element in the design of the suggested architecture. Being based on off-chain contextual information, the LightGBM-based ML algorithm can suffer from adversarial attacks, since the context itself might be manipulated by malicious actors. ODABAC-IoT addresses these challenges using multiple protective measures. First, all ML results with a high degree of confidence are signed cryptographically and checked via on-chain validation to make sure that no altered predictions could pass unnoticed. Second, any predictions with a low-confidence level are automatically forwarded for full-scale ABAC on-chain processing. Finally, on-chain model retraining on regular basis would allow spotting adversarial patterns. The combination of these techniques increases the resistance of the proposed architecture to adversarial attacks.
FFDI (false-data injection) attacks are a possible risk in which bad people can affect how ML is able to infer results by inserting their own data into the input attributes and then using these new “faked” attributes to change how ML infers results based on those altered attribute values. The proposed architecture provides multiple security measures to mitigate FDI attacks through each layer of the architecture. For example, there are several robust preprocessing methods, such as anomaly detection (for example, using the robust z-score mechanism), to identify abnormal or invalid values in the input attributes prior to performing inference. In addition, all low-confidence or suspicious predictions are redirected automatically to a complete on-chain ABAC evaluation to ensure that bad data do not get past the enforced policies. Periodic auditing and trust recalibration further enhance the system’s ability to detect and respond to inconsistencies caused by malicious data injection.
To preserve integrity and authenticity, every high-confidence prediction generated by the off-chain ML Prediction Engine is digitally signed before being forwarded on-chain as illustrated in Figure 5. It produces a decision tuple as shown in Equation (20)
m i = ( y ^ i , p i , t i )
where y i is the predicted decision, p i is the confidence score, and t i is the timestamp. The ML node uses its private key s k M L to generate a digital signature as shown in Equation (21)
σ i = Sign s k ML H ( m i )
where H ( · ) is a cryptographic hash function, and σ i is the digital signature bound to the result tuple. On-chain, the blockchain nodes verify the signature using the ML node’s public key p k M L as shown in Equation (22)
Verify p k ML H ( m i ) , σ i = ? True
Figure 5. Cryptographic result signing in ODABAC-IoT framework.
If verification succeeds, the decision is accepted and logged without re-executing the full smart contract. If the validation is not successful, the decision is rejected and upgraded to an on-chain ABAC assessment. Such a handoff of data ensures that adversaries are unable to spoof ML predictions or tamper with them; hence, meritorious trust in off-chain inference outcomes is established.

3.2.4. Periodic Model Verification and Retraining

To avoid concept drift and guarantee long-term dependability, the system incorporates periodic model verification and retraining mechanisms. A small fraction α % of high-confidence decisions are arbitrarily selected and checked on-chain by re-executing the full ABAC policy evaluation as shown in Equation (23)
AuditSet = { m i ∣ Random ( i ) < α }
This ensures that even predictions accepted off-chain are occasionally double-checked for correctness. If the ML prediction outcome y i do not match the ABAC ground-truth decision y i ABAC , the inconsistency is logged as shown in Equation (24)
Δ i = ⊮ y ^ i ≠ y i ABAC
where
  • Δ i = 1 : misclassification detected.
  • Δ i = 0 : prediction validated.
If the inconsistency exceeds a threshold β , the ML model is flagged for retraining. Equation (25) is used to check the inconsistency range.
∑ i Δ i | AuditSet | ≥ β
This ensures adaptation to evolving user/device behaviors and changing grid conditions. The ML model is retrained using both historical CouchDB records and newly audited ABAC data.
Figure 6 shows the process where a fraction of off-chain decisions is recomputed (shown using dotted line) using the ABAC engine. Inconsistency discovery guarantees mismatches are logged, while exceptionally, the inconsistency threshold triggers retraining. The updated dataset is then used to redeploy the ML model.
Figure 6. On-chain auditing and model retraining workflow.

3.3. On-Chain Processing

In [2] the on-chain processing was distributed across Hyperledger Fabric and Hyperledger Besu. It utilized four contracts on fabric for user (UAC), device (DAC), resource (RAC) and certificate management contracts (CMC) which were responsible for maintaining attribute registries and cryptographic trust, whereas Besu maintained access policy (APC) and access decision (ADC) contracts. This design ensured immutability, auditability, and zero-trust enforcement, but the continuous on-chain assessment of attributes for every request gave rise to computational overhead and scalability challenges. Before contributing to the framework, a blockchain-based registration process is necessary for every type of entity, as shown in Figure 7 and Figure 8. For instance, devices such as smart meters, HVAC systems, etc., are onboarded through the DAC. Each device is bound to a certificate issued by the CMC, guaranteeing authenticity. Likewise, users are registered through the UAC and validated by CMC-issued certificates. Together, these registries guarantee that only authenticated users and certified devices can issue access requests, while failed authorization requires repeating the process.
Figure 7. Device registration via the DAC with certificate validation through the CMC.
Figure 8. User registration via the UAC with certificate validation through the CMC.
As illustrated in Figure 9, the RAC complements the UAC and DAC by maintaining dynamic, resource-specific attributes such as tariff schedules, demand response signals, and grid thresholds. These three attribute stores collectively serve as the Policy Information Point (PIP). Policies themselves are authored in the APC and deployed on Hyperledger Besu, where they define contextual rules such as time-of-day restrictions, energy-trading limits, or device-specific authorizations.
Figure 9. Attribute store schematic (PIP on Fabric).
In ODABAC-IoT, the architecture preserves this contract structure but optimizes it by introducing a LightGBM-assisted off-chain inference stage. The ADC is the primary point of modification, extended with two distinct entry paths:
  • submitPrediction() which accepts high-confidence LightGBM predictions signed by the off-chain inference node and verifies their cryptographic integrity before committing a minimal decision record on-chain.
  • fullEvaluateRequest() which executes the complete ABAC workflow across the UAC, RAC, DAC, and APC for low-confidence or anomalous requests.
Figure 10 shows the hybrid blockchain framework integration for on-chain processing. This double pathway lessens redundant on-chain assessments while guaranteeing that ambiguous access still experiences full blockchain endorsement.
Figure 10. On-chain processing in the proposed ODABAC-IoT framework.
The selective on-chain verification mechanism in ODABAC-IoT operates as a confidence-driven event-triggered process. Specifically, access requests are only escalated to the blockchain when the prediction confidence falls below a predefined threshold or when periodic auditing conditions are met. This behavior is conceptually similar to event-triggered control mechanisms, where system updates are executed only when certain conditions are violated. By avoiding continuous on-chain evaluation, the framework reduces communication and computational overhead while maintaining security through conditional verification.
The two new entry points added to the smart contract distinguishing between high-confidence and low-confidence requests are:
  • submitPrediction()
  • Accepts a decision tuple m i = ( y i , p i , t i , σ i ) from the ML engine.
  • Verifies the cryptographic signature σ i using the ML node’s public key.
  • Validates confidence metadata ( p i ≥ τ ) .
  • Logs the result to the ledger without executing the full ABAC policy.
Formally:
if Verify p k ML H ( m i ) , σ i = True and p i ≥ τ ⇒ Ledger.Log H ( m i )
  • fullEvaluateRequest()
  • Invokes the traditional ABAC evaluation engine.
  • Used for:
    (a)
    Low-confidence predictions ( p i < τ ) ;
    (b)
    Randomly sampled audit requests.
This guarantees that the blockchain continuously has a dependable contingency to have firm on-chain policy checks.
To reduce the quantity of data on the blockchain ledger, the RAC and ADC were also streamlined to store records of decision outcome, cryptographic hashes, and minimal contextual metadata:
  • Decision hash H ( m i ) instead of the full feature vector.
  • Minimal attribute metadata (e.g., device ID, request type).
Formally:
LedgerEntry = H ( m i ) , DeviceID , Action , Timestamp
This improves the query efficiency while maintaining immutability and transparency with a minimized ledger.
Lastly, the trust recalibration mechanism was optimized within the ADC and CMC. Any off-chain prediction deviating from the verified outcomes of ABAC triggers modification to the device’s or inference node’s trust score, guaranteeing continuous zero-trust arrangement. Whenever the off-chain prediction y i conflicts with ABAC decision y i ABAC , the trust score is updated:
Trust new = Trust old δ · Δ i
where Δ i = 1 if a discrepancy is detected, and δ is the penalty factor.
This guarantees that ML-based optimizations do not weaken security guarantees but are instead incorporated into the dynamic trust cycle.
The on-chain processing layer as shown in Figure 11 complements the off-chain prediction engine by ensuring verifiability, immutability, and trust. Through selective logging, cryptographic validation, and trust score updates, it provides a secure fallback that balances efficiency with accountability. This hybrid design not only reduces blockchain computation costs but also strengthens resilience, making the ODABAC-IoT framework scalable, auditable, and adaptable in dynamic IoT environments.
Figure 11. On-chain processing layer of ODABAC-IoT framework.
Scalability of the proposed ODABAC-IoT framework is achieved through its hybrid architecture, which minimizes reliance on computationally expensive on-chain operations. As the number of IoT devices and access requests increases, the majority of high-confidence decisions are processed off-chain using the LightGBM inference engine, thereby preventing congestion in the blockchain layer. Only a subset of uncertain or anomalous requests are escalated to on-chain evaluation, ensuring that blockchain workload grows sub-linearly with system scale. Furthermore, the use of distributed edge nodes for off-chain processing enables parallel evaluation of access requests, improving throughput in large-scale deployments such as smart communities or grid-level systems.
The proposed ODABAC-IoT framework is designed to align with key regulatory requirements related to data governance. Blockchain-based logging ensures immutable and auditable records of all access decisions, supporting transparency and accountability. Data retention is handled through selective on-chain storage, where only essential metadata and cryptographic hashes are recorded, minimizing exposure of sensitive information. User consent and privacy are preserved by restricting access to contextual attributes and enforcing policy-based authorization through ABAC rules. Furthermore, the use of off-chain processing reduces the quantity of personal or sensitive data stored on-chain, which is beneficial for compliance with modern data protection principles. The hybrid on-chain enforcement process for handling high-confidence and low-confidence access requests is formally described in Algorithm 2.
Algorithm 2 Smart-contract logic for hybrid ABAC enforcement
Input:
 •
Decision tuple from ML engine:
m i = ⟨ y ^ i , p i , t i , σ i ⟩
  where y ^ i = ML decision, p i = confidence, t i = timestamp, σ i = signature.
 •
Confidence threshold τ .
 •
Audit rate α ∈ [ 0 , 1 ] .
 •
ABAC policy engine (on-chain).
Output:
 •
Final access decision logged on the blockchain ledger.
Procedure
  1.
Function  submitPrediction( m i )
1.1.
Verify σ i using ML node’s public key.
1.2.
If signature invalid ⇒ reject request.
1.3.
If p i ≥ τ :
1.3.a.
Append H ( m i ) to ledger.
1.3.b.
Return decision = y ^ i .
1.4.
Else: Call fullEvaluateRequest( ϕ i ).
  2.
Function  fullEvaluateRequest( ϕ i )
2.1.
Execute ABAC policy engine on attribute vector ϕ i .
2.2.
Obtain ground truth decision u i .
2.3.
Log ( u i , ϕ i , t i ) to the ledger.
2.4.
If u i ≠ y ^ i :
2.4.a.
Trigger trust recalibration event.
2.4.b.
Mark ( ϕ i , u i ) for retraining dataset.
2.5.
Return decision = u i .
  3.
Audit Sampling
3.1.
For each high confidence request ( p i ≥ τ ):
3.1.a.
Draw q ∼ U ( 0 , 1 ) .
3.1.b.
If q < α , override and call fullEvaluateRequest( ϕ i ) (audit).

4. Scenario: Smart-Home Energy Access Request

To demonstrate the functioning of the proposed framework, consider a scenario in which many devices, such as a smart meter, HVAC system, solar inverter, and battery, communicate with the HEMS and other utility networks. The devices often make requests for actions such as fetching information on usage, load control, and energy trading.
In [2] devices were placed into three categories of High Security (smart grid controller), Moderate Security (thermostat), and Low Security (light bulb); these were all identified as an equivalent level of security. ODABAC-IoT extends this classification to realistic smart-home energy devices, as summarized in Table 2. These devices are associated with AC attributes, enriched with temporal and contextual features assembled off-chain for ML processing, and assigned a criticality level consistent with zero-trust enforcement.
Table 2. IoT device attributes and contextual features in ODABAC-IoT scenario.
Upon creation of a new request (such as a smart meter sending data on usage), the IoT Device Layer gathers context-based attributes, including attributes related to device identification, location, timing of request, usage pattern, and user preference. The feature vector created from these attributes undergoes processing in the Off-chain ML Processing Layer using the LightGBM classifier, which generates a probability for that request being aligned with acceptable behavior.
  • High-Confidence Case: If the probability surpasses a predefined threshold (e.g., ≥95%), the decision is cryptographically signed and submitted to the ADC through the submitPrediction() function. The ADC confirms the signature, records the decision hash, and grants access without invoking full on-chain evaluation, as shown in Figure 12.
  • Low-Confidence Case: If the confidence score is below the threshold, or if anomalies are noticed, the request is diverted to the fullEvaluateRequest() function. A complete ABAC process runs on-chain via the UAC, DAC, RAC, and APC, ensuring rigorous verification and preserving zero trust enforcement, as shown in Figure 13.
Figure 12. High-confidence fast path.
Figure 13. Low-confidence ABAC path.
Example: A smart meter performing a standard request at its regular reporting interval is quickly confirmed through off-chain LightGBM inference with negligible blockchain costs. On the contrary, if the same smart meter tries to access the system at an odd hour or reports strange consumption, the low-confidence classification sets off complete on-chain ABAC validation.

Workflow Summary

  • Request Generation:
    IoT device sends an access request with contextual attributes.
  • Off-Chain Preprocessing:
    Attributes are normalized, validated, and passed to the ML prediction engine.
  • Prediction and Thresholding:
    • High confidence → submitPrediction() on-chain.
    • Low confidence → fullEvaluateRequest() on-chain.
  • On-chain Enforcement:
    Blockchain either logs the prediction result (high confidence) or executes the full ABAC evaluation (low confidence).
  • Periodic Verification:
    Random samples of high-confidence cases are verified on-chain to ensure ML model reliability.
  • Retraining: ML model retrains periodically with updated labeled data from blockchain verified requests.

5. Results and Discussion

5.1. Experimental Setup

The implementation and evaluation of the proposed ODABAC-IoT framework were simulated and evaluated on a Ubuntu 22.04 LTS operating system with 16 GB of RAM, an Intel Core i7 processor, and 256 GB of SSD storage, ensuring efficient execution and scalability.
The dataset used in this study was generated based on simulated IoT access scenarios and augmented using realistic attribute distributions derived from typical smart-home environments.
The hybrid blockchain infrastructure was emulated on a private network with the help of Hyperledger Fabric (v2.5) to manage the registries of users, devices, and resources, and Hyperledger Besu (v23.4.1) to enforce access control rules and run smart contracts. The testbed for smart-home energy management comprised a typical collection of IoT devices like smart meters, HVAC controllers, solar inverters, and energy storage units generating synthetic access requests under dynamically varied contextual conditions (e.g., peak/off peak hours, occupancy status, renewable energy availability).
In order to facilitate predictive processing off-chain, the ML inference engine based on LightGBM was developed in Python (v3.10) and utilized Docker (v20.10) for deployment on edge nodes within the simulated environment. The engine was linked with Apache CouchDB (v3.2) for keeping historical requests and managing training datasets generated through simulation. This setup offered a realistic environment for testing system latency, transaction volume, energy consumption, and storage overhead. A detailed description can be found in Table 3, which includes the hardware specifications, software tools, and IoT device testbeds that are necessary for assessing the performance and scalability of the proposed system.
Table 3. Components description.

5.2. Transaction Volume Reduction

One of the main aims of the ODABAC-IoT framework is to cut down the transactions run on the blockchain to a minimum, thus lessening the computational overhead, storage growth, and the energy costs linked with them. In the typical on-chain ABAC system, the full policy evaluation via smart contracts is mandatory for every access request, thereby leading to one transaction per request. Thus, for 10,000 requests that were simulated, the on-chain system marked almost 10,000 transactions, which mirrors the linear growth problem that has been a part of the traditional blockchain-based ABAC models. In contrast, the former suggested hybrid blockchain framework [2] gave rise to partial optimizations by distinguishing between static and dynamic attributes thus limiting the total transactions to nearly 7000, a 30% reduction. However, this degree of optimization turns out to be inadequate in the long run when the numbers of IoT devices and requests for access keep growing. By contrast, ODABAC-IoT introduces an off-chain LightGBM pre-evaluation layer that filters out high-confidence decisions, submitting only essential verification records to the blockchain. Table 4 summarizes the transaction volume across different request loads for the baseline ABAC model, hybrid Fabric–Besu model, and the proposed ODABAC-IoT framework. As a result, for the same 10,000 requests, the number of on-chain transactions was reduced to nearly 3500, yielding a 65% reduction compared to on-chain ABAC and 50% compared to hybrid blockchain approaches. This significant reduction, as shown in Figure 14, demonstrates the effectiveness of integrating lightweight ML inference in alleviating the transaction burden on the blockchain, directly contributing to enhanced scalability, reduced ledger growth, and improved responsiveness in smart HEMSs.
Table 4. Transactions across request loads for baseline ABAC [1], hybrid Fabric–Besu [2] and ODABAC-IoT (Proposed).
Figure 14. Transaction volume reduction across baseline ABAC ([1]), hybrid Fabric–Besu ([2]), and ODABAC-IoT.
The baseline ABAC model shows near linear growth as every request triggers full on-chain evaluation. The hybrid Fabric–Besu model reduces transactions moderately by distributing processing across chains. The proposed ODABAC-IoT achieves the most significant reduction by resolving high-confidence requests off-chain, cutting transaction volume by over 50% under high request loads.

5.3. Latency Improvement

In IoT-based energy management systems, latency is essential to performance; access requests must typically be verified almost instantly in order to facilitate dynamic operations, such as demand response (load shifting), renewable energy scheduling, etc. The baseline on-chain ABAC system takes each request and performs a full policy evaluation across all smart contracts plus consensus validation, which results in an average decision latency of approximately 245 milliseconds per request. Because of this relatively high latency, decision latency is a critical issue in scenarios requiring a timely response, such as turning on a storage unit in response to fluctuations in grid frequency or controlling HVAC loads based upon real-time tariff changes.
The previously proposed hybrid blockchain framework in [2] helped to alleviate this burden to a certain extent by optimizing attribute management. This resulted in a reduction in average latency to 165 ms per request, which translates to a 32.6% improvement over the pure on-chain model. However, the responsiveness was still not sufficient for latency-constrained smart-grid applications. The proposed ODABAC-IoT framework improves responsiveness significantly, as depicted in Figure 15. This is because high-confidence access requests are offloaded to the off-chain LightGBM inference engine.
Figure 15. Latency reduction across baseline ABAC ([1]), hybrid Fabric–Besu ([2]), and ODABAC-IoT.
This selective approach reduced average latency to 88 ms per request, achieving a 64.1% reduction compared to the baseline on-chain ABAC and a 46.7% improvement over the earlier hybrid framework. The results highlight the importance of integrating lightweight off-chain ML processing, which enables ODABAC-IoT to meet the stringent real-time requirements of smart energy systems while maintaining zero-trust security guarantees. Table 5 shows the latency reduction and comparison across the baseline ABAC model, hybrid Fabric–Besu model, and the proposed ODABAC-IoT framework under varying request loads.
Table 5. Average latency per request and percentage reduction relative to baseline ABAC.
The average latency values represent overall system performance under comparable experimental conditions and are used to summarize the latency improvements across different frameworks.
Figure 16 describes latency improvement with rising request loads for baseline ABAC, hybrid Fabric–Besu, and ODABAC-IoT. In the baseline system, there is a sharp increase in latency with each rising request, since each request is subjected to full on-chain evaluation. In the hybrid system, the rate of increase in latency is reduced with the help of distributed processing. In ODABAC-IoT, the maximum improvement in latency is achieved with the help of off-chain filtering of high-confidence requests, with an improvement of over 70% in latency with rising request levels. Table 6 describes the values of latency for the baseline ABAC, hybrid Fabric–Besu, and ODABAC-IoT systems with varying levels of requests.
Figure 16. Latency variation with increasing request loads for Baseline ABAC ([1]), Hybrid Fabric–Besu ([2]), and ODABAC-IoT.
Table 6. Latency across baseline ABAC ([1]), hybrid Fabric–Besu ([2]), and ODABAC-IoT.
Latency values represent the average time required to process access requests under identical workload conditions, measured as the time elapsed between request generation and final authorization decision.

5.4. Energy-Efficiency Outcomes

The design of ODABAC-IoT is motivated not just by the desire to improve computational efficiency but also by the need for energy sustainability; both of these are of utmost importance when deploying technologies in smart homes and smart grids. One of the main drawbacks of implementing blockchain-based systems as AC mechanisms is the additional computational and storage overhead they create for all of the nodes that must continue to provide maintenance to the network, resulting in additional energy consumption. Following the methodology outlined by Waheed et al. [2], the average computational energy cost of a blockchain transaction in a lightweight, permissioned environment can be conservatively estimated at E t x = 0.01 kWh, considering both consensus operations and smart contract execution. Figure 17 is a rough approximation based on previous work and was considered in order to conduct comparisons since there can be differences in actual consumption due to the underlying hardware and consensus algorithms employed in various networks.
Figure 17. Energy consumption comparison for Baseline ABAC ([1]), Hybrid Fabric–Besu ([2]), and ODABAC-IoT.
In order to perform a sensitivity analysis and examine the validity of the energy consumption model, the energy per transaction ( E t x ) factor was varied within ±20% from its default value. The result showed that while the absolute value of energy consumed changed proportionally with E t x , the relative efficiency gains of ODABAC-IoT were still maintained. Hence, it can be concluded that the observed benefits are not dependent on the value of E t x .
In the baseline on-chain ABAC model, every access request is fully evaluated on-chain, leading to the highest energy demand. For 100,000 simulated requests, this translated to approximately Y 1 = 1000 kWh. The previously proposed hybrid blockchain framework [2], which streamlined attribute handling, reduced the number of on-chain executions by about 30%, lowering total energy usage to around Y 2 = 700 kWh. By contrast, the proposed ODABAC-IoT framework achieved a far greater reduction by selectively delegating high-confidence access decisions to the off-chain LightGBM inference engine, while cryptographically verifying the results on-chain. This selective strategy reduced the number of blockchain transactions by nearly 65%, resulting in an energy consumption of only Y 3 = 350 kWh per 100,000 requests, a 65% reduction compared to on-chain ABAC and 50% compared to hybrid blockchain approaches. Assuming linear scaling, the energy consumption per request would be approximately 0.01 kWh/request, and total energy would scale proportionally with the number of access requests.
When scaled to a realistic household deployment with ∼20 devices generating approximately 1000 access requests per day, ODABAC-IoT reduces daily blockchain energy use from 10 kWh/day in the on-chain baseline to 3.5 kWh/day, yielding a daily saving of Z ≈ 6.5 kWh.
These savings represent the equivalent of continuously running an efficient 65 W LED lighting system for 100 h. This represents small savings for an individual home; however, when scaled to a large number of households (e.g., 1000 homes in a smart-grid-based community setting), the savings can represent significant contributions to sustainability. Assuming an average grid emission factor, the reduction in energy consumption also implies a proportional decrease in carbon dioxide emissions; however, a detailed emission model is beyond the scope of this study. Table 7 provides a comparison of the energy usage of the baseline on-chain ABAC protocol, hybrid blockchain protocol, and the proposed ODABAC-IoT protocol per 100,000 requests. This table highlights the significant savings achieved by the ODABAC-IoT protocol.
Table 7. Comparative energy consumption of access control frameworks (per 100,000 requests).
Figure 17 demonstrates how these frameworks use energy to process 100,000 requests, with an assumption of linear relationship between the number of transactions processed and the energy required to process transactions, with a fixed energy model per transaction ( E t x ) being used when calculating the energy consumption per transaction. The on-chain ABAC model experiences the highest level of growth in demand for energy, while the hybrid blockchain model experiences partial reductions versus the ABAC model. The ODABAC-IoT model continues to have a low level of usage and has a much flatter slope versus the ABAC model. The results demonstrate that ODABAC-IoT enhances operational efficiencies and supports the environmental sustainability of energy-efficient IoT systems in their contributions toward achieving smart-energy-system sustainability goals.
The ODABAC–IoT framework enhances the performance of transactions by performing off-chain inference using LightGBM. This method employs an efficient leaf–wise gradient-boost algorithm and histogram-based decision trees which allow for faster training and lower memory requirements when compared to traditional ensemble algorithms.
These algorithmic benefits are reflected in the reduced number of CPU cycles per access request evaluation, particularly when implemented on small edge nodes. Consequently, edge devices experience a power consumption decrease of approximately 20% (based on comparative computational profiling) during inference relative to baseline off-chain models. This two-layer minimization, both at the blockchain level and at the edge-processing level, shows that ODABAC-IoT can achieve end-to-end AC pipeline energy savings, which justifies its use as a sustainable and green computing architecture in smart-home energy systems. Figure 18 indicates that LightGBM inference requires less computational resources than other ensemble models, reducing edge-node power consumption by as much as 22% and supplementing the energy savings of the blockchain side. The results shown here were obtained through analytical modeling and simulation-based evaluation. The comparison of the different algorithms in this study was based on the same set of workloads and compared based on the computational efficiency of each algorithm, considering its model complexity and inference cost. Figure 18 shows the results of this empirical evaluation.
Figure 18. Comparative edge-node power consumption (per 1,000 inference requests.

5.5. Security, Trust, and Standards Compliance

Beyond performance and efficiency gains, the ODABAC-IoT framework is explicitly designed to preserve zero-trust principles and ensure compliance with established and emerging standards in the energy domain. A core element of this design is the cryptographic signing of all high-confidence off-chain ML predictions, which guarantees their authenticity before submission to the blockchain. The system requires random auditing of its predictions because this process protects the off-chain ML inference engine from unauthorized operation. The combination of cryptographic integrity together with randomized auditing creates a reliable trust system that protects against adversarial attacks while allowing operational efficiency. ODABAC-IoT meets multiple international standards through its compliance with various regulatory frameworks.
  • NISTIR 7628 [53]
    ODABAC-IoT fulfills the NIST requirement for continuous monitoring, integrity validation, and accountability by ensuring that each AC decision is verified through immutable logs.
  • IEC 62351 [54]
    ODABAC-IoT implements the communication and system security standard for power systems, IEC 62351, using cryptographic guarantees of integrity, authenticity and confidentiality to protect data exchange within energy management systems as part of an overall focus on securing IoT-enabled devices through ODABAC-IoT’s decision-making process.
  • IEEE 2030.5 [55]
    The context-aware decision-making and secure logging elements of IEEE 2030.5 (SEP2.0) inherently support the interoperability/security requirements for distributed energy resources as specified within this smart energy profile standard.
Moreover, the auditable and tamper-proof decision logs that can be maintained through ODABAC-IoT can help in establishing a robust compliance strategy with FERC/NERC Critical Infrastructure Protection (CIP) requirements, which emphasize the need for transparent, traceable, and verifiable AC mechanisms for critical infrastructures in the energy domain. Thus, by establishing itself as a compliance-ready framework, ODABAC-IoT is capable of supporting a wide range of secure smart homes, microgrid systems, and grid-integrated IoT environments.
Table 8 maps the relevant international standards to the specific contributions of ODABAC-IoT, highlighting how each security, trust, and compliance requirement is addressed by the framework.
Table 8. Standards mapping and ODABAC-IoT contributions.

5.6. Sustainability Impact

The ODABAC-IoT framework aligns with UN SDG 7 (Affordable and Clean Energy) by lowering blockchain-related electricity demand by ≈65%. At the community scale (e.g., 1000 homes), this equates to ≈6.5 MWh in annual savings. The reduced on-chain workload also extends node hardware life, indirectly cutting embodied carbon. Hence, ODABAC-IoT contributes to energy-aware and carbon-efficient smart-grid ecosystems.

6. Discussion

The findings from this study demonstrate that the proposed ODABAC-IoT framework achieves a well-calibrated balance between efficiency, accountability, and compliance readiness. From a performance point of view, the use of off-chain LightGBM inference has a significant impact, reducing decision latency and transaction volume on the blockchain, which has a direct impact on reducing the overhead of the system. At the same time, the auditability of the system has not been compromised, as all high-confidence off-chain predictions are cryptographically signed and periodically verified on-chain, ensuring the integrity of the system is not compromised. From an energy system point of view, the contribution of the proposed system, ODABAC-IoT, towards the green computing movement is direct. The framework achieves energy savings for both homes and communities through its computational optimization, which results in a 65% reduction in expensive on-chain executions. The smart-grid system shows minimal energy savings for individual homes, but the total energy savings become essential when all homes join the smart-grid system. ODABAC-IoT functions as an effective technical solution that improves energy systems through its focus on sustainability. The framework complies with international standards like NISTIR 7628, IEC 62351 and IEEE 2030.5 while it helps organizations meet FERC/NERC CIP compliance obligations. Thus, by incorporating auditable, tamper-proof, and standards-aligned decision logging into its design, ODABAC-IoT is able to assert itself as a compliance-ready framework, one that is appropriate for use in energy-sensitive and critical infrastructures domains, where compliance is a de facto requirement for adoption. In summary, the hybrid design of ODABAC-IoT moves well beyond technical optimization concerns to deliver a holistic solution that improves scalability, energy efficiency, and compliance, making it a progressive architecture for smart homes and grid-integrated energy systems that is secure and sustainable in nature.

7. Conclusions

This paper proposed ODABAC-IoT, a novel hybrid framework using dynamic ABAC to provide secure AC in IoT environments with a focus on being able to handle large numbers of users and devices without sacrificing performance or scalability by using ML to make efficient use of off-chain resources. High-confidence decisions are made by the LightGBM model based on learned decision patterns, using results it produces, therefore keeping the integrity of the data, while using the blockchain for low-confidence/ambiguous results by doing full on-chain ABAC evaluations. As a result, there are no blockchain transaction overheads when completing a high-confidence ABAC evaluation; however, there is absolutely no loss of verifiability or security. Furthermore, the models are verified and retrained periodically, which allows for long-term sustainability and adaptability as the environment changes. Experimental results demonstrated that the proposed framework achieved up to 65% reduction in blockchain transaction volume, approximately 64% improvement in latency, and 65% reduction in energy consumption compared to conventional on-chain ABAC mechanisms, while maintaining reliable and auditable access control decisions. Moving forward, ODABAC-IoT presents a scalable, cost-effective, and intelligent solution for secure AC in smart-home energy systems, with potential applicability across other critical IoT domains. Future work will focus on improving robustness against adversarial inputs and validating the framework in real-world deployments.

Author Contributions

Conceptualization, U.W. and H.J.; methodology, U.W.; software, Y.M. and N.U.R.M.; validation, M.I.M., A.M.N., M.A. and T.A.J.; formal analysis, U.W. and H.J.; investigation, U.W.; resources, M.I.M.; data curation, U.W., N.U.R.M. and M.A.; writing—original draft preparation, U.W.; writing—review and editing, Y.M., H.J., N.U.R.M. and T.A.J.; visualization, U.W.; supervision, M.I.M. and M.A.; project administration, H.J., A.M.N., M.I.M. and M.A.; funding acquisition, M.I.M. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The data presented in this study are available on request from the corresponding author due to privacy or ethical restrictions.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
IoTInternet of Things
MLMachine Learning
ABACAttribute-Based Access Control
ODABAC-IoTOptimized Dynamic-Attribute-Based Access Control
RBACRole-Based Access Control
LightGBMLight Gradient-Boosting Machine
ACAccess Control
ABEAttribute-Based Encryption
AIArtificial Intelligence
IPFSInterPlanetary File System
HEMSHome Energy Management System
HVACHeating, Ventilation, and Air-Conditioning
EVElectric Vehicle
MQTTMessage Queuing Telemetry Transport
HTTPSHypertext Transfer Protocol Secure
UACUser Attribute Contract
DACDevice Attribute Contract
RACResource Attribute Contract
CMCCertificate Management Contract
APCAccess Policy Contract
ADCAccess Decision Contract
PIPPolicy Information Point
UIUser Attribute
VIDevice Attribute
RIRequest Attribute
CIContextual Attribute
XIUnified Vector

References

  1. Hasan, M.R.; Alazab, A.; Joy, S.B.; Uddin, M.N.; Uddin, M.A.; Khraisat, A.; Gondal, I.; Urmi, W.F.; Talukder, M.A. Smart Contract-Based Access Control Framework for Internet of Things Devices. Computers 2023, 12, 240. [Google Scholar] [CrossRef] [Scilit]
  2. Waheed, U.; Khan, S.A.; Masud, M.; Jamshed, H.; Jumani, T.A.; Malik, N.U.R. Blockchain Based, Dynamic Attribute Based Access Control for Smart Home Energy Systems. Energies 2025, 18, 1973. [Google Scholar] [CrossRef] [Scilit]
  3. Awan, S.M.; Azad, M.A.; Arshad, J.; Waheed, U.; Sharif, T. A Blockchain Inspired Attribute Based Zero Trust Access Control Model for IoT. Information 2023, 14, 129. [Google Scholar] [CrossRef] [Scilit]
  4. Gono, A.; Pisařovic, I.; Zejda, M.; Landa, J.; Procházka, D. Improving IoT Management with Blockchain: Smart Home Access Control. Eur. J. Bus. Sci. Technol. 2024, 10, 225–241. [Google Scholar] [CrossRef] [Scilit]
  5. Punia, A.; Gulia, P.; Gill, N.S.; Ibeke, E.; Iwendi, C.; Shukla, P.K. A systematic review on blockchain based access control systems in cloud environment. J. Cloud Comput. 2024, 13, 146. [Google Scholar] [CrossRef] [Scilit]
  6. Wang, X.; Yue, X.; Tariq, N.; Sajid, A. Hybrid AI and Blockchain Powered Secure Internet Hospital Communication and Anomaly Detection in Smart Cities. Processes 2025, 13, 1466. [Google Scholar] [CrossRef] [Scilit]
  7. Saleem, J.; Raza, U.; Hammoudeh, M.; Holderbaum, W. Machine Learning Enhanced Attribute Based Authentication for Secure IoT Access Control. Sensors 2025, 25, 2779. [Google Scholar] [CrossRef] [Scilit]
  8. Anjum, M.; Kraiem, N.; Min, H.; Dutta, A.K.; Daradkeh, Y.I.; Shahab, S. Opportunistic access control scheme for enhancing IoT enabled healthcare security using blockchain and machine learning. Sci. Rep. 2025, 15, 7589. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  9. Ben Chehida Douss, A.; Abassi, R. Towards a formal framework for blockchain-based access control in e-health systems. Ann. Telecommun. 2026, 1–25. [Google Scholar] [CrossRef] [Scilit]
  10. Outchakoucht, A.; Abou El Kalam, A.; Es-Samaali, H.; Benhadou, S. Machine Learning Based Access Control Framework for the Internet of Things. Int. J. Adv. Comput. Sci. Appl. 2020, 11, 331–340. [Google Scholar] [CrossRef] [Scilit]
  11. Trabelsi, R.; Fersi, G.; Jmaiel, M. Access control in Internet of Things: A survey. Comput. Secur. 2023, 135, 103472. [Google Scholar] [CrossRef] [Scilit]
  12. Singh, J.; Rani, S.; Kumar, V. Role based access control (RBAC) enabled secure and efficient data processing framework for IoT networks. Int. J. Commun. Netw. Inf. Secur. 2024, 16, 91–103. [Google Scholar] [CrossRef] [Scilit]
  13. Díaz, J.P.; Mendoza, F.A. Authorization models for IoT environments: A survey. Internet Things 2025, 29, 101430. [Google Scholar] [CrossRef] [Scilit]
  14. Kalaria, R.; Kayes, A.S.; Rahayu, W.; Pardede, E.; Salehi Shahraki, A. Adaptive context aware access control for IoT environments leveraging fog computing. Int. J. Inf. Secur. 2024, 23, 3089–3107. [Google Scholar] [CrossRef] [Scilit]
  15. Ahsan, M.S.; Pathan, A.K. A Comprehensive Survey on the Requirements, Applications, and Future Challenges for Access Control Models in IoT: The State of the Art. IoT 2025, 6, 9. [Google Scholar] [CrossRef] [Scilit]
  16. Nie, S.; Ren, J.; Wu, R.; Han, P.; Han, Z.; Wan, W.K. Zero Trust Access Control Mechanism Based on Blockchain and Inner Product Encryption in the Internet of Things in a 6G Environment. Sensors 2025, 25, 550. [Google Scholar] [CrossRef] [Scilit]
  17. Kalarani, S.; Shobana, M.; Uma Shankari, E.; Praveena, B.J.; Shanthi, S.; Ramadevi, R.; Sandiri, R. A secure and cloud based patient management system using attribute based encryption algorithm. Int. J. Power Electron. Drive Syst. 2025, 15, 2445–2454. [Google Scholar] [CrossRef] [Scilit]
  18. Riad, K. Robust Access Control for Secure IoT Outsourcing with Leakage Resilience. Sensors 2025, 25, 625. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  19. Ramamurthy, K.; Kulanthaivelu, S.; Jenish, S.A. Future Directions and Emerging Trends of Adaptive Artificial Intelligence in Wireless Sensor Networks, Internet of Things, and Industrial Internet of Things. In Adaptive AI in Sensor Informatics: Methods, Applications, and Implications; Ramamurthy, K., Kulanthaivelu, S., Sountharrajan, S., Goyal, S.B., Kadry, S., Eds.; Elsevier: Amsterdam, The Netherlands, 2026; pp. 291–308. [Google Scholar]
  20. Mariappan, K.; Ganesan, P.; Jagatheesaperumal, S.K. IoT access control and authentication schemes. In Internet of Things Security; Elsevier: Amsterdam, The Netherlands, 2026; pp. 87–106. [Google Scholar] [CrossRef] [Scilit]
  21. Yaqub, N.; Zhang, J.; Khalid, M.I.; Wang, W.; Helfert, M.; Ahmed, M.; Kim, J. Blockchain enabled policy based access control mechanism to restrict unauthorized access to electronic health records. PeerJ Comput. Sci. 2025, 11, e2647. [Google Scholar] [CrossRef] [Scilit]
  22. Wang, J.; Liu, C.; Zhu, G.; Liu, X.; Xiao, B. Fine grained Trusted Control Methods for IoT Boundary Access. Scalable Comput. Pract. Exp. 2025, 26, 180–190. [Google Scholar] [CrossRef] [Scilit]
  23. Ramírez-Gordillo, T.; Maciá-Lillo, A.; Pujol, F.A.; García-D’Urso, N.; Azorín-López, J.; Mora, H. Decentralized Identity Management for Internet of Things (IoT) Devices Using IOTA Blockchain Technology. Future Internet 2025, 17, 49. [Google Scholar] [CrossRef] [Scilit]
  24. Naik, M.; Singh, A.P.; Pradhan, N.R.; Mohanty, S.N.; Rafiq, M.; Ayouni, S.; Khan, M.I. Sustainable NFTs: Enabling green energy adoption through IoT-integrated Blockchain tokenization of carbon offsets. Int. Commun. Heat Mass Transf. 2026, 175, 110939. [Google Scholar] [CrossRef] [Scilit]
  25. Bhargavi, V.S.; Sawai, N.M.; Chakravarthi, M.K.; Shaik Ibrahim, S.H.; Pérez, L.A.; Tiwari, M. Scalability and Performance of Blockchain-Based Solutions for IoT Applications. In Interdisciplinary Approaches to AI, Internet of Everything, and Machine Learning; IGI Global Scientific Publishing: Hershey, PA, USA, 2024; pp. 203–216. [Google Scholar] [CrossRef] [Scilit]
  26. Rouached, M.; Akremi, A.; Macherki, M.; Kraïem, N. Policy Based Smart Contracts Management for IoT Privacy Preservation. Future Internet 2024, 16, 452. [Google Scholar] [CrossRef] [Scilit]
  27. Cloudin, S.; Robinson Joel, M.; Manikandan, G.; Milcah Blessy, I. Integrating Blockchain, IoT, and 6G Technologies for Secure, Efficient, and Sustainable Smart City Applications: Enhancing Urban Living Through Innovation. In Building Tomorrow’s Smart Cities With 6G Infrastructure Technology; IGI Global Scientific Publishing: Hershey, PA, USA, 2024; pp. 483–508. [Google Scholar] [CrossRef] [Scilit]
  28. Ghosh, S.; Mitra, R.; Roy, I.; Gupta, B. Securing RC Based P2P Networks: A Blockchain based Access Control Framework utilizing Ethereum Smart Contracts for IoT and Web 3.0. In International Conference on Computer Applications in Industry and Engineering; Springer Nature: Cham, Switzerland, 2024. [Google Scholar]
  29. Fernández-Iglesias, M.J.; Delgado von Eitzen, C.; Anido-Rifón, L. Efficient Traceability Systems with Smart Contracts: Balancing on-chain and Off Chain Data Storage for Enhanced Scalability and Privacy. Appl. Sci. 2024, 14, 11078. [Google Scholar] [CrossRef] [Scilit]
  30. Jadhav, S.; Pise, N. Secure and Transparent Blockchain Donations: An Attribute Based Access Control (ABAC) Framework. In Proceedings of IEEE ICBDS; IEEE: Piscataway, NJ, USA, 2024; pp. 1–6. [Google Scholar]
  31. Ullah, Z.; Husnain, G.; Mohmand, M.I.; Qadir, M.; Alzahrani, K.J.; Ghadi, Y.Y.; Alkahtani, H.K. Blockchain-IoT: A revolutionary model for secure data storage and fine-grained access control in IoT. IET Commun. 2024, 18, 1524–1540. [Google Scholar] [CrossRef] [Scilit]
  32. Li, R.; Sun, Y.; Liu, C.; Wen, Y.; Liu, Y. Distributed Data Sharing and Access Control in Industrial IoT Using Blockchain Technology. In IEEE ICCEIC; IEEE: New York, NY, USA, 2024; pp. 372–375. [Google Scholar]
  33. Cioloca, P.; Aloman, A.; Bratu, A.; Aciobăniţei, I. Efficient Framework for Supply Chain Digitization using Blockchain and IoT. In IEEE COMM; IEEE: New York, NY, USA, 2024; pp. 1–6. [Google Scholar]
  34. Akkal, M.; Cherbal, S.; Annane, B.; Lakhlef, H. Blockchain for Secure Access Control in the Internet of Things: A Review and Comparative Analysis. In IEEE ICAECOT; IEEE: New York, NY, USA, 2024; pp. 1–6. [Google Scholar]
  35. Tuteja, S.; Sharma, M.; Sharma, A.; Tonk, R. Recent Emergence and Integration of Blockchain, Internet of Things (IoT), and Artificial Intelligence (AI) and their Future Directions. Recent Adv. Electr. Electron. Eng. 2025, 18, 1513–1526. [Google Scholar] [CrossRef] [Scilit]
  36. Riaz Khan, M.; Abrar, N.; Tahir, M.R.; Mansoor, Y.; Rehman, S. Trustworthy AI for IoT using blockchain. Spectr. Eng. Sci. 2025, 3, 934–947. [Google Scholar]
  37. Chandana, B.; Hussain, H.S.; Veluri, R.K.; Rajesh Kanna, S.K.; Babu, A.J.; Prasad, Y. Advancement of Smart Contract Administration in a Virtual Environment through Blockchain Technology and Optimization Tools. In Proceedings of the 3rd International Conference on Optimization Techniques in the Field of Engineering (ICOFE-2024), Online, 22–23 October 2024. [Google Scholar] [CrossRef] [Scilit]
  38. Roobini, S.; Kavitha, M.S.; Karthik, S. Leveraging IoT and AI Technologies for Blockchain Based Digital Twins. In Blockchain-Based Digital Twins; Apple Academic Press: Palm Bay, FL, USA, 2025; pp. 183–222. [Google Scholar] [CrossRef] [Scilit]
  39. Leghemo, I.M.; Azubuike, C.; Segun-Falade, O.D.; Odionu, C.S. Data Governance for Emerging Technologies: A Conceptual Framework for Managing Blockchain, IoT, and AI. J. Eng. Res. Rep. 2025, 27, 247–267. [Google Scholar] [CrossRef] [Scilit]
  40. Anand, P.; Singh, Y.; Singh, H. Secure IoT data dissemination with blockchain and transfer learning techniques. Sci. Rep. 2025, 15, 1665. [Google Scholar] [CrossRef] [Scilit]
  41. Nowell, E.; Gallus, S. Advancing Privacy Preserving AI: A Survey on Federated Learning and Its Applications. Preprints 2025. [Google Scholar] [CrossRef] [Scilit]
  42. Qiu, C.; Wu, Z.D.; Wang, H.; Yang, Q.; Wang, Y.; Su, C. Hierarchical Aggregation for Federated Learning in Heterogeneous IoT Scenarios: Enhancing Privacy and Communication Efficiency. Future Internet 2025, 17, 18. [Google Scholar] [CrossRef] [Scilit]
  43. Nomikos, N.; Xilouris, G.; Patsourakis, G.; Nikolakakis, V.; Giannopoulos, A.; Mandilaris, C.; Gkonis, P.K.; Skianis, C.; Trakadas, P. A Distributed Trustable Framework for AI Aided Anomaly Detection. Electronics 2025, 14, 410. [Google Scholar] [CrossRef] [Scilit]
  44. Murala, D.K.; Vemulapalli, L.; Balagoni, Y.; Patnala, E.; Romeo, B. MedLedgerFL: A hybrid blockchain-federated learning framework for secure remote healthcare services. Sci. Rep. 2026, 16, 8218. [Google Scholar] [CrossRef] [Scilit]
  45. Yang, G.; Li, W.; Zhang, Q.; Xu, M.; Pan, C.; Wang, B. Trust-Enabled Decentralized Task Offloading for Collaborative Edge Computing Using Blockchain and Deep Reinforcement Learning. Softw. Pract. Exp. 2026, 56, 218–236. [Google Scholar] [CrossRef] [Scilit]
  46. Galiveeti, P.; Pallavi, R. An internet of things edge intelligence powered by blockchain. In Futuristic Trends in Blockchain Applications; 2024; pp. 297–314. [Google Scholar] [CrossRef] [Scilit]
  47. Oskolkov, B.; Chen, K.; Tian, W.; Law, A.C.C.; Liu, C. Incremental Machine Learning integrated Blockchain for Real time Security Protection in Cyber enabled Manufacturing Systems. J. Comput. Inf. Sci. Eng. 2025, 25, 041004. [Google Scholar] [CrossRef] [Scilit]
  48. Norta, A.; Udokwu, C.; Voicu-Dorobanțu, R.; Ogunyemi, A.; Sturua, N.; Craß, S. Leveraging Blockchain for Ethical AI: Mitigating Digital Threats and Strengthening Societal Resilience. Preprints 2025. [Google Scholar] [CrossRef]
  49. Sabit, H. AI Based Smart Security System Using IoT for Smart Home Applications. Preprints 2025. [Google Scholar] [CrossRef] [Scilit]
  50. Deng, Y.; Guo, B.; Chen, S. Privacy Preserving Approach to Edge Federated Learning Based on Blockchain and Fully Homomorphic Encryption. Electronics 2025, 14, 361. [Google Scholar] [CrossRef] [Scilit]
  51. Aounzou, Y.; Boulaalam, A.; Kalloubi, F. Convergence of blockchain, IoT, and machine learning: Exploring opportunities and challenges—A systematic review. Int. J. Smart Sens. Intell. Syst. 2025, 18. [Google Scholar] [CrossRef] [Scilit]
  52. Perera, M.; Fattah, S.M.M.; Mistry, S.; Krishna, A. Reinforcement Learning Controlled Adaptive PSO for Task Offloading in IIoT Edge Computing. In Companion Proceedings of the ACM on Web Conference 2025; Association for Computing Machinery: New York, NY, USA, 2025. [Google Scholar] [CrossRef] [Scilit]
  53. NISTIR 7628 Rev. 1; Guidelines for Smart Grid Cybersecurity. National Institute of Standards and Technology: Gaithersburg, MD, USA, 2014. [CrossRef] [Scilit]
  54. IEC 62351:2026 SER; Power Systems Management and Associated Information Exchange—Data and Communications Security—All Parts. International Electrotechnical Commission: Geneva, Switzerland, 2026.
  55. IEEE Std 2030.5-2023; IEEE Standard for Smart Energy Profile Application Protocol. Institute of Electrical and Electronics Engineers: Piscataway, NJ, USA, 2024.
  56. NERC CIP Standards; Critical Infrastructure Protection Reliability Standards. North American Electric Reliability Corporation: Atlanta, GA, USA, 2026.
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.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.