Digitized Visual Transformation of Grotto Art Using Deep Learning and Virtual Reality Technology

,


Introduction
Grotto murals have always been one of China's most precious artistic treasures.Chen et al. [1] believed that their artistic and historical reference values were immeasurable.Ma et al. [2] also pointed out that the grotto murals added rich color to China's long history.Stratford et al. [3] pointed out that most of the grottoes were located in harsh areas such as the Gobi and the desert, with more sandstorms all year round.Hence, the erosion of the grottoes becomes increasingly serious, causing severe damage to the treasure.Armitage et al. [4] held that how to protect the grotto murals better had always been a di cult problem for archaeologists in recent years.Some studies have adopted network video technology to record the grotto murals to let more posterity enjoy the charm of grotto murals.However, Yin et al. [5] found that this method only took videos and pictures that could not be appreciated from multiple angles.He et al. [6] believed that the type of technology adopted to restore the grottoes is crucial.
In studying wind sand erosion in grottoes, Liang et al. [7] pointed out that wind was the main dynamic condition a ecting Gobi dust emission, and surface dust content was a signi cant factor determining dust emission.Besides, the contribution of wind to PM10 emission is greater than surface dust content.e higher the height is, the greater the weight of friction velocity is and the greater the damage to the grottoes is.Mogao Grottoes is one of the most representative grottoes in the Northern Wei Dynasty.Bao [8] pointed out that the "Crouching Tiger, Hidden Dragon" painting on the south wall of the grottoes had high artistic value.However, this painting's original appearance has changed with the changes in dynasties and the development of the times.In particular, the color of the whole grotto has undergone subversive changes, which has led to multiple misunderstandings, indicating that the preservation of grotto murals is signi cant.Wu et al. [9] found that the tomb mural was a special mural buried underground.Due to the narrow exit of the tomb passage, the tomb mural is excavated by dividing the whole mural into blocks, which loses a lot of information between blocks.erefore, digital image technology is adopted to restore the missing part to achieve a certain purpose of preservation.For the restoration of grottoes, Zhao et al. [10] combined semantic acquisition with knowledge association logic in information images and innovated the image resource analysis mode and the concept of digital restoration.e 4S-IAM model was proposed to connect historical graphics resources, local archaeological achievements, and mural image ontology resources effectively.However, Bi et al. [11] found that the tunnel wall's heat and moisture transfer process changed in space and time.
e complex heat and moisture transfer directions change periodically.Besides, the water transfer in the tunnel wall reaches a stable state faster than the heat transfer.e damp heat cycle plays a vital role in the development of mural degradation.Hence, the research on the grottoes preservation technology is one of the most crucial works in archaeology.
e digital visual transformation of grotto mural art contributes to psychological influence and affects subjective well-being.However, because residents have a less visual appearance to perceive and experience the global contemporary architecture and urban design trends, this paper uses the mobile virtual reality (VR) platform to study the art of grotto murals.e content of model inspection is the degree of digital transformation of grotto mural art.
e purpose is to realize the digital visual transformation of the mural art in grottoes and improve the probability of mural preservation and restoration.VR technology is used and combined with deep learning (DL).A virtual scene that is completely consistent with the real murals can be restored by analyzing the style and materials of grotto murals.e use of VR enables observers to observe and record grottoes anytime and anywhere through specific equipment.First, the concepts of grotto murals, VR, and DL are briefly introduced.
e main research contribution is to identify the color and material of the grotto murals by combining DL and VR technology, judge the system's performance, and provide a reference for the preservation and recording of the grottoes.e main research innovation is to use VR technology to simulate real grottoes, rather than using a single image restoration and recording to complete the preservation of grottoes.is paper has crucial reference value for the preservation and restoration of murals.

Literature Review
Many scholars have conducted relevant research on DL technology.Zhou et al. [12] explored and studied the application of DL in food and investigated dozens of studies using DL as a data analysis tool to solve problems and challenges in the food field.It includes food identification, calorie estimation, and quality detection of fruits, vegetables, meat, and aquatic products.e survey results show that DL is superior to other methods.Using DL as a tool for food quality and safety inspection can improve the accuracy of food safety inspection.Van et al. [13] studied DL technology in histopathology, summarized its current application situation in this field, and described the application challenges of artificial intelligence in histopathology.Research shows that DL can improve the speed and accuracy of medical diagnosis.Jacob et al. [14] studied the application of DL in image acquisition of the Internet of ings.Good test results show that the accuracy of DL can improve the accuracy of image recognition.Besides, Samadbeik et al. [15] studied the application of VR technology in medical group teaching.e results show that using virtual education technology for laparoscopic surgery training can improve the accuracy of medical practice.Bashabsheh et al. [16] studied the application of VR technology in architectural teaching and used VR technology to present some three-dimensional models of construction stages.e results show that VR software can better realize model construction compared to traditional teaching methods.To sum up, grotto mural art's reproduction and digital transformation with the support of DL and VR technology can enhance the protective effect of precious cultural relics murals.e purpose is to establish a visual model of grotto mural art and compare the previous research methods with the research methods here.Wang et al. [17] studied the identity recognition algorithm based on DL, introduced the traditional method of person Re-ID, and analyzed its advantages and disadvantages.e results show that the combination of DL and traditional methods is vital.Laxton [18] evaluated and studied the surrealism of painting in the 19th century.e results show that modernist painting needs to be explored and recognized by DL technology.DL has crucial reference value for the digital transformation of grotto art.Li et al. [19] used DL to improve immune peptides in proteomics.e results show that compared with the existing methods, the DeepRescore rescoring method enhances the sensitivity and reliability of mass spectrometry binding peptides and new antigen identification.Farazmand [20] believed that grotto art was an ancient art exhibition integrating architecture, sculpture, and painting used for religious activities.It is a work with a high combination of artistry and practicality, so it has the role of artistic decoration and artistic protection of sculpture art.Duan et al. [21] found that colored sculptures existed in grotto temples in about 25 provinces, cities, and autonomous regions in China.Wang et al. [22] pointed out that China's most famous grotto art included Qiuci Caves, Mountain Grottoes, Mogao Caves, Yungang Grottoes, e Longmen Grottoes, and Dazu Rock Carvings.To sum up, combined with the relevant research on grotto art, the use of DL and VR technology can provide technical support for restoring and protecting grotto art.

Deep Learning.
DL is a machine learning method, which integrates the prediction results of multiple classifiers into a learning model to improve robustness and classification performance.VR is a computer simulation system that combines virtual and reality to create and experience a virtual world.e integration method of DL can improve the classification from any single classifier, but the combination classifier is not always meaningful.It is worth combining different classifiers only when the detection rate is high.e color classification of the grottoes is also obvious.Figure 1 shows several main types.
Dunhuang Mogao Grottoes is a place integrating modeling, color sculpture, and murals.Due to the constraints of the space environment and light conditions, the color structure and effect of murals in Mogao Grottoes are closely related to the grotto environment.According to the recorded stroke fragments, Singha and Manib [23] found that the colors used include black, yellow, bright red, vermilion, stone cyan, and stone green.Black accounts for the largest proportion and has high saturation.Figure 2 displays the main color proportions and classifications of the grotto murals.
Nishanthi [24] found that color impacts people's senses and psychology.e effect of Dazu Rock Carvings has both religious appeal and guiding effect.Qin and Song [25] pointed out that people used imperial cave statues in Dazu Rock Carvings to pray for blessings.e strong religious atmosphere created by the color of Dazu Rock Carvings makes believers feel immersive.In Buddhist art, red has the spiritual meaning of submission and appeal.erefore, the colors of the grotto murals generally have two general meanings in Figure 3.
From the color art perspective, combined with religious culture, Chinese traditional culture, and field data, this paper summarizes and analyzes the color of Dazu Rock Carvings through the DL model, which lays a theoretical foundation for further displaying the color art of Dazu Rock Carvings.

Cultural Relics Information Acquisition Technology under DL.
Han et al. [26] found that the work on the acquisition of two-dimensional cultural relics information had been carried out in worldwide cultural relics protection departments, transforming the pattern, color, and text information contained in cultural relics into digital information.After investigation, Xu et al. [27] found that the commonly used method was to take photos of cultural relics and obtain optical information using photography technology.Ordinary film can be used to take pictures and input them into the computer after shooting, or a digital camera can be directly used to obtain digital information.However, for multiple complex cultural relics, the research on how to shoot to ensure sufficient information is obtained and how to deal with the shooting information is not perfect.
Chang and Guo [28] found that an image-based rendering (IBR) technology was to generate scene images from different viewpoints based on some pregenerated images or environment maps.Compared with the traditional rendering technology, it has three distinct differences in Table 1.
Guan et al. [29] believed that, according to the graphics theory, the microscopic properties of the scene surface were finally reflected in the bidirectional reflectance at each point of the scene surface.e traditional realistic graphics rendering technology uses texture images to describe the reflective attributes of each point on the scene surface to simulate the rich texture details.IBR technology is based on this theory.Its core technology is to draw the scene with any viewpoint position using a group of images (specific viewpoint position) of related objects or environments.It uses these texture images to express the microinformation of the scene surface in the environment.IBR technology can be divided into three types in Figure 4: Multiple models are stored in the form of multiresolution to meet the needs of real-time rendering or progressive transmission of network models.At this time, the multiresolution model representation needs to be compressed.Li et al. [30] used grids to generate regular or adaptive subdivision mechanisms, which could be used to generate models with multiple resolutions and provide an effective compression mechanism.However, they require that the input grid can meet the sub-subdivision connectivity.
Many grids cannot meet this requirement, so the three steps of image recording in Figure 5 are formulated.
Bashir et al. [31] believed that the visualization technology of adding time dimension information was a very crucial technology for multiple cultural relic visualization systems.For example, to demonstrate the damage or evolution process of cultural relics, or the evolution process of a site over time, time information needs to be combined with visual information.

VR Technology and Its Analysis and Operation in Grotto
Murals.Bashabsheh et al. [16] pointed out that virtual image technology is usually a communication technology.It is based on digital technology to combine vision and hearing.Virtual image technology includes various technologies, such as photography, projection, information transmission, multimedia display, sensory transmission, limb motion capture, and imitation.It provides users with virtual images through devices.Shin et al. [32] believed that virtual technology helps people understand abstract concepts, which are interactive images and scenes composed of text, images, videos, and other information.e main features are interactive, virtual, and immersive experiences.e rendering process of VR is analyzed.After collecting data elements in the image processing center, three-dimensional image modeling is conducted through sensors.Figure 6 shows the mapping process of VR technology.
Lungu et al. [33] found that the research on virtual image push algorithms in China is incomplete and not intelligent enough, the accurate push is difficult, and the processing The color of cave murals has decorative significance and artistic value The colors are thick and colorful, with great differences The color of cave murals has the aesthetic value of painting Be able to express the plot and scene with strong story Color implication  e loss of resolution accuracy is caused in the splicing process, but the reason is in the shooting ring step.e main reasons for the loss are camera position error, lens aberration, projection distortion, and mural wall fluctuation.A complete operation step is calculated after considering these factors comprehensively.Liang et al. [34] revealed that, in image and video shooting calculation, S len-opti is generally adopted to represent the shooting pixel accuracy of the lens, dist means the distance, and len represents the lens type.Moreover, the fineness of the digital image must be determined before shooting.
e digital simulation of grotto murals must have high resolution.However, too high precision and resolution will increase work difficulty and waste a lot of resources.erefore, the minimum standard of resolution is to be able to clearly identify the lines on the mural.e specific situation needs to be judged according to the actual situation.If the inclination angle of the mural wall is θ and the final mural resolution is M, the shooting angle of the mural resolution is When the maximum fluctuation angle of the mural wall does not exceed θ, the lens is LEN model, the elevation angle of the lens is defined as φ, and the resolution of the camera is W × H, the distance L between the camera lens and the mural wall shall be At the last shooting, the horizontal or vertical moving distance L of the lens is calculated as follows: where 1000M represents the pixel size of the mural photographed by the camera.Many factors affecting murals' restoration cannot be accurately measured and calculated. is problem is effectively solved by obtaining lens distortion data through experiments and using the estimated value to determine the selection box to eliminate the influence of wall fluctuation.It also ensures the final results' accuracy and has high feasibility and practicability.Lv et al. [35] believed that a general problem of uneven illuminationtook results in inconsistent brightness of the images.is situation can be improved by using the reflector to adjust the lighting direction of the flash lamp.However, it is still not ideal for preserving cultural relics.
e maximum light intensity is defined as L max .In a region, M points are adopted for calculation.If the nearest four points are L 0 , L 1 , L 2, and L 3 , respectively, and point M is taken as the coordinate (x, y), the illumination intensity L of point M is (4)

Convert specific shape graphics into polygon meshes with high versatility
The specific position points of the graph are analyzed by vectorization The point position difference is processed by coding method Three steps of IBR image processing It is adjusted by using the light intensity L and the maximum light intensity L max .For the most edge point, the brightness value LA is processed, and the new brightness value LB is is adjustment method is efficient in processing speed and has little effect on the variation range of brightness.Color sculpture data acquisition includes three-dimensional structure data and surface texture data.
ese two data acquisition methods are different.
e two-dimensional scanning method is adopted to directly obtain three-dimensional structure data of color sculpture.However, for the surface texture processing of color sculptures, the required data can be obtained only after field shooting.

Colour Analysis Scheme of Grotto Murals. When reconstructing murals with VR technology, it is essential to analyze the reasons for the rich colors of Dazu Rock
Carvings, find out their comparison methods, and reproduce the original style of Dazu Rock Carvings as much as possible.Paakki et al. [36] found that Dazu Rock Carvings are rich in color due to the use of many complementary colors.Some studies mentioned that, from the perspective of chromatics, the contrast of complementary colors is the physiological and psychological response of human visual balance.Artists often use this visual instinct to apply complementary colors to the color structure of the image simultaneously or continuously in the process of color painting to enrich the image and reduce the visual fatigue of the viewer.In different cave murals, the structure and production materials of murals are different, which increases the color complexity of mural scenes and brings certain difficulties to mural protection.Hence, a reasonable scheme needs to be designed for the color analysis of the grotto murals.
e color of the Dazu Rock Carvings extracted from the scene is visible.Unlike the color displayed by computer monitors with operations, how to convert the color from reality to computer value is a difficult problem for this paper.
ere are two kinds of existing colors of Dazu Rock Carvings.First, the color is still visible; second, the color is missing in varying degrees.According to the above two situations, a comprehensive technical route is formulated through consulting massive literature and optical professionals to realize real and virtual color conversion.Figure 7 displays the specific technical route.
Figure 7 displays that the color analyzer further obtains color data by dividing light and color materials in mural materials, simulates and restores colors through VR technology, compares similar colors to form a color space, and fills the color image database.Shi et al. [37] proved that most of the pigments used in the color painting of grotto murals are mineral pigments, which have stable chemical properties and are not easy to change color.However, after a long history, the color change of the Dazu Rock Carvings is diversified.e same original color will have different degrees of color decay and falling off due to different distribution and influencing factors such as light, weathering, and humidity.Figure 8 presents the digital application process of cave murals established by VR technology and DL.
In the digital preview of grotto mural images, the principle of camera interactive control is to simulate the first-person perspective of human beings.ereby, virtual characters can be set in virtual scenes.Moreover, the interactive control function of the camera can be realized by controlling the role perspective.
erefore, this digital simulation process will be used to analyze and identify the colors and materials of grotto murals.Murals in a cave are analyzed.Figure 9 presents the results.
Figure 9 displays that, for the images on the traditional grotto murals, first, the text is output through the sensor, then the mural repair and text extraction are carried out through the processor, and the digital simulation model is further established to analyze the mural text.

VR Technology and Artistic Modelling Analysis of Grotto Murals.
e deep application of VR technology has expanded people's imagination and cognitive range.It can conduct highly simulated virtual reconstruction of the historical scenes of the grotto murals and build the scenes  Scientific Programming and elements that once existed only in the human brain or imagination one by one.Moreover, it allows people to travel as in the real world while maintaining all the perceptual states of the real world so that the audience can truly experience the scenes previously seen in sci-fi blockbusters.is high coincidence between reality and virtual scene enables people to enjoy and feel the cave mural culture at any time.No matter where they are, they can enter the virtual cave mural scene for appreciation.ese precious historical and cultural heritages should be historical materials that people can read anytime and anywhere so that people can widely spread the historical and cultural spirit and focus on protecting the national treasure cultural relics.
e difference between VR technology and modern smartphones or other smart devices lies in whether it can present a perfect virtual world for people and whether people can get a new experience of infinite resources and space in this virtual world that cannot be felt and touched in real life.Maybe one day in the future, people can work in the virtual world and complete more work more relaxed and efficient.Moreover, they can even use completely different ways and tools from the current stage to maximize the liberation and improvement of productivity.e equipment used here is a handheld three-dimensional laser scanner, and the spatial measurement accuracy is 0.02 mm + 0.04 mm/m.e point and surface resolutions are 0.025 mm and 0.100 mm, respectively.e data transmission interface is universal serial bus 3.0, and the scanning range is 310 × 350 mm.

Analysis of Colour Recognition Effect of Grotto Murals by
the Digital Analysis Model.Many mineral pigments are adopted in the grotto murals.Moreover, with the years of sand erosion and man-made destruction, the color of many murals has significantly changed compared with the original color.ereby, in the whole process of simulated restoration with VR technology, identifying the original color of grotto murals has become a basic work.In this section, the digital analysis model established above will be employed to identify some colors of grotto murals, to judge whether the model can accurately identify and verify colors and to prove the model's color recognition performance.ere are two painting methods: stone carving and relief.Red, yellow, green, and black colors are selected for recognition and analysis.Figure 10 shows the results.
Figure 10 suggests that, in the system analysis results for red, the average recognition rate of stone carvings is between 80% and 90%, while the color recognition rate of relief carvings is in a steady rising state, with the highest point reaching 80%.After running for more than 2250 s, the recognition rate begins to decline.In the recognition results of yellow, the recognition rates of stone carvings and relief carvings are rising at the beginning, and the best recognition rates of relief carvings and stone carvings are 85% and 90%, respectively.After 1600 seconds, the recognition rate of relief decreases, the overall trend is up, and the recognition results are satisfactory.In the green recognition results, the overall trend of the recognition rate is on the rise, and the highest recognition rates of relief and stone carvings are 80% and 90%, respectively.After 2500 s, the recognition rate of both begins to decline.In the first 500 s, the recognition rate data fluctuate in both cases.Finally, in black recognition, the recognition rate of stone carving is stable throughout the whole process, maintains at about 50%, and shows a downward trend after 2500 seconds.e recognition rate of relief is low at first, only 10%.With the system's running, the recognition rate of relief rises and reaches 65% at most.It reveals that the system is currently in an unstable state.e recognition rate of color is sometimes high and sometimes low, but the recognition rate of red, yellow, and green can reach more than 80%.e recognition rate can be accepted and used for actual detection.However, the recognition rate of black is not high.e possible reason is that all colors will change into various darker colors after being eroded and damaged, and the recognition interference of black is more obvious.Hence, optimizing the recognition rate of dark colors will be the main work in the follow-up research.

e Type of Color Material Recognized according to the
Light of Color.Finally, the color of the grotto murals is verified and recognized using the digital recognition system.e results show that, except for black, the recognition rates of red, yellow, and green can meet daily work needs.e low recognition rate of black may be due to the lack of rich colors, so black is not often used in murals.is section will use the proposed system to analyze color drawing materials.Specific materials need to be preserved in a specific way, so analyzing mural material categories is also crucial in preserving grotto murals.Tan et al. [38] analyzed the specific colors of model painting materials.Table 2 presents the results.
e results in Table 2 prove that the digital recognition model can clearly identify each unique color.Currently, the above seven colors are identified and analyzed.e identification material of the system for ochre is hematite, malachite for stone green, lapis lazuli for stone cyan, black lead powder for graphite color, phlogopite for golden, and vermiculite for silver gold.It reveals that the recognition accuracy of the color model is relatively accurate.It can accurately identify substances with a single color, which ensures the overall analysis of one-to-one recognition results, and the recognition accuracy of the model is high.However, given the low recognition rate of black in the previous section, the model needs to be further optimized to ensure that the recognition accuracy of other colors is also significantly improved.

Conclusion
Grotto murals are an art treasure of great value in China.
ey record bits and pieces of China's long history.eir historical value rises naturally since China is a large country with a long history.However, due to many years of wind and sand erosion of Gobi and desert and man-made unintentional or even intentional damage, the murals' patterns are incomplete and colors have faded.ereby, a measure to repair the damage to grotto murals or preserve their complete appearance is urgently needed.However, the repair process is extremely complex and difficult, which will consume a lot of resources, and it is not optimistic after repair, so a method is needed to preserve it.According to the current advantages of DL technology and VR technology, this paper puts forward a way to preserve the murals by simulating and restoring the grotto murals based on VR technology.First, the grottoes' related concepts, materials, and colors are introduced.en, the cultural relics information acquisition technology in the field of DL is put forward and combined with VR technology to build a digital recognition model for grotto murals.e results of color recognition of grottoes show that the model can accurately identify the colors of red, yellow, and green except black.Besides, it can identify the drawing material of each specific color one-to-one.It can be concluded that the digital recognition system can accurately record and simulate the restoration of grotto murals, which is of great significance for the preservation simulation of grotto murals using VR technology.However, the model's discrimination rate for black is currently low.Some reasons are summarized, and this problem will be mainly solved in the follow-up work.

Figure 7 :
Figure 7: e digital color conversion process.

Table 1 :
e uniqueness of IBR technology.e uniqueness of IBR technology Images under IBR technology are generally drawn with separate scenes.esharpness of the image depends on the scene's complexity.e images adopted by IBR technology can be drawn manually or photographed on the spot and used comprehensively IBR technology has a low computer load and can be applied and deployed on any multimedia device speed is low.ere are lots of college students with different personal preferences.Many resources are wasted in massive virtual videos and images.Using a single algorithm cannot meet the needs of variability.Hence, a new hybrid recommendation algorithm is a feasible scheme to solve this problem.