A method for detecting paper fox spots

Through hyperspectral imaging technology and deep learning models, the problem of low efficiency and easy damage of fox spots on paper cultural relics in the existing technology has been solved, and high-precision, non-destructive detection of fox spots has been achieved, which is suitable for early molding status and distribution positioning.

CN116311248BActive Publication Date: 2024-09-13CHONGQING UNIV OF TECH +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202310292408.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-23
Publication Date
2024-09-13
Estimated Expiration
2043-03-23

AI Technical Summary

Technical Problem

The biological and chemical methods used in the existing technology to detect fox spots on paper cultural relics have low detection efficiency and are easy to damage cultural relics. They lack high-precision, high-efficiency and non-destructive detection methods.

Method used

Hyperspectral imaging technology is used to obtain original hyperspectral images, image classification and segmentation are performed through specific spectral band processing and classification models, and a one-dimensional convolutional neural network model is constructed to achieve precise positioning and separation of fox spot areas, using U-net network. Semantic segmentation enables efficient and accurate detection of paper fox spots.

Benefits of technology

It achieves efficient, accurate and non-destructive detection of fox spots on paper cultural relics, can accurately identify fox spots and background areas, is suitable for detection and distribution positioning of early molding states, and improves the accuracy and efficiency of detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116311248B
    Figure CN116311248B
Patent Text Reader

Abstract

The present invention provides a method for detecting fox spots on paper, and the steps of the detection method are as follows: obtaining an original hyperspectral image of paper; selecting a specific spectral band to process the original hyperspectral image to obtain a sample hyperspectral image; classifying all pixel points in the sample hyperspectral image through a classification model to obtain an image classification result; producing a label image according to the image classification result; and segmenting the sample hyperspectral image through a segmentation model to obtain a segmentation result to detect fox spots on paper. The method can realize accurate detection of fox spots in the early, middle and late stages, thereby realizing accurate early warning of tiny fox spots, and providing a methodological basis for the scientific detection and prevention of cultural relics in museum collections.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of fox spot detection, and in particular to a method for detecting paper fox spots. Background Art

[0002] Paper artifacts are one of the most important cultural carriers of ancient human civilization. Their historical and cultural value is immeasurable, and it is very necessary to carry out cultural relic protection. The storage of paper artifacts is easily affected by the environment, resulting in reddish-brown, brown or light yellow fox spots. Over time, fox spots will spread further on the paper. These fox spots will not only affect the beauty of the artifacts, but also hinder the research of precious cultural relic materials. In the fox spot area, the paper becomes weaker and more fragile. If paper artifacts cannot be scientifically detected and prevented, fox spots will further infect the entire artifact and cause irreversible damage. Therefore, accurately detecting the early formation state of fox spots and accurately locating the distribution of fox spots are of great significance for the protection, prevention and restoration of paper artifacts.

[0003] At present, there are two main theories about the causes of fox spots: biological theory and non-biological theory. The biological theory believes that fox spots are the result of the activities of microorganisms, bacteria and fungi. The non-biological theory believes that fox spots are the result of the precipitation of metal compounds on paper. Based on this, most of the existing technologies use biological and chemical detection methods for detection, but traditional biological and chemical detection methods are complicated to operate, will damage cultural relics, and have low detection efficiency, and are not universal for various types of fox spot detection. Therefore, in response to the above problems, there is an urgent need for a detection method that can be highly accurate, efficient and will not damage paper cultural relics. Summary of the invention

[0004] The invention provides a method for detecting fox spots on paper, which is used to solve the defects of low detection efficiency and low detection accuracy of chemical or biological methods in the prior art and easy damage to paper cultural relics.

[0005] The present invention provides a method for detecting paper fox spots, comprising:

[0006] Get the original hyperspectral image on paper;

[0007] Selecting a specific spectral band to process the original hyperspectral image to obtain a sample hyperspectral image;

[0008] Classifying all pixels in the sample hyperspectral image through a classification model to obtain an image classification result;

[0009] Produce a label image according to the image classification result;

[0010] The sample hyperspectral image is segmented by a segmentation model to obtain a segmentation result to detect paper fox spots.

[0011] According to a method for detecting paper fox spots provided by the present invention, the selection of a specific spectral band comprises:

[0012] Select multiple spectral bands to process the original hyperspectral image, and obtain characteristic hyperspectral images of corresponding spectral bands respectively;

[0013] A plurality of characteristic hyperspectral images are evaluated to generate evaluation results, and the specific spectral band is determined according to the evaluation results.

[0014] According to a method for detecting paper fox spots provided by the present invention, the selecting of multiple spectral bands to process the original hyperspectral image comprises:

[0015] A competitive adaptive reweighting algorithm is used to select characteristic bands from the original spectral data and determine multiple spectral bands.

[0016] According to a method for detecting paper fox spots provided by the present invention, the construction of the classification model includes:

[0017] The original hyperspectral image is processed based on the difference in spectral curves to obtain all pixel components in the image;

[0018] The pixel components at least include a fox spot region, and the fox spot region is selected as a region of interest;

[0019] Extracting a plurality of spectral data of the pixel components as a processing data set;

[0020] The processed data set is divided into a training set and a validation set according to a specific ratio, and the classification model is constructed based on a one-dimensional convolutional neural network.

[0021] According to a method for detecting fox spots on paper provided by the present invention, the pixel components further include an ink area and a paper area.

[0022] According to a method for detecting paper fox spots provided by the present invention, extracting a plurality of spectral data of the pixel components as a processing data set comprises:

[0023] The spectral curves of the full-band spectra of various pixels are collected, the spectral bands with large noise are eliminated, and the remaining spectral bands are retained as the processing data set.

[0024] According to a method for detecting paper fox spots provided by the present invention, dividing the processed data set into a training set and a validation set according to a specific ratio comprises:

[0025] The processed data set is divided into a training set and a validation set in a ratio of 3:1.

[0026] According to a method for detecting paper fox spots provided by the present invention, the construction of the segmentation model includes:

[0027] The original hyperspectral image is classified by the classification model to separate the fox spot area from the background area;

[0028] Use fox spots in the fox spot area to create semantic segmentation labels;

[0029] Randomly segmenting the original hyperspectral image and the segmentation label to obtain a sample training set;

[0030] The U-net network is trained using the sample training set to construct the segmentation model.

[0031] According to a method for detecting paper fox spots provided by the present invention, the sample hyperspectral image is selected as a sample verification set of the segmentation model.

[0032] The technical solution provided by the embodiments disclosed in the present invention has at least the following beneficial effects:

[0033] The invention provides a method for detecting fox spots on paper, which collects hyperspectral data of paper cultural relics and establishes a deep learning model to achieve efficient, accurate and non-destructive detection of fox spots on paper cultural relics. And through hyperspectral data processing and classification model processing, some fox spots growing on areas such as ink stains can be accurately separated from the background area. The segmentation model based on the semantic segmentation network U-net can detect the early formation state of fox spots and accurately locate the distribution of fox spots. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0035] Figure 1 It is a schematic flow chart of a paper fox spot detection method provided by the present invention;

[0036] Figure 2 is a schematic diagram of a paper cultural relic sample provided by the present invention;

[0037] Figure 3 It is a schematic diagram of the average spectrum curve of the full spectrum band provided by the present invention;

[0038] Figure 4It is a schematic diagram of average spectrum curve of some spectrum bands provided by the present invention;

[0039] Figure 5 It is a schematic diagram of the classification model accuracy change curve and the loss function decline curve provided by the present invention;

[0040] Figure 6 It is a schematic diagram of the confusion matrix detection result provided by the present invention;

[0041] Figure 7 It is a schematic diagram of fox spot classification results of the classification model provided by the present invention;

[0042] Figure 8 It is a schematic diagram of CARS feature extraction provided by the present invention;

[0043] Fig. 9 It is a hyperspectral image under each spectral band provided by the present invention;

[0044] Fig.10 4 is a schematic diagram for comparing segmentation results provided by the present invention. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0046] Combine the following Figure 1 The present invention describes a method for detecting fox spots on paper. The detection method of the present application can be used for detecting paper cultural relics, especially for detecting paper cultural relics with text. It can be a memory configured to execute instructions of the method, or a computer-readable storage medium having instructions for executing the method. Figure 1 As shown, the method includes the following steps.

[0047] In step S10, an original hyperspectral image of the paper is obtained. Specifically, a hyperspectral imaging system is constructed, which includes a hyperspectral imaging instrument, a camera, a light source, and a computer with acquisition software, and the hyperspectral image is obtained through the system.

[0048] In step S20, a specific spectral band is selected to process the original hyperspectral image to obtain a sample hyperspectral image.

[0049] It can be understood that the selection of a specific spectral band is specifically as follows: selecting multiple spectral bands to process the original hyperspectral image, respectively obtaining characteristic hyperspectral images of the corresponding spectral bands; evaluating the multiple characteristic hyperspectral images, generating evaluation results, and determining the specific spectral band through the evaluation results. More specifically, a competitive adaptive reweighting algorithm (CARS) is used to select characteristic bands of the original spectral data, and multiple spectral bands are determined.

[0050] In step S30, all pixels in the sample hyperspectral image are classified by a classification model to obtain an image classification result.

[0051] In one embodiment, the construction of the classification model is specifically as follows:

[0052] The original hyperspectral image is processed based on the difference in spectral curves to obtain all pixel components in the image; specifically, the pixel components include fox spot area, ink area and paper area;

[0053] The fox spot area was selected as the region of interest;

[0054] Extracting spectral data of multiple pixel components as processing data sets; specifically, collecting spectral curves of full-band spectra of various pixels, removing spectral bands with large noise, and retaining the remaining spectral bands as processing data sets;

[0055] The processed data set is divided into a training set and a validation set in a specific ratio, and the classification model is constructed based on a one-dimensional convolutional neural network; specifically, the processed data set is divided into a training set and a validation set in a ratio of 3:1.

[0056] In step S40, a label image is obtained based on the image classification result and semantic segmentation. When making a semantic segmentation data set, since the hyperspectral image has the feature of unified spectrum, by analyzing the spectral features of the fox spot area and the background area, a classification model based on a one-dimensional convolutional neural network is established, which can more accurately produce a label image of the fox spot area.

[0057] In step S50, the sample hyperspectral image is segmented by a segmentation model to obtain a segmentation result to detect paper fox spots.

[0058] In one embodiment, the construction of the segmentation model is specifically as follows:

[0059] The original hyperspectral image is classified by the classification model described above to separate the fox spot area from the background area;

[0060] Use fox spots in the fox spot area to create semantic segmentation labels;

[0061] The original hyperspectral image and segmentation labels are randomly segmented to obtain a sample training set;

[0062] The U-net network is trained using the sample training set to construct the segmentation model.

[0063] It can be understood that, in the above embodiment, the sample validation set of the segmentation model is a sample hyperspectral image obtained by processing the original hyperspectral image using a specific spectral band as its sample validation set.

[0064] The following is a specific explanation through a specific embodiment.

[0065] Select experimental samples

[0066] The paper artifact samples were provided by a museum in Chongqing. Figure 2 As shown in the figure, the fox spots in the sample are generally brownish-yellow dots, which are scattered on the paper. Some areas of the sample are seriously infected with fox spots, such as Figure 2 (b) shows a large area of ​​connection. There are also discrete, small areas of fox spots in the sample, such as Figure 2 (c) as shown.

[0067] Set up instruments and equipment

[0068] In order to obtain hyperspectral images and spectral data of paper cultural relics samples, a hyperspectral imaging system was built with a hyperspectrometer as the core. It mainly consists of a hyperspectral imager, a camera, a halogen light source (the light source spectrum range is 350-2500nm, the power is 1000W), and a computer with acquisition software installed. After many experiments, the integration time was set to 17364μs to ensure that the acquired images were distortion-free.

[0069] Spectral image processing

[0070] The pixel components in the hyperspectral image of the paper cultural relic sample include three parts: fox spot area, ink area and paper area. The hyperspectral image was processed in ENVI software, and the fox spot area in the image was selected as the region of interest. The spectral curves in the hyperspectral image were extracted. In this experiment, a total of 600 spectral data were extracted, including 200 spectral data for the fox spot area, ink area and paper area. The average spectral curves of each category collected are shown in Figure 1. Figure 3 As shown in the figure, foxing represents the fox spot area, inkblot represents the ink area, and paper represents the paper area. Since the spectral data noise in the range of 370-440nm is large and the available information is less, the data in this band is removed, and the data of 268 spectral bands in the range of 441-1000nm are retained as the data set of this experiment, as shown in Figure 4As shown in the figure, foxing represents fox spot area, inkblot represents ink area, and paper represents paper area.

[0071] Depend on Figure 4 It can be seen that the average spectral curves of the fox spot area and the healthy area are significantly different; the reflectivity of the ink area is lower than that of other areas in most bands; in the 441-760nm range, the difference between the fox spot area and the paper area of ​​the sample is large. In the 760-1000nm range, the difference between the fox spot area and the healthy area is small. In summary, there is a significant difference in the reflectivity of the fox spot area and the paper area and the ink area. The convolutional neural network model can be established through spectral data to achieve the separation of the fox spot area from the background area.

[0072] Classification results

[0073] The 600 spectral data collected were divided into training set and validation set at a ratio of 3:1, and a classification model for fox spot classification of paper artifacts based on a one-dimensional convolutional neural network was established. The classification model can accurately classify paper artifacts according to the characteristic spectra of different components. The loss value and accuracy of the training set and validation set during the training process are shown in the figure below. Figure 5 As shown in the figure, training accuracy is the training accuracy, validation accuracy is the validation accuracy, training loss is the training loss, and validation loss is the validation loss.

[0074] Use the validation set to perform confusion matrix detection on the classification model. The results are as follows Figure 6 As shown in the figure, it can be observed that the overall classification accuracy can reach 98.3%, and the recognition accuracy of the fox spot area can reach 97.5%. Therefore, for the collected hyperspectral data, the fox spot area can be detected more accurately.

[0075] The collected hyperspectral data is classified based on the classification model, and finally the classification results are obtained and made into label images required for semantic segmentation, such as Figure 7 As shown. Figure 7 (b) It can be seen that the classification model based on the one-dimensional convolutional neural network can effectively separate the fox spot area from the background area, and the separation result of fox spots is highly consistent with the actual distribution.

[0076] Experimental Results

[0077] Based on the confusion matrix, the accuracy of the model is evaluated and three semantic segmentation evaluation indicators are used to evaluate the model. These three evaluation indicators are: pixel accuracy (PA), intersection over union (iou), and precision. The confusion matrix is ​​shown in Table 1.

[0078] Table 1 Confusion matrix

[0079]

[0080] Table 1

[0081] In Table 1: TP represents the number of samples whose true value is positive and whose predicted value is positive; FP represents the number of samples whose true value is negative but whose predicted value is positive; FN represents the number of samples whose true value is positive but whose predicted value is negative; TN represents the number of samples whose true value is negative and whose predicted value is negative.

[0082] PA is the pixel accuracy, which indicates the percentage of correctly classified pixels in the image. The calculation formula is as follows:

[0083]

[0084] Precision is the accuracy rate. It indicates the proportion of correctly identified samples in all the results with positive recognition results. The calculation formula is as follows:

[0085]

[0086] iou is the intersection of the true value and the predicted value, and the calculation formula is as follows:

[0087]

[0088] The competitive adaptive reweighting algorithm (CARS) was used to select the characteristic bands of the original spectral data, and the four bands selected were: 457nm, 474nm, 505nm, and 560nm. The selection process is as follows Figure 8 shown.

[0089] Fig. 9 It is the hyperspectral data and the image data in the corresponding characteristic band. Fig. 9 (b), (c), (d), and (e) are hyperspectral images at 457nm, 474nm, 505nm, and 560nm bands, respectively. In the figure, Hyperspectral Data cube is a hyperspectral data cube.

[0090] By training the training set, the network reaches convergence. On this basis, the established deep learning model based on semantic segmentation is used to detect paper cultural relics samples under different wavelengths. The segmentation results are shown in Fig.10 As shown: Fig.10 (a) is a false color composite image after the hyperspectral data is transformed by MNF. Fox spots appear as white dots in the false color composite image. Fig.10 (b) is the label image generated by the fox spot classification model of paper cultural relics using a one-dimensional convolutional neural network. Fig.10 (d), (e), (f), and (g) are hyperspectral images and segmentation results in different bands, respectively. Fig.10 It can be seen that the segmentation effects of images in different bands are different. When the image in the 457nm band is used as the model input, the segmentation result of the fox spot area is highly consistent with the actual distribution of the fox spot area, which can better show the distribution characteristics and coverage area of ​​fox spots on paper cultural relics, and can effectively identify and locate fox spots. When the image in the 560nm band is used as the model input, the segmentation effect of fox spots is poor, and there are obvious misjudgments.

[0091] Table 2 Accuracy evaluation of images in different bands

[0092]

[0093]

[0094] Table 2

[0095] A comprehensive comparison of the data in Table 2 shows that when the sample images in the 457nm band are used as the original images of the data set, the model's fox spot pixel accuracy PA is 88.81%, the precision Precision is 85.86%, and the intersection ratio IOU is 78.35%. At this time, the model has the highest accuracy and the segmentation effect is good. When the sample images in the 560nm band are used as the original images of the data set, the model's fox spot pixel accuracy PA is 75.73%, the precision Precision is 77.57%, and the intersection ratio Miou is 67.56%. At this time, the model has the lowest accuracy and the segmentation effect is poor.

[0096] Through the description of the above implementation, those skilled in the art can clearly understand that, according to the fox spot segmentation results of paper cultural relics, it can be known that the fox spot detection method of paper cultural relics based on semantic segmentation and hyperspectral images can make good use of the characteristic information of the sample image, effectively segment the fox spot area of ​​the paper cultural relics, accurately locate the distribution of fox spots, and the segmentation result is roughly consistent with the visual result. Whether it is a small area when fox spots occur in the early stage, or a large area and irregular shape after the fox spots are enlarged, the method can achieve accurate detection. Therefore, the detection method can be applied to the early and late stages of fox spots on paper cultural relics, and can achieve good segmentation effects, thereby achieving accurate early warning of tiny fox spots, and providing a methodological basis for the scientific detection and prevention of museum collections of cultural relics.

[0097] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for detecting paper fox spots, characterized in that: include: Get the original hyperspectral image on paper; Selecting a specific spectral band to process the original hyperspectral image to obtain a sample hyperspectral image; Classifying all pixels in the sample hyperspectral image through a classification model to obtain an image classification result; Obtaining a semantic segmentation label according to the image classification result; Segmenting the sample hyperspectral image by a segmentation model to obtain a segmentation result to detect paper fox spots; The construction of the classification model includes: The original hyperspectral image is processed based on the difference in spectral curves to obtain all pixel components in the image; The pixel components at least include a fox spot region, and the fox spot region is selected as a region of interest; Extracting a plurality of spectral data of the pixel components as a processing data set; Dividing the processed data set into a training set and a validation set according to a specific ratio, and constructing the classification model based on a one-dimensional convolutional neural network; The construction of the segmentation model includes: The original hyperspectral image is classified by the classification model to separate the fox spot area from the background area; Use fox spots in the fox spot area to create semantic segmentation labels; Constructing a sample training set using the original hyperspectral image and semantic segmentation labels; The U-net network is trained using the sample training set to construct the segmentation model.

2. The detection method according to claim 1, characterized in that: The selected specific spectral bands include: Select multiple spectral bands to process the original hyperspectral image, and obtain characteristic hyperspectral images of corresponding spectral bands respectively; A plurality of characteristic hyperspectral images are evaluated to generate evaluation results, and the specific spectral band is determined according to the evaluation results.

3. The detection method according to claim 2, characterized in that: The selecting a plurality of spectral bands to process the original hyperspectral image comprises: A competitive adaptive reweighting algorithm is used to select characteristic bands from the original spectral data and determine multiple spectral bands.

4. The detection method according to claim 1, characterized in that: The pixel components also include an ink area and a paper area.

5. The detection method according to claim 1 or 4, characterized in that: The extracting of a plurality of spectral data of the pixel components as a processing data set comprises: The spectral curves of the full-band spectra of various pixels are collected, the spectral bands with large noise are eliminated, and the remaining spectral bands are retained as the processing data set.

6. The detection method according to claim 1, characterized in that: The dividing the processed data set into a training set and a validation set according to a specific ratio comprises: The processed data set is divided into a training set and a validation set in a ratio of 3:

1.

7. The detection method according to claim 1, characterized in that: The sample hyperspectral image is selected as a sample validation set for the segmentation model.

Citation Information

Patent Citations

  • Method for detecting impurities in preserved vegetables based on hyperspectral image acquisition system

    CN111008970A

  • Medical hyperspectral image classification method based on spatial-spectral fusion deep learning

    CN113239755A

  • Hyperspectral weak supervision classification method combining de-noising auto-encoder and scene enhancement

    CN114863223A

  • Lung brush film cell identification and segmentation method based on deep learning

    CN114863428A

  • Method and system for automated plant image labeling

    US20230049590A1