Mobile edge computing resource allocation method based on deep reinforcement learning

Optimize the resource allocation of mobile devices in mobile edge computing through deep reinforcement learning, and use edge servers to allocate computing resources, solving the problems of traditional cloud computing delay and limited mobile device resources, achieving lower costs and higher computing performance.

CN118535344APending Publication Date: 2024-08-23DALIAN POLYTECHNIC UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410762360.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-13
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Traditional cloud computing is far away from mobile devices, which results in extended data exchange time and reduced service quality. Mobile devices are limited in computing resources and power, making it difficult to effectively handle computing tasks.

Method used

A mobile edge computing resource allocation method based on deep reinforcement learning is adopted to optimize the cost of real-time mobile devices in time-varying and unknown environments through the DQN algorithm, and edge servers are used to allocate computing resources to reduce energy consumption and delay of mobile devices.

Benefits of technology

It significantly improves the system learning efficiency, realizes the optimization of real-time mobile device costs, reduces costs, saves the energy consumption of mobile devices, and improves computing power and task processing performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535344A
    Figure CN118535344A
Patent Text Reader

Abstract

The invention provides a mobile edge computing resource allocation method based on deep reinforcement learning, and the method specifically comprises the steps: initializing system parameters, and inputting the real-time data of a mobile device into a system; according to the probability random selection action, inputting the current state into the main network, calculating the migration task amount proportion of each possible action and calculating the resource distribution proportion through a DQN algorithm, and selecting the optimal action; after the optimal action is executed, downloading processing results of the mobile equipment and the edge server, and obtaining an award and a state of a next moment; storing the optimal action, the reward after execution and the state of the next moment into an experience pool as transfer samples, and updating weight parameters of the main network through a gradient descent method; and calculating the total cost of the mobile equipment and the cost of all users in the system. According to the method, deep reinforcement learning is applied to a mobile edge computing technology which is one of 5G key technologies, a resource allocation strategy of the mobile equipment is formulated, and the cost of the mobile equipment is remarkably reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] The increasing popularity of smart mobile devices has greatly facilitated people's daily lives. However, the applications running on them usually consume a lot of computing resources and power, so it is difficult to process them locally on resource-constrained mobile devices. In order to overcome the above difficulties and achieve higher network efficiency, the concept of mobile cloud computing was proposed, which allows mobile devices to offload their computing tasks to a remote cloud for processing. However, since traditional clouds are usually located far away from mobile devices, data exchange over wide area networks may result in long waiting times and reduce service quality.

[0003] The task offloading and computing resource allocation strategies of mobile edge computing systems have attracted widespread attention in the industry in recent years. As a result, mobile edge computing has emerged, which can provide IT service environment and cloud computing functions for wireless access networks close to mobile devices. Compared with mobile cloud computing, the advantages of MEC include low latency, energy saving and high security. Summary of the invention

[0004] According to the technical problems raised above, a method for allocating mobile edge computing resources based on deep reinforcement learning is provided. The present invention applies deep reinforcement learning to mobile edge computing technology, one of the key technologies of 5G, and derives the DQN strategy through the reinforcement learning method, thereby optimizing the cost of real-time mobile devices in time-varying and unknown environments.

[0005] The technical means adopted by the present invention are as follows:

[0006] A method for allocating mobile edge computing resources based on deep reinforcement learning, the specific steps include:

[0007] S1, initialize system parameters and input real-time data of mobile devices into the system;

[0008] S2. Randomly select an action based on probability, input the current state into the main network, calculate the proportion of each possible action migration task and computing resource allocation ratio through the DQN algorithm, and select the optimal action a;

[0009] S3, after executing the optimal action in S2, download the processing results of the mobile device and edge server, and obtain the reward r and the state s′ at the next moment;

[0010] S4, store the optimal action in S2, the reward r after execution, and the state s′ at the next moment as transfer samples in the experience pool, and update the weight parameter w of the main network by gradient descent method;

[0011] S5. Calculate the total cost of the mobile device and the cost of all users in the system.

[0012] Furthermore, the step S1 specifically includes:

[0013] The system parameters include: the number of mobile devices N, the maximum capacity of the battery, the capacity D of the experience pool for storing training samples; the learning rate μ for weighting past values ​​and new rewards, the discount factor γ that determines the importance of future rewards, the main network weight parameter w, the target network weight parameter w - =w;

[0014] The real-time data of the mobile device includes: The task arrives at the i-th mobile device, and the task data volume is The number of CPU cycles required is Access to renewable energy Battery level and status informations.

[0015] Furthermore, the step S2 specifically includes:

[0016] Use the ∈-greedy algorithm to select actions, initialize the ∈-greedy algorithm parameters ∈, select random actions with a probability of ∈∈[0, 1], and calculate the proportion of tasks that need to be migrated and computing resource allocation ratio With probability (1-∈), select the optimal action a according to the DQN algorithm;

[0017] The upload rate of tasks migrated to edge services is:

[0018]

[0019] Where W is the total spectrum bandwidth of the wireless channel, P i is the transmission power of the migration task of the i-th mobile device, h i is the channel gain between the i-th mobile device and the edge server, N 0 is the noise power spectral density.

[0020] Furthermore, the step S3 specifically includes:

[0021] Reward t It is obtained by the following formula:

[0022]

[0023] Among them, C t is the total cost of the mobile device at the current moment, is the average cost.

[0024] Furthermore, the step S4 specifically includes:

[0025] The DQN algorithm parameters are updated as follows:

[0026] The system stores the transferred samples (s, a, r, s′) into the experience pool D; randomly takes samples from D as the input of the target network;

[0027] Update the weight parameter w of the main network by gradient descent method;

[0028]

[0029] w′=w+Δw;

[0030] Among them, Q represents the action state value in the DQN algorithm, a′ represents the action at the next moment, and w′ represents the updated weight parameter;

[0031] After every C iterations, copy the weight parameter w′ of the current main network as the weight parameter w of the target network - .

[0032] Furthermore, the step S5 specifically includes:

[0033] For the i-th mobile device, the delay cost of its time slot t is for:

[0034]

[0035] in, is the local processing delay, that is, the transmission delay, is the migration delay, i.e., the server processing delay;

[0036] Energy cost of time slot t for:

[0037]

[0038] in, is the local processing energy consumption, i.e., the transmission energy consumption, z i is the unit energy consumption per CPU cycle, is the migration energy consumption, which is the idle energy consumption of the mobile device when the edge server is processing tasks.

[0039] Then the total cost of the i-th mobile device in time slot t is:

[0040]

[0041] Among them, ρ i To measure and The weight coefficient of importance;

[0042] The cost to all users in the system is:

[0043]

[0044] in, Represents the energy consumption cost and delay cost of all users in time slot t.

[0045] Furthermore, a storage medium is provided, the storage medium comprising a stored program, wherein when the program is run, the mobile edge computing resource allocation method based on deep reinforcement learning is executed.

[0046] Furthermore, an electronic device includes a memory, a processor, and an extreme machine program stored in the memory and executable on the processor, wherein the processor executes the mobile edge computing resource allocation method based on deep reinforcement learning through the computer program.

[0047] Compared with the prior art, the present invention has the following advantages:

[0048] The mobile edge computing resource allocation method based on deep reinforcement learning provided by the present invention has a reward function that reflects the real-time optimization of mobile device costs, which can significantly improve the learning efficiency of the system. The DQN strategy is derived by the reinforcement learning method, and the optimization of real-time mobile device costs is achieved in time-varying and unknown environments, which can achieve lower costs than other technologies.

[0049] The mobile edge computing resource allocation method based on deep reinforcement learning provided by the present invention is a key technology of mobile edge computing, which is computing offloading from the perspective of saving energy consumption of mobile devices and expanding the computing power of mobile devices. By offloading all / part of the computing tasks in the application to the MEC server for execution, the energy consumption of the mobile device for executing computing tasks is reduced. At the same time, since the computing power of the edge server far exceeds that of the mobile device, the application can often achieve better performance. After the mobile device makes a computing offloading decision, the edge server needs to appropriately allocate limited computing resources. The allocation of computing resources affects the latency and energy consumption of task processing.

[0050] Based on the above reasons, the present invention can be widely promoted in the field of mobile edge computing technology. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0052] Figure 1 This is a flow chart of the mobile edge computing resource allocation method based on deep reinforcement learning in the present invention.

[0053] Figure 2 This is a diagram of the edge computing task offloading model in the present invention. DETAILED DESCRIPTION

[0054] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0055] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0056] like Figure 1 As shown, the present invention provides a mobile edge computing resource allocation method based on deep reinforcement learning, and the specific steps include:

[0057] S1, initialize system parameters and input real-time data of mobile devices into the system;

[0058] In specific implementation, as a preferred embodiment of the present invention, the step S1 specifically includes:

[0059] The system parameters include: the number of mobile devices N, the maximum capacity of the battery, the capacity D of the experience pool for storing training samples; the learning rate μ for weighting past values ​​and new rewards, the discount factor γ that determines the importance of future rewards, the main network weight parameter w, the target network weight parameter w - =w;

[0060] During implementation, the maximum capacity of the battery defaults to 1.2KWH, and the default initial battery power is 0; the learning rate μ for initializing weighted past values ​​and new rewards is initialized to 0.5, the discount factor γ that determines the importance of future rewards is 0.8, and the ∈-greedy algorithm parameter ∈ is 0.1.

[0061] The real-time data of the mobile device includes: The task arrives at the i-th mobile device, and the task data volume is The number of CPU cycles required is Access to renewable energy Battery level and status information s.

[0062] S2. Randomly select an action based on probability, input the current state into the main network, calculate the proportion of each possible action migration task and computing resource allocation ratio through the DQN algorithm, and select the optimal action a;

[0063] In specific implementation, as a preferred embodiment of the present invention, step S2 specifically includes:

[0064] Use the ∈-greedy algorithm to select actions, initialize the ∈-greedy algorithm parameters ∈, select random actions with a probability of ∈∈[0, 1], and calculate the proportion of tasks that need to be migrated and computing resource allocation ratio With probability (1-∈), select the optimal action a according to the DQN algorithm;

[0065] The upload rate of tasks migrated to edge services is:

[0066]

[0067] Where W is the total spectrum bandwidth of the wireless channel, P i is the transmission power of the migration task of the i-th mobile device, h i is the channel gain between the i-th mobile device and the edge server, N 0 is the noise power spectral density.

[0068] S3, after executing the optimal action in S2, download the processing results of the mobile device and edge server, and obtain the reward r and the state s′ at the next moment;

[0069] In specific implementation, as a preferred embodiment of the present invention, step S3 specifically includes:

[0070] Reward t Obtained by the following formula:

[0071]

[0072] Among them, C t is the total cost of the mobile device at the current moment, is the average cost.

[0073] S4, store the optimal action in S2, the reward r after execution, and the state s′ at the next moment as transfer samples in the experience pool, and update the weight parameter w of the main network by gradient descent method;

[0074] In specific implementation, as a preferred embodiment of the present invention, step S4 specifically includes:

[0075] The DQN algorithm parameters are updated as follows:

[0076] The system stores the transferred samples (s, a, r, s′) into the experience pool D; randomly takes samples from D as the input of the target network;

[0077] Update the weight parameter w of the main network by gradient descent method;

[0078]

[0079] w′=w+Δw;

[0080] Among them, Q represents the action state value in the DQN algorithm, a′ represents the action at the next moment, and w′ represents the updated weight parameter;

[0081] After every C iterations, copy the weight parameter w′ of the current main network as the weight parameter w of the target network - .

[0082] S5. Calculate the total cost of the mobile device and the cost of all users in the system.

[0083] In specific implementation, as a preferred embodiment of the present invention, step S5 specifically includes:

[0084] For the i-th mobile device, the delay cost of its time slot t is for:

[0085]

[0086] in, is the local processing delay, that is, the transmission delay, is the migration delay, i.e., the server processing delay;

[0087] Energy cost of time slot t for:

[0088]

[0089] in, is the local processing energy consumption, i.e., the transmission energy consumption, z i is the unit energy consumption per CPU cycle, is the migration energy consumption, which is the idle energy consumption of the mobile device when the edge server is processing tasks.

[0090] Then the total cost of the i-th mobile device in time slot t is:

[0091]

[0092] Among them, ρ i To measure and The weight coefficient of importance; in implementation, the total cost of the mobile device is the sum of time delay and energy consumption cost, and the proportion of the two costs can be dynamically adjusted according to different tasks.

[0093] The cost to all users in the system is:

[0094]

[0095] in, Represents the energy consumption cost and delay cost of all users in time slot t.

[0096] In a specific implementation, as a preferred embodiment of the present invention, a storage medium includes a stored program, wherein when the program is run, the mobile edge computing resource allocation method based on deep reinforcement learning is executed.

[0097] In specific implementation, as a preferred embodiment of the present invention, an electronic device includes a memory, a processor, and an extreme machine program stored in the memory and executable on the processor, and the processor executes the mobile edge computing resource allocation method based on deep reinforcement learning through the computer program.

[0098] Example

[0099] like Figure 1 As shown, the present invention provides a mobile edge computing resource allocation method based on deep reinforcement learning, such as Figure 2As shown in the figure, N mobile devices powered by batteries or renewable energy are assisted by the MEC server to jointly process randomly arriving tasks. Mobile devices can access the edge system through wireless channels and migrate tasks to the edge server. The edge server determines the computing resources allocated to the migrated tasks and transmits the processing results to the mobile devices. By using deep reinforcement learning algorithms to migrate some computing tasks to the MEC server, mobile devices can enjoy a higher quality computing experience.

[0100] Compared with other mobile edge computing offloading methods, the present invention utilizes the model-free nature of Q-learning, one of the reinforcement learning algorithms, and the function approximation characteristics of deep neural networks in deep learning to reduce the long-term cost of the system without knowing the future state of the system. Therefore, the algorithm proposed in the present invention can achieve the purpose of optimizing the cost of mobile devices and has good feasibility and effectiveness.

[0101] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0102] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0103] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0104] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0105] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0106] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0107] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for allocating mobile edge computing resources based on deep reinforcement learning, characterized in that: The specific steps include: S1, initialize system parameters and input real-time data of mobile devices into the system; S2. Randomly select an action based on probability, input the current state into the main network, calculate the proportion of each possible action migration task and computing resource allocation ratio through the DQN algorithm, and select the optimal action a; S3, after executing the optimal action in S2, download the processing results of the mobile device and edge server, and obtain the reward r and the state s′ at the next moment; S4, store the optimal action in S2, the reward r after execution, and the state s′ at the next moment as transfer samples in the experience pool, and update the weight parameter w of the main network by gradient descent method; S5. Calculate the total cost of the mobile device and the cost of all users in the system.

2. The method for allocating mobile edge computing resources based on deep reinforcement learning according to claim 1, characterized in that: The step S1 specifically includes: The system parameters include: the number of mobile devices N, the maximum capacity of the battery, the capacity D of the experience pool for storing training samples; the learning rate μ for weighting past values ​​and new rewards, the discount factor γ that determines the importance of future rewards, the main network weight parameter w, the target network weight parameter w - =w; The real-time data of the mobile device includes: The task arrives at the i-th mobile device, and the task data volume is The number of CPU cycles required is Access to renewable energy Battery level and status informations.

3. The method for allocating mobile edge computing resources based on deep reinforcement learning according to claim 1, characterized in that: The step S2 specifically includes: Use the ∈-greedy algorithm to select actions, initialize the ∈-greedy algorithm parameters ∈, select random actions with a probability of ∈∈[0, 1], and calculate the proportion of tasks that need to be migrated and computing resource allocation ratio With probability (1-∈), select the optimal action a according to the DQN algorithm; The upload rate of tasks migrated to edge services is: Where W is the total spectrum bandwidth of the wireless channel, P i is the transmission power of the migration task of the i-th mobile device, h i is the channel gain between the i-th mobile device and the edge server, and N0 is the noise power spectral density.

4. The method for allocating mobile edge computing resources based on deep reinforcement learning according to claim 1, characterized in that: The step S3 specifically includes: Reward t Obtained by the following formula: Among them, C t is the total cost of the mobile device at the current moment, is the average cost.

5. The method for allocating mobile edge computing resources based on deep reinforcement learning according to claim 1, characterized in that: The step S4 specifically includes: The DQN algorithm parameters are updated as follows: The system stores the transferred samples (s, a, r, s′) into the experience pool D; randomly takes samples from D as the input of the target network; Update the weight parameter w of the main network by gradient descent method; w′=w+Δw; Among them, Q represents the action state value in the DQN algorithm, a′ represents the action at the next moment, and w′ represents the updated weight parameter; After every C iterations, copy the weight parameter w′ of the current main network as the weight parameter w of the target network - .

6. The method for allocating mobile edge computing resources based on deep reinforcement learning according to claim 1, characterized in that: The step S5 specifically includes: For the i-th mobile device, the delay cost of its time slot t is for: in, is the local processing delay, that is, the transmission delay, is the migration delay, i.e., the server processing delay; Energy cost of time slot t for: in, is the local processing energy consumption, i.e., the transmission energy consumption, z i is the unit energy consumption per CPU cycle, is the migration energy consumption, which is the idle energy consumption of the mobile device when the edge server is processing tasks. Then the total cost of the i-th mobile device in time slot t is: Among them, ρ i To measure and The weight coefficient of importance; The cost to all users in the system is: in, Represents the energy consumption cost and delay cost of all users in time slot t.

7. A storage medium, characterized in that: The storage medium includes a stored program, wherein when the program is run, the method according to any one of claims 1 to 6 is executed.

8. An electronic device comprising a memory, a processor, and an extreme machine program stored in the memory and executable on the processor, characterized in that: The processor executes the method according to any one of claims 1 to 6 by running the computer program.