Intelligent connected vehicle trajectory prediction method and related device based on federated learning
By using federated learning and proxy re-encryption technology in intelligent connected cars, the problem of low privacy protection and low security in vehicle trajectory prediction of intelligent connected cars is solved, and efficient privacy protection and safe vehicle trajectory prediction model training are achieved. .
Patent Information
- Application Number
- CN202410772601.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-06-17
AI Technical Summary
Existing privacy protection solutions in vehicle trajectory prediction for intelligent connected cars have problems such as low security and high computational overhead. Especially in federated learning, it is difficult to effectively resist collusion attacks and ensure data privacy.
An intelligent network-connected vehicle trajectory prediction method based on federated learning is used to establish a federated learning system through server management SM, generate a master-public-private key pair, and use proxy re-encryption and homomorphic encryption technology. The vehicle sender trains the model locally and uses private Key encryption parameters are forwarded through the roadside basic unit RSU to forward the encryption model parameters and proxy re-encryption keys, and the aggregation server performs re-encryption and homomorphic operations to ensure the security and privacy protection of the model.
It achieves safe, flexible and efficient privacy protection for vehicle trajectory prediction models in intelligent connected car scenarios, reduces computing and communication overhead, resists collusion attacks between vehicles and aggregation servers, and improves the security of data privacy. .
Smart Images

Figure CN118337367B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent connected vehicles and information security technology, and specifically to a method and device for predicting the trajectory of an intelligent connected vehicle based on federated learning, a computing device, and a computer program product. Background Art
[0002] Intelligent networked vehicles can make driving safer, more comfortable and more efficient, and will gradually become a new generation of vehicles that can replace human operation. Among them, the intelligent information exchange and sharing between the car and X (people, cars, roads, background, etc.) is the core of the "networking" of cars. In the vehicle environment, the mobile car acts as a communication node, and the data communicated between the car and X includes vehicle driving status information, location information, etc. This information is closely related to vehicle safety and user privacy, so a complete security mechanism is required to ensure the information sharing of intelligent networked vehicles. At the same time, vehicle trajectory prediction based on the above communication data training is an important research direction of intelligent networked vehicles. Accurate and reliable vehicle trajectory prediction algorithms can detect potential traffic accidents in advance and protect the personal and property safety of drivers and passengers. Among them, sensitive personal information refers to personal information that may cause discrimination or serious harm to the personal and property safety of the owner, driver, passenger, and people outside the car once leaked or illegally used, that is, information such as vehicle whereabouts and trajectories. In actual scenarios, users consider the protection of privacy data. That is, data owners are worried about privacy leakage and refuse to share their real data with cloud control platforms / automakers / original equipment manufacturers. Related model training under intelligent connected vehicles often encounters data islands.
[0003] Most of the existing privacy protection schemes for vehicle trajectory prediction focus on centralized training of a single model for the vehicle, and only use differential privacy or homomorphic encryption as a privacy protection scheme in this process. Users are reluctant to upload data for privacy reasons, and the communication cost of offloading a large amount of distributed data to the cloud server is very high. At the same time, the use of differential privacy may sacrifice the effectiveness of training, because too much noise will reduce the effect of model training, which may pose a threat to personal safety in the scenario of intelligent connected vehicles.
[0004] In recent years, researchers have gradually begun to use federated learning for model training in response to the distributed characteristics of vehicles and the high requirements for privacy protection. Existing solutions for using HE under federated learning can be divided into the following two types:
[0005] (1) All participants use the same public-private key pair. Disadvantages: Curious participants can obtain information, and malicious participants can collude with the server.
[0006] (2) Based on multi-key homomorphic encryption scheme. Disadvantages: It is impossible to ensure that enough participants can decrypt at the same time (network characteristics) because the vehicle is moving all the time.
[0007] Therefore, in response to collusion attacks and networking characteristics in homomorphic encryption, the present invention solves the above problems by introducing proxy re-encryption, and uses federated learning, homomorphic encryption, and proxy re-encryption to provide a safe, flexible, and low-computational-cost privacy protection solution for vehicle trajectory prediction model training under intelligent connected vehicles. Summary of the invention
[0008] In view of the above problems, the present invention is proposed to provide a method and apparatus for intelligent connected vehicle trajectory prediction based on federated learning, a computing device, and a computer program product that overcome the above problems of low security and high computational overhead.
[0009] According to one aspect of the present invention, a method for predicting a trajectory of an intelligent connected vehicle based on federated learning is provided, comprising:
[0010] Establish a federated learning (FL) system through the server management SM and generate a master public-private key pair, and generate a private key for each participant based on the master key and pseudonym;
[0011] The aggregation server AS receives the encryption model parameters and proxy re-encryption key from the vehicle sender DS forwarded by the roadside infrastructure unit RSU, uses the re-encryption key to re-encrypt the original ciphertext, and performs homomorphic operations on all re-encrypted ciphertexts to obtain the aggregation model;
[0012] Forwarding vehicle information through a roadside basic unit RSU, wherein the roadside basic unit RSU serves as a wireless communication device between the aggregation server AS and the vehicle client; wherein the vehicle client includes a vehicle sender DS and a vehicle receiver DR;
[0013] The vehicle sender DS locally trains a trajectory prediction model based on the vehicle position and acceleration information, and encrypts the model parameters using its private key to generate the original ciphertext;
[0014] The vehicle sender DS selects N vehicles from all vehicles as receivers, generates a proxy re-encryption key, and then sends the original ciphertext and the proxy re-encryption key to the aggregation server AS through the roadside infrastructure unit RSU;
[0015] The vehicle receiver DR receives the aggregation model forwarded by the roadside infrastructure unit RSU from the aggregation server AS and uses its private key to decrypt the aggregation model to update the local model.
[0016] In an optional manner, the learning process of the federated learning system includes the following steps:
[0017] The server manages SM to initialize security parameters and the maximum number of receivers, and generates public keys PK and private keys SK for federated learning;
[0018] The vehicle sender DS informs the server management SM of its vehicle ID, receives the pseudonym PVID and the private key generated based on the PVID, trains the trajectory prediction model locally, and uses the private key to encrypt the model parameters to obtain the original ciphertext C;
[0019] The vehicle sender DS selects N vehicles from all vehicles as the receivers of this round of federated learning, generates a proxy re-encryption key, and sends it together with the original ciphertext C to the aggregation server AS through the roadside infrastructure unit RSU.
[0020] In an optional manner, the aggregation server AS performs the following operations:
[0021] Receive the original ciphertext C and the proxy re-encryption key of each vehicle from the roadside basic unit RSU, and execute the re-encryption algorithm to obtain the proxy re-encrypted ciphertext;
[0022] Perform homomorphic operations on the re-encrypted ciphertext of each vehicle to obtain an aggregate model;
[0023] The aggregate model is sent to each vehicle participant through the roadside infrastructure unit RSU, and the participant uses his own private key to decrypt the aggregate model and update the local model.
[0024] In an optional manner, the roadside infrastructure unit RSU only serves as a transmission medium for forwarding vehicle information to the aggregation server AS.
[0025] In an optional manner, the method further includes:
[0026] The vehicle sender DS requests the re-encrypted data and decrypts it using its private key;
[0027] The vehicle receiver DR updates the local model from the latest global model, and repeats until the global model converges; wherein the global model aggregates the local models of all participants.
[0028] In an optional manner, the learning process of the federated learning system further includes the following steps:
[0029] Step S1, initializing security parameters and the maximum number of recipients through the server management SM, and generating a public key PK and a private key SK;
[0030] Step S2, the vehicle sender DS informs the server management SM of its vehicle ID, and the server management SM generates the vehicle pseudonym PVID based on the public key PK and the vehicle ID, and generates the private key of the PVID based on the private key SK and the PVID ;
[0031] Step S3, each vehicle locally trains a trajectory prediction model based on the vehicle position and acceleration, and uses an encryption algorithm to encrypt its model parameters according to a private key to obtain an original ciphertext C;
[0032] Step S4: Each vehicle sender selects some vehicles from all other vehicles as the receiver set S of this round of federated learning, where the set S is the anonymous identity set of the receiver vehicles; the proxy re-encryption key generation algorithm generates the proxy re-encryption key by inputting the set S and the sender's private key. , and then send it together with the original ciphertext C to the aggregation server through the roadside base unit RSU;
[0033] Step S5: The aggregation server receives the original ciphertext C and the proxy re-encryption key of each vehicle from the roadside base unit RSU. , and execute the re-encryption algorithm to obtain the corresponding proxy re-encrypted ciphertext ;
[0034] Step S6, the aggregation server performs homomorphic operations on the re-encrypted ciphertext of each vehicle to obtain an aggregation model;
[0035] Step S7, sending the aggregate model to each vehicle receiver DR through the roadside infrastructure unit RSU, the vehicle receiver DR uses its own private key to decrypt the aggregate model, obtains a new round of original model parameter information, updates its local model, and repeats steps S3 to S6 for continuous iteration.
[0036] According to another aspect of the present invention, a device for predicting trajectory of an intelligent connected vehicle based on federated learning is provided, comprising:
[0037] A key generation module, used to establish a federated learning system through the server management SM and generate a master public-private key pair, and to generate a private key for each participant based on the master key and the pseudonym;
[0038] The re-encryption and aggregation module is used to receive the encryption model parameters and proxy re-encryption key of the vehicle sender DS forwarded from the roadside basic unit RSU through the aggregation server AS, re-encrypt the original ciphertext using the re-encryption key, and perform homomorphic operations on all re-encrypted ciphertexts to obtain an aggregate model;
[0039] A vehicle information forwarding module, used to forward vehicle information through a roadside basic unit RSU, wherein the roadside basic unit RSU serves as a wireless communication device between the aggregation server AS and the vehicle client;
[0040] The model training and encryption module is used by the vehicle sender DS to train the trajectory prediction model locally based on the vehicle position and acceleration information, and encrypt the model parameters using its private key to generate the original ciphertext;
[0041] A receiving selection and proxy re-encryption module is used for the vehicle sender DS to select N vehicles as receivers from all vehicles and generate a proxy re-encryption key, and then send the original ciphertext and the proxy re-encryption key to the aggregation server AS through the roadside basic unit RSU;
[0042] The aggregation model receiving and decryption module is used to receive the aggregation model from the aggregation server AS forwarded by the roadside basic unit RSU through the vehicle receiver DR, and use its private key to decrypt the aggregation model to update the local model.
[0043] According to another aspect of the present invention, there is provided a computing device, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus;
[0044] According to yet another aspect of the present invention, a computer program product is provided, comprising at least one executable instruction, wherein the executable instruction enables the processor to perform operations corresponding to the above-mentioned method for trajectory prediction of intelligent connected vehicles based on federated learning.
[0045] According to the solution provided by the present invention, a federated learning system is established through a server management SM and a master public-private key pair is generated, and a private key is generated for each participant based on the master key and the pseudonym; the encryption model parameters and the proxy re-encryption key from the vehicle sender DS forwarded through the roadside basic unit RSU are received through the aggregation server AS, the original ciphertext is re-encrypted using the re-encryption key, and all re-encrypted ciphertexts are homomorphically operated to obtain an aggregation model; the vehicle information is forwarded through the roadside basic unit RSU, wherein the roadside basic unit RSU serves as a wireless communication device between the aggregation server AS and the vehicle client; wherein, The vehicle client includes a vehicle sender DS and a vehicle receiver DS; the vehicle sender DS locally trains a trajectory prediction model based on information such as vehicle position and acceleration, and uses its private key to encrypt model parameters to generate original ciphertext; the vehicle sender DS selects N vehicles from all vehicles as receivers, generates a proxy re-encryption key, and then sends the original ciphertext and the proxy re-encryption key to the aggregation server AS through the roadside basic unit RSU; the vehicle receiver DR receives the aggregation model forwarded from the aggregation server AS by the roadside basic unit RSU, and uses its private key to decrypt the aggregation model to update the local model. The proxy re-encryption key generation stage constructed by the present invention on the client uses more modular multiplication operations with low computational overhead, reduces the use of other algebraic operations with high computational overhead, supports homomorphic addition of local models re-encrypted by multiple receivers, and can aggregate the proxy re-encrypted ciphertexts of different data senders of the same receiver, effectively reducing computational overhead and communication overhead. The private key of the vehicle does not depend on the real identity of the vehicle, and anonymization can separate personal identity information from other data, so that user personal information cannot be directly identified and associated with a specific individual. At the same time, due to the introduction of proxy re-encryption, it can resist collusion attacks between vehicles and between vehicles and aggregation servers, and has high security. Since the key generation stage does not depend on whether the vehicle is online, and the decryption only requires each vehicle receiver participating in federated learning to independently decrypt the aggregation model, it has better flexibility and adapts to the characteristics of networking.
[0046] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0048] Figure 1 A schematic diagram of a process for predicting a trajectory of an intelligent connected vehicle based on federated learning according to an embodiment of the present invention is shown;
[0049] Figure 2 A schematic diagram showing the overall solution of an embodiment of the present invention;
[0050] Figure 3 A schematic diagram of a system model of an embodiment of the present invention is shown;
[0051] Figure 4 A schematic diagram of a system workflow of an embodiment of the present invention is shown;
[0052] Figure 5 A schematic diagram of a framework of a device for predicting trajectory of an intelligent networked vehicle based on federated learning according to an embodiment of the present invention is shown;
[0053] Figure 6 A schematic diagram of the structure of a computing device according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0054] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.
[0055] Before introducing the embodiments of the present invention, we first introduce federated learning. Federated learning is essentially a distributed machine learning framework that enables data sharing and joint modeling while ensuring data privacy and security. Under the federated learning framework, the aggregation server can use the data without obtaining private information from other clients, and the relevant data is stored locally. For a specific duration, the client and the aggregation server share their local model gradients. The aggregation server builds a global model through all received local model gradients. Subsequently, the aggregation server distributes the new model to all clients, and the clients download the new local model, train it locally using relevant data, and then share the local model gradients with the aggregation server for continuous iteration.
[0056] In simple terms, federated learning solves the problem of isolated vehicle trajectory data by exchanging model parameters, and does not expose the real trajectory data of each party to achieve joint modeling. However, traditional federated learning still has the risk of privacy leakage when training models with data, such as reasoning attacks, model attacks, data poisoning, etc. In order to enhance data privacy protection, federated learning usually adopts different mechanisms, such as differential privacy (DP), homomorphic encryption (HE), secure multi-party computing (SMC), etc. DP cannot completely prevent data leakage, and sensitive information can still be inferred from noise through multiple queries or combined with other external information. This situation is called a "profile attack", in which the attacker infers the sensitive characteristics of an individual by analyzing multiple query results or associating other information. At the same time, the use of differential privacy will sacrifice the training effect, and too much noise will reduce the effectiveness of model training. This is easy to cause personal safety threats in the scenario of intelligent connected vehicles. SMC introduces complex protocols, which makes it impractical, while HE achieves a balance between security and operability.
[0057] like Figure 2 As shown in the figure, most existing solutions train a single model for vehicles. In view of the importance of data privacy and distributed characteristics of intelligent connected vehicles, the present invention combines intelligent connected vehicles with federated learning. At the same time, in order to further improve the security of user privacy, homomorphic proxy re-encryption is introduced. The specific system model is as follows Figure 3 As shown, the following four entities are mainly involved:
[0058] (1) Server Management (SM): SM is a trusted entity that establishes the system and owns the master public-private key pair. It generates a private key for each participant based on the master key and pseudonym.
[0059] (2) Aggregation Server AS: AS has huge storage space and computing resources. Therefore, the aggregation server can re-encrypt the original ciphertext using the re-encryption key and perform homomorphic operations on all re-encrypted ciphertexts. Please note that the present invention assumes that the aggregation server is honest but curious, which means that it honestly follows the plan but is curious about information beyond the allowed scope.
[0060] (3) Roadside Unit (RSU): RSU is a wireless communication device located on the roadside between the AS and the client. It is connected to the AS via a wire. In the present invention, RSU only serves as a transmission medium for communication between the AS and the vehicle.
[0061] (4) Client: Clients can be divided into data senders (DS) and data receivers (DR), where DS uploads its local model to the aggregation server. It can also upload a re-encryption key, allowing the aggregation server to re-encrypt its data and send it to a specific set of recipients. DR requests re-encrypted data, and after receiving it, DR can decrypt them using its private key. In a federated learning system, DS must update its local model from the latest global model, which aggregates the local models of all participants. The above process is repeated until the global model converges. Therefore, DS must also receive the global model to update its local model, so it is also a DR. The present invention assumes that all clients are vehicles.
[0062] Figure 1 The flowchart of the method for predicting the trajectory of an intelligent connected vehicle based on federated learning according to an embodiment of the present invention is shown. Figure 1 As shown, the following steps are included:
[0063] Step S101, establish a federated learning system through the server management SM and generate a master public-private key pair, and generate a private key for each participant based on the master key and the pseudonym.
[0064] In this embodiment, the learning process of the federated learning system includes the following steps:
[0065] The server manages SM to initialize security parameters and the maximum number of receivers, and generates public keys PK and private keys SK for federated learning;
[0066] The vehicle sender DS informs the server management SM of its vehicle ID, receives the pseudonym PVID and the private key generated based on the PVID, trains the trajectory prediction model locally, and uses the private key to encrypt the model parameters to obtain the original ciphertext C;
[0067] The vehicle sender DS selects N vehicles from all vehicles as the receivers of this round of federated learning, generates a proxy re-encryption key, and sends it together with the original ciphertext C to the aggregation server AS through the roadside infrastructure unit RSU.
[0068] In this embodiment, the definitions of various parameters are shown in Table 1:
[0069] Table 1 Parameter definition
[0070]
[0071] For example, the server management (SM) first initializes security parameters (including the selection of encryption algorithms, key length, hash functions, etc.). The maximum number of receivers is set, and a public key (PK) and a private key (SK) are generated. Among them, the public key is used to encrypt data, while the private key is used to decrypt or sign data. The vehicle sender DS informs the SM of its vehicle ID to obtain a pseudonym (PVID) and a private key based on the PVID. The pseudonym and private key are used to anonymize and securely communicate during the federated learning process. Using the private key obtained from the SM, the DS encrypts the model parameters to obtain the original ciphertext C. The DS selects N vehicles from all vehicles as the receivers of this round of federated learning. Proxy re-encryption allows an entity (such as DS) to generate a proxy re-encryption key using its private key and the public key of the receiver, and then send the key together with the original ciphertext to another entity (such as AS). AS uses the proxy re-encryption key to convert the original ciphertext into a ciphertext that only the receiver can decrypt without knowing the private key of DS. DS sends the proxy re-encryption key and the original ciphertext C to the aggregation server AS through the roadside infrastructure unit RSU. After receiving the proxy re-encryption key and original ciphertext from DS, AS uses the proxy re-encryption key to convert the original ciphertext into a ciphertext that only the receiver can decrypt. The selected receiver uses its private key to decrypt the ciphertext received from AS and obtain the model parameters.
[0072] In an optional manner, the method further includes:
[0073] The vehicle sender DS requests the re-encrypted data and decrypts it using its private key;
[0074] The vehicle receiver DR updates the local model from the latest global model, and repeats until the global model converges; wherein the global model aggregates the local models of all participants.
[0075] In this embodiment, in each round of federated learning, the DS (vehicle sender) encrypts the model parameters obtained by its local training and generates an original ciphertext C using the private key provided by the server management (SM). Then, the DS selects one or more receivers (DR) and generates corresponding proxy re-encryption keys so that these receivers can decrypt the ciphertexts. The DS sends the original ciphertext C and the proxy re-encryption key to the aggregation server AS through the roadside infrastructure unit RSU.
[0076] Step S102, receiving the encryption model parameters and proxy re-encryption key from the vehicle sender DS forwarded by the roadside infrastructure unit RSU through the aggregation server AS, using the re-encryption key to re-encrypt the original ciphertext, and performing homomorphic operations on all re-encrypted ciphertexts to obtain the aggregation model.
[0077] In this embodiment, the aggregation server AS performs the following operations:
[0078] Receive the original ciphertext C and the proxy re-encryption key of each vehicle from the roadside basic unit RSU, and execute the re-encryption algorithm to obtain the proxy re-encrypted ciphertext;
[0079] Perform homomorphic operations on the re-encrypted ciphertext of each vehicle to obtain an aggregate model;
[0080] The aggregate model is sent to each vehicle participant through the roadside infrastructure unit RSU, and the participant uses his own private key to decrypt the aggregate model and update the local model.
[0081] For example, AS uses the proxy re-encryption key received from DS to perform a re-encryption algorithm on the original ciphertext C. The purpose of re-encryption is to ensure that only specific recipients (i.e., DRs selected as recipients by DS) can decrypt these ciphertexts using their private keys. After re-encryption, the original ciphertext C is converted into a proxy re-encrypted ciphertext that only the corresponding DR can decrypt. AS performs homomorphic operations on the re-encrypted ciphertexts received from all DSs for the same DR. Homomorphic operations allow the server to process encrypted data without decryption to obtain aggregated model updates. In the above process, AS aggregates ciphertexts from different DSs through homomorphic operations to generate an encrypted model. The aggregation server (AS) sends the aggregated encrypted model update to each vehicle participant (including DS and DR) through the roadside infrastructure unit RSU. The receiving DR uses its own private key to decrypt the encrypted aggregate model received from AS and updates its local model.
[0082] Step S103, forwarding vehicle information through a roadside infrastructure unit RSU, wherein the roadside infrastructure unit RSU serves as a wireless communication device between the aggregation server AS and the vehicle client; wherein the vehicle client includes a vehicle sender DS and a vehicle receiver DS.
[0083] In this embodiment, the roadside basic unit RSU only serves as a transmission medium for forwarding vehicle information to the aggregation server AS.
[0084] In step S104, the vehicle sender DS locally trains a trajectory prediction model based on information such as the vehicle position and acceleration, and uses its private key to encrypt the model parameters to generate an original ciphertext.
[0085] The vehicle sender DS locally trains the trajectory prediction model based on information such as vehicle position and acceleration, and uses its private key to encrypt the model parameters to generate the original ciphertext, enhancing the security and compliance of privacy data.
[0086] In step S105, the vehicle sender DS selects N vehicles from all vehicles as recipients, generates a proxy re-encryption key, and then sends the original ciphertext and the proxy re-encryption key to the aggregation server AS through the roadside infrastructure unit RSU.
[0087] Step S106: The vehicle receiver DR receives the aggregation model forwarded from the aggregation server AS via the roadside infrastructure unit RSU, and uses its private key to decrypt the aggregation model to update the local model.
[0088] like Figure 4 As shown, the complete learning process of the federated learning system in this embodiment is given, including the following steps:
[0089] Step S1, initializing security parameters and the maximum number of recipients through server management, generating a public key PK and a private key SK;
[0090] Step S2, the vehicle sender DS informs the server management of its vehicle ID, and the server management generates the vehicle pseudonym PVID based on the public key PK and the vehicle ID, and generates the private key of the PVID based on the private key SK and the PVID ;
[0091] Step S3, each vehicle locally trains a trajectory prediction model based on the vehicle position and acceleration, and uses an encryption algorithm to encrypt its model parameters according to a private key to obtain an original ciphertext C;
[0092] Step S4: Each vehicle sender selects some vehicles from all other vehicles as the receiver set S of this round of federated learning, where the set S is the anonymous identity set of the receiver vehicles; the proxy re-encryption key generation algorithm generates the proxy re-encryption key by inputting the set S and the sender's private key. , and then send it together with the original ciphertext C to the aggregation server through the roadside base unit RSU;
[0093] Step S5: The aggregation server receives the original ciphertext C and the proxy re-encryption key of each vehicle from the roadside base unit RSU. , and execute the re-encryption algorithm to obtain the corresponding proxy re-encrypted ciphertext ;
[0094] Step S6, the aggregation server performs homomorphic operations on the re-encrypted ciphertext of each vehicle to obtain an aggregation model;
[0095] Step S7, sending the aggregate model to each vehicle receiver DR through the roadside infrastructure unit RSU, the vehicle receiver DR uses its own private key to decrypt the aggregate model, obtains a new round of original model parameter information, updates its local model, and repeats steps S3 to S6 for continuous iteration.
[0096] The solution provided by the present invention has the advantages of complete anonymity, anti-collusion attack and selective ciphertext attack (CCA) security, and has a low computing cost. Since the algorithms of the proxy re-encryption key generation phase and the re-encryption phase are reconstructed, the overhead of executing the proxy re-encryption key generation phase on the client is effectively reduced. The total computing overhead of the present invention is small, and it is more suitable for the vehicle trajectory prediction model in the intelligent networked vehicle scenario. Specifically, considering that the computing resources of the vehicle are small, the proxy re-encryption key generation phase performed on the client constructed in this embodiment uses more modular multiplication operations with low computing overhead, reduces the use of other algebraic operations with high computing overhead, supports homomorphic addition of local models re-encrypted by multiple receivers, and the proxy re-encrypted ciphertexts of different data senders of the same receiver can be aggregated, effectively reducing the computing overhead and communication overhead. Due to the use of an anonymous mechanism, the private key of the vehicle does not depend on the real identity of the vehicle, and anonymization can separate personal identity information from other data, so that the user's personal information cannot be directly identified and associated with a specific individual. At the same time, due to the introduction of proxy re-encryption, it can resist collusion attacks between vehicles and between vehicles and aggregation servers, and has high security. Since the key generation stage does not depend on whether the vehicle is online, and decryption only requires each vehicle recipient participating in federated learning to independently decrypt the aggregation model, it is flexible and more adaptable to networking characteristics.
[0097] It should be noted that the technical solution provided by the present invention is superior to other solutions in terms of computational overhead, especially in the re-encryption key generation phase performed on a client with limited computing resources. The following is the process and results of the experiment:
[0098] The present invention uses Intel (R) Core (TM) i5-13500H @ 2.60 GHz 16.0 GB CPU memory for experiments. The testbed consists of a Linux Kali 2023.3 virtual machine, using the Charm Crypto library. Bilinear cryptography uses the Charm Crypto A-type elliptic curve, where the elements in G are 512 bits.
[0099] For ease of comparison, all results are standardized by converting 16384 gradient parameters into 40KB and unifying all experimental results (the time required to encrypt 1 bit of plaintext information).
[0100] Among them, the execution time of Enc is: The execution time of is linear and increases with the number of recipients. Generating encryption keys requires all participants to be online at the same time to generate public keys. The experiment assumes that all participants are online at the same time. However, and The encryption operation is designed for a single recipient and cannot be used for multiple recipients. The same encryption algorithm is used that is independent of the online participants, and encryption of multiple recipients is achieved in the shortest time. When the number of people reaches 45, the time consumed by the plan is about 39.1 times, 36.0 times and 16.7 times that of the present invention.
[0101] RKGen execution time: Due to and The proxy re-encryption is limited to one-to-one, and the generation of the re-encryption key is linear in the number of receivers. The complexity of the key generation algorithm involving receiver calculation is relatively high. When the number of receivers is 45, the time to generate the re-encrypted key is 20.598 milliseconds. Lack of proxy re-encryption function. Considering that this part is executed on the client with limited computing resources, the present invention reduces the complexity of the receiver's calculation at this stage, thereby shortening the time. When the number of receivers reaches 45, it only takes 1.866 milliseconds.
[0102] Execution time of ReEnc: and The decryption time increases linearly with the number of recipients, while the solution provided by the present invention and After 35 recipients, the time expenditure gradually increases. The execution time at this stage is the least, but when the number of receivers reaches 45, the present invention requires 22.608 milliseconds, while It takes 9.553 milliseconds, which is only 2.4 times the time of the present invention. Since this part is executed on an aggregation server with abundant computing resources, the computing cost of the present invention is acceptable.
[0103] Add execution time: The execution time of increases linearly with the number of participants. The execution time of the proposed method is very short, but when the number of people is 5, 10, 15 and 20, the plan is 3.7 times, 4.6 times, 4.6 times and 3.8 times longer than the plan of the present invention. When the number of people reaches 45, the plan of the present invention is completed in only 0.853 milliseconds. At any time, the aggregation time of the present invention is the shortest.
[0104] Table 2 records the computational overhead of performing modular multiplication conversion in various encryption operations. The following will compare the theoretical computational overhead of the present invention and related similar schemes from the encryption stage, proxy re-encryption key generation stage, re-encryption stage, re-encryption decryption stage and aggregation stage.
[0105] Table 2 Computational cost of each operation
[0106]
[0107] Among them, the encryption stage:
[0108] The first solution is a multi-key fully homomorphic solution based on CKKS under the federated learning architecture. The encryption algorithm is ,in, Composition, ct in the formula i is the ciphertext information, d i For the i-th client, c 0 , c 1 is the ciphertext vector, p represents the modulus, m is the plaintext information, and v is the vector that obeys the key distribution. is the aggregate public key, consisting of N b i Composition, i is the secret key, a is the public random vector, e 0 , e 1 , e i are all error vectors. The calculation includes 4 modular exponentiation operations and 2 modular multiplication operations in total. The calculation cost is .
[0109] The second scheme is the traditional ID-based one-to-one proxy re-encryption scheme , the encryption algorithm is as follows: ,in , , In this calculation process, c is the ciphertext information, S, r are hash values, id is the ID name, g is a generator of G, and σ is G T An element on H 4 , H 5 is a specific hash function. The algorithm involves 1 pairing operation, 1 modular multiplication operation, and 4 exponentiation operations, that is, the computational overhead .
[0110] The third scheme is an ID-based one-to-many homomorphic proxy re-encryption scheme. , using encryption algorithm ,in , , , In the algorithm, χ, c, π, S together constitute the ciphertext information, P is a bilinear map, r is a non-generator element on the group P, τ is a hash value, g, v, w is a generator of G, s is an element on the group P, sk A is A’s private key, pk A is the public key of A, involving a total of 6 exponentiation operations and 3 multiplication operations, namely .
[0111] The solution provided by the present invention and The encryption algorithms in the schemes are the same, as follows: , , , , where c1, c2, and c3 together constitute the ciphertext information, where Z is a bilinear mapping, and the remaining parameters are explained in Table 1. The algorithm has 5 power operations and 4 modular multiplication operations, only .
[0112] Proxy re-encryption key generation phase:
[0113] During the proxy re-encryption key generation phase, The re-encryption key of the scheme is based on the receiver set , that is, by rk 1 , rk 2 , rk 3 , rk 4 , rk 5 Together they form the re-encryption key, , a total of 2n+4 exponentiation operations, n+3 multiplication operations and 1 modular multiplication operation, the computational overhead is Considering that each of the present invention involves exponentiation, the present invention converts the IMHPRE The simplification of , the parameters involved are explained in Table 1. Therefore, the computational cost is reduced to Other schemes generate proxy re-encryption keys for only one receiver at a time during the key generation phase.
[0114] Since the IBP2 scheme uses a bilinear map and can only generate a proxy re-encryption key for one receiver at a time, ,in, , N is a random number, K is a bilinear map, involving a total of one pairing operation, one modular multiplication operation and two hash operations, the total cost is: .
[0115] The G-HPRE scheme has a smaller computational overhead than this scheme due to the simplicity of the key generation algorithm. , but within an acceptable range, i.e. .
[0116] Proxy re-encryption phase:
[0117] The G-HPRE algorithm is The parameters involved are explained in Table 1, which involves 3n pairing operations, 2n modular multiplication operations and 2n power operations, that is, , this is not a lightweight ID-based solution.
[0118] The algorithm of the IBP2 scheme is: , where A and C are part of the initial ciphertext information, and B' is the deformation of the ciphertext information. A total of 2n pairing operations, n modular multiplication operations, 2n exponentiation operations, and 3n hash operations are involved. Therefore, the total computational cost is .
[0119] But in In the scheme, the number of bilinear mapping operations is reduced in this stage, in the re-encryption stage: , , , , where CT r is the ciphertext information, c r1 , c r2 , c r3 Together, the computational cost is Since the present invention reduces the client overhead in the previous stage, In comparison, the cost of this stage is ,Compare However, since this phase occurs on an aggregation server with abundant computing resources, this overhead is acceptable.
[0120] Proxy re-encryption and decryption phase:
[0121] The present invention and The plan is The absolute advantage is leading, and the heavy encryption algorithm is , , , where DLP is the discrete logarithm problem on elliptic curves, w' is a bilinear mapping value, and the remaining parameters have been explained in the previous stage. A total of two modular inverse operations, one pairing operation, and two modular multiplication operations are involved.
[0122] In the G-HPRE scheme, the algorithm is , the computational cost is , since each ciphertext must be decrypted individually, the computational overhead is high.
[0123] The computational cost of the IBP2 solution at this stage is . This is also because each ciphertext must be decrypted individually, so the computational overhead is high.
[0124] Aggregation phase:
[0125] In the aggregation stage, the computational overhead of the present invention and It is comparable, only more than half of G-HPRE, and has a larger computational overhead than xMK-CKKs, but this is acceptable because the aggregation phase is performed on a server with powerful and abundant computing resources rather than on a client with less computing resources.
[0126] In general, the total computational overhead of the present invention is comparable to that of IMHPRE, but significantly less than that of G-HPRE. In addition, the overhead of the client re-encryption key generation phase is greatly reduced. In the scenario of intelligent connected vehicles, the computing resources of the client vehicle are not as powerful and abundant as those of the aggregation server, so the present invention is more suitable for the training of the vehicle trajectory prediction model.
[0127] Figure 5 The structure diagram of the intelligent connected vehicle trajectory prediction device based on federated learning according to an embodiment of the present invention is shown. The intelligent connected vehicle trajectory prediction device based on federated learning includes: a key generation module 510, a re-encryption and aggregation module 520, a vehicle information forwarding module 530, a model training and encryption module 540, a receiving selection and proxy re-encryption module 550, and an aggregation model receiving and decryption module 560.
[0128] The key generation module 510 is used to establish a federated learning system through the server management SM and generate a master public-private key pair, and generate a private key for each participant based on the master key and the pseudonym;
[0129] The re-encryption and aggregation module 520 is used to receive the encryption model parameters and the proxy re-encryption key from the vehicle sender DS forwarded by the roadside infrastructure unit RSU through the aggregation server AS, re-encrypt the original ciphertext using the re-encryption key, and perform homomorphic operations on all re-encrypted ciphertexts to obtain an aggregate model;
[0130] The vehicle information forwarding module 530 is used to forward vehicle information through a roadside basic unit RSU, wherein the roadside basic unit RSU serves as a wireless communication device between the aggregation server AS and the vehicle client;
[0131] The model training and encryption module 540 is used for the vehicle sender DS to locally train the trajectory prediction model based on information such as the vehicle position and acceleration, and encrypt the model parameters using its private key to generate the original ciphertext;
[0132] The receiving selection and proxy re-encryption module 550 is used for the vehicle sender DS to select N vehicles from all vehicles as receivers, generate a proxy re-encryption key, and then send the original ciphertext and the proxy re-encryption key to the aggregation server AS through the roadside infrastructure unit RSU;
[0133] The aggregation model receiving and decryption module 560 is used to receive the aggregation model forwarded from the aggregation server AS through the roadside infrastructure unit RSU through the vehicle receiver DR, and use its private key to decrypt the aggregation model to update the local model.
[0134] In an optional manner, the learning process of the federated learning system includes the following steps:
[0135] The server manages SM to initialize security parameters and the maximum number of receivers, and generates public keys PK and private keys SK for federated learning;
[0136] The vehicle sender DS informs the server management SM of its vehicle ID, receives the pseudonym PVID and the private key generated based on the PVID, trains the trajectory prediction model locally, and uses the private key to encrypt the model parameters to obtain the original ciphertext C;
[0137] The vehicle sender DS selects N vehicles from all vehicles as the receivers of this round of federated learning, generates a proxy re-encryption key, and sends it together with the original ciphertext C to the aggregation server AS through the roadside infrastructure unit RSU.
[0138] In an optional manner, the aggregation server AS performs the following operations:
[0139] Receive the original ciphertext C and the proxy re-encryption key of each vehicle from the roadside basic unit RSU, and execute the re-encryption algorithm to obtain the proxy re-encrypted ciphertext;
[0140] Perform homomorphic operations on the re-encrypted ciphertext of each vehicle to obtain an aggregate model;
[0141] The aggregate model is sent to each vehicle participant through the roadside infrastructure unit RSU, and the participant uses his own private key to decrypt the aggregate model and update the local model.
[0142] In an optional manner, the roadside infrastructure unit RSU only serves as a transmission medium for forwarding vehicle information to the aggregation server AS.
[0143] In an optional manner, the method further includes:
[0144] The vehicle sender DS requests the re-encrypted data and decrypts it using its private key;
[0145] The vehicle receiver DR updates the local model from the latest global model, and repeats until the global model converges; wherein the global model aggregates the local models of all participants.
[0146] In an optional manner, the learning process of the federated learning system further includes the following steps:
[0147] Step S1, initializing security parameters and the maximum number of recipients through server management, generating a public key PK and a private key SK;
[0148] Step S2, the vehicle sender DS informs the server management of its vehicle ID, and the server management generates the vehicle pseudonym PVID based on the public key PK and the vehicle ID, and generates the private key of the PVID based on the private key SK and the PVID ;
[0149] Step S3, each vehicle locally trains a trajectory prediction model based on the vehicle position and acceleration, and uses an encryption algorithm to encrypt its model parameters according to a private key to obtain an original ciphertext C;
[0150] Step S4: Each vehicle sender selects some vehicles from all other vehicles as the receiver set S of this round of federated learning, where the set S is the anonymous identity set of the receiver vehicles; the proxy re-encryption key generation algorithm generates the proxy re-encryption key by inputting the set S and the sender's private key. , and then send it together with the original ciphertext C to the aggregation server through the roadside base unit RSU;
[0151] Step S5: The aggregation server receives the original ciphertext C and the proxy re-encryption key of each vehicle from the roadside base unit RSU. , and execute the re-encryption algorithm to obtain the corresponding proxy re-encrypted ciphertext ;
[0152] Step S6, the aggregation server performs homomorphic operations on the re-encrypted ciphertext of each vehicle to obtain an aggregation model;
[0153] Step S7, sending the aggregate model to each vehicle receiver DR through the roadside infrastructure unit RSU, the vehicle receiver DR uses its own private key to decrypt the aggregate model, obtains a new round of original model parameter information, updates its local model, and repeats steps S3 to S6 for continuous iteration.
[0154] Figure 6 The schematic diagram of the structure of the computing device embodiment of the present invention is shown. The specific embodiment of the present invention does not limit the specific implementation of the computing device.
[0155] like Figure 6 As shown, the computing device may include: a processor (processor) 602 , a communications interface (Communications Interface) 604 , a memory (memory) 606 , and a communication bus 608 .
[0156] Wherein: the processor 602, the communication interface 604, and the memory 606 communicate with each other through the communication bus 608. The communication interface 604 is used to communicate with other devices such as a client or other server network elements. The processor 602 is used to execute the program 610, which can specifically execute the relevant steps in the embodiment of the intelligent networked vehicle trajectory prediction method based on federated learning.
[0157] Specifically, the program 610 may include program codes, which include computer operation instructions.
[0158] The processor 602 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention. The one or more processors included in the computing device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.
[0159] The memory 606 is used to store the program 610. The memory 606 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0160] According to the solution provided by the present invention, a federated learning system is established through a server management SM and a master public-private key pair is generated, and a private key is generated for each participant based on the master key and the pseudonym; the encryption model parameters and the proxy re-encryption key of the vehicle sender DS forwarded from the roadside basic unit RSU are received through the aggregation server AS, the original ciphertext is re-encrypted using the re-encryption key, and all the re-encrypted ciphertexts are homomorphically operated to obtain the aggregation model; the vehicle information is forwarded through the roadside basic unit RSU, wherein the roadside basic unit RSU serves as a wireless communication device between the aggregation server AS and the vehicle client; wherein the The vehicle client includes a vehicle sender DS and a vehicle receiver DS; the vehicle sender DS locally trains a trajectory prediction model based on information such as vehicle position and acceleration, and uses its private key to encrypt model parameters to generate original ciphertext; the vehicle sender DS selects N vehicles from all vehicles as receivers, generates a proxy re-encryption key, and then sends the original ciphertext and the proxy re-encryption key to the aggregation server AS through the roadside basic unit RSU; the vehicle receiver DR receives the aggregation model from the aggregation server AS forwarded by the roadside basic unit RSU, and uses its private key to decrypt the aggregation model to update the local model. The proxy re-encryption key generation stage constructed by the present invention on the client uses more modular multiplication operations with low computational overhead, reduces the use of other algebraic operations with high computational overhead, supports homomorphic addition of local models re-encrypted by multiple receivers, and can aggregate the proxy re-encrypted ciphertexts of different data senders of the same receiver, effectively reducing computational overhead and communication overhead. The private key of the vehicle does not depend on the real identity of the vehicle, and anonymization can separate personal identity information from other data, so that user personal information cannot be directly identified and associated with a specific individual. At the same time, due to the introduction of proxy re-encryption, it can resist collusion attacks between vehicles and between vehicles and aggregation servers, and has high security. Since the key generation stage does not depend on whether the vehicle is online, and the decryption only requires each vehicle receiver participating in federated learning to independently decrypt the aggregation model, it has better flexibility and adapts to the characteristics of networking.
[0161] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and further may be divided into multiple submodules or subunits or subcomponents. All features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination, except that at least some of such features and / or processes or units are mutually exclusive. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature that provides the same, equivalent or similar purpose. In addition, those skilled in the art will appreciate that, although some embodiments herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and to form different embodiments. For example, in the following claims, any one of the claimed embodiments may be used in any combination. The present invention may be implemented by means of hardware including several different elements and by means of a suitably programmed computer. In a unit claim that lists several means, several of these means may be embodied by the same hardware item. The steps in the above embodiments should not be understood as limiting the execution order unless otherwise specified.
Claims
1. A method for predicting trajectory of intelligent connected vehicles based on federated learning, characterized in that: include: Establish the FL system through the server management SM and generate the master public-private key pair; The aggregation server AS receives the encryption model parameters and the proxy re-encryption key from the vehicle sender DS, uses the re-encryption key to re-encrypt the original ciphertext, and performs homomorphic operations on all re-encrypted ciphertexts to obtain the aggregation model; Forwarding vehicle information through a roadside basic unit RSU, wherein the roadside basic unit RSU serves as a wireless communication device between the aggregation server AS and the vehicle client; wherein the vehicle client includes a vehicle sender DS and a vehicle receiver DR; The vehicle sender DS locally trains a trajectory prediction model based on the vehicle position and acceleration information, and encrypts the model parameters using its private key to generate the original ciphertext; The vehicle sender DS selects N vehicles from all vehicles as recipients, generates a proxy re-encryption key, and then sends the original ciphertext and the proxy re-encryption key to the aggregation server AS; The vehicle receiver DR receives the aggregation model from the aggregation server AS and uses its private key to decrypt the aggregation model to update the local model; The learning process of the FL system includes the following steps: Step S1, initializing security parameters and the maximum number of recipients through server management, generating a public key PK and a private key SK; Step S2, the vehicle sender DS informs the server management of its vehicle ID, and the server management generates the vehicle pseudonym PVID based on the public key PK and the vehicle ID, and generates the private key of the PVID based on the private key SK and the PVID ; Step S3, each vehicle locally trains a trajectory prediction model based on the vehicle position and acceleration, and uses an encryption algorithm to encrypt its model parameters according to a private key to obtain an original ciphertext C; Step S4: Each vehicle sender selects some vehicles from all other vehicles as the receiver set S of this round of federated learning, where the set S is the anonymous identity set of the receiver vehicles; the proxy re-encryption key generation algorithm generates the proxy re-encryption key by inputting the set S and the sender's private key. , and then send it together with the original ciphertext C to the aggregation server through the roadside base unit RSU; Step S5: The aggregation server receives the original ciphertext C and the proxy re-encryption key of each vehicle from the roadside base unit RSU. , and execute the re-encryption algorithm to obtain the corresponding proxy re-encrypted ciphertext ; Step S6, the aggregation server performs homomorphic operations on the re-encrypted ciphertext of each vehicle to obtain an aggregation model; Step S7, sending the aggregate model to each vehicle receiver DR through the roadside infrastructure unit RSU, the vehicle receiver DR uses its own private key to decrypt the aggregate model, obtains a new round of original model parameter information, updates its local model, and repeats steps S3 to S6 for continuous iteration.
2. The method for predicting trajectory of intelligent connected vehicles based on federated learning according to claim 1, characterized in that: The roadside basic unit RSU only serves as a transmission medium for forwarding vehicle information to the aggregation server AS.
3. A smart connected vehicle trajectory prediction device based on federated learning, characterized in that: Implementing the intelligent connected vehicle trajectory prediction method according to any one of claims 1-2, comprising: A key generation module, used to establish the FL system through the server management SM and generate a master public-private key pair, as well as generate a private key for each participant based on the master key and the pseudonym; The re-encryption and aggregation module is used to receive the encryption model parameters and the proxy re-encryption key from the vehicle sender DS forwarded by the roadside basic unit RSU through the aggregation server AS, re-encrypt the original ciphertext using the re-encryption key, and perform homomorphic operations on all re-encrypted ciphertexts to obtain the aggregation model; A vehicle information forwarding module, used to forward vehicle information through a roadside basic unit RSU, wherein the roadside basic unit RSU serves as a wireless communication device between the aggregation server AS and the vehicle client; The model training and encryption module is used by the vehicle sender DS to train the trajectory prediction model locally based on the vehicle position and acceleration information, and encrypt the model parameters using its private key to generate the original ciphertext; A receiver selection and proxy re-encryption module, which is used for the vehicle sender DS to select N vehicles from all vehicles as receivers, generate a proxy re-encryption key, and then send the original ciphertext and the proxy re-encryption key to the aggregation server AS through the roadside basic unit RSU; The aggregation model receiving and decryption module is used to receive the aggregation model forwarded by the roadside basic unit RSU from the aggregation server AS through the vehicle receiver DR, and use its private key to decrypt the aggregation model to update the local model.
4. A computing device comprising: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform operations corresponding to the intelligent connected vehicle trajectory prediction method based on federated learning as described in any one of claims 1-2.
5. A computer program product, comprising at least one executable instruction, wherein the executable instruction enables a processor to perform operations corresponding to the method for trajectory prediction of an intelligent connected vehicle based on federated learning as described in any one of claims 1-2.
