Vehicle-road cooperation data sensing method based on edge computing gateway
Building collaborative sensing models and Q-learning collaborative learning through edge computing gateways solves the problem of locality of autonomous vehicle sensing data, achieves resource optimization and intelligent collaborative sensing, and improves road safety.
Patent Information
- Application Number
- CN202410891337.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2024-10-11
AI Technical Summary
In the existing technology, autonomous vehicle sensing data has high spatial and temporal locality, which results in each vehicle needing to process all sensing data independently, resulting in insufficient resource utilization and difficulty in achieving effective vehicle-road collaborative data scheduling.
The vehicle-road collaborative data sensing method based on edge computing gateway is used to build a collaborative sensing model, and realize intelligent distribution and collaborative processing of data through task scheduling, priority determination and Q-learning collaborative learning.
Optimize the resource utilization of self-driving vehicles through task scheduling and priority determination, avoid each vehicle processing data independently, achieve more efficient vehicle-road collaborative perception, improve road safety, and learn the best route through Q-learning to achieve intelligent collaboration .
Smart Images

Figure CN118764483A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of autonomous driving technology, and more specifically, to a vehicle-road collaborative data perception method based on an edge computing gateway. Background Art
[0002] In the prior art, the sensing data usually has a high spatial and temporal locality, that is, the sensing data is the same in a section and is only important to the autonomous driving cars in the section within a specific time period, so that not every autonomous driving car needs to process all the sensed data individually.
[0003] Therefore, the present invention provides a vehicle-road collaborative data perception method based on edge computing gateway, which improves the above-mentioned technical problems. Summary of the invention
[0004] The disclosed embodiments aim to address the deficiencies in the prior art and provide a vehicle-road cooperative data perception method based on an edge computing gateway. The present invention solves the multi-task and multi-objective scheduling problem of vehicle-road cooperative data with allocation constraints.
[0005] The above technical objectives of the present invention are achieved through the following technical solutions: a vehicle-road collaborative data perception method based on edge computing gateway, the method comprising the following steps:
[0006] S1. Build a collaborative perception model based on edge computing;
[0007] S2. Schedule the tasks in the collaborative perception model based on edge computing to obtain the optimal solution;
[0008] S3. Determine the priority of autonomous driving participating in collaborative perception;
[0009] S4. Determination of the mission target vehicle;
[0010] S5. End-edge-cloud collaboration based on Q-learning enables each vehicle to receive cloud / edge feedback to learn the optimal route.
[0011] As a preferred technical solution of the present invention, the process of constructing a collaborative perception model based on edge computing is as follows: first, the vehicle detects neighbors through a V2V link; the vehicle sends a detection message to other vehicles, and vehicles with no packet loss and short round-trip time are regarded as neighbors; it is assumed that the neighbors detected in a time slot will not change due to the short time slot length, but the neighbors in different time slots may change due to the mobility of the vehicle; for vehicle i∈M, j∈M\{i}; δ ij =δ ji =1 means that the vehicles are neighbors; otherwise, δ ij =δ ji=0; use δ i =(δi1, ..., δ iM ) T Indicates AV i The neighborhood vector of 1 , …, δ M ) indicates AV i The neighborhood matrix of all vehicles in the area during a certain period of time; in addition to the neighbor vector, AV s The available resources ci and the mission vector si generated by the vehicle need to be reported to the RSU in each time slot; where s i =(s i1 ,…,s iK ) T ;s iK Indicates AV i The number of tasks of type K generated, and S = (s 1 ,…,s M ) represents the mission matrix of all vehicles in the area;
[0012] The RSU makes a scheduling decision based on the information (S, C, Δ) collected in a time slot and sends the result back to the vehicles in the area;
[0013] AV performs task offloading based on the decision results, and reports the task results to RSU after completion for further acquisition of other vehicles.
[0014] As a preferred technical solution of the present invention, the process of scheduling tasks in the collaborative perception model based on edge computing to obtain the optimal solution is as follows: within a given time slot, for the decision variable x i , Used to indicate AV i Whether the task can be completed, x i =1 means AV i The task is completed with the assistance of the neighbor's vehicle or by the driver himself; the latent variable y ijk Indicates the need for AV j Uninstall to AV i The number of k types of tasks executed on the time slot; the scheduling problem within a specific time slot is expressed as follows:
[0015]
[0016] x i ∈{0,1},y ijk ∈Z+∪{0} (1d)
[0017] Where M represents the AV in cooperative perception s The number and number of groups; K represents the number and set of task types; R represents the number and set of resource types; si represents the task request vector of vehicle i; S represents the task request matrix of all AVs in a time slot; ω i represents the resource requirement vector of task type i; W represents the resource requirement matrix of each type of task; c i Represents AVs used in collaborative sensing i The available resources; C represents the resources of all vehicles in a time period; δ ij Indicates AV i The neighboring vector of x i Indicates AV i The decision variable indicates whether the task is completed with the assistance of other vehicles, x i ∈{0,1};y ijk Indicates from AV j Transfer to AV i The latent decision variables for the k types of tasks to be performed, y ijk ∈Z + U{0}.
[0018] As a preferred technical solution of the present invention, formula (1b) represents Av i , the number of tasks of each type for i∈M that can be successfully completed with the help of other vehicles and is equal to the number of tasks actually performed by its corresponding neighbors; Formula (1c) shows that the resource occupancy for all tasks performed on each AV cannot exceed the AV's capacity for any type of resource; Formula (1d) shows that x i The value of y is 0 or 1. ijk is a non-negative integer;
[0019] An example of task scheduling in the proposed model is given to illustrate the effectiveness of task offloading in the architecture. There are three participating AVs with three resources c 1 =(8,11,16) T , c 2 =(2,3,4) T , c 3 =(2,4,5) T ; There are two types of tasks, and the resource requirements of each type of task are ω 1 =(2,3,4) T and ω 2 =(3,4,5) T ; The number of two types of tasks generated by the three vehicles are s 1 =(1,0) T 、s 2 =(1,1) T and 3 =(1,1) T ; If task scheduling is not performed, the number of AVs that can complete the production task is 1, that is, AV1.
[0020] As a preferred technical solution of the present invention, the process of determining the priority of autonomous driving participating in collaborative perception is: analyzing the state of AV and constructing a standard for determining AV scheduling priority; introducing the number of neighbors, the balance of tasks and their impact on vehicle priority, and then constructing a priority determination formula.
[0021] As a preferred technical solution of the present invention, the process of introducing the number of neighbors is as follows: the definition of vehicle neighbors is a group of AVs with stable connections detected by the vehicle at the beginning of a time slot; i , i∈M, It is represented by the number of its neighbors;
[0022] For two AVs with the same task request i , j∈M, i≠j, that is, s i =s j If h i <h j , vehicle i should have a higher priority than j because the selectivity of vehicle i’s neighbors is small;
[0023] The process of introducing task balance is as follows: different sensors in V generate different data, and different data processing tasks have different resource requirements; the resource requirements of the task will also affect the goal in formula (1a); for tasks of type k, It is expressed as:
[0024] The maximum difference in the resource requirements of the normalized dimension of k types of tasks; larger values indicate greater imbalance; if a vehicle generates many unbalanced tasks, the successful unloading of these tasks will lead to rapid exhaustion of specific types of resources in the target vehicle; eventually, no more tasks can be completed, and the number of vehicles that can complete tasks decreases;
[0025] The process of determining vehicle priority is as follows: The total resource requirement (RRAT) of all tasks generated by AV is also an important factor affecting the number of vehicles that can complete its tasks; s When the total amount of resources owned remains unchanged, the fewer resources a task requires, the greater the number of tasks completed;
[0026] According to the RRAT, BDR and NoN of the task, a priority determination formula is designed, as shown in formula (3). Formula (3) is a vehicle priority determination method based on BDR, NoN and RRAT; i The smaller it is, the lower the priority;
[0027]
[0028] Among them, q(hi ) is the contribution function of NoN, h i is the number of neighbors of AVi; g(B(k)) is the contribution function of BDR, and B(k) is the BDR of task type k.
[0029] As a preferred technical solution of the present invention, the process of determining the target vehicle of the task is as follows: determining the target vehicle for executing the task generated by the AV. At this stage, the target vehicle of the task is determined, that is, confirming which neighbors hold the task; using the resource adaptability between the task and the vehicle to determine the target vehicle; in the proposed model, the AV has R resources and generates K tasks, which represent data processing from different sensors; different task types k, Requires different amounts of R-type resources, expressed as AV that needs task offloading i ,i∈M determines the target vehicle for its task according to the resource adaptability of the task and the vehicle;
[0030] For the type And the candidate target vehicle For tasks, the resource fitness f(k,j) is expressed as:
[0031]
[0032] Among them, for tasks of type k, the vehicle with the smallest f(k,j) will be selected from its neighbor set; the smaller f(k,j), the higher the consistency between the resource requirements of the task to be unloaded and the currently available resources of the target vehicle; this helps to reduce resource ratio and waste.
[0033] As a preferred technical solution of the present invention, the end-edge-cloud collaboration based on Q-learning enables each vehicle to receive cloud / edge feedback to learn the optimal route, and the process is: Q-learning model definition and Q-learning update.
[0034] As a preferred technical solution of the present invention, the Q-learning model definition process is as follows: the possible actions of each node will be the set of its one-hop neighbors, including infrastructure; V2I is responsible for sending back rewards for each action performed by the vehicle, and the rewards will be further delivered through other edge vehicles at a discount; each vehicle adjusts its behavior based on the feedback from V2I, and the information exchange between agents is completed through hello messages. Each node maintains a Q table, in which each Q value shows the value of selecting m as the next hop of the RSU;
[0035] The update process of Q-learning is: the state is represented by a pair of {destination, current node}, and the action is determined by {communication type, next hop}; in the case of using cellular communication, the next hop will be V2I.
[0036] As a preferred technical solution of the present invention, a hierarchical routing method is used, in which there are gateway nodes at different levels; for each vehicle, at least one neighbor is an edge node, which acts as a gateway node and is responsible for finding the route to any other vehicle; V2I also performs the duties of a gateway, and after receiving a hello message from node m, node c updates the corresponding Q value to:
[0037]
[0038] Where d and t are the target node and communication type respectively; LQ(c,m) is the link quality value between nodes c and m, expressed as the Hello reception ratio between the two nodes; NB m represents the one-hop neighbor set of node m;
[0039] The learning rate α and discount rate γ are set to 0.8 and 0.9 respectively; the reward R m The calculation is as follows:
[0040]
[0041] in, The infrastructure allocates the nodes based on the number of vehicles connected to the infrastructure. The infrastructure will set rewards based on the vehicle density. If the density is high, the cloud will give a high reward to the corresponding edge candidate, which is further discounted based on the number of hops. This exploration is achieved by exchanging hello messages between neighbors. Therefore, for route selection, each node can always choose the node pair and communication type that shows the highest Q value.
[0042] In the case of a V2V communication route, the reward is updated to:
[0043]
[0044] Each edge vehicle attaches its own cost (corresponding Q-value) to its neighbors in the hello message; when receiving a hello message from a neighbor vehicle, the vehicle can update the corresponding cost in the case of using the neighbor as the next hop based on the Q-learning algorithm.
[0045] In summary, the present invention has the following beneficial effects:
[0046] First, an edge computing-based collaborative sensing model is constructed for collaborative sensing, which takes into account some practical conditions of AVs, such as the participation of multiple types of resources, the heterogeneity of tasks and AV resources, and the transmission constraints of each participating AV.
[0047] Second, by scheduling tasks in the collaborative perception model based on edge computing, the optimal solution is obtained; and the priority of autonomous driving participating in collaborative perception and the determination of the mission target vehicles are determined to better utilize the resources of autonomous driving vehicles to obtain better collaborative perception; avoiding the phenomenon that each autonomous driving vehicle needs to process all sensed data individually.
[0048] Third, the end-edge-cloud collaboration based on Q-learning enables each vehicle to receive cloud / edge feedback to learn the optimal route and achieve intelligent collaboration. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 A flow chart of a vehicle-road collaborative data perception method based on an edge computing gateway provided in an embodiment of the present invention;
[0050] Figure 2 A task scheduling framework diagram of a collaborative perception model based on edge computing provided by an embodiment of the present invention;
[0051] Figure 3 a is provided in the embodiment of the present invention without executing task scheduling;
[0052] Figure 3 b is an execution task plan provided by an embodiment of the present invention;
[0053] Figure 4 a is the impact of vehicles with more NoN offloading on the number of AVs that can complete the task provided by an embodiment of the present invention;
[0054] Figure 4 b shows the impact of vehicles without NoN offloading on the number of AVs that can complete the task provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0055] The present application is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present application, but do not limit the present application in any form. It should be noted that, for those of ordinary skill in the art, several variations and improvements can also be made without departing from the concept of the present application. These all belong to the protection scope of the present application.
[0056] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0057] It should be noted that, if there is no conflict, the various features in the embodiments of the present application can be combined with each other, all within the scope of protection of the present application. In addition, although the functional module division is performed in the device schematic diagram and the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in a sequence different from the module division in the device or the flow chart. In addition, the words "first", "second", "third", etc. used herein do not limit the data and execution order, but only distinguish the same items or similar items with basically the same functions and effects.
[0058] Unless otherwise defined, all technical and scientific terms used in this specification have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used in this specification and in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The term "and / or" used in this specification includes any and all combinations of one or more of the related listed items.
[0059] In addition, the technical features involved in each embodiment of the present application described below can be combined with each other as long as they do not conflict with each other.
[0060] Please refer to Figure 1 , Figure 1 The flowchart of the vehicle-road cooperative data perception method based on the edge computing gateway according to the embodiment of the present disclosure is shown. The overall process mainly includes the following 5 steps:
[0061] S1. Build a collaborative perception model based on edge computing.
[0062] Specifically, in this embodiment, the urban area is divided into several small areas, and there is an autonomous driving car in the roadside unit (RSU) located in the center of the area. The area size is determined by the communication capability of the RSU, and a larger area size means that more autonomous driving vehicles (AVs) can participate in collaborative sensing. Therefore, the number of participating AVs is the key parameter behind the area size. Focusing on one of the areas, the research results of this area can be applied to other areas. The RSU is equipped with communication equipment and connected to the edge server, which acts as a scheduler to provide services for the autonomous driving vehicles in the area.
[0063] In an area, assume that there are M AVs participating in cooperative sensing, and M = {1, 2, ···, M} is used to represent the AV set. AVs can be connected to RSUs via vehicle-to-infrastructure (V2I) links and can be connected to each other via vehicle-to-vehicle (V2V) links.
[0064] It is assumed that an AV or RSU can communicate with multiple AVs simultaneously and there is no interference in these communication links. AV is equipped with communication and computing devices and can be regarded as a small server with radio capabilities. There are R types of resources, denoted as R = {1, 2,····, R}, such as CPU, RAM, and disk size. Due to many factors, such as the price of the vehicle and the software carried on the vehicle, an autonomous vehicle can have different numbers of different types of resources. Use To represent AV i , the number of different resources owned by i∈M, and use C=(c 1 , …, c M ) to represent the resource matrix of all AVs in the area. AVs can not only perform tasks on themselves, but also perform tasks from other connected vehicles in a virtualized manner (e.g., virtual machines).
[0065] In collaborative sensing, environmental information is obtained by processing data from different types of sensors (such as cameras, lidars, and radars). Different sensors have different data generation rates. Each type of sensor corresponds to a type of task. There are K types of tasks, denoted by K = {1, 2, ···, K}. A specific task can be represented by a vector To indicate that Represents the number of R type resources required by K type tasks. 1 ,ω 2 ,…,ω K ) represents the resource requirement matrix for all task types. Vehicles can generate different numbers and types of tasks, which can be performed on the self-driving car or offloaded to connected self-driving cars to be performed partially or fully via the V2V link.
[0066] Assume that tasks can only be transmitted in one hop, that is, tasks cannot be transmitted to other AVs through multi-hop relays; thus, task scheduling and offloading are based on time slots, such as Figure 2As shown. The block diagram shows the implementation process of the central RSU and AV in time slot t; after entering the area, the vehicle synchronizes its time slot and reports the necessary information to the RSU. When the vehicle establishes a connection with the RSU in the RSU's time slot t, the vehicle will participate in the next scheduling decision in the RSU's time slot t+1, and the reported information will be used for the task scheduling of the next time slot. Here, the time slot length of the RSU should be the same as the time slot length of each vehicle; the entire collaborative perception process can be divided into three steps:
[0067] First, the vehicle detects neighbors through the V2V link; the vehicle sends detection messages to other vehicles, and vehicles with no packet loss and short round-trip time are considered neighbors; it is assumed that the neighbors detected in a time slot will not change due to the short time slot length, but the neighbors in different time slots may change due to the mobility of the vehicle. For vehicle i∈M, j∈M\{i}; δ ij =δ ji =1 means that the vehicles are neighbors; otherwise, δ ij =δ ji =0; use δ i =(δ i1 , …, δ iM ) T Indicates AV i The neighborhood vector of 1 , …, δ M ) indicates AV i The neighborhood matrix of all vehicles in the area during a certain period of time; in addition to the neighbor vector, AV s The available resources ci and the mission vector si generated by the vehicle need to be reported to the RSU in each time slot. i =(s i1 ,…,s iK ) T ;s iK Indicates AV i The number of tasks of type K generated, and S = (s 1 ,…,s M ) represents the mission matrix of all vehicles in the area.
[0068] Second, the RSU makes a scheduling decision based on the information (S, C, Δ) collected within a time slot and sends the result back to the vehicles in the area.
[0069] Finally, AV performs task offloading according to the decision results, and reports the task results to RSU after completion for further acquisition of other vehicles.
[0070] S2. Schedule the tasks in the collaborative perception model based on edge computing to obtain the optimal solution.
[0071] On the basis of better resource utilization and road safety improvement in the edge computing-based collaborative perception model, the more vehicles that complete the sensor data processing tasks in a time period, the more environmental information is obtained, and road safety is improved. However, due to the high spatial and temporal locality of environmental information, if most AVs are able to complete their tasks, the remaining AVs can still perceive the environment through the completed tasks in the proposed architecture. Therefore, the number of autonomous vehicles that complete the tasks in a time period represents the degree of perceived environmental information that can be obtained, and the goal is to maximize this number.
[0072] In a given time slot, for the decision variable x i , Used to indicate AV i Whether the task can be completed, x i =1 means AV i The task was completed with the assistance of a neighbor's vehicle or by the driver himself. The latent variable y ijk Indicates the need for AV j Uninstall to AV i The number of tasks of type k executed on the time slot. The scheduling problem within a specific time slot is expressed as follows:
[0073]
[0074] x i ∈{0,1},y ijk ∈Z+∪{0} (1d)
[0075] Where M represents the AV in cooperative perception s The number and number of groups; K represents the number and set of task types; R represents the number and set of resource types; s i represents the task request vector of vehicle i; S represents the task request matrix of all AVs in a time slot; ω i represents the resource requirement vector of task type i; W represents the resource requirement matrix of each type of task; c i Represents AVs used in collaborative sensing i The available resources; C represents the resources of all vehicles in a time period; δ ij Indicates AV i The neighboring vector of x i Indicates AV i The decision variable indicates whether the task is completed with the assistance of other vehicles, x i ∈{0,1};y ijk Indicates from AV j Transfer to AV i The latent decision variables for the k types of tasks to be performed, y ijk ∈Z+∪{0}.
[0076] Formula (1b) represents AV i , the number of tasks of each type for i∈M that can be successfully completed with the help of other vehicles and is equal to the number of tasks actually performed by its corresponding neighbors. Formula (1c) shows that the resource occupancy for all tasks performed on each AV cannot exceed the AV’s capacity for any type of resource. Formula (1d) shows that x i The value of y is 0 or 1. ijk Is a non-negative integer.
[0077] An example of task scheduling in the proposed model is given to illustrate the effectiveness of task offloading in the architecture, e.g. Figure 3 As shown in Figure 1, there are three participating AVs, each of which has c 1 =(8,11,16) T , c 2 =(2,3,4) T , c 3 =(2,4,5) T There are two types of tasks, and the resource requirements of each type of task are ω 1 =(2,3,4) T and ω 2 =(3,4,5) T The number of tasks of the two types generated by the three vehicles is s 1 =(1,0) T 、s 2 =(1,1) T and 3 =(1,1) T . If task scheduling is not performed, the number of AVs that can complete the production task is 1, namely AV1. The data sensed by other vehicles cannot be processed in a timely manner, so AV1 cannot obtain valuable environmental information from other vehicles. Autonomous vehicles reduce road safety. Through collaborative perception task scheduling, Task 2 of Vehicle 2 and Vehicle 3 can be assigned to Vehicle 1 for execution, so that the tasks of all vehicles can be completed in a timely manner; therefore, road safety is improved.
[0078] S3. Determine the priority of autonomous driving participating in collaborative perception.
[0079] At this stage, the priority of AVs that require task scheduling is determined based on the vehicle’s status (e.g., generated tasks, available resources, and neighbors); in the problem of Formula (1a), the goal is to maximize the number of autonomous vehicles that can complete the task.
[0080] S31. First, analyze the state of AVs and construct a criterion for determining AV scheduling priorities. The number of neighbors, the balance of tasks, and their impact on vehicle priority are introduced, and then a priority determination formula is constructed. Number of Neighbors (NoN): As mentioned above, the definition of a vehicle’s neighbors is a set of AVs with stable connections detected by the vehicle at the beginning of a time slot. For AVs i , i∈M, It is represented by the number of its neighbors. The number is the attribute of an AV in a time slot, which can determine the priority to a certain extent.
[0081] Specifically, for two AVs with the same task request i , j∈M, i≠j, that is, si=s j If h i <h j , vehicle i should have a higher priority than j because the selectivity of vehicle i’s neighbors is small.
[0082] Example: Determine the target vehicle of the task according to the fitness resources proposed in the second stage; Av has three 1, 2, and 3, and their resources are c 1 =(2,3,4) T 、c 2 =(3,4,5) T and c 3 =(5,7,9) T AV generates two types of tasks, and the resource requirements of the tasks are ω 1 =(2,3,4) T and ω 2 =(3,4,5) T , the task request of the three is s 1 =(1,1) T ,s 2 =(1,1) T and 3 =(0,0) T Vehicles 1 and 3 have only one neighbor, vehicle 2, and vehicle 2 has two neighbors, vehicles 1 and 3. If vehicle 2 unloads its task first, as Figure 4 As shown in a, the task of vehicle 2 will be partially unloaded. Unloaded to vehicle 1; eventually, only vehicle 2 can complete its task. If vehicle 1 with fewer neighbors unloads its task first, as shown in Figure 4 As shown in Figure 2, the task of vehicle 1 will be partially offloaded to vehicle 2, and the task of vehicle 2 can be offloaded to vehicle 3. There are two tasks that can be completed. Obviously, vehicles with fewer neighbors should have higher priorities, which is conducive to increasing the number of vehicles that can complete the task.
[0083] S32, Balanced Degree of Resources (BDR): Different sensors in AV generate different data, and different data processing tasks have different resource requirements. The resource requirements of the task will also affect the objective in formula (1a). For a task of type k, It is expressed as:
[0084]
[0085] The maximum difference in the normalized dimensional resource requirements of k types of tasks; larger values indicate greater imbalance. If a vehicle generates many unbalanced tasks, the successful unloading of these tasks will lead to a rapid depletion of resources of a specific type in the target vehicle. Eventually, no more tasks can be completed, and the number of vehicles that can complete tasks decreases.
[0086] Example: There are three types of AV1, AV2 and AV3, and the resources they have are c 1 =(2,2,2) T 、c 2 =(2,3,5) T and c 3 =(2,3,5) T , and the three are interconnected. There are two types of tasks generated by the vehicle, namely ω 1 =(1,1,1) T and w 2 =(1,1,5) T The mission requests of the three vehicles are s 1 =(0,2) T 、s 2 =(2,0) T and 3 =(2,0) T . If vehicle 1 with a higher B(k) is unloaded first, its two tasks will be performed on vehicles 2 and 3, which will exhaust the type 3 resources owned by vehicles 2 and 3, so the tasks of vehicles 2 and 3 cannot be completed. The number of vehicles that can complete the tasks is one. If vehicles 2 or 3 with relatively balanced tasks are unloaded first, their tasks can be completed. Then, the number of vehicles that can complete the tasks in the end is two, which helps improve road safety.
[0087] S33, Vehicle Priority Determination: The total resource requirement (RRAT) of all tasks generated by the AV is also an important factor affecting the number of vehicles that can complete its tasks. s With the total amount of resources remaining the same, the fewer resources a task requires, the greater the number of tasks that can be completed.
[0088] According to the RRAT, BDR and NoN of the task, a priority determination formula is designed, as shown in formula (3). Formula (3) is a vehicle priority determination method based on BDR, NoN and RRAT; i The smaller it is, the lower the priority.
[0089]
[0090] Among them, q(h i ) is the contribution function of NoN, h i is the number of neighbors of AVi; g(B(k)) is the contribution function of BDR, and B(k) is the BDR of task type k.
[0091] S4. Determination of the mission target vehicle.
[0092] Determine the target vehicle for the task generated by the AV. In this stage, the target vehicle of the task is determined, that is, which neighbors hold the task. The resource adaptability between the task and the vehicle is used to determine the target vehicle. In the proposed model, the AV has R resources and generates K tasks, which represent data processing from different sensors. Different task types k, Requires different amounts of R-type resources, expressed as The AVi,i∈M that needs task offloading determines the target vehicle for its task based on the resource adaptability of the task and the vehicle.
[0093] For the type And the candidate target vehicle For tasks, the resource fitness f(k,j) is expressed as:
[0094]
[0095] Among them, the task of type k will select the vehicle with the smallest f(k,j) from its neighbor set. The smaller f(k,j), the higher the consistency between the resource requirements of the task to be unloaded and the current available resources of the target vehicle. It helps to reduce resource ratio and waste.
[0096] S5. End-edge-cloud collaboration based on Q-learning enables each vehicle to receive cloud / edge feedback to learn the best route and achieve intelligent collaboration. The infrastructure (V2I) is connected to the cloud, and the vehicle is connected to the cloud through V2I; V2I is regarded as the cloud. The selected edge vehicle is the edge. The ordinary vehicle is the end node.
[0097] S51. The Q-learning model is defined as follows: vehicles are agents, actions are pairs of possible communication types and next-hop nodes to which packets are forwarded; the possible actions of each node will be the set of its one-hop neighbors, including the infrastructure; V2I is responsible for sending back rewards for each action performed by the vehicle, which will be further delivered at a discount through other edge vehicles; each vehicle adjusts its behavior based on feedback from V2I, and information exchange between agents is accomplished through hello messages. Each node maintains a Q table in which each Q value shows the value of selecting m as the next hop for the RSU.
[0098] S52, Q-learning update: The state is represented by a pair of {destination, current node}, and the action is determined by {communication type, next hop}; in the case of using cellular communication, the next hop will be V2I.
[0099] Each vehicle maintains a Q-value for each vehicle in the V2I and two-hop areas. Considering that the neighbors change as the vehicles move, the Q-value space corresponding to the old neighbors is released when necessary to maintain the information of the new neighbors. Considering the size of the Q-value, the proposed scheme does not maintain the route to each possible destination.
[0100] In order to find the routes to other nodes, a hierarchical routing approach is used, in which there are different levels of gateway nodes; for each vehicle, at least one neighbor is an edge node, acting as a gateway node and responsible for finding the route to any other vehicle; V2I also performs the duties of a gateway. After receiving the hello message from node m, node c updates the corresponding Q value as:
[0101]
[0102] Where d and t are the target node and communication type, respectively. LQ(c,m) is the link quality value between nodes c and m, expressed as the Hello reception ratio between the two nodes. NB m represents the set of one-hop neighbors of node m.
[0103] The learning rate α and discount rate γ are set to 0.8 and 0.9 respectively. m The calculation is as follows:
[0104]
[0105] in, The allocation is done by the infrastructure based on the number of vehicles connected to the infrastructure; the infrastructure will set rewards based on vehicle density; if the density is high, the cloud will give a high reward to the corresponding edge candidate, which is further discounted based on the number of hops. This exploration is achieved by exchanging hello messages between neighbors. Therefore, for route selection, each node can always choose the node pair and communication type that shows the highest Q value.
[0106] In the case of a V2V communication route, the reward is updated to:
[0107]
[0108] The reward is set to 1 in order to exploit decentralized communication as much as possible.
[0109] Each edge vehicle attaches its own cost (corresponding Q-value) to its neighbors in the hello message; when receiving a hello message from a neighbor vehicle, the vehicle can update the corresponding cost in the case of using the neighbor as the next hop based on the Q-learning algorithm. The exploration of Q-learning is achieved through periodic hello message exchange; therefore, each agent knows the best action based on the Q-value.
[0110] S53. Delay-sensitive applications can be used to send information required for collaboration between vehicles, thereby achieving cooperative autonomous driving. Data transmission can be carried out through up to 2 hops of V2V communication or cellular communication. The reward here is calculated based on the latency. For V2V communication, each vehicle sends the reward to its neighbors. The selected edge vehicle can further transmit the discounted reward to its neighbors, but the reward will not be propagated to more than two hops. This is achieved by only the edge vehicle node appending the Q table entry of the one-hop neighbor to the hello message.
[0111] The reward calculation for V2I over the cellular interface is as follows:
[0112]
[0113] Where D th , S pkt 、N ue , BW ul , BW dl , D bs is the latency requirement, packet size, number of user devices, uplink bandwidth, downlink bandwidth, and processing latency at the infrastructure. If V2I is able to satisfy the incoming request, it will Set to 1, otherwise set to a smaller value. Processing delay includes the time required for all scheduling, queuing, and computation in addition to propagation delay.
[0114] The above is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technicians in this technical field, some improvements and modifications without departing from the principle of the present invention should also be regarded as the protection scope of the present invention.
Claims
1. A vehicle-road cooperative data perception method based on edge computing gateway, characterized in that: The method comprises the following steps: S1. Build a collaborative perception model based on edge computing; S2. Schedule the tasks in the collaborative perception model based on edge computing to obtain the optimal solution; S3. Determine the priority of autonomous driving participating in collaborative perception; S4. Determination of the mission target vehicle; S5. End-edge-cloud collaboration based on Q-learning enables each vehicle to receive cloud / edge feedback to learn the optimal route.
2. According to claim 1, a vehicle-road cooperative data perception method based on edge computing gateway is characterized in that: The process of building a collaborative perception model based on edge computing is as follows: first, the vehicle detects neighbors through the V2V link; the vehicle sends detection messages to other vehicles, and vehicles with no packet loss and short round-trip time are regarded as neighbors; it is assumed that the neighbors detected in a time slot will not change due to the short time slot length, but the neighbors in different time slots may change due to the mobility of the vehicle; for vehicle i∈M, j∈M\{i}; δ ij =δ ji =1 means that the vehicles are neighbors; otherwise, δ ij =δ ji =0; use δ i =(δ i1 , …, δ iM ) T Indicates AV i The neighborhood vector of M ) indicates AV i Neighborhood matrix of all vehicles in the area within a certain period of time; In addition to the neighbor vectors, AV s The available resources ci and the mission vector si generated by the vehicle need to be reported to the RSU in each time slot; Among them, s i =(s i1 ,…,s iK ) T ;s iK Indicates AV i The number of tasks of type K generated, and S = (s1, ..., s M ) represents the mission matrix of all vehicles in the area; The RSU makes a scheduling decision based on the information (S, C, Δ) collected in a time slot and sends the result back to the vehicles in the area; AV performs task offloading based on the decision results, and reports the task results to RSU after completion for further acquisition of other vehicles.
3. According to the method of claim 1, the vehicle-road cooperative data perception method based on edge computing gateway is characterized in that: The process of scheduling tasks in the collaborative perception model based on edge computing and obtaining the optimal solution is as follows: within a given time slot, for the decision variables Used to indicate AV i Whether the task can be completed, x i =1 means AV i The task is completed with the assistance of the neighbor's vehicle or by the driver himself; the latent variable y ijk Indicates the need for AV j Uninstall to AV i The number of k types of tasks executed on the time slot; the scheduling problem within a specific time slot is expressed as follows: x i ∈{0,1},and ijk ∈Z + ∪{0} (1d) Where M represents the AV in cooperative perception s The number and number of groups; K represents the number and set of task types; R represents the number and set of resource types; s i represents the task request vector of vehicle i; S represents the task request matrix of all AVs in a time slot; ω i represents the resource requirement vector of task type i; W represents the resource requirement matrix of each type of task; c i Represents AVs used in collaborative sensing i The available resources; C represents the resources of all vehicles in a time period; δ ij Indicates AV i The neighboring vector of x i Indicates AV i The decision variable indicates whether the task is completed with the assistance of other vehicles, x i ∈{0,1};y ijk Indicates from AV j Transfer to AV i The latent decision variables for the k types of tasks to be performed, y ijk ∈Z + ∪{0}.
4. According to claim 3, a vehicle-road cooperative data perception method based on edge computing gateway is characterized in that: Formula (1b) represents AV i , the number of tasks of each type for i∈M that can be successfully completed with the help of other vehicles and is equal to the number of tasks actually performed by its corresponding neighbors; Formula (1c) shows that the resource occupancy for all tasks performed on each AV cannot exceed the AV's capacity for any type of resource; Formula (1d) shows that x i The value of y is 0 or 1. ijk is a non-negative integer; An example of task scheduling in the proposed model is given to illustrate the effectiveness of task offloading in the architecture. There are three participating AVs, and the resources they own are c1 = (8, 11, 16) T , c2=(2,3,4) T , c3=(2,4,5) T ; There are two types of tasks, and the resource requirements of each type of task are ω1 = (2, 3, 4) T and ω2=(3,4,5) T ; The number of two types of tasks generated by the three vehicles is s1 = (1, 0) T s2 = (1, 1) T and s3 = (1, 1) T ; If task scheduling is not performed, the number of AVs that can complete the production task is 1, that is, AV1.
5. According to the method of claim 1, the vehicle-road cooperative data perception method based on edge computing gateway is characterized in that: The process of determining the priority of autonomous driving participating in cooperative perception is as follows: analyzing the state of the AV and constructing a standard for determining the AV scheduling priority; introducing the number of neighbors, the balance of tasks and their impact on vehicle priority, and then constructing a priority determination formula.
6. A vehicle-road cooperative data perception method based on edge computing gateway according to claim 5, characterized in that: The process of introducing the number of neighbors is as follows: the definition of vehicle neighbors is a set of AVs with stable connections detected by the vehicle at the beginning of a time slot; for AV i , i∈M, It is represented by the number of its neighbors; For two AVs with the same task request i , j∈M, i≠j, that is, s i =s j If h i <h j , vehicle i should have a higher priority than j because the selectivity of vehicle i’s neighbors is small; The process of introducing task balance is as follows: different sensors in V generate different data, and different data processing tasks have different resource requirements; the resource requirements of the task will also affect the goal in formula (1a); for tasks of type k, It is expressed as: The maximum difference in the resource requirements of the normalized dimension of k types of tasks; larger values indicate greater imbalance; if a vehicle generates many unbalanced tasks, the successful unloading of these tasks will lead to rapid exhaustion of specific types of resources in the target vehicle; eventually, no more tasks can be completed, and the number of vehicles that can complete tasks decreases; The process of determining vehicle priority is as follows: The total resource requirement (RRAT) of all tasks generated by AV is also an important factor affecting the number of vehicles that can complete its tasks; s When the total amount of resources owned remains unchanged, the fewer resources a task requires, the greater the number of tasks completed; According to the RRAT, BDR and NoN of the task, a priority determination formula is designed, as shown in formula (3). Formula (3) is a vehicle priority determination method based on BDR, NoN and RRAT; i The smaller it is, the lower the priority; Among them, q(h i ) is the contribution function of NoN, h i is the number of neighbors of AVi; g(B(k)) is the contribution function of BDR, and B(k) is the BDR of task type k.
7. The vehicle-road cooperative data perception method based on edge computing gateway according to claim 1 is characterized in that: The process of determining the target vehicle for the task is as follows: determining the target vehicle for executing the task generated by the AV. In this stage, the target vehicle for the task is determined, that is, confirming which neighbors hold the task; using the resource adaptability between the task and the vehicle to determine the target vehicle; in the proposed model, the AV has R resources and generates K tasks, which represent data processing from different sensors; different task types k, Requires different amounts of R-type resources, expressed as AV that needs task offloading i ,i∈M determines the target vehicle for its task according to the resource adaptability of the task and the vehicle; For the type And the candidate target vehicle For tasks, the resource fitness f(k,j) is expressed as: Among them, for tasks of type k, the vehicle with the smallest f(k,j) will be selected from its neighbor set; the smaller f(k,j), the higher the consistency between the resource requirements of the task to be unloaded and the currently available resources of the target vehicle; this helps to reduce resource ratio and waste.
8. The vehicle-road cooperative data perception method based on edge computing gateway according to claim 1 is characterized in that: The Q-learning-based end-edge-cloud collaboration enables each vehicle to receive cloud / edge feedback to learn the optimal route. The process is: Q-learning model definition and Q-learning update.
9. A vehicle-road cooperative data perception method based on edge computing gateway according to claim 8, characterized in that: The Q-learning model defines the process as follows: the possible actions of each node will be the set of its one-hop neighbors, including infrastructure; V2I is responsible for sending back rewards for each action performed by the vehicle, and the rewards will be further passed on at a discount through other edge vehicles; each vehicle adjusts its behavior based on the feedback from V2I, and the information exchange between agents is completed through hello messages. Each node maintains a Q table, where each Q value shows the value of selecting m as the next hop of the RSU; The update process of Q-learning is: the state is represented by a pair of {destination, current node}, and the action is determined by {communication type, next hop}; in the case of using cellular communication, the next hop will be V2I.
10. The vehicle-road cooperative data perception method based on edge computing gateway according to claim 8 is characterized in that: A hierarchical routing approach is used, in which there are different levels of gateway nodes; for each vehicle, at least one neighbor is an edge node, acting as a gateway node and responsible for finding routes to any other vehicles; V2I also performs the duties of a gateway. After receiving a hello message from node m, node c updates the corresponding Q value to: Where d and t are the target node and communication type respectively; LQ(c,m) is the link quality value between nodes c and m, expressed as the Hello reception ratio between the two nodes; NB m represents the one-hop neighbor set of node m; The learning rate α and discount rate γ are set to 0.8 and 0.9 respectively; the reward R m The calculation is as follows: in, The infrastructure allocates the nodes based on the number of vehicles connected to the infrastructure. The infrastructure will set rewards based on the vehicle density. If the density is high, the cloud will give a high reward to the corresponding edge candidate, which is further discounted based on the number of hops. This exploration is achieved by exchanging hello messages between neighbors. Therefore, for route selection, each node can always choose the node pair and communication type that shows the highest Q value. In the case of a V2V communication route, the reward is updated to: Each edge vehicle attaches its own cost (corresponding Q-value) to its neighbors in the hello message; when receiving a hello message from a neighbor vehicle, the vehicle can update the corresponding cost in the case of using the neighbor as the next hop based on the Q-learning algorithm.
