Vehicle speed prediction method, storage medium, device and vehicle
By obtaining the average speed of the traffic flow and historical driving speed of the itinerary segments, and combining the preset speed mapping relationship, a vehicle driving speed table is generated, which solves the problem of accuracy and calculation of vehicle driving speed prediction in the vehicle end environment, and realizes the An efficient prediction method.
Patent Information
- Application Number
- CN202411030699.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2044-07-30
AI Technical Summary
The existing vehicle driving speed prediction methods are difficult to implement in the vehicle-end environment. It is necessary to ensure accurate predictions, but it does not want to increase excessive calculation volume.
By obtaining the average speed of the traffic flow in the trip segment and based on the preset speed mapping relationship and historical driving speed, the predicted driving speed of the vehicle in each trip segment is determined, combining the average speed of the traffic flow and the individual historical real speed, generating Driving speedometer ensures prediction accuracy and controllable calculations.
It realizes high-precision vehicle driving speed prediction in the vehicle-end environment, improves prediction accuracy, and avoids excessive calculations, ensuring the feasibility of the method.
Smart Images

Figure CN118675336B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and in particular to a vehicle speed prediction method, storage medium, device and vehicle. Background Art
[0002] By predicting the vehicle's speed, we can estimate the time it takes for the vehicle to complete a trip. For electric vehicles, the vehicle's speed prediction can also help with the vehicle's energy management control. Currently, vehicle speed prediction can be achieved through deep learning, neural networks and other methods. Such methods are highly accurate, but the model training and calculation volume are too large to be implemented in a vehicle-side environment. Summary of the invention
[0003] The embodiments of the present application provide a vehicle speed prediction method, storage medium, device and vehicle, which can accurately predict the vehicle speed without generating excessive calculation amount, ensuring that it can be deployed in a vehicle-side environment to at least partially solve the above-mentioned technical problems.
[0004] To achieve the above-mentioned purpose, according to the first aspect of the present application, a vehicle driving speed prediction method is provided, comprising: in the process of the vehicle driving according to the current itinerary, obtaining the average traffic flow speed of each trip segment between the current position of the trip and the end point of the trip; for each of the trip segments, based on a preset speed mapping relationship and the average traffic flow speed of the trip segment, determining the predicted driving speed of the vehicle in the trip segment; wherein the speed mapping relationship is used to indicate the mapping relationship between the historical average traffic flow speed and the historical driving speed of the vehicle.
[0005] Optionally, the speed mapping relationship includes a plurality of speed mapping probabilities, each of which refers to a probability of occurrence of a historical driving speed at a historical traffic flow average speed.
[0006] Optionally, determining the predicted driving speed of the vehicle in the travel segment based on a preset speed mapping relationship and the average traffic flow speed of the travel segment includes: acquiring at least one speed mapping probability corresponding to the average traffic flow speed of the travel segment from the speed mapping relationship; and determining the predicted driving speed of the vehicle in the travel segment based on the historical driving speed corresponding to the speed mapping probability that meets a preset condition in at least one speed mapping probability.
[0007] Optionally, the preset condition includes that the value of the speed mapping probability is maximum.
[0008] Optionally, after determining the predicted driving speed of the vehicle in the travel segments based on the preset speed mapping relationship and the average speed of the traffic flow in the travel segments, the method further includes: obtaining a reference time for each of the travel segments; for each of the travel segments, using the predicted driving speed of the vehicle in the travel segment as the predicted driving speed of the vehicle at the reference time for the travel segment; and generating a driving speed table for the vehicle based on the predicted driving speed of the vehicle at the reference time of at least one of the travel segments.
[0009] Optionally, obtaining the reference time of each of the travel segments includes: for each of the travel segments, determining the predicted travel time of the vehicle in the travel segment based on the length of the travel segment and the predicted driving speed of the vehicle in the travel segment; and determining the reference time of each of the travel segments based on the current time of the trip and the predicted travel time of the vehicle in at least one of the travel segments.
[0010] Optionally, there are n trip segments arranged in sequence between the current position of the trip and the end point of the trip; the reference time of each trip segment is determined based on the current time of the trip and the predicted travel time of the vehicle in at least one of the trip segments, including: for the i-th trip segment among the n trip segments, the current time of the trip, the sum of the predicted travel time of the vehicle in the i-1 trip segments before the i-th trip segment, and half of the predicted travel time of the i-th trip segment are summed to obtain the reference time of the i-th trip segment; wherein n is a positive integer, and i is a positive integer less than or equal to n.
[0011] Optionally, the generating of the driving speed table of the vehicle based on the predicted driving speed of the vehicle at the reference moment of at least one of the trip segments includes: generating the driving speed table of the vehicle based on the actual driving speed of the vehicle at at least one historical moment of the current trip, and the predicted driving speed of the vehicle at the reference moment of at least one of the trip segments.
[0012] Optionally, the method also includes: obtaining the historical traffic flow average speed and the historical driving speed of at least one trip segment of at least one historical trip; for each historical driving speed under each historical traffic flow average speed, determining the mapping relationship between the historical traffic flow average speed and the historical driving speed based on the number of occurrences of the historical traffic flow average speed and the number of occurrences of the historical driving speed under the historical traffic flow average speed; based on the mapping relationship between at least one historical traffic flow average speed and at least one historical driving speed, generating a preset speed mapping relationship.
[0013] Optionally, the obtaining of the historical average traffic flow speed and the historical driving speed of at least one trip segment of at least one historical trip includes: for each historical trip, obtaining the historical average traffic flow speed of each trip segment of the historical trip while the vehicle is traveling according to the historical trip; for each trip segment of each historical trip, determining the historical driving speed of the vehicle in the trip segment based on the length of the trip segment and the actual travel time of the vehicle in the trip segment.
[0014] Optionally, the method also includes: after the vehicle finishes traveling the current trip, obtaining the average traffic flow speed and the historical driving speed of at least one of the trip segments of the current trip; updating the mapping relationship between at least one of the historical traffic flow average speeds and at least one of the historical driving speeds based on the average traffic flow speed and the historical driving speed of at least one of the trip segments of the current trip; when there is a difference in the value of the mapping relationship before and after the update that is greater than a preset threshold, updating the preset speed mapping relationship based on the updated mapping relationship between at least one of the historical traffic flow average speeds and at least one of the historical driving speeds.
[0015] Optionally, obtaining the average traffic flow speed of each trip segment between the current trip position and the trip endpoint includes: dividing at least one trip segment between the current trip position and the trip endpoint according to a preset length of the trip segment; obtaining the average traffic flow speed of each trip segment; wherein the length of the last trip segment in at least one trip segment is less than or equal to the preset length, and the lengths of the remaining trip segments in at least one trip segment except the last trip segment are equal to the preset length.
[0016] According to a second aspect of the present application, a vehicle driving speed prediction device is provided, comprising: a speed acquisition module, used to acquire the average traffic flow speed of each trip segment between the current position of the trip and the end point of the trip while the vehicle is traveling according to the current trip; a speed prediction module, used to determine, for each of the trip segments, the predicted driving speed of the vehicle in the trip segment based on a preset speed mapping relationship and the average traffic flow speed of the trip segment; wherein the speed mapping relationship is used to indicate the mapping relationship between the historical average traffic flow speed and the historical driving speed of the vehicle.
[0017] According to a third aspect of the present application, a non-temporary computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the above-mentioned vehicle speed prediction method is implemented.
[0018] According to a fourth aspect of the present application, an electronic device is provided, comprising: a memory on which a computer program is stored; and a processor for executing the computer program in the memory to implement the above-mentioned vehicle speed prediction method.
[0019] According to a fifth aspect of the present application, a vehicle is provided, comprising the vehicle speed prediction device as described above, or comprising the electronic device as described above.
[0020] The vehicle speed prediction method provided in the embodiment of the present application obtains the average traffic flow speed of each trip segment between the current position of the trip and the end point of the trip while the vehicle is traveling according to the current trip, and then determines the predicted driving speed of the vehicle in each trip segment based on a preset speed mapping relationship and the average traffic flow speed of the trip segment. Since the preset speed mapping relationship is used to indicate the mapping relationship between at least one historical traffic flow average speed and at least one historical driving speed, the vehicle driving speed is predicted based on the preset speed mapping relationship and the obtained traffic flow average speed, thereby realizing the conversion of the traffic flow average speed to the individual speed. The embodiment of the present application considers both the traffic flow average speed and the individual historical real speed when predicting the vehicle driving speed, thereby improving the accuracy of the vehicle driving speed prediction. At the same time, since the embodiment of the present application performs the vehicle driving speed prediction based on the preset speed mapping relationship, it will not generate excessive calculation amount, ensuring that it can be deployed in the vehicle-side environment.
[0021] Other features and advantages of the present application will be described in detail in the subsequent detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application, and those skilled in the art can obtain other drawings based on these drawings without creative work.
[0023] In order to more completely understand the present application and its beneficial effects, the following description will be given in conjunction with the accompanying drawings, wherein the same figure numbers represent the same parts in the following description.
[0024] Figure 1 It is a flow chart of a vehicle speed prediction method provided in an embodiment of the present application.
[0025] Figure 2 It is a schematic diagram of a speed mapping relationship provided in an embodiment of the present application.
[0026] Figure 3 It is a schematic diagram of constructing a speed mapping relationship provided in an embodiment of the present application.
[0027] Figure 4 It is a schematic diagram of predicting vehicle speed provided in an embodiment of the present application.
[0028] Figure 5 It is a fitting schematic diagram of a driving speed curve provided in an embodiment of the present application.
[0029] Figure 6 It is a block diagram of a vehicle speed prediction device provided in an embodiment of the present application.
[0030] Figure 7 It is a block diagram of another vehicle speed prediction device provided in an embodiment of the present application.
[0031] Figure 8 It is a block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0032] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0033] By predicting the vehicle's driving speed, we can estimate the time required for the vehicle to complete a journey. For electric vehicles, the vehicle's driving speed prediction can also assist in the vehicle's energy management control.
[0034] As an introduction to the embodiments of the present application, three methods for predicting vehicle speed are now introduced.
[0035] First, the vehicle's driving speed prediction can be achieved through deep learning, neural networks and other methods. Such methods are highly accurate, but the model training and calculation amount are too large to be implemented in a vehicle-side environment.
[0036] Secondly, the vehicle's driving speed prediction can be realized based on the mechanism model. This method is simple to calculate, but has limited accuracy and does not take into account the vehicle's actual driving speed.
[0037] Third, the vehicle's driving speed can be predicted based on the speed data of the current traveled section. Since this method does not take into account the traffic flow and road conditions of future sections, the prediction accuracy is not high and it is only suitable for short-term driving speed prediction.
[0038] In view of this, an embodiment of the present application provides a vehicle speed prediction method, a storage medium, an electronic device and a vehicle. When predicting the vehicle speed, the future average speed of traffic flow and the actual speed of the vehicle are taken into consideration. It is possible to accurately predict the vehicle speed without generating excessive calculation amount, thereby ensuring that it can be deployed in a vehicle-side environment.
[0039] The execution subject of the embodiment of the present application may be an electronic device that can provide navigation services to facilitate the acquisition of the average speed of traffic flow. The embodiment of the present application does not limit the connection relationship between the electronic device and the vehicle. Optionally, the connection relationship between the electronic device and the vehicle is inseparable, such as the electronic device can be a component of the vehicle and pre-installed in the vehicle; or the connection relationship between the electronic device and the vehicle is detachable, such as the electronic device can be a mobile phone, tablet computer, mobile multimedia device, laptop computer, phone watch, smart wearable device, etc. Any terminal that can provide navigation services, its existence and use can be independent of the vehicle, without the need to be installed or fixed in the vehicle.
[0040] According to the first aspect of the present application, an embodiment of the present application provides a method for predicting vehicle speed.
[0041] See also Figure 1 , Figure 1 : is a flow chart of a vehicle speed prediction method provided by an embodiment of the present application. The vehicle speed prediction method may include the following steps:
[0042] Step S110: while the vehicle is traveling according to the current itinerary, obtaining the average speed of the traffic flow in each itinerary segment between the current position of the itinerary and the end point of the itinerary;
[0043] Step S120: for each travel segment, based on a preset speed mapping relationship and an average traffic flow speed of the travel segment, determine a predicted driving speed of the vehicle in the travel segment.
[0044] The current trip refers to the trip on which the vehicle's current driving process is based. When starting the navigation service, the user needs to enter the starting point and end point of the current trip, or, in actual application, the user can also only enter the end point of the current trip, and the starting point of the current trip is automatically obtained by the navigation service. After that, the navigation service provides at least one trip route based on the starting point and end point of the current trip, and the user can select a trip route from them to start the current trip, or the user can also start the current trip based on the default trip route of the navigation service. In the current trip, the vehicle travels according to the trip route selected by the user or the default trip route of the navigation service.
[0045] The navigation service can be turned on when the vehicle is stationary or when the vehicle is moving, and this embodiment of the application does not limit this. When the navigation service is turned on when the vehicle is stationary, the current speed of the vehicle is zero; when the navigation service is turned on when the vehicle is moving, the current speed of the vehicle is greater than zero.
[0046] Since the navigation service is turned on for the current trip, while the vehicle is traveling according to the current trip, the embodiment of the present application obtains the average speed of traffic flow in the untraveled section of the current trip through the navigation service. The average speed of traffic flow in the untraveled section of the current trip is the average of the driving speeds of all vehicles in the untraveled section of the current trip. Optionally, when obtaining the average speed of traffic flow, a certain length of observation time can be set, and the average speed of traffic flow is obtained by taking the average of the driving speeds of all vehicles in the untraveled section of the current trip during the observation time. In order to improve the accuracy of vehicle driving speed prediction, the embodiment of the present application segments the untraveled route of the current trip, divides at least one trip segment between the current position of the vehicle of the current trip (i.e., the current position of the trip) and the end point of the current trip (i.e., the end point of the trip), and obtains the average speed of traffic flow in each trip segment through the navigation service. The average speed of traffic flow in a trip segment is the average of the driving speeds of all vehicles in the trip segment.
[0047] In some embodiments, the above step S110 includes the following steps:
[0048] Step S111: dividing at least one trip segment between the current trip position and the trip end point according to the preset length of the trip segment;
[0049] Step S112: Obtain the average traffic flow speed of each travel segment.
[0050] The preset length of the trip segment can be set in combination with actual needs, such as combining the prediction accuracy requirements and the calculation amount requirements, and configuring the preset length to be 5 meters, 10 meters, 15 meters or 20 meters, etc. Among them, the length of the last trip segment in at least one trip segment is less than or equal to the preset length, and the length of the remaining trip segments except the last trip segment in at least one trip segment is equal to the preset length. It should be understood that in the case where only one trip segment is obtained between the current trip position and the trip end point, the trip segment is the last trip segment, and the length of the trip segment is less than or equal to the preset length.
[0051] In the above step S120, the speed mapping relationship is used to indicate the mapping relationship between the historical average speed of the traffic flow and the historical driving speed of the vehicle. The mapping relationship between the historical average speed of the traffic flow and the historical driving speed can be expressed as a speed mapping probability. For example, the speed mapping relationship includes a plurality of speed mapping probabilities, each of which refers to the probability of occurrence of a historical driving speed of the vehicle at an average speed of the traffic flow. Optionally, the speed mapping relationship can be pre-configured in the electronic device in the form of a table or text. Exemplarily, Figure 2 A possible form and content of the speed mapping relationship is shown. Figure 2 In, P w,v represents the probability of occurrence of the historical driving speed v of the vehicle under the average speed w of the traffic flow. For the construction process of the speed mapping relationship and other introductions, please refer to the following embodiment, which will not be elaborated here.
[0052] Of course, the mapping relationship between the historical traffic flow average speed and the historical driving speed can also be expressed as a speed mapping number. For example, the speed mapping relationship can also include multiple speed mapping numbers, each speed mapping number refers to the number of occurrences of a historical driving speed of the vehicle at a traffic flow average speed.
[0053] In some embodiments, the above step S120 includes the following steps:
[0054] Step S121: obtaining at least one speed mapping probability corresponding to the average speed of the traffic flow of the travel segment from the speed mapping relationship;
[0055] Step S122: determining a predicted driving speed of the vehicle in the travel segment according to a historical driving speed corresponding to a speed mapping probability that meets a preset condition in at least one speed mapping probability.
[0056] For each travel segment, after obtaining the average speed of the traffic flow in the travel segment, at least one speed mapping probability corresponding to the average speed of the traffic flow can be obtained from the speed mapping relationship. Each speed mapping probability refers to the probability of occurrence of a historical driving speed under the average speed of the traffic flow. Afterwards, the predicted driving speed of the vehicle in the travel segment is determined based on the historical driving speed corresponding to the speed mapping probability that meets the preset conditions. The embodiment of the present application does not limit the specific content of the preset conditions. Optionally, the preset conditions include that the value of the speed mapping probability is maximum; or the preset conditions include that the value of the speed mapping probability is greater than a preset threshold. Taking the preset condition including the maximum value of the speed mapping probability as an example, the values of at least one speed mapping probability can be compared, and the historical driving speed corresponding to the speed mapping probability with the maximum value can be selected as the predicted driving speed of the vehicle in the travel segment.
[0057] During the vehicle's travel according to the current itinerary, the embodiment of the present application can obtain the average traffic flow speed of each itinerary segment between the current position of the itinerary and the end point of the itinerary at intervals or at intervals of travel distance, and determine the predicted driving speed of the vehicle in each itinerary segment based on the preset speed mapping relationship and the average traffic flow speed of each itinerary segment. Based on this, during the vehicle's travel, the itinerary segments are not fixed, but are divided in real time according to the current position of the itinerary; and the average traffic flow speed is not fixed, but is obtained in real time by the navigation service based on the latest divided itinerary segments.
[0058] In summary, the vehicle speed prediction method provided in the embodiment of the present application obtains the average traffic flow speed of each trip segment between the current position of the trip and the end point of the trip while the vehicle is traveling according to the current trip, and then determines the predicted driving speed of the vehicle in each trip segment based on the preset speed mapping relationship and the average traffic flow speed of the trip segment. Since the preset speed mapping relationship is used to indicate the mapping relationship between at least one historical traffic flow average speed and at least one historical driving speed, the vehicle speed is predicted based on the preset speed mapping relationship and the obtained traffic flow average speed, thereby realizing the conversion of the traffic flow average speed to the individual speed. The embodiment of the present application considers both the traffic flow average speed and the individual historical real speed when predicting the vehicle speed, thereby improving the accuracy of the vehicle speed prediction. At the same time, since the embodiment of the present application performs the vehicle speed prediction based on the preset speed mapping relationship, it will not generate excessive calculation amount, ensuring that it can be deployed in the vehicle-side environment.
[0059] In some embodiments, the vehicle speed prediction method provided in the embodiments of the present application further includes the following steps after the above step S120:
[0060] Step S130: obtaining the reference time of each travel segment;
[0061] Step S140: for each travel segment, using the predicted driving speed of the vehicle in the travel segment as the predicted driving speed of the vehicle at the reference time of the travel segment;
[0062] Step S150: Generate a driving speed table of the vehicle based on the predicted driving speed of the vehicle at a reference time of at least one travel segment.
[0063] In order to improve the prediction accuracy of the vehicle's driving speed, the embodiment of the present application refines the predicted driving speed of the travel segment to the predicted driving speed at each moment. Based on this, for each travel segment, it is necessary to first obtain the reference time of the travel segment as each moment for the refined prediction of the driving speed. Optionally, the reference time of each travel segment can be the starting time, the ending time, the middle time or any time of the vehicle's passage in the travel segment.
[0064] In some embodiments, the above step S130 includes the following steps:
[0065] Step S131: for each travel segment, based on the length of the travel segment and the predicted travel speed of the vehicle in the travel segment, determining the predicted travel time of the vehicle in the travel segment;
[0066] Step S132: Determine a reference time for each travel segment based on the current time of the journey and the predicted travel time of the vehicle in at least one travel segment.
[0067] The current time of the trip refers to the current time of the current trip, and the duration between the current time of the trip and the start time of the current trip is equal to the travel time of the vehicle according to the current trip. Among them, the start time of the current trip refers to the start time of the vehicle according to the current trip, and at the start time of the current trip, the vehicle's travel speed is greater than or equal to zero.
[0068] In some embodiments, there are n trip segments arranged in sequence between the current position of the trip and the end point of the trip, that is, n trip segments are divided between the current position of the trip and the end point of the trip, and n is a positive integer; the above-mentioned step S132 includes: for the i-th trip segment among the n trip segments, the sum of the current time of the trip, the sum of the predicted travel time of the vehicle in the i-1 trip segments before the i-th trip segment, and half of the predicted travel time of the i-th trip segment are summed to obtain the reference time of the i-th trip segment, and i is a positive integer less than or equal to n.
[0069] For example, T i represents the predicted travel time of the i-th trip segment, TVi represents the predicted driving speed of the vehicle in the i-th travel segment, L i represents the length of the i-th trip segment, S i represents the reference time of the i-th trip segment, C represents the current time of the trip, thus, T i and S i One possible way to calculate is as follows.
[0070]
[0071]
[0072] For the above step S140, illustratively, TV i represents the predicted driving speed of the vehicle in the i-th travel segment, S i represents the reference time of the i-th trip segment, SV i represents the predicted speed of the vehicle at the reference time of the i-th travel segment, then SV i and TV i The relationship is as follows.
[0073]
[0074] The speedometer includes predicted speeds at multiple predicted moments between the current position of the trip and the end point of the trip, and the multiple predicted moments include a reference moment of at least one trip segment. Optionally, the speedometer can be represented in the form of a speed curve, or in the form of a numerical pair, etc., which is not limited in the embodiment of the present application. Among them, when the speedometer is represented in the form of a speed curve, the predicted speed of the vehicle at the reference moment of at least one trip segment is fitted to generate a speed curve of the vehicle. The embodiment of the present application does not limit the specific fitting method, and optionally, a cubic spline curve can be used for fitting.
[0075] In some embodiments, the above step S150 includes: generating a driving speed table of the vehicle based on the actual driving speed of the vehicle at at least one historical moment of the current trip and the predicted driving speed of the vehicle at a reference moment of at least one trip segment.
[0076] When generating the driving speed table, the embodiment of the present application combines the actual driving speed of the vehicle in the route traveled in the current trip, so that the driving speed table integrates the characteristics and change trends of the actual driving speed, thereby improving the accuracy of the driving speed table. Optionally, starting from the start time of the current trip, a historical moment and the actual driving speed of the vehicle at the historical moment can be obtained and recorded every preset driving time, such as every 0.1 second, 0.5 second, 1 second, 5 seconds or 10 seconds, or every preset driving length, such as every 5 meters, 10 meters, 15 meters, 20 meters, etc.
[0077] For example, at the current time of the trip, the actual driving speed of the vehicle at x historical times is accumulated, where x is a positive integer, ZV y It represents the actual driving speed of the vehicle at the yth historical moment, where y is a positive integer less than or equal to x. At the current moment of the trip, n trip segments are divided between the current position of the trip and the end point of the trip, where n is a positive integer. SV i It represents the predicted driving speed of the vehicle at the reference time of the i-th travel segment, where i is a positive integer less than or equal to n.
[0078] Based on this, at the current time of the trip, the speed sequence {ZV1, ..., ZV y , …, ZV x , SV1,…,SV i ,…,SV n}, the speed sequence includes the actual driving speeds at x historical moments and the predicted driving speeds at n reference moments; then, these x+n driving speeds are fitted or interpolated to generate a vehicle speed table.
[0079] In summary, the vehicle speed prediction method provided in the embodiment of the present application determines the predicted speed of the vehicle at the reference time of each travel segment based on the predicted speed of the vehicle in each travel segment, and then generates a vehicle speed table based on this, so as to achieve the prediction of the driving speed to each time point. In addition, when generating the vehicle speed table, the embodiment of the present application also combines the actual driving speed of the vehicle at each historical moment, so that the driving speed table integrates the characteristics and change trends of the actual driving speed, etc., and improves the accuracy of the driving speed table.
[0080] In some embodiments, the vehicle speed prediction method provided by the embodiments of the present application further includes the following steps:
[0081] Step S010: obtaining the historical average traffic flow speed and the historical driving speed of at least one trip segment of at least one historical trip;
[0082] Step S020: for each historical driving speed under each historical traffic flow average speed, based on the number of occurrences of the historical traffic flow average speed and the number of occurrences of the historical driving speed under the historical traffic flow average speed, determining a mapping relationship between the historical traffic flow average speed and the historical driving speed;
[0083] Step S030: generating a preset speed mapping relationship based on a mapping relationship between at least one historical traffic flow average speed and at least one historical driving speed.
[0084] The historical trip refers to the trip based on the historical driving process of the vehicle, which is the trip that has completed the driving process. For each historical trip, at least one trip segment is divided. When the vehicle drives according to the historical trip, the historical average traffic flow speed and the historical driving speed of the vehicle in each trip segment in the historical trip are obtained and recorded. The division method of the trip segment can refer to the above step S110, which will not be repeated here.
[0085] In some embodiments, the above step S010 includes the following steps:
[0086] Step S011: for each historical trip, while the vehicle is traveling according to the historical trip, obtaining the historical average traffic flow speed of each trip segment of the historical trip;
[0087] Step S012: for each travel segment of each historical journey, based on the length of the travel segment and the actual travel time of the vehicle in the travel segment, determine the historical driving speed of the vehicle in the travel segment.
[0088] In each historical trip, the vehicle has activated the navigation service, so the historical average traffic flow speed of each trip segment of the historical trip can be obtained by the navigation service. For example, when the vehicle is traveling according to a certain historical trip, when the vehicle reaches the starting position, the end position, the middle position or other preset specific position of each trip segment of the historical trip, the historical average traffic flow speed of the trip segment of the historical trip is obtained through the navigation service.
[0089] The historical driving speed of the vehicle in each travel segment refers to the average driving speed of the vehicle in the travel segment. Therefore, based on the length of each travel segment and the actual travel time of the vehicle in the travel segment, the historical driving speed of the vehicle in the travel segment can be calculated. In particular, when the vehicle is traveling according to a certain historical itinerary, when the vehicle travels to each travel segment of the historical itinerary, the time information is recorded once at the starting position and the end position of the travel segment respectively. Based on these two time information, the actual travel time of the vehicle in the travel segment can be obtained. Of course, the actual travel time can also be calculated in other ways, and the embodiments of the present application are not limited to this.
[0090] Based on the above step S010, the historical traffic flow average speed and the historical driving speed corresponding to each travel segment of each historical trip can be obtained. Then, in step S020, based on the statistics of the number of occurrences of each historical traffic flow average speed and the number of occurrences of each historical driving speed, the mapping relationship between each historical traffic flow average speed and each historical driving speed is calculated.
[0091] Among them, for the historical driving speed v under the historical traffic flow average speed w, M w,v represents the number of occurrences of the historical driving speed v under the historical traffic flow average speed w. Optionally, M w,v The initial value of M is 0. Whenever the historical average traffic flow speed of a trip segment is determined to be the historical average traffic flow speed w, and the historical driving speed corresponding to the trip segment is the historical driving speed v, w,v Add one to get M w,v By analogy, we can get the number of occurrences of each historical driving speed under each historical traffic flow average speed.
[0092] The number of occurrences of each historical traffic flow average speed is the sum of the number of occurrences of all historical driving speeds under the historical traffic flow average speed. Among them, for the historical traffic flow average speed w, the historical traffic flow average speed w corresponds to k possible historical driving speeds, k is a positive integer, and the number of occurrences of the historical traffic flow average speed w is M. w As shown below.
[0093]
[0094] Based on this, for the historical driving speed v under the historical traffic flow average speed w, M w,v represents the number of occurrences of the historical driving speed v under the historical traffic flow average speed w, M w represents the number of occurrences of the historical average traffic flow speed w. Taking the mapping relationship between the historical average traffic flow speed and the historical driving speed as the speed mapping probability as an example, Pw,v represents the speed mapping probability of the historical driving speed v under the historical traffic flow average speed w; P w,v As shown below.
[0095]
[0096] For each historical traffic flow average speed, the sum of the speed mapping probabilities of all historical driving speeds under the historical traffic flow average speed is 1. For example, for the historical traffic flow average speed w, there are k possible historical driving speeds corresponding to the historical traffic flow average speed w, k is a positive integer, and the speed mapping probabilities of all historical driving speeds under the historical traffic flow average speed w meet the following constraints.
[0097]
[0098] In the embodiment of the present application, when executing step S030, a sample quantity constraint condition can be set for the construction of the speed mapping relationship. When the sample quantity constraint condition is met, a preset speed mapping relationship is generated based on the mapping relationship between all historical traffic flow average speeds and all historical driving speeds. Through the sample quantity constraint condition, it can be ensured that a sufficient number of samples are obtained to ensure the accuracy of the speed mapping relationship.
[0099] In some embodiments, the sample quantity constraint may include obtaining the historical average traffic flow speed and the historical driving speed corresponding to H travel segments, where H is a positive integer with a large value, for example, H is 1000, 8000 or 10000, etc. Based on this, if the sample quantity constraint is not met, steps S010 to S020 are repeatedly performed until the sample quantity constraint is met, and step S030 is performed based on the mapping relationship between all historical traffic flow average speeds and all historical driving speeds.
[0100] In some embodiments, the vehicle speed prediction method provided by the embodiments of the present application further includes the following steps:
[0101] Step S040: After the vehicle finishes traveling on the current trip, obtaining the average speed of traffic flow and the historical travel speed of at least one travel segment of the current trip;
[0102] Step S050: based on the historical traffic flow average speed and the historical driving speed of at least one trip segment of the current trip, updating the mapping relationship between at least one historical traffic flow average speed and at least one historical driving speed;
[0103] Step S060: When the difference between the values of the mapping relationship before and after the update is greater than a preset threshold, the preset speed mapping relationship is updated based on the updated mapping relationship between at least one historical traffic flow average speed and at least one historical driving speed.
[0104] For the method of obtaining the historical average traffic flow speed and the historical driving speed of at least one trip segment of the current trip, please refer to the introduction and instructions on the method of obtaining the historical average traffic flow speed and the historical driving speed of at least one trip segment of at least one historical trip in step S010, which will not be elaborated here.
[0105] The historical average traffic flow speed of at least one trip segment of the current trip obtained in step S040 is not necessarily equal to the average traffic flow speed of each trip segment obtained in step S110. This is because the division of the trip segments in step S110 and step S040 is not necessarily the same, and the average traffic flow speed obtained in step S110 is the average traffic flow speed at a future moment obtained by the navigation service at the current moment, while the historical average traffic flow speed obtained in step S040 is the average traffic flow speed at the current moment obtained by the navigation service at the current moment.
[0106] In step S050, the historical average traffic flow speed and the historical driving speed of all travel segments of the current trip obtained in step S040 are combined with the historical average traffic flow speed and the historical driving speed of all travel segments of all historical trips obtained in step S010, and then step S020 is re-executed to update the mapping relationship between each historical average traffic flow speed and each historical driving speed.
[0107] In step S060, the preset threshold is a preset threshold for judging the degree of deviation of the mapping relationship, and its specific value can be set in combination with actual needs. Taking the mapping relationship as the speed mapping probability as an example, the preset threshold can be set to 0.01, 0.05 or 0.1, etc. When the difference between the values of the speed mapping probability before and after the update is greater than the preset threshold, it can be determined that the deviation of the speed mapping probability is large, which will affect the prediction accuracy of the vehicle's driving speed. When the difference between the values of the speed mapping probability before and after the update is less than or equal to the preset threshold, it can be determined that the deviation of the speed mapping probability is small, which will hardly affect the prediction accuracy of the vehicle's driving speed.
[0108] Based on this, after step S050, the values of the mapping relationship between each historical traffic flow average speed and each historical driving speed before and after the update are compared. When there is a mapping relationship (such as speed mapping probability) whose value difference before and after the update is greater than a preset threshold, all mapping relationships (such as speed mapping probability) in the speed mapping relationship are replaced with the updated mapping relationship (such as speed mapping probability) to achieve timely update of the speed mapping relationship based on the current driving conditions and ensure the accuracy of the speed mapping relationship. Optionally, when there is a mapping relationship (such as speed mapping probability) whose value difference before and after the update is greater than a preset threshold, only a specific mapping relationship (such as speed mapping probability) in the speed mapping relationship can be replaced with the updated mapping relationship (such as speed mapping probability). The specific mapping relationship refers to the mapping relationship whose value difference before and after the update is greater than the preset threshold. The specific updating method of the speed mapping relationship is not limited in the embodiment of the present application.
[0109] For example, taking the mapping relationship as the speed mapping probability as an example, P w,v represents the speed mapping probability of the historical driving speed v before updating under the historical traffic flow average speed w, represents the probability of the updated speed mapping of the historical driving speed v under the historical traffic flow average speed w. The preset threshold is 0.01. w,v and When the following constraints are met, there is no need to update the preset speed mapping relationship.
[0110]
[0111] In summary, the vehicle speed prediction method provided in the embodiment of the present application constructs a preset speed mapping relationship based on the historical traffic flow average speed and historical driving speed of at least one travel segment of at least one historical travel, and after predicting the vehicle speed of the current travel based on the speed mapping relationship, calculates and determines whether the preset speed mapping relationship needs to be updated based on the historical traffic flow average speed and historical driving speed of at least one travel segment of the current travel. Based on this, it is possible to avoid a large deviation in the preset speed mapping relationship due to the prediction process and changes in user driving habits, thereby ensuring the accuracy of the speed mapping relationship and thus ensuring the accuracy of the vehicle speed prediction.
[0112] Below, the vehicle speed prediction method provided in the embodiment of the present application is introduced and explained with an example.
[0113] See also Figure 3 , Figure 3 It is a schematic diagram of constructing a speed mapping relationship provided in an embodiment of the present application.
[0114] First, construct an empty speed mapping relationship. Figure 3As shown in the figure, with a step size of 1 km / h (kilometer per hour), 200 historical average traffic flow speeds are obtained between the historical average traffic flow speeds of 1 km / h and 200 km / h, and 200 historical driving speeds are obtained between the historical driving speeds of 1 km / h and 200 km / h. w,v It represents the speed mapping probability of the historical driving speed v under the historical traffic flow average speed w.
[0115] Then, for each historical trip, at least one trip segment is divided between the trip start point and the trip end point according to the preset length D of the trip segment, where D is a positive number. Figure 3 As shown, the divided trip segment sequence is recorded as {RS1, RS2, ..., RS e}, e is a positive integer, and e represents the number of divided trip segments. Among them, the trip segment RS e The length of each previous trip segment is D, and the trip segment RS e The length of is less than or equal to D.
[0116] Then, the historical average traffic flow speed of each travel segment is obtained through the navigation service, and the historical driving speed of each travel segment is calculated based on the length of each travel segment and the actual travel time. Figure 3 As shown in the figure, the obtained historical traffic flow average speed sequence is recorded as {TV1, TV2, ..., TV e}, the calculated historical speed sequence is recorded as {SV1, SV2, …, SV e}.
[0117] Then, based on the historical traffic flow average speed sequence and the historical driving speed sequence, the number of occurrences M of each historical driving speed under each historical traffic flow average speed is calculated, and then based on this, the speed mapping probability P of each historical driving speed under each historical traffic flow average speed is calculated, and the value of the speed mapping probability is filled into the pre-constructed speed mapping relationship.
[0118] See also Figure 4 , Figure 4 It is a schematic diagram of predicting vehicle speed provided in an embodiment of the present application.
[0119] First, for the current trip, at least one trip segment is divided between the current trip position and the trip end point according to the preset length D of the trip segment. Figure 4 As shown, the divided trip segment sequence is recorded as {RS1, RS2, ..., RS n}. Among them, the trip segment RS n The length of each previous trip segment is D, and the trip segment RS n The length of is less than or equal to D.
[0120] Then, the average traffic flow speed of each journey segment is obtained through the navigation service. Figure 3 As shown in the figure, the obtained traffic flow average speed sequence is recorded as {TV1, TV2, ..., TV n}.
[0121] Then based on the average speed sequence of traffic flow and Figure 3 The speed mapping relationship obtained by the process shown in the figure determines the predicted driving speed of the vehicle in each travel segment. Figure 4 As shown in the figure, the determined predicted driving speed sequence is recorded as {SV1, SV2, ..., SV n}.
[0122] Then, the predicted driving speed of each trip segment is refined into the predicted driving speed at the reference time of each trip segment. The reference time S of the i-th trip segment is i The calculation method is as follows Figure 4 As shown, T i represents the predicted travel time of the i-th trip segment, TV i represents the predicted driving speed of the vehicle in the i-th travel segment, L i represents the length of the i-th trip segment, and C represents the current time of the trip.
[0123] like Figure 4 As shown, when the vehicle is traveling according to the current itinerary, the current time and the real driving speed of the vehicle are continuously recorded, so that at the current time of the itinerary, the real driving speed of at least one historical time of the current itinerary can be obtained. Figure 4 As shown in the figure, the obtained real driving speed sequence is recorded as {ZV1, ZV2, ..., ZV x}, combined with the predicted driving speed sequence at the reference time of each trip segment, the speed sequence of the entire current trip at the current time of the trip can be obtained, such as Figure 4 As shown, it is denoted as {ZV1, ZV2, …, ZV x , SV1, SV2, …, SV n}.
[0124] See also Figure 5 , Figure 5 It is a fitting schematic diagram of a driving speed curve provided in an embodiment of the present application.
[0125] Through the cubic spline y=a+b×x+c×x 2 +d×x 3 , fitting Figure 4 The velocity sequence {ZV1, ZV2, ..., ZV x , SV1, SV2, …, SVn}, we can get Figure 5 Driving speed curve shown.
[0126] According to the second aspect of the present application, an embodiment of the present application also provides a vehicle speed prediction device.
[0127] See also Figure 6 , Figure 6 is a block diagram of a vehicle speed prediction device provided in an embodiment of the present application. The vehicle speed prediction device may be an electronic device, or may be arranged in an electronic device. Figure 6 As shown, the vehicle speed prediction device 600 includes: a speed acquisition module 610 and a speed prediction module 620.
[0128] The speed acquisition module 610 is used to acquire the average speed of the traffic flow in each trip segment between the current location of the trip and the end point of the trip while the vehicle is traveling according to the current trip.
[0129] The speed prediction module 620 is used to determine, for each travel segment, the predicted driving speed of the vehicle in the travel segment based on a preset speed mapping relationship and the average traffic flow speed of the travel segment; wherein the speed mapping relationship is used to indicate the mapping relationship between the historical average traffic flow speed and the historical driving speed of the vehicle.
[0130] In some embodiments, the speed mapping relationship includes a plurality of speed mapping probabilities, each of which refers to a probability of occurrence of a historical driving speed under a historical traffic flow average speed.
[0131] In some embodiments, the speed prediction module 620 is also used to: obtain at least one speed mapping probability corresponding to the average speed of the traffic flow in the travel segment from the speed mapping relationship; and determine the predicted driving speed of the vehicle in the travel segment based on the historical driving speed corresponding to the speed mapping probability that meets the preset conditions in at least one speed mapping probability.
[0132] In some embodiments, the preset condition includes that the value of the speed mapping probability is maximum.
[0133] In some embodiments, the speed prediction module 620 is also used to: obtain the reference time of each travel segment; for each travel segment, use the predicted driving speed of the vehicle in the travel segment as the predicted driving speed of the vehicle at the reference time of the travel segment; and generate a driving speed table for the vehicle based on the predicted driving speed of the vehicle at the reference time of at least one travel segment.
[0134] In some embodiments, the speed prediction module 620 is also used to: for each travel segment, determine the predicted travel time of the vehicle in the travel segment based on the length of the travel segment and the predicted driving speed of the vehicle in the travel segment; determine the reference time of each travel segment based on the current time of the trip and the predicted travel time of the vehicle in at least one travel segment.
[0135] In some embodiments, there are n trip segments arranged in sequence between the current trip position and the trip end point; the speed prediction module 620 is also used to: for the i-th trip segment among the n trip segments, sum the current time of the trip, the sum of the predicted travel times of the vehicle in the i-1 trip segments before the i-th trip segment, and half of the predicted travel time of the i-th trip segment to obtain the reference time of the i-th trip segment; wherein n is a positive integer, and i is a positive integer less than or equal to n.
[0136] In some embodiments, the speed prediction module 620 is further used to generate a driving speed table for the vehicle based on the actual driving speed of the vehicle at at least one historical moment of the current trip and the predicted driving speed of the vehicle at a reference moment of at least one trip segment.
[0137] In some embodiments, Figure 7 As shown, the vehicle driving speed prediction device 600 also includes a relationship construction module 630; the speed acquisition module 610 is also used to obtain the historical traffic flow average speed and the historical driving speed of at least one travel segment of at least one historical travel; the relationship construction module 630 is used to determine the mapping relationship between the historical traffic flow average speed and the historical driving speed for each historical driving speed under each historical traffic flow average speed based on the number of occurrences of the historical traffic flow average speed and the number of occurrences of the historical driving speed under the historical traffic flow average speed; the relationship construction module 630 is also used to generate a preset speed mapping relationship based on the mapping relationship between at least one historical traffic flow average speed and at least one historical driving speed.
[0138] In some embodiments, the speed acquisition module 610 is also used to: for each historical trip, while the vehicle is traveling according to the historical trip, obtain the historical average traffic flow speed of each trip segment of the historical trip; for each trip segment of each historical trip, based on the length of the trip segment and the actual travel time of the vehicle in the trip segment, determine the historical driving speed of the vehicle in the trip segment.
[0139] In some embodiments, the speed acquisition module 610 is further used to acquire the historical traffic flow average speed and historical driving speed of at least one trip segment of the current trip after the vehicle ends the current trip; Figure 7As shown, the relationship construction module 630 is also used to update the mapping relationship between at least one historical traffic flow average speed and at least one historical driving speed based on the historical traffic flow average speed and the historical driving speed of at least one trip segment of the current trip; the relationship construction module 630 is also used to update the preset speed mapping relationship based on the updated mapping relationship between at least one historical traffic flow average speed and at least one historical driving speed when the difference in the value of the mapping relationship before and after the update is greater than a preset threshold.
[0140] In some embodiments, the speed acquisition module 610 is further used to: divide at least one trip segment between the current trip location and the trip end point according to the preset length of the trip segment; obtain the average traffic flow speed of each trip segment; wherein the length of the last trip segment in at least one trip segment is less than or equal to the preset length, and the lengths of the remaining trip segments in at least one trip segment except the last trip segment are equal to the preset length.
[0141] It should be understood that, in specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined and implemented as the same or several entities. In addition, the specific implementation methods and corresponding beneficial effects of the above modules can be referred to the above method embodiments, which will not be described in detail here.
[0142] According to the third aspect of the present application, the embodiment of the present application further provides a non-transitory computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the steps of the above-mentioned vehicle speed prediction method are implemented. The non-transitory computer-readable storage medium has all the beneficial effects of the above-mentioned vehicle speed prediction method, and the present application will not repeat them here.
[0143] According to the fourth aspect of the present application, an embodiment of the present application further provides an electronic device, comprising: a memory and a processor, wherein a computer program is stored in the memory; and the processor is used to execute the computer program in the memory to implement the steps of the above-mentioned vehicle speed prediction method. The electronic device has all the beneficial effects of the above-mentioned vehicle speed prediction method, which will not be described in detail in this application.
[0144] See also Figure 8, the electronic device 800 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage device 808 to a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the electronic device 800 are also stored. The processing device 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0145] Typically, the following devices may be connected to the I / O interface 805: input devices 806 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 807 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 808 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 809. The communication device 809 may allow the electronic device 800 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 8 The electronic device 800 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 8 Each block shown in the figure may represent one device, or may represent multiple devices as required.
[0146] In particular, according to some embodiments of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, some embodiments of the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In some such embodiments, the computer program can be downloaded and installed from the network through the communication device 809, or installed from the storage device 808, or installed from the ROM 802. When the computer program is executed by the processing device 801, the above-mentioned functions defined in the method of some embodiments of the present application are executed.
[0147] It should be noted that the computer-readable medium described in some embodiments of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above, which is not specifically limited in the present application. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0148] In some embodiments of the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, apparatus, or device. In some embodiments of the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0149] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (Hyper Text Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an adhoc peer-to-peer network), as well as any currently known or future developed network.
[0150] The computer-readable medium may be included in the electronic device, or may exist independently without being installed in the electronic device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: obtains the average traffic flow speed of each trip segment between the current location of the trip and the end of the trip during the vehicle's current trip; for each trip segment, determines the predicted driving speed of the vehicle in the trip segment based on a preset speed mapping relationship and the average traffic flow speed of the trip segment; wherein the speed mapping relationship is used to indicate the mapping relationship between the historical average traffic flow speed and the historical driving speed of the vehicle.
[0151] Computer program code for performing the operations of some embodiments of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0152] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flowchart or block diagram may represent a module, a program segment, or a portion of a code, which contains one or more executable instructions for implementing a specified logical function.
[0153] It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures.
[0154] For example, two boxes shown in succession may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of boxes in the block diagram and / or flow chart, can be implemented by a dedicated hardware-based system that performs the specified function or operation, or can be implemented by a combination of dedicated hardware and computer instructions.
[0155] The units described in some embodiments of the present application may be implemented by software or hardware. The units described may also be set in a processor, for example, it may be described as: a processor includes a speed acquisition module and a speed prediction module. The names of these units do not constitute a limitation on the units themselves in some cases, for example, the speed acquisition module may also be described as "a unit for acquiring the average speed of traffic flow in each travel segment between the current position of the travel and the end point of the travel while the vehicle is traveling according to the current travel".
[0156] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0157] According to a fifth aspect of the present application, an embodiment of the present application further provides a vehicle, including a vehicle speed prediction device or an electronic device, which can be used to perform the above-mentioned vehicle speed prediction method. The vehicle has all the beneficial effects of the above-mentioned vehicle speed prediction device or electronic device, which will not be described in detail in this application.
[0158] The vehicle may be a fuel vehicle, a plug-in hybrid vehicle or a new energy vehicle, etc., and this application does not make any specific limitation on this.
[0159] In the description of this application, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0160] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0161] The embodiments, implementation methods and related technical features of the present application can be combined and replaced with each other without conflict.
[0162] The above are only preferred embodiments of the present application and do not constitute any form of limitation to the present application. Although the present application has used examples to describe each embodiment with different emphases, for the parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments. However, any brief modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present application without departing from the content of the technical solution of the present application are still within the scope of the technical solution of the present application.
[0163] In the description of this application, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0164] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0165] The embodiments, implementation methods and related technical features of the present application can be combined and replaced with each other without conflict.
[0166] The above are only preferred embodiments of the present application and do not constitute any form of limitation to the present application. Although the descriptions of various embodiments in the embodiments of the present application have different focuses, for parts not described in detail in a certain embodiment, reference can be made to the relevant embodiments of other embodiments. However, any simple modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present application without departing from the content of the technical solution of the present application are still within the scope of the technical solution of the present application.
Claims
1. A vehicle speed prediction method, characterized in that: include: When the vehicle is traveling according to the current itinerary, the average speed of the traffic flow in each itinerary segment between the current position of the itinerary and the end point of the itinerary is obtained; For each of the travel segments, based on a preset speed mapping relationship and the average speed of the traffic flow in the travel segment, determining a predicted driving speed of the vehicle in the travel segment; The speed mapping relationship is used to indicate the mapping relationship between the historical traffic flow average speed and the historical driving speed of the vehicle; the speed mapping relationship includes a plurality of speed mapping probabilities, each of which refers to the probability of occurrence of the historical driving speed at a historical traffic flow average speed; Wherein, determining the predicted driving speed of the vehicle in the travel segment based on the preset speed mapping relationship and the average speed of the traffic flow in the travel segment includes: Acquire at least one of the speed mapping probabilities corresponding to the average speed of the traffic flow of the travel segment from the speed mapping relationship; Determining the predicted driving speed of the vehicle in the travel segment according to the historical driving speed corresponding to the speed mapping probability that satisfies a preset condition among at least one of the speed mapping probabilities; Wherein, the method further comprises: Obtaining the historical traffic flow average speed and the historical driving speed of at least one of the trip segments of at least one historical trip; For each of the historical driving speeds at each of the historical traffic flow average speeds, based on the number of occurrences of the historical traffic flow average speed and the number of occurrences of the historical driving speed at the historical traffic flow average speed, determine a speed mapping probability of the historical driving speed at the historical traffic flow average speed; The preset speed mapping relationship is generated based on the speed mapping probability of at least one of the historical driving speeds under at least one of the historical traffic flow average speeds.
2. The method according to claim 1, characterized in that The preset condition includes that the value of the speed mapping probability is maximum.
3. The method according to claim 1, characterized in that After determining the predicted driving speed of the vehicle in the travel segment based on the preset speed mapping relationship and the average speed of the traffic flow in the travel segment, the method further includes: Obtaining a reference time of each of the travel segments; For each of the travel segments, taking the predicted driving speed of the vehicle in the travel segment as the predicted driving speed of the vehicle at the reference time of the travel segment; A driving speed table of the vehicle is generated based on the predicted driving speed of the vehicle at the reference time of at least one of the travel segments.
4. The method according to claim 3, characterized in that The obtaining of the reference time of each of the travel segments comprises: For each of the travel segments, based on the length of the travel segment and the predicted travel speed of the vehicle in the travel segment, determine the predicted travel time of the vehicle in the travel segment; The reference time of each of the travel segments is determined based on the current time of the journey and the predicted travel time of the vehicle in at least one of the travel segments.
5. The method according to claim 4, characterized in that The interval between the current position of the trip and the end point of the trip includes n trip segments arranged in sequence; The determining the reference time of each of the travel segments based on the current time of the travel and the predicted travel time of the vehicle in at least one of the travel segments comprises: For the ith trip segment among the n trip segments, the current time of the trip, the sum of the predicted travel times of the vehicle in the i-1 trip segments before the ith trip segment, and half of the predicted travel time of the ith trip segment are summed to obtain the reference time of the ith trip segment; Wherein, n is a positive integer, and i is a positive integer less than or equal to n.
6. The method according to claim 3, characterized in that The step of generating a driving speed table of the vehicle based on the predicted driving speed of the vehicle at the reference time of at least one of the travel segments comprises: The driving speed table of the vehicle is generated based on the actual driving speed of the vehicle at at least one historical moment of the current trip and the predicted driving speed of the vehicle at the reference moment of at least one of the trip segments.
7. The method according to claim 1, characterized in that The obtaining of the historical average traffic flow speed and the historical driving speed of at least one trip segment of at least one historical trip comprises: For each of the historical trips, in the process of the vehicle traveling according to the historical trip, obtaining the historical traffic flow average speed of each of the trip segments of the historical trip; For each of the trip segments of each of the historical trips, the historical driving speed of the vehicle in the trip segment is determined based on the length of the trip segment and the actual travel time of the vehicle in the trip segment.
8. The method according to claim 1, characterized in that The method further comprises: After the vehicle finishes traveling the current trip, obtaining the historical traffic flow average speed and the historical driving speed of at least one of the trip segments of the current trip; updating a speed mapping probability of at least one of the historical driving speeds under at least one of the historical traffic flow average speeds based on the historical traffic flow average speed and the historical driving speed of at least one of the trip segments of the current trip; When the difference between the speed mapping probability of the historical driving speed under the historical traffic flow average speed before and after the update is greater than a preset threshold, the preset speed mapping relationship is updated based on the updated speed mapping probability of at least one historical driving speed under at least one of the historical traffic flow average speeds.
9. The method according to claim 1, characterized in that: The step of obtaining the average traffic flow speed of each trip segment between the current trip location and the trip end point includes: Dividing at least one of the trip segments between the current position of the trip and the end point of the trip according to the preset length of the trip segment; Obtaining the average speed of the traffic flow in each of the travel segments; Among them, the length of the last one of the at least one travel segments is less than or equal to the preset length, and the lengths of the remaining travel segments except the last one of the at least one travel segment are equal to the preset length.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method described in any one of claims 1 to 9 is implemented.
11. An electronic device, characterized in that: include: a memory having a computer program stored thereon; A processor, configured to execute the computer program in the memory to implement the method according to any one of claims 1 to 9.
12. A vehicle, characterized in that: The vehicle includes the electronic device as claimed in claim 11.
