Satellite edge computing task offloading and resource allocation method based on deep reinforcement learning

Optimizing computing offloading and resource allocation in satellite edge computing through deep reinforcement learning methods solves the problem that traditional methods are difficult to meet real-time needs and resource allocation in dynamic environments, achieving the lowest system energy consumption and improving user service quality.

CN118250750BActive Publication Date: 2024-09-24NANJING UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410655864.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-24
Publication Date
2024-09-24
Estimated Expiration
2044-05-24

AI Technical Summary

Technical Problem

In satellite edge computing, traditional numerical optimization methods are difficult to effectively solve the problems of computing task offloading and resource allocation, leading to resource shortages, service timeouts and load imbalances, especially in dynamic environments, which are difficult to meet the real-time needs of users.

Method used

Using a method based on deep reinforcement learning, through the deep deterministic policy gradient algorithm, it is modeled as a Markov decision process, optimizing the calculation offloading and resource allocation strategy, and combining the user and satellite correlation model, task model and delay energy consumption model. Achieve computing offloading and resource allocation with the lowest total system energy consumption.

Benefits of technology

It realizes finding the optimal computing offloading and resource allocation strategy in a dynamic environment to meet users' deterministic service needs, reduce the total energy consumption of the system, and improve the efficiency and stability of the network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118250750B
    Figure CN118250750B
Patent Text Reader

Abstract

The present invention discloses a satellite edge computing task offloading and resource allocation method based on deep reinforcement learning, including: by analyzing the task information in the satellite edge computing network, adopting the partial computing offloading strategy under the terminal-satellite-cloud three-layer computing architecture, establishing a satellite network node communication model and a dynamic queue backlog update model; defining the total energy consumption of the system as the objective function, describing the computing offloading joint resource allocation problem as a mixed integer nonlinear programming problem, modeling the problem as a Markov decision process, solving the computing offloading and resource allocation strategy with the lowest energy consumption under the task deterministic delay requirements and resource constraints through deep reinforcement learning, and using an algorithm based on deep deterministic policy gradient to solve the problem of dynamic network changes. The present invention effectively reduces the total energy consumption of the system under the premise of meeting the task deterministic requirements, and realizes the joint optimization of the task offloading position, offloading ratio and resource allocation strategy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of wireless communications, and in particular to a satellite edge computing task offloading and resource allocation method based on deep reinforcement learning. Background Art

[0002] The increasing number of mobile devices has generated many delay-sensitive and computation-intensive applications. Low Earth Orbit (LEO) satellite networks provide users with a variety of computing service support while providing seamless coverage and uninterrupted network services. In traditional non-terrestrial networks, users are in remote areas such as deserts and deep seas, lack the support of store network facilities, and have limited computing and storage resources. At this time, users can forward computing tasks through satellite relays and offload them to cloud servers for processing, but this will increase transmission delays and make it difficult to meet users' real-time needs. Inspired by ground-based multi-access edge technology, computing resources and storage capabilities are sunk to low-orbit satellites, and mobile edge computing (MEC) servers are deployed at LEO satellite nodes to form LEO satellite edge computing scenarios. Users can directly hand over tasks to LEO satellites for processing, reducing satellite-to-ground link transmission and end-to-end transmission delays between LEO satellites and ground users, improving user service quality, and reducing user-perceived delays and user device energy consumption.

[0003] In satellite edge computing, there is a three-layer computing architecture consisting of users, satellites, and cloud service centers. The onboard resources are limited and dynamically changing. The lack of reasonable task offloading and resource allocation decisions will lead to resource shortages, service timeouts, and satellite load imbalance. How to formulate the optimal strategy in the layered computing offloading architecture and reasonably allocate available computing resources is the main problem in satellite edge computing. Experts and scholars have studied the computing offloading and resource allocation problems of satellite edge computing, using a binary offloading strategy, that is, tasks are either executed locally or completely offloaded to edge servers for execution. Compared with the binary offloading strategy, partial offloading is more suitable for applications with stricter latency requirements because it takes advantage of the parallelism between servers. In addition, onboard resources are limited, and partial offloading is more reasonable than complete offloading.

[0004] As the number of users and MEC servers increases, the complexity of the problem increases. Due to the strong coupling between combined offloading decisions and task execution, traditional numerical optimization methods are inefficient in solving such problems. The use of deep reinforcement learning methods can adapt to dynamic environments and solve large-scale complex problems. Summary of the invention

[0005] The purpose of the present invention is to propose a satellite edge computing task offloading and resource allocation method based on deep reinforcement learning, which is used to meet the deterministic service needs of ground users and reduce the total energy consumption of the system.

[0006] The technical solution to achieve the purpose of the present invention is as follows: In the first aspect, the present invention provides a satellite edge computing task offloading and resource allocation method based on deep reinforcement learning, comprising:

[0007] In the three-layer computing architecture consisting of terminal-satellite-cloud service center, the tasks generated by users are divided into three parts in proportion, and some tasks are offloaded to satellites and cloud service centers for execution. Through this partial computing offloading strategy, tasks can be executed in parallel on three planes. In this architecture, ground users with limited resources are associated with LEO satellites to realize the offloading of computing tasks from the ground to satellites, and some tasks are offloaded to the cloud service center through LEO satellite relay, providing heterogeneous computing resources for ground users.

[0008] Establish the association model and task model between users and satellites; establish the satellite network node communication model and dynamic queue backlog update model; adopt the orthogonal frequency division multiple access communication model between users and satellites, multiple ground users share the same spectrum resources, and build the delay and energy consumption model of the three-layer computing architecture respectively; establish the resource constraint and delay constraint model;

[0009] Taking the total energy consumption of the system as the objective function, under constraints, a mixed integer nonlinear programming problem is obtained. The problem is modeled as a Markov decision process. The computational offloading and resource allocation strategy with the lowest energy consumption is obtained through the partial computational offloading algorithm based on deep deterministic policy gradient, and the joint optimization of the offloading location, offloading ratio and resource allocation strategy is achieved.

[0010] Furthermore, the SMEC system operates in time slot mode, dividing the entire unloading period into N time slots of equal length, and the length of each time slot is At the beginning of each time slot, each user generates a computing task and associates with the satellite. represents the set of user-LEO satellite connection decisions, when When With satellite Establish a connection, otherwise , task generation is an independent and identically distributed Poisson process, where each user The generated The computational tasks generated by the time slots are modeled as a triple , , The total amount of data input for the task, The CPU cycles required to complete the computational task. The maximum completion deadline for the task.

[0011] Furthermore, the system delay includes transmission delay, execution delay and propagation delay, and the energy consumption includes transmission energy consumption and execution energy consumption. The transmission rate between the user and the satellite is obtained according to Shannon's theorem. At the same time, because the data size transmitted in the downlink is much smaller than that in the uplink, only the delay and energy consumption of the uplink are considered to construct the system delay and energy consumption model.

[0012] Furthermore, since the unloading decision at time slot t will be affected by time slot t-1, the proposed optimization problem is modeled as a Markov decision process. In a certain time slot t, the environment is in state , the agent is performing an action , and the environment can transition to any achievable subsequent state according to the transition probability ; Then, the agent receives the reward .

[0013] Furthermore, the partial computational offloading algorithm based on deep deterministic policy gradient performs state initialization at the beginning, normalizes the state, reduces errors caused by different dimensions, and adds behavioral noise to construct the action space, so that the DDPG strategy can be better explored; an experience replay mechanism is used to improve the stability of training; the reward is negatively correlated with energy consumption, so that the agent learns in the direction of reducing energy consumption, and a soft update method is used to update the network parameters of the target network to obtain the computational offloading and resource allocation strategy with the lowest energy consumption.

[0014] In a second aspect, the present invention provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method described in the first aspect when executing the program.

[0015] In a third aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described in the first aspect.

[0016] In a fourth aspect, the present invention provides a computer program product, comprising a computer program, which implements the steps of the method described in the first aspect when executed by a processor.

[0017] Compared with the prior art, the present invention has the following beneficial effects:

[0018] (1) Because it uses an algorithm based on deep deterministic policy gradient, it can dynamically adjust according to system performance, find the optimal computing offloading and resource allocation strategy, and solve the problem of dynamic network changes;

[0019] (2) The tasks of ground users are divided into three parts and executed in parallel on three planes, so as to meet the deterministic service needs of users and reduce the total energy consumption of the system;

[0020] (3) Because state initialization is used to unify the state dimension, the error caused by different dimensions is reduced. At the same time, behavioral noise is added to construct the action space, so that the algorithm's strategy can be better explored. The experience replay mechanism is used to improve the stability of training, so ideal training results can be obtained. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 It is a satellite edge computing offloading solution based on deep deterministic policy gradient.

[0022] Figure 2 This is a comparison chart of multiple algorithm reward curves.

[0023] Figure 3 This is a comparison chart of latency and energy consumption of multiple algorithms.

[0024] Figure 4 This is a comparison chart of the average energy consumption of multiple algorithms under different user computing capabilities. DETAILED DESCRIPTION

[0025] A satellite edge computing task offloading and resource allocation method based on deep reinforcement learning includes a communication system module consisting of a three-layer computing architecture of terminal-satellite-cloud service center, a task, delay, energy consumption, and queue update building module, and a computing offloading and resource allocation algorithm solving module based on deep deterministic policy gradient.

[0026] The communication system module composed of the three-layer computing architecture of terminal-satellite-cloud service center is used to simulate the real satellite edge computing network communication scenario, and then perform autonomous learning through reinforcement learning; the task, delay, and energy consumption construction module is used to construct the relationship between bandwidth, computing, storage and other resources and delay, energy consumption of different computing planes, and the quality of computing offloading and resource allocation schemes can be objectively evaluated through cumulative rewards; the computing offloading algorithm solving module based on deep deterministic policy gradient solves the computing offloading and resource allocation strategy through the DDPG algorithm, defines the total energy consumption of the system as the objective function, and establishes a problem constraint model. The final solved strategy can meet the task determinism requirements, reduce the packet loss rate, and reduce the total energy consumption of the system.

[0027] Furthermore, the position of the LEO satellite where the MEC server is deployed changes dynamically over time. Assuming that each ground user can only access one LEO satellite for data transmission, only when the ground user and the satellite meet a certain position relationship, that is, within a specific communication window, can they communicate with each other to realize computing offloading, and return the computing results after completing the computing task. In the LEO satellite edge computing network proposed in the present invention, multiple ground users, multiple LEO satellites and a cloud service center are included. An MEC server is deployed on each satellite to process the computing tasks offloaded by the user. The collection of users and MEC servers are represented as and The model is based on a quasi-static scenario, i.e. the network topology of satellites and associated users remain fixed during the computational service.

[0028] Furthermore, in order to utilize the computing resources on the satellite and cloud server, at the beginning of each communication cycle, each user will select a satellite to associate with. Assuming that each user is associated with only one satellite, each user's offloaded task is first transmitted to its associated LEO, and part of the task is further transmitted to the cloud service center through its associated LEO satellite. represents the set of user-LEO satellite connection decision sets, that is, the association model between satellite and user. When the user and satellite Association, the resulting computing tasks are offloaded to the satellite Edge processing, otherwise .

[0029] A. Task Model

[0030] The entire SMEC system operates in time slot mode, dividing the system time into time slots of equal length, each time slot is At the beginning of each time slot, each user will generate a computing task. Task generation is an independent and identically distributed Poisson process. The generated The computational tasks generated by the time slots are modeled as a triple ,in The total amount of data input for the task satisfies , is the average task arrival rate, E is the expectation, The CPU cycles required to complete the computational task. The maximum completion deadline for the task.

[0031] The task generated in each time slot can be divided into three parts to provide parallelism. The first part runs locally, the second part is offloaded to the LEO satellite associated with the user, and the third part can be further offloaded to the cloud server through satellite relay. This is because the computing resources in each LEO are limited, while the cloud server usually has more computing resources. During the task offloading cycle, the task processing strategy, that is, the ratio of local processing and task offloading, should be determined in advance. Let , and Respectively represent users The tasks generated The ratio of execution on local, LEO satellite and cloud server satisfies the following formula:

[0032]

[0033] The present invention considers the task of supporting data partitioning provided by edge computing, assuming that full granularity is adopted in data partitioning, that is, the computing tasks can be divided into subsets of arbitrary sizes, although only a few partitions are feasible in practice, and the optimal solution can be used as the performance upper limit of the realistic offloading strategy.

[0034] Assume user and MEC server There are cache queues on the CPU to store tasks for computation and offloading, which are represented as and ,At different time slots, the queue backlog update model can be expressed as:

[0035]

[0036]

[0037] in and They represent the amount of task data leaving the user queue and the satellite queue at the current moment, respectively, and and They represent the amount of task data entering the queue at the current moment. Assume that the upper limit of the task queue is , tasks that exceed the queue length will be lost, so the queue length at any time The following constraints should be met:

[0038]

[0039] Because the computing resources of LEO satellites are limited, the total number of CPU cycles consumed by tasks offloaded to LEO satellites in a time slice cannot exceed the corresponding limit. Denotes the maximum number of CPU cycles in LEO satellite m, with:

[0040]

[0041] B. Latency and energy consumption model of three-layer computing architecture

[0042] In local computing, computing tasks are performed by local user devices, and task data does not need to be transmitted. Only the task execution time needs to be considered. Indicates user The local computing power when processing task k, , assuming that the computing power of each user is the same and fixed. Therefore, when the task is executed locally, the latency is:

[0043]

[0044] Indicates user In the The time required for the local execution of the tasks generated by the time slot, where the task processing time is , The waiting time of the task in the queue.

[0045] The local execution energy consumption is:

[0046]

[0047] in is the chip energy consumption coefficient, which is determined by the chip structure.

[0048] The present invention adopts an orthogonal frequency division multiple access communication model between each user and the associated LEO satellite. Multiple ground users share the same spectrum resources. The interference between ground users is not considered. It is assumed that each channel supports frequency flatness and block fading Rayleigh. The uplink transmission rate between LEO satellite m and the satellite-to-ground link for computation offloading for:

[0049]

[0050] in is the channel power gain, satisfying , For satellite Uplink channel bandwidth, For satellite Assign to user The bandwidth ratio, is the user's uplink transmission power, is the Gaussian white noise power.

[0051] In addition, let the maximum uplink transmission power be ,have:

[0052]

[0053] If the user sets the task The delays caused by offloading to the MEC server of the LEO satellite include: (i) the propagation delay caused by the long distance between the ground user and the LEO satellite ,in is the distance between the ground user and the LEO satellite, is the speed of light; (ii) the time to transmit the input to the uplink MEC server ; (iii) The queuing time of the uploaded task , T is the number of time slots; (iv) the time to execute the task on the MEC server , Assign satellites to users The computational power required to perform task k; (v) The time to transmit the output of the MEC server back to the user on the downlink. Because the size of the output data is smaller than the input and the downlink data rate is faster than the uplink rate, the downlink transmission delay can be ignored.

[0054] The latency of satellite edge computing is:

[0055]

[0056] The energy consumption of ground users offloading data and calculations to LEO satellites is:

[0057]

[0058] in, , .

[0059] Task k generated by ground users can be further offloaded to the cloud service center through LEO satellites. Since the cloud service center has abundant computing resources, it is assumed that the cloud server can process the offloaded data in a timely manner, and the backlog of data offloaded to the cloud service center is not considered. represents the time required for task k to be transmitted to the cloud server for execution, because the ground user's task is first transmitted to a specific LEO satellite, and then forwarded to the cloud service center by the LEO satellite, so Including propagation delay , transmission delay and processing delay , It can be expressed as:

[0060]

[0061] in, is the transmission rate between LEO satellite and cloud server, is the computing power of the cloud server, is the distance between satellite m and the cloud service center.

[0062] Energy consumption is:

[0063]

[0064] Among them are , , P is the transmission power, and e is the energy consumed for each CPU cycle.

[0065] C. System energy consumption optimization problem model

[0066] The tasks generated by each ground user can be executed in parallel locally, in the LEO satellite, and in the cloud server, so the task completion delay is and The maximum value of .set up The total time required for user i to complete all tasks in time slot k, that is:

[0067]

[0068] This time cannot exceed the task completion deadline and meets the delay constraint:

[0069] Considering the dependency of each task to achieve minimum energy consumption, the task sharing ratio of ground users, LEO satellites and cloud servers, the association decision between users and LEO satellites, the computing resources of LEO satellites and cloud servers, and the transmission power of ground users are optimized to obtain the lowest system energy consumption. ,The energy consumption optimization model under constraints is as follows:

[0070]

[0071]

[0072]

[0073]

[0074]

[0075]

[0076]

[0077] D. Markov decision process modeling

[0078] The optimization problem proposed above is modeled as a Markov decision process (MDP). In a certain time slot t, the environment is in state , the agent is performing an action , and the environment can transition to any achievable subsequent state with a certain probability ; The agent then accepts the reward The long-term goal of the agent is to maximize the cumulative reward by adopting a strategy that adjusts its actions based on its observations. The MDP is defined as , where the elements represent the state space, action space, state transition matrix, reward function and discount factor of the optimization problem respectively. Each element of MDP is described as follows:

[0079] 1) State space: In time slot t, the current state of the system includes computing task information , computing resources available in LEO satellites and queue information , the system state in time slot t contains elements, defined as follows:

[0080]

[0081] 2) Action space: In time slot t, get the state After that, the corresponding action will be generated. Represents the task allocation ratio, Indicates the number of the satellite to which the user task is offloaded. Expressed as the ratio of the user's maximum transmit power, Indicates the computing resource allocation ratio. The actions are defined as follows:

[0082]

[0083] 3) State transfer matrix: arrive Received It is difficult to accurately model the state transfer matrix, so a model-free computational offloading method is adopted.

[0084] 4) Reward: After the edge node agent performs each possible offloading action at time slot t, Get reward value . In general, the reward function is related to the objective function. Since the goal of this optimization problem is to minimize the sum of energy consumption of edge computing offload, the reward function is designed to be negatively correlated with the sum of energy consumption. Specifically, the reward function is designed to motivate the agent to learn to reduce energy consumption, thereby rewarding actions that lead to reduced energy consumption, which is defined as:

[0085]

[0086] Where R is a constant, let the reward be positive, is our optimization goal. is the proportionality coefficient, and and are the penalties caused by computing resource allocation overflow and task queue overflow, respectively, and It is the penalty for task completion time exceeding the maximum completion deadline.

[0087] E. Computation offloading algorithm based on deep deterministic policy gradient

[0088] As a model-free strategy actor-critic algorithm using deep neural networks, the DDPG algorithm can learn strategies in continuous action spaces. The actor-critic algorithm consists of a strategy function and a Q-value function. The strategy function acts as a participant in generating actions, and the Q-value function acts as a critic to evaluate the performance of actions. This paper proposes a computation offloading strategy based on DDPG. The specific implementation process is as follows: Figure 1 shown.

[0089] Example

[0090] This paper will use the results of numerical experiments to verify the effectiveness of the proposed algorithm. Based on TensorFlow2.0 and Python3.6, this paper builds an environment that simulates LEO satellite edge computing communication, and verifies the feasibility of the offloading strategy proposed above and the performance of the algorithm through simulation. In order to reduce the complexity of the model, it is assumed that the number of ground users U=5 and the number of satellites S=3. In addition, this paper assumes that the computing power of ground users is , the computing power of LEO satellite is ,The computing power of the cloud service center is The maximum transmission power of ground users is , the channel bandwidth is , the transmission power of the satellite and cloud link is Consider the task size interval generated in each time slot as ,It takes 1000 CPU cycles to execute each bit of data. The DDPG algorithm parameters are as follows: Maximum number of iterations , the time slot length is , the size of the content playback buffer , mini-batch size , discount factor , soft update factor , the learning rates of the actor and critic networks are and .

[0091] To evaluate the proposed DDPG-based algorithm, it is compared with the following four baseline algorithms: ActorCritic (AC), Local Computing (LC), Cloud-Only (CO), and Deep Q Network (DQN).

[0092] like Figure 2 As shown in the figure, the convergence performance of the three algorithms is compared from the perspective of rewards, and each strategy achieves a stable computational offloading process. Compared with the AC algorithm, the proposed DDPG algorithm based on DDPG shows faster convergence speed and better performance. It can be observed that the reward of each iteration increases with the number of iterations. The algorithm based on DDPG has better performance. It converges to a relatively stable value after running for 250 generations, while AC converges to a relatively stable value after running for about 800 generations. Because AC is updated in one step and has no experience replay memory, it converges slowly. Compared with the DQN algorithm, DQN can only explore in a limited action space, and the reward obtained is lower than that of the DDPG algorithm.

[0093] Figure 3 The delay and energy consumption of different algorithms are shown. When all computing tasks are executed locally, the energy consumption is low, but the delay cannot meet the requirements of the maximum completion deadline of the task. The tasks are backlogged in the queue, and the tasks that arrive later will be lost. The tasks are forwarded to the cloud service center through satellite relays, which will generate high energy consumption. The proposed DDPG-based method can meet the task completion requirements, implement the optimal offloading strategy, and minimize energy consumption, while DQN can only explore in a limited action space and obtain suboptimal results.

[0094] Figure 4 The average energy consumption comparison of five algorithms is shown when the user computing power is different. Among them, CO, the ground user forwards to the cloud service center through satellite relay for execution, so the computing power of the ground user does not affect the energy consumption. As the computing power of the ground user increases, the time required for LC to complete the computing task decreases and the energy consumption increases. For other algorithms, the stronger the computing power of the ground user, the more tasks can be processed locally and completed on time, so the energy consumption of all methods will decrease. The DDPG-based method proposed in this invention has the best strategy, which can better utilize computing resources and minimize system energy consumption.

[0095] The above is only a preferred embodiment of the present invention. It should be noted that, for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered as the protection scope of the present invention. All components not specified in this embodiment can be implemented by existing technologies.

Claims

1. A satellite edge computing task offloading and resource allocation method based on deep reinforcement learning, It is characterized in that include: In the three-layer computing architecture consisting of terminal-satellite-cloud service center, the tasks generated by users are divided into three parts in proportion, and some tasks are offloaded to satellites and cloud service centers for execution. Through this partial computing offloading strategy, tasks can be executed in parallel on three planes; Under this architecture, ground users with limited resources are associated with LEO satellites to realize the offloading of computing tasks from the ground to the satellites, and some tasks are offloaded to the cloud service center through LEO satellite relay, providing heterogeneous computing resources for ground users; Establish the association model and mission model between users and satellites; the SMEC system operates in time slot mode, dividing the entire unloading cycle into N time slots of equal length, and the length of each time slot is At the beginning of each time slot, each user generates a computing task and associates with the satellite. represents the set of user-LEO satellite connection decisions, when When With satellite Establish a connection, otherwise , task generation is an independent and identically distributed Poisson process, which divides each user The generated The computational tasks generated by the time slots are modeled as a triple , , The total amount of data input for the task satisfies , is the average task arrival rate; The CPU cycles required to complete the computational task. is the maximum completion deadline of the task; the tasks generated in each time slot are divided into three parts to provide parallelism; the first part is run locally, the second part is offloaded to the LEO satellite associated with the user, and the third part is offloaded to the cloud server through satellite relay; within the task offloading cycle, the task processing strategy, that is, the ratio of local processing and task offloading, should be determined in advance. , and Respectively represent users The tasks generated The proportion of execution on local, LEO satellite and cloud server, and meeting ; Establish satellite network node communication model and dynamic queue backlog update model, user and MEC server There are cache queues on the CPU to store tasks for computation and offloading, which are represented as and , at different time slots, the queue backlog update model is expressed as: , ,in and They represent the amount of task data leaving the user queue and satellite queue at the current moment, and They represent the amount of task data entering the queue at the current moment; the upper limit of the task queue is , tasks that exceed the queue length will be lost, so the queue length at any time The following constraints should be met: ; An orthogonal frequency division multiple access communication model is used between users and satellites. Multiple ground users share the same spectrum resources. The delay and energy consumption models of the three-layer computing architecture are constructed respectively. The system delay includes transmission delay, execution delay, propagation delay and queuing delay. The energy consumption includes transmission energy consumption and execution energy consumption. The transmission rate between users and satellites is obtained according to Shannon's theorem. At the same time, because the data size transmitted in the downlink is much smaller than that in the uplink, only the delay and energy consumption of the uplink are considered to construct the system delay and energy consumption model; Establish a queuing delay calculation model , T is the number of time slots; the total time required for user i to complete all tasks in time slot k is , Indicates user In the The time required for the task generated by a time slot to be executed locally; this time cannot exceed the task completion deadline and meet the delay constraint: ; Taking the total energy consumption of the system as the objective function, under the constraints, a mixed integer nonlinear programming problem is obtained. The problem is modeled as a Markov decision process. In a certain time slot t, the environment is in the state , the agent is performing an action , and the environment can transition to any achievable subsequent state according to the transition probability ; Then, the agent receives the reward ; The state space is defined as , which includes task information , computing resources available in LEO satellites and queue information ; The action space is defined as ,in Represents the task allocation ratio, Indicates the number of the satellite to which the user task is offloaded. Expressed as the ratio of the user's maximum transmit power, represents the computing resource allocation ratio; the reward is defined as , where R is a constant, let the reward be positive, is the optimization goal, is the proportionality coefficient, and and are the penalties caused by computing resource allocation overflow and task queue overflow, respectively, and is the penalty for task completion time exceeding the maximum completion deadline; the computational offloading and resource allocation strategy with the lowest energy consumption is obtained through a partial computational offloading algorithm based on deep deterministic policy gradient, thereby realizing joint optimization of the offloading position, offloading ratio and resource allocation strategy; the partial computational offloading algorithm based on deep deterministic policy gradient performs state initialization at the beginning, normalizes the state, reduces errors caused by different dimensions, adds behavioral noise to construct the action space, and adopts an experience replay mechanism; the reward is negatively correlated with energy consumption, so that the intelligent agent learns in the direction of reducing energy consumption, and adopts a soft update method to update the network parameters of the target network, thereby obtaining the computational offloading and resource allocation strategy with the lowest energy consumption.

2. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the steps of the method according to claim 1 are implemented.

3. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the steps of the method as claimed in claim 1 are implemented.

4. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the method according to claim 1 are implemented.