Internet of Vehicles data processing method and system based on efficient aggregation federated learning

By dynamically weighting and aggregating local models of vehicle nodes in the Internet of Vehicles environment, combined with device performance and data quality, the problem of local model performance differences and slow convergence speed in federated learning of the Internet of Vehicles is solved, and the prediction accuracy and resource utilization of the global model are improved. Efficiency, achieving a more efficient training process.

CN118586040BActive Publication Date: 2024-10-18SHANDONG COMP SCI CENTNAT SUPERCOMP CENT IN JINAN +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411044584.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-01
Publication Date
2024-10-18
Estimated Expiration
2044-08-01

AI Technical Summary

Technical Problem

In the Internet of Vehicles environment, vehicle nodes participating in federated learning vary in device reliability, data volume, response time, and operating energy consumption, resulting in uneven local model performance, affecting the stability and accuracy of the global model, and Uneven equipment performance and data distribution affect the convergence speed and overall performance of the global model.

Method used

Through the dynamic weighted aggregation algorithm, dynamic weighted aggregation of local models is performed based on the equipment performance and data quality of vehicle nodes, the number of training rounds is adjusted, and a global model is generated to ensure that high-scoring nodes contribute more to the global model, and are screened and accurate through AUC values Rate evaluation improves the predictive power of the model.

Benefits of technology

It improves the overall prediction accuracy and generalization ability of the global model, optimizes resource utilization efficiency, shortens training time, enhances the adaptability and overall performance of the model, and ensures fairness of training nodes and rapid convergence of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118586040B_ABST
    Figure CN118586040B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and system for processing Internet of Vehicles data based on efficient aggregated federated learning, belonging to the technical field of data security and privacy protection. It includes: obtaining Internet of Vehicles data; using Internet of Vehicles data as input, processing using a trained global model to obtain data processing results; the global model is generated by aggregating local models that meet performance requirements through a dynamic weighted aggregation algorithm during federated learning, and the number of training rounds of the local model is dynamically adjusted according to the training results of the global model, the training results of the local model, and the equipment performance and data quality of the vehicle node. The present invention accelerates the model convergence rate, reduces the number of model aggregation rounds, and greatly reduces the training cost of federated learning by combining a model screening mechanism based on AUC value and a dynamic adjustment mechanism for the number of training rounds based on vehicle performance evaluation; it solves the problem of low training effect and training efficiency of federated learning in the existing dynamically changing vehicle network data environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data security and privacy protection, and in particular to a method and system for processing Internet of Vehicles data based on efficient aggregated federated learning. Background Art

[0002] The statements in this section merely mention background art related to the present invention and do not necessarily constitute prior art.

[0003] With the development of Internet of Vehicles technology, data security and privacy protection issues have become increasingly prominent, because huge data sets may contain personal sensitive information such as drivers' driving habits and frequently used routes. In addition, different vehicles and infrastructure may be managed by different operators or organizations, and the differences in types, models, performance, and compatibility of the hardware, software systems, communication protocols, and sensors they carry have led to the emergence of data islands, which has brought difficulties to data sharing and utilization. Moreover, faced with such a large data set, the computing power of a single vehicle node itself is obviously insufficient.

[0004] Federated learning is an effective technical means to address the above challenges. It is a distributed machine learning method that allows multiple participants to accelerate model evolution through collaborative training without sharing original data. Its advantage is that it can use data from multiple parties to improve the model's predictive ability while protecting data privacy. In federated learning, each participant trains the model locally, and then sends the model update or gradient information to the central server for aggregation, ultimately forming a global model with excellent performance.

[0005] Although federated learning has shown many advantages in theory, it still needs to overcome a series of challenges when applied to the Internet of Vehicles, as follows:

[0006] (1) In a federated learning environment, the vehicle nodes participating in federated learning may show significant performance differences due to differences in factors such as device reliability, data volume, data authenticity, response time, and operating energy consumption. This results in uneven performance of the local models trained by each vehicle node, which brings many obstacles to the effective aggregation of the global model and cannot guarantee the stability and accuracy of the global model.

[0007] (2) There is an imbalance in device performance and data distribution among the vehicle nodes participating in federated learning, which leads to differences in the update speed and quality between local models, thereby affecting the convergence speed and overall performance of the global model.

[0008] (3) Since the local models trained by different vehicle nodes are significantly different, the traditional single aggregation algorithm ignores the difference information between nodes, which affects the accuracy of the global model and makes it difficult to achieve rapid convergence of the global model. Summary of the invention

[0009] In order to address the shortcomings of the prior art, the present invention provides a method, system, electronic device, computer-readable storage medium and computer program product for Internet of Vehicles data processing based on efficient aggregated federated learning, which dynamically weighted aggregates local models based on the accuracy of local models, the equipment performance of vehicle nodes and data quality differences, thereby improving the overall prediction accuracy and generalization ability of the global model.

[0010] In a first aspect, the present invention provides a method for processing Internet of Vehicles data based on efficient aggregated federated learning;

[0011] A method for processing Internet of Vehicles data based on efficient aggregate federated learning, comprising:

[0012] Obtain Internet of Vehicles data;

[0013] Taking the Internet of Vehicles data as input, the trained global model is used for processing to obtain the data processing results;

[0014] Among them, the global model is generated by aggregating local models that meet the performance requirements through a dynamic weighted aggregation algorithm during the federated learning process, and the number of training rounds of the local model is dynamically adjusted according to the training results of the global model, the training results of the local model, and the equipment performance and data quality of the vehicle node.

[0015] In some implementations, dynamically adjusting the number of training rounds of the local model according to the training results of the global model, the training results of the local model, and the device performance and data quality of the vehicle node specifically includes:

[0016] Obtain the device parameters and data parameters of all vehicle nodes, and calculate the performance scores of the vehicle nodes based on the device parameters and data parameters;

[0017] According to the performance scores of vehicle nodes, the equipment levels of vehicle nodes are divided and the initial training rounds of the corresponding local models are determined;

[0018] Based on the initial number of training rounds and combined with the changes in the AUC values ​​of the global model and the local model, the number of training rounds of the local model is dynamically adjusted.

[0019] In some implementations, determining whether the local model meets the performance requirements is specifically: calculating the AUC value of the trained local model, and determining whether it reaches a preset threshold.

[0020] In some implementations, aggregating local models that meet performance requirements through a dynamic weighted aggregation algorithm to generate a global model specifically includes:

[0021] Obtain the AUC value, accuracy rate and performance score of the corresponding vehicle node of each local model that meets the performance requirements, and obtain the corresponding fusion weight based on the AUC value, accuracy rate and performance score;

[0022] The local models are weighted according to the fusion weights to generate a global model.

[0023] In some implementations, all vehicle nodes are verified based on a registration request and a signature, where the registration request includes identity information of the vehicle node.

[0024] In some embodiments, the convergence condition for training the global model is that the accuracy is greater than a set threshold.

[0025] In a second aspect, the present invention provides a vehicle networking data processing system based on efficient aggregated federated learning;

[0026] A vehicle network data processing system based on efficient aggregate federated learning, comprising:

[0027] The acquisition module is configured to: acquire Internet of Vehicles data;

[0028] The federated learning module is configured to: take the Internet of Vehicles data as input, process it using the trained global model, and obtain the data processing results;

[0029] Among them, the global model is generated by aggregating local models that meet the performance requirements through a dynamic weighted aggregation algorithm during the federated learning process, and the number of training rounds of the local model is dynamically adjusted according to the training results of the global model, the training results of the local model, and the equipment performance and data quality of the vehicle node.

[0030] In a third aspect, the present invention provides an electronic device;

[0031] An electronic device includes a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the above-mentioned vehicle network data processing method based on efficient aggregated federated learning.

[0032] In a fourth aspect, the present invention provides a computer-readable storage medium;

[0033] A computer-readable storage medium having a computer program / instruction stored thereon, which, when executed by a processor, implements the steps of the above-mentioned vehicle network data processing method based on efficient aggregated federated learning.

[0034] In a fifth aspect, the present invention provides a computer program product;

[0035] A computer program product includes a computer program / instruction, which, when executed by a processor, implements the steps of the above-mentioned vehicle network data processing method based on efficient aggregated federated learning.

[0036] Compared with the prior art, the present invention has the following beneficial effects:

[0037] 1. The technical solution provided by the present invention scores the vehicle nodes according to the device performance and data quality of each vehicle node, ensuring that high-scoring nodes, that is, nodes with high reliability, can contribute more to the global model; at the same time, the scoring mechanism also helps to identify nodes with low resource utilization efficiency, optimize resource allocation, and avoid wasting training resources on equipment with poor performance or training nodes with low data quality; thereby improving the generalization ability of the global model, and significantly improving the overall training efficiency, ensuring fairness to the training nodes participating in the federated learning process, so that each node has the opportunity to participate in the training of the global model in accordance with its own performance.

[0038] 2. The technical solution provided by the present invention dynamically adjusts the number of local training rounds according to the changes in the AUC value of the model, which significantly improves the training efficiency and reduces the number of unnecessary training times, thereby saving time and computing resources; at the same time, it enhances the targetedness of training and stops training of inefficient models in a timely manner, so that training resources are more concentrated on nodes that have the potential to improve the performance of the global model.

[0039] 3. The technical solution provided by the present invention, when performing local model aggregation, selects local models with better performance through AUC values, and performs dynamic weighted aggregation in combination with their accuracy and the performance score of vehicle nodes; the training efficiency of the model is guaranteed from the three dimensions of AUC value, accuracy and performance score, and the prediction ability and overall performance of the model are effectively improved. The improved dynamic adjustment of the number of training rounds and dynamic weighting strategy enhance the adaptability and generalization ability of the model, which is more advantageous than the traditional average aggregation method. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0041] Figure 1 A schematic diagram of a process flow provided by an embodiment of the present invention;

[0042] Figure 2 A schematic diagram of a federated learning architecture provided for an embodiment of the present invention. DETAILED DESCRIPTION

[0043] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used in the present invention have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.

[0044] It should be noted that the terms used herein are only for describing specific embodiments, and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that the terms "include" and "have" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0045] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.

[0046] Embodiment 1

[0047] In the Internet of Vehicles scenario, the aggregation of federated learning is affected by the dynamically changing data environment and local vehicle nodes with different performances. The convergence speed of the aggregation process and the performance of the global model need to be improved. Therefore, the present invention provides an Internet of Vehicles data processing method based on efficient aggregation federated learning, which determines the number of training rounds according to the equipment performance and data quality of the vehicle nodes, introduces a local model screening mechanism based on the AUC value, optimizes the aggregation process of the global model, improves the resource utilization efficiency of the vehicle nodes and the convergence speed, generalization ability and prediction accuracy of the global model, and ensures the flexibility and reliability of the global model in different data environments.

[0048] Next, combine Figure 1-Figure 2 , a method for processing Internet of Vehicles data based on efficient aggregated federated learning disclosed in this embodiment is described in detail. The method for processing Internet of Vehicles data based on efficient aggregated federated learning is applied to the server side and includes the following steps:

[0049] S1. Obtain Internet of Vehicles data.

[0050] In this embodiment, the Internet of Vehicles data may be a vehicle characteristic map, which is used to identify emergency vehicles and non-emergency vehicles based on the vehicle characteristic map in the Internet of Vehicles scenario.

[0051] S2. Input the Internet of Vehicles data into the trained global model for processing to obtain the data processing results. The global model is generated by aggregating local models that meet the performance requirements during the federated learning process. The number of training rounds of the local model is dynamically adjusted according to the training performance of the vehicle node, the training results of the global model, the training results of the local model, and the equipment performance and data quality of the vehicle node.

[0052] In this embodiment, the data processing result may be a probability value of an emergency vehicle and a probability value of a non-emergency vehicle, and the local model is a convolutional neural network.

[0053] In some implementations, taking the case where the input data is a vehicle feature map and the local model is a convolutional neural network as an example, the federated learning process under the Internet of Vehicles technology is described in detail. The specific process is as follows:

[0054] Step 1: The server formulates the federated learning training task as emergency vehicle identification to better distinguish emergency vehicles from non-emergency vehicles and improve the efficiency and safety of the traffic system. The server will train the model, training tasks and vehicle nodes. The number of local training rounds is sent to the corresponding vehicle node set , vehicle node set Contains multiple vehicle nodes .

[0055] Here, the vehicle node The server randomly selects nodes from all vehicle nodes that communicate with the server, all of which are nodes that have passed the registration request and signature verification. Therefore, before executing step 1, each vehicle node that communicates with the server needs to be registered. The specific process is as follows:

[0056] (1) Vehicle node Generate a registration request containing its identity information. The registration request is expressed as:

[0057] ;

[0058] in, Indicates a registration request consisting of comprehensive information of the vehicle node and the vehicle node identification code. Represents a vehicle node Comprehensive information, including equipment failure rate, training data set size, training data set authenticity, response time and operating energy consumption; It is a vehicle node The identification code.

[0059] (2) Vehicle Node Use its private key Registration Request Sign, Sign It is expressed as follows:

[0060] ;

[0061] in, Indicates a digital signature algorithm, such as a digital signature algorithm based on the national secret algorithm SM2.

[0062] (3) Vehicle Node Register Request and its signature Sent to the server, the server responds to the registration, using the vehicle node The public key To verify the request and its digital signature If the verification is successful, a registration success message will be sent For vehicle nodes ; Otherwise, verification fails and a registration failure message is sent For vehicle nodes .

[0063] (4) Vehicle Node Receive a registration request response from the server. If you receive a registration success message , it indicates that the vehicle node Not a malicious vehicle, otherwise you will receive a failure message , it indicates that the vehicle node It was judged to be a malicious vehicle.

[0064] In order to enable high-reliability vehicle nodes to contribute more to the global model, optimize resource allocation, comprehensively consider the device performance of the vehicle nodes, data quality differences and the training effect of the local model, dynamically adjust the number of local training rounds for each vehicle node, and thus reduce the performance differences between local models caused by the device performance and data differences of the vehicle nodes. As an implementation method, the specific process of step 1 is as follows:

[0065] Step 101: Obtain device parameters and data parameters of all vehicle nodes, and perform performance scoring on the vehicle nodes according to the device parameters and performance parameters of the vehicle nodes.

[0066] Specifically, the equipment failure rate, training data set size, training data set authenticity, response time, and operating energy consumption of all vehicle nodes are obtained, and the training data set size is standardized so that they can be compared on the same scale. The standardized formula is as follows:

[0067] ;

[0068] In the formula, Indicates iThe size of the training dataset after normalization of vehicle nodes, Indicates the maximum size of the training dataset, Indicates the minimum size of the training dataset, Indicates i The training dataset size is 100 vehicle nodes.

[0069] In this embodiment, the operational reliability of the vehicle node is described by the equipment failure rate. The lower the equipment failure rate, the better the reliability of the vehicle node. The quality of the data on the vehicle node is described by the size of the training data set and the authenticity of the training data set. The larger the real data set, the higher the data quality. The response time is used to describe the speed at which the vehicle node responds to requests. The shorter the time, the faster the response. The operating cost of the vehicle node is described by the operating energy consumption. The higher the energy consumption, the higher the vehicle operating cost.

[0070] Here, the authenticity of the training data set is the ratio of normal images to the total number of images in the training data set. Each vehicle node verifies the images in the training data set through the MagicEXIF image verifier to detect whether the image is in a standard format, whether there is a conflict in the internal data of the image, and whether there is data inserted by third-party software in the image. If there is any abnormality in the image, it is regarded as an abnormal image.

[0071] Step 102: Calculate the performance score of the vehicle node based on the equipment failure rate, the size of the training data set, the authenticity of the training data set, the response time, and the operating energy consumption; the performance score is expressed as follows:

[0072] ;

[0073] In the formula, Indicates i Equipment failure rate of vehicle nodes, Indicates i The size of the training dataset after normalization of vehicle nodes is Indicates i The authenticity of the training dataset of vehicle nodes, Indicates i The response time of a vehicle node, Indicates i The operating energy consumption of each vehicle node is represents the equipment failure weight, represents the data scale weight, represents the data authenticity weight, represents the response time weight, represents the energy consumption weight, =1, the above weights are set based on historical experience.

[0074] In this embodiment, the final scoring result is between 0 and 1, with one decimal place retained.

[0075] Step 103: Determine the initial number of training rounds for each vehicle node based on the performance score; dynamically adjust the number of training rounds for the local model based on the training effect of the local model. The number of training rounds is expressed as:

[0076] ;

[0077] In the formula, Represents a vehicle node No. r The number of training rounds, Represents a vehicle node No. The number of training rounds, represents the first empirical parameter, represents the second empirical parameter, Indicates The AUC value of the global model obtained by training, Indicates The AUC value of the global model obtained by training, Represents a vehicle node No. The AUC value of the local model obtained by training, Represents a vehicle node No. The AUC value of the local model obtained by training, Indicates the minimum number of training rounds for vehicle nodes.

[0078] if This means that the change in the local model AUC value is greater than the change in the global model AUC value, and the number of local training rounds is reduced; otherwise, the number of rounds is increased. As the training task is executed, the server intelligently adjusts the number of vehicle training rounds.

[0079] Furthermore, the equipment level of each vehicle node is determined based on the performance score of each vehicle node, and different initial training rounds are assigned to each vehicle node based on the equipment level. The purpose is to improve the utilization rate of the vehicle nodes participating in the training and ensure that the training time between vehicle nodes with different performance is not much different.

[0080] For example, based on performance rating The vehicle nodes are divided into four equipment levels: A, B, C, and D. Training equipment performance rating , then the vehicle node The equipment level is D; if , then the vehicle node The equipment level is C; if , then the vehicle node The equipment level is B; if , then the vehicle node The equipment level is A.

[0081] The server allocates different initial training rounds according to different equipment levels and historical experience. The initial training round number of class A vehicle nodes is E A , the number of training rounds for class B vehicle nodes is E B , the number of training rounds for class C vehicle nodes is E C , the number of training rounds for class D vehicle nodes is E D .

[0082] Step 104: Server sends message Give the vehicle node set used to train the local model ,in, Model represents the training model, Task represents the training task, Represents a vehicle node No. r The number of training rounds.

[0083] Step 2: Vehicle node set for training local model Each vehicle node in Receive parameters and perform local model training. The following is the specific process of training a local model in a vehicle node:

[0084] Step 201: Initialize model parameters.

[0085] Vehicle Node Receive the global model from the server and parse Task Task,loads the received model data into the local computing unit and initializes the model and configuration parameters.

[0086] Step 202: The vehicle node uses its local data set to train the global model, and updates the model parameters to generate a local model, wherein different vehicle nodes have different numbers of local training rounds.

[0087] Step 203: Vehicle Node The trained model Upload to the server, the server calculates the AUC values ​​of all local models and the number of local models that meet the AUC threshold H ,like H>1. There are local models that meet the aggregation conditions. These local models are aggregated using a dynamic weighted aggregation algorithm to generate a global model. ;if H <1, the local model with the highest accuracy is selected as the global model.

[0088] In this embodiment, the AUC threshold is set to , which is used as a benchmark to screen whether the local model is eligible to participate in aggregation. , the local model is allowed to participate in dynamic weighted aggregation.

[0089] The dataset in the Internet of Vehicles scenario is unbalanced. The existing local model evaluation relies only on accuracy, and the evaluation results may tend to predict a larger number of categories. The high accuracy obtained may be misleading, masking the shortcomings of the local model in identifying minority categories. In order to overcome this limitation, the AUC value is used to evaluate the trained local model, which can more realistically capture the model's ability to recognize minority categories.

[0090] Furthermore, according to the local model AUC value, accuracy and corresponding vehicle node The performance score of the local model is dynamically weighted and aggregated to obtain the global model. It is expressed as follows:

[0091] ;

[0092] In the formula, It is i The weight of the combination of the AUC value, accuracy and performance score of the corresponding vehicle node of a local model.

[0093] in, , ; The accuracy weight is expressed as:

[0094] ;

[0095] The AUC value weight is expressed as:

[0096] ;

[0097] The performance score weight is expressed as:

[0098] ;

[0099] In the formula, and is a tuning parameter used to balance the relative importance of accuracy, AUC value, and vehicle score. Represents a vehicle node The accuracy of the local model is trained. Represents a vehicle node Train the AUC value of the local model. Represents a vehicle node performance rating.

[0100] The local model screening mechanism based on AUC value can protect data privacy while focusing on the robustness and generalization ability of the model's prediction results under different thresholds. In the dynamic weighted aggregation mechanism based on AUC value, accuracy and performance score, the accuracy evaluates the overall prediction ability of the model and reflects its prediction accuracy; the performance score of the vehicle node emphasizes the contribution of high-reliability nodes and highlights its optimization effect on the overall model performance. In this embodiment, when performing dynamic aggregation of local models, various performance indicators of the model are fully considered, so that the global model performs well in accuracy and can balance the characteristics of different devices and data sets.

[0101] Step 204: Evaluate the accuracy of the global model. If the accuracy reaches the set accuracy threshold, ac , the training is terminated and the global model is output; otherwise, steps 201 to 203 are repeated until the convergence condition is reached.

[0102] In this embodiment, ac =0.98.

[0103] In this way, the algorithm can adapt to the computing power of different devices while ensuring that the performance of the global model is effectively improved.

[0104] Embodiment 2

[0105] This embodiment discloses a vehicle network data processing system based on efficient aggregate federated learning, including:

[0106] The acquisition module is configured to: acquire Internet of Vehicles data;

[0107] The federated learning module is configured to: take the Internet of Vehicles data as input, process it using the trained global model, and obtain the data processing results;

[0108] Among them, the global model is generated by aggregating local models that meet the performance requirements through a dynamic weighted aggregation algorithm during the federated learning process, and the number of training rounds of the local model is dynamically adjusted according to the training results of the global model, the training results of the local model, and the equipment performance and data quality of the vehicle node.

[0109] It should be noted that the acquisition module and federated learning module above correspond to the steps in Embodiment 1, and the examples and application scenarios implemented by the modules and the corresponding steps are the same, but are not limited to the contents disclosed in Embodiment 1 above. It should be noted that the modules above, as part of the system, can be executed in a computer system such as a set of computer executable instructions.

[0110] Embodiment 3

[0111] This embodiment provides an electronic device, including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the above-mentioned method for processing Internet of Vehicles data based on efficient aggregated federated learning.

[0112] Embodiment 4

[0113] This embodiment provides a computer-readable storage medium having a computer program / instruction stored thereon. When the computer program / instruction is executed by a processor, the steps of the above-mentioned method for processing Internet of Vehicles data based on efficient aggregated federated learning are implemented.

[0114] Embodiment 5

[0115] This embodiment provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the above-mentioned vehicle network data processing method based on efficient aggregated federated learning.

[0116] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0117] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0118] These computer program instructions can also be loaded onto a computer or other programmable data processing device, and a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0119] The description of each embodiment in the above embodiments has different emphases. For parts not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0120] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A vehicle network data processing method based on efficient aggregate federated learning, characterized in that: include: Obtain Internet of Vehicles data; Taking the Internet of Vehicles data as input, the trained global model is used for processing to obtain the data processing results; The global model is generated by aggregating local models that meet the performance requirements through a dynamic weighted aggregation algorithm during the federated learning process. The specific process is as follows: S1. Vehicle Node Receive the global model from the server and parse Task Task,loads the received model data into the local computing unit and initializes the model and configuration parameters; S2, the vehicle node uses its local data set to train the global model, updates the model parameters to generate a local model, where different vehicle nodes have different numbers of local training rounds; S3, vehicle node The trained model Upload to the server, the server calculates the AUC values ​​of all local models and the number of local models that meet the AUC threshold H ,like H> 1. There are local models that meet the aggregation conditions. These local models are aggregated using a dynamic weighted aggregation algorithm to generate a global model. ;if H <1, the local model with the highest accuracy is selected as the global model; According to the local model AUC value, accuracy and corresponding vehicle node The performance score of the local model is dynamically weighted and aggregated to obtain the global model. It is expressed as follows: ; In the formula, It is i The weight of the combination of the AUC value, accuracy and performance score of the corresponding vehicle node of a local model; in, , ; The accuracy weight is expressed as: ; The AUC value weight is expressed as: ; The performance score weight is expressed as: ; In the formula, and is a tuning parameter used to balance the relative importance of accuracy, AUC value, and vehicle score. Represents a vehicle node The accuracy of the local model is trained. Represents a vehicle node Train the AUC value of the local model. Represents a vehicle node performance rating; S4: Evaluate the accuracy of the global model. If the accuracy reaches the set accuracy threshold, ac , the training is terminated and the global model is output; otherwise, steps S1 to S3 are repeated until the convergence condition is reached; The number of training rounds of the local model is dynamically adjusted according to the training results of the global model, the training results of the local model, and the equipment performance and data quality of the vehicle node. The specific process is as follows: S1. Obtain the equipment parameters and data parameters of all vehicle nodes, and perform performance scoring on the vehicle nodes according to the equipment parameters and performance parameters of the vehicle nodes; Specifically, the equipment failure rate, training data set size, training data set authenticity, response time, and operating energy consumption of all vehicle nodes are obtained, and the training data set size is standardized so that they can be compared on the same scale. The standardized formula is expressed as follows: ; In the formula, Indicates i The size of the training dataset after normalization of vehicle nodes, Indicates the maximum size of the training dataset, Indicates the minimum size of the training dataset, Indicates i The training dataset size of vehicle nodes; S2. Calculate the performance score of the vehicle node based on the equipment failure rate, training data set size, training data set authenticity, response time and operating energy consumption; the performance score is expressed as follows: ; In the formula, Indicates i Equipment failure rate of vehicle nodes, Indicates i The size of the training dataset after normalization of vehicle nodes is Indicates i The authenticity of the training dataset of vehicle nodes, Indicates i The response time of a vehicle node, Indicates i The operating energy consumption of each vehicle node is represents the equipment failure weight, represents the data scale weight, represents the data authenticity weight, represents the response time weight, represents the energy consumption weight, =1, the above weights are set based on historical experience; S3. Determine the initial number of training rounds for each vehicle node based on the performance score; dynamically adjust the number of training rounds for the local model based on the training effect of the local model. The number of training rounds is expressed as: ; In the formula, Represents a vehicle node No. r The number of training rounds, Represents a vehicle node No. The number of training rounds, represents the first empirical parameter, represents the second empirical parameter, Indicates The AUC value of the global model obtained by training, Indicates The AUC value of the global model obtained by training, Represents a vehicle node No. The AUC value of the local model obtained by training, Represents a vehicle node No. The AUC value of the local model obtained by training, Indicates the minimum number of training rounds for vehicle nodes; S4. Server sends message Give the vehicle node set used to train the local model ,in, Model represents the training model, Task represents the training task, Represents a vehicle node No. r The number of training rounds.

2. The method for processing Internet of Vehicles data based on efficient aggregated federated learning according to claim 1, characterized in that: Determining whether the local model meets the performance requirements is specifically as follows: calculating the AUC value of the trained local model and determining whether it reaches a preset threshold.

3. The method for processing Internet of Vehicles data based on efficient aggregated federated learning according to claim 1, characterized in that: All vehicle nodes are verified based on the registration request and signature, and the registration request contains the identity information of the vehicle node.

4. The Internet of Vehicles data processing system based on efficient aggregated federated learning is characterized by: include: The acquisition module is configured to: acquire Internet of Vehicles data; The federated learning module is configured to: take the Internet of Vehicles data as input, process it using the trained global model, and obtain the data processing results; The global model is generated by aggregating local models that meet the performance requirements through a dynamic weighted aggregation algorithm during the federated learning process. The specific process is as follows: S1. Vehicle Node Receive the global model from the server and parse Task Task,loads the received model data into the local computing unit and initializes the model and configuration parameters; S2, the vehicle node uses its local data set to train the global model, updates the model parameters to generate a local model, where different vehicle nodes have different numbers of local training rounds; S3, vehicle node The trained model Upload to the server, the server calculates the AUC values ​​of all local models and the number of local models that meet the AUC threshold H ,like H> 1. There are local models that meet the aggregation conditions. These local models are aggregated using a dynamic weighted aggregation algorithm to generate a global model. ;if H <1, the local model with the highest accuracy is selected as the global model; According to the local model AUC value, accuracy and corresponding vehicle node The performance score of the local model is dynamically weighted and aggregated to obtain the global model. It is expressed as follows: ; In the formula, It is i The weight of the combination of the AUC value, accuracy and performance score of the corresponding vehicle node of a local model; in, , ; The accuracy weight is expressed as: ; The AUC value weight is expressed as: ; The performance score weight is expressed as: ; In the formula, and is a tuning parameter used to balance the relative importance of accuracy, AUC value, and vehicle score. Represents a vehicle node The accuracy of the local model is trained. Represents a vehicle node Train the AUC value of the local model. Represents a vehicle node performance rating; S4: Evaluate the accuracy of the global model. If the accuracy reaches the set accuracy threshold, ac , the training is terminated and the global model is output; otherwise, steps S1 to S3 are repeated until the convergence condition is reached; The number of training rounds of the local model is dynamically adjusted according to the training results of the global model, the training results of the local model, and the equipment performance and data quality of the vehicle node. The specific process is as follows: S1. Obtain the equipment parameters and data parameters of all vehicle nodes, and perform performance scoring on the vehicle nodes according to the equipment parameters and performance parameters of the vehicle nodes; Specifically, the equipment failure rate, training data set size, training data set authenticity, response time, and operating energy consumption of all vehicle nodes are obtained, and the training data set size is standardized so that they can be compared on the same scale. The standardized formula is expressed as follows: ; In the formula, Indicates i The size of the training dataset after normalization of vehicle nodes, Indicates the maximum size of the training dataset, Indicates the minimum size of the training dataset, Indicates i The training dataset size of vehicle nodes; S2. Calculate the performance score of the vehicle node based on the equipment failure rate, training data set size, training data set authenticity, response time and operating energy consumption; the performance score is expressed as follows: ; In the formula, Indicates i Equipment failure rate of vehicle nodes, Indicates i The size of the training dataset after normalization of vehicle nodes is Indicates i The authenticity of the training dataset of vehicle nodes, Indicates i The response time of a vehicle node, Indicates i The operating energy consumption of each vehicle node is represents the equipment failure weight, represents the data scale weight, represents the data authenticity weight, represents the response time weight, represents the energy consumption weight, =1, the above weights are set based on historical experience; S3. Determine the initial number of training rounds for each vehicle node based on the performance score; dynamically adjust the number of training rounds for the local model based on the training effect of the local model. The number of training rounds is expressed as: ; In the formula, Represents a vehicle node No. r The number of training rounds, Represents a vehicle node No. The number of training rounds, represents the first empirical parameter, represents the second empirical parameter, Indicates The AUC value of the global model obtained by training, Indicates The AUC value of the global model obtained by training, Represents a vehicle node No. The AUC value of the local model obtained by training, Represents a vehicle node No. The AUC value of the local model obtained by training, Indicates the minimum number of training rounds for vehicle nodes; S4. Server sends message Give the vehicle node set used to train the local model ,in, Model represents the training model, Task represents the training task, Represents a vehicle node No. r The number of training rounds.

5. An electronic device comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the steps of the vehicle network data processing method based on efficient aggregated federated learning as described in any one of claims 1-3.

6. A computer-readable storage medium having a computer program / instruction stored thereon, characterized in that: When the computer program / instruction is executed by a processor, the steps of the vehicle network data processing method based on efficient aggregated federated learning as described in any one of claims 1 to 3 are implemented.

7. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instruction is executed by a processor, the steps of the vehicle network data processing method based on efficient aggregated federated learning as described in any one of claims 1 to 3 are implemented.

Citation Information

Patent Citations

  • Efficient federal learning method in Internet of Vehicles scene

    CN113313264A

  • Federal learning method based on Internet of Vehicles, roadside unit, vehicle node and base station

    CN114492739A