Edge caching method, device, electronic device and storage medium for Internet of Vehicles
By calculating the feature distance between vehicles and generating a classifier, the edge server improves the accuracy and efficiency of caching in the Internet of Vehicles, solves the problems of cached data delay and non-adaptiveness in the existing technology, and achieves efficient data transmission. and accuracy.
Patent Information
- Application Number
- CN202410441241.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-12
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2044-04-12
AI Technical Summary
In the field of Internet of Vehicles, data cached in edge servers may be delayed or unable to adapt to changes in vehicle requests, resulting in low efficiency and accuracy of cached data and inability to meet communication needs.
By calculating the feature distance between vehicles, a classifier is generated and sent to the edge server. The edge server generates a neural network based on the classifier and sends it to the cloud server for integration and learning of predictive communication data. The prediction results are cached to improve data transmission efficiency. and accuracy.
It improves the accuracy and efficiency of edge server caching, reduces data request delays, and obtains content directly from the edge server when the vehicle requests it, reducing the number of interactions between the edge server and the cloud server.
Smart Images

Figure CN118158747B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of vehicle technology, and specifically to an edge caching method, device, electronic device, and storage medium for an Internet of Vehicles. Background Art
[0002] In the Internet of Vehicles (IoVs), seamless information transmission is crucial to low latency and optimization of buffer period. With the development of technology, cache has expanded from cloud storage to edge-based cache servers to meet users' expectations for various services (such as emergency services and entertainment services). However, in the field of edge-based cache servers, bandwidth alone cannot completely solve the information transmission delay caused by data surge and interactive service needs.
[0003] Some solutions use edge intelligent caching technology to reduce the latency of online services and the transmission time of video content. However, the data cached in the edge server in the existing methods may be delayed or unable to adapt to changes in vehicle request data, resulting in low cache data efficiency and accuracy, which cannot meet the communication needs of edge servers in the field of Internet of Vehicles. Summary of the invention
[0004] In view of the above problems, the embodiments of the present application provide an edge caching method, device, electronic device and storage medium for an Internet of Vehicles, which are used to improve the accuracy and efficiency of edge server caching.
[0005] According to one aspect of an embodiment of the present application, an edge caching method for an Internet of Vehicles is provided, which is applied to a target vehicle connected to an edge server, and the edge caching method includes: calculating a characteristic distance with a historical vehicle to determine a target historical vehicle based on a numerical value of the characteristic distance; wherein the historical vehicle is a vehicle connected to the edge server; generating a classifier based on the target historical vehicle, the target vehicle, and request communication data of the target vehicle; sending the classifier to the edge server so that the edge server generates a neural network based on the classifier, and after sending the neural network to a cloud server, the edge server receives predicted communication data returned by the cloud server; wherein the predicted communication data is request communication data predicted by the target vehicle.
[0006] In an optional manner, the generation of a classifier based on the target historical vehicle, the target vehicle and the request communication data of the target vehicle further includes: obtaining a target sample based on the numerical value of the characteristic distance between the target historical vehicle and the target vehicle; wherein the target sample includes at least one target historical vehicle; obtaining a weight between the target historical vehicle and the target historical vehicle in the target sample based on the historical request communication data of the target historical vehicle in the target sample and the request communication data of the target vehicle; wherein the weight represents the degree of matching between the target vehicle and the corresponding target historical vehicle; and generating a classifier based on the weight between the target historical vehicle in the target sample, the historical request communication data of the target historical vehicle in the target sample, and the target vehicle and the request communication data of the target vehicle.
[0007] In an optional manner, the method of obtaining a target sample based on the numerical value of the characteristic distance between the target historical vehicle and the target vehicle further includes: sorting the target historical vehicles based on the numerical value of the characteristic distance between the target historical vehicle and the target vehicle to obtain a historical vehicle sequence; obtaining a first sample having a sequence number greater than a first numerical value and a second sample having a sequence number less than a second numerical value in the historical vehicle sequence; and using the first sample and the second sample as the target samples.
[0008] In an optional manner, the method of obtaining the weight between the target historical vehicle in the target sample and the target historical vehicle based on the historical request communication data of the target historical vehicle in the target sample and the request communication data of the target vehicle further includes: obtaining the angle value between the target historical vehicle in the target sample and the target historical vehicle based on the historical request communication data of the target historical vehicle in the target sample and the request communication data of the target vehicle; and determining the angle value between the target historical vehicle in the target sample and the target historical vehicle based on the angle value.
[0009] In an optional manner, the method of obtaining the angle value between the target historical vehicle in the target sample and the target historical vehicle based on the historical request communication data of the target historical vehicle in the target sample and the request communication data of the target vehicle includes: obtaining the correlation between the target historical vehicle in the target sample and the target historical vehicle based on the historical request communication data of the target historical vehicle in the target sample and the request communication data of the target vehicle; and calculating the angle value between the target historical vehicle in the target sample and the target historical vehicle based on the correlation between the target historical vehicle in the target sample and the target historical vehicle.
[0010] In an optional manner, before calculating the characteristic distance between the target historical vehicle and determining the target historical vehicle based on the numerical value of the characteristic distance, the edge caching method also includes: sending a sharing request and a public key to the edge server, so that the edge server sends the sharing request and the public key to the cloud server, and the cloud server decrypts the sharing request based on the public key to obtain a shared vehicle; wherein the shared vehicle is a historical vehicle for which the target vehicle requests information sharing; receiving feedback information sent by the edge server; wherein the feedback information includes attribute data of the shared vehicle, and the feedback information is data obtained by encrypting the attribute data of the shared vehicle after the edge server receives the shared vehicle sent by the cloud server; based on the feedback information, transmitting information with the shared vehicle to obtain the characteristic data of the shared vehicle, thereby calculating the characteristic distance between the target vehicle and the shared vehicle based on the characteristic data of the shared vehicle.
[0011] In an optional manner, the information transmission between the shared vehicle and the shared vehicle based on the feedback information to obtain the characteristic data of the shared vehicle further includes: setting an access control policy based on the feedback information, and generating a ciphertext based on the access control policy; sending the ciphertext to the edge server, so that the edge server sends the ciphertext to the shared vehicle, the shared vehicle decrypts the ciphertext based on the attribute data of the shared vehicle, and sends the characteristic data to the edge server based on the data obtained after decryption; and receiving the characteristic data sent by the edge server.
[0012] According to another aspect of an embodiment of the present application, an edge caching method for an Internet of Vehicles is provided, which is applied to an edge server, wherein the edge server is connected to a target vehicle and a historical vehicle, and the edge caching method comprises: obtaining a classifier sent by the target vehicle; wherein the classifier is generated by the target vehicle based on the target historical vehicle, the target vehicle and the request communication data of the target vehicle, and the target historical vehicle is determined based on the numerical value of the characteristic distance between the historical vehicle and the target vehicle; generating a neural network based on the classifier; sending the neural network to a cloud server, and receiving predicted communication data obtained by the cloud network based on the neural network; the predicted communication data is the request communication data predicted by the target vehicle.
[0013] According to another aspect of an embodiment of the present application, an edge cache device of a vehicle network is provided, which is applied to a target vehicle connected to an edge server, and the edge cache device includes: a target historical vehicle determination module, which is used to calculate a characteristic distance with a historical vehicle to determine the target historical vehicle based on the numerical value of the characteristic distance; wherein the historical vehicle is a vehicle connected to the edge server; a classifier generation module, which is used to generate a classifier based on the target historical vehicle, the target vehicle, and the request communication data of the target vehicle; a first cache module, which is used to send the classifier to the edge server, so that the edge server generates a neural network based on the classifier, and after sending the neural network to the cloud server, the edge server receives the predicted communication data returned by the cloud server; wherein the predicted communication data is the request communication data predicted by the target vehicle.
[0014] According to another aspect of an embodiment of the present application, an edge cache device of a vehicle network is provided, which is applied to an edge server, and the edge server is connected to a target vehicle and a historical vehicle, and the edge cache device includes: a classifier acquisition module, used to obtain a classifier sent by the target vehicle; wherein the classifier is generated by the target vehicle based on the target historical vehicle, the target vehicle and the request communication data of the target vehicle, and the target historical vehicle is determined based on the numerical value of the characteristic distance between the historical vehicle and the target vehicle; a neural network generation module, used to generate a neural network based on the classifier; a second cache module, used to send the neural network to a cloud server, and receive predicted communication data obtained by the cloud network based on the neural network; wherein the predicted communication data is the request communication data predicted by the target vehicle.
[0015] According to one aspect of an embodiment of the present application, an electronic device is provided, including: a controller; and a memory for storing one or more programs, which, when the one or more programs are executed by the controller, execute the above-mentioned edge caching method of the Internet of Vehicles.
[0016] According to one aspect of an embodiment of the present application, a computer-readable storage medium is also provided, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor of a computer, the computer executes the above-mentioned edge caching method of the Internet of Vehicles.
[0017] According to one aspect of the embodiments of the present application, a computer program product or a computer program is also provided, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above-mentioned edge caching method of the Internet of Vehicles.
[0018] The present application generates a classifier through the target vehicle and sends the classifier to the edge server. The edge server fits the classifier into a neural network and then sends the neural network to the cloud server. The cloud server integrates the model, learns and outputs the prediction result of the target vehicle, that is, the predicted communication data. The prediction result is cached in the edge server. When the target vehicle requests content subsequently, it can directly obtain the content from the cache of the edge server, thereby improving the efficiency of data transmission, ensuring the accuracy of the cached data in the edge server, and reducing data request delays.
[0019] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0021] Figure 1 It is an implementation environment diagram shown in an exemplary embodiment of the present application.
[0022] Figure 2 It is a flowchart of an edge caching method of an Internet of Vehicles shown in an exemplary embodiment of the present application.
[0023] Figure 3 is based on Figure 2 A flow chart of an edge caching method for an Internet of Vehicles is shown.
[0024] Figure 4 It is a schematic diagram of the structure of an edge cache device of an Internet of Vehicles shown in an exemplary embodiment of the present application.
[0025] Figure 5 It is a structural diagram of a computer system of an electronic device shown in an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0026] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.
[0027] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0028] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0029] The term "multiple" as used in this application refers to two or more than two. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.
[0030] In the Internet of Vehicles, in order to achieve seamless information transmission, low latency and optimization of buffer period are essential. With the development of technology, cache has expanded from cloud storage to edge-based cache servers to meet users' expectations for various services (such as emergency services and entertainment services). However, bandwidth alone cannot completely solve the latency challenges caused by the surge in data and the demand for interactive services.
[0031] In this context, the emerging field of edge intelligence has emerged. It combines edge computing and artificial intelligence (AI) and has become a new research focus. For example, mainstream video websites have used edge intelligent caching technology to reduce the latency of their online services and the transmission time of video content. This edge intelligence-based caching method reduces latency, optimizes network resource management, and improves scalability, ultimately shifting computing-intensive applications to the edge cloud, thereby improving the quality of service (QoS) and user experience quality (QoE).
[0032] However, the Internet of Vehicles still faces significant challenges in building a backhaul network that can meet network capacity and latency requirements. The cache system must detect and cache popular content to meet the needs of vehicle users, and existing research still has some shortcomings: 1) Cache coherence: It is difficult to predict future cache needs more accurately. Once the vehicle leaves the coverage of the edge server, the cached content will become outdated and occupy the edge server storage resources. 2) Data security: A centralized training method is usually used to transmit all collected data to a central edge / cloud server for interpretation and then learn by the machine learning model. However, the data generated by connected vehicles may contain highly sensitive information, and centralized methods may compromise the privacy and security of user data. 3) Scalability: Centralized machine learning algorithms may have difficulty managing the large amount of data generated by connected vehicles because the amount of data will grow as the number of connected vehicles increases. Such algorithms may also incur high computing and transmission costs.
[0033] Based on this, the embodiments of the present application provide an edge caching method, device, electronic device and storage medium for an Internet of Vehicles, which are used to improve the accuracy and efficiency of edge server caching, ensure cache consistency, improve data transmission security, and have scalability.
[0034] Please refer to Figure 1 , Figure 1 This is an implementation scenario diagram proposed in this embodiment, which includes a vehicle, an edge server and a cloud server. It can be understood that Figure 1 The numbers of edge servers and vehicles are for illustration only, and in other embodiments, they may be other numbers.
[0035] In this embodiment, the cloud server stores infotainment and other data, and at least one edge server is set up under the cloud server. Each edge server has computing and storage capabilities. Each edge server manages at least one vehicle within its coverage area, and the vehicle can request infotainment content from the corresponding edge server.
[0036] Among them, each edge server is connected to the vehicle and cloud server through a wireless channel and a return link, which is used to store content and manage cached content that may be required by the vehicle; the automatic driving mode can be turned on after the vehicle is driving, and the driving route is automatically generated after setting the starting point and destination. Users do not need to pay attention to the driving status of the vehicle and can request entertainment audio and video services; of course, the vehicle can also choose not to turn on the automatic driving mode. While ensuring safety, the vehicle can request entertainment audio and video services.
[0037] In this embodiment, since the vehicle environment changes during driving, the edge server where the same vehicle is located will also switch frequently. Figure 1 In the scenario, when a vehicle enters an edge server, the classifier of the vehicle is generated by the K-Nearest Neighbor (KNN) technology. For one edge server, if there are multiple vehicles, there are multiple vehicle classifiers.
[0038] The vehicle in the edge server sends the classifier and the requested content to the edge server, and the edge server generates a neural network based on the classifier. In this way, one edge server can obtain a neural network. To ensure the accuracy of the neural network's prediction of the requested content, the edge servers under the cloud server can send their own neural networks to the cloud server. The cloud server integrates multiple neural networks and predicts the request communication data based on the content of the request sent by the vehicle to obtain the predicted communication data of each vehicle. The predicted communication data of the corresponding vehicle is returned to the corresponding edge server for caching. Then, when the vehicle makes a request, it can directly obtain the content from the edge server. There is no need for the edge server to interact with the cloud server based on the request to obtain the content requested by the vehicle, thereby increasing the rate at which the vehicle requests are obtained and reducing the delay in obtaining vehicle information.
[0039] In this embodiment, the vehicle and edge server are subject to various attacks and privacy threats, such as channel attacks, data pollution, etc. Therefore, it is necessary not only to accurately predict the content for caching in the edge server in advance, but also to prevent hacker attacks on the communication link and device access to ensure data transmission security.
[0040] Understandably, Figure 1 Although an implementation scenario diagram is shown, it is for illustrative purposes only. In other embodiments, there may be other implementation scenarios, which are not specifically limited here.
[0041] One aspect of the present application provides an edge caching method for an Internet of Vehicles. Figure 2 , Figure 2 is a flow chart of an edge caching method for an Internet of Vehicles shown in an exemplary embodiment of the present application. The edge caching method for the Internet of Vehicles can be applied to Figure 1 The target vehicle in the edge server, especially the target vehicle that has just entered the edge server, includes at least S210 to S230, which are described in detail as follows:
[0042] S210: Calculate a characteristic distance with the historical vehicle to determine a target historical vehicle based on a value of the characteristic distance.
[0043] In this embodiment, the target vehicle is a vehicle that has just entered an edge server, and the historical vehicle is a vehicle connected to the edge server, which may include a vehicle that is no longer under the management of the edge server, but was previously under the management of the edge server or has been under the management of the edge server for a long time; it may also be a vehicle that is currently under the management of the edge server, but the edge server has stored the predicted communication data of the vehicle, that is, it is not a vehicle that has just entered the edge server.
[0044] In this embodiment, the KNN (k nearest neighbor algorithm) technology is implemented using cosine similarity and Euclidean distance to obtain the characteristic distance between the target vehicle and the historical vehicle, and the historical vehicle with a characteristic distance less than a preset value is used as the target historical vehicle for generating a classifier. The characteristic distance can be calculated through the characteristic data of the target vehicle and the characteristic data of the historical vehicle. The characteristic data may include the vehicle's attribute data, driving data, and historical request communication data. The attribute data may include the corresponding vehicle number, vehicle structure, model, etc. The driving data may include the vehicle's driving habits, such as common driving speed, cornering speed, starting acceleration, etc.
[0045] S220: Generate a classifier based on the target historical vehicle, the target vehicle, and the request communication data of the target vehicle.
[0046] In this embodiment, the requested communication data is data that the vehicle needs to obtain from the edge server, such as infotainment content.
[0047] In this embodiment, a classifier is generated by using the KNN technology for the target historical vehicle, the target vehicle, and the request communication data of the target vehicle.
[0048] In one embodiment, in order to ensure the accuracy of the classifier, the matching degree between the target vehicle and the target historical vehicle may be obtained first, and the matching degree may be used as a weight, so as to generate a classifier based on the weight.
[0049] S230: Send the classifier to the edge server so that the edge server generates a neural network based on the classifier, and after sending the neural network to the cloud server, the edge server receives the predicted communication data returned by the cloud server.
[0050] In this embodiment, for one edge server, the number of target vehicles corresponding to it can be multiple, so the edge server can obtain multiple classifiers and fit a neural network based on the multiple classifiers, and then send the neural network to the cloud server. The multiple edge servers under the cloud server can correspond to a neural network, so the cloud server can obtain multiple neural networks. The cloud server performs global federated learning based on multiple neural networks to obtain predicted communication data of the target vehicle, wherein the predicted communication data is the request communication data predicted by the target vehicle, that is, the data obtained by predicting the request content of the target vehicle.
[0051] The predicted communication data is sent to the edge server corresponding to the target vehicle, so that the target vehicle can subsequently issue a request to directly obtain the cached predicted communication data from the edge server, reducing the problem of target vehicle data acquisition delay caused by the interaction between the edge server and the cloud server.
[0052] In some embodiments, specific steps of federated learning include: training vehicle selection, information broadcasting, and calculation process.
[0053] First, the server selects vehicles as clients for generating KNN classifiers according to the evaluation criteria. When the vehicle enters an edge server in a specific range with higher bandwidth and better connection, the adjacency value between the vehicle and the edge server, the link available time, and the density of vehicles connected to the edge server are considered to select training vehicles for generating KNN classifiers.
[0054] Then, the cloud server sends the randomly initialized global model (the acquisition model for predicting communication data) to all edge servers, and each vehicle shares its KNN classifier with the edge server, and trains the neural network on the edge server based on the KNN classifier distance.
[0055] The resulting KNN classifier will be fitted as a neural network on the edge server, optimizing the randomly initialized neural network by minimizing the error between the neural network prediction and the KNN classifier’s classification.
[0056] Aggregation and model update: The updated neural network parameters are aggregated by the cloud server to update the global model in the current training cycle.
[0057] The specific algorithm process is as follows: initialize the edge server, set the number of cycles, learning rate, vehicle information, etc. In each cycle, select the vehicle for training and obtain the classifier of the training vehicle. The classifier of the training vehicle is sent to the corresponding edge server to generate a neural network. The cloud server integrates the neural network of the edge server to output the training prediction results, minimizes the error between the training prediction results and the classifier of the training vehicle, updates the global weight according to the neural network, and each edge server calculates the weight and sends it to the cloud server. When the convergence condition is reached, the training is stopped.
[0058] Collaborative filtering federated learning is secure because updates are in the form of model weight gradients sent to edge nodes, however, the transmission of safety-related alert messages and personal information such as location, speed, and direction from vehicles to edge servers poses a significant privacy threat. This data must be shared or stored in an encrypted form to avoid unauthorized access by malicious attackers.
[0059] Therefore, a characteristic data transmission method is proposed in this embodiment to ensure the security of information sharing between the target vehicle and the historical vehicle. This method combines Elliptic Curve Cryptography (ECC) and Extended Ciphertext Policy Attribute-based Encryption (ECP-ABE) to ensure the security of data sharing and allow multiple vehicles to cooperate and perform decryption of the same ciphertext.
[0060] In some embodiments, the characteristic data of the historical vehicle is obtained by the following method, thereby obtaining the characteristic distance based on the characteristic data of the target vehicle itself and the characteristic data of the historical vehicle:
[0061] S10: Send a sharing request and a public key to the edge server, so that the edge server sends the sharing request and the public key to the cloud server, and the cloud server decrypts the sharing request based on the public key to obtain a shared vehicle; wherein the shared vehicle is a historical vehicle for which the target vehicle requests information sharing.
[0062] S20: receiving feedback information sent by the edge server; wherein the feedback information includes attribute data of the shared vehicle, and the feedback information is data obtained by encrypting the attribute data of the shared vehicle after the edge server receives the shared vehicle sent by the cloud server.
[0063] S30: Based on the feedback information, information is transmitted with the shared vehicle to obtain characteristic data of the shared vehicle, thereby calculating a characteristic distance between the shared vehicle and the shared vehicle based on the characteristic data of the shared vehicle.
[0064] Before S10, the registration center used the elliptic curve formula y 2 =x 3 +Ax+b mod p randomly selects large prime numbers m and n; m, n satisfy the elliptic curve formula and will be sent to vehicles in the network as shared parameters, where A, p and b are hyperparameters.
[0065] The target vehicle calculates the public key based on the shared parameters. If the target vehicle is a valid vehicle, the target vehicle sends a sharing request and a public key in an encrypted form. The edge server receives the data sent by the target vehicle and verifies it. If the verification is successful, the sharing request and the public key are sent to the cloud server. The cloud server decrypts the sharing request and determines the location of the vehicle corresponding to the sharing request. In this embodiment, the target vehicle needs to share data with historical vehicles to obtain characteristic data of the historical vehicles. Therefore, the cloud server sends the sharing request and the public key to the edge server, so that the edge server obtains the attribute data of the historical vehicle, encrypts the attribute data, calculates the corresponding signature information, obtains feedback information, and sends the feedback information to the target vehicle.
[0066] After receiving the feedback information, the target vehicle sets an access control policy based on the feedback information and generates a ciphertext based on the access control policy; sends the ciphertext to the edge server, so that the edge server sends the ciphertext to the shared vehicle, and the shared vehicle decrypts the ciphertext based on the attribute data of the shared vehicle, and sends feature data to the edge server based on the decrypted data; receives the feature data sent by the edge server.
[0067] In one embodiment, the target vehicle receives feedback information, decrypts it to obtain the attribute data of the historical vehicle, sets an access control policy based on the attribute data, generates ciphertext through the access control policy and the public key, and sends the ciphertext to the historical vehicle through the edge server. The historical vehicle can then generate a private key based on its own attribute data to decrypt the ciphertext.
[0068] In some embodiments, the ciphertext sent by the target vehicle is the attribute data of the target vehicle. Therefore, after obtaining the attribute data of the target vehicle, the historical vehicle can set an access control policy based on the attribute data of the target vehicle, encrypt the characteristic data of the historical vehicle into ciphertext, and send it to the target vehicle through the edge server. The target vehicle can then generate a private key based on its own attribute data to decrypt the ciphertext sent by the historical vehicle to obtain the characteristic data of the historical vehicle.
[0069] Of course, the feature data acquisition method in this embodiment can also be applied to two vehicles that are not in the same edge server, and the two vehicles share information through the above method.
[0070] In a specific embodiment, vehicle a calculates a public key, and vehicle a sends a sharing request and a public key in encrypted form; edge server A verifies the information sent by vehicle a; if the verification is successful, edge server A sends a message to the cloud, the cloud decrypts the request, obtains the message destination, and transmits it to the corresponding edge node; edge server B performs an encryption process to encrypt the attribute list of vehicle b, and calculates the corresponding signature information, and sends it to vehicle a through the cloud server; after vehicle a receives the message, it decrypts and obtains the attribute list of b; vehicle a sets an access control policy; vehicle a uses the access control policy and the public key to generate a ciphertext; vehicle b that meets the access control policy in edge server B uses the attribute-based private key to decrypt the encrypted message.
[0071] This embodiment proposes an edge caching method for a vehicle network, in which a classifier is generated through a target vehicle and sent to an edge server. The edge server fits the classifier into a neural network and then sends the neural network to a cloud server. The cloud server integrates the model, learns and outputs a prediction result of the target vehicle. The prediction result is cached in the edge server. When the target vehicle subsequently requests content, it can directly obtain the content from the cache of the edge server, thereby improving the efficiency of data transmission, ensuring the accuracy of cached data in the edge server, and reducing data request delays. At the same time, the process starts when the vehicle enters the edge server, thereby avoiding the problem of low cache consistency when the vehicle switches to the edge server. At the same time, an edge server only caches the prediction results of the memory within the management, thereby avoiding the problem of large data volume of centralized machine learning algorithms.
[0072] In this process, the KNN technology is implemented using cosine similarity and Euclidean distance to determine the nearest neighbors for predicting popular content. The concepts of "good" neighbors and "bad" neighbors are also introduced to calculate the weights of the target vehicle, making the KNN classifier more accurate.
[0073] Collaborative filtering federated learning is safe because the update is in the form of sending the model weight gradient to the edge node, but there may be security risks when data is transmitted between vehicles. Based on this, this embodiment also proposes a combination of elliptic curve cryptography (ECC) and extended ciphertext policy attribute-based encryption (ECP-ABE) to ensure the security of cross-domain data sharing, allowing multiple users to cooperate and perform decryption of the same ciphertext; wherein the access control policy is embedded in the ciphertext. This encryption scheme allows users to perform precise access control on encrypted data so that only users who meet specific attributes can decrypt the data. In ECP-ABE, an algorithm is set to generate public parameters and master keys. The encryption algorithm accepts public parameters, messages, and access structures as inputs and generates ciphertexts. The key generation algorithm accepts the master key and a set of attributes describing the key as inputs and outputs a private key. The decryption algorithm accepts public parameters, ciphertext, and private key as inputs and outputs a decrypted message.
[0074] In another exemplary embodiment of the present application, how to generate a classifier is explained in detail, for details, please refer to Figure 3 , Figure 3 based on Figure 2 A flow chart of an edge caching method for an Internet of Vehicles is shown. The edge caching method for an Internet of Vehicles is as follows Figure 2 Step S220 may further include steps S310 to S330, which are described in detail as follows:
[0075] S310: Obtain a target sample based on the numerical value of the characteristic distance between the target historical vehicle and the target vehicle.
[0076] The target sample includes at least one target historical vehicle.
[0077] In this embodiment, the target historical vehicle can be regarded as a neighboring vehicle of the target vehicle. At this time, the concepts of "good" neighbors and "bad" neighbors are introduced to calculate the weight of the target vehicle, making the KNN classifier more accurate.
[0078] In this embodiment, based on the numerical value of the characteristic distance between the target historical vehicle and the target vehicle, the target historical vehicles are sorted to obtain a historical vehicle sequence; a first sample with a sequence number greater than a first numerical value and a second sample with a sequence number less than a second numerical value are obtained in the historical vehicle sequence; the first sample and the second sample are used as target samples.
[0079] The historical vehicle sequence is arranged in descending order of characteristic distance values, and the first value and the second value can be set arbitrarily, and it is only necessary to ensure that there is at least one target historical vehicle in the first sample and the second sample.
[0080] Therefore, the target historical vehicle in the first sample is the target historical vehicle with a smaller characteristic distance to the target vehicle, that is, the target historical vehicle in the first sample is a "good" neighbor of the target vehicle, while the target historical vehicle in the second sample is the target historical vehicle with a larger characteristic distance to the target vehicle, that is, the target historical vehicle in the second sample is a "bad" neighbor.
[0081] S320: Obtaining a weight between a target historical vehicle in the target sample and a target historical vehicle based on the historical request communication data of the target historical vehicle in the target sample and the request communication data of the target vehicle.
[0082] Among them, the weight represents the matching degree between the target vehicle and the corresponding target historical vehicle.
[0083] In one embodiment, the angle value between the target historical vehicle and the target historical vehicle in the target sample is obtained based on the historical request communication data of the target historical vehicle in the target sample and the request communication data of the target vehicle; and the angle value between the target historical vehicle and the target historical vehicle in the target sample is determined based on the angle value.
[0084] In this embodiment, the first angle between each target historical vehicle and the target vehicle in the first sample can be obtained first; then the second angle between each target historical vehicle and the target vehicle in the second sample can be obtained to determine the weight based on the first angle and the second angle, the first angle is calculated through the historical request communication data of each target historical vehicle in the first sample and the requested passage data of the target vehicle, and the second angle is calculated through the historical request communication data of each target historical vehicle in the second sample and the requested passage data of the target vehicle.
[0085] In some embodiments, there are x “good” neighbors in the first sample, that is, there are x target historical vehicles in the first sample, and there are y “bad” neighbors in the second sample, that is, there are x target historical vehicles in the second sample. The weights can be calculated in the following way:
[0086]
[0087] Among them, f(S t |S e ) is the weight, S t is the target vehicle, S e is the target historical vehicle, which may be the target historical vehicle in the first sample or the target historical vehicle in the second sample, are the vector of the target vehicle and the vector of the target historical vehicle, respectively. angle represents the angle between the two vectors. x is the number of the first sample. S e is the historical vehicle in the first sample, y is the number of the second sample, corresponding to S e is the historical vehicle in the second sample, MAX and MIN are the maximum and minimum values respectively, In is the first angle, then In is the second angle, 0≤f(S t |S e )≤1.
[0088] In this embodiment, It is only used for calculation. It is the correlation between the target vehicle's requested traffic data and the target historical vehicle's historical requested communication data. That is, the correlation between the target historical vehicle and the target historical vehicle in the target sample is obtained based on the target vehicle's historical requested communication data and the target vehicle's requested communication data. The correlation can be calculated through correlation analysis and other methods. Then, the angle value can be calculated through angle.
[0089] S330: Generate a classifier based on the weights between the target historical vehicles in the target sample, the historical request communication data of the target historical vehicles in the target sample, and the target vehicle and the request communication data of the target vehicle.
[0090] In this embodiment, the weights between the target historical vehicles can reflect the correlation between the target historical vehicles. When generating a classifier, the larger the weight, the more similar or closer the target historical vehicles are. Therefore, once the k nearest neighbors of the target sample are determined, the algorithm will consider the category information of these high-weight neighbors for classification, thereby improving the accuracy of the classifier.
[0091] In this embodiment, a classifier of the target vehicle is generated by using K-Nearest Neighbor (KNN) technology based on the weights between the target historical vehicles in the target sample, the historical request communication data of the target historical vehicles in the target sample, and the target vehicle and the request communication data of the target vehicle.
[0092] One aspect of the present application provides another edge caching method for an Internet of Vehicles, which can be applied to Figure 1 The edge server in the embodiment includes at least S410 to S430, which are described in detail as follows:
[0093] S410: Obtain a classifier sent by the target vehicle.
[0094] The classifier is generated for the target vehicle based on the target historical vehicle, the target vehicle and the request communication data of the target vehicle, and the target historical vehicle is determined based on the value of the characteristic distance between the historical vehicle and the target vehicle.
[0095] In this embodiment, the characteristic distance can be calculated by a k-nearest neighbor algorithm. During this process, the target vehicle can also generate a weight based on the first sample and the second sample, thereby improving the reliability of subsequent prediction results.
[0096] S420: Generate a neural network based on the classifier.
[0097] In this embodiment, one edge server may obtain multiple classifiers, and the corresponding neural network may be obtained by fitting the multiple classifiers.
[0098] S430: Send the neural network to the cloud server, and receive the predicted communication data obtained by the cloud network based on the neural network.
[0099] In this embodiment, the cloud server can accept multiple neural networks, integrate the multiple neural networks through federated learning, and predict the predicted communication data based on the data requested by the target vehicle, wherein the predicted communication data is the requested communication data predicted by the target vehicle.
[0100] This embodiment proposes an edge caching method for a vehicle network, in which a classifier is generated through a target vehicle and sent to an edge server. The edge server fits the classifier into a neural network and then sends the neural network to a cloud server. The cloud server integrates the model, learns and outputs a prediction result of the target vehicle. The prediction result is cached in the edge server. When the target vehicle subsequently requests content, it can directly obtain the content from the cache of the edge server, thereby improving the efficiency of data transmission, ensuring the accuracy of cached data in the edge server, and reducing data request delays.
[0101] Another aspect of the present application also provides an edge cache device of an Internet of Vehicles, such as Figure 4 As shown, Figure 4 1 is a schematic diagram of the structure of an edge cache device of an Internet of Vehicles shown in an exemplary embodiment of the present application. The edge cache device 400 of the Internet of Vehicles is applied to a target vehicle connected to an edge server, and the edge cache device includes:
[0102] The target historical vehicle determination module 410 is used to calculate the characteristic distance between the target historical vehicle and the historical vehicle to determine the target historical vehicle based on the value of the characteristic distance; wherein the historical vehicle is a vehicle connected to the edge server.
[0103] The classifier generation module 430 is used to generate a classifier based on the target historical vehicle, the target vehicle and the request communication data of the target vehicle.
[0104] The first cache module 450 is used to send the classifier to the edge server so that the edge server generates a neural network based on the classifier, and after sending the neural network to the cloud server, the edge server receives the predicted communication data returned by the cloud server; wherein the predicted communication data is the request communication data predicted by the target vehicle.
[0105] In an optional manner, the classifier generation module 430 further includes:
[0106] The target sample acquisition unit is used to acquire a target sample based on the numerical value of the characteristic distance between the target historical vehicle and the target vehicle; wherein the target sample includes at least one target historical vehicle.
[0107] A weight calculation unit is used to obtain the weight between the target historical vehicle and the target historical vehicle in the target sample based on the historical request communication data of the target historical vehicle in the target sample and the request communication data of the target vehicle; wherein the weight represents the matching degree between the target vehicle and the corresponding target historical vehicle.
[0108] The classifier generating unit is used to generate a classifier based on the weights between the target historical vehicles in the target sample, the historical request communication data of the target historical vehicles in the target sample, and the target vehicle and the request communication data of the target vehicle.
[0109] In an optional manner, the target sample acquisition unit includes:
[0110] The sorting section is used to sort the target historical vehicles based on the numerical value of the characteristic distance between the target historical vehicles and the target vehicle to obtain a historical vehicle sequence.
[0111] The sample acquisition section is used to acquire a first sample whose sequence number is greater than a first value and a second sample whose sequence number is less than a second value in a historical vehicle sequence.
[0112] The target sample acquisition section is used to take the first sample and the second sample as target samples.
[0113] In an optional manner, the weight calculation unit further includes:
[0114] The angle value acquisition section is used to acquire the angle value between the target historical vehicle in the target sample and the target historical vehicle based on the historical request communication data of the target historical vehicle in the target sample and the request communication data of the target vehicle.
[0115] The weight calculation module is used to determine the angle value between the target historical vehicle and the target historical vehicle in the target sample based on the angle value.
[0116] In an optional manner, the angle value acquisition section includes:
[0117] The relevance acquisition sub-section is used to acquire the relevance between the target historical vehicles in the target sample and the target historical vehicles based on the historical request communication data of the target historical vehicles in the target sample and the request communication data of the target vehicle.
[0118] The angle value acquisition sub-section is used to calculate the angle value between the target historical vehicle and the target historical vehicle in the target sample based on the correlation between the target historical vehicle and the target historical vehicle in the target sample.
[0119] In an optional manner, the edge cache device 400 of the Internet of Vehicles further includes:
[0120] The information sending module is used to send a sharing request and a public key to the edge server, so that the edge server sends the sharing request and the public key to the cloud server, and the cloud server decrypts the sharing request based on the public key to obtain a shared vehicle; wherein the shared vehicle is a historical vehicle for which the target vehicle requests information sharing.
[0121] The feedback information acquisition module is used to receive feedback information sent by the edge server; wherein the feedback information includes attribute data of the shared vehicle, and the feedback information is the data obtained by encrypting the attribute data of the shared vehicle after the edge server receives the shared vehicle sent by the cloud server.
[0122] The characteristic data acquisition module is used to transmit information with the shared vehicle based on the feedback information to obtain the characteristic data of the shared vehicle, so as to calculate the characteristic distance between the shared vehicle and the shared vehicle based on the characteristic data of the shared vehicle.
[0123] In an optional manner, the feature data acquisition module further includes:
[0124] The ciphertext generation unit is used to set an access control policy based on the feedback information and generate a ciphertext based on the access control policy.
[0125] The ciphertext sending unit is used to send the ciphertext to the edge server, so that the edge server sends the ciphertext to the shared vehicle, the shared vehicle decrypts the ciphertext based on the attribute data of the shared vehicle, and sends the feature data to the edge server based on the decrypted data.
[0126] The feature data acquisition unit is used to receive the feature data sent by the edge server.
[0127] Another aspect of the present application further provides an edge cache device of an Internet of Vehicles. The edge cache device 500 of the Internet of Vehicles is applied to an edge server, and the edge server is connected to a target vehicle and a historical vehicle, including:
[0128] The classifier acquisition module 510 is used to acquire the classifier sent by the target vehicle; wherein the classifier is generated by the target vehicle based on the target historical vehicle, the target vehicle and the target vehicle's request communication data, and the target historical vehicle is determined based on the numerical value of the characteristic distance between the historical vehicle and the target vehicle.
[0129] The neural network generation module 530 is used to generate a neural network based on the classifier.
[0130] The second cache module 550 is used to send the neural network to the cloud server and receive the predicted communication data obtained by the cloud network based on the neural network; wherein the predicted communication data is the requested communication data predicted by the target vehicle.
[0131] The edge cache device of the vehicle network proposed in this embodiment generates a classifier through the target vehicle and sends its classifier to the edge server. The edge server fits the classifier into a neural network and then sends the neural network to the cloud server. The cloud server integrates the model, learns and outputs the prediction result of the target vehicle. The prediction result is cached in the edge server. When the target vehicle requests content subsequently, it can directly obtain the content from the cache of the edge server, thereby improving the efficiency of data transmission, ensuring the accuracy of the cached data in the edge server, and reducing data request delays.
[0132] It should be noted that the edge caching device of the Internet of Vehicles provided in the above embodiment and the edge caching method of the Internet of Vehicles provided in the above embodiment belong to the same concept, and the specific manner in which each module and unit performs operations has been described in detail in the method embodiment and will not be repeated here.
[0133] Another aspect of the present application also provides an electronic device, including: a controller; a memory for storing one or more programs, which, when executed by the controller, executes the above-mentioned edge caching method of the Internet of Vehicles.
[0134] See also Figure 5 , Figure 5 1 is a schematic diagram of the structure of a computer system of an electronic device shown in an exemplary embodiment of the present application, which shows a schematic diagram of the structure of a computer system of an electronic device suitable for implementing an embodiment of the present application.
[0135] It should be noted that Figure 5 The computer system 500 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0136] like Figure 5 As shown, the computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 502 or the program loaded from the storage part 508 to the random access memory (RAM) 503, such as executing the method in the above embodiment. In the RAM 503, various programs and data required for system operation are also stored. The CPU 501, ROM 502 and RAM 503 are connected to each other through a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0137] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed so that a computer program read therefrom is installed into the storage section 508 as needed.
[0138] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 509, and / or installed from a removable medium 511. When the computer program is executed by a central processing unit (CPU) 501, various functions defined in the system of the present application are executed.
[0139] It should be noted that the computer-readable medium shown in the embodiment of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium can include a data signal propagated in a baseband or as a part of a carrier wave, wherein a computer-readable computer program is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0140] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0141] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.
[0142] Another aspect of the present application further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the vehicle light control method as described above is implemented. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device.
[0143] Another aspect of the present application also provides a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the vehicle light control method provided in each of the above embodiments.
[0144] According to one aspect of an embodiment of the present application, a computer system is also provided, including a central processing unit (CPU), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) or a program loaded from a storage portion into a random access memory (RAM), such as executing the method in the above embodiment. In RAM, various programs and data required for system operation are also stored. CPU, ROM and RAM are connected to each other via a bus. An input / output (I / O) interface is also connected to the bus.
[0145] The following components are connected to the I / O interface: an input part including a keyboard, a mouse, etc.; an output part including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage part including a hard disk, etc.; and a communication part including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication part performs communication processing via a network such as the Internet. A drive is also connected to the I / O interface as needed. Removable media, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., are installed on the drive as needed so that the computer program read therefrom is installed into the storage part as needed.
[0146] The above content is only a preferred exemplary embodiment of the present application and is not intended to limit the implementation scheme of the present application. A person skilled in the art can easily make corresponding changes or modifications based on the main concept and spirit of the present application. Therefore, the scope of protection of the present application shall be based on the scope of protection required by the claims.
Claims
1. An edge caching method for an Internet of Vehicles, characterized in that: Applied to a target vehicle connected to an edge server, the edge caching method includes: Calculating a characteristic distance with a historical vehicle to determine a target historical vehicle based on a value of the characteristic distance; wherein the historical vehicle is a vehicle connected to the edge server; generating a classifier based on the target historical vehicle, the target vehicle, and the request communication data of the target vehicle; The classifier is sent to the edge server so that the edge server generates a neural network based on the classifier, and after sending the neural network to the cloud server, the edge server receives predicted communication data returned by the cloud server; wherein the predicted communication data is the requested communication data predicted by the target vehicle.
2. The method according to claim 1, characterized in that The generating a classifier based on the target historical vehicle, the target vehicle and the request communication data of the target vehicle further comprises: Based on the numerical value of the characteristic distance between the target historical vehicle and the target vehicle, a target sample is obtained; wherein the target sample includes at least one target historical vehicle; Obtaining a weight between the target historical vehicle in the target sample and the target vehicle based on the historical request communication data of the target historical vehicle in the target sample and the request communication data of the target vehicle; wherein the weight represents the matching degree between the target vehicle and the corresponding target historical vehicle; A classifier is generated based on the weight between the target historical vehicle in the target sample, the historical request communication data of the target historical vehicle in the target sample, and the target vehicle and the request communication data of the target vehicle.
3. The method according to claim 2, characterized in that The step of obtaining a target sample based on the numerical value of the characteristic distance between the target historical vehicle and the target vehicle further includes: Based on the numerical value of the characteristic distance between the target historical vehicle and the target vehicle, the target historical vehicles are sorted to obtain a historical vehicle sequence; Acquire a first sample with a sequence number greater than a first value and a second sample with a sequence number less than a second value in the historical vehicle sequence; The first sample and the second sample are used as the target samples.
4. The method according to claim 2, characterized in that: The step of acquiring a weight between the target historical vehicle in the target sample and the target vehicle based on the historical request communication data of the target historical vehicle in the target sample and the request communication data of the target vehicle further includes: Acquire an angle value between a target historical vehicle in the target sample and the target historical vehicle based on historical request communication data of the target historical vehicle in the target sample and request communication data of the target vehicle; A weight between a target historical vehicle in the target sample and the target vehicle is determined based on the angle value.
5. The method according to claim 4, characterized in that The acquiring the angle value between the target historical vehicle in the target sample and the target historical vehicle based on the historical request communication data of the target historical vehicle in the target sample and the request communication data of the target vehicle comprises: Acquire the correlation between the target historical vehicle in the target sample and the target historical vehicle based on the historical request communication data of the target historical vehicle in the target sample and the request communication data of the target vehicle; An angle value between the target historical vehicle in the target sample and the target historical vehicle is calculated based on a correlation between the target historical vehicle in the target sample and the target historical vehicle.
6. The method according to claim 1, characterized in that Before calculating the characteristic distance between the target historical vehicle and determining the target historical vehicle based on the value of the characteristic distance, the edge caching method further includes: Sending a sharing request and a public key to the edge server, so that the edge server sends the sharing request and the public key to the cloud server, and the cloud server decrypts the sharing request based on the public key to obtain a shared vehicle; wherein the shared vehicle is a historical vehicle for which the target vehicle requests information sharing; receiving feedback information sent by the edge server; wherein the feedback information includes attribute data of the shared vehicle, and the feedback information is data obtained by encrypting the attribute data of the shared vehicle after the edge server receives the shared vehicle sent by the cloud server; Based on the feedback information, information is transmitted with the shared vehicle to obtain characteristic data of the shared vehicle, thereby calculating a characteristic distance between the shared vehicle and the shared vehicle based on the characteristic data of the shared vehicle.
7. The method according to claim 6, characterized in that The transmitting information with the shared vehicle based on the feedback information to obtain characteristic data of the shared vehicle further includes: Setting an access control policy based on the feedback information, and generating a ciphertext based on the access control policy; Sending the ciphertext to the edge server, so that the edge server sends the ciphertext to the shared vehicle, the shared vehicle decrypts the ciphertext based on the attribute data of the shared vehicle, and sends feature data to the edge server based on the decrypted data; Receive feature data sent by the edge server.
8. An edge cache device for an Internet of Vehicles, characterized in that: Applied to a target vehicle connected to an edge server, the edge cache device comprises: A target historical vehicle determination module, used to calculate a characteristic distance with a historical vehicle, so as to determine the target historical vehicle based on the value of the characteristic distance; wherein the historical vehicle is a vehicle connected to the edge server; A classifier generation module, configured to generate a classifier based on the target historical vehicle, the target vehicle, and the request communication data of the target vehicle; The first cache module is used to send the classifier to the edge server so that the edge server generates a neural network based on the classifier, and after sending the neural network to the cloud server, the edge server receives the predicted communication data returned by the cloud server; wherein the predicted communication data is the request communication data predicted by the target vehicle.
9. An electronic device, characterized in that: include: Controller; A memory for storing one or more programs, which, when executed by a controller, enables the controller to implement the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: Computer-readable instructions are stored thereon, and when the computer-readable instructions are executed by a processor of a computer, the computer is caused to execute the method according to any one of claims 1 to 7.
