Vehicle network data feature selection method and system, electronic equipment and storage medium

Through the methods of additive homomorphic encryption and data feature binning, the privacy protection problem in the selection of data features related to the adjustable potential of electric vehicles is solved, and the joint collaborative feature selection of the power grid and car companies is realized, improving security and applicability.

CN118740446APending Publication Date: 2024-10-01GLOBAL ENERGY INTERCONNECTION RES INST CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410812360.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Feature data related to the adjustable potential of electric vehicles cannot be mastered by the same entity, making it difficult to apply traditional centralized feature selection engineering methods. In addition, existing privacy computing technology has high hardware requirements and customization in vehicle network data feature selection. The problem of insufficient design of chemical solutions.

Method used

The additive homomorphic encryption method is used to encrypt the samples shared by the power grid and the car company. After binning the data features, the ciphertext values ​​in the binning results are added, decrypted to obtain the total number of positive samples and negative samples, and the data is calculated. Feature measure, selects data features that can predict the adjustable potential label of electric vehicles.

Benefits of technology

It achieves joint collaborative feature selection between the power grid and the car company, improves the security of the feature selection scheme, avoids direct interaction and transmission of respective private feature data, and meets the practical application needs of car network data feature selection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118740446A_ABST
    Figure CN118740446A_ABST
Patent Text Reader

Abstract

The invention belongs to a feature selection method, and provides a vehicle network data feature selection method and system, an electronic device and a storage medium for solving the problems of the existing privacy computing technology. Performing addition calculation on the ciphertext value in each sub-box in the sub-box result, performing decryption to obtain the total number of positive samples and the total number of negative samples of each sub-box so as to obtain the total number of positive samples and the total number of negative samples, and calculating a data feature measurement index corresponding to the sub-box result; data features may be selected according to a calculation result of the data feature measurement index. According to the method, the additive homomorphic encryption method is utilized, so that the power grid party and the vehicle enterprise party can perform joint cooperative feature selection, direct interaction and transmission of respective privacy feature data are avoided, and compared with a centralized feature selection method of directly transmitting original feature data, the security of the feature selection scheme is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to a feature selection method, and specifically to a vehicle network data feature selection method, system, electronic device, and storage medium. Background Art

[0002] As the penetration rate of electric vehicles increases year by year, electric vehicles, as an important adjustable load on the demand side, can fully aggregate and analyze their adjustable potential under the support of "virtual power plant" technology and large-scale vehicle-grid interaction systems. They can become a potential large-capacity flexible resource on the user side and provide flexible energy storage, frequency regulation, peak regulation and other auxiliary services for new power systems with new energy as the main body.

[0003] However, in the above scenario, the characteristic data related to the adjustable potential of electric vehicles are not mastered by the same entity, making it difficult to apply the traditional "centralized" feature selection engineering method. In this scenario, the power grid has relevant data on vehicle charging, such as vehicle charging-related characteristic data, user charging fee payment data, and user response to charging scheduling instructions; while the car company has vehicle driving data, such as user mileage, vehicle maintenance, user travel habits, etc. These data are important core data for both power grid companies and car companies, and they are unable and unwilling to share these data with other third parties.

[0004] Privacy computing refers to a series of information technologies that allow all parties to jointly analyze and calculate data, while ensuring that the data provider does not disclose the original data. The current mainstream privacy computing technologies can be divided into three major paths: the privacy-preserving artificial intelligence path represented by federated learning, the trusted hardware path represented by a trusted execution environment, and the cryptography path represented by secure multi-party computing and homomorphic encryption. All three paths can achieve the "available but invisible" nature of data in joint collaborative computing.

[0005] Among the above three paths, federated learning mainly focuses on the field of machine learning, with more research on joint training and reasoning, but less research on joint feature selection; the trusted execution environment requires the use of additional trusted hardware as a "trusted zone" for performing joint computing, and has high additional requirements for hardware; cryptographic technologies represented by secure multi-party computing and homomorphic encryption pay more attention to underlying security theoretical computing technologies (for example, more attention to bit encryption). For vehicle network data feature selection involving large amounts of data calculations, customized solution design is still required to meet actual application needs. Summary of the invention

[0006] The purpose of this application is to solve the problems in the prior art and to provide a method, system, electronic device, and storage medium for selecting vehicle network data features.

[0007] In order to achieve the above objectives, this application adopts the following technical solutions:

[0008] In a first aspect, the present application proposes a method for selecting vehicle network data features, comprising:

[0009] Obtaining the encrypted ciphertext and the sample primary key of the shared sample; the encrypted ciphertext is obtained by encrypting the sample label of the shared sample by the power grid party using the additive homomorphic encryption method; the shared sample is a shared sample of the power grid party and the car manufacturer party;

[0010] The data features are binned to obtain binning results; the data features are vehicle driving feature data obtained by the vehicle manufacturer;

[0011] According to the encrypted ciphertext and the sample primary key of the common sample, the label value of the encrypted ciphertext corresponding to each bin in the binning result is added to obtain a ciphertext sum value; and the ciphertext sum value and the bin number in the binning result are transmitted to the power grid party, so that the power grid party selects data features for predicting the adjustable potential label of the electric vehicle according to the ciphertext sum value and the bin number in the binning result.

[0012] Furthermore, the data features for predicting the adjustable potential label of the electric vehicle are selected according to the ciphertext sum value and the bin number in the bin result, including:

[0013] Obtaining the total number of positive samples and the total number of negative samples in each bin; wherein the total number of positive samples and the total number of negative samples in each bin are obtained by the power grid party after decrypting the ciphertext sum value and according to the decrypted ciphertext sum value of each bin;

[0014] According to the total number of positive samples and negative samples in each bin, calculate the total number of positive samples and the total number of negative samples;

[0015] According to the total number of positive samples and the total number of negative samples, the data feature measurement index value corresponding to the binning result is calculated, and combined with the preset data feature measurement index value, the data features that can predict the adjustable potential label of the electric vehicle are selected.

[0016] Furthermore, the data feature measurement index includes any one or any combination of evidence weight, information value and Kolmogorov-Smirnov statistic value.

[0017] Furthermore, the method for calculating the weight of evidence includes:

[0018]

[0019] Among them, WOE i is the evidence weight of the ith bin, Badi is the total number of negative samples in the ith bin, BadT is the total number of negative samples, Good i is the total number of positive samples in the i-th bin, Good T is the total number of positive samples;

[0020] The method for calculating the information value includes:

[0021]

[0022] Among them, IV is the information value, IV i is the information value of the i-th bin, and n is the total number of bins;

[0023] The method for calculating the Kolmogorov-Smirnov statistic value includes:

[0024] KS=max{cum_bad_rate-cum_good_rate}

[0025] Among them, KS is the Kolmogorov-Smirnov statistic, cum_bad_rate is the ratio of the cumulative number of negative samples to the total number of negative samples, and cum_good_rate is the ratio of the cumulative number of positive samples to the total number of positive samples.

[0026] In a second aspect, the present application proposes a vehicle network data feature selection system, comprising:

[0027] The first encryption module is used to obtain the encrypted ciphertext and the sample primary key of the shared sample; the encrypted ciphertext is obtained by encrypting the sample label of the shared sample by the power grid party using the additive homomorphic encryption method; the shared sample is a shared sample of the power grid party and the automobile enterprise party;

[0028] The first binning module is used to bin the data features to obtain binning results; the data features are vehicle driving feature data obtained by the vehicle manufacturer;

[0029] The first summation module is used to perform addition calculation on the label value of the encrypted ciphertext corresponding to each bin in the binning result according to the encrypted ciphertext and the sample primary key of the common sample to obtain a ciphertext sum value; and transmit the ciphertext sum value and the bin number in the binning result to the power grid party, so that the power grid party selects data features for predicting the adjustable potential label of the electric vehicle according to the ciphertext sum value and the bin number in the binning result.

[0030] Furthermore, the data features for predicting the adjustable potential label of the electric vehicle are selected according to the ciphertext sum value and the bin number in the bin result, including:

[0031] Obtaining the total number of positive samples and the total number of negative samples in each bin; wherein the total number of positive samples and the total number of negative samples in each bin are obtained by the power grid party after decrypting the ciphertext sum value and according to the decrypted ciphertext sum value of each bin;

[0032] According to the total number of positive samples and negative samples in each bin, calculate the total number of positive samples and the total number of negative samples;

[0033] According to the total number of positive samples and the total number of negative samples, the data feature measurement index value corresponding to the binning result is calculated, and combined with the preset data feature measurement index value, the data features that can predict the adjustable potential label of the electric vehicle are selected.

[0034] Furthermore, the data feature measurement index includes any one or any combination of evidence weight, information value and Kolmogorov-Smirnov statistic value.

[0035] In a third aspect, the present application proposes a method for selecting vehicle network data features, including:

[0036] Send the encrypted ciphertext and the sample primary key of the shared sample; the encrypted ciphertext is obtained by encrypting the sample label of the shared sample using the additive homomorphic encryption method; the shared sample is the shared sample of the power grid party and the car company party;

[0037] Obtaining a binning result; the binning result is obtained by binning the data features; the data features are vehicle driving feature data obtained by the vehicle manufacturer;

[0038] Obtaining a ciphertext sum value and a bin number in the bin result; the ciphertext sum value is a ciphertext sum value obtained by adding the label value of the encrypted ciphertext corresponding to each bin in the bin result according to the encrypted ciphertext and the sample primary key of the common sample by the automobile manufacturer;

[0039] Decrypting the ciphertext sum value, and obtaining the total number of positive samples and the total number of negative samples in each bin according to the decrypted ciphertext sum value of each bin;

[0040] According to the total number of positive samples and negative samples in each bin, calculate the total number of positive samples and the total number of negative samples;

[0041] According to the total number of positive samples and the total number of negative samples, the data feature measurement index value corresponding to the binning result is calculated, and combined with the preset data feature measurement index value, the data features that can predict the adjustable potential label of the electric vehicle are selected.

[0042] Furthermore, the data feature measurement index includes any one or any combination of evidence weight, information value and Kolmogorov-Smirnov statistic value.

[0043] Furthermore, the method for calculating the weight of evidence includes:

[0044]

[0045] Among them, WOE i is the evidence weight of the ith bin, Bad i is the total number of negative samples in the ith bin, BadT is the total number of negative samples, Good i is the total number of positive samples in the i-th bin, Good T is the total number of positive samples;

[0046] The method for calculating the information value includes:

[0047]

[0048] Among them, IV is the information value, IV i is the information value of the i-th bin, and n is the total number of bins;

[0049] The method for calculating the Kolmogorov-Smirnov statistic value includes:

[0050] KS=max{cum_bad_rate-cum_good_rate}

[0051] Among them, KS is the Kolmogorov-Smirnov statistic, cum_bad_rate is the ratio of the cumulative number of negative samples to the total number of negative samples, and cum_good_rate is the ratio of the cumulative number of positive samples to the total number of positive samples.

[0052] In a fourth aspect, the present application proposes a vehicle network data feature selection system, comprising:

[0053] The second encryption module is used to send the encrypted ciphertext and the sample master key of the shared sample; the encrypted ciphertext is obtained by encrypting the sample label of the shared sample by the power grid party using the additive homomorphic encryption method; the shared sample is a shared sample of the power grid party and the car manufacturer party;

[0054] The second binning module is used to obtain binning results; the binning results are obtained by binning data features; the data features are vehicle driving feature data obtained by the vehicle manufacturer;

[0055] A second summing module is used to obtain a ciphertext sum value and a bin number in the bin result; the ciphertext sum value is a ciphertext sum value obtained by adding the label value of the encrypted ciphertext corresponding to each bin in the bin result according to the encrypted ciphertext and the sample primary key of the common sample by the automobile manufacturer;

[0056] A second decryption module is used to decrypt the ciphertext sum value, and obtain the total number of positive samples and the total number of negative samples in each bin according to the decrypted ciphertext sum value of each bin;

[0057] The second calculation module is used to calculate the total number of positive samples and the total number of negative samples according to the total number of positive samples and the total number of negative samples in each bin;

[0058] The second selection module is used to calculate the data feature measurement index value corresponding to the binning result according to the total number of positive samples and the total number of negative samples, and select the label data features that can predict the adjustable potential of electric vehicles in combination with the preset data feature measurement index value.

[0059] Furthermore, the data feature measurement index includes any one or any combination of evidence weight, information value and Kolmogorov-Smirnov statistic value.

[0060] In a fifth aspect, the present application proposes an electronic device, comprising:

[0061] Memory for storing computer programs;

[0062] A processor is used to implement the steps of the above-mentioned vehicle network data feature selection method when executing the computer program.

[0063] In a sixth aspect, the present application proposes a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned vehicle network data feature selection method are implemented.

[0064] Compared with the prior art, this application has the following beneficial effects:

[0065] This application proposes a method for selecting vehicle network data features, which uses an additive homomorphic encryption method to encrypt the common samples of the power grid and the car manufacturer. After the data features are binned, the ciphertext values ​​in each bin in the binning results are added, and then decrypted to obtain the total number of positive samples and negative samples in each bin, and then the total number of positive samples and the total number of negative samples are obtained. Then, the data feature measurement index corresponding to the binning results is calculated, and the data features can be selected according to the calculation results of the data feature measurement index. This application uses an additive homomorphic encryption method to enable the power grid and the car manufacturer to conduct joint collaborative feature selection, avoiding direct interaction and transmission of their respective private feature data. Compared with the centralized feature selection method that directly transmits the original feature data, this application greatly improves the security of the feature selection scheme.

[0066] The present application also proposes a vehicle network data feature selection system, electronic equipment and computer storage medium, which have all the advantages of the above-mentioned vehicle network data feature selection method. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0068] Figure 1 This is a first flow chart of a method for selecting vehicle network data features in this application;

[0069] Figure 2 This is a second flow chart of a vehicle network data feature selection method for this application;

[0070] Figure 3 This is a third flow chart of a vehicle network data feature selection method of the present application;

[0071] Figure 4 This is a schematic diagram of the principle of data feature selection in an embodiment of a vehicle network data feature selection method of the present application;

[0072] Figure 5 This is a first connection diagram of a vehicle network data feature selection system for this application;

[0073] Figure 6 This is a second connection diagram of a vehicle network data feature selection system of the present application. DETAILED DESCRIPTION

[0074] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.

[0075] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0076] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0077] In the description of the embodiments of the present application, it should be noted that if the terms "upper", "lower", "horizontal", "inner", etc. appear, the orientation or position relationship indicated is based on the orientation or position relationship shown in the drawings, or the orientation or position relationship in which the invented product is usually placed when used. It is only for the convenience of describing the present application and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present application. In addition, the terms "first", "second", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.

[0078] In addition, if the term "horizontal" appears, it does not mean that the component must be absolutely horizontal, but can be slightly tilted. For example, "horizontal" only means that its direction is more horizontal than "vertical", which does not mean that the structure must be completely horizontal, but can be slightly tilted.

[0079] In the description of the embodiments of the present application, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "set", "install", "connect", and "connect" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal connection of two components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0080] In practical applications, characteristic data related to the adjustable potential of electric vehicles may include battery status data, vehicle usage data, user behavior data, grid operation data, charging facility data, external factor data, etc. These data are usually scattered among multiple entities such as automobile companies and grid companies. If they need to be applied, they must fully tap the adjustable potential of electric vehicles through data sharing and integration to support the stable operation and development of the grid.

[0081] However, entities often cannot share data. Aiming at the privacy data protection problem faced by electric vehicle adjustable potential related data in feature selection, this application proposes a vehicle network data feature selection method, system, electronic device, and storage medium based on the actual needs of power grid companies and car companies in privacy data protection of electric vehicle adjustable potential related data.

[0082] The present application is described in detail below in conjunction with embodiments and drawings.

[0083] See also Figure 1 , which is a first flow chart of a method for selecting vehicle network data features in this application, taking the selection method of a vehicle enterprise as an example, it may include:

[0084] S101, obtaining the encrypted ciphertext and the sample primary key of the shared sample; the encrypted ciphertext is obtained by encrypting the sample label of the shared sample by the power grid party using an additive homomorphic encryption method.

[0085] It should be noted that shared samples are shared samples by the power grid and the car manufacturer. The sample primary key of the shared samples usually refers to the keys that uniquely identify the samples and exist in the data sets of both the power grid and the car manufacturer. The sample primary key is usually a field or combination of fields in the data set used to uniquely identify each sample. After the encrypted samples are aligned, these shared primary keys will help both parties identify common samples. These primary keys are exchanged and compared after encryption, which can achieve data sharing and cooperation while ensuring data privacy and security.

[0086] S102, binning the data features to obtain binning results, wherein the data features are vehicle driving feature data obtained by the vehicle manufacturer.

[0087] It should be noted that data feature binning is an important step in data preprocessing, which can help convert continuous variables into categorical variables or divide the range of data into several intervals for better understanding and analysis of data. After binning, the value of the original feature will be replaced with the corresponding bin number or interval label. In practical applications, the specific binning criteria can be determined according to the selection requirements.

[0088] S103, according to the encrypted ciphertext and the sample primary key of the common sample, the label value of the encrypted ciphertext corresponding to each bin in the binning result is added to obtain the ciphertext sum value; and the ciphertext sum value and the bin number in the binning result are transmitted to the power grid party, so that the power grid party selects the data features for predicting the adjustable potential label of the electric vehicle according to the ciphertext sum value and the bin number in the binning result.

[0089] See also Figure 2 , which is a second flow chart of a method for selecting vehicle network data features in the present application, taking the selection method of the power grid as an example, it may include:

[0090] S201, sending the encrypted ciphertext and the sample primary key of the shared sample; the encrypted ciphertext is obtained by the power grid party encrypting the sample label of the shared sample using the additive homomorphic encryption method. The shared sample is the shared sample of the power grid party and the car company party.

[0091] S202, obtaining binning results; the binning results are obtained by binning data features, wherein the data features are vehicle driving feature data obtained by the vehicle manufacturer.

[0092] S203, obtaining the ciphertext sum value and the bin number in the bin result; the ciphertext sum value is the ciphertext sum value obtained by the automobile manufacturer by adding the label value of the encrypted ciphertext corresponding to each bin in the bin result according to the encrypted ciphertext and the sample primary key of the common sample.

[0093] S204, decrypting the ciphertext sum value, and obtaining the total number of positive samples and the total number of negative samples in each bin according to the decrypted ciphertext sum value of each bin.

[0094] S205, calculating the total number of positive samples and the total number of negative samples according to the total number of positive samples and the total number of negative samples in each bin.

[0095] S206, calculating the data feature measurement index value corresponding to the binning result according to the total number of positive samples and the total number of negative samples, and selecting the data features that can predict the adjustable potential label of the electric vehicle in combination with the preset data feature measurement index value.

[0096] In practical applications, data feature measurement indicators are determined based on binning results. When selecting data features, you can make a selection based on the calculation results of data feature measurement indicators according to subsequent usage needs.

[0097] The specific method in this embodiment is the same as the selection method of the car manufacturer, and will not be repeated here. Since the car manufacturer and the power grid cannot share data, both parties need to use the corresponding method of this application to make a selection. In other embodiments of this application, the two parties can also interact with each other.

[0098] like Figure 3 As shown, it is a third flow chart of a vehicle network data feature selection method of the present application, which may include:

[0099] S301, the power grid party and the car manufacturer party align the encrypted samples to obtain a common sample for both parties.

[0100] It should be noted that the power grid and the car manufacturer each have their own data sets, which generally contain sample IDs and other feature information. For the sake of privacy protection and data security, both parties can use the method of encrypted sample alignment to find common samples. In practical applications, the power grid can use an appropriate encryption algorithm to encrypt the sample labels to obtain encrypted sample labels. At the same time, the power grid can also encrypt the sample ID to ensure that the original ID information is not leaked during the alignment process. The power grid transmits the encrypted sample ID and sample label to the car manufacturer. After receiving the encrypted data, the car manufacturer uses the same encryption algorithm to encrypt the sample ID in its own data set. Subsequently, the car manufacturer can align the encrypted sample IDs and find the encrypted sample IDs that are the same as those of the power grid through comparison. These are the common samples of both parties.

[0101] S302, the power grid performs encryption calculations.

[0102] Based on the shared samples, the grid party has a sample label y n , encrypt y using additive homomorphic encryption n and 1-y n , respectively get the encrypted ciphertext <y n >, <1-y n >, together with the sample primary key ID n In practical applications, as an example, the additive homomorphic encryption method can use the Paillier algorithm of randomization technology.

[0103] S303, car manufacturer’s feature binning.

[0104] Car manufacturers can bin their own features according to the preset binning method and obtain the binning results.

[0105] S304, the car manufacturer asks for the sum of the secret messages.

[0106] After the car company obtains the binning results, it will use the ID synchronized by the power grid. n , <y n >, <1-y n >, perform addition operation on the ciphertext value in each bin to obtain the ciphertext sum value Sum( <y n >), Sum(<1-y n >), together with the bin number bin i Transmitted to the grid.

[0107] S305, the grid party decrypts and calculates the WOE value and / or IV value and / or KS value.

[0108] The power grid party decrypts the ciphertext sum value to obtain the Sum(y n ) and sum(1-y n ), representing the total number of positive samples in each bin Good i And the total number of negative samples Bad i The grid only needs to calculate the total number of positive samples Good locally. T And the total number of negative samples Bad T , you can calculate the WOE value, IV value and KS (Kolmogorov-Smirnov statistic) value in turn.

[0109] The following methods can be used to calculate WOE value, IV value and KS value:

[0110]

[0111] For each bin IV i Summing gives:

[0112]

[0113] Calculate the ratio of the cumulative number of positive samples in the binning interval to the total number of positive samples, cum_good_rate, and the ratio of the cumulative number of negative samples to the total number of positive samples, cum_bad_rate.

[0114] Then calculate the absolute value of the difference between the cumulative positive sample ratio and the cumulative negative sample ratio in each bin interval, and take the maximum value as KS:

[0115] KS=max{cum_bad_rate-cum_good_rate}

[0116] like Figure 4 As shown, it is a schematic diagram of the principle of data feature selection in the above embodiment. After the data sample alignment operation is completed, it is necessary to select charging behavior feature data with greater discrimination as input to train the electric vehicle regulation potential model. In practical applications, after the electric vehicle regulation potential model is trained, the electric vehicle regulation potential model can be directly used for potential prediction. This application adopts a characteristic univariate analysis method to analyze the distribution of each feature and the predictive ability of the label. Common data feature measurement indicators mainly include WOE value, IV value and KS value. In general, the party with the data classification label can be called the Guest party (i.e., the power grid company), and the party without the label is called the Host party (car company). The Guest party has a label (two classifications, the label is 1 for a positive sample, that is, a vehicle label with greater regulation potential; the label is 0 for a negative sample, that is, a vehicle label with less regulation potential), and the Host party has vehicle driving feature data. Therefore, the above-mentioned data feature selection method can be used to complete the selection.

[0117] As an application scenario, a power grid company and a car company cooperated to conduct joint data analysis on the adjustable potential of electric vehicles. The power grid company has relevant data on vehicle charging, such as vehicle charging-related feature data, user charging fee payment data, and user response to charging adjustment and scheduling instructions; while the car company has vehicle driving data, such as user mileage, vehicle maintenance, user travel habits and other data. After both parties used privacy data sample alignment technology to obtain a group of identical users, the power grid company hopes to quantitatively evaluate the effect of the vehicle driving feature data provided by the car company, but there are the following problems:

[0118] 1. Grid companies cannot disclose their charging regulation and dispatching tags;

[0119] 2. Car companies are also not allowed to disclose the user vehicle driving data they hold.

[0120] For this situation, the vehicle network data feature selection method of the present application can be adopted.

[0121] Based on the above situation, this application proposes a vehicle network data feature selection method, system, electronic device, and storage medium.

[0122] Based on the above-mentioned vehicle network data feature selection method, the present application also proposes a vehicle network data feature selection system.

[0123] like Figure 5 As shown, it is a first connection diagram of a vehicle network data feature selection system of the present application, taking a vehicle enterprise as an example, it may include:

[0124] The first encryption module is used to obtain the encrypted ciphertext and the sample primary key of the shared sample; the encrypted ciphertext is obtained by encrypting the sample label of the shared sample by the power grid party using the additive homomorphic encryption method; the shared sample is a shared sample of the power grid party and the automobile enterprise party;

[0125] The first binning module is used to bin the data features to obtain binning results; the data features are vehicle driving feature data obtained by the vehicle manufacturer;

[0126] The first summation module is used to perform addition calculation on the label value of the encrypted ciphertext corresponding to each bin in the binning result according to the encrypted ciphertext and the sample primary key of the common sample to obtain a ciphertext sum value; and transmit the ciphertext sum value and the bin number in the binning result to the power grid party, so that the power grid party selects data features for predicting the adjustable potential label of the electric vehicle according to the ciphertext sum value and the bin number in the binning result.

[0127] like Figure 6 As shown, it is a second connection diagram of a vehicle network data feature selection system of the present application, taking the power grid as an example, which may include:

[0128] The second encryption module is used to send the encrypted ciphertext and the sample master key of the shared sample; the encrypted ciphertext is obtained by encrypting the sample label of the shared sample by the power grid party using the additive homomorphic encryption method; the shared sample is a shared sample of the power grid party and the car manufacturer party;

[0129] The second binning module is used to obtain binning results; the binning results are obtained by binning data features; the data features are vehicle driving feature data obtained by the vehicle manufacturer;

[0130] A second summing module is used to obtain a ciphertext sum value and a bin number in the bin result; the ciphertext sum value is a ciphertext sum value obtained by adding the label value of the encrypted ciphertext corresponding to each bin in the bin result according to the encrypted ciphertext and the sample primary key of the common sample by the automobile manufacturer;

[0131] A decryption module is used to decrypt the ciphertext sum value, and obtain the total number of positive samples and the total number of negative samples in each bin according to the decrypted ciphertext sum value of each bin;

[0132] A calculation module is used to calculate the total number of positive samples and the total number of negative samples according to the total number of positive samples and the total number of negative samples in each bin;

[0133] The selection module is used to calculate the data feature measurement index value corresponding to the binning result according to the total number of positive samples and the total number of negative samples, and select the data features that can predict the adjustable potential label of the electric vehicle in combination with the preset data feature measurement index value.

[0134] In another embodiment of the vehicle network data feature selection system of the present application, encrypting the sample labels of the common samples to obtain the encrypted ciphertext may include: n and 1-y n Encrypt and obtain the encrypted ciphertext <y n > and < 1-y n >.

[0135] In other embodiments of a vehicle network data feature selection system of the present application, the data feature measurement index may include any one or any combination of evidence weight, information value and KS value.

[0136] It should be noted that in other embodiments of the vehicle network data feature selection system of the present application, the specific functions in each module can also adopt the embodiments of the aforementioned vehicle network data feature selection method, which will not be repeated here.

[0137] It should be noted that in the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of each module is only a logical function division. There may be other division methods in actual implementation. For example, multiple modules can be combined or integrated into another device, or some features can be ignored or not executed. The module described as a separate component may or may not be physically separated. The component displayed as a module may be a physical unit or multiple physical units, that is, it may be located in one place, or it may be distributed in multiple different places. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment.

[0138] In addition, each module in each embodiment of the present invention may be integrated into a processing unit, each module may exist physically separately, or two or more modules may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of a software functional unit.

[0139] An electronic device provided in an embodiment of the present application includes a memory and a processor. A computer program is stored in the memory. When the processor executes the computer program, the steps of the vehicle network data feature selection method described in any of the above embodiments are implemented.

[0140] Another electronic device provided in the embodiment of the present application may also include: an input port connected to the processor, used to transmit multimodal data collected by an external acquisition device to the processor; and a display unit connected to the processor, used to display the processing results of the processor to the outside world; a communication module connected to the processor, used to realize communication between the electronic device and the outside world. The display unit can be a display panel, a laser scanning display, etc.; the communication mode adopted by the communication module includes but is not limited to mobile high-definition link technology (HML), universal serial bus (USB), high-definition multimedia interface (HDMI), wireless connection: wireless fidelity technology (WiFi), Bluetooth communication technology, low-power Bluetooth communication technology, and communication technology based on IEEE802.11s.

[0141] An embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of the vehicle network data feature selection method described in any of the above embodiments are implemented.

[0142] The computer-readable storage medium involved in the present application includes random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disks, removable disks, CD-ROMs, or any other form of storage medium known in the technical field.

[0143] For the description of the relevant parts of the vehicle network data feature selection system, electronic device, and computer-readable storage medium provided in the embodiments of the present application, please refer to the detailed description of the corresponding parts in the vehicle network data feature selection method provided in the embodiments of the present application, which will not be repeated here. In addition, the parts of the above technical solutions provided in the embodiments of the present application that are consistent with the implementation principles of the corresponding technical solutions in the prior art are not described in detail to avoid excessive elaboration.

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

Claims

1. A vehicle network data feature selection method, characterized in that: include: Obtaining the encrypted ciphertext and the sample primary key of the shared sample; the encrypted ciphertext is obtained by encrypting the sample label of the shared sample by the power grid party using the additive homomorphic encryption method; the shared sample is a shared sample of the power grid party and the car manufacturer party; The data features are binned to obtain binning results; the data features are vehicle driving feature data obtained by the vehicle manufacturer; According to the encrypted ciphertext and the sample primary key of the common sample, adding the label value of the encrypted ciphertext corresponding to each bin in the binning result to obtain a ciphertext sum value; The ciphertext sum value and the bin number in the bin result are transmitted to the power grid, so that the power grid selects data features for predicting the adjustable potential label of the electric vehicle according to the ciphertext sum value and the bin number in the bin result.

2. According to claim 1, a vehicle network data feature selection method is characterized in that: The data features for predicting the adjustable potential label of the electric vehicle are selected according to the ciphertext sum value and the bin number in the bin result, including: Obtaining the total number of positive samples and the total number of negative samples in each bin; wherein the total number of positive samples and the total number of negative samples in each bin are obtained by the power grid party after decrypting the ciphertext sum value and according to the decrypted ciphertext sum value of each bin; According to the total number of positive samples and negative samples in each bin, calculate the total number of positive samples and the total number of negative samples; According to the total number of positive samples and the total number of negative samples, the data feature measurement index value corresponding to the binning result is calculated, and combined with the preset data feature measurement index value, the data features that can predict the adjustable potential label of the electric vehicle are selected.

3. According to claim 2, a vehicle network data feature selection method is characterized in that: The data feature measurement index includes any one or any combination of evidence weight, information value and Kolmogorov-Smirnov statistic value.

4. A vehicle network data feature selection method according to claim 3, characterized in that: The method for calculating the weight of evidence includes: Among them, WOE i is the evidence weight of the ith bin, Bad i is the total number of negative samples in the ith bin, BadT is the total number of negative samples, Good i is the total number of positive samples in the i-th bin, Good T is the total number of positive samples; The method for calculating the information value includes: Among them, IV is the information value, IV i is the information value of the i-th bin, and n is the total number of bins; The method for calculating the Kolmogorov-Smirnov statistic value includes: KS=max{cum_bad_rate-cum_good_rate} Among them, KS is the Kolmogorov-Smirnov statistic, cum_bad_rate is the ratio of the cumulative number of negative samples to the total number of negative samples, and cum_good_rate is the ratio of the cumulative number of positive samples to the total number of positive samples.

5. A vehicle network data feature selection system, characterized in that: include: The first encryption module is used to obtain the encrypted ciphertext and the sample primary key of the shared sample; the encrypted ciphertext is obtained by encrypting the sample label of the shared sample by the power grid party using the additive homomorphic encryption method; the shared sample is a shared sample of the power grid party and the automobile enterprise party; The first binning module is used to bin the data features to obtain binning results; the data features are vehicle driving feature data obtained by the vehicle manufacturer; A first summing module, configured to perform addition calculation on the label value of the encrypted ciphertext corresponding to each bin in the binning result according to the encrypted ciphertext and the sample primary key of the common sample, to obtain a ciphertext sum value; The ciphertext sum value and the bin number in the bin result are transmitted to the power grid, so that the power grid selects data features for predicting the adjustable potential label of the electric vehicle according to the ciphertext sum value and the bin number in the bin result.

6. A vehicle network data feature selection system according to claim 5, characterized in that: The data features for predicting the adjustable potential label of the electric vehicle are selected according to the ciphertext sum value and the bin number in the bin result, including: Obtaining the total number of positive samples and the total number of negative samples in each bin; wherein the total number of positive samples and the total number of negative samples in each bin are obtained by the power grid party after decrypting the ciphertext sum value and according to the decrypted ciphertext sum value of each bin; According to the total number of positive samples and negative samples in each bin, calculate the total number of positive samples and the total number of negative samples; According to the total number of positive samples and the total number of negative samples, the data feature measurement index value corresponding to the binning result is calculated, and combined with the preset data feature measurement index value, the data features that can predict the adjustable potential label of the electric vehicle are selected.

7. A vehicle network data feature selection system according to claim 6, characterized in that: The data feature measurement index includes any one or any combination of evidence weight, information value and Kolmogorov-Smirnov statistic value.

8. A method for selecting vehicle network data features, characterized in that: include: Sending the encrypted ciphertext and the sample primary key of the shared sample; the encrypted ciphertext is obtained by encrypting the sample label of the shared sample using an additive homomorphic encryption method; The shared samples are shared samples of the power grid and the car companies; Obtaining a binning result; the binning result is obtained by binning the data features; the data features are vehicle driving feature data obtained by the vehicle manufacturer; Obtaining a ciphertext sum value and a bin number in the bin result; the ciphertext sum value is a ciphertext sum value obtained by adding the label value of the encrypted ciphertext corresponding to each bin in the bin result according to the encrypted ciphertext and the sample primary key of the common sample by the automobile manufacturer; Decrypting the ciphertext sum value, and obtaining the total number of positive samples and the total number of negative samples in each bin according to the decrypted ciphertext sum value of each bin; According to the total number of positive samples and negative samples in each bin, calculate the total number of positive samples and the total number of negative samples; According to the total number of positive samples and the total number of negative samples, the data feature measurement index value corresponding to the binning result is calculated, and combined with the preset data feature measurement index value, the data features that can predict the adjustable potential label of the electric vehicle are selected.

9. A vehicle network data feature selection method according to claim 8, characterized in that: The data feature measurement index includes any one or any combination of evidence weight, information value and Kolmogorov-Smirnov statistic value.

10. A vehicle network data feature selection method according to claim 9, characterized in that: The method for calculating the weight of evidence includes: Among them, WOE i is the evidence weight of the ith bin, Bad i is the total number of negative samples in the ith bin, BadT is the total number of negative samples, Good i is the total number of positive samples in the i-th bin, Good T is the total number of positive samples; The method for calculating the information value includes: Among them, IV is the information value, IV i is the information value of the i-th bin, and n is the total number of bins; The method for calculating the Kolmogorov-Smirnov statistic value includes: KS=max{cum_bad_rate-cum_good_rate} Among them, KS is the Kolmogorov-Smirnov statistic, cum_bad_rate is the ratio of the cumulative number of negative samples to the total number of negative samples, and cum_good_rate is the ratio of the cumulative number of positive samples to the total number of positive samples.

11. A vehicle network data feature selection system, characterized in that: include: The second encryption module is used to send the encrypted ciphertext and the sample master key of the shared sample; the encrypted ciphertext is obtained by encrypting the sample label of the shared sample by the power grid party using the additive homomorphic encryption method; the shared sample is a shared sample of the power grid party and the car manufacturer party; The second binning module is used to obtain binning results; the binning results are obtained by binning data features; the data features are vehicle driving feature data obtained by the vehicle manufacturer; A second summing module is used to obtain a ciphertext sum value and a bin number in the bin result; the ciphertext sum value is a ciphertext sum value obtained by adding the label value of the encrypted ciphertext corresponding to each bin in the bin result according to the encrypted ciphertext and the sample primary key of the common sample by the automobile manufacturer; A second decryption module is used to decrypt the ciphertext sum value, and obtain the total number of positive samples and the total number of negative samples in each bin according to the decrypted ciphertext sum value of each bin; The second calculation module is used to calculate the total number of positive samples and the total number of negative samples according to the total number of positive samples and the total number of negative samples in each bin; The second selection module is used to calculate the data feature measurement index value corresponding to the binning result according to the total number of positive samples and the total number of negative samples, and select the label data features that can predict the adjustable potential of electric vehicles in combination with the preset data feature measurement index value.

12. A vehicle network data feature selection system according to claim 11, characterized in that: The data feature measurement index includes any one or any combination of evidence weight, information value and Kolmogorov-Smirnov statistic value.

13. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, used to implement the steps of the vehicle network data feature selection method as described in any one of claims 1 to 4 or any one of claims 6 to 8 when executing the computer program.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the vehicle network data feature selection method as claimed in any one of claims 1 to 3 or any one of claims 8 to 10 are implemented.