# US 2025/0086005 A1 · Digital twin-based edge-end collaborative scheduling method for heterogeneous tasks and resources

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0086005 A1
- Document ID: US20250086005A1
- Status: Published application
- Kind: A1
- Application number: 18/294,391
- Filed: 2023-07-05
- Published: 2025-03-13
- Earliest claimed: 2023-01-31
- Assignees: Shenyang Institute of Automation, Chinese Academy of Sciences
- Applicants: Shenyang Institute of Automation , Chinese Academy of Sciences
- Inventors: Chi XU; Haibin YU; Xi JIN; Changqing XIA; Dong LI; Peng ZENG
- Web page: https://patentgrep.com/patent/US20250086005A1

## CPC

- G06F 9/4881: {Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues}
- G06F 9/50: Allocation of resources, e.g. of the central processing unit [CPU]
- G06F 9/5083: {Techniques for rebalancing the load in a distributed system}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A digital twin-based edge-end collaborative scheduling method for heterogeneous tasks and resources includes the following steps: establishing an edge wireless network based on digital twin; constructing an edge-end collaborative scheduling problem prototype of the heterogeneous tasks and resources; performing problem conversion based on a multi-agent Markov decision process; constructing an Actor-Critic neural network model based on multi-agent deep reinforcement learning; performing offline centralized training of the neural network model by digital twin; performing online distributed execution of task offloading and computation and communication resource allocation by end devices to collaboratively process the heterogeneous tasks. The method optimizes the heterogeneous computation resource types, the task offloading ratio, the transmit power of the end devices and the computation resource allocation ratio of edge servers through digital twin, supports the on-demand offloading of heterogeneous tasks, realizes edge-end collaborative computing, and minimizes the total task processing delay.

## Claims

### Claim 1

A digital twin-based edge-end collaborative scheduling method for heterogeneous tasks and resources, characterized by achieving collaborative scheduling of heterogeneous tasks and heterogeneous computation and communication resources based on multi-agent deep reinforcement learning, and comprising the following steps:
1) establishing an edge wireless network based on digital twin;
2) constructing an edge-end collaborative scheduling problem of heterogeneous tasks and resources according to the deadline requirements of the heterogeneous tasks and the constraints of the heterogeneous computation and communication resources;
3) converting the scheduling problem into a multi-agent Markov decision process problem;
4) constructing an Actor-Critic neural network model based on the multi-agent deep reinforcement learning to solve the multi-agent Markov decision process problem;
5) performing offline centralized training of the Actor-Critic neural network model by digital twin to obtain an experience pool and neural network parameters;
6) perceiving an environment state online by end devices, and performing distributed execution of task offloading and computation and communication resource according to the Actor-Critic neural network model under centralized training to collaboratively process the heterogeneous tasks and minimize the total task processing delay.

### Claim 2 (depends on 1)

The edge-end collaborative scheduling method for heterogeneous tasks and resources based on digital twin according to claim 1, characterized in that the edge wireless network based on digital twin comprises: N base stations configured with edge server and M end devices;
The base stations are configured with the edge servers and used for providing computation resources for a plurality of end devices and supporting scheduling of the end devices within a coverage range;
The end devices are used for computing the heterogeneous tasks locally, and supporting offloading of the heterogeneous tasks to the edge server through a wireless channel for edge computing;
The digital twin is placed on a cloud server of the network, represented as a virtualization model established by the base stations and the end devices comprised in the network, and used for evaluating the operating states of the base stations, the edge server and the end devices, the types of the computation resources, and the amount of the computation and communication resources, and supporting the training of a deep reinforcement learning method to carry out the edge-end collaborative scheduling of the network.

### Claim 3 (depends on 2)

The edge-end collaborative scheduling method for heterogeneous tasks and resources based on digital twin according to claim 2, characterized in that for a single end device, the tasks can be non-offloaded, partially offloaded, or completely offloaded to one or more edge servers for computing;
The transmission rate of the end device during task offloading is
R
m
,
n
=
W
m
,
n
⁢
log
2
⁢
(
1
+
p
m
⁢
g
m
,
n
∑
m
′
=
1
,
m
′
≠
m
M
p
m
′
⁢
g
m
′
,
n
+
σ
n
2
)
wherein Wm,n represents the bandwidth between the end device m and the edge server n, σn2 represents the noise at the edge server n, gm,n and gm′,n represent channel power gains from the end device m and the end device m′ to the edge server n respectively; and pm and Pm′ represent the transmit power of the end device m and the end device m′ respectively.

### Claim 4 (depends on 1)

The edge-end collaborative scheduling method for heterogeneous tasks and resources based on digital twin according to claim 1, characterized in that the edge-end collaborative scheduling problem of the heterogeneous tasks and resources is
min
U
,
V
,
P
,
F
∑
m
=
1
M
T
m
,
s
.
t
.
C
⁢
1
:
∑
n
=
0
N
v
m
,
n
=
1
,
C
⁢
2
:
0
≤
p
m
≤
P
max
,
m
=
1
,
…
⁢
M
,
C
⁢
3
:
p
m
≤
I
p
-
∑
m
′
=
1
,
m
′
≠
m
M
p
m
′
⁢
g
m
′
,
m
*
g
m
,
m
*
,
C
⁢
4
:
u
m
,
n
=
{
1
,
if
⁢
o
n
⊗
o
m
=
0
,
0
,
if
⁢
o
n
⊗
o
m
=
1
,
C
⁢
5
:
0
≤
f
m
,
n
+
Δ
⁢
f
m
,
n
≤
F
max
,
n
,
C
⁢
6
:
∑
m
=
1
M
u
m
,
n
(
f
m
,
n
+
Δ
⁢
f
m
,
n
)
≤
F
max
,
n
,
C
⁢
7
:
T
m
≤
T
max
,
m
wherein
min
U
,
V
,
P
,
F
∑
m
=
1
M
T
m
is the target of the problem, which represents minimization of the total task processing delay; Tm represents the task processing delay of the end device m; U, V, P and F are the sets of variables to be optimized in the problem, and represent the matching decision of the computation resource types, task offloading ratio, the transmit power of the end device and the computation resource allocation of the edge server respectively;
C1 is the constraint of the task offloading ratio; wherein vm,n ∈[0,1] is the task offloading ratio of the end device m to the edge server n; vm,n=0 represents that the end device m does not offload tasks to the edge server n; vm,n=1 represents that the end device m offloads tasks to the edge server n; vm,0=0 represents that the end device m does not perform local computing; and vm,0=1 represents that the end device m performs local computing;
C2 and C3 are the constraints of the transmit power of the end devices; wherein Pmax represents the maximum transmit power of the end device; Ip represents the peak interference power that the end device can tolerate; and gm,m* and gm′,m* represent the channel gains from the end device m and the end device m′ to the end device m* respectively; wherein m*=arg max gm,m′ is the end device that generates the biggest interference with the end device m;
C4 is the matching decision constraint of the heterogeneous computation resource type; wherein om and on represent the computation resource types of the end device m and the edge server n respectively; ⊗ represents XOR operation; um,n=1 represents that the computation resource types of the end device m and the edge server n are the same; um,n=0 represents that the computation resource types of the end device m and the edge server n are different;
C5 and C6 are computation resource constraints; wherein fm,n represents an edge computation resource estimated by the digital twin; Δfm,n represents the computation resource estimation deviation of the digital twin; Fmax,n represents the maximum computation rate of the edge server n;
C7 is a task deadline constraint; wherein Tmax,n represents the deadline of the task executed by the end device m, that is, the longest task processing delay that can be accepted by the end device m.

### Claim 5 (depends on 4)

The edge-end collaborative scheduling method for heterogeneous tasks and resources based on digital twin according to claim 4, characterized in that the task processing delay of the end device is determined by the edge computing delay TmEdge and the local computing delay TmLocal, and a computation method is as follows:
T
m
=
max
⁢
(
T
m
Edge
,
T
m
Local
)
The edge computing delay TmEdge is computed as
T
m
Edge
=
max
n
=
1
,
…
,
N
{
u
m
,
n
⁢
T
m
,
n
Edge
}
wherein Tm,nEdge represents the edge computing delay of the edge server n for the end device m, which is determined by the communication delay Tm,nComm of task offloading and the computing delay Tm,nComp of task processing, and computed as
T
m
,
n
Edge
=
T
m
,
n
Comm
+
T
m
,
n
Comp
The communication delay Tm,nComm of task offloading is determined by the task offloading amount and the offloading rate of the end device, and computed as
T
m
,
n
Comm
=
v
m
,
n
⁢
D
m
R
m
,
n
wherein Dm represents the task size of the end device m;
The computing delay Tm,nComp of the task processing is determined by the task offloading amount of the end device m and the computation resources n allocated by the edge server m for the end device fm,n, and calculated as
T
m
,
n
Comp
=
T
~
m
,
n
Comp
+
Δ
⁢
T
m
,
n
Comp
{tilde over (T)}m,nComp is the edge computing delay estimated by the digital twin, and calculated as
T
~
m
,
n
Comp
=
v
m
,
n
⁢
D
m
⁢
C
m
f
m
,
n
wherein Cm represents a computation period required to compute a 1-byte task;
ΔTm,nComp is the deviation between the computed delay and the estimated delay, and calculated as
Δ
⁢
T
m
,
n
Comp
=
-
v
m
,
n
⁢
D
m
⁢
C
m
⁢
Δ
⁢
f
m
,
n
f
m
,
n
(
f
m
,
n
+
Δ
⁢
f
m
,
n
)
The local computing delay TmLocal is calculated as
T
m
Local
=
T
~
m
Comp
+
Δ
⁢
T
m
Comp
{tilde over (T)}mComp is the local computing delay estimated by the digital twin, and calculated as
T
~
m
Comp
=
v
m
,
0
⁢
D
m
⁢
C
m
f
m
wherein fm=Fmax,m−Δfm represents the local computation resource;
ΔTmComp is the local computing delay deviation, and calculated as
Δ
⁢
T
m
Comp
=
-
v
m
,
0
⁢
D
m
⁢
C
m
⁢
Δ
⁢
f
m
f
m
⁢
F
max
,
m
.

### Claim 6 (depends on 1)

The edge-end collaborative scheduling method for heterogeneous tasks and resources based on digital twin according to claim 1, characterized in that converting the optimization scheduling problem into a multi-agent Markov decision process problem comprises the following steps:
a) establishing a multi-agent Markov decision model, comprising an agent set, a state space, an action space, a state transfer probability and a reward function;
The agent set is an agent set M={1, . . . ,M}formed by M end devices;
The state space is a state of the agent m at time t, expressed as
s
m
(
t
)
=
{
D
m
(
t
)
,
C
m
(
t
)
,
T
max
,
m
(
t
)
,
Δ
⁢
f
m
(
t
)
,
Δ
m
Edge
(
t
)
,
W
m
(
t
)
,
G
m
(
t
)
}
wherein Dm(t) represents the task size of the end device m; Cm(t) represents the number of computing cycles required by the end device m; Tmax,m(t) represents the task deadline of the end device m; Δfm(t) represents the estimation deviation of the local computation resources of the end device m; ΔmEdge(t)={Δfm,1(t), . . . , Δfm,n(t)} represents the computation resource estimation deviation for N edge servers of the end device m; Wm(t)={Wm,1(t), . . . , Wm,N(t)} and Gm(t)={gm,1(t), . . . , gm,N(t)} represent the bandwidth and the channel gain between the end device m and N edge servers respectively; the total state space of all agents in time t is s(t)={s1(t), . . . SM(t)};
The action space is an action performed by the agent m at time t, expressed as
a
m
(
t
)
=
{
u
m
(
t
)
,
v
m
(
t
)
,
p
m
(
t
)
,
f
m
(
t
)
}
wherein um(t)={um,1(t), . . . um,N(t)}represents the matching decision of the computation resource types to judge whether the computation resource types of the edge servers are consistent with that of the end device m; vm(t)={vm,0(t), vm,1(t), . . . , vm,N(t)} represents the ratio of task offloading processed between the end device m and N edge servers; pm(t) represents the transmit power of the end device m for task offloading; fm (t)={fm,1(t), . . . , fm,N(t)} represents the computation resources allocated by N edge servers for the end devices m; the total action space of all agents at time t is a(t)={a1(t), . . . aM (t)};
The state transfer probability is the probability transferred by sm(t) to sm(t+1) when the agent m executes an action am(t), that is, zm(sm(t+1);sm(t),am(t));
The reward function is the reward or punishment for the agent to take the action in a certain set state, expressed as rm(t); wherein the individual reward obtained by the agent m is rm(t)=rmLatency(t)+ρmrmDDL(t), and ρm represents a weight parameter set according to the deadline requirement of the heterogeneous tasks; the delay reward is rmLatency(t)=−Tm(t) and the deadline reward is rmDDL(t)=Tmax,m(t)−Tm(t);
b) determining a long-term cumulative reward function as
R
m
(
t
)
=
∑
t
0
=
0
t
γ
m
t
0
⁢
r
m
(
t
0
)
wherein t represents the current time, t0 represents the previous time, and γm ∈[0,1]represents a discount coefficient for indicating the influence of past rewards on the current rewards of the agent m;
c) converting the problem into
max Rm(t)
s.t. C1, C2, C3, C4, C5, C6
In the case that the constraints C1-C6 are satisfied, the long-term cumulative reward is maximized to obtain the best state transfer probability, and then obtain the strategy of minimizing the total task processing delay.

### Claim 7 (depends on 1)

The edge-end collaborative scheduling method for heterogeneous tasks and resources based on digital twin according to claim 1, characterized in that constructing an Actor-Critic neural network model based on the multi-agent deep reinforcement learning comprises an Actor network and a Critic network;
the Actor network adopts strategy-based deep neural networks, comprising an estimation Actor network for training and a target Actor network for executing the action to generate agent actions;
the Critic network adopts value-based deep neural networks, comprising an estimation Critic network and a target Critic network to evaluate the actions of the Actor and guide the Actor to produce better actions.

### Claim 8 (depends on 1)

The edge-end collaborative scheduling method for heterogeneous tasks and resources based on digital twin according to claim 1, characterized in that performing offline centralized training of the neural network model by digital twin comprises the following steps:
a) inputting sm(t) to the estimation Actor network to obtain am(t)=πm(sm(t);θπm), wherein πm represents the strategy to take action am(t), and θπm represents a parameter of the estimation Actor network;
b) in state sm(t), executing the action am(t), and computing the reward rm(t) to obtain sm(t+1);
c) (sm (t),am(t),rm(t),sm (t+1)) as an experience is stored in the experience pool for playback as the experience;
d) extracting the experience randomly from the experience pool, inputting S and A to the estimation Critic network, and computing the Q value Qm(S, A;θQm) of the agent m; inputting S′ and A′ to the target Critic network, and computing the Q value Qm′(S′,A′;θ′Qm) of the agent m at the next time, wherein S and S′ represent the state of all the agents and the state of the next time respectively; A and A′ represent the action of all the agents and the action of the next time respectively; and θQm and θ′Qm represent the parameters of the estimation Critic network and the target Critic network respectively;
e) computing a temporal difference error δ and a loss function L(θQm);
f) computing
∇
θ
Q
m
L
⁢
(
θ
Q
m
)
=
E
[
2
⁢
δ
⁢
∇
θ
Q
m
Q
m
⁢
(
S
,
A
;
θ
Q
m
)
]
,
and updating the parameter θQm, wherein represents the random gradient descent computation of the loss function L(θQm) under the parameter θQm, and E[ ] represents an expected calculation value;
g) inputting sm(t) to the estimation Actor network to obtain am(t)=πm (sm(t)θπm); and inputting sm(t+1) to the target Actor network to obtain am(t+1)=πm′(sm(t+1);θπm′, wherein ζm′ represents the strategy to take the action am(t+1), and θπm′ represents the parameter of the target Actor network;
h) computing
∇
θ
π
m
L
⁢
(
θ
π
m
)
≈
E
[
∇
θ
π
m
log
⁢
π
m
⁢
(
s
m
⁢
(
t
)
;
θ
π
m
)
⁢
Q
m
⁢
(
S
,
A
;
θ
Q
m
)
]
,
and updating the parameter θπm, wherein represents the random gradient descent computation of the loss function L(θπm) under the parameter θπm;
i) updating θπm′ and θQm′ according to θQm′=ηθQm+(1−η)θQm′ and θπm′=ηθπm+(1-η)θπm′, wherein η∈[0,1] represents the update rate of the parameter;
j) repeating and iterating steps a)-i) to preset training times to obtain the trained experience pool and the neural network model parameters θQm and θπm, as the offline centralized training results of the digital twin.

### Claim 9 (depends on 1)

The edge-end collaborative scheduling method for heterogeneous tasks and resources based on digital twin according to claim 1, characterized in that perceiving an environment state online by end devices, and performing distributed execution of task offloading and computation and communication resource allocation according to the Actor-Critic neural network model under centralized training comprises the following steps:
a) downloading the offline centralized training results of the digital twin by all the agents;
b) perceiving an environment by all the agents to obtain respective states, computing respective rewards according to the trained neural network parameters, and executing actions online in a distributed mode, wherein after the state Sm(t) of the agent m is inputted to the target Actor network, the action am(t) is outputted according to the reward rm(t), that is, the matching decision result of the computation types, the task offloading ratio, the device transmission power and the computation resource allocation result of the end device m and N edge servers;
c) performing task offloading and collaborative computing by all end devices according to the output actions of respective neural networks, that is, the scheduling results of the heterogeneous tasks and resources.
