Road crack detection method, electronic device and storage medium based on causal decoupling

By introducing a variational autoencoder for causal decoupling in road crack detection and using brightness distortion and Gaussian pyramid texture smoothing to generate multi-domain data, the detection problem of deep learning models under the interference of environmental factors is solved, achieving higher detection accuracy and generalization ability.

CN119360085BActive Publication Date: 2025-09-12SHANTOU UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411368410.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-29
Publication Date
2025-09-12
Estimated Expiration
2044-09-29

AI Technical Summary

Technical Problem

Existing deep learning models are easily interfered by environmental factors in road crack detection, and it is difficult to effectively separate causal features and confounding features, resulting in unsatisfactory detection results.

Method used

A variational autoencoder is used to perform causal decoupling between the feature extractor and the classifier. Multi-domain road image data is generated through brightness distortion and Gaussian pyramid texture smoothing. The object detection model is trained to separate causal and confounding features, and then the confounding features are eliminated for classification detection.

Benefits of technology

Effectively eliminate the influence of environmental interference, improve the accuracy of road crack detection and enhance the generalization ability of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119360085B_ABST
    Figure CN119360085B_ABST
Patent Text Reader

Abstract

The present application provides a road crack detection method, electronic device, and storage medium based on causal decoupling, which belongs to the field of road detection technology. The method includes: obtaining a road image to be tested; inputting the road image to be tested into a target detection model, the target detection model includes a feature extractor, a variational autoencoder, and a classifier, using the feature extractor to extract the features of the image to be tested from the road image to be tested, using the variational autoencoder to decouple the causal features to be tested and the mixed features to be tested from the features of the image to be tested, eliminating the mixed features, and using the classifier to classify and detect the causal features to be tested to obtain road crack detection results. The present application can effectively eliminate the influence of unstable environmental interference, improve the accuracy of road crack detection, and enhance the generalization ability of the target detection model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of road detection technology, and in particular to a road crack detection method, electronic device, and storage medium based on causal decoupling. Background Art

[0002] Due to the inevitable damage to road materials and structures over long-term use, road surface problems such as rutting, looseness, and cracks may occur. These problems reduce the road's load-bearing capacity and water resistance, posing a significant safety hazard to road health. As one of the most common and serious structural damages, road crack detection is a prerequisite for subsequent maintenance and repair.

[0003] In the existing technology, it has been proposed to use deep learning models for road crack detection. However, since the process of road image acquisition is affected by environmental factors such as lighting conditions and road surface texture, and deep learning models often only learn statistical laws in the training data rather than causal relationships, they are prone to establishing false associations between mixed features and detection tasks. This makes it difficult for deep learning models to identify and filter out mixed features from the input road images in actual applications, resulting in unsatisfactory road crack detection results. Summary of the Invention

[0004] The main purpose of this application is to propose a road crack detection method, electronic device and storage medium based on causal decoupling, which can effectively eliminate the influence of unstable environmental interference, improve the accuracy of road crack detection, and enhance the generalization ability of the target detection model.

[0005] To achieve the above objectives, one aspect of the present application proposes a road crack detection method based on causal decoupling, the method comprising:

[0006] Acquire an image of the road to be tested;

[0007] The road image to be tested is input into a target detection model, which includes a feature extractor, a variational autoencoder and a classifier. The feature extractor is used to extract the image features to be tested from the road image to be tested. The variational autoencoder is used to decouple the causal features to be tested and the mixed features to be tested from the image features to be tested, and the mixed features are eliminated. The classifier is used to classify and detect the causal features to be tested to obtain a road crack detection result.

[0008] Furthermore, the target detection model is trained in the following way:

[0009] Acquire multiple data sets, each of the data sets comprising an original road image and a first road image, wherein the first road image is obtained by performing background intervention on the original road image, the original road image carries a true label, and the first road image carries true intervention intensity information;

[0010] Inputting the multiple data groups into the initial detection model for processing to obtain multiple mixed feature information, multiple predicted probability distribution information and multiple predicted label information corresponding to the multiple data groups;

[0011] Determining a total loss based on multiple pieces of mixed feature information, multiple pieces of predicted probability distribution information, multiple pieces of predicted label information, multiple true labels, and multiple pieces of true intervention intensity information corresponding to the multiple data groups;

[0012] The initial detection model is trained according to the total loss to obtain the target detection model.

[0013] Furthermore, the first road image is obtained by:

[0014] The original road image is subjected to brightness distortion according to a brightness adjustment parameter to obtain the first road image, and the brightness adjustment parameter is used as the true intervention intensity information.

[0015] Furthermore, the first road image is obtained by:

[0016] The original road image is texture-smoothed using a Gaussian pyramid to obtain the first road image, and a standard deviation of a filter used in the Gaussian pyramid is used as the true intervention intensity information.

[0017] Furthermore, the initial detection model includes an initial feature extractor, an initial variational autoencoder, and an initial classifier; the inputting the multiple data groups into the initial detection model for processing to obtain multiple mixed feature information, multiple predicted probability distribution information, and multiple predicted label information corresponding to the multiple data groups includes:

[0018] Performing feature extraction on each of the data groups using the initial feature extractor to obtain image feature information corresponding to each of the data groups;

[0019] Using the initial variational autoencoder to perform feature decoupling on the image feature information corresponding to each of the data groups, to obtain causal feature information and mixed feature information corresponding to each of the data groups;

[0020] The initial classifier is used to perform classification detection on the causal feature information corresponding to each of the data groups to obtain the predicted probability distribution information and predicted label information corresponding to each of the data groups.

[0021] Furthermore, determining the total loss based on the multiple mixed feature information, the multiple predicted probability distribution information, the multiple predicted label information, the multiple true labels, and the multiple true intervention intensity information corresponding to the multiple data groups includes:

[0022] Determining a distribution consistency loss based on a plurality of predicted probability distribution information corresponding to the plurality of data groups;

[0023] determining background intervention loss based on a plurality of confounding feature information and a plurality of true intervention intensity information corresponding to the plurality of data groups;

[0024] Determining a classification loss based on a plurality of predicted label information and a plurality of true labels corresponding to the plurality of data groups;

[0025] The total loss is determined according to the distribution consistency loss, the background intervention loss and the classification loss.

[0026] Furthermore, the predicted probability distribution information corresponding to each of the data groups includes an original probability distribution corresponding to the original road image and a first probability distribution corresponding to the first road image; and determining the distribution consistency loss based on the multiple predicted probability distribution information corresponding to the multiple data groups includes:

[0027] Evaluate the difference between the original probability distribution and the first probability distribution corresponding to each data group by using the maximum mean difference loss function to obtain a first loss corresponding to each data group;

[0028] The distribution consistency loss is determined according to a plurality of first losses corresponding to the plurality of data groups.

[0029] Furthermore, the confounding feature information corresponding to each of the data groups includes an original confounding feature corresponding to the original road image and a first confounding feature corresponding to the first road image; and determining the background intervention loss based on the multiple confounding feature information corresponding to the multiple data groups and the multiple true intervention intensity information includes:

[0030] Determining feature difference information corresponding to each data group according to the original confounding feature and the first confounding feature corresponding to each data group;

[0031] Using a multi-layer perceptron to process the feature difference information corresponding to each of the data groups, to obtain the predicted intervention intensity information corresponding to each of the data groups;

[0032] Evaluate the difference between the predicted intervention intensity information and the actual intervention intensity information corresponding to each data group using an L1 norm loss function to obtain a second loss corresponding to each data group;

[0033] The background intervention loss is determined according to a plurality of second losses corresponding to the plurality of data groups.

[0034] To achieve the above-mentioned purpose, another aspect of the present application provides an electronic device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the above-mentioned method when executing the computer program.

[0035] To achieve the above-mentioned purpose, another aspect of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program implements the above-mentioned method when executed by a processor.

[0036] The present application includes at least the following beneficial effects: by setting a variational autoencoder between a feature extractor and a classifier, using the variational autoencoder to reliably separate causal components and mixed components from the image features output by the feature extractor, explicitly discarding the mixed components, and inputting only the causal components into the classifier for classification detection, the influence of unstable environmental interference can be effectively eliminated, thereby improving the accuracy of road crack detection and enhancing the generalization ability of the target detection model. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 1 is a flow chart of a road crack detection method based on causal decoupling provided in an embodiment of the present application;

[0038] Figure 2 This is a schematic diagram of the hardware structure of the electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0039] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the embodiments of the present application. They are merely examples of systems and methods consistent with some aspects of the embodiments of the present application as detailed in the appended claims.

[0040] It will be understood that the terms "first", "second", etc. used in this application may be used herein to describe various concepts, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another. For example, without departing from the scope of the embodiments of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" and "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0041] The terms "at least one", "plurality", "each", "any", etc. used in this application include "at least one", "two" or more, "plurality" or "each", "any" or "any one", "each" or "any one" as used herein.

[0042] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application pertains. The terms used herein are for the purpose of describing the embodiments of this application only and are not intended to limit this application.

[0043] Before explaining the embodiments of the present application in detail, some of the nouns and terms involved in the embodiments of the present application are first explained. The nouns and terms involved in the embodiments of the present application are subject to the following explanations.

[0044] A variational autoencoder (VAE) is a generative model specifically designed to capture the underlying probability distribution of a given dataset and generate new samples. Its network architecture consists of an encoder and a decoder. The encoder converts input data into a latent representation, while the decoder reconstructs the original data based on this latent representation. The variational autoencoder is programmed to minimize the difference between the original and reconstructed data, enabling it to understand the underlying data distribution and generate new samples that conform to the same distribution.

[0045] The development of transportation infrastructure is crucial for ensuring people's well-being and promoting development. As a crucial component of transportation hubs, roads not only carry the weight of transportation but also impact the safety of people. Due to the inevitable damage to road materials and structures over long-term use, road pavement problems such as rutting, looseness, and cracks can develop. These problems reduce the road's load-bearing capacity and water resistance, posing a significant safety hazard to road health. As one of the most common and serious structural damages, road crack detection is a prerequisite for subsequent maintenance and repair.

[0046] In the prior art, some scholars have proposed using deep learning models for road crack detection. These deep learning models can autonomously extract representative features from input road images, thereby achieving road crack detection in an end-to-end manner and avoiding tedious and unstable parameter adjustments. However, because the process of road image acquisition is affected by environmental factors such as lighting conditions and road surface texture, these deep learning models rely too much on data-driven learning methods during training and lack causal guidance. They often learn statistical patterns in the training data rather than causal relationships, and are prone to establishing false associations between confounding features and detection tasks. This makes it difficult for these deep learning models to identify and filter out confounding features from input road images in practical applications, resulting in unsatisfactory road crack detection results. In other words, these deep learning models lack sufficient robustness in complex environments and are easily interfered with by noise and uncertain factors.

[0047] In view of this, an embodiment of the present application provides a road crack detection method, electronic device, and storage medium based on causal decoupling. This solution sets a variational autoencoder between a feature extractor and a classifier, and uses the variational autoencoder to reliably separate causal components and mixed components from the image features output by the feature extractor, explicitly discards the mixed components, and only inputs the causal components into the classifier for classification detection. This can effectively eliminate the influence of unstable environmental interference, thereby improving the accuracy of road crack detection and enhancing the generalization ability of the target detection model.

[0048] The embodiments of the present application provide a road crack detection method based on causal decoupling, which relates to the field of road detection technology and can be applied to a terminal or a server, or can be software running on a terminal or a server. In some embodiments, the terminal can be a smartphone, tablet computer, laptop computer, desktop computer, smart speaker, smartwatch, or in-vehicle terminal, etc., but is not limited to these. The server can be configured as an independent physical server, or as a server cluster or distributed system consisting of multiple physical servers. It can also be configured as a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The server can also be a node server in a blockchain network. The software can be an application that implements the above-mentioned road crack detection method based on causal decoupling, etc., but is not limited to the above forms.

[0049] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, and the like. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected via a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media, including storage devices.

[0050] Figure 1 This is an optional flow chart of a road crack detection method based on causal decoupling provided in an embodiment of the present application. Figure 1 The method may include but is not limited to steps S101 to S102:

[0051] Step S101: Acquire a road image to be tested;

[0052] Step S102: Input the road image to be tested into the target detection model. The target detection model includes a feature extractor, a variational autoencoder, and a classifier. The feature extractor is used to extract the image features to be tested from the road image to be tested. The variational autoencoder is used to decouple the causal features to be tested and the mixed features to be tested from the image features to be tested. The mixed features are eliminated, and the classifier is used to classify and detect the causal features to be tested to obtain the road crack detection results.

[0053] Among them, the road crack detection result may include a prediction label for characterizing whether cracks appear on the road and a semantic segmentation feature map corresponding to the road image to be tested. The crack area and the non-crack area are clearly divided on the semantic segmentation feature map, and the non-crack area is the background area.

[0054] In steps S101 to S102 shown in the embodiment of the present application, a variational autoencoder is set between the feature extractor and the classifier, and the variational autoencoder is used to reliably separate the causal component and the mixed component from the image features output by the feature extractor, and the mixed component is explicitly discarded. Only the causal component is input into the classifier for classification detection, which can effectively eliminate the influence of unstable environmental interference, thereby improving the accuracy of road crack detection.

[0055] In step S102 of some embodiments, the target detection model is trained based on a pre-built initial detection model. The specific training process may include, but is not limited to, steps S201 to S204:

[0056] Step S201: Acquire multiple data sets, each data set including an original road image and a first road image, wherein the first road image is obtained by performing background intervention on the original road image;

[0057] The original road image carries a true label, which is used to indicate whether cracks appear on the road surface, and the first road image carries true intervention intensity information;

[0058] Step S202: inputting the multiple data groups into the initial detection model for processing to obtain multiple mixed feature information, multiple predicted label information, and multiple predicted probability distribution information corresponding to the multiple data groups;

[0059] Step S203: determining a total loss based on the multiple mixed feature information, the multiple predicted label information, the multiple predicted probability distribution information, the multiple true intervention intensity information, and the multiple true labels corresponding to the multiple data groups;

[0060] Step S204: train the initial detection model according to the total loss to obtain a trained target detection model, and this application preferably uses the Adam optimizer to complete the model training.

[0061] In steps S201 to S204 shown in the embodiment of the present application, multi-domain road image data is generated by introducing a background intervention method, so that the initial detection model learns domain-invariant information (such as feature expressions of different types of cracks) and domain-specific information (such as environmental feature expressions such as lighting conditions and background textures) between road image data in different domains during training to effectively guide the separation between causal components and confounding components, which is conducive to enhancing the generalization ability of the target detection model.

[0062] In step S201 of some embodiments, the multiple original road images included in the multiple data groups are preferably randomly selected from an existing CrackForest dataset, which is an annotated road crack image database that can roughly reflect urban road conditions.

[0063] In step S201 of some embodiments, background intervention is performed on the original road image to obtain a first road image, which can be manifested as: brightness distortion is performed on the original road image according to a brightness adjustment parameter, that is, the RGB value of each pixel contained in the original road image is added to the brightness adjustment parameter to obtain the first road image that has a brightness difference from the original road image, and the brightness adjustment parameter is used as the real intervention intensity information carried by the first road image.

[0064] Taking into account the situation that brightness conditions may change during the process of road image acquisition, the original road image is enhanced by adopting a brightness adjustment method to form the data set required for training the model, so that the trained model can effectively eliminate the impact of environmental interference such as brightness condition changes in actual application.

[0065] In step S201 of some embodiments, background intervention is performed on the original road image to obtain a first road image, which can also be expressed as: texture smoothing is performed on the original road image through a Gaussian pyramid, that is, multiple Gaussian filtering and downsampling processes are performed on the original road image to obtain the first road image that has texture difference from the original road image, and the standard deviation of the filter used in the Gaussian pyramid is used as the real intervention intensity information carried by the first road image.

[0066] It should be noted that, when the standard deviation of the filter used in the Gaussian pyramid is smaller, the smoothing effect on the original road image is weaker, so that more texture and details of the original road image are retained; conversely, when the standard deviation of the filter used in the Gaussian pyramid is larger, the smoothing effect on the original road image is stronger, so that more texture and details of the original road image are removed.

[0067] Taking into account the fact that road surface texture changes may occur during road image acquisition, a texture smoothing method based on Gaussian pyramid is used to perform data enhancement on the original road images to form the data set required for training the model. This allows the trained model to effectively eliminate the impact of environmental interference such as road surface texture changes in practical applications.

[0068] It should be noted that in order to improve the effectiveness and reliability of model training, when the model is only applied in an environment where brightness conditions change, different brightness adjustment parameters can be directly used to perform brightness distortion on different original road images; when the model is only applied in an environment where road surface texture changes, different filter standard deviations can be directly used to perform texture smoothing based on the Gaussian pyramid on different original road images; when the model needs to be applied in a complex environment where brightness conditions change and road surface texture changes occur, multiple different original road images are divided into two non-intersecting image subsets, and all original road images contained in the first image subset are subjected to brightness distortion using different brightness adjustment parameters, and all original road images contained in the second image subset are subjected to texture smoothing based on the Gaussian pyramid using different filter standard deviations; this application does not make any restrictions on this.

[0069] In addition, considering that other types of environmental changes may occur during the process of road image acquisition, the original road image can be enhanced by formulating background intervention strategies related to these other types of environmental changes to form the data set required for training the model, so that the trained model can effectively eliminate the impact of these other types of environmental changes in actual application, thereby reflecting the flexibility of the model at the application level.

[0070] In step S202 of some embodiments, the initial detection model includes an initial feature extractor, an initial variational autoencoder and an initial classifier. The initial feature extractor is preferably constructed using an existing U-Net network architecture, and the initial classifier is preferably constructed using an existing logistic regression classifier.

[0071] In some embodiments, the above step S202 may include, but is not limited to, steps S301 to S303:

[0072] Step S301: performing feature extraction on each data group using the initial feature extractor to obtain image feature information corresponding to each data group;

[0073] Step S302: Decouple the image feature information corresponding to each data group through the initial variational autoencoder to obtain mixed feature information and causal feature information corresponding to each data group;

[0074] Step S303: Classify and detect the causal feature information corresponding to each data group through the initial classifier to obtain the predicted label information and predicted probability distribution information corresponding to each data group.

[0075] Taking any data group as an example, the implementation of the above step S202 is further explained as follows:

[0076] For the original road image and the first road image included in the data set, performing feature extraction on the original road image using the initial feature extractor to obtain original image features, and performing feature extraction on the first road image using the initial feature extractor to obtain first image features, wherein the image feature information corresponding to the data set includes the original image features corresponding to the original road image and the first image features corresponding to the first road image;

[0077] Performing feature decoupling on the original image features through the initial variational autoencoder to obtain original mixed features and original causal features, performing feature decoupling on the first image features through the initial variational autoencoder to obtain first mixed features and first causal features, the mixed feature information corresponding to the data group including the original mixed features corresponding to the original road image and the first mixed features corresponding to the first road image, and the causal feature information corresponding to the data group including the original causal features corresponding to the original road image and the first causal features corresponding to the first road image;

[0078] The original causal feature is classified and detected by the initial classifier to obtain predicted label information and the original probability distribution. The first causal feature is classified and detected by the initial classifier to obtain the first probability distribution. The predicted probability distribution information corresponding to the data group includes the original probability distribution corresponding to the original road image and the first probability distribution corresponding to the first road image. The predicted label information corresponding to the data group includes the predicted label corresponding to the original road image and the probability of belonging to the predicted label.

[0079] Steps S301 to S303 shown in the embodiment of the present application, by using the initial detection model to parse multiple data groups to obtain relevant specific data therefrom, can provide data support for the subsequent steps of determining the total loss to further train the model.

[0080] In some embodiments, the above step S203 may include, but is not limited to, steps S401 to S404:

[0081] Step S401: Determine a distribution consistency loss based on multiple predicted probability distribution information corresponding to multiple data groups. This distribution consistency loss can be used to guide the model to collect domain-invariant information during training, so that the model can learn to effectively separate causal features.

[0082] Step S402: Determine a background intervention loss based on multiple pieces of true intervention intensity information and multiple pieces of confounding feature information corresponding to multiple data sets. Utilizing the background intervention loss can guide the model to collect domain-specific information during training, enabling the model to learn the ability to effectively separate confounding features.

[0083] Step S403: Determine a classification loss based on the multiple real labels and the multiple predicted label information corresponding to the multiple data groups. The classification loss can enable the model to learn basic feature classification capabilities, and the present application preferably uses a cross-entropy loss function for semantic prediction learning.

[0084] Step S404: Determine the total loss according to the distribution consistency loss, the background intervention loss, and the classification loss using the following expression:

[0085]

[0086] Where, For the total loss, is the classification loss, is the distribution consistency loss, is the weight of the distribution consistency loss in the total loss, is the background intervention loss, is the weight of the background intervention loss in the total loss.

[0087] In some embodiments, the above step S401 may include, but is not limited to, steps S501 to S502:

[0088] Step S501: Use the Maximum Mean Discrepancy (MMD) loss function to evaluate the difference between the original probability distribution and the first probability distribution corresponding to each data group to obtain the first loss corresponding to each data group. This is specifically achieved using the following expression:

[0089]

[0090] Step S502: Determine the distribution consistency loss according to the multiple first losses corresponding to the multiple data groups using the following expression:

[0091]

[0092] Where, is the original probability distribution corresponding to the i-th data group, is the first probability distribution corresponding to the i-th data group, To find the expected value of a probability distribution, is the first loss corresponding to the i-th data group, is the number of multiple data groups.

[0093] Steps S501 to S502 shown in the embodiment of the present application perform the distribution consistency constraint task by introducing the maximum mean difference loss function, which can effectively guide the model to limit the causal components to generate a consistent prediction distribution under background intervention during the training process.

[0094] In some embodiments, the above step S402 may include, but is not limited to, steps S601 to S604:

[0095] Step S601: Determine the feature difference information corresponding to each data group using the following expression based on the original confounding feature and the first confounding feature corresponding to each data group:

[0096]

[0097] Step S602: Use a multilayer perceptron (MLP) to process the feature difference information corresponding to each data group to obtain the predicted intervention intensity information corresponding to each data group. This is specifically achieved using the following expression:

[0098]

[0099] Step S603: Evaluate the difference between the predicted intervention intensity information and the actual intervention intensity information corresponding to each data group using the L1 norm loss function to obtain the second loss corresponding to each data group. This is specifically achieved using the following expression:

[0100]

[0101] Step S604: Determine the background interference loss according to the multiple second losses corresponding to the multiple data groups using the following expression:

[0102]

[0103] Where, is the original mixed feature corresponding to the i-th data group, is the first confounding feature corresponding to the i-th data group, is the feature difference information corresponding to the i-th data group, is the predicted intervention intensity information corresponding to the i-th data group, is the true intervention intensity information corresponding to the i-th data group, is the second loss corresponding to the i-th data group.

[0104] Steps S601 to S604 shown in the embodiment of the present application, by introducing a multi-layer perceptron and an L1 norm loss function to perform the background intervention intensity prediction task, can effectively guide the model to capture as much domain-specific information as possible during the training process.

[0105] An embodiment of the present application further provides an electronic device comprising a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the aforementioned road crack detection method based on causal decoupling. The electronic device can be any intelligent terminal, including a tablet computer and an in-vehicle computer.

[0106] It can be understood that the contents of the above method embodiments are applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0107] See also Figure 2 , Figure 2 The hardware structure of an electronic device according to another embodiment is shown. The electronic device includes:

[0108] The processor 701 may be implemented as a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is configured to execute relevant programs to implement the technical solutions provided in the embodiments of the present application.

[0109] The memory 702 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 702 can store an operating system and other application programs. When the technical solutions provided by the embodiments of the present application are implemented through software or firmware, the relevant program code is stored in the memory 702 and is called by the processor 701 to execute the technical solutions provided by the embodiments of the present application.

[0110] Input / output interface 703, used to implement information input and output;

[0111] Communication interface 704, used to implement communication interaction between this device and other devices, which can be achieved through wired means (such as USB, network cable, etc.) or wireless means (such as mobile network, WiFi, Bluetooth, etc.);

[0112] Bus 705 , which transmits information between various components of the device (e.g., processor 701 , memory 702 , input / output interface 703 , and communication interface 704 );

[0113] The processor 701 , the memory 702 , the input / output interface 703 and the communication interface 704 are connected to each other in communication within the device via a bus 705 .

[0114] An embodiment of the present application further provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the above-mentioned road crack detection method based on causal decoupling is implemented.

[0115] It can be understood that the contents of the above method embodiments are all applicable to the present storage medium embodiment, the functions specifically implemented by the present storage medium embodiment are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0116] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0117] The embodiments described in the embodiments of this application are intended to more clearly illustrate the technical solutions of the embodiments of this application and do not constitute a limitation on the technical solutions provided by the embodiments of this application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.

[0118] Those skilled in the art will understand that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.

[0119] The system embodiment described above is merely illustrative. The units described as separate components may or may not be physically separate, i.e., they may be located in one place or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of this embodiment.

[0120] Those skilled in the art will appreciate that all or some of the steps in the methods, systems, and functional modules / units in the devices disclosed above may be implemented as software, firmware, hardware, or appropriate combinations thereof.

[0121] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0122] It should be understood that in this application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0123] In the several embodiments provided in this application, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are merely illustrative. For example, the division of the above units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of systems or units, which can be electrical, mechanical or other forms.

[0124] The units described above as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0125] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0126] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes multiple instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: various media that can store programs, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0127] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but are not intended to limit the scope of the present invention. Any modifications, equivalent substitutions, and improvements made by those skilled in the art without departing from the scope and essence of the present invention should be within the scope of the present invention.

Claims

1. A road crack detection method based on causal decoupling, characterized in that: The method comprises: Acquire an image of the road to be tested; Inputting the road image to be tested into a target detection model, the target detection model including a feature extractor, a variational autoencoder, and a classifier, extracting features of the image to be tested from the road image to be tested using the feature extractor, decoupling causal features to be tested and confounding features from the image features to be tested using the variational autoencoder, eliminating the confounding features, and classifying and detecting the causal features to be tested using the classifier to obtain a road crack detection result; The target detection model is trained in the following way: Acquire multiple data sets, each of the data sets comprising an original road image and a first road image, wherein the first road image is obtained by performing background intervention on the original road image, the original road image carries a true label, and the first road image carries true intervention intensity information; Inputting the multiple data groups into the initial detection model for processing to obtain multiple mixed feature information, multiple predicted probability distribution information and multiple predicted label information corresponding to the multiple data groups; Determining a total loss based on multiple pieces of mixed feature information, multiple pieces of predicted probability distribution information, multiple pieces of predicted label information, multiple true labels, and multiple pieces of true intervention intensity information corresponding to the multiple data groups; The initial detection model is trained according to the total loss to obtain the target detection model.

2. The road crack detection method based on causal decoupling according to claim 1, characterized in that: The first road image is obtained by: The original road image is subjected to brightness distortion according to a brightness adjustment parameter to obtain the first road image, and the brightness adjustment parameter is used as the true intervention intensity information.

3. The road crack detection method based on causal decoupling according to claim 1, characterized in that: The first road image is obtained by: The original road image is texture-smoothed using a Gaussian pyramid to obtain the first road image, and a standard deviation of a filter used in the Gaussian pyramid is used as the true intervention intensity information.

4. The road crack detection method based on causal decoupling according to claim 1, characterized in that: The initial detection model includes an initial feature extractor, an initial variational autoencoder, and an initial classifier; the inputting the multiple data groups into the initial detection model for processing to obtain multiple mixed feature information, multiple predicted probability distribution information, and multiple predicted label information corresponding to the multiple data groups includes: Performing feature extraction on each of the data groups using the initial feature extractor to obtain image feature information corresponding to each of the data groups; Using the initial variational autoencoder to perform feature decoupling on the image feature information corresponding to each of the data groups, to obtain causal feature information and mixed feature information corresponding to each of the data groups; The initial classifier is used to perform classification detection on the causal feature information corresponding to each of the data groups to obtain the predicted probability distribution information and predicted label information corresponding to each of the data groups.

5. The road crack detection method based on causal decoupling according to claim 1, characterized in that: The determining of the total loss according to the multiple mixed feature information, the multiple predicted probability distribution information, the multiple predicted label information, the multiple true labels, and the multiple true intervention intensity information corresponding to the multiple data groups includes: Determining a distribution consistency loss based on a plurality of predicted probability distribution information corresponding to the plurality of data groups; determining background intervention loss based on a plurality of confounding feature information and a plurality of true intervention intensity information corresponding to the plurality of data groups; Determining a classification loss based on a plurality of predicted label information and a plurality of true labels corresponding to the plurality of data groups; The total loss is determined according to the distribution consistency loss, the background intervention loss and the classification loss.

6. The road crack detection method based on causal decoupling according to claim 5, characterized in that: The predicted probability distribution information corresponding to each of the data groups includes an original probability distribution corresponding to the original road image and a first probability distribution corresponding to the first road image; and determining the distribution consistency loss based on the multiple predicted probability distribution information corresponding to the multiple data groups includes: Evaluate the difference between the original probability distribution and the first probability distribution corresponding to each data group by using the maximum mean difference loss function to obtain a first loss corresponding to each data group; The distribution consistency loss is determined according to a plurality of first losses corresponding to the plurality of data groups.

7. The road crack detection method based on causal decoupling according to claim 5, characterized in that: The mixed feature information corresponding to each data group includes the original mixed feature corresponding to the original road image and the first mixed feature corresponding to the first road image; The determining of the background intervention loss according to the multiple pieces of mixed feature information and the multiple pieces of real intervention intensity information corresponding to the multiple data groups includes: Determining feature difference information corresponding to each data group according to the original confounding feature and the first confounding feature corresponding to each data group; Using a multi-layer perceptron to process the feature difference information corresponding to each of the data groups, to obtain the predicted intervention intensity information corresponding to each of the data groups; Evaluate the difference between the predicted intervention intensity information and the actual intervention intensity information corresponding to each data group using an L1 norm loss function to obtain a second loss corresponding to each data group; The background intervention loss is determined according to a plurality of second losses corresponding to the plurality of data groups.

8. An electronic device, characterized in that: The electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the method according to any one of claims 1 to 7 when executing the computer program.

9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Remote sensing image cross-domain classification method based on interpretable deep learning

    CN113537317A

  • Industrial system intelligent fault diagnosis system and method thereof

    CN116520806A