Charging station recommendation method, device, electronic device and readable storage medium

The prediction model combines user characteristics and charging station characteristics to recommend the most suitable charging station, which solves the problem of ignoring user preferences in distance sorting in the existing technology, realizes personalized charging station recommendations, and improves user experience.

CN116127156BActive Publication Date: 2024-10-18ZHEJIANG ZEEKR INTELLIGENT TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310093241.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-30
Publication Date
2024-10-18
Estimated Expiration
2043-01-30

AI Technical Summary

Technical Problem

Existing new energy vehicle charging station recommendation methods mainly rely on distance ranking, ignore users' personal preferences and charging station characteristics, and cannot meet the diverse needs of different users.

Method used

By obtaining user characteristics and charging station characteristics, the pre-trained machine learning model is used to predict the user's charging probability at each candidate charging station, and recommend the most suitable charging station based on probability, including the use of SENet layer, gating layer and fully connected layer. The model undergoes supervised training.

Benefits of technology

It realizes personalized charging station recommendations, improves users’ charging experience, and meets the diverse needs of different users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116127156B_ABST
    Figure CN116127156B_ABST
Patent Text Reader

Abstract

The present application provides a charging station recommendation method, device, electronic device and readable storage medium, the method comprising: in response to a charging station query request initiated by a target user, obtaining the user characteristics of the target user and the charging station characteristics of at least one candidate charging station corresponding to the target user; inputting the user characteristics and the charging station characteristics into a trained prediction model, so that the prediction model predicts the probability of the target user charging at each candidate charging station based on the user characteristics and the charging station characteristics; determining the recommended charging station corresponding to the target user from the at least one candidate charging station based on the probability, and outputting the recommended charging station to the target user. The recommended stations that users want can be recommended quickly and effectively, improving the charging experience of users when charging at charging stations.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of new energy vehicle technology, and in particular to a charging station recommendation method, device, electronic device and readable storage medium. Background Art

[0002] With the development of new energy vehicles, more and more people are beginning to understand and buy new energy vehicles, and many cities have begun to vigorously build public new energy vehicle charging stations to facilitate citizens' daily travel. When users want to charge at a charging station, they can usually query the charging stations that can be charged through the vehicle's smart terminal or mobile terminal, and the vehicle's smart terminal or mobile terminal can make recommendations for users.

[0003] At present, the scheme for recommending charging stations for new energy vehicles is relatively simple, which is often sorted from near to far according to the distance from new energy vehicles to charging stations, while ignoring the characteristics of the charging stations themselves and the personal preferences of users. For example, some users prefer AC charging piles while others prefer DC charging piles; some users prefer high-quality charging stations while others prefer low-priced charging stations, and so on. Summary of the invention

[0004] The present application provides a charging station recommendation method, the method comprising:

[0005] In response to a charging station query request initiated by a target user, obtaining a user feature of the target user and a charging station feature of at least one candidate charging station corresponding to the target user;

[0006] Inputting the user characteristics and the charging station characteristics into a trained prediction model, so that the prediction model predicts the probability of the target user charging at each candidate charging station based on the user characteristics and the charging station characteristics;

[0007] A recommended charging station corresponding to the target user is determined from the at least one candidate charging station based on the probability, and the recommended charging station is output to the target user.

[0008] Optionally, determining a recommended charging station corresponding to the target user from the at least one candidate charging station based on the probability includes:

[0009] Determine the at least one preset number of candidate charging stations with the highest probability as a recommended charging station corresponding to the target user; or,

[0010] The candidate charging station whose probability is greater than a preset threshold among the at least one candidate charging station is determined as a recommended charging station corresponding to the target user.

[0011] Optionally, the charging station query request includes a user identifier of the target user;

[0012] The acquiring the user characteristics of the target user and the charging station characteristics of at least one candidate charging station corresponding to the target user includes:

[0013] Based on the target user identifier, acquiring a user feature of the target user and a charging station identifier of at least one candidate charging station corresponding to the user identifier;

[0014] A charging station characteristic is obtained based on the at least one charging station identifier.

[0015] Optionally, the method further includes:

[0016] Acquire a training sample set; the training sample set includes a number of training samples annotated with labels; wherein the training samples include historical user features and historical charging station features; the labels are used to indicate whether a user corresponding to the historical user features is charging at a charging station corresponding to the historical charging station features;

[0017] The prediction model is supervisedly trained based on the training sample set until the prediction model converges.

[0018] Optionally, obtain several labeled training sample sets, including:

[0019] Acquire the user's historical charging behavior, and extract a number of binary tuples consisting of a user identifier and a charging station identifier from the historical charging behavior;

[0020] Based on the user identifier and the charging station identifier in the binary group, respectively obtain historical user features and historical charging station features;

[0021] The user features and charging station features respectively corresponding to the user identification and the charging station identification in a binary group are determined as a training sample.

[0022] A training sample set is generated based on the at least one training sample.

[0023] Optionally, determining the at least one training sample as a training sample set includes:

[0024] Randomly under-sampling the at least one positive training sample to obtain a positive training sample set; wherein the positive training sample is a training sample annotated with a label indicating that the user corresponding to the historical user feature charged at the charging station corresponding to the historical charging station feature;

[0025] Randomly oversampling the at least one negative training sample to obtain a negative training sample set; wherein the negative training sample is a training sample annotated with a label indicating that the user corresponding to the historical user feature did not charge at the charging station corresponding to the historical charging station feature;

[0026] The positive training sample set and the negative training sample set are determined as training sample sets.

[0027] Optionally, the prediction model includes a machine learning model of a SENet layer, a gating layer, and a fully connected layer.

[0028] Optionally, the performing supervised training on the prediction model based on the training sample set includes:

[0029] Inputting the training samples in the training sample set into the SENet layer to obtain feature weights output by the SENet layer corresponding to the user features in the training samples and the charging station features respectively;

[0030] Inputting the feature weight into the gating layer so that the gating layer performs weight adjustment on the feature weight to obtain user features and charging station features whose feature weight is higher than a preset threshold output by the gating layer;

[0031] The user features and charging site features whose feature weights are higher than a preset threshold are input into a fully connected layer to obtain a charging probability output by the fully connected layer that the user goes to the at least one charging site for charging.

[0032] Optionally, the step of until the prediction model converges includes:

[0033] When the loss function corresponding to the prediction model converges, determining that the prediction recommendation model converges; and / or,

[0034] Inputting the verification sample set into the prediction model; wherein the verification sample set includes a number of verification samples annotated with the real probability of the target user charging at each candidate charging station;

[0035] The predicted probability of the user charging at each candidate charging station output by the prediction model is matched with the true probability annotated by the verification sample set, and an evaluation index is generated, and the convergence of the prediction model is determined based on the evaluation index.

[0036] The present application also provides a charging station recommendation device, the device comprising:

[0037] a charging station query unit, configured to obtain, in response to a charging station query request initiated by a target user, a user feature of the target user and a charging station feature of at least one candidate charging station corresponding to the target user;

[0038] A model prediction unit, configured to input the user characteristics and the charging station characteristics into a trained prediction model, so that the prediction model predicts the probability of the target user charging at each candidate charging station based on the user characteristics and the charging station characteristics;

[0039] A charging station recommendation unit is used to determine a recommended charging station corresponding to the target user from the at least one candidate charging station based on the probability, and output the recommended charging station to the target user.

[0040] The present application also provides an electronic device, comprising a communication interface, a processor, a memory and a bus, wherein the communication interface, the processor and the memory are interconnected via the bus;

[0041] The memory stores machine-readable instructions, and the processor executes the above method by calling the machine-readable instructions.

[0042] The present application also provides a computer-readable storage medium, which stores machine-readable instructions. When the machine-readable instructions are called and executed by a processor, the above method is implemented.

[0043] In the scheme recorded in the above embodiment, based on the trained prediction model, combined with user characteristics and charging station characteristics, the probability of the user charging at each candidate charging station is calculated, which can quickly and effectively recommend the recommended station that the user wants, thereby improving the user's charging experience when charging at the charging station. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 It is a flowchart of a charging station recommendation method shown in an exemplary embodiment.

[0045] Figure 2 It is a schematic diagram of a prediction model shown in an exemplary embodiment.

[0046] Figure 3 It is a hardware structure diagram of an electronic device in which a charging station recommendation device is located, showing an exemplary embodiment.

[0047] Figure 4 It is a block diagram of a charging station recommendation device shown in an exemplary embodiment. DETAILED DESCRIPTION

[0048] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0049] It should be noted that: in other embodiments, the steps of the corresponding method are not necessarily performed in the order shown and described in this specification. In some other embodiments, the steps included in the method may be more or less than those described in this specification. In addition, a single step described in this specification may be decomposed into multiple steps for description in other embodiments; and multiple steps described in this specification may be combined into a single step for description in other embodiments.

[0050] At present, the scheme for recommending charging stations for new energy vehicles is relatively simple, and is often sorted from near to far according to the distance from the new energy vehicle to the charging station. If the target charging stations for user needs are sorted only by distance, it will often provide the same experience to different users with similar distances to the charging stations. However, in actual applications, different users often have different needs for going to charging stations. It is obviously difficult to meet the various needs of different users if the recommendation is only based on distance.

[0051] At the same time, since the charging stations themselves and the users' personal preferences usually contain a lot of useful information, if the charging stations are only listed according to the distance, it is obvious that the users' personal preferences and the characteristics of the charging stations themselves are ignored.

[0052] Recommendation system refers to a personalized information push system that recommends information and products of interest to users based on their needs and interests. An excellent recommendation system can not only provide users with personalized services, but also establish close relationships with users, making them dependent on recommendations.

[0053] In recent years, with the development of fields such as machine learning and deep learning, more and more deep learning models have been applied in various recommendation scenarios and have achieved very good results.

[0054] Therefore, the present application proposes a technical solution that combines user characteristics and charging station characteristics, calculates the probability of a user charging at each candidate charging station based on a pre-trained prediction model, and recommends charging stations for the user.

[0055] In implementation, in response to a charging station query request initiated by a target user, a user feature of the target user and a charging station feature of at least one candidate charging station corresponding to the target user may be acquired;

[0056] Inputting the user characteristics and the charging station characteristics into a trained prediction model, so that the prediction model predicts the probability of the target user charging at each candidate charging station based on the user characteristics and the charging station characteristics;

[0057] A recommended charging station corresponding to the target user is determined from the at least one candidate charging station based on the probability, and the recommended charging station is output to the target user.

[0058] In the scheme recorded in the above embodiment, based on the trained prediction model, combined with user characteristics and charging station characteristics, the probability of the user charging at each candidate charging station is calculated, which can quickly and effectively recommend the recommended station that the user wants, thereby improving the user's charging experience when charging at the charging station.

[0059] See also Figure 1 , Figure 1 The following is a flow chart of a charging station recommendation method provided by an exemplary embodiment. The method may include the following steps:

[0060] Step 102 : in response to a charging station query request initiated by a target user, obtaining user characteristics of the target user and charging station characteristics of at least one candidate charging station corresponding to the target user.

[0061] In this specification, a user may initiate a charging station query request through an intelligent terminal mounted on a new energy vehicle, or a mobile terminal interconnected with a new energy vehicle, etc. The method by which a user initiates a charging station query request is not specifically limited in this specification. For example, a user may initiate a charging station query request through a vehicle-mounted intelligent terminal by manual input or voice input. For another example, a user may also send a charging station query request through a custom function button mounted on a new energy vehicle by using a function button.

[0062] For example, in actual applications, users can wake up the intelligent voice input system of new energy vehicles and enter "I need to charge". The on-board intelligent terminal of the new energy vehicle will automatically generate a charging station query request and query the charging station.

[0063] The charging station query request can also be automatically initiated by the smart terminal on the new energy vehicle, or by a mobile terminal interconnected with the new energy vehicle, when it detects that the new energy vehicle is low on power, or a dialog window pops up to the user, and the user confirms whether to initiate it. Among them, the new energy vehicle can have a default low power threshold, for example, when the remaining power is 10% or 20%, the new energy vehicle is considered to be low on power; the low power threshold can also be manually set by the user. When the smart terminal on the new energy vehicle detects that the remaining power of the new energy vehicle is lower than the threshold, it can automatically initiate a charging station query request and query the charging station.

[0064] For example, in actual applications, when the on-board smart terminal of a new energy vehicle detects that the new energy vehicle is low on power, it can pop up a dialogue window to the user through the on-board smart display screen of the new energy vehicle, asking the user whether the user needs to charge the vehicle. When the user confirms that charging is needed, a charging station query request is automatically generated.

[0065] In this specification, user characteristics may include various basic information of the user, such as the user's gender, the user's age, the user's city, etc. User characteristics may also include the user's vehicle information, such as the license plate number of the user's vehicle, the vehicle model of the user's vehicle, the number of times the user's vehicle has been charged, etc. User characteristics may also include the user's historical charging times, the user's historical charging stations, etc. It should be noted that in different application scenarios, the user characteristics that need to be obtained are not completely the same, and one or more of the above user characteristics may be obtained, which is not specifically limited in this specification.

[0066] In this specification, the candidate charging station may include a charging station at which the user has charged in historical charging behavior, and may also include a charging station near the current location of the target determined based on the user's location information.

[0067] Among them, the charging station characteristics may include the city where the charging station is located, the number of DC charging guns in the charging station, the number of AC charging guns in the charging station, the rated power of the charging guns in the charging station, the operator of the charging station, the number of charging times of the charging station in the recent period, etc. It should be noted that in different application scenarios, the charging station characteristics that need to be obtained are not completely the same. One or more of the above-mentioned charging station characteristics can be obtained, and no specific limitation is made in this specification.

[0068] In one implementation, the charging station query request may include a user identifier of the target user, and based on the target user identifier, a user feature of the target user and a charging station identifier of at least one candidate charging station corresponding to the user identifier are acquired.

[0069] In this specification, the user identifier may be the user's ID number, the license plate number of the user's new energy vehicle, the VIN (Vehicle Identification Number) code of the user's new energy vehicle, etc., and is not specifically limited in this specification.

[0070] The user can pre-enter the user's identity through the smart terminal on the vehicle of the new energy vehicle, or the mobile terminal interconnected with the new energy vehicle, so that the smart terminal on the vehicle of the new energy vehicle, or the mobile terminal interconnected with the new energy vehicle, automatically obtains the user's identity when generating a charging request. The smart terminal on the vehicle of the new energy vehicle, or the mobile terminal interconnected with the new energy vehicle, can also obtain the user's authorization before generating a charging request, and automatically obtain the user's identity after the user's authorization is passed. The smart terminal on the vehicle of the new energy vehicle, or the mobile terminal interconnected with the new energy vehicle, can also pop up a corresponding dialog window before generating a charging request, and the user can manually fill in the user's identity.

[0071] For example, in actual applications, the on-board smart terminal of a new energy vehicle can pop up a dialogue window to the user through the on-board smart display screen, asking "Please enter your identity information". After the user enters the identity information, a charging request is generated and subsequent charging station recommendations are made.

[0072] After obtaining the user identifier in the user's charging request, the on-board intelligent terminal of the new energy vehicle, or the mobile terminal interconnected with the new energy vehicle can obtain the above-mentioned user characteristics based on the user identifier and the charging station identifier of at least one candidate charging station corresponding to the user identifier.

[0073] The user characteristics can be obtained based on the user identifier through a locally stored user characteristic database by a vehicle-mounted intelligent terminal or a mobile terminal interconnected with the new energy vehicle. A user characteristic acquisition request can also be sent to a server that stores a user characteristic database through a vehicle-mounted intelligent terminal or a mobile terminal interconnected with the new energy vehicle. The server acquires the user characteristics based on the user identifier and returns it to the local.

[0074] The user feature database may be pre-entered by the user with at least one or more user features, such as the user's gender, age, etc. The user feature database may also be automatically acquired by a vehicle-mounted smart terminal or a mobile terminal interconnected with the new energy vehicle after the user authorizes the user to use the new energy vehicle, such as the number of times the user's vehicle has been charged, etc.

[0075] In this specification, the charging station identifier can be the ID of the charging station, the geographic location coordinates of the charging station, or a unique identification code generated based on the geographic location coordinates of the charging station, etc., any form of coding used to uniquely identify the charging station, which is not specifically limited in this specification.

[0076] After obtaining the user identification of the user, the vehicle-mounted intelligent terminal or the mobile terminal interconnected with the new energy vehicle through a network can also obtain at least one charging station identification corresponding to the user identification.

[0077] The smart terminal on the new energy vehicle or the mobile terminal interconnected with the new energy vehicle can obtain the identification of the user's historical charging station based on the user's user identification through the historical charging information of the user stored locally. It can also send a request for obtaining historical charging information to a server that stores the user's historical charging information. The server obtains the identification of the corresponding historical charging station based on the user identification and returns it to the local.

[0078] The smart terminal on board the new energy vehicle, or the mobile terminal interconnected with the new energy vehicle can also obtain the current location information of the vehicle, and based on the location information, obtain the charging station near the current location, and generate at least one charging station identifier corresponding to the user identifier.

[0079] For example, a smart terminal onboard a new energy vehicle, or a mobile terminal interconnected with the new energy vehicle can obtain all charging stations within 3 km around the current vehicle location, and generate at least one charging station identifier corresponding to the user identifier.

[0080] It should be noted that the charging station identifier may include a charging station identifier obtained through the user's historical charging behavior, or a charging station identifier obtained through the location of the user's new energy vehicle, which is not limited in this specification.

[0081] After obtaining at least one charging station identifier corresponding to the user identifier, the on-board smart terminal of the new energy vehicle, or the mobile terminal interconnected with the new energy vehicle can obtain the above-mentioned charging station characteristics based on the at least one charging station identifier.

[0082] The above charging station characteristics can be obtained based on the charging station identifier by the vehicle-mounted intelligent terminal or the mobile terminal interconnected with the new energy vehicle through the locally stored charging station characteristic database. Alternatively, the vehicle-mounted intelligent terminal or the mobile terminal interconnected with the new energy vehicle can send a charging station characteristic acquisition request to the server, which stores the charging station characteristic database, and the server obtains the above charging characteristics based on the charging station identifier and returns it to the local.

[0083] The charging feature database may be pre-entered by the user with at least one or more user features, such as the city where the charging station is located, etc. The charging feature database may also be automatically acquired by a vehicle-mounted smart terminal or a mobile terminal interconnected with the new energy vehicle through the Internet, etc., such as the operator of the charging station, the number of charging times at the charging station in the recent period, etc.

[0084] Step 104: input the user characteristics and the charging station characteristics into the trained prediction model, so that the prediction model predicts the probability of the target user charging at each candidate charging station based on the user characteristics and the charging station characteristics.

[0085] In this specification, the prediction model may include any machine learning model, neural network model, etc. for predicting whether the target user will charge at a candidate charging station, and is not specifically limited in this specification.

[0086] After the user characteristics and the charging station characteristics are input into the prediction model, the prediction model can predict the probability of the target user charging at each candidate charging station based on the user characteristics and the charging station characteristics.

[0087] For example, after the on-board smart terminal of a new energy vehicle or the mobile terminal interconnected with the new energy vehicle obtains the user characteristics and the characteristics of charging stations A, B and C respectively, it can be predicted that the probability of the target user charging at charging station A is 40%, the probability of charging at charging station B is 60%, and the probability of charging at charging station C is 80%.

[0088] In one implementation, the prediction model may be pre-trained to provide charging station recommendations for a smart terminal mounted on the new energy vehicle or a mobile terminal interconnected with the new energy vehicle.

[0089] Before training the above prediction model, a training sample set may be obtained. The training sample set may include a number of training samples annotated with labels. The training samples include historical user features and historical charging station features. The label is used to indicate whether the user corresponding to the historical user feature is charging at the charging station corresponding to the historical charging station feature.

[0090] After obtaining the training sample set, the prediction model may be subjected to supervised training based on the training sample set until the prediction model converges.

[0091] In this specification, historical user characteristics and historical charging station characteristics are basically the same as the above-mentioned user characteristics and charging station characteristics, and will not be repeated here.

[0092] The historical user characteristics and historical charging station characteristics can be extracted from the user's historical charging behavior. The user's historical charging behavior may include the user's behavior of charging at at least one charging station, and may also include the user's behavior of browsing but not choosing to charge when browsing charging stations through an application such as a map on a vehicle-mounted smart terminal or a mobile terminal interconnected with a new energy vehicle.

[0093] Based on historical user features and historical charging station features, a training sample set can be generated. The method of generating the training sample set is not specifically limited in this specification. For example, only some charging stations can be selected from the charging stations where the user has historically charged, and historical user features and historical charging station features can be extracted to generate a training sample set; or some charging stations can be selected from the charging stations where the user has historically charged, and some charging stations can also be selected from the charging stations that the user may have browsed but not selected, and historical user features and historical charging station features can be extracted to generate a training sample set.

[0094] In one embodiment, the user's historical charging behavior can be obtained, and a number of tuples consisting of a user identifier and a charging station identifier can be extracted from the historical charging behavior; based on the user identifier and the charging station identifier in the tuple, historical user features and historical charging station features are respectively obtained; the user features and charging station features respectively corresponding to the user identifier and the charging station identifier in a tuple are determined as a training sample; and a training sample set is generated based on the at least one training sample.

[0095] In this specification, a tuple may include a user identifier and a charging station identifier, for example, a tuple consisting of a user ID number and a charging station ID.

[0096] For a user's historical charging behavior, one or more corresponding relationships consisting of user identification and charging station identification can be extracted. For example, before charging, the user browsed charging station A, charging station B, and charging station C, and chose to go to charging station C for charging. Then, a corresponding relationship consisting of the user identification of the user and the charging station identification of charging station A, a corresponding relationship consisting of the user identification of the user and the charging station identification of charging station B, and a corresponding relationship consisting of the user identification of the user and the charging station identification of charging station C can be generated respectively.

[0097] Based on the user identifier and the charging station identifier in the corresponding relationship, corresponding user features and charging station features can be extracted respectively. The extraction of user features and charging station features can refer to the above text and will not be repeated here.

[0098] After extracting corresponding user features and charging station features based on the user identifier and charging station identifier in the corresponding relationship, the user features and charging station features corresponding to the user identifier and charging station identifier in a binary group can be determined as a training sample. After generating the training samples, a training sample set can be generated based on at least one training sample to be input into the prediction model for training.

[0099] In one embodiment, the training samples are labeled, wherein the labels are used to indicate whether the user corresponding to the historical user feature charged at the charging station corresponding to the historical charging station feature.

[0100] Before generating the sample set, the training samples labeled as the user corresponding to the historical user feature charging at the charging station corresponding to the historical charging station feature can be set as positive training samples; the training samples labeled as the user corresponding to the historical user feature not charging at the charging station corresponding to the historical charging station feature can be set as negative training samples. The at least one positive training sample is randomly undersampled to obtain a positive training sample set; and the at least one negative training sample is randomly oversampled to obtain a negative training sample set, and the positive training sample set and the negative training sample set are determined as the training sample set.

[0101] Since a charging station that the user has not selected does not necessarily mean that the user does not like this charging station, the recommendation bias may be caused by various reasons. Therefore, the charging stations selected by the user are taken as positive samples and under-sampled, and the charging stations that the user has not selected are taken as negative samples and over-sampled. This makes the training samples more balanced, effectively reduces the bias, and improves the expressiveness and generalization capabilities of the prediction model.

[0102] In one embodiment, the prediction model may include a machine learning model of a SENet (Squeeze-and-Excitation Network) layer, a gating layer, and a fully connected layer.

[0103] Among them, the SEnet layer can be used to convert the user features in the training samples and the charging station features into corresponding feature weights. The SEnet layer can include two stages, a compression stage and an excitation stage. In the compression stage, the feature vectors corresponding to each user feature and the charging station feature can be compressed and information summarized. In the excitation stage, MLP (Multilayer Perceptron) can be used to dynamically determine which features are important and which are not important, and generate corresponding feature weights for each feature, and generate vectors with feature weights from the original feature vectors.

[0104] The gating layer can adjust the weight of the feature weight, and can filter out the user features and charging station features whose feature weight is higher than a preset threshold. The gating layer can include a neural network layer with multiple gating mechanisms, and the gating mechanism can be equivalent to a regulating valve, which can control the degree of inflow of information flow. The input and output of the feature weight are adjusted through the gating mechanism, and the user features and charging station features with higher importance are weighted, and the user features and charging station features with lower importance are weighted, thereby filtering out the user features and charging station features whose feature weight is higher than the preset threshold.

[0105] The fully connected layer can further calculate the probability of the user charging at each candidate charging station based on the user features and charging station features whose feature weights are higher than a preset threshold screened out by the gated layer.

[0106] See also Figure 2 , Figure 2 is a schematic diagram of a prediction model shown in an exemplary embodiment. Figure 2 As shown, the input part of the model can be user features and charging station features. Before entering the SENet layer, corresponding embedding vectors can be generated for user features and charging station features, that is, Input Eembedding. The SEnet layer generates weights corresponding to each feature for the embedding vector, and obtains an embedding vector of each feature and its weight, that is, SENet Eembedding. Further, the embedding vector corresponding to the weight corresponding to each feature is input into the gating layer, so that the gating layer can increase the weight of user features and charging station features with higher importance, and reduce the weight of user features and charging station features with lower importance, so as to screen out user features and charging station features whose feature weights are higher than the preset threshold. It should be noted that the gating layer can have 1 layer or N layers according to actual needs, and is not specifically limited in this specification. After filtering out the user features and charging station features whose feature weights are higher than the preset threshold, the user features and charging station features can be input into the fully connected layer, so that the fully connected layer can further calculate the probability of the target user charging at each candidate charging station based on the features.

[0107] In one implementation, whether the model has converged may be determined by a loss function, or by a verification sample set.

[0108] When the loss function corresponding to the prediction function converges, it can be determined that the prediction model converges. Among them, the loss function is a function used to measure the gap between the model prediction value and the true value, and the smaller the value of the loss function, the better. In practical applications, 0-1 loss function (Zero-one Loss), perceptron loss function (Perceptron Loss), square loss function (Square Loss), etc. can be used, which are not specifically limited in this specification.

[0109] A verification sample set may also be input into the prediction model; wherein the verification sample set includes a number of verification samples annotated with the real probability of the target user charging at each candidate charging station;

[0110] The predicted probability of the user charging at each candidate charging station output by the prediction model is matched with the true probability annotated by the verification sample set, and an evaluation index is generated, and the convergence of the prediction model is determined based on the evaluation index.

[0111] In this specification, the verification sample set refers to the verification samples that are marked with the real probability of the target user charging at each candidate charging station. For example, a verification sample includes the user's user features and the charging station features, and is marked with the probability that the user charges at the charging station is less than 50%.

[0112] By inputting the validation sample set into the prediction model, the prediction probability of the user charging at each candidate charging station output by the prediction model is obtained. If the predicted probability is closer to the true probability of the sample annotation, it means that the training effect of the model is better.

[0113] An evaluation index can be generated based on the predicted probability of the model and the true probability of the sample, wherein the evaluation index is used to judge whether the model has converged. For example, when the error between the predicted probability and the true probability corresponding to 70% of the validation samples in the validation sample set is less than 10%, the prediction model can be considered to have converged. The evaluation index can use various scoring functions according to actual needs, and is not specifically limited in this specification.

[0114] Step 106: Determine a recommended charging station corresponding to the target user from the at least one candidate charging station based on the probability, and output the recommended charging station to the target user.

[0115] After the prediction model predicts the probability of the target user charging at each candidate charging station based on the user characteristics and the charging station characteristics, a recommended charging station corresponding to the target user can be determined from the at least one candidate charging station based on the probability, and the recommended charging station can be output to the target user.

[0116] For example, the one or more charging stations with the highest probability can be sorted in descending order and output to the user in the form of a list through an intelligent terminal onboard the new energy vehicle or a display screen of a mobile terminal interconnected with the new energy vehicle.

[0117] In one implementation, at least one of the preset number of candidate charging stations with the highest probability may be determined as a recommended charging station corresponding to the target user.

[0118] For example, the probability that the target user charges at charging station A and charging station B is 80%, and charging station A and charging station B may be determined as recommended charging stations corresponding to the target user.

[0119] The candidate charging station with the probability greater than a preset threshold in at least one candidate charging station may also be determined as a recommended charging station corresponding to the target user. The preset threshold may be set by default by the smart terminal on the new energy vehicle or the mobile terminal interconnected with the new energy vehicle, or may be set manually by the user, and is not specifically limited in this specification.

[0120] For example, the preset threshold may be 70%, the target user's probability of charging at charging station A and charging station B is 80%, and the probability of charging at charging station C is 70%. Charging station A, charging station B and charging station C may all be determined as recommended charging stations for the target user.

[0121] Corresponding to the above-mentioned embodiment of the charging station recommendation method, this specification also provides an embodiment of a charging station recommendation device.

[0122] See also Figure 3 , Figure 3 It is a hardware structure diagram of an electronic device in which a charging station recommendation device is located, which is shown in an exemplary embodiment. At the hardware level, the device includes a processor 302, an internal bus 304, a network interface 306, a memory 308, and a non-volatile memory 310, and of course may also include hardware required for other services. One or more embodiments of this specification can be implemented based on software, such as the processor 302 reading the corresponding computer program from the non-volatile memory 310 into the memory 308 and then running it. Of course, in addition to the software implementation, one or more embodiments of this specification do not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0123] See also Figure 4 , Figure 4 is a block diagram of a charging station recommendation device according to an exemplary embodiment. The charging station recommendation device can be applied to Figure 3In the electronic device shown in the figure, the technical solution of this specification is implemented. Among them, the charging station recommendation device may include:

[0124] A charging station query unit 402 is configured to obtain, in response to a charging station query request initiated by a target user, a user feature of the target user and a charging station feature of at least one candidate charging station corresponding to the target user;

[0125] A model prediction unit 404, configured to input the user characteristics and the charging station characteristics into a trained prediction model, so that the prediction model predicts the probability of the target user charging at each candidate charging station based on the user characteristics and the charging station characteristics;

[0126] The charging station recommendation unit 406 is configured to determine a recommended charging station corresponding to the target user from the at least one candidate charging station based on the probability, and output the recommended charging station to the target user.

[0127] In this example, the charging station recommendation unit 406 is further configured to determine the at least one preset number of candidate charging stations with the highest probability as the recommended charging station corresponding to the target user; or

[0128] The candidate charging station whose probability is greater than a preset threshold among the at least one candidate charging station is determined as a recommended charging station corresponding to the target user.

[0129] In this example, the charging station query request includes the user identifier of the target user; the charging station query unit 402 is further configured to obtain the user characteristics of the target user and the charging station identifier of at least one candidate charging station corresponding to the user identifier based on the target user identifier;

[0130] A charging station characteristic is obtained based on the at least one charging station identifier.

[0131] In this example, the method further includes:

[0132] A model training unit, used to obtain a training sample set; the training sample set includes a number of training samples annotated with labels; wherein the training samples include historical user features and historical charging station features; the labels are used to indicate whether the user corresponding to the historical user features is charging at the charging station corresponding to the historical charging station features;

[0133] The prediction model is supervisedly trained based on the training sample set until the prediction model converges.

[0134] In this example, the model training unit is further used to obtain the user's historical charging behavior, and extract a number of binary groups consisting of a user identifier and a charging station identifier from the historical charging behavior;

[0135] Based on the user identifier and the charging station identifier in the binary group, respectively obtain historical user features and historical charging station features;

[0136] The user features and charging station features respectively corresponding to the user identification and the charging station identification in a binary group are determined as a training sample.

[0137] A training sample set is generated based on the at least one training sample.

[0138] In this example, the model training unit is further used to randomly undersample the at least one positive training sample to obtain a positive training sample set; wherein the positive training sample is a training sample annotated with a label indicating that the user corresponding to the historical user feature charged at the charging station corresponding to the historical charging station feature;

[0139] Randomly oversampling the at least one negative training sample to obtain a negative training sample set; wherein the negative training sample is a training sample annotated with a label indicating that the user corresponding to the historical user feature did not charge at the charging station corresponding to the historical charging station feature;

[0140] The positive training sample set and the negative training sample set are determined as training sample sets.

[0141] In this example, the prediction model includes a machine learning model of a SENet layer, a gating layer, and a fully connected layer.

[0142] In this example, the model training unit is further used to input the training samples in the training sample set into the SENet layer to obtain the feature weights output by the SENet layer corresponding to the user features in the training samples and the charging station features respectively;

[0143] Inputting the feature weight into the gating layer so that the gating layer performs weight adjustment on the feature weight to obtain user features and charging station features whose feature weight is higher than a preset threshold output by the gating layer;

[0144] The user features and charging site features whose feature weights are higher than a preset threshold are input into a fully connected layer to obtain a charging probability output by the fully connected layer that the user goes to the at least one charging site for charging.

[0145] In this example, the model training unit is further used to determine that the prediction recommendation model converges when the loss function corresponding to the prediction model converges; and / or,

[0146] Inputting the verification sample set into the prediction model; wherein the verification sample set includes a number of verification samples annotated with the real probability of the target user charging at each candidate charging station;

[0147] The predicted probability of the user charging at each candidate charging station output by the prediction model is matched with the true probability annotated by the verification sample set, and an evaluation index is generated, and the convergence of the prediction model is determined based on the evaluation index.

[0148] The implementation process of the functions and effects of each unit in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and will not be repeated here.

[0149] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can refer to the partial description of the method embodiments. The device embodiments described above are only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this specification. Ordinary technicians in this field can understand and implement it without paying creative work.

[0150] This specification also provides an embodiment of a computer-readable storage medium. The computer-readable storage medium stores machine-readable instructions, and when the machine-readable instructions are called and executed by a processor, the charging station recommendation method provided in any embodiment of this specification can be implemented.

[0151] The computer-readable storage medium provided in the embodiments of this specification may specifically include, but is not limited to, any type of disk (including floppy disk, hard disk, optical disk, CD-ROM, and magneto-optical disk), ROM (Read-Only Memory), RAM (Random Access Memory), EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic card or optical fiber card. That is, the readable storage medium includes a readable medium that can store or transmit information.

[0152] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer, which may be in the form of a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email transceiver, a game console, a tablet computer, a wearable device or a combination of any of these devices.

[0153] In a typical configuration, a computer includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0154] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0155] Computer-readable media include permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, disk storage, quantum memory, graphene-based storage media or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.

[0156] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0157] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0158] The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "one", "said" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0159] It should be understood that although the terms first, second, third, etc. may be used to describe various information in one or more embodiments of this specification, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0160] The above description is merely a preferred embodiment of one or more embodiments of the present specification and is not intended to limit one or more embodiments of the present specification. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of one or more embodiments of the present specification shall be included in the scope of protection of one or more embodiments of the present specification.

Claims

1. A charging station recommendation method, characterized in that: The method comprises: In response to a charging station query request initiated by a target user, obtaining a user feature of the target user and a charging station feature of at least one candidate charging station corresponding to the target user; Inputting the user characteristics and the charging station characteristics into a trained prediction model, so that the prediction model predicts the probability of the target user charging at each candidate charging station based on the user characteristics and the charging station characteristics; determining a recommended charging station corresponding to the target user from the at least one candidate charging station based on the probability, and outputting the recommended charging station to the target user; Among them, the training process of the prediction model is as follows: Acquire the user's historical charging behavior, and extract a number of binary tuples consisting of a user identifier and a charging station identifier from the historical charging behavior; Based on the user identifier and the charging station identifier in the two-tuple, respectively obtain historical user features and historical charging station features; Determine the user features and charging station features corresponding to the user identifier and the charging station identifier in a binary group as a training sample; the training sample is labeled; wherein the training sample includes historical user features and historical charging station features; the label is used to indicate whether the user corresponding to the historical user features is charging at the charging station corresponding to the historical charging station features; Randomly under-sampling the at least one positive training sample to obtain a positive training sample set; wherein the positive training sample is a training sample annotated with a label indicating that the user corresponding to the historical user feature charged at the charging station corresponding to the historical charging station feature; Randomly oversampling the at least one negative training sample to obtain a negative training sample set; wherein the negative training sample is a training sample annotated with a label indicating that the user corresponding to the historical user feature did not charge at the charging station corresponding to the historical charging station feature; Determine the positive training sample set and the negative training sample set as a training sample set; The prediction model is supervisedly trained based on the training sample set until the prediction model converges.

2. The method according to claim 1, characterized in that: Determining a recommended charging station corresponding to the target user from the at least one candidate charging station based on the probability includes: Determine the at least one preset number of candidate charging stations with the highest probability as a recommended charging station corresponding to the target user; or, The candidate charging station whose probability is greater than a preset threshold among the at least one candidate charging station is determined as a recommended charging station corresponding to the target user.

3. The method according to claim 1, characterized in that The charging station query request includes a user identifier of the target user; The acquiring the user characteristics of the target user and the charging station characteristics of at least one candidate charging station corresponding to the target user includes: Based on the target user identifier, acquiring a user feature of the target user and a charging station identifier of at least one candidate charging station corresponding to the user identifier; A charging station characteristic is obtained based on the at least one charging station identifier.

4. The method according to claim 1, characterized in that The prediction model includes a machine learning model of a SENet layer, a gating layer, and a fully connected layer.

5. The method according to claim 4, characterized in that The performing supervised training on the prediction model based on the training sample set includes: Inputting the training samples in the training sample set into the SENet layer to obtain feature weights output by the SENet layer corresponding to the user features in the training samples and the charging station features respectively; Inputting the feature weight into the gating layer so that the gating layer performs weight adjustment on the feature weight to obtain user features and charging station features whose feature weight is higher than a preset threshold output by the gating layer; The user features and charging site features whose feature weights are higher than a preset threshold are input into a fully connected layer to obtain a charging probability output by the fully connected layer that the user goes to the at least one charging site for charging.

6. The method according to claim 4, characterized in that The step of: until the prediction model converges comprises: When the loss function corresponding to the prediction model converges, determining that the prediction model converges; and / or, Inputting a verification sample set into the prediction model; wherein the verification sample set includes a number of verification samples annotated with the real probability of the target user charging at each candidate charging station; The predicted probability of the user charging at each candidate charging station output by the prediction model is matched with the true probability annotated by the verification sample set, and an evaluation index is generated, and the convergence of the prediction model is determined based on the evaluation index.

7. A charging station recommendation device, characterized in that: The device comprises: a charging station query unit, configured to obtain, in response to a charging station query request initiated by a target user, a user feature of the target user and a charging station feature of at least one candidate charging station corresponding to the target user; A model prediction unit, configured to input the user characteristics and the charging station characteristics into a trained prediction model, so that the prediction model predicts the probability of the target user charging at each candidate charging station based on the user characteristics and the charging station characteristics; A charging station recommendation unit, used to determine a recommended charging station corresponding to the target user from the at least one candidate charging station based on the probability, and output the recommended charging station to the target user; wherein the training process of the prediction model is as follows: obtaining the user's historical charging behavior, extracting a number of binary groups consisting of a user identifier and a charging station identifier from the historical charging behavior; based on the user identifier and the charging station identifier in the binary group, respectively obtaining historical user features and historical charging station features; determining the user features and charging station features corresponding to the user identifier and the charging station identifier in a binary group as a training sample; the training sample is annotated with a label; wherein the training sample includes historical user features and historical charging station features; the label is used to indicate the historical user features. whether the corresponding user is charging at the charging station corresponding to the historical charging station feature; randomly under-sampling the at least one positive training sample to obtain a positive training sample set; wherein the positive training sample is a training sample annotated with a label indicating that the user corresponding to the historical user feature is charging at the charging station corresponding to the historical charging station feature; randomly over-sampling the at least one negative training sample to obtain a negative training sample set; wherein the negative training sample is a training sample annotated with a label indicating that the user corresponding to the historical user feature is not charging at the charging station corresponding to the historical charging station feature; determining the positive training sample set and the negative training sample set as a training sample set; and performing supervised training on the prediction model based on the training sample set until the prediction model converges.

8. An electronic device, characterized in that: It includes a communication interface, a processor, a memory and a bus, wherein the communication interface, the processor and the memory are interconnected via the bus; The memory stores machine-readable instructions, and the processor executes the method according to any one of claims 1 to 6 by calling the machine-readable instructions.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores machine-readable instructions, and when the machine-readable instructions are called and executed by the processor, the method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Sustainable deep learning charging station / pile recommendation system and recommendation method

    CN110888908A

  • Charging station available state prediction method, device and equipment and storage medium

    CN112418524A