QTE-IoT: Q-Learning-Based Task Scheduling Scheme to Enhance Energy Consumption and QoS in IoT Environments

Ali Ghaffari1,2,3, Vesal Firoozi4, Ali Maleki5, Mohammad Sadegh Sirjani6, Maedeh Abedini Bagha1,7

1Department of Computer Engineering, Ta.C., Islamic Azad University, Tabriz, Iran

2Department of Computer Engineering, Istinye University, Istanbul, Türkiye

3Department of Computer Science, Khazar University, Baku, Azerbaijan

4Department of Computer Engineering, Ma.C., Islamic Azad University, Mashhad, Iran

5Department of Computer Engineering, Shiraz Branch, Islamic Azad University, Shiraz, Iran

6Department of Electronics, Information and Bioengineering, Politecnico di Milano, Milan, Italy

7Roshdiyeh Higher Education Institute, Tabriz, Iran

Sustainable Computing: Informatics and Systems (2025)

Scheduling Across Fog and Cloud

IoT devices generate tasks with very different needs. Fog nodes sit close to devices for low latency, while public and private clouds offer scale and security. Deciding where each task runs, and when, drives energy use and quality of service.

Fog-cloud-IoT architecture with public, hybrid, and private clouds, a fog layer of nodes, and an IoT device layer
Figure 1. The FCIoT architecture: an IoT layer of devices, a fog layer of fog nodes, and a cloud layer with public and private clouds.

Abstract

As the proliferation of Internet of Things (IoT) devices continues unabated, the demand for efficient task scheduling mechanisms becomes increasingly critical. Task scheduling in the IoT is pivotal for optimizing resource utilization, minimizing latency, and enhancing the overall system's performance. This research proposes a novel method called QTE-IoT, standing for a Q-learning-based task scheduling scheme to enhance energy consumption and QoS in IoT environments. QTE-IoT commences by categorizing tasks into three classes: time-sensitive tasks, security tasks, and normal tasks. This classification is achieved using a multi-layer perceptron artificial neural network. Subsequently, time-sensitive tasks are offloaded to the fog layer and scheduled using the proposed African Vulture Algorithm combined with Q-learning, which we designate as QAVA. Security tasks are offloaded to the private cloud, while normal tasks are offloaded to the public cloud. For task scheduling in private and public cloud environments, QTE-IoT employs a proposed enhanced version of Artificial Rabbits Optimization integrated with the Q-learning algorithm, known as QARO. Additionally, the QTE-IoT method incorporates a monitoring agent to oversee resource workload, thereby preventing congestion and delays. Simulation results on instances of the HCSP benchmark dataset demonstrate that QTE-IoT outperforms other state-of-the-art methods in various performance metrics. QTE-IoT achieves significant improvements compared to other methods and algorithms, including a 6% to 12% reduction in energy consumption. Furthermore, QTE-IoT exhibits substantial improvements in load imbalance (42% to 79%), response time (25% to 40%), and deadline satisfaction (6% to 39%) compared to existing approaches.

QTE-IoT Pipeline

Tasks are classified first, then routed to the layer and scheduler that suit them, while a monitoring agent watches resource load.

Task classDestinationScheduler
Time-sensitiveFog layerQAVA
SecurityPrivate cloudQARO
NormalPublic cloudQARO
Table 1. How QTE-IoT routes each task class.
  • MLP-ANN classifier. Sorts incoming tasks into time-sensitive, security, and normal classes from 18 task features.
  • QAVA. The African Vulture Algorithm combined with Q-learning schedules time-sensitive tasks on fog nodes.
  • QARO. An enhanced Artificial Rabbits Optimization with Q-learning schedules tasks on private and public cloud VMs.
  • Monitoring agent. Tracks resource load and, above a threshold, re-schedules cloud tasks or uses a greedy algorithm to offload fog tasks to another node.
QTE-IoT flowchart: classify tasks by MLP, send security tasks to the private cloud, time-sensitive tasks to the fog, and others to the public cloud, with a monitoring agent that offloads or re-schedules on overload
Figure 2. The flowchart of QTE-IoT, including the monitoring agent that offloads or re-schedules tasks when a node or VM exceeds its load threshold.

Task Classification

An MLP-ANN with 18 input neurons, one per task attribute, sorts tasks into the three classes. It trains on 70% of the labeled tasks and is tested on the remaining 30%.

MetricValue
Accuracy98.88%
Precision98.73%
Recall98%
F1-score98.5%
Table 2. Performance metrics of the MLP-ANN model.

Q-Learning Hybrids

Each hybrid is benchmarked against Q-learning alone and its metaheuristic alone on 400 tasks over 50 independent runs. QARO uses 25 private and 25 public cloud resources; QAVA uses 50 fog resources.

MetricQAROQL-onlyARO-onlyImprovement
Makespan (s)14221719534% faster
Energy consumption (J)18200247002210026% better
Deadline violations (%)4.111.38.254% reduction
Load imbalance0.110.280.1961% improvement
Table 3. Benchmark comparison of QARO.
MetricQAVAQL-onlyAVA-onlyImprovement
Makespan (s)12018015020% faster
Energy consumption (J)15500225002000022% better
Deadline violations (%)3.510.57.050% reduction
Load imbalance0.080.250.1547% improvement
Table 4. Benchmark comparison of QAVA.

Simulation Setup

Experiments use HCSP benchmark instances enriched to 18 features per task: 1000 labeled tasks (50% time-sensitive, 40% normal, 10% security), 200–600 tasks per run, 2000–6000 MIPS resources, and 10 repetitions per experiment in MATLAB R2019b.

ParameterValue
Initial population (MGWO, OSAPSO, QARO, QAVA)30
Iterations50
Fog nodes50
Private cloud VMs50
Public cloud VMs50
β (Q-learning)0.1
γ (Q-learning)0.15
L1, L2 (QAVA)0.8, 0.2
w (QAVA)2.5
P1, P2, P3 (QAVA)0.6, 0.4, 0.6
Table 5. Simulation parameters.

Results

QTE-IoT is compared with ARO, AVA, MGWO, OSAPSO, WCLA+GA, and ETFC across 200–600 tasks and 30–50 resources. It posts the best average on every metric.

MethodEnergy (J)Load imbalanceResponse timeDeadline satisfaction (%)
MGWO2532.377.2726.6171.43
OSAPSO2524.863.1625.3285.18
ARO2540.003.1727.8978.38
AVA2501.963.0822.0886.92
WCLA+GA2656.062.6520.4089.22
ETFC2654.822.8722.6893.84
QTE-IoT2350.261.5216.6399.39
Table 6. Averages over 200–600 tasks and 30, 40, and 50 resources. Lower is better for energy, load imbalance, and response time; higher is better for deadline satisfaction.
MetricImprovement
Energy consumption6%–12%
Load imbalance42%–79%
Response time25%–40%
Deadline satisfaction6%–39%
Table 7. QTE-IoT improvement range over the compared methods.

Takeaways

  • Classifying tasks first lets each class run where it fits: time-sensitive tasks in the fog, security tasks in the private cloud, and normal tasks in the public cloud.
  • Pairing Q-learning with metaheuristics speeds convergence: QARO and QAVA beat their standalone counterparts on makespan, energy, deadline violations, and load imbalance.
  • The monitoring agent keeps load balanced by re-scheduling or offloading tasks before resources congest.
  • On HCSP benchmark instances, QTE-IoT cuts energy by 6%–12% and response time by 25%–40%, and reaches over 99% average deadline satisfaction.

BibTeX

@article{GHAFFARI2025101247,
  title = {QTE-IoT: Q-Learning-Based Task Scheduling Scheme to Enhance Energy Consumption and QoS in IoT Environments},
  journal = {Sustainable Computing: Informatics and Systems},
  pages = {101247},
  year = {2025},
  issn = {2210-5379},
  doi = {https://doi.org/10.1016/j.suscom.2025.101247},
  url = {https://www.sciencedirect.com/science/article/pii/S2210537925001684},
  author = {Ali Ghaffari and Vesal Firoozi and Ali Maleki and Mohammad Sadegh Sirjani and Maedeh Abedini Bagha},
  keywords = {Internet of things, Metaheuristic, Reinforcement learning, Task scheduling},
  abstract = {As the proliferation of Internet of Things (IoT) devices continues unabated, the demand for efficient task scheduling mechanisms becomes increasingly critical. Task scheduling in the IoT is pivotal for optimizing resource utilization, minimizing latency, and enhancing the overall system’s performance. This research proposes a novel method called QTE-IoT, standing for a Q-learning-based task scheduling scheme to enhance energy consumption and QoS in IoT environments. QTE-IoT commences by categorizing tasks into three classes: time-sensitive tasks, security tasks, and normal tasks. This classification is achieved using a multi-layer perceptron artificial neural network. Subsequently, time-sensitive tasks are offloaded to the fog layer and scheduled using the proposed African Vulture Algorithm combined with Q-learning, which we designate as QAVA. Security tasks are offloaded to the private cloud, while normal tasks are offloaded to the public cloud. For task scheduling in private and public cloud environments, QTE-IoT employs a proposed enhanced version of Artificial Rabbits Optimization integrated with the Q-learning algorithm, known as QARO. Additionally, the QTE-IoT method incorporates a monitoring agent to oversee resource workload, thereby preventing congestion and delays. Simulation results on instances of the HCSP benchmark dataset demonstrate that QTE-IoT outperforms other state-of-the-art methods in various performance metrics. QTE-IoT achieves significant improvements compared to other methods and algorithms, including a 6% to 12% reduction in energy consumption. Furthermore, QTE-IoT exhibits substantial improvements in load imbalance (42% to 79%), response time (25% to 40%), and deadline satisfaction (6% to 39%) compared to existing approaches.}
}