Detection report auditing method and device based on large model

Through the large model-based test report review method, the test report review process is automatically processed, which solves the problems of long time and low efficiency in the existing technology, achieves efficient and accurate review results, and adapts to new error patterns through continuous learning to improve Infrastructure status management capabilities.

CN118551045APending Publication Date: 2024-08-27CHINA MERCHANTS CHONGQING HIGHWAY ENG TESTING CENT CO LTD +1
View PDF 0 Cites 10 Cited by

Patent Information

Application Number
CN202410600847.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-15
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

Existing inspection report review technology is time-consuming, resource-intensive and susceptible to subjective factors. It is particularly inefficient when processing large-scale data. Especially when the report content contains a large number of professional terms, the complexity of information matching increases, affecting review efficiency and accuracy.

Method used

Adopt a large model-based inspection report review method, including format detection, data preprocessing, feature extraction and anomaly detection, automate the review process through rule engines and language models (such as ChatGLM), convert unstructured data into structured data, and extract text Features, and generate comparative analysis through language models to present anomaly detection results.

Benefits of technology

It significantly reduces manual review workload, improves review efficiency, and ensures information accuracy. The language model continuously learns to adapt to new error patterns, optimizes performance, and provides data-driven insights to decision makers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118551045A
    Figure CN118551045A
Patent Text Reader

Abstract

The invention relates to the technical field of artificial intelligence, in particular to a detection report auditing method based on a large model, which comprises the following steps: format detection: automatically detecting whether a detection report follows a format specification or not through a rule engine, and outputting the content which does not follow the format specification to a format problem existing in the detection report through an interactive page; data preprocessing: converting unstructured data in the detection report after format detection into a structured data format, and performing table identification on a table in the detection report to obtain a preprocessing result; feature extraction: performing text feature extraction on the preprocessing result to obtain specific information; performing anomaly detection, automatically generating, comparing and analyzing specific information extracted from the text features through a language model, and obtaining an anomaly detection auditing result; and performing page interaction, and presenting an abnormal detection auditing result to auditing personnel through an interaction page. According to the invention, through an automatic auditing processing flow, the workload of manual auditing and the possibility of subjective misjudgment are reduced, and meanwhile, the auditing process is accelerated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a method and device for reviewing a test report based on a large model. Background Art

[0002] Currently, infrastructure inspection reports are widely used to monitor and evaluate the health of infrastructure such as roads, bridges, and buildings. The main application of these reports includes the use of sensor networks, which monitor physical parameters such as vibration, temperature, and stress of the structure. The sensor data is collected and transmitted to the data acquisition system, and then the structural health assessment is performed through traditional analysis methods such as finite element analysis.

[0003] However, the existing report audit technologies include: 1) Safety report auxiliary audit: first, the relevant laws, regulations and standards and specifications are loaded into the built-in documents, and then the command unit is used to locate the location of the laws, regulations and standards involved in the uploaded report. By searching the relevant terms, the report content is manually compared with the content with format errors in the selected safety evaluation report, and the corresponding format modification command is selected; 2) A method for comparing and detecting the information to be detected according to the archived information in the database. However, there are some problems and shortcomings. First, they usually require a lot of time and resources because manual inspection and database comparison methods are time-consuming and easily affected by subjective factors. In addition, the existing technology is inefficient in processing large-scale data. When comparing and detecting the information to be detected, it may face the complexity of information matching, especially when the report content contains a large number of professional terms. The diversity and complexity of information may increase the difficulty of matching in the comparison process, thereby affecting the efficiency and accuracy of the audit. Summary of the invention

[0004] In view of the defects in the prior art, the present invention provides a test report review method based on a large model to improve the review efficiency and accuracy.

[0005] A test report review method based on a large model, comprising:

[0006] Format detection: automatically detect whether the test report complies with the format specification through the rule engine, and output the format problems of the test report through the interactive page for the content that does not comply with the format specification;

[0007] Data preprocessing: converting the unstructured data in the test report after format detection into a structured data format, and performing table recognition on the tables in the test report to obtain preprocessing results;

[0008] Feature extraction: extract text features from the preprocessing results to obtain specific information;

[0009] Anomaly detection: Automatically generate comparative analysis of specific information through language models to obtain anomaly detection review results;

[0010] Page interaction: presents the anomaly detection review results to the reviewer through an interactive page.

[0011] Preferably, table recognition includes table text detection and table structure prediction.

[0012] Preferably, table text detection includes:

[0013] Use OCR to detect single-line text in the table image and obtain the coordinates of the four points of the single-line text box;

[0014] Then perform text recognition to obtain text results.

[0015] Preferably, the table structure prediction includes:

[0016] Get the four-point coordinates and table structure information of each cell in the table;

[0017] Combine the coordinates of the four points of the single-line text box obtained by table text detection and perform coordinate aggregation together;

[0018] Join the text results belonging to the same cell together;

[0019] Combined with the table structure information, the table structure prediction result is obtained.

[0020] Preferably, the preprocessing results include text results and table structure prediction results.

[0021] Preferably, text feature extraction includes:

[0022] According to the corpus and algorithm rules, the continuous text in the preprocessing result is divided into meaningful vocabulary units, the Chinese word segmentation technology is implemented, and the first Chinese word segmentation is obtained;

[0023] According to the first Chinese word segmentation, a custom stop word library is used to filter stop words, reduce feature dimensions, and obtain a second Chinese word segmentation;

[0024] The second Chinese word segmentation is named and recognized to obtain specific information.

[0025] Preferably, the language model comprises ChatGLM.

[0026] Preferably, anomaly detection includes:

[0027] Fine-tune the language model ChatGLM;

[0028] Use word embedding methods to map specific information into dense vector space;

[0029] Using the fine-tuned ChatGLM, a comparative analysis is automatically generated based on the specific information mapped into the dense vector space to obtain the anomaly detection audit results.

[0030] Preferably, database comparison is also included, including:

[0031] Match the specific information extracted from the features with the database to obtain the database comparison result;

[0032] The database comparison results are presented to the reviewer through an interactive page.

[0033] A test report review device based on a large model includes a format detection module, a data preprocessing module, a feature extraction module, an anomaly detection module and a page interaction module, wherein:

[0034] The format detection module is used to automatically detect whether the test report complies with the format specification through the rule engine, and output the format problems of the test report through the interactive page for the content that does not comply with the format specification;

[0035] The data preprocessing module is used to convert the unstructured data in the test report detected by the format detection module into a structured data format, and perform table recognition on the tables in the test report to obtain preprocessing results;

[0036] The feature extraction module is used to extract text features from the preprocessing results to obtain specific information;

[0037] The anomaly detection module is used to automatically generate comparative analysis of specific information through a language model to obtain anomaly detection review results;

[0038] The page interaction module is used to present the anomaly detection audit results to the auditor through an interactive page.

[0039] The beneficial technical effects of the present invention are as follows:

[0040] (1) The present invention automates the review process of the test report, reduces the workload of manual review of the test report and the possibility of subjective misjudgment, and also speeds up the review process; by comparing with the database, the accuracy of the project information can be further ensured;

[0041] (2) The language model of the present invention can continuously learn and adapt to new error patterns and continuously optimize its performance to cope with changing audit requirements; it can also provide decision makers with data-driven insights to help them better understand and manage the status of the infrastructure. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the specific embodiments of the present invention, the following will briefly introduce the drawings required for the specific embodiments or the prior art description. In all the drawings, each element or part is not necessarily drawn according to the actual scale.

[0043] Figure 1 A flowchart of a test report review method based on a large model provided in an embodiment of the present invention;

[0044] Figure 2 A structural block diagram of a large model-based test report review device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0045] The following embodiments of the technical solution of the present invention are described in detail in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and are therefore only used as examples, and cannot be used to limit the protection scope of the present invention.

[0046] It should be noted that, unless otherwise specified, the technical terms or scientific terms used in this application should have the common meanings understood by those skilled in the art to which the present invention belongs.

[0047] In one embodiment, a method for reviewing a test report based on a large model is provided, comprising:

[0048] 1. Format detection: Use the rule engine to automatically detect whether the test report complies with the format specification. For content that does not comply with the format specification, output the format problems in the test report through the interactive page;

[0049] Taking the highway inspection report as an example, based on the format specifications of the inspection report in the highway engineering field, format detection rules are defined. The format rules include header format, chapter numbering rules, etc. The rule engine automatically detects whether the inspection report document complies with the format specifications based on the inspection report in the highway engineering field. If the format of the inspection report does not comply with the format detection rules defined in the format specifications, the format problems in the inspection report are output through the interactive page.

[0050] 2. Data preprocessing: convert the unstructured data in the test report after format detection into a structured data format, and perform table recognition on the tables in the test report to obtain preprocessing results;

[0051] The specific method of converting the unstructured data in the test report after format detection into a structured data format is to first collect the electronic version of the inspection and test report, and then convert the unstructured data in the inspection and test report into a structured data format. For example, the text part of the unstructured data is converted into a structured data format through denoising and standardization. The standardization process includes correcting spelling errors, unifying terms and abbreviations, etc.

[0052] In one embodiment, table recognition is performed on the table in the detection report, where the table recognition includes table text detection and table structure prediction.

[0053] In one embodiment, table text detection includes: performing single-line text detection on a table image through OCR to obtain coordinates of four points of a single-line text box; and then performing text recognition to obtain a text result.

[0054] In one embodiment, table structure prediction includes: obtaining four-point coordinates and table structure information of each cell in the table; aggregating the coordinates of four points of a single-line text box obtained by table text detection; splicing together text results belonging to the same cell; and obtaining a table structure prediction result in combination with the table structure information.

[0055] In one embodiment, the preprocessing result includes a text result and a table structure prediction result.

[0056] 3. Feature extraction: extract text features from the preprocessing results to obtain specific information;

[0057] In one embodiment, feature extraction includes: according to the corpus and algorithm rules, the continuous text in the preprocessing result is divided into meaningful vocabulary units, and the Chinese word segmentation technology is implemented to obtain the first Chinese word segmentation; according to the first Chinese word segmentation, the stop words are filtered using a custom stop word library to reduce the feature dimension and improve the effectiveness of the feature to obtain the second Chinese word segmentation; the second Chinese word segmentation is named and recognized to obtain specific information. The specific information includes the commissioning unit, the project name, the project name, the test data and the conclusion, etc.

[0058] 4. Anomaly detection: extract specific information from text features, automatically generate comparative analysis through language models, and obtain anomaly detection audit results;

[0059] In one embodiment, the language model comprises ChatGLM.

[0060] The ChatGLM language model algorithm structure is mainly based on the Transformer model.

[0061] Model basis: ChatGLM adopts a prefix decoder-only transformer model framework, with a bidirectional attention mechanism on the input and a unidirectional attention mechanism on the output. The GELU activation function (Gaussian Error Linear Unit) is used, which is a nonlinear activation function widely used in the Transformer model. GELU can be approximated as: x*P(X<=x), where P(X<=x) is the cumulative probability of the normal distribution when X is less than or equal to x. The post layer norm based on Deep Norm is used for normalization. ChatGLM uses Rotated Position Encoding (RoPE). This encoding method allows the ChatGLM model to capture the relative position information of the terms in the sequence by combining the position information with the word vector in a rotational manner. This position encoding method helps the ChatGLM model maintain the accuracy of the position information when processing variable-length sequences.

[0062] In one embodiment, taking a highway detection report as an example, anomaly detection includes: fine-tuning and training a language model ChatGLM; the specific process includes:

[0063] (1) Data preprocessing:

[0064] Collect a large number of correct highway inspection report samples and inspection and testing basis documents, and manually clean and annotate them, including but not limited to the cleaning and annotation of key fields such as project name, section number, inspection date, inspection items, and inspection results.

[0065] NLP techniques (such as word segmentation, part-of-speech tagging, and named entity recognition) are used to structure the text to facilitate the understanding and learning of the ChatGLM language model.

[0066] (2) Large model construction

[0067] Select the ChatGLM model, which has learned rich language representations on massive text data.

[0068] (3) Model training:

[0069] The ChatGLM model is trained using an efficient parameter fine-tuning method to adapt to the corpus characteristics of the specific field of highway inspection reports, forming a highway inspection report understanding model for specific tasks. The manually cleaned and annotated highway inspection reports obtained after data preprocessing and their corresponding review labels and structured inspection and detection basis files are input into the ChatGLM model as training data.

[0070] Prefix tuning technology is used for fine-tuning. This technology adds a trainable tensor for a specific task to the input, keeps the parameters of the pre-trained model unchanged, and this trainable tensor can be optimized through back propagation, thereby improving the model effect of the target task. The trainable tensor can be understood as the embedding information corresponding to the prompt word text. Prefix tuning adds the trainable tensor as past_key_value to all transformer layers. And use an independent feedforward neural network to encode and optimize the pre-parameters. After updating the pre-parameters, the feedforward neural network is no longer used.

[0071] After the ChatGLM model training is completed, the model effect is evaluated based on experts. The evaluation is carried out using a single answer rating method, that is, a list of questions is designed to evaluate whether the answer to each question answered by the large model meets the requirements.

[0072] The word embedding method is used to map specific information into dense vector space; the ChatGLM model has been fine-tuned, trained and learned, and has mastered a wealth of language knowledge and professional terminology in the field of highway engineering. During the feature extraction process, the ChatGLM model analyzes the text of the highway inspection report, identifies and encodes specific information such as inspection parameters, project names, and construction specifications. This specific information is mapped into dense vector space and converted into vectors that the ChatGLM model can process, which can also provide input data for anomaly detection.

[0073] Using the ChatGLM learned through fine-tuning training, a comparative analysis is automatically generated based on the specific information mapped into the dense vector space to obtain the anomaly detection audit results.

[0074] The ChatGLM model uses its ability to understand natural language to accurately understand the text content in the inspection report, including but not limited to technical terms, regulatory references, data interpretation, etc. Based on this understanding, the ChatGLM model automatically generates relevant comparative analysis to identify logical inconsistencies or data anomalies in highway inspection reports.

[0075] The ChatGLM model uses a large amount of highway industry knowledge learned through fine-tuning training to perform inductive analysis on new test reports. The ChatGLM model can identify abnormal data in test reports and detect errors such as unit errors, project names that do not match records, missing parameters, or data that is inconsistent with original records. At the same time, the ChatGLM model combines natural language processing and data analysis capabilities to automatically conduct a comprehensive review of test reports. Based on key information such as the test values ​​in the identified test reports, the fine-tuned ChatGLM model compares the learned standard specifications and test report logic with the report information content to detect abnormal references and logical errors. By designing algorithms and rules specific to the ChatGLM model, an automated review process for test reports can be implemented.

[0076] 5. Page interaction: present the anomaly detection audit results to the auditor through the interactive page.

[0077] The anomaly detection audit results will be presented to the auditors through the user interface, which provides interactive functions so that the auditors can review, modify and confirm the system's judgment results.

[0078] In one embodiment, it also includes database comparison, including: matching the specific information extracted from the features with the database to obtain a database comparison result; and presenting the database comparison result to the auditor through an interactive page.

[0079] Taking the highway inspection report as an example, using a professional highway engineering project and unit database, anomaly detection will match and verify key information such as the detected project name and project number with the database to ensure that the information is accurate.

[0080] In one embodiment, a test report review device based on a large model is provided, comprising a format detection module, a data preprocessing module, a feature extraction module, an anomaly detection module and a page interaction module, wherein:

[0081] The format detection module is used to automatically detect whether the test report complies with the format specification through the rule engine, and output the format problems of the test report through the interactive page for the content that does not comply with the format specification;

[0082] The data preprocessing module is used to convert the unstructured data in the test report detected by the format detection module into a structured data format, and perform table recognition on the tables in the test report to obtain preprocessing results;

[0083] The feature extraction module is used to extract text features from the preprocessing results to obtain specific information;

[0084] The anomaly detection module is used to automatically generate comparative analysis of specific information through a language model to obtain anomaly detection review results;

[0085] The page interaction module is used to present the anomaly detection audit results to the auditor through an interactive page.

[0086] In the specific use process, the user or the auditor uploads the test report through the interactive page and starts the audit process. First, the format detection is performed, and the test report is automatically detected by the rule engine whether it follows the format specification. The content that does not follow the format specification is output through the interactive page. The format problems in the test report are converted into structured data formats by the unstructured data in the test report after the format detection, and the table in the test report is identified to obtain the preprocessing results; then the feature extraction is performed according to the preprocessing results to obtain specific information, and the ChatGLM language model after fine-tuning is used to perform anomaly detection on the test report to obtain the anomaly detection audit result. At the same time, database comparison can also be used to match the specific information such as the project and contract number extracted by the feature with the database to obtain the database comparison result. Finally, the anomaly detection results and the database comparison results are presented to the user or the auditor through the interactive page. The user can view the anomaly detection audit results, which lists each identified anomaly in detail, including the anomaly type, location, degree of anomaly, possible causes and recommended follow-up actions. The present invention also provides a manual intervention mechanism, allowing the user or the auditor to review and modify the anomaly detection audit results when necessary. The present invention can significantly improve the efficiency and accuracy of audit work, reduce the burden of manual audit, and further ensure the accuracy of project information by comparing with the database. Finally, the language model of the present invention can continuously learn and adapt to new error patterns, continuously optimize its performance to cope with changing audit needs, and provide data-driven insights to decision makers, helping them better understand and manage the status of infrastructure.

[0087] Obviously, those skilled in the art should understand that the modules or steps of the present invention described above can be implemented by a general-purpose computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a computer storage medium (ROM / RAM, magnetic disk, optical disk) and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than that here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Therefore, the present invention is not limited to any specific combination of hardware and software.

[0088] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present invention, and they should all be included in the scope of the claims and specification of the present invention.

Claims

1. A test report review method based on a large model, It is characterized in that include: Format detection: automatically detect whether the test report complies with the format specification through the rule engine, and output the format problems of the test report through the interactive page for the content that does not comply with the format specification; Data preprocessing: converting the unstructured data in the test report after format detection into a structured data format, and performing table recognition on the tables in the test report to obtain preprocessing results; Feature extraction, extracting text features from the preprocessing results to obtain specific information; Anomaly detection: automatically generate comparative analysis of the specific information through a language model to obtain anomaly detection review results; Page interaction, presenting the anomaly detection review results to the reviewer through an interactive page.

2. A test report review method based on a large model as described in claim 1, It is characterized in that The table recognition includes table text detection and table structure prediction.

3. A test report review method based on a large model as described in claim 2, It is characterized in that The table text detection includes: Use OCR to detect single-line text in the table image and obtain the coordinates of the four points of the single-line text box; Then perform text recognition to obtain text results.

4. A test report review method based on a large model as described in claim 2, It is characterized in that The table structure prediction includes: Get the four-point coordinates and table structure information of each cell in the table; Combine the coordinates of the four points of the single-line text box obtained by table text detection and perform coordinate aggregation together; Join the text results belonging to the same cell together; Combined with the table structure information, the table structure prediction result is obtained.

5. A test report review method based on a large model as described in claim 1, It is characterized in that The preprocessing results include text results and table structure prediction results.

6. A test report review method based on a large model as claimed in claim 1, It is characterized in that The feature extraction comprises: According to the corpus and algorithm rules, the continuous text in the preprocessing result is divided into meaningful vocabulary units, the Chinese word segmentation technology is implemented, and the first Chinese word segmentation is obtained; According to the first Chinese word segmentation, a custom stop word library is used to filter stop words, reduce feature dimensions, and obtain a second Chinese word segmentation; The second Chinese word segmentation is named and recognized to obtain specific information.

7. A test report review method based on a large model as claimed in claim 1, It is characterized in that The language model includes ChatGLM.

8. A test report review method based on a large model as claimed in claim 7, It is characterized in that The anomaly detection includes: Fine-tune the language model ChatGLM; Use word embedding methods to map specific information into dense vector space; Using the fine-tuned ChatGLM, a comparative analysis is automatically generated based on the specific information mapped into the dense vector space to obtain the anomaly detection audit results.

9. A test report review method based on a large model as described in claim 5, It is characterized in that Also includes database comparison, including: Match the specific information extracted from the features with the database to obtain the database comparison result; The database comparison results are presented to the reviewer through an interactive page.

10. A test report review device based on a large model, It is characterized in that It includes format detection module, data preprocessing module, feature extraction module, anomaly detection module and page interaction module, among which: The format detection module is used to automatically detect whether the test report complies with the format specification through the rule engine, and output the format problems existing in the test report through the interactive page for the content that does not comply with the format specification; The data preprocessing module is used to convert the unstructured data in the test report detected by the format detection module into a structured data format, and perform table recognition on the table in the test report to obtain a preprocessing result; The feature extraction module is used to extract text features from the preprocessing results to obtain specific information; The anomaly detection module is used to automatically generate comparative analysis of specific information through a language model to obtain an anomaly detection review result; The page interaction module is used to present the abnormality detection review results to the reviewer through an interactive page.

Citation Information

Cited By

  • Inspection report checking and auditing method and system based on large model and medium

    CN118967073A

  • A method, system and medium for checking and reviewing inspection reports based on a large model

    CN118967073B

  • Data pre-auditing method based on risk supervision assistant

    CN119090281A

  • Data cleaning conversion method and system based on large language model

    CN119357171A

  • Finite element model automatic error correction method and system

    CN119647220A