Vehicle speed acquisition method and device

By combining historical vehicle speed and external vehicle environment information, a vehicle speed prediction model is constructed, which solves the problem of low accuracy of traditional vehicle speed prediction, improves the energy-saving optimization effect of the hybrid system, and achieves more accurate energy management and power control.

CN118790264APending Publication Date: 2024-10-18WEICHAI POWER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411033766.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

Traditional vehicle speed prediction methods only consider the vehicle's own status information and do not utilize the vehicle's surrounding environment information, resulting in low prediction accuracy and affecting the energy-saving optimization effect of the hybrid system.

Method used

By obtaining the historical speed set of the target vehicle and the surrounding environment image outside the vehicle, the number and speed of surrounding vehicles are determined. Based on this information, a vehicle speed prediction model is constructed, and the own vehicle speed and environmental information are considered for prediction.

Benefits of technology

It improves the accuracy of vehicle speed prediction, provides accurate data for subsequent energy management, reduces energy consumption, and improves the fuel economy and power performance of the hybrid system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118790264A_ABST
    Figure CN118790264A_ABST
Patent Text Reader

Abstract

The invention discloses a vehicle speed acquisition method, which is used for realizing vehicle speed prediction and acquiring a historical vehicle speed set of a target vehicle, and the historical vehicle speed set comprises vehicle speeds of the target vehicle at a plurality of historical moments. Meanwhile, a first image, shot by the target vehicle, of the surrounding environment outside the vehicle is obtained, and first vehicle data around the target vehicle and the vehicle speed of each other vehicle are determined based on the first image; then, determining a vehicle speed prediction set corresponding to the target vehicle at certain moments in the future based on the historical vehicle speed set, the first vehicle number and the vehicle speed of each other vehicle; namely, when the vehicle speed is predicted, not only is the vehicle speed of the vehicle considered, but also the environment information around the vehicle is considered, so that the vehicle speed prediction precision is improved, accurate data are provided for subsequent energy management, and energy consumption is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of vehicle energy management, and in particular to a method and device for obtaining vehicle speed. Background Art

[0002] Hybrid vehicles are driven by a composite power source consisting of a power battery and an internal combustion engine. To achieve the power coupling of the dual power sources, the energy management strategy plays a central role. The energy management strategy monitors the data from each sensor in real time, and uses the power coupling device to control the output of the motor and engine torque, so that the hybrid vehicle has good power and fuel economy.

[0003] When performing energy management, the accuracy of vehicle speed prediction directly affects the energy-saving optimization effect of the hybrid system. However, the poor accuracy of traditional vehicle speed prediction leads to unsatisfactory energy-saving optimization effect of the hybrid system. Summary of the invention

[0004] In view of this, an embodiment of the present application provides a vehicle speed acquisition method and device to improve the accuracy of vehicle speed prediction.

[0005] To solve the above problems, the technical solutions provided in the embodiments of the present application are as follows:

[0006] In a first aspect of the present application, a vehicle speed acquisition method is provided, which is applied to a controller and includes:

[0007] Obtaining a historical vehicle speed set corresponding to the target vehicle at the current moment, wherein the historical vehicle speed set includes vehicle speeds at multiple historical moments;

[0008] Acquire a first image of the surrounding environment outside the target vehicle taken at the current moment;

[0009] determining a first number of vehicles located around the target vehicle and a speed of each vehicle based on the first image;

[0010] A vehicle speed prediction set of the target vehicle in a future time period is determined based on the historical vehicle speed set, the first number of vehicles, and the vehicle speed of each vehicle, wherein the vehicle speed prediction set includes vehicle speeds corresponding to multiple moments in the future time period.

[0011] In a second aspect of the present application, a vehicle speed acquisition device is provided, the device being applied to a controller, comprising:

[0012] An acquisition unit, used to acquire a historical vehicle speed set corresponding to the target vehicle at a current moment, wherein the historical vehicle speed set includes vehicle speeds at multiple historical moments;

[0013] The acquisition unit is further used to acquire a first image of the surrounding environment outside the target vehicle taken at the current moment;

[0014] a determining unit, configured to determine the number of first vehicles located around the target vehicle and the speed of each vehicle based on the first image;

[0015] A prediction unit is used to determine a speed prediction set of the target vehicle in a future time period based on the historical speed set, the first number of vehicles and the speed of each vehicle, wherein the speed prediction set includes vehicle speeds corresponding to multiple moments in the future time period.

[0016] In a third aspect of the present application, a controller is provided, comprising: a processor, a memory;

[0017] The memory is used to store computer-readable instructions or computer programs;

[0018] The processor is used to read the computer-readable instructions or the computer program so that the controller executes the vehicle speed acquisition method described in the first aspect.

[0019] In a fourth aspect of the present application, a vehicle is provided, the vehicle comprising: the controller, the engine and the motor according to the second aspect or the third aspect;

[0020] The engine and the motor are used to provide power for the vehicle.

[0021] In a fifth aspect of the present application, a computer-readable storage medium is provided, wherein instructions are stored in the computer-readable storage medium. When the instructions are executed on a device, the device executes the vehicle speed acquisition method described in the first aspect.

[0022] In a sixth aspect of the present application, a computer program product is provided. When the computer program product is run on a computer, the computer executes the vehicle speed acquisition method described in the first aspect.

[0023] It can be seen that the embodiments of the present application have the following beneficial effects:

[0024] In the present application, in order to predict the speed of a vehicle, a historical speed set of the target vehicle is obtained, and the historical speed set includes the speed of the target vehicle at multiple historical moments. At the same time, a first image of the surrounding environment outside the target vehicle is obtained, and the first vehicle data around the target vehicle and the speed of each other vehicle are determined based on the first image. Then, based on the historical speed set, the number of first vehicles, and the speed of each other vehicle, the speed set corresponding to the target vehicle at certain moments in the future is determined. That is, when predicting the speed, the present application not only considers the speed of the vehicle itself, but also considers the environmental information around the vehicle, thereby improving the speed prediction accuracy, providing accurate data for subsequent energy management, and reducing energy consumption. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 A diagram of a vehicle speed prediction model generation method provided in an embodiment of the present application;

[0026] Figure 2 A vehicle speed prediction model structure diagram provided in an embodiment of the present application;

[0027] Figure 3 A flow chart of a vehicle speed acquisition method provided in an embodiment of the present application;

[0028] Figure 4 A structural diagram of a vehicle speed acquisition device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0029] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the embodiments of the present application are further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0030] After research, it was found that traditional vehicle speed prediction only takes into account the vehicle's own status information, and does not utilize information about the vehicle's surrounding environment, resulting in low vehicle speed prediction accuracy, which in turn affects the vehicle's energy-saving optimization effect.

[0031] Based on this, the present application proposes a vehicle speed prediction method, which takes into account the vehicle's historical driving speed and the information of the vehicle's surrounding environment within the field of view captured by the vehicle through the camera, thereby improving the accuracy of vehicle speed prediction and thereby improving the energy-saving optimization effect of the power system.

[0032] To facilitate understanding of the technical solution of the present application, the training process of the vehicle speed prediction model involved in the present application will be described below.

[0033] See also Figure 1 , which is a flow chart of a vehicle speed prediction model generation method provided in an embodiment of the present application, such as Figure 1 As shown, the method includes:

[0034] S101: For any target moment, obtain a first vehicle speed set and a second vehicle speed set corresponding to the target moment.

[0035] S102: Acquire a second image of the surrounding environment outside the target vehicle taken at the target time.

[0036] In this embodiment, in order to realize the training of the vehicle speed prediction model, the target vehicle can be driven to complete the collection of relevant data, specifically, the vehicle speed is collected and the surrounding environment image is captured.

[0037] After completing the relevant data collection, multiple target moments may be selected within the collection time period, and for any target moment, the first vehicle speed set, the second vehicle speed set and the second image corresponding to the target moment may be obtained.

[0038] For example, the collected vehicle speed data (vehicle speed data of the vehicle itself) is processed, and the vehicle speed data at the time t-1, t-2, t-3...tn is obtained according to the vehicle speed at each time t, and the obtained vehicle speed data at the time t-1, t-2, t-3...tn is stored in the variable v_hist (first vehicle speed set); at the same time, the vehicle speed data at the time t+1, t+2, t+3...t+m is obtained, and the obtained vehicle speed data at the time t+1, t+2, t+3...t+m is stored in the variable v_pre (second vehicle speed set). Among them, the values ​​of n and m can be the same or different, and the specific values ​​can be set according to actual needs.

[0039] S103: Determine the number of second vehicles located around the target vehicle and the speed of each vehicle based on the second image.

[0040] The second number of vehicles refers to the number of other vehicles included in the second image, and the speed of each vehicle refers to the speed of other vehicles included in the second image.

[0041] The second number of vehicles is determined based on the second image, which can be achieved by:

[0042] One is to detect vehicles in the second image using a pre-trained detection model that can identify vehicles in the image and output a bounding box of the vehicle. The specific process may include: pre-processing the second image, including resizing, normalization, etc.; inputting the pre-processed second image into the detection model, which will return the location of the vehicle (bounding box); and calculating the number of detected vehicles.

[0043] The other is color and shape based detection: using color segmentation, edge detection and contour analysis to identify vehicles. The specific process may include: preprocessing the second image, such as denoising, graying, edge detection; extracting the color features and shape features of the vehicle; identifying the vehicle through feature matching; and calculating the number of detected vehicles x1.

[0044] The vehicle speed is determined based on the second image and the target tracking algorithm, that is, the speed is estimated by tracking the position of the vehicle in consecutive frames. The specific process includes: detecting the position of the vehicle in each frame; tracking the position change of the vehicle in different frames; and calculating its speed x2 according to the position change of the vehicle in the time series. Among them, speed = distance / time, distance is the moving distance of the vehicle between consecutive frames, and time is the frame interval.

[0045] S104: Training the vehicle speed prediction model using training samples corresponding to multiple target moments until a preset condition is met.

[0046] The first vehicle speed set, the second vehicle number, and the speed of each vehicle in the training samples corresponding to each target moment are used as inputs of the vehicle speed prediction model, and the second vehicle speed set is used as a label.

[0047] During the training process, the above-mentioned first vehicle speed set, the second vehicle data and the speed of each vehicle are input into the vehicle speed prediction model to obtain the output result of the vehicle speed prediction model. The parameters of the vehicle speed prediction model are adjusted based on the second vehicle speed set and the output result, and retrained until the preset conditions are met.

[0048] The preset condition may be that the number of iterations reaches a preset number threshold, or the value of the loss function between the output result and the second vehicle speed is less than or equal to a preset threshold.

[0049] For example, the above v_hist, v_pre, x1, and x2 are established in a corresponding relationship to obtain a training data set. Specifically, v_hist, x1, and x2 are used as inputs, and v_pr is used as the corresponding output. That is, the input is: the historical vehicle speed sequence v_hist corresponding to the current moment, the number of vehicles x1 and the corresponding vehicle speed x2 in the field of view obtained by the camera at the current moment; the output is: the predicted vehicle speed sequence v_pre.

[0050] The vehicle speed prediction model may be a neural network model based on an extreme learning machine (ELM) algorithm. Figure 2 As shown, it includes: input layer, hidden layer and output layer. The input layer includes 3 nodes, namely: v_hist, x1, x2; the hidden layer includes m nodes, m is an adjustable parameter of the neural network; the output layer includes one node, namely the predicted vehicle speed sequence v_pre.

[0051] Among them, the mathematical model of the vehicle speed prediction model is as follows:

[0052]

[0053] Among them, L is the number of hidden units, which is an adjustable parameter; N is the number of training samples, which is an adjustable parameter; β is the weight vector between the i-th hidden layer and the output; w is the weight vector between the input and the output; g is the activation function; b is the bias vector; x is the input vector, which is v_hist, x1, x2. β, w, b are obtained by training the model.

[0054] The vehicle speed prediction model is trained using the training data set obtained above to obtain the parameters of β, w, and b, that is, a trained vehicle speed prediction model is obtained for predicting the vehicle speed sequence.

[0055] See also Figure 3 , which is a flow chart of a vehicle speed prediction method provided in an embodiment of the present application, such as Figure 3 As shown, the method includes:

[0056] S301: Obtain the historical vehicle speed set corresponding to the target vehicle at the current moment.

[0057] The historical vehicle speed set includes the vehicle speeds of the target vehicle at multiple historical moments, and the historical vehicle speed set may include the vehicle speed at the current moment.

[0058] S302: Acquire a first image of the surrounding environment outside the target vehicle taken at the current moment.

[0059] S303: Determine the number of first vehicles located around the target vehicle and the speed of each vehicle based on the first image.

[0060] The first number of vehicles refers to the number of other vehicles included in the first image, and the speed of each vehicle refers to the speed of other vehicles included in the first image. For the specific implementation of determining the first number of vehicles and the speed based on the first image, please refer to the relevant description in the above method embodiment.

[0061] S304: Determine a vehicle speed prediction set of the target vehicle in a future time period based on the historical vehicle speed set, the first vehicle number, and the vehicle speed of each vehicle.

[0062] The vehicle speed prediction set includes the vehicle speeds corresponding to multiple moments in the future time period. For example, if the current moment is t, the vehicle speed prediction set includes the vehicle speeds at multiple moments such as t+1, t+2, t+3…t+n.

[0063] The specific implementation of S304 may include:

[0064] One is to use a pre-established mathematical calculation model to calculate the vehicle speed prediction set in the future time period. In this data calculation model, the historical vehicle speed set, the first vehicle number and the speed of each vehicle are used as independent variables, and the vehicle speed prediction set is used as a dependent variable.

[0065] Another is to use Figure 1 The vehicle speed prediction model generated by the method obtains a predicted vehicle speed set in a future time period. Specifically, the historical vehicle speed set, the first vehicle number, and the speed of each vehicle are input into the vehicle speed prediction model to obtain a vehicle speed prediction set of the target vehicle output by the vehicle speed prediction model. The vehicle speed prediction model is pre-trained and generated using training samples, and the training samples include environmental data determined based on an image taken of the target vehicle, and the environmental data includes data such as the number of other vehicles included in the image and the speeds of other vehicles.

[0066] It can be seen that when predicting the vehicle speed, the present application not only takes into account the vehicle's own speed, but also takes into account the environmental information around the vehicle, thereby improving the accuracy of vehicle speed prediction, providing accurate data for subsequent energy management, and reducing energy consumption.

[0067] In order to improve the fuel economy of fuel cell hybrid vehicles and maintain the energy balance of batteries, the vehicle will be energy managed. Among them, the most common energy management strategy is the equivalent consumption minimization strategy (ECMS), the implementation of which depends largely on the value of the equivalent factor.

[0068] In the actual driving process, the situation of the equivalent factor is related to the actual vehicle operating state. In order for the equivalent factor to quickly adapt to the vehicle's driving state when the period changes, the present application adjusts the equivalent factor by integrating the vehicle speed and slope. Specifically, the value of the equivalent factor at the current moment is determined based on the vehicle speed prediction set and the slope prediction set. Among them, the slope prediction set includes the slopes corresponding to multiple moments in the future time period, and the slope prediction set can be determined based on the measurement value of the slope sensor at the current moment and the corresponding relationship. Among them, the corresponding relationship is used to indicate the relationship between the slope at the next moment and the slope at the current moment, that is, the corresponding relationship is used to indicate the mapping relationship between the slopes of two adjacent moments.

[0069] In specific implementation, a slope prediction model can be pre-built, as shown in formula (2):

[0070] s(t+1)=s(t)+0.05*dt

[0071] s(t+2)=s(t+1)+0.05*dt

[0072] s(t+3)=s(t+2)+0.05*dt

[0073] s(t+n)=s(t+n-1)+0.05*dt (2)

[0074] Wherein, s(t) represents the road slope value at the tth moment, and the slope value at the tth moment comes from the slope sensor of the target vehicle.

[0075] After obtaining the vehicle speed prediction set and the slope prediction set, the value of the equivalent factor at the current moment can be determined based on the following method: determine the vehicle speed mean and the vehicle speed variance based on the vehicle speed prediction set; determine the slope mean and the slope variance based on the slope prediction set; multiply the vehicle speed mean by the vehicle speed adjustment coefficient, and then divide it by the vehicle speed variance to obtain a first parameter value; multiply the slope mean by the slope adjustment coefficient, and then divide it by the slope variance to obtain a second parameter value; determine the sum of the initial value of the equivalent factor, the first parameter value, and the second parameter value as the value of the equivalent factor at the current moment.

[0076] For details, please refer to the following formula:

[0077]

[0078] Among them, v pre is the vehicle speed prediction set obtained above, mean(v pre ) is the average value of the vehicle speed prediction set, v sq is the mean square error of the vehicle speed prediction set, k v is the vehicle speed adjustment coefficient, k s is the slope adjustment coefficient, s pre is the predicted slope sequence, mean(s pre ) is the average value of the slope prediction set obtained above, s sq is the mean square error of the slope prediction ensemble.

[0079] After obtaining the value of the equivalent factor at the current moment, the fuel economy of the engine and the maintenance of the battery power can be considered to establish an objective function, which includes the fuel consumption part and the part of the electric energy consumption converted into the fuel consumption part based on the equivalent factor. Specifically, the objective function table items are in the following form:

[0080] H=m fuel +α*n fuel (4)

[0081] m fuel is the instantaneous fuel consumption of the engine, n fuel is the motor energy consumption, where the instantaneous fuel consumption of the engine is determined by the engine power and the engine fuel consumption rate. The specific calculation formula is as follows:

[0082]

[0083] P e is the engine power, b e is the fuel consumption rate of the engine.

[0084]

[0085] Among them, P e is the engine power (kW), be represents the fuel consumption rate (g / kWh), be can be obtained by looking up the engine fuel consumption MAP, T e is the engine torque (N·m), n e is the engine speed (rpm).

[0086] The sum of the engine power and the motor power is equal to the required power of the target vehicle, that is, the total required power P of the transmission input shaft. The required power is the driver's target required power, which is a known quantity.

[0087] Assume that the motor power is Pm and the motor efficiency is q. q can be obtained by finding the motor efficiency MAP. The product of the motor power and the motor efficiency is the motor energy consumption. Then the objective function can be expressed as:

[0088] H=(Pe*be) / 3600+α*(Pm*q)

[0089] H=(Pe*be) / 3600+α*((P-Pe)*q)

[0090] H=(Te*ne*be) / (3600*9550)+α*((P-Te*ne / 9550)*q)

[0091] After the conversion of the above formulas, the objective function can be expressed as a function with the engine torque as the independent variable, and then the engine torque is determined with the goal of minimizing the objective function. The engine power is determined based on the engine torque and engine speed, and then the motor power is determined. The motor torque is determined based on the calculation formula between the motor power, the motor torque and the motor speed. The optimal engine torque and the optimal motor torque calculated above are sent to the engine control unit and the motor control unit through the CAN bus for execution, thereby controlling the vehicle's driving.

[0092] Based on the above method embodiment, an embodiment of the present application provides a vehicle speed acquisition device, which will be described below in conjunction with the accompanying drawings.

[0093] See also Figure 4 , which is a structural diagram of a vehicle speed acquisition device provided in an embodiment of the present application, such as Figure 4 As shown, the device 400 includes: an acquisition unit 401, a determination unit 402 and a prediction unit 403.

[0094] An acquisition unit 401 is used to acquire a historical vehicle speed set corresponding to the target vehicle at the current moment, wherein the historical vehicle speed set includes vehicle speeds at multiple historical moments;

[0095] The acquisition unit 401 is further used to acquire a first image of the surrounding environment outside the target vehicle taken at the current moment;

[0096] A determining unit 402, configured to determine the number of first vehicles located around the target vehicle and the speed of each vehicle based on the first image;

[0097] The prediction unit 403 is used to determine a speed prediction set of the target vehicle in a future time period based on the historical speed set, the first number of vehicles and the speed of each vehicle, wherein the speed prediction set includes vehicle speeds corresponding to multiple moments in the future time period.

[0098] In some embodiments, the prediction unit 403 is specifically used to input the historical vehicle speed set, the first number of vehicles, and the speed of each vehicle into a vehicle speed prediction model to obtain a vehicle speed prediction set output by the vehicle speed prediction model, wherein the vehicle speed prediction model is pre-trained and generated using training samples, and the training samples include environmental data determined based on images taken by the target vehicle;

[0099] In some embodiments, the training process of the vehicle speed prediction model includes:

[0100] For any target time, a first vehicle speed set and a second vehicle speed set corresponding to the target time are obtained, wherein each time corresponding to the first vehicle speed set is not later than the target time, and each time corresponding to the second vehicle speed set is not earlier than the target time;

[0101] Acquire a second image of the surrounding environment outside the target vehicle taken at the target time;

[0102] determining the number of second vehicles located around the target vehicle and the speed of each vehicle based on the second image;

[0103] The vehicle speed prediction model is trained using the training samples corresponding to the target moment until a preset condition is met, the first vehicle speed set, the second number of vehicles, and the speed of each vehicle in the training samples are used as inputs, and the second vehicle speed set is used as a label.

[0104] In some embodiments, the determination unit 402 is also used to obtain the required power corresponding to the target vehicle at the current moment; the engine torque and the motor torque are determined with the goal of minimizing the objective function, the sum of the engine power generated by the engine based on the engine torque and the motor power generated by the motor based on the motor torque is the required power, the objective function includes fuel consumption and electric energy consumption converted into fuel consumption based on an equivalent factor, the fuel consumption is determined by the engine power, and the electric energy consumption is determined by the motor power.

[0105] In some embodiments, the determination unit 402 is further used to determine the value of the equivalent factor at the current moment based on the vehicle speed prediction set and the slope prediction set, and the slope prediction set includes the slopes corresponding to multiple moments in the future time period.

[0106] In some embodiments, the determination unit 402 is specifically used to determine the vehicle speed mean and vehicle speed variance based on the vehicle speed prediction set; determine the slope mean and slope variance based on the slope prediction set; multiply the vehicle speed mean by the vehicle speed adjustment coefficient, and then divide it by the vehicle speed variance to obtain a first parameter value; multiply the slope mean by the slope adjustment coefficient, and then divide it by the slope variance to obtain a second parameter value; and determine the sum of the initial value of the equivalent factor, the first parameter value, and the second parameter value as the value of the equivalent factor at the current moment.

[0107] In some embodiments, the acquisition unit 401 is further used to acquire the measurement value of the slope sensor at the current moment;

[0108] The determining unit 402 is further configured to determine the slope prediction set based on the measurement values ​​and the corresponding relationship, where the corresponding relationship is used to indicate the relationship between the slope at the next moment and the slope at the current moment.

[0109] It should be noted that the information execution process of each unit in the above-mentioned device and other contents can be specifically referred to the description in the method embodiment shown in the above-mentioned application, and will not be repeated here.

[0110] In addition, an embodiment of the present application provides a controller, including: a processor, a memory;

[0111] The memory is used to store computer-readable instructions or computer programs;

[0112] The processor is used to read the computer-readable instructions or the computer program so that the controller implements the vehicle speed acquisition method.

[0113] The embodiment of the present application also provides a vehicle, including: a controller, an engine and a motor;

[0114] A controller, used to execute the above method embodiment;

[0115] An engine or electric motor that powers the vehicle.

[0116] An embodiment of the present application provides a computer-readable storage medium, including instructions or computer programs, which, when executed on a computer, enable the computer to execute the vehicle speed acquisition method described above.

[0117] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referred to each other. For the system or device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0118] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0119] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0120] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0121] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A vehicle speed acquisition method, characterized in that: The method is applied to a controller and comprises: Obtaining a historical vehicle speed set corresponding to the target vehicle at the current moment, wherein the historical vehicle speed set includes vehicle speeds at multiple historical moments; Acquire a first image of the surrounding environment outside the target vehicle taken at the current moment; determining a first number of vehicles located around the target vehicle and a speed of each vehicle based on the first image; A vehicle speed prediction set of the target vehicle in a future time period is determined based on the historical vehicle speed set, the first number of vehicles, and the vehicle speed of each vehicle, wherein the vehicle speed prediction set includes vehicle speeds corresponding to multiple moments in the future time period.

2. The method according to claim 1, characterized in that The step of determining a predicted vehicle speed set of the target vehicle in a future time period based on the historical vehicle speed set, the number of vehicles, and the vehicle speed of each vehicle includes: The historical vehicle speed set, the first number of vehicles, and the speed of each vehicle are input into a vehicle speed prediction model to obtain a vehicle speed prediction set output by the vehicle speed prediction model. The vehicle speed prediction model is pre-trained and generated using training samples, and the training samples include environmental data determined based on images taken of the target vehicle.

3. The method according to claim 2, characterized in that The training process of the vehicle speed prediction model includes: For any target time, a first vehicle speed set and a second vehicle speed set corresponding to the target time are obtained, wherein each time corresponding to the first vehicle speed set is not later than the target time, and each time corresponding to the second vehicle speed set is not earlier than the target time; Acquire a second image of the surrounding environment outside the target vehicle taken at the target time; determining the number of second vehicles located around the target vehicle and the speed of each vehicle based on the second image; The vehicle speed prediction model is trained using the training samples corresponding to the target moment until a preset condition is met, the first vehicle speed set, the second number of vehicles, and the speed of each vehicle in the training samples are used as inputs, and the second vehicle speed set is used as a label.

4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: Obtaining the required power corresponding to the target vehicle at the current moment; With the goal of minimizing the objective function, the engine torque and the motor torque are determined, the sum of the engine power generated by the engine based on the engine torque and the motor power generated by the motor based on the motor torque is the required power, the objective function includes fuel consumption and electric energy consumption converted into fuel consumption based on an equivalent factor, the fuel consumption is determined by the engine power, and the electric energy consumption is determined by the motor power.

5. The method according to claim 4, characterized in that The method further comprises: The value of the equivalent factor at the current moment is determined based on the vehicle speed prediction set and the slope prediction set, and the slope prediction set includes the slopes corresponding to multiple moments in the future time period.

6. The method according to claim 5, characterized in that The determining the value of the equivalent factor at the current moment based on the vehicle speed prediction set and the slope prediction set includes: Determining a vehicle speed mean and a vehicle speed variance based on the vehicle speed prediction set; Determining a slope mean and a slope variance based on the slope prediction set; Multiplying the vehicle speed mean by the vehicle speed adjustment coefficient and then dividing the result by the vehicle speed variance to obtain a first parameter value; Multiply the slope mean by the slope adjustment coefficient and divide the result by the slope variance to obtain a second parameter value; The sum of the initial value of the equivalent factor, the first parameter value and the second parameter value is determined as the value of the equivalent factor at the current moment.

7. The method according to claim 5 or 6, characterized in that: The method further comprises: Get the measured value of the slope sensor at the current moment; The slope prediction set is determined based on the measurement values ​​and a corresponding relationship, where the corresponding relationship is used to indicate the relationship between the slope at a next moment and the slope at a current moment.

8. A vehicle speed acquisition device, characterized in that: The device is applied to a controller, comprising: An acquisition unit, used to acquire a historical vehicle speed set corresponding to the target vehicle at a current moment, wherein the historical vehicle speed set includes vehicle speeds at multiple historical moments; The acquisition unit is further used to acquire a first image of the surrounding environment outside the target vehicle taken at the current moment; a determining unit, configured to determine the number of first vehicles located around the target vehicle and the speed of each vehicle based on the first image; A prediction unit is used to determine a speed prediction set of the target vehicle in a future time period based on the historical speed set, the first number of vehicles and the speed of each vehicle, wherein the speed prediction set includes vehicle speeds corresponding to multiple moments in the future time period.

9. A controller, characterized in that: include: Processor, memory; The memory is used to store computer-readable instructions or computer programs; The processor is used to read the computer-readable instructions or the computer program so that the controller executes the vehicle speed acquisition method according to any one of claims 1 to 7.

10. A vehicle, characterized in that: The vehicle comprises: the controller, engine and motor according to claim 8 or 9; The engine and the motor are used to provide power for the vehicle.