Disclosure of Invention
The invention mainly aims to provide a path prediction method, a device, equipment and a readable storage medium, aiming at improving the accuracy of path prediction.
In a first aspect, the present invention provides a path prediction method, the path prediction method comprising:
when the road network prediction tree is expanded to the intersection and navigation information is not available, determining whether a driver of a front path drives the vehicle to travel according to historical path data of the driver driving the vehicle;
if the front path driver does not drive the vehicle to run through, judging the driving habit of the driver to obtain a judging result;
and obtaining a maximum likelihood path based on the determination result and the front path information corresponding to the determination result.
Optionally, the step of determining the driving habit of the driver and obtaining the determination result includes:
obtaining the treading depth and the treading times of an accelerator pedal, the treading depth and the treading times of a brake pedal, the number of whistling times and the duration of whistling each time of a driver in a preset duration;
judging whether the driving habit of a driver meets a more aggressive condition, wherein the more aggressive condition is that the treading depth and the treading frequency of the accelerator pedal are larger than corresponding thresholds and the treading depth and the treading frequency of the brake pedal are larger than corresponding thresholds, and/or the frequency of whistling and the duration of each whistling are larger than corresponding thresholds;
if the driving habit of the driver is satisfied, the judgment result is that the driving habit of the driver is more aggressive;
if the driving habit of the driver is not satisfied, the judgment result is that the driving habit of the driver is stable.
Optionally, the step of obtaining the maximum likelihood path based on the determination result and the forward path information corresponding to the determination result includes:
if the judging result is that the driving habit of the driver is more aggressive, the front path information corresponding to the judging result comprises the road type of the front path, whether a traffic light on the front path is green light when the vehicle runs to an intersection, whether schools exist on the front path in the upper school time period and the lower school time period and whether the front path is blocked;
selecting a target front path from each front path according to each piece of information;
assigning the score corresponding to the selected target front path to be one, and assigning the score corresponding to the unselected front path to be zero;
adding products between the corresponding scores and the corresponding weights of each front path to obtain a plurality of sum values;
the forward path corresponding to the maximum value among the plurality of sum values is set as the maximum likelihood path.
Optionally, the step of selecting the target front path from each front path according to each piece of information includes:
selecting a front path with the highest road type grade from each front path as a target front path according to the road type of the front path;
according to whether the traffic light on the front path is a green light or not when the vehicle runs to the intersection, selecting the front path of which the traffic light is the green light as a target front path from each front path when the vehicle runs to the intersection;
selecting a front path without schools in the time interval of the school from each front path as a target front path according to whether schools exist on the front paths in the time interval of the school;
and selecting a front path without traffic jam from each front path as a target front path according to whether the front path is blocked or not.
Optionally, the step of obtaining the maximum likelihood path based on the determination result and the forward path information corresponding to the determination result includes:
if the judgment result is that the driving habit of the driver is stable, the front path information corresponding to the judgment result is the corresponding rotation angle when the vehicle runs on each front path;
the forward path corresponding to the minimum rotation angle is taken as the maximum likelihood path.
Optionally, after the step of determining whether the front path driver drives the vehicle to travel according to the historical path data of the driver driving the vehicle, the method includes:
if the driver of the front path drives the vehicle to drive through, backtracking the number of times that each front path is driven through when the vehicle passes through the intersection for n times before driving through the intersection, wherein n is a positive integer;
multiplying the number of times each front path is driven by a weight value corresponding to each front path to obtain a plurality of products;
and taking the front path corresponding to the maximum value in the products as the maximum possibility path, wherein the weight value corresponding to the front path which is driven is the largest when the vehicle drives through the intersection last time, and the weight values corresponding to the remaining two front paths are the same.
Optionally, the path prediction method includes:
detecting whether the maximum likelihood path is on a current path;
and if the maximum likelihood path is not on the current path, outputting the maximum likelihood path and other level-one sub-paths corresponding to the intersection.
In a second aspect, the present invention also provides a path prediction apparatus, including:
the determining module is used for determining whether the driver of the front path drives the vehicle to run according to the historical path data of the driver driving the vehicle to pass when the road network prediction tree is expanded to the intersection and navigation information is not available;
the judging module is used for judging the driving habit of the driver if the driver in the front path does not drive the vehicle to pass through, so as to obtain a judging result;
and the path acquisition module is used for acquiring the maximum likelihood path based on the judging result and the front path information corresponding to the judging result.
In a third aspect, the present invention also provides a path prediction apparatus comprising a processor, a memory, and a path prediction program stored on the memory and executable by the processor, wherein the path prediction program, when executed by the processor, implements the steps of the path prediction method as described above.
In a fourth aspect, the present invention also provides a readable storage medium having stored thereon a path prediction program, wherein the path prediction program, when executed by a processor, implements the steps of the path prediction method as described above.
According to the method, when the road network prediction tree is expanded to an intersection and navigation information is not available, whether a driver in a front path drives the vehicle to travel or not is determined according to historical path data of the driver driving the vehicle to travel; if the front path driver does not drive the vehicle to run through, judging the driving habit of the driver to obtain a judging result; and obtaining a maximum likelihood path based on the determination result and the front path information corresponding to the determination result. According to the method and the device for predicting the forward path, for the forward path which does not pass through, the maximum likelihood path is predicted based on the driving habit of the driver and the corresponding forward path information, so that the obtained maximum likelihood path meets the expectations, and the accuracy of path prediction is improved.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
In a first aspect, an embodiment of the present invention provides a path prediction method.
In an embodiment, referring to fig. 1, fig. 1 is a flowchart illustrating a first embodiment of a path prediction method according to the present invention. As shown in fig. 1, the path prediction method includes:
step S10, when the road network prediction tree is expanded to an intersection and navigation information is not available, determining whether a driver of a front path drives the vehicle to travel according to historical path data of the driver driving the vehicle;
in this embodiment, when the road network prediction tree extends to the intersection and there is no navigation information, the position of the front path is obtained, and whether the driver of any path drives the vehicle to travel in front is determined according to the historical path data of the driver driving the vehicle. It is easily conceivable that when the road network prediction tree expands to an intersection, there are at least two forward paths.
When the road network prediction tree expands to the intersection and navigation information exists, the maximum likelihood path is completely determined according to the navigation path.
When the road network prediction tree is not expanded to the intersection, the EHP (electronic horizon provider) broadcasts relevant information of the current path of the vehicle to the EHR (ElectricHorizon Reconstructor, electronic horizon reconstructor). The EHP depends on a vehicle positioning module to broadcast path information of a certain distance in front of the vehicle to the vehicle according to the actual position of the vehicle, wherein the information comprises but is not limited to speed limit, ramp, curvature, signal lamp, school and other position and attribute information, and as the vehicle continuously runs along the path, a road network prediction tree is expanded according to the real-time positioning of the vehicle, and the EHP continuously updates and broadcasts the path information of the certain distance in front to the EHR. The road network prediction tree comprises: MPP (Most ProbablePath, maximum likelihood path) and non-MPP paths, i.e., sub-paths. Wherein the MPP is a predicted maximum likelihood travel path of the vehicle, one path may include at least one road segment, each MPP road segment is connected to form an MPP (maximum likelihood path), and the non-MPP may be a road segment extended from the MPP road segment of the MPP; the non-MPP is a predicted path of non-maximum likelihood travel of the vehicle; a non-MPP may include at least one non-MPP segment.
Step S20, if the front path driver does not drive the vehicle, judging the driving habit of the driver, and obtaining a judging result;
in this embodiment, if the front-path driver does not drive the vehicle, it is necessary to determine whether the driving habit of the driver is more aggressive or smoother, and to obtain a determination result, that is, to determine whether the driving habit of the driver is more aggressive or to determine that the driving habit of the driver is smoother.
Step S30, obtaining the maximum likelihood path based on the judging result and the front path information corresponding to the judging result.
In this embodiment, the driving habit of the driver is determined based on the determination result, if the determination result is that the driving habit of the driver is more aggressive, the front path information corresponding to the driving habit of the driver is acquired, and the maximum likelihood path is obtained based on the front path information corresponding to the driving habit is more aggressive. If the driving habit of the driver is stable as a result of the judgment, the corresponding front path information when the driving habit of the driver is stable is obtained, and the maximum likelihood path can be obtained based on the corresponding front path information when the driving habit is stable.
In the embodiment, when the road network prediction tree is expanded to an intersection and navigation information is not available, whether a driver in a front path drives the vehicle to travel or not is determined according to historical path data of the driver driving the vehicle to travel; if the front path driver does not drive the vehicle to run through, judging the driving habit of the driver to obtain a judging result; and obtaining a maximum likelihood path based on the determination result and the front path information corresponding to the determination result. According to the embodiment, for the front paths which do not run, the maximum likelihood path is predicted based on the driving habit of the driver and the corresponding front path information, so that the obtained maximum likelihood path meets the expectations, and the accuracy of path prediction is improved.
Further, in an embodiment, the step of determining the driving habit of the driver to obtain the determination result includes:
obtaining the treading depth and the treading times of an accelerator pedal, the treading depth and the treading times of a brake pedal, the number of whistling times and the duration of whistling each time of a driver in a preset duration;
judging whether the driving habit of a driver meets a more aggressive condition, wherein the more aggressive condition is that the treading depth and the treading frequency of the accelerator pedal are larger than corresponding thresholds and the treading depth and the treading frequency of the brake pedal are larger than corresponding thresholds, and/or the frequency of whistling and the duration of each whistling are larger than corresponding thresholds;
if the driving habit of the driver is satisfied, the judgment result is that the driving habit of the driver is more aggressive;
if the driving habit of the driver is not satisfied, the judgment result is that the driving habit of the driver is stable.
In this embodiment, the tread depth and tread frequency of the accelerator pedal, the tread depth and tread frequency of the brake pedal, the number of whistles and the duration of each whistle of the driver are obtained within a preset duration.
If the treading depth and the treading times of the accelerator pedal are larger than the corresponding threshold values and the treading depth and the treading times of the brake pedal are larger than the corresponding threshold values, and/or the number of whistling times in the preset duration and the duration of each whistling time are larger than the corresponding threshold values, the driving habit of the driver is more aggressive as a judging result.
If the treading depth and the treading times of the accelerator pedal are smaller than or equal to the corresponding threshold values, and the treading depth and the treading times of the brake pedal are smaller than or equal to the corresponding threshold values, and/or the number of whistling times in the preset duration and the duration of each whistling time are smaller than or equal to the corresponding threshold values, the driving habit of the driver is stable as a judging result. It is easily conceivable that the threshold value corresponding to the depression depth of the accelerator pedal may be the same or different from the threshold value corresponding to the depression depth of the brake pedal, and the threshold value corresponding to the number of times of depression of the accelerator pedal may be the same or different from the threshold value corresponding to the number of times of depression of the brake pedal.
Further, referring to fig. 2, fig. 2 is a schematic diagram of a first refinement procedure of step S30 in fig. 1. As shown in fig. 2, the step of obtaining the maximum likelihood path based on the determination result and the forward path information corresponding to the determination result includes:
step S301, if the judgment result is that the driving habit of the driver is more aggressive, the front path information corresponding to the judgment result comprises the road type of the front path, whether the traffic lights on the front path are green lights when the vehicle runs to the intersection, whether schools exist on the front path in the time period of going up and down and whether the front path is blocked;
step S302, selecting a target front path from each front path according to each piece of information;
step S303, the score corresponding to the selected target front path is assigned as one, and the score corresponding to the unselected front path is assigned as zero;
step S304, adding products of the corresponding scores and the corresponding weights of each front path to obtain a plurality of sum values;
in step S305, a front path corresponding to the maximum value among the plurality of sum values is set as a maximum likelihood path.
In this embodiment, if the driving habit of the driver is more aggressive as a result of the determination, the front path information corresponding to the more aggressive driving habit of the driver is obtained, including the road type of the front path, whether the traffic light on the front path is green light when the vehicle is driving to the intersection, whether there is a school on the front path in the time slot of going up and down, and whether the front path is blocked.
Taking the example that the front path includes a front left path a, a front middle path B and a front right path C, a target front path is selected from the front left path a, the front middle path B and the front right path C according to each piece of information.
If a front Zuo Celu path a is selected according to the road type of the front path, the front left path a is the target front path, the score corresponding to the selected front Zuo Celu path a is assigned as one, and the score corresponding to the front middle path and the front right path C is assigned as zero.
If a forward Zuo Celu path A is selected according to whether a traffic light on a forward path is a green light when the vehicle runs to an intersection, the forward left path A is a target forward path, the score corresponding to the selected forward Zuo Celu path A is assigned as one, and the score corresponding to the forward middle path B and the forward right path C is assigned as zero.
If a front right path C is selected according to whether schools exist on the front paths of the upper and lower learning time periods, the front right path C is the target front path, the score corresponding to the selected front right path C is assigned as one, and the score corresponding to the front left path A and the front middle path B is assigned as zero.
If the front path is blocked, the front middle path B and the front right path C are selected, the front middle path B and the front right path C are the target front paths, the scores corresponding to the selected front middle path B and the front right path C are assigned as one, and the score corresponding to the front left path A is assigned as zero.
And adding the products of the corresponding scores and the corresponding weights of each front path to obtain a plurality of sum values. Specifically, taking an example that the weight corresponding to the road type of the front path is 0.2, whether the traffic light on the front path is green light when the vehicle runs to the intersection is 0.1, whether the weight corresponding to school is 0.1 on the front path in the upper and lower school time periods, and whether the weight corresponding to traffic jam of the front path is 0.1, adding the products of the score corresponding to the front Zuo Celu path a and the corresponding weight to obtain a sum value L corresponding to the front Zuo Celu path a, namely l=0.2×1+0.1×1+0.1×0.1×0+0.1×0.3. The respective products between the corresponding scores and the corresponding weights of the front intermediate path B are added, the sum value M corresponding to the front intermediate path B is obtained, i.e. m=0.2×0+0.1×0+0.1×0+0.1×1 =0.1. And adding the products of the scores corresponding to the front right paths C and the corresponding weights to obtain a sum value R corresponding to the front right paths C, namely R=0.2×0+0.1×0+0.1×1+0.1×1=0.2.
The maximum value function max () is obtained to select the maximum value from the sum L, the sum M, and the sum R, and the forward path corresponding to the maximum value from the sum L, the sum M, and the sum R is used as the maximum likelihood path. Since the maximum value of the sum L, the sum M, and the sum R is the sum L and the front path corresponding to the sum L is the front left path a, the front left path a is the maximum likelihood path.
Further, when the maximum value of the plurality of sum values is not the same, the most probable path is preferentially output based on the corresponding score value and the corresponding weight condition of each front path. Specifically, if the sum value L is the same as the sum value M, the weight corresponding to the road type of the front route is the largest, and the front Zuo Celu route a corresponding to the sum value L is selected according to the road type of the front route, so that the front left route a is taken as the most probable route at this time. Further, if the score corresponding to each of the forward paths is the same as the corresponding weight, the forward path corresponding to the smallest angle of rotation when the vehicle travels on the forward path is taken as the most probable path. It should be noted that the parameters in this embodiment are only used for reference, and are not limited herein.
Further, in an embodiment, the step of selecting the target forward path from each forward path according to each piece of information includes:
selecting a front path with the highest road type grade from each front path as a target front path according to the road type of the front path;
according to whether the traffic light on the front path is a green light or not when the vehicle runs to the intersection, selecting the front path of which the traffic light is the green light as a target front path from each front path when the vehicle runs to the intersection;
selecting a front path without schools in the time interval of the school from each front path as a target front path according to whether schools exist on the front paths in the time interval of the school;
and selecting a front path without traffic jam from each front path as a target front path according to whether the front path is blocked or not.
In this embodiment, taking the case that the front route includes the front left side route a, the front middle route B, and the front right side route C as an example, if the road types of the front Zuo Celu route a and the front middle route B out of the front Zuo Celu route a, the front middle route B, and the front right side route C are highest in rank, the front Zuo Celu route a and the front middle route B are selected as the target front route according to the road types of the front routes.
And if the traffic lights on the front path A, the front middle path B and the front left path A in the front right path C are green lights when the vehicle is predicted to travel to the intersection, selecting the front Zuo Celu path A as a target front path.
And if no school exists on the front right path C in the front left path A, the front middle path B and the front right path C in the front and lower school time periods according to the existence of schools on the front paths in the upper and lower school time periods, selecting the front right path C as a target front path. If the time period is not up and down, the front left path a, the front middle path B, and the front right path C are all target front paths.
If the forward intermediate path B and the forward right path C among the forward Zuo Celu path a, the forward intermediate path B, and the forward right path C are not blocked, the forward intermediate path B and the forward right path C are selected as the target forward paths, depending on whether the forward paths are blocked.
Further, in an embodiment, referring to fig. 3, fig. 3 is a schematic diagram of a second refinement procedure of step S30 in fig. 1. As shown in fig. 3, the step of obtaining the maximum likelihood path based on the determination result and the forward path information corresponding to the determination result includes:
step S306, if the judgment result is that the driving habit of the driver is stable, the front path information corresponding to the judgment result is the corresponding rotation angle when the vehicle runs on each front path;
in step S307, the front path corresponding to the minimum rotation angle is used as the maximum likelihood path.
In this embodiment, if the determination result is that the driving habit of the driver is relatively stable, the front path information corresponding to the relatively stable driving habit of the driver is obtained, including the corresponding rotation angle when the vehicle travels on each front path. Taking the example that the front path includes a front left-side path a, a front middle path B and a front right-side path C, a first corner corresponding to the vehicle when traveling from the current path to the front left-side path a, a second corner corresponding to the vehicle when traveling from the current path to the front middle path B and a third corner corresponding to the vehicle when traveling from the current path to the front right-side path C are obtained.
If the second corner is the smallest among the first corner, the second corner and the second corner, the front middle path B corresponding to the second corner is used as the maximum likelihood path. It is easily conceivable that at the intersection, the corresponding second rotation angle in the ideal state when the vehicle travels from the current path to the front intermediate path B is 0 degrees.
Further, in an embodiment, referring to fig. 4, fig. 4 is a flowchart illustrating a second embodiment of the path prediction method according to the present invention. As shown in fig. 4, after the step of determining whether the front path driver drives the vehicle to travel based on the history of the distance data that the driver has driven the vehicle, it includes:
step S40, if the driver of the front path drives the vehicle to travel, backtracking the number of times that each front path is driven when the vehicle passes through the intersection n times before, wherein n is a positive integer;
step S50, multiplying the number of times each front path is driven by a weight value corresponding to each front path to obtain a plurality of products;
and step S60, taking a front path corresponding to the maximum value in the products as a maximum possibility path, wherein the weight value corresponding to the front path which is driven is the largest when the vehicle drives through the intersection last time, and the weight values corresponding to the remaining two front paths are the same.
In this embodiment, taking an example in which the front route includes a front left-side route a, a front middle route B, and a front right-side route C, if the front route driver drives the vehicle to travel through the road, and the front route through which the vehicle has traveled last time is a front Zuo Celu route a, the weight value corresponding to the front Zuo Celu route a is the largest, and the weight values corresponding to the front middle route B and the front right-side route C are the same.
Taking the example that the weight value corresponding to the forward Zuo Celu path a is 0.7, the weight value corresponding to the forward middle path B and the forward right path C is 0.3, and n=5, the number of times the forward Zuo Celu path a, the forward middle path B and the forward right path C have been travelled when the vehicle has travelled 5 times before the vehicle is traced back through the intersection.
If the front Zuo Celu path a is travelled 2 times, the front middle path B is travelled 2 times, and the front right path C is travelled 1 time, the number of times the front Zuo Celu path a is travelled is multiplied by the weight value corresponding to the front Zuo Celu path a to obtain a first product X corresponding to the front Zuo Celu path a, where the first product x=0.7x2=1.4. And multiplying the number of times the front intermediate path B is driven by the weight value corresponding to the front intermediate path B to obtain a second product Y corresponding to the front intermediate path B, wherein the second product y=0.3×2=0.6. And multiplying the number of times the front right path C is driven by the weight value corresponding to the front right path C to obtain a third multiplication product Z corresponding to the front right path C, wherein the third multiplication product Z=0.3×1=0.3.
And selecting the maximum value from the first product X, the second product Y and the third product Z by solving the maximum value function max (), and taking a front path corresponding to the maximum value in the first product X, the second product Y and the third product Z as a maximum possibility path. The maximum value of the first product X, the second product Y, and the third product Z is the first product X, and the front path corresponding to the first product X is the front left path a, so the front left path a is taken as the maximum likelihood path. It is easy to think that, when the driving habits of the driver are determined, it is determined that the same driver is driving the vehicle and that the driver is not driving the vehicle on the front route. Specifically, according to historical route data of the driver a driving the vehicle, if the driver a does not drive the vehicle, determining driving habits of the driver a according to the stepping depth and the stepping times of the accelerator pedal, the stepping depth and the stepping times of the brake pedal, the number of whistles and the duration of each whistle of the driver a in a preset duration. The identity of the driver is judged through the camera or the human body electromyographic signals.
Further, in an embodiment, the path prediction method includes:
detecting whether the maximum likelihood path is on a current path;
and if the maximum likelihood path is not on the current path, outputting the maximum likelihood path and other level-one sub-paths corresponding to the intersection.
In this embodiment, it is detected whether the most probable path predicted by the road network prediction tree is on the current path. And if the maximum likelihood path is not on the current path, outputting only the maximum likelihood path and other level-one sub-paths corresponding to the intersection. If the maximum likelihood path is on the current path, the maximum likelihood path and other multi-level sub-paths are output.
Specifically, referring to fig. 5, fig. 5 is a schematic diagram of maximum likelihood path prediction according to a first embodiment of the path prediction method of the present invention. As shown in fig. 5, taking the current path as an example of the path 1, when the road network prediction tree extends to the intersection, if the maximum likelihood path is a path corresponding to the dotted line on the path 1, the maximum likelihood path is on the current path, and the maximum likelihood path and other multi-level sub-paths are output, that is, the maximum likelihood path (path 1) and other multi-level sub-paths (path 2, path 3, path 4, path 5 and path 6) are output.
When the road network prediction tree extends to the intersection, referring to fig. 6, fig. 6 is a schematic diagram of the maximum likelihood path prediction according to the second embodiment of the path prediction method of the present invention. As shown in fig. 6, if the maximum likelihood path is a path corresponding to a broken line on the path 4, the maximum likelihood path is not on the current path, and only the maximum likelihood path (the path 4) and other first-level sub-paths corresponding to the intersection, that is, the left-side path 2 in front of the current path and the middle-side path 1 in front of the current path are output.
Further, when the distance between the vehicle and the intersection is smaller than the preset distance and the turn-on time of the turn lamp is greater than or equal to the corresponding threshold value, if the front path corresponding to the turn lamp is different from the maximum likelihood path, the front path corresponding to the turn lamp is output as a sub-path, and the predicted distance of the front path corresponding to the turn lamp is increased.
Or when the distance between the vehicle and the intersection is smaller than the preset distance and the forward-looking camera is used for identifying the road edge of the current path or the directional arrow on the road surface, if the forward path corresponding to the directional arrow is different from the maximum possibility path, outputting the forward path corresponding to the directional arrow as a sub-path, and increasing the predicted distance of the forward path corresponding to the steering lamp.
Further, the EHR (electric horizon reconstruction party) receives a path output by the EHP (electric horizon provider), and then stores the received path, and timely deletes information after the vehicle. And after the received paths are post-processed, the paths are provided for other functions to use.
In a second aspect, an embodiment of the present invention further provides a path prediction apparatus.
In an embodiment, referring to fig. 7, fig. 7 is a schematic functional block diagram of a first embodiment of a path prediction apparatus according to the present invention. As shown in fig. 7, the path prediction apparatus includes:
the determining module 10 is configured to determine whether the driver of the front path drives the vehicle to travel according to the historical path data of the driver driving the vehicle when the road network prediction tree extends to the intersection and no navigation information exists;
a determining module 20, configured to determine a driving habit of the driver if the driver does not drive the vehicle through the front path, and obtain a determination result;
the path acquisition module 30 is configured to obtain a maximum likelihood path based on the determination result and the forward path information corresponding to the determination result.
Further, in an embodiment, the determining module 20 is configured to:
obtaining the treading depth and the treading times of an accelerator pedal, the treading depth and the treading times of a brake pedal, the number of whistling times and the duration of whistling each time of a driver in a preset duration;
judging whether the driving habit of a driver meets a more aggressive condition, wherein the more aggressive condition is that the treading depth and the treading frequency of the accelerator pedal are larger than corresponding thresholds and the treading depth and the treading frequency of the brake pedal are larger than corresponding thresholds, and/or the frequency of whistling and the duration of each whistling are larger than corresponding thresholds;
if the driving habit of the driver is satisfied, the judgment result is that the driving habit of the driver is more aggressive;
if the driving habit of the driver is not satisfied, the judgment result is that the driving habit of the driver is stable.
Further, in an embodiment, the path obtaining module 30 is configured to:
if the judging result is that the driving habit of the driver is more aggressive, the front path information corresponding to the judging result comprises the road type of the front path, whether a traffic light on the front path is green light when the vehicle runs to an intersection, whether schools exist on the front path in the upper school time period and the lower school time period and whether the front path is blocked;
selecting a target front path from each front path according to each piece of information;
assigning the score corresponding to the selected target front path to be one, and assigning the score corresponding to the unselected front path to be zero;
adding products between the corresponding scores and the corresponding weights of each front path to obtain a plurality of sum values;
the forward path corresponding to the maximum value among the plurality of sum values is set as the maximum likelihood path.
Further, in an embodiment, the path obtaining module 30 is further configured to:
selecting a front path with the highest road type grade from each front path as a target front path according to the road type of the front path;
according to whether the traffic light on the front path is a green light or not when the vehicle runs to the intersection, selecting the front path of which the traffic light is the green light as a target front path from each front path when the vehicle runs to the intersection;
selecting a front path without schools in the time interval of the school from each front path as a target front path according to whether schools exist on the front paths in the time interval of the school;
and selecting a front path without traffic jam from each front path as a target front path according to whether the front path is blocked or not.
Further, in an embodiment, the path obtaining module 30 is further configured to:
if the judgment result is that the driving habit of the driver is stable, the front path information corresponding to the judgment result is the corresponding rotation angle when the vehicle runs on each front path;
the forward path corresponding to the minimum rotation angle is taken as the maximum likelihood path.
Further, in an embodiment, the path obtaining module 30 is further configured to:
if the driver of the front path drives the vehicle to drive through, backtracking the number of times that each front path is driven through when the vehicle passes through the intersection for n times before driving through the intersection, wherein n is a positive integer;
multiplying the number of times each front path is driven by a weight value corresponding to each front path to obtain a plurality of products;
and taking the front path corresponding to the maximum value in the products as the maximum possibility path, wherein the weight value corresponding to the front path which is driven is the largest when the vehicle drives through the intersection last time, and the weight values corresponding to the remaining two front paths are the same.
Further, in an embodiment, the path prediction apparatus further includes an output module, configured to:
detecting whether the maximum likelihood path is on a current path;
and if the maximum likelihood path is not on the current path, outputting the maximum likelihood path and other level-one sub-paths corresponding to the intersection.
The function implementation of each module in the path prediction device corresponds to each step in the path prediction method embodiment, and the function and implementation process thereof are not described in detail herein.
In a third aspect, an embodiment of the present invention provides a path prediction apparatus, which may be an apparatus having a data processing function, such as a Personal Computer (PC), a notebook computer, a server, or the like.
Referring to fig. 8, fig. 8 is a schematic hardware structure of a path prediction apparatus according to an embodiment of the present invention. In an embodiment of the present invention, the path prediction apparatus may include a processor 1001 (e.g., a central processor CentralProcessingUnit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein the communication bus 1002 is used to enable connected communications between these components; the user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard); the network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., WIreless-FIdelity, WI-FI interface); the memory 1005 may be a high-speed Random Access Memory (RAM) or a stable memory (non-volatile memory), such as a disk memory, and the memory 1005 may alternatively be a storage device independent of the processor 1001. Those skilled in the art will appreciate that the hardware configuration shown in fig. 8 is not limiting of the invention and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
With continued reference to fig. 8, an operating system, a network communication module, a user interface module, and a path prediction program may be included in the memory 1005, which is one type of computer storage medium in fig. 8. The processor 1001 may call a path prediction program stored in the memory 1005, and execute the path prediction method provided by the embodiment of the present invention.
In a fourth aspect, embodiments of the present invention also provide a readable storage medium.
The readable storage medium of the present invention stores a path prediction program, wherein the path prediction program, when executed by a processor, implements the steps of the path prediction method as described above.
The method implemented when the path prediction program is executed may refer to various embodiments of the path prediction method of the present invention, which are not described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising several instructions for causing a terminal device to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.