Submitted:
21 November 2026
Posted:
25 November 2026
You are already at the latest version
Abstract
Wearables in Internet of Medical Things (IoMT) networks offload tasks to edge, fog and cloud nodes, and a passive observer sees the destinations even when payloads are encrypted. Privacy-aware schedulers often penalise the entropy of that sequence, but whether lower entropy makes patient acuity harder to infer is rarely tested. We study DQN-ES, a scheduler in which a deep Q-network (DQN) restricts each decision to its top-K destinations and an exhaustive enumeration over the K-candidate set minimises a cost whose energy, latency and entropy weights depend on a criticality index. In a simulated four-tier network with 30 paired replicates, we compared it with the per-task optimum, random candidate restriction, entropy-reweighted greedy scheduling and a criticality-agnostic static rule, and trained an adaptive adversary to infer high acuity from each policy's flow metadata. In a secondary analysis across 21 policies, the entropy-based routing-predictability risk did not rank adversary AUC (Spearman rho = -0.065, p = 0.78). Raising the entropy weight lowered that risk from 0.41 to 0.14 while AUC rose from 0.60 to 0.73, because criticality-dependent weights separated acuity tiers by destination. DQN-ES leaked less than the per-task optimum (AUC 0.569 vs 0.612) at a cost of 13.7 ms, 14.6 mJ and 0.65 percentage points of deadline violations, and less than reweighted greedy at matched latency, where it leaked about as much as random restriction. Fully random restriction leaked less at 36.3 ms (95% CI 26.8 to 46.5) more latency, and the static rule least (AUC 0.483) at 55.6 ms more. Routing entropy measures routing predictability, not acuity leakage.
Keywords:
task offloading
; Internet of Medical Things
; deep Q-network
; traffic analysis
; privacy
; edge computing
; candidate restriction
hidelinks
1. Introduction
A wearable ECG patch or pulse oximeter in an Internet of Medical Things (IoMT) deployment cannot run every analysis on its own processor and battery, so it offloads tasks to an edge gateway, to fog servers or to the cloud. Each offload is a flow that an on-path observer can see even when the payload is encrypted: which device sent it, where it went, when it left, how large it was and how long the reply took. Traffic analysis of such metadata identifies the content of encrypted connections [1]. In patient monitoring the corresponding risk is that the destination pattern reveals when a patient’s condition worsens, because a scheduler that weights latency more heavily for critical patients routes their tasks differently.
The scheduler therefore trades three quantities task by task: end-to-end latency, wearable energy and what its routing exposes. The trade is sharpest for ECG analysis. We give ECG tasks a 500 ms deadline, while running the 150 M-cycle analysis on a 240 MHz ESP32-S3 takes 625 ms, so no ECG task can meet its deadline locally and every one must be offloaded. The 500 ms value is a design assumption for near-real-time arrhythmia screening, not a clinical standard; it is set below the local execution time so that the offloading decision is never trivial for this task class, and the other task types carry looser deadlines (Section 3.1).
Privacy-aware offloading usually adds a privacy term to the scheduling objective. Some schedulers score the location and usage-pattern privacy of each offloading decision with indicator or threshold functions [2,3,4,5]; others maximise an entropy of the offloading pattern [6,7]. In the works we surveyed (Section 2), the privacy of the resulting policy is reported with the same term the scheduler optimised, or with an analytical attacker model [8], so a lower privacy score has not been checked against what a trained attacker can infer from the traffic. The check matters most when the scheduling weights themselves depend on acuity.
This paper studies one such scheduler, DQN-ES, and asks what its entropy term buys. A deep Q-network (DQN) ranks the network destinations for each task, the K highest-ranked destinations form a candidate set, and an exhaustive enumeration over the K-candidate set picks the destination that minimises a cost of energy, latency and an entropy-based routing-predictability risk , with weights that depend on a criticality index (CI) . We separate what the restriction, the learner and the entropy weight each contribute with a K-sweep, random-restriction controls, an entropy-reweighted greedy frontier and a criticality-agnostic static rule, and we measure leakage directly with an adaptive classifier trained to infer high acuity from each policy’s flow metadata. The contributions are:
- We show that does not track acuity inference. Across 21 distinct policies (a secondary analysis) its rank correlation with the adversary’s area under the receiver operating characteristic curve (AUC) is (). Increasing the entropy weight of the greedy scheduler lowers while raising AUC, because the criticality-dependent weights move low-acuity tasks onto fog nodes and keep high-acuity tasks on the cloud; the mutual information between destination and acuity tier rises from 0.011 to 0.077 bits. is a measure of routing predictability, not of acuity leakage.
- We place DQN-ES on the latency-leakage trade-off. It leaks less than the per-task optimum (AUC 0.569 vs 0.612) at a cost of 13.7 ms, 14.6 mJ and 0.65 percentage points of deadline violations, and less than entropy reweighting at the same latency. At matched latency it leaks about as much as mixing random restriction into the per-task optimum (slightly less on one adversary split, not resolved on the other), and fully random restriction leaks less (AUC 0.534) at 36.3 ms more latency, with 3.46 % deadline violations.
- On itself, entropy-reweighted greedy scheduling reaches lower values than DQN-ES at the same latency, and random restriction matches it, so candidate restriction is not an efficient way to lower .
- A criticality-agnostic static rule (ECG to the edge, all other tasks on the wearable) leaks least (AUC 0.483) at 55.6 ms more latency than DQN-ES, and on an all-ECG workload driven by the MIT-BIH Arrhythmia Database it saturates the edge gateway. The acuity signal an observer can exploit is created by conditioning the routing on criticality.
The evaluation models first-in-first-out (FIFO) queues at every node, result download, a datasheet-based wearable power model, bursty and heavy load, Rayleigh fading with retransmissions, up to 32 fog nodes and a trace-driven ECG workload. Code, configurations and per-task logs are public (Data availability and Code availability).
2. Related Work
2.1. Privacy Terms in Offloading Schedulers and How They Are Evaluated
He et al. [2] identified location privacy and usage-pattern privacy as the leakage created by wireless offloading and kept both at a prescribed level with a constrained Markov decision process; a later deep post-decision-state learner reached such policies faster than a DQN [9]. Min et al. [3] carried the formulation to energy-harvesting healthcare IoT devices, with reinforcement learning (RL) over the offloading rate. Lan et al. [4] trained a proximal policy optimisation (PPO) agent that chooses the task, the satellite and a redundancy option, with indicator rewards for usage-pattern and location privacy gated by a channel-quality threshold. Zhang et al. [5] used a DQN for healthcare monitoring with an “energy-aware privacy entropy” that, despite its name, is a weighted indicator function of the offloaded volume and the channel and battery state.
A second family puts an entropy of the offloading pattern in the objective. Zhang et al. [6] maximise the privacy entropy of a device’s usage pattern with an improved Harris hawks optimiser, Chen et al. [7] trade privacy entropy against processing cost under enhanced Q-learning, and Chen et al. [10] use information-entropy leakage models in federated deep reinforcement learning (DRL) for vehicular networks. The term of DQN-ES belongs to this family: it is the normalised Shannon entropy of each device’s own recent destinations. A third family protects privacy with a mechanism instead of an objective term, either differential privacy noise on the decisions [11,12,13] or federated training that keeps raw data on the device [14,15].
In the works above whose evaluation we could read, privacy is reported with the scheduler’s own privacy term. Gao et al. [8] come closest to an attack-based evaluation by defining privacy loss as the success probability of an attacker with prior knowledge, but the attacker is analytical, not trained on traces. Wei et al. [12] model an offloading-preference inference attack and bound it with differential privacy, and Momani et al. [15] leave adversarial evaluation to future work. We do not propose a new privacy term. We test whether an existing kind of term, routing entropy, predicts what a classifier trained on the same traffic can infer, which is the question classical traffic analysis [1] asks of encrypted flows.
2.2. Learned Candidate Restriction and Offloading Learners
DROO [16] already has the structure of DQN-ES: a neural network proposes a relaxed binary offloading decision, order-preserving quantisation turns it into K candidates, each candidate is evaluated exactly, and the best one is executed and stored for training, with K adapted online. DQN-ES applies the same pattern to a discrete choice among network destinations, with a DQN ranking [17], so learned restriction followed by exact evaluation is not new here; DROO is also a precedent for training on the executed rather than the network’s own preferred action. Other DRL offloading work handles larger or hybrid action spaces with parameterised PPO [18] or a latent action space [19], optimises offloading and resources jointly [20], or uses Lyapunov optimisation for online decisions [21]. Double DQN [22] reduces overestimation bias; we use the original DQN because its Q-values only rank five destinations.
Metaheuristic schedulers re-solve each decision from scratch: particle swarm optimisation (PSO) [23], ant colony optimisation (ACO) [24], Harris hawks optimisation [25,26], the slime mould algorithm [27] and its hybrid with Harris hawks optimisation (SMA-HHO), whale optimisation [28] and lemur-inspired search [29]. With five destinations the per-task problem is small enough to enumerate, so these methods serve here as baselines whose decisions can be checked against exhaustive enumeration.
2.3. Healthcare Offloading and Criticality Conditioning
Healthcare-specific privacy-aware RL offloading is thin in the literature we searched: Min et al. [3] and Zhang et al. [5] are the two RL schedulers with an explicit privacy term, and IoMT schemes based on federated RL [30] or federated learning with zero-trust authentication [31] optimise latency and energy with privacy coming from data locality. Energy on the body-worn side also constrains these networks, which clustering schemes for wireless body area networks target directly [32]. Conditioning on criticality is not unique to DQN-ES: Momani et al. [15] use a criticality-aware deadline model with class-dependent penalties, and Hao et al. [19] condition offloading on task priority. Table 1 sets these works against this one on the properties that matter for the present question.
3. System Model
3.1. Network, Tasks and Workload
The network has wearable devices , one edge gateway e, M fog servers and one cloud server c. The scheduler places each task on one of the network destinations
Every adaptive scheduler in this paper chooses from . Executing a task on its own wearable is used only by two reference policies, Local-Only and the static rule of Section 5.2. The main configuration has and ; Section 5.6 varies M up to 32.
A task generated by device at time is
with payload (bits), compute work (CPU cycles), deadline , privacy sensitivity and criticality index . The first four depend on the task type (Table 2). The ECG payload of 5 MB is a heavy-payload setting, equivalent to transmitting an uncompressed multi-channel buffer; one raw 10-second, 2-lead MIT-BIH window at 360 Hz and 11 bits per sample is about 10 KB, and Section 5.7 repeats the main comparison at that size. An episode has N tasks with Poisson arrivals at rate per second, so N sets both the episode length and the load. Task types are drawn with the shares in Table 2. Each task’s acuity tier is drawn independently of its type and of every other task (low 0.2, medium 0.6, high 0.2), and is uniform within the tier’s interval , or . Independently, each arrival starts an attack burst with probability 0.05, during which the task’s attack-probability feature is 0.8 (otherwise 0); enters only the DQN state.
3.2. Communication, Queueing and Latency
Each destination is reached over one wireless link from the wearable, with a log-distance channel gain (, m) over the wearable-to-destination distance: 5 to 50 m to the edge (), 1 to 5 km to a fog server () and 50 km to the cloud (), drawn per replicate. The uplink rate is
with MHz, radiated power dBm, noise power , no interference term and fading gain [33]. The result of size KB returns over the same link used as a reciprocal channel, with the serving side transmitting at 20 dBm, the regulatory limit for 2.4 GHz wideband equipment [34], giving rate . Signals propagate at m/s.
Every node, the wearables included, is a FIFO server. A task that reaches node j at time a waits , where is the time node j finishes the tasks already assigned to it, and is then served for . The schedulers see the exact backlog, so the waiting time they predict equals the one realised. The latency of offloading to is
and local execution takes with MHz. A task violates its service-level agreement (SLA) when .
Two channel options are used only in Section 5.7. Under Rayleigh block fading, is drawn per task on the uplink and downlink. Under packet loss, the payload is sent in 1500-byte packets, each lost with probability and retransmitted until received (automatic repeat request, ARQ). In both cases the schedulers plan with the expected channel ( and a rate factor ) and the environment realises the sampled one; the DQN reward is computed from the planned outcome.
3.3. Wearable Energy
Energy is the wearable’s battery energy per task; edge, fog and cloud energy is not counted. With the battery-draw powers of Table 3,
where . The draws are the ESP32-S3 datasheet currents at 3.3 V [35]: 283 mA while transmitting (802.11n HT20, the row whose output power is the 18.5 dBm used in (3)), 88 mA while receiving, 47.6 mA while waiting with the processor idle and 65.9 mA while computing. Radiated and drawn power are therefore separate quantities. At these values, local execution of one ECG task costs 135.9 mJ, against a mean of 89.4 mJ for offloading it to the edge gateway with empty queues, so local execution is not the low-energy option for the heaviest task. Section 5.7 reports two alternative power profiles.
3.4. Criticality Index and Cost
The criticality index is a severity proxy. It is defined by a Random Forest regressor trained offline on a public IoMT vital-signs dataset [37], whose target is derived from the dataset’s threshold-based alerts (Section 5.9); in the simulation is sampled per tier as described above. Three weight functions shift the cost from energy and privacy towards latency as rises:
normalised to , with , and as design choices. The cost of placing on destination x is
where and are latency and energy min-max normalised over local execution and all destinations for this task (with a 5 % margin) and is defined in Section 3.6. Deadlines do not enter ; they enter the DQN reward and the SLA metric. The reweighted baseline of Section 5.2 multiplies by and renormalises the three weights.
3.5. Threat Model
The observer is passive and sits on the path between the wearables and the network. For every task it sees the source device, the destination, the time the task leaves the device, its payload size and the response time; it cannot decrypt payloads. It is adaptive in the sense that it can record traces produced by the scheduling policy in use and train on them. Its goal is to decide whether a task belongs to a patient in the high acuity tier (). Active attackers that inject, delay or drop traffic, attackers with physical access to a device, extraction of the CI model and collusion with compute nodes are out of scope. Because acuity tiers are drawn independently of task type and arrival time, payload size and inter-arrival time carry no tier information by themselves; whatever tier information reaches the observer comes through the scheduler’s routing and the response times it produces.
3.6. Routing-Predictability Risk
Let hold the last decisions of device , and let be the fraction of the network-destination entries of that went to . The routing entropy and the routing-predictability risk are
so when the window is spread uniformly over the destinations and when every entry has the same destination [38]. In the cost (7), is evaluated on the window with the candidate x added. The reported metric is the per-task after the decision, averaged over all tasks of an episode, with locally executed tasks scoring 0; for the two policies that execute tasks locally, the local entries of the window also enter the entropy of the reported metric. The steady-state variant excludes each device’s first W decisions, while its window is filling; at that removes 500 of the 1000 decisions. measures how concentrated a device’s routing is; it does not refer to acuity, and Section 5.5 tests how it relates to what an observer can infer.
3.7. Acuity-Inference Metric
Leakage is measured by an adversary that matches the threat model. Each task is one sample, labelled 1 if its true tier is high. Its features are the task’s destination (one-hot over local execution and the destinations), the normalised histogram of the device’s preceding 50 destinations with the fraction of those 50 already observed, the inter-arrival time since the device’s previous task, the response time and the payload size. For each scheduler a separate histogram-based gradient-boosting classifier [39] is trained on that scheduler’s own traces from replicates 0 to 19 and tested on replicates 20 to 29, so it knows the policy and never sees a test replicate. The metric is the AUC per test replicate (). An AUC of 0.5 means the traffic carries no usable tier information for this adversary. We also report the plug-in mutual information per replicate. Logistic-regression and cross-validated variants are in the Supplementary Information.
4. The DQN-ES Scheduler
4.1. Decision Structure
For each task, DQN-ES computes the normalisation bounds of (7), builds the state , forms a candidate set of size K and executes
an exhaustive enumeration over the K-candidate set. With probability the candidate set is a uniformly random K-subset of ; otherwise it holds the K destinations with the highest Q-values . In both cases the executed destination is the cost minimiser within the set, so exploration changes which destinations are compared, not how the winner is chosen. The design has two limits: executes with -uniform exploration (the DQN-only policy), and is the per-task optimum of for any Q-values (the ES-only policy). The main configuration uses . Algorithm 1 lists the procedure.
| Algorithm 1 DQN-ES decision for task |
|
4.2. State, Reward and Learning
The state has components (22 at ):
where , with the number of tasks at node j, is the normalised round-trip propagation time and is a constant tier code (0.6 edge, 0.8 fog, 1.0 cloud). The state carries queue occupancy but not the device’s routing window, so the learner can account for a decision’s delayed effect on queues but not on .
After executing the scheduler computes
where is the cost (7) with fixed normalisation ranges, latency over and energy over . The deadline term grows with , so missed deadlines of critical tasks are penalised most. The transition is stored when the next decision arrives, with the state observed at that decision; the stream has no terminal state. The Q-network has two hidden layers of 64 ReLU units and is trained with mean squared error on targets
using plain stochastic gradient descent (learning rate , gradient norm clipped at 5 per parameter tensor), , a replay buffer of 10,000 transitions sampled in mini-batches of 32, one update per decision once 32 transitions are stored, and a target network copied every 50 decisions [17]. The exploration rate starts at and is multiplied by 0.995 after each decision down to a floor of 0.05; it falls below 0.10 after 460 decisions and reaches the floor after 598.
The stored action is the executed , which differs from whenever the cost prefers another candidate or the step explores. The target (12) does not depend on the policy that generated the data, so storing the executed action is consistent with Q-learning from off-policy data, provided every destination keeps being tried, which the random candidate subsets ensure. With a nonlinear approximator and replay this gives no convergence guarantee, as for any DQN; Section 5.5 and the Supplementary Information report the empirical action distribution and the temporal-difference (TD) loss. Within DQN-ES the Q-values only rank candidates; the cost makes the final choice, as in DROO [16].
4.3. Complexity
Each decision evaluates the offload model once per destination for the bounds, runs one forward pass, evaluates for K candidates and performs one mini-batch update. ES-only evaluates for all destinations and has no network. The forward pass costs 11,648 floating-point operations at and 30,208 at , and the Q-network has 5,957 and 15,266 parameters. The restriction therefore reduces the enumeration from to K cost evaluations, but at the sizes studied the bounds and the training update cost more than the evaluations saved, and DQN-ES takes longer per decision than ES-only at every M we tested (Section 5.6). Any case for candidate restriction here rests on how it changes routing, not on computation.
5. Evaluation
5.1. Setup and Statistics
The simulator is an event-driven Python and NumPy implementation of Section 3, with 10 wearables, one edge gateway, fog servers and one cloud server. Each configuration was run for 30 replicates. Replicate r draws its task stream, topology, channel and environment randomness and the DQN initialisation from seeds derived from , identically for every scheduler, so all comparisons are paired by replicate. Every learning scheduler starts each episode untrained, except in the warm-start condition of Section 5.7. Episode lengths are tasks, with as the primary setting. Seventeen closed-form checks of the latency, energy and queueing components passed, including the mean FIFO waits against the M/M/1 and M/D/1 formulas [40] at utilisations 0.3, 0.6 and 0.85 (within 2 %). Table 4 lists the two datasets used, and Supplementary Table S1 classifies every parameter as measured, taken from the literature, assumed or fitted, with its source.
The unit of analysis is the replicate: each metric is averaged over the tasks of an episode, and differences are taken between schedulers on the same replicate. We test them with the exact Wilcoxon signed-rank test [42] and control the family-wise error with Holm’s procedure [43] within four families: DQN-ES against PSO, ACO, SMA-HHO, ES-only and DQN-only on latency, energy, and SLA violations (20 tests); against Random-K and Static-Tier (Section 5.2) on the same four metrics (8 tests); against ES-only, Random-K and Static-Tier on adversary AUC per test replicate (3 tests, ); and the weight-scheme ablation (12 tests per workload). Effect sizes are the Hodges-Lehmann median of the paired differences [44] with a 95 % replicate-bootstrap confidence interval (CI, 10,000 resamples) and the matched-pairs rank-biserial correlation r [45]. To compare DQN-ES with a family of baselines at equal latency, we interpolate, per replicate, the family’s (or AUC) at DQN-ES’s latency and take the difference (“excess at matched latency”, positive when DQN-ES is above the family’s curve); replicates whose DQN-ES latency lies outside the family’s range are excluded rather than extrapolated, and the median excess is reported with a bootstrap CI. We claim no equivalence; differences whose CI includes zero are reported as not resolved. With ten test replicates the smallest attainable two-sided exact p is 0.002, or 0.0059 after Holm over three tests. The primary comparisons and tests were specified before the final runs, and analyses labelled secondary were added afterwards.
5.2. Schedulers Compared
Reference policies. Local-Only runs every task on its wearable, and Cloud-Only sends every task to the cloud.
Per-task search. ES-only is the exhaustive enumeration over all destinations, the per-task optimum of and the limit of DQN-ES. PSO (30 particles, 50 iterations) [23] and ACO (20 ants, 30 iterations, per-device pheromone) [24] search the same destinations for each task with the same cost. SMA-HHO combines the slime mould algorithm [27] with Harris hawks optimisation [25] (30 agents, 50 iterations); with five destinations it returned the ES-only decision for every task of every replicate, so its results are those of ES-only and are reported once.
Learned restriction. DQN-ES with ; is DQN-only. A variant that replaces the enumeration with PSO over the same three candidates made the same decisions as DQN-ES on every replicate and is not reported separately.
Random restriction. Random-K draws a uniformly random three-destination subset for every task and enumerates it; it is DQN-ES with and no network. q-mixed takes the Random-K step with probability q and the ES-only step otherwise, , tracing the latency-privacy curve of cheap randomisation between ES-only () and Random-K ().
Entropy reweighting. ES-only() multiplies the privacy weight by before renormalising, tracing the curve reachable by a greedy scheduler without any learning.
Criticality-agnostic rule. Static-Tier sends ECG tasks to the edge gateway and runs every other task on its wearable, using no cost and no .
The identities ES-only , DQN-only and Random-K held decision for decision on every replicate.
5.3. Main Comparison
At , DQN-ES sits between the per-task optimum and random restriction on every metric (Table 5, Figure 1). Against ES-only it was slower by 13.7 ms [9.9, 18.2], used 14.6 mJ [10.7, 18.4] more energy and had 0.65 percentage points [0.50, 0.80] more SLA violations, with lower by 0.035 [0.026, 0.050] (Table 6); all four differences were consistent across replicates (, ). Against Random-K it was 36.3 ms faster [26.8, 46.5], with 2.35 points fewer SLA violations and higher by 0.088 [0.082, 0.095]. PSO matched ES-only within 0.2 ms. ACO had almost no SLA violations but concentrated each device’s routing, which gave it a high (0.688), at 114.9 ms. The argmax-Q policy alone (DQN-only) took 501.6 ms with 7.16 % SLA violations: during the exploration phase it sends whole tasks to fog servers, reached over 1 to 5 km links, and its share of fog destinations fell from 0.44 in the first fifth of the episode to 0.03 in the last.
The two reference policies bound the space. Local-Only violated 30.71 % of deadlines, because no ECG task can finish locally in time, and at 59.2 mJ it used more energy than DQN-ES under the datasheet power model. Cloud-Only had no violations but the highest . Static-Tier had the lowest (0.169) and almost no violations, at 142.8 ms, because 70 % of its tasks run on the wearable.
The ordering of DQN-ES and ES-only held at every episode length (Figure 2). DQN-ES’s latency fell from 153.0 ms at to 89.3 ms at and 84.8 ms at , and rose to 94.0 ms at , where the arrival rate is five times that of and edge utilisation reached 0.49. Its SLA violations fell from 5.80 % to 0.58 % over the range, against 3.40 % to 0.12 % for ES-only. At the DQN is still in its exploration phase for the whole episode, which is where the cost of a cold start shows.
5.4. Where the Changes in Come From
Shrinking the candidate set lowered at every step from to (0.372, 0.367, 0.333, 0.291), each paired step with a CI excluding zero, and raised it again at (0.355), while latency rose from 74.2 to 76.2, 89.3, 147.4 and 501.6 ms (Figure 3a). The gained per millisecond of added latency was about 0.003 for the steps from to and 0.0007 from to , so is the last setting before the price of lowering rises steeply. The learner is not what lowers : Random-K, with the same K and no network, reached 0.244.
Mixing random restriction into ES-only traces a curve from ES-only to Random-K, and DQN-ES lies on it: at matched latency its all-task excess over the q-mixed curve was 0.008 [, 0.013] (Table 6). In steady state it lay above the curve (0.038 [0.026, 0.048]). Of DQN-ES’s all-task reduction against ES-only (0.035), 0.022 [0.014, 0.030] remained in steady state, so about 39 % of it comes from the first 50 decisions of each device, when exploration is highest. Entropy reweighting does better on : at matched latency the ES-only() curve lay below DQN-ES by 0.029 [0.008, 0.049], with three replicates excluded because DQN-ES was slower than every point of their curve, and in steady state the difference was not resolved (0.038 [, 0.044]). In direct paired comparisons, ES-only() was 6.8 ms faster [1.4, 11.7] and 7.8 mJ cheaper with not different (0.013 [, 0.029]), and ES-only() matched DQN-ES on latency ( ms [, 3.0]) with lower by 0.050 [0.033, 0.066]. On , then, candidate restriction is dominated by reweighting and matched by random mixing.
5.5. Does a Lower Reduce Acuity Inference?
In the privacy-inference family, DQN-ES’s AUC of 0.569 [0.554, 0.582] was lower than ES-only’s (0.612; [, ]) and higher than those of Random-K (0.534; [0.014, 0.054]) and Static-Tier (0.483; [0.074, 0.101]), each with , the smallest attainable with ten replicates. The same three differences held when the adversary was cross-validated over all 30 replicates (secondary; , and , all ). Every scheduler’s AUC lay between 0.483 and 0.726. Policies whose routing ignores (Local-Only, Cloud-Only, Static-Tier) read close to 0.5, as did DQN-only (0.496) and ACO (0.495). For DQN-ES the destination features alone gave 0.543, response times raised it to 0.567, and payload size added nothing (0.569), as expected when size is independent of tier.
Across schedulers, did not predict AUC (secondary). Over the 21 distinct policies (identical decision traces counted once), the Spearman correlation between and AUC was (permutation ), () for steady-state and () between and (Figure 4a). The sign depends on which policies are pooled, () without the two single-destination policies and 0.333 () over the nine policies DQN-ES, ES-only, Random-K, q-mixed (), ES-only(), Static-Tier, Local-Only and Cloud-Only, but no set gave a resolved correlation. The two ends of the range show why. ACO concentrates its routing () without regard to tier and leaks nothing (0.495); ES-only() spreads its routing () and leaks most (0.726).
The reweighted curve shows the mechanism (Figure 4b; secondary). Because is large only at low , scaling it diversifies the routing of low-acuity tasks and leaves high-acuity tasks on their latency-driven routes. As rose from 0.5 to 1, 3 and 10, the share of low-tier tasks sent to fog servers rose from 0.019 to 0.052, 0.164 and 0.419, while that of high-tier tasks stayed at 0.004, 0.005, 0.015 and 0.053; the gap in cloud share between high and low tiers widened from 0.18 to 0.40. Pooled rose from 0.011 to 0.023, 0.049 and 0.077 bits, fell from 0.411 to 0.372, 0.282 and 0.143, and AUC rose from 0.601 to 0.612, 0.662 and 0.726. Lowering through a criticality-dependent weight makes the routing more diverse and more informative at the same time.
At matched latency (secondary), DQN-ES leaked less than the reweighted curve, with an AUC excess of [, ] on the test split (9 replicates) and [, ] with cross-validation (27 replicates). Against the q-mixed curve the excess was [, ] on the test split and [, 0.000] with cross-validation over 30 replicates, so at the same latency DQN-ES leaked at most slightly less than random mixing. Its mutual information between destination and tier (0.022 bits) lies between ES-only’s (0.028) and Random-K’s (0.010). The executed destination differed from the Q-network’s first choice in 56.6 % of decisions (52.1 % of non-exploratory ones), and 20.9 % of decisions explored; the per-phase action distribution and TD-loss curves are in the Supplementary Information.
5.6. Scalability and Decision Cost
With more fog servers and K fixed at 3, DQN-ES degraded (Table 7, Figure 5). Its latency rose from 89.3 ms at to 431.0 ms at and its SLA violations from 1.11 to 14.57 %, while ES-only stayed between 74.2 and 79.7 ms. The added fog servers are reached over long links, so a candidate set that holds three of 34 destinations, chosen at random during exploration or by a Q-network that has seen 1000 decisions, often contains only slow options; Random-K degraded more (541.9 ms at ). DQN-ES moved above the q-mixed curve as M grew (all-task excess 0.013 [, 0.038] at , 0.075 [0.043, 0.098] at and 0.069 [0.016, 0.094] at , the last with 20 replicates inside the curve’s range). is normalised by , so its values are comparable within a row of Table 7 (the same M), not down a column.
Decision times were measured serially on an Intel Core Ultra 7 266V laptop processor (Python 3.14, NumPy 2.4; 5 replicates of 1000 tasks per cell). At a DQN-ES decision took a median 0.231 ms (99th percentile 0.806 ms), of which the bounds took 0.024 ms, the forward pass 0.008 ms, the enumeration 0.027 ms and the training update 0.142 ms; ES-only took 0.055 ms. At the medians were 0.421 and 0.321 ms. The online and target networks with a full replay buffer take about 3.9 MB at and 22.6 MB at . These timings describe a laptop CPU and are not a measurement on gateway hardware.
5.7. Robustness
Table 8 and Figure 6 repeat the comparison under other loads, arrival processes, channels, payloads and criticality errors. In every condition DQN-ES was slower than ES-only and had lower , except after a warm start.
Load and burstiness. We scaled the arrival rate so that the offered edge utilisation reached 0.3, 0.6 or 0.85, with Poisson arrivals or with a two-state Markov-modulated Poisson process (MMPP-2) whose burst state runs at four times the mean rate. DQN-ES’s latency cost against ES-only grew with load, from 16.4 to 23.8 ms under Poisson arrivals and to 25.7 ms under MMPP-2 at 0.85, and it moved above the q-mixed curve (excess 0.021 [0.004, 0.043] at 0.85, and 0.030 [0.020, 0.043] with MMPP-2 at 0.85). Static-Tier, which loads only the edge, reached 182.6 ms at 0.85 and 211.4 ms with bursts.
Fading and retransmission. Under Rayleigh fading, DQN-ES’s mean latency rose to 233.7 ms with a standard deviation of 332 ms across replicates, against 83.3 ms for ES-only, 143.9 ms for Static-Tier and 903.3 ms for Random-K; ARQ with 5 % packet loss raised these to 244.4, 85.5, 145.2 and 962.4 ms. The schedulers plan with the mean channel. The pattern is consistent with restricted policies being left more often with a candidate set whose best option is a weak link, where a deep fade on a 5 MB payload costs seconds, while the per-task optimum mostly uses the edge link, whose margin absorbs fades. The ordering on and the position on the q-mixed curve were unchanged.
Payload and result size. With a 10 KB ECG payload, offloading took about 30 ms (DQN-ES 30.95 ms, ES-only 29.92 ms, ACO 28.91 ms, Cloud-Only 28.86 ms) and SLA violations nearly vanished, while Local-Only stayed at 299.6 ms. DQN-ES remained slower (0.9 ms [0.4, 1.4]) with lower all-task ( [, ]), but its steady-state did not differ from ES-only’s ( [, 0.011]). Raising the result size from 1 to 64 KB added 2.5 ms to DQN-ES and 4.7 ms to ES-only; at 1 KB the result download is 0.18 ms of DQN-ES’s 89.3 ms.
Power profiles. With a radio kept in receive mode while waiting (TX 340 mA, wait 88 mA), DQN-ES used 66.8 mJ and ES-only 48.4 mJ per task; with light sleep while waiting (240 A plus an assumed 1 ms wake-up at 66 mA), 46.2 and 30.4 mJ. DQN-ES used more energy than ES-only in all three profiles, and Local-Only (59.2 mJ) used less than DQN-ES only in the receive-mode profile.
Criticality errors. Gaussian noise on the seen by the scheduler () or misclassification of 10 or 20 % of tiers changed DQN-ES’s latency by at most 1.1 ms and its by at most 0.001; its position on the q-mixed curve was not resolved from zero in any of the five conditions. Labels and metrics kept the true .
Warm start. Pre-training the DQN on 500 or 2000 tasks from a disjoint seed stream on the same topology, then evaluating from a fresh queue and routing state, removed the latency cost at (74.8 and 75.8 ms against 74.2 ms; ms [, 2.5] for 2000 tasks) and lowered SLA violations to 0.38 and 0.40 %, below ES-only’s 0.48 %. It also removed the reduction: all-task rose to 0.393 and 0.398, above ES-only’s 0.372 ( [0.014, 0.034]), and steady-state was equal. At warm starts cut latency from 153.0 to 101.6 and 94.4 ms and SLA violations from 5.80 to 2.80 and 2.67 %, below ES-only’s 3.40 %. Pre-training also narrowed DQN-ES’s leakage advantage (secondary; Supplementary Table S11): its AUC rose to 0.585 and 0.590 against ES-only’s 0.612, a difference of [, ] () after 500 tasks and of [, 0.002] (), not resolved, after 2000.
5.8. Trace-Driven MIT-BIH Simulation
In the trace-driven simulation each of the 8,640 ten-second windows of the 48 MIT-BIH records [41] became one ECG task (5 MB, 150 M cycles, 500 ms deadline, ). Its was drawn within the tier given by the window’s share of annotated arrhythmic beats (above 0.3 high, 0.1 to 0.3 medium, below 0.1 low). Tasks arrived as a Poisson stream at 20 per second, assigned in turn to the 10 wearables, on a topology redrawn per replicate. Only the acuity sequence comes from the recordings; payload, compute and arrivals are synthetic, and tiers cluster in time because consecutive windows come from the same patient. The stream offers 3.0 G cycles per second, twice the edge gateway’s capacity, so a policy that sends every ECG task to the edge cannot keep up. This setting is secondary.
The trace did not reproduce the synthetic pattern on every point (Table 9, Figure 7). DQN-ES was faster than ES-only (366.6 against 516.1 ms, SLA violations 10.8 against 43.9 %), because ES-only kept choosing the edge and its queue grew (edge utilisation 0.999 against 0.797). DQN-ES had higher than ES-only (0.509 against 0.485, [0.010, 0.036]) and lower AUC (0.541 [0.461, 0.617] against 0.836, , ); its differences from Random-K ( [, 0.031]) and Static-Tier ( [, 0.102]) were not resolved. Along the K-sweep, rose as K shrank from 5 to 2 (0.485, 0.505, 0.509, 0.526), the reverse of the synthetic workload, and raising from 0.5 to 10 lowered AUC slightly (0.832 to 0.811), so the rise in AUC with on the synthetic workload (Section 5.5) did not carry over to the trace. Local-Only (0.529) and Cloud-Only (0.513) read above 0.5, so response times carry some tier information here without any routing choice, plausibly because tiers and queue states both vary along the trace. The matched-latency statistics were computable in at most 6 of 30 replicates, because in the others DQN-ES was faster than every point of the q-mixed and reweighted curves. Static-Tier, ACO and Local-Only saturated their queues, with mean latencies of 215,930, 213,133 and 54,355 ms.
On the larger synthetic episodes (, secondary), DQN-ES’s AUC (0.573) was below ES-only’s (0.606; [, ], ), and DQN-ES lay above the q-mixed curve on (excess 0.050 [0.043, 0.062]); Random-K and Static-Tier were not run at that length.
5.9. CI Module and Weight Design
The CI module is a 100-tree Random Forest regressor (maximum depth 8) trained on 40,000 of the 50,000 Kaggle IoMT records and tested on the other 10,000. Its target is , where scores each of the dataset’s threshold alerts (High 0.7, Low 0.75, Abnormal 0.6, Normal 0.1) and b adds 0.08 to 0.2 for a recorded condition, so reproduces the dataset’s alert rule, not a clinical outcome; 93.4 % of the targets are at least 0.7. The test was 0.825. Mean absolute SHapley Additive exPlanations (SHAP) [46] values ranked SpO2 first (0.0585), then heart rate (0.0366), systolic pressure (0.0329), temperature (0.0219) and diastolic pressure (0.0152) (Figure 8). The module defines offline; the scheduling experiments sample per tier.
The weight functions (6) are a design choice. Against flat, step and linear schemes on DQN-ES at , the nonlinear scheme had the lowest (0.333 against 0.338 to 0.365; ) and the highest latency (89.3 against 86.1 to 87.9 ms; ). With every task in the high tier the order reversed: the nonlinear scheme had the highest (0.377 against 0.344 to 0.369) and was faster than the flat and step schemes, and its latency did not differ from the linear scheme’s (83.0 against 83.1 ms). The weight shape moves DQN-ES along the latency- trade-off rather than improving both (Supplementary Information).
6. Discussion
rewards spreading each device’s tasks over many destinations whether or not the spreading depends on acuity. An observer who wants to know a patient’s acuity does not need predictable routing; it needs routing that differs between acuity tiers. ACO shows one side of this, routing that is concentrated but unrelated to tier, and the reweighted greedy scheduler the other, routing that is diverse but organised by tier. In any scheduler whose weights depend on , a privacy term that acts more strongly at some values of than at others writes the tier into the routing. For this class of schedulers a privacy objective would have to target the dependence between destination and acuity, for example , rather than the marginal entropy of the destinations. We did not test such an objective.
DQN-ES lowers acuity inference relative to the per-task optimum because its candidate sets are partly random, which weakens the link between destination and tier, and the evidence points to that randomisation rather than to the learned ranking. At matched latency, mixing random subsets into the per-task optimum reaches nearly the same AUC; fully random subsets leak less at a higher latency; and once the DQN is pre-trained its reduction disappears. What the learned ranking adds is latency: at the same K, DQN-ES is 36 ms faster than Random-K in paired terms. A fixed K also scales poorly, because three candidates out of 34 destinations leave the scheduler too often with slow options. DQN-ES is therefore one point on a latency-leakage curve that cheaper policies also reach, and the right point depends on how a deployment values deadlines against leakage. A criticality-agnostic rule removes the leakage that the scheduler creates, at a fixed latency cost and with no adaptation to load, which the saturated edge on the MIT-BIH workload shows.
6.1. Limitations
The results come from simulation only. No end-to-end testbed was built, and decision times were measured on a laptop processor rather than on gateway-class hardware; energy is computed from datasheet currents, not measured battery drain.
The threat model covers a single passive observer with full visibility of flow metadata, a task-level label with tiers drawn independently for every task in the synthetic workload, and one classifier family with default settings. Real acuity persists over time, as the MIT-BIH trace already suggests by giving ES-only an AUC of 0.836, and an observer that pools devices or uses longer context could infer more. The AUC values compare policies under this adversary; they are not guarantees against stronger ones.
approximates the threshold rule of a public dataset, so its is agreement with that rule, not clinical validity. Within the noise levels studied, errors in hardly changed the scheduling metrics, but leakage under noisy was not measured.
The physical layer is idealised: Shannon-capacity links without interference, contention or mobility, and one wireless hop to every destination. Rayleigh fading with retransmissions left the orderings intact but raised DQN-ES’s latency to 233.7 ms with large variation across replicates. Warm starting is evaluated with pre-training on the same topology only; pre-warming a policy from other sites, for example by federated averaging, is left open.
7. Conclusion
Routing entropy, the privacy term of DQN-ES and of several offloading schedulers, did not predict how well a trained observer infers patient acuity from flow metadata, and raising its weight in a criticality-conditioned cost made acuity easier to infer. DQN-ES itself leaked less than the per-task optimum, at a cost in latency, energy and deadline violations, and less than entropy reweighting at equal latency; at equal latency it leaked about as much as random restriction, and a criticality-agnostic rule leaked least at a large latency cost. Pre-training removed DQN-ES’s latency cost together with its advantage, and a fixed candidate size did not scale to many fog servers. A privacy objective for criticality-aware offloading should target the dependence between destination and acuity, and its evaluation should include an attack trained on the traffic it produces.
Supplementary Materials
The following supporting information can be downloaded at the website of this paper posted on Preprints.org. The Supplementary Information contains the parameter provenance table (Table S1), the full paired statistics (Tables S2 to S6), the secondary analyses, the adversary details, the exploration diagnostics and additional sensitivity figures.
Author Contributions
An.S. developed the system architecture, conducted the simulations, performed the data analysis, and wrote the main manuscript text. Am.S. and Ar.S. provided supervision, contributed to the theoretical framework, and critically revised the manuscript. All authors reviewed the manuscript.
Funding
The authors declare that no funds, grants, or other support were received during the preparation of this manuscript.
Informed Consent Statement
Not applicable. No human participants were recruited or enrolled by the authors; all data originate from previously published, publicly available, de-identified datasets.
Data Availability Statement
The datasets analysed during the current study are available in public repositories. The IoMT vital-signs dataset used to train the CI module (“IoMT Dataset for ML-Based Health Monitoring”) is available on Kaggle (https://www.kaggle.com/datasets/prokashbarmancu/iomt-alert, DOI 10.34740/KAGGLE/DSV/7736523) [37], and the MIT-BIH Arrhythmia Database is available via PhysioNet [41]. The per-task simulation logs generated in this study are archived on Zenodo (doi:10.5281/zenodo.23112068), and the per-run summaries and run manifests are part of the code release (Code availability). No new biological or human data were generated.
Code Availability Statement
The simulator, experiment configurations and analysis scripts are available at https://github.com/anayy09/DQN-ES. Release v2.0.0, archived on Zenodo (doi:10.5281/zenodo.23112080), contains the result file behind every reported number together with the run manifest that records the commit and configuration that produced it.
Ethical Approval
Not applicable. This study did not involve any new experiments on human participants or animals. It relies solely on secondary analysis of publicly available, de-identified datasets, so no institutional ethics approval was required.
Public Involvement Statement
Not applicable. This manuscript does not contain any individual person’s identifiable data in any form.
Conflicts of Interest
The authors declare no competing interests.
References
- Liberatore, M.; Levine, B.N. Inferring the source of encrypted HTTP connections. In Proceedings of the Proc. ACM CCS, 2006; pp. 255–263. [Google Scholar] [CrossRef]
- He, X.; Liu, J.; Jin, R.; Dai, H. Privacy-Aware Offloading in Mobile-Edge Computing. In Proceedings of the Proc. IEEE Global Communications Conf. (GLOBECOM), 2017; pp. 1–6. [Google Scholar] [CrossRef]
- Min, M.; Wan, X.; Xiao, L.; Chen, Y.; Xia, M.; Wu, D.; Dai, H. Learning-Based Privacy-Aware Offloading for Healthcare IoT With Energy Harvesting. IEEE Internet Things J. 2019, 6, 4307–4316. [Google Scholar] [CrossRef]
- Lan, W.; Chen, K.; Li, Y.; Cao, J.; Sahni, Y. Deep Reinforcement Learning for Privacy-Preserving Task Offloading in Integrated Satellite-Terrestrial Networks. IEEE Trans. Mob. Comput. 2024, 23, 9678–9691. [Google Scholar] [CrossRef]
- Zhang, J.; Hu, Y.; Shao, M.; Li, X. Joint energy-aware task offloading and privacy protection in healthcare monitoring systems via deep reinforcement learning. Sci. Rep. 2026, 16, 1174. [Google Scholar] [CrossRef]
- Zhang, D.G.; An, H.Z.; Zhang, J.; Zhang, T.; Dong, W.M.; Jiang, X.R. Novel Privacy Awareness Task Offloading Approach Based on Privacy Entropy. IEEE Trans. Netw. Serv. Manag. 2024, 21, 3598–3608. [Google Scholar] [CrossRef]
- Chen, Y.; Wang, Y.; Jin, X.; Wang, Z.; Lu, C. Dynamic task offloading in MEC with joint cost reduction and privacy protection. Clust. Comput. 2026, 29, 204. [Google Scholar] [CrossRef]
- Gao, H.; Huang, W.; Liu, T.; Yin, Y.; Li, Y. PPO2: Location Privacy-Oriented Task Offloading to Edge Computing Using Reinforcement Learning for Intelligent Autonomous Transport Systems. IEEE Trans. Intell. Transp. Syst. 2023, 24, 7599–7612. [Google Scholar] [CrossRef]
- He, X.; Jin, R.; Dai, H. Deep PDS-Learning for Privacy-Aware Offloading in MEC-Enabled IoT. IEEE Internet Things J. 2019, 6, 4547–4555. [Google Scholar] [CrossRef]
- Chen, Y.; Zhang, J.; Dai, W.; Han, J.; Chen, M.; Liu, Z.; Farouk, A. An Entropy-Based Privacy-Preserving Federated Deep Reinforcement Learning Framework for Task Offloading in Vehicular Edge Computing Networks. IEEE Internet Things J. 2026, 13, 8011–8024. [Google Scholar] [CrossRef]
- Gan, S.; Siew, M.; Xu, C.; Quek, T.Q.S. Differentially Private Deep Q-Learning for Pattern Privacy Preservation in MEC Offloading. In Proceedings of the Proc. IEEE Int. Conf. Communications (ICC), 2023; pp. 3578–3583. [Google Scholar] [CrossRef]
- Wei, D.; Zhang, J.; Shojafar, M.; Kumari, S.; Xi, N.; Ma, J. Privacy-Aware Multiagent Deep Reinforcement Learning for Task Offloading in VANET. IEEE Trans. Intell. Transp. Syst. 2023, 24, 13108–13122. [Google Scholar] [CrossRef]
- Zhang, P.; Gan, P.; Chang, L.; Wen, W.; Selvi, M.; Kibalya, G. DPRL: Task Offloading Strategy Based on Differential Privacy and Reinforcement Learning in Edge Computing. IEEE Access 2022, 10, 54002–54011. [Google Scholar] [CrossRef]
- Xu, Y.; Bhuiyan, M.Z.A.; Wang, T.; Zhou, X.; Singh, A.K. C-FDRL: Context-Aware Privacy-Preserving Offloading Through Federated Deep Reinforcement Learning in Cloud-Enabled IoT. IEEE Trans. Ind. Informat. 2023, 19, 1155–1164. [Google Scholar] [CrossRef]
- Momani, A.M.; Alsekait, D.M.; Al-Khasawneh, M.A.; Othman, S.H.; Alkayid, K.; Kouki, S.; Baalamurugan, K.M. Federated deep reinforcement learning for privacy-preserving offloading in vehicular edge computing. Sci. Rep. 2026, 16, 26530. [Google Scholar] [CrossRef]
- Huang, L.; Bi, S.; Zhang, Y.J.A. Deep Reinforcement Learning for Online Computation Offloading in Wireless Powered Mobile-Edge Computing Networks. IEEE Trans. Mob. Comput. 2020, 19, 2581–2593. [Google Scholar] [CrossRef]
- Mnih, V.; et al. Human-level control through deep reinforcement learning. Nature 2015, 518, 529–533. [Google Scholar] [CrossRef]
- Wang, T.; Deng, Y.; Yang, Z.; Wang, Y.; Cai, H. Parameterized Deep Reinforcement Learning With Hybrid Action Space for Edge Task Offloading. IEEE Internet Things J. 2024, 11, 10754–10767. [Google Scholar] [CrossRef]
- Hao, H.; Xu, C.; Zhang, W.; Yang, S.; Muntean, G.M. Task-Driven Priority-Aware Computation Offloading Using Deep Reinforcement Learning. IEEE Trans. Wirel. Commun. 2025, 24, 8114–8128. [Google Scholar] [CrossRef]
- Zhang, X.; Zhang, X.; Yang, W. Joint Offloading and Resource Allocation Using Deep Reinforcement Learning in Mobile Edge Computing. IEEE Trans. Netw. Sci. Eng. 2022, 9, 3454–3466. [Google Scholar] [CrossRef]
- Mao, Y.; Zhang, J.; Letaief, K.B. Dynamic Computation Offloading for Mobile-Edge Computing with Energy Harvesting Devices. IEEE J. Sel. Areas Commun. 2016, 34, 3590–3605. [Google Scholar] [CrossRef]
- van Hasselt, H.; Guez, A.; Silver, D. Deep Reinforcement Learning with Double Q-Learning. In Proceedings of the Proc. AAAI, 2016; pp. 2094–2100. [Google Scholar] [CrossRef]
- Kennedy, J.; Eberhart, R. Particle swarm optimization. Proc. Proc. ICNN 1995, Vol. 4, 1942–1948. [Google Scholar] [CrossRef]
- Dorigo, M.; Stützle, T. Ant Colony Optimization; MIT Press: Cambridge, MA, USA, 2004. [Google Scholar]
- Heidari, A.A.; Mirjalili, S.; Faris, H.; Aljarah, I.; Mafarja, M.; Chen, H. Harris hawks optimization: Algorithm and applications. Future Gener. Comput. Syst. 2019, 97, 849–872. [Google Scholar] [CrossRef]
- Ali, A.; Shah, S.A.A.; Al Shloul, T.; Assam, M.; Ghadi, Y.Y.; Lim, S.; Zia, A. Multiobjective Harris Hawks Optimization-Based Task Scheduling in Cloud-Fog Computing. IEEE Internet Things J. 2024, 11, 24334–24352. [Google Scholar] [CrossRef]
- Li, S.; Chen, H.; Wang, M.; Heidari, A.A.; Mirjalili, S. Slime mould algorithm: A new method for stochastic optimization. Future Gener. Comput. Syst. 2020, 111, 300–323. [Google Scholar] [CrossRef]
- Zhang, J.; Cai, X.; Shi, Y.; Zhao, Z.; Fei, T. Optimization of Task Offloading in Mobile Edge Computing Based on an Improved Whale Optimization Algorithm. In Proceedings of the Proc. 5th Int. Conf. Machine Learning and Intelligent Systems Engineering (MLISE), 2025; pp. 404–407. [Google Scholar] [CrossRef]
- Almulifi, A.; Kurdi, H. LITO: Lemur-Inspired Task Offloading for Edge–Fog–Cloud Continuum Systems. Sensors 2026, 26, 1497. [Google Scholar] [CrossRef]
- Consul, P.; Budhiraja, I.; Arora, R.; Garg, S.; Choi, B.J.; Shamim Hossain, M. Federated reinforcement learning based task offloading approach for MEC-assisted WBAN-enabled IoMT. Alex. Eng. J. 2024, 86, 56–66. [Google Scholar] [CrossRef]
- Almuseelem, W. Secure Latency-Aware Task Offloading Using Federated Learning and Zero Trust in Edge Computing for IoMT. IEEE Access 2025, 13, 117808–117830. [Google Scholar] [CrossRef]
- Hosseinzadeh, M.; Haider, A.; Ali, S.; Mohammadi, M.; Mehranzadeh, A.; Porntaveetus, T.; Lansky, J. Enhancing DBSCAN clustering with fuzzy system to improve IoT-based WBAN performance. Sci. Rep. 2025, 15, 28404. [Google Scholar] [CrossRef]
- Rappaport, T.S. Wireless Communications: Principles and Practice, 2nd ed.; Prentice Hall: Upper Saddle River, NJ, USA, 2002. [Google Scholar]
- ETSI. EN 300 328 V2.2.2: Wideband transmission systems; Data transmission equipment operating in the 2,4 GHz band; Harmonised Standard for access to radio spectrum; European Telecommunications Standards Institute. Technical report; Sophia Antipolis, France, 2019.
- Espressif Systems. ESP32-S3 Series Datasheet, Version 2.2; Espressif Systems, 2026. [Google Scholar]
- Upton, E. Raspberry Pi 4 on sale now from $35. Raspberry Pi News. Accessed. 2019. (accessed on 1 October 2026).
- Barman, P. IoMT Dataset for ML-Based Health Monitoring; Kaggle, 2024. [Google Scholar] [CrossRef]
- Shannon, C.E. A mathematical theory of communication. Bell Syst. Tech. J. 1948, 27, 379–423. [Google Scholar] [CrossRef]
- Pedregosa, F.; Varoquaux, G.; Gramfort, A.; Michel, V.; Thirion, B.; Grisel, O.; Blondel, M.; Prettenhofer, P.; Weiss, R.; Dubourg, V.; et al. Scikit-learn: Machine learning in Python. J. Mach. Learn. Res. 2011, 12, 2825–2830. [Google Scholar]
- Kleinrock, L. Queuing Systems. In Theory; Wiley-Interscience: New York, NY, USA, 1975; Volume 1. [Google Scholar]
- Moody, G.B.; Mark, R.G. The impact of the MIT-BIH Arrhythmia Database. IEEE Eng. Med. Biol. Mag. 2001, 20, 45–50. [Google Scholar] [CrossRef]
- Wilcoxon, F. Individual comparisons by ranking methods. Biom. Bull. 1945, 1, 80–83. [Google Scholar] [CrossRef]
- Holm, S. A simple sequentially rejective multiple test procedure. Scand. J. Stat. 1979, 6, 65–70. [Google Scholar]
- Hodges, J.L.; Lehmann, E.L. Estimates of location based on rank tests. Ann. Math. Stat. 1963, 34, 598–611. [Google Scholar] [CrossRef]
- Kerby, D.S. The simple difference formula: An approach to teaching nonparametric correlation. Compr. Psychol. 2014, 3, 11.IT.3.1. [Google Scholar] [CrossRef]
- Lundberg, S.M.; Lee, S.I. A unified approach to interpreting model predictions. In Proceedings of the Proc. NeurIPS, 2017; pp. 4765–4774. [Google Scholar]
Figure 1.
Schedulers at : (a) latency, (b) wearable energy, (c) , (d) SLA violations and (e) acuity-inference AUC, with the mean printed on each bar. Error bars are 95 % replicate-bootstrap CIs (30 replicates; AUC: 10 test replicates), except for ACO and PSO (marked †), which show standard deviation. Bars marked // are truncated (DQN-only latency and energy, Local-Only SLA). AUC bars start at 0.5.
Figure 1.
Schedulers at : (a) latency, (b) wearable energy, (c) , (d) SLA violations and (e) acuity-inference AUC, with the mean printed on each bar. Error bars are 95 % replicate-bootstrap CIs (30 replicates; AUC: 10 test replicates), except for ACO and PSO (marked †), which show standard deviation. Bars marked // are truncated (DQN-only latency and energy, Local-Only SLA). AUC bars start at 0.5.

Figure 2.
(a) Latency and (b) wearable energy (logarithmic axes) and (c) SLA violations against episode length N for DQN-ES, ES-only (identical to SMA-HHO), PSO, ACO, DQN-only, Local-Only and Cloud-Only. Points are means over 30 replicates with standard deviation.
Figure 2.
(a) Latency and (b) wearable energy (logarithmic axes) and (c) SLA violations against episode length N for DQN-ES, ES-only (identical to SMA-HHO), PSO, ACO, DQN-only, Local-Only and Cloud-Only. Points are means over 30 replicates with standard deviation.

Figure 3.
Latency (logarithmic axis) against (a) and against acuity-inference AUC (b) at for the K-sweep of DQN-ES ( to 5), the q-mixed curve ( to 1, from ES-only to Random-K) and the entropy-reweighted curve ES-only(), to 10, with Static-Tier, Local-Only and Cloud-Only (off the axis in (a), ). Points are means over 30 replicates; AUC points are means over 10 test replicates with 95 % CIs. DQN-ES () is circled.
Figure 3.
Latency (logarithmic axis) against (a) and against acuity-inference AUC (b) at for the K-sweep of DQN-ES ( to 5), the q-mixed curve ( to 1, from ES-only to Random-K) and the entropy-reweighted curve ES-only(), to 10, with Static-Tier, Local-Only and Cloud-Only (off the axis in (a), ). Points are means over 30 replicates; AUC points are means over 10 test replicates with 95 % CIs. DQN-ES () is circled.

Figure 4.
(a) against acuity-inference AUC for the 21 distinct policies at , coloured by family, both averaged over the 10 test replicates; Spearman (permutation ; secondary). (b) Destinations by acuity tier for ES-only(), : share of low- and high-tier tasks sent to fog servers and to the cloud, pooled over 30 replicates, with the pooled for each .
Figure 4.
(a) against acuity-inference AUC for the 21 distinct policies at , coloured by family, both averaged over the 10 test replicates; Spearman (permutation ; secondary). (b) Destinations by acuity tier for ES-only(), : share of low- and high-tier tasks sent to fog servers and to the cloud, pooled over 30 replicates, with the pooled for each .

Figure 5.
Fog-server count at : latency (a) and (b) for DQN-ES, ES-only, Random-K, q-mixed () and Static-Tier (means over 30 replicates, standard deviation), and (c) median decision time of DQN-ES (left bar) and ES-only (right bar) split into bounds, forward pass, enumeration and training update, with the median total marked (Intel Core Ultra 7 266V, serial). Component medians need not add up to the median total.
Figure 5.
Fog-server count at : latency (a) and (b) for DQN-ES, ES-only, Random-K, q-mixed () and Static-Tier (means over 30 replicates, standard deviation), and (c) median decision time of DQN-ES (left bar) and ES-only (right bar) split into bounds, forward pass, enumeration and training update, with the median total marked (Intel Core Ultra 7 266V, serial). Component medians need not add up to the median total.

Figure 6.
Latency (logarithmic axis) and of DQN-ES, ES-only, Random-K, q-mixed () and Static-Tier at under offered edge load (Poisson and MMPP-2 arrivals), Rayleigh fading with ARQ loss, and noise or misclassification of . Points are means over 30 replicates with standard deviation; lower whiskers below the axis are clipped.
Figure 6.
Latency (logarithmic axis) and of DQN-ES, ES-only, Random-K, q-mixed () and Static-Tier at under offered edge load (Poisson and MMPP-2 arrivals), Rayleigh fading with ARQ loss, and noise or misclassification of . Points are means over 30 replicates with standard deviation; lower whiskers below the axis are clipped.

Figure 7.
Trace-driven MIT-BIH simulation: (a) latency, (b) , (c) SLA violations and (d) acuity-inference AUC for the schedulers that do not saturate. Bars are means over 30 replicates with standard deviation; AUC bars are means over 10 test replicates with 95 % CIs and start at 0.5. Static-Tier, ACO and Local-Only saturate their queues (Table 9).
Figure 7.
Trace-driven MIT-BIH simulation: (a) latency, (b) , (c) SLA violations and (d) acuity-inference AUC for the schedulers that do not saturate. Bars are means over 30 replicates with standard deviation; AUC bars are means over 10 test replicates with 95 % CIs and start at 0.5. Static-Tier, ACO and Local-Only saturate their queues (Table 9).

Figure 8.
Mean absolute SHAP value of the five vital-sign features of the CI module on the 10,000 test records of the Kaggle IoMT dataset.
Figure 8.
Mean absolute SHAP value of the five vital-sign features of the CI module on the 10,000 test records of the Kaggle IoMT dataset.

Table 1.
Privacy-aware and closely related offloading schemes. “Not stated” means not stated in the text available to us (for several entries the abstract only). CMDP: constrained Markov decision process; MDP: Markov decision process; PDS: post-decision state; DP: differential privacy; DNN: deep neural network; SAC: soft actor-critic.
Table 1.
Privacy-aware and closely related offloading schemes. “Not stated” means not stated in the text available to us (for several entries the abstract only). CMDP: constrained Markov decision process; MDP: Markov decision process; PDS: post-decision state; DP: differential privacy; DNN: deep neural network; SAC: soft actor-critic.
| Work | Privacy metric | Attack-based evaluation | Learner | Action-space handling | Criticality conditioning | Health workload |
|---|---|---|---|---|---|---|
| He et al. [2] | Location and usage-pattern privacy level (constraint) | Not stated | None (CMDP) | CMDP over offload or local | No | No |
| Min et al. [3] | Location and usage-pattern privacy | Not stated | RL (transfer, Dyna, PDS) | Offloading rate | No | Yes |
| Lan et al. [4] | Indicator rewards (usage pattern, location) | No (own metric) | PPO | Task, satellite, redundancy | No | No |
| Zhang et al. [6] | Privacy entropy of usage pattern (maximised) | Not stated | Improved Harris hawks | Metaheuristic search | Not stated | No |
| Zhang et al. [5] | Indicator “privacy entropy” of offloaded volume | No (own metric) | DQN | Offloading fraction | No | Yes |
| Chen et al. [7] | Privacy entropy with processing cost | Not stated | Enhanced Q-learning | MDP over offloading | Not stated | No |
| Gan et al. [11] | Pattern privacy by differential privacy | Eavesdropper modelled; DP guarantee | DQN | Noise on decisions | No | No |
| Gao et al. [8] | Attacker success probability | Analytical attacker | PPO | Discrete offloading | No | No |
| DROO [16] | None | n/a | DNN with replay | K quantised candidates, each evaluated exactly | No | No |
| Momani et al. [15] | Data locality (federated) | No (future work) | Federated SAC | Binary offload plus continuous allocation | Yes (deadline classes) | No |
| This work | Windowed routing entropy (penalised); adversary AUC | Trained adaptive classifier on flow metadata | DQN | Top-K of destinations, enumeration over K | Yes (CI-dependent weights) | Synthetic and MIT-BIH trace |
Table 2.
Task profiles. is the privacy sensitivity that scales . Cycle counts, deadlines and are assumed values (Supplementary Table S1).
Table 2.
Task profiles. is the privacy sensitivity that scales . Cycle counts, deadlines and are assumed values (Supplementary Table S1).
| Type | Share | (cycles) | |||
|---|---|---|---|---|---|
| ECG analysis | 0.30 | 5 MB | 150 M | 500 ms | 0.90 |
| SpO2 monitoring | 0.40 | 5 KB | 5 M | 2000 ms | 0.60 |
| BP analysis | 0.20 | 50 KB | 30 M | 1000 ms | 0.80 |
| Multi-vital | 0.10 | 1 MB | 120 M | 800 ms | 0.85 |
Table 3.
Node, radio and power parameters. DS = ESP32-S3 datasheet v2.2 [35] (table number); all wearable powers at 3.3 V. Classes and sources for every parameter are in Supplementary Table S1.
Table 3.
Node, radio and power parameters. DS = ESP32-S3 datasheet v2.2 [35] (table number); all wearable powers at 3.3 V. Classes and sources for every parameter are in Supplementary Table S1.
| Node | Parameter | Value |
|---|---|---|
| Wearable (ESP32-S3) | CPU frequency | 240 MHz |
| Radiated power (DS 6-2) | 18.5 dBm | |
| TX draw , 283 mA (DS 5-7) | 0.934 W | |
| RX draw , 88 mA (DS 5-7) | 0.290 W | |
| Wait draw , 47.6 mA (DS 5-9) | 0.157 W | |
| Compute draw , 65.9 mA (DS 5-9) | 0.217 W | |
| Channel bandwidth B | 20 MHz | |
| Edge gateway | CPU frequency (Raspberry Pi 4 at launch [36]) | 1.5 GHz |
| Fog server () | CPU frequency | 2.2 GHz |
| Cloud | CPU frequency | 3.2 GHz |
| Serving side | Downlink power [34] | 20 dBm |
Table 4.
Datasets.
| Dataset | Size | Content | Use |
|---|---|---|---|
| Kaggle IoMT vital signs [37] | 50,000 records | HR, SpO2, BP, temperature, threshold alerts | Training the CI module offline (Section 5.9) |
| MIT-BIH Arrhythmia [41] | 48 records, 8,640 ten-second windows | Annotated two-lead ECG | Acuity sequence of the trace-driven simulation (Section 5.8) |
Table 5.
Schedulers at : means over 30 replicates. ss is the steady-state (each device’s first 50 decisions excluded). AUC is the acuity-inference AUC (mean of 10 test replicates). ES-only equals SMA-HHO and DQN-ES with ; DQN-only equals DQN-ES with . Confidence intervals are in Supplementary Table S2.
Table 5.
Schedulers at : means over 30 replicates. ss is the steady-state (each device’s first 50 decisions excluded). AUC is the acuity-inference AUC (mean of 10 test replicates). ES-only equals SMA-HHO and DQN-ES with ; DQN-only equals DQN-ES with . Confidence intervals are in Supplementary Table S2.
| Scheduler | Latency (ms) | Energy (mJ) | ss | SLA viol. (%) | AUC | |
|---|---|---|---|---|---|---|
| DQN-ES () | 89.3 | 52.2 | 0.333 | 0.386 | 1.11 | 0.569 |
| ES-only | 74.2 | 36.8 | 0.372 | 0.407 | 0.48 | 0.612 |
| PSO | 74.4 | 37.0 | 0.371 | 0.406 | 0.48 | 0.613 |
| ACO | 114.9 | 72.5 | 0.688 | 0.747 | 0.01 | 0.495 |
| DQN-only | 501.6 | 301.0 | 0.355 | 0.508 | 7.16 | 0.496 |
| Random-K () | 131.8 | 95.0 | 0.244 | 0.245 | 3.46 | 0.534 |
| q-mixed () | 88.6 | 51.4 | 0.329 | 0.351 | 1.18 | 0.588 |
| q-mixed () | 103.3 | 66.2 | 0.290 | 0.307 | 1.98 | 0.572 |
| ES-only () | 83.9 | 46.0 | 0.318 | 0.371 | 1.17 | 0.641 |
| ES-only () | 94.2 | 55.7 | 0.282 | 0.340 | 1.88 | 0.662 |
| Static-Tier | 142.8 | 45.4 | 0.169 | 0.168 | 0.08 | 0.483 |
| Local-Only | 299.6 | 59.2 | 0.000 | 0.000 | 30.71 | 0.501 |
| Cloud-Only | 128.2 | 82.0 | 0.756 | 0.755 | 0.00 | 0.497 |
Table 6.
Paired comparisons of DQN-ES at . d = DQN-ES minus comparator, Hodges-Lehmann median with 95 % bootstrap CI; p = exact signed-rank, Holm-adjusted within the family; r = rank-biserial. Excess at matched latency: positive means DQN-ES lies above the family’s curve; “used” counts replicates inside the curve’s latency range. Full tables in Supplementary Tables S3 to S5.
Table 6.
Paired comparisons of DQN-ES at . d = DQN-ES minus comparator, Hodges-Lehmann median with 95 % bootstrap CI; p = exact signed-rank, Holm-adjusted within the family; r = rank-biserial. Excess at matched latency: positive means DQN-ES lies above the family’s curve; “used” counts replicates inside the curve’s latency range. Full tables in Supplementary Tables S3 to S5.
| Comparator | Metric | d [95 % CI] | r | |
|---|---|---|---|---|
| ES-only | Latency (ms) | 13.73 [9.91, 18.16] | 1.00 | |
| Energy (mJ) | 14.59 [10.67, 18.41] | 1.00 | ||
| [, ] | ||||
| SLA viol. (pp) | 0.65 [0.50, 0.80] | 0.95 | ||
| Random-K | Latency (ms) | [, ] | ||
| Energy (mJ) | [, ] | |||
| 0.088 [0.082, 0.095] | 1.00 | |||
| SLA viol. (pp) | [, ] | |||
| Static-Tier | Latency (ms) | [, ] | ||
| Energy (mJ) | 5.66 [2.10, 10.12] | 0.002 | 0.63 | |
| 0.162 [0.152, 0.173] | 1.00 | |||
| SLA viol. (pp) | 0.95 [0.80, 1.15] | 1.00 | ||
| ES-only | AUC | [, ] | 0.0059 | |
| Random-K | AUC | 0.036 [0.014, 0.054] | 0.0059 | 1.00 |
| Static-Tier | AUC | 0.086 [0.074, 0.101] | 0.0059 | 1.00 |
| Excess at matched latency | median [95 % CI] | used / excluded | ||
| q-mixed | 0.008 [, 0.013] | 30 / 0 | ||
| ss | 0.038 [0.026, 0.048] | 30 / 0 | ||
| ES-only() | 0.029 [0.008, 0.049] | 27 / 3 | ||
| ss | 0.038 [, 0.044] | 27 / 3 | ||
Table 7.
Fog-server count M at (): means over 30 replicates, and median decision time on an Intel Core Ultra 7 266V, serial. is normalised by .
Table 7.
Fog-server count M at (): means over 30 replicates, and median decision time on an Intel Core Ultra 7 266V, serial. is normalised by .
| DQN-ES | ES-only | Random-K | Decision time (ms) | ||||||
|---|---|---|---|---|---|---|---|---|---|
| M | Lat. (ms) | SLA (%) | Lat. (ms) | Lat. (ms) | DQN-ES | ES-only | |||
| 3 | 89.3 | 1.11 | 0.333 | 74.2 | 0.372 | 131.8 | 0.244 | 0.231 | 0.055 |
| 8 | 156.8 | 4.71 | 0.347 | 77.4 | 0.441 | 336.8 | 0.168 | 0.252 | 0.102 |
| 16 | 252.0 | 8.37 | 0.369 | 79.5 | 0.483 | 476.0 | 0.165 | 0.311 | 0.185 |
| 32 | 431.0 | 14.57 | 0.372 | 79.7 | 0.517 | 541.9 | 0.183 | 0.421 | 0.321 |
Table 8.
Robustness at . DQN-ES latency is the mean over 30 replicates; d = DQN-ES minus ES-only (Hodges-Lehmann, 95 % bootstrap CI, exploratory). The excess at matched latency over the q-mixed curve for every condition is in Supplementary Table S5.
Table 8.
Robustness at . DQN-ES latency is the mean over 30 replicates; d = DQN-ES minus ES-only (Hodges-Lehmann, 95 % bootstrap CI, exploratory). The excess at matched latency over the q-mixed curve for every condition is in Supplementary Table S5.
| Condition | DQN-ES (ms) | d latency (ms) | d |
|---|---|---|---|
| Base | 89.3 | 13.7 [9.9, 18.2] | [, ] |
| Load 0.3 | 93.9 | 16.4 [11.0, 22.2] | [, ] |
| Load 0.6 | 103.4 | 20.2 [13.2, 25.9] | [, ] |
| Load 0.85 | 116.8 | 23.8 [17.5, 31.6] | [, ] |
| MMPP-2 | 93.2 | 16.0 [11.3, 21.0] | [, ] |
| MMPP-2, load 0.85 | 127.7 | 25.7 [18.3, 34.7] | [, ] |
| Rayleigh fading | 233.7 | 59.4 [36.8, 111.9] | [, ] |
| Rayleigh, ARQ 5 % loss | 244.4 | 65.4 [40.3, 120.0] | [, ] |
| noise | 89.0 | 13.5 [9.8, 18.5] | [, ] |
| Tier misclass. 20 % | 90.4 | 14.4 [8.9, 21.2] | [, ] |
| ECG payload 10 KB | 31.0 | 0.9 [0.4, 1.4] | [, ] |
| Warm start, 2000 tasks | 75.8 | 1.0 [, 2.5] | 0.024 [0.014, 0.034] |
Table 9.
Trace-driven MIT-BIH simulation (8,640 ECG tasks, 30 replicates; AUC over 10 test replicates). ES-only equals SMA-HHO. The last three rows saturate their queues (latency capped at 999 s per task).
Table 9.
Trace-driven MIT-BIH simulation (8,640 ECG tasks, 30 replicates; AUC over 10 test replicates). ES-only equals SMA-HHO. The last three rows saturate their queues (latency capped at 999 s per task).
| Scheduler | Lat. (ms) | Energy (mJ) | SLA (%) | AUC | |
|---|---|---|---|---|---|
| DQN-ES | 366.6 | 208.7 | 0.509 | 10.8 | 0.541 |
| ES-only | 516.1 | 212.3 | 0.485 | 43.9 | 0.836 |
| PSO | 515.6 | 212.2 | 0.485 | 43.9 | 0.832 |
| DQN-only | 570.4 | 431.0 | 0.462 | 11.2 | 0.588 |
| Random-K | 546.7 | 320.1 | 0.368 | 34.4 | 0.613 |
| q-mixed () | 532.6 | 263.7 | 0.415 | 41.1 | 0.736 |
| ES-only () | 464.2 | 231.6 | 0.421 | 32.4 | 0.828 |
| Cloud-Only | 626.8 | 289.1 | 0.900 | 53.1 | 0.513 |
| Static-Tier | 215,930 | 33,980 | 0.900 | 99.9 | 0.550 |
| ACO | 213,133 | 33,541 | 0.895 | 99.4 | 0.543 |
| Local-Only | 54,355 | 135.9 | 0.000 | 100.0 | 0.529 |
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. |
© 2026 by the authors. 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.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.