A vehicle cooperative fog computing system based on multi-agent reinforcement learning

By introducing multi-agent reinforcement learning into the vehicle fog computing architecture, vehicles form a collaborative alliance to trade computing resources, solving the problems of vehicle autonomous service willingness and resource utilization, achieving efficient computing task allocation and resource utilization, and reducing service costs. time delay.

CN115099858BActive Publication Date: 2024-08-23TONGJI UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210734752.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-27
Publication Date
2024-08-23
Estimated Expiration
2042-06-27

AI Technical Summary

Technical Problem

In the existing vehicle fog computing architecture, vehicles are ignored as scheduling resources rather than autonomous nodes, which increases the complexity of task scheduling optimization and fails to effectively improve inter-vehicle computing services and resource utilization.

Method used

Design a vehicle collaborative fog computing system based on multi-agent reinforcement learning. The local fog server controls task allocation and resource transactions. Vehicle nodes form a collaborative alliance to conduct computing resource transactions. Multi-agent deep reinforcement learning algorithms are used to optimize transaction strategies and improve Computational efficiency.

Benefits of technology

It realizes the satisfaction of vehicles' autonomous service wishes, improves the throughput of computing tasks in the area, reduces service delay and transmission overhead, and improves the utilization of computing resources between vehicles.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115099858B
    Figure CN115099858B
Patent Text Reader

Abstract

The present invention discloses a vehicle collaborative computing system based on multi-agent deep reinforcement learning. The system includes a cloud layer where a remote server is located, a small cloud layer where a local fog server is located, and a fog layer where a vehicle is located. In the system, a vehicle-to-vehicle computing resource purchase architecture is constructed within the region of the local fog server, an alliance is formed between different vehicles for collaborative computing and information transmission, task delivery and information transmission are performed between the alliance and the local fog server, the local fog server performs resource pricing and resource trading based on the supply and demand of computing resources within the region, and the vehicle adopts a resource trading strategy based on the incentive mechanism and its own state by applying a multi-agent deep reinforcement learning algorithm to maximize its own benefits. Using the present invention, vehicles form a stable collaborative alliance with low complexity in different road conditions to share computing resources and unload tasks under the premise of satisfying their own wishes, effectively improving the task completion rate and computing power of edge fog nodes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle collaborative computing technology, and more specifically, to a vehicle collaborative fog computing system based on multi-agent reinforcement learning. Background Art

[0002] In recent years, with the proposal and development of the concepts of intelligent transportation systems and smart cities, the Internet of Vehicles has received more and more attention and research. As the number of intelligent vehicles gradually increases, the demand for computing tasks by on-board units (OBUs) is also increasing. Mobile applications such as virtual reality (VR), augmented reality (AR), autonomous driving, and various in-vehicle entertainment projects have further increased the requirements for computing volume and computing real-time performance. The computing power of the vehicle itself can no longer meet the demand, and the transmission delay of offloading computing tasks to remote servers is too expensive to meet some services with high real-time requirements (such as autonomous driving). Therefore, in order to solve this problem, the concept of vehicle fog computing (VFC) came into being.

[0003] The goal of fog computing is to bring remote computing and storage capabilities to the edge of the system. The VFC architecture mainly includes three layers: the cloud layer where remote servers and data centers are located, the cloudlet layer where local fog servers (LFS) are located, and the fog layer where vehicles are located. The role of the local fog server is to dispatch the computing tasks generated by the vehicle and decide whether to transmit them to the remote server or solve them in the fog layer. Local fog servers are widely distributed geographically, such as roadside central units (RSUs) and base stations (BSs). Their effective coverage areas can be regarded as service zones, and multiple service zones can cover a city. Under the VFC architecture, vehicles not only generate tasks but also provide services and are regarded as a computing and communication infrastructure. Vehicles to vehicles (V2V) and vehicles to facilities (V2I) communicate through dedicated short-range communication technology (DSRC). In the entire computing task processing process, the most critical question is "who will compute the task". After the vehicle generates a task, the LFS schedules the computing task and decides whether to offload it to a remote server, hand it over to the vehicle for processing within the local service area, or transmit it to the LFS in a neighboring service area for processing.

[0004] In the prior art, there are two main approaches to the task scheduling problem: one is to regard the entire scheduling task as an optimization problem. The overall goal is to minimize the task delay or energy consumption and assign the task to a designated vehicle while ensuring the user service experience (QoE) and service quality (QoS). For example, X. Wang et al., “Offloading in Internet of Vehicles: AFog-Enabled Real-Time Traffic Management System” (IEEE Transactions on Industrial Informatics, vol. 14, no. 10, pp. 4568-4578, Oct. 2018); the other is to provide incentives to vehicle users, including contract mechanisms, market-based monetary mechanisms, etc., to encourage vehicles to share their own computing and storage resources, thereby increasing the overall resource volume of the system. See Z. Zhou et al., “Computation Resource Allocation and Task Assignment Optimization in Vehicular Fog Computing: A Contract-Matching Approach” (IEEE Transactions on Vehicular Fog Computing, vol. 14, no. 10, pp. 4568-4578, Oct. 2018). Technology, vol.68, no.4, pp.3113-3125, April 2019) and R. Zhang et al., “Blockchain-Incentivized D2D and Mobile Edge Caching: A Deep Reinforcement Learning Approach” (IEEE Network, vol.34, no.4, pp.150-157, July / August 2020).

[0005] However, in the collaborative computing scheme under the existing VFC architecture, both from the perspective of overall optimization and from the perspective of incentive mechanism, vehicles are usually regarded as a resource that can be dispatched rather than a selfish node with interests, ignoring the potential of vehicles to autonomously adjust their structure to improve system efficiency. Since the optimization problem of task scheduling is an NP (non-deterministic polynomial) problem, as the number of intelligent vehicles increases further, the complexity of the scheduling optimization problem will continue to increase. Therefore, it is necessary to provide a practical solution to collaboratively consider the allocation of computing services and computing tasks between vehicles. Summary of the invention

[0006] The purpose of the present invention is to overcome the defects of the above-mentioned prior art and, for the vehicle fog computing architecture, design a multi-vehicle collaborative computing solution that meets the vehicle's autonomous computing service intentions, thereby effectively improving the computing efficiency of multi-vehicle collaboration, fully scheduling the service intentions and resource utilization between vehicles, and effectively improving the throughput of computing tasks within the region in a distributed manner.

[0007] The technical solution of the present invention is to provide a vehicle cooperative fog computing system based on multi-agent reinforcement learning, the system includes a cloud layer where a remote server is located, a small cloud layer where a local fog server is located, and a fog layer where a vehicle node is located, wherein: the local fog server, as a resource retailer, gives a unit computing resource buying and selling price for the service area, and controls the task allocation within the service area and the task transfer across service areas; the vehicle node forms a cooperative alliance according to the vehicle information within the range published by the local fog server, and trades computing resources and unloads computing tasks within the cooperative alliance; the leader vehicle of each cooperative alliance feeds back the alliance's status information to the local fog server, and the local fog server broadcasts it to all vehicles in the service area to assist the vehicle node in making transaction behavior decisions; the vehicles within the cooperative alliance reach a consensus on the unit computing resource buying and selling transaction price within the alliance through the intermediate market price pricing mechanism, and buy and sell computing resources based on the agreed price; and for the supply or request of excess computing resources within the cooperative alliance, the computing resources are bought and sold to the local fog server.

[0008] Compared with the prior art, the advantages of the present invention are that it provides a vehicle collaborative computing system based on multi-agent deep reinforcement learning under the vehicle fog computing architecture. In order to meet the vehicle's autonomous service intention and to encourage vehicles to offload vehicle-to-vehicle computing tasks and share computing resources, a P2P computing resource trading architecture is designed based on a collaborative alliance and collaborative pricing mechanism, allowing vehicles within the region to trade computing resources according to their own wishes, thereby achieving the matching of edge computing task services. Furthermore, in order to tap the potential computing power and collaborative efficiency of vehicles, a multi-agent deep reinforcement learning algorithm is designed, allowing each vehicle to collaboratively learn trading strategies within a continuous time slice, thereby effectively improving the computing efficiency of the local Internet of Vehicles for tasks, avoiding the transmission of tasks to the remote server, and thus reducing service delays and transmission overhead.

[0009] Further features and advantages of the present invention will become apparent from the following detailed description of exemplary embodiments of the present invention with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.

[0011] Figure 1is a schematic diagram of a vehicle fog computing architecture according to an embodiment of the present invention;

[0012] Figure 2 is a schematic diagram of a P2P computing resource transaction architecture under a vehicle fog computing architecture according to an embodiment of the present invention;

[0013] Figure 3 is a schematic diagram of the architecture of vehicle cooperative fog computing based on multi-agent reinforcement learning according to one embodiment of the present invention;

[0014] Figure 4 is a simulation graph of average rewards obtained by an agent in a simulation situation according to one embodiment of the present invention;

[0015] Figure 5 is a simulation diagram of rewards obtained on average by different algorithms in the process of training a model according to an embodiment of the present invention;

[0016] Figure 6 is a schematic diagram of rewards under different currency sensitivities of a multi-agent reinforcement learning algorithm according to one embodiment of the present invention;

[0017] Figure 7 is a schematic diagram of average task calculation delays of various algorithms under different vehicle calculation load distribution conditions according to an embodiment of the present invention;

[0018] Figure 8 It is a schematic diagram of average local task calculation completion ratios of various algorithms under different vehicle calculation load distribution conditions according to an embodiment of the present invention. DETAILED DESCRIPTION

[0019] Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values ​​set forth in these embodiments do not limit the scope of the present invention unless otherwise specifically stated.

[0020] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.

[0021] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.

[0022] In all examples shown and discussed herein, any specific values ​​should be interpreted as merely exemplary and not limiting. Therefore, other examples of the exemplary embodiments may have different values.

[0023] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.

[0024] Figure 1 It is a schematic diagram of the VFC architecture, which includes a cloud layer, a small cloud layer and a fog layer. The cloud layer contains a cloud database center and a cloud server, or a remote server. The small cloud layer contains a local fog server (LFS). The fog layer refers to the layer where vehicles (or vehicle nodes) are located. Local fog servers are widely distributed geographically, including roadside center units, base stations, etc. Their effective coverage areas can be regarded as service areas, and multiple service areas can cover a city. In the following, for the sake of clarity, the roadside center unit is used as an example of a local fog server, but it should be understood that the local fog server can also be of other types.

[0025] In short, the present invention provides a vehicle-to-vehicle collaborative computing solution based on multi-agent deep reinforcement learning under a P2P computing resource transaction architecture, which mainly includes the following contents:

[0026] 1) Based on the vehicle fog computing architecture, the roadside center unit is used as the resource control node in the service area (fog area). The roadside center unit realizes the sharing of computing resources between areas by connecting with external areas, and then realizes the buying and selling of computing resources for vehicles within the area at a given unit price within the area, thereby meeting the supply and demand requirements of computing resources for different vehicles.

[0027] 2) Under the constructed P2P resource trading framework, service vehicles that provide computing resources obtain currency by completing computing tasks, and task vehicles that request computing resources obtain computing services by spending currency.

[0028] 3) Vehicles form a collaborative trading alliance based on alliance game theory according to their willingness to provide computing resources and offload computing tasks, and trade computing resources and offload computing tasks within the formed collaborative trading alliance.

[0029] 4) To ensure the stability of the alliance, the alliance formation process requires consensus constraints on the speed, direction, and distance of vehicles. Only when the three attributes are within a certain range can the vehicles form an alliance.

[0030] 5) Based on the unit resource buying and selling prices provided by the roadside center units, the collaborative alliance formed by the vehicles uses the mid-market rate (MMR) mechanism to reach a consensus on the unit buying and selling prices of computing resources based on the market prices provided by the roadside center units, and conducts computing resource transactions within the collaborative alliance.

[0031] 6) The user node that successfully purchases computing resources offloads computing tasks to the vehicle service node of the purchased computing resources within the time that the collaborative computing alliance can last. The vehicle service node of the purchased computing resources needs to provide computing services within a certain period of time according to the amount of purchased computing resources.

[0032] 7) The environmental information of the vehicle collaborative computing scenario based on the P2P resource trading framework is jointly affected by multiple intelligent agents. At the same time, the environment observed by the vehicle intelligent agent is a true subset of the global environment, and the union of the environments observed by all vehicle intelligent agents is equivalent to the global environment.

[0033] 8) In the constructed multi-agent vehicle collaborative computing scenario, through the multi-agent reinforcement learning method, the vehicle collaborative computing problem is maximized based on individuals under the framework of centralized training and distributed execution, and the global benefit is optimized at the same time, thereby effectively improving the computing efficiency of the Internet of Vehicles.

[0034] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.

[0035] Firstly, a P2P computing resource trading architecture is designed for the Internet of Vehicles under the VFC architecture, which encourages vehicle nodes to trade computing resources with each other in the form of currency within the service area (fog area) to achieve computing task offloading and computing resource sharing.

[0036] Figure 2 This is a schematic diagram of the P2P computing resource transaction architecture under the VFC architecture. In the same service area and between different service areas, internal task allocation and cross-service area task transfer are carried out under the control of the roadside center unit of each service area. The sale and circulation of computing resources are realized based on the proposed P2P computing resource transaction architecture, and the roadside center unit assumes the identity of resource retailers within each area and gives the unit computing resource sale price for the area. In addition, within the influence range of the roadside center unit, the leader vehicle of each alliance (or collaborative alliance, collaborative computing alliance) should regularly report the state attributes of the alliance to the roadside center unit, including the number of overall computing resources of the alliance, the distribution location of each alliance member vehicle, etc., and then the roadside center unit broadcasts it to all vehicles in the area to assist vehicle nodes in making transaction behavior decisions. When a vehicle leaves or enters the influence range of a roadside unit, it is also necessary to notify the roadside center unit.

[0037] The above-mentioned collaborative alliance is formed based on the location distribution between vehicles and can change dynamically. For example, based on the vehicle information within the range published by the roadside center unit, the vehicle node relies on the constructed P2P computing resource transaction architecture to form a collaborative computing alliance, and conducts computing resource transactions and subsequent computing task offloading within the formed alliance. Considering that the roadside center unit is a computing resource retailer, the resource selling price provided is often lower than the resource acquisition price. The vehicle node directly buys and sells computing resources through the roadside center unit, which will cause a large monetary loss (monetary cost). In addition, considering the transmission bottleneck of the roadside center unit, V2V computing resource interaction within the local service area can save a lot of transmission costs and monetary costs. When forming a collaborative computing alliance, mobile vehicle nodes need to consider the movement trend and communication rate between each other to form a collaborative computing alliance that can communicate stably for a period of time. After the collaborative computing alliance is formed, the vehicles within the alliance reach a consensus on the unit computing resource trading transaction price within the alliance through the MMR pricing mechanism, and conduct computing resource trading based on the agreed price. For the excess computing resource supply or request within the alliance, computing resources are then traded to the roadside center unit. Under this design, the vehicle collaborative computing solution is distributed rather than centralized, which can effectively utilize the remaining resources of vehicles within each alliance and reduce transmission latency.

[0038] In one embodiment, the formation of a collaborative computing alliance is modeled using an alliance game theory framework. Each collaborative alliance is evaluated with a certain utility value based on the capabilities of its internal vehicles. The utility value is related to the proposed P2P computing resource transaction architecture, and the higher the utility value, the greater the payoff increment that the vehicle node within the alliance can obtain compared to directly trading with the roadside center unit. Each vehicle estimates the benefits that can be obtained by joining each alliance based on the alliance formation algorithm and the incentive mechanism, and then forms a stable alliance architecture in a distributed manner within the system, and maximizes the benefits that can be obtained by joining or exiting the existing alliance. In the solution of the present invention, the alliance is transferable utility (TU), and the utility of the alliance itself is distributed based on the MMR pricing mechanism, which is converted into the benefits that each vehicle user can obtain. Finally, under the constraints of speed direction and distance, through continuous exchange of alliances, the alliance structure within the service area tends to be stable, and the alliance under this structure also has the greatest total utility. Through theoretical proof, it can be found that under certain communication conditions, vehicles always tend to form a huge alliance and cooperate with each other to obtain the maximum benefits. The monetary accounting of each vehicle is the responsibility of the roadside unit within the service area.

[0039] Considering that there are multiple vehicles in the vehicle-to-vehicle collaborative computing scenario based on the P2P computing resource trading framework, and the state information of the environment is jointly affected by the decisions executed by multiple vehicle nodes, in one embodiment, the computing resource trading problem in the scenario is modeled as a partially observable Markov decision process (POMDP), and each agent (vehicle node) independently observes the environmental information, and applies a multi-agent deep reinforcement learning method to learn the best resource trading behavior strategy under the current scenario state. Specifically, based on the deep reinforcement learning algorithm architecture of Soft Actor-Critic, the attention mechanism and the gated recurrent unit (GRU) are introduced, and the multi-agent gated actor-attention critic (MA-GAC) algorithm is adopted. The framework of distributed execution with centralized training is used to learn the long-term benefit maximization strategy for each agent in the multi-agent dynamic scenario, thereby optimizing the global benefit.

[0040] Figure 3 This is a schematic diagram of the vehicle collaborative fog computing architecture based on multi-agent reinforcement learning. When the vehicles do not form a collaborative alliance, each vehicle has its own computing resources or computing tasks. Through alliance game and MMR pricing mechanism, a stable collaborative computing alliance is formed between individual vehicles. The MMR pricing mechanism determines the unit resource transaction price within the collaborative alliance, and then the computing resource transaction strategy is learned through the proposed MA-GAC deep reinforcement learning algorithm, which ultimately improves the completion of computing tasks within the system, the efficient use of computing resources, and reduces currency consumption.

[0041] Furthermore, based on the above construction and definition of collaborative computing, a collaborative computing solution based on the P2P resource transaction framework and multi-agent deep reinforcement learning is designed, including the following steps:

[0042] Step S1: construct a topology diagram based on the alliance information and leader vehicle position obtained from vehicle feedback, and initialize each node in the diagram:

[0043] S1.1) Each vehicle node runs the MA-GAC algorithm to obtain the willingness to buy and sell its own computing resources according to the current information status;

[0044] S1.2) Based on the willingness to buy and sell resources, each vehicle node creates an alliance that only includes itself;

[0045] S1.3) According to the communication constraints and resource transaction supply and demand constraints, add the alliances that meet the constraints as candidate alliances.

[0046] Step S2, collaborative alliance iterative convergence:

[0047] S2.1) Repeat the following process;

[0048] S2.2) From the vehicle node V i Select Alliance C from the list of candidate alliances k :V i Comparing direct transactions with roadside center units and joining alliances for collaborative calculations, the estimated reduction in currency consumption is the benefit; if joining alliance C k Can get more estimated benefits, then V i Leave the current alliance and join C k ;

[0049] S2.3) updating the candidate alliance list and the current alliance list;

[0050] S2.4) until the alliance structure is stable.

[0051] Step S3, pricing of resources within the alliance:

[0052] S3.1) For any alliance C k , marking the total computing resource demand within the alliance as D k , the total computing resource supply is S k , the unit resource purchase price provided by the roadside center unit is p b , the selling price of a unit resource is p s , the MMR mechanism distributes the currency consumption caused by the excess buying and selling demand to the corresponding party, and gives the buying and selling prices of unit resources within the alliance for the following three situations:

[0053] If D k =S k ,but

[0054] If D k k ,but

[0055] If D k =S k ,but

[0056] S3.2) Alliance members trade computing resources with each other based on the obtained unit resource buying and selling prices within the alliance;

[0057] ​S3.3) Excess computing demand or computing supply within the alliance will be handed over to the roadside center unit for task offloading or computing resource use.

[0058] Step S4, complete the calculation:

[0059] S4.1) The roadside central unit RSU selects an alliance within a range to issue a task;

[0060] S4.2) The alliance leader vehicle sends the task to the alliance member vehicles;

[0061] S4.3) Alliance member vehicles complete the task and transmit the task back to the leader vehicle;

[0062] S4.4) The leader vehicle transmits the task data to the RSU, and the task is completed.

[0063] In summary, the present invention has the following technical effects: the transaction learning strategy and alliance formation algorithm based on multi-agent deep reinforcement learning have lower time complexity and higher long-term benefits in the actual operation process; since the remote server provides sufficient computing resources and storage resources, but consumes a lot of transmission costs, the resource collaboration scheduling between multiple vehicles is more efficient and time-saving, which can improve the user experience; the vehicle alliance assists each other in information relay transmission to ensure the continuity of data transmission and data accessibility between vehicles, and provides stable computing services under the premise of ensuring wireless transmission channels; each agent observes the communication channel status information in the edge environment, the vehicle computing resource information within the area, the historical buying and selling price information of the roadside center node and other related information, designs a deep learning network based on the performer-critic reinforcement learning architecture, learns efficient multi-agent transaction strategies, and realizes a low-complexity collaborative computing solution between vehicles.

[0064] In order to further verify the effect of the present invention, a comparative experiment was conducted. The following compares the local task completion rates under different environmental parameters in the VFC architecture. In the simulation, the generation process of the computing task and the process of the vehicle arriving at the service area are both considered to obey the Poisson distribution, and the overall task completion rate can be used to measure the service area's ability to handle tasks. Table 1 below shows the simulation parameters, where the currency consumption weight represents the weight value when comparing the computing performance benefits with the currency consumption expenditure. The smaller the weight, the less attention is paid to the impact of currency consumption on the final reward.

[0065] Table 1 Simulation parameters

[0066]

[0067]

[0068] Figure 4is the average reward trend obtained by an optional agent during the simulation process, where the top curve corresponds to the present invention, and the reward is defined as the service quality gain minus the currency paid. Figure 4 It can be seen that the proposed MA-GAC algorithm is better than the direct transaction (Trade Forward, TF) algorithm and the naive greedy offloading ( Greedy Offloading, NGO) schemes have higher long-term rewards, which are in line with the expectations of the agent.

[0069] Figure 5 The reward trend graphs of six algorithms during the centralized model training process are shown. The six algorithms are the proposed MA-GAC (corresponding to the top curve), the multi-agent reinforcement learning algorithm MADDPG with traditional deterministic strategy, the single-agent reinforcement learning algorithm IQL-DDPG, the direct transaction algorithm TF, the naive greedy offloading NGO, and the NAT algorithm that does not participate in offloading and only calculates itself. Figure 5 It can be seen that the proposed MA-GAC algorithm not only has a faster convergence performance, but also far outperforms the other algorithms in the final performance.

[0070] Figure 6 The influence of currency consumption weight on the training process is compared. It can be found that the size of currency consumption weight ω does not affect the convergence performance of MA-GAC. In order to test the robustness of the proposed algorithm, Figure 7 The average task completion delay of different algorithms for different vehicle computational load distributions is compared in the form of a box plot. When the computational load is small, most of the computational tasks can be completed locally. In particular, since the NGO algorithm does not involve the sale of computing resources, the task completion delay is the lowest when the computational load is small. However, as the computational load increases further, the proposed MA-GAC algorithm shows extremely strong robustness and can ensure that the computational tasks are generally completed in about 0.1 seconds. In contrast, the average completion delay of the TF algorithm is similar, while the NGO algorithm consumes about 30% more latency.

[0071] Figure 8 The offloading ratio of local computing tasks is shown. It can be seen that the proposed MA-GAC algorithm can always guarantee the highest local computing task completion ratio. In other words, it can maximize the use of local computing resources, and the local computing task completion ratio is about 90% to 95%, while the local task completion ratio of the NGO algorithm will drop to 80% at the lowest, and the TF algorithm will drop to 86% at the lowest. By comparison, the superiority of the MA-GAC algorithm proposed in the present invention can be found. Through the collaborative approach and the algorithm of multi-agent deep reinforcement learning, the utilization efficiency of local computing resources can be further explored.

[0072] In summary, the present invention considers the problem of collaborative computing in a distributed manner from the perspective of vehicle behavior strategy. First, the problem of matching computing services and computing tasks between vehicles and the autonomous transaction willingness of vehicles are considered, and an incentive mechanism is designed to model the problem of computing task unloading within the service area (for example, the communication area covered by the roadside center unit) as a P2P computing resource transaction problem, and to monetize the efficient use of computing resources between vehicle users. Furthermore, in order to build a collaborative computing relationship between multiple vehicles, the method of alliance game is adopted. In the alliance game, the players participating in the game form alliance collaboration to obtain greater benefits. By setting a reasonable alliance utility value, an internal collaborative pricing mechanism within the alliance, and the revenue value that players can obtain by joining the alliance, vehicle user nodes can choose to form a collaborative computing alliance with each other. Each alliance contains a matching relationship between multiple task vehicle nodes and resource vehicle nodes, thereby realizing a stable distributed vehicle collaborative computing structure. Furthermore, in order to explore the collaboration efficiency between vehicle nodes in the area, the vehicle collaborative computing scenario within the service area is modeled as a dynamic environment in which multiple agents participate in interaction. A multi-agent deep reinforcement learning algorithm is designed based on the Partially Observable Markov Decision Process to improve the collaboration capability between local vehicles, thereby improving the utilization efficiency of vehicle computing resources and their respective long-term benefits.

[0073] The present invention may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present invention.

[0074] Computer readable storage medium can be a tangible device that can hold and store instructions used by an instruction execution device. Computer readable storage medium can be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof. More specific examples (non-exhaustive list) of computer readable storage medium include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, for example, a punch card or a convex structure in a groove on which instructions are stored, and any suitable combination thereof. The computer readable storage medium used here is not interpreted as a transient signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagated by a waveguide or other transmission medium (for example, a light pulse by an optical fiber cable), or an electrical signal transmitted by a wire.

[0075] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0076] The computer program instructions for performing the operation of the present invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, Python, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be personalized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present invention.

[0077] Various aspects of the present invention are described herein with reference to the flow charts and / or block diagrams of the methods, devices (systems) and computer program products according to embodiments of the present invention. It should be understood that each box of the flow chart and / or block diagram and the combination of each box in the flow chart and / or block diagram can be implemented by computer-readable program instructions.

[0078] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0079] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0080] The flow charts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a part of a module, a program segment or an instruction, and a part of the module, a program segment or an instruction contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented by a dedicated hardware-based system that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that it is equivalent to implement it by hardware, implement it by software, and implement it by combining software and hardware.

[0081] Embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the marketplace, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the present invention is defined by the appended claims.

Claims

1. A vehicle cooperative fog computing system based on multi-agent reinforcement learning, the system comprising a cloud layer where a remote server is located, a small cloud layer where a local fog server is located, and a fog layer where a vehicle node is located, characterized in that: As a resource retailer, the local fog server gives the buying and selling prices of unit computing resources within the service area, and controls the task allocation within the service area and the task transfer across service areas; The vehicle nodes form a collaborative alliance based on the vehicle information within the range published by the local fog server, and trade computing resources and offload computing tasks within the collaborative alliance; The leader vehicle of each collaborative alliance feeds back the alliance status information to the local fog server, which then broadcasts it to all vehicles in the service area to assist vehicle nodes in making transaction behavior decisions. Vehicles within the collaborative alliance reach a consensus on the transaction price of computing resources within the alliance through the intermediate market pricing mechanism, and then buy and sell computing resources based on the agreed price; and for the supply or request of excess computing resources within the collaborative alliance, they buy and sell computing resources to local fog servers; Among them, for the vehicle nodes in the fog layer, the computing resource transaction problem between the vehicle nodes is modeled as a partially observable Markov decision process, with the vehicle nodes as intelligent agents, and each intelligent agent independently observes the environmental information to learn the best resource transaction behavior strategy under the current scene state, so as to maximize the benefits of the vehicle node collaborative computing problem based on individuals and optimize the global benefits; The environmental information is jointly affected by multiple intelligent agents, the environment observed by each intelligent agent is a proper subset of the global environment, and the union of the environments observed by all intelligent agents is equivalent to the global environment.

2. The system according to claim 1, characterized in that The collaborative alliance is constructed based on the alliance game theory. Each collaborative alliance is evaluated with a corresponding utility value according to the capabilities of its internal vehicles. The utility value reflects the incremental benefits that the vehicle nodes within the collaborative alliance can obtain compared to directly exchanging with the local fog server. Each vehicle node estimates the benefits that can be obtained by joining each collaborative alliance based on the incentive mechanism, and maximizes its own benefits by joining candidate collaborative alliances or exiting existing collaborative alliances.

3. The system according to claim 1, characterized in that Within the collaborative alliance, vehicles independently determine the number of transactions based on their relative demand for computing resources and currency, and jointly determine the transaction unit price through collaboration, thereby performing bilateral matching of computing resources and computing needs on the premise of satisfying the supply and demand intentions of both parties.

4. The system according to claim 1, characterized in that The collaborative alliance reaches an agreement on the buying and selling prices of unit computing resources based on the market price provided by the local fog server, and conducts computing resource transactions within the collaborative alliance. The vehicle nodes are regarded as rational nodes, and the resource purchase price paid is not higher than the unit computing resource selling price provided by the local fog server, and the marked computing resource selling price is not lower than the unit computing resource purchase price provided by the local fog server.

5. The system according to claim 3, characterized in that The vehicle node autonomously and voluntarily decides whether to buy or sell resources in each time slice, and this behavior has temporal continuity.

6. The system according to claim 1, characterized in that The environmental information observed by each intelligent agent includes communication channel status information, vehicle computing resource information within the corresponding service area, and historical buying and selling price information of the local fog server.

7. The system according to claim 1, characterized in that For Collaborative Alliance C k , and set its internal unit computing resource buying and selling prices to: If D k =S k ,but If D k k ,but ​ If D k =S k ,but Among them, D k The total computing resource demand within the alliance is D k , S k is the overall computing resource supply, p b is the unit resource purchase price provided by the local fog server, p s is the selling price per unit resource, and Alliance C k The buying and selling prices of internal unit resources.

8. The system according to claim 5, characterized in that The service vehicles that provide computing resources obtain currency by completing computing tasks, and the task vehicles that request computing resources obtain computing services by spending currency. In each time slice, different vehicles can only perform a set number of buying and selling operations on computing resources, and this buying and selling operation guarantees that the ownership of the computing resources will be transferred to the buyer within a period of time, and the seller will provide computing services to complete the computing tasks issued by the buyer. The number of computing resource transactions per transaction is limited to a set range.