Road surface unevenness classification method based on improved OfficientNet model

By introducing the combination of multispectral attention module and DenseNet network in the EfficientNet model, the problem of low accuracy of road surface roughness classification is solved, the classification accuracy and resistance to uncertainty factors are improved, and a more efficient road surface is achieved. Unevenness information extraction.

CN118762229APending Publication Date: 2024-10-11ZHEJIANG SCI-TECH UNIV +1
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202411057287.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-02
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

Existing road surface roughness classification methods have low accuracy, especially in fine-grained image classification and in the face of weather and lighting uncertainty factors. They lack feature diversity, and the traditional EfficientNet model is not enough to provide high efficiency and accuracy.

Method used

The multispectral attention FCA module is introduced in the EfficientNet model to replace the squeeze-excitation SE module, and is combined with the DenseNet network to enhance feature extraction capabilities through multi-modal bilinear pooling operations and improve the accuracy of road unevenness classification.

Benefits of technology

It improves the accuracy and generalization ability of road surface roughness classification, enhances the ability to extract road surface roughness information, and reduces the impact of noise introduced by factors such as lighting and weather.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118762229A_ABST
    Figure CN118762229A_ABST
Patent Text Reader

Abstract

The invention discloses a pavement state classification method based on an improved OfficientNet model, and the method comprises the following steps: 1, constructing an original image data set, and carrying out the marking and classification; step 2, establishing a road surface unevenness classification model based on the improved EfficientNet; 3, defining a loss function and carrying out model training; and step 4, carrying out classification analysis on the actual pavement unevenness according to the training model. The invention provides a pavement state classification method based on an improved OfficientNet model, and the method comprises the steps: introducing a multispectral attention FCA module into the structure of an existing OfficientNet model to replace a design thought of an extrusion-excitation SE module, so as to enhance the extraction of pavement unevenness information; according to the method, the improved EffentNet network and the DenseNet network are fused by using the multi-mode bilinear pooling MBP operation, and the feature extraction capability of the model is enhanced, so that the accuracy of the traditional EffentNet model for road surface unevenness classification is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of road surface roughness recognition, and in particular relates to a road surface roughness classification method based on an improved EfficientNet model. Background Art

[0002] Road roughness describes the relative difference between different roads, which is used to distinguish road surface grades. Accurately identifying road surface information is a necessary condition for improving suspension control performance. Road roughness identification technology can be divided into three categories: contact measurement, non-contact measurement, and system response-based methods. Contact measurement has high measurement accuracy under low-speed conditions, but it requires the installation of an independently operated road roughness meter, which is expensive and has poor real-time performance. The system response-based method is based on the vehicle model and constructs the relationship between vehicle response and road surface to identify road roughness. It has good real-time performance, but there is a problem of response lag in sudden change sections. With the rapid development of computer computing, machine learning, and deep learning technologies, non-contact measurement methods have received more and more attention. Patent No. 202410080457.1 proposes a road surface roughness classification method based on the YOLO v5 model. This method achieves a high accuracy in road surface roughness classification by training the YOLO v5 model. Patent No. 202111224179.5 proposes a road surface roughness detection method based on machine learning. This method extracts road surface feature vectors through binocular stereo vision sensors and obtains road surface roughness classification results through machine learning. The above methods can effectively realize road surface roughness classification, but in actual application, due to the small difference in road surface roughness, there may be problems such as low recognition accuracy and lack of feature diversity.

[0003] The EfficientNet model optimizes the model structure by combining network depth, width and resolution. While maintaining model performance, it can significantly reduce the number of parameters and the amount of computation, improve the reuse of features, and have higher flexibility and generalization ability. It is considered to have great development potential in road condition classification applications. However, since the Sequeeze and Excitation (SE) module used in the traditional EfficientNet model cannot capture rich input pattern information well, it lacks feature diversity when processing different inputs. In addition, road roughness classification is a fine-grained image classification scenario, the image morphology of adjacent roughness levels is small, and the classification accuracy is also affected by uncertain factors such as weather and lighting, which has great technical difficulty. At present, there is no relevant research on implementing road roughness classification based on the EfficientNet model. The reason should be that the traditional EfficientNet model is not enough to provide high efficiency and accuracy. Therefore, it is of great research significance to design a road roughness classification method based on the improved EfficientNet model. Summary of the invention

[0004] Aiming at the problem of low accuracy of road surface roughness classification methods in the prior art, the present invention proposes a road surface state classification method based on an improved EfficientNet model, focusing on the technical difficulties that the squeeze-excitation SE module of the existing EfficientNet model lacks feature diversity in processing input information and the low accuracy of the EfficientNet model in classifying fine-grained images, and proposes a design idea of ​​introducing a multi-spectral attention FCA (Frequency Channel Attention) module into the structure of the existing EfficientNet model to replace the squeeze-excitation SE module to enhance the extraction of road surface roughness information; and uses a multimodal bilinear pooling MBP (Multimodal Bilinear Pooling) operation to fuse the improved EfficentNet network with a DenseNet network (densely connected convolutional network) to enhance the feature extraction capability of the model, thereby improving the accuracy of the traditional EfficientNet model for road surface roughness classification.

[0005] The technical solution adopted by the present invention to solve the technical problem is:

[0006] A road condition classification method based on an improved EfficientNet model includes the following steps:

[0007] Step 1: Build the original image dataset and label the classification;

[0008] Step 2: Establish a road roughness classification model based on the improved EfficientNet:

[0009] Based on the original EfficientNet network, the squeeze-excitation SE module is replaced with a multi-spectral attention FCA module, and a DenseNet network is added as a branch of the model. The input image is extracted by two branch networks, and then the fused feature map is obtained by multi-mode bilinear pooling MBP, and finally the classification output is obtained by the classification layer.

[0010] Step 2.1 Input the road surface image and extract the road surface roughness features:

[0011] Input a three-channel RGB road image and extract road roughness features through two network branches: EfficientNet and DenseNet.

[0012] Step 2.2: Fuse the feature maps to get the classification output:

[0013] The two feature maps obtained in step 2.1 are subjected to feature fusion by multi-mode bilinear pooling (MBP) operation, and then pass through a classification layer to obtain the final classification output.

[0014] Step 3: Define the loss function and perform model training;

[0015] Step 4: Classify and analyze the actual road roughness based on the training model:

[0016] First, a camera is installed at a suitable position on the car, and its position and angle are adjusted to ensure that the road roughness image can be accurately captured; then, these image data are input into the road roughness classification model based on the improved EfficientNet for analysis and recognition, and then the actual road roughness is accurately classified.

[0017] Furthermore, the step 1 also includes the following steps:

[0018] Step 1.1 Obtain the original road surface image:

[0019] A USB camera is set on the front of the vehicle hood to capture road information, and the original road image to be identified is obtained by extracting frames from the captured video;

[0020] Step 1.2 Define dataset image labels:

[0021] According to the degree of damage presented by the road surface image texture, the road surface roughness is defined as three subcategories: smooth, slightly uneven, and severely uneven;

[0022] Step 1.3 Crop the image and manually annotate it:

[0023] The original road image to be identified is cropped into a size of 360×240, retaining the road area where the tire passes to avoid most of the background and non-road images; the acquired image is manually annotated according to the labels defined in step 1.2.

[0024] Furthermore, the step 2.1 also includes the following steps:

[0025] The input is a three-channel RGB road image with a resolution of 224×224, which is passed through two network branches: EfficientNet and DenseNet.

[0026] In the EfficientNet network branch, the input image is first convolved by 3×3 convolution to preliminarily extract the front-layer features of the road image and output a feature map of size 112×112×32;

[0027] The middle layer of the EfficientNet network consists of 16 MBConv modules. The squeeze-excitation SE module in each MBConv module is replaced by a multi-spectral attention FCA module. The output feature map is processed by a series of MBConv modules and finally outputs a feature map of size 7×7×320.

[0028] The above multi-spectral attention FCA module: the input X is divided into multiple parts along the channel, expressed as X = [X 0 ,X 1 ,...,X n-1 ], where X i ∈R C′×H×W ,i∈{0,1,...,n-1},

[0029] Where n is the number of decompositions of input X, X i are the components of input X in the channel, C is the number of channels of input X, C′ is the integer after C is divided by n, H is the height of input X, and W is the width of input X;

[0030] For each component X i , assigning the corresponding 2D cosine discrete transform 2DDCT frequency components as the weighted sum of each input:

[0031]

[0032] Among them, Freq i ∈R C′ ,h∈{0,1,…,H-1}, w∈{0,1,…,W-1};

[0033] Where: Freq i For X iThe C′-dimensional vector after preprocessing, [u, v] is X i The corresponding frequency component 2D index;

[0034] The overall preprocessed vector of input X can be obtained by concatenation:

[0035] Freq=cat([Freq 0 ,Freq 1 ,…,Freq n-1 ]) (3)

[0036] Where: Freq is the vector of the input X after overall preprocessing, cat represents the concatenation operation of several vectors;

[0037] Then the overall output of the multispectral attention module can be written as:

[0038] ms_att=sigmoid(fc(Freq)) (4)

[0039] Where: ms_att is the output result of the multi-spectral attention module, fc is the matrix product of input X and Freq, and sigmoid is the activation function:

[0040]

[0041] Where: S(x) is the sigmoid activation function;

[0042] The obtained feature map is subjected to the convolution operation of the 1×1 convolution layer to further extract features and maintain the number of channels unchanged, and the size becomes 7×7×1280, which is used as the output of the EfficientNet network branch; in the DenseNet network branch, the input image is subjected to the convolution operation of the 3×3 convolution, and the output feature map of size 112×112×64 is output, which is compressed by the global average pooling operation and the size becomes 56×56×64, and then it is subjected to feature extraction and transition connection by three dense connection modules DenseBlock and transition layer TransitionLayer connected in front and back respectively, and finally it is subjected to a dense connection module DenseBlock to extract features and output a feature map of size 7×7×1024 as the output of the DenseNet network branch; the above-mentioned dense connection module DenseBlock k is composed of a batch normalization BN layer, a linear rectification function ReLu activation function, a 1×1 convolution layer, a BN layer, a linear rectification function ReLu activation function and a 3×3 convolution layer; the above transition layer TransitionLayer is composed of a BN layer, a ReLu activation function, a 1×1 convolution layer and a 2×2 average pooling layer, which plays the role of a compression model; the specific mathematical expression is as follows:

[0043] f T =Conv 1*1 (AvgPool 2*2 (input)) (6)

[0044] Where: Conv 1*1 Represents a 1×1 convolution operation, AvgPool 2*2 represents a 2×2 average pooling operation, input represents the input feature map, and f T It is the output of the input feature map after the transition layer TransitionLayer.

[0045] Furthermore, the step 2.2 also includes the following steps:

[0046] The two feature maps of size 7×7×1280 and 7×7×1024 obtained in step 2.1 are subjected to multi-mode bilinear pooling (MBP) operation for feature fusion and then pass through a classification layer to obtain the final classification output.

[0047] In the above multi-mode bilinear pooling, the input image is passed through the EfficientNet network branch and the DenseNet branch to obtain the output feature f E and f D , perform multi-mode bilinear pooling MBP operation on the above features to achieve feature fusion, as follows:

[0048] A bilinear operation is used to extract the two features f from the two network branches in step 2.1 E and f D At each spatial position l, we combine the matrix according to its outer product to obtain a bilinear feature b(l,I,f E ,f D ):

[0049] b(l,I,f E ,f D ) = f E (l,I) T f D (l,I) (7)

[0050] Where: f E (l,I) represents the features of the road roughness image I at position l extracted by the EfficientNet network branch, f D (l,I) represents the features of the road roughness image I at position l extracted by the DenseNet network branch, b(l,I,f E ,f D ) represents the f extracted from the road roughness image I at position l E (l,I) and fD (l,I) The bilinear features obtained by performing the outer product;

[0051] Then, the bilinear features b(l,I,f E ,f D ) to perform cumulative fusion operations to obtain a global feature of the original image:

[0052]

[0053] Where: x represents the bilinear feature vector of the original image;

[0054] Finally, the obtained bilinear feature vector x is transformed by square root to obtain a one-dimensional bilinear fusion feature:

[0055]

[0056] Where: y is the one-dimensional bilinear fusion feature;

[0057] And perform L2 regularization to improve the performance and stability of the model:

[0058] z=y / ||y||2 (10)

[0059] Where: z represents the normalized bilinear fusion feature.

[0060] Furthermore, the step 3 also includes the following steps:

[0061] The images and labels constructed in step 1 are used as the input of the model in a one-to-one correspondence. The cross entropy loss function combined with label smoothing is selected as the maximum loss function. The Adam optimizer is used to update the learning rate of the model. The initial learning rate is set to 0.0015, the exponential decay coefficient selected by the model is 0.95, the image training batch is set to 16, and the number of iterations is set to 50.

[0062] Cross entropy loss function combined with label smoothing:

[0063]

[0064] Where i is the actual label, y is the output label, ε is a small hyperparameter, which means that part of the probability mass is transferred from the correct label to other categories. The larger the value, the smaller the label probability value of the label vector after label smoothing, and the smoother the label. Loss is the cross entropy loss function:

[0065]

[0066] Where: p i is the probability distribution of one-hot code labels, q iTo predict the probability distribution of sample label i; the cross entropy function is the difference between the two. The smaller the cross entropy, the closer the two probability distributions are, and the smaller the loss is.

[0067] Compared with the prior art, the present invention has the following beneficial effects:

[0068] 1. The present invention replaces the squeeze-excitation SE module of the EfficientNet model with a multispectral attention FCA module, which improves the performance of the model in focusing on important information and suppressing lightweight features (noise introduced by external factors such as light and weather), and improves the accuracy of road roughness classification.

[0069] 2. The present invention adds a DenseNet network feature extraction branch based on the EfficientNet network through the multi-mode bilinear pooling MBP operation to obtain position and semantic feature information of different granularities, thereby improving the generalization ability and recognition accuracy of the model.

[0070] 3. The present invention evaluates the designed model by building a self-built road roughness data set and conducts generalization experiments to verify the generalization ability of the model. It can also lay a theoretical foundation for road roughness classification during actual road driving of vehicles, which has certain social and scientific significance. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] Figure 1 The present invention is a flow chart of the road surface roughness classification method.

[0072] Figure 2 This is a structural diagram of the road roughness classification model based on the improved EfficientNet in the present invention.

[0073] Figure 3 It is a structural diagram of the multi-spectral attention FCA module in the present invention. DETAILED DESCRIPTION

[0074] The present invention will be further described below in conjunction with the accompanying drawings.

[0075] like Figure 1 As shown, a road roughness classification method based on the improved EfficientNet model includes the following steps:

[0076] Step 1: Build the original image dataset and label the classification

[0077] Step 1.1 Obtain the original road surface image

[0078] Specifically, a USB camera is set on the front of the vehicle hood to capture road information, and the original road image to be identified is obtained by extracting frames from the captured video. In order to improve the generalization ability of the model and reduce the noise introduced by lighting, weather, road conditions, etc., the present invention captures road images of four types of roads, including asphalt roads, cement roads, and soil / mud roads, under six weather conditions: dry, wet, waterlogged, new snow, waterlogged, snowmelt, and ice.

[0079] Step 1.2 Define dataset image labels

[0080] Specifically, the road surface roughness is defined as three subcategories: smooth, slightly uneven, and severely uneven according to the degree of damage presented by the road surface image texture.

[0081] Step 1.3 Crop the image and manually annotate it

[0082] Specifically, the original road image to be identified is cropped into a size of 360×240, and the road area where the tire passes is retained to avoid most of the background and non-road images, so as to achieve refined road roughness perception. The acquired image is manually annotated according to the labels defined in step 1.2.

[0083] Step 2: Establish a road roughness classification model based on the improved EfficientNet

[0084] like Figure 2 As shown in the figure, a road roughness classification model based on the improved EfficientNet is established: on the basis of the original EfficientNet network, the squeeze-excitation SE module is replaced with a multi-spectral attention FCA module, and a new DenseNet network is added as a branch of the model. The input image is extracted features by two branch networks, and then a fused feature map is obtained by multi-mode bilinear pooling MBP, and finally the classified output is obtained by the classification layer.

[0085] Step 2.1 Input road surface image and extract road surface roughness features

[0086] First, the road roughness classification model inputs a three-channel RGB road image with a resolution of 224×224, which is passed through two network branches: EfficientNet and DenseNet.

[0087] like Figure 2 As shown in the figure, in the EfficientNet network branch, the input image first undergoes a 3×3 convolution to perform a convolution calculation, preliminarily extract the front-layer features of the road image, and output a feature map of size 112×112×32.

[0088] The middle layer of the EfficientNet network consists of 16 mobile inverted bottleneck convolution (MBConv) modules. The squeeze-excitation SE module in each MBConv module is replaced by a multi-spectral attention FCA module. The output feature map is processed by a series of MBConv modules and finally outputs a feature map of size 7×7×320. Figure 2 The size of the feature map before it is input into each layer of the model is given.

[0089] The above MBConv module:

[0090] H(x)′=F scale (F(x),ω)+x (1)

[0091] Where: H(x)′ is the unknown mapping, F(x) is the residual mapping feature, ω is the channel weight, F scale is the product of F(x) and ω, and x is the identity mapping.

[0092] The above multi-spectral attention FCA module: Figure 3 As shown, the input X is divided into multiple parts along the channel, expressed as X = [X 0 ,X 1 ,...,X n-1 ], where X i ∈R C′×H×W ,i∈{0,1,...,n-1},

[0093] Where n is the number of decompositions of input X, X i are the components of the input X in the channel, C is the number of channels of the input X, C′ is the integer after C is divided by n, H is the height of the input X, and W is the width of the input X.

[0094] For each component X i , assigning the corresponding 2D cosine discrete transform 2DDCT frequency components as the weighted sum of each input:

[0095]

[0096] Among them, Freq i ∈R C′ ,h∈{0,1,…,H-1}, w∈{0,1,…,W-1}.

[0097] Where: Freq i For X i The C′-dimensional vector after preprocessing, [u, v] is X i The corresponding 2D index of the frequency component.

[0098] The overall preprocessed vector of input X can be obtained by concatenation:

[0099] Freq=cat([Freq 0 ,Freq 1 ,…,Freq n-1 ]) (3)

[0100] Where: Freq is the overall preprocessed vector of input X, and cat represents the concatenation operation of several vectors.

[0101] Then the overall output of the multispectral attention module can be written as:

[0102] ms_att=sigmoid(fc(Freq)) (4)

[0103] Where: ms_att is the output result of the multi-spectral attention module, fc is the matrix product of input X and Freq, and sigmoid is the activation function:

[0104]

[0105] Where: S(x) is the sigmoid activation function.

[0106] The obtained feature map is convolved through a 1×1 convolutional layer to further extract features while maintaining the number of channels unchanged. The size becomes 7×7×1280 and is used as the output of the EfficientNet network branch. Figure 2 As shown in the figure, in the DenseNet network branch, the input image is convolved by 3×3 convolutions, and the output feature map is 112×112×64. After the global average pooling operation, the feature is compressed and the size becomes 56×56×64. Then, three dense connection modules DenseBlock and transition layer TransitionLayer are connected to each other for feature extraction and transition connection respectively. Finally, a dense connection module DenseBlock is used to extract the feature output of the feature map with a size of 7×7×1024 as the output of the DenseNet network branch. Among them, Figure 2 The size of the feature map before it is input into each layer of the model is given.

[0107] The above dense connection module DenseBlock is composed of a batch normalization BN (Batch Normalization) layer, a linear rectified function ReLu (Rectified Linear Unit) activation function, a 1×1 convolution layer, a BN layer, a linear rectified function ReLu activation function and a 3×3 convolution layer. The number of 1×1 and 3×3 convolution layers in each layer of the dense connection module DenseBlock is as follows: Figure 2 shown.

[0108] The above transition layer TransitionLayer consists of a BN layer, a linear rectification function ReLu activation function, a 1×1 convolution layer, and a 2×2 average pooling layer, which plays the role of compressing the model. The specific mathematical expression is as follows:

[0109] f T =Conv 1*1 (AvgPool 2*2 (input)) (6)

[0110] Where: Conv 1*1 Represents a 1×1 convolution operation, AvgPool 2*2 represents a 2×2 average pooling operation, input represents the input feature map, and f T It is the output of the input feature map after the transition layer TransitionLayer.

[0111] Step 2.2: Fusion feature map to obtain classification output

[0112] The two feature maps of sizes 7×7×1280 and 7×7×1024 obtained in step 2.1 are fused through the multi-mode bilinear pooling (MBP) operation and passed through a classification layer to obtain the final classification output.

[0113] The above multi-mode bilinear pooling MBP, the input image is passed through the EfficientNet network branch and the DenseNet branch to obtain the output feature f E and f D , perform multi-mode bilinear pooling MBP operation on the above features to achieve feature fusion, specifically:

[0114] A bilinear operation is used to extract the two features f from the two network branches in step 2.1 E and f D At each spatial position l, we combine the matrix according to its outer product to obtain a bilinear feature b(l,I,f E ,f D ):

[0115] b(l,I,f E ,f D ) = f E (l,I) T f D (l,I) (7)

[0116] Where: f E (l,I) represents the features of the road roughness image I at position l extracted by the EfficientNet network branch, f D (l,I) represents the features of the road roughness image I at position l extracted by the DenseNet network branch, b(l,I,f E ,f D ) represents the f extracted from the road roughness image I at position l E (l,I) and f D The bilinear features are obtained by performing the outer product of (l,I).

[0117] Then, the bilinear features b(l,I,f E ,f D ) to perform cumulative fusion operations to obtain a global feature of the original image:

[0118]

[0119] Where: x represents the bilinear feature vector of the original image.

[0120] Finally, the obtained bilinear feature vector x is transformed by square root to obtain a one-dimensional bilinear fusion feature:

[0121]

[0122] Where: y is the one-dimensional bilinear fusion feature.

[0123] And perform L2 regularization to improve the performance and stability of the model:

[0124] z=y / ||y||2 (10)

[0125] Where: z represents the normalized bilinear fusion feature.

[0126] Step 3: Define the loss function and train the model

[0127] Specifically, the images and labels constructed in step 1 are used as the input of the model in a one-to-one correspondence. The cross entropy loss function combined with label smoothing is selected as the maximum loss function. The Adam optimizer is used to update the learning rate of the model. The initial learning rate is set to 0.0015, the exponential decay coefficient selected by the model is 0.95, the image training batch is set to 16, and the number of iterations is set to 50.

[0128] Among them, the cross entropy loss function combined with label smoothing is:

[0129]

[0130] Where i is the actual label, y is the output label, ε is a small hyperparameter, which means that part of the probability mass is transferred from the correct label to other categories. The larger the value, the smaller the label probability value of the label vector after label smoothing, and the smoother the label. Loss is the cross entropy loss function:

[0131]

[0132] Where: p i is the probability distribution of one-hot code labels, q i is the probability distribution of the predicted sample label i. The cross entropy function is the difference between the two. The smaller the cross entropy, the closer the two probability distributions are, and the smaller the loss.

[0133] Step 4: Classify and analyze the actual road roughness based on the training model

[0134] Specifically, first, a camera is installed at a suitable position of the car, and its position and angle are adjusted to ensure that the road surface roughness image can be accurately captured. Then, these image data are input into the road surface roughness classification model based on the improved EfficientNet of the present invention for analysis and recognition, and then the actual road surface roughness is accurately classified.

Claims

1. A road roughness classification method based on an improved EfficientNet model, characterized by: The road surface roughness classification method comprises the following steps: Step 1: Build the original image dataset and label the classification; Step 2: Establish a road roughness classification model based on the improved EfficientNet: Based on the original EfficientNet network, the squeeze-excitation SE module is replaced with a multi-spectral attention FCA module, and a DenseNet network is added as a branch of the model. The input image is extracted by two branch networks, and then the fused feature map is obtained by multi-mode bilinear pooling MBP, and finally the classification output is obtained by the classification layer. Step 2.1 Input the road surface image and extract the road surface roughness features: Input a three-channel RGB road image and extract road roughness features through two network branches: EfficientNet and DenseNet. Step 2.2: Fuse the feature maps to get the classification output: The two feature maps obtained in step 2.1 are subjected to feature fusion by multi-mode bilinear pooling (MBP) operation, and then pass through a classification layer to obtain the final classification output. Step 3: Define the loss function and perform model training; Step 4: Classify and analyze the actual road roughness based on the training model: First, a camera is installed at a suitable position on the car, and its position and angle are adjusted to ensure that the road roughness image can be accurately captured; then, these image data are input into the road roughness classification model based on the improved EfficientNet for analysis and recognition, and then the actual road roughness is accurately classified.

2. The road roughness classification method based on the improved EfficientNet model according to claim 1, characterized in that: The step 1 also includes the following steps: Step 1.1 Obtain the original road surface image: A USB camera is set on the front of the vehicle hood to capture road information, and the original road image to be identified is obtained by extracting frames from the captured video; Step 1.2 Define dataset image labels: According to the degree of damage presented by the road surface image texture, the road surface roughness is defined as three subcategories: smooth, slightly uneven, and severely uneven; Step 1.3 Crop the image and manually annotate it: The original road image to be identified is cropped into a size of 360×240, retaining the road area where the tire passes to avoid most of the background and non-road images; the acquired image is manually annotated according to the labels defined in step 1.

2.

3. A road roughness classification method based on an improved EfficientNet model as claimed in claim 1 or 2, characterized in that: The step 2.1 also includes the following steps: The input is a three-channel RGB road image with a resolution of 224×224, which is passed through two network branches: EfficientNet and DenseNet. In the EfficientNet network branch, the input image is first subjected to 3×3 convolution for convolution calculation to preliminarily extract the front-layer features of the road image and output a feature map of size 112×112×32; the middle layer of the EfficientNet network consists of 16 MBConv modules, and the squeeze-excitation SE module in each MBConv module is replaced by a multi-spectral attention FCA module. The output feature map is processed by a series of MBConv modules and finally outputs a feature map of size 7×7×320; The above multi-spectral attention FCA module: the input X is divided into multiple parts along the channel, expressed as X = [X 0 ,X 1 ,...,X n -1 ], where X i ∈R C′×H×W ,i∈{0,1,...,n-1}, Where n is the number of decompositions of input X, X i are the components of input X in the channel, C is the number of channels of input X, C′ is the integer after C is divided by n, H is the height of input X, and W is the width of input X; For each component X i , assigning the corresponding 2D cosine discrete transform 2DDCT frequency components as the weighted sum of each input: Among them, Freq i ∈R C′ ,h∈{0,1,...,H-1}, w∈{0,1,...,W-1}; Where: Freq i For X i The C′-dimensional vector after preprocessing, [u, v] is X i The corresponding frequency component 2D index; The overall preprocessed vector of input X can be obtained by concatenation: Freq=cat([Freq 0 ,Freq 1 ,…,Freq n-1 ])(3) Where: Freq is the vector of the input X after overall preprocessing, cat represents the concatenation operation of several vectors; Then the overall output of the multispectral attention module can be written as: ms_att = sigmoid(fc(Freq))(4) Where: ms_att is the output result of the multi-spectral attention module, fc is the matrix product of input X and Freq, and sigmoid is the activation function: Where: S(x) is the sigmoid activation function; The obtained feature map is convolved through a 1×1 convolutional layer to further extract features while maintaining the number of channels unchanged, and the size becomes 7×7×1280 as the output of the EfficientNet network branch; in the DenseNet network branch, the input image is convolved through a 3×3 convolution to output a feature map of size 112×112×64, which is compressed through a global average pooling operation to a size of 56×56×64. It is then passed through three densely connected modules DenseBlock and transition layer TransitionLayer for feature extraction and transition connection respectively, and finally passed through a dense The connection module DenseBlock extracts the feature output size of 7×7×1024 feature map as the output of the DenseNet network branch; the dense connection module DenseBlock is composed of a batch normalization BN layer, a linear rectification function ReLu activation function, a 1×1 convolution layer, a BN layer, a linear rectification function ReLu activation function and a 3×3 convolution layer stacked; the transition layer TransitionLayer is composed of a BN layer, a ReLu activation function, a 1×1 convolution layer and a 2×2 average pooling layer, which plays the role of a compression model; the specific mathematical expressions are as follows: f T =Conv 1*1 (AvgPool 2*2 (input))(6) Where: Conv 1*1 Represents a 1×1 convolution operation, AvgPool 2*2 represents a 2×2 average pooling operation, input represents the input feature map, and f T It is the output of the input feature map after the transition layer TransitionLayer.

4. The road roughness classification method based on the improved EfficientNet model as claimed in claim 3, characterized in that: The step 2.2 also includes the following steps: The two feature maps of size 7×7×1280 and 7×7×1024 obtained in step 2.1 are subjected to multi-mode bilinear pooling (MBP) operation for feature fusion and then pass through a classification layer to obtain the final classification output. In the above multi-mode bilinear pooling, the input image is passed through the EfficientNet network branch and the DenseNet branch to obtain the output feature f E and f D , perform multi-mode bilinear pooling MBP operation on the above features to achieve feature fusion, as follows: A bilinear operation is used to extract the two features f from the two network branches in step 2.1 E and f D At each spatial position l, we combine the matrix according to its outer product to obtain a bilinear feature b(l,I,f E ,f D ): b(l,I,f E ,f D )=f E (l,I) T f D (l,I)(7) Where: f E (l,I) represents the features of the road roughness image I at position l extracted by the EfficientNet network branch, f D (l,I) represents the features of the road roughness image I at position l extracted by the DenseNet network branch, b(l,I,f E ,f D ) represents the f extracted from the road roughness image I at position l E (l,I) and f D (l,I) The bilinear features obtained by performing the outer product; Then, the bilinear features b(l,I,f E ,f D ) to perform cumulative fusion operations to obtain a global feature of the original image: Where: x represents the bilinear feature vector of the original image; Finally, the obtained bilinear feature vector x is transformed by square root to obtain a one-dimensional bilinear fusion feature: Where: y is the one-dimensional bilinear fusion feature; And perform L2 regularization to improve the performance and stability of the model: z=y / ||y||2 (10) Where: z represents the normalized bilinear fusion feature.

5. The road roughness classification method based on the improved EfficientNet model as claimed in claim 4, characterized in that: The step 3 also includes the following steps: The images and labels constructed in step 1 are used as the input of the model in a one-to-one correspondence. The cross entropy loss function combined with label smoothing is selected as the maximum loss function. The Adam optimizer is used to update the learning rate of the model. The initial learning rate is set to 0.0015, the exponential decay coefficient selected by the model is 0.95, the image training batch is set to 16, and the number of iterations is set to 50. Among them, the cross entropy loss function combined with label smoothing is: Where i is the actual label, y is the output label, ε is a small hyperparameter, which means that part of the probability mass is transferred from the correct label to other categories. The larger the value, the smaller the label probability value of the label vector after label smoothing, and the smoother the label. Loss is the cross entropy loss function: Where: p i is the probability distribution of one-hot code labels, q i To predict the probability distribution of sample label i; The cross entropy function is the difference between the two. The smaller the cross entropy, the closer the two probability distributions are, and the smaller the loss.

Citation Information

Cited By

  • Water and soil loss yellow muddy water image recognition method based on MobileNetV3

    CN120219835A

  • Soil erosion yellow mud image recognition method based on MobileNetV3

    CN120219835B

  • Preview active suspension rigidity control method based on road surface grading and MAP mapping

    CN121859760A