A method and device for predicting vehicle energy consumption and a vehicle
By obtaining the average speed and historical data of the vehicle's driving path, the relationship function between driving power and vehicle speed is determined, and the energy consumption of electric vehicles is predicted, which solves the problem of inaccurate prediction of electric vehicle mileage and improves the prediction accuracy and model reliability.
Patent Information
- Application Number
- CN202211294030.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-21
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-10-21
AI Technical Summary
The prediction of electric vehicle cruising range is inaccurate. The existing technology requires a large amount of data and the reliability of the end-to-end model is difficult to verify, resulting in low accuracy of energy consumption allocation prediction.
By obtaining the average speed of the vehicle's driving path within a preset time period in the future, using historical data to determine the relationship function between driving power and vehicle speed, the predicted power distribution is obtained to represent energy consumption, and the prediction results are corrected by the actual driving power to reduce Data acquisition difficulty and improved accuracy.
It improves the accuracy of electric vehicle energy consumption distribution prediction, improves the end-to-end data-driven model, solves the problems of large data collection volume and low accuracy, and reduces the difficulty of solving.
Smart Images

Figure CN115465105B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electric vehicles, and in particular to a method and device for predicting vehicle energy consumption, and a vehicle. Background Art
[0002] At present, the market share of electric vehicles is gradually expanding, but electric vehicles have the disadvantage of relatively inaccurate cruising range. In the prior art, the cruising range of a car is directly based on the input related to energy consumption, such as the user's driving mileage, the average speed predicted in the future, etc., to train a data-driven model, and directly use the trained model to calculate the energy consumption distribution prediction.
[0003] However, this calculation method requires the collection of a large amount of data, and the prediction accuracy also depends on the quality of the collected data. At the same time, it is also difficult to demonstrate or verify the reliability of this end-to-end model. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a method for predicting vehicle energy consumption so as to improve the accuracy of energy consumption distribution prediction of electric vehicles and improve the end-to-end data-driven model.
[0005] In order to solve the above technical problems, the technical solution of the present invention is as follows:
[0006] A method for predicting vehicle energy consumption, comprising:
[0007] Obtain the average speed of the vehicle's driving path within a preset time period in the future;
[0008] According to the average speed and the relationship function between the preset driving power and the vehicle speed, the predicted power distribution of the vehicle within the preset time period is obtained; the predicted power distribution is used to represent the energy consumption of the vehicle, and the relationship function is determined according to the historical data of the vehicle and the relationship between the driving power and the vehicle speed.
[0009] Optionally, obtaining the average speed of the vehicle's driving path within a preset time period in the future includes:
[0010] Obtain the distance and time of the driving route for a preset time period in the future according to the vehicle's navigation;
[0011] The average speed is obtained according to the distance and time of the driving path.
[0012] Optionally, determining the relationship function according to the historical data of the vehicle and the relationship between the driving power and the vehicle speed includes:
[0013] Obtain the relationship between driving power and vehicle speed;
[0014] Determining a correlation coefficient of vehicle speed based on historical data of the vehicle;
[0015] The relationship function is determined according to the correlation coefficient and the relationship between the driving power and the vehicle speed.
[0016] Optionally, the relationship between the driving power and the vehicle speed is determined based on the speed at a preset time within a preset window range, the speed mean square deviation within the preset window range and a correlation coefficient; the correlation coefficient is a coefficient related to at least one of the vehicle's rolling resistance coefficient, vehicle gravity, wind resistance coefficient, windward area, air density, road slope, equivalent mass coefficient taking into account the rotational inertia of the vehicle's rotating parts, the acceleration at the preset time, and the acceleration of gravity.
[0017] Optionally, determining the correlation coefficient of the vehicle speed in the relationship function according to the historical data of the vehicle includes:
[0018] Determining a fitted linear equation of the driving power and the vehicle speed;
[0019] The correlation coefficient is obtained by solving the fitted linear equation using the least square method according to the historical data of the vehicle.
[0020] Optionally, the method for predicting vehicle energy consumption further includes:
[0021] Acquiring the actual driving power of the vehicle within the preset time period;
[0022] According to the difference between the actual driving power and the predicted driving power, a correction coefficient of the predicted driving power is obtained, and the correction coefficient is stored.
[0023] Optionally, the method for predicting vehicle energy consumption further includes:
[0024] Obtain historical accessory energy consumption of the vehicle;
[0025] predicting the energy consumption of the accessory within the preset time period based on the historical energy consumption of the accessory;
[0026] The energy consumption of the entire vehicle is obtained according to the predicted driving power and the energy consumption of the accessories.
[0027] An embodiment of the present invention further provides a vehicle energy consumption prediction device, comprising:
[0028] An acquisition module, used to acquire the average speed of the vehicle's driving path within a preset time period in the future;
[0029] A processing module is used to obtain the predicted power distribution of the vehicle within the preset time period according to the average speed and a preset relationship function between the driving power and the vehicle speed; the predicted power distribution is used to represent the energy consumption of the vehicle, and the relationship function is determined according to the historical data of the vehicle and the relationship between the driving power and the vehicle speed.
[0030] The present invention also provides a car, comprising the vehicle energy consumption prediction device as described above.
[0031] The present invention also provides a computer-readable storage medium storing instructions, which, when executed on a computer, enable the computer to execute the method described above.
[0032] The above solution of the present invention includes at least the following beneficial effects:
[0033] In the above scheme of the present invention, by obtaining the average speed of the vehicle's driving path within a preset time period in the future; according to the average speed and the relationship function between the preset driving power and the vehicle speed, the predicted power distribution of the vehicle within the preset time period is obtained; the relationship function is determined according to the historical data of the vehicle and the relationship between the driving power and the vehicle speed, which solves the problem that a large amount of data needs to be collected for energy consumption prediction, improves the accuracy of energy consumption distribution prediction of electric vehicles, and improves the end-to-end data-driven model. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 is a flow chart of a method for predicting vehicle energy consumption provided by an embodiment of the present invention;
[0035] Figure 2 is a flow chart of a method for predicting vehicle energy consumption according to a specific example of the present invention;
[0036] Figure 3 It is a module schematic diagram of a vehicle energy consumption prediction device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0037] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0038] like Figure 1 As shown, an embodiment of the present invention provides a method for predicting vehicle energy consumption, comprising:
[0039] Step 11, obtaining the average speed of the vehicle's driving path within a preset time period in the future;
[0040] Step 12, obtaining the predicted power distribution of the vehicle within the preset time period based on the average speed and the preset relationship function between the driving power and the vehicle speed; the predicted power distribution is used to represent the energy consumption of the vehicle, and the relationship function is determined based on the historical data of the vehicle and the relationship between the driving power and the vehicle speed.
[0041] This embodiment obtains the average speed of the vehicle's driving path within a preset time period in the future; obtains the predicted power distribution of the vehicle representing the vehicle's energy consumption within the preset time period based on the average speed and a preset relationship function between driving power and vehicle speed; the relationship function is determined based on the vehicle's historical data and the relationship between driving power and vehicle speed, thereby solving the problem of inaccurate prediction of energy consumption distribution of electric vehicles, improving prediction accuracy and improving the end-to-end data-driven model.
[0042] In an optional embodiment of the present invention, step 11 may include:
[0043] Step 111, obtaining the distance and time of the driving path in a future preset time period according to the navigation of the vehicle;
[0044] Step 112: Obtain the average speed according to the distance and time of the driving path.
[0045] In this embodiment, the vehicle navigation system can be used to set a destination, obtain the distance and time of the path from the current location to the destination, and use the ratio of the distance to the time to obtain the average speed.
[0046] In an optional embodiment of the present invention, in step 12, determining the relationship function according to the historical data of the vehicle and the relationship between the driving power and the vehicle speed includes:
[0047] Step 121, obtaining the relationship between driving power and vehicle speed;
[0048] Step 122, determining a correlation coefficient of vehicle speed according to historical data of the vehicle;
[0049] Step 123: determining the relationship function according to the correlation coefficient and the relationship between the driving power and the vehicle speed.
[0050] In step 121, the relationship between the driving power and the vehicle speed includes:
[0051] The relationship between the driving power and the vehicle speed is determined based on the speed at a preset time within a preset window range, the speed mean square error within the preset window range and the correlation coefficient; the correlation coefficient is a coefficient related to at least one of the vehicle's rolling resistance coefficient, vehicle gravity, wind resistance coefficient, A is the windward area, air density, road slope, an equivalent mass coefficient that takes into account the rotational inertia of the vehicle's rotating parts, the acceleration at the preset time, and the acceleration of gravity.
[0052] Specifically, the relationship between the driving power and the vehicle speed is:
[0053]
[0054] Among them, vi is the speed at a preset time within the preset window range; is the speed mean square error within the prediction window; P drv is the driving power; p is the road slope; P1, P2, P3, P4, P5 are the correlation coefficients.
[0055] Here P1 = f R G, where f R is the rolling resistance coefficient, G is the vehicle gravity;
[0056] Among them, Cx is the drag coefficient, A is the windward area, and ρ is the air density;
[0057] P3 = G, where G is the vehicle's gravity;
[0058] Among them, G is the vehicle gravity, g is the gravitational acceleration, λ and a1 are constants;
[0059] Among them, G is the vehicle gravity, g is the gravitational acceleration, and λ and a2 are constants.
[0060] Step 122 may include:
[0061] Step 1221, determining a fitted linear equation of the driving power and the vehicle speed;
[0062] Step 1222: Solve the fitted linear equation using the least square method based on the historical data of the vehicle to obtain the correlation coefficient.
[0063] Here, the least squares method can be used to solve the correlation coefficient in step 1, and the relationship between driving power and vehicle speed can be transformed into:
[0064] Assume the formula of the fitting straight line is: drv =P*V;
[0065] The slope of the fitted line solved by the least squares method is:
[0066] Substitute the historical speed data into the formula:
[0067] Thus the coefficients of the formula are calculated.
[0068] Using the mean square error of speed to calculate power avoids the problem of not being able to obtain future road acceleration and reduces the difficulty of solving the problem.
[0069] When implementing it specifically,
[0070] Obtaining a first set of vehicle speeds, wherein the first set of vehicle speeds includes five different vehicle speed values;
[0071] Substituting the first set of vehicle speeds into the formula Use the least square method to solve and obtain the values of the first set of correlation coefficients P1, P2, P3, P4, and P5;
[0072] Obtaining a second set of vehicle speeds, where the second set of vehicle speeds includes five different vehicle speed values;
[0073] Substituting the second set of vehicle speeds into the formula Use the least square method to solve and obtain the values of the second set of correlation coefficients P1, P2, P3, P4, and P5;
[0074] The above method is executed in a loop until the values of P1, P2, P3, P4, and P5 are calculated.
[0075] In an optional embodiment of the present invention, the method for predicting vehicle energy consumption further includes:
[0076] Step 13, obtaining the actual driving power of the vehicle within the preset time period;
[0077] Step 14: Obtain a correction coefficient of the predicted driving power according to the difference between the actual driving power and the predicted driving power, and store the correction coefficient. The correction coefficient is classified, stored and modified according to road attributes, and used in future energy consumption prediction.
[0078] In an optional embodiment of the present invention, the method for predicting vehicle energy consumption further includes:
[0079] Step 15, obtaining the historical accessory energy consumption of the vehicle;
[0080] Step 16, predicting the energy consumption of the accessory within the preset time period based on the historical energy consumption of the accessory;
[0081] Step 17, obtaining the energy consumption of the entire vehicle according to the predicted driving power and the energy consumption of the accessories.
[0082] Among them, the accessory energy consumption includes the ambient temperature in the cabin, the user's historical target temperature for prediction of air conditioning or heating, and the energy consumption required for vehicle thermal management, such as battery heating.
[0083] In an optional embodiment of the present invention, the method for predicting vehicle energy consumption further includes:
[0084] Step 18: when the average speed of the vehicle's driving path within a preset time period in the future cannot be obtained, the historical driving power is output. The historical driving power can be a statistical value of the historical driving power of a common path obtained by statistics, or a statistical value of the power data of the driver for a certain period.
[0085] like Figure 2 As shown in FIG. 1 , the specific implementation process of the above method includes:
[0086] Step 21, determine the relationship function between the preset driving power and the vehicle speed:
[0087] Step 22, using the least square method to solve the relevant parameters P1, P2, P3, P4, P5: obtain multiple sets of vehicle speeds and calculate the speed mean square difference, substitute the multiple sets of vehicle speeds and speed mean square difference into the formula The relevant parameters P1, P2, P3, P4, and P5 are obtained using the least squares method;
[0088] Step 23, calculate the predicted driving energy consumption distribution: according to the average speed of the vehicle in the future driving path obtained in the navigation, obtain the speed mean square error, and obtain the power P according to the speed and speed mean square error drv ;
[0089] Step 24, using historical data to perform energy consumption prediction correction: according to the difference between the actual driving power and the predicted driving power, obtaining a correction coefficient of the predicted driving power, and storing the correction coefficient;
[0090] Step 25, when the vehicle navigation is not turned on and the average speed of the vehicle's driving path within a preset time period in the future cannot be obtained, energy consumption prediction is performed using historical data.
[0091] In the above-mentioned embodiment of the present invention, a vehicle power prediction model, i.e., the above-mentioned relationship function, is established by referring to the vehicle dynamics model as the original model, thereby improving the accuracy of power prediction and reducing the difficulty of solving the problem; a vehicle power prediction formula is established by using the mean square error of speed instead of acceleration, thereby avoiding the problem of being unable to obtain future road acceleration.
[0092] like Figure 3 As shown, an embodiment of the present invention further provides a vehicle energy consumption prediction device 30, comprising:
[0093] An acquisition module 31 is used to acquire an average speed of a vehicle's driving path within a preset time period in the future;
[0094] The processing module 32 is used to obtain the predicted power distribution of the vehicle within the preset time period according to the average speed and the preset relationship function between the driving power and the vehicle speed; the predicted power distribution is used to represent the energy consumption of the vehicle, and the relationship function is determined according to the historical data of the vehicle and the relationship between the driving power and the vehicle speed.
[0095] Optionally, the acquisition module 31 is specifically used to: acquire the distance and time of the driving path in a future preset time period according to the navigation of the vehicle; and acquire the average speed according to the distance and time of the driving path.
[0096] Optionally, when the processing module 32 determines the relationship function according to the historical data of the vehicle and the relationship between the driving power and the vehicle speed, it is specifically used to:
[0097] Obtain the relationship between driving power and vehicle speed;
[0098] Determining a correlation coefficient of vehicle speed based on historical data of the vehicle;
[0099] The relationship function is determined according to the correlation coefficient and the relationship between the driving power and the vehicle speed.
[0100] Optionally, the relationship between the driving power and the vehicle speed is determined based on the speed at a preset time within a preset window range, the speed mean square deviation within the preset window range and a correlation coefficient; the correlation coefficient is a coefficient related to at least one of the vehicle's rolling resistance coefficient, vehicle gravity, wind resistance coefficient, A is the frontal area, air density, road slope, an equivalent mass coefficient that takes into account the rotational inertia of the vehicle's rotating parts, the acceleration at the preset time, and the acceleration of gravity.
[0101] Optionally, when the processing module 32 determines the correlation coefficient of the vehicle speed in the relationship function according to the historical data of the vehicle, it is specifically used to:
[0102] Determining a fitted linear equation of the driving power and the vehicle speed;
[0103] The correlation coefficient is obtained by solving the fitted linear equation using the least square method according to the historical data of the vehicle.
[0104] Optionally, the processing module 32 is further used to obtain the actual driving power of the vehicle within the preset time period; obtain a correction coefficient of the predicted driving power according to the difference between the actual driving power and the predicted driving power, and store the correction coefficient.
[0105] Optionally, the processing module 32 is also used to obtain the historical accessory energy consumption of the vehicle; predict the energy consumption of the accessory within the preset time period based on the historical accessory energy consumption; and obtain the energy consumption of the entire vehicle based on the predicted driving power and the energy consumption of the accessory.
[0106] It should be noted that the device is a device corresponding to the above method, and all implementation methods in the above method embodiments are applicable to the embodiments of the device and can achieve the same technical effects.
[0107] The embodiment of the present invention further provides a car, comprising the above-mentioned vehicle energy consumption prediction device. All implementations in the above-mentioned method embodiment are applicable to this embodiment and can achieve the same technical effect.
[0108] The embodiment of the present invention also provides a computer-readable storage medium storing instructions, which, when executed on a computer, enable the computer to execute the above method. All implementations in the above method embodiment are applicable to this embodiment and can achieve the same technical effect.
[0109] The embodiment of the present invention provides a method for predicting vehicle energy consumption. By obtaining the average speed of the vehicle's driving path within a preset time period in the future, and using the vehicle's average speed and mean square error to replace acceleration, the problem of not being able to obtain future road acceleration is avoided, and the difficulty of obtaining vehicle data is reduced; then, according to the average speed and the relationship function between the preset driving power and the vehicle speed, the predicted power distribution representing the vehicle's energy consumption within the preset time period is obtained. The relationship function is determined based on the historical data of the vehicle and the relationship between the driving power and the vehicle speed. The vehicle power prediction formula is established for the original model using the vehicle dynamics model, which improves the accuracy of the formula and reduces the difficulty of solving. The problem of energy consumption prediction requiring the collection of a large amount of data is solved, the accuracy of electric vehicle energy consumption distribution prediction is improved, and the end-to-end data-driven model is improved.
[0110] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for predicting vehicle energy consumption, characterized in that: include: Obtain the average speed of the vehicle's driving path within a preset time period in the future; According to the average speed and the relationship function between the preset driving power and the vehicle speed, a predicted power distribution of the vehicle in the preset time period is obtained; the predicted power distribution is used to represent the energy consumption of the vehicle, and the relationship function is determined according to the historical data of the vehicle and the relationship between the driving power and the vehicle speed; Wherein, determining the relationship function according to the historical data of the vehicle and the relationship between the driving power and the vehicle speed includes: Obtain the relationship between driving power and vehicle speed; Determining a correlation coefficient of vehicle speed based on historical data of the vehicle; Determining the relationship function according to the correlation coefficient and the relationship between the driving power and the vehicle speed; Determining a correlation coefficient of vehicle speed based on historical data of the vehicle includes: Determining a fitted linear equation of the driving power and the vehicle speed; Solving the fitted linear equation using the least square method according to the historical data of the vehicle to obtain the correlation coefficient; The relationship function is: ; vi is the speed at a preset time within the preset window; is the speed mean square error within the preset window range; is the driving power; p is the road slope; , , , , is the correlation coefficient; = , is the rolling resistance coefficient, G is the vehicle gravity; = , Cx is the drag coefficient, A is the frontal area, ρ is the air density; , G is the vehicle gravity; , G is the vehicle gravity, g is the gravitational acceleration, , is a constant; , G is the vehicle gravity, g is the gravitational acceleration, , is a constant; According to the average speed of the vehicle in the future driving path obtained in the navigation, the speed mean square error is obtained, and the predicted driving power is obtained according to the speed, the speed mean square error and the relationship function.
2. The method for predicting vehicle energy consumption according to claim 1, characterized in that: Get the average speed of the vehicle's driving path within a preset time period in the future, including: Obtain the distance and time of the driving route for a preset time period in the future according to the vehicle's navigation; The average speed is obtained according to the distance and time of the driving path.
3. The method for predicting vehicle energy consumption according to claim 1, characterized in that: Also includes: Acquiring the actual driving power of the vehicle within the preset time period; According to the difference between the actual driving power and the predicted driving power, a correction coefficient of the predicted driving power is obtained, and the correction coefficient is stored.
4. The method for predicting vehicle energy consumption according to claim 1, characterized in that: Also includes: Obtain historical accessory energy consumption of the vehicle; predicting the energy consumption of the accessory within the preset time period based on the historical energy consumption of the accessory; The energy consumption of the entire vehicle is obtained according to the predicted driving power and the energy consumption of the accessories.
5. A vehicle energy consumption prediction device, characterized in that: include: An acquisition module, used to acquire the average speed of the vehicle's driving path within a preset time period in the future; a processing module, configured to obtain a predicted power distribution of the vehicle within the preset time period according to the average speed and a preset relationship function between the driving power and the vehicle speed; the predicted power distribution is used to represent the energy consumption of the vehicle, and the relationship function is determined according to the historical data of the vehicle and the relationship between the driving power and the vehicle speed; Wherein, the processing module is specifically used for: Obtain the relationship between driving power and vehicle speed; Determining a correlation coefficient of vehicle speed based on historical data of the vehicle; Determining the relationship function according to the correlation coefficient and the relationship between the driving power and the vehicle speed; The processing module is specifically used for: Determining a fitted linear equation of the driving power and the vehicle speed; Solving the fitted linear equation using the least square method according to the historical data of the vehicle to obtain the correlation coefficient; The relationship function is: ; vi is the speed at a preset time within the preset window; is the speed mean square error within the preset window range; is the driving power; p is the road slope; , , , , is the correlation coefficient; = , is the rolling resistance coefficient, G is the vehicle gravity; = , Cx is the drag coefficient, A is the frontal area, ρ is the air density; , G is the vehicle gravity; , G is the vehicle gravity, g is the gravitational acceleration, , is a constant; , G is the vehicle gravity, g is the gravitational acceleration, , is a constant; According to the average speed of the vehicle in the future driving path obtained in the navigation, the speed mean square error is obtained, and the predicted driving power is obtained according to the speed, the speed mean square error and the relationship function.
6. A car, characterized in that: Includes the vehicle energy consumption prediction device as described in claim 5.
7. A computer-readable storage medium, characterized in that: Instructions are stored, and when the instructions are executed on a computer, the computer is caused to execute the method according to any one of claims 1 to 4.
