Deployment method of mobile edge computing services in Internet of Vehicles based on deep reinforcement learning

Optimizing the deployment of mobile edge computing services for the Internet of Vehicles through deep reinforcement learning algorithms solves the problem of traditional cloud computing being unable to cope with high-density and high-frequency access, maximizes system revenue and stability, and ensures the long-term development of the MEC system.

CN118555578BActive Publication Date: 2024-10-01EAST CHINA JIAOTONG UNIVERSITY
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411017827.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-29
Publication Date
2024-10-01
Estimated Expiration
2044-07-29

AI Technical Summary

Technical Problem

Traditional cloud computing cannot effectively cope with the massive high-density and high-frequency access of IoT devices, which affects the efficiency and service quality of the Internet of Vehicles mobile edge computing system. How to maximize the profits of service providers and ensure the long-term stable development of MEC systems is A technical challenge.

Method used

An Internet of Vehicles mobile edge computing service deployment method based on deep reinforcement learning is adopted. By constructing a Internet of Vehicles mobile edge computing system, Poisson point process distribution is used to simulate the location of vehicle users. The improved KMeans method is used to cluster base stations and vehicle users, and uses Deep reinforcement learning network algorithms optimize service deployment of edge servers to maximize total revenue and stability.

Benefits of technology

It achieves optimization under multi-constraint conditions of MEC service deployment in the Internet of Vehicles environment, maximizes the total revenue of the system, improves the stability and economic benefits of the system, and ensures the long-term development of the MEC system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118555578B_ABST
    Figure CN118555578B_ABST
Patent Text Reader

Abstract

The present invention provides a method for deploying mobile edge computing services in an Internet of Vehicles based on deep reinforcement learning. The method transforms the MEC service deployment problem in an Internet of Vehicles environment into an optimization problem under multiple constraints. The optimization goal is set to maximize the total revenue of the mobile edge computing system of the Internet of Vehicles. The improved KMeans method is first used to cluster base stations and vehicle users, and an edge server is deployed at the cluster center of each cluster. Then, the DQN algorithm is used to explore the service deployment strategy on each edge server. The deep reinforcement learning network algorithm is trained through state collection, action selection, action execution, experience storage, experience playback, parameter update, etc. The remaining resources and unfinished tasks of the server are monitored in real time, limited resources are reasonably used, and the deployment of MEC services is completed. By continuously adjusting and finding the optimal parameters of the algorithm, the total revenue of the system can be maximized, and the system has high stability, which is conducive to the long-term stable development of the MEC system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of wireless communication technologies, and in particular to a method for deploying mobile edge computing services in an Internet of Vehicles based on deep reinforcement learning. Background Art

[0002] Traditional cloud computing (CC) can no longer effectively cope with the massive, high-density, and high-frequency access of IoT devices. Mobile edge computing (MEC) is an emerging distributed computing that is gradually attracting the attention of researchers. The core idea of ​​MEC is to transfer computing power from the data center of the mobile network to the edge of the wireless access network, providing a service environment and computing functions to mobile edge applications, so that services can be localized and user requests can be processed in the access network.

[0003] The Internet of Vehicles (IoV) can achieve all-round communication between vehicles and the surrounding environment, promote the development of intelligent transportation and improve user experience. At the same time, the amount of data and tasks that need to be processed by vehicles is also growing explosively, and the Internet of Vehicles assisted by edge computing has become a research hotspot. At present, most of the research on edge computing is based on the fact that the server has been deployed. In order to save costs, edge servers are generally deployed on existing base stations or road side units (RSUs). Based on user requests, the deployment location and number of edge servers are reasonably determined. The quality of edge server deployment directly affects the overall efficiency of the MEC system. MEC service deployment is also an important part of edge server deployment. In the actual application of the Internet of Vehicles, the deployment location of the edge server and the type of service deployed on each edge server are determined based on the actual request data collected from vehicle users, which is of great significance to improving the quality of service (QoS) of vehicle users.

[0004] At present, many studies on the deployment of MEC services in the Internet of Vehicles are carried out around different optimization goals. However, most of these studies assign delay-sensitive tasks to remote edge servers, which may cause significant delays due to multi-hop transmission, thereby reducing or even eliminating the profits of service providers. Therefore, how to maximize the profits of service providers and enable the long-term and stable development of MEC systems is a technical problem that technicians in this field need to solve. Summary of the invention

[0005] The purpose of the present invention is to provide a method for deploying mobile edge computing services in an Internet of Vehicles based on deep reinforcement learning, so as to maximize the profits of service providers and enable the long-term and stable development of the MEC system.

[0006] A method for deploying mobile edge computing services for Internet of Vehicles based on deep reinforcement learning, comprising:

[0007] Step S1, constructing a mobile edge computing system for the Internet of Vehicles, obtaining the location information of each base station in the mobile edge computing system for the Internet of Vehicles, and using Poisson point process distribution to simulate the location distribution of vehicle users and task request types around each base station, taking maximizing total revenue as the optimization goal, establishing a revenue model for the system, and determining constraints based on the optimization goal;

[0008] Step S2: In the mobile edge computing system of the Internet of Vehicles, the improved KMeans method is used to cluster the base stations and vehicle users, and an edge server is deployed at the cluster center of each cluster. The edge server provides computing services for the vehicle users in the corresponding cluster and collects the task queues sent by the vehicle users in the corresponding cluster.

[0009] Step S3, based on the optimization objectives and constraints, use the deep reinforcement learning network algorithm to solve the optimization objectives, complete the service deployment on each edge server, decide the number of services deployed on each edge server, and calculate the final total revenue of the system.

[0010] According to the vehicle networking mobile edge computing service deployment method based on deep reinforcement learning provided by the present invention, the MEC service deployment problem in the vehicle networking environment is transformed into an optimization problem under multiple constraints, and the optimization goal is set to maximize the total revenue of the vehicle networking mobile edge computing system. The improved KMeans method is first used to cluster base stations and vehicle users, and an edge server is deployed at the cluster center of each cluster. Then, the deep reinforcement learning network (DQN) algorithm is used to explore the service deployment strategy on each edge server. The deep reinforcement learning network algorithm is trained through state collection, action selection, action execution, experience storage, experience playback, parameter update, etc., and the remaining resources and unfinished tasks of the server are monitored in real time. The limited resources are reasonably used to complete the deployment of MEC services. By continuously adjusting and finding the optimal parameters of the algorithm, the total revenue of the system can be maximized, and it has high stability, which is conducive to the long-term stable development of the MEC system. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Figure 1 A flowchart of a method for deploying mobile edge computing services for Internet of Vehicles based on deep reinforcement learning according to the present invention;

[0012] Figure 2 It is a schematic diagram of the base station location and vehicle user location;

[0013] Figure 3 This is a graph of reward convergence under different discount factors;

[0014] Figure 4 The following is a schematic diagram of the profit results of each method;

[0015] Figure 5 This is the profit stability curve of each method. DETAILED DESCRIPTION

[0016] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution 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 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 are within the scope of protection of the present invention.

[0017] See also Figure 1 The method for deploying mobile edge computing services in an Internet of Vehicles based on deep reinforcement learning provided by an embodiment of the present invention includes steps S1 to S3.

[0018] Step S1, build a mobile edge computing system for the Internet of Vehicles, obtain the location information of each base station in the mobile edge computing system for the Internet of Vehicles, and use the Poisson point process distribution to simulate the location distribution of vehicle users and the type of task requests around each base station. Take maximizing total revenue as the optimization goal, establish a revenue model for the system, and determine the constraints based on the optimization goal.

[0019] The revenue model satisfies the following conditions:

[0020] ;

[0021] in, P represents the total income, P j For the j The revenue of edge servers, J represents the total number of edge servers, Indicates j The first deployed on the edge server k The number of services, K Indicates the total number of service types, p k For the k The revenue from this service.

[0022] Specifically, the constraints are:

[0023] ;

[0024] ;

[0025] ;

[0026] ;

[0027] ;

[0028] ;

[0029] ;

[0030] in, Indicates i The base station forwards it to the j The computing resources required for the tasks of the edge servers, I Indicates the total number of base stations, Indicates whether the task is i The base station forwards it to the j Binary variables for edge servers, Indicates i Is the first j Binary variables for edge servers, Indicates i Is the first base station j A binary variable that establishes a connection with an edge server. Indicates k The storage resources required for the service. A The maximum storage resource of the edge server.

[0031] Step S2: In the mobile edge computing system of the Internet of Vehicles, the improved KMeans method is used to cluster the base stations and vehicle users. An edge server is deployed at the center of each cluster. The edge server provides computing services for the vehicle users in the corresponding cluster and collects the task queues sent by the vehicle users in the corresponding cluster.

[0032] Among them, in step S2, the improved KMeans method is used to cluster the base stations and vehicle users, and an edge server is deployed at the center of each cluster, which specifically includes:

[0033] Step S21, determining the candidate location of the edge server according to the location information of the base station, the total number of edge servers J Represents the number of clusters, calculates the average load of each edge server, and sets the load threshold based on the average load;

[0034] Step S22, select from the candidate locations of the edge server J The base stations are used as the initial cluster centers and the initial clustering is performed based on the Euclidean distance;

[0035] Step S23, determine whether the load in each cluster exceeds the load threshold. For the target cluster that exceeds the load threshold, divide the base station farthest from the cluster center in the target cluster into other clusters with smaller loads. Finally, update the cluster center and return to step S22 for iteration until the set number of iterations is reached, and the clustering is terminated. The cluster center at this time is the initial deployment position of the edge server determined by the improved K-means method.

[0036] This improved KMeans method can better adapt to the complex Internet of Vehicles environment and improve the efficiency and performance of the system.

[0037] Among them, in step S21, the load threshold The expression is:

[0038] ;

[0039] ;

[0040] in, Indicates the average load of all base stations.

[0041] Load threshold Used to calculate the fluctuation of the average load of each edge server relative to the overall average load. The calculation formula can help determine a reasonable load threshold for load balancing clustering operations.

[0042] The improved K-means method pays more attention to load balancing and delay minimization when solving service deployment problems. By dynamically adjusting the clustering of base stations, it can better meet the load requirements of different regions, improve the overall performance and stability of the system, and effectively avoid excessive load differences between edge servers.

[0043] Step S3, based on the optimization objectives and constraints, use the deep reinforcement learning network algorithm to solve the optimization objectives, complete the service deployment on each edge server, decide the number of services deployed on each edge server, and calculate the final total revenue of the system.

[0044] Among them, the DQN algorithm combines deep learning and Q-learning algorithms. First, each edge server is regarded as an intelligent agent, and the environment consists of base stations and vehicle users that establish contact with the edge server. At the beginning of each time slot, the intelligent agent interacts with the environment, collects the task queue forwarded to the edge server from the environment, and monitors the remaining storage resources and unprocessed tasks of the server. The action of the intelligent agent is to determine the number of various services deployed on the edge server. The reward value is set as the profit obtained after taking the action. The higher the profit, the greater the reward value. According to the greedy strategy of DQN, the intelligent agent will choose the action with a higher reward value with a higher probability. After a period of learning and updating, the DQN algorithm can optimize the service deployment strategy and learn how to deploy services to obtain higher profits while meeting resource constraints. In this way, the DQN algorithm can effectively adjust the service deployment in a dynamic environment, improve the overall performance and economic benefits of the system, and achieve maximum optimization of service deployment variables and service request scheduling variables.

[0045] Specifically, the training process of the deep reinforcement learning network algorithm is:

[0046] Initialization: Initialize the parameters of the deep reinforcement learning network and set the initial value of the greedy strategy;

[0047] State collection: Each edge server is regarded as an intelligent agent, which collects current state information from the environment. The current state information includes task queues, server resource conditions, and service requests of vehicle users. The environment consists of base stations and vehicle users that establish connections with edge servers.

[0048] Action selection: According to the Q value output by the deep reinforcement learning network, the optimal action in the current state is selected, that is, the number of services deployed, and a greedy strategy is used to balance exploration and utilization;

[0049] Execute actions: Deploy a corresponding number of services on edge servers based on the selected actions, and observe the changes in the environment and the rewards obtained after execution;

[0050] Experience storage: store the current state, action, reward and next state in the experience replay pool;

[0051] Experience replay: Randomly extract samples from the experience replay pool for training, and use the Q-learning update formula to update the parameters of the deep reinforcement learning network;

[0052] Parameter update: Periodically update the parameters of the policy network to the target network to complete the training of the deep reinforcement learning network algorithm.

[0053] Among them, there is a current state in the deep reinforcement learning network algorithm , Current Action and the current reward function ;

[0054] ;

[0055] ;

[0056] ;

[0057] in, Represents a queue of unfinished tasks collected by the server. Indicates the remaining storage resources of the server. Indicates k Services in t The number of deployments at a given moment;

[0058] In experience replay, the Q-learning update formula used is:

[0059] ;

[0060] in, represents the Q-value function, represents the learning rate, is the current return, is the discount factor, Indicates the next state, Indicates the next action;

[0061] Loss function of deep reinforcement learning network algorithm L for:

[0062] ;

[0063] in, E represents the expected function, and denote the action value functions estimated by the policy network and the target network, respectively.

[0064] The DQN algorithm updates the model by minimizing the mean square error loss of the Q function, and uses a deep neural network to approximate the value of the Q function to achieve processing of high-dimensional, continuous state space. Its core idea is to continuously update the parameters of the neural network so that its output Q value is close to the real Q value, thereby learning the optimal strategy.

[0065] The method of the present invention is simulated and tested to simulate the dense computing environment in the Internet of Vehicles. First, the location information of 100 base stations in a 2500 square meter area in a certain area is collected from the OpenGPS.cn website. Then, the Poisson Point Process (PPP) is used to simulate the location distribution of vehicles and the type of task requests around the base stations. The number of vehicle users in the area ranges from [200 to 500]. The specific base station locations and vehicle user locations are shown in Figure 2. Figure 2 shown.

[0066] In this embodiment, it is necessary to observe the reward value of a single edge server and continuously adjust the discount factor to maximize the reward value. Figure 3 The reward convergence curves under different discount factors are shown. =0.9, the reward value gradually converges after 200 iterations, and the reward value finally converges to around 3600; when the discount factor =0.99, the reward value gradually converges after 130 iterations, and the reward value finally converges to about 3500; =0.95, the reward value begins to converge after 100 iterations, and the reward value finally converges to around 4000, so the discount factor is finally Set to 0.95.

[0067] In this embodiment, a random selection algorithm R is set 2 、TOPK algorithmT 2 , KMP algorithm, P 2 The algorithm is used as a control method, and the profit results of each method are as follows Figure 4 As shown, from Figure 4 It can be seen that among all the methods, the profit value of the method of the present invention (abbreviated as KDQN) is generally maintained at the highest, showing the rationality of deploying services. Taking 6 edge servers as an example, the profit value of the method of the present invention is 918. The highest profit among the control methods is the KMP algorithm, with a profit value of 901, and the lowest profit is R 2 The profit value of the algorithm is 363, so the profit value of the method of the present invention is 1.02 to 2.52 times that of the control method. In addition, the stability of each method when 4 edge servers are used is compared. The results are as follows Figure 5 As shown, from Figure 5 It can be seen that the profit values ​​of the control methods are extremely unstable, such as the random selection algorithm R 2 Because it randomly decides the number of deployments of each service, the profit fluctuates significantly. 2Only the deployment of the service with the highest request rate is emphasized, and the profit is ignored. On the contrary, the method of the present invention shows strong robustness, is not only stable, but also always maintains the highest profit value, showing outstanding advantages.

[0068] In summary, according to the vehicle network mobile edge computing service deployment method based on deep reinforcement learning provided by the present invention, the MEC service deployment problem in the vehicle network environment is transformed into an optimization problem under multiple constraints, and the optimization goal is set to maximize the total revenue of the vehicle network mobile edge computing system. The improved KMeans method is first used to cluster base stations and vehicle users, and an edge server is deployed at the cluster center of each cluster. Then, the deep reinforcement learning network (DQN) algorithm is used to explore the service deployment strategy on each edge server. The deep reinforcement learning network algorithm is trained through state collection, action selection, action execution, experience storage, experience playback, parameter update, etc., and the remaining resources and unfinished tasks of the server are monitored in real time. The limited resources are reasonably used to complete the deployment of MEC services. By continuously adjusting and finding the optimal parameters of the algorithm, the total revenue of the system can be maximized, and it has high stability, which is conducive to the long-term stable development of the MEC system.

[0069] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.

[0070] Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.

Claims

1. A method for deploying mobile edge computing services in an Internet of Vehicles based on deep reinforcement learning, characterized in that: include: Step S1, constructing a mobile edge computing system for the Internet of Vehicles, obtaining the location information of each base station in the mobile edge computing system for the Internet of Vehicles, and using Poisson point process distribution to simulate the location distribution of vehicle users and task request types around each base station, taking maximizing total revenue as the optimization goal, establishing a revenue model for the system, and determining constraints based on the optimization goal; Step S2: In the mobile edge computing system of the Internet of Vehicles, the improved KMeans method is used to cluster the base stations and vehicle users, and an edge server is deployed at the cluster center of each cluster. The edge server provides computing services for the vehicle users in the corresponding cluster and collects the task queues sent by the vehicle users in the corresponding cluster. Step S3: Based on the optimization goal and constraints, the deep reinforcement learning network algorithm is used to solve the optimization goal, complete the service deployment on each edge server, decide the number of services deployed on each edge server, and calculate the final total revenue of the system; The revenue model satisfies the following conditions: ; in, P represents the total income, P j For the j The revenue of edge servers, J represents the total number of edge servers, Indicates j The first deployed on the edge server k The number of services, K Indicates the total number of service types, p k For the k The benefits of this service; The constraints are: ; ; ; ; ; ; ; in, Indicates i The base station forwards it to the j The computing resources required for the tasks of the edge servers, I Indicates the total number of base stations, Indicates whether the task is i The base station forwards it to the j Binary variables for edge servers, Indicates i Is the first j Binary variables for edge servers, Indicates i Is the first base station j A binary variable that establishes a connection with an edge server. Indicates k The storage resources required for the service. A It is the maximum storage resource of the edge server; There is a current state in the deep reinforcement learning network algorithm , Current Action and the current reward function ; ; ; ; in, Represents a queue of unfinished tasks collected by the server. Indicates the remaining storage resources of the server. Indicates k Services in t The number of deployments at a given moment; In experience replay, the Q-learning update formula used is: ; in, represents the Q-value function, represents the learning rate, is the current return, is the discount factor, Indicates the next state, Indicates the next action; Loss function of deep reinforcement learning network algorithm L for: ; in, E represents the expected function, and denote the action value functions estimated by the policy network and the target network, respectively.

2. The method for deploying mobile edge computing services for Internet of Vehicles based on deep reinforcement learning according to claim 1, characterized in that: In step S2, the improved KMeans method is used to cluster the base stations and vehicle users, and an edge server is deployed at the center of each cluster, specifically including: Step S21, determining the candidate location of the edge server according to the location information of the base station, the total number of edge servers J Represents the number of clusters, calculates the average load of each edge server, and sets the load threshold based on the average load; Step S22, select from the candidate locations of the edge server J The base stations are used as the initial cluster centers and the initial clustering is performed based on the Euclidean distance; Step S23, determine whether the load in each cluster exceeds the load threshold. For the target cluster that exceeds the load threshold, divide the base station farthest from the cluster center in the target cluster into other clusters. Finally, update the cluster center and return to step S22 for iteration until the set number of iterations is reached, and the clustering is ended. At this time, the cluster center is the initial deployment position of the edge server determined by the improved KMeans method.

3. The method for deploying mobile edge computing services for Internet of Vehicles based on deep reinforcement learning according to claim 2, characterized in that: In step S21, the load threshold The expression is: ; ; in, Indicates the average load of all base stations.

4. The method for deploying mobile edge computing services for Internet of Vehicles based on deep reinforcement learning according to claim 3, characterized in that: The training process of the deep reinforcement learning network algorithm is: Initialization: Initialize the parameters of the deep reinforcement learning network and set the initial value of the greedy strategy; State collection: Each edge server is regarded as an intelligent agent, which collects current state information from the environment. The current state information includes task queues, server resource conditions, and service requests of vehicle users. The environment consists of base stations and vehicle users that establish connections with edge servers. Action selection: According to the Q value output by the deep reinforcement learning network, the optimal action in the current state is selected, that is, the number of services deployed, and a greedy strategy is used to balance exploration and utilization; Execute actions: Deploy a corresponding number of services on edge servers based on the selected actions, and observe the changes in the environment and the rewards obtained after execution; Experience storage: store the current state, action, reward and next state in the experience replay pool; Experience replay: randomly extract samples from the experience replay pool for training, and use the Q-learning update formula to update the parameters of the deep reinforcement learning network; Parameter update: Periodically update the parameters of the policy network to the target network to complete the training of the deep reinforcement learning network algorithm.

Citation Information

Cited By

  • Unmanned aerial vehicle network edge service deployment method based on improved whale optimization algorithm

    CN120091320A

  • UAV network edge service deployment method based on improved whale optimization algorithm

    CN120091320B