Early warning braking method based on deep learning

Through the early warning braking method based on deep learning, the depth estimation residual network model is used to extract the distance information between the vehicle and obstacles from the visible light camera data, which solves the problems of high cost of lidar and poor accuracy of binocular visual ranging in the existing technology. problem, realizing efficient, economical and accurate early warning of obstacle detection in front of the vehicle.

CN115966102BActive Publication Date: 2024-10-08CHANGCHUN INST OF OPTICS FINE MECHANICS & PHYSICS CHINESE ACAD OF SCI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211731636.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-30
Publication Date
2024-10-08
Estimated Expiration
2042-12-30

AI Technical Summary

Technical Problem

In the existing vehicle front collision warning and braking system, lidar ranging costs are high, while binocular visual ranging has poor accuracy in ranging scenarios exceeding 15 meters, and cannot effectively solve the problem of detecting obstacles in front of the vehicle while driving on the road. needs.

Method used

An early warning braking method based on deep learning is adopted, using visible light cameras to collect image data, and through the construction and training of a depth estimation residual network model, the distance information between the vehicle and obstacles is extracted, and the braking level and transmission system are formulated based on the relationship between vehicle speed and distance. Move command.

Benefits of technology

It realizes front obstacle detection and braking warning with low cost, easy deployment, long detection range and high accuracy, which improves vehicle safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115966102B_ABST
    Figure CN115966102B_ABST
Patent Text Reader

Abstract

The present invention provides a warning braking method based on deep learning, and the warning braking system includes a perception layer, a decision layer and an application layer; the perception layer is a front-end visible light camera; the decision layer is a data processing module; the application layer is a braking control unit; the warning braking method based on deep learning includes the following steps: S1, a visible light camera is used to collect image data and annotate, establish a mapping relationship between the image data and the vehicle position and distance information, and generate a data set; S2, construct a depth estimation residual network model, train the depth estimation residual network model, and obtain the final network weight; S3, initialize the network weight parameters, send the original image data into the network, obtain the position and distance information of the target, formulate the corresponding braking level, and transmit the corresponding braking command to the rear-end braking control system. The present invention has the characteristics of low cost, easy deployment, long detection distance, and high accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of automobile target tracking, detection and collision warning, and in particular to a warning braking method based on deep learning. Background Art

[0002] When a vehicle is driving on the road, the surrounding environment changes rapidly. If the driver is not paying attention, a traffic accident is likely to occur. At present, most new energy vehicles are equipped with active safety systems, which can provide timely warning and braking for obstacles that appear within a certain distance in front, thereby protecting the safety of drivers and passengers. At present, there are mainly two ways to implement the front collision warning and braking system of vehicles: laser radar ranging and binocular vision ranging.

[0003] LiDAR distance measurement is achieved by installing a LiDAR distance measurement device in front of the vehicle, emitting a laser beam to the target. After the receiver receives the echo, it calculates the distance between the vehicle and the target. When the distance is less than the set threshold, a forward collision warning is issued and corresponding braking measures are taken. Binocular vision distance measurement uses two visible light cameras in front of the vehicle to image the target, calculate the parallax of the two images, and thus derive the distance between the target and the vehicle.

[0004] LiDAR has high ranging accuracy, but it is also expensive. The price of a LiDAR is as high as tens of thousands of yuan, which reduces the price competitiveness of vehicles. Binocular vision ranging technology requires two visible light cameras. Although the cost is relatively low, the measurement range is too small and the calculation complexity is high. In the ranging scenario of more than 15 meters, the accuracy is poor. Summary of the invention

[0005] The purpose of the present invention is to overcome the defects of the prior art and propose a warning braking method based on deep learning.

[0006] To achieve the above object, the present invention adopts the following specific technical solutions:

[0007] A warning braking method based on deep learning is implemented by using a warning braking system, the warning braking system includes a perception layer, a decision layer and an application layer; the perception layer is a front-end visible light camera; the decision layer is a data processing module; the application layer is a braking control unit; the characteristic of the warning braking method based on deep learning is that it includes the following steps:

[0008] S1, visible light camera is used to collect image data and annotate it, establish the mapping relationship between image data and vehicle position and distance information and generate a data set;

[0009] S2, the data processing module constructs a depth estimation residual network model, performs convolution operation on the data set to extract corresponding features for combined learning, and obtains the feature map model of the image; trains the depth estimation residual network model to obtain the final network weights;

[0010] S3. Initialize the network weight parameters, send the original image data into the network, obtain the target position and distance information, formulate the corresponding braking level, and transmit the corresponding braking command to the back-end braking control system.

[0011] Preferably, step S1 includes the following sub-steps:

[0012] S11. A visible light camera is equipped in front of the vehicle, and different imaging conditions are set to collect image data according to weather conditions, distance to the vehicle in front, and type of vehicle;

[0013] S12, while the vehicle is traveling, annotating the collected image data;

[0014] S13, establishing a mapping relationship between image data and vehicle position and distance information and generating a data set;

[0015] S14, sending the image data and the corresponding vehicle position information and vehicle distance information as samples into the data set to generate 200 annotated image data with annotated information;

[0016] S15. Through the data set expansion technology, the labeled image data is flipped, translated and compressed, and expanded to 10 times the data to construct the final labeled data set.

[0017] Preferably, step S2 includes the following sub-steps:

[0018] S21, constructing a depth estimation network model, where the network of the depth estimation network model is a residual network;

[0019] The residual network model uses a multi-scale deep convolutional neural network to extract vehicle features in the image. The 416x416 image is input into the network, and convolved with a convolution kernel of 7x7x64 with a step size of 2 to obtain a 208x208 feature image; then it passes through a 3x3 pooling layer with a step size of 2 and 3 Conv2_x convolution kernels to obtain a 104x104 output feature map; then it passes through 4 Conv3_x convolution kernels to obtain a 52x52 output feature map; then it passes through 23 Conv4_x convolution kernels to obtain a 26x26 output feature map; then it passes through 3 Conv5_x convolution kernels to obtain a 13x13 output feature map;

[0020] S22, training the residual network model to obtain the final network weights;

[0021] The loss function used is as follows:

[0022]

[0023] The establishment of the loss function includes 4 steps:

[0024] S221: the sum of squares of the predicted diagonal lengths of the rectangular box;

[0025] S222: The square sum loss of the center coordinates of the predicted box and the actual target center coordinates; by comparing the center point of the predicted box and the center point of the image (x center ,y center ), dynamically adjust the weight of this part of the loss function, so that the neural network can better learn the target near the center point, and the target closer to the center of the image is more accurately predicted;

[0026] S223: represents the square sum loss of pixel depth. By introducing the depth estimation loss into the loss function for iterative optimization, the network can eventually predict the depth information corresponding to the current pixel.

[0027] S224: represents the cross entropy loss of confidence. By introducing the confidence loss into the loss function, the confidence of the final target is iteratively optimized.

[0028] parameter Indicates whether the jth candidate box of the i-th grid contains the prediction of the target. If so, Otherwise, it is 0; coord The parameter represents the weight coefficient of this part of the loss function; diagonal i Represents the predicted value of the diagonal length of the rectangular box of the i-th grid, represents the true value of the diagonal length of the jth candidate box in the i-th grid; similarly, parameter Indicates whether this candidate box does not contain the prediction of this target.

[0029] The horizontal coordinate x, vertical coordinate y, width w, and height h of the prediction box are normalized and range from 0 to 1; Indicates the width of the jth rectangular box of the i-th grid, represents the height of the jth rectangular box of the i-th grid; D(x, y) represents the pixel value depth information at the (x, y) coordinate; p represents the confidence of the prediction, p i It is represented as the target confidence of the prediction of the i-th grid, and s2 is the number of grids. Preferably, S2 also includes the following sub-steps:

[0030] S23: Use the gradient descent strategy to iteratively optimize the value of the loss function so that the loss function continues to drop to the optimal point and save the current network weight parameters; when making the next prediction, bring them into the current network weight parameters to obtain new values ​​of x, y, D(x, y), diagonal, and p.

[0031] Preferably, step S3 includes:

[0032] S31, generating the position information of the target and the depth information D(x, y) corresponding to each pixel according to the network weight;

[0033] S32, the target distance Dst (x, y) is obtained by calculating the average value of the pixel depth information in the target area, and the calculation method is as follows:

[0034]

[0035] Parameter x center and center Represents the coordinates of the center point of the image; It means taking all x values ​​within the range of w from the horizontal coordinate of the center point of the image. It means taking all y values ​​whose ordinate distance from the center of the image is within the range of h.

[0036] S33, for multiple vehicle targets in the image, filter out the front vehicle target through the following process;

[0037] S331, initialize the center distance variable dmax, the target number num max;

[0038] S332, traversing all targets generated by the network for depth estimation;

[0039] S333, when the confidence of the target is greater than 0.9, calculate the distance dcentre between the target center and the image center and the target number num;

[0040] S334, if the distance dcentre between the calculated target center and the image center is greater than the initialized center distance variable dmax; dmax = dcentre, num max = num;

[0041] S335, traversal ends;

[0042] S336, taking the target corresponding to the number num max as the front vehicle target;

[0043] S34. According to the mapping table of the current vehicle speed, the distance to the front vehicle and the braking level, the corresponding braking level is obtained, and the corresponding braking command is transmitted to the rear-end braking control system. The braking control system performs braking action and the vehicle stops.

[0044] The deep learning-based early warning braking method provided by the present invention is equipped with a visible light camera in front of the vehicle, uses deep learning neural network technology to perceive obstacles in front, detects the distance between the target and the vehicle, and adopts different braking strategies according to the relationship between the current vehicle speed and distance. The present invention has the characteristics of low cost, easy deployment, long detection distance and high accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 It is a flowchart of a warning braking system based on deep learning provided according to an embodiment of the present invention.

[0046] Figure 2 It is a network flow diagram of a deep learning-based early warning braking method provided according to an embodiment of the present invention. DETAILED DESCRIPTION

[0047] Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. In the following description, the same modules are represented by the same reference numerals. In the case of the same reference numerals, their names and functions are also the same. Therefore, the detailed description thereof will not be repeated.

[0048] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and do not constitute a limitation of the present invention.

[0049] Figure 1 A schematic diagram of the process flow of a warning braking system based on deep learning provided by an embodiment of the present invention is shown.

[0050] like Figure 1 As shown, the system flow diagram provided by the embodiment of the present invention includes a perception layer, a decision layer, and an application layer.

[0051] The perception layer is the front-end visible light camera, the decision layer is the data processing module, and the application layer is the braking control unit.

[0052] Figure 2 A network flow diagram of a deep learning-based early warning braking method provided in an embodiment of the present invention is shown.

[0053] like Figure 2 As shown, a network flow diagram of a warning braking method based on deep learning provided in an embodiment of the present invention.

[0054] The early warning braking method based on deep learning includes the following steps:

[0055] S1. The visible light camera is used to collect and annotate image data, establish a mapping relationship between the image data and the vehicle position and distance information, and generate a data set; including the following sub-steps:

[0056] S11. A visible light camera is equipped in front of the vehicle. Different imaging conditions are set to collect image data according to weather conditions, distance to the vehicle in front, and vehicle type, so as to meet the diversity requirements of the data set.

[0057] S12, while the vehicle is traveling, annotating the collected image data;

[0058] S13, establishing a mapping relationship between image data and vehicle position and distance and generating a data set;

[0059] S14. Send the image data and the corresponding vehicle location information and vehicle distance information as samples into the data set to generate 200 image data with annotation information to meet the diverse needs of weather, distance, vehicle type, etc.

[0060] S15. Finally, the image data set expansion technology is used to flip, translate and compress the 200 data items, and expand them to generate 10 times the data as the final data set.

[0061] The visible light camera uses Hikvision's USB camera E12, with an imaging resolution of 1920x1080 RGB three-channel images. The visible light camera is responsible for collecting images in front of the vehicle, and then sends the image data collected by the front camera to the next step of the neural network for feature extraction and depth estimation.

[0062] S2, sending the data to the data processing module for processing, constructing a depth estimation residual network model, performing convolution operation on the data set to extract corresponding features for combined learning, and obtaining a feature map model of the image; training the depth estimation residual network model to obtain the final network weight; including the following sub-steps:

[0063] S21. The depth estimation network skeleton network adopted in the present invention is a residual network, and the network architecture is shown in Table 1.

[0064] Table 1 Network structure

[0065]

[0066] An image of size 416x416 is input into the network, and is convolved with a convolution kernel of size 7x7x64 with a stride of 2 to obtain a feature image of size 208x208; then it is passed through a pooling layer of size 3x3 with a stride of 2 and 3 Conv2_x convolution kernels to obtain an output feature map of size 104x104; then it is passed through 4 Conv3_x convolution kernels to obtain an output feature map of size 52x52; then it is passed through 23 Conv4_x convolution kernels to obtain an output feature map of size 26x26; then it is passed through 3 Conv5_x convolution kernels to obtain an output feature map of size 13x13.

[0067] S22. Train the network model to obtain the final network weights.

[0068] The loss function used is as follows:

[0069]

[0070] The establishment of the loss function includes 4 steps:

[0071] S221, the square sum loss of the diagonal length of the predicted rectangular box;

[0072] S222, the square sum loss of the coordinates of the center of the prediction box and the coordinates of the actual target center; by comparing the center point of the prediction box and the center point of the image (x center ,y center ) to dynamically adjust the weight of this part of the loss function, so that the neural network can better learn the target near the center point, and achieve the goal of more accurate prediction of the target closer to the center of the image;

[0073] S223, representing the square sum loss of pixel depth, by introducing the depth estimation loss into the loss function for iterative optimization, so that the network can eventually predict the depth information corresponding to the current pixel;

[0074] S224, representing the cross entropy loss of confidence, introduces the confidence loss into the loss function to iteratively optimize the confidence of the final target.

[0075] parameter Indicates whether the jth candidate box of the i-th grid contains the prediction of the target. If so, Otherwise, it is 0; coord The parameter represents the weight coefficient of this part of the loss function; diagonal i Represents the predicted value of the diagonal length of the rectangular box of the i-th grid, represents the true value of the diagonal length of the jth candidate box in the i-th grid; similarly, parameter Indicates whether this candidate box does not contain the prediction of this target.

[0076] The parameters x, y, w, and h represent the horizontal and vertical center coordinates (x, y) of the prediction box and the length and width (w, h) of the target box, respectively. The values ​​are normalized and range from 0 to 1. center and center Represents the coordinates of the center point of the image; Indicates the width of the jth rectangular box of the i-th grid, represents the height of the jth rectangular box of the ith grid; D(x, y) represents the pixel value depth information at the (x, y) coordinate, and the parameter p represents the confidence of the prediction, p i It represents the target confidence that the i-th grid is responsible for predicting, s2 is the number of grids, i represents the grid, and j represents the rectangular box.

[0077] S23. Use the gradient descent strategy to iteratively optimize the value of the loss function so that the loss function continues to drop to the optimal point and save the current network weight parameters. When making the next prediction, bring them into the current network weight parameters to derive new x, y, diagonal, D(x, y), P and other parameters.

[0078] S3, initialize network weight parameters, send the original image data to the network, obtain the location and distance information of the target, formulate the corresponding braking level, and send it to the application layer to execute the response strategy; including the following sub-steps:

[0079] S31, generating the target's location information (abscissa x, ordinate y, width w, height h) and the depth information D (x, y) corresponding to each pixel point;

[0080] S32, the distance Dst (x, y) of the target is obtained by calculating the average value of the pixel depth information in the target area, and the calculation method is as follows:

[0081]

[0082] Parameter x center and center Represents the coordinates of the center point of the image; It means taking all x values ​​within the range of w from the horizontal coordinate of the center point of the image. It means taking all y values ​​whose ordinate distance from the center of the image is within the range of h.

[0083] S33. For multiple vehicle targets in the image, the front vehicle target is screened out through the following process:

[0084] S331, initialize the center distance variable dmax, the target number num max;

[0085] S332, traversing all targets generated by the network for depth estimation;

[0086] S333, when the confidence of the target is greater than 0.9, calculate the distance dcentre between the target center and the image center and the target number num;

[0087] S334, if the distance dcentre between the calculated target center and the image center is greater than the initialized center distance variable dmax; dmax = dcentre, num max = num;

[0088] S335, traversal ends;

[0089] S336. Take the target corresponding to the num max number as the front vehicle target.

[0090] S34. According to the mapping table of the current vehicle speed, the distance to the front vehicle and the braking level, as shown in Table 2, the corresponding braking level is obtained, and the corresponding braking command is transmitted to the rear-end braking control system, and the braking control system performs braking action to stop the vehicle.

[0091] Table 2 Mapping table of vehicle speed distance and braking level

[0092]

[0093] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0094] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.

[0095] The above specific implementations of the present invention do not constitute a limitation on the protection scope of the present invention. Any other corresponding changes and modifications made based on the technical concept of the present invention should be included in the protection scope of the claims of the present invention.

Claims

1. A warning braking method based on deep learning, implemented by a warning braking system, wherein the warning braking system comprises a perception layer, a decision layer and an application layer; the perception layer is a front-end visible light camera; the decision layer is a data processing module; the application layer is a braking control unit; characterized in that: The early warning braking method based on deep learning includes the following steps: S1, the visible light camera is used to collect image data and annotate it, establish a mapping relationship between the image data and the vehicle position and distance information, and generate a data set; S2, the data processing module constructs a depth estimation residual network model, performs convolution operation on the data set to extract corresponding features for combined learning, and obtains a feature map model of the image; trains the depth estimation residual network model to obtain the final network weights; S3. Initialize the network weight parameters, send the original image data into the network, obtain the target position and distance information, formulate the corresponding braking level, and transmit the corresponding braking command to the back-end braking control system.

2. The deep learning-based early warning braking method according to claim 1, characterized in that: The step S1 includes the following sub-steps: S11. A visible light camera is equipped in front of the vehicle, and different imaging conditions are set to collect image data according to weather conditions, distance to the vehicle in front, and type of vehicle; S12, while the vehicle is traveling, annotating the collected image data; S13, establishing a mapping relationship between the image data and the vehicle position and distance information and generating a data set; S14, sending the image data and the corresponding vehicle position information and vehicle distance information as samples into the data set to generate 200 annotated image data with annotated information; S15. By using the data set expansion technology, the labeled image data is flipped, translated and compressed, and expanded to 10 times the data to construct the final labeled data set.

3. The deep learning-based early warning braking method according to claim 1, characterized in that: Step S2 includes the following sub-steps: S21, constructing a depth estimation network model, wherein the network of the depth estimation network model is a residual network; The residual network model uses a multi-scale deep convolutional neural network to extract vehicle features in the image. An image of size 416x416 is input into the network, and convolution is performed with a convolution kernel of size 7x7x64 with a step size of 2 to obtain a feature image of size 208x208; then, a pooling layer of size 3x3 with a step size of 2 and 3 Conv2_x convolution kernels are passed through to obtain an output feature map of size 104x104; then, a convolution kernel of size 4 Conv3_x is passed through to obtain an output feature map of size 52x52; then, a convolution kernel of size 23 Conv4_x is passed through to obtain an output feature map of size 26x26; then, a convolution kernel of size 3 Conv5_x is passed through to obtain an output feature map of size 13x13; S22, training the residual network model to obtain the final network weights; The loss function used is as follows: The establishment of the loss function includes the following steps: S221, the square sum loss of the diagonal length of the predicted rectangular box; S222, the square sum loss of the center coordinates of the predicted box and the center coordinates of the actual target; by comparing the center point of the predicted box and the center point of the image (x center ,y center ), dynamically adjust the weight of this part of the loss function, so that the neural network can better learn the target near the center point, and the target closer to the center of the image is more accurately predicted; S223, representing the square sum loss of pixel depth, by introducing the depth estimation loss into the loss function for iterative optimization, so that the network can eventually predict the depth information corresponding to the current pixel; S224, representing a cross entropy loss of confidence, by introducing the confidence loss into the loss function to iteratively optimize the confidence of the final target; parameter Indicates whether the jth candidate box of the i-th grid contains the prediction of the target. If so, Otherwise, it is 0; coord The parameter represents the weight coefficient of this part of the loss function; diagonl i Represents the predicted value of the diagonal length of the rectangular box of the i-th grid, represents the true value of the diagonal length of the jth candidate box in the i-th grid; similarly, parameter Indicates whether this candidate box does not contain the prediction of this target. The horizontal coordinate x, vertical coordinate y, width w, and height h of the prediction box are normalized and range from 0 to 1. center and center Represents the coordinates of the center point of the image; Indicates the width of the jth rectangular box of the i-th grid, represents the height of the jth rectangular box of the i-th grid; D(x, y) represents the pixel value depth information at the (x, y) coordinate; p represents the confidence of the prediction, p i It is represented as the target confidence that the i-th grid is responsible for predicting, and s2 is the number of grids.

4. The deep learning-based early warning braking method according to claim 3 is characterized in that: The S2 further comprises the following sub-steps: S23. Use the gradient descent strategy to iteratively optimize the value of the loss function so that the loss function continues to decrease to the optimal point, and save the current network weight parameters; when making the next prediction, bring them into the current network weight parameters to obtain new values ​​of x, y, diagonal, D(x, y), and p.

5. The deep learning-based early warning braking method according to claim 1, characterized in that: The step S3 comprises: S31, generating the target location information and the depth information D(x, y) corresponding to each pixel point according to the network weight; S32, the target distance Dst (x, y) is obtained by calculating the average value of the pixel depth information in the target area, and the calculation method is as follows: Parameter x center and center Represents the coordinates of the center point of the image; It means taking all x values ​​within the range of w from the horizontal coordinate of the center point of the image. It means taking all y values ​​within the range of h from the ordinate of the center point of the image; S33, for multiple vehicle targets in the image, filter out the front vehicle target through the following process; S331, initialize the center distance variable dmax, the target number num max; S332, traversing all targets generated by the network for depth estimation; S333, when the confidence of the target is greater than 0.9, calculate the distance dcentre between the target center and the image center and the target number num; S334, if the distance dcentre between the calculated target center and the image center is greater than the initialized center distance variable dmax; dmax = dcentre, num max = num; S335, traversal ends; S336, taking the target corresponding to the number num max as the front vehicle target; S34. According to the mapping table of the current vehicle speed, the distance to the preceding vehicle and the braking level, a corresponding braking level is obtained, and a corresponding braking command is transmitted to the rear-end braking control system, and the braking control system performs a braking action and the vehicle stops.