Cultural relic protection state monitoring and preventive protection method based on scenic area

CN119067638AActive Publication Date: 2024-12-03承德避暑山庄及周围寺庙景区服务中心

Patent Information

Application Number
CN202411115368.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-14
Publication Date
2024-12-03
Estimated Expiration
2044-08-14

Smart Images

  • Figure CN119067638A_ABST
    Figure CN119067638A_ABST
Patent Text Reader

Abstract

The invention relates to the field of cultural relic protection, and discloses a cultural relic protection state monitoring and preventive protection method based on a scenic area, which is used for solving the problem that parameters selected for evaluating the state of a cultural relic are not representative any more after the cultural relic in the scenic area is damaged and repaired, and comprises the following steps: shooting and recording an image of the cultural relic in real time; historical cultural relic maintenance data are collected, historical cultural relic images are analyzed through an image recognition technology, the historical cultural relic damage degree is obtained, a cultural relic re-damage coefficient is obtained through comprehensive evaluation according to cultural relic maintenance information, real-time temperature and humidity data near the cultural relic are collected, and an environmental influence coefficient is obtained through calculation. The tourist bearing capacity of the scenic area in the detection time period is collected, the tourist influence coefficient is calculated, the cultural relic damage index is obtained through comprehensive evaluation, cultural relic damage early warning management is performed according to the cultural relic damage index, real-time state monitoring of the cultural relics in the scenic area is effectively realized, and the accuracy of cultural relic state evaluation is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of cultural relics protection, and more specifically to a cultural relics protection status monitoring and preventive protection method based on scenic spots. Background Art

[0002] Cultural relic status monitoring is a systematic process that aims to regularly evaluate and record the various physical, chemical and biological characteristics of cultural relics, as well as the environmental factors related to them, so as to promptly detect potential damage, degradation or other problems and take necessary measures for protection and maintenance. Monitoring the status of cultural relics can help to detect potential damage or destruction early, take necessary protective measures, avoid further damage to cultural relics, and reasonably allocate human, material and financial resources according to the monitoring results of the status of cultural relics to improve management efficiency.

[0003] The existing method of monitoring the status of cultural relics and preventive protection is to monitor the status of cultural relics through physical testing, chemical analysis and environmental testing. However, this testing method may lead to the problem that when the cultural relics in the scenic area have been damaged and repaired, the parameters previously selected to assess the status of the cultural relics are no longer representative.

[0004] In view of the above problems, the present invention proposes a solution. Summary of the invention

[0005] In order to overcome the above-mentioned defects of the prior art, the present invention provides a method for monitoring the protection status of cultural relics and a preventive protection method based on a scenic area to solve the problems existing in the above-mentioned background technology.

[0006] To achieve the above object, the present invention provides the following technical solutions:

[0007] The method of monitoring the protection status of cultural relics in scenic areas and preventive protection includes the following steps:

[0008] Set up high-definition video cameras near the cultural relics in the scenic area to record in real time, collect images of the cultural relics every time they are maintained, and save them in the maintenance status database;

[0009] Collecting historical maintenance data of cultural relics, the maintenance data including maintenance start time, maintenance end time, maintenance personnel information and cultural relic status image, the maintenance personnel information including name, obtained professional certificate and working age;

[0010] Collect the images of cultural relics during the last maintenance from the maintenance status database, analyze the images of cultural relics through image recognition technology, and obtain the degree of damage of historical cultural relics;

[0011] The professional level of the maintenance personnel is calculated based on the maintenance personnel's information. The calculation formula is PL = log (NUM C+1)×log(AE+1), where PL represents the professional level of the maintenance personnel, NUM C It represents the number of professional certificates obtained by the maintenance personnel, and AE represents the maintenance personnel’s working age;

[0012] Calculate the time taken for the most recent maintenance based on the maintenance data. The calculation formula is MT = T 结束 -T 开始 , where MT represents the time taken for the most recent maintenance, T 结束 Indicates the maintenance end time, T 开始 Indicates the maintenance start time;

[0013] The re-damage coefficient of cultural relics is calculated based on the degree of damage to historical cultural relics, the professional level of maintenance personnel, and the time taken for the most recent maintenance. The calculation formula is: DA is the re-damage coefficient of cultural relics, ED is the degree of damage to historical cultural relics, MT is the time taken for the last maintenance, and PL is the professional level of the maintenance personnel.

[0014] Collect real-time temperature and humidity data near the cultural relics, calculate the real-time temperature change rate and humidity change rate, and calculate the environmental impact coefficient based on the real-time temperature change rate and humidity change rate;

[0015] Collect the tourist carrying capacity of the scenic spot during the detection period and calculate the tourist impact coefficient;

[0016] The cultural relic damage index is calculated based on the comprehensive evaluation of the cultural relic re-damage coefficient, environmental impact coefficient and tourist impact coefficient. The calculation formula is HS = a1 × DA + a2 × EI + a3 × TI, where HS represents the cultural relic damage index, DA represents the cultural relic re-damage coefficient, EI represents the environmental impact coefficient, TI represents the tourist impact coefficient, and a1, a2, and a3 represent the weight coefficients of the cultural relic re-damage coefficient, the environmental impact coefficient and the tourist impact coefficient.

[0017] Issue cultural relics damage warnings based on the cultural relics damage index to remind staff to carry out cultural relics repair and management in a timely manner.

[0018] Preferably, the step of analyzing the cultural relic image by image recognition technology to obtain the degree of damage of the historical cultural relic is:

[0019] Collect the image of the cultural relic at the time of the last maintenance, and use the edge detection method to separate the image of the cultural relic from the background;

[0020] Extract the separated cultural relic main body image, divide the image into n parts equally, and record them as sub-cultural relic main body images;

[0021] Using image recognition technology, the number of damages in each sub-cultural relic body image is identified, which is recorded as a damage number data set, and the number of damages in the damage number data set is a data point;

[0022] The number of damaged parts in each sub-cultural relic body image is clustered, and the degree of damage to the historical cultural relic is calculated based on the clustering results.

[0023] Preferably, the step of separating the cultural relic main body image from the background using edge detection method is:

[0024] Convert the color image to a grayscale image and perform Gaussian blur on the image;

[0025] The Sobel operator is used to calculate the gradient of the image in the x and y directions. The Sobel operator is convolved with the grayscale image to obtain the gradient of the image in the x direction. The calculation formula is: x =I gray *G x , where I x It is represented as the gradient of the image in the x direction, I y Represented as the gradient of the image in the y direction I gray Represents the input grayscale image, * represents the convolution operation;

[0026] According to the horizontal and vertical gradients, the gradient amplitude of each pixel is calculated, and the calculation formula is: Calculate the gradient direction of each pixel, and the calculation formula is

[0027] Quantify the gradient direction, set high threshold and low threshold, and use double threshold detection to divide the edges into strong edges and weak edges;

[0028] Traverse the image, for each pixel marked as a weak edge, check its neighboring pixels. If at least one neighboring pixel is a strong edge, keep the weak edge pixel as an edge. If the weak edge pixel is not connected to any strong edge, set it to 0 to ensure that the weak edge is connected to the strong edge. Remove the isolated weak edges and get the edge line between the artifact image and the background.

[0029] Preferably, the step of using image recognition technology to identify the amount of damage in each sub-cultural relic body image is:

[0030] Collect a dataset containing damaged and undamaged sub-cultural relics images, annotate the collected images, mark the categories of damage or not, preprocess the damaged images, and divide the preprocessed damaged images into training set, verification set and test set;

[0031] Use the labeled data set to train the convolutional neural network model to obtain the final model;

[0032] The final model is used to identify each sub-cultural relic body image, and the number of damaged areas in each sub-cultural relic body image is obtained based on the identification results.

[0033] Preferably, the step of using the labeled data set to train the convolutional neural network is:

[0034] Step 1: Define the initialization model;

[0035] Step 2: Input the images of the training set into the model to obtain the prediction results, and calculate the loss function value based on the prediction results and the true labels. The calculation formula is: Where Loss is the loss function value. Represents the label predicted by the model, y i Represents the true label, and N represents the number of samples;

[0036] Step 3: Use the back propagation algorithm to update the model parameters so that the loss function value gradually decreases, and use the stochastic gradient descent method to update the model parameters;

[0037] Step 4: Repeat step 3 until the loss function converges;

[0038] Step 5: Use the validation set to evaluate the trained model, evaluate the model's accuracy, precision, recall rate, and F1 score indicators, calculate the model accuracy based on the evaluation results, and compare the model accuracy with the preset threshold. If the model accuracy is greater than the preset threshold, output the current model as the final model. If the model accuracy is less than the preset threshold, return to step 2 to continue model training.

[0039] Preferably, the step of clustering the number of damaged parts in each sub-cultural relic main body image and calculating the degree of damage to the historical cultural relic based on the clustering result is:

[0040] Step 1: Use the elbow method to determine the optimal number of clusters;

[0041] Step 2: Use K-means clustering method to cluster the number of damages in each sub-cultural relic body image;

[0042] Step 3: According to the optimal number of clusters, randomly select the corresponding number of data points from the data points as the initial cluster centers of the cluster, use the Euclidean distance to calculate the distance between each sample and each initial cluster center point, and assign the data points to the cluster to which the nearest cluster center belongs;

[0043] Step 4: For each cluster, calculate the mean of all its data points and use the mean as the new cluster center;

[0044] Step 5: Repeat steps 3 and 4 until the cluster center no longer changes, and obtain the final cluster and the final cluster center;

[0045] Step 6: Count the number of data points in each final cluster, calculate the ratio of the number of data points in each final cluster to the total number of data points in the data set, and obtain the weight coefficient of each final cluster;

[0046] Step 7: Calculate the degree of damage to historical relics based on the cluster center and weight coefficient of each final cluster.

[0047] Preferably, the environmental impact coefficient calculation step is:

[0048] Set the detection time period, collect temperature data at the current time point and the time point before the monitoring time period, and calculate the temperature change rate within the detection time period;

[0049] Collect humidity data at the current time point and at the time point before the monitoring period, and calculate the humidity change rate during the detection period;

[0050] The temperature change rate and humidity change rate are converted into values ​​between 0 and 1 using the maximum-minimum normalization method;

[0051] The environmental impact coefficient is calculated based on the standardized temperature change rate and humidity change rate.

[0052] Preferably, the tourist carrying capacity of the scenic spot within the collection detection time period and the step of calculating the tourist impact coefficient are:

[0053] The unit building of the scenic area is used as the calculation unit. The unit building includes halls, roads and courtyards. The total area of ​​the unit building is obtained, and the set proportion of the total area of ​​the unit building is taken as the effective area. The instantaneous carrying capacity of the unit building is calculated. The calculation formula is CY 瞬时 =GA×80%×QP, where CY 瞬时 It is expressed as the instantaneous carrying capacity, GA is expressed as the total area of ​​the unit building, and QP is expressed as the number of tourists per unit area;

[0054] Obtain the effective opening hours of the scenic spot every day and the average visiting time of each tourist in the scenic spot, and calculate the daily average turnover rate. The calculation formula is: Where DT represents the daily average turnover rate, T 开放 It is the effective opening time of the scenic spot every day, T 游览 It is expressed as the average visiting time of each tourist in the scenic spot;

[0055] The maximum carrying capacity is calculated based on the instantaneous carrying capacity and the daily average turnover rate. The calculation formula is CY 最大 =CY 瞬时×DT, where CY 最大 Expressed as the maximum load, CY 瞬时 It is expressed as instantaneous carrying capacity, and DT is expressed as daily average turnover rate;

[0056] Monitor the real-time number of tourists in the scenic area, and accumulate the real-time cumulative number of tourists on the day. According to the real-time number of tourists, the real-time cumulative number of tourists, the instantaneous carrying capacity and the maximum carrying capacity, the tourist impact coefficient is calculated. The calculation formula is TI = (CY 瞬时 -NUM 实时 )+(CY 最大 -NUM 累计 ), where TI is the tourist impact coefficient, CY 瞬时 Expressed as instantaneous load, NUM 实时 Expressed as the real-time number of tourists, CY 最大 Expressed as maximum load, NUM 累计 Expressed as the real-time cumulative number of visitors.

[0057] Preferably, the step of issuing a warning of damage to cultural relics based on the cultural relics damage index is to compare the cultural relics damage index with a preset threshold value. If the cultural relics damage index is less than the preset threshold value, it is determined that the current degree of damage to the cultural relics is small and no warning is issued. If the cultural relics damage index is greater than the preset threshold value, it is determined that the current degree of damage to the cultural relics is large and a warning is issued.

[0058] Technical effects and advantages of the present invention:

[0059] Real-time photography and recording of cultural relics images, collection of historical maintenance data of cultural relics, analysis of cultural relic images through image recognition technology, the degree of damage to historical cultural relics, comprehensive assessment based on cultural relic maintenance information to obtain the cultural relic re-damage coefficient, collection of real-time temperature and humidity data near the cultural relics, calculation of the environmental impact coefficient, collection of the tourist carrying capacity of the scenic area during the detection period, calculation of the tourist impact coefficient, comprehensive assessment to obtain the cultural relic damage index, and cultural relic damage early warning management based on the cultural relic damage index, effectively realizing real-time status monitoring of cultural relics in scenic areas and improving the accuracy of cultural relic status assessment. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] Figure 1 It is the overall flow chart of the present invention. DETAILED DESCRIPTION

[0061] The technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the present invention. In addition, the forms of the various structures recorded in the following embodiments are only examples. The cultural relics protection status monitoring and preventive protection methods based on scenic areas involved in the present invention are not limited to the various structures recorded in the following embodiments. All other implementations obtained by ordinary technicians in this field without making creative work belong to the scope of protection of the present invention.

[0062] The present invention provides a method for monitoring the state of cultural relics protection and preventive protection based on a scenic spot, comprising the following steps:

[0063] Set up high-definition video cameras near the cultural relics in the scenic area to record in real time, collect images of the cultural relics every time they are maintained, and save them in the maintenance status database;

[0064] Collecting historical maintenance data of cultural relics, the maintenance data including maintenance start time, maintenance end time, maintenance personnel information and cultural relic status image, the maintenance personnel information including name, obtained professional certificate and working age;

[0065] Collect images of cultural relics from the maintenance status database at the time of the last maintenance, and analyze the images of cultural relics through image recognition technology to obtain the degree of damage of historical cultural relics. The image recognition technology is a technology that uses computer vision and artificial intelligence algorithms to analyze and understand the content of images. It has important applications in cultural relic protection, especially in assessing the degree of damage of historical cultural relics;

[0066] The professional level of the maintenance personnel is calculated based on the maintenance personnel's information. The calculation formula is PL = log (NUM C +1)×log(AE+1), where PL represents the professional level of the maintenance personnel, NUM C It represents the number of professional certificates obtained by the maintenance personnel, and AE represents the maintenance personnel’s working age;

[0067] Calculate the time taken for the last maintenance based on the maintenance data. The calculation formula is MT = T 结束 -T 开始 , where MT represents the time taken for the last maintenance, T 结束 Indicates the maintenance end time, T 开始 Expressed as the start time of maintenance, if the damage to the cultural relic is very serious, such as structural damage, extensive corrosion or erosion, then the time required for maintenance will usually be longer. This is because the restoration process may require more steps, more complex techniques and more meticulous work;

[0068] The re-damage coefficient of cultural relics is calculated based on the degree of damage to historical cultural relics, the professional level of maintenance personnel, and the time taken for the last maintenance. The calculation formula is: Among them, DA represents the coefficient of re-damage of cultural relics, ED represents the degree of damage of historical cultural relics, the degree of damage of historical cultural relics is used as the numerator, which represents the initial risk of damage, MT represents the time taken for the last maintenance, and the square root of the maintenance time reflects the effect of maintenance time on reducing the risk of re-damage. However, considering the diminishing marginal effect of time on risk reduction, the square root is used to smooth this effect, PL represents the professionalism of the maintenance personnel, and the professionalism of the maintenance personnel is used as the denominator, indicating that the higher the professionalism, the lower the risk of re-damage;

[0069] Collect real-time temperature and humidity data near the cultural relics, calculate the real-time temperature and humidity change rate, and calculate the environmental impact coefficient based on the real-time temperature and humidity data and the temperature and humidity change rate;

[0070] Collect the tourist carrying capacity of the scenic spot during the detection period and calculate the tourist impact coefficient;

[0071] The cultural relic damage index is calculated based on the comprehensive evaluation of the cultural relic re-damage coefficient, environmental impact coefficient and tourist impact coefficient. The calculation formula is HS = a1 × DA + a2 × EI + a3 × TI, where HS represents the cultural relic damage index, DA represents the cultural relic re-damage coefficient, and the cultural relic re-damage coefficient represents the past damage of the cultural relic. The past damage of the cultural relic has a certain impact on its current state. Cultural relic that has suffered significant historical damage may be more susceptible to further damage. The environmental conditions in which the cultural relic is located have an important impact on the degree of damage. If the cultural relics are in harsh environmental conditions for a long time, such as high humidity, high temperature or strong ultraviolet radiation, then their historical damage may be higher, and there may be a closer relationship between them and the current damage index. EI represents the environmental impact coefficient. The environmental conditions in which the cultural relic is located (such as temperature, humidity, light, etc.) are important factors in the damage of cultural relics. Harsh environmental conditions may accelerate the corrosion, fading or physical damage process of cultural relics, thereby increasing the damage index of cultural relics. If the environmental impact coefficient is higher, it means that the environmental conditions have a greater impact on the damage of cultural relics, and the damage index of cultural relics will also increase accordingly. TI is represented by the tourist impact coefficient. Tourist activities may cause various damages to cultural relics, such as touching, rubbing, trampling, collision, etc. These activities may cause damage such as wear, scratches, fading, etc. on the surface of cultural relics, thereby affecting the integrity and aesthetics of cultural relics. The guest impact coefficient can be regarded as a quantitative indicator of the direct impact of tourist activities on the damage index of cultural relics. If the tourist impact coefficient is higher, it means that the tourist activities have a greater impact on the damage of cultural relics, and the damage index of cultural relics will also increase accordingly. a1, a2, and a3 are represented as weight coefficients of the cultural re-damage coefficient, environmental impact coefficient, and tourist impact coefficient, and this embodiment does not perform specific calculations on the specific values ​​of a1, a2, and a3;

[0072] Issue cultural relics damage warnings based on the cultural relics damage index to remind staff to carry out cultural relics repair and management in a timely manner.

[0073] In this embodiment, it should be specifically explained that the steps of analyzing the cultural relic image by image recognition technology to obtain the degree of damage of the historical cultural relic are:

[0074] Collect images of cultural relics from the last maintenance, and use edge detection to separate the image of the cultural relic from the background. The edge detection method is a technique used in image processing and computer vision to identify areas in an image where pixel values ​​change significantly. These areas usually correspond to the boundaries of objects. Edge detection is particularly useful in segmenting the body of a cultural relic from its background, and can help accurately extract the contours of the cultural relic. Commonly used edge detection algorithms include the Sobel operator, the Canny operator, the Prewitt operator, and the Laplacian operator.

[0075] Extract the separated cultural relic main body image, divide the image into n parts equally, and record them as sub-cultural relic main body images;

[0076] Using image recognition technology, the number of damages in each sub-cultural relic body image is identified and recorded as a damage number data set, and the number of damages in the damage number data set is a data point;

[0077] The number of damaged parts in each sub-cultural relic body image is clustered, and the degree of damage to the historical cultural relic is calculated based on the clustering results.

[0078] In this embodiment, it should be specifically explained that the steps of separating the cultural relic body image from the background using the edge detection method are as follows:

[0079] Convert the color image to a grayscale image to simplify the calculation and reduce the processing complexity. The conversion formula is: gray =0.299×R+0.587×G+0.114×B, where I gray Represented as a grayscale image, R, G, B are the red, blue, and green channel values ​​of the image respectively;

[0080] Gaussian blur is performed on the image to reduce image noise. The Gaussian blur expression is: Where x represents the horizontal coordinate of the pixel relative to the center of the Gaussian kernel, y represents the vertical coordinate of the pixel relative to the center of the Gaussian kernel, G(x,y) represents the value of the Gaussian function at the pixel point (x,y), σ represents the standard deviation of the Gaussian function, which determines the degree of Gaussian blur, 2πσ 2 It is expressed as a normalization factor, ensuring that the sum of the Gaussian kernel is 1;

[0081] The Sobel operator is used to calculate the gradient of the image in the x and y directions. The Sobel operator is two 3x3 convolution kernels, one for calculating the horizontal gradient G x , and the other one is used to calculate the vertical gradient G y , where the horizontal gradient is Vertical Gradient

[0082] Convolve the Sobel operator with the grayscale image to obtain the gradient of the image in the x direction, which is calculated as: x =I gray *G x , where I x It is expressed as the gradient of the image in the x direction, I y Represented as the gradient I of the image in the y direction gray Represents the input grayscale image, * represents the convolution operation;

[0083] According to the horizontal and vertical gradients, the gradient amplitude of each pixel is calculated, and the calculation formula is: Calculate the gradient direction of each pixel, and the calculation formula is

[0084] The gradient direction is quantized into four main directions (0°, 45°, 90°, 135°), which correspond to the eight directions in the gradient image (horizontal, vertical, and two diagonal directions). The gradient magnitude of the current pixel is compared with the gradient magnitudes of its two neighboring pixels along the gradient direction. If the current pixel is not a local maximum, its gradient magnitude is set to 0.

[0085] Set high threshold and low threshold, and use double threshold detection to divide edges into strong edges and weak edges;

[0086] Traverse the image and for each pixel marked as a weak edge, check its 8 neighboring pixels. If at least one neighboring pixel is a strong edge, keep the weak edge pixel as an edge. If the weak edge pixel is not connected to any strong edge, set it to 0 to ensure that the weak edge is connected to the strong edge and remove isolated weak edges.

[0087] In this embodiment, it should be specifically explained that the steps of using image recognition technology to identify the amount of damage in each sub-cultural relic body image are:

[0088] Collecting a data set containing damaged and undamaged sub-cultural relics images, annotating the collected images, marking the categories of damage or not, preprocessing the damaged images, including graying, denoising and edge detection operations, and dividing the preprocessed damaged images into a training set, a validation set and a test set;

[0089] The convolutional neural network model is trained using the labeled data set to obtain the final model. The convolutional neural network model is a deep learning model that is specifically used to process tasks with grid-structured data, such as image recognition, image classification, object detection, etc. The convolutional neural network model has achieved great success in the field of image processing and has taken a leading position in many computer vision tasks;

[0090] The final model is used to identify each sub-cultural relic body image, and the number of damaged areas in each sub-cultural relic body image is obtained based on the identification results.

[0091] In this embodiment, it should be specifically explained that the steps of using the labeled data set to train the convolutional neural network are:

[0092] Step 1: Define the structures of convolutional layer, pooling layer, fully connected layer, etc., determine the activation function and loss function, and initialize the weight and bias parameters of the model;

[0093] Step 2: Input the images of the training set into the model to obtain the prediction results, and calculate the loss function value based on the prediction results and the true labels. The calculation formula is: Where Loss is the loss function value. Represents the label predicted by the model, y i Represents the true label, and N represents the number of samples;

[0094] Step 3: Use the back propagation algorithm to update the model parameters so that the loss function value gradually decreases, and use the stochastic gradient descent method to update the model parameters;

[0095] Step 4: Repeat step 3 until the loss function converges;

[0096] Step 5: Use the validation set to evaluate the trained model, evaluate the model's accuracy, precision, recall and F1 score indicators, and calculate the model accuracy based on the evaluation results. The calculation formula is ZQ=f(Z1, Z2, Z3, Z4), where ZQ represents the model accuracy, Z1, Z2, Z3, and Z4 represent the model's accuracy, precision, recall and F1 score indicators. Compare the model accuracy with the preset threshold. If the model accuracy is greater than the preset threshold, output the current model as the final model. If the model accuracy is less than the preset threshold, return to step 2 to continue model training. The calculation of the model's accuracy, precision, recall and F1 score is a prior art, and this embodiment does not specifically describe its specific calculation steps.

[0097] In this embodiment, it should be specifically explained that the steps of clustering the number of damages in each sub-cultural relic body image and calculating the degree of damage to the historical cultural relic according to the clustering result are as follows:

[0098] Step 1: Determine the optimal number of clusters using the elbow method, which is a heuristic method for determining the optimal number of clusters in a clustering algorithm;

[0099] Step 2: Use K-means clustering to cluster the number of damages in each sub-artifact body image. The K-means clustering method is a commonly used clustering algorithm for dividing a data set into K different categories. The algorithm optimizes the clustering results by iteratively assigning data points to the nearest cluster center and updating the cluster center;

[0100] Step 3: According to the optimal number of clusters, randomly select the corresponding number of data points from the data points as the initial cluster centers of the cluster, and use the Euclidean distance to calculate the distance between each sample and each initial cluster center point. For example, calculate the distance between data point x i and the initial cluster center c j The distance d(x i ,c j ), and its calculation formula is where x ik Represents data point x i The value in the kth cluster, c jk Represents the cluster center c j The value of the kth cluster, n, is represented by the data point x i and cluster center c j The number of features is calculated, and the data points are assigned to the cluster to which the nearest cluster center belongs. In the K-means clustering algorithm, the Euclidean distance is often used to measure the distance between each sample and the cluster center point. Calculating the Euclidean distance between each sample and each initial cluster center point can help determine the nearest cluster center to which each sample belongs, thereby performing cluster assignment;

[0101] Step 4: For each cluster, calculate the mean of all its data points and use the mean as the new cluster center. The calculation formula is: Where S j Represented as the set of data points in the jth cluster, c' j is represented as the new cluster center of the jth cluster, |S j | represents the number of data points in the jth cluster, x i represents the i-th data point;

[0102] Step 5: Repeat steps 3 and 4 until the cluster center no longer changes, and obtain the final cluster and the final cluster center;

[0103] Step 6: Count the number of data points in each final cluster, calculate the ratio of the number of data points in each final cluster to the total number of data points in the data set, and obtain the weight coefficient of each final cluster. The calculation formula is: Where X j Represented as the weight coefficient of the jth final cluster, NUM 总 Represents the total number of data points in the data set, NUM j Represents the number of data points in the jth final cluster;

[0104] Step 7: Calculate the degree of damage to historical relics based on the cluster center and weight coefficient of each final cluster. The calculation formula is: ED represents the degree of damage to historical relics, X j Expressed as the weight coefficient of the jth final cluster, L j Denoted as the jth final cluster center.

[0105] In this embodiment, it should be specifically explained that the environmental impact coefficient calculation steps are:

[0106] Set the detection time period, collect the temperature data at the current time point and the time point before the monitoring time period, and calculate the temperature change rate within the detection time period. The calculation formula is: Where CT represents the temperature change rate, C2 represents the temperature data at the current time point, C1 represents the temperature data at the time point before the monitoring period, and T represents the detection period;

[0107] Collect humidity data at the current time point and the time point before the monitoring period, and calculate the humidity change rate during the detection period. The calculation formula is: Where CH represents the humidity change rate, H2 represents the humidity data at the current time point, H1 represents the humidity data at the time point before the monitoring period, and T represents the detection period;

[0108] The temperature change rate and humidity change rate are converted into values ​​between 0 and 1 using the maximum-minimum standardization method. The maximum-minimum standardization is a data preprocessing technique used to linearly convert data into a specified range, usually between 0 and 1. This method ensures that the relative size of the data remains unchanged, but scales the actual range of the data. Since the standardization process converts the data into unitless values, the influence of different dimensions on the data analysis results is eliminated;

[0109] The environmental impact coefficient is calculated based on the standardized temperature change rate and humidity change rate. The calculation formula is: Where EI represents the environmental impact coefficient, CT represents the temperature change rate, and CH represents the humidity change rate.

[0110] In this embodiment, it should be specifically explained that the tourist carrying capacity of the scenic spot within the collection and detection time period is calculated to obtain the tourist impact coefficient in the following steps:

[0111] The unit building of the scenic area is used as the calculation unit. The unit building includes halls, roads and courtyards, etc. The total area of ​​the unit building is obtained, and 80% of the total area of ​​the unit building is taken as the effective area to calculate the instantaneous carrying capacity of the unit building. The calculation formula is CY 瞬时 =GA×80%×QP, where CY 瞬时 It is represented as the instantaneous carrying capacity, GA is represented as the total area of ​​the unit building, and QP is represented as the number of tourists per unit area. In this embodiment, QP is taken as 1.1m 2 / people;

[0112] Obtain the effective opening hours of the scenic spot every day and the average visiting time of each tourist in the scenic spot, and calculate the daily average turnover rate. The calculation formula is: Where DT represents the daily average turnover rate, T 开放 It is the effective opening time of the scenic spot every day, T 游览 It is expressed as the average visiting time of each tourist in the scenic spot;

[0113] The maximum carrying capacity is calculated based on the instantaneous carrying capacity and the daily average turnover rate. The calculation formula is CY 最大 =CY 瞬时 ×DT, where CY 最大 Expressed as the maximum load, CY 瞬时 It is expressed as instantaneous carrying capacity, and DT is expressed as daily average turnover rate;

[0114] Monitor the real-time number of tourists in the scenic area, and accumulate the real-time cumulative number of tourists on the day. According to the real-time number of tourists, the real-time cumulative number of tourists, the instantaneous carrying capacity and the maximum carrying capacity, the tourist impact coefficient is calculated. The calculation formula is TI = (CY 瞬时 -NUM 实时 )+(CY 最大 -NUM 累计 ), where TI is the tourist impact coefficient, CY 瞬时 Expressed as instantaneous load, NUM 实时 Expressed as the real-time number of tourists, CY 最大 Expressed as maximum load, NUM 累计 Expressed as the real-time cumulative number of visitors.

[0115] The tourist impact coefficient provides real-time data, enabling managers to promptly detect excessive tourist numbers in scenic areas and prevent overcrowding. Too many tourists may cause damage to cultural relics and the natural environment. This damage can be reduced by real-time monitoring and regulation of the number of tourists. High tourist numbers may have a negative impact on the ecological environment of scenic areas. Timely adjustments can protect the natural resources of scenic areas. It provides data support for scenic area managers to help them make more scientific and effective management decisions. By analyzing historical tourist impact coefficient data, the patterns and trends of tourist flow can be discovered, allowing for longer-term planning and resource allocation.

[0116] Evaluating and controlling the tourist carrying capacity can prevent a large number of tourists from gathering near cultural relics in a short period of time, reducing physical damage caused by collisions, friction and other behaviors. Appropriately limiting the number of tourists can reduce the frequency of tourists' direct contact with cultural relics and reduce damage to cultural relics by touching, taking pictures and other behaviors. Too many tourists may bring problems such as garbage and air pollution. Evaluating and controlling the carrying capacity can reduce the impact of these pollutions on cultural relics. A large number of tourists may cause changes in humidity and temperature in the scenic area, which will have an adverse effect on the preservation environment of cultural relics. Appropriately controlling the number of tourists can better maintain the environmental stability of cultural relics.

[0117] Too many tourists may cause frequent ground vibrations, causing long-term hidden damage to the structure of cultural relics. This impact can be reduced by evaluating and controlling the number of tourists; a large number of tourists may cause additional pressure on the bearing structures of cultural relics (such as ancient bridges and ancient buildings), and appropriate restrictions on the number of tourists can protect these structures from excessive pressure; evaluating the tourist carrying capacity can avoid excessive use and visits of cultural relics and ensure that cultural relics are fully rested and protected.

[0118] In this embodiment, it should be specifically explained that the step of issuing a warning of damage to cultural relics based on the cultural relics damage index is to compare the cultural relics damage index with a preset threshold value. If the cultural relics damage index is less than the preset threshold value, it is determined that the current degree of damage to the cultural relics is small, and no warning processing is performed. If the cultural relics damage index is greater than the preset threshold value, it is determined that the current degree of damage to the cultural relics is large, and a warning processing is performed.

[0119] Finally: The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

[0120] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for monitoring the protection status of cultural relics in scenic areas and for preventive protection, characterized in that: The following steps are involved: Set up high-definition video cameras near the cultural relics in the scenic area to record in real time, collect images of the cultural relics every time they are maintained, and save them in the maintenance status database; Collecting historical maintenance data of cultural relics, the maintenance data including maintenance start time, maintenance end time, maintenance personnel information and cultural relic status image, the maintenance personnel information including name, obtained professional certificate and working age; Collect the images of cultural relics during the last maintenance from the maintenance status database, analyze the images of cultural relics through image recognition technology, and obtain the degree of damage of historical cultural relics; The professional level of the maintenance personnel is calculated based on the maintenance personnel's information. The calculation formula is PL = log (NUM C +1)×log(AE+1), where PL represents the professional level of maintenance personnel, NUM C It represents the number of professional certificates obtained by the maintenance personnel, and AE represents the maintenance personnel’s working age; Calculate the time taken for the most recent maintenance based on the maintenance data. The calculation formula is MT = T 结束 -T 开始 , where MT represents the time taken for the most recent maintenance, T 结束 Indicates the maintenance end time, T 开始 Indicates the maintenance start time; The re-damage coefficient of cultural relics is calculated based on the degree of damage to historical cultural relics, the professional level of maintenance personnel, and the time taken for the most recent maintenance. The calculation formula is: DA is the re-damage coefficient of cultural relics, ED is the degree of damage to historical cultural relics, MT is the time taken for the last maintenance, and PL is the professional level of the maintenance personnel. Collect real-time temperature and humidity data near the cultural relics, calculate the real-time temperature change rate and humidity change rate, and calculate the environmental impact coefficient based on the real-time temperature change rate and humidity change rate; Collect the tourist carrying capacity of the scenic spot during the detection period and calculate the tourist impact coefficient; The cultural relic damage index is calculated based on the comprehensive evaluation of the cultural relic re-damage coefficient, environmental impact coefficient and tourist impact coefficient. The calculation formula is HS = a1 × DA + a2 × EI + a3 × TI, where HS represents the cultural relic damage index, DA represents the cultural relic re-damage coefficient, EI represents the environmental impact coefficient, TI represents the tourist impact coefficient, and a1, a2, and a3 represent the weight coefficients of the cultural relic re-damage coefficient, the environmental impact coefficient and the tourist impact coefficient. Issue cultural relics damage warnings based on the cultural relics damage index to remind staff to carry out cultural relics repair and management in a timely manner.

2. The method for monitoring and preventing protection of cultural relics in scenic areas according to claim 1 is characterized in that: The steps of analyzing the cultural relic images by image recognition technology to obtain the degree of damage of the historical cultural relics are as follows: Collect the image of the cultural relic at the time of the last maintenance, and use the edge detection method to separate the image of the cultural relic from the background; Extract the separated cultural relic main body image, divide the image into n parts equally, and record them as sub-cultural relic main body images; Using image recognition technology, the number of damages in each sub-cultural relic body image is identified and recorded as a damage number data set, and the number of damages in the damage number data set is a data point; The number of damaged parts in each sub-cultural relic body image is clustered, and the degree of damage to the historical cultural relic is calculated based on the clustering results.

3. The method for monitoring and preventing protection of cultural relics in scenic areas according to claim 2 is characterized in that: The steps of separating the cultural relic body image from the background using the edge detection method are as follows: Convert the color image to a grayscale image and perform Gaussian blur on the image; The Sobel operator is used to calculate the gradient of the image in the x and y directions. The Sobel operator is convolved with the grayscale image to obtain the gradient of the image in the x direction. The calculation formula is I x =I gay *G x , where I x It is expressed as the gradient of the image in the x direction, I y Represented as the gradient I of the image in the y direction gray Represents the input grayscale image, * represents the convolution operation; According to the horizontal and vertical gradients, the gradient amplitude of each pixel is calculated, and the calculation formula is: Calculate the gradient direction of each pixel, and the calculation formula is Quantify the gradient direction, set high threshold and low threshold, and use double threshold detection to divide the edges into strong edges and weak edges; Traverse the image and check the neighboring pixels for each pixel marked as a weak edge. If at least one neighboring pixel is a strong edge, keep the weak edge pixel as an edge. If the weak edge pixel is not connected to any strong edge, set it to 0 to ensure that the weak edge is connected to the strong edge. Remove the isolated weak edges and obtain the edge line between the artifact image and the background.

4. The method for monitoring and preventing protection of cultural relics in scenic areas according to claim 2 is characterized in that: The steps of using image recognition technology to identify the amount of damage in each sub-cultural relic body image are as follows: Collect a dataset containing damaged and undamaged sub-cultural relics images, annotate the collected images, mark the categories of damage or not, preprocess the damaged images, and divide the preprocessed damaged images into training set, verification set and test set; Use the labeled data set to train the convolutional neural network model to obtain the final model; The final model is used to identify each sub-cultural relic body image, and the number of damaged areas in each sub-cultural relic body image is obtained based on the identification results.

5. The method for monitoring and preventing protection of cultural relics in scenic areas according to claim 4 is characterized in that: The steps of training the convolutional neural network model using the labeled data set are: Step 1: Define the initialization model; Step 2: Input the images of the training set into the model to obtain the prediction results, and calculate the loss function value based on the prediction results and the true labels. The calculation formula is: Where Loss is the loss function value. Represents the label predicted by the model, y i Represents the true label, and N represents the number of samples; Step 3: Use the back propagation algorithm to update the model parameters so that the loss function value gradually decreases, and use the stochastic gradient descent method to update the model parameters; Step 4: Repeat step 3 until the loss function converges; Step 5: Use the validation set to evaluate the trained model, evaluate the model's accuracy, precision, recall rate, and F1 score indicators, calculate the model accuracy based on the evaluation results, and compare the model accuracy with the preset threshold. If the model accuracy is greater than the preset threshold, output the current model as the final model. If the model accuracy is less than the preset threshold, return to step 2 to continue model training.

6. The method for monitoring and preventing protection of cultural relics in scenic areas according to claim 2 is characterized in that: The steps of clustering the number of damages in each sub-cultural relic body image and calculating the degree of damage to the historical cultural relic based on the clustering result are as follows: Step 1: Use the elbow method to determine the optimal number of clusters; Step 2: Use K-means clustering method to cluster the number of damages in each sub-cultural relic body image; Step 3: According to the optimal number of clusters, randomly select the corresponding number of data points from the data points as the initial cluster centers of the cluster, use the Euclidean distance to calculate the distance between each sample and each initial cluster center point, and assign the data points to the cluster to which the nearest cluster center belongs; Step 4: For each cluster, calculate the mean of all its data points and use the mean as the new cluster center; Step 5: Repeat steps 3 and 4 until the cluster center no longer changes, and obtain the final cluster and the final cluster center; Step 6: Count the number of data points in each final cluster, calculate the ratio of the number of data points in each final cluster to the total number of data points in the data set, and obtain the weight coefficient of each final cluster; Step 7: Calculate the degree of damage to historical relics based on the cluster center and weight coefficient of each final cluster.

7. The method for monitoring and preventing protection of cultural relics in scenic areas according to claim 1 is characterized in that: The environmental impact coefficient calculation steps are: Set the detection time period, collect temperature data at the current time point and the time point before the monitoring time period, and calculate the temperature change rate within the detection time period; Collect humidity data at the current time point and at the time point before the monitoring period, and calculate the humidity change rate during the detection period; The temperature change rate and humidity change rate are converted into values ​​between 0 and 1 using the maximum-minimum normalization method; The environmental impact coefficient is calculated based on the standardized temperature change rate and humidity change rate.

8. The method for monitoring and preventing protection of cultural relics in scenic areas according to claim 1 is characterized in that: The steps of collecting the tourist carrying capacity of the scenic spot during the detection period and calculating the tourist impact coefficient are as follows: The unit building of the scenic area is used as the calculation unit. The unit building includes halls, roads and courtyards. The total area of ​​the unit building is obtained, and the set proportion of the total area of ​​the unit building is taken as the effective area. The instantaneous carrying capacity of the unit building is calculated. The calculation formula is CY 瞬时 =GA×80%×QP where CY 瞬时 It is expressed as the instantaneous carrying capacity, GA is expressed as the total area of ​​the unit building, and QP is expressed as the number of tourists per unit area; Obtain the effective opening hours of the scenic spot every day and the average visiting time of each tourist in the scenic spot, and calculate the daily average turnover rate. The calculation formula is: Where DT represents the daily average turnover rate, T 开放 It is the effective opening time of the scenic spot every day, T 游览 It is expressed as the average visiting time of each tourist in the scenic spot; The maximum carrying capacity is calculated based on the instantaneous carrying capacity and the daily average turnover rate. The calculation formula is CY 最大 =CY 瞬时 ×DT, where CY 最大 Expressed as the maximum load, CY 瞬时 It is expressed as instantaneous carrying capacity, and DT is expressed as daily average turnover rate; Monitor the real-time number of tourists in the scenic area, and accumulate the real-time cumulative number of tourists on the day. According to the real-time number of tourists, the real-time cumulative number of tourists, the instantaneous carrying capacity and the maximum carrying capacity, the tourist impact coefficient is calculated. The calculation formula is TI = (CY 瞬时 -NUM 实时 )+(CY 最大 -NUM 累计 ), where TI is the tourist impact coefficient, CY 瞬时 Expressed as instantaneous load, NUM 实时 Expressed as the real-time number of tourists, CY 最大 Expressed as maximum load, NUM 累计 Expressed as the real-time cumulative number of visitors.

9. The method for monitoring and preventing protection of cultural relics in scenic areas according to claim 1 is characterized in that: The step of issuing a warning for damage to cultural relics based on the damage index of cultural relics is to compare the damage index of cultural relics with a preset threshold value. If the damage index of cultural relics is less than the preset threshold value, it is determined that the current degree of damage to the cultural relics is small and no warning is issued. If the damage index of cultural relics is greater than the preset threshold value, it is determined that the current degree of damage to the cultural relics is large and a warning is issued.

Citation Information

Patent Citations

  • Cultural relic and ancient building protection method based on artificial intelligence technology

    CN111814391A

  • Cultural relic storage environment abnormity assessment method based on big data

    CN115600932A

  • Intelligent risk assessment system and method for power grid project review

    CN118411037A

  • Method and server for providing cultural property inspection service using drone

    KR102196744B1

Cited By

  • Multifunctional indoor distribution adjusting system based on 5G Internet of Things

    CN119292390A

  • Exhibition authority regulation and control method based on collection state of museum

    CN120069741A

  • A museum-based exhibition permission regulation method based on a collection state

    CN120069741B

  • Cultural relic safety intelligent monitoring and early warning method and system based on Internet of Things

    CN120126297A

  • Urban suburban park symbiosis analysis system

    CN120374091A