Road surface recognition method, computer readable storage medium, controller and vehicle

Through the two-stage recognition method of semantic segmentation model and deep learning model, combined with the dynamics module, the problem of poor road surface recognition effect in autonomous driving is solved, and accurate recognition of multiple road types is achieved, providing an important decision-making basis for autonomous driving. .

CN118537823AActive Publication Date: 2024-08-23BYD CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410474016.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-19
Publication Date
2024-08-23
Estimated Expiration
2044-04-19

AI Technical Summary

Technical Problem

The road surface recognition method in the existing automatic driving environment perception system has poor recognition effect and less training data, making it difficult to accurately identify multiple road types.

Method used

The semantic segmentation model is used to segment the image data to be recognized, and the deep learning model is combined for two-stage recognition. The improved ResNet, RepVGG and RegNet networks are used for weighted recognition of pavement types, and the dynamics module is combined to obtain the dynamic characteristics to improve the recognition accuracy.

Benefits of technology

It achieves real-time identification of road surface types in the current scene, provides an important decision-making basis for autonomous driving, and improves the accuracy and reliability of road surface identification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118537823A
    Figure CN118537823A
Patent Text Reader

Abstract

The invention discloses a road surface recognition method, a computer readable storage medium, a controller and a vehicle. The road surface recognition method comprises the following steps: acquiring to-be-recognized image data; segmenting road surface information in the to-be-identified image data by using a semantic segmentation model to obtain segmented image data; and identifying the segmented image data by using a deep learning model to obtain a road surface type. According to the road surface recognition method, the to-be-recognized image data is segmented through the semantic segmentation model, and then the segmented image data is recognized through the deep learning model, so that the road surface type of the current scene can be recognized in real time, an important decision basis is provided for automatic driving, and meanwhile, through two-stage recognition of the road surface type, the road surface recognition efficiency is improved. And the accuracy of road surface recognition is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing technology, and in particular to a road surface recognition method, a road surface recognition device, a computer program product, a computer-readable storage medium, a controller and a vehicle. Background Art

[0002] The automatic road surface recognition function is one of the important functions in the autonomous driving environment perception system. It can automatically recognize various road surfaces through the on-board monocular camera and send the currently recognized road surface through the bus. However, the road surface recognition method in the related art has problems such as poor recognition effect and less training data. Summary of the invention

[0003] The present invention is proposed to solve at least one of the above problems. According to the first aspect of the present application, a road surface recognition method is provided, the method comprising: obtaining image data to be recognized; using a semantic segmentation model to segment road surface information in the image data to be recognized to obtain segmented image data; using a deep learning model to recognize the segmented image data to obtain a road surface type.

[0004] In one embodiment of the present application, the semantic segmentation model includes a Leaky ReLU activation function.

[0005] In one embodiment of the present application, the semantic segmentation model segments the road surface information in the image data to be identified, including: inputting the image data to be identified into the semantic segmentation model to segment the area of ​​interest including the road surface area and the area of ​​non-interest including the non-road surface area; setting the pixel value of the pixel point in the area of ​​non-interest to a preset value to obtain the segmented image data including the area of ​​interest and the area of ​​non-interest.

[0006] In one embodiment of the present application, the deep learning model includes: ACFNet model, Deeplabv3 model, and SegNet model.

[0007] In one embodiment of the present application, the deep learning model also includes: a weight distribution unit, which is connected to the ACFNet model, the Deeplabv3 model and the SegNet model respectively.

[0008] In one embodiment of the present application, an improved ResNet network is used as the backbone network of the ACFNet model, an improved RepVGG network is used as the backbone network of the Deeplabv3 model, and an improved RegNet network is used as the backbone network of the SegNet model.

[0009] In one embodiment of the present application, the improved ResNet network includes a Coordinate attention mechanism; the improved RepVGG network includes a CBAM attention mechanism; and the improved RegNet network includes a FcaNet attention mechanism.

[0010] In one embodiment of the present application, after the segmented image data is identified by the deep learning model, it also includes: using a dynamic module to obtain a second road surface type of the area corresponding to the image data to be identified; obtaining the road surface type according to the second road surface type and the first road surface type identified by the deep learning model and its proportion.

[0011] In one embodiment of the present application, the process of the deep learning model identifying the segmented image data includes: dividing the segmented image data into multiple sub-regions; identifying the sub-regions to obtain the first road surface type and its proportion corresponding to each of the sub-regions.

[0012] In one embodiment of the present application, the pavement type is obtained based on the second pavement type and the first pavement type and its proportion identified by the deep learning model, including: obtaining the second pavement type corresponding to the target sub-area, and the second pavement type of the target sub-area K moments before the dynamic module identifies it; obtaining the first pavement type and its proportion corresponding to the target sub-area, and the first pavement type and its proportion of the next sub-area corresponding to the target sub-area; obtaining the pavement type based on the obtained multiple second pavement types and multiple first pavement types.

[0013] In one embodiment of the present application, the pavement type is obtained based on the obtained multiple second pavement types and multiple first pavement types, including: weighting the proportions of the multiple first pavement types, and weighting the multiple second pavement types; and obtaining the pavement type based on the results of the two weightings.

[0014] In one embodiment of the present application, the method for obtaining the semantic segmentation model includes: acquiring first image data, the first image data including road surface areas and non-road surface areas; labeling road surfaces and non-road surfaces in the first image data to obtain a first training set; and training the semantic segmentation model using the first training set to obtain a trained semantic segmentation model.

[0015] In one embodiment of the present application, after acquiring the first image data, the training process of the semantic segmentation model further includes: deleting the first image data with repeated road surface information, and / or performing style transfer processing on the first image data to increase the amount of the first image data.

[0016] In one embodiment of the present application, in the process of training the semantic segmentation model using the first training set, data enhancement is performed on the samples in the first training set in at least one of the following ways: rotation, translation transformation, shear transformation, flipping, noise injection, color transformation, jittering, fuzzy cutting, and category mixing.

[0017] In one embodiment of the present application, the method for obtaining the deep learning model includes: obtaining second image data, the second image data comes from the recognition device itself; obtaining third image data, the third image data comes from the network; annotating the road surface in the second image data and the third image data to obtain a second training set; training the deep learning model through the second training set to obtain a trained deep learning model.

[0018] In one embodiment of the present application, the second image data and the third image data include different types of road surfaces, and the different types of road surfaces in the second image data and the third image data are labeled to obtain a second training set.

[0019] In one embodiment of the present application, the training of the deep learning model through the second training set includes: training the ACFNet model, the Deeplabv3 model, and the SegNet model respectively through the second training set; controlling the weight distribution unit to weight the results output by the ACFNet model, the Deeplabv3 model, and the SegNet model, and adjusting the weight values ​​of the ACFNet model, the Deeplabv3 model, and the SegNet model through a particle swarm optimization algorithm.

[0020] In one embodiment of the present application, before labeling the road surface in the second image data and the third image data, it also includes: preprocessing the second image data and the third image data; wherein the preprocessing is data splicing processing of the second image data and the third image data to increase the amount of the second image data and the third image data.

[0021] According to the second aspect of the present application, a road surface identification device is provided, which includes: a data acquisition module for acquiring image data to be identified; a first data processing module for segmenting road surface information in the image data to be identified to obtain segmented image data; and a second data processing module for identifying the segmented image data to obtain a first road surface type.

[0022] According to a third aspect of the present application, a computer program product is provided, comprising a computer program, wherein the computer program implements any one of the above-mentioned road surface recognition methods when executed by a processor.

[0023] According to a fourth aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, any one of the above-mentioned road surface recognition methods is implemented.

[0024] According to a fifth aspect of the present application, a controller is provided, comprising a memory, a processor and a computer program stored in the memory, wherein when the computer program is executed by the processor, any one of the above-mentioned road surface recognition methods is implemented.

[0025] According to a sixth aspect of the present application, a vehicle is provided, comprising: the above-mentioned controller.

[0026] According to the road surface recognition method, device, computer program product, computer-readable storage medium, controller and vehicle provided in the embodiments of the present application, the road surface recognition method of the present application segments the image data to be recognized through a semantic segmentation model, and then recognizes the segmented image data through a deep learning model. It can recognize the road surface type of the current scene in real time, providing an important decision-making basis for autonomous driving. At the same time, the accuracy of road surface recognition is improved by identifying the road surface type in two stages. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0028] Figure 1 A schematic diagram of a process flow of a road surface recognition method provided by an embodiment of the present invention;

[0029] Figure 2 A schematic diagram of the structure of a deep learning model provided by an embodiment of the present invention;

[0030] Figure 3 A schematic diagram of sub-region segmentation provided by an embodiment of the present invention;

[0031] Figure 4 A schematic diagram of the structure of a road surface recognition device provided by an embodiment of the present invention;

[0032] Figure 5 A schematic diagram of the structure of a controller provided by an embodiment of the present invention;

[0033] Figure 6A schematic structural diagram of a vehicle provided in one embodiment of the present invention. DETAILED DESCRIPTION

[0034] In order to make the purpose, technical scheme and advantages of the present invention more obvious, the exemplary embodiments according to the present invention will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments of the present invention, and it should be understood that the present invention is not limited to the exemplary embodiments described herein. Based on the embodiments of the present invention described in the present invention, all other embodiments obtained by those skilled in the art without creative work should fall within the protection scope of the present invention.

[0035] In the following description, a large number of specific details are provided to provide a more thorough understanding of the present invention. However, it is apparent to those skilled in the art that the present invention can be implemented without one or more of these details. In other examples, in order to avoid confusion with the present invention, some technical features well known in the art are not described.

[0036] It should be understood that the present invention can be implemented in different forms and should not be interpreted as limited to the embodiments set forth herein. On the contrary, these embodiments are provided to make the disclosure thorough and complete and to fully convey the scope of the present invention to those skilled in the art.

[0037] In order to fully understand the present invention, a detailed structure will be proposed in the following description to illustrate the technical solution proposed by the present invention. The optional embodiments of the present invention are described in detail as follows, but in addition to these detailed descriptions, the present invention may also have other implementations.

[0038] Some embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0039] The first aspect of the present application provides a road surface recognition method, such as Figure 1 As shown, the road surface recognition method includes:

[0040] S1, obtaining image data to be recognized.

[0041] It should be noted that the image data to be identified in the current scene can be collected by the on-board camera. The on-board camera is used as an image sensor to collect real-time images of the road in front of the vehicle, and the collection frequency is more than 10 frames per second. Among them, the real-time image collected by the on-board camera is in YUV format, and the real-time image is converted into a three-channel RGB image.

[0042] As an example, the vehicle-mounted camera may be a monocular camera.

[0043] S2, using the semantic segmentation model to segment the road surface information in the image data to be identified, to obtain segmented image data.

[0044] It should be noted that semantic segmentation is a pixel-level classification task that can separate different information in an image.

[0045] S3, using the deep learning model to identify the segmented image data and obtain the road surface type.

[0046] As an example, the road surface types may be classified into mud, sand, snow, grass, and normal road.

[0047] It should be noted that the road surface type recognition results can be used for assisted driving and can be displayed on a dedicated real-life device for manual inspection when necessary.

[0048] The road surface recognition method of the embodiment of the present invention segments the image data to be recognized through a semantic segmentation model, and then recognizes the segmented image data through a deep learning model. It can recognize the road surface type of the current scene in real time, providing an important decision-making basis for autonomous driving. At the same time, the accuracy of road surface recognition is improved by identifying the road surface type in two stages.

[0049] In some embodiments, the semantic segmentation model includes a Leaky ReLU activation function.

[0050] Specifically, the semantic segmentation model is an improved UNet (U-type) network; the improved UNet network includes an encoding part, the encoding part includes a hole convolution layer, a stripe pooling layer and an activation layer, and the activation layer samples a Leaky ReLU (Leaky Rectified Linear Unit) activation function.

[0051] As an example, the 3×3 convolution in the UNet network can be replaced with a dilated convolution with a kernel of 5 and a dilation rate of 2, the maximum pooling layer can be replaced with a striped pooling layer, and the ReLU activation function can be replaced with a Leaky ReLU activation function to obtain an improved UNet network.

[0052] It should be noted that after replacing the 3×3 convolution in the UNet network with the dilated convolution, the input and output sizes of the model need to be adjusted to ensure that the feature map size after the dilated convolution operation is consistent with the original UNet network. After replacing the maximum pooling layer with the stripe pooling layer, the input and output sizes of each layer after the stripe pooling layer need to be adjusted to adapt to the feature map after the stripe pooling.

[0053] In this embodiment, the semantic segmentation model can have a larger receptive field through the hole convolution layer. Stripe pooling is a long strip pooling kernel deployed along a spatial dimension. By using the stripe pooling layer, the long-distance relationship of isolated areas can be captured, and a narrow kernel shape is maintained in other spatial dimensions, which is convenient for capturing local context and preventing irrelevant areas from interfering with label prediction. In the back propagation process, for the part where the input of the Leaky ReLU activation function is less than zero, the gradient can also be calculated (instead of the ReLU (Rectified Linear Unit) activation function, when the input is less than zero, the output is always 0), which can avoid the jagged problem in the gradient direction.

[0054] In some embodiments, the semantic segmentation model segments the road surface information in the image data to be identified, including:

[0055] S211, inputting the image data to be recognized into a semantic segmentation model to segment an area of ​​interest including a road surface area and an area of ​​non-interest including a non-road surface area.

[0056] As an example, the semantic segmentation model can first obtain initial segmented image data, where each pixel in the initial segmented image data corresponds to a label, including road surface and non-road surface; the pixel points labeled as road surface in the initial segmented image data form a ROI (Region of Interest) area, and the pixel points labeled as non-road surface form a non-ROI area.

[0057] S212, setting the pixel values ​​of the pixels in the non-interest region to preset values, and obtaining segmented image data including the interest region and the non-interest region.

[0058] As an example, the preset value may be 0, so that the segmented image data includes a road surface information area and a black area.

[0059] In this embodiment, the image data to be identified is segmented by a semantic segmentation model, so that the image data to be identified only contains road surface information, without manual processing, which is suitable for processing large-scale image data. At the same time, it can reduce the interference of the deep learning model on the road type identification and improve the accuracy of identification. It avoids the situation that the surrounding green trees are identified as grass and the white truck compartment is identified as snow when the road type is identified later.

[0060] In some embodiments, Figure 2As shown, the deep learning models include: ACFNet (Adaptive UnimodalCost Volume Filtering Network) model, Deeplabv3 model, and SegNet (Segmentation Network) model.

[0061] Specifically, the deep learning model also includes: a weight distribution unit, and the weight distribution unit is connected to the ACFNet model, the Deeplabv3 model and the SegNet model respectively.

[0062] It should be noted that the ACFNet model, Deeplabv3 model and SegNet model are deep learning semantic segmentation models that have good classification performance on the ImageNet dataset. The weight allocation unit can dynamically adjust the weights of the ACFNet model, Deeplabv3 model and SegNet model according to their performance and data characteristics. By reasonably allocating weights, the advantages of each model can be fully utilized to improve the overall performance of the model.

[0063] More specifically, the improved ResNet (Residual Network) network is used as the backbone network of the ACFNet model, the improved RepVGG (Re-parameterization VGG Network) network is used as the backbone network of the Deeplabv3 model, and the improved RegNet (Regularized Network) network is used as the backbone network of the SegNet model.

[0064] It should be noted that the ResNet network, RepVGG network and RegNet network are a kind of deep learning image classification network.

[0065] More specifically, the improved ResNet network includes a Coordinate attention mechanism; the improved RepVGG network includes a CBAM (Convolutional Block Attention Module) attention mechanism; and the improved RegNet network includes a FcaNet (Frequency Channel Attention Networks) attention mechanism.

[0066] As an example, the improved ResNet network is specifically: adding the Coordinate attention mechanism to the ResNet network; the improved RepVGG network is specifically: adding the CBAM attention mechanism to the RepVGG network; the improved RegNet network is specifically: adding the FcaNet attention mechanism to the RegNet network.

[0067] As another example, the Coordinate attention mechanism can be added between the third and fourth convolutional layers in the ResNet network. The CBAM attention mechanism can be added to the output stage of the RepVGG network. The FcaNet attention mechanism can be added to each stage in the RegNet network.

[0068] In this embodiment, by adding the Coordinate attention mechanism to the ResNet network, the position information can be used to enhance the expressiveness of the features, thereby improving the segmentation accuracy. By adding the CBAM attention mechanism to the RepVGG network, the overall performance of the deep learning model can be further improved. By adding the FcaNet attention mechanism to the RegNet network, the deep learning model can be strengthened to focus on key information and improve the segmentation effect.

[0069] In some embodiments, after the segmented image data is identified using a deep learning model, the method further includes:

[0070] S41, using a dynamics module to obtain a second road surface type of an area corresponding to the image data to be identified.

[0071] It should be noted that the dynamics module can be a component on the vehicle that can detect and analyze road conditions in real time. The vehicle's dynamics module can identify the type of road surface under the wheel based on the dynamic effects of the wheel contacting the road surface. However, actual measurement results show that the identification result may have a certain error.

[0072] As an example, the dynamics module infers the road surface type of the current road surface based on the vehicle's dynamic characteristics, such as acceleration, speed, friction coefficient between tires and road surface, etc., combined with prior knowledge. The above dynamic characteristics can be obtained in real time through on-board sensors, such as acceleration sensors, speed sensors, and tire pressure sensors.

[0073] S42, obtaining a road surface type according to the second road surface type and the first road surface type identified by the deep learning model and its proportion.

[0074] In this embodiment, a dynamics module with real-time perception capability is added to comprehensively judge the road surface type, thereby improving the accuracy and reliability of road surface type recognition.

[0075] In some embodiments, the process of the deep learning model identifying the segmented image data includes:

[0076] S4211, dividing the segmented image data into a plurality of sub-regions.

[0077] like Figure 3 As shown, the segmented image data can be divided into four sub-areas (area A, area B, area C and area D), wherein the areas of the four sub-areas are equal, area A represents the area near the left wheel of the vehicle, area B represents the area near the right wheel of the vehicle, area C represents the area far from the left wheel of the vehicle, and area D represents the area far from the right wheel of the vehicle.

[0078] S4212, identifying the sub-regions to obtain the first road surface type and its proportion corresponding to each sub-region.

[0079] As an example, the first road type corresponding to the sub-area may be the proportion of multiple road types, such as: snow - 0%, mud - 25%, grass - 47%, sand - 12%, ordinary road - 0%, non-road - 16%.

[0080] Specifically, the road surface type is obtained according to the second road surface type and the first road surface type and its proportion identified by the deep learning model, including:

[0081] S4221, obtaining the second road surface type corresponding to the target sub-region, and the second road surface type of the target sub-region K moments before the dynamics module identifies it.

[0082] As an example, K may be 2, ie, the number of the second road surface types is 3.

[0083] S4222, obtaining a first road surface type and a proportion corresponding to the target sub-region, and a first road surface type and a proportion of a next sub-region corresponding to the target sub-region.

[0084] It should be noted that see Figure 3 , if the target sub-region is region A, then the next sub-region corresponding to the target sub-region is region C.

[0085] S4223, obtaining a road surface type based on the obtained multiple second road surface types and multiple first road surface types.

[0086] More specifically, obtaining a road surface type according to the obtained plurality of second road surface types and the obtained plurality of first road surface types includes:

[0087] S42231, weighting the proportions of multiple first road surface types, and weighting multiple second road surface types.

[0088] As an example, when K is 2, the road surface type of the target sub-area identified by the dynamics module at the current moment and the road surface type identified at the previous two moments corresponding to the current moment are obtained. The weight coefficients corresponding to the current moment, the previous moment, and the previous moment are recorded as a, b, and c. For example, a can be 0.5, b can be 0.3, and c can be 0.2. Weighting multiple second road surface types means that the three obtained second road surface types are assigned weight coefficients a, b, and c respectively.

[0089] As another example, taking the target sub-area as area A, the weight coefficient corresponding to area A can be recorded as weight coefficient 1, and the weight coefficient corresponding to area C can be recorded as weight coefficient 2. For example, weight coefficient 1 is 0.6, and weight coefficient 2 is 0.4. Weighting the proportions of multiple first road surface types means that the two obtained first road surface types are assigned weight coefficients 1 and weight coefficients 2 respectively.

[0090] It should be noted that the sum of the multiple weight coefficients corresponding to the multiple second road surface types is 1, and the sum of the multiple weight coefficients corresponding to the multiple first road surface types is also 1.

[0091] S42232: Obtain the road surface type based on the results of the two weightings.

[0092] As an example, the weight coefficients of the same road surface type in the two weighted results are added together, and the road surface type with the largest weight coefficient is selected as the final output result. For example, the weighted results of multiple second road surface types are 0.5 for snow, 0.3 for snow, and 0.2 for ordinary road surface; the weighted results of the proportions of multiple first road surface types are 0.6 for snow and 0.4 for ordinary road surface. It can be obtained that snow is 1.4, ordinary road surface is 0.6, mud is 0, sand is 0, and grass is 0. Therefore, the road surface type output at this moment is snow.

[0093] As an example, the vehicle's arbitration module may calculate the results of the two weightings to obtain the final road surface type.

[0094] In this embodiment, the road surface type is obtained by analyzing a plurality of second road surface types and a plurality of first road surface types, which can improve the accuracy of road surface recognition.

[0095] In some embodiments, the semantic segmentation model is obtained by:

[0096] S221, acquiring first image data, where the first image data includes a road surface area and a non-road surface area.

[0097] It should be noted that the first image data can be collected by a vehicle-mounted camera and / or a handheld camera, and the first image data should cover various road types, lighting conditions, weather conditions, etc. as much as possible to ensure the generalization ability of the semantic segmentation model.

[0098] S222: Label the road surface and non-road surface in the first image data to obtain a first training set.

[0099] As an example, the first image data may be annotated by manual annotation, so that the first training set includes a plurality of first image data with labels.

[0100] S223, training the semantic segmentation model using the first training set to obtain a trained semantic segmentation model.

[0101] As an example, the training process of a semantic segmentation model may include the steps of forward propagation, loss calculation, back propagation, and weight update. Through multiple iterations, the semantic segmentation model gradually learns the ability to extract road area features from input image data and continuously optimizes its parameters to reduce prediction errors.

[0102] In this embodiment, the semantic segmentation model is trained by using the first image data collected by the vehicle-mounted camera and / or the handheld camera, so that the generalization ability of the semantic segmentation model can be improved.

[0103] In some embodiments, after acquiring the first image data, the training process of the semantic segmentation model further includes:

[0104] The first image data with repeated road surface information is deleted, and / or the first image data is subjected to style transfer processing to increase the amount of the first image data.

[0105] As an example, since the first image data can be obtained under different weather and lighting conditions, style transfer can be performed through the Paint Transformer method, so that the first image data can be presented under multiple weather and lighting conditions.

[0106] As another example, for a smooth ordinary road surface on a highway, since the amount of samples collected is large and the features are similar, only a part of them can be retained.

[0107] In this embodiment, by deleting the first image data with repeated road information, data redundancy can be reduced and the training efficiency of the model can be improved. Since the road surface and the non-road surface have different characteristics, the weather and lighting conditions will not affect the road surface recognition. Therefore, collecting the first image data under different weather and lighting conditions helps to improve the richness of the samples, so that the trained semantic segmentation model has better generalization performance. At the same time, through style transfer, the cost of data collection is reduced.

[0108] In some embodiments, in the process of training the semantic segmentation model using the first training set, data enhancement is performed on the samples in the first training set by at least one of the following methods:

[0109] Rotation, translation, shearing, flipping, noise injection, color conversion, dithering, fuzzy cutting, category mixing.

[0110] It should be noted that the samples in the first training set are first image data with labels.

[0111] In this embodiment, data enhancement is performed on the samples in the first training set by using a variety of data enhancement methods, so as to improve the overall performance of the trained semantic segmentation model.

[0112] In some embodiments, the deep learning model is obtained by:

[0113] S31, acquiring second image data, where the second image data comes from the recognition device itself.

[0114] It should be noted that the recognition device itself can be a vehicle-mounted camera, and the second image data should cover various road types, lighting conditions, weather conditions, etc. as much as possible to ensure the generalization ability of the deep learning model.

[0115] S32, obtaining third image data, where the third image data comes from a network.

[0116] It should be noted that the third image data may be image data that is already available on a public network and includes a road surface.

[0117] As an example, the second image data and the third image data may be unified in format and size through a Resize method.

[0118] Specifically, the second image data and the third image data include different types of road surfaces, and the different types of road surfaces in the second image data and the third image data are labeled to obtain a second training set.

[0119] S33: annotate the road surface in the second image data and the third image data to obtain a second training set.

[0120] As an example, the second image data and the third image data may be annotated by manual annotation.

[0121] The manual labeling is to set the pixel values ​​of the non-road area in the second image data and the third image data to 0. The mud, sand, snow, grass, and ordinary road are labeled in red, yellow, blue, green, and gray, respectively.

[0122] S34, training the deep learning model using the second training set to obtain a trained deep learning model.

[0123] As an example, the training process of a deep learning model may include the steps of forward propagation, loss calculation, back propagation, and weight update. Through multiple iterations, the deep learning model gradually learns the ability to identify the road type from the input image data and continuously optimizes its parameters to reduce the prediction error.

[0124] In this embodiment, the deep learning model is trained by the second image data and the third image data, so as to improve the accuracy of the deep learning model in identifying the road type.

[0125] In some embodiments, training the deep learning model using the second training set includes:

[0126] S341, train the ACFNet model, Deeplabv3 model, and SegNet model respectively through the second training set.

[0127] As an example, for the ACFNet model, the second training set is used for training, the output prediction results are calculated through forward propagation, and then compared with the true label, and the loss function is calculated. According to the value of the loss function, the weight parameters of the ACFNet model are updated using the back propagation algorithm to optimize the performance of the ACFNet model. For the Deeplabv3 model, the training process is similar to that of the ACFNet model. The weight parameters of the Deeplabv3 model are updated through forward propagation and back propagation to improve the Deeplabv3 model's ability to segment the road area. For the SegNet model, the second training set is also used for training. By continuously iterating and optimizing the weight parameters of the SegNet model, the SegNet model can better identify the road type.

[0128] S342, controlling the weight distribution unit to weight the output results of the ACFNet model, the Deeplabv3 model and the SegNet model, and adjusting the weight values ​​of the ACFNet model, the Deeplabv3 model and the SegNet model through the particle swarm optimization algorithm.

[0129] It should be noted that the sum of the weight values ​​of the ACFNet model, Deeplabv3 model, and SegNet model is 1. The weight value determines the contribution of the ACFNet model, Deeplabv3 model, and SegNet model to the final deep learning type recognition result.

[0130] It is worth mentioning that the weight allocation unit finds an optimal combination of weight values ​​so that the output results of the ACFNet model, Deeplabv3 model and SegNet model can be most effectively integrated.

[0131] In this embodiment, by weighting the results output by the ACFNet model, the Deeplabv3 model, and the SegNet model, the recognition accuracy and stability of the deep learning model can be improved.

[0132] In some embodiments, before labeling the road surface in the second image data and the third image data, the method further includes: pre-processing the second image data and the third image data.

[0133] The preprocessing is to perform data splicing processing on the second image data and the third image data to increase the amount of the second image data and the third image data.

[0134] As an example, data splicing can be performed by top-bottom splicing, left-right splicing, and Cutmix. These splicing methods can make the features of the samples present different aspect ratios when they are input into the deep learning model.

[0135] In addition, the present application also provides a road surface recognition device, such as Figure 4 As shown, the road surface recognition device includes:

[0136] The data acquisition module 201 is used to acquire image data to be identified.

[0137] It should be noted that the image data to be recognized in the current scene can be collected by the vehicle-mounted camera, which is used as an image sensor to collect real-time images of the road surface in front of the vehicle. The real-time image can be a three-channel RGB image.

[0138] As an example, the vehicle-mounted camera may be a monocular camera.

[0139] The first data processing module 202 is used to segment the road surface information in the image data to be identified to obtain segmented image data.

[0140] The second data processing module 203 is used to identify the segmented image data to obtain the first road surface type.

[0141] The road surface recognition device of the embodiment of the present invention can recognize the road surface type of the current scene in real time, providing an important decision-making basis for automatic driving. At the same time, the road surface type is recognized in two stages, thereby improving the accuracy of road surface recognition.

[0142] In addition, the present application also provides a computer program product, including a computer program, which implements the above-mentioned road surface recognition method when executed by a processor.

[0143] The computer program product of the embodiment of the present invention can identify the road type of the current scene in real time by implementing the road surface recognition method, thereby providing an important decision-making basis for autonomous driving. At the same time, the accuracy of road surface recognition is improved by identifying the road surface type in two stages.

[0144] In addition, the present application also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the above-mentioned road surface recognition method is implemented.

[0145] The computer-readable storage medium of the embodiment of the present invention can identify the road type of the current scene in real time by implementing the road surface recognition method, thereby providing an important decision-making basis for autonomous driving. At the same time, the accuracy of road surface recognition is improved by identifying the road surface type in two stages.

[0146] In addition, the present application also provides a controller, such as Figure 5 As shown, the controller 100 includes: a memory 101, a processor 102 and a computer program stored in the memory 101. The memory 101 and the processor 102 are connected, such as through a bus 103. Optionally, the controller 100 may also include a transceiver 104. When the computer program is executed by the processor 102, the above-mentioned road surface recognition method is implemented. It should be noted that in actual applications, the transceiver 104 is not limited to one, and the structure of the controller 100 does not constitute a limitation on the embodiments of the present invention.

[0147] The processor 102 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of the present invention. The processor 102 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0148] The bus 103 may include a path to transmit information between the above components. The bus 103 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 103 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0149] The memory 101 is used to store a computer program corresponding to the road surface recognition method of the above embodiment of the present invention, and the computer program is controlled and executed by the processor 102. The processor 102 is used to execute the computer program stored in the memory 101 to implement the content shown in the above road surface recognition method embodiment.

[0150] The controller 100 includes but is not limited to: a mobile terminal such as a PDA (personal digital assistant), a PAD (tablet computer), etc. Figure 5 The controller 100 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0151] The controller 100 of the embodiment of the present invention segments the image data to be identified through a semantic segmentation model, and then identifies the segmented image data through a deep learning model. It can identify the road type of the current scene in real time, providing an important decision-making basis for autonomous driving. At the same time, the accuracy of road surface identification is improved by identifying the road type in two stages.

[0152] In addition, the present application also provides a vehicle, such as Figure 6 As shown, the vehicle 10 includes the controller 100 described above.

[0153] The vehicle 10 of the embodiment of the present invention can identify the road type of the current scene in real time through the configured controller 100, providing an important decision-making basis for automatic driving. At the same time, the accuracy of road surface recognition is improved by identifying the road type in two stages.

[0154] Although example embodiments have been described herein with reference to the accompanying drawings, it should be understood that the above example embodiments are merely exemplary and are not intended to limit the scope of the present application to this. Those of ordinary skill in the art may make various changes and modifications therein without departing from the scope and spirit of the present application. All these changes and modifications are intended to be included within the scope of the present application as required by the appended claims.

[0155] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0156] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed.

[0157] In the description provided herein, a large number of specific details are described. However, it is understood that the embodiments of the present application can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.

[0158] Similarly, it should be understood that in order to streamline the present application and help understand one or more of the various inventive aspects, in the description of the exemplary embodiments of the present application, the various features of the present application are sometimes grouped together into a single embodiment, figure, or description thereof. However, the method of the present application should not be interpreted as reflecting the following intention: the claimed application requires more features than the features clearly stated in each claim. More specifically, as reflected in the corresponding claims, the inventive point is that the corresponding technical problem can be solved with features less than all the features of a single disclosed embodiment. Therefore, the claims following the specific embodiment are hereby explicitly incorporated into the specific embodiment, wherein each claim itself serves as a separate embodiment of the present application.

[0159] It will be understood by those skilled in the art that, except for mutually exclusive features, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this specification may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature that provides the same, equivalent or similar purpose.

[0160] In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present application and form different embodiments. For example, in the claims, any one of the claimed embodiments may be used in any combination.

[0161] The various component embodiments of the present application can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) can be used in practice to implement some or all functions of some modules according to the embodiments of the present application. The application can also be implemented as a device program (e.g., computer program and computer program product) for executing a part or all of the methods described herein. Such a program implementing the present application can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.

[0162] It should be noted that the above embodiments illustrate the present application rather than limit the present application, and that those skilled in the art may design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets should not be constructed as a limitation to the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of multiple such elements. The present application may be implemented by means of hardware including several different elements and by means of a suitably programmed computer. In a unit claim that lists several devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names.

[0163] The above is only a specific implementation or description of a specific implementation of the present application, and the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. The protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A road surface recognition method, characterized in that: The method comprises: Obtaining image data to be recognized; Using a semantic segmentation model to segment the road surface information in the image data to be identified, to obtain segmented image data; The segmented image data is identified using a deep learning model to obtain a first road surface type.

2. The road surface recognition method according to claim 1, characterized in that: The semantic segmentation model includes a LeakyReLU activation function.

3. The road surface recognition method according to claim 1, characterized in that: The semantic segmentation model segments the road surface information in the image data to be identified, including: Inputting the image data to be identified into a semantic segmentation model to segment an area of ​​interest including a road surface area and an area of ​​non-interest including a non-road surface area; The pixel values ​​of the pixels in the non-interest region are set to preset values ​​to obtain the segmented image data including the interest region and the non-interest region.

4. The road surface recognition method according to claim 1, characterized in that: The deep learning models include: ACFNet model, Deeplabv3 model, and SegNet model.

5. The road surface recognition method according to claim 4, characterized in that: The deep learning model also includes: a weight distribution unit, which is connected to the ACFNet model, the Deeplabv3 model and the SegNet model respectively.

6. The road surface recognition method according to claim 4, characterized in that: The improved ResNet network is used as the backbone network of the ACFNet model, the improved RepVGG network is used as the backbone network of the Deeplabv3 model, and the improved RegNet network is used as the backbone network of the SegNet model.

7. The road surface recognition method according to claim 6, characterized in that: The improved ResNet network includes a Coordinate attention mechanism; The improved RepVGG network includes a CBAM attention mechanism; The improved RegNet network includes the FcaNet attention mechanism.

8. The road surface recognition method according to claim 1, characterized in that: After the segmented image data is identified by using the deep learning model, the method further includes: Using a dynamics module to obtain a second road surface type of the area corresponding to the image data to be identified; The road surface type is obtained according to the second road surface type and the first road surface type identified by the deep learning model and its proportion.

9. The road surface recognition method according to claim 8, characterized in that: The process of the deep learning model identifying the segmented image data includes: Dividing the segmented image data into a plurality of sub-regions; The sub-areas are identified to obtain the first road surface type and the proportion thereof corresponding to each of the sub-areas.

10. The road surface recognition method according to claim 9, characterized in that: The obtaining of the road surface type according to the second road surface type and the first road surface type identified by the deep learning model and its proportion includes: Acquire a second road surface type corresponding to the target sub-region, and the dynamics module identifies the second road surface type of the target sub-region K moments before; Acquire a first road surface type and a proportion corresponding to a target sub-region, and a first road surface type and a proportion of a next sub-region corresponding to the target sub-region; The road surface type is obtained according to the obtained plurality of the second road surface types and the obtained plurality of the first road surface types.

11. The road surface recognition method according to claim 10, characterized in that: The step of obtaining the road surface type according to the obtained plurality of the second road surface types and the obtained plurality of the first road surface types comprises: Weighting the proportions of a plurality of the first road surface types, and weighting a plurality of the second road surface types; According to the results of the two weightings, the road surface type is obtained.

12. The road surface recognition method according to claim 1, characterized in that:The method of obtaining the semantic segmentation model includes: Acquire first image data, wherein the first image data includes a road surface area and a non-road surface area; Annotate the road surface and non-road surface in the first image data to obtain a first training set; The semantic segmentation model is trained using the first training set to obtain a trained semantic segmentation model.

13. The road surface recognition method according to claim 12, characterized in that: After acquiring the first image data, the training process of the semantic segmentation model further includes: The first image data with repeated road surface information is deleted, and / or the first image data is subjected to style transfer processing to increase the amount of the first image data.

14. The road surface recognition method according to claim 12, characterized in that: In the process of training the semantic segmentation model using the first training set, data enhancement is performed on samples in the first training set by at least one of the following methods: Rotation, translation, shearing, flipping, noise injection, color conversion, dithering, fuzzy cutting, category mixing.

15. The road surface recognition method according to claim 5, characterized in that: The deep learning model is obtained by: Acquire second image data, where the second image data comes from the recognition device itself; Acquire third image data, where the third image data comes from a network; Annotating the road surface in the second image data and the third image data to obtain a second training set; The deep learning model is trained using the second training set to obtain a trained deep learning model.

16. The road surface recognition method according to claim 15, characterized in that: The second image data and the third image data include different types of road surfaces. The different types of road surfaces in the second image data and the third image data are labeled to obtain a second training set.

17. The road surface recognition method according to claim 15, characterized in that: The training of the deep learning model by using the second training set includes: The ACFNet model, the Deeplabv3 model, and the SegNet model are trained respectively by using the second training set; The weight distribution unit is controlled to weight the output results of the ACFNet model, the Deeplabv3 model and the SegNet model, and the weight values ​​of the ACFNet model, the Deeplabv3 model and the SegNet model are adjusted through a particle swarm optimization algorithm.

18. The road surface recognition method according to claim 15, characterized in that: Before marking the road surface in the second image data and the third image data, the method further includes: Preprocessing the second image data and the third image data; The preprocessing is to perform data splicing processing on the second image data and the third image data to increase the amount of the second image data and the third image data.

19. A road surface recognition device, characterized in that: The device comprises: A data acquisition module, used for acquiring image data to be identified; A first data processing module, used for segmenting the road surface information in the image data to be identified to obtain segmented image data; The second data processing module is used to identify the segmented image data to obtain a first road surface type.

20. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the computer program implements the road surface recognition method according to any one of claims 1 to 18.

21. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the road surface recognition method according to any one of claims 1-18 is implemented.

22. A controller comprising a memory, a processor and a computer program stored in the memory, characterized in that: When the computer program is executed by the processor, the road surface recognition method according to any one of claims 1-18 is implemented.

23. A vehicle, characterized in that: Comprising the controller as claimed in claim 22.

Citation Information

Patent Citations

  • Intelligent driving road surface recognition method and device, electronic equipment and storage medium

    CN116665172A

  • Method for estimating road adhesion coefficient in road passable area based on machine vision and electronic equipment

    CN116811890A

  • Concrete pavement crack identification method based on deep learning and storage medium

    CN116912257A

  • Road condition detection method, electronic equipment and storage medium

    CN117218622A

  • Roadway surrounding rock fracture identification method based on semantic segmentation and joint loss function

    CN117809177A