# Research on Restoration Algorithm of Tomb Murals Based on Sequential Similarity Detection

Authors: Wang Liu; Xiao Li; Fengjiao Wu
Journal: Scientific Programming
 (2021)

---

## Abstract

Considering the problems of fuzzy repair and low pixel similarity matching in the repair of existing tomb murals, we propose a novel tomb mural repair algorithm based on sequential similarity detection in this paper. First, we determine the gradient value of tomb mural through second-order Gaussian Laplace operator in LOG edge detection and then reduce the noise in the edge of tomb mural to process a smooth edge of tomb mural. Further, we set the mathematical model to obtain the edge features of tomb murals. To calculate the average gray level of foreground and background under a specific threshold, we use the maximum interclass variance method, which considers the influence of small cracks on the edge of tomb murals and separates the cracks through a connected domain labelling algorithm and open and close operations to complete the edge threshold segmentation. In addition, we use the priority calculation function to determine the damaged tomb mural area, calculate the gradient factor of edge information, obtain the information entropy of different angles, determine the priority of tomb mural image repair, detect the similarity of tomb mural repair pixels with the help of sequential similarity, and complete the tomb mural repair. Experimental results show that our model can effectively repair the edges of the tomb murals and can achieve a high pixel similarity matching degree.


---

## Body

## 1. Introduction

Ancient murals, as one of China’s most important cultural assets, offer a wealth of historical, cultural, and aesthetic information. They serve as an important carrier for China’s 5000-year civilisation [1]. The uncovered murals contain several ailments, such as fractures, fading, armoring, and other maladies because of natural weathering and man-made damage. The employment of digital image restoration technologies to help in the conservation of historical murals can minimize the difficulties of protecting ancient murals and the degradation caused by human causes. Cultural relics protection involves both preventative and rescue measures. The rapid expansion of national economic development is accompanied by a significant number of urban facilities. Because valuable cultural artefacts are frequently found, China’s principal cultural conservation method is “rescue protection” [2]. To prevent further degradation of cultural treasures that do not satisfy the requirements for on-site conservation, excavation and relocation protection are required. Tomb murals are one of the most well-known examples. Due to the effects of tomb collapse, water erosion, and tomb robber damage, uncovering and relocating murals to other locations for preservation is a better protective method. The environment was generally stable before the mural was removed from the tomb, but after the painting was removed, the storage environment altered drastically compared to the curtain chamber, resulting in a series of pathological issues in the mural [3].Deformity, displacement, deformation, fracture, crack, armor lifting, falling off, empty drum, caustic soda, mildew, and other issues occur in the preservation of the tomb paintings now housed at the Shaanxi History Museum. The number of tomb murals is vast, the demand for restoration is high, the work is complex, and the actual repair is tough, resulting in a long time between the excavation of most murals and meeting with most tourists [4]. As a result, how to improve the restoration impact of tomb murals has become a major study topic in this discipline, with a lot of work done and some promising results.Based on the paintings of the Yuan Dynasty Tombs at Hansenzhai, Xi’an, Jiang et al. [5] suggested a digital restoration approach. They examined the damage and types of paintings in Yuan Dynasty tombs in Hansenzhai from the perspective of the degree of image information loss and the link between the loss of information and known information. They also proposed a mural digital repair technique that combines human and automated repair, as well as a mural digital automatic repair algorithm that is based on picture blocks and sparse representation models. Finally, a section of sanletu on the west wall of the Hansenzhai corridor is chosen as a digital restoration example. Different scale discriminators have varying receptive fields that guide the generator by creating a global image view with much finer details. The notion of WGAN (Wasserstein GAN) is utilized to mimic the sample data distribution using EM distance to solve gradient disappearance or gradient explosion in GAN training. The algorithm’s network model is trained and evaluated on the CelebA, ImageNet, and place image datasets. The findings demonstrate that, when compared to prior models, the algorithm increases image restoration accuracy, produces more realistic corrected images, and is appropriate for multiple image repair. However, in the process of tomb mural restoration, the algorithm does not evaluate the influence of the actual surroundings on the restored image, which has certain limits.Tao et al. [6] proposed an image restoration algorithm based on edge features and pixel structure similarity. An adaptive repair template based on information entropy will then fill cracks and bad pixels in the Criminisi algorithm. Finally, the Drosophila optimization algorithm is introduced to reduce the image repair time. The experimental results show that the algorithm in this paper can achieve satisfactory repair effect and repair efficiency for different images, but the algorithm is slightly insufficient in processing pixels, which needs to be further strengthened. The experimental results show that the proposed algorithm can achieve satisfactory repair effect and repair efficiency for different images. However, the algorithm is slightly insufficient in processing pixels, which needs further improvements.In this paper, we propose a tomb mural restoration algorithm based on sequential similarity detection to cope with the aforementioned problems. By determining the gradient value of the tomb mural through the second-order Gaussian Laplace operator in LOG edge detection, we reduce the noise in the edge of the tomb mural and enhance the smoothness of the edge of the tomb mural. Also, we set up the mathematical model of the features of tomb murals to obtain the edge features of tomb murals. The maximum interclass variance method calculates the average gray level of foreground and background under a specific threshold and considers the influence of small cracks on the edge of tomb murals. The cracks are separated by a connected domain labelling algorithm and open and close operations to complete the edge threshold segmentation of tomb murals. The priority calculation function is used to determine the damaged tomb mural area, calculate the gradient factor of edge information, obtain the information entropy of different angles, determine the priority of tomb mural image repair, detect the similarity of tomb mural repair pixels with the help of sequential similarity, and complete the tomb mural repair. Experimental results verify the effectiveness of our proposed method.


## 2. Research on Edge Feature Extraction and Prethreshold Segmentation of Tomb Murals

### 2.1. Extraction of Tomb Mural Edge Features

The primary structure of the painting is outlined by the edge of the tomb mural, and removing the edge helps to show the arrangement of the main picture. Because tomb murals are funeral objects, they have the advantages of a quick build time and a big format. Because most of them travel via the drafting line, the painting area is restricted. The primary picture has a clean shape with a lot of iron lines. Two-dimensional information processing technology’s edge retrieval approach can identify its contour boundary in advance, which is useful for rapidly comprehending the painting level arrangement. The edge of art can depict the entire objective item, allowing the spectator to quickly find the target. The edge protects detailed image data, which is crucial for determining the object’s primary characteristics. Edge retrieval locates the pheromone in the information cluster whose gray value gradient changes abruptly; the gray value varies smoothly along the edge direction and forcefully perpendicular to the edge direction, depending on the features.In the information cluster, edge retrieval locates the pheromone with a sharp gray value gradient. The gray value varies softly along the edge direction, and the gray value of the pheromone perpendicular to the edge direction changes abruptly until the edge information is located, according to the features. Due to noise and other reasons, the first generated edge information is frequently overconnected or underconnected. There is a requirement for a secondary connection. Different linked domains yield different connection outcomes, and the binary edge information of a single pheromone width may eventually be retrieved. Edge pheromone connectivity consists of two steps: crucial labelling and connection. The pheromones in the linked neighborhood are given a distinct label by labelling [7]. The edge pheromone belongs to the same edge segment when its gray value and direction fulfil the necessary similarity requirements.To repair the mural image, we can use the gradient operator of the edge pheromone as(1)∇I=gxgy=∂I∂x∂I∂y,Mx,y=gx2+gy2,Nx,y=tan−1gxgy,where M represents the gray scale while N indicates the gray order jump direction. We utilize LOG edge detection to extract the tomb mural’s edge even more precisely. To begin, the second-order Gaussian Laplace operator is employed in LOG edge detection to decrease noise in the tomb mural’s edge and deal with the smoothness of the tomb mural’s edge [8], as follows:(2)Gx,y=12πσ2exp−12πσ2x2+y2,where parameter σ describes the smoothness of the edge of the tomb chamber. Further, we use the convolution Gx,y with the tomb mural image Ix,y to get the smoothness effect of the edge of the final tomb mural image as follows:(3)gx,y=Ix,y×Gx,y.Similarly, we can obtain the Laplace calculations forgx,y as(4)hx,y=∇2Ix,y×Gx,y.The edge features of tomb murals are extracted by smoothing the edges of tomb murals. The mathematical model for setting the characteristics of tomb murals is as follows:(5)Gθ=∂G∂θ=θ∇G,where G represents the normal vectors and θ represents the gradient vector.Maximum features of tomb mural can be calculated as(6)γx,y=EX2+EY2,where γx,y represents the edge feature information of the tomb mural at the x and y points and E represents the corner information of the mural in the tomb.We can minimize the noise in the edge of tomb paintings and achieve the smoothness of the edge of tomb murals by calculating the gradient value of tomb murals and utilizing the second-order Gaussian Laplace operator in LOG edge detection [9] in the edge feature extraction of tomb murals. It also creates a mathematical model of tomb mural features to obtain tomb mural edge features.


### 2.2. Edge Threshold Segmentation of Tomb Murals

According to the previously mentioned edge features of tomb murals, thresholding and segmenting the edges of tomb murals is required to increase the repair impact of tomb paintings. Because of the filthy muck on the tomb mural’s border, it is impossible to distinguish between the foreground and backdrop. The universal threshold segmentation technique cannot be implemented, despite the fact that histogram equalization improves the crack information. Under a specified threshold, the greatest interclass variance technique determines the average gray level of the foreground and background. When the variance is the greatest, the difference between the foreground and background is regarded to be the greatest.(7)g=w0g0+w1g1,v=w0g0−gg0−g+w1g1−gg1−g,where g is the total average grayscale of the image, w0, w1 represent the proportion of the foreground and background points to the image, respectively, g0,g1 represent the average grayscale of the foreground and the background, and v is the variance between the foreground and the background.Because tomb paintings include stains and numerous small fractures on their edges, these cracks play a major role in tomb mural edge alteration. As a result, before threshold segmentation, it is still important to evaluate the impact of tiny fractures. The tomb mural’s crack information is in the form of numerous discontinuous parts, making it hard to separate from the pit [10]; therefore, it is closed to maintain crack continuity. The fractures are then separated using the linked domain labelling method and open and close procedures as(8)Bi,j=1,Bi,j=Ai,jorBi,j,where Ai,j is a pixel value and the updated value of Bi,j is the result of tomb mural cracks.The greatest interclass variance technique is used to compute the average gray level of foreground and background under a particular threshold in tomb mural edge threshold segmentation. To finish the edge threshold segmentation of tomb paintings, a linked domain labelling algorithm and open and close operations are used to separate the cracks, taking into account the effect of tiny fractures on the edge of the tomb murals [11].


### 2.3. Priority Calculation of Tomb Mural Image Restoration

After the above edge threshold segmentation of the tomb mural, the image restoration priority needs to reduce the damage to the disordered tomb mural during the restoration process. The tomb mural image is 1, Ω is the broken pixel area,p is a broken block (size 9 × 9), and np represents the normal vector of the central pixel p of the damaged block; its vertical direction is the smallest direction of gray value (equal illumination line direction). The priority calculation function is defined as(9)Pp=Cp×Dp,where Cp is the confidence item while Dp is the data item.(10)Cp=∑q∈pCqϕp,Dp=∇I1/p×np255,where ∑q∈pCq/φp represents the confidence item value of the q pixels in the damaged block φp.Based on this, our model adds the gradient factorGP reflecting the edge information and the information entropy. Hp measures the complexity of the block to be fixed and GP represents the gradient information of the image. The final tomb mural image priority can be calculated as(11)GP=∑q∈pMqϕp,where Mq is the gradient modulus of the pixel q and Hp is the derivative of pixel point q in x, y directions.The damaged area is determined by the priority calculation function in the tomb mural picture repair priority calculation. We may estimate the tomb mural picture restoration priority by calculating the information entropy of different angles using the gradient factor of the edge information.


## 2.1. Extraction of Tomb Mural Edge Features

The primary structure of the painting is outlined by the edge of the tomb mural, and removing the edge helps to show the arrangement of the main picture. Because tomb murals are funeral objects, they have the advantages of a quick build time and a big format. Because most of them travel via the drafting line, the painting area is restricted. The primary picture has a clean shape with a lot of iron lines. Two-dimensional information processing technology’s edge retrieval approach can identify its contour boundary in advance, which is useful for rapidly comprehending the painting level arrangement. The edge of art can depict the entire objective item, allowing the spectator to quickly find the target. The edge protects detailed image data, which is crucial for determining the object’s primary characteristics. Edge retrieval locates the pheromone in the information cluster whose gray value gradient changes abruptly; the gray value varies smoothly along the edge direction and forcefully perpendicular to the edge direction, depending on the features.In the information cluster, edge retrieval locates the pheromone with a sharp gray value gradient. The gray value varies softly along the edge direction, and the gray value of the pheromone perpendicular to the edge direction changes abruptly until the edge information is located, according to the features. Due to noise and other reasons, the first generated edge information is frequently overconnected or underconnected. There is a requirement for a secondary connection. Different linked domains yield different connection outcomes, and the binary edge information of a single pheromone width may eventually be retrieved. Edge pheromone connectivity consists of two steps: crucial labelling and connection. The pheromones in the linked neighborhood are given a distinct label by labelling [7]. The edge pheromone belongs to the same edge segment when its gray value and direction fulfil the necessary similarity requirements.To repair the mural image, we can use the gradient operator of the edge pheromone as(1)∇I=gxgy=∂I∂x∂I∂y,Mx,y=gx2+gy2,Nx,y=tan−1gxgy,where M represents the gray scale while N indicates the gray order jump direction. We utilize LOG edge detection to extract the tomb mural’s edge even more precisely. To begin, the second-order Gaussian Laplace operator is employed in LOG edge detection to decrease noise in the tomb mural’s edge and deal with the smoothness of the tomb mural’s edge [8], as follows:(2)Gx,y=12πσ2exp−12πσ2x2+y2,where parameter σ describes the smoothness of the edge of the tomb chamber. Further, we use the convolution Gx,y with the tomb mural image Ix,y to get the smoothness effect of the edge of the final tomb mural image as follows:(3)gx,y=Ix,y×Gx,y.Similarly, we can obtain the Laplace calculations forgx,y as(4)hx,y=∇2Ix,y×Gx,y.The edge features of tomb murals are extracted by smoothing the edges of tomb murals. The mathematical model for setting the characteristics of tomb murals is as follows:(5)Gθ=∂G∂θ=θ∇G,where G represents the normal vectors and θ represents the gradient vector.Maximum features of tomb mural can be calculated as(6)γx,y=EX2+EY2,where γx,y represents the edge feature information of the tomb mural at the x and y points and E represents the corner information of the mural in the tomb.We can minimize the noise in the edge of tomb paintings and achieve the smoothness of the edge of tomb murals by calculating the gradient value of tomb murals and utilizing the second-order Gaussian Laplace operator in LOG edge detection [9] in the edge feature extraction of tomb murals. It also creates a mathematical model of tomb mural features to obtain tomb mural edge features.


## 2.2. Edge Threshold Segmentation of Tomb Murals

According to the previously mentioned edge features of tomb murals, thresholding and segmenting the edges of tomb murals is required to increase the repair impact of tomb paintings. Because of the filthy muck on the tomb mural’s border, it is impossible to distinguish between the foreground and backdrop. The universal threshold segmentation technique cannot be implemented, despite the fact that histogram equalization improves the crack information. Under a specified threshold, the greatest interclass variance technique determines the average gray level of the foreground and background. When the variance is the greatest, the difference between the foreground and background is regarded to be the greatest.(7)g=w0g0+w1g1,v=w0g0−gg0−g+w1g1−gg1−g,where g is the total average grayscale of the image, w0, w1 represent the proportion of the foreground and background points to the image, respectively, g0,g1 represent the average grayscale of the foreground and the background, and v is the variance between the foreground and the background.Because tomb paintings include stains and numerous small fractures on their edges, these cracks play a major role in tomb mural edge alteration. As a result, before threshold segmentation, it is still important to evaluate the impact of tiny fractures. The tomb mural’s crack information is in the form of numerous discontinuous parts, making it hard to separate from the pit [10]; therefore, it is closed to maintain crack continuity. The fractures are then separated using the linked domain labelling method and open and close procedures as(8)Bi,j=1,Bi,j=Ai,jorBi,j,where Ai,j is a pixel value and the updated value of Bi,j is the result of tomb mural cracks.The greatest interclass variance technique is used to compute the average gray level of foreground and background under a particular threshold in tomb mural edge threshold segmentation. To finish the edge threshold segmentation of tomb paintings, a linked domain labelling algorithm and open and close operations are used to separate the cracks, taking into account the effect of tiny fractures on the edge of the tomb murals [11].


## 2.3. Priority Calculation of Tomb Mural Image Restoration

After the above edge threshold segmentation of the tomb mural, the image restoration priority needs to reduce the damage to the disordered tomb mural during the restoration process. The tomb mural image is 1, Ω is the broken pixel area,p is a broken block (size 9 × 9), and np represents the normal vector of the central pixel p of the damaged block; its vertical direction is the smallest direction of gray value (equal illumination line direction). The priority calculation function is defined as(9)Pp=Cp×Dp,where Cp is the confidence item while Dp is the data item.(10)Cp=∑q∈pCqϕp,Dp=∇I1/p×np255,where ∑q∈pCq/φp represents the confidence item value of the q pixels in the damaged block φp.Based on this, our model adds the gradient factorGP reflecting the edge information and the information entropy. Hp measures the complexity of the block to be fixed and GP represents the gradient information of the image. The final tomb mural image priority can be calculated as(11)GP=∑q∈pMqϕp,where Mq is the gradient modulus of the pixel q and Hp is the derivative of pixel point q in x, y directions.The damaged area is determined by the priority calculation function in the tomb mural picture repair priority calculation. We may estimate the tomb mural picture restoration priority by calculating the information entropy of different angles using the gradient factor of the edge information.


## 3. Realizing the Restoration of Tomb Murals Based on Sequential Similarity Detection

The waveform matching continuation technique is a common approach for sequential similarity identification in endpoint effect suppression. The notion behind the method is that the signal’s changing trend is reflected not just at the endpoint but also inside the signal, particularly for signals with strong regularity. The unique surgery procedure is divided into two parts:(1)
Finding a subwave segment in the signal that is most consistent with the endpoint’s shifting trend.(2)
For continuation, the best-matched wavelet is translated to the endpoint [12].Because of its strong endpoint effect suppression performance, the method has been frequently employed, particularly in the endpoint effect processing of signals with robust regularity. The key and core of the method is the search technique for the best matching wavelet. To tackle this problem, this study presents an EMD endpoint effect suppression technique based on adaptive sequential similarity detection. Sequential analysis is a mathematical statistician’s idea. The sequential sampling system and statistical inference with this scheme are its primary study directions.The main idea is that in the sampling process, the required number of samples is not determined in advance, but rather a small portion is selected first, and whether or not to continue sampling work is determined based on the results of this small part of samples to effectively reduce the number of samples. Because of its benefits of inexpensive processing and high precision, the sequential similarity detection method [13] is frequently employed in picture matching and other domains. The choice of threshold and the technique for adjusting it are the two most important variables determining its success. As a result, the tomb murals are repaired using the sequential similarity detection approach.First, when the mural is completed, the original pixel isX. The original pixel point picked must have a maximum point and a low point to better depict the shifting trend of the original pixel restoration at the mural conclusion. To sample the original mural pixel point and produce K sampling points, the longitudinal coordinates are stored as M and m:(12)dirp,q=p−qp−q×Np,where Y represent the original pixel points of the original tomb mural and form several matching points with the original pixel points of the original tomb mural defined as(13)ζ=−uy,uxux2+uy2.Similarly, the thresholdφq of the initial tomb mural image can be calculated as(14)φq=argmindφp,φq.The difference between the original point and the counterpart to match is calculated from the first burial chamber mural image pixel pointxi−yiandM−m as(15)xi−yiM−m2,i=1,2,…,K.According to the determined pixel matching error of the tomb chamber mural image, the sequential similarity detection algorithm successively selects the pixels on the image to be matched as(16)Ii,j=χ|minτi,j,mk,nk>Tk,KPS=UXC4sIi,j2,where KPS represents the real value tomb chamber mural image with mean zero, UX represents the probability density function, and C4s/Ii,j2 represents the average zero value of the restored tomb room murals [14].


## 4. Experimental Results

### 4.1. Experimental Settings

In order to verify the effectiveness of this repair algorithm, an experimental analysis is carried out. In the experiment, some murals in the polo paintings of Prince Zhang Huai and Li Xianmu were used as research objects. In the experiment, the sample images of the tomb murals were 2 m high and 5 m long. The total number of images of the tomb murals collected by HD equipment was about 10 g, which were cut into several small images. The data volume of each image was more than 1G. One of the obtained sample images was taken as a typical research object to verify the effectiveness of the repair algorithm. The experimental sample image is shown in Figure1.Figure 1
Image of the sample tomb room murals.


### 4.2. Experimental Index Design

To verify the effectiveness of our repair algorithm, we perform experiments with various settings. We undertake tests with various parameters for the validation of the effectiveness of our proposed method. Some of the paintings in the polo paintings of Prince Zhang Huai and Li Xianmu were used as test learning projects. The tomb paintings were 2 m high and 5 m long in the example images. The entire number of photos of the tomb paintings gathered by high-definition equipment was around 10 g, which were then split into many smaller images. Each image has a data capacity of almost 1 GB. One of the generated example photos was used as a specific study object, demonstrating the efficacy of the repair method. Figure1 depicts an experimental sample picture [15].Precision, recall, andF1 score are three metrics used to assess the accuracy of the classifier’s predictions. These metrics are defined as follows:(17)precision=#of true positives#of true positives+#of  false positives,recall=#of true positives#of true positives+#of  false negatives,F1score=21/recall+1/precision.


### 4.3. Analysis of Experimental Results

In order to verify the effectiveness of the proposed algorithm, it is compared with the multiscale generation adversarial network image restoration algorithm and the image restoration algorithm based on edge features, and the pixel structure similarity is used to restore the sample tomb mural image. The presentation effect after the repair is shown in Figure2.Figure 2
Comparison of the repair results of different methods. (a) Sample image. (b) Paper method. (c) Image restoration algorithm of multiscale generative countermeasure network. (d) Image restoration algorithm based on edge features and pixel structure similarity.
(a)(b)(c)(d)The performance gap between the results obtained from our proposed restoration of the sample tomb mural images method, the multiscale generation countermeasure network image restoration algorithm, and the image restoration algorithm based on edge features can be seen by examining the repair results in Figure2. The background of the mural picture of the example tomb has some tiny cracks, and the artwork’s colour has deteriorated significantly. The image’s backdrop effect is smoothed out, and the edge and colour of the tomb mural image may be correctly fixed using this approach. The image restoration algorithms based on edge features and pixel structure similarity, as well as the multiscale generative countermeasure network image restoration method, can eliminate the noise in the tomb mural’s wall. The tomb mural pictures restored by the two restoration algorithms, on the other hand, are absent, as are the human cheeks in Figure 2(c).This method, as well as the multiscale generative countermeasure network image restoration algorithm and the image restoration algorithm based on edge features and pixel structure similarity, is used to match the pixel similarity in the sample tomb mural image in order to further verify the effectiveness of this restoration algorithm. The representative method’s effect improves as the matching degree increases. Figure3 depicts the outcomes of the experiment.Figure 3
Different methods’ analysis of pixel similarity.The experimental results in Figure3 show that there are some differences in the accuracy of matching the pixel similarity in the sample tomb mural image when using the method proposed in this paper, the multiscale generation countermeasure network image restoration algorithm, and the image restoration algorithm based on edge features and pixel structure similarity. The accuracy of matching pixel similarity in the sample tomb mural image by this method is always greater than 80%, with the highest being around 95%, and through multiscale generation to confront the network image restoration algorithm and the image restoration algorithm based on edge features and pixel structure to match the accuracy of the pixel similarity in the sample tomb murals. However, it is always lower than that of the proposed method.The outcomes of the trained models making predictions on the validation set are summarized in Tables1 and 2. We can see that the proposed technique works well for both tomb-containing and non-tomb-containing pictures. Interestingly, despite using an enhanced dataset to train SVMs, their performance in recognizing images containing tombs was not comparable to that of the suggested approach. This is unexpected because the tomb forms are mostly basic to the human sight, thus nonlinear classification should function fine. The reason for this is because SVM models are likely to contain a large number of false positives (objects that are not tombs being identified as such). This is because other pictures that are just circular in form are likely to be mistaken for tombs by the SVM models. The number of filters employed in our architecture allows us to notice higher subtlety in the patterns of the training dataset, allowing us to identify a tomb beyond simply the circular form. Figure 4 summarizes both tables and adds an average/total bar with a weighted average for each group. Overall, the findings demonstrate that the proposed model outperforms the competition. Finally, the comparison for recall and F1 score is made in Figures 5 and 6, respectively.Table 1
Different classification metrics to validate the dataset images without tombs.
ModelPrecisionRecallF1 scoreRandom guessing0.640.650.65SVM with linear kernel0.880.910.90SVM with RBF kernel0.920.930.91Proposed0.9810.99Table 2
Different classification metrics to validate the dataset images with tombs.
ModelPrecisionRecallF1 scoreRandom guessing0.560.550.56SVM with linear kernel0.250.1340.179SVM with RBF kernel0.730.640.68Proposed10.840.91Figure 4
Performance comparison for precision.Figure 5
Performance comparison for recall.Figure 6
Performance comparison for F1 score.


## 4.1. Experimental Settings

In order to verify the effectiveness of this repair algorithm, an experimental analysis is carried out. In the experiment, some murals in the polo paintings of Prince Zhang Huai and Li Xianmu were used as research objects. In the experiment, the sample images of the tomb murals were 2 m high and 5 m long. The total number of images of the tomb murals collected by HD equipment was about 10 g, which were cut into several small images. The data volume of each image was more than 1G. One of the obtained sample images was taken as a typical research object to verify the effectiveness of the repair algorithm. The experimental sample image is shown in Figure1.Figure 1
Image of the sample tomb room murals.


## 4.2. Experimental Index Design

To verify the effectiveness of our repair algorithm, we perform experiments with various settings. We undertake tests with various parameters for the validation of the effectiveness of our proposed method. Some of the paintings in the polo paintings of Prince Zhang Huai and Li Xianmu were used as test learning projects. The tomb paintings were 2 m high and 5 m long in the example images. The entire number of photos of the tomb paintings gathered by high-definition equipment was around 10 g, which were then split into many smaller images. Each image has a data capacity of almost 1 GB. One of the generated example photos was used as a specific study object, demonstrating the efficacy of the repair method. Figure1 depicts an experimental sample picture [15].Precision, recall, andF1 score are three metrics used to assess the accuracy of the classifier’s predictions. These metrics are defined as follows:(17)precision=#of true positives#of true positives+#of  false positives,recall=#of true positives#of true positives+#of  false negatives,F1score=21/recall+1/precision.


## 4.3. Analysis of Experimental Results

In order to verify the effectiveness of the proposed algorithm, it is compared with the multiscale generation adversarial network image restoration algorithm and the image restoration algorithm based on edge features, and the pixel structure similarity is used to restore the sample tomb mural image. The presentation effect after the repair is shown in Figure2.Figure 2
Comparison of the repair results of different methods. (a) Sample image. (b) Paper method. (c) Image restoration algorithm of multiscale generative countermeasure network. (d) Image restoration algorithm based on edge features and pixel structure similarity.
(a)(b)(c)(d)The performance gap between the results obtained from our proposed restoration of the sample tomb mural images method, the multiscale generation countermeasure network image restoration algorithm, and the image restoration algorithm based on edge features can be seen by examining the repair results in Figure2. The background of the mural picture of the example tomb has some tiny cracks, and the artwork’s colour has deteriorated significantly. The image’s backdrop effect is smoothed out, and the edge and colour of the tomb mural image may be correctly fixed using this approach. The image restoration algorithms based on edge features and pixel structure similarity, as well as the multiscale generative countermeasure network image restoration method, can eliminate the noise in the tomb mural’s wall. The tomb mural pictures restored by the two restoration algorithms, on the other hand, are absent, as are the human cheeks in Figure 2(c).This method, as well as the multiscale generative countermeasure network image restoration algorithm and the image restoration algorithm based on edge features and pixel structure similarity, is used to match the pixel similarity in the sample tomb mural image in order to further verify the effectiveness of this restoration algorithm. The representative method’s effect improves as the matching degree increases. Figure3 depicts the outcomes of the experiment.Figure 3
Different methods’ analysis of pixel similarity.The experimental results in Figure3 show that there are some differences in the accuracy of matching the pixel similarity in the sample tomb mural image when using the method proposed in this paper, the multiscale generation countermeasure network image restoration algorithm, and the image restoration algorithm based on edge features and pixel structure similarity. The accuracy of matching pixel similarity in the sample tomb mural image by this method is always greater than 80%, with the highest being around 95%, and through multiscale generation to confront the network image restoration algorithm and the image restoration algorithm based on edge features and pixel structure to match the accuracy of the pixel similarity in the sample tomb murals. However, it is always lower than that of the proposed method.The outcomes of the trained models making predictions on the validation set are summarized in Tables1 and 2. We can see that the proposed technique works well for both tomb-containing and non-tomb-containing pictures. Interestingly, despite using an enhanced dataset to train SVMs, their performance in recognizing images containing tombs was not comparable to that of the suggested approach. This is unexpected because the tomb forms are mostly basic to the human sight, thus nonlinear classification should function fine. The reason for this is because SVM models are likely to contain a large number of false positives (objects that are not tombs being identified as such). This is because other pictures that are just circular in form are likely to be mistaken for tombs by the SVM models. The number of filters employed in our architecture allows us to notice higher subtlety in the patterns of the training dataset, allowing us to identify a tomb beyond simply the circular form. Figure 4 summarizes both tables and adds an average/total bar with a weighted average for each group. Overall, the findings demonstrate that the proposed model outperforms the competition. Finally, the comparison for recall and F1 score is made in Figures 5 and 6, respectively.Table 1
Different classification metrics to validate the dataset images without tombs.
ModelPrecisionRecallF1 scoreRandom guessing0.640.650.65SVM with linear kernel0.880.910.90SVM with RBF kernel0.920.930.91Proposed0.9810.99Table 2
Different classification metrics to validate the dataset images with tombs.
ModelPrecisionRecallF1 scoreRandom guessing0.560.550.56SVM with linear kernel0.250.1340.179SVM with RBF kernel0.730.640.68Proposed10.840.91Figure 4
Performance comparison for precision.Figure 5
Performance comparison for recall.Figure 6
Performance comparison for F1 score.


## 5. Conclusion

We present a tomb mural restoration technique based on sequential similarity detection in this study. By using the second-order Gaussian Laplace operator in LOG edge detection to determine the gradient value of the tomb mural, we can minimize noise in the tomb mural’s edge and improve the smoothness of the tomb mural’s edge. Then, to get the edge features of tomb paintings, we created a mathematical model of the features of tomb murals. Under a specified threshold, the greatest interclass variance technique determines the average gray level of foreground and background. The fractures are separated using a linked domain labelling method and open and close operations to complete the edge threshold segmentation of tomb paintings, taking into account the effect of tiny cracks on the edge of tomb murals. To identify the damaged tomb mural area, compute the gradient factor of edge information, acquire the entropy of different angles, and determine the tomb wall painting, the priority calculation function is employed. The proposed approach can restore the tomb mural and increase its efficacy, according to the testing results.



---

*Source: 6842353-2021-10-07.xml*