[go: up one dir, main page]

CN118430224A - Method, device, electronic device and readable storage medium for predicting vehicle speed - Google Patents

Method, device, electronic device and readable storage medium for predicting vehicle speed Download PDF

Info

Publication number
CN118430224A
CN118430224A CN202310094479.9A CN202310094479A CN118430224A CN 118430224 A CN118430224 A CN 118430224A CN 202310094479 A CN202310094479 A CN 202310094479A CN 118430224 A CN118430224 A CN 118430224A
Authority
CN
China
Prior art keywords
acceleration
vehicle
speed
moment
state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310094479.9A
Other languages
Chinese (zh)
Inventor
吴凯
马建民
程洋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Contemporary Amperex Technology Co Ltd
Contemporary Amperex Intelligence Technology Shanghai Ltd
Original Assignee
Contemporary Amperex Technology Co Ltd
Contemporary Amperex Intelligence Technology Shanghai Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Contemporary Amperex Technology Co Ltd, Contemporary Amperex Intelligence Technology Shanghai Ltd filed Critical Contemporary Amperex Technology Co Ltd
Priority to CN202310094479.9A priority Critical patent/CN118430224A/en
Publication of CN118430224A publication Critical patent/CN118430224A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/01Detecting movement of traffic to be counted or controlled
    • G08G1/0104Measuring and analyzing of parameters relative to traffic conditions
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/01Detecting movement of traffic to be counted or controlled
    • G08G1/0104Measuring and analyzing of parameters relative to traffic conditions
    • G08G1/0108Measuring and analyzing of parameters relative to traffic conditions based on the source of data
    • G08G1/0112Measuring and analyzing of parameters relative to traffic conditions based on the source of data from the vehicle, e.g. floating car data [FCD]
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/01Detecting movement of traffic to be counted or controlled
    • G08G1/0104Measuring and analyzing of parameters relative to traffic conditions
    • G08G1/0125Traffic data processing
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/01Detecting movement of traffic to be counted or controlled
    • G08G1/052Detecting movement of traffic to be counted or controlled with provision for determining speed or overspeed

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Control Of Driving Devices And Active Controlling Of Vehicle (AREA)

Abstract

The application belongs to the field of intelligent automobiles, and particularly relates to a method and device for predicting a vehicle speed, electronic equipment and a readable storage medium. Because the method can determine the working condition state of the vehicle based on the driving data; the vehicle speed is predicted in the determined operating condition, so that the predicted vehicle speed in the determined operating condition is less likely than the predicted vehicle speed in the non-determined operating condition, that is, the predicted vehicle speed in the determined operating condition is less likely than the predicted vehicle speed in the non-determined operating condition, the numerical range of the predicted vehicle speed can be narrowed, the final predicted result can be determined in a smaller numerical range, and the accuracy of the predicted vehicle speed can be improved.

Description

预测车速的方法、装置、电子设备和可读存储介质Method, device, electronic device and readable storage medium for predicting vehicle speed

技术领域Technical Field

本申请属于智能汽车领域,尤其涉及一种预测车速的方法、装置、电子设备和可读存储介质。The present application relates to the field of smart cars, and in particular to a method, device, electronic device and readable storage medium for predicting vehicle speed.

背景技术Background technique

在智能汽车领域,通过车速预测算法可把未来一段时间的行驶数据传递给车辆决策机构进行分析,从而制定最佳的行驶策略,是车辆智能化不可缺少的一环。但是,现有的车速预测算法对车速的预测结果不准确。In the field of smart cars, the speed prediction algorithm can transmit the driving data of a period of time in the future to the vehicle decision-making body for analysis, so as to formulate the best driving strategy, which is an indispensable part of vehicle intelligence. However, the existing speed prediction algorithm does not accurately predict the speed of the vehicle.

发明内容Summary of the invention

本申请实施例提供一种预测车速的方法、装置、电子设备和可读存储介质,提升预测车速的准确性。The embodiments of the present application provide a method, device, electronic device and readable storage medium for predicting vehicle speed, thereby improving the accuracy of predicting vehicle speed.

第一方面,提供了一种预测车速的方法,包括:In a first aspect, a method for predicting vehicle speed is provided, comprising:

获取车辆在第一时间段内的行驶数据;Acquire driving data of the vehicle in a first time period;

基于所述行驶数据,确定所述车辆的工况状态;Determining the operating state of the vehicle based on the driving data;

基于所述车辆的工况状态,确定所述车辆在第一时刻的车速,所述第一时刻晚于所述第一时间段。Based on the operating state of the vehicle, a vehicle speed of the vehicle at a first moment is determined, and the first moment is later than the first time period.

本申请实施例中,由于可以通过行驶数据,确定车辆的工况状态,在确定的工况状态下对车速进行预测,相对于在非确定的工况状态下对车速进行预测,可以缩小预测的车速的数值范围,在一个更小的数值范围内去确定最终的预测结果,从而可以提升预测车速的准确性。In the embodiment of the present application, since the operating state of the vehicle can be determined through driving data and the vehicle speed can be predicted under a determined operating state, the numerical range of the predicted vehicle speed can be narrowed compared to predicting the vehicle speed under an uncertain operating state, and the final prediction result can be determined within a smaller numerical range, thereby improving the accuracy of the predicted vehicle speed.

在一个实施例中,所述基于所述行驶数据,确定所述车辆的工况状态,包括:In one embodiment, determining the operating state of the vehicle based on the driving data includes:

基于所述行驶数据,确定所述车辆在所述第一时间段内的行驶参数,所述行驶参数包括以下至少一个:最大加速度、最小加速度、平均车速、停车时间比、低速时间比、中速时间比和高速时间比;Determine, based on the driving data, driving parameters of the vehicle in the first time period, the driving parameters comprising at least one of the following: maximum acceleration, minimum acceleration, average vehicle speed, parking time ratio, low speed time ratio, medium speed time ratio, and high speed time ratio;

根据所述行驶参数,确定所述车辆的工况状态。The operating state of the vehicle is determined according to the driving parameters.

本申请实施例,由于可以通过行驶数据确定车辆在第一时间段内的行驶参数,从而可以根据行驶参数,确定车辆的工况状态,可以准确的确定出车辆的工况状态。In the embodiment of the present application, since the driving parameters of the vehicle in the first time period can be determined through the driving data, the operating state of the vehicle can be determined based on the driving parameters, and the operating state of the vehicle can be accurately determined.

在一个实施例中,根据所述行驶参数,确定所述车辆的工况状态,包括:In one embodiment, determining the operating state of the vehicle according to the driving parameters includes:

将所述行驶参数输入工况识别模型,得到所述车辆的工况状态。The driving parameters are input into a working condition identification model to obtain the working condition state of the vehicle.

本申请实施例中,由于是将行驶参数输入工况识别模型,得到车辆的工况状态,可以提高识别工况状态的准确性。In the embodiment of the present application, since the driving parameters are input into the operating condition identification model to obtain the operating condition status of the vehicle, the accuracy of identifying the operating condition status can be improved.

在一个实施例中,所述工况识别模型是基于以下方式训练得到的:In one embodiment, the operating condition identification model is trained based on the following method:

针对每种工况状态,选取预设组数的训练数据,每组所述训练数据包括预设个数的行驶参数和一个基准分析结果;For each operating condition, a preset number of sets of training data are selected, each set of the training data includes a preset number of driving parameters and a benchmark analysis result;

基于所述训练数据对所述工况识别模型进行训练,直至所述工况识别模型收敛。The operating condition identification model is trained based on the training data until the operating condition identification model converges.

通过本申请实施例的训练方法,可以使训练后的工况识别模型识别工况状态的准确率更高。Through the training method of the embodiment of the present application, the trained operating condition recognition model can have a higher accuracy in identifying the operating condition state.

在一个实施例中,所述基于所述车辆的工况状态,确定所述车辆在第一时刻的车速,包括:In one embodiment, determining the vehicle speed of the vehicle at a first moment based on the operating state of the vehicle includes:

获取所述车辆的第一速度和第一加速度,所述第一速度为所述车辆在第二时刻的速度,所述第一加速度为所述车辆在所述第二时刻的加速度,所述第二时刻为所述第一时间段内的任一时刻;Acquire a first speed and a first acceleration of the vehicle, wherein the first speed is the speed of the vehicle at a second moment, the first acceleration is the acceleration of the vehicle at the second moment, and the second moment is any moment within the first time period;

基于所述工况状态对应的加速度预测模型、所述第一速度和所述第一加速度,确定第二速度,所述第二速度为所述车辆在所述第一时刻的速度。Based on the acceleration prediction model corresponding to the operating state, the first speed and the first acceleration, a second speed is determined, where the second speed is the speed of the vehicle at the first moment.

本申请实施例中,由于是基于确定的工况状态,对车速进行预测,并且,加速度可以反映驾驶员的驾驶意图,所以在预测车速时,在确定的工况状态下,基于加速度预测模型,可以预测出驾驶员在未来的驾驶意图,所以,本申请实施例在预测车速时,可以缩小预测的车速的数值范围,在一个更小的数值范围内去确定最终的预测结果,并且考虑了驾驶员在未来的驾驶意图,提升了预测车速的准确性。In the embodiment of the present application, since the vehicle speed is predicted based on a certain operating condition, and the acceleration can reflect the driver's driving intention, when predicting the vehicle speed, under a certain operating condition, the driver's future driving intention can be predicted based on the acceleration prediction model. Therefore, when predicting the vehicle speed, the embodiment of the present application can narrow the numerical range of the predicted vehicle speed, determine the final prediction result within a smaller numerical range, and take into account the driver's future driving intention, thereby improving the accuracy of the predicted vehicle speed.

在一个实施例中,所述基于所述工况状态对应的加速度预测模型、所述第一速度和所述第一加速度,确定第二速度,包括:In one embodiment, determining the second speed based on the acceleration prediction model corresponding to the operating state, the first speed and the first acceleration includes:

通过所述工况状态对应的加速度预测模型对所述第一加速度进行处理,确定所述第二加速度,所述第二加速度为所述车辆在所述第一时刻的加速度;Processing the first acceleration by using an acceleration prediction model corresponding to the operating state to determine the second acceleration, where the second acceleration is the acceleration of the vehicle at the first moment;

基于所述第一速度和所述第二加速度,确定所述第二速度。Based on the first speed and the second acceleration, the second speed is determined.

本申请实施例中,由于加速度可以反映驾驶员的驾驶意图,所以在预测车速时,先基于第一加速度和工况状态对应的加速度预测模型得到第二加速度,可以预测出驾驶员在未来的驾驶意图,然后基于第二加速度和第一速度,确定第二速度,所以,本申请实施例在预测车速时,考虑了驾驶员在未来的驾驶意图,提升了预测车速的准确性。In the embodiment of the present application, since acceleration can reflect the driver's driving intention, when predicting the vehicle speed, the second acceleration is first obtained based on the first acceleration and the acceleration prediction model corresponding to the operating condition, which can predict the driver's driving intention in the future. Then, based on the second acceleration and the first speed, the second speed is determined. Therefore, when predicting the vehicle speed, the embodiment of the present application takes into account the driver's driving intention in the future, thereby improving the accuracy of the predicted vehicle speed.

在一个实施例中,所述方法还包括:In one embodiment, the method further comprises:

将所述第二加速度输入所述工况状态对应的加速度预测模型,得到第三加速度,所述第三加速度为所述车辆在第三时刻的加速度,所述第三时刻晚于所述第一时刻;Inputting the second acceleration into the acceleration prediction model corresponding to the operating state to obtain a third acceleration, where the third acceleration is the acceleration of the vehicle at a third moment, and the third moment is later than the first moment;

基于所述第二速度和所述第三加速度,确定第三速度,所述第三速度为所述车辆在所述第三时刻的速度。A third speed is determined based on the second speed and the third acceleration, where the third speed is the speed of the vehicle at the third moment.

本申请实施例中,由于加速度可以反映驾驶员的驾驶意图,所以在预测车速时,先基于第二加速度和工况状态对应的加速度预测模型得到第三加速度,可以预测出驾驶员在未来的驾驶意图,然后基于第三加速度和第二速度,确定第三速度,所以,本申请实施例在预测车速时,考虑了驾驶员在未来的驾驶意图,提升了预测车速的准确性。In the embodiment of the present application, since acceleration can reflect the driver's driving intention, when predicting the vehicle speed, the third acceleration is first obtained based on the second acceleration and the acceleration prediction model corresponding to the operating condition, which can predict the driver's driving intention in the future. Then, based on the third acceleration and the second speed, the third speed is determined. Therefore, when predicting the vehicle speed, the embodiment of the present application takes into account the driver's driving intention in the future, thereby improving the accuracy of the predicted vehicle speed.

在一个实施例中,所述工况状态对应的加速度预测模型是马尔科夫模型。In one embodiment, the acceleration prediction model corresponding to the operating state is a Markov model.

本申请实施例中,工况状态对应的加速度预测模型是马尔科夫模型。在马尔可夫模型中车辆在未来某一时刻的行驶加速度与历史行驶数据无关,仅与当前的行驶数据有关。因此,在利用马尔可夫模型对加速度进行预测时,可以不用考虑车辆历史的行驶数据,减少了预测加速度时模型的计算量,提升了模型的处理速度。In the embodiment of the present application, the acceleration prediction model corresponding to the working state is a Markov model. In the Markov model, the driving acceleration of the vehicle at a certain moment in the future has nothing to do with the historical driving data, but only with the current driving data. Therefore, when using the Markov model to predict the acceleration, it is not necessary to consider the historical driving data of the vehicle, which reduces the amount of calculation of the model when predicting the acceleration and improves the processing speed of the model.

在一个实施例中,所述加速度预测模型的构建方式包括:In one embodiment, the acceleration prediction model is constructed by:

针对每种工况状态,基于训练数据中的行驶数据,确定k时刻加速度的状态空间和k+1时刻加速度的状态空间;For each operating condition, based on the driving data in the training data, determine the state space of acceleration at time k and the state space of acceleration at time k+1;

确定所述k时刻加速度的状态空间中任一状态转移到所述k+1时刻加速度的状态空间中任一状态的概率;Determine the probability of any state in the state space of the acceleration at time k transferring to any state in the state space of the acceleration at time k+1;

基于所述k时刻加速度的状态空间中任一状态转移到所述k+1时刻加速度的状态空间中任一状态的概率,构建所述加速度预测模型。The acceleration prediction model is constructed based on the probability of any state in the state space of the acceleration at time k transferring to any state in the state space of the acceleration at time k+1.

利用本申请实施例提供的加速度预测模型,在预测k+1时刻的加速度时,与历史加速度无关,仅与k时刻的加速度有关,可以不用考虑车辆历史的行驶数据,减少了预测加速度时模型的计算量,提升了模型的处理速度。By using the acceleration prediction model provided in the embodiment of the present application, when predicting the acceleration at time k+1, it is independent of the historical acceleration and is only related to the acceleration at time k. The vehicle's historical driving data does not need to be considered, which reduces the amount of calculation of the model when predicting acceleration and improves the processing speed of the model.

在一个实施例中,所述工况状态为以下任一个:拥堵工况状态、市区工况状态、郊区工况状态和高速工况状态。In one embodiment, the operating state is any one of the following: a congested operating state, an urban operating state, a suburban operating state, and a high-speed operating state.

第二方面,提供了一种预测车速的装置,包括:处理单元,所述处理单元用于:In a second aspect, a device for predicting vehicle speed is provided, comprising: a processing unit, wherein the processing unit is configured to:

获取车辆在第一时间段内的行驶数据;Acquire driving data of the vehicle in a first time period;

基于所述行驶数据,确定所述车辆的工况状态;Determining the operating state of the vehicle based on the driving data;

基于所述车辆的工况状态,确定所述车辆在第一时刻的车速,所述第一时刻晚于所述第一时间段。Based on the operating state of the vehicle, a vehicle speed of the vehicle at a first moment is determined, and the first moment is later than the first time period.

第三方面,提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如第一方面任一项所述的预测车速的方法。In a third aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for predicting vehicle speed as described in any one of the first aspects is implemented.

第四方面,提供了一种电子设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如第一方面任一项所述的预测车速的方法。In a fourth aspect, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for predicting vehicle speed as described in any one of the first aspects is implemented.

第五方面,提供了一种车辆,包括第四方面所述的电子设备。In a fifth aspect, a vehicle is provided, comprising the electronic device described in the fourth aspect.

可以理解的是,上述第二方面至第五方面的有益效果可以参见上述第一方面中的相关描述,在此不再赘述。It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

图1是本申请实施例提供的一种预测车速的方法的应用场景示意图。FIG1 is a schematic diagram of an application scenario of a method for predicting vehicle speed provided in an embodiment of the present application.

图2是本申请实施例提供的一种预测车速的方法的示意性流程图。FIG. 2 is a schematic flowchart of a method for predicting vehicle speed provided in an embodiment of the present application.

图3是本申请实施例提供的一种工况识别模型的训练方法的示意性流程图。FIG3 is a schematic flowchart of a method for training a working condition recognition model provided in an embodiment of the present application.

图4是本申请实施例提供的一种构建加速度预测模型的方法的示意性流程图。FIG4 is a schematic flowchart of a method for constructing an acceleration prediction model provided in an embodiment of the present application.

图5是本申请实施例提供的一种预测车速的装置的结构示意图。FIG5 is a schematic diagram of the structure of a device for predicting vehicle speed provided in an embodiment of the present application.

图6是本申请一实施例提供的电子设备的结构示意图。FIG. 6 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

具体实施方式Detailed ways

以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述,在其它情况中,各个实施例中的具体技术细节可以互相参考,在一个实施例中没有描述的具体系统可参考其它实施例。In the following description, specific details such as specific system structures, technologies, etc. are proposed for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application. In other cases, the specific technical details of each embodiment may be referenced to each other, and a specific system not described in one embodiment may be referenced to other embodiments.

应当理解,当在本申请说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and/or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and/or combinations thereof.

还应当理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should also be understood that the term “and/or” used in the specification and appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.

在本申请说明书中描述的参考“本申请实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在另一些实施例中”、“本申请一实施例”、“本申请其他实施例”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。References to "an embodiment of the present application" or "some embodiments" described in the specification of the present application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in other embodiments", "an embodiment of the present application", "other embodiments of the present application", etc. that appear in different places in the specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

另外,在本申请说明书和所附权利要求书的描述中,术语“第一”、“第二”等仅用于区分描述,而不能理解为指示或暗示相对重要性。In addition, in the description of the present application specification and the appended claims, the terms "first", "second", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

如背景技术所述,现有的车速预测算法对车速的预测结果不准确。具体原因在于现有的车速预测算法是在非确定的工况下去预测车速,这样导致最终的预测结果需要在一个较大的车速数值范围内去确定,导致最终的预测结果不准确。As described in the background technology, the existing vehicle speed prediction algorithm predicts the vehicle speed inaccurately. The specific reason is that the existing vehicle speed prediction algorithm predicts the vehicle speed under uncertain working conditions, which results in the final prediction result needing to be determined within a larger vehicle speed value range, resulting in inaccurate final prediction result.

基于此,本申请的发明人经过研究发现,在预测车速时,先基于车辆的行驶数据确定工况状态,在确定的工况状态下去预测车速,这样,相对于在非确定的工况状态下预测车速,可以缩小预测的车速的数值范围,在一个更小的数值范围内去确定最终的预测结果,从而可以提升预测车速的准确性。Based on this, the inventor of the present application discovered through research that when predicting the vehicle speed, the operating condition is first determined based on the vehicle's driving data, and the vehicle speed is predicted under the determined operating condition. In this way, compared to predicting the vehicle speed under an uncertain operating condition, the numerical range of the predicted vehicle speed can be narrowed, and the final prediction result can be determined within a smaller numerical range, thereby improving the accuracy of the predicted vehicle speed.

为了说明本申请的技术方案,下面通过具体实施例来进行说明。In order to illustrate the technical solution of the present application, a specific embodiment is provided below for illustration.

请参考图1,图1是本申请一实施例提供的一种预测车速的方法的应用场景示意图,为了方便说明,仅示出与本申请相关的部分。该应用场景包括:Please refer to Figure 1, which is a schematic diagram of an application scenario of a method for predicting vehicle speed provided by an embodiment of the present application. For the convenience of explanation, only the part related to the present application is shown. The application scenario includes:

车辆10,车辆10可以为燃油汽车、燃气汽车或新能源汽车,新能源汽车可以是纯电动汽车、混合动力汽车或增程式汽车等,本申请实施例对车辆10的类型不作限定。Vehicle 10 , vehicle 10 may be a fuel vehicle, a gas vehicle or a new energy vehicle, the new energy vehicle may be a pure electric vehicle, a hybrid vehicle or an extended-range vehicle, etc., and the embodiment of the present application does not limit the type of vehicle 10 .

车辆10中配置整车控制器(Vehicle control unit,VCU)11。VCU11为车辆的中央控制单元,是车辆的控制系统的核心。VCU11通过串行通信总线(Controller AreaNetwork,CAN)与车辆10的发动机、变速器、油门踏板、制动踏板、车身控制器等各种电子设备通信,读取各个控制单元的工作状态,并在需要时对各个控制单元进行控制。The vehicle 10 is equipped with a vehicle control unit (VCU) 11. The VCU 11 is the central control unit of the vehicle and the core of the vehicle control system. The VCU 11 communicates with various electronic devices such as the engine, transmission, accelerator pedal, brake pedal, and body controller of the vehicle 10 through a serial communication bus (Controller Area Network, CAN), reads the working status of each control unit, and controls each control unit when necessary.

示例性地,VCU11用于读取车辆10的行驶数据,例如:车速、加速度等,基于车辆10的行驶数据,确定车辆10的工况状态,在确定的工况状态下预测车速。Exemplarily, the VCU 11 is used to read the driving data of the vehicle 10 , such as the vehicle speed, acceleration, etc., determine the operating state of the vehicle 10 based on the driving data of the vehicle 10 , and predict the vehicle speed under the determined operating state.

在一些实施例中,车辆10的还可以通过配置的传感器采集行驶数据,例如:车辆10通过配置的车速传感器采集车辆10的车速,车辆10通过配置的加速度传感器采集车辆10的加速度。In some embodiments, the vehicle 10 may also collect driving data through configured sensors. For example, the vehicle 10 collects the speed of the vehicle 10 through a configured speed sensor, and the vehicle 10 collects the acceleration of the vehicle 10 through a configured acceleration sensor.

在一些实施例中,车辆10将通过VCU11读取的车辆10的行驶数据或者将传感器采集的行驶数据通过有线的方式或无线的方式传输至电子设备20。有线的方式包括有线以太网(RJ45线、光纤等)、工业串行总线(RS485总线、RS232总线、串行通信总线(ControllerArea Network,CAN)等)。无线的方式包括通用无线分组业务(General Packet RadioService,GPRS)、码分多址(Code Division Multiple Access,CDMA)、无线网关等,本申请实施例对车辆10和电子设备20的通信方式不作限定。In some embodiments, the vehicle 10 transmits the driving data of the vehicle 10 read by the VCU 11 or the driving data collected by the sensor to the electronic device 20 by wired or wireless means. The wired means include wired Ethernet (RJ45 line, optical fiber, etc.), industrial serial bus (RS485 bus, RS232 bus, serial communication bus (Controller Area Network, CAN), etc.). The wireless means include General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), wireless gateway, etc. The embodiment of the present application does not limit the communication method between the vehicle 10 and the electronic device 20.

在一些实施例中,电子设备20也可称为大数据后台,电子设备20包括但不限于服务器和服务器集群。示例性地,电子设备20用于获取车辆10的行驶数据,基于行驶数据,确定车辆10的工况状态,在确定的工况状态下预测车速。In some embodiments, the electronic device 20 may also be referred to as a big data background, and the electronic device 20 includes but is not limited to a server and a server cluster. Exemplarily, the electronic device 20 is used to obtain driving data of the vehicle 10, determine the operating state of the vehicle 10 based on the driving data, and predict the vehicle speed under the determined operating state.

本申请实施例不限定该应用场景的具体构成,该应用场景中可以包括比图1所示示例更多或更少的部件,或者组合某些部件,或者不同的部件。图1仅为示例性描述,不能解释为对本申请的具体限制。例如:还可以包括车身控制单元和电子助力转向系统等。The embodiments of the present application do not limit the specific composition of the application scenario. The application scenario may include more or fewer components than the example shown in FIG1, or a combination of certain components, or different components. FIG1 is only an exemplary description and cannot be interpreted as a specific limitation of the present application. For example, it may also include a body control unit and an electronic power steering system, etc.

请参考图2,图2是本申请实施例提供的一种预测车速的方法200的示意性流程图。示例性地,方法200的执行主体可以为图1中的VCU11或电子设备20,或者,方法200的执行主体可以为VCU11中的芯片或处理器,或者,方法200的执行主体可以为电子设备20中的芯片或处理器。为了便于描述,以执行主体为VCU为例,对方法200做详细描述。Please refer to FIG. 2, which is a schematic flow chart of a method 200 for predicting vehicle speed provided in an embodiment of the present application. Exemplarily, the execution subject of the method 200 may be the VCU 11 or the electronic device 20 in FIG. 1, or the execution subject of the method 200 may be the chip or processor in the VCU 11, or the execution subject of the method 200 may be the chip or processor in the electronic device 20. For ease of description, the method 200 is described in detail by taking the execution subject as the VCU as an example.

S201、获取车辆在第一时间段内的行驶数据。S201. Acquire driving data of a vehicle in a first time period.

本申请实施例中,第一时间段可以为当前时间段,例如,在车辆的行驶过程中获取当前时间段的行驶数据时,当前时间段可以当前时刻起算,当前时刻为11点25分,车辆中预先设置第一时间段的时长,例如,第一时间段的时长为5分钟,那么当前时间段为11点20分至11点25分。In an embodiment of the present application, the first time period may be the current time period. For example, when obtaining driving data of the current time period during driving of the vehicle, the current time period may be calculated from the current time, which is 11:25. The duration of the first time period is pre-set in the vehicle. For example, the duration of the first time period is 5 minutes, then the current time period is from 11:20 to 11:25.

本申请实施例中,第一时间段也可以为当前时刻以前的任一时间段,例如,当前时刻为11点25分,第一时间段的时长为5分钟,那么第一时间段可以为11点00分至11点05分,也可以为10点35分至10点40分等。In an embodiment of the present application, the first time period may also be any time period before the current time. For example, the current time is 11:25 and the length of the first time period is 5 minutes. Then the first time period may be from 11:00 to 11:05, or from 10:35 to 10:40, etc.

本申请实施例中,行驶数据包括车速、加速度等。In the embodiment of the present application, the driving data includes vehicle speed, acceleration, etc.

本申请实施例中,由于VCU可实时读取车辆的车速,因此,VCU可根据实时读取的车速,获取车辆的车速。例如:第一时间段为11点20分至11点25分时,VCU每间隔1秒读取一次车速,VCU即可获取300个车速数据。本申请实施例对间隔时长不作限定。In the embodiment of the present application, since the VCU can read the vehicle speed in real time, the VCU can obtain the vehicle speed according to the real-time read vehicle speed. For example, when the first time period is from 11:20 to 11:25, the VCU reads the vehicle speed once every 1 second, and the VCU can obtain 300 vehicle speed data. The embodiment of the present application does not limit the interval time.

本申请实施例中,车速传感器可以实时采集车速,VCU通过车速传感器获取在第一时间段内的车速数据。例如:第一时间段为11点20分至11点25分时,车速传感器每间隔1秒采集一次车速,VCU即可获取300个车速数据。本申请实施例对间隔时长不作限定。In the embodiment of the present application, the vehicle speed sensor can collect the vehicle speed in real time, and the VCU obtains the vehicle speed data in the first time period through the vehicle speed sensor. For example, when the first time period is from 11:20 to 11:25, the vehicle speed sensor collects the vehicle speed every 1 second, and the VCU can obtain 300 vehicle speed data. The embodiment of the present application does not limit the interval time.

本申请实施例中,加速度传感器可以实时采集车辆的加速度,VCU通过加速度传感获取在第一时间段内的加速度数据。In the embodiment of the present application, the acceleration sensor can collect the acceleration of the vehicle in real time, and the VCU obtains the acceleration data within the first time period through the acceleration sensor.

本申请实施例中,VCU可根据获取的车速数据,依据以下公式,计算车辆的加速度:In the embodiment of the present application, the VCU can calculate the acceleration of the vehicle according to the acquired vehicle speed data according to the following formula:

其中,am表示m时刻对应的加速度,m时刻为第一时间段内的任一时刻,表示n时刻对应的速度,n时刻为m时刻的下一时刻,表示m时刻对应的速度,tn表示n时刻,tm表示m时刻。Wherein, a m represents the acceleration corresponding to time m, and time m is any time in the first time period. It represents the speed corresponding to time n, which is the next time after time m. represents the speed corresponding to time m, t n represents time n, and t m represents time m.

S202、基于行驶数据,确定车辆的工况状态。S202: Determine the operating status of the vehicle based on the driving data.

可理解,车辆的工况状态是指车辆在行驶过程中的工作状态。所谓的工况其实是指路况。It can be understood that the working condition of a vehicle refers to the working condition of the vehicle during driving. The so-called working condition actually refers to the road condition.

示例性地,工况状态为以下任一种:拥堵工况状态、市区工况状态、郊区工况状态和高速工况状态等。Exemplarily, the operating condition is any one of the following: a congested operating condition, an urban operating condition, a suburban operating condition, and a high-speed operating condition, etc.

拥堵工况状态是指车辆在拥堵路况行驶时的工作状态。市区工况状态是指车辆在市区路况行驶时的工作状态。郊区工况状态是指车辆在郊区路况行驶时的工作状态。高速工况状态是指车辆在高速路况行驶时的工作状态。这四种工况状态基本上可以涵盖车辆在行驶过程中的所有工作状态。The congestion condition refers to the working state of the vehicle when it is driving on congested roads. The urban condition refers to the working state of the vehicle when it is driving on urban roads. The suburban condition refers to the working state of the vehicle when it is driving on suburban roads. The high-speed condition refers to the working state of the vehicle when it is driving on high-speed roads. These four conditions can basically cover all the working states of the vehicle during driving.

每个工况状态中车辆的行驶数据有很大差异,例如:拥堵工况状态中车速的范围可能为(0,30km/h],而高速工况状态中车速的范围可能为(30km/h,60km/h]。本申请实施例可根据行驶数据的这种差异,确定车辆的工况状态。The driving data of the vehicle in each operating state is very different. For example, the vehicle speed in a congested operating state may range from (0, 30 km/h], while the vehicle speed in a high-speed operating state may range from (30 km/h, 60 km/h]. The embodiment of the present application can determine the operating state of the vehicle based on this difference in driving data.

本申请实施例中为了防止频繁的确定车辆的工况状态,VCU在确定车辆的工况状态之后,间隔预设时长,会重新确定一次车辆的工况状态。间隔的预设时长可以为1小时、2小时等,本申请实施例对间隔的预设时长不作限定。In order to prevent frequent determination of the vehicle's operating status in the embodiment of the present application, the VCU will re-determine the vehicle's operating status at a preset interval after determining the vehicle's operating status. The preset interval duration can be 1 hour, 2 hours, etc., and the embodiment of the present application does not limit the preset interval duration.

需要说明的是:上述4种工况状态是根据实际测量的行驶数据而划分的。在一些实施例中的,工况状态也可以是典型的循环工况,例如:美国的市内测功机测试工况(UrbanDynamometer Driving Schedule,UDDS)、纽约城市运行工况(The NewYork City Cycle,NYCC)、美国环保局用作认证车辆排放的测试工况(Federal Test Procedure,FTP)、US06工况(Supplemental FTP Driving Schedule,US06)、欧洲的城市循环工况(Urban DrivingCycle,UDC)、市郊循环工况(Extra Urban Driving Cycle,EUDC)、新欧洲汽车法规循环工况(New Europe Driving Cycle,NEDC)、日本的十五工况(Japanese 10-15,J10-15)、全球统一轻载试验循环工况(World-wide harmonized Light duty Test Cycle,WLTC)等。本申请实施例对工况状态不作限定。It should be noted that the above four operating conditions are divided according to the actual measured driving data. In some embodiments, the operating condition can also be a typical cycle condition, such as: the urban dynamometer driving schedule (UDDS) in the United States, the New York City Cycle (NYCC), the Federal Test Procedure (FTP) used by the US Environmental Protection Agency to certify vehicle emissions, the US06 condition (Supplemental FTP Driving Schedule, US06), the European urban cycle condition (UDC), the extra urban driving cycle (EUDC), the new European automobile regulation cycle (NEDC), the Japanese 10-15 (J10-15), the world-wide harmonized light duty test cycle (WLTC), etc. The embodiment of the present application does not limit the operating condition.

S203、基于车辆的工况状态,确定车辆在第一时刻的车速,第一时刻晚于第一时间段。S203: Determine the vehicle speed at a first moment based on the operating state of the vehicle, where the first moment is later than the first time period.

可理解,第一时刻是指未来的某一时刻,该未来的某一时刻对应的车速即为VCU预测的车速,例如:当前时刻是2020年10月1日16点44分,当前时刻对应的车速为40km/h,VCU预测2020年10月2日16点44分的车速时,2020年10月2日16点44分即为第一时刻。It can be understood that the first moment refers to a certain moment in the future, and the vehicle speed corresponding to the certain moment in the future is the vehicle speed predicted by VCU. For example: the current moment is 16:44 on October 1, 2020, and the vehicle speed corresponding to the current moment is 40km/h. When VCU predicts the vehicle speed at 16:44 on October 2, 2020, 16:44 on October 2, 2020 is the first moment.

本申请实施例中,第一时刻晚于第一时间段。可以理解,第一时间段内的车速是可以通过车速传感器或VCU直接获取的,是已经产生的历史数据。第一时刻的车速是还未产生的需要预测的数据,因此,第一时刻需晚于第一时间段。例如,第一时间段为11点20分至11点25分时,第一时刻为晚于11点25分的时刻。In the embodiment of the present application, the first moment is later than the first time period. It is understood that the vehicle speed in the first time period can be directly obtained through the vehicle speed sensor or VCU, and is the historical data that has been generated. The vehicle speed at the first moment is the data that needs to be predicted that has not yet been generated, so the first moment needs to be later than the first time period. For example, when the first time period is from 11:20 to 11:25, the first moment is the moment later than 11:25.

本申请实施例中,VCU可以根据确定的工况状态,确定车辆在第一时刻的车速即预测车速。本申请实施例中,车速可以基于卷积神经网络的车速预测方法、基于马尔可夫的车速预测方法等方法进行预测。In the embodiment of the present application, the VCU can determine the vehicle speed at the first moment, i.e., the predicted vehicle speed, according to the determined working condition. In the embodiment of the present application, the vehicle speed can be predicted based on a convolutional neural network speed prediction method, a Markov-based speed prediction method, or the like.

现有技术中的车速预测方法,是在非确定的工况状态下预测车速,例如,直接将车辆的行驶数据输入一个车速预测模型中对车速进行预测,车速预测模型中未提前确定行驶数据对应的工况状态,VCU根据每种工况状态均可给出预测的车速,例如根据4种工况预测出16个车速,每种工况均预测4个车速,在这16个预测的车速中确定最终的预测结果。而本申请实时例是在确定的工况状态下预测车速,例如,在确定的一种工况下预测出4个车速,在这4个预测的车速中确定最终的预测结果。The vehicle speed prediction method in the prior art predicts the vehicle speed under an uncertain working condition. For example, the vehicle's driving data is directly input into a vehicle speed prediction model to predict the vehicle speed. The working condition corresponding to the driving data is not determined in advance in the vehicle speed prediction model. The VCU can give a predicted vehicle speed according to each working condition. For example, 16 vehicle speeds are predicted based on 4 working conditions, and 4 vehicle speeds are predicted for each working condition. The final prediction result is determined from these 16 predicted vehicle speeds. The real-time example of the present application predicts the vehicle speed under a certain working condition. For example, 4 vehicle speeds are predicted under a certain working condition, and the final prediction result is determined from these 4 predicted vehicle speeds.

由此可知,本申请实施例中,由于可以通过行驶数据,确定车辆的工况状态,在确定的工况状态下对车速进行预测,相对于在非确定的工况状态下对车速进行预测,可以缩小预测的车速的数值范围,在一个更小的数值范围内去确定最终的预测结果,从而可以提升预测车速的准确性。It can be seen from this that in the embodiments of the present application, since the operating state of the vehicle can be determined through driving data and the vehicle speed can be predicted under a determined operating state, the numerical range of the predicted vehicle speed can be narrowed compared to predicting the vehicle speed under an uncertain operating state, and the final prediction result can be determined within a smaller numerical range, thereby improving the accuracy of the predicted vehicle speed.

在一些实施例中,S202还包括:VCU基于行驶数据,确定车辆在第一时间段内的行驶参数;根据行驶参数,确定车辆的工况状态。In some embodiments, S202 also includes: the VCU determines the driving parameters of the vehicle in the first time period based on the driving data; and determines the operating state of the vehicle according to the driving parameters.

可理解,行驶参数是用于反映车辆的工况状态的参数。行驶参数包括以下至少一个:最大加速度、最小加速度、平均车速、停车时间比、低速时间比、中速时间比和高速时间比。It can be understood that the driving parameter is a parameter used to reflect the working state of the vehicle. The driving parameter includes at least one of the following: maximum acceleration, minimum acceleration, average vehicle speed, parking time ratio, low speed time ratio, medium speed time ratio and high speed time ratio.

本申请实施例中,行驶数据是车辆在第一时间段内的数据。例如,第一时间段的时长为T,第一时间段内的车速集合为{Vi|i=1,2,……,i-1,i};第一时间段内的加速度集合为{ai|i=1,2,……,i-1,i}。In the embodiment of the present application, the driving data is the data of the vehicle in the first time period. For example, the duration of the first time period is T, the vehicle speed set in the first time period is {V i |i=1, 2, ..., i-1, i}; the acceleration set in the first time period is {a i |i=1, 2, ..., i-1, i}.

VCU可在加速度集合中选取最大值作为最大的加速度,最大加速度记为amax,选取最小值作为最小的加速度,最小加速度记为aminThe VCU may select the maximum value in the acceleration set as the maximum acceleration, which is recorded as a max , and select the minimum value as the minimum acceleration, which is recorded as a min .

VCU可根据以下公式计算平均车速:The VCU can calculate the average vehicle speed according to the following formula:

其中,代表平均车速。in, Represents the average vehicle speed.

VCU可在车速集合中确定车速为零的个数A,根据A以及车速集合中车速的总个数i,基于以下公式,确定停车时间比:The VCU may determine the number of zero vehicle speeds A in the vehicle speed set, and determine the parking time ratio based on A and the total number of vehicle speeds i in the vehicle speed set based on the following formula:

示例性地,低速的范围为(0,,30km/h],VCU可在车速集合中确定车速在低速的范围内的车速的个数B,根据B以及车速集合中车速的总个数i,基于以下公式,确定低速时间比:For example, the low speed range is (0,, 30km/h], and the VCU may determine the number B of vehicle speeds within the low speed range in the vehicle speed set, and determine the low speed time ratio based on B and the total number i of vehicle speeds in the vehicle speed set based on the following formula:

示例性地,中速的范围为(30km/h,60km/h],VCU可在车速集合中确定车速在中速的范围内的车速的个数C,根据C以及车速集合中车速的总个数i,基于以下公式,确定中速时间比:For example, the medium speed range is (30 km/h, 60 km/h], and the VCU may determine the number C of vehicle speeds within the medium speed range in the vehicle speed set, and determine the medium speed time ratio based on C and the total number i of vehicle speeds in the vehicle speed set based on the following formula:

示例性地,高速的范围为(60km/h,+∞),VCU可在车速集合中确定车速在高速的范围内的车速的个数D,根据D以及车速集合中车速的总个数i,基于以下公式,确定高速时间比:For example, the range of high speed is (60 km/h, +∞), and the VCU may determine the number D of vehicle speeds within the range of high speed in the vehicle speed set, and determine the high speed time ratio based on D and the total number i of vehicle speeds in the vehicle speed set based on the following formula:

本申请实施例中,VCU确定出可以反映车辆的工况状态的行驶参数后,即可根据行驶参数,确定工况状态。In the embodiment of the present application, after the VCU determines the driving parameters that can reflect the operating status of the vehicle, the operating status can be determined based on the driving parameters.

在一些实施例中,VCU根据行驶参数,确定工况状态的方法包括:通过基于实测数据构建的工况识别模型对行驶参数进行处理,确定工况状态。通过历史数据构建的工况识别模型对行驶参数进行处理,确定工况状态等。In some embodiments, the method for the VCU to determine the working condition based on the driving parameters includes: processing the driving parameters through a working condition recognition model constructed based on measured data to determine the working condition; processing the driving parameters through a working condition recognition model constructed based on historical data to determine the working condition, etc.

本申请实施例中,由于可以通过行驶数据确定车辆在第一时间段内的行驶参数,从而可以根据行驶参数,确定车辆的工况状态,可以准确的确定出车辆的工况状态。In the embodiment of the present application, since the driving parameters of the vehicle in the first time period can be determined through the driving data, the operating state of the vehicle can be determined based on the driving parameters, and the operating state of the vehicle can be accurately determined.

在一些实施例中,VCU根据行驶参数,确定车辆的工况状态,包括:In some embodiments, the VCU determines the operating state of the vehicle based on the driving parameters, including:

将行驶参数输入公况识别模型,得到车辆的工况状态。The driving parameters are input into the operating condition identification model to obtain the vehicle's operating condition.

本申请实施例中,工况识别模型是一个已训练好的分类模型,示例性地,工况识别模型是一个多分类模型,例如,可以是一个四分类模型,四个类别分别为拥堵工况状态、市区工况状态、郊区工况状态和高速工况状态,通过工况识别模型对行驶参数进行处理,即可得到车辆的工况状态。In an embodiment of the present application, the operating condition recognition model is a trained classification model. Exemplarily, the operating condition recognition model is a multi-classification model. For example, it can be a four-classification model. The four categories are congested operating condition state, urban operating condition state, suburban operating condition state and highway operating condition state. The operating condition state of the vehicle can be obtained by processing the driving parameters through the operating condition recognition model.

在一些实施例中,工况识别模型是基于对装袋树的分类模型进行训练得到的。In some embodiments, the operating condition recognition model is obtained by training a classification model of a bagged tree.

在另一些实施例中,工况识别模型还可以是基于决策树的工况识别模型、基于分类树的工况识别模型、基于随机森林的工况识别模型等其他类型的工况识别模型,本申请实施例不做任何限定。In other embodiments, the operating condition identification model may also be other types of operating condition identification models such as an operating condition identification model based on a decision tree, an operating condition identification model based on a classification tree, and an operating condition identification model based on a random forest, and the embodiments of the present application do not impose any limitations thereto.

由于基于装袋树的工况识别模型相对于其他工况识别模型识别工况状态时准确性更高,所以选择基于装袋树的工况识别模型对行驶参数进行处理,以得到车辆的工况状态。Since the operating condition identification model based on the bagged tree has higher accuracy in identifying the operating condition state than other operating condition identification models, the operating condition identification model based on the bagged tree is selected to process the driving parameters to obtain the operating condition state of the vehicle.

本申请实施例中,由于是将行驶参数输入工况识别模型,得到车辆的工况状态,可以提高识别工况状态的准确性。In the embodiment of the present application, since the driving parameters are input into the operating condition identification model to obtain the operating condition status of the vehicle, the accuracy of identifying the operating condition status can be improved.

请参考图3,图3是本申请实施例提供的一种工况识别模型的训练方法300的示意性流程图。示例性地,方法300的执行主体可以为图1中的VCU11或电子设备20,或者,方法300的执行主体可以为VCU11中的芯片或处理器,或者,方法300的执行主体可以为电子设备20中的芯片或处理器。为了便于描述,以执行主体为VCU为例,对方法300做详细描述。Please refer to FIG3, which is a schematic flow chart of a training method 300 for a working condition recognition model provided in an embodiment of the present application. Exemplarily, the execution subject of the method 300 may be the VCU 11 or the electronic device 20 in FIG1, or the execution subject of the method 300 may be the chip or processor in the VCU 11, or the execution subject of the method 300 may be the chip or processor in the electronic device 20. For ease of description, the method 300 is described in detail by taking the execution subject as the VCU as an example.

S301、针对每种工况状态,选取预设组数的训练数据,每组训练数据包括预设个数的行驶参数和一个基准分析结果。S301. For each operating condition, select a preset number of sets of training data, each set of training data including a preset number of driving parameters and a benchmark analysis result.

应理解,在一些实施例中,训练数据可以是基于实测数据得到的。It should be understood that in some embodiments, the training data may be obtained based on measured data.

示例性地,测试车辆在不同工况状态(例如拥堵工况状态、市区工况状态、郊区工况状态和高速工况状态)上行驶时,首先,分别采集测试车辆在不同工况状态中的行驶数据,可以得到每种工况状态对应的行驶数据集合。在采集行驶数据时,可间隔预设时长进行采集,例如间隔1秒采集一次行驶数据。例如,行驶数据集合可以为{Vi|i=1,2,……,i-1,i}。行驶数据集合还可以为{ai|i=1,2,……,i-1,i},其中,Vi-1与Vi之间间隔1秒,ai-1与ai之间间隔1秒。Exemplarily, when the test vehicle is traveling in different operating conditions (e.g., congested operating conditions, urban operating conditions, suburban operating conditions, and high-speed operating conditions), first, the driving data of the test vehicle in different operating conditions are collected respectively, and a driving data set corresponding to each operating condition can be obtained. When collecting driving data, the collection can be performed at intervals of a preset time length, for example, the driving data is collected once every 1 second. For example, the driving data set can be {V i |i=1, 2, ..., i-1, i}. The driving data set can also be {a i |i=1, 2, ..., i-1, i}, where the interval between Vi-1 and Vi is 1 second, and the interval between a i-1 and a i is 1 second.

其次,在每种工况状态对应的行驶数据集合中,选取预设组数的行驶数据,每组训练数据包括预设个数的行驶数据。Secondly, in the driving data set corresponding to each operating state, a preset number of groups of driving data are selected, and each group of training data includes a preset number of driving data.

本申请实施例中,每组训练数据中行驶数据的预设个数小于或等于行驶数据集合中数据的总个数。也就是说,每组训练数据中预设个数的行驶数据对应的时长小于或等于行驶数据集合对应的总时长。例如,行驶数据集合为{Vi|i=1,2,3,4,5},则行驶数据集合对应的总时长为5秒,那么每组训练数据中预设个数的行驶数据对应的时长小于或等于5秒。In the embodiment of the present application, the preset number of driving data in each set of training data is less than or equal to the total number of data in the driving data set. In other words, the duration corresponding to the preset number of driving data in each set of training data is less than or equal to the total duration corresponding to the driving data set. For example, if the driving data set is {V i |i=1, 2, 3, 4, 5}, and the total duration corresponding to the driving data set is 5 seconds, then the duration corresponding to the preset number of driving data in each set of training data is less than or equal to 5 seconds.

在行驶数据集合中选取一组行驶数据时,可在行驶数据集合中随机选取一个行驶数据作为起始数据,例如,在车速集合中选取V3作为起始数据。在起始数据之后连续选取n-1个行驶数据,例如,若预设个数为4,则在V3之后连续选取V4、V5、V6。但是,可能会出现一种特殊情况,即在起始数据之后连续选取n-1个行驶数据时,行驶数据集合中起始数据之后并没有足够的n-1个行驶数据,例如:行驶数据集合为{Vi|i=1,2,3,4,5},在V3之后只有V4、V5。这种情况,需要重新选取一个行驶数据作为起始数据。依据此方法,针对每种工况状态,选取预设组数的行驶数据。例如,针对4种工况,每种工况均选取10组训练数据,每组训练数据均包括4个行驶数据。When selecting a set of driving data from a driving data set, a driving data can be randomly selected from the driving data set as the starting data, for example, V 3 is selected from the vehicle speed set as the starting data. After the starting data, n-1 driving data are selected continuously. For example, if the preset number is 4, V 4 , V 5 , and V 6 are selected continuously after V 3. However, a special case may occur, that is, when n-1 driving data are selected continuously after the starting data, there are not enough n-1 driving data after the starting data in the driving data set. For example, the driving data set is {V i |i=1, 2, 3, 4, 5}, and there are only V 4 and V 5 after V 3. In this case, it is necessary to reselect a driving data as the starting data. According to this method, a preset number of driving data are selected for each working condition. For example, for 4 working conditions, 10 sets of training data are selected for each working condition, and each set of training data includes 4 driving data.

然后,基于每种工况状态对应的预设组数的行驶数据,分别确定行驶参数,并对该行驶参数标注一个基准分析结果。Then, based on a preset number of groups of driving data corresponding to each operating state, driving parameters are determined respectively, and a benchmark analysis result is marked for the driving parameter.

本申请实施例中,每种工况状态对应的预设组数的行驶数据可表示为:In the embodiment of the present application, the preset number of driving data corresponding to each operating state can be expressed as:

其中,n表示预设组数,m表示每组中包含的行驶数据的个数。Wherein, n represents the preset number of groups, and m represents the number of driving data contained in each group.

本申请实施例中,可根据每组行驶数据确定行驶参数。示例性地,本申请实施例中的行驶参数可以包括:最大加速度amax,最小加速度amin,平均速度停车时间比A/i,低速时间比B/i,中速时间比C/i,高速时间比D/i。确定的行驶参数可表示为:In the embodiment of the present application, the driving parameters can be determined according to each set of driving data. For example, the driving parameters in the embodiment of the present application may include: maximum acceleration a max , minimum acceleration a min , average speed The parking time ratio is A/i, the low speed time ratio is B/i, the medium speed time ratio is C/i, and the high speed time ratio is D/i. The determined driving parameters can be expressed as:

由于本申请实施例是基于每种工况状态下的行驶数据计算行驶参数,在确定的工况状态中,车辆的行驶数据中的车速是在一个小范围内波动,例如:在拥堵工况状态中,车速是在(0,30km/h]范围内波动,在高速工况状态中,车速是在(60km/h,+∞)范围内波动,所以,基于拥堵工况状态下的行驶数据计算的中速时间比、高速时间比的数值可能会很小,同理,基于高速工况状态下的行驶数据计算的低速时间比、中速时间比的数值可能会很小。这些数值很小的行驶参数对后续判断工况状态的影响微乎其微,因此,在一些实施例中,为了减少计算量,便不计算低速时间比B/i,中速时间比C/i,高速时间比D/i。Since the embodiments of the present application calculate driving parameters based on driving data under each operating condition, in a certain operating condition, the vehicle speed in the vehicle's driving data fluctuates within a small range. For example, in a congested operating condition, the vehicle speed fluctuates within the range of (0, 30 km/h], and in a high-speed operating condition, the vehicle speed fluctuates within the range of (60 km/h, +∞). Therefore, the values of the medium-speed time ratio and the high-speed time ratio calculated based on the driving data under the congested operating condition may be very small. Similarly, the values of the low-speed time ratio and the medium-speed time ratio calculated based on the driving data under the high-speed operating condition may be very small. These driving parameters with very small values have little effect on the subsequent judgment of the operating condition. Therefore, in some embodiments, in order to reduce the amount of calculation, the low-speed time ratio B/i, the medium-speed time ratio C/i, and the high-speed time ratio D/i are not calculated.

示例性地,本申请实施例中的行驶参数还可以包括最大加速度amax,最小加速度amin,平均速度停车时间比A/i。确定的行驶参数可表示为:For example, the driving parameters in the embodiment of the present application may also include a maximum acceleration a max , a minimum acceleration a min , an average speed The parking time ratio A/i. The determined driving parameters can be expressed as:

由于本申请实施例中的行驶数据是车辆在不同工况状态中行驶时采集的,在一些工况状态中,例如高速工况状态、市区工况状态等中,车辆会一直行驶不会停止,所以停车时间比A/i对后续判断工况状态的影响微乎其微,因此,在一些实施例中,为了减少计算量,便不计算停车时间比A/i。Since the driving data in the embodiments of the present application are collected when the vehicle is driving in different operating conditions, in some operating conditions, such as high-speed operating conditions, urban operating conditions, etc., the vehicle will continue to drive and will not stop, so the parking time ratio A/i has little effect on the subsequent judgment of the operating condition. Therefore, in some embodiments, in order to reduce the amount of calculation, the parking time ratio A/i is not calculated.

示例性地,本申请实施例中的行驶参数还可以包括最大加速度amax,最小加速度amin,平均速度确定的行驶参数可表示为:For example, the driving parameters in the embodiment of the present application may also include a maximum acceleration a max , a minimum acceleration a min , an average speed The determined driving parameters can be expressed as:

应理解,基准分析结果可表示行驶参数对应的工况状态。例如,若行驶参数是基于拥堵工况状态的行驶数据得到的,则将该行驶参数标注为“1”,“1”可表示为拥堵工况状态。示例性地,在拥堵工况中,选取的训练数据可表示为:It should be understood that the benchmark analysis result may represent the operating state corresponding to the driving parameter. For example, if the driving parameter is obtained based on the driving data of the congested operating state, the driving parameter is marked as "1", and "1" may represent the congested operating state. For example, in the congested operating state, the selected training data may be represented as:

又例如,若行驶参数是基于高速工况状态的行驶数据得到的,则将该行驶参数标注为“2”,“2”可表示为高速工况状态。示例性地,在高速工况中,选取的训练数据可表示为:For another example, if the driving parameter is obtained based on the driving data of the high-speed working condition, the driving parameter is marked as "2", and "2" can represent the high-speed working condition. For example, in the high-speed working condition, the selected training data can be represented as:

当然,基于同一种工况状态选取的训练数据可利用不同的标签进行标注,只要与其他工况状态选取的训练数据区分即可。Of course, the training data selected based on the same operating condition can be labeled with different labels as long as they are distinguished from the training data selected based on other operating conditions.

最后,基于上述方法,可以获取多种工况状态下的训练数据。Finally, based on the above method, training data under various working conditions can be obtained.

应理解,在一些实施例中,训练数据也可以是基于历史数据得到的。It should be understood that in some embodiments, the training data may also be obtained based on historical data.

示例性地,典型的循环工况,例如NYCC、FTP、EUDC等,这些循环工况中的数据都可以量化为一条时间-车速的曲线或时间-加速度的曲线,并且曲线中不同的时间段对应不同的工况状态,例如,一条曲线的横坐标可以分为第一时间段、第二时间段、第三时间段和第四时间段,第一时间段对应第一工况状态、第二时间段对应第二工况状态、第三时间段对应第三工况状态、第四时间段对应第四工况状态。For example, in typical cyclic operating conditions, such as NYCC, FTP, EUDC, etc., the data in these cyclic operating conditions can be quantified into a time-vehicle speed curve or a time-acceleration curve, and different time periods in the curve correspond to different operating conditions. For example, the horizontal axis of a curve can be divided into a first time period, a second time period, a third time period and a fourth time period, the first time period corresponds to a first operating condition, the second time period corresponds to a second operating condition, the third time period corresponds to a third operating condition, and the fourth time period corresponds to a fourth operating condition.

VCU可根据国际标准的循环工况中已有的数据(本申请实施例将该已有的数据称为历史数据),针对每种工况状态,选取预设组数的行驶数据。其中,针对每种工况状态,选取预设组数的训练数据已在其他实施例中陈述,此处不再赘述。The VCU can select a preset number of driving data for each operating state based on the existing data in the international standard cycle operating conditions (the existing data is referred to as historical data in the embodiment of the present application). The selection of a preset number of training data for each operating state has been described in other embodiments and will not be repeated here.

可以理解的是,这些训练数据的预设组数越大,对工况识别模型的训练效果将越好,因而,本申请实施例中,尽可能选取多的训练数据。It can be understood that the larger the number of preset groups of training data is, the better the training effect of the working condition recognition model will be. Therefore, in the embodiment of the present application, as much training data as possible is selected.

S302、基于训练数据对工况识别模型进行训练,直至工况识别模型收敛。S302: Train the operating condition identification model based on the training data until the operating condition identification model converges.

应理解,在对工况识别模型进行训练时,首先将基于多种工况状态得到的训练数据分别输入至初始的工况识别模型中,得到初始的工况识别模型的训练分析结果。It should be understood that when training the operating condition identification model, firstly, the training data obtained based on various operating conditions are respectively input into the initial operating condition identification model to obtain the training analysis results of the initial operating condition identification model.

由于初始时工况识别模型尚未训练完成,因此,此时输出的训练分析结果与基准分析结果之间会存在一定的偏差、误差。Since the working condition identification model has not been trained yet at the initial stage, there will be certain deviations and errors between the training analysis results output at this time and the benchmark analysis results.

其次,根据训练分析结果和基准分析结果计算本轮训练的全局误差。Secondly, the global error of this round of training is calculated based on the training analysis results and the benchmark analysis results.

应理解,VCU在得到各训练分析结果之后,可以根据各训练分析结果与对应的基准分析结果计算本轮训练的全局误差,并判断该全局误差是否满足预设条件,如判断该全局误差是否小于5%。在此,预设条件可以在训练工况识别模型时确定,例如,可以设定预设条件为全局误差小于特定阈值,该特定阈值可以是一个百分比数值,其中,该特定阈值越小,则最后训练完成得到的工况识别模型越稳定,预测的工况状态的精确度也将越高。It should be understood that after obtaining each training analysis result, the VCU can calculate the global error of this round of training based on each training analysis result and the corresponding benchmark analysis result, and determine whether the global error meets the preset conditions, such as whether the global error is less than 5%. Here, the preset conditions can be determined when training the working condition recognition model. For example, the preset condition can be set to be that the global error is less than a specific threshold, and the specific threshold can be a percentage value. The smaller the specific threshold, the more stable the working condition recognition model obtained after the final training is completed, and the higher the accuracy of the predicted working condition state will be.

本申请实施例中,全局误差是指损失函数,损失函数可以包括均方差损失、平均绝对误差损失、交叉熵损失函数等,本申请实施例对损失函数的类型不作限定。In the embodiment of the present application, the global error refers to the loss function, which may include mean square error loss, mean absolute error loss, cross entropy loss function, etc. The embodiment of the present application does not limit the type of loss function.

然后,若全局误差不满足预设条件,则调整工况识别模型的模型参数,并将模型参数调整后的工况识别模型确定为初始的工况识别模型。Then, if the global error does not meet the preset conditions, the model parameters of the operating condition identification model are adjusted, and the operating condition identification model after the model parameters are adjusted is determined as the initial operating condition identification model.

应理解,当本轮训练的全局误差不满足预设条件时,例如,当本轮训练的全局误差为10%时,则可以调整工况识别模型的模型参数,并将模型参数调整后的工况识别模型确定为初始的工况识别模型,然后重新以训练数据进行训练,以反复调整工况识别模型的模型参数,使得后续根据训练分析结果与对应的基准分析结果计算得到的全局误差最小化,直到最终的全局误差满足预设条件。It should be understood that when the global error of this round of training does not meet the preset conditions, for example, when the global error of this round of training is 10%, the model parameters of the operating condition identification model can be adjusted, and the operating condition identification model after the model parameters are adjusted is determined as the initial operating condition identification model, and then re-trained with the training data to repeatedly adjust the model parameters of the operating condition identification model so as to minimize the global error subsequently calculated based on the training analysis results and the corresponding benchmark analysis results until the final global error meets the preset conditions.

最后,若全局误差满足预设条件,则确定工况识别模型已收敛。Finally, if the global error meets the preset conditions, it is determined that the operating condition identification model has converged.

应理解,当本轮训练的全局误差满足预设条件时,例如,当本轮训练的全局误差小于5%时,则可以确定工况识别模型已收敛。It should be understood that when the global error of this round of training meets a preset condition, for example, when the global error of this round of training is less than 5%, it can be determined that the operating condition identification model has converged.

通过本申请实施例的训练方法,可以使训练后的工况识别模型识别工况状态的准确率更高。Through the training method of the embodiment of the present application, the trained operating condition recognition model can have a higher accuracy in identifying the operating condition state.

本申请实施例利用方法300即可完成工况识别模型的训练,通过已完成训练的工况识别模型即可确定车辆的工况状态。The embodiment of the present application can complete the training of the operating condition recognition model by using method 300, and the operating condition status of the vehicle can be determined by using the trained operating condition recognition model.

在相关技术中,预测车速时,并没有考虑驾驶员的驾驶意图,导致预测结果可能出现驾驶员本应在加速状态,却预测了减速的结果,降低了预测的准确性。本申请实施例在预测车速时,先基于加速度预测模型预测加速度,然后基于预测的加速度对车速进行预测。其中加速度可以反映驾驶员的驾驶意图。In the related art, when predicting the vehicle speed, the driver's driving intention is not taken into account, which may result in the prediction result that the driver should be in an accelerating state, but the prediction result is a deceleration, which reduces the accuracy of the prediction. When predicting the vehicle speed, the embodiment of the present application first predicts the acceleration based on the acceleration prediction model, and then predicts the vehicle speed based on the predicted acceleration. The acceleration can reflect the driver's driving intention.

在一些实施例中,S203还包括:获取车辆的第一速度和第一加速度,第一速度为车辆在第二时刻的速度,第一加速度为车辆在第二时刻的加速度,第二时刻为第一时间段内的任一时刻;In some embodiments, S203 further includes: obtaining a first speed and a first acceleration of the vehicle, the first speed being the speed of the vehicle at a second moment, the first acceleration being the acceleration of the vehicle at the second moment, and the second moment being any moment within the first time period;

基于工况状态对应的加速度预测模型、第一速度和第一加速度,确定第二速度,第二速度为车辆在第一时刻的速度。Based on the acceleration prediction model corresponding to the operating condition, the first speed and the first acceleration, a second speed is determined, where the second speed is the speed of the vehicle at the first moment.

应理解,第一速度和第一加速度属于车辆在第一时间段内的行驶数据,第二时刻为第一时间段内的任一时刻。示例性地,在1秒至5秒内采集的车速集合为{V1V2V3V4V5},采集的或者基于车速集合计算的加速度集合为{a1a2a3a4a5},那么第一速度可以为车速集合中的任一速度,第一加速度可以为加速度集合中的任一加速度,第二时刻为1秒至5秒内的任一时刻。It should be understood that the first speed and the first acceleration belong to the driving data of the vehicle in the first time period, and the second moment is any moment in the first time period. Exemplarily, the vehicle speed set collected within 1 second to 5 seconds is {V 1 V 2 V 3 V 4 V 5 }, and the acceleration set collected or calculated based on the vehicle speed set is {a 1 a 2 a 3 a 4 a 5 }, then the first speed can be any speed in the vehicle speed set, the first acceleration can be any acceleration in the acceleration set, and the second moment is any moment in 1 second to 5 seconds.

应理解,工况状态对应的加速度预测模型是指每种工况均对应一种加速度预测模型。例如,若工况状态仅包括4种,则有4种加速度预测模型,若加速度预测模型包括5种,则有5种加速度预测模型。It should be understood that the acceleration prediction model corresponding to the operating state means that each operating state corresponds to one acceleration prediction model. For example, if the operating state includes only 4 types, there are 4 acceleration prediction models, and if the acceleration prediction model includes 5 types, there are 5 acceleration prediction models.

本申请实施例中的工况状态对应的加速度预测模型用于预测未来时刻的加速度。由于车辆在行驶过程中的加速度是基于驾驶员的换挡、制动、踩踏油门等动作产生的,本申请实施例用于驾驶员的这些动作表征驾驶员的驾驶意图,因此,加速度可以反映驾驶员的驾驶意图。The acceleration prediction model corresponding to the working state in the embodiment of the present application is used to predict the acceleration at a future moment. Since the acceleration of the vehicle during driving is generated based on the driver's actions such as shifting, braking, and stepping on the accelerator, the embodiment of the present application uses these actions of the driver to characterize the driver's driving intention, and therefore, the acceleration can reflect the driver's driving intention.

本申请实施例中的第一时刻已在其他实施例中叙述,此处不再赘述,第二加速度为车辆在第一时刻的加速度,第二速度为车辆在第一时刻的速度。The first moment in the embodiment of the present application has been described in other embodiments and will not be repeated here. The second acceleration is the acceleration of the vehicle at the first moment, and the second speed is the speed of the vehicle at the first moment.

本申请实施例是将车辆在第一时间段内的行驶数据输入工况识别模型得到车辆的工况状态之后,再将车辆在第一时间段内的行驶数据输入工况状态对应的加速度预测模型,以对车速进行预测。In an embodiment of the present application, the driving data of the vehicle in a first time period is input into a working condition identification model to obtain the working condition state of the vehicle, and then the driving data of the vehicle in the first time period is input into an acceleration prediction model corresponding to the working condition state to predict the vehicle speed.

具体的,在对车辆进行预测时,首先,基于第一加速度(第一加速度可表征当前的驾驶员的驾驶意图)和加速度预测模型,对未来的驾驶员的驾驶意图进行预测,得到第二加速度。其次,基于第一速度和第二加速度,得到第二速度。Specifically, when predicting the vehicle, first, based on the first acceleration (the first acceleration can represent the current driver's driving intention) and the acceleration prediction model, the future driver's driving intention is predicted to obtain the second acceleration. Secondly, based on the first speed and the second acceleration, the second speed is obtained.

本申请实施例中,由于是基于确定的工况状态,对车速进行预测,并且,加速度可以反映驾驶员的驾驶意图,所以在预测车速时,在确定的工况状态下,先基于第一加速度和加速度预测模型得到第二加速度,可以预测出驾驶员在未来的驾驶意图,然后基于第二加速度和第一速度,确定第二速度,所以,本申请实施例在预测车速时,可以缩小预测的车速的数值范围,在一个更小的数值范围内去确定最终的预测结果,并且考虑了驾驶员在未来的驾驶意图,提升了预测车速的准确性。In the embodiment of the present application, since the vehicle speed is predicted based on a certain operating condition, and the acceleration can reflect the driver's driving intention, when predicting the vehicle speed, under a certain operating condition, the second acceleration is first obtained based on the first acceleration and the acceleration prediction model, and the driver's future driving intention can be predicted. Then, based on the second acceleration and the first speed, the second speed is determined. Therefore, when predicting the vehicle speed, the embodiment of the present application can narrow the numerical range of the predicted vehicle speed, determine the final prediction result within a smaller numerical range, and take into account the driver's future driving intention, thereby improving the accuracy of the predicted vehicle speed.

在一些实施例中,VCU基于工况状态对应的加速度预测模型、第一速度和第一加速度,确定第二速度,包括:In some embodiments, the VCU determines the second speed based on the acceleration prediction model corresponding to the operating state, the first speed and the first acceleration, including:

VCU通过工况状态对应的加速度预测模型对第一加速度进行处理,确定第二加速度;基于第一速度和第二加速度,确定第二速度。The VCU processes the first acceleration through an acceleration prediction model corresponding to the operating condition to determine the second acceleration; and determines the second speed based on the first speed and the second acceleration.

本申请实施例中,工况状态对应的加速度预测模型是马尔科夫模型。在马尔可夫模型中车辆在未来某一时刻的行驶加速度与历史行驶数据无关,仅与当前的行驶数据有关。因此,在利用马尔可夫模型对加速度进行预测时,可以不用考虑车辆历史的行驶数据,减少了预测加速度时模型的计算量,提升了模型的处理速度。In the embodiment of the present application, the acceleration prediction model corresponding to the working state is a Markov model. In the Markov model, the driving acceleration of the vehicle at a certain moment in the future has nothing to do with the historical driving data, but only with the current driving data. Therefore, when using the Markov model to predict the acceleration, it is not necessary to consider the historical driving data of the vehicle, which reduces the amount of calculation of the model when predicting the acceleration and improves the processing speed of the model.

本申请实施例中,由于加速度可以反映驾驶员的驾驶意图,所以在预测车速时,先基于第一加速度和工况状态对应的加速度预测模型得到第二加速度,可以预测出驾驶员在未来的驾驶意图,然后基于第二加速度和第一速度,确定第二速度,所以,本申请实施例在预测车速时,考虑了驾驶员在未来的驾驶意图,提升了预测车速的准确性。并且,本申请实施例的加速度预测模型是马尔可夫模型,在预测第二加速度时,可以不用考虑车辆历史的行驶数据,减少了预测第二加速度时模型的计算量,提升了模型的处理速度。In the embodiment of the present application, since acceleration can reflect the driver's driving intention, when predicting the vehicle speed, the second acceleration is first obtained based on the first acceleration and the acceleration prediction model corresponding to the working state, which can predict the driver's driving intention in the future, and then the second speed is determined based on the second acceleration and the first speed. Therefore, when predicting the vehicle speed, the embodiment of the present application takes into account the driver's driving intention in the future, thereby improving the accuracy of the predicted vehicle speed. In addition, the acceleration prediction model of the embodiment of the present application is a Markov model, and when predicting the second acceleration, the historical driving data of the vehicle does not need to be considered, which reduces the amount of calculation of the model when predicting the second acceleration and improves the processing speed of the model.

通过工况状态对应的加速度预测模型对第一加速度进行处理之前,需要先构建工况状态对应的加速度预测模型。构建加速度预测模型的方法请参考图4,图4是本申请实施例提供的一种构建加速度预测模型的方法400的示意性流程图。方法400的执行主体可以为图1中的VCU11或电子设备20,或者,方法400的执行主体可以为VCU11中的芯片或处理器,或者,方法400的执行主体可以为电子设备20中的芯片或处理器。为了便于描述,以执行主体为VCU为例,对方法400做详细描述。Before processing the first acceleration through the acceleration prediction model corresponding to the operating condition, it is necessary to first construct an acceleration prediction model corresponding to the operating condition. Please refer to Figure 4 for the method of constructing the acceleration prediction model. Figure 4 is a schematic flow chart of a method 400 for constructing an acceleration prediction model provided in an embodiment of the present application. The execution subject of method 400 may be the VCU11 or the electronic device 20 in Figure 1, or the execution subject of method 400 may be a chip or processor in VCU11, or the execution subject of method 400 may be a chip or processor in the electronic device 20. For the sake of ease of description, taking the execution subject as VCU as an example, method 400 is described in detail.

S401、针对每种工况状态,基于训练数据中的行驶数据,确定k时刻加速度的状态空间和k+1时刻加速度的状态空间。S401. For each operating state, based on the driving data in the training data, determine the state space of acceleration at time k and the state space of acceleration at time k+1.

应理解,车辆在k时刻时可能出现的所有的加速度的取值构成的集合称为k时刻加速度的状态空间。车辆在k+1时刻时可能出现的所有的加速度的取值构成的集合称为k+1时刻加速度的状态空间。每个加速度称为车辆的一个状态。本申请实施例中的k时刻和k+1时刻并不特指某一确定时刻,仅强调k+1时刻是k时刻的下一时刻。It should be understood that the set of all possible acceleration values of the vehicle at time k is called the state space of acceleration at time k. The set of all possible acceleration values of the vehicle at time k+1 is called the state space of acceleration at time k+1. Each acceleration is called a state of the vehicle. The k moment and k+1 moment in the embodiments of the present application do not specifically refer to a certain moment, but only emphasize that the k+1 moment is the next moment of the k moment.

本申请实施例中,训练数据的获取方法已在S301中陈述,此处不再赘述。In the embodiment of the present application, the method for obtaining training data has been stated in S301 and will not be repeated here.

示例性地,获取的一种工况状态对应的预设组数的加速度可以表示为:For example, the acceleration of a preset number of groups corresponding to an acquired working condition can be expressed as:

矩阵中共有n*m个加速度,例如,矩阵中共有3*4个加速度,示例性地,这3*4个加速度可表示为:There are n*m accelerations in the matrix. For example, there are 3*4 accelerations in the matrix. For example, these 3*4 accelerations can be expressed as:

其中,E、F、G、H和I均表示加速度的一种状态。Among them, E, F, G, H and I all represent a state of acceleration.

由上述矩阵可以看出,在一种工况状态下,车辆在k时刻时可能出现的所有的加速度的取值为E、F、G、H和I,因此,E、F、G、H和I构成的集合称为K时刻加速度的状态空间。同理,本申请实施例中,E、F、G、H和I构成的集合也可称为k+1时刻加速度的状态空间。It can be seen from the above matrix that under a certain working condition, all possible acceleration values of the vehicle at time k are E, F, G, H and I. Therefore, the set consisting of E, F, G, H and I is called the state space of acceleration at time K. Similarly, in the embodiment of the present application, the set consisting of E, F, G, H and I can also be called the state space of acceleration at time k+1.

基于上述方法,即可确定每种工况状态下k时刻加速度的状态空间和k+1时刻加速度的状态空间。Based on the above method, the state space of acceleration at time k and the state space of acceleration at time k+1 under each working condition can be determined.

S402、确定k时刻加速度的状态空间中任一状态转移到k+1时刻加速度的状态空间中任一状态的概率。S402, determining the probability of any state in the state space of acceleration at time k transferring to any state in the state space of acceleration at time k+1.

本申请实施例中,VCU可根据以下公式计算该概率PijIn the embodiment of the present application, the VCU may calculate the probability P ij according to the following formula:

其中,n表示状态空间中的状态个数。Where n represents the number of states in the state space.

Fri表示加速度从k时刻转移到k+1时刻时从某一状态开始转移的次数,示例性地,在以下矩阵中: Fri represents the number of times the acceleration is transferred from a certain state when it is transferred from time k to time k+1. For example, in the following matrix:

加速度从k时刻转移到k+1时刻时从E状态开始转移的次数为5次,分别加速度从第一行第一列对应的时刻转移到第一行第二列对应的时刻是从E状态开始转移的、加速度从第二行第二列对应的时刻转移到第二行第三列对应的时刻是从E状态开始转移的、加速度从第二行第三列对应的时刻转移到第二行第四列对应的时刻是从E状态开始转移的、加速度从第三行第二列对应的时刻转移到第三行第三列对应的时刻是从E状态开始转移的、加速度从第三行第三列对应的时刻转移到第三行第四列对应的时刻是从E状态开始转移的。When the acceleration transfers from time k to time k+1, the number of times it transfers from the E state is 5 times, namely, the acceleration transfers from the moment corresponding to the first row and first column to the moment corresponding to the first row and second column, which is the transfer from the E state; the acceleration transfers from the moment corresponding to the second row and second column to the moment corresponding to the second row and third column, which is the transfer from the E state; the acceleration transfers from the moment corresponding to the second row and third column to the moment corresponding to the second row and fourth column, which is the transfer from the E state; the acceleration transfers from the moment corresponding to the third row and second column to the moment corresponding to the third row and third column, which is the transfer from the E state; and the acceleration transfers from the moment corresponding to the third row and third column to the moment corresponding to the third row and fourth column, which is the transfer from the E state.

其中,Frij表示加速度从k时刻转移到k+1时刻时从某一状态转移到另一个状态的次数。示例性地,加速度从k时刻转移到k+1时刻时从E状态转移到F状态的次数为1,加速度从k时刻转移到k+1时刻时从E状态转移到E状态的次数为3,加速度从k时刻转移到k+1时刻时从E状态转移到G状态的次数为3。Wherein, Frij represents the number of times the acceleration is transferred from one state to another state when it is transferred from time k to time k+1. For example, the number of times the acceleration is transferred from state E to state F when it is transferred from time k to time k+1 is 1, the number of times the acceleration is transferred from state E to state E when it is transferred from time k to time k+1 is 3, and the number of times the acceleration is transferred from state E to state G when it is transferred from time k to time k+1 is 3.

其中,Pij表示k时刻加速度的状态空间中任一状态转移到k+1时刻加速度的状态空间中任一状态的概率。示例性地,k时刻加速度的状态空间中E状态转移到k+1时刻加速度的状态空间中F状态的概率为1/5,k时刻加速度的状态空间中E状态转移到k+1时刻加速度的状态空间中E状态的概率为3/5,k时刻加速度的状态空间中E状态转移到k+1时刻加速度的状态空间中G状态的概率为1/5。Wherein, Pij represents the probability of any state in the state space of acceleration at time k transferring to any state in the state space of acceleration at time k+1. For example, the probability of the E state in the state space of acceleration at time k transferring to the F state in the state space of acceleration at time k+1 is 1/5, the probability of the E state in the state space of acceleration at time k transferring to the E state in the state space of acceleration at time k+1 is 3/5, and the probability of the E state in the state space of acceleration at time k transferring to the G state in the state space of acceleration at time k+1 is 1/5.

S403、基于k时刻加速度的状态空间中任一状态转移到k+1时刻加速度的状态空间中任一状态的概率,构建加速度预测模型。S403: Construct an acceleration prediction model based on the probability of any state in the state space of acceleration at time k transferring to any state in the state space of acceleration at time k+1.

应理解,基于S402可以构建加速度转移矩阵,构建的加速度转移矩阵可表示为:It should be understood that based on S402, an acceleration transfer matrix can be constructed, and the constructed acceleration transfer matrix can be expressed as:

其中,n为加速度的状态个数,P11可以表示加速度从第一个状态转移到第第一个状态的概率,P1n可以表示加速度从第一个状态转移到第n个状态的概率,Pn1可以表示加速度从第n个状态转移到第1个状态的概率,Pnn可以表示从第n个状态转移到第n个状态的概率。Among them, n is the number of states of acceleration, P11 can represent the probability of acceleration transferring from the first state to the first state, P1n can represent the probability of acceleration transferring from the first state to the nth state, Pn1 can represent the probability of acceleration transferring from the nth state to the first state, and Pnn can represent the probability of acceleration transferring from the nth state to the nth state.

利用本申请实施例提供的加速度预测模型,在预测k+1时刻的加速度时,与历史加速度无关,仅与k时刻的加速度有关,可以不用考虑车辆历史的行驶数据,减少了预测加速度时模型的计算量,提升了模型的处理速度。By using the acceleration prediction model provided in the embodiment of the present application, when predicting the acceleration at time k+1, it is independent of the historical acceleration and is only related to the acceleration at time k. The vehicle's historical driving data does not need to be considered, which reduces the amount of calculation of the model when predicting acceleration and improves the processing speed of the model.

本申请实施例中,VCU将第一加速度输入方法400构建的加速度预测模型中进行处理,即可确定第二加速度。In the embodiment of the present application, the VCU processes the first acceleration input into the acceleration prediction model constructed by the method 400 to determine the second acceleration.

应理解,VCU在加速度预测模型中的处理过程为:基于加速度转移矩阵和第一加速度,确定第二时刻对应的第一加速度转移到第一时刻对应的其他加速度的概率,将最大概率对应的加速度确定为第二加速度。It should be understood that the processing process of VCU in the acceleration prediction model is: based on the acceleration transfer matrix and the first acceleration, determine the probability that the first acceleration corresponding to the second moment is transferred to other accelerations corresponding to the first moment, and determine the acceleration corresponding to the maximum probability as the second acceleration.

示例性地,假设第一加速度为E,基于加速度转移矩阵和E,确定第一时刻对应的E转移到第二时刻对应的F的概率为1/5,E转移到E的概率为3/5,E转移到G的概率为1/5,将最大概率3/5对应的加速度E确定为第二加速度。Exemplarily, assuming that the first acceleration is E, based on the acceleration transfer matrix and E, the probability that E corresponding to the first moment transfers to F corresponding to the second moment is 1/5, the probability that E transfers to E is 3/5, and the probability that E transfers to G is 1/5, and the acceleration E corresponding to the maximum probability 3/5 is determined as the second acceleration.

本申请实施例中,VCU在确定了第二加速度之后,可根据以下公式确定第二速度:In the embodiment of the present application, after determining the second acceleration, the VCU may determine the second speed according to the following formula:

vk+1=vk+ak+1*Δt。v k+1 =v k +ak +1 *Δt.

其中,vk+1表示第二速度,vk表示第一速度,ak+1表示第二加速度,Δt表示第一速度和第二速度的间隔时长。应理解,此处的间隔时长与S201中第一时间段内行驶数据的间隔时长相同。Wherein, v k+1 represents the second speed, v k represents the first speed, a k+1 represents the second acceleration, and Δt represents the interval between the first speed and the second speed. It should be understood that the interval here is the same as the interval of the driving data in the first time period in S201.

在一些实施例中,VCU通过第一加速度预测第二加速度;基于第一速度和第二加速度,预测第二速度。应理解,该实施例中,第一速度和第一加速度对应的第二时刻,第二速度和第二加速度对应第一时刻,第一时刻和第二时刻为相邻时刻。本申请实施例是用第二时刻的第一加速度预测相邻时刻(第一时刻)的第二加速度,进而用第二时刻的速度和第一时刻的加速度预测相邻时刻(第一时刻)的第二速度进行举例说明,并不限定仅能用第一加速度和第一速度预测下一时刻的速度,也可以用第一加速度和第一速度预测与第二时刻不相邻的未来某个时刻的速度。In some embodiments, the VCU predicts the second acceleration through the first acceleration; based on the first speed and the second acceleration, the second speed is predicted. It should be understood that in this embodiment, the first speed and the first acceleration correspond to the second moment, the second speed and the second acceleration correspond to the first moment, and the first moment and the second moment are adjacent moments. The embodiment of the present application uses the first acceleration of the second moment to predict the second acceleration of the adjacent moment (first moment), and then uses the speed of the second moment and the acceleration of the first moment to predict the second speed of the adjacent moment (first moment) for illustration. It is not limited to only using the first acceleration and the first speed to predict the speed of the next moment, and the first acceleration and the first speed can also be used to predict the speed of a future moment that is not adjacent to the second moment.

在一些实施例中,方法200还包括:In some embodiments, the method 200 further includes:

VCU将第二加速度输入工况状态对应的加速度预测模型,得到第三加速度,第三加速度为车辆在第三时刻的加速度,第三时刻晚于第一时刻;The VCU inputs the second acceleration into the acceleration prediction model corresponding to the working condition to obtain a third acceleration, where the third acceleration is the acceleration of the vehicle at a third moment, which is later than the first moment;

基于第二速度和第三加速度,确定第三速度,第三速度为车辆在第三时刻的速度。A third speed is determined based on the second speed and the third acceleration, where the third speed is the speed of the vehicle at a third moment.

应理解,本申请实施例中,第二时刻的下一时刻是第一时刻,第一时刻的下一时刻是第三时刻,第二时刻与第一时刻不相邻。在确定第三加速度时,是根据第一时刻对应的第二加速度去确定,具体确定第三加速度的方法与确定第二加速度的方法相同,此处不再赘述。It should be understood that in the embodiment of the present application, the next moment of the second moment is the first moment, the next moment of the first moment is the third moment, and the second moment is not adjacent to the first moment. When determining the third acceleration, it is determined based on the second acceleration corresponding to the first moment. The specific method for determining the third acceleration is the same as the method for determining the second acceleration, which will not be repeated here.

在确定第三速度时,是根据第一时刻对应的第二速度和第三加速度进行确定,具体确定第三速度的方法与确定第二速度的方法相同,此处不再赘述。When determining the third speed, it is determined based on the second speed and the third acceleration corresponding to the first moment. The specific method for determining the third speed is the same as the method for determining the second speed, which will not be repeated here.

应理解,本申请实施例仅用三个时刻进行举例说明,在一些实施例中,VCU可以依据本申请实施例的预测方法,基于第二时刻的速度和加速度,预测晚于第二时刻超过两个时刻的速度和加速度。It should be understood that the embodiment of the present application only uses three moments for illustration. In some embodiments, the VCU can predict the speed and acceleration of more than two moments later than the second moment based on the speed and acceleration at the second moment according to the prediction method of the embodiment of the present application.

本申请实施例中,由于加速度可以反映驾驶员的驾驶意图,所以在预测车速时,先基于第二加速度和工况状态对应的加速度预测模型得到第三加速度,可以预测出驾驶员在未来的驾驶意图,然后基于第三加速度和第二速度,确定第三速度,所以,本申请实施例在预测车速时,考虑了驾驶员在未来的驾驶意图,提升了预测车速的准确性,并且,本申请实施例的加速度预测模型是马尔可夫模型,在预测第三加速度时,可以不用考虑车辆历史的行驶数据,减少了预测第三加速度时模型的计算量,提升了模型的处理速度。In the embodiment of the present application, since acceleration can reflect the driver's driving intention, when predicting the vehicle speed, the third acceleration is first obtained based on the acceleration prediction model corresponding to the second acceleration and the operating condition, which can predict the driver's driving intention in the future, and then the third speed is determined based on the third acceleration and the second speed. Therefore, when predicting the vehicle speed, the embodiment of the present application takes into account the driver's driving intention in the future, thereby improving the accuracy of the predicted vehicle speed. In addition, the acceleration prediction model of the embodiment of the present application is a Markov model. When predicting the third acceleration, the vehicle's historical driving data does not need to be considered, thereby reducing the amount of calculation of the model when predicting the third acceleration and improving the processing speed of the model.

在一些实施例中,S203还包括:获取车辆的第一速度;基于工况状态对应的车速预测模型,确定第二车速,第二车速为第一时刻的车速。In some embodiments, S203 also includes: obtaining a first speed of the vehicle; and determining a second speed based on a vehicle speed prediction model corresponding to the operating state, the second speed being the vehicle speed at the first moment.

本申请实施例中,车速预测模型是马尔可夫模型。构建基于马尔可夫模型的车速预测模型的方法与构建基于马尔可夫模型的加速度预测模型的方法相同,此处不再赘述。In the embodiment of the present application, the vehicle speed prediction model is a Markov model. The method of constructing a vehicle speed prediction model based on the Markov model is the same as the method of constructing an acceleration prediction model based on the Markov model, which will not be described in detail here.

VCU在车速预测模型中的处理过程为:基于车速转移矩阵和第一速度,确定第二时刻的第一速度转移到第一时刻对应的其他速度的概率,将最大概率对应的速度确定为第二速度。The processing process of the VCU in the vehicle speed prediction model is: based on the vehicle speed transfer matrix and the first speed, determine the probability that the first speed at the second moment is transferred to other speeds corresponding to the first moment, and determine the speed corresponding to the maximum probability as the second speed.

应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

请参考图5,图5是本申请实施例提供的一种预测车速的装置50的结构示意图,该装置包括:Please refer to FIG. 5 , which is a schematic diagram of the structure of a device 50 for predicting vehicle speed provided in an embodiment of the present application, the device comprising:

处理单元51,获取车辆在第一时间段内的行驶数据;The processing unit 51 obtains the driving data of the vehicle in a first time period;

基于行驶数据,确定车辆的工况状态;Determine the vehicle's operating status based on driving data;

基于车辆的工况状态,确定车辆在第一时刻的车速,第一时刻晚于第一时间段。Based on the operating state of the vehicle, a speed of the vehicle at a first moment is determined, where the first moment is later than the first time period.

处理单元51,还用于基于行驶数据,确定车辆在第一时间段内的行驶参数,行驶参数包括以下至少一个:最大加速度、最小加速度、平均车速、停车时间比、低速时间比、中速时间比和高速时间比;The processing unit 51 is further used to determine a driving parameter of the vehicle in a first time period based on the driving data, the driving parameter comprising at least one of the following: a maximum acceleration, a minimum acceleration, an average vehicle speed, a parking time ratio, a low speed time ratio, a medium speed time ratio, and a high speed time ratio;

根据行驶参数,确定车辆的工况状态。Determine the vehicle's operating status based on driving parameters.

处理单元51,还用于将行驶参数输入工况识别模型,得到车辆的工况状态。The processing unit 51 is also used to input the driving parameters into the working condition identification model to obtain the working condition status of the vehicle.

处理单元51还用于针对每种工况状态,选取预设组数的训练数据,每组训练数据包括预设个数的行驶参数和一个基准分析结果;The processing unit 51 is also used to select a preset number of sets of training data for each operating state, each set of training data including a preset number of driving parameters and a benchmark analysis result;

基于训练数据对工况识别模型进行训练,直至工况识别模型收敛。The operating condition identification model is trained based on the training data until the operating condition identification model converges.

处理单元51,还用于获取车辆的第一速度和第一加速度,第一速度为车辆在第二时刻的速度,第一加速度为车辆在第二时刻的加速度,第二时刻为第一时间段内的任一时刻;The processing unit 51 is further used to obtain a first speed and a first acceleration of the vehicle, where the first speed is the speed of the vehicle at a second moment, the first acceleration is the acceleration of the vehicle at the second moment, and the second moment is any moment within the first time period;

基于工况状态对应的加速度预测模型、第一速度和第一加速度,确定第二速度,第二速度为车辆在第一时刻的速度。Based on the acceleration prediction model corresponding to the operating condition, the first speed and the first acceleration, a second speed is determined, where the second speed is the speed of the vehicle at the first moment.

处理单元51,还用于通过工况状态对应的加速度预测模型对第一加速度进行处理,确定第二加速度,所述第二加速度为所述车辆在所述第一时刻的加速度;The processing unit 51 is further used to process the first acceleration by using an acceleration prediction model corresponding to the operating state to determine a second acceleration, where the second acceleration is the acceleration of the vehicle at the first moment;

基于第一速度和第二加速度,确定第二速度。Based on the first velocity and the second acceleration, a second velocity is determined.

处理单元51,还用于将第二加速度输入工况状态对应的加速度预测模型,得到第三加速度,第三加速度为车辆在第三时刻的加速度,第三时刻晚于第一时刻;The processing unit 51 is further used to input the second acceleration into the acceleration prediction model corresponding to the working condition to obtain a third acceleration, where the third acceleration is the acceleration of the vehicle at a third moment, and the third moment is later than the first moment;

基于第二速度和第三加速度,确定第三速度,第三速度为车辆在第三时刻的速度。A third speed is determined based on the second speed and the third acceleration, where the third speed is the speed of the vehicle at a third moment.

处理单元51中工况状态对应的加速度预测模型是马尔科夫模型。The acceleration prediction model corresponding to the operating state in the processing unit 51 is a Markov model.

处理单元51还用于针对每种工况状态,基于训练数据中的行驶数据,确定k时刻加速度的状态空间和k+1时刻加速度的状态空间;The processing unit 51 is further used to determine, for each operating state, a state space of acceleration at time k and a state space of acceleration at time k+1 based on driving data in the training data;

确定所述k时刻加速度的状态空间中任一状态转移到所述k+1时刻加速度的状态空间中任一状态的概率;Determine the probability of any state in the state space of the acceleration at time k transferring to any state in the state space of the acceleration at time k+1;

基于所述k时刻加速度的状态空间中任一状态转移到所述k+1时刻加速度的状态空间中任一状态的概率,构建所述加速度预测模型。The acceleration prediction model is constructed based on the probability of any state in the state space of the acceleration at time k transferring to any state in the state space of the acceleration at time k+1.

处理单元51中工况状态为以下任一种:拥堵工况状态、市区工况状态、郊区工况状态和高速工况状态。The operating state in the processing unit 51 is any one of the following: a congested operating state, an urban operating state, a suburban operating state, and a high-speed operating state.

所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

如图6所示,本申请实施例还提供一种电子设备60,包括存储器61、处理器62以及存储在存储器61中并可在处理器62上运行的计算机程序63,处理器62执行计算机程序63时实现上述各实施例的预测车速的方法。As shown in FIG6 , an embodiment of the present application further provides an electronic device 60, including a memory 61, a processor 62, and a computer program 63 stored in the memory 61 and executable on the processor 62. When the processor 62 executes the computer program 63, the method for predicting vehicle speed in the above-mentioned embodiments is implemented.

所述处理器62可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The processor 62 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

所述存储器61可以是电子设备60的内部存储单元。所述存储器61也可以是电子设备60的外部存储设备,例如电子设备60上配备的插接式硬盘,智能存储卡(Smart MediaCard,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,存储器61还可以既包括电子设备60的内部存储单元也包括外部存储设备。存储器61用于存储计算机程序以及电子设备60所需的其他程序和数据。存储器61还可以用于暂时地存储已经输出或者将要输出的数据。The memory 61 may be an internal storage unit of the electronic device 60. The memory 61 may also be an external storage device of the electronic device 60, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 60. Further, the memory 61 may include both an internal storage unit of the electronic device 60 and an external storage device. The memory 61 is used to store computer programs and other programs and data required by the electronic device 60. The memory 61 may also be used to temporarily store data that has been output or is to be output.

本申请实施例还提供一种车辆,包括图6中的电子设备60。The embodiment of the present application further provides a vehicle, including the electronic device 60 shown in FIG. 6 .

本申请实施例提供了一种芯片,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述各实施例的预测车速的方法。An embodiment of the present application provides a chip, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the method for predicting vehicle speed of the above-mentioned embodiments is implemented.

本申请实施例还提供了一种计算机可读存储介质,计算机可读存储介质存储有计算机程序,计算机程序被处理器执行时实现上述各实施例的预测车速的方法。An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the method for predicting vehicle speed in the above embodiments is implemented.

本申请实施例提供了一种计算机程序产品,当计算机程序产品在移动终端上运行时,使得移动终端执行时实现上述各实施例的预测车速的方法。An embodiment of the present application provides a computer program product. When the computer program product is run on a mobile terminal, the mobile terminal implements the method for predicting vehicle speed of the above embodiments when executing the computer program product.

集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,计算机程序包括计算机程序代码,计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。计算机可读存储介质至少可以包括:能够将计算机程序代码携带到拍照装置/电子设备的任何实体或装置、记录介质、计算机存储器、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、电载波信号、电信信号以及软件分发介质。例如U盘、移动硬盘、磁碟或者光盘等。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned various method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable storage medium may at least include: any entity or device that can carry the computer program code to the camera/electronic device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a disk or an optical disk.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本申请实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present application.

以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims (14)

1.一种预测车速的方法,其特征在于,包括:1. A method for predicting vehicle speed, comprising: 获取车辆在第一时间段内的行驶数据;Acquire driving data of the vehicle in a first time period; 基于所述行驶数据,确定所述车辆的工况状态;Determining the operating state of the vehicle based on the driving data; 基于所述车辆的工况状态,确定所述车辆在第一时刻的车速,所述第一时刻晚于所述第一时间段。Based on the operating state of the vehicle, a vehicle speed of the vehicle at a first moment is determined, and the first moment is later than the first time period. 2.根据权利要求1所述的方法,其特征在于,所述基于所述行驶数据,确定所述车辆的工况状态,包括:2. The method according to claim 1, characterized in that the determining the operating state of the vehicle based on the driving data comprises: 基于所述行驶数据,确定所述车辆在所述第一时间段内的行驶参数,所述行驶参数包括以下至少一个:最大加速度、最小加速度、平均车速、停车时间比、低速时间比、中速时间比和高速时间比;Determine, based on the driving data, driving parameters of the vehicle in the first time period, the driving parameters comprising at least one of the following: maximum acceleration, minimum acceleration, average vehicle speed, parking time ratio, low speed time ratio, medium speed time ratio, and high speed time ratio; 根据所述行驶参数,确定所述车辆的工况状态。The operating state of the vehicle is determined according to the driving parameters. 3.根据权利要求2所述的方法,其特征在于,所述根据所述行驶参数,确定所述车辆的工况状态,包括:3. The method according to claim 2, characterized in that the determining the operating state of the vehicle according to the driving parameters comprises: 将所述行驶参数输入工况识别模型,得到所述车辆的工况状态。The driving parameters are input into a working condition identification model to obtain the working condition state of the vehicle. 4.根据权利要求3所述的方法,其特征在于,所述工况识别模型是基于以下方式训练得到的:4. The method according to claim 3, characterized in that the operating condition identification model is trained based on the following method: 针对每种工况状态,选取预设组数的训练数据,每组所述训练数据包括预设个数的行驶参数和一个基准分析结果;For each operating condition, a preset number of sets of training data are selected, each set of the training data includes a preset number of driving parameters and a benchmark analysis result; 基于所述训练数据对所述工况识别模型进行训练,直至所述工况识别模型收敛。The operating condition identification model is trained based on the training data until the operating condition identification model converges. 5.根据权利要求1至4任一项所述的方法,其特征在于,所述基于所述车辆的工况状态,确定所述车辆在第一时刻的车速,包括:5. The method according to any one of claims 1 to 4, characterized in that determining the speed of the vehicle at the first moment based on the operating state of the vehicle comprises: 获取所述车辆的第一速度和第一加速度,所述第一速度为所述车辆在第二时刻的速度,所述第一加速度为所述车辆在所述第二时刻的加速度,所述第二时刻为所述第一时间段内的任一时刻;Acquire a first speed and a first acceleration of the vehicle, wherein the first speed is the speed of the vehicle at a second moment, the first acceleration is the acceleration of the vehicle at the second moment, and the second moment is any moment within the first time period; 基于所述工况状态对应的加速度预测模型、所述第一速度和所述第一加速度,确定第二速度,所述第二速度为所述车辆在所述第一时刻的速度。Based on the acceleration prediction model corresponding to the operating state, the first speed and the first acceleration, a second speed is determined, where the second speed is the speed of the vehicle at the first moment. 6.根据权利要求5所述的方法,其特征在于,所述基于所述工况状态对应的加速度预测模型、所述第一速度和所述第一加速度,确定第二速度,包括:6. The method according to claim 5, characterized in that the determining the second speed based on the acceleration prediction model corresponding to the operating state, the first speed and the first acceleration comprises: 通过所述工况状态对应的加速度预测模型对所述第一加速度进行处理,确定所述第二加速度,所述第二加速度为所述车辆在所述第一时刻的加速度;Processing the first acceleration by using an acceleration prediction model corresponding to the operating state to determine the second acceleration, where the second acceleration is the acceleration of the vehicle at the first moment; 基于所述第一速度和所述第二加速度,确定所述第二速度。Based on the first speed and the second acceleration, the second speed is determined. 7.根据权利要求5所述的方法,其特征在于,所述方法还包括:7. The method according to claim 5, characterized in that the method further comprises: 将所述第二加速度输入所述工况状态对应的加速度预测模型,得到第三加速度,所述第三加速度为所述车辆在第三时刻的加速度,所述第三时刻晚于所述第一时刻;Inputting the second acceleration into an acceleration prediction model corresponding to the operating state to obtain a third acceleration, where the third acceleration is the acceleration of the vehicle at a third moment, and the third moment is later than the first moment; 基于所述第二速度和所述第三加速度,确定第三速度,所述第三速度为所述车辆在所述第三时刻的速度。A third speed is determined based on the second speed and the third acceleration, where the third speed is the speed of the vehicle at the third moment. 8.根据权利要求5所述的方法,其特征在于,所述工况状态对应的加速度预测模型是马尔科夫模型。8. The method according to claim 5, characterized in that the acceleration prediction model corresponding to the operating state is a Markov model. 9.根据权利要求8所述的方法,其特征在于,所述加速度预测模型的构建方式包括:9. The method according to claim 8, characterized in that the acceleration prediction model is constructed in a manner comprising: 针对每种工况状态,基于训练数据中的行驶数据,确定k时刻加速度的状态空间和k+1时刻加速度的状态空间;For each operating condition, based on the driving data in the training data, determine the state space of acceleration at time k and the state space of acceleration at time k+1; 确定所述k时刻加速度的状态空间中任一状态转移到所述k+1时刻加速度的状态空间中任一状态的概率;Determine the probability of any state in the state space of the acceleration at time k transferring to any state in the state space of the acceleration at time k+1; 基于所述k时刻加速度的状态空间中任一状态转移到所述k+1时刻加速度的状态空间中任一状态的概率,构建所述加速度预测模型。The acceleration prediction model is constructed based on the probability of any state in the state space of the acceleration at time k transferring to any state in the state space of the acceleration at time k+1. 10.根据权利要求1至4、6至9任一项所述的方法,其特征在于,所述工况状态为以下任一种:拥堵工况状态、市区工况状态、郊区工况状态和高速工况状态。10. The method according to any one of claims 1 to 4 and 6 to 9, characterized in that the operating state is any one of the following: a congested operating state, an urban operating state, a suburban operating state and a high-speed operating state. 11.一种预测车速的装置,其特征在于,包括:处理单元,所述处理单元用于:11. A device for predicting vehicle speed, comprising: a processing unit, the processing unit being used for: 获取车辆在第一时间段内的行驶数据;Acquire driving data of the vehicle in a first time period; 基于所述行驶数据,确定所述车辆的工况状态;Determining the operating state of the vehicle based on the driving data; 基于所述车辆的工况状态,确定所述车辆在第一时刻的车速,所述第一时刻晚于所述第一时间段。Based on the operating state of the vehicle, a vehicle speed of the vehicle at a first moment is determined, and the first moment is later than the first time period. 12.一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至10任一项所述的预测车速的方法。12. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the method for predicting vehicle speed according to any one of claims 1 to 10. 13.一种电子设备,其特征在于,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如权利要求1至10任一项所述的预测车速的方法。13. An electronic device, characterized in that it comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for predicting vehicle speed as claimed in any one of claims 1 to 10 is implemented. 14.一种车辆,其特征在于,包括如权利要求13所述的电子设备。14. A vehicle, comprising the electronic device according to claim 13.
CN202310094479.9A 2023-01-31 2023-01-31 Method, device, electronic device and readable storage medium for predicting vehicle speed Pending CN118430224A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310094479.9A CN118430224A (en) 2023-01-31 2023-01-31 Method, device, electronic device and readable storage medium for predicting vehicle speed

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310094479.9A CN118430224A (en) 2023-01-31 2023-01-31 Method, device, electronic device and readable storage medium for predicting vehicle speed

Publications (1)

Publication Number Publication Date
CN118430224A true CN118430224A (en) 2024-08-02

Family

ID=92330037

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310094479.9A Pending CN118430224A (en) 2023-01-31 2023-01-31 Method, device, electronic device and readable storage medium for predicting vehicle speed

Country Status (1)

Country Link
CN (1) CN118430224A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119749572A (en) * 2024-12-16 2025-04-04 中国重汽集团济南动力有限公司 Vehicle speed prediction method, device and computer program product

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119749572A (en) * 2024-12-16 2025-04-04 中国重汽集团济南动力有限公司 Vehicle speed prediction method, device and computer program product

Similar Documents

Publication Publication Date Title
CN110610260B (en) Driving energy consumption prediction system, method, storage medium and equipment
CN110091751B (en) Electric automobile endurance mileage prediction method, device and medium based on deep learning
CN111452619B (en) Online energy consumption prediction method and system for electric vehicle
CN112549970A (en) Vehicle driving mileage prediction method, device, vehicle and storage medium
CN109733248A (en) Model prediction method for remaining range of pure electric vehicle based on path information
CN115817183B (en) A method and device for predicting the driving range of a pure electric vehicle
CN111775925A (en) A working mode decision-making method and device for a power-split hybrid electric vehicle
CN112731806B (en) Real-time optimization method for stochastic model predictive control of intelligent networked vehicles
CN114677254B (en) Truck accident identification method, device, storage medium and program product
CN114897312B (en) Driving behavior scoring method, device, equipment and storage medium
CN115759462A (en) Charging behavior prediction method and device for electric vehicle user and electronic equipment
Salunkhe et al. Energy optimization for CAN bus and media controls in electric vehicles using deep learning algorithms
CN115271001A (en) Vehicle driving condition identification method and device, vehicle and storage medium
CN117301795A (en) Method and device for controlling air conditioner of vehicle, electronic equipment and vehicle
WO2021042464A1 (en) Human-machine interaction method and apparatus based on internet of vehicles
CN118430224A (en) Method, device, electronic device and readable storage medium for predicting vehicle speed
CN118411828A (en) Smart city data processing method and system based on machine learning
CN115841712A (en) Driving data processing method, device and equipment based on V2X technology
CN114446042B (en) Method, device, equipment and storage medium for early warning traffic accidents
CN113298309A (en) Method, device and terminal for predicting traffic congestion state
CN117863886A (en) Range-extending vehicle endurance prediction method and device, electronic equipment and medium
CN116229724B (en) Traffic signal control method and system considering average delay of passengers
CN115859123B (en) Online identification method of vehicle driving conditions based on stochastic prediction and machine learning
CN118675317A (en) Intelligent traffic control system, method, equipment and medium
CN116993037A (en) Method and device for determining driving route based on vehicle power consumption

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination