Method, apparatus and computer device for predicting energy consumption of commercial electric vehicles
The method improves energy consumption prediction accuracy in commercial electric vehicles by using discharge period and position data with a machine learning model, trained on past data and corrected for real-world conditions, enhancing prediction accuracy and safety.
Patent Information
- Application Number
- JP2022548244
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2022-01-07
- Filing Date
- 2022-06-02
- Publication Date
- 2024-08-21
- Estimated Expiration
- 2042-06-02
AI Technical Summary
Existing methods for predicting energy consumption of commercial electric vehicles are limited by the difficulty in accurately obtaining vehicle characteristic parameters, leading to low accuracy in energy consumption predictions, especially in real-world driving conditions.
A method using discharge period data and traveling position characteristic data, combined with a machine learning algorithm, to estimate energy consumption, where the model is trained on past driving data and corrected using a test set to improve prediction accuracy.
Enhances the accuracy of energy consumption predictions by reflecting actual driving environments and conditions, allowing for timely detection of battery health issues and reducing failure probabilities.
Smart Images

Figure 0007538236000007 
Figure 0007538236000008 
Figure 0007538236000009
Abstract
Description
[Technical field]
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS This application references Chinese Patent Application No. 202210016220.8, filed on January 7, 2022, entitled "Method, Apparatus and Computer Apparatus for Predicting Energy Consumption of Commercial Electric Vehicles," the entire contents of which are incorporated herein by reference.
[0002] The present application relates to the field of motor control technology, and in particular to a method, apparatus, computer device, computer readable storage medium and computer program product for predicting energy consumption in commercial electric vehicles. [Background technology]
[0003] With the worsening of energy and environmental problems and the development of vehicle battery technology, commercial electric vehicles are being applied more and more widely. The energy consumption level of commercial electric vehicles directly reflects the overall performance level of commercial electric vehicles and affects important indicators such as mileage, quality assurance rating, and economic benefits of commercial electric vehicles. Therefore, it is necessary to predict the energy consumption of commercial electric vehicles.
[0004] In some cases, a method for predicting the energy consumption of a commercial electric vehicle predicts the energy consumption of the vehicle based on a vehicle dynamics model in combination with vehicle characteristic parameters such as the windward area, mass, and rolling resistance coefficient of the vehicle when simulating the vehicle driving conditions under fixed driving conditions such as the New European Driving Cycle (NEDC). Since it is difficult to accurately obtain the above vehicle characteristic parameters in the actual application process of the vehicle, the conventional method for predicting the energy consumption of a commercial electric vehicle is limited to the simulated driving conditions in a laboratory simulation environment, and has the disadvantage that the accuracy of the prediction results is low. Summary of the Invention [Problem to be solved by the invention]
[0005] According to various embodiments disclosed herein, there are provided a method, an apparatus, a computer device, a computer-readable storage medium and a computer program product for predicting energy consumption of a commercial electric vehicle, in order to improve the accuracy of the energy consumption prediction result of the commercial electric vehicle. [Means for solving the problem]
[0006] 1. A method for forecasting energy consumption of a commercial electric vehicle, comprising: A method includes acquiring discharge period data of a commercial electric vehicle; acquiring driving position characteristic data of the commercial electric vehicle; and substituting the discharge period data and the driving position characteristic data into an energy consumption prediction model to obtain energy consumption prediction data of the commercial electric vehicle, wherein the energy consumption prediction model is obtained by a machine learning algorithm.
[0007] The above-mentioned method for predicting energy consumption of a commercial electric vehicle involves substituting the discharge period data and the driving position characteristic data into an energy consumption prediction model to obtain energy consumption prediction data. Since the driving route of a commercial electric vehicle is relatively fixed, the driving position characteristic data corresponding to the driving route can reflect the actual driving environment of the commercial electric vehicle to a certain extent, which is helpful in improving the accuracy of the energy consumption prediction data.
[0008] In some embodiments, before substituting the discharge duration data and the driving position characteristic data into the energy consumption prediction model to obtain the energy consumption prediction data of the commercial electric vehicle, the method further includes training the model through a machine learning algorithm based on the historical driving data of the commercial electric vehicle, the battery rated capacity, and a preset model loss function to obtain the energy consumption prediction model.
[0009] In the above embodiment, the discharge period data and the driving position characteristic data are substituted into the energy consumption prediction model, and before obtaining the energy consumption prediction data of the commercial electric vehicle, the model is trained based on the historical driving data of the commercial electric vehicle to obtain the energy consumption prediction model, which helps to improve the scientificity of the energy consumption prediction method for the commercial electric vehicle.
[0010] In some embodiments, training a model by a machine learning algorithm based on the historical driving data, battery rated capacity, and a preset model loss function of the commercial electric vehicle to obtain an energy consumption prediction model includes: obtaining historical driving data and battery rated capacity of the commercial electric vehicle, including historical charging / discharging data and historical driving position characteristic data; calculating and obtaining energy consumption data of a past unit time of the commercial electric vehicle based on the historical charging / discharging data and the battery rated capacity; obtaining historical energy consumption data based on the energy consumption data of the past unit time and the past driving position characteristic data; and training a model by a machine learning algorithm based on the historical energy consumption data and the preset model loss function to obtain an energy consumption prediction model.
[0011] In the above embodiment, in the model training process, the past unit hour energy consumption data of the commercial electric vehicle is first calculated and obtained, and then the model is trained based on the past unit hour energy consumption data and the past driving position characteristic data to obtain an energy consumption prediction model, which can accurately characterize the relationship between the energy consumption per unit hour and the driving position characteristics, and is helpful in improving the consistency between the energy consumption prediction model and the actual driving conditions, and further improving the prediction accuracy of the model.
[0012] In some embodiments, obtaining the historical travel data for the commercial electric vehicle includes obtaining original historical travel data for the commercial electric vehicle and pre-processing the original historical travel data to obtain the historical travel data for the commercial electric vehicle.
[0013] In the above embodiment, after obtaining the original historical driving data of the commercial electric vehicle, the data needs to be pre-processed to obtain the historical driving data, so as to avoid duplicated or incomplete historical driving data, and effectively improve the prediction accuracy and prediction efficiency of the model.
[0014] In some embodiments, calculating and obtaining energy consumption data for the past unit time of the commercial electric vehicle based on the past charge and discharge data and the battery rated capacity includes: obtaining past charge data and past discharge data of the commercial electric vehicle based on the past charge and discharge data for a set time period; obtaining a battery health state of the commercial electric vehicle within the set time period based on the past charge data and the battery rated capacity; and obtaining energy consumption data for the past unit time of the commercial electric vehicle based on the battery health state, the battery rated capacity, and the past discharge data corresponding to the past charge data.
[0015] In the above embodiment, in the process of calculating the energy consumption data of the commercial electric vehicle over the past unit time, the real-time battery health status of the vehicle is taken into consideration, which helps to improve the accuracy of the energy consumption data of the past unit time and further improve the prediction accuracy of the model.
[0016] In some embodiments, within a given time period, one charging time slot corresponds to a number of sub-discharge time slots, and obtaining energy consumption data of the commercial electric vehicle for the past unit time based on the battery health state, the battery rated capacity, and past discharge data corresponding to the past charging data includes obtaining energy consumption data of the commercial electric vehicle for the past unit time based on the battery health state, the battery rated capacity, and past discharge data for each sub-discharge time slot.
[0017] In the above embodiment, when analyzing the energy consumption data of the past unit time, if one charging time period within a set time corresponds to multiple sub-discharging time periods, the final analysis of the energy consumption data of the past unit time can be realized according to the past discharging data of each sub-discharging time period, thereby effectively improving the reliability of the analysis of the energy consumption data of the past unit time.
[0018] In some embodiments, there are a plurality of charging time slots within the set time period, and obtaining the past unit hour energy consumption data of the commercial electric vehicle based on the battery state of health, the battery rated capacity, and past discharge data corresponding to the past charging data includes obtaining the past unit hour energy consumption data of the commercial electric vehicle based on the battery state of health, the battery rated capacity, the past charging data for each charging time slot, and the past discharge data for a discharge time slot corresponding to each charging time slot.
[0019] In the above embodiment, when analyzing the energy consumption data of the past unit time, if there are multiple charging time periods within a set time, the energy consumption of each discharging time period is calculated according to the past discharging data of the discharging time period corresponding to each charging time period, and finally, the analysis of the energy consumption data of the past unit time is realized, and the reliability of the analysis of the energy consumption data of the past unit time can be further improved.
[0020] In some embodiments, obtaining past unit hour energy consumption data of the commercial electric vehicle based on a battery health state, a battery rated capacity, past charging data for each charging time slot, and past discharging data for a discharging time slot corresponding to each charging time slot includes: obtaining energy consumption for a discharging time slot corresponding to each charging time slot based on a battery health state, a battery rated capacity, past charging data for each charging time slot, and past discharging data for a discharging time slot corresponding to each charging time slot; if a maximum energy consumption value of the energy consumption for the discharging time slot corresponding to each charging time slot is smaller than the battery rated capacity, calculating energy consumption data for the past unit hour within a set time based on the maximum energy consumption value; if a maximum energy consumption value of the energy consumption for the discharging time slot corresponding to each charging time slot is equal to or greater than the battery rated capacity and smaller than a predetermined multiple of the battery rated capacity, calculating energy consumption data for the past unit hour within the set time based on an average value of the energy consumption for the discharging time slot corresponding to each charging time slot; and if a maximum energy consumption value of the energy consumption for the discharging time slot corresponding to each charging time slot is equal to or greater than the predetermined multiple of the battery rated capacity, discarding the corresponding past charge and discharge data within the set time.
[0021] In the above embodiment, by performing a differentiation process based on the energy consumption in the discharging time period corresponding to each charging time period, it is possible to realize the analysis of different energy consumption data for past unit times according to the different sections in which they are arranged, and in the event of an abnormality, the past charging and discharging data within the corresponding period is discarded, thereby effectively improving the analysis accuracy of the energy consumption data for past unit times.
[0022] In some embodiments, the method further includes substituting the discharge period data and the driving position characteristic data into an energy consumption prediction model to obtain energy consumption prediction data of the commercial electric vehicle, dividing the past energy consumption data into a training set and a test set, and obtaining energy consumption prediction data corresponding to the test set based on the training set and the energy consumption prediction model; and performing a correction process on the energy consumption prediction data based on the test set and the energy consumption prediction data corresponding to the test set, to obtain corrected energy consumption prediction data.
[0023] In the above embodiment, after obtaining the energy consumption prediction data, a correction process can be further performed on the energy consumption prediction results based on the training set and the test set, thereby further improving the prediction accuracy of the energy consumption prediction method for commercial electric vehicles.
[0024] In some embodiments, substituting the discharge period data and the driving position characteristic data into the energy consumption prediction model includes performing an interpolation process on the discharge period data to obtain interpolated discharge period data, and substituting the interpolated discharge period data and the driving position characteristic data into the energy consumption prediction model.
[0025] In the above embodiment, before the discharge period data is substituted into the energy consumption prediction model, an interpolation process is first performed, which can ensure the continuity of the discharge period data of the input model, and further ensure the continuity of the energy consumption prediction data, which is helpful in improving the flexibility of the energy consumption prediction method for commercial electric vehicles.
[0026] In some embodiments, substituting the discharge period data and the driving position characteristic data into an energy consumption prediction model to obtain energy consumption prediction data for the commercial electric vehicle includes: substituting the discharge period data and the driving position characteristic data into an energy consumption prediction model to obtain initial energy consumption prediction data for the commercial electric vehicle; and grouping the initial energy consumption prediction data according to a predetermined time period, and obtaining a preset percentile of each group as energy consumption prediction data for a corresponding predetermined time period, wherein the preset percentile is greater than 50%.
[0027] In the above embodiment, initial energy consumption prediction data is predicted and obtained based on the energy consumption prediction model, and after grouping, a large predetermined percentile in each group is obtained as energy consumption prediction data, thereby removing interference from noise values and improving the accuracy of the energy consumption prediction data.
[0028] In some embodiments, the method further includes substituting the discharge duration data and the driving position characteristic data into an energy consumption prediction model to obtain energy consumption prediction data for the commercial electric vehicle, and then obtaining an estimate of a battery state of health for the commercial electric vehicle; and identifying a failure risk for the commercial electric vehicle based on the estimate of the battery state of health and the energy consumption prediction data.
[0029] In the above embodiment, after obtaining the energy consumption prediction data of the commercial electric vehicle, an estimated battery health state of the commercial electric vehicle is further obtained, and the failure risk of the commercial electric vehicle is identified based on the estimated battery health state and the energy consumption prediction data, so that the user can detect abnormalities in a timely manner and take corresponding measures, which is helpful in reducing the failure probability of the commercial electric vehicle and improving the safety of vehicle use.
[0030] 1. An energy consumption prediction device for a commercial electric vehicle, comprising: The device includes: a discharge period acquisition module for acquiring discharge period data of the commercial electric vehicle; a driving position characteristic acquisition module for acquiring driving position characteristic data of the commercial electric vehicle; and an energy consumption prediction module for substituting the discharge period data and the driving position characteristic data into an energy consumption prediction model to obtain energy consumption prediction data of the commercial electric vehicle, wherein the energy consumption prediction model is obtained by a machine learning algorithm.
[0031] The above-mentioned commercial electric vehicle energy consumption prediction device substitutes the discharge period data and the driving position characteristic data into an energy consumption prediction model to obtain energy consumption prediction data. Since the driving route of the commercial electric vehicle is relatively fixed, the driving position characteristic data corresponding to the driving route can reflect the actual driving environment of the commercial electric vehicle to a certain extent, which is helpful in improving the accuracy of the energy consumption prediction data.
[0032] In some embodiments, the energy consumption prediction device for the commercial electric vehicle further includes an energy consumption prediction model training module for training a model by a machine learning algorithm based on the historical driving data of the commercial electric vehicle, the battery rated capacity, and the preset model loss function to obtain an energy consumption prediction model.
[0033] In the above embodiment, the discharge period data and the driving position characteristic data are substituted into the energy consumption prediction model, and before obtaining the energy consumption prediction data of the commercial electric vehicle, the model is trained based on the historical driving data of the commercial electric vehicle to obtain the energy consumption prediction model, which helps to improve the scientificity of the energy consumption prediction method for the commercial electric vehicle.
[0034] In some embodiments, the energy consumption prediction model training module includes: a data acquisition unit for acquiring past driving data, including past charging / discharging data and past driving position characteristic data, and a battery rated capacity, of the commercial electric vehicle; an energy consumption data calculation unit for calculating and obtaining energy consumption data of a past unit time of the commercial electric vehicle based on the past charging / discharging data and the battery rated capacity; a past energy consumption data generation unit for obtaining past energy consumption data based on the energy consumption data of the past unit time and the past driving position characteristic data; and an energy consumption prediction model training unit for training a model through a machine learning algorithm based on the past energy consumption data and a preset model loss function, to obtain an energy consumption prediction model.
[0035] In the above embodiment, in the model training process, the past unit hour energy consumption data of the commercial electric vehicle is first calculated and obtained, and then the model is trained based on the past unit hour energy consumption data and the past driving position characteristic data to obtain an energy consumption prediction model, which can accurately characterize the relationship between the energy consumption per unit hour and the driving position characteristics, and is helpful in improving the consistency between the energy consumption prediction model and the actual driving conditions, and further improving the prediction accuracy of the model.
[0036] In some embodiments, the energy consumption prediction device for the commercial electric vehicle further includes a correction module for dividing historical energy consumption data into a training set and a test set, obtaining energy consumption prediction data corresponding to the test set based on the training set and an energy consumption prediction model, and performing a correction process on the energy consumption prediction data based on the test set and the energy consumption prediction data corresponding to the test set, to obtain corrected energy consumption prediction data.
[0037] In the above embodiment, after obtaining the energy consumption prediction data, a correction process can be further performed on the energy consumption prediction results based on the training set and the test set, thereby further improving the prediction accuracy of the energy consumption prediction method for commercial electric vehicles.
[0038] In some embodiments, the commercial electric vehicle energy consumption prediction apparatus further includes a failure risk identification module for obtaining an estimate of a battery state of health of the commercial electric vehicle and identifying a failure risk of the commercial electric vehicle based on the estimate of the battery state of health and the energy consumption prediction data.
[0039] In the above embodiment, after obtaining the energy consumption prediction data of the commercial electric vehicle, an estimated battery health state of the commercial electric vehicle is further obtained, and the failure risk of the commercial electric vehicle is identified based on the estimated battery health state and the energy consumption prediction data, so that the user can detect abnormalities in a timely manner and take corresponding measures, which is helpful in reducing the failure probability of the commercial electric vehicle and improving the safety of vehicle use.
[0040] A computing device including a memory having computer-readable instructions stored thereon and one or more processors, the computer-readable instructions, when executed by the one or more processors, causing the one or more processors to: A computer device that executes the steps of acquiring discharge period data of a commercial electric vehicle, acquiring driving position characteristic data of the commercial electric vehicle, and substituting the discharge period data and the driving position characteristic data into an energy consumption prediction model to obtain energy consumption prediction data of the commercial electric vehicle, wherein the energy consumption prediction model is obtained by a machine learning algorithm.
[0041] One or more non-volatile computer-readable storage media having computer-readable instructions stored thereon, the computer-readable instructions, when executed by the one or more processors, causing the one or more processors to: A storage medium executes the steps of acquiring discharge period data of a commercial electric vehicle, acquiring driving position characteristic data of the commercial electric vehicle, and substituting the discharge period data and the driving position characteristic data into an energy consumption prediction model to obtain energy consumption prediction data of the commercial electric vehicle, wherein the energy consumption prediction model is obtained by a machine learning algorithm.
[0042] A computer program product comprising a computer program, the computer program being configured to, when executed by one or more processors, cause the one or more processors to: A computer program product comprising the steps of: acquiring discharge period data of a commercial electric vehicle; acquiring driving position characteristic data of the commercial electric vehicle; and substituting the discharge period data and the driving position characteristic data into an energy consumption prediction model obtained by a machine learning algorithm to obtain energy consumption prediction data of the commercial electric vehicle, wherein the energy consumption prediction model is obtained by the machine learning algorithm.
[0043] The above-mentioned computer device, computer-readable storage medium, and computer program product substitute the discharge period data and the driving position characteristic data into an energy consumption prediction model to obtain energy consumption prediction data. Because the driving route of a commercial electric vehicle is relatively fixed, the driving position characteristic data corresponding to the driving route can reflect the actual driving environment of the commercial electric vehicle to a certain extent, which is helpful in improving the accuracy of the energy consumption prediction data.
[0044] In order to more clearly describe the technical solutions of the embodiments of the present application, the drawings used in the embodiments are briefly described below. Obviously, the drawings described below are only some embodiments of the present application, and those skilled in the art can obtain other drawings based on these drawings attached without creative efforts. [Brief description of the drawings]
[0045] [Figure 1]1 is a flowchart of a method for predicting energy consumption of a commercial electric vehicle according to some embodiments of the present application. [Diagram 2] 1 is a flowchart of a method for predicting energy consumption of a commercial electric vehicle according to some embodiments of the present application. [Diagram 3] 1 is a flowchart of an energy consumption prediction model training according to some embodiments of the present application. [Figure 4] 1 is a flowchart of a past unit time energy consumption data analysis according to some embodiments of the present application; [Diagram 5] 1 is a flowchart of a method for predicting energy consumption of a commercial electric vehicle according to some embodiments of the present application. [Figure 6] 1 is a flowchart of a method for predicting energy consumption of a commercial electric vehicle according to some embodiments of the present application. [Figure 7] 1 is a flowchart of a method for predicting energy consumption of a commercial electric vehicle according to some embodiments of the present application. [Figure 8] 1 is a flowchart of a method for predicting energy consumption of a commercial electric vehicle according to some embodiments of the present application. [Figure 9] FIG. 1 is a block diagram of an energy consumption prediction device for a commercial electric vehicle according to some embodiments of the present application. [Figure 10] FIG. 1 is a block diagram of an energy consumption prediction device for a commercial electric vehicle according to some embodiments of the present application. [Figure 11] FIG. 2 is a block diagram of an energy consumption prediction model according to some embodiments of the present application. [Figure 12] FIG. 1 is a block diagram of an energy consumption prediction device for a commercial electric vehicle according to some embodiments of the present application. [Figure 13] FIG. 2 is a block diagram of an energy consumption prediction module according to some embodiments of the present application. [Figure 14] FIG. 1 is a block diagram of an energy consumption prediction device for a commercial electric vehicle according to some embodiments of the present application. [Figure 15] FIG. 2 is a diagram showing the internal configuration of a computer device according to some embodiments of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0046] In order to make the technical solutions and advantages of the present application more clear, the present application will be described in more detail below in conjunction with the drawings and examples. It should be understood that the specific embodiments described herein are only for interpreting the present application, and are not intended to limit the present application.
[0047] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art. The terms used herein are used only for the purpose of describing specific examples and are not intended to limit the present application. The terms "including", "having" and any variations thereof in the description of the present application, claims and the above drawings are intended to cover a non-exclusive inclusion.
[0048] In the description of the embodiments of the present application, technical terms such as "first", "second" and the like are used only to distinguish different targets, and cannot be understood as indicating or implying the relationship of relative importance or number of the technical features shown, a particular order or priority. In the description of the embodiments of the present application, unless otherwise clearly and specifically limited, "plurality" means two or more. At the same time, the term "and / or" as used herein includes any and all combinations of the associated items listed.
[0049] The method, apparatus, computer device, computer-readable storage medium, and computer program product provided herein for predicting energy consumption of commercial electric vehicles are applicable to various commercial electric vehicles, including, but not limited to, electric public transit, electric buses, subway electric vehicles, mainline electric vehicles, light rail electric vehicles, etc.
[0050] According to a first aspect, the present application provides a method for predicting energy consumption of a commercial electric vehicle, the method may be applied to a terminal, may be applied to a server, or may be realized through interaction between the terminal and the server. For ease of understanding, the following description takes the method applied to a terminal as an example. In some embodiments, as shown in FIG. 1, the method includes steps S102 to S106.
[0051] Step S102: Obtain discharging period data of the commercial electric vehicle.
[0052] However, the discharge duration data refers to a data set consisting of the discharge duration within each calculation period, with the calculation period being a time set for the commercial electric vehicle. The set time may be half a day, one day, or two days. Specifically, the discharge duration data can be extracted from the charge and discharge data of the commercial electric vehicle. The charge and discharge data includes the start and end times of charging and discharging, the charge capacity, and the State of Charge (SOC, the available percentage of the remaining charge in the battery) corresponding to each time. The discharge duration is the time difference between the discharge start time and the discharge end time.
[0053] Furthermore, the terminal can obtain charging and discharging data of the commercial electric vehicle, and perform data preprocessing on the charging and discharging data to obtain discharging period data. For example, the terminal can remove overlapping and incomplete data rows in the charging and discharging data, extract discharge data in the discharging time period of the commercial electric vehicle based on the field information, and calculate and obtain the discharging period based on the discharging start time and the discharging end time in the discharging data. The terminal can remove abnormal values in the calculated discharging period based on statistical rules, thereby avoiding the influence of abnormal data and further improving the accuracy of energy consumption prediction. For example, discharging period data smaller than -1*sigma and larger than +3*sigma in multiple calculation cycles within a predetermined period can be removed.
[0054] It should be noted that, if there are multiple sub-discharge periods within a set time, the sub-discharge periods of the respective sub-discharge periods are added together to calculate the discharge period within the set time.
[0055] Step S104: Obtain driving position characteristic data of the commercial electric vehicle.
[0056] However, step S104 can be performed before, after, or synchronously with step S102. In addition, the driving position characteristic data includes driving positions of the commercial electric vehicle at different times, and weather data and terrain data corresponding to the driving positions, etc. The weather data includes information such as temperature, humidity, air pressure, and wind speed, and the terrain data includes information such as slope, truck resistance, and air resistance.
[0057] Specifically, since the driving route of the commercial electric vehicle is relatively fixed, the terminal can obtain past concurrent driving position characteristic data, or first obtain the driving route of the commercial electric vehicle within a predicted time, and then associate the weather data and terrain data corresponding to the driving position based on the position information of the vehicle driving on the driving route, to obtain the driving position characteristic data corresponding to the driving route, such as past concurrent weather data corresponding to the driving route and terrain data corresponding to the driving route.
[0058] In addition, the specific manner in which the terminal obtains the discharge period data and the driving position characteristic data of the commercial electric vehicle may be either actively obtained or passively received.
[0059] Step S106: Substitute the discharge period data and the driving position characteristic data into the energy consumption prediction model to obtain energy consumption prediction data of the commercial electric vehicle.
[0060] However, the energy consumption prediction model is obtained by a machine learning algorithm, which may be a neural network algorithm or a decision tree algorithm. In one embodiment, the machine learning algorithm is a Gradient Boost Regression Tree (GBRT) algorithm.
[0061] Specifically, the discharge period data and the driving position characteristic data can be substituted into an energy consumption prediction model obtained by a machine learning algorithm to obtain energy consumption prediction data for the commercial electric vehicle.
[0062] In addition, considering that the driving route of commercial electric vehicles is relatively fixed and the frequency of use is easily affected by the current business volume and the number of vehicles in operation, the accuracy of energy consumption prediction can be improved by using the past same period of ambient temperature data and the recent discharge period data as model independent variables and substituting them into the energy consumption prediction model. For example, when it is necessary to predict the energy consumption for the next three months, the discharge period of the past three months and the past same period of ambient temperature are used as inputs and substituted into the energy consumption prediction model.
[0063] In addition, after the terminal obtains the energy consumption prediction data, the terminal may further output the energy consumption prediction data. The output target of the energy consumption prediction data may be a storage device, a display device, or a communication device. In addition, the terminal may output the energy consumption prediction data to another terminal via the communication device.
[0064] The above-mentioned commercial electric vehicle energy consumption prediction method substitutes the discharge period data and the driving position characteristic data into an energy consumption prediction model to obtain energy consumption prediction data. On the one hand, since the driving route of the commercial electric vehicle is relatively fixed, the driving position characteristic data corresponding to the driving route can reflect the actual driving environment of the commercial electric vehicle to a certain extent, which is helpful to improve the accuracy of the energy consumption prediction data; on the other hand, by predicting energy consumption using the energy consumption prediction model obtained by the machine learning algorithm, complicated mathematical modeling can be omitted, so that accuracy can be ensured and work efficiency can be improved.
[0065] It should be noted that the characteristic of the energy consumption prediction model obtained by the machine learning algorithm is that before the discharge period data is substituted into the energy consumption prediction model, an interpolation process is performed on the data to obtain continuous energy consumption prediction data with a period of a set period, thereby ensuring that the discharge period data of the input model is continuous data with a period of a set period, and further ensuring the continuity of the energy consumption prediction data; in addition, after obtaining discontinuous initial energy consumption prediction data, an interpolation process can be performed on the initial energy consumption prediction data to obtain continuous energy consumption prediction data of commercial electric vehicles with a period of a set period.
[0066] In some embodiments, as shown in Fig. 2, before step S106, the method further includes step S105 of training a model by a machine learning algorithm based on the historical driving data of the commercial electric vehicle, the battery rated capacity and a preset model loss function to obtain an energy consumption prediction model, where step S105 can be performed before, after or synchronously with steps S102 and S104.
[0067] However, the specific limitations of the machine learning algorithm are referred to above, and the description is omitted here. The past driving data is the actual data in the past driving process of the commercial electric vehicle. Specifically, the terminal obtains the actual energy consumption data for training the model based on the past driving data and the battery rated capacity of the commercial electric vehicle, and uses the preset model loss function to train the model based on the machine learning algorithm to obtain an energy consumption prediction model.
[0068] In addition, the model loss function may specifically be a mean square error function, an absolute loss function, or a quantile loss function, etc. Taking the energy consumption prediction model as a GBRT model as an example, the specific formula of the model loss function may be as follows:
number
[0069] where y is the actual value and f(x) is the predicted value. Based on the above model loss function, residual training can be performed according to the loss function that tends to minimize the difference between the predicted value and the actual value, and the GBRT regression tree can be fitted to obtain a GBRT model for predicting energy consumption.
[0070] In the above embodiment, the discharge period data and the driving position characteristic data are substituted into the energy consumption prediction model, and before obtaining the energy consumption prediction data of the commercial electric vehicle, the model is trained based on the historical driving data of the commercial electric vehicle to obtain the energy consumption prediction model, which helps to improve the scientificity of the energy consumption prediction method for the commercial electric vehicle.
[0071] In some embodiments, as shown in FIG. 3, step S105 includes steps S302 to S308.
[0072] Step S302: Obtain the historical driving data and the rated battery capacity of the commercial electric vehicle.
[0073] However, the past travel data includes past charge / discharge data and past travel position characteristic data. Furthermore, the past charge / discharge data includes the start time, end time, charge capacity, and SOC corresponding to each time of charge / discharge. The rated battery capacity is the capacity of the battery under rated conditions. The past travel position characteristic data is the travel position characteristic data corresponding to the time node of the past charge / discharge data.
[0074] Step S304: Calculate and obtain the energy consumption data of the commercial electric vehicle per unit time according to the past charging and discharging data and the battery rated capacity.
[0075] However, the past unit time energy consumption data of the commercial electric vehicle is a data set consisting of the energy consumption value of the commercial electric vehicle per unit time in a certain period of time in the past, with a set time as a cycle. Specifically, the terminal can obtain the past energy consumption and discharge period of the commercial electric vehicle in each cycle based on the past charge and discharge data, with the set time as a calculation cycle, and further obtain the past unit time energy consumption data of the commercial electric vehicle.
[0076] In addition, the specific method of the terminal to obtain the energy consumption data of the commercial electric vehicle in the past unit time based on the past charging and discharging data and the battery rated capacity is not limited. In one embodiment, the terminal multiplies the SOC difference at the discharge start and end times by the battery rated capacity based on the past charging and discharging data to obtain the past discharge amount of the commercial electric vehicle within a set time, and further obtains the energy consumption of the commercial electric vehicle in the past unit time within a predetermined period according to the corresponding discharge period. However, the predetermined period may be one month, two months, or three months, and can be specifically determined according to the needs of energy consumption prediction.
[0077] Step S306: Based on the energy consumption data for the past unit time and the traveling position characteristic data, past energy consumption data is obtained.
[0078] However, the past energy consumption data is past data including energy consumption data of past unit time and past driving position characteristic data. Specifically, the past unit time energy consumption data of multiple calculation cycles within a predetermined period obtained in step S404 can be merged with the past driving position characteristic data of the same commercial electric vehicle according to the time node of the calculation cycle to form past energy consumption data including time, energy consumption data of past unit time and past driving position characteristic data.
[0079] Step S308: Based on the historical energy consumption data and the preset model loss function, a model is trained by a machine learning algorithm to obtain an energy consumption prediction model.
[0080] Specifically, based on the historical energy consumption data, a model can be trained using a preset model loss function and a machine learning algorithm to obtain an energy consumption prediction model.
[0081] In the above embodiment, in the model training process, the past unit hour energy consumption data of the commercial electric vehicle is first calculated and obtained, and then the model is trained based on the past unit hour energy consumption data and the past driving position characteristic data to obtain an energy consumption prediction model, which can accurately characterize the relationship between the energy consumption per unit hour and the driving position characteristics, and is helpful in improving the consistency between the energy consumption prediction model and the actual driving conditions, and further improving the prediction accuracy of the model.
[0082] In some embodiments, obtaining the historical travel data for the commercial electric vehicle includes obtaining original historical travel data for the commercial electric vehicle and pre-processing the original historical travel data to obtain the historical travel data for the commercial electric vehicle.
[0083] Specifically, the terminal obtains the original historical driving data of the commercial electric vehicle, and pre-processes the data according to the original historical driving data to obtain corresponding historical driving data of the commercial electric vehicle, where the original historical driving data includes the past charging and discharging data, the past vehicle position information data, and the weather data and terrain data corresponding to each vehicle position, etc.
[0084] For example, at the end of April, the past charging and discharging data can be preprocessed, duplicates and data rows with incomplete data information can be removed, and charging data for each charging time slot and discharging data for each discharging time slot corresponding to each charging time slot can be extracted based on the field information, where the data rows with incomplete data information include data rows with blank dates and data rows with missing charging time slot or discharging time slot data.
[0085] In the above embodiment, after obtaining the original historical driving data of the commercial electric vehicle, the data needs to be pre-processed to obtain the historical driving data, so as to avoid duplicated or incomplete historical driving data, and effectively improve the prediction accuracy and prediction efficiency of the model.
[0086] In some embodiments, referring to FIG. 4, step S304 includes steps S402 to S406.
[0087] Step S402: Using a set time as a calculation period, obtain past charging data and past discharging data of the commercial electric vehicle based on the past charging and discharging data.
[0088] Here, the charging data includes the charging start time, the charging end time, the charging capacity, and the SOC corresponding to each time, etc. The discharging data includes the discharging start time, the discharging end time, and the SOC corresponding to each time, etc. The past charging data and the past discharging data respectively refer to the actual charging data and the actual discharging data within a certain period of time in the past.
[0089] Specifically, the terminal performs extraction and data classification on the information of the past charging and discharging data. Data including "charging" field information is classified as charging data, and data including "discharging" field information is classified as discharging data. Further, a secondary classification is performed with a set time period as a period, and past charging data and past discharging data of the commercial electric vehicle within a plurality of periods can be obtained.
[0090] Step S404: Obtain the battery health status of the commercial electric vehicle within a set time based on the historical charging data and the battery rated capacity.
[0091] However, the battery health state, also called SOH (State of Health), is used to characterize the electrical energy storage capacity of a current battery compared to a new battery, and quantitatively describes the current battery performance state in the form of a percentage. The battery health state is affected by various factors such as temperature, current magnification, offset voltage, etc., and changes dynamically from the beginning of the battery life to the end of the life period. Based on these, in order to improve the accuracy of the energy consumption data for the past unit time, the terminal calculates and obtains the battery health state of the commercial electric vehicle within a set time based on the past charging data and the battery rated capacity.
[0092] Specifically, the formula for calculating the battery health state is as follows:
number
[0093] In the formula, Q is the charge capacity, pack cap is the rated battery capacity, JPEG0007538236000003.jpg9134
[0094] Step S406: Obtain the past unit hour energy consumption data of the commercial electric vehicle according to the battery health state, the battery rated capacity and the past discharge data corresponding to the past charging data.
[0095] However, the discharge data corresponding to the charge data is the discharge data from the charge end time of the current charge time slot to the charge start time of the next charge time slot.
[0096] Specifically, the terminal can first obtain the past energy consumption of the commercial electric vehicle within a set time period based on the battery health state, the battery rated capacity, and the SOC difference between the discharge start time and the discharge end time, and then integrate the past energy consumption of multiple calculation cycles within a predetermined period and the discharge period to obtain the energy consumption value of the commercial electric vehicle per unit time of each calculation cycle within the predetermined period. The data set consisting of the energy consumption values of multiple calculation cycles per unit time within a certain period is the energy consumption data of the past unit time.
[0097] However, the calculation formula for energy consumption C within a set time is as follows:
number
[0098] In the formula, delt_soc_discharge is the SOC difference between the discharge start time and the discharge end time.
[0099] The calculation formula for the energy consumption value Cper per unit time is as follows:
number
[0100] In the formula, hour_discharge is the discharge period, i.e., the time difference between the discharge start time and the discharge end time.
[0101] In the above embodiment, in the process of calculating the energy consumption data of the commercial electric vehicle over the past unit time, the real-time battery health status of the vehicle is taken into consideration, which helps to improve the accuracy of the energy consumption data of the past unit time and further improve the prediction accuracy of the model.
[0102] In some embodiments, within a given time period, one charging time slot corresponds to multiple sub-discharge time slots, and in step S406, obtaining energy consumption data of the commercial electric vehicle for the past unit time based on the battery health state, the battery rated capacity, and past discharge data corresponding to the past charging data includes obtaining energy consumption data of the commercial electric vehicle for the past unit time based on the battery health state, the battery rated capacity, and past discharge data of each sub-discharge time slot.
[0103] Specifically, when one charging time period corresponds to multiple sub-discharging time periods within a set time, the energy consumption data for the past unit time is obtained according to the discharge data for each sub-discharging time period. The energy consumption corresponding to each discharging time period is calculated and obtained using the above energy consumption calculation formula according to the battery health state, the battery rated capacity, and the past discharge data for each sub-discharging time period, and the energy consumption for each discharging time period is added to obtain the total energy consumption and total discharge period for these discharging time periods, and the total energy consumption is divided by the total discharge period to obtain the energy consumption value for unit time. In addition, the energy consumption value for each sub-unit time of each sub-discharging time period can be calculated and obtained based on the discharge data for each discharging time period, and then the average value or median value of the energy consumption value for each sub-unit time can be used as the energy consumption value for unit time of the discharging time period corresponding to the charging time period.
[0104] In the above embodiment, when analyzing the energy consumption data of the past unit time, if one charging time period within a set time corresponds to multiple sub-discharging time periods, the final analysis of the energy consumption data of the past unit time can be realized according to the past discharging data of each sub-discharging time period, thereby effectively improving the reliability of the analysis of the energy consumption data of the past unit time.
[0105] In some embodiments, there are multiple charging time slots within the set time period, and step S406 includes obtaining historical hourly energy consumption data of the commercial electric vehicle based on the battery health state, the battery rated capacity, the historical charging data for each charging time slot, and the historical discharging data for a discharging time slot corresponding to each charging time slot.
[0106] Specifically, when there are multiple charging time slots within a set time, the energy consumption of the discharging time slot corresponding to each charging time slot is calculated based on the charging data of each charging time slot and the discharging data of the discharging time slot corresponding to the charging time slot, in accordance with the battery health state, the battery rated capacity, and the above energy consumption calculation formula. Furthermore, a discrimination process is performed based on the energy consumption of the discharging time slot corresponding to each charging time slot to obtain energy consumption data for the past unit time.
[0107] In the above embodiment, when analyzing the energy consumption data of the past unit time, if there are multiple charging time periods within a set time, the energy consumption of each discharging time period is calculated according to the past discharging data of the discharging time period corresponding to each charging time period, and finally, the analysis of the energy consumption data of the past unit time is realized, and the reliability of the analysis of the energy consumption data of the past unit time can be further improved.
[0108] Further, in some embodiments, obtaining past unit hour energy consumption data of the commercial electric vehicle based on a battery health state, a battery rated capacity, past charging data of each charging time slot, and past discharging data of a discharging time slot corresponding to each charging time slot includes obtaining energy consumption of a discharging time slot corresponding to each charging time slot based on a battery health state, a battery rated capacity, past charging data of each charging time slot, and past discharging data of a discharging time slot corresponding to each charging time slot; if a maximum energy consumption value of the energy consumption of the discharging time slot corresponding to each charging time slot is smaller than the battery rated capacity, calculating energy consumption data of the past unit hour within a set time based on the maximum energy consumption value; if a maximum energy consumption value of the energy consumption of the discharging time slot corresponding to each charging time slot is equal to or greater than the battery rated capacity and smaller than a predetermined multiple of the battery rated capacity, calculating energy consumption data of the past unit hour within the set time based on an average value of the energy consumption of the discharging time slot corresponding to each charging time slot; and if a maximum energy consumption value of the energy consumption of the discharging time slot corresponding to each charging time slot is equal to or greater than the predetermined multiple of the battery rated capacity, discarding the corresponding past charge and discharge data within the set time.
[0109] However, the preset multiple is a real number greater than 1, such as 1.1, 1.2, or 1.3. The calculation method of the energy consumption of the discharge time slot corresponding to each charging time slot is realized according to the above energy consumption calculation formula, and the description thereof is omitted here. In addition, before calculating the energy consumption value of the unit time, the abnormal values of the energy consumption and the discharge time slot can be processed according to statistical rules, so as to avoid the influence of the abnormal data and further improve the energy consumption prediction accuracy. For example, the outliers in the past energy consumption can be removed using ±3*sigma or other rules, the outliers in the energy consumption value of the unit time corresponding to the past energy consumption can be removed using ±1*sigma or other rules, and the discharge time data smaller than -1*sigma and larger than +3*sigma can be removed.
[0110] In the above embodiment, a discrimination process is performed on the energy consumption in the discharging time period corresponding to each charging time period, and analysis of different past unit time energy consumption data is realized according to the different sections in which they are arranged. In the event of an abnormality, past charging and discharging data within the corresponding period is discarded, thereby effectively improving the analysis accuracy of past unit time energy consumption data.
[0111] 5, in some embodiments, after step S106, the method further includes step S107 of dividing the past energy consumption data into a training set and a test set, obtaining energy consumption prediction data corresponding to the test set based on the training set and the energy consumption prediction model, and performing a correction process on the energy consumption prediction data based on the test set and the energy consumption prediction data corresponding to the test set to obtain corrected energy consumption prediction data, where step S107 is performed before step S108.
[0112] Specifically, the past energy consumption data is divided into two parts, a training set and a test set, according to a preset ratio, and the training set is substituted into an energy consumption prediction model to obtain energy consumption prediction data corresponding to the test set. Furthermore, the actual energy consumption data of the test set is compared with the corresponding energy consumption prediction data to determine a model prediction error sequence, and further a correction value of the energy consumption prediction model is determined based on the error sequence. Furthermore, the method in which the terminal determines the correction value of the energy consumption prediction model based on the error sequence is not the only one. For example, the median or average value of the error sequence may be the correction value of the energy consumption prediction model.
[0113] However, the calculation formula for the error value of the model prediction error sequence is as follows: error i =Cp1 i -Ca i (5)
[0114] where error iis the error value corresponding to the i-th data in the test set, and Ca i is the actual value of the energy consumption data for the i-th unit time of the test set, and Cp1 i Ca i is the predicted energy consumption value corresponding to
[0115] After obtaining the corrected value of the energy consumption prediction model, the energy consumption prediction data is further corrected based on the corrected value, and the initial energy consumption prediction value obtained is superimposed on the corrected value of the energy consumption prediction model to obtain the corrected energy consumption prediction value. That is, the final energy consumption prediction value corresponding to the formula (5) is as follows: Cpredict_final i =Cpredict_value i -error (6)
[0116] where error is the correction value of the energy consumption prediction model, and Cpredict_value i is the i-th initial energy consumption prediction value, and Cpredict_value i Cpredict_final i The data set formed by combining the respective corrected energy consumption forecast values is energy consumption forecast data for the commercial electric vehicle.
[0117] It should be noted that the preset ratio is not unique, for example, according to a preset ratio of 4:1, 80% of the actual energy consumption data can be the training set and the remaining 20% can be the test set, or according to a preset ratio of 3:2, 60% of the actual energy consumption data can be the training set and the remaining 40% can be the test set.
[0118] In the above embodiment, after obtaining the energy consumption prediction data, a correction process can be further performed on the energy consumption prediction results based on the training set and the test set, thereby further improving the prediction accuracy of the energy consumption prediction method for commercial electric vehicles.
[0119] In some embodiments, substituting the discharge period data and the driving position characteristic data into the energy consumption prediction model includes performing an interpolation process on the discharge period data to obtain interpolated discharge period data, and substituting the interpolated discharge period data and the driving position characteristic data into the energy consumption prediction model.
[0120] However, interpolation refers to the interpolation of a continuous function based on discrete data, so that the continuous curve passes through all the specified discrete data points. The process of interpolation allows us to estimate an approximation of the function's values at other points, given the values of the function at a limited number of points.
[0121] Specifically, since there may be missing data in the past charge / discharge data, and there may be incomplete data information, such as missing discharge time zone data, within the set period under actual driving conditions, the discharge period data acquired in step S102 may be discontinuous data with missing calculation values for one or more periods within the specified period. Based on this, first, an interpolation process is performed on the discharge period data to obtain continuous discharge period data having a period equal to the set period after difference processing, and then the continuous discharge period data and the driving position characteristic data are substituted into the energy consumption prediction model.
[0122] In the above embodiment, before the discharge period data is substituted into the energy consumption prediction model, an interpolation process is first performed to ensure the continuity of the discharge period data of the input model, and the continuity of the energy consumption prediction data can be further ensured, which is helpful in improving the flexibility of the energy consumption prediction method for commercial electric vehicles.
[0123] Referring to FIG. 6, in some embodiments, step S106 includes step S602 and step S604.
[0124] Step S602: Substitute the discharge period data and the driving position characteristic data into the energy consumption prediction model to obtain initial energy consumption prediction data of the commercial electric vehicle.
[0125] However, the initial energy consumption prediction data is a prediction value of the energy consumption prediction model. Specifically, the initial energy consumption prediction data of the commercial electric vehicle can be obtained by substituting the discharge period data and the driving position characteristic data into the energy consumption prediction model.
[0126] Step S604: Group the initial energy consumption prediction data according to a predetermined time period, and obtain a preset percentile of each group as the energy consumption prediction data within the corresponding predetermined time period.
[0127] However, the discharge period data is actual data of a number of calculation cycles in a predetermined period in the past. The initial energy consumption forecast data is forecast data of a number of calculation cycles corresponding to the discharge period data. That is, the initial energy consumption forecast data includes forecast data of a number of calculation cycles in a predetermined period in the future. Furthermore, the set of data is sorted from smallest to largest, and the corresponding cumulative percentiles are calculated, and the value of the data corresponding to a certain percentile is called the percentile in this percentile. It should be understood that the initial energy consumption forecast value corresponding to a preset percentile larger than 50% is the large value of the set of initial energy consumption forecast data. The specific value of the preset percentile is not unique, and may be, for example, the 85% quantile, the 90% quantile, or the 95% quantile.
[0128] Specifically, the terminal groups the initial energy consumption data according to a predetermined time period to obtain multiple forecast data, and sets a large predetermined quantile in the data of each group as the energy consumption forecast data for the group, and further obtains energy consumption forecast data for the commercial electric vehicle within a predetermined period.
[0129] It should be noted that, among the three time concepts of the predetermined period, the predetermined time, and the calculation period described above, the predetermined period is the longest and the calculation period is the shortest. Furthermore, the value of the predetermined time is not unique, but can be flexibly set according to the predetermined period and the calculation period. For example, if the predetermined period is 3 months and the calculation period is 1 day, the predetermined period can be set to 10 days or 15 days.
[0130] In the above embodiment, initial energy consumption prediction data is predicted and obtained based on the energy consumption prediction model, and after grouping, a large predetermined percentile in each group is obtained as energy consumption prediction data, thereby removing interference from noise values and improving the accuracy of the energy consumption prediction data.
[0131] In some embodiments, as shown in FIG. 7 , after step S106, the method further includes step S108 of obtaining an estimate of a battery state of health of the commercial electric vehicle, and identifying a failure risk of the commercial electric vehicle based on the estimate of the battery state of health and the energy consumption forecast data.
[0132] However, battery state of health, also called SOH, is used to characterize the electrical energy storage capacity of a current battery compared to a new battery, and quantitatively describes the current battery performance state in the form of a percentage. Battery state of health is affected by various factors such as temperature, current multiplication factor, offset voltage, etc., and changes dynamically from the beginning to the end of the battery life period.
[0133] Specifically, the terminal obtains an estimated value of the battery health state of the commercial electric vehicle, multiplies the estimated value of the battery health state by the battery rated capacity to obtain the battery power in the calculation period, and judges whether the commercial electric vehicle has a risk of failure according to the energy consumption prediction data in the same calculation period. If the battery powers corresponding to the estimated values of the battery health state predicted in a set number of consecutive calculation periods are all smaller than the energy consumption prediction values in the corresponding calculation periods, it is judged that the vehicle has a high risk of failure. The specific value of the set number may be 4, 5, or 6.
[0134] In addition, after identifying the risk of breakdown of the commercial electric vehicle, warning information can be outputted to prompt the user to take corresponding risk prevention measures, such as prompting the user to increase the monitoring frequency of the vehicle or to prepare equipment, etc.
[0135] In the above embodiment, after obtaining the energy consumption prediction data of the commercial electric vehicle, an estimated battery health state of the commercial electric vehicle is further obtained, and the failure risk of the commercial electric vehicle is identified based on the estimated battery health state and the energy consumption prediction data, so that the user can detect abnormalities in a timely manner and take corresponding measures, which is helpful in reducing the failure probability of the commercial electric vehicle and improving the safety of vehicle use.
[0136] For ease of understanding, the energy consumption prediction method for commercial electric vehicles will be described in detail below with reference to FIG.
[0137] The terminal obtains the past driving data and the battery rated capacity, including the past charging and discharging data and the past driving characteristic data of the commercial electric vehicle, where the driving characteristic data includes the city where the commercial electric vehicle is located at various times and the temperature corresponding to the city. After obtaining the past driving data, the terminal first preprocesses the data, removes duplicates and data rows with blank dates, extracts the charging and discharging time slot data information of each vehicle, extracts the start SOC and end SOC of each charging time slot, and the charging capacity Q, and extracts information such as the start SOC and end SOC of each discharging time slot and the time of the discharging time slot. Furthermore, the data of the charging and discharging time slots are merged, and each charging time slot corresponds to at least one discharging time slot, and data having only a charging time slot or only a discharging time slot is discarded. Wherein, the discharging time slot corresponding to a charging time slot is a discharging time slot corresponding to the discharging data from the charging end time of the current charging time slot to the charging start time of the next charging time slot.
[0138] After obtaining the corresponding past charging and discharging data, next, based on the past charging and discharging data, the past unit time energy consumption data of the vehicle is obtained with a calculation period of one day. Specifically, first, based on the past charging data and the battery rated capacity, the battery health state SOH of the commercial electric vehicle in the calculation period is obtained by the battery health state equation (2), and then the calculated SOH, battery rated capacity and discharge data corresponding to the charging data are substituted into equations (3) and (4) to obtain the vehicle energy consumption C and the unit time energy consumption value Cper in the corresponding calculation period.
[0139] When one charging time slot corresponds to multiple sub-discharging time slots in one calculation period, the energy consumption value for unit time is calculated according to the discharge data of each sub-discharging time slot. Specifically, the energy consumption of each discharging time slot is added to obtain the total energy consumption and total discharge time of these discharging time slots, and then the total energy consumption is divided by the total discharge time to obtain the energy consumption value for unit time. Alternatively, the energy consumption value for each sub-unit time of each sub-discharging time slot can be calculated based on the discharge data of each discharging time slot, and then the average value or median value of the energy consumption value for each sub-unit time can be used as the energy consumption value for unit time of the discharging time slot corresponding to the charging time slot.
[0140] When there are multiple charging time slots in one calculation period, the energy consumption of the discharge time slot corresponding to each charging time slot is calculated based on the charging data of each charging time slot and the discharging data of the discharge time slot corresponding to the charging time slot. Furthermore, a discrimination process is performed based on the energy consumption of the discharge time slot corresponding to each charging time slot. That is, when the maximum energy consumption value of the energy consumption of the discharge time slot corresponding to each charging time slot is smaller than the battery rated capacity, the energy consumption value of the unit time within the set time is calculated based on the maximum energy consumption value. When the maximum energy consumption value of the energy consumption of the discharge time slot corresponding to each charging time slot is equal to or larger than the battery rated capacity and smaller than 1.2 times the battery rated capacity, the energy consumption value of the unit time within the set time is calculated based on the average value of the energy consumption of the discharge time slot corresponding to each charging time slot. When the maximum energy consumption value of the energy consumption of the discharge time slot corresponding to each charging time slot is larger than 1.2 times the battery rated capacity, the energy consumption is determined to be abnormal, and the charge and discharge data within the calculation period is discarded.
[0141] In addition, before calculating the unit time energy consumption value, the abnormal values of the energy consumption and the discharge period can be processed according to statistical rules, so as to avoid the influence of the abnormal data and further improve the energy consumption prediction accuracy. For example, ±3*sigma or other rules can be used to remove outliers in the past energy consumption, ±1*sigma or other rules can be used to remove outliers in the past unit time energy consumption value corresponding to the past energy consumption, and past discharge period data smaller than -1*sigma and larger than +3*sigma can be removed.
[0142] According to the energy consumption values of the past unit time of a plurality of calculation cycles within a predetermined period, the energy consumption data of the commercial electric vehicle for the past unit time within the predetermined period can be obtained. After obtaining the energy consumption data of the past unit time, on the one hand, the energy consumption data of the past unit time and the ambient temperature data of the corresponding city in the past driving data are merged to obtain a merged data set, and based on the merged data set and a preset model loss function, a model is trained to obtain a GBRT model. Here, the model loss function is Equation (1). On the other hand, considering that the driving route of the commercial electric vehicle is relatively fixed and the frequency of use is easily affected by the current business volume and the number of vehicles in operation, the past discharge period data is linearly interpolated to obtain continuous discharge period data within a recent predetermined period, and the continuous discharge period data and the ambient temperature data of the past same period are used to predict the future energy consumption of the vehicle. Specifically, the continuous discharge period data and the ambient temperature data of the past same period are substituted and trained to obtain a GBRT model, so that the energy consumption prediction data of the future same period can be obtained. The GBRT model obtained by training can characterize the relationship between the energy consumption value per unit time and the environmental temperature, and based on this, it can be understood that energy consumption data for the corresponding unit time can be obtained based on the environmental temperature data for the same period in the past, and further, energy consumption prediction data for the same period in the future can be obtained based on the continuous discharge period data within a recent specified period.
[0143] For example, the discharge period for the past 3 months t and the environmental temperature for the same period in the past t If we use the model input X, we can obtain the energy consumption value C(t) for the next three months.
number
[0144] After obtaining the energy consumption prediction data, the energy consumption prediction data is grouped by a predetermined time period, and the preset 95% quantile of each group is used as the energy consumption prediction data for the corresponding predetermined time period. For example, the energy consumption prediction data for the next three months is grouped by 15 days, and the 95% quantile of each group is used as the energy consumption prediction value for the group.
[0145] In order to further improve the accuracy of the energy consumption prediction data, the past energy consumption data is divided into two parts, a training set and a test set, by a ratio of 4:1, and the training set is substituted into the energy consumption prediction model to obtain the corresponding energy consumption prediction data for the test set. Furthermore, the actual energy consumption data of the test set is compared with the corresponding energy consumption prediction data, and the model prediction error sequence is determined by equation (5). Finally, the median value of the error sequence is determined as the correction value of the energy consumption prediction model, and the energy consumption prediction value is corrected according to equation (6), so that the final corrected energy consumption prediction data can be obtained.
[0146] After obtaining the final energy consumption prediction data after correction, the terminal further obtains an estimate of the battery health state of the commercial electric vehicle, multiplies the estimate of the battery health state by the battery rated capacity to obtain the battery power in the calculation period, and judges whether the commercial electric vehicle has a risk of failure according to the energy consumption prediction data in the same calculation period. If the battery powers corresponding to the estimated battery health state values predicted in five consecutive calculation periods are all smaller than the energy consumption prediction values in the corresponding calculation periods, it is judged that the vehicle has a high risk of failure. Furthermore, after identifying the risk of failure of the commercial electric vehicle, it can also output warning information to prompt the user to take corresponding risk prevention measures. For example, it can prompt the user to increase the monitoring frequency of the vehicle or to prepare equipment, etc.
[0147] The above-mentioned method for predicting the energy consumption of a commercial electric vehicle is to substitute the discharge period data and the driving position characteristic data into the energy consumption prediction model to obtain the energy consumption prediction data, on the one hand, because the driving route of the commercial electric vehicle is relatively fixed, the driving position characteristic data corresponding to the driving route can reflect the actual driving environment of the commercial electric vehicle to a certain extent, which is helpful to improve the accuracy of the energy consumption prediction data, on the other hand, the energy consumption prediction model obtained by the machine learning algorithm is used to predict the energy consumption, and an error term is introduced, which can omit the complicated mathematical modeling, ensure the accuracy and improve the work efficiency. In addition, after obtaining the energy consumption prediction data of the commercial electric vehicle, the estimated battery health state of the commercial electric vehicle is further obtained, and the failure risk of the commercial electric vehicle is identified based on the estimated battery health state and the energy consumption prediction data, which allows the user to detect the abnormality in a timely manner and take corresponding measures, which is helpful to reduce the failure probability of the commercial electric vehicle and improve the safety of the use of the vehicle.
[0148] Although the steps of the flowcharts relating to the above embodiments are displayed in sequence according to the arrows, it should be understood that these steps must be performed in the order indicated by the arrows. Unless otherwise clearly described herein, the execution of these steps is not limited to a strict sequence, and these steps may be performed in other sequences. In addition, at least some of the steps of the flowcharts relating to the above embodiments may include multiple steps or multiple stages, and these steps or stages do not necessarily need to be performed and completed at the same time, but may be performed at different times, and the order of execution of these steps or stages does not necessarily need to be performed in order, and they may be performed in sequence or alternately with other steps or at least some of the steps or stages in other steps.
[0149] Based on the same inventive idea, according to a second aspect, the embodiments of the present application further provide a commercial electric vehicle energy consumption prediction device for realizing the above-mentioned commercial electric vehicle energy consumption prediction method. Since the problem-solving embodiment provided by the device is similar to the embodiment described in the above-mentioned method, specific limitations of the one or more embodiments of the commercial electric vehicle energy consumption prediction device provided below may refer to the limitations of the above-mentioned commercial electric vehicle energy consumption prediction method, and the description thereof will be omitted here.
[0150] In some embodiments, as shown in FIG. 9, an energy consumption prediction device 900 for a commercial electric vehicle is provided, which includes a discharge duration acquisition module 902, a driving position characteristic acquisition module 904, and an energy consumption prediction module 906.
[0151] The discharge period acquisition module 902 is used for acquiring discharge period data of the commercial electric vehicle. The driving position characteristic acquisition module 904 is used for acquiring driving position characteristic data of the commercial electric vehicle. The energy consumption prediction module 906 is used for substituting the discharge period data and the driving position characteristic data into an energy consumption prediction model obtained by a machine learning algorithm to obtain energy consumption prediction data of the commercial electric vehicle.
[0152] Referring to FIG. 10 , in some embodiments, the energy consumption prediction device 700 for a commercial electric vehicle further includes an energy consumption prediction model training module 905 for training a model by a machine learning algorithm based on the historical driving data of the commercial electric vehicle, the battery rated capacity, and a preset model loss function to obtain an energy consumption prediction model.
[0153] Referring to FIG. 11 , in some embodiments, the energy consumption prediction model training module 905 includes: a data acquisition unit 112 for acquiring past driving data, including past charging and discharging data and past driving position characteristic data of the commercial electric vehicle, and a battery rated capacity; an energy consumption data calculation unit 114 for calculating and obtaining energy consumption data of a past unit time of the commercial electric vehicle based on the past charging and discharging data and the battery rated capacity; a past energy consumption data generation unit 116 for obtaining past energy consumption data based on the energy consumption data of the past unit time and the past driving position characteristic data; and an energy consumption prediction model training unit 118 for training a model by a machine learning algorithm based on the past energy consumption data and a preset model loss function to obtain an energy consumption prediction model.
[0154] In some embodiments, the energy consumption data calculation unit 114 is specifically used for: obtaining past charging data and past discharging data of the commercial electric vehicle based on the past charging and discharging data in a set time period; obtaining a battery health state of the commercial electric vehicle within the set time period based on the past charging data and the battery rated capacity; and obtaining energy consumption data of the commercial electric vehicle for the past unit time based on the battery health state, the battery rated capacity, and the past discharging data corresponding to the past charging data.
[0155] Referring to FIG. 12 , in some embodiments, the energy consumption prediction device 700 for a commercial electric vehicle further includes a correction module 122 for dividing historical energy consumption data into a training set and a test set, obtaining energy consumption prediction data corresponding to the test set based on the training set and the energy consumption prediction model, and performing a correction process on the energy consumption prediction data based on the test set and the energy consumption prediction data corresponding to the test set, to obtain corrected energy consumption prediction data.
[0156] In some embodiments, the energy consumption prediction module 906 is specifically used for performing an interpolation process on the discharge period data, obtaining the interpolated discharge period data, and substituting the interpolated discharge period data and the driving position characteristic data into the energy consumption prediction model.
[0157] Referring to FIG. 13 , in some embodiments, the energy consumption prediction module 906 includes: an initial energy consumption prediction data generation unit 132 for substituting the discharge period data and the driving position characteristic data into an energy consumption prediction model to obtain initial energy consumption prediction data of the commercial electric vehicle; and an energy consumption prediction data generation unit 134 for grouping the initial energy consumption prediction data according to a predetermined time period and obtaining a preset percentile of each group as the energy consumption prediction data within the corresponding predetermined time period, where the preset percentile is greater than 50%.
[0158] 14 , in some embodiments, the commercial electric vehicle energy consumption prediction apparatus 700 further includes a failure risk identification module 142 for obtaining an estimate of a battery state of health of the commercial electric vehicle and identifying a failure risk of the commercial electric vehicle based on the estimate of the battery state of health and the energy consumption prediction data.
[0159] All or part of each module of the above-mentioned commercial electric vehicle energy consumption prediction device is realized by software, hardware, or a combination thereof. Each of the above-mentioned modules can be built into the processor of the computer device in the form of hardware or can be independent, and can also be stored in the memory of the computer device in the form of software, so that the processor can easily call and execute the operations corresponding to each of the above-mentioned modules.
[0160] In some embodiments, a computer device is provided. The computer device may be a terminal, and its internal configuration diagram may be as shown in FIG. 15. The computer device includes a processor, a memory, a communication interface, a display panel, and an input device, which are connected via a system bus. However, the processor of the computer device is used to provide calculation and control functions. The memory of the computer device includes a non-volatile storage medium and a memory. The non-volatile storage medium stores an operating system and a computer program. The memory provides an environment for the execution of the operating system and the computer program of the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner. The wireless communication can be realized by WIFI, a mobile cellular network, NFC (near field communication), or other technologies. When the computer program is executed by the processor, the method for predicting energy consumption of a commercial electric vehicle is realized. The display panel of the computing device may be a liquid crystal display panel or an electronic ink display panel, and the input device of the computing device may be a touch layer covered by the display panel, or a button, trackball or touch panel installed on the housing of the computing device, or an external keyboard, touch panel or mouse, etc.
[0161] The structure shown in Figure 15 is only a block diagram of a part of the structure related to the method of the present application, and does not limit the computer device to which the technical solution of the present application is applied. Those skilled in the art can understand that a specific computer device may include more or less components than those shown in the figure, or a combination of some components, or components having a different arrangement.
[0162] In some embodiments, a computing device is provided that includes a memory having a computer program stored thereon and a processor, which, when executed by the processor, performs the steps of each of the method embodiments described above.
[0163] In some embodiments, a computer readable storage medium is provided having stored thereon a computer program which, when executed by a processor, performs the steps of each of the method embodiments described above.
[0164] In some embodiments, a computer program product is provided that includes a computer program that, when executed by a processor, performs the steps of each of the method embodiments described above.
[0165] Those skilled in the art can understand that all or part of the flow of the method of the above embodiment can be implemented by instructing relevant hardware through a computer program, and the above computer program can be stored in a non-volatile computer-readable storage medium, and when the computer program is executed, the flow of each of the above embodiment of the method can be included. However, any reference to a memory, database, or other medium used in each embodiment provided by the present application can include at least one of a non-volatile memory and a volatile memory. The non-volatile memory may include a read-only memory (ROM), a magnetic tape, a floppy disk, a flash memory, an optical memory, a high-density embedded non-volatile memory, a resistive memory (ReRAM), a magnetoresistive random access memory (MRAM), a ferroelectric random access memory (FRAM), a phase change memory (PCM), a graphene memory, etc. The volatile memory may include a random access memory (RAM) or an external cache memory, etc. By way of example and not limitation, the RAM may be in various forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The database for each embodiment provided by the present application may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a distributed database based on a blockchain. The processor for each embodiment provided by the present application may be, but is not limited to, a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, and the like.
[0166] The technical features of the above embodiments can be combined in any combination. For the sake of brevity, all possible combinations of the technical features of the above embodiments are not described, but as long as there is no contradiction in the combination of these technical features, they should all be considered to belong to the scope described in this specification.
[0167] The above examples only describe some embodiments of the present application, and the description is specific and detailed, but should not be understood as limiting the scope of the claims of the invention. It should be noted that those skilled in the art can make some modifications and improvements without departing from the idea of the present application, all of which belong to the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the scope of the attached claims.
Claims
1. 1. A method for forecasting energy consumption of a commercial electric vehicle, comprising: Obtaining discharge duration data for a commercial electric vehicle; acquiring driving position characteristic data for the commercial electric vehicle; Substituting the discharge period data and the driving position characteristic data into an energy consumption prediction model to obtain energy consumption prediction data of the commercial electric vehicle; Including, The energy consumption prediction model is obtained based on a machine learning algorithm; Before substituting the discharge period data and the driving position characteristic data into an energy consumption prediction model to obtain energy consumption prediction data of the commercial electric vehicle, further: Acquiring past driving data, including past charging and discharging data and past driving position characteristic data, and a battery rated capacity, of a commercial electric vehicle; Obtaining past charging data and past discharging data of the commercial electric vehicle based on the past charging and discharging data at a set time period; obtaining a battery health state of the commercial electric vehicle within a set time period based on the historical charging data and the battery rated capacity; and calculating energy consumption data for each of the discharge time slots corresponding to the charging time slots based on the battery health state, the battery rated capacity, past charging data for each of the charging time slots, and past discharging data for each of the discharging time slots corresponding to the charging time slots. If a maximum energy consumption value of the energy consumption of the discharge time slots corresponding to each of the charging time slots is smaller than the battery rated capacity, calculating energy consumption data for past unit times within the set time based on the maximum energy consumption value. If a maximum energy consumption value of the energy consumption of the discharge time slots corresponding to each of the charging time slots is equal to or greater than the battery rated capacity and smaller than a preset multiple of the battery rated capacity, calculating energy consumption data for past unit times within the set time based on an average value of energy consumption of the discharge time slots corresponding to each of the charging time slots. If a maximum energy consumption value of the energy consumption of the discharge time slots corresponding to each of the charging time slots is equal to or greater than a preset multiple of the battery rated capacity, discarding past charge / discharge data for the corresponding set time. obtaining past energy consumption data based on the energy consumption data for the past unit time and the past traveling position characteristic data; Training a model through a machine learning algorithm based on the historical energy consumption data and a preset model loss function to obtain an energy consumption prediction model; Including, method.
2. Obtaining historical driving data for the aforementioned commercial electric vehicles is Obtaining original historical driving data of a commercial electric vehicle; and pre-processing the original historical travel data to obtain historical travel data for the commercial electric vehicle. The method of claim 1.
3. Within the set time, one charging time period corresponds to a plurality of sub-discharging time periods, and energy consumption data of the commercial electric vehicle is obtained in a past unit time based on the battery health state, the battery rated capacity, and past discharging data corresponding to the past charging data. obtaining energy consumption data of the commercial electric vehicle in a past unit time based on the battery health state, the battery rated capacity, and past discharge data of each of the sub-discharge time periods; The method of claim 1.
4. The above-mentioned discharge period data and the driving position characteristic data are substituted into an energy consumption prediction model to obtain energy consumption prediction data of the commercial electric vehicle, and then: Dividing the historical energy consumption data into a training set and a test set, and obtaining energy consumption prediction data corresponding to the test set based on the training set and the energy consumption prediction model; and performing a correction process on the energy consumption prediction data based on the test set and the energy consumption prediction data corresponding to the test set to obtain corrected energy consumption prediction data. The method according to any one of claims 1 to 3.
5. Substituting the discharge period data and the driving position characteristic data into an energy consumption prediction model, performing an interpolation process on the discharge period data to obtain interpolated discharge period data; and substituting the interpolated discharge period data and the traveling position characteristic data into an energy consumption prediction model. The method according to any one of claims 1 to 3.
6. Substituting the discharge period data and the driving position characteristic data into an energy consumption prediction model to obtain energy consumption prediction data of the commercial electric vehicle, Substituting the discharge period data and the driving position characteristic data into an energy consumption prediction model to obtain initial energy consumption prediction data for the commercial electric vehicle; grouping the initial energy consumption prediction data by a predetermined time period, and obtaining a preset percentile of each group as energy consumption prediction data for the corresponding predetermined time period; Including, The preset percentile is greater than 50%. The method according to any one of claims 1 to 3.
7. The above-mentioned discharge period data and the driving position characteristic data are substituted into an energy consumption prediction model to obtain energy consumption prediction data of the commercial electric vehicle, and then: obtaining an estimate of a battery state of health for the commercial electric vehicle; and identifying a risk of failure for the commercial electric vehicle based on the estimate of the battery state of health and the energy consumption forecast data. The method according to any one of claims 1 to 3.
8. 1. An energy consumption prediction device for a commercial electric vehicle, comprising: a discharge period acquisition module for acquiring discharge period data of the commercial electric vehicle; a driving position characteristic acquisition module for acquiring driving position characteristic data of the commercial electric vehicle; an energy consumption prediction module for inputting the discharge period data and the driving position characteristic data into an energy consumption prediction model to obtain energy consumption prediction data of the commercial electric vehicle; A training module for an energy consumption prediction model; Including, The energy consumption prediction model is obtained based on a machine learning algorithm; The energy consumption prediction model training module includes: A data acquisition unit for acquiring past driving data, including past charging and discharging data and past driving position characteristic data, and a battery rated capacity, of a commercial electric vehicle; a battery health state of the commercial electric vehicle within the set time period based on the past charging and discharging data, the battery health state of the commercial electric vehicle within the set time period is obtained based on the past charging data and the battery rated capacity, there are a plurality of charging time periods within the set time period, and energy consumption of a discharging time period corresponding to each of the charging time periods is obtained based on the battery health state, the battery rated capacity, the past charging data of each of the charging time periods, and the past discharging data of a discharging time period corresponding to each of the charging time periods, and if a maximum energy consumption value of the energy consumption of a discharging time period corresponding to each of the charging time periods is smaller than the battery rated capacity, the maximum energy consumption value an energy consumption data calculation unit for calculating energy consumption data of a past unit time within the set time based on the above-mentioned, and calculating energy consumption data of a past unit time within the set time based on an average value of energy consumption in a discharging time slot corresponding to each of the charging time slots when a maximum energy consumption value of the energy consumption in a discharging time slot corresponding to each of the charging time slots is equal to or greater than the battery rated capacity and is smaller than a preset multiple of the battery rated capacity, and discarding past charge / discharge data within the corresponding set time when a maximum energy consumption value of the energy consumption in a discharging time slot corresponding to each of the charging time slots is equal to or greater than a preset multiple of the battery rated capacity; a past energy consumption data generating unit for obtaining past energy consumption data based on the past unit time energy consumption data and the past traveling position characteristic data; an energy consumption prediction model training unit, which trains a model by a machine learning algorithm according to the past energy consumption data and a preset model loss function to obtain an energy consumption prediction model; Including, Device.
9. The apparatus further comprises: a correction module for dividing the past energy consumption data into a training set and a test set, obtaining energy consumption prediction data corresponding to the test set based on the training set and the energy consumption prediction model, and performing a correction process on the energy consumption prediction data based on the test set and the energy consumption prediction data corresponding to the test set to obtain corrected energy consumption prediction data; 9. The apparatus of claim 8.
10. The apparatus further comprises: a failure risk identification module for obtaining an estimate of a battery state of health for the commercial electric vehicle and for identifying a failure risk for the commercial electric vehicle based on the estimate of the battery state of health and the energy consumption forecast data; 9. The apparatus of claim 8.
11. 1. A computing device including a memory having computer readable instructions stored thereon and one or more processors, comprising: The computer readable instructions, when executed by the one or more processors, cause the one or more processors to perform the method for predicting energy consumption of a commercial electric vehicle as set forth in claim 1. Computer equipment.
12. One or more non-volatile computer-readable storage media having computer-readable instructions stored thereon, The computer readable instructions, when executed by one or more processors, cause the one or more processors to perform the method for predicting energy consumption of a commercial electric vehicle as set forth in claim 1. A computer-readable storage medium.
13. A computer program product comprising a computer program, When the computer program is executed by one or more processors, the one or more processors perform the method for predicting energy consumption of a commercial electric vehicle according to claim 1. Computer program products.
Citation Information
Patent Citations
Device and method for selecting charging method for vehicle driven using battery power
JP2020012695A
Power consumption predicting device
JP2022129116A
Route-Based Distance to Empty Calculation For A Vehicle
US20170038222A1
