Model hybrid aggregation method and system in unmanned aerial vehicle assisted Internet of Vehicles scene

By adopting a drone-assisted model hybrid aggregation method in the Internet of Vehicles scenario, and utilizing the asynchronous update mechanism of roadside units and drones, the efficiency and generalization ability of federated learning are optimized, and the low aggregation efficiency and low aggregation efficiency of traditional methods are solved. The problem of poor model training quality is solved, and more efficient model updates and communication are achieved.

CN118536619APending Publication Date: 2024-08-23GUANGDONG UNIV OF TECH
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410665371.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-27
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

In the Internet of Vehicles scenario, the traditional federated learning architecture faces the problems of low aggregation efficiency, poor model generalization ability and low training quality. Especially in the case of dynamic network environment and data heterogeneity, the existing synchronous aggregation method leads to The communication overhead is large and the model update speed is slow.

Method used

This paper proposes a model hybrid aggregation method in the UAV-assisted Internet of Vehicles scenario. By building a multi-level learning architecture, roadside units are used for synchronous aggregation, UAVs are updated asynchronously, and reinforcement learning is used to select participants in federated learning. Train vehicles to optimize communication efficiency and model update speed.

Benefits of technology

It improves the update speed and communication efficiency of the model, enhances the scalability and flexibility of the system, reduces the interference of redundant data, reduces the delay of system training, and improves the accuracy of the global model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118536619A
    Figure CN118536619A
Patent Text Reader

Abstract

The invention discloses a model hybrid aggregation method and system in an unmanned aerial vehicle assisted Internet of Vehicles scene. Different aggregation methods are used at different levels; a synchronous aggregation method is used on the road side unit level, so that the model learns enough knowledge, and the model precision is ensured; an asynchronous updating method is used on the unmanned aerial vehicle level, and the real-time performance and the communication efficiency of the model are improved. According to the method, a reinforcement learning method is used, the data quality, computing resources, local model parameter sizes and positions of the training vehicles are considered, the training vehicles participating in global training are selected, and reasonable communication bandwidth allocation is carried out, so that the accuracy and training efficiency of a global model are effectively improved. The screened training vehicles can provide more valuable information for model training, and interference of redundant data is reduced; and reasonable communication bandwidth allocation is carried out on the screened training vehicles, so that the time delay of system training can be further reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of mobile communication technology, and more specifically, to a model hybrid aggregation method and system in a drone-assisted Internet of Vehicles scenario. Background Art

[0002] With the improvement of vehicle automation and intelligence, Internet of Vehicles technology has become a key technology to improve road safety, efficiency and driving experience. However, traditional Internet of Vehicles technology relies on ground base stations and faces many challenges such as network congestion or low service quality. Drones, with their flexible deployment capabilities and high mobility, provide new possibilities for improving the performance of Internet of Vehicles. Drones can be quickly deployed to areas that require communication support as an auxiliary to increase the data transmission rate between vehicles and remote servers. In addition, in Internet of Vehicles applications, the use of a federated learning framework between vehicles and ground base stations can optimize system performance while protecting privacy, effectively avoiding privacy and security risks during centralized data processing.

[0003] With the continuous expansion of application scenarios, the traditional federated learning architecture faces many challenges, including but not limited to heavy communication burden and slow model update due to the inefficiency of synchronous aggregation methods, and difficulty in adapting to the rapid changes of the network. In response to these challenges, a federated learning architecture based on the edge layer was proposed using Mobile Edge Computing (MEC). The neighboring edge server will act as a parameter server, and the parameter server is placed at the edge of the network close to the user, so the transmission distance between the edge server and the user is smaller. Compared with the federated learning architecture based on the cloud layer, the federated learning architecture based on the edge layer can better reduce communication delay. However, the disadvantage of federated learning based on edge computing is that the number of clients that each server can access is limited, resulting in inevitable training performance loss. Therefore, the hierarchical federated learning architecture (HFL) supported by cloud-edge fusion is proposed, which can effectively avoid the shortcomings of the single-layer architecture and combine the advantages of the cloud and edge layer architectures. While ensuring the number of accessible clients, it reduces the amount of data that needs to be transmitted to the cloud layer, thereby reducing communication delay and improving training quality. HFL aims to optimize the learning process, improve communication efficiency, increase the model update speed, and enhance the scalability and flexibility of the system by building a multi-level learning architecture.

[0004] In addition, the optimization of HFL also faces the challenge of adaptability to dynamic network environments; optimizing HFL can not only promote the application of federated learning technology in a wider range of fields, but also help solve the core problems faced by large-scale distributed machine learning, laying the foundation for building a more intelligent, efficient and secure distributed learning system. In existing research based on hierarchical federated learning architecture, synchronous aggregation methods are usually used at different levels. Although such aggregation methods have guaranteed model aggregation accuracy, they will significantly reduce the update speed of the model and increase the communication burden. Therefore, the existing synchronization mechanism may encounter efficiency bottlenecks when facing large-scale networks; most of the existing research assumes that the network is static, which is obviously insufficient in practical applications; how to effectively synchronize and fuse cross-layer models in a mobile network environment to ensure the accuracy of the global model while reducing communication overhead is an unresolved problem; in addition, when facing data heterogeneity problems, HFL generally uses traditional aggregation algorithms, so the obtained model does not fully consider the client's preferences and cannot fully meet the specific needs or optimization goals of individual clients; there are still few existing studies on the generalization ability of HFL models; and the existing HFL generally communicates sequentially layer by layer, without considering the idle resource utilization of high-level devices when waiting for low-level devices to calculate. Summary of the invention

[0005] In order to overcome the above-mentioned defects of low aggregation efficiency, poor model generalization ability and low model training quality under the hierarchical federated learning architecture, the present invention provides a model hybrid aggregation method and system in a drone-assisted Internet of Vehicles scenario, constructs a multi-level learning architecture to optimize the learning process, improve communication efficiency, increase the model update speed, and enhance the scalability and flexibility of the system.

[0006] In order to solve the above technical problems, the technical solution of the present invention is as follows:

[0007] The present invention provides a model hybrid aggregation method in a UAV-assisted vehicle networking scenario, the method comprising:

[0008] Constructing a UAV-assisted vehicle networking scenario, including several communication devices and several training vehicles, wherein the communication device includes a roadside unit and several UAVs; determining the communication device corresponding to each training vehicle according to the Euclidean distance between the communication device and the training vehicle;

[0009] The roadside unit generates an initial global model and sends it to all training vehicles;

[0010] The training vehicles all perform local training on the received initial global model according to the local data set, and when the preset conditions are met, each training vehicle obtains a corresponding vehicle model and sends it to the corresponding communication device;

[0011] Each of the communication devices respectively performs local synchronous update on the received vehicle model to obtain a corresponding local synchronous aggregation model; each drone uploads the corresponding local synchronous aggregation model and model update parameters to the roadside unit;

[0012] The roadside unit performs local asynchronous update on each drone according to the local synchronous aggregation model and model update parameters corresponding to each drone, obtains the local asynchronous aggregation model of the drone and sends it to the drone;

[0013] Set the weight of the aggregation model. When all drones have completed at least one asynchronous update, globally aggregate all local synchronous aggregation models and local asynchronous aggregation models and their model parameters and model weights to obtain the final global model.

[0014] The roadside unit sends the final global model to the corresponding training vehicle directly or through a drone.

[0015] Preferably, the communication device corresponding to each training vehicle is determined according to the position information of the communication device and the training vehicle:

[0016]

[0017] Among them, RSU is the roadside unit; UAVm is the mth UAV; is the Euclidean distance between the training vehicle and the roadside unit; is the Euclidean distance between the training vehicle and the UAV; d g is the communication threshold.

[0018] Preferably, the roadside unit and the UAV screen all training vehicles within the communication coverage of the roadside unit and the UAV according to the position information and speed information transmitted by the training vehicle, and select the training vehicle that meets the preset stay time; the preset stay time is greater than the sum of the global average training time and the interference time, that is, T ave is the global average training time; T inference To interfere with the time;

[0019] The formula for the vehicle to meet the preset dwell time is:

[0020]

[0021] Among them, L m is the communication coverage diameter of the UAV; The location information of the training vehicle; The speed information of the training vehicle.

[0022] Preferably, the training vehicles all perform local training on the received initial global model according to the local data set to meet the preset conditions, and each training vehicle obtains the corresponding vehicle model specifically as follows:

[0023] Get a local dataset for each training vehicle;

[0024] A loss function is set, and each training vehicle continuously iterates the received initial global model according to the local data set. When the loss function value reaches the minimum value or reaches the preset number of iterations, each training vehicle obtains the corresponding vehicle model.

[0025] Preferably, the formula of the local data set is:

[0026]

[0027] in, Sending local data of an initial global model to the training vehicle for training the roadside unit; The training vehicle is used to send local data of the initial global model to train each UAV; RSU is the roadside unit; UAVm is the mth UAV.

[0028] Preferably, the loss function is specifically:

[0029]

[0030] Among them, y i is the target output, y pred is the predicted output; H k is the corresponding local dataset.

[0031] Preferably, each of the communication devices respectively performs local synchronous update on the received vehicle model specifically as follows:

[0032]

[0033] Among them, RSU is the roadside unit; UAVm is the mth UAV; Update parameters of the model uploaded to the roadside unit by the training vehicle; Update the parameters of the model uploaded by the training vehicle to the drone; H u is the local training set; A vehicle model transmitted to the roadside unit for training vehicles; Vehicle model transferred to the drone for training.

[0034] Preferably, the roadside unit performs local asynchronous update on each drone according to the local synchronous aggregation model and model update parameters corresponding to each drone as follows:

[0035]

[0036] in, Update parameters of the model uploaded by the UAV to the roadside unit; Model parameters uploaded by the UAV to the roadside unit; This is the current version of the drone model; is the vehicle model of the training vehicle received by the UAV; ζ is the compensation intensity parameter; To calculate the outer product of the vehicle model gradients received by the drone for the training vehicle.

[0037] Preferably, the aggregation model weight formula is:

[0038]

[0039] Among them, φ 1 is the weight set according to the size of the model parameters uploaded by the corresponding drone; φ 2 The weight is set according to the size of the regional cache hit rate of the corresponding drone.

[0040] Preferably, the final global model is:

[0041]

[0042] in, is the aggregation model weight; is the model uploaded to the roadside unit by all drones in the most recent time; M is the Mth drone.

[0043] The present invention also provides a model hybrid aggregation system in a drone-assisted Internet of Vehicles scenario, which is used to implement the above method. The system includes:

[0044] A scenario construction module is used to construct a UAV-assisted vehicle networking scenario, including a plurality of communication devices and a plurality of training vehicles, wherein the communication device includes a roadside unit and a plurality of UAVs; and the communication device corresponding to each training vehicle is determined according to the Euclidean distance between the communication device and the training vehicle;

[0045] An initial model sending module, in which the roadside unit generates an initial global model and sends it to all training vehicles;

[0046] A local training module, wherein the training vehicles all perform local training on the received initial global model according to the local data set, and when the preset conditions are met, each training vehicle obtains a corresponding vehicle model and sends it to the corresponding communication device;

[0047] A local synchronization update module, each of the communication devices respectively performs local synchronization update on the received vehicle model to obtain a corresponding local synchronization aggregation model; each UAV uploads the corresponding local synchronization aggregation model and model update parameters to the roadside unit;

[0048] A local asynchronous update module, in which the roadside unit performs local asynchronous update on each drone according to the local synchronous aggregation model and model update parameters corresponding to each drone, obtains the local asynchronous aggregation model of the drone and sends it to the drone;

[0049] The global aggregation module sets the weight of the aggregation model. When all drones have completed at least one asynchronous update, all local synchronous aggregation models and local asynchronous aggregation models and their model parameters and model weights are globally aggregated to obtain the final global model.

[0050] The global model sending module, the roadside unit sends the final global model to the corresponding training vehicle directly or through a drone.

[0051] Compared with the prior art, the technical solution of the present invention has the following beneficial effects:

[0052] The present invention proposes a model hybrid aggregation method and system in a UAV-assisted vehicle networking scenario, using different aggregation methods at different levels; using a synchronous aggregation method in the roadside unit so that the model can learn enough knowledge to ensure model accuracy; using an asynchronous update method in the UAV to improve the real-time performance and communication efficiency of the model. The present invention uses a reinforcement learning method to select training vehicles participating in federated learning training and reasonably allocate communication bandwidth to effectively improve the accuracy and training efficiency of the global model. The screened training vehicles can provide more valuable information for model training and reduce the interference of redundant data; and reasonable communication bandwidth allocation for the screened training vehicles can further reduce the delay of system training. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 This is a flow chart of the model hybrid aggregation method in the UAV-assisted Internet of Vehicles scenario described in Example 1;

[0054] Figure 2 This is a schematic diagram of the structure of the UAV-assisted Internet of Vehicles scenario described in Example 2;

[0055] Figure 3 This is a schematic diagram of the structure of the model hybrid aggregation method in the UAV-assisted Internet of Vehicles scenario described in Example 2;

[0056] Figure 4 This is a schematic diagram of the structure of the model hybrid aggregation system in the drone-assisted Internet of Vehicles scenario described in Example 3. DETAILED DESCRIPTION

[0057] The drawings are for illustrative purposes only and should not be construed as limiting the present patent;

[0058] In order to better illustrate the present embodiment, some parts in the drawings may be omitted, enlarged or reduced, and do not represent the size of the actual product;

[0059] It is understandable to those skilled in the art that some well-known structures and their descriptions may be omitted in the drawings.

[0060] The technical solution of the present invention is further described below in conjunction with the accompanying drawings and embodiments.

[0061] Example 1

[0062] This embodiment provides a model hybrid aggregation method in a drone-assisted Internet of Vehicles scenario, such as Figure 1 As shown, the method includes:

[0063] Constructing a UAV-assisted vehicle networking scenario, including several communication devices and several training vehicles, wherein the communication device includes a roadside unit and several UAVs; determining the communication device corresponding to each training vehicle according to the Euclidean distance between the communication device and the training vehicle;

[0064] The roadside unit generates an initial global model and sends it to all training vehicles;

[0065] The training vehicles all perform local training on the received initial global model according to the local data set, and when the preset conditions are met, each training vehicle obtains a corresponding vehicle model and sends it to the corresponding communication device;

[0066] Each of the communication devices respectively performs local synchronous update on the received vehicle model to obtain a corresponding local synchronous aggregation model; each drone uploads the corresponding local synchronous aggregation model and model update parameters to the roadside unit;

[0067] The roadside unit performs local asynchronous update on each drone according to the local synchronous aggregation model and model update parameters corresponding to each drone, obtains the local asynchronous aggregation model of the drone and sends it to the drone;

[0068] Set the weight of the aggregation model. When all drones have completed at least one asynchronous update, globally aggregate all local synchronous aggregation models and local asynchronous aggregation models and their model parameters and model weights to obtain the final global model.

[0069] The roadside unit sends the final global model to the corresponding training vehicle directly or through a drone.

[0070] Example 2

[0071] This embodiment provides a model hybrid aggregation method in a drone-assisted Internet of Vehicles scenario, the method comprising:

[0072] like Figure 2 As shown, a UAV-assisted vehicle networking scenario is constructed, including several communication devices and several training vehicles, wherein the communication device includes a roadside unit and several UAVs; the communication device corresponding to each training vehicle is determined according to the Euclidean distance between the communication device and the training vehicle;

[0073] like Figure 3 As shown in the figure, before starting training, the RSU will send its own position and the position information of all drones to each vehicle, and the vehicle will determine its distance from the RSU. And the distance of each drone That is, the distance set between vehicle u and the communication device can be expressed as The coordinates of vehicle u can be recorded as The coordinates of the drone m are The coordinates of the RSU are (0,0,0). Then the Euclidean distance between the vehicle and the drone can be expressed as

[0074]

[0075] The Euclidean distance between the vehicle and the RSU can be expressed as

[0076]

[0077] Set the communication threshold to d g , then the communication device selection of vehicle u can be expressed as:

[0078]

[0079] That is, first, if Then the vehicle communicates directly with the RSU; secondly, the vehicle determines which drone is closest to it and selects the nearest drone for communication. Assuming that the communication range of all drones covers all vehicles, in the present invention, the drone that communicates with the vehicle is called a local drone. And in the subsequent description, when Dev i =RSU, it is represented by R; when Dev u =UAV m, it is represented by m.

[0080] The communication device corresponding to each training vehicle is determined based on the position information of the communication device and the training vehicle:

[0081]

[0082] Among them, RSU is the roadside unit; UAV m is the mth UAV; is the Euclidean distance between the training vehicle and the roadside unit; is the Euclidean distance between the training vehicle and the UAV; d g is the communication threshold.

[0083] Considering the mobility of vehicles and the small coverage of drones, some highly maneuverable vehicles may quickly drive out of the coverage of a drone and fail to complete federated learning training; in addition, the heterogeneity of vehicle equipment leads to large differences in computing resources, and the size and quality of local data vary, which are factors that affect the speed and accuracy of federated learning training. In view of the above problems, it is necessary to select vehicles to ensure the quality of federated training.

[0084] First, we need to select vehicles that stay long enough on the local drone to ensure that they have the opportunity to participate in the full federated learning training to improve the training quality. Before training, the vehicle first sends its location information to the local drone. And speed information The communication device then evaluates the coverage of vehicle u (the coverage diameter of the drone is L). m )

[0085] The roadside unit and the UAV screen all training vehicles within the communication coverage of the roadside unit and the UAV according to the position information and speed information transmitted by the training vehicle, and select the training vehicle that meets the preset stay time; the preset stay time is greater than the sum of the global average training time and the interference time, that is, T ave is the global average training time; T inference To interfere with the time;

[0086] The formula for the vehicle to meet the preset dwell time is:

[0087]

[0088] Among them, L m is the communication coverage diameter of the UAV; The location information of the training vehicle; The speed information of the training vehicle.

[0089] The roadside unit generates an initial global model and sends it to all training vehicles;

[0090] RSU generates the initial global model For the first round, RSUs will Sent to vehicles with which it is communicating directly And the vehicles in each drone's area The global model that each drone will receive Then distribute it to the selected vehicles participating in the training. In the next round, the drone updates the regional model through RSU Then Sent to the selected vehicle, the vehicle updates the local model as Proceed to the next round of training.

[0091] The training vehicles all perform local training on the received initial global model according to the local data set, and when the preset conditions are met, each training vehicle obtains a corresponding vehicle model and sends it to the corresponding communication device;

[0092] The training vehicles all perform local training on the received initial global model according to the local data set to meet the preset conditions. The corresponding vehicle model obtained by each training vehicle is specifically:

[0093] Get a local dataset for each training vehicle;

[0094] A loss function is set, and each training vehicle continuously iterates the received initial global model according to the local data set. When the loss function value reaches the minimum value or reaches the preset number of iterations, each training vehicle obtains the corresponding vehicle model.

[0095] The formula for the local data set is:

[0096]

[0097] in, Sending local data of an initial global model to the training vehicle for training the roadside unit; The training vehicle is used to send local data of the initial global model to train each UAV; RSU is the roadside unit; UAVm is the mth UAV.

[0098] The loss function is specifically:

[0099]

[0100] Among them, y i is the target output, y pred is the predicted output; H k is the corresponding local dataset.

[0101] In order to better extract the local features of the client, a personalized model considering Moreau Envelopes is used as the training basis. As a personalized model For local update round j = 0, 1, ..., E-1, update the personalized model By minimizing the regularization loss function:

[0102]

[0103] in, is the regularization term, μ is the regularization coefficient, and its value affects the trade-off between the model's priority for data fitting and the model's complexity. After completing round E of local updates, the final personalized model is obtained.

[0104] Each of the communication devices respectively performs local synchronous update on the received vehicle model to obtain a corresponding local synchronous aggregation model; each drone uploads the corresponding local synchronous aggregation model and model update parameters to the roadside unit;

[0105] Each of the communication devices respectively performs local synchronous update on the received vehicle model specifically as follows:

[0106]

[0107] Among them, RSU is the roadside unit; UAVm is the mth UAV; Update parameters of the model uploaded to the roadside unit by the training vehicle; Update the parameters of the model uploaded by the training vehicle to the drone; H i is the local training set; A vehicle model transmitted to the roadside unit for training vehicles; Vehicle model transferred to the drone for training.

[0108] Since asynchronous updates will cause differences in the number of updates of regional models in a global training, the model version number ver is introduced. i . Indicates that in g t In the global training of the round, the communication device Dev u The model version is ver i In g t In the global training of the round, Dev u The regional model obtained after the first local aggregation is

[0109] After UAV m completes local synchronization aggregation, it needs to calculate the model update. For the first round, the model update is In the next round, the model is updated as Then the local aggregation model And the corresponding model updates are uploaded to RSU.

[0110] The roadside unit performs local asynchronous update on each drone according to the local synchronous aggregation model and model update parameters corresponding to each drone, obtains the local asynchronous aggregation model of the drone and sends it to the drone;

[0111] RSU receives the model and model update uploaded by drone m, and performs asynchronous update to obtain the model At this time, RSU will update the local model It is immediately sent to the corresponding drone m, but not to other drones; at the same time, other drones have not yet completed the local aggregation of the model in this area and are still performing tasks locally. After completing the local local aggregation task, they also upload the model and perform asynchronous updates immediately.

[0112] When all drones complete an asynchronous update, it is considered as the gth t The regional update of drones in the global training round is completed. In addition, since the sizes of local models uploaded by vehicles in each area are different, the aggregation speed of drones may vary greatly, and a drone may be asynchronously updated multiple times in a round of local aggregation of drones. Therefore, in the aggregation process, there will be problems with model obsolescence, that is, some drones have slow aggregation speeds, and the model version when the aggregation and upload model parameters are completed is far different from the model version in the existing RSU. If the traditional aggregation method is still used at this time, it will have a greater impact on the accuracy of the model. Therefore, consider using the DC-ASGD (Delay Compensated Asynchronous Stochastic Gradient Descent) method to compensate for the problem of model obsolescence. The asynchronous aggregation method based on DC-ASGD is described as follows:

[0113] RSU receives the model parameters of UAV m and Updates And assume that the current global model version is ver R , that is, the current global model is The roadside unit performs local asynchronous update on the drone according to the local synchronous aggregation model and model update parameters corresponding to each drone as follows:

[0114]

[0115] in, Update parameters of the model uploaded by the UAV to the roadside unit; Model parameters uploaded by the UAV to the roadside unit; This is the current version of the drone model; A vehicle model of a training vehicle is received for the UAV; is The outer product of the gradients calculated at is used as an approximation of the Hessian matrix, and ζ is the compensation strength parameter.

[0116] The RSU further asynchronously updates the drone’s model based on the delay compensation update:

[0117]

[0118] Set the weight of the aggregation model. When all drones have completed at least one asynchronous update, globally aggregate all local synchronous aggregation models and local asynchronous aggregation models and their model parameters and model weights to obtain the final global model.

[0119] However, due to the mobility of vehicles and the assumption of the present invention that the drone is hovering, in order to better coordinate the overall situation and improve the performance of the entire hierarchical system, the RSU needs to perform another global aggregation, that is, when the RSU completes the local synchronous update and all drones complete an asynchronous update, the RSU will aggregate all local parameter models for global synchronous aggregation. We assume that the model version before all drones complete an update in a global training will be retained in the RSU, that is, in g t The storage unit of RSU will store the latest models of all drones.

[0120]

[0121] The aggregation model weight formula is:

[0122]

[0123] Among them, φ 1 is the weight set according to the size of the model parameters uploaded by the corresponding drone; φ 2 The weight is set according to the size of the regional cache hit rate of the corresponding drone.

[0124] The final global model is:

[0125]

[0126] in, is the aggregation model weight; is the model uploaded to the roadside unit by all drones in the most recent time; M is the Mth drone.

[0127] The roadside unit sends the final global model to the corresponding training vehicle directly or through a drone.

[0128] Example 3

[0129] This embodiment also provides a model hybrid aggregation system in a drone-assisted vehicle networking scenario, which is used to implement the method of embodiment 1 or 2, such as Figure 4 As shown, the system comprises:

[0130] A scenario construction module is used to construct a UAV-assisted vehicle networking scenario, including a plurality of communication devices and a plurality of training vehicles, wherein the communication device includes a roadside unit and a plurality of UAVs; and the communication device corresponding to each training vehicle is determined according to the Euclidean distance between the communication device and the training vehicle;

[0131] An initial model sending module, in which the roadside unit generates an initial global model and sends it to all training vehicles;

[0132] A local training module, wherein the training vehicles all perform local training on the received initial global model according to the local data set, and when the preset conditions are met, each training vehicle obtains a corresponding vehicle model and sends it to the corresponding communication device;

[0133] A local synchronization update module, each of the communication devices respectively performs local synchronization update on the received vehicle model to obtain a corresponding local synchronization aggregation model; each UAV uploads the corresponding local synchronization aggregation model and model update parameters to the roadside unit;

[0134] A local asynchronous update module, in which the roadside unit performs local asynchronous update on each drone according to the local synchronous aggregation model and model update parameters corresponding to each drone, obtains the local asynchronous aggregation model of the drone and sends it to the drone;

[0135] The global aggregation module sets the weight of the aggregation model. When all drones have completed at least one asynchronous update, all local synchronous aggregation models and local asynchronous aggregation models and their model parameters and model weights are globally aggregated to obtain the final global model.

[0136] The global model sending module, the roadside unit sends the final global model to the corresponding training vehicle directly or through a drone.

[0137] The same or similar reference numerals correspond to the same or similar components;

[0138] The terms used in the drawings to describe positional relationships are only used for illustrative purposes and should not be construed as limiting this patent;

[0139] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not intended to limit the embodiments of the present invention. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the embodiments here. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the claims of the present invention.

Claims

1. A model hybrid aggregation method in a drone-assisted Internet of Vehicles scenario, characterized in that: The method comprises: Constructing a UAV-assisted vehicle networking scenario, including several communication devices and several training vehicles, wherein the communication device includes a roadside unit and several UAVs; determining the communication device corresponding to each training vehicle according to the Euclidean distance between the communication device and the training vehicle; The roadside unit generates an initial global model and sends it to all training vehicles; The training vehicles all perform local training on the received initial global model according to the local data set, and when the preset conditions are met, each training vehicle obtains a corresponding vehicle model and sends it to the corresponding communication device; Each of the communication devices respectively performs local synchronous update on the received vehicle model to obtain a corresponding local synchronous aggregation model; each drone uploads the corresponding local synchronous aggregation model and model update parameters to the roadside unit; The roadside unit performs local asynchronous update on each drone according to the local synchronous aggregation model and model update parameters corresponding to each drone, obtains the local asynchronous aggregation model of the drone and sends it to the drone; Set the weight of the aggregation model. When all drones have completed at least one asynchronous update, globally aggregate all local synchronous aggregation models and local asynchronous aggregation models and their model parameters and model weights to obtain the final global model. The roadside unit sends the final global model to the corresponding training vehicle directly or through a drone.

2. The model hybrid aggregation method in the UAV-assisted vehicle networking scenario according to claim 1 is characterized in that: The communication device corresponding to each training vehicle is determined based on the position information of the communication device and the training vehicle: Among them, RSU is the roadside unit; USAVm is the mth UAV; is the Euclidean distance between the training vehicle and the roadside unit; is the Euclidean distance between the training vehicle and the UAV; d g is the communication threshold.

3. The model hybrid aggregation method in the UAV-assisted vehicle networking scenario according to claim 1 is characterized in that: The training vehicles all perform local training on the received initial global model according to the local data set to meet the preset conditions. The corresponding vehicle model obtained by each training vehicle is specifically: Get a local dataset for each training vehicle; A loss function is set, and each training vehicle continuously iterates the received initial global model according to the local data set. When the loss function value reaches the minimum value or reaches the preset number of iterations, each training vehicle obtains the corresponding vehicle model.

4. The model hybrid aggregation method in the UAV-assisted vehicle networking scenario according to claim 3 is characterized in that: The formula for the local data set is: in, Sending local data of an initial global model to the training vehicle for training the roadside unit; The training vehicle is used to send local data of the initial global model to train each UAV; RSU is the roadside unit; UAV m is the mth UAV.

5. The model hybrid aggregation method in the UAV-assisted Internet of Vehicles scenario according to claim 3 is characterized in that: The loss function is specifically: Among them, y i is the target output, y pred is the predicted output; H k is the corresponding local dataset.

6. The model hybrid aggregation method in the UAV-assisted vehicle networking scenario according to claim 1 is characterized in that: Each of the communication devices respectively performs local synchronous update on the received vehicle model specifically as follows: Among them, RSU is the roadside unit; UAV m is the mth UAV; Update parameters of the model uploaded to the roadside unit by the training vehicle; Update the parameters of the model uploaded by the training vehicle to the drone; H u is the local training set; A vehicle model transmitted to the roadside unit for training vehicles; Vehicle model transferred to the drone for training.

7. The model hybrid aggregation method in the UAV-assisted vehicle networking scenario according to claim 1 is characterized in that: The roadside unit performs local asynchronous update on the drone according to the local synchronous aggregation model and model update parameters corresponding to each drone as follows: in, Update parameters of the model uploaded by the UAV to the roadside unit; Model parameters uploaded by the UAV to the roadside unit; This is the current version of the drone model; is the vehicle model of the training vehicle received by the UAV; ζ is the compensation intensity parameter; To calculate the outer product of the vehicle model gradients received by the drone for the training vehicle.

8. The model hybrid aggregation method in the UAV-assisted vehicle networking scenario according to claim 1 is characterized in that: The aggregation model weight formula is: Among them, φ1 is the weight set according to the size of the model parameters uploaded by the corresponding drone; φ2 is the weight set according to the size of the regional cache hit rate of the corresponding drone.

9. The model hybrid aggregation method in the UAV-assisted vehicle networking scenario according to claim 1 is characterized in that: The final global model is: in, is the aggregation model weight; is the model uploaded to the roadside unit by all drones in the most recent time; M is the Mth drone.

10. A model hybrid aggregation system in a drone-assisted vehicle networking scenario, used to implement the method described in claims 1-9, characterized in that: The system comprises: A scenario construction module is used to construct a UAV-assisted vehicle networking scenario, including a plurality of communication devices and a plurality of training vehicles, wherein the communication device includes a roadside unit and a plurality of UAVs; and the communication device corresponding to each training vehicle is determined according to the Euclidean distance between the communication device and the training vehicle; An initial model sending module, wherein the roadside unit generates an initial global model and sends it directly or indirectly to all training vehicles; A local training module, wherein the training vehicles all perform local training on the received initial global model according to the local data set, and when the preset conditions are met, each training vehicle obtains a corresponding vehicle model and sends it to the corresponding communication device; A local synchronization update module, each of the communication devices respectively performs local synchronization update on the received vehicle model to obtain a corresponding local synchronization aggregation model; each UAV uploads the corresponding local synchronization aggregation model and model update parameters to the roadside unit; A local asynchronous update module, in which the roadside unit performs local asynchronous update on each drone according to the local synchronous aggregation model and model update parameters corresponding to each drone, obtains the local asynchronous aggregation model of the drone and sends it to the drone; The global aggregation module sets the weight of the aggregation model. When all drones have completed at least one asynchronous update, all local synchronous aggregation models and local asynchronous aggregation models and their model parameters and model weights are globally aggregated to obtain the final global model. The global model sending module, the roadside unit sends the final global model to the corresponding training vehicle directly or through a drone.

Citation Information

Patent Citations

  • Asynchronous federated gradient averaging algorithm based on delay compensation mechanism

    CN113988308A

  • Unmanned aerial vehicle unmanned inspection management system based on cloud-side cooperation technology

    CN115173924A

  • Intelligent agent strategy learning method with privacy protection in mobile edge computing

    CN116546021A

  • Hierarchical federal learning method based on dynamic cluster in Internet of Vehicles

    CN117750324A

  • Mobile edge cache optimization method based on federated learning

    WO2023168824A1