A vehicle trajectory prediction method based on intelligent algorithm

Through intelligent algorithms and micro-segment division technology, combined with Markov algorithms and neural networks, the problem of inaccurate trajectory prediction in the existing technology is solved, the accuracy and robustness of trajectory prediction are improved, driving safety is enhanced, and intelligent driving is provided. Assisted driving technology provides strong support.

CN114139795BInactive Publication Date: 2024-09-13SUZHOU ANZHI AUTO PARTS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111420476.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-26
Publication Date
2024-09-13
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing vehicle trajectory prediction technology has problems with inaccurate prediction and unsatisfactory robustness in predicting trajectories in a short time in the future, which affects the development of intelligent assisted driving technology and driving safety.

Method used

Using a method based on intelligent algorithms, the road is divided into micro-segments to obtain the driving status information of the car, using Markov algorithm and neural network to predict the curvature, combined with the road condition recognition module to identify the road fitting function equation, adjust and correct the predicted curvature, Ensure prediction accuracy.

Benefits of technology

It improves the accuracy and robustness of trajectory prediction, enhances driving safety, and provides a more reliable foundation for intelligent assisted driving technology.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114139795B
    Figure CN114139795B
Patent Text Reader

Abstract

The present invention discloses a method for predicting automobile trajectory based on intelligent algorithm, and the key points of the technical solution include S1, obtaining the driving state information of the automobile and judging whether the vehicle is about to enter a curve, if so, calculating the curvature of the first micro-segment entering the curve; S2, predicting the predicted curvature of the next micro-segment by Markov algorithm according to the curvature of the first micro-segment; S3, when the automobile passes through the predicted micro-segment, identifying the road corresponding to the micro-segment by the road condition recognition module on the vehicle, and calculating the calculated curvature of the micro-segment; S4, judging whether the number of micro-segments with calculated curvature on the current curve is greater than the preset critical number, if so, applying a neural network to predict the curvature of the subsequent micro-segments of the current curve, otherwise continuing to apply the Markov algorithm for prediction. The method can predict the trajectory in the short future time according to the current driving state of the automobile, with high prediction accuracy, which is conducive to improving driving safety.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of intelligent assisted driving, and more specifically to a vehicle trajectory prediction method based on an intelligent algorithm. Background Art

[0002] With the advancement of science and technology and the development of the times, intelligent products are becoming more and more common, and the automotive industry has also ushered in the development of new forces. Smart cars are becoming more and more well-known and recognized by people. At present, traditional cars still occupy the main market, and in reality, traditional cars still account for the largest proportion. With the development of intelligent cars, the automotive industry has gradually changed its own technology and vigorously developed and researched unmanned intelligent cars. It is very difficult for traditional cars to directly transition to smart cars, and a certain intermediate process is required. Intelligent assisted driving technology is gradually developing and moving towards a mature stage. As an intermediate transition stage, intelligent assisted driving technology is increasingly recognized by people and applied to mass-produced cars.

[0003] Automobile safety is a very critical hard indicator. Safety is also an important reason that restricts the development of smart cars. Safety is also the focus and difficulty of smart car research, and the same is true for intelligent assisted driving technology. In the future development of intelligent assisted driving, it is very important to predict the corresponding trajectory of the car in advance. On the basis of being able to accurately predict the trajectory, it can provide more favorable guarantees for subsequent development. The existing trajectory prediction technology has the problems of inaccurate prediction and unsatisfactory robustness in predicting the trajectory in the short term in the future. Improving the accuracy of prediction can lay a strong foundation for the rapid development of intelligent assisted driving technology and is conducive to improving driving safety. Summary of the invention

[0004] In view of the shortcomings of the prior art, the purpose of the present invention is to provide a vehicle trajectory prediction method based on an intelligent algorithm. The method can predict the trajectory of the vehicle in a short period of time in the future based on the current driving state of the vehicle. The prediction has high accuracy and is conducive to improving driving safety.

[0005] To achieve the above object, the present invention provides the following technical solution: a vehicle trajectory prediction method based on an intelligent algorithm, comprising:

[0006] S1, dividing the road into a plurality of micro-segments, obtaining driving state information of the vehicle, the driving state information including the vehicle speed and wheel angle, judging whether the vehicle is about to enter a curve according to the driving state information, and if so, calculating the curvature of the first micro-segment entering the curve according to the driving state information;

[0007] S2, predicting the predicted curvature of the next micro-segment by using a Markov algorithm according to the curvature of the first micro-segment;

[0008] S3, when the car passes through the predicted micro-segment, the road corresponding to the micro-segment is identified by a road condition identification module on the vehicle, a fitting function equation of the road is obtained, a calculated curvature of the micro-segment is calculated according to the fitting function equation, and the calculated curvature is saved together with the corresponding micro-segment;

[0009] S4, determining whether the number of the micro-segments that have obtained the calculated curvature on the current curve is greater than a preset critical number; if so, applying a neural network to predict the curvature of the micro-segments subsequent to the current curve; otherwise, continuing to apply the Markov algorithm to predict the curvature of the micro-segments subsequent to the current curve.

[0010] As a further improvement of the present invention, S2 is specifically:

[0011] S21, bringing the curvature of the first micro-segment into the Markov algorithm, obtaining the curvature with the maximum probability of the next micro-segment as the first preliminary predicted curvature, and then bringing the newly obtained first preliminary predicted curvature of the micro-segment into the Markov algorithm again, and again obtaining the first preliminary predicted curvature of the next micro-segment, until the number of micro-segments with the first preliminary predicted curvature is greater than a preset critical number, and then stopping the prediction of the curvature of the subsequent micro-segments;

[0012] S22, determine whether the first preliminary predicted curvatures of several micro-segments meet the constraints. If not, adjust the first of the first preliminary predicted curvatures, and re-obtain the first preliminary predicted curvatures of several micro-segments through the Markov algorithm until the constraints are met. At this time, the current first first preliminary predicted curvature is used as the final predicted curvature of the corresponding micro-segment.

[0013] As a further improvement of the present invention, S3 also includes comparing the calculated curvature with the corresponding predicted curvature to obtain a first deviation value, correcting the Markov algorithm according to the first deviation value, and replacing the Markov algorithm before correction with the corrected Markov algorithm.

[0014] As a further improvement of the present invention, the application of the neural network in S4 to predict the curvature of the micro-segment following the current curve is specifically as follows:

[0015] S41, training the neural network using the curve data collected in advance;

[0016] S42, bringing the several calculated curvatures obtained for the current curve into the neural network to obtain the predicted curvature of the next micro-segment.

[0017] As a further improvement of the present invention, S42 is specifically as follows: bringing the several calculated curvatures obtained for the current curve into the neural network to obtain the second preliminary predicted curvatures of the subsequent several micro-segments, judging whether the second preliminary predicted curvatures of the several micro-segments meet the constraints, and if not, adjusting the first of the second preliminary predicted curvatures, and re-obtaining the second preliminary predicted curvatures of the several micro-segments through the neural network until the constraints are met, at which time the current first second preliminary predicted curvature is used as the final predicted curvature of the corresponding micro-segment.

[0018] As a further improvement of the present invention, S42 also includes comparing the calculated curvature with the corresponding predicted curvature to obtain a second deviation value, correcting the neural network according to the second deviation value, and replacing the neural network before correction with the corrected neural network.

[0019] As a further improvement of the present invention, the step of obtaining the fitting function equation of the road in S3 and calculating the calculated curvature of the micro-segment according to the fitting function equation is specifically:

[0020] S31, constructing a plane rectangular coordinate system based on the plane where the road is located, selecting three collection points on the lane line of the road identified by the road condition recognition module and obtaining the coordinates of the three collection points, substituting the coordinates of the three collection points into a quadratic function with a preset weight parameter to be determined, and calculating the weight parameter of the quadratic function, wherein the quadratic function determined by the weight parameter is a partial fitting function equation of the micro-segment where the three collection points are located;

[0021] S32, selecting a collection point at a preset interval and recalculating the fitting function equation, and splicing the fitting function equations obtained by several calculations before and after to obtain the spliced ​​fitting function equation of the micro-segment;

[0022] S33, selecting a number of equally divided points on the micro-segment, respectively obtaining the preliminary calculated curvature at each of the equally divided points, and averaging the preliminary calculated curvatures to obtain the final calculated curvature of the micro-segment.

[0023] As a further improvement of the present invention, judging whether the vehicle is about to enter a curve according to the driving state information in S1 is specifically that when the vehicle speed decreases and the vehicle turning angle changes, it is judged that the vehicle is about to enter a curve.

[0024] As a further improvement of the present invention, the S1 also includes determining that the vehicle is traveling in a straight line when the vehicle speed is not zero and the vehicle turning angle is zero, and at this time predicting the subsequent road through a neural network.

[0025] As a further improvement of the present invention, the road condition recognition module includes a radar and a camera.

[0026] Beneficial effects of the present invention: When predicting through a neural network, a sufficient amount of data is required to ensure the accuracy of the prediction. When a car enters a curve, the car can only obtain the curvature of the curve at the current position. At this time, if the curvature of the subsequent curve is predicted directly through the neural network, the prediction accuracy will be low due to insufficient data. The present invention does not use the MPC+neural network method for prediction when just entering the curve, but directly uses the MPC+Markov algorithm for prediction. Since the Markov prediction of the curvature of the subsequent curve is only related to the curvature of the curve at the current position, it can improve the accuracy of the prediction when just entering the curve, and at the same time provide the necessary amount of data for the later MPC+neural network. After having a sufficient amount of data, the prediction is made through the neural network. The present invention can improve the prediction accuracy and help improve driving safety. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 is a flow chart of the present invention;

[0028] Figure 2 A flowchart for calculating the curvature of a micro-fragment according to a fitting function equation;

[0029] Figure 3 A road diagram. DETAILED DESCRIPTION

[0030] The present invention is further described in detail below in conjunction with the accompanying drawings and embodiments.

[0031] Reference Figure 1 As shown, a vehicle trajectory prediction method based on an intelligent algorithm in this embodiment includes:

[0032] S1, divide the road into several micro-segments, and obtain the driving state information of the car, which includes the speed and wheel angle of the car. When the speed is not zero and the vehicle angle is zero, it is determined that the vehicle is driving in a straight line. At this time, the neural network is used to predict the subsequent road. At this time, it is predicted that the future trajectory is likely to be driving in a straight line, and the prediction error is very small. When the speed decreases and the vehicle angle changes, it is determined that the vehicle is about to enter a curve, and the curvature of the first micro-segment entering the curve is calculated through the driving state information.

[0033] Specifically, when the car is driving in a straight line, it is very easy to judge that the car will be driving in a straight line in the future by looking at the driving state of the car in history. When the car enters a curve, it must enter the curve in a straight line. In this process, the driving state will give corresponding deceleration and wheel angle changes. Therefore, the present invention judges whether the vehicle is driving in a straight line or about to enter a curve based on the driving state information.

[0034] S2, based on the curvature of the first micro-segment, predict the predicted curvature of the next micro-segment through the Markov algorithm; specifically:

[0035] S21, bringing the curvature of the first micro-segment into the Markov algorithm, obtaining the curvature with the highest probability of the next micro-segment as the first preliminary predicted curvature, and then bringing the newly obtained first preliminary predicted curvature of the micro-segment into the Markov algorithm again to obtain the first preliminary predicted curvature of the next micro-segment again, until the number of micro-segments with the first preliminary predicted curvature is greater than a preset critical number, then stopping the prediction of the curvature of subsequent micro-segments;

[0036] Specifically, in this embodiment, the critical number is set to 5. Since when predicting the curvature of a micro-segment through Markov, the curvature of the next micro-segment is only related to the curvature of the previous micro-segment, the curvature of the next 5 micro-segments can be predicted one by one through the curvature of the first micro-segment.

[0037] S22, determine whether the first preliminary predicted curvatures of several micro-segments meet the constraints. If not, adjust the first first preliminary predicted curvature, and re-obtain the first preliminary predicted curvatures of several micro-segments through the Markov algorithm until the constraints are met. At this time, the current first first preliminary predicted curvature is used as the final predicted curvature of the corresponding micro-segment. The car provides data support for the intelligent assisted driving technology through the predicted curvature.

[0038] Specifically, only when the first preliminary predicted curvatures of the five micro-segments obtained by Markov prediction meet the constraints, the first preliminary predicted curvature of the first micro-segment among the first preliminary predicted curvatures of the five micro-segments is used as the final predicted curvature of the corresponding micro-segment, which is conducive to ensuring the accuracy of the predicted curvature of the first micro-segment.

[0039] S3, when the car passes through the predicted micro-segment, the road corresponding to the micro-segment is identified by the road condition identification module on the vehicle, the fitting function equation of the road is obtained, the calculated curvature of the micro-segment is calculated according to the fitting function equation, and the calculated curvature is saved together with the corresponding micro-segment. The calculated curvature is compared with the corresponding predicted curvature to obtain a first deviation value, the Markov algorithm is corrected by the first deviation value, and the Markov algorithm before the correction is replaced by the corrected Markov algorithm.

[0040] The road condition recognition module includes radar and camera. Figure 2 , Figure 3 As shown, the fitting function equation of the road is obtained, and the calculated curvature of the micro-segment is calculated according to the fitting function equation:

[0041] S31, constructing a plane rectangular coordinate system based on the plane where the road is located, selecting three collection points on the lane line of the road identified by the road condition recognition module and obtaining the coordinates of the three collection points, substituting the coordinates of the three collection points into a quadratic function with preset weight parameters to be determined, and calculating the weight parameters of the quadratic function. The quadratic function determined by the weight parameters is the partial fitting function equation of the micro-segment where the three collection points are located.

[0042] Specifically, according to the curve conditions on the normal roads, all the curves are very similar to the curve form of a quadratic function. Therefore, according to the actual situation, the present invention assumes that all the curves conform to the quadratic function curve under a certain parameter. Therefore, it can be assumed that the curve expression form of the curve is: y = a*x^2+b*x+c, where a, b, c are weight parameters to be determined. The road condition recognition module obtains three similar collection points, namely A, B, and C, and the coordinates of the three collection points A, B, and C are (X A ,Y A )、(X B ,Y B )、(X C ,Y C ), and substitute it into the quadratic function equation to get:

[0043]

[0044] The above quadratic function equation has three unknowns and three equalities, and then the specific values ​​of the three weight parameters a, b, and c can be calculated to obtain the fitting function equation.

[0045] S32, selecting a collection point at a preset interval and recalculating the fitting function equation, and splicing the fitting function equations obtained by several calculations before and after to obtain a spliced ​​fitting function equation of the micro-segment;

[0046] Specifically, in this embodiment, the interval time is set to 0.2 seconds, and the solution of the fitting function equation is updated every 0.2 seconds, so as to obtain a complete and accurate curve. In summary, the curve curve of each micro-segment is composed of a plurality of segmented fitting function equations. The shorter the interval time, the faster the update speed, and the more accurate the curve curve of the obtained micro-segment.

[0047] S33, selecting a number of equally divided points on the micro-segment, respectively obtaining the preliminary calculated curvature at each equally divided point, and averaging the preliminary calculated curvatures to obtain the final calculated curvature of the micro-segment.

[0048] Specifically, in this embodiment, the micro-segment is divided into six equal segments to obtain five equally divided points, and the preliminary calculated curvature k of these five points is calculated respectively. 1 ,k 2 ,k 3 ,k4 ,k 5 , and then find the average value The average value is taken as the final calculated curvature of the micro-segment.

[0049] S4, determining whether the number of micro-segments with calculated curvature on the current curve is greater than a preset critical number, if so, applying the neural network to predict the curvature of the subsequent micro-segments of the current curve, otherwise continuing to apply the Markov algorithm to predict the curvature of the subsequent micro-segments of the current curve. When the number of micro-segments with calculated curvature is greater than the preset critical number, it means that the amount of data is sufficient to support the neural network to make an accurate prediction, and the neural network starts to predict the curvature.

[0050] The application of neural network to predict the curvature of the subsequent micro-segments of the current curve is as follows:

[0051] S41, training the neural network using the curve data collected in advance;

[0052] S42, bring the several calculated curvatures obtained for the current curve into the neural network to obtain the predicted curvature of the next micro-segment. Specifically, bring the several calculated curvatures obtained for the current curve into the neural network to obtain the second preliminary predicted curvatures of the subsequent several micro-segments, determine whether the second preliminary predicted curvatures of the several micro-segments meet the constraints, if not, adjust the first second preliminary predicted curvature, and re-obtain the second preliminary predicted curvatures of several micro-segments through the neural network until the constraints are met, at which time the current first second preliminary predicted curvature is used as the final predicted curvature of the corresponding micro-segment. In this embodiment, the number of the second preliminary predicted curvatures of the micro-segments is five.

[0053] S42 also includes comparing the calculated curvature with the corresponding predicted curvature to obtain a second deviation value, correcting the neural network by the second deviation value, and replacing the neural network before correction with the corrected neural network, thereby further improving the accuracy of the neural network prediction.

[0054] The present invention assumes that the road is in an ideal state with no traffic, and then the car is not disturbed by complex external information. The present invention aims to propose a new method, and will conduct in-depth research to consider various driving environments and interference problems of other vehicle information in the future.

[0055] The above are only preferred embodiments of the present invention. The protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technicians in this technical field, some improvements and modifications without departing from the principle of the present invention should also be regarded as the protection scope of the present invention.

Claims

1. A vehicle trajectory prediction method based on an intelligent algorithm, characterized in that: include S1, dividing the road into a plurality of micro-segments, obtaining driving state information of the vehicle, the driving state information including the vehicle speed and wheel angle, judging whether the vehicle is about to enter a curve according to the driving state information, and if so, calculating the curvature of the first micro-segment entering the curve according to the driving state information; S2, predicting the predicted curvature of the next micro-segment by using a Markov algorithm according to the curvature of the first micro-segment; S3, when the car passes through the predicted micro-segment, the road corresponding to the micro-segment is identified by a road condition identification module on the vehicle, a fitting function equation of the road is obtained, a calculated curvature of the micro-segment is calculated according to the fitting function equation, and the calculated curvature is saved together with the corresponding micro-segment; S4, determining whether the number of the micro-segments that have obtained the calculated curvature on the current curve is greater than a preset critical number; if so, applying a neural network to predict the curvature of the micro-segments subsequent to the current curve; otherwise, continuing to apply the Markov algorithm to predict the curvature of the micro-segments subsequent to the current curve.

2. The method for predicting vehicle trajectory based on intelligent algorithm according to claim 1, characterized in that: The S2 is specifically: S21, bringing the curvature of the first micro-segment into the Markov algorithm, obtaining the curvature with the maximum probability of the next micro-segment as the first preliminary predicted curvature, and then bringing the newly obtained first preliminary predicted curvature of the micro-segment into the Markov algorithm again, and again obtaining the first preliminary predicted curvature of the next micro-segment, until the number of the micro-segments with the first preliminary predicted curvature is greater than a preset critical number, and then stopping the prediction of the curvature of the subsequent micro-segments; S22, determine whether the first preliminary predicted curvatures of several micro-segments meet the constraints. If not, adjust the first of the first preliminary predicted curvatures, and re-obtain the first preliminary predicted curvatures of several micro-segments through the Markov algorithm until the constraints are met. At this time, the current first first preliminary predicted curvature is used as the final predicted curvature of the corresponding micro-segment.

3. The method for predicting vehicle trajectory based on intelligent algorithm according to claim 2, characterized in that: The S3 also includes comparing the calculated curvature with the corresponding predicted curvature to obtain a first deviation value, correcting the Markov algorithm according to the first deviation value, and replacing the Markov algorithm before correction with the corrected Markov algorithm.

4. The method for predicting vehicle trajectory based on intelligent algorithm according to claim 1, characterized in that: The application of the neural network in S4 to predict the curvature of the micro-segment following the current curve is specifically as follows: S41, training the neural network using the curve data collected in advance; S42, bringing the several calculated curvatures obtained for the current curve into the neural network to obtain the predicted curvature of the next micro-segment.

5. The method for predicting vehicle trajectory based on intelligent algorithm according to claim 4, characterized in that: The S42 is specifically as follows: bringing the several calculated curvatures obtained for the current curve into the neural network to obtain the second preliminary predicted curvatures of the subsequent several micro-segments, judging whether the second preliminary predicted curvatures of the several micro-segments meet the constraints, and if not, adjusting the first of the second preliminary predicted curvatures, and re-obtaining the second preliminary predicted curvatures of the several micro-segments through the neural network until the constraints are met, at which time the current first second preliminary predicted curvature is used as the final predicted curvature of the corresponding micro-segment.

6. The method for predicting vehicle trajectory based on intelligent algorithm according to claim 5, characterized in that: The S42 also includes comparing the calculated curvature with the corresponding predicted curvature to obtain a second deviation value, correcting the neural network according to the second deviation value, and replacing the neural network before correction with the corrected neural network.

7. The method for predicting vehicle trajectory based on intelligent algorithm according to claim 1, characterized in that: The step of obtaining the fitting function equation of the road in S3 and calculating the calculated curvature of the micro-segment according to the fitting function equation is specifically as follows: S31, constructing a plane rectangular coordinate system based on the plane where the road is located, selecting three collection points on the lane line of the road identified by the road condition recognition module and obtaining the coordinates of the three collection points, substituting the coordinates of the three collection points into a quadratic function with a preset weight parameter to be determined, and calculating the weight parameter of the quadratic function, wherein the quadratic function determined by the weight parameter is a partial fitting function equation of the micro-segment where the three collection points are located; S32, selecting a collection point at a preset interval and recalculating the fitting function equation, and splicing the fitting function equations obtained by several calculations before and after to obtain the spliced ​​fitting function equation of the micro-segment; S33, selecting a number of equally divided points on the micro-segment, respectively obtaining the preliminary calculated curvature at each of the equally divided points, and averaging the preliminary calculated curvatures to obtain the final calculated curvature of the micro-segment.

8. The method for predicting vehicle trajectory based on intelligent algorithm according to claim 1, characterized in that: The determining of whether the vehicle is about to enter a curve according to the driving state information in S1 is specifically that when the vehicle speed decreases and the vehicle turning angle changes, it is determined that the vehicle is about to enter a curve.

9. The method for predicting vehicle trajectory based on intelligent algorithm according to claim 8, characterized in that: The S1 also includes determining that the vehicle is traveling in a straight line when the vehicle speed is not zero and the vehicle turning angle is zero, and predicting the subsequent road through a neural network.

10. The method for predicting vehicle trajectory based on intelligent algorithm according to claim 1, characterized in that: The road condition recognition module includes a radar and a camera.