Dingping Chen ,Zhiheng Zhu ,Jinyang Fu,3 and Jilin He,⋆
1College of Mechanical and Electrical Engineering,Central South University,Changsha,410083,China
2Department of Geotechnical,Guangdong Hualu Transportation Technology Company Limited,Guangzhou,510000,China
3National Engineering Research Center of High-Speed Railway Construction Technology,Changsha,410075,China
ABSTRACT The detection of crack defects on the walls of road tunnels is a crucial step in the process of ensuring travel safety and performing routine tunnel maintenance.The automatic and accurate detection of cracks on the surface of road tunnels is the key to improving the maintenance efficiency of road tunnels.Machine vision technology combined with a deep neural network model is an effective means to realize the localization and identification of crack defects on the surface of road tunnels.We propose a complete set of automatic inspection methods for identifying cracks on the walls of road tunnels as a solution to the problem of difficulty in identifying cracks during manual maintenance.First,a set of equipment applied to the real-time acquisition of high-definition images of walls in road tunnels is designed.Images of walls in road tunnels are acquired based on the designed equipment,where images containing crack defects are manually identified and selected.Subsequently,the training and validation sets used to construct the crack inspection model are obtained based on the acquired images,whereas the regions containing cracks and the pixels of the cracks are finely labeled.After that,a crack area sensing module is designed based on the proposed you only look once version 7 model combined with coordinate attention mechanism(CAYOLO V7) network to locate the crack regions in the road tunnel surface images.Only subimages containing cracks are acquired and sent to the multiscale semantic segmentation module for extraction of the pixels to which the cracks belong based on the DeepLab V3+network.The precision and recall of the crack region localization on the surface of a road tunnel based on our proposed method are 82.4%and 93.8%,respectively.Moreover,the mean intersection over union(MIoU)and pixel accuracy(PA)values for achieving pixel-level detection accuracy are 76.84%and 78.29%,respectively.The experimental results on the dataset show that our proposed two-stage detection method outperforms other state-of-the-art models in crack region localization and detection.Based on our proposed method,the images captured on the surface of a road tunnel can complete crack detection at a speed of ten frames/second,and the detection accuracy can reach 0.25 mm,which meets the requirements for maintenance of an actual project.The designed CA-YOLO V7 network enables precise localization of the area to which a crack belongs in images acquired under different environmental and lighting conditions in road tunnels.The improved DeepLab V3+network based on lightweighting is able to extract crack morphology in a given region more quickly while maintaining segmentation accuracy.The established model combines defect localization and segmentation models for the first time,realizing pixel-level defect localization and extraction on the surface of road tunnels in complex environments,and is capable of determining the actual size of cracks based on the physical coordinate system after camera calibration.The trained model has high accuracy and can be extended and applied to embedded computing devices for the assessment and repair of damaged areas in different types of road tunnels.
KEYWORDS Road tunnel crack inspection;crack area sensing;multiscale semantic segmentation;CA-YOLO V7;DeepLab V3+
The total distance of road tunnels exceeded 20,000 km in China,and this distance continues to increase rapidly.Due to structural changes in the lining rock,temperature variations,and irregular structures,several types of crack defects,such as longitudinal,transverse,and circumferential cracks,are generated on the wall of the road tunnel.These defects in road tunnel walls will continuously expand and extend,eventually leading to tunnel collapse and severe water seepage accidents [1].Keeping road tunnels in good working order is important for both safe driving and economic/social development purposes.To do so,it is necessary to carry out periodic surveys to collect data on the conditions of the tunnels.Based on the data collected,important decisions are made regarding the appropriate techniques to be used for the rehabilitation of tunnel surfaces.Inspecting and repairing these crack defects has become one of the most critical tasks in the maintenance of road tunnels[2].As a result,the concept of‘intelligent inspection and repair technology’has been proposed,resulting in the gradual emergence of various advanced and innovative crack inspection technologies in road tunnels[3–5].
Currently,widely used crack detection methods include ultrasonic detection methods,optical fiber sensing detection methods,acoustic emission detection methods and image detection methods,acoustic emission detection methods and image processing detection methods and image processing detection methods [6].With the development of computer science and digital image processing technology,image detection methods have become the main direction of research and have achieved certain results.In recent years,through the joint efforts of many researchers at home and abroad,digital image processing and detection technology has achieved some results in bridge crack detection and pavement crack detection.Several traditional image processing methods,such as edge detection[7],grayscale thresholding [8],seed growth [9],wavelet transform [10] and characteristic evaluation in the frequency domain[11],have been used to extract and detect cracks based on images captured on road surfaces.However,traditional algorithms have low accuracy when applied to crack detection in complex backgrounds and are far from meeting the requirements of crack images with rich detail.With the rapid development of artificial intelligence and image processing technology,methods based on deep learning have been applied to crack detection [12–14].Among them,convolutional neural networks are the most prominent approach[15].Crack locations and morphology are identified and extracted by deep learning-based target inspection algorithms and semantic segmentation approaches[16,17].However,most of these studies have focused on pavement crack detection and segmentation,and there is a lack of related research on surface crack detection in road tunnel environments[18,19].
Several studies related to the application of image processing techniques to achieve crack detection on tunnel surfaces have been proposed[20,21].These studies have largely focused on the localization and detection of tunnel cracks in conventional environments.For example,a novel data augmentation method based on generative adversarial networks combined with a target detection method is used to realize the problem of crack detection in tunnel linings,which solves the problems of insufficient data samples and low detection efficiency in deep learning-based crack detection methods for tunnel linings[22].A method for fusing information from three-dimensional light detection and ranging and azimuthal tilt-zoom camera systems was proposed and used to realize the problem of crack detection in tunnel linings[23].Due to the lack of research on the location and assessment of cracks in road tunnel environments,the application of related technologies in the field of defect inspection and rehabilitation of road tunnels is limited.Notably,crack detection on the surface of road tunnels can be disrupted by many factors,as shown in Fig.1.As shown in Fig.1,a road tunnel is filled with various electrical devices and signs,making wall fissures in the entire image smaller and more challenging to locate via the human eye.Images with tunnel cracks are manually annotated with the area where the cracks are located for tunnel crack recognition,and a pixel-level calibration approach is used to determine the exact geometry of the cracks in the image.These labeled data provide ground truths for the calibration and inspection of tunnel crack areas.
Figure 1: Images captured on the surface of a road tunnel with different backgrounds:(a)Firebox;(b)Firebox and electrical boxes;(c)Colorful directional signs;(d)Colorful stripes
To train a well-performing deep neural network for crack detection,the quality and quantity of the training data are key factors.However,only a small portion of the captured images in the acquired road tunnels contain cracks of different morphologies,which in turn leads to the performance of the trained deep neural network not being able to meet the actual detection requirements due to the imbalance in the categories of the training data and insufficient labeled fault samples [24].Current solutions can be divided into three categories:Over-and undersampling[25],cost sensitivity[26],and sample generation methods [27].Over-or undersampling is the most straightforward solution and takes the least amount of time;however,it is prone to over-or undersampling.Costsensitive methods reallocate weights of the loss functions to avoid misclassifications of small-scale samples.However,it is still difficult to improve the performance of models for crack detection well using one of the individual methods.Therefore,acquiring a large number of high-quality images containing defects such as cracks taken at different angles and under different lighting conditions is a prerequisite for training a well-performing model for crack detection.Constructing a crack detection dataset based on these acquired images is the first task in training a crack localization and detection network with excellent performance.In addition,the use of two methods,data augmentation and image enhancement,can improve the prominence of cracked regions and generate additional samples containing defects such as cracks.Data augmentation methods can improve the accuracy and stability of object detection by transforming existing data to generate new samples,especially when transferring the model to a new dataset [28].Geometric transformation of the original image,such as rotation,flipping,scaling,cropping and translation,is the most commonly used method for data augmentation.Image enhancement algorithms,such as histogram equalization,the wavelet transform,the retinex algorithm and the partial differential equation,can further improve the performance of deep learning networks[29–31].For the above reasons,constructing a high-resolution image dataset of road tunnel surfaces and designing corresponding data augmentation and enhancement algorithms to improve the detection performance of deep networks are the primary tasks.
Eliminating interference from complex backgrounds in road tunnels to accurately localize crack areas in images of road tunnel surfaces is a necessary prerequisite for accurate crack detection.A large amount of electrical equipment,firefighting equipment and directional signs are usually mounted on the walls of road tunnels due to the need for vehicular traffic.These objects are more prominent in the walls of road tunnels and have varying degrees of influence on the accuracy of crack detection.The object detection method enables precise localization of crack areas on images taken from the surface of road tunnels,such as faster region based convolutional neural network (Faster R-CNN)[32],the you only look once (YOLO) algorithm [33],spatial pyramid pooling networks (SPPNet)[34],cascade region based convolutional neural network (Cascade R-CNN) [35],and region-based fully convolutional network(R-FCN)[36].A series of object detection methods that directly predict the centroid and critical corner points of a target have been proposed and have greatly improved the real-time performance of the algorithms[37–39].The accuracy of object detection is affected by the size of the labeled data,the feature fusion strategy,the structure of the object detection network and the computation of the loss function [40–43].These methods have certain potential for use in the localization of cracks in road tunnels.However,there is a lack of research on the localization of crack regions in road tunnel scenarios,and how to improve the existing object detection algorithms to achieve accurate localization of crack regions is still a challenging problem.
The large variation in the morphology and number of cracks present in the walls of road tunnels makes it difficult to provide the information needed for repair by simply localizing their area.Achieving pixel-level detection of cracks of different widths and morphologies in the walls of road tunnels is a necessary prerequisite for defect repair in road tunnels.Semantic segmentation algorithms are commonly used to achieve accurate separation of a target object from the background in an image [44,45].Fully convolutional networks (FCNs) are the first completely convolutional networks for end-to-end prediction between pixels and can be utilized for semantic segmentation tasks between targets and backgrounds [46].Subsequently,several classical semantic segmentation networks,including u-shaped network (U-Net) [47],SegNet [48],pyramid scene parseing network(PSPNet)[49],and DeepLab[50],were developed.DeepCrack is a new model for crack segmentation that uses deep hierarchical neural networks and is based on a novel convolutional neural network(CNN) for pixel-level segmentation of cracks [51].A guide filter based on guided feathering is used to achieve final referential prediction and to remove noise in low-level prediction [52].As a result,semantic segmentation methods also have great potential for application in the field of crack detection in road tunnels.It is feasible to determine whether a crack is present in an image by assigning a label to each pixel that constitutes the input image.The study of semantic segmentation algorithms applicable to crack morphology extraction is key to achieving accurate crack detection at the pixel level.
Overall,the main development goals in crack inspection technology are to obtain higher quality images of road tunnel surfaces,locate crack regions in complex environments of road tunnels and precisely inspect crack morphologies.We propose surface crack location and inspection methods based on crack area sensing and multiscale semantic segmentation to address the shortcomings of conventional crack detection techniques in road tunnels.First,we designed a device that can automatically capture high-quality images of road tunnel walls.Moreover,using this equipment,photographs of the wall surfaces in road tunnels are acquired from various angles,and a crack defect dataset is generated.Then,a carck area sensing module for pinpointing the position of cracks was devised and implemented using the proposed CA-YOLO V7 network as the foundation.Finally,the improved DeepLab V3 (DeepLab V3+) algorithm is designed to precisely inspect the pixels belonging to the regions of cracks.The proposed method is highly important for efficiently and rapidly detecting cracks in road tunnels.The shortcomings of the existing methods and the advantages of our proposed method are compared in Table 1.The proposed model is innovative and based on the combination of deep target recognition and semantic segmentation algorithms to achieve accurate identification and pixel-level extraction of crack regions on the surface of road tunnels.On the basis of the traditional deep target recognition network based on YOLO V7,its performance in recognizing tiny crack regions is improved by incorporating the coordinate attention mechanism,which enhances the network’s recognition ability in complex backgrounds.Moreover,the segmentation speed of crack regions in road tunnel surface images is improved by modifying the structure of the feature extraction module in the DeepLab V3 network.Compared with existing methods,our proposed method is able to achieve accurate crack localization and pixel-level segmentation in road tunnels,outperforming existing methods.In particular,the extraction of the pixels belonging to the cracks in the image based on the semantic segmentation model can accurately reveal the location and morphology of the cracks on the wall in the current scene.This information enables the conversion of the pixel extraction results of a crack into the actual width and length of the crack based on the resolution and calibration of the equipment from which the image was captured,thus providing guidance for further assessment and repair.
Table 1: Comparison of the advantages and disadvantages of different methods for realizing crack detection
The techniques presented in this paper directly address the practical need for automated and accurate detection of surface cracks in road tunnels.The proposed method can be applied to mobile computing devices (e.g.,cell phones) to enable rapid inspection,defect localization,and repair guidelines in road tunnels.Based on the proposed technique,the original large-area restoration process can be refined to a very small area,thus avoiding the problems of inefficiency,subjectivity,misrepair and leakage in the manual restoration process.
In our proposed detection framework,there are three main stages involved: Image acquisition and labeling,crack area sensing module generation,and multiscale semantic segmentation module generation.A series of small steps are included in each stage.Fig.2 shows the framework and operation processes used in this paper.The modeling and simulation of the actual model are performed using certain assumptions and modifications.These assumptions contain the following main points:1.The morphology of the cracks in the wall is assumed to be irregular and curved.2.Possible breakages and defects in road tunnels are assumed to be recognizable by cracks in walls.3.Objects mounted on the surface of road tunnels and painted markings are analyzed based on the actual conditions in the road tunnel.4.Cracks on the surface of road tunnels are usually elongated,which makes them difficult to recognize in images of road tunnel surfaces based on unified image feature extraction algorithms.These assumptions,obtained after analyzing the crack detection process in actual road tunnels,are the basis for constructing an accurate defect detection model.
In the first stage,the design of equipment for the easy acquisition of images of walls in road tunnels is a prerequisite for the inspection of cracks in tunnels.The designed high-speed camera equipment is capable of capturing images of the surface of a road tunnel from different angles.Based on the designed equipment,images of a large number of tunnel surfaces from different angles are acquired over a period of time.These images with crack defects need to be manually screened and labeled by experienced engineers.Subsequently,the crack detection dataset in the tunnel is generated by merging the normal images and the annotated images containing the crack lesions.A training and validation set can be constructed based on the acquired images.Finally,image annotation is a key step in labeling the areas of cracks in tunnel images;thus,the model is used for training.Fine-grained labeling of cracks based on experienced engineers is able to obtain training targets that can guide the network to achieve extraction and detection of crack regions.
Figure 2: Overall technical thinking and implementation framework for accurate crack detection in road tunnels
In the second stage,it is difficult to pinpoint the areas where the cracks are located in the complex environment of the road tunnel.The network for locating cracked areas needs to be able to detect all areas containing cracks in the tunnel walls as much as possible.A well-performing crack area localization model must be designed and trained based on a training set of already labeled images.The YOLO v5 model is chosen as the base network for identifying crack regions.The specific implementation steps are as follows:First,the input image is transformed based on data enhancement while being divided intoS×Sgrids.Each grid is responsible for detecting objects whose centers are located in that grid.Immediately afterwards,the location information,confidence and category are predicted for different targets in each grid for classB,and a total ofS×S×Bbounding boxes are obtained.Therefore,forNclasses of target recognition tasks,each network outputsS×S×(5×B+N)recognition results containing different probabilities.
The proposed data augmentation strategy can generate more types of images based on existing crack images and is an effective way to enhance the performance of area localization models of cracks.In the crack area sensing module,the images containing the cracks are located and cut into subimages for output.Finally,nonmaximal suppression (NMS) is used to remove the less probable bounding boxes,and the highest scoring bounding box is used to compute the loss function.The bounding box with the highest score is involved in the calculation of the loss function.In this paper,the basic YOLO v5 model is improved to enhance its performance in detecting cracked regions in complex backgrounds.
In the third stage,our emphasis is on acquiring the pixels of the crack in the subimages.First,the subimages are enhanced using the histogram equalization method to improve the pixel contrast in the area that contains the cracks.Then,a multiscale semantic segmentation network is designed and used for pixel-level segmentation during crack inspection.A successful method must be able to precisely distinguish which pixels belong to the cracks and which pixels belong to the backgrounds in all subimages.Finally,the pixels belonging to the cracks are superimposed on the original road tunnel surface images,thus enabling accurate inspection of cracks in natural scenes.The user can obtain specific real-time information about the existence and location of cracks on the current road tunnel surface.
For road tunnel crack identification,the capacity to quickly and autonomously gather tunnel photos from various angles has emerged as a primary need.The process of image acquisition in a tunnel is prone to interference from variations in shooting angle and light changes because road tunnel fracture identification requires capturing images from various angles using typical cameras.We developed a new device that can automatically carry out multiangle image acquisition to acquire photographs in tunnels more efficiently.The designed device consists of camera mounts,a servo motor,a power supply,a control system,and a high-brightness light source.The camera used is an industrial single-lens reflex(SLR)camera with an autozoom lens and an image resolution of up to 6000 ∗4000.The developed equipment can automatically obtain multiple tunnel pictures at preset intervals and angles and automatically achieve light compensation following ambient lighting conditions by setting the interval and modifying the angle.Engineers may swiftly acquire high-quality photos of tunnels using specified tunnel surface image acquisition equipment,providing image information for detecting faults in tunnels.
Based on the designed image acquisition equipment,high-resolution images from different angles in a highway tunnel can be quickly captured and stored.These images will be able to completely cover any part of the curved surface of the tunnel,thus ensuring that all the cracks can be localized and identified.Moreover,the developed equipment drastically reduces the difficulty and uncertainty of manual image acquisition and enhances the accuracy and stability of the detection results.More than 60,000 images of the surface of the road tunnels were captured,and based on the field,engineers were able to determine whether they contained cracks.These acquired images provided a sufficient source of data for training a well-performing crack region localization and detection network.
3.2.1 Framework of the Proposed CA-YOLO V7 Network
The proposed crack area sensing module is utilized to precisely determine the crack’s location and to remove other items and signs from the image’s interference.The you only once V7 (YOLO V7)network is used as a base object detection backbone to locate crack areas and remove background interference[53].Based on the excellent inspection performance and efficiency,the YOLO V7 network combined with the attention mechanism (CA-YOLO V7) is employed in this module to precisely localize the fracture area,as shown in Fig.3.
The CA-YOLO V7 network consists of a feature extraction layer,a feature fusion layer,and a prediction layer.The feature extraction layer consists of a general convolution layer,an extended efficient layer aggregation network(E-ELAN),a transition module,and a coordinate attention(CA)module,as shown in Fig.3,part 1.In the general convolution module,the size of the picture feature map is decreased using a series of convolution techniques that combine two-dimensional convolution,batch normalization,and sigmoid linear unit (SiLU) activation functions.This set of convolution operations is abbreviated as CBS.The extended efficient layer aggregation network(E-ELAN)module is based on grouped convolution and achieves the fusion of image features at different scales through disambiguation and fusion.The transition module implements downsampling of the feature map by concatenating the two operations of convolution and pooling.Finally,the coordinate attention(CA)module is used to capture the remote dependencies between pixels along both the X-and Y-axes for better image feature extraction.
Figure 3: Specific structure of the proposed crack area sensing module
The feature fusion layer consists of one spatial pyramid pooling with contextual separability and part-based correlation (SPPCSPC) module,four E-ELAN modules,four general convolution modules,two upsampling modules and two transition modules,as shown in Fig.3,part 2.In this layer,the SPPCSPC module is used to enlarge the receptive field so that the model can adapt to images of different resolutions.The different scales of image feature output from the feature extraction network are fed into this layer to achieve feature fusion.The fusion of feature maps of different scales can maximize the use of spatial information from feature maps to better extract the target features and achieve the precise positioning of targets of different sizes.
The final output prediction layer is responsible for providing specific information about the location of the target to be detected,as shown in Fig.3,part 3.In this layer,the bounding box loss calculation and nonmaximum suppression (NMS) method are used to filter the target localization area and predict the target location.
3.2.2 The Coordinate Attention Mechanism
Using the current YOLO V7 network to locate cracks in a tunnel panorama precisely is challenging because of the limited area filled by cracks in the panorama image.To improve the ability of the target inspection network to locate the crack area precisely,we add the coordinate attention method to the YOLO V7 network to improve its ability to identify small targets,as shown in Fig.4[54].The tunnel surface image generates two independent directional perceptual feature maps in the coordination attention module based on one-dimensional global average pooling operations in the vertical and horizontal directions.We support a set of input image feature tensorsX=[x1,x2,...,xc]∊RC×H×W,and the corresponding feature tensor obtained after feeding it into the coordinate attention module isY=[y1,y2,...,yc].The output of thec-th channel at heighthby average horizontal pooling is defined as follows[54]:
whereWis the image pixel dimension in the vertical direction output.xcis the feature vector of the image on channelcinput in the attention mechanism module.is the output vector associated with theCchannel in the vertical direction output.Similarly,the output of thec-th channel at widthwby average vertical pooling is defined as follows[54]:
whereHis the image pixel dimension in the horizontal direction output.is the output vector associated with theCchannel in the vertical direction output.
Figure 4: A coordinate attention module for object detection under spatial and channel fusion
The connectivity between pixels in the two directions of the input feature maps along the width and height of the image is captured by mapping the two attention weight maps that carry orientationspecific information into the two weighting matrices.Finally,the feature extraction network can be weighted to enhance its inspection performance for various crack sizes by merging the weight matrices of the two directions to generate a weight coefficient matrix matching the original input feature map pixel by pixel.The picture regions and channels associated with cracks in tunnel surface images with complicated backgrounds are improved with the integration of the YOLO V7 network and coordinate attention.By adding an attention mechanism,the applied target inspection network enhances the localization of minute fracture patches in panoramic images.A coordinate attention module that can simultaneously capture channel,direction,and position information is added to the chosen target inspection network,allowing the model to more accurately locate and identify fracture areas in panoramic images at different scales.
The subregions of the final panoramic area where the cracks are located can be precisely located and marked as anchor frames.The proposed YOLO V7 combined with coordinate attention can achieve precise localization of crack regions in complex backgrounds and establish the basis for the next step of crack multimorphological pixel-level segmentation.
3.2.3 Loss Function
In the object detection task,the intersection over union (IOU) loss function is used to evaluate the similarity between the predicted and real regions of the object in the current image.The formula for the IOU is defined as follows:
where A is the area of the predicted target in the image and B is the area of the real target in the image.When the IOU is used to calculate the model loss,the model cannot calculate the gradient when there is no intersection between the predicted region and the objective region;thus,the model cannot be optimized.Therefore,the generalized intersection over union(GIOU)function is used to address the shortcomings of the traditional IOU function in the calculation of target inspection loss,which is defined as follows[55]:
where C is the smallest convex closed box containing A and B.
The binary cross-entropy loss (BCEloss) function is used to calculate the loss values while classifying different targets in the YOLO V7 network.The BCEloss is calculated as shown below:
whereOij∈[0,1] denotes the presence or absence of the classjtarget in theithpredicted target bounding box.cijrepresents the value at which theithtarget bounding box predicted by the network contains thejthclass of objects.is the confidence ofcijobtained by the sigmoid function.Npositionis the number of positive samples.
The target discrimination loss values of the positive samplesLobjectare obtained based on the BCEloss calculation function.Finally,the calculation of the total loss values for localization and classification of the YOLO V7 network is defined as follows:
whereLossis the final loss function of the YOLO V7 network,Llossis the weighted sum of the classification loss values,GIOUlossis the localization loss value,andLobjectis the target discrimination loss value.Based on the gradient optimization method of minimizing LOSS values,different classes of target regions in the image can be precisely located based on the YOLO V7 network.
3.3.1 Subimage Enhancement Based on Brightness-Preserving Histogram Equalization
To better extract the pixels in the crack region,the subimages containing the cracks are enhanced based on a contrast-limited adaptive histogram equalization(CLAHE)method[56].First,the initial input image is segmented into many overlapping subimages to obtain several subregions of the original image.In the second step,the value of the cumulative distribution function(CDF)of each subregion is calculated based on the histogram of its image.In the third step,based on the value of the cumulative distribution function of each subimage,the value of its equalization mapping function is calculated.The equalization-based mapping function is able to map the gray level of the current region to a new value for local contrast enhancement.To avoid overenhancement and noise amplification,the maximum value of the equalization mapping function for each local region should not exceed the set threshold.In the fourth step,each pixel in each subimage is enhanced based on its acquired equalization mapping function.Finally,the enhanced subimages are recombined to finally output the adaptively enhanced image.The original image containing the cracks and the enhanced image based on CLAHE are shown in Fig.5.
Figure 5: The original and enhanced images based on the CLAHE algorithm:(a)original image;(b)enhanced image based on the CLAHE algorithm
As shown in Fig.4a,the textures of the cracks in the original image are blurred,and manual discrimination is difficult.This leads to difficulties in segmenting cracks at the pixel level and thus reduces the accuracy of crack inspection.In Fig.4b,the pixel region to which the crack belongs is significantly enhanced based on the brightness preserving bi-histogram equalization(BBHE)method,thus helping to improve the performance of pixel-level segmentation of cracks.
3.3.2 Crack Semantic Segmentation Module
To extract the morphological characteristics of the cracks,we conduct pixel-level segmentation based on the localized crack region in this module.The crack morphological features are extracted via pixel-level segmentation of the cracks via a lightweight DeepLab V3 network on the localized crack region subimages,as shown in Fig.6.
The widely used DeepLab V3 network solves the object segmentation problem well at different scales based on the multiscale null convolution method and upsampling step.However,the backbone network of DeepLab V3 mainly adopts Resnet50 and a deeper network structure;consequently,its segmentation efficiency cannot meet the requirements of real-time tunnel crack inspection.In our study,the pixel-level segmentation task of crack regions is applied using an improved DeepLab V3(DeepLab V3+)network that is more suited to crack feature extraction.In the DeepLab V3+network,the feature extraction module in DeepLab V3 is swapped out for a lightweight network,dramatically lowering the number of network parameters and increasing the inspection effectiveness.
Figure 6: Specific structure of the proposed multiscale semantic segmentation module: (a) ASPP module;(b)inverted residual module;(c)structure of IR×X
The designed feature extraction module is based on the convolutional combination of inverse residual structures with linear bottlenecks to extract fracture features.The inverted residual (IR)module with a linear bottleneck is described in detail in Fig.5,part(b).In the inverted residual module,the input image is first up dimensioned using 1×1 convolution,then the features are extracted by 3×3 channel-by-channel convolution,and finally down dimensioned using 1×1 convolution.In our designed feature extraction network,the subimages containing cracks are subjected to four inverse residual convolution group modules to achieve feature extraction.The output feature map is first extracted from the shallow crack feature vector after 1 × 1 convolution,batch normalization,and the parametric rectified linear unit (PReLU) based nonlinear activation function.The same input feature map also reduces the image dimension by 14 inverted residual modules.A multiscale dilated convolution operation extracts deep crack features at various scales.Five sets of dilated convolution processes with multiple sampling rates are included in the atrous spatial pyramid pooling (ASPP)(Fig.5,part(a)) module,which allows parallel sampling of the fracture image characteristics under various sensory fields.Afterward,the fused feature map is restored to the exact resolution of the original image after the upsampling operation,thus realizing the mapping of the crack region on the original map.
With respect to the proposed DeepLab V3+network,the use of an inverse residual structure combined with linear bottlenecks can improve feature extraction and reduce information loss.With the proposed DeepLab V3+network,the shallow and deep image features of the cracks are extracted and connected based on the different structures to obtain the fused feature map.A precise pixel-level segmentation of the crack area allows for separating the pixel points attributed to the crack from those attributed to the background.
To create a crack detection dataset for training and evaluating the crack region localization and detection network,4000 photographs of tunnels with normal cracks were selected from the total captured images.A number of experienced tunnel maintenance engineers confirmed that the selected images were correct and that the areas to which the cracks belonged were initially labeled.In the created dataset,2000 images are typical tunnel surface images,while the remaining 2000 images contain cracked lesions with different morphologies and contexts.The complete dataset is available to readers upon request.
The process of locating and detecting cracked areas based on the proposed two-stage strategy requires fine-grained labeling,as shown in Fig.7.The process of labeling all the images was implemented by several computer engineers experienced in image labeling using a tool named labeling.Therefore,the crack areas on the tunnel surface images are finely labeled based on experienced engineers to train and validate the crack area localization and accurate inspection models.The process of labeling cracks on the tunnel surface image is divided into two stages.In the first stage,the location of the cracks is given on the tunnel surface image based on the bounding box,as shown in Fig.7a.In the second stage,pixel-level fine-grained labeling methods are used to determine the pixel points attributed to the cracks,as shown in Fig.7b.We marked the images under the guidance of experienced engineers who have worked on crack repair.The labeled bounding boxes and the pixel information attributed to the cracks are stored and used to train the crack region localization and inspection network,respectively.If there are no crack defects in the tunnel surface image,then no marking is performed,and the image is classified as normal.
Figure 7: Results of crack labeling on images of a road tunnel with cracks on the surface:(a)a crack region labeled with a bonding box;(b)pixel-level labeling of cracks
The CA-YOLO V7 network and DeepLab V3+must be trained based on the calibrated image data in our proposed two-stage crack inspection strategy.The training set of the model was composed of 1600 images without cracks and 1600 images with cracks that were labeled.The remaining 400 images of each class were used to construct a validation set to test the performance of the model.The best crack inspection models were obtained based on the created training set using a 5-fold cross-validation technique.
The training process is performed on four NVIDIA GTX-3090 GPUs and on the CUDA 11.0 and cuDNN 8.0.3 environments.The implementation code of our proposed method is programmed in PyTorch 1.8.0 based on the Python 3.8 environment.In the panoramic crack area sensing module,the input resolution of the images in the CA-YOLO V7 network directly affects the localization accuracy of the cracked regions in the tunnel images.A resolution that is too large will directly affect the efficiency of crack area localization,while a solution that is too small will result in the crack area not being precisely located.In addition,the localization results of the fracture region are influenced by the screening results of the enormous number of candidate localization frames of the CA-YOLO V7 network.The screening results of the candidate locus frames are determined by setting the threshold value in the nonmaximum suppression algorithm of the CA-YOLO V7 network.In the crack semantic segmentation module,the pixel-level segmentation accuracy of tunnel cracks is also affected by the learning rate and the input image resolution in the proposed DeepLab V3+network.Therefore,the accuracy and efficiency of crack inspection models for tunnel images are influenced by these hyperparameters.These hyperparameters need to be determined during the training process of the model to determine their optimal values.
The optimal settings of the critical hyperparameters in the CA-YOLO V7 network and DeepLab V3+network in two-stage inspection are shown in Table 2.The set of selected candidate values of key hyperparameters is obtained by setting a specific range of values and sampling based on a fixed step.The performance of the model for crack inspection and segmentation under different hyperparameter settings is obtained based on the training set using a 5-fold cross-validation method.The optimal inspection performance of the proposed method can be obtained based on the hyperparameter search processes of the CA-YOLO V7 and DeepLab V3+networks.The early stopping strategy is used to limit model overfitting during training.The adopted strategy is implemented as follows: After 10 calendar elements of training,if the model’s mAP on the validation set does not improve or even decreases,the model stops training early.
Table 2: Optimal parameter settings used in the proposed method
4.3.1 Results of Crack Area Localization
Because the crack area occupies such a small portion of the tunnel surface,precisely positioning the cracked area on the tunnel surface image is extremely difficult.Moreover,the tunnel contains fire hydrants,cue signs,water pipes,electrical lines,and other supporting equipment.The tunnel constitutes a complex background in locating crack regions.The random appearance of these objects in the tunnel results in significant differences in the tunnel surface images.All these factors make determining the exact location of the broken region extremely difficult.
The localization of the crack regions in our research is based on the proposed CA-YOLO V7 network.A comparison of the performances of the different models in terms of achieving localization of the cracked region is shown in Table 3.As shown in Table 3,our proposed model achieves optimal performance with a prediction accuracy of 82.5%and a recall of 93.8%.Compared with other models,our proposed model has the shortest inference time of 20.9 ms during practical application.In particular,the YOLO V7 network outperforms both the YOLO V5s and YOLO V6 networks in terms of localization accuracy and recall of cracked areas in road tunnels.This is because parts of the network structure,data enhancement methods and activation function performance have been optimized in the YOLO V7 network to improve model representation and detection accuracy.In addition,by adding the coordinate attention mechanism,the performance of the original YOLO V7 network is further enhanced to obtain the optimal performance.Based on the proposed CA-YOLO V7 network,the time to realize single-frame image detection is drastically reduced to only 20.9 ms.The above results indicate that the adopted YOLO V7 model combined with the coordinated attention mechanism significantly improves the performance.This illustrates that the attention module we employed enhances the ability of the network to acquire sensitive features of the cracks in the image well.The results based on the proposed method for locating the crack areas on the tunnel images in the test set are shown in Fig.8.As shown in Fig.8,it is exceedingly challenging to accomplish regional distinction of cracks based on manual observation of tunnel surface images.Moreover,the defect-induced cracks inside the tunnel have a remarkably similar shape to the cracks on the surface tiles of the tunnel.With our proposed CA-YOLO V7 network,the crack region features can be significantly enhanced based on the coordinate attention module.The area of cracks in the tunnel can be better focused based on the increased resolution of the input tunnel images in the CA-YOLO V7 network.
Table 3: Localization performance of crack regions in road tunnels based on different target detection networks
Figure 8: Localization results of crack areas in images acquired on the surface of road tunnels in different environments:(a)Firefighting equipment on the tunnel walls;(b)various types of nameplates on the tunnel walls;(c) different thicknesses of pipes installed in the tunnel wall;(d) different color characteristics sprayed on the tunnel walls
4.3.2 Results of Fine Crack Detection
After locating the region of cracks in the tunnel surface image,the proposed DeepLab V3+semantic segmentation network is used to obtain pixel-level inspection results of cracks with different morphologies.The training process of the DeepLab V3+network and the MIoU values on the validation set are shown in Fig.9.
Figure 9: The loss and MIoU of the proposed DeepLab V3+model based on the training and validation sets:(a)the training and validation losses in the training process;(b)the validation MIoU in the training process
As shown in Fig.9a,the training loss of the proposed DeepLab V3+network gradually reaches stability after 120 rounds,and its value converges to approximately 0.17.Moreover,the validation loss is determined based on the validation set after each training process,and it gradually stabilizes at approximately 0.21 after 120 rounds of training.As shown in Fig.9b,the validation MIoU of the proposed DeepLab V3+network gradually tends to stabilize after 120 rounds of training,and its optimal value is 76.16.The optimal crack pixel-level segmentation performance of the proposed DeepLab V3+network is gradually obtained after 120 training sessions based on the given network parameters.
Based on the proposed two-stage crack localization and inspection strategy,images taken in real time in the tunnel can be fed into the trained CA-YOLO V7 and DeepLab V3+networks for crack localization and inspection,respectively.The crack localization and inspection results for the different scenarios in the tunnel are shown in Fig.10.As shown in Fig.10,the acquisition angle and distance of the tunnel surface images change to different degrees during the acquisition process.Moreover,there are different electrical devices and disturbances in different areas of the tunnel,such as the silhouettes in Fig.10a,different colored tiles in Fig.10b,power supply devices in Fig.10c,barricades in Fig.10d,broken tiles in Fig.10e,and light reflections in Fig.10f.Based on our proposed twostage crack inspection method,the crack regions are precisely located by the CA-YOLO V7 network,thus excluding the interference of various targets in complex backgrounds.The pixels corresponding to the cracks on the tunnel surface are accurately distinguished by the DeepLab V3+network,thus revealing the morphology of the cracks and the exact location of the cracks on the tunnel image.More importantly,based on our proposed method,some tiny cracks on the surface lining of road tunnels,which are difficult to distinguish with the naked eye,can also be detected.
A comparison of the accuracies of DeepLab V3+and other classical semantic segmentation models,such as FCN,UNet,DeepLab V3,PSPNet,and Lraspp,for pixel-level segmentation of cracked regions are shown in Table 4.The compared conventional semantic segmentation models are trained based on the subimages of the areas of cracks labeled in the training set.The validation MIoU values based on the trained DeepLab V3+and other compared models are calculated between the predictions and ground truth in the validation set.As shown in Table 4,our DeepLab V3+network outperformed all the other methods and achieved the highest MIoU of 76.84.The MIoU of the improved DeepLab V3+network compared with that of the original DeepLab V3 network improved from 73.81%to 76.84%.This indicates that our proposed feature extraction method for different forms of cracks on the tunnel surface has achieved good results.Moreover,the segmentation time for a singleframe image is greater than that of segmentation based on the UNet model,which reaches 20.3 ms.By comprehensively comparing the segmentation performance and time of the models,the proposed DeepLab V3+network achieves state-of-the-art results for the semantic segmentation of cracks.
Table 4: Comparison of crack detection results based on different models for images of road tunnel surfaces
The proposed method achieves high detection accuracy under different lighting conditions and backgrounds in road tunnels.Moreover,there are differences in the light and angle at which the images are captured in different areas of the tunnel.
The practical applicability of our proposed method for inspecting and repairing cracks in tunnels is directly determined by the recall rate when the cracked areas are located.Ensuring that all defects are detected as much as possible is the primary requirement for actual defect inspection and repair tasks.For this reason,we tested our proposed method and found that although its recall rate was 93.8%during the localization of cracked areas,it could not meet the requirement that all the cracked areas on the tunnel surface could be localized.However,this is because in a part of the cracked surface images,there is a part of the area where the tiny cracks are not precisely located.If an engineer notices fissures in the tunnel surface in the photograph,the entire surface is routinely looked at more closely.This shows that although our method cannot precisely locate all the defective areas of cracks on the tunnel surface,it is still beneficial in practice to help engineers achieve rapid inspection of crack defects in tunnels.
Our proposed method is based on the strategy of locating the crack region before realizing crack morphology extraction,which can significantly reduce the influence of interfering objects in road tunnels on the detection results.The proposed method has high accuracy and adaptability compared to the methods in other papers and can be applied to detect cracks accurately on the lining surface in road tunnels in any environment.The results of the inspection not only alert the technologist to possible areas of deterioration of the lining surfaces in the road tunnel but also enable a judgment to be made as to the cause of the cracks by the shape and length of the extracted cracks.Based on the size of the cracked areas detected throughout the tunnel and their possible causes,technical experts can evaluate the maintenance of the entire road tunnel in advance,thus providing an optimal maintenance program for the entire tunnel.Therefore,the proposed method enables rapid assessment of the existing conditions of the entire road tunnel surface,thus allowing efficient and rapid maintenance of road tunnels,improving maintenance efficiency and reducing maintenance costs.
Overall,our proposed method can successfully detect cracks on the surface of road tunnels in complex environments.The detection speed of the proposed method can reach 25 frames/second,which is able to meet the demand for automated detection of defects in actual highway tunnels.Based on the resolution and distance of the image acquisition,cracks larger than 0.5 mm in width on the tunnel surface can be localized and detected in the image.Moreover,based on the constructed dataset of disease detection in highway tunnels,it is possible to continue to carry out research on relevant detection methods to continuously improve the detection accuracy.The proposed method will be deployed on embedded devices in the next phase to automate the identification and detection of cracks.
We propose a two-stage method based on panoramic crack area sensing and multiscale semantic segmentation to develop an efficient and accurate tool for locating and detecting cracks in tunnel surfaces.A device capable of automatically acquiring images of a tunnel surface based on preset time intervals and angles is designed,and a large number of images of the actual tunnel surface are acquired.A predetermined number of tunnel surface pictures with cracks and uncracked tunnel surface images are chosen and produced as training and validation sets,respectively.First,in the panoramic crack area sensing module,the crack area is precisely located in the surface image of the tunnel based on YOLO V7 combined with coordinate attention.Second,in the multiscale semantic segmentation module,the pixels belonging to the cracks are identified based on the proposed DeepLab V3+network.Based on the designed tunnel surface image acquisition equipment and the accurate inspection method of cracks in two stages,the cracks on the tunnel surface are precisely located and detected for repairing defects in the tunnel.
The main innovative research results of this article are as follows:
1.A challenging issue is obtaining high-quality surface photographs from various angles in a tunnel.To solve this problem,we designed a device that automatically captures high-definition images of a tunnel surface based on arbitrary angles and time intervals.Moreover,we acquired a large number of tunnel surface images of actual road tunnels based on this equipment,reducing the errors and uncertainties of manual acquisition.
2.For the first time,we constructed a dataset containing various types of cracks based on images of the tunnel surfaces of the collected roads.Training and validation sets for crack localization and inspection tasks are constructed based on this dataset.The constructed dataset can be applied in defect inspection tasks for road tunnels and in the development of related equipment.
3.We propose a two-stage crack inspection method for road tunnel surfaces based on scenic crack area sensing and multiscale semantic segmentation.In the panoramic crack area sensing module,the YOLO V7 network is combined with coordinate attention and applied to the localization of crack regions.In the multiscale semantic segmentation module,the feature extraction module in the DeepLab V3 network is improved based on the inverse residual structure,while the multiple-scale dilated convolution operators are fused and used to extract the morphological features of the cracks better.The localization accuracy of the cracked areas in the tunnel surface was 81.9%,and the recall rate was 92.4%.The MIoU for pixel-level inspection of cracks in the tunnel surface is 76.84%.
4.Our method and corresponding software can be applied to the actual defect inspection process of road tunnels to reduce errors in the human inspection process.Moreover,the trained model can be deployed in an embedded system for automatic localization and inspection of road tunnel defects.
However,our proposed method still has several shortcomings.First,there are still some mislocalizations in the process of locating the area where the lining surface cracks are located in road tunnels.This is because the accuracy and recall of our proposed CA-YOLO V7 model cannot be optimized simultaneously.Therefore,to avoid missed detections in the crack region,the CA-YOLO V7 model will be optimized with recall as the main optimization index.This result indicates that some areas of suspected cracks on the road tunnel lining are also localized and need to be discriminated based on manual experience.In addition,some redundant pixels are still retained when extracting the crack morphology based on our designed DeepLab V3+network,so the results of crack extraction still contain some errors.These defects will be further optimized by continuously improving the performance of the method.
Finally,the accuracy of our crack inspection system increases as the number of acquired tunnel images increases.As the judgment and estimation accuracy improve,a complete automatic tunnel defect inspection system is established.
Acknowledgement:None.
Funding Statement:This work was financially supported in part by the Changsha Science and Technology Plan 2004081,in part by the Science and Technology Program of Hunan Provincial Department of Transportation 202117,and in part by the Science and Technology Research and Development Program Project of the China Railway Group Limited 2021-Special-08.
Author Contribution:The authors confirm contribution to the paper as follows:Dingping Chen:Data acquisition,Software,Writing-original draft.Zhiheng Zhu:Writing,Formal analysis,Methodology.Jinyang Fu:Investigation,Resources.Jilin He:Supervision.
Availability of Data and Materials:The data that support the findings of this study are available from the corresponding author upon reasonable request.
Conflicts of Interest:The authors declare that they have no conflicts of interest to report regarding the present study.
Computers Materials&Continua2024年4期