Official document verification method and system based on artificial intelligence

By converting documents in different formats into a unified text format and using an artificial intelligence recognition model to capture contextual relationships, and combining source data features for sensitive information detection, the efficiency and accuracy problems of document verification and sensitive information detection in the existing technology are solved and achieved. It improves the compatibility of multiple document formats and the accuracy of sensitive information identification, improving the overall performance of the document management system.

CN118709682AActive Publication Date: 2024-09-27BANK OF SHANGHAI

Patent Information

Application Number
CN202411198857.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-29
Publication Date
2024-09-27
Estimated Expiration
2044-08-29

AI Technical Summary

Technical Problem

Existing technologies rely on manual methods for document verification and sensitive information detection, which is time-consuming and labor-intensive, and automated tools cannot process documents in multiple formats. Traditional detection methods cannot accurately identify complex contextual relationships, resulting in high false positive and false negative rates. Limits the performance of the document management system.

Method used

Adopt an artificial intelligence-based method to convert documents in different formats into a unified text format through the document format parsing library, use Transformers neural network to capture text contextual relationships, detect sensitive information anomalies based on source data characteristics, generate document sensitivity risk scores, and isolate The forest algorithm and multi-layer perceptron perform comprehensive analysis and dynamically adjust the risk threshold to generate a verification report.

Benefits of technology

It improves the compatibility of multiple document formats, accurately identifies sensitive information, reduces false positive and false negative rates, improves the overall efficiency of the document management system, and provides safe and reliable document processing suggestions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118709682A
    Figure CN118709682A
Patent Text Reader

Abstract

The invention discloses an official document verification method and system based on artificial intelligence, and relates to the technical field of document verification, the method comprises the following steps: analyzing and converting documents in different formats into a unified text format, using a natural language processing technology to block a text, using an artificial intelligence identification model to capture a context relationship, and generating a text feature vector H; the method comprises the following steps: firstly, obtaining a source data feature vector M in combination with source data Metadata, then, generating a comprehensive feature vector F in combination with a text and the source data feature vector, and carrying out anomaly detection by using an isolated forest algorithm to obtain an anomaly score A, thereby improving the accuracy of sensitive information identification. A document sensitive risk score R is obtained through comprehensive calculation, and a dynamically adjusted risk threshold value O is calculated according to a text sequence, so that the accuracy and real-time performance of recognition are ensured. Finally, a verification report is generated through comparison and evaluation, sensitive information detection and risk evaluation are completed, detailed reports and processing suggestions are provided, and all-around management of documents is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of document verification, and in particular to an official document verification method and system based on artificial intelligence. Background Art

[0002] Artificial intelligence (AI) technology has developed rapidly in various fields in recent years, and its application in text processing and natural language processing (NLP) is particularly extensive. In specific application areas, the official document verification system based on artificial intelligence is an important innovation. This system aims to use AI technology to intelligently parse, convert text, and detect sensitive information for official documents of various formats, thereby realizing automatic verification and management of documents. By uniformly processing documents of different formats to ensure the accuracy and security of document content, especially in enterprises, this technology application can significantly improve work efficiency and data security.

[0003] At present, many organizations still rely on manual methods to verify documents and detect sensitive information, which is not only time-consuming and labor-intensive, but also prone to errors. Most existing automated tools can only process documents in specific formats and lack consistent support for documents in multiple formats.

[0004] In addition, traditional sensitive information detection methods are usually based on keyword matching and cannot accurately identify complex contextual relationships, resulting in a high false positive rate or false negative rate in the detection results. These shortcomings limit the overall effectiveness of document management systems and make it difficult to achieve the desired effect of protecting sensitive information. Summary of the invention

[0005] In view of the deficiencies in the prior art, the present invention provides an official document verification method and system based on artificial intelligence, which solves the problems mentioned in the background technology.

[0006] To achieve the above objectives, the present invention is implemented by the following technical scheme: comprising the following steps: S1, extract and parse documents of different formats, convert the documents of different formats into a unified text format, and then divide the text into blocks according to the structural information of the text to obtain a text sequence T; S2. Use an artificial intelligence recognition model to capture the contextual relationship between words and phrases in the text block, generate a text feature vector H based on the text sequence T, extract the source data Metadata, convert the source data Metadata into a vector, and obtain the source data feature vector M; S3, combining the obtained text feature vector H and the source data feature vector M to generate a comprehensive feature vector F, and then using the isolation forest to perform anomaly detection on sensitive information, obtain anomaly score A, and identify potential sensitive information; S4, the obtained text feature vector H, source data feature vector M and anomaly score A are comprehensively correlated to obtain the document sensitivity risk score R, and then the risk threshold O is calculated based on the specific document text sequence T of the document; S5. Perform a comparative evaluation based on the obtained risk threshold O and the obtained document sensitivity risk score R to obtain a verification report.

[0007] Preferably, the S1 comprises the following steps: S11. Use the document format parsing library to convert different documents into TXT text format, remove the font, size, color, special effect font and format control characters in the document, and clean up the noise data in the document, the noise data includes extra blank lines and spaces, etc., and then convert the character encoding into UTF-8 encoding; S12. After unifying the text format, use natural language NLP to divide the paragraph marks, title styles and blank line features in the TXT text into logical paragraphs, identify the title, chapter and appendix text structure elements in the TXT text, and use regular expressions to match the document structure elements to extract the date format, numbered list and reference mark content in the TXT text; S13. Establish a block structure of the TXT text, wherein the block structure includes a title structure, a subtitle structure, a main text structure and an appendix structure, and obtain a text sequence T.

[0008] Preferably, S2 comprises the following steps: S21. Build an AI recognition model and select Transformers neural network as the AI ​​recognition model structure. Transformers is a neural network structure based on the self-attention mechanism, which is good at processing natural language tasks. Then transfer the TXT text to the AI ​​recognition model. The AI ​​recognition model captures the context of the input TXT text, that is, how the meaning of each word in the sentence is affected by the surrounding words. The AI ​​recognition model calculates the relationship between each word and other words through the self-attention mechanism, thereby generating a more accurate context representation. This mechanism allows the model to focus on the important parts of the text and ignore irrelevant information. S211. Based on the captured context, the artificial intelligence recognition model generates a text feature vector H, and the text feature vector H is obtained by the following algorithm formula; ; In the formula, T represents the text sequence of TXT text, SelfAttention(T) represents the self-attention mechanism, focusing on the local context of the text, GlobalAttention(T) represents the global attention mechanism, capturing the overall contextual relationship of the text, and LayerNorm represents layer normalization, which is used to stabilize the network training process to prevent gradient explosion.

[0009] Preferably, S22, read the source data fields of the document, including creation time, author, modification time, file type, version number and access control information, and then use the Apache metadata extraction tool to load the TXT text to automatically extract the source data Metadata in the TXT text; S221, convert the source data Metadata into a vector, and combine it with the TXT text feature vector to obtain the source data feature vector M, wherein the source data feature vector M is converted in the following manner; ; In the formula, f represents the conversion function, MultiHeadAttention represents the multi-head attention mechanism, which handles the complex interaction between metadata fields. represents the conversion function of the kth source data field to map different metadata fields to the feature space, represents a function for further transforming the i-th metadata field; The specific conversion content includes: Convert the creation time to days from now; Encode the author name as a categorical variable and use numerical values ​​to represent different authors; File type is coded as a categorical variable, using numerical values ​​to represent different file types; Convert the version number to a numeric representation, usually a floating point number, and separate the major and minor version numbers; Convert access rights levels into numerical or categorical variables, encoding different types of access rights into binary vectors; Convert access rights into level identifiers.

[0010] Preferably, S3 comprises the following steps: S31, combining the acquired source data feature vector M with the text feature vector H to obtain a comprehensive feature vector F, wherein the comprehensive feature vector F is combined by the following algorithm formula; ; In the formula, Represents a fusion method based on the attention mechanism to enhance the representation of key features. represents the concatenation operation of feature vectors, and Respectively represent the first weight parameter and the second weight parameter, controlling different ways of feature fusion; S32, using the isolation forest to train and detect the obtained comprehensive feature vector F, obtain the abnormal score A of the TXT text, and identify the abnormal TXT text; The abnormal score A is calculated by the following algorithm formula: ; Where, IsolationForest represents the isolation forest algorithm, which is used to detect anomalies on the comprehensive feature vector F.

[0011] Preferably, the S4 comprises the following steps: S41, performing comprehensive correlation calculation on the obtained text feature vector H, source data feature vector M and anomaly score A to obtain a document sensitivity risk score R; The document sensitivity risk score R is calculated by the following algorithm formula: ; In the formula, MLP represents multi-layer perceptron, A i represents the anomaly score of the i-th anomaly, w i represents the weight of the anomaly score of the i-th category, U represents the user authority level feature vector, represents the tensor product symbol, indicating high-order interactions between features, represents the function for aggregating higher-order interaction terms, It represents a complex nonlinear combination of multiple features, and uses an artificial intelligence model to capture the complex relationship between features. n represents the number of categories of anomaly scores, M represents the total number of documents, J represents the total number of documents, and j represents the jth TXT document.

[0012] Preferably, S42, based on the text sequence T, a risk threshold O is calculated and obtained, and the risk threshold is dynamically adjusted; The risk threshold O is calculated by the following algorithm formula: ; In the formula, represents the benchmark threshold, History represents historical data, T j represents the text sequence T of the j-th TXT document, log represents the logarithmic function, LSTM represents the long short-term memory network, represents the influence coefficient of the time series model, represents the normalization coefficient, represents the historical analysis score impact coefficient, w k represents the risk score weight of the k-th historical document, TimeDecay(T k ) represents the time decay function, RiskLevel k represents the risk score of the kth historical document, and K represents the number of historical documents.

[0013] Preferably, S5 comprises the following steps: S51, dynamically adjusting the obtained risk threshold O and the obtained document sensitivity risk score R for different TXT texts, performing analysis, comparison and evaluation, and analyzing the sensitivity of the TXT text content; The specific evaluation plan is as follows: When the document sensitivity risk score R>risk threshold O, it means that the current document is identified to contain potential sensitive information. At this time, it is necessary to conduct a detailed verification of the current TXT text of the document and output a verification report; When the document sensitivity risk score R ≤ risk threshold O, it means that the current document does not contain potentially sensitive information. At this time, the verification is completed and the document is archived.

[0014] Preferably, S511, the verification report extracts and lists the detected sensitive information from the document, the sensitive information including but not limited to personal information, financial information, account information and health information, and encrypts the output verification report, then masks the sensitive information, sets access rights, limits the viewing and editing rights of the verification report, and sets access rights for authorized personnel.

[0015] An official document verification system based on artificial intelligence, including a document processing module, a sensitive information feature extraction module, a document anomaly analysis module, a comprehensive analysis module and an evaluation and operation module; The document processing module extracts and parses documents of different formats, converts the documents of different formats into a unified text format, and then divides the text into blocks according to the structural information of the text to obtain a text sequence T; The sensitive information feature extraction module captures the contextual relationship between words and phrases in the text block by using an artificial intelligence recognition model, generates a text feature vector H based on the text sequence T, extracts the source data Metadata, converts the source data Metadata into a vector, and obtains the source data feature vector M; The document anomaly analysis module is used to combine the acquired text feature vector H and the source data feature vector M to generate a comprehensive feature vector F, and then use the isolation forest to perform anomaly detection on sensitive information, obtain anomaly score A, and identify potential sensitive information; The comprehensive analysis module is used to perform comprehensive correlation calculation on the acquired text feature vector H, source data feature vector M and anomaly score A to obtain the document sensitivity risk score R, and then calculate the risk threshold O according to the specific document text sequence T of the document; The assessment and operation module performs comparative assessment based on the obtained risk threshold O and the obtained document sensitivity risk score R, obtains the document sensitivity level, and generates a report and processing suggestions.

[0016] The present invention provides an official document verification method and system based on artificial intelligence, which has the following beneficial effects: (1) This method uses a document format parsing library to convert documents of different formats into a unified TXT text format and performs structured processing. It supports the conversion of multiple document formats, greatly improving the system's compatibility with multiple document formats and overcoming the limitation that existing tools can only process documents in specific formats.

[0017] (2) This method can capture the complex contextual relationships in the document content and generate a more accurate text feature vector H. Compared with the traditional sensitive information detection method based on keyword matching, it can reduce the false alarm rate and missed alarm rate and improve the accuracy and reliability of sensitive information identification.

[0018] (3) This method can calculate the sensitive risk score R of the document by comprehensively analyzing the document text feature vector H, the source data feature vector M and the anomaly score A. It can also calculate the adaptable risk threshold O based on historical data and a dynamic adjustment mechanism. The final verification report can not only clearly point out the potential sensitive information in the document, but also provide safe and reliable document processing suggestions, thereby improving the overall efficiency of the document management system. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 A schematic diagram of the steps of an official document verification method based on artificial intelligence of the present invention; Figure 2 The present invention is a flowchart of an official document verification system based on artificial intelligence. DETAILED DESCRIPTION

[0020] 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. Example

[0021] See also Figure 1 The present invention provides an official document verification method based on artificial intelligence. To achieve the above purpose, the present invention is implemented by the following technical scheme: comprising the following steps: S1, extract and parse documents of different formats, convert the documents of different formats into a unified text format, and then divide the text into blocks according to the structural information of the text to obtain a text sequence T; S2. Use an artificial intelligence recognition model to capture the contextual relationship between words and phrases in the text block, generate a text feature vector H based on the text sequence T, extract the source data Metadata, convert the source data Metadata into a vector, and obtain the source data feature vector M; S3, combining the obtained text feature vector H and the source data feature vector M to generate a comprehensive feature vector F, and then using the isolation forest to perform anomaly detection on sensitive information, obtain anomaly score A, and identify potential sensitive information; S4, the obtained text feature vector H, source data feature vector M and anomaly score A are comprehensively correlated to obtain the document sensitivity risk score R, and then the risk threshold O is calculated based on the specific document text sequence T of the document; S5. Perform a comparative evaluation based on the obtained risk threshold O and the obtained document sensitivity risk score R to obtain a verification report.

[0022] In this embodiment, the method solves the processing difficulties caused by the diversity of document formats by extracting and parsing documents of different formats and converting them into a unified text format. The text is divided into blocks using natural language processing technology to obtain a text sequence T, ensuring the clarity and consistency of the text structure. Secondly, an artificial intelligence recognition model is used to capture the contextual relationship in the text, generate a text feature vector H, and combine the source data Metadata to obtain the source data feature vector M. This process enhances the comprehensiveness and data relevance of text information, providing a solid foundation for subsequent sensitive information detection. The text feature vector H and the source data feature vector M are then combined to generate a comprehensive feature vector F, and the isolated forest algorithm is used to perform abnormal detection of sensitive information to obtain an abnormal score A. This method effectively improves the reliability and accuracy of sensitive information identification and makes up for the shortcomings of traditional methods in processing complex text relationships and abnormal detection. Through comprehensive correlation calculation, the document sensitivity risk score R is obtained, and the risk threshold O is calculated based on the document text sequence T. The dynamic adjustment of the threshold and the comparative evaluation ensure the accuracy and real-time identification of document sensitivity information, and provide users with more targeted processing suggestions. Then, based on the comparative evaluation of the risk threshold O and the document sensitivity risk score R, a verification report is generated. This process not only completes the sensitive information detection and risk assessment of the document, but also generates detailed verification reports and processing suggestions, achieving all-round management of the document. Example

[0023] This embodiment is explained in Example 1, please refer to Figure 1 , specifically: S1 includes the following steps; S11. Use the document format parsing library to convert different documents into TXT text format, remove the font, size, color, special effect font and format control characters in the document, and clean up the noise data in the document, including extra blank lines and spaces, and then convert the character encoding into UTF-8 encoding; S12. After unifying the text format, use natural language NLP to divide the paragraph marks, title styles and blank line features in the TXT text into logical paragraphs, identify the title, chapter and appendix text structure elements in the TXT text, and use regular expressions to match the document structure elements to extract the date format, numbered list and reference mark content in the TXT text; S13. Establish a block structure of the TXT text, the block structure includes a title structure, a subtitle structure, a main text structure and an appendix structure, and obtain a text sequence T.

[0024] In this embodiment, this step converts different documents into TXT text format by using a document format parsing library, removes format control characters such as font, size, color, etc. in the document, and cleans up noise data such as redundant blank lines and spaces, ensuring the purity and consistency of the text content. This process solves the problems of inconsistent document formats and interference from noise data, laying a good foundation for subsequent text processing. Secondly, by using natural language processing (NLP) technology to divide the TXT text into logical paragraphs, identify text structure elements such as titles, chapters, and appendices, and extract date formats, numbered lists, and reference mark content, a comprehensive analysis and accurate extraction of the document structure is achieved. This process not only enhances the readability and structuring of the text, but also provides detailed contextual information for subsequent sensitive information detection and risk assessment. Example

[0025] This embodiment is explained in Example 2. Please refer to Figure 1 , specifically: S2 includes the following steps; S21. Build an AI recognition model and select Transformers neural network as the AI ​​recognition model structure. Transformers is a neural network structure based on the self-attention mechanism, which is good at processing natural language tasks. Then transfer the TXT text to the AI ​​recognition model. The AI ​​recognition model captures the context of the input TXT text, that is, how the meaning of each word in the sentence is affected by the surrounding words. The AI ​​recognition model calculates the relationship between each word and other words through the self-attention mechanism, thereby generating a more accurate context representation. This mechanism allows the model to focus on the important parts of the text and ignore irrelevant information. S211. Based on the captured context, the artificial intelligence recognition model generates a text feature vector H, and the text feature vector H is obtained by the following algorithm formula; ; In the formula, T represents the text sequence of TXT text, SelfAttention(T) represents the self-attention mechanism, focusing on the local context of the text, GlobalAttention(T) represents the global attention mechanism, capturing the overall contextual relationship of the text, and LayerNorm represents layer normalization, which is used to stabilize the network training process and prevent gradient explosion.

[0026] S22, read the source data fields of the document, including creation time, author, modification time, file type, version number and access control information, and then use the Apache metadata extraction tool to load the TXT text to automatically extract the source data Metadata in the TXT text; S221, convert the source data Metadata into a vector, and combine it with the TXT text feature vector to obtain the source data feature vector M. The source data feature vector M is converted in the following way; ; In the formula, f represents the conversion function, MultiHeadAttention represents the multi-head attention mechanism, which handles the complex interaction between metadata fields. represents the conversion function of the kth source data field to map different metadata fields to the feature space, Indicates a function for further transforming the i-th metadata field; the specific transformation content includes: Convert the creation time to days from now; Encode the author name as a categorical variable and use numerical values ​​to represent different authors; File type is coded as a categorical variable, using numerical values ​​to represent different file types; Convert the version number to a numeric representation, usually a floating point number, and separate the major and minor version numbers; Convert access rights levels into numerical or categorical variables, encoding different types of access rights into binary vectors; Convert access rights into level identifiers.

[0027] In this embodiment, this step constructs a Transformers neural network model and uses its self-attention mechanism to accurately capture the contextual relationship of each word in the text, thereby generating a high-quality text feature vector H. This process solves the shortcomings of traditional methods in text semantic understanding, allowing the model to focus on the important parts of the text and ignore irrelevant information, significantly improving the accuracy and effectiveness of text feature extraction. Secondly, by using the Apache metadata extraction tool, the source data fields of the document, including creation time, author, modification time, etc., are automatically extracted, and these fields are converted into numerical or categorical variables to generate a source data feature vector M. This process realizes the comprehensive extraction and standardized management of document metadata, providing rich information support for subsequent comprehensive analysis. Example

[0028] This embodiment is explained in Example 3, please refer to Figure 1 ,Specifically: S3 includes the following steps; S31, combining the acquired source data feature vector M with the text feature vector H to obtain a comprehensive feature vector F, and the comprehensive feature vector F is combined using the following algorithm formula; ; In the formula, Represents a fusion method based on the attention mechanism to enhance the representation of key features. represents the concatenation operation of feature vectors, and Respectively represent the first weight parameter and the second weight parameter, controlling different ways of feature fusion; S32, using the isolation forest to train and detect the obtained comprehensive feature vector F, obtain the abnormal score A of the TXT text, and identify the abnormal TXT text; The anomaly score A is calculated using the following algorithm formula: ; Where, IsolationForest represents the isolation forest algorithm, which is used to detect anomalies on the comprehensive feature vector F.

[0029] In this embodiment, this step generates a comprehensive feature vector F by combining the source data feature vector M with the text feature vector H. This step realizes the deep fusion of text features and metadata, so that subsequent anomaly detection can be judged based on more comprehensive and rich information. This fusion effectively makes up for the information missing problem that may be caused by relying solely on a single feature vector, and improves the accuracy and reliability of anomaly detection. Secondly, the isolation forest algorithm is used to train and detect the comprehensive feature vector F, successfully identify abnormal TXT texts, and calculate the anomaly score A. The isolation forest algorithm can effectively identify abnormal points in the data by subsampling the data and constructing multiple isolated trees, thereby ensuring the efficiency and accuracy of anomaly detection.

[0030] Example 5 This embodiment is explained in Example 4. Please refer to Figure 1 , specifically: S4 includes the following steps; S41, performing comprehensive correlation calculation on the obtained text feature vector H, source data feature vector M and anomaly score A to obtain a document sensitivity risk score R; The document sensitivity risk score R is calculated using the following algorithm formula: ; In the formula, MLP represents multi-layer perceptron, A i represents the anomaly score of the i-th anomaly, w i represents the weight of the anomaly score of the i-th category, U represents the user authority level feature vector, represents the tensor product symbol, indicating high-order interactions between features, represents the function for aggregating higher-order interaction terms, It represents a complex nonlinear combination of multiple features, and uses an artificial intelligence model to capture the complex relationship between features. n represents the number of categories of anomaly scores, M represents the total number of documents, J represents the total number of documents, and j represents the jth TXT document.

[0031] S42, based on the text sequence T, calculate and obtain the risk threshold O, and dynamically adjust the risk threshold; The risk threshold O is calculated by the following algorithm formula; ; In the formula, represents the benchmark threshold, History represents historical data, T j represents the text sequence T of the j-th TXT document, log represents the logarithmic function, LSTM represents the long short-term memory network, represents the influence coefficient of the time series model, represents the normalization coefficient, represents the historical analysis score impact coefficient, w krepresents the risk score weight of the k-th historical document, TimeDecay(T k ) represents the time decay function, RiskLevel k represents the risk score of the kth historical document, and K represents the number of historical documents.

[0032] In this embodiment, the step calculates the document sensitivity risk score R by comprehensively considering the text features, source data features and anomaly detection results. This score can accurately reflect the potential sensitive information risks in the document and provide a scientific basis for subsequent risk assessment and decision-making. Through the application of algorithm formulas, the calculation process of the risk score is transparent and explainable, ensuring the reliability and traceability of the scoring results. Secondly, based on the dynamic adjustment of the risk threshold O of the text sequence T, the threshold is dynamically adjusted by considering the specific content and characteristics of different documents, making the risk assessment more flexible and accurate. This dynamic adjustment mechanism effectively avoids the misjudgment that may be caused by fixed thresholds and improves the accuracy and adaptability of risk assessment.

[0033] Example 6 This embodiment is explained in Example 5. Please refer to Figure 1 , specifically: S5 includes the following steps; S51, dynamically adjusting the obtained risk threshold O and the obtained document sensitivity risk score R for different TXT texts, performing analysis, comparison and evaluation, and analyzing the sensitivity of the TXT text content; The specific evaluation plan is as follows: When the document sensitivity risk score R>risk threshold O, it means that the current document is identified to contain potential sensitive information. At this time, it is necessary to conduct a detailed verification of the current TXT text of the document and output a verification report; When the document sensitivity risk score R ≤ risk threshold O, it means that the current document does not contain potentially sensitive information. At this time, the verification is completed and the document is archived.

[0034] S511. The verification report extracts and lists the detected sensitive information from the document. The sensitive information includes but is not limited to personal information, financial information, account information and health information. The output verification report is encrypted, the sensitive information is masked, access permissions are set, and the verification report viewing and editing permissions are restricted, and authorized personnel are allowed to access.

[0035] In this embodiment, when analyzing the sensitivity of the TXT text content, this step can accurately identify documents containing potential sensitive information and generate a detailed verification report by comparing and evaluating the document sensitivity risk score R and the risk threshold O. This process ensures the effective detection and processing of potential sensitive information and prevents the leakage and misuse of sensitive information. At the same time, for documents that do not contain sensitive information, verification and archiving can be completed quickly, which improves the efficiency of document processing. This step not only improves the accuracy and efficiency of detection, but also enhances the security of sensitive information management, and provides a more efficient and reliable solution for document verification, thereby significantly improving the overall effect of document verification.

[0036] Example 7 See also Figure 2 , an official document verification system based on artificial intelligence, including a document processing module, a sensitive information feature extraction module, a document anomaly analysis module, a comprehensive analysis module and an evaluation and operation module; The document processing module extracts and parses documents of different formats, converts the documents of different formats into a unified text format, and then divides the text into blocks according to the structural information of the text to obtain a text sequence T; The sensitive information feature extraction module captures the contextual relationship between words and phrases in the text block by using an artificial intelligence recognition model, generates a text feature vector H based on the text sequence T, extracts the source data Metadata, converts the source data Metadata into a vector, and obtains the source data feature vector M; The document anomaly analysis module is used to combine the acquired text feature vector H and the source data feature vector M to generate a comprehensive feature vector F, and then use the isolation forest to perform anomaly detection on sensitive information, obtain anomaly score A, and identify potential sensitive information; The comprehensive analysis module is used to perform comprehensive correlation calculation on the acquired text feature vector H, source data feature vector M and anomaly score A to obtain the document sensitivity risk score R, and then calculate the risk threshold O according to the specific document text sequence T of the document; The assessment and operation module performs comparative assessment based on the obtained risk threshold O and the obtained document sensitivity risk score R, obtains the document sensitivity level, and generates a report and processing suggestions.

[0037] While the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that many changes, modifications, substitutions and variations can be made to the embodiments without departing from the principles and spirit of the invention.

Claims

1. An official document verification method based on artificial intelligence, characterized in that: The following steps are involved: S1, extract and parse documents of different formats, convert the documents of different formats into a unified text format, divide the text into blocks according to the structural information of the text, and obtain the text sequence T; S2. Use an artificial intelligence recognition model to capture the contextual relationship between words and phrases in the text blocks, generate a text feature vector H based on the text sequence T, extract source data Metadata, convert the source data Metadata into a vector, and obtain the source data feature vector M; S3, combining the obtained text feature vector H and the source data feature vector M to generate a comprehensive feature vector F, using the isolation forest to perform anomaly detection on sensitive information, obtaining anomaly score A, and identifying potential sensitive information; S4, the obtained text feature vector H, source data feature vector M and anomaly score A are comprehensively correlated to obtain the document sensitivity risk score R, and the risk threshold O is calculated based on the specific document text sequence T of the document; S5. Perform a comparative evaluation based on the obtained risk threshold O and the obtained document sensitivity risk score R to obtain a verification report.

2. The method for verifying official documents based on artificial intelligence according to claim 1, characterized in that: The S1 comprises the following steps: S11. Use the document format parsing library to convert different documents into TXT text format, remove the font, size, color, special effect font and format control characters in the document, clean up the noise data in the document, and convert the character encoding into UTF-8 encoding; S12. After unifying the text format, use natural language NLP to divide the paragraph marks, title styles, and blank line features in the TXT text into logical paragraphs, identify the title, chapter, and appendix text structure elements in the TXT text, and use regular expressions to match the document structure elements to extract the date format, numbered list, and reference mark content in the TXT text; S13. Establish a block structure of the TXT text, wherein the block structure includes a title structure, a subtitle structure, a main text structure and an appendix structure, and obtain a text sequence T.

3. The method for verifying official documents based on artificial intelligence according to claim 2, characterized in that: The S2 comprises the following steps: S21. Build an artificial intelligence recognition model, select Transformers neural network as the artificial intelligence recognition model structure, and then transfer the TXT text to the artificial intelligence recognition model. The artificial intelligence recognition model captures the contextual relationship of the input TXT text. S211. Based on the captured context, the artificial intelligence recognition model generates a text feature vector H.

4. The method for verifying official documents based on artificial intelligence according to claim 3 is characterized in that: The S2 further includes: S22, read the source data fields of the document, including creation time, author, modification time, file type, version number and access control information, and then use the Apache metadata extraction tool to load the TXT text to automatically extract the source data Metadata in the TXT text; S221. Convert the source data Metadata into a vector and combine it with the TXT text feature vector to obtain the source data feature vector M.

5. The method for verifying official documents based on artificial intelligence according to claim 4, characterized in that: The S3 comprises the following steps: S31, combining the acquired source data feature vector M with the text feature vector H to obtain a comprehensive feature vector F; S32. Use the isolation forest to train and detect the obtained comprehensive feature vector F, obtain the abnormal score A of the TXT text, and identify the abnormal TXT text.

6. The method for verifying official documents based on artificial intelligence according to claim 5, characterized in that: The S4 comprises the following steps: S41, performing comprehensive correlation calculation on the obtained text feature vector H, source data feature vector M and anomaly score A to obtain a document sensitivity risk score R; The document sensitivity risk score R is calculated by the following algorithm formula: ; In the formula, MLP represents multi-layer perceptron, A i represents the anomaly score of the i-th anomaly, w i represents the weight of the anomaly score of the i-th category, represents the tensor product symbol, indicating high-order interactions between features, represents the function for aggregating higher-order interaction terms, It represents a complex nonlinear combination of multiple features, and uses an artificial intelligence model to capture the complex relationship between features. n represents the number of categories of anomaly scores, M represents the total number of documents, J represents the total number of documents, and j represents the jth TXT document.

7. The method for verifying official documents based on artificial intelligence according to claim 6, characterized in that: The S4 comprises the following steps: S42, based on the text sequence T, calculate and obtain the risk threshold O, and dynamically adjust the risk threshold; The risk threshold O is calculated by the following algorithm formula: ; In the formula, represents the benchmark threshold, History represents historical data, T j represents the text sequence T of the j-th TXT document, log represents the logarithmic function, LSTM represents the long short-term memory network, represents the influence coefficient of the time series model, represents the normalization coefficient, represents the historical analysis score impact coefficient, w k represents the risk score weight of the k-th historical document, TimeDecay(T k ) represents the time decay function, RiskLevel k represents the risk score of the kth historical document, and K represents the number of historical documents.

8. The method for verifying official documents based on artificial intelligence according to claim 6, characterized in that: The S5 comprises the following steps: S51, dynamically adjusting the obtained risk threshold O and the obtained document sensitivity risk score R for different TXT texts, performing analysis, comparison and evaluation, and analyzing the sensitivity of the TXT text content; When the document sensitivity risk score R>risk threshold O, it means that the current document is identified to contain potential sensitive information. At this time, it is necessary to conduct a detailed verification of the current TXT text of the document and output a verification report; When the document sensitivity risk score R ≤ risk threshold O, it means that the current document does not contain potentially sensitive information. At this time, the verification is completed and the document is archived.

9. The method for verifying official documents based on artificial intelligence according to claim 8, characterized in that: The S5 further comprises the following steps: S511. The verification report extracts and lists the detected sensitive information from the document, wherein the sensitive information includes but is not limited to personal information, financial information, account information and health information, and encrypts the output verification report to mask the sensitive information, set access permissions, restrict the viewing and editing permissions of the verification report, and set access rights for authorized personnel.

10. An official document verification system based on artificial intelligence, applied to an official document verification method based on artificial intelligence according to any one of claims 1 to 9, characterized in that: It includes document processing module, sensitive information feature extraction module, document anomaly analysis module, comprehensive analysis module and evaluation and operation module; The document processing module extracts and parses documents of different formats, converts the documents of different formats into a unified text format, divides the text into blocks according to the structural information of the text, and obtains a text sequence T; The sensitive information feature extraction module captures the contextual relationship between words and phrases in the text block by using an artificial intelligence recognition model, generates a text feature vector H based on the text sequence T, extracts source data Metadata, converts the source data Metadata into a vector, and obtains a source data feature vector M; The document anomaly analysis module is used to combine the acquired text feature vector H and the source data feature vector M to generate a comprehensive feature vector F, use the isolation forest to perform anomaly detection on sensitive information, obtain anomaly score A, and identify potential sensitive information; The comprehensive analysis module is used to perform comprehensive correlation calculation on the acquired text feature vector H, source data feature vector M and anomaly score A to obtain the document sensitivity risk score R, and to calculate and obtain the risk threshold O according to the specific document text sequence T of the document; The assessment and operation module performs comparative assessment based on the obtained risk threshold O and the obtained document sensitivity risk score R, obtains the document sensitivity level, and generates a report and processing suggestions.

Citation Information

Patent Citations

  • Security downlink risk assessment and diagnosis method and system

    CN109978406A

  • Document verification method and device based on artificial intelligence, equipment and medium

    CN113837113A

  • Document verification method based on natural language processing

    CN114970554A

  • Opinion retrieval system based on double-channel coding and accurate matching signals

    CN116010553A

  • Big data privacy protection method and system based on federated learning

    CN117972783A

Cited By

  • Smart conference system

    CN119324835A

  • Document template intelligent analysis and format fidelity automatic generation method and system

    CN122864391A

  • A method and system for intelligent parsing and format-accurate automatic generation of official document templates

    CN122864391B

  • Project material consistency verification method and system based on field-level information extraction

    CN123031691A