A dynamic target detection method in complex traffic scenes based on deep learning

Through deep learning technology, feature points and sliding window observations of traffic driving images are extracted, and the convolution layer and integration layer are combined to build a traffic target detection model, which solves the problem of the inability of existing technology to obtain traffic target movement information and improves automatic driving. security and traffic safety.

CN118334612BActive Publication Date: 2024-09-20CHENGDU AERONAUTIC POLYTECHNIC +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410765708.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-09-20
Estimated Expiration
2044-06-14

AI Technical Summary

Technical Problem

Existing traffic target detection technology cannot obtain accurate movement information of traffic targets in real time, and cannot provide effective avoidance reference for autonomous driving.

Method used

Using a method based on deep learning, the traffic image is captured by the camera of the self-driving car, the left node, right node, upper node and lower node are extracted, the edge field distribution function is constructed, the sliding window is used to generate the driving observation, and the convolution layer is combined , the integration layer and the fully connected layer build a traffic target detection model and generate dynamic target detection results.

Benefits of technology

It effectively reflects the overall and edge pixel conditions of the image, improves the self-driving car's detection accuracy and timely avoidance of traffic targets, and reduces the occurrence of traffic accidents.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118334612B
    Figure CN118334612B
Patent Text Reader

Abstract

The present invention discloses a dynamic target detection method in a complex traffic scene based on deep learning, which relates to the field of target detection technology and includes the following steps: S1, using a camera of an autonomous driving car to shoot a traffic driving image; S2, extracting the left node, right node, upper node and lower node of the traffic driving image, and extracting the driving observation quantity of the traffic driving image; S3, constructing a traffic target detection model, using the driving observation quantity of the traffic driving image as the input of the traffic target detection model, and generating a dynamic target detection result. The dynamic target detection method facilitates the autonomous driving car to make timely avoidance processing on the target detection result, improves the safety of autonomous driving, and reduces the occurrence of traffic accidents.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of target detection technology, and in particular to a dynamic target detection method in complex traffic scenarios based on deep learning. Background Art

[0002] With the rapid growth of the automobile industry, traffic congestion and traffic accidents have increased significantly, and improving traffic safety has become a social problem that needs to be solved urgently. In order to improve traffic safety, the concept of autonomous driving has emerged. Assisted driving systems such as safety warning systems, forward collision warning systems, adaptive cruise control systems, and lane departure warning systems are gradually being applied to automobile driving. Among these assisted driving systems, the most core part is the real-time detection of traffic targets. Commonly used sensors for real-time detection of traffic targets include image acquisition devices and millimeter-wave radars. Among them, image acquisition devices can capture real-time image information of traffic targets, but they cannot obtain accurate motion information of traffic targets and cannot provide reference for autonomous driving to avoid traffic targets. Summary of the invention

[0003] In order to solve the above problems, the present invention proposes a dynamic target detection method in complex traffic scenes based on deep learning.

[0004] The technical solution of the present invention is: a dynamic target detection method in a complex traffic scene based on deep learning comprises the following steps:

[0005] S1. Use the camera of the self-driving car to capture traffic images;

[0006] S2, extracting the left node, the right node, the upper node and the lower node of the traffic driving image, and extracting the driving observation quantity of the traffic driving image;

[0007] S3. Construct a traffic target detection model, use the driving observation quantity of the traffic driving image as the input of the traffic target detection model, and generate dynamic target detection results.

[0008] Furthermore, S2 includes the following sub-steps:

[0009] S21, taking the pixel point where the midpoint of the leftmost edge of the traffic image is located as the left node, taking the pixel point where the midpoint of the rightmost edge of the traffic image is located as the right node, taking the pixel point where the midpoint of the top edge of the traffic image is located as the upper node, and taking the pixel point where the midpoint of the bottom edge of the traffic image is located as the lower node;

[0010] S22, constructing an edge field distribution function for the traffic driving image according to the left node, the right node, the upper node, and the lower node;

[0011] S23, setting a sliding window, traversing the traffic image, and obtaining window observations;

[0012] S24. Generate driving observation quantities of the traffic driving image by using the edge field distribution function and the window observation quantities.

[0013] The beneficial effect of the above further scheme is: in the present invention, the pixel points at the midpoints of the four sides of the traffic driving image are used as feature points, and the edge field distribution function of the traffic driving image is constructed with four feature points; and a sliding window is used to traverse each pixel point of the traffic driving image to obtain the window observation; the edge field distribution function and the window observation are combined to effectively reflect the overall image and the edge pixel conditions, that is, the driving observation, as the input of the subsequent model.

[0014] Furthermore, in S22, the expression of the edge field distribution function E of the traffic driving image is:

[0015] ;

[0016] In the formula, c represents a constant, U r Represents the R channel value of the left node, V r Indicates the R channel value of the right node, X r Indicates the R channel value of the upper node, Y r Indicates the R channel value of the next node, U g Indicates the G channel value of the left node, V g Indicates the G channel value of the right node, X g Indicates the G channel value of the previous node, Y g Indicates the G channel value of the next node, U b Indicates the B channel value of the left node, V b Indicates the B channel value of the right node, X b Indicates the B channel value of the upper node, Y b represents the B channel value of the next node, and max(·) represents the maximum value function.

[0017] Furthermore, in S23, the window observation The calculation formula is:

[0018] ;

[0019] In the formula, Indicates the R channel value of the kth pixel when the sliding window slides for the hth time. Indicates the G channel value of the kth pixel when the sliding window slides for the hth time, Indicates the B channel value of the kth pixel when the sliding window slides for the hth time. Indicates the R channel value of the kth pixel when the sliding window slides for the h+1th time. Indicates the G channel value of the kth pixel when the sliding window slides for the h+1th time. It represents the B channel value of the kth pixel when the sliding window slides for the h+1th time, K represents the number of pixels contained in each sliding of the sliding window, and H represents the number of sliding times of the sliding window.

[0020] Furthermore, in S24, the calculation formula of the driving observation quantity ε of the traffic driving image is:

[0021] ;

[0022] In the formula, Represents the window observation, and E represents the edge field distribution function of the traffic image.

[0023] Furthermore, in S3, the traffic target detection model includes a convolutional layer, a first integration layer, a second integration layer, a third integration layer, and a fully connected layer;

[0024] The input end of the convolution layer serves as the input end of the traffic target detection model; the first output end of the convolution layer is connected to the input end of the first integration layer; the output end of the first integration layer and the second output end of the convolution layer are both connected to the input end of the second integration layer; the output end of the second integration layer and the third output end of the convolution layer are both connected to the input end of the third integration layer; the output end of the third integration layer and the fourth output end of the convolution layer are both connected to the input end of the fully connected layer; the output end of the fully connected layer serves as the output end of the traffic target detection model.

[0025] The beneficial effect of the above further scheme is: in the present invention, the convolution layer is used to extract high-level features of the overall image, specifically feature mapping; after the feature mapping is extracted, the red channel value of the overall traffic driving image is processed by the activation function of the first integration layer to obtain the R channel feature of the overall traffic driving image; the green channel value of the overall traffic driving image is processed by the activation function of the second integration layer to obtain the G channel feature of the overall traffic driving image; the blue channel value of the overall traffic driving image is processed by the activation function of the third integration layer to obtain the B channel feature of the overall traffic driving image; finally, the features extracted by the third integration layer and the convolution layer are integrated through the fully connected layer to determine the final target result, that is, the objects that need to be avoided around the autonomous driving vehicle.

[0026] Furthermore, the expression of the first integration layer Z1 is:

[0027] ;

[0028] Where Z1 represents the output of the first integration layer, J represents the output of the convolutional layer, ReLU[·] represents the activation function, and M represents the number of neurons in the first integration layer. represents the R channel value of the pixel processed by the mth neuron in the first integration layer, w m The weight of the mth neuron in the first integration layer, β m The bias of the mth neuron in the first integration layer, ε represents the driving observation of the traffic driving image.

[0029] Furthermore, the expression of the second integration layer is:

[0030] ;

[0031] Where Z2 represents the output of the second integration layer, Z1 represents the output of the first integration layer, J represents the output of the convolutional layer, ReLU[·] represents the activation function, and N represents the number of neurons in the second integration layer. Represents the R channel value of the pixel processed by the nth neuron in the second integration layer, represents the G channel value of the pixel processed by the nth neuron in the second integration layer, w n The weight of the nth neuron in the second integration layer, β n The bias of the nth neuron in the second integration layer, ε represents the driving observation of the traffic driving image.

[0032] Furthermore, the expression of the third integration layer is:

[0033] ;

[0034] Where Z3 represents the output of the third integration layer, Z1 represents the output of the first integration layer, Z2 represents the output of the second integration layer, J represents the output of the convolutional layer, ReLU[·] represents the activation function, and I represents the number of neurons in the third integration layer. Represents the R channel value of the pixel processed by the i-th neuron in the third integration layer, represents the G channel value of the pixel processed by the i-th neuron in the third integration layer, represents the B channel value of the pixel processed by the i-th neuron in the third integration layer, w i The weight of the i-th neuron in the third integration layer, β i The bias of the i-th neuron in the third integration layer, ε represents the driving observation of the traffic driving image.

[0035] Furthermore, the expression of the fully connected layer L is:

[0036] ;

[0037] Where Z3 represents the output of the third integration layer, and J represents the output of the convolutional layer.

[0038] The beneficial effects of the present invention are as follows: the dynamic target detection method extracts nodes from the surrounding traffic driving images taken by the autonomous driving car, determines the field distribution function reflecting the edge features of the image through the extracted four nodes, and then uses the sliding window to determine the observation quantity of the overall traffic driving image, thereby generating the driving observation quantity of the traffic driving image; then, a traffic target detection model is constructed based on deep learning, the driving observation quantity is input into the traffic target detection model, and pixel analysis is performed in combination with the convolution layer, the integration layer and the fully connected layer to generate the final target detection result, so that the autonomous driving car can make timely avoidance processing on the target detection result, improve the safety of autonomous driving, and reduce the occurrence of traffic accidents. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 This is a flowchart of a dynamic target detection method in complex traffic scenarios based on deep learning;

[0040] Figure 2 This is the structural diagram of the traffic target detection model. DETAILED DESCRIPTION

[0041] The embodiments of the present invention are further described below in conjunction with the accompanying drawings.

[0042] like Figure 1 As shown, the present invention provides a dynamic target detection method in a complex traffic scene based on deep learning, comprising the following steps:

[0043] S1. Use the camera of the self-driving car to capture traffic images;

[0044] S2, extracting the left node, the right node, the upper node and the lower node of the traffic driving image, and extracting the driving observation quantity of the traffic driving image;

[0045] S3. Construct a traffic target detection model, use the driving observation quantity of the traffic driving image as the input of the traffic target detection model, and generate dynamic target detection results.

[0046] In this embodiment of the present invention, S2 includes the following sub-steps:

[0047] S21, taking the pixel point where the midpoint of the leftmost edge of the traffic image is located as the left node, taking the pixel point where the midpoint of the rightmost edge of the traffic image is located as the right node, taking the pixel point where the midpoint of the top edge of the traffic image is located as the upper node, and taking the pixel point where the midpoint of the bottom edge of the traffic image is located as the lower node;

[0048] S22, constructing an edge field distribution function for the traffic driving image according to the left node, the right node, the upper node, and the lower node;

[0049] S23, setting a sliding window, traversing the traffic image, and obtaining window observations;

[0050] S24. Generate driving observation quantities of the traffic driving image by using the edge field distribution function and the window observation quantities.

[0051] In the present invention, the pixel points at the midpoints of the four sides of the traffic driving image are taken as feature points, and the edge field distribution function of the traffic driving image is constructed by four feature points; and a sliding window is used to traverse each pixel point of the traffic driving image to obtain the window observation quantity; the edge field distribution function and the window observation quantity are combined to effectively reflect the overall image and the edge pixel conditions, that is, the driving observation quantity, which serves as the input of the subsequent model.

[0052] In the embodiment of the present invention, in S22, the expression of the edge field distribution function E of the traffic driving image is:

[0053] ;

[0054] In the formula, c represents a constant, U r Represents the R channel value of the left node, V r Indicates the R channel value of the right node, X r Indicates the R channel value of the upper node, Y r Indicates the R channel value of the next node, U g Indicates the G channel value of the left node, V g Indicates the G channel value of the right node, X g Indicates the G channel value of the previous node, Y g Indicates the G channel value of the next node, U b Indicates the B channel value of the left node, V b Indicates the B channel value of the right node, X b Indicates the B channel value of the upper node, Y b represents the B channel value of the next node, and max(·) represents the maximum value function.

[0055] In the embodiment of the present invention, in S23, the window observation amount The calculation formula is:

[0056] ;

[0057] In the formula, Indicates the R channel value of the kth pixel when the sliding window slides for the hth time. Indicates the G channel value of the kth pixel when the sliding window slides for the hth time, Indicates the B channel value of the kth pixel when the sliding window slides for the hth time. Indicates the R channel value of the kth pixel when the sliding window slides for the h+1th time. Indicates the G channel value of the kth pixel when the sliding window slides for the h+1th time. It represents the B channel value of the kth pixel when the sliding window slides for the h+1th time, K represents the number of pixels contained in each sliding of the sliding window, and H represents the number of sliding times of the sliding window.

[0058] In the embodiment of the present invention, in S24, the calculation formula of the driving observation quantity ε of the traffic driving image is:

[0059] ;

[0060] In the formula, Represents the window observation, and E represents the edge field distribution function of the traffic image.

[0061] In the embodiment of the present invention, Figure 2 As shown, in S3, the traffic target detection model includes a convolutional layer, a first integration layer, a second integration layer, a third integration layer and a fully connected layer;

[0062] The input end of the convolution layer serves as the input end of the traffic target detection model; the first output end of the convolution layer is connected to the input end of the first integration layer; the output end of the first integration layer and the second output end of the convolution layer are both connected to the input end of the second integration layer; the output end of the second integration layer and the third output end of the convolution layer are both connected to the input end of the third integration layer; the output end of the third integration layer and the fourth output end of the convolution layer are both connected to the input end of the fully connected layer; the output end of the fully connected layer serves as the output end of the traffic target detection model.

[0063] In the present invention, the convolution layer is used to extract high-level features of the overall image, specifically feature maps; after the feature maps are extracted, the red channel value of the overall traffic driving image is processed by the activation function of the first integration layer to obtain the R channel features of the overall traffic driving image; the green channel value of the overall traffic driving image is processed by the activation function of the second integration layer to obtain the G channel features of the overall traffic driving image; the blue channel value of the overall traffic driving image is processed by the activation function of the third integration layer to obtain the B channel features of the overall traffic driving image; finally, the features extracted by the third integration layer and the convolution layer are integrated by the fully connected layer to determine the final target result, that is, the objects that need to be avoided around the autonomous driving vehicle.

[0064] In the embodiment of the present invention, the expression of the first integration layer Z1 is:

[0065] ;

[0066] Where Z1 represents the output of the first integration layer, J represents the output of the convolutional layer, ReLU[·] represents the activation function, and M represents the number of neurons in the first integration layer. represents the R channel value of the pixel processed by the mth neuron in the first integration layer, w m The weight of the mth neuron in the first integration layer, β m The bias of the mth neuron in the first integration layer, ε represents the driving observation of the traffic driving image.

[0067] In the embodiment of the present invention, the expression of the second integration layer is:

[0068] ;

[0069] Where Z2 represents the output of the second integration layer, Z1 represents the output of the first integration layer, J represents the output of the convolutional layer, ReLU[·] represents the activation function, and N represents the number of neurons in the second integration layer. Represents the R channel value of the pixel processed by the nth neuron in the second integration layer, represents the G channel value of the pixel processed by the nth neuron in the second integration layer, w n The weight of the nth neuron in the second integration layer, β n The bias of the nth neuron in the second integration layer, ε represents the driving observation of the traffic driving image.

[0070] In the embodiment of the present invention, the expression of the third integration layer is:

[0071] ;

[0072] Where Z3 represents the output of the third integration layer, Z1 represents the output of the first integration layer, Z2 represents the output of the second integration layer, J represents the output of the convolutional layer, ReLU[·] represents the activation function, and I represents the number of neurons in the third integration layer. Represents the R channel value of the pixel processed by the i-th neuron in the third integration layer, represents the G channel value of the pixel processed by the i-th neuron in the third integration layer, represents the B channel value of the pixel processed by the i-th neuron in the third integration layer, w i The weight of the i-th neuron in the third integration layer, β i The bias of the i-th neuron in the third integration layer, ε represents the driving observation of the traffic driving image.

[0073] In this embodiment of the present invention, the expression of the fully connected layer L is:

[0074] ;

[0075] Where Z3 represents the output of the third integration layer, and J represents the output of the convolutional layer.

[0076] Those skilled in the art will appreciate that the embodiments described herein are intended to help readers understand the principles of the present invention, and should be understood that the protection scope of the present invention is not limited to such specific statements and embodiments. Those skilled in the art can make various other specific variations and combinations that do not deviate from the essence of the present invention based on the technical revelations disclosed by the present invention, and these variations and combinations are still within the protection scope of the present invention.

Claims

1. A dynamic target detection method in complex traffic scenes based on deep learning, It is characterized in that The following steps are involved: S1. Use the camera of the self-driving car to capture traffic images; S2, extracting the left node, the right node, the upper node and the lower node of the traffic driving image, and extracting the driving observation quantity of the traffic driving image; S3, constructing a traffic target detection model, taking the driving observation quantity of the traffic driving image as the input of the traffic target detection model, and generating a dynamic target detection result; The S2 comprises the following sub-steps: S21, taking the pixel point where the midpoint of the leftmost edge of the traffic image is located as the left node, taking the pixel point where the midpoint of the rightmost edge of the traffic image is located as the right node, taking the pixel point where the midpoint of the top edge of the traffic image is located as the upper node, and taking the pixel point where the midpoint of the bottom edge of the traffic image is located as the lower node; S22, constructing an edge field distribution function for the traffic driving image according to the left node, the right node, the upper node, and the lower node; S23, setting a sliding window, traversing the traffic image, and obtaining window observations; S24, generating driving observation quantities of the traffic driving image by using the edge field distribution function and the window observation quantities; In S22, the expression of the edge field distribution function E of the traffic driving image is: ; In the formula, c represents a constant, U r Represents the R channel value of the left node, V r Indicates the R channel value of the right node, X r Indicates the R channel value of the upper node, Y r Indicates the R channel value of the next node, U g Indicates the G channel value of the left node, V g Indicates the G channel value of the right node, X g Indicates the G channel value of the previous node, Y g Indicates the G channel value of the next node, U b Indicates the B channel value of the left node, V b Indicates the B channel value of the right node, X b Indicates the B channel value of the upper node, Y b represents the B channel value of the next node, and max(·) represents the maximum value function; In S23, the calculation formula of the window observation quantity γ is: ; In the formula, Indicates the R channel value of the kth pixel when the sliding window slides for the hth time. Indicates the G channel value of the kth pixel when the sliding window slides for the hth time, Indicates the B channel value of the kth pixel when the sliding window slides for the hth time. Indicates the R channel value of the kth pixel when the sliding window slides for the h+1th time. Indicates the G channel value of the kth pixel when the sliding window slides for the h+1th time. represents the B channel value of the kth pixel when the sliding window slides for the h+1th time, K represents the number of pixels included in each sliding of the sliding window, and H represents the number of sliding times of the sliding window; In S24, the calculation formula of the driving observation quantity ε of the traffic driving image is: ; Where γ represents the window observation, and E represents the edge field function of the traffic image.

2. According to claim 1, the dynamic target detection method in complex traffic scenes based on deep learning, It is characterized in that In S3, the traffic target detection model includes a convolutional layer, a first integration layer, a second integration layer, a third integration layer and a fully connected layer; The input end of the convolutional layer serves as the input end of the traffic target detection model; the first output end of the convolutional layer is connected to the input end of the first integration layer; the output end of the first integration layer and the second output end of the convolutional layer are both connected to the input end of the second integration layer; the output end of the second integration layer and the third output end of the convolutional layer are both connected to the input end of the third integration layer; the output end of the third integration layer and the fourth output end of the convolutional layer are both connected to the input end of the fully connected layer; the output end of the fully connected layer serves as the output end of the traffic target detection model.

3. According to claim 2, the dynamic target detection method in complex traffic scenes based on deep learning, It is characterized in that The first integration layer Z 1 The expression is: ; In the formula, Z 1 represents the output of the first integration layer, J represents the output of the convolutional layer, ReLU[·] represents the activation function, M represents the number of neurons in the first integration layer, represents the R channel value of the pixel processed by the mth neuron in the first integration layer, w m The weight of the mth neuron in the first integration layer, β m The bias of the mth neuron in the first integration layer, ε represents the driving observation of the traffic driving image.

4. According to claim 2, the dynamic target detection method in complex traffic scenes based on deep learning, It is characterized in that The expression of the second integration layer is: ; In the formula, Z 2 represents the output of the second integration layer, Z 1 represents the output of the first integration layer, J represents the output of the convolutional layer, ReLU[·] represents the activation function, and N represents the number of neurons in the second integration layer. Represents the R channel value of the pixel processed by the nth neuron in the second integration layer, represents the G channel value of the pixel processed by the nth neuron in the second integration layer, w n The weight of the nth neuron in the second integration layer, β n The bias of the nth neuron in the second integration layer, ε represents the driving observation of the traffic driving image.

5. According to claim 2, the dynamic target detection method in complex traffic scenes based on deep learning, It is characterized in that The expression of the third integration layer is: ; In the formula, Z 3 represents the output of the third integration layer, Z 1 represents the output of the first integration layer, Z 2 represents the output of the second integration layer, J represents the output of the convolutional layer, ReLU[·] represents the activation function, and I represents the number of neurons in the third integration layer. Represents the R channel value of the pixel processed by the i-th neuron in the third integration layer, represents the G channel value of the pixel processed by the i-th neuron in the third integration layer, represents the B channel value of the pixel processed by the i-th neuron in the third integration layer, w i The weight of the i-th neuron in the third integration layer, β i The bias of the i-th neuron in the third integration layer, ε represents the driving observation of the traffic driving image.

6. The dynamic target detection method in complex traffic scenes based on deep learning according to claim 2, It is characterized in that The expression of the fully connected layer L is: ; In the formula, Z 3 represents the output of the third integration layer, and J represents the output of the convolutional layer.

Citation Information

Cited By

  • System and method for enhancing vision-language models with scene graphs for traffic accident understanding

    US20260188019A1