An expert system for ancient book restoration

Through the ancient book restoration expert system, the back-end inference engine and human-computer interaction module are used to generate ancient book restoration solutions, which solves the problem of low restoration efficiency in the existing technology and achieves rapid acquisition and intelligent guidance of ancient book restoration knowledge.

CN118295559BActive Publication Date: 2024-09-06HEFEI INST OF TECH INNOVATION ENG CHINESE ACAD OF SCI +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410520323.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-28
Publication Date
2024-09-06
Estimated Expiration
2044-04-28

AI Technical Summary

Technical Problem

Existing ancient book restoration technology relies on highly skilled personnel and lacks quantitative indicator guidance, resulting in low restoration efficiency and inconvenient quick access to learning resources.

Method used

Design an ancient book restoration expert system, including a back-end inference engine and a human-computer interaction module. It is trained through the knowledge in the restoration database, generates ancient book restoration plans, and provides intelligent guidance and technical support.

Benefits of technology

It improves the efficiency of ancient book restoration, provides convenience for quickly searching and learning restoration knowledge, and is suitable for both experienced and inexperienced restorers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118295559B
    Figure CN118295559B
Patent Text Reader

Abstract

The present invention discloses an ancient book restoration expert system, which includes a back-end inference engine, a restoration database and a human-computer interaction module. Ancient book restoration staff can search and learn ancient book restoration knowledge on the human-computer interaction module, and the back-end inference engine can combine the prior knowledge of ancient book restoration in the restoration database, quantify the overall condition of damaged ancient books through a restoration plan inference model, and intelligently push ancient book restoration plans, thereby providing guidance on ancient book restoration work for staff who lack ancient book restoration experience and providing technical references for experienced ancient book restoration personnel.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of ancient book restoration, and in particular to an ancient book restoration expert system capable of generating ancient book restoration plans. Background Art

[0002] Currently, the restoration of damaged ancient books is mainly completed in two ways: one is manual restoration by experienced ancient book restorers, and the other is the use of automated equipment to complete certain steps of ancient book restoration. However, given the precious value of ancient books, whether it is manual restoration or restoration using automated restoration equipment, the restorers need to have quite high restoration skills and knowledge reserves, and the existing restoration methods are mostly based on qualitative analysis and lack the guidance of quantitative indicators. Since there are few experienced ancient book restorers, it is impossible to provide simultaneous guidance on multiple restoration plans, resulting in low restoration efficiency. Staff who want to learn ancient book restoration knowledge can only learn ancient book restoration by flipping through books and cannot quickly find the required restoration knowledge to learn the corresponding knowledge. Summary of the invention

[0003] The technical problem to be solved by the present invention is to provide an ancient book restoration expert system that can generate ancient book restoration plans, and can realize the search and learning of ancient book restoration knowledge on the human-computer interaction module. The back-end inference engine can combine the prior knowledge of ancient book restoration in the restoration database, and after quantifying the overall condition of the damaged ancient books through the restoration plan reasoning model, intelligently push the ancient book restoration plan, provide guidance on ancient book restoration work to staff who lack ancient book restoration experience, and also provide technical reference for experienced ancient book restoration personnel.

[0004] The technical solution of the present invention is:

[0005] An ancient book restoration expert system, comprising a back-end inference engine, a restoration database and a human-computer interaction module;

[0006] A repair data import operation button is provided on the display interface of the human-computer interaction module. When the repair data import operation button is clicked, prior knowledge of ancient book repair is input, and the back-end inference engine calls the processing function of the repair data import function interface to classify the prior knowledge of ancient book repair, and then stores it in the repair database. At the same time, the back-end inference engine inputs the prior knowledge of ancient book repair into the repair scheme inference model for training, and obtains the trained repair scheme inference model. The label of the repair scheme inference model is the ancient book repair scheme;

[0007] A data search operation button is provided on the display interface of the human-computer interaction module. When the data search operation button is clicked and the data to be searched is input, the back-end inference engine calls the processing function of the search function interface to search in the repair database, obtains the search results and similarity results, and then returns them to the human-computer interaction module through the search function interface for display. At the same time, the historical search records including the search time, the data to be searched, the search results and the similarity results are sent to the repair database for storage;

[0008] The display interface of the human-computer interaction module is provided with an operation button for generating a repair plan. When the operation button for the repair plan is clicked, the image data of the book leaves and the damage index data of the ancient book to be repaired are input, and the back-end inference engine calls the processing function of the image acquisition function interface to process the book leaf image data to obtain the damage rate and the damage classification result, and then the damage rate, the damage classification result and the damage index data are input into the repair plan reasoning model for analysis to obtain the ancient book repair plan, and then the ancient book repair plan is returned to the human-computer interaction module through the repair plan function interface for display.

[0009] The display interface of the human-computer interaction module is also provided with an interface setting operation button, a history query operation button and a data export operation button;

[0010] Click the interface setting operation button, enter or select the interface setting information, the back-end inference engine calls the processing function of the interface setting function interface to adjust the interface, and then returns the interface adjustment result to the human-computer interaction module through the interface setting function interface for display;

[0011] Click the historical query operation button, enter the historical search time, and the back-end inference engine calls the processing function of the historical query function interface to search the historical search record corresponding to the historical search time in the repair database, and then returns the searched historical search record to the human-computer interaction module through the historical query function interface for display;

[0012] When exporting data, first select the content to be exported in the display interface, then click the data export operation button on the display interface, the back-end inference engine calls the processing function of the export function interface, generates a word format file for the content to be exported, and then returns the word format file to the human-computer interaction module through the export function interface, selects the export path, and saves the generated word format file to the specified path location.

[0013] The prior knowledge on ancient book restoration includes technical specifications for ancient book restoration, ancient book restoration cases, expert restoration experience, restoration literature, and experimental data on the use of various restoration materials to repair different types of ancient book paper.

[0014] The back-end inference engine calls the processing function of the repair data import function interface to perform data preprocessing on the prior knowledge of ancient book repair, and then uses the bag-of-words model BOW and the word frequency-inverse text frequency TF-IDF method to identify keywords from the prior knowledge of ancient book repair, and then inputs the vector components and TF-IDF values ​​of the keywords in the prior knowledge of ancient book repair as input information into the repair scheme inference model for training;

[0015] The bag-of-words model BOW first establishes a dictionary composed of keywords, then performs word segmentation operations on sentences in the prior knowledge of ancient book restoration, and then establishes a keyword dictionary, which contains multiple keywords arranged in order, each keyword corresponds to a digital identifier, and then counts the word frequency of the keywords in the prior knowledge of ancient book restoration. When a keyword in the keyword dictionary appears in a sentence, the position of the keyword in the keyword dictionary is assigned a value of 1, and if it does not appear, it is assigned a value of 0, thereby converting each sentence in the prior knowledge of ancient book restoration into a vector corresponding to the position relationship of the dictionary keyword;

[0016] The term frequency-inverse text frequency TF-IDF method is to first calculate the TF value of the keyword according to the following formula (1), and at the same time calculate the IDF value according to the following formula (2), and then calculate the TF-IDF value of the keyword according to the following formula (3);

[0017]

[0018] In formula (1), tf i,j is the TF value of the keyword, that is, the frequency of the i-th keyword appearing in the j-th document, n i,j is the number of times the i-th keyword appears in the j-th document, is the total number of words in the jth document;

[0019]

[0020] In formula (2), idf i is the IDF value of the ith keyword, N is the total number of documents in the repair database, To repair the number of documents containing the i-th keyword in the database;

[0021] (TF-IDF) i,j =tf i,j ×idf i (3);

[0022] In formula (3), (TF-IDF) i,j is the TF-IDF value of the i-th keyword.

[0023] The back-end inference engine calls the processing function of the search function interface to search in the repair database to obtain search results and similarity results. The data to be searched includes text documents and image data. The text documents are searched in the repair database using an inverted index algorithm. The search results are arranged in reverse order according to the similarity. The similarity calculation is achieved by calculating the cosine similarity using the following formula (4). The larger the cosine similarity value, the more similar the text document to be searched and the document to be matched in the repair database are.

[0024]

[0025] In formula (4), cosθ is the cosine similarity, A = (a 1 ,a 2 ,a 3 ,...,a n ),B=(b 1 ,b 2 ,b 3 ,...,b n ), A and B are the keyword vectors of the text document to be searched and the document to be matched in the repair database, respectively. The keyword vector is calculated by the bag-of-words model BOW;

[0026] The search for the image data to be searched is to first calculate the average hash value of the image data to be searched and the image to be matched in the repair database, then calculate the Hamming distance between the image data to be searched and the image to be matched in the repair database, and define that two images with a Hamming distance less than 10 are similar. The smaller the Hamming distance, the more similar the image data to be searched and the image to be matched in the repair database.

[0027] The image data of the ancient book to be repaired is collected by first placing the damaged book leaves of the ancient book to be repaired flat on a repair table, the repair table is made of a light-transmitting and smooth material, a white light source is provided inside the repair table, and the white light emitted by the white light source irradiates the damaged book leaves on the repair table upwards, and an industrial camera captures and collects image data of the damaged book leaves, and uploads the image data;

[0028] The specific steps for the back-end inference engine to process the image data by calling the processing function of the image acquisition function interface are as follows: first, the color image is converted into a grayscale image, and then the grayscale image is denoised using the median filter algorithm. Then, the denoised grayscale image is binarized to retain only the bar lines and holes in the grayscale image. Then, morphological corrosion is used to remove the bar lines, and morphological dilation is used to restore the holes to reduce the influence of corrosion on the calculation result of the damage rate. Finally, the ratio of the number of pixels in the holes to the number of pixels in the damaged book leaf image is calculated to obtain the damage rate.

[0029] Since different types of damaged areas have different transmittances, the light intensities received by the industrial camera are also different, which is reflected in the grayscale image as differences in grayscale values. Therefore, the damaged areas are classified by type by setting thresholds. The moth-shaped parts with grayscale values ​​higher than the grayscale upper limit threshold in the grayscale image are classified as fractures, the moth-shaped parts with grayscale values ​​between the grayscale upper limit threshold and the grayscale lower limit threshold and the area of ​​the moth-shaped parts is not less than the set area threshold in the grayscale image are classified as corrosion, the moth-shaped parts with grayscale values ​​between the grayscale upper limit threshold and the grayscale lower limit threshold and the area of ​​the moth-shaped parts is less than the set area threshold in the grayscale image are classified as wear, and the moth-shaped parts with grayscale values ​​lower than the grayscale lower limit threshold in the grayscale image are classified as undamaged areas. Finally, the damaged areas in the book leaf image are classified to obtain the damage classification results.

[0030] The back-end inference engine inputs the prior knowledge of ancient book restoration into the restoration plan inference model and trains it in a cross-validation manner to obtain a trained restoration plan inference model.

[0031] The ancient book restoration plan includes the selection of restoration materials, recommendations for restoration procedures and restoration precautions.

[0032] Among the ancient book restoration plans obtained through analysis of the restoration plan reasoning model, suitable ancient book restoration plans are retained and restoration work is implemented, while unsuitable ancient book restoration plans are used as new data to retrain the restoration plan reasoning model.

[0033] After setting the operation button on the click interface, set the size, color and style of the font in the interface, and set the highlight color when the selected content in the interface is highlighted.

[0034] Advantages of the present invention:

[0035] (1) The present invention is provided with a human-computer interaction module to realize human-computer interaction with the back-end inference machine, thereby realizing operations such as inputting prior knowledge of ancient book restoration, searching for keyword documents and images, querying historical search records, exporting selected content, and generating ancient book restoration plans;

[0036] (2) The back-end inference engine of the present invention calls corresponding processing functions through different functional interfaces to perform corresponding information input, search, query, export, setting and solution generation operations. The processing process is fast, providing technical support for ancient book restoration personnel, and bringing great convenience to ancient book restoration work;

[0037] (3) The restoration database of the present invention stores technical specifications for restoration of ancient books, restoration cases of ancient books, restoration experience of experts, restoration literature, and experimental data on the restoration of different types of ancient books with various restoration materials. It provides training sets and test sets for the training of the restoration scheme reasoning model, optimizes the restoration scheme reasoning model, and at the same time, the staff can query the classified knowledge in the restoration database to achieve the purpose of rapid search and learning;

[0038] (4) The image acquisition function interface of the present invention can analyze the acquired images to quickly obtain damage rate and damage type data, provide technical support for the subsequent restoration plan reasoning model to generate ancient book restoration plans, and speed up the efficiency of plan generation. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 It is a structural block diagram of the ancient book restoration expert system of the present invention.

[0040] Figure 2 It is the display interface of the human-computer interaction module of the present invention.

[0041] Figure 3 It is a workflow diagram of the back-end inference engine of the present invention generating an ancient book repair plan. DETAILED DESCRIPTION

[0042] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only 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.

[0043] See Figure 1-Figure 3 , an ancient book restoration expert system, comprising a back-end inference engine 1, a restoration database 2 and a human-computer interaction module 3;

[0044] (1) A repair data import operation button is provided on the display interface of the human-computer interaction module. Click the repair data import operation button to input the prior knowledge of ancient book restoration. The prior knowledge of ancient book restoration includes technical specifications for ancient book restoration, ancient book restoration cases, expert restoration experience, restoration literature, and experimental data of various restoration materials for repairing different types of ancient book paper (for example, after adding a certain type of Chinese medicine to ordinary starch paste, the viscosity, pH value, color, mildew and other properties of the paste are measured to obtain experimental data on the effect of adding different types of Chinese medicine on the performance of the paste). The back-end inference engine calls the processing function of the repair data import function interface to The prior knowledge of ancient book restoration is classified and then stored in the restoration database. A directory is set on the display interface of the human-computer interaction module, and multiple sub-directories are set under the directory. The sub-directories are associated with the data in the restoration database 2 through index numbers. The user clicks on the corresponding sub-directory and can view the specific content under the sub-directory on the display interface. The content corresponds to the knowledge collected and stored in the restoration database 2; at the same time, the back-end inference engine inputs the prior knowledge of ancient book restoration into the restoration plan inference model and uses the cross-validation method to train it. The label of the restoration plan inference model after training is the ancient book restoration plan;

[0045] Table 1 shows the restoration data of the Qing Dynasty engraved "Book of Rites" stored in the restoration database in the form of charts:

[0046] Table 1

[0047]

[0048] Among them, the back-end inference engine calls the processing function of the repair data import function interface to pre-process the data of the prior knowledge of ancient book repair, and then uses the bag-of-words model BOW and the word frequency-inverse text frequency TF-IDF method to identify keywords from the prior knowledge of ancient book repair, and then inputs the vector components and TF-IDF values ​​of the keywords in the prior knowledge of ancient book repair as input information into the repair scheme inference model for training;

[0049] The bag-of-words model (BOW) first establishes a dictionary composed of keywords, then performs word segmentation operations on the sentences in the prior knowledge of ancient book restoration, and then establishes a keyword dictionary. The keyword dictionary contains multiple keywords arranged in order, and each keyword corresponds to a digital identifier. Then, the word frequency of the keywords in the prior knowledge of ancient book restoration is counted. When a keyword in the keyword dictionary appears in a sentence, the position of the keyword in the keyword dictionary is assigned a value of 1. If it does not appear, it is assigned a value of 0, thereby converting each sentence in the prior knowledge of ancient book restoration into a vector corresponding to the position relationship of the dictionary keyword; for example, "connection repair" and "repair of acidic paper" are sentences located in two documents respectively, and then a keyword dictionary is established. The keyword dictionary defines {"paper": 1, "acid": 2, "neutral": 3, "repair": 4, "connection": 5}, "paper", "acid", "neutral", "repair", and "connection" are five keywords arranged in order in the keyword dictionary, and 1-5 are the digital identifiers corresponding to each keyword. Then, the keyword dictionary is used to assign values ​​to "connection repair" and "repair of acidic paper". The statistical results and generated vectors are shown in Table 2.

[0050] Table 2

[0051]

[0052] The term frequency-inverse text frequency TF-IDF method first calculates the TF value of the keyword according to the following formula (1), and at the same time calculates the IDF value according to the following formula (2), and then calculates the TF-IDF value of the keyword according to the following formula (3);

[0053]

[0054] In formula (1), tf i,j is the TF value of the keyword, that is, the frequency of the i-th keyword appearing in the j-th document, n i,j is the number of times the i-th keyword appears in the j-th document, is the total number of words in the jth document;

[0055]

[0056] In formula (2), idf i is the IDF value of the ith keyword, N is the total number of documents in the repair database, To repair the number of documents containing the i-th keyword in the database;

[0057] (TF-IDF) i,j =tf i,j ×idf i (3);

[0058] In formula (3), (TF-IDF) i,j is the TF-IDF value of the i-th keyword;

[0059] Table 3 shows the TF-IDF value calculation results of the two sentences “connection and repair” and “repair of acidic paper”, where sentence 1 is “connection and repair” and sentence 2 is “repair of acidic paper”.

[0060] Table 3

[0061]

[0062] (2) A data search operation button is provided on the display interface of the human-computer interaction module. The data search operation button is clicked and the data to be searched is input. The back-end inference engine calls the processing function of the search function interface to search in the repair database, obtains the search results and similarity results, and then returns them to the human-computer interaction module through the search function interface for display. At the same time, the historical search records including the search time, the data to be searched, the search results and the similarity results are sent to the repair database for storage;

[0063] The data to be searched includes text documents and image data. The text documents are searched in the repair database using an inverted index algorithm. The search results are arranged in reverse order according to the similarity. The similarity calculation is achieved by calculating the cosine similarity using the following formula (4). The larger the cosine similarity value, the more similar the text document to be searched is to the document to be matched in the repair database.

[0064]

[0065] In formula (4), cosθ is the cosine similarity, A = (a 1 ,a 2 ,a 3 ,...,a n ),B=(b 1 ,b 2 ,b 3 ,...,b n ), A and B are the keyword vectors of the text document to be searched and the document to be matched in the repair database, respectively. The keyword vector is calculated by the bag-of-words model BOW;

[0066] The search of the image data to be searched is to first calculate the average hash value of the image data to be searched and the image to be matched in the repair database, and then calculate the Hamming distance between the image data to be searched and the image to be matched in the repair database, and define that two images with a Hamming distance less than 10 are similar. The smaller the Hamming distance, the more similar the image data to be searched and the image to be matched in the repair database are;

[0067] When the above-mentioned text documents and image data do not match the corresponding data in the repair database, the words "No results" will be displayed on the display interface of the human-computer interaction module;

[0068] (3) A restoration plan generation operation button is provided on the display interface of the human-computer interaction module. Click the restoration plan operation button, input the image data of the book leaf to be restored and the damage index data, and the back-end inference engine calls the processing function of the image acquisition function interface to process the book leaf image data to obtain the damage rate and damage classification results, and then input the damage rate, damage classification results and damage index data into the restoration plan inference model for analysis to obtain the ancient book restoration plan, which includes the selection of restoration materials, the recommendation of restoration procedures and restoration precautions, and then returns the ancient book restoration plan to the human-computer interaction module through the restoration plan function interface for display; wherein, the appropriate ancient book restoration plan is retained and the restoration work is implemented, and the inappropriate ancient book restoration plan is used as new data to retrain the restoration plan inference model;

[0069] The image data of the ancient book to be repaired is collected by first placing the damaged book leaves of the ancient book to be repaired flat on the repair table, which is made of a light-transmitting and smooth material. A white light source is provided inside the repair table. The white light emitted by the white light source illuminates the damaged book leaves on the repair table upwards. The industrial camera captures and collects the image data of the damaged book leaves and uploads the image data.

[0070] The specific steps for the back-end inference engine to process the image data by calling the processing function of the image acquisition function interface are as follows: first, the color image is converted into a grayscale image, and then the grayscale image is denoised using the median filter algorithm. Then, the denoised grayscale image is binarized to retain only the bar lines and holes in the grayscale image. Then, morphological corrosion is used to remove the bar lines, and morphological dilation is used to restore the holes to reduce the influence of corrosion on the calculation result of the damage rate. Finally, the ratio of the number of pixels in the holes to the number of pixels in the damaged book leaf image is calculated to obtain the damage rate.

[0071] Since different types of damaged areas have different transmittances, the light intensities received by the industrial camera are also different, which is reflected in the grayscale image as differences in grayscale values. Therefore, the damaged areas are classified by type by setting thresholds. The moth-shaped parts with grayscale values ​​higher than the grayscale upper limit threshold in the grayscale image are classified as fractures, the moth-shaped parts with grayscale values ​​between the grayscale upper limit threshold and the grayscale lower limit threshold and the area of ​​the moth-shaped parts is not less than the set area threshold in the grayscale image are classified as corrosion, the moth-shaped parts with grayscale values ​​between the grayscale upper limit threshold and the grayscale lower limit threshold and the area of ​​the moth-shaped parts is less than the set area threshold in the grayscale image are classified as wear, and the moth-shaped parts with grayscale values ​​lower than the grayscale lower limit threshold in the grayscale image are classified as undamaged areas. Finally, the damaged areas in the book leaf image are classified to obtain damage classification results.

[0072] (4) An interface setting operation button is also provided on the display interface of the human-computer interaction module. Click the interface setting operation button to set the font size, color and style in the interface, and set the highlight color when the selected content in the interface is highlighted. The back-end inference engine calls the processing function of the interface setting function interface to adjust the interface, and then returns the interface adjustment result to the human-computer interaction module through the interface setting function interface for display;

[0073] (5) A history query operation button is also provided on the display interface of the human-computer interaction module. When the history query operation button is clicked and the history search time is input, the back-end inference engine calls the processing function of the history query function interface to search the repair database for the history search record corresponding to the history search time, and then returns the searched history search record to the human-computer interaction module through the history query function interface for display;

[0074] (6) A data export operation button is also provided on the display interface of the human-computer interaction module. When exporting data, first select the content to be exported in the display interface, then click the data export operation button on the display interface, and the back-end inference engine calls the processing function of the export function interface to generate a word format file for the content to be exported. After the word format file is returned to the human-computer interaction module through the export function interface, the export path is selected, and the generated word format file is saved to the specified path location.

[0075] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. An ancient book restoration expert system, characterized by: It includes back-end inference engine, repair database and human-computer interaction module; A repair data import operation button is provided on the display interface of the human-computer interaction module. When the repair data import operation button is clicked, prior knowledge of ancient book repair is input, and the back-end inference engine calls the processing function of the repair data import function interface to classify the prior knowledge of ancient book repair, and then stores it in the repair database. At the same time, the back-end inference engine inputs the prior knowledge of ancient book repair into the repair scheme inference model for training, and obtains the trained repair scheme inference model. The label of the repair scheme inference model is the ancient book repair scheme; A data search operation button is provided on the display interface of the human-computer interaction module. When the data search operation button is clicked and the data to be searched is input, the back-end inference engine calls the processing function of the search function interface to search in the repair database, obtains the search results and similarity results, and then returns them to the human-computer interaction module through the search function interface for display. At the same time, the historical search records including the search time, the data to be searched, the search results and the similarity results are sent to the repair database for storage; The display interface of the human-computer interaction module is provided with a button for generating a repair plan. When the repair plan operation button is clicked, the image data of the book leaf and the damage index data of the ancient book to be repaired are input, and the back-end inference engine calls the processing function of the image acquisition function interface to process the book leaf image data to obtain the damage rate and damage classification results, and then the damage rate, damage classification results and damage index data are input into the repair plan inference model for analysis to obtain the ancient book repair plan, and then the ancient book repair plan is returned to the human-computer interaction module through the repair plan function interface for display; The image data of the ancient book to be repaired is collected by first placing the damaged book leaves of the ancient book to be repaired flat on the repair table. The repair table is made of a light-transmitting and smooth material. A white light source is provided inside the repair table. The white light emitted by the white light source illuminates the damaged book leaves on the repair table upwards. The industrial camera captures and collects the image data of the damaged book leaves and uploads the image data. The specific steps for the back-end inference engine to process the image data by calling the processing function of the image acquisition function interface are as follows: first, the color image is converted into a grayscale image, and then the grayscale image is denoised using the median filter algorithm. Then, the denoised grayscale image is binarized to retain only the bar lines and holes in the grayscale image. Then, morphological corrosion is used to remove the bar lines, and morphological dilation is used to restore the holes to reduce the influence of corrosion on the calculation result of the damage rate. Finally, the ratio of the number of pixels in the holes to the number of pixels in the damaged book leaf image is calculated to obtain the damage rate. Since different types of damaged areas have different transmittances, the light intensities received by the industrial camera are also different, which is reflected in the grayscale image as differences in grayscale values. Therefore, the damaged areas are classified by type by setting thresholds. The moth-shaped parts with grayscale values ​​higher than the grayscale upper limit threshold in the grayscale image are classified as fractures, the moth-shaped parts with grayscale values ​​between the grayscale upper limit threshold and the grayscale lower limit threshold and the area of ​​the moth-shaped parts is not less than the set area threshold in the grayscale image are classified as corrosion, the moth-shaped parts with grayscale values ​​between the grayscale upper limit threshold and the grayscale lower limit threshold and the area of ​​the moth-shaped parts is less than the set area threshold in the grayscale image are classified as wear, and the moth-shaped parts with grayscale values ​​lower than the grayscale lower limit threshold in the grayscale image are classified as undamaged areas. Finally, the damaged areas in the book leaf image are classified to obtain the damage classification results.

2. The ancient book restoration expert system according to claim 1, characterized in that: The display interface of the human-computer interaction module is also provided with an interface setting operation button, a history query operation button and a data export operation button; Click the interface setting operation button, enter or select the interface setting information, the back-end inference engine calls the processing function of the interface setting function interface to adjust the interface, and then returns the interface adjustment result to the human-computer interaction module through the interface setting function interface for display; Click the historical query operation button, enter the historical search time, and the back-end inference engine calls the processing function of the historical query function interface to search the historical search record corresponding to the historical search time in the repair database, and then returns the searched historical search record to the human-computer interaction module through the historical query function interface for display; When exporting data, first select the content to be exported in the display interface, then click the data export operation button on the display interface, the back-end inference engine calls the processing function of the export function interface, generates a word format file for the content to be exported, and then returns the word format file to the human-computer interaction module through the export function interface, selects the export path, and saves the generated word format file to the specified path location.

3. The ancient book restoration expert system according to claim 1 is characterized by: The prior knowledge on ancient book restoration includes technical specifications for ancient book restoration, ancient book restoration cases, expert restoration experience, restoration literature, and experimental data on the use of various restoration materials to repair different types of ancient book paper.

4. The ancient book restoration expert system according to claim 1, characterized in that: The back-end inference engine calls the processing function of the repair data import function interface to perform data preprocessing on the prior knowledge of ancient book repair, and then uses the bag-of-words model BOW and the word frequency-inverse text frequency TF-IDF method to identify keywords from the prior knowledge of ancient book repair, and then inputs the vector components and TF-IDF values ​​of the keywords in the prior knowledge of ancient book repair as input information into the repair scheme inference model for training; The bag-of-words model BOW first establishes a dictionary composed of keywords, then performs word segmentation operations on sentences in the prior knowledge of ancient book restoration, and then establishes a keyword dictionary, which contains multiple keywords arranged in order, each keyword corresponds to a digital identifier, and then counts the word frequency of the keywords in the prior knowledge of ancient book restoration. When a keyword in the keyword dictionary appears in a sentence, the position of the keyword in the keyword dictionary is assigned a value of 1, and if it does not appear, it is assigned a value of 0, thereby converting each sentence in the prior knowledge of ancient book restoration into a vector corresponding to the position relationship of the dictionary keyword; The term frequency-inverse text frequency TF-IDF method is to calculate the TF-IDF value of the keyword by the following formula (3); (TF-IDF) i,j =tf i,j ×idf i (3); In formula (3), (TF-IDF) i,j is the TF-IDF value of the i-th keyword in the j-th document, tf i,j is the TF value of the keyword, that is, the frequency of the i-th keyword appearing in the j-th document, idf i is the IDF value of the ith keyword.

5. The ancient book restoration expert system according to claim 4 is characterized by: The back-end inference engine calls the processing function of the search function interface to search in the repair database to obtain search results and similarity results. The data to be searched includes text documents and image data. The text documents are searched in the repair database using an inverted index algorithm. The search results are arranged in reverse order according to the similarity. The similarity calculation is achieved by calculating the cosine similarity using the following formula (4). The larger the cosine similarity value, the more similar the text document to be searched and the document to be matched in the repair database are. In formula (4), cosθ is the cosine similarity, A = (a1, a2, a3, ..., a n ),B=(b1,b2,b3,…,b n ), A and B are the keyword vectors of the text document to be searched and the document to be matched in the repair database, respectively. The keyword vector is calculated by the bag-of-words model BOW; The search for the image data to be searched is to first calculate the average hash value of the image data to be searched and the image to be matched in the repair database, then calculate the Hamming distance between the image data to be searched and the image to be matched in the repair database, and define that two images with a Hamming distance less than 10 are similar. The smaller the Hamming distance, the more similar the image data to be searched and the image to be matched in the repair database.

6. The ancient book restoration expert system according to claim 1 is characterized by: The back-end inference engine inputs the prior knowledge of ancient book restoration into the restoration plan inference model and trains it in a cross-validation manner to obtain a trained restoration plan inference model.

7. The ancient book restoration expert system according to claim 1 is characterized by: The ancient book restoration plan includes the selection of restoration materials, recommendations for restoration procedures and restoration precautions.

8. The ancient book restoration expert system according to claim 1 is characterized by: Among the ancient book restoration plans obtained through analysis of the restoration plan reasoning model, suitable ancient book restoration plans are retained and restoration work is implemented, while unsuitable ancient book restoration plans are used as new data to retrain the restoration plan reasoning model.

9. The ancient book restoration expert system according to claim 2 is characterized by: After setting the operation button on the click interface, set the size, color and style of the font in the interface, and set the highlight color when the selected content in the interface is highlighted.