Early warning system of new energy vehicle
By adopting the early warning system of the YOLOP model and ranging module in new energy vehicles, it can identify the vehicle ahead and calculate the actual distance, and provide warnings for different lane positions, solving the problem that existing technology cannot effectively avoid traffic accidents and ensuring that drivers are safe Driving safely in a highway environment.
Patent Information
- Application Number
- CN202410684196.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2024-09-06
AI Technical Summary
Existing technology cannot effectively use autonomous driving technology to avoid traffic accidents, resulting in safety hazards for new energy vehicles during driving. A system that can provide safety warnings without relying on autonomous driving technology is needed.
A new energy vehicle early warning system based on the YOLOP model is used to identify the vehicle ahead and its driving information through video images, combine it with the ranging module to calculate the actual distance, and use the lane trajectory prediction module to select an appropriate avoidance trajectory. The early warning module issues a warning when a collision is possible. Alerts ensure that drivers can take timely measures in environments such as highways.
It achieves effective early warning for different types of collisions (such as rear-end collisions, overtaking, lane changes, etc.) during highway driving to ensure driver safety. Through accurate detection and ranging calculations, it provides warning information for different lane positions to reduce accidents. Accidents caused by fatigue driving or poor observation.
Smart Images

Figure CN118609418A
Abstract
Description
Technical Field
[0001] The invention relates to the field of new energy vehicles and discloses an early warning system for new energy vehicles. Background Art
[0003] Vigorously researching and developing active automobile safety technologies such as automobile collision avoidance, reducing the burden on drivers and misjudgment, will play an important role in improving traffic safety. Since the driving process is a highly intelligent process, although the academic community has invested a lot of energy in the research of automobile automatic driving and has achieved certain results, as far as the current research results of computer technology and artificial intelligence are concerned, it is still impossible to establish an exact model to fully and truly reflect the driving process. Therefore, it is currently impossible to rely on certain functions of existing automatic driving technology, such as automatic steering and automatic braking, to avoid traffic accidents. Safety warning is currently the most effective technical means.
[0004] In summary, the early warning system of new energy vehicles has important background significance in maintaining a safe distance and reminding drivers. It is one of the key technologies to ensure the reliability and market development of new energy vehicles. Summary of the invention
[0005] The purpose of the present invention is to provide a warning system for new energy vehicles to solve the problems raised in the above background technology.
[0006] To achieve the above object, the present invention provides the following technical solutions:
[0007] According to the first aspect of the present invention, based on the YOLOP model, each vehicle in front of the target vehicle and the driving information of each vehicle in front are identified from the front video image of the target vehicle, the driving information includes the speed information of the vehicle in front, a distance measurement module is used to obtain the actual distance between the vehicles in front of the target vehicle in each lane in front of the target vehicle through a camera set on the target vehicle, the lanes include the target lane where the target vehicle is located, the left lane on the left side of the target lane and the right lane on the right side of the target lane, a lane trajectory prediction module is used to measure the driving trajectory of the vehicle in the lane in front based on the speed information and heading angle of the vehicle in front, and select a suitable trajectory to avoid the vehicle in front; an early warning module is used to detect the safe distance of the vehicle in front and issue an early warning message when encountering a possible collision.
[0008] The vehicle detection unit includes a prediction and classification unit, which includes: a first prediction submodule, which uses a pair of first feature maps with a size of 12x12 to perform convolution to obtain a third convolution result, and uses the third convolution result as a first prediction result of the first feature map; a second prediction submodule, which is used to splice the first convolution result with the first feature map with a size of 12x12 to obtain a fourth convolution result, and then use the fourth convolution result as a second prediction result of the second feature map with a size of 24x24; a second prediction submodule, which is used to splice the fourth convolution result with the features on the second feature map with a size of 24x24 to obtain a fifth convolution result, and then use the fifth convolution result as a third prediction result of the third feature map with a size of 48x48; a fourth prediction submodule, which is used to splice the fifth convolution result with the features on the third feature map with a size of 48x48 to obtain a sixth convolution result, and then use the sixth convolution result as a fourth prediction result of the fourth feature map with a size of 96x96.
[0009] Relationship As a preference, the ranging unit comprises: a feature point setting subunit, which is used to set the first feature point and the second feature point in the horizontal direction and the vertical direction in the front video image respectively; a first calculation subunit, which is used to obtain the first relationship between the pixel spacing in the horizontal direction and the actual spacing based on the image spacing between the first feature points; a second relationship calculation subunit, which is used to fit the second relationship between the pixel spacing in the vertical direction and the actual spacing based on the image spacing between the second feature points and the actual spacing; an actual distance calculation subunit, which is used to obtain the actual distance between the target vehicle and each of the front vehicles based on the first relationship and the second relationship.
[0010] As a preferred option, the early warning module also includes: a first judgment module, used to not output alarm information to the cab of the target vehicle if the actual distance is greater than the safety distance; a second judgment module is used to output alarm information to the cab of the target vehicle when the actual distance is less than the safety distance.
[0011] As a preferred method, the second judgment module includes: a first alarm submodule, which is used to output the first alarm information when the target vehicle and the preceding vehicle are in the same lane. In this embodiment, the actual situation of the vehicle during driving is fully considered, and different types of collisions (rear-end collision, overtaking, lane change, etc.) that occur during highway driving can be effectively predicted, thereby ensuring driving safety. The second alarm submodule is used to warn all vehicles in the preceding lane and provide corresponding warnings to the driver according to the different positions of the vehicle. If the preceding vehicle is outside the warning area, remind the driver: drive safely; if the vehicle appears in the warning area, different warning messages are provided to the driver according to the different lanes where the detected vehicle appears, to ensure the driver's safety during driving. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the drawings or prior art descriptions required for the embodiments will be briefly introduced below. The drawings attached to the following description are only a few embodiments of the present invention.
[0013] Figure 1 It is a structural schematic diagram of an alarm module in a warning system for a new energy vehicle according to an embodiment of the present application; Figure 2 It is a flow chart of a warning system for a new energy vehicle according to an embodiment of an application. DETAILED DESCRIPTION
[0014] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be described in detail below. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other implementation methods obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0015] In the application example, the early warning system of new energy vehicles includes:
[0016] A vehicle detection module is used to identify the front vehicles and the driving information of the front vehicles from the front video image of the target vehicle based on the YOLOP model, including the front vehicle situation and speed information;
[0017] The vehicle detection module includes a feature extraction module and a distance prediction module. The feature extraction unit includes: a first convolution subunit, which is used to convolve the front video image with 32 convolution kernels of size 3x3 to obtain a first convolution result; a second convolution subunit, which is used to downsample the first convolution result with 64 convolution kernels of size 3x3 and step size 2 to obtain a second convolution result; a third convolution subunit, which is used to increase the network depth using residual blocks of size 1x1 and size 3x3 respectively to obtain feature maps of different sizes. The vehicle detection unit includes a prediction classification unit, which includes: a first prediction submodule, which is used to convolve the first feature map of size 12x12 to obtain a third convolution result, and use the third convolution result as the first prediction result of the first feature map; a second prediction submodule, which is used The third convolution result is spliced with the first feature map of size 12x12 to obtain a fourth convolution result, and the fourth convolution result is used as the second prediction result of the second feature map of size 24x24; a third prediction submodule is used to splice the fourth convolution result with the features on the second feature map of size 24x24 to obtain a fifth convolution result, and the fifth convolution result is used as the third prediction result of the third feature map of size 48x48; a fourth prediction submodule is used to splice the fifth convolution result with the features on the third feature map of size 48x48 to obtain a sixth convolution result, and the sixth convolution result is used as the fourth prediction result of the fourth feature map of size 96x96; a ranging module is used to obtain the actual distance between the target vehicle and each of the vehicles in front and on the left and right sides.
[0018] Among them, the ranging module includes a feature point setting submodule, which is used to set the first feature point and the second feature point in the horizontal direction and the vertical direction in the front video image respectively. These feature points are usually points in the image that are easy to identify and locate, such as the edge of the vehicle, the logo or other significant visual elements. Through these feature points, the geometric relationship on the image can be established. The second relationship submodule is similar to the first relationship calculation submodule. This submodule fits the second relationship between the pixel spacing in the vertical direction and the actual spacing based on the relationship between the spacing of the second feature points in the image and the actual spacing. This process may involve the least squares method or other fitting algorithms; the actual calculation submodule uses the first and second relationship obtained by the previous two submodules to calculate the actual distance between the target vehicle and each front vehicle. This calculation process is a key step in converting the measurement value on the image into the actual physical distance.
[0019] The warning module is used to output warning information based on the actual spacing and safety distance. In the embodiment of the present application, the actual situation of the vehicle during driving is fully considered, and different types of collision accidents (rear-end collision, overtaking and lane change, etc.) that occur during driving on the highway can be effectively predicted, thereby ensuring driving safety, warning vehicles in all lanes ahead, and providing corresponding pre-adjustments to the driver according to the different positions of the vehicles. If the vehicle ahead is outside the warning area, the driver is reminded that it is safe to drive; if the vehicle appears in the warning area, different warning information is provided to the driver according to the different lanes where the detected vehicle appears, ensuring the driver's safety during driving.
[0020] In the embodiment of the present application, a deep convolutional neural network YOLOP is proposed to accurately detect and track the vehicle in front. YOLOP is famous for its high accuracy and fast speed; then a distance measurement model is proposed to calculate the braking distance of the vehicle, and the next operation is performed according to the distance of the convolution distance measurement; finally, the safety of the driving process is analyzed, and the driver is given corresponding safety tips, and the driver is prompted to take corresponding measures to avoid accidents caused by a series of situations such as the driver's inadequate observation, fatigue driving, and emergencies. The vehicle detection unit includes a feature extraction module, which includes: a first convolution submodule, which is used to convolve the front video image using 24 convolution kernels of size 3x3 to obtain a first convolution result; a second convolution submodule, which is used to downsample the first convolution result using 48 convolution kernels of size 3x3 and a step size of 2 to obtain a second convolution result; a third convolution submodule, which is used to increase the network depth using staggered blocks of size 1x1 and size 3x3 respectively, and obtain feature maps of different sizes.
[0021] The feature map size is 192x192 pixels; then, the residual block is repeated to obtain feature maps of 96x96 pixels, 48x48 pixels, 24x24 pixels, and 12x12 pixels. Except for the different scales of the convolution kernel and the feature map, each residual block is the same. Among them, downsampling is performed in the convolution layer above each shape box, and the step size of 2 adds batch normalization training process to all convolution layers.
[0022] In the application embodiment, the actual distance calculation submodule includes: a pixel spacing acquisition submodule, which is used to respectively obtain the horizontal pixel spacing and the vertical pixel spacing between the target vehicle and each of the front vehicles, and obtain the actual distance between the target vehicle and each of the front vehicles. In order to prevent traffic accidents, it is necessary not only to calibrate the target and position of the front vehicle in a systematic manner, but also to calculate the distance between the vehicles. Through precise calculation, the position of the vehicle and the front vehicle can be accurately located; multiple feature points are calibrated in the horizontal and vertical directions of the image, and the horizontal and vertical methods are calculated separately according to the feature points. It is found through experiments that the horizontal direction has a certain proportional relationship.
Claims
1. A warning system for new energy vehicles, the system comprising: a vehicle detection module, which is used to identify each front vehicle of the target vehicle and the driving information of each front vehicle from the front video image of the target vehicle based on the YOLOP model, the driving information including the speed information of the front vehicle, a distance measurement module, which is used to obtain the actual distance between the front vehicles on each lane in front of the target vehicle through a camera arranged on the target vehicle, the lanes including the target lane where the target vehicle is located, the left lane on the left side of the target lane and the right lane on the right side of the target lane, a lane trajectory prediction module, which is used to measure the driving trajectory of the vehicle in the front lane based on the speed information and heading angle of the front vehicle, and select a suitable trajectory to avoid the front vehicle; an early warning module, which is used to detect the safe distance of the front vehicle and issue early warning information when encountering a possible collision.
2. The early warning system for new energy vehicles according to claim 1 is characterized in that : The early warning system module includes a prediction and classification module, and the prediction and classification module includes: a first prediction submodule, which uses a pair of first feature maps with a size of 12x12 to perform convolution to obtain a third convolution result, and uses the third convolution result as a first prediction result of the first feature map; a second prediction submodule, which is used to splice the first convolution result with the first feature map with a size of 12x12 to obtain a fourth convolution result, and then use the fourth convolution result as a second prediction result of the second feature map with a size of 24x24; a second prediction submodule, which is used to splice the fourth convolution result with the features on the second feature map with a size of 24x24 to obtain a fifth convolution result, and then use the fifth convolution result as a third prediction result of the third feature map with a size of 48x48; a fourth prediction submodule, which is used to splice the fifth convolution result with the features on the third feature map with a size of 48x48 to obtain a sixth convolution result, and then use the sixth convolution result as a fourth prediction result of the fourth feature map with a size of 96x96.
3. The early warning system for new energy vehicles according to claim 2 is characterized in that : The actual distance calculation submodule includes: a pixel spacing acquisition submodule, which is used to respectively acquire the horizontal pixel spacing and the vertical pixel spacing between the target vehicle and each of the vehicles ahead; a first spacing acquisition submodule, which is used to acquire the horizontal actual spacing based on the horizontal pixel spacing and the first relationship; a second spacing acquisition submodule, which is used to acquire the vertical actual spacing based on the vertical pixel spacing and the second relationship; The third distance acquisition submodule is used to acquire the actual distance between the target vehicle and each of the front vehicles based on the horizontal actual distance and the vertical actual distance.
4. The early warning system for new energy vehicles according to claim 1 is characterized in that The warning module further includes: a first judgment module, which is used for not outputting alarm information to the cab of the target vehicle if the actual distance is greater than the safety distance; The second judgment module is used to output an alarm message to the cab of the target vehicle if the actual distance is smaller than the safety distance.
5. The early warning system for new energy vehicles according to claim 4 is characterized in that The second judgment module includes: a first alarm submodule, which is used to output a first alarm message if the target vehicle and the preceding vehicle are located in the same lane; and a second alarm submodule, which is used to output a second alarm message if the target vehicle and the preceding vehicle are located in different lanes.
6. A warning management system for new energy vehicles, characterized in that: The method comprises: based on the YOLOP model, identifying each front vehicle sign of the target vehicle from the front video image of the target vehicle to obtain the actual distance between the target vehicle and each front vehicle; based on the driver's reaction distance and braking distance, obtaining the safe distance of the target vehicle; and outputting alarm information based on the actual distance and the safe distance.
7. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to claim 6 is implemented.
8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to claim 6 is implemented.
