Method, device and equipment for AI-assisted generation of judicial expertise report

The AI-assisted method of generating forensic reports uses templates and chapter title features to automatically extract and fill content, solving the problem of massive information processing, realizing efficient and accurate forensic report generation, and solving the time-consuming and error-prone problems of manual writing. .

CN118798181APending Publication Date: 2024-10-18FUJIAN ZHONGRUI ELECTRONIC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410863405.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-29
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

Existing technology is difficult to efficiently extract key content from massive case information within a limited time and generate accurate and coherent forensic reports. Moreover, manual preparation of reports is time-consuming and error-prone, making it difficult to meet the growing demand.

Method used

The AI-assisted method of generating forensic reports is adopted. By calling the target template, the characteristics of chapter titles and subtitles are obtained, and relevant content is automatically extracted and filled to ensure the standardization, accuracy and efficiency of the report.

Benefits of technology

It significantly improves the efficiency and accuracy of report generation, avoids cumbersome and error-prone manual operations, ensures the completeness and logic of reports, and meets the needs for efficient and accurate report generation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118798181A_ABST
    Figure CN118798181A_ABST
Patent Text Reader

Abstract

The invention provides an AI-assisted judicial expertise report generation method, device and equipment, and relates to the technical field of artificial intelligence, and the method comprises the steps: responding to a request for generating a target expertise report sent by a user side, and calling a target template corresponding to the target expertise report; obtaining a target chapter title in the target template, and selecting an initial text from the text materials sent by the user side according to the target chapter title; obtaining subtitles of the target chapter title and title features of the subtitles, and deleting the initial text according to the subtitles to obtain a target text; and according to the title features of the subtitles, selecting target contents from the target text, and filling the filling areas of the subtitles with the target contents to generate the target identification report. The method has the technical effect of efficiently and accurately generating the judicial expertise report.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence technology, and specifically to a method, device and equipment for AI-assisted generation of forensic appraisal reports. Background Art

[0002] With the increasing number of judicial cases, the demand for judicial appraisal reports is also increasing. In the modern judicial system, judicial appraisal reports must not only accurately reflect the technical details of the case, but also meet strict requirements in form and content. This puts forward the demand for efficient, accurate and professional report generation process. However, how to extract key content from a large amount of case-related information within a limited time and ensure the integrity and coherence of the report has become a major technical problem.

[0003] Currently, forensic appraisal reports are usually written manually, which is not only time-consuming but also prone to errors, making it difficult to meet the growing demand for reports. Summary of the invention

[0004] The present application provides an AI-assisted method, device and equipment for generating a forensic appraisal report, which is used to efficiently and accurately generate a forensic appraisal report.

[0005] In a first aspect, the present application provides an AI-assisted method for generating a forensic appraisal report, the method comprising: in response to a request for generating a target appraisal report sent by a user terminal, calling a target template corresponding to the target appraisal report; obtaining a target chapter title in the target template, and selecting an initial text from the text material sent by the user terminal according to the target chapter title; obtaining a subtitle of the target chapter title and a title feature of the subtitle, and according to the subtitle, deleting the initial text to obtain a target text; according to the title feature of the subtitle, selecting a target content from the target text and filling the target content into the filling area of ​​the subtitle to generate the target appraisal report.

[0006] By adopting the above technical solution, the corresponding target template is automatically called in response to the request for generating a target identification report sent by the user end, thereby ensuring the standardization and consistency of the report generation process. The use of the target template helps to unify the structure and format of the report, making the comparison and review between different reports more convenient. After obtaining the target chapter title in the target template, the initial text is selected from the text material sent by the user end. This step utilizes the text analysis ability of AI to effectively extract the content related to the target chapter, reduce the workload of manual text screening, and improve the accuracy of information extraction. The subtitles of the target chapter title and the title features of the subtitles are obtained, and the initial text is deleted according to these subtitles to obtain the target text. The content that is not related to the subtitle can be identified and deleted, thereby ensuring that the extracted text is highly relevant and concise. This not only improves the accuracy of the report, but also ensures the coherence and logic of the report content. According to the title features of the subtitles, the target content is selected from the target text and filled into the filling area of ​​the subtitle to generate a target identification report, ensuring that the content under each subtitle is the most relevant and important information. This automated filling process avoids the tedious and error-prone manual operations, significantly improving the efficiency and accuracy of report generation.

[0007] Optionally, selecting the initial text from the text material sent by the user terminal based on the target chapter title includes: disassembling the target chapter title to obtain at least one keyword; identifying a text fragment associated with the keyword from the text material sent by the user terminal, and using the text fragment as the initial text.

[0008] By adopting the above technical solution, the target chapter titles are disassembled to extract core keywords from complex titles. These keywords represent the main content and focus of each chapter, ensuring the accuracy of subsequent text extraction. Text fragments associated with these keywords are identified from the text materials sent by the user end and used as the initial text. The most relevant content fragments can be quickly located and extracted from massive text data. This method not only improves the efficiency of text extraction, but also enhances the accuracy of text relevance. Through automated keyword matching and associated text recognition, information irrelevant to the topic is effectively filtered out, making the initial text more focused on the core content.

[0009] Optionally, identifying the text fragment associated with the keyword from the text material sent by the user terminal includes: preprocessing the text material sent by the user terminal to obtain a standard text material, wherein the standard text material includes a plurality of text fragments; calculating a relevance score between each of the text fragments and the keyword; and selecting a text fragment whose relevance score exceeds a threshold as a text fragment associated with the keyword.

[0010] By adopting the above technical solution, the unstructured text data can be converted into standard text materials by preprocessing the text materials sent by the user end. This preprocessing process includes operations such as noise removal, format standardization and paragraph division. The preprocessed standard text material contains multiple clearly divided text fragments, which lays the foundation for subsequent analysis and processing. Next, the relevance score between each text fragment and the keyword is calculated. Through natural language processing algorithms and semantic analysis technology, the system can accurately measure the degree of association between each text fragment and the keyword. This step utilizes the powerful computing power of AI, which can process a large amount of text data in a short time and generate an objective relevance score. This method not only improves the accuracy of text fragment screening, but also ensures the scientificity and consistency of relevance evaluation.

[0011] Optionally, the initial text is deleted according to the subtitle to obtain a target text, including: obtaining the filling requirement of the subtitle, the filling requirement including direct filling and indirect filling; if the filling requirement is direct filling, extracting a first target text corresponding to the subtitle from the initial text, the first target text is a text that allows direct filling; if the filling requirement is indirect filling, extracting a second target text related to the subtitle from the initial text, the second target text is a text that does not allow direct filling; and combining the first target text and the second target text to obtain the target text.

[0012] By adopting the above technical solution, by obtaining the filling requirements of the subtitles, the specific requirements of each subtitle are clarified. This clear classification of requirements provides clear guidance for subsequent text processing. AI technology has the advantages of high efficiency and accuracy in parsing and understanding complex filling requirements, and can ensure that the filling requirements of each subtitle are correctly identified and processed. Next, text extraction is performed according to the filling requirements. For subtitles that are filled in directly, the first target text corresponding to the subtitle is extracted from the initial text. These texts are content that allows direct filling, usually clear and specific information. Ensure that the extracted content is highly matched with the subtitle, reducing errors in manual operations.

[0013] Optionally, the title features include keyword features and text type features, and the method of selecting target content from the target text and filling the target content into the filling area of ​​the subtitle based on the title features of the subtitle includes: obtaining the first target text and the second target text in the target text, and directly filling the first target text into the filling area corresponding to the subtitle; extracting candidate content related to the keyword feature from the second target text based on the keyword feature; filtering the candidate content based on the text type feature to obtain the target content matching the text type feature; and filling the target content into the filling area of ​​the subtitle.

[0014] By adopting the above technical solution, the specific needs of each subtitle are analyzed in detail by clarifying the title features, including keyword features and text type features. This clear feature classification provides clear guidance for subsequent text processing, making the information extraction and filling process more accurate and efficient. After obtaining the first target text and the second target text in the target text, the first target text is directly filled into the filling area of ​​the corresponding subtitle. The accuracy and completeness of the directly filled content are ensured, unnecessary processing steps are avoided, and the directly filled content can be ensured to be highly matched with the subtitle.

[0015] Optionally, filling the target content into the filling area of ​​the subtitle includes: if the filling area is not filled, extracting supplementary content from the target text according to the context of the target content, and adding the supplementary content to the filling area until the filling area is filled or the content in the target text has been completely extracted.

[0016] By adopting the above technical solution, the accuracy and completeness of text filling can be intelligently adjusted by identifying whether the filling area has been filled. The filling progress is monitored in real time to ensure that the content of the filling area reaches the expected completeness. When the filling area is not filled, the supplementary content is extracted from the target text according to the context of the target content, and the contextual relationship of the target content can be intelligently understood, so as to accurately locate the relevant supplementary content in the target text. Through this context-related extraction, the system ensures the logical and semantic coherence of the supplementary content with the filled content, avoiding inconsistent or abrupt content.

[0017] Optionally, after generating the target identification report, the method further includes: sending the target identification report to the user terminal, receiving a modified target identification report sent by the user terminal, and generating a final target identification report according to the modified target identification report.

[0018] By adopting the above technical solution, the system implements the preliminary review and feedback mechanism of the report by sending the generated target identification report to the user end, ensuring that the user can receive the preliminary generated report in time, review and provide feedback. The participation of the user end makes the report generation process more interactive and flexible, ensuring that the report content meets actual needs and standards. Receiving the modified target identification report sent by the user end ensures that the user's feedback and modification opinions can be quickly communicated and processed, and can accurately identify the user's modification content and suggestions, and provide a basis for subsequent report generation.

[0019] In a second aspect, the present application provides an AI-assisted forensic appraisal report generation device, the device comprising: a calling module, a selection module, an adjustment module and an output module; wherein the calling module is used to call a target template corresponding to the target appraisal report in response to a request for generating a target appraisal report sent by a user terminal; the selection module is used to obtain a target chapter title in the target template, and select an initial text from the text material sent by the user terminal according to the target chapter title; the adjustment module is used to obtain a subtitle of the target chapter title and a title feature of the subtitle, and delete the initial text according to the subtitle to obtain a target text; the output module is used to select a target content from the target text and fill the target content into the filling area of ​​the subtitle according to the title feature of the subtitle to generate the target appraisal report.

[0020] In the third aspect, the present application provides an electronic device, adopting the following technical solution: including a processor, a memory, a user interface and a network interface, the memory is used to store instructions, the user interface and the network interface are used to communicate with other devices, and the processor is used to execute the instructions stored in the memory so that the electronic device executes a computer program such as any one of the above-mentioned AI-assisted methods for generating forensic appraisal reports.

[0021] In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solution: storing a computer program that can be loaded by a processor and execute any of the above-mentioned AI-assisted methods for generating a forensic appraisal report.

[0022] In summary, the present application includes at least one of the following beneficial technical effects: 1. This automated filling process avoids the tedious and error-prone manual operation, significantly improving the efficiency and accuracy of report generation; 2. The participation of the user end makes the report generation process more interactive and flexible, ensuring that the report content meets actual needs and standards. Receiving the modified target identification report sent by the user end ensures that the user's feedback and modification opinions can be quickly communicated and processed, and can accurately identify the user's modification content and suggestions, and provide a basis for subsequent report generation. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 It is a flowchart of a method for AI-assisted forensic identification report generation provided in an embodiment of the present application; Figure 2 It is a structural diagram of an AI-assisted forensic identification report generation device provided in an embodiment of the present application; Figure 3 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application.

[0024] Description of reference numerals: 1000, electronic device; 1001, processor; 1002, communication bus; 1003, user interface; 1004, network interface; 1005, memory. DETAILED DESCRIPTION

[0025] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.

[0026] In the description of the embodiments of the present application, words such as "illustrative", "for example" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "illustrative", "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "illustrative", "for example" or "for example" is intended to present related concepts in a concrete way.

[0027] Figure 1 is a flowchart of an AI-assisted forensic identification report generation provided in an embodiment of the present application. It should be understood that although Figure 1 The steps in the flowchart are shown in sequence as indicated by the arrows, but the steps are not necessarily executed in the order indicated by the arrows; unless otherwise specified in this document, there is no strict order restriction for the execution of the steps, and the steps may be executed in other orders; and Figure 1At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0028] This application discloses an AI-assisted method for generating a forensic appraisal report, such as Figure 1 As shown, the method includes S101-S104.

[0029] S101, in response to a request for generating a target identification report sent by a user terminal, calling a target template corresponding to the target identification report.

[0030] In one example, when the system receives a user's request, it first parses the parameters in the request, such as the report type and report purpose, to determine the type of target identification report required. Then, it selects a target template corresponding to the report type from a predefined template library. This target template contains the structural information required to generate the report, such as the title and subtitle of each chapter, as well as the filling requirements and format specifications of each section.

[0031] During the specific operation, the system will first parse the request sent by the user and extract key information such as report type and case number. Based on this information, the corresponding target template will be searched and matched in the template library. For example, if the request specifies "Forensic Identification Report", the corresponding "Forensic Identification Report Template" will be selected from the template library. Once a suitable template is matched, the system will load the template and prepare for subsequent filling and generation operations.

[0032] By calling the target template, you can ensure that the basic structure and format of the report are consistent with expectations. This template-based processing method not only ensures the standardization and consistency of the report, but also significantly improves the efficiency of report generation, avoiding the trouble of designing the report structure from scratch every time. In addition, through predefined templates, you can easily manage and update the report format in a unified manner. Once the template is updated, all subsequently generated reports will automatically apply the new format and standards.

[0033] S102, obtaining a target chapter title in a target template, and selecting an initial text from the text material sent by the user terminal according to the target chapter title.

[0034] In one example, after loading the corresponding target template, the template is parsed first to obtain the target chapter titles defined therein. Each chapter title represents an important part of the report, such as "Case Overview", "Evidence Analysis", "Conclusions", etc. These chapter titles are used to guide the subsequent text extraction work.

[0035] After obtaining the target chapter titles, the system will disassemble these titles and extract the keywords. For example, for the chapter title "Case Overview", "Case" and "Overview" may be extracted as keywords. Next, these keywords will be used to search and match in the text materials sent by the user.

[0036] In order to improve the accuracy of matching, the text materials sent by the user are first preprocessed and converted into standard text materials. The preprocessing process may include operations such as text cleaning, sentence segmentation, segmentation, and grammatical analysis, with the purpose of converting the original text materials into a format that is easy for computers to process. Then, these standard text materials are divided into multiple text segments, each of which represents a logical unit in the text material.

[0037] Next, the relevance score between each text segment and the extracted keywords is calculated. This step uses natural language processing and machine learning technology to calculate the relevance score by analyzing the semantic and word frequency relationship between the text segment and the keywords. Based on the relevance score, it is possible to determine which text segments are most relevant to the target chapter title. Text segments with relevance scores exceeding the threshold are selected and used as the initial text. In this way, the most relevant content is screened out from the huge text material sent by the user end, ensuring that each chapter can get the appropriate initial text.

[0038] Based on the above embodiment, as an optional implementation, in S102, selecting the initial text from the text material sent by the user terminal according to the target chapter title specifically includes the following steps: S20, disassemble the target chapter title to obtain at least one keyword.

[0039] In one example, after receiving the target chapter titles, these titles are parsed and decomposed. The parsing process usually includes decomposing the titles into several words or phrases, which are keywords. For example, for the target chapter title "Case Overview", it will be decomposed into two keywords "Case" and "Overview".

[0040] In order to ensure the accuracy and effectiveness of keywords, natural language processing (NLP) technology is used to perform grammatical analysis and part-of-speech tagging on the title. By analyzing the word structure and grammatical relationship in the title, the system can identify the core words and auxiliary words. Core words are usually used as keywords, while auxiliary words are ignored. For example, in the title "The situation of people involved in the case", the core word "people involved in the case" will be extracted as a keyword, while "situation" as an auxiliary word may be ignored.

[0041] During the keyword extraction process, the system will also use the word library and professional terminology library for matching to ensure that the extracted keywords accurately reflect the meaning and professional requirements of the chapter title. For example, the system will refer to the legal terminology library and the forensic identification standard word library to ensure that the extracted keywords can accurately cover the professional content in the relevant field.

[0042] Once the keywords are extracted, store them and prepare for the next step. These keywords will play a key role in the subsequent text matching and screening process. Use these keywords to search and match in the text materials provided by the user to locate content related to the target chapter.

[0043] By breaking down the target chapter title, accurate keywords can be extracted, providing a basis for subsequent text processing. This step ensures that the system can efficiently extract relevant content from the text materials provided by users, improving the accuracy and efficiency of text matching.

[0044] S21, identifying a text segment associated with a keyword from the text material sent by the user terminal, and using the text segment as an initial text.

[0045] In one example, the text material sent by the user is first received and preprocessed. The preprocessing includes steps such as text cleaning, character encoding conversion, sentence segmentation, and removal of redundant information. This step ensures that the text material is in a standardized and easy-to-process state.

[0046] Next, the preprocessed text material is searched and matched using the keywords extracted in step S20. During the search, the system will traverse the entire text material and identify text fragments containing keywords. In order to improve the accuracy of the match, the system will use natural language processing (NLP) technology, not just simple word-by-word matching, but also semantic analysis and contextual understanding. For example, for the keyword "case overview", the system will identify text fragments that describe the case background, the course of events, and other related content.

[0047] During the recognition process, the relevance score of each text segment to the keyword is calculated. The relevance score is calculated based on factors such as the frequency of occurrence of the keyword in the text segment, the contextual semantic relevance, and the length of the text segment. Text segments with high relevance scores are more likely to contain information that is closely related to the keyword. The system sets a relevance threshold, and only text segments that exceed this threshold will be selected as initial text. Once relevant text segments are identified, they will be marked and extracted to form an initial text set.

[0048] Based on the above embodiment, as an optional implementation, in S21, identifying a text segment associated with a keyword from the text material sent by the user terminal specifically includes the following steps: S210, pre-processing the text material sent by the user end to obtain standard text material, where the standard text material includes a plurality of text segments.

[0049] In one example, the text material is first cleaned, and the cleaning process includes removing extra spaces, punctuation marks, HTML tags, special characters, etc.

[0050] Next, character encoding conversion is performed to ensure that all text materials use a unified character encoding format. Then, the text materials are processed into sentences and paragraphs. Sentence processing breaks long text into sentences, and paragraph processing further combines sentences into logical paragraphs. Using natural language processing technology, the boundaries of sentences and paragraphs are accurately identified based on rules such as punctuation, conjunctions, and paragraph start features. For example, punctuation marks such as periods, question marks, and exclamation marks can be used as sentence end marks, and line breaks, indents, etc. can be used as paragraph separators.

[0051] After completing the sentence and segmentation processing, the text is subjected to grammatical analysis and part-of-speech tagging. Through grammatical analysis, the structure of the sentence can be understood and the subject, predicate, object and other components can be identified. Part-of-speech tagging marks the part of speech (such as noun, verb, adjective, etc.) for each word. Finally, the preprocessed text material is divided into multiple text fragments. Each text fragment represents a logical unit, which may be a sentence, a paragraph, or a group of semantically related sentences. These text fragments are stored as standard text materials to ensure that the content of each fragment is complete and the structure is clear. For example, a paragraph describing the background of a case may be divided into multiple fragments, each of which describes the time, place, people and other information of the case.

[0052] S211, calculating the relevance score between each text segment and the keyword.

[0053] In one example, a text similarity algorithm is used to calculate the relevance score between each text segment and a keyword. Common similarity algorithms include TF-IDF, cosine similarity, word embedding (such as Word2Vec, BERT), etc. Selecting a suitable algorithm can effectively measure the semantic similarity between a text segment and a keyword.

[0054] For example, when using TF-IDF and cosine similarity to calculate the relevance score, first generate a TF-IDF vector for each text segment and keyword. The TF-IDF vector reflects the importance of a word in the text, avoiding the interference of high-frequency words in the similarity calculation. Then, calculate the cosine similarity between the text segment vector and the keyword vector to obtain the relevance score. The value of cosine similarity ranges from 0 to 1, and the larger the value, the higher the relevance between the text segment and the keyword.

[0055] To improve the accuracy of the calculation, semantic analysis technology can be combined. Use pre-trained word embedding models (such as Word2Vec or BERT) to convert text fragments and keywords into high-dimensional vectors. These vectors not only consider the surface form of words, but also capture the semantic information of words. Then, calculate the cosine similarity between the text fragment vector and the keyword vector to obtain a more accurate relevance score.

[0056] In the process of calculating the relevance score, you may also need to consider factors such as the length of the text segment, the frequency and location of the keyword, etc. A segment that is too long may contain a lot of irrelevant information, while a segment that is too short may lack sufficient context. By adjusting the weights, you can balance the impact of these factors on the relevance score.

[0057] Once the relevance scores are calculated, these scores are stored in association with the text fragments. Based on these scores, the text fragments can be sorted, and the fragments with high scores are preferentially selected as target content.

[0058] S212: Selecting text segments whose relevance scores exceed a threshold as text segments associated with the keyword.

[0059] S103, obtaining the subtitle of the target chapter title and the title features of the subtitle, and deleting the initial text according to the subtitle to obtain the target text.

[0060] In one example, the subheadings under each target chapter title in the target template are parsed. Each subheading further refines the chapter content and clarifies the specific requirements of the report. For example, under the "Case Overview" chapter, there may be subheadings such as "Case Background", "Persons Involved in the Case", and "Time and Location of the Case". After obtaining these subheadings, the title features of each subheading are also extracted. These title features usually include keyword features and text type features.

[0061] Next, the initial text selected in the previous step will be processed according to these subheadings. First, the initial text is classified according to the filling requirements of the subheadings. The filling requirements are usually divided into direct filling and indirect filling. For subheadings that are filled directly, the first target text that allows direct filling is extracted from the initial text; for subheadings that are filled indirectly, the second target text that does not allow direct filling is extracted from the initial text.

[0062] When extracting the first target text and the second target text, the title features of the subtitles are used for screening. The keyword features in the title features are used to locate the content related to the subtitles in the initial text, while the text type features are used to determine whether these contents meet the filling requirements of the subtitles. For example, if the subtitle "Case Background" requires a detailed background description, the system will screen out text fragments in the initial text that are highly relevant to the "background" keyword and meet the description type.

[0063] In this way, the initial text can be precisely deleted and the content most relevant to the subtitle can be retained. Finally, the system combines the first target text and the second target text to form a target text that meets the requirements of the subtitle.

[0064] Based on the above embodiment, as an optional implementation, in S103, the initial text is deleted according to the subtitles to obtain the target text, which specifically includes the following steps: S30, obtaining filling requirements of the subtitle, the filling requirements including direct filling and indirect filling.

[0065] S31, if the filling requirement is direct filling, extracting a first target text corresponding to the subtitle from the initial text, the first target text is a text that allows direct filling.

[0066] In one example, it is necessary to clarify the filling requirements and determine whether it is direct filling. Direct filling can be understood as extracting the first target text that is highly relevant to the subtitle from the initial text, and directly filling it into the corresponding position of the target identification report without any modification or reorganization. This is usually done in the following situations: The content is clear: the content corresponding to the subtitle already exists clearly in the initial text and meets the requirements. The format is fixed: the format of the extracted text fragment is standardized and conforms to the standard format of the report. No processing is required: the content of the text fragment is complete and coherent, and no further editing or supplementation is required.

[0067] Next, based on the specific requirements of the subtitle, the first target text that is most relevant to the subtitle is extracted from the initial text. This process involves another round of matching and screening to ensure that the extracted text fragments are highly consistent with the requirements of the subtitle. For example, if the subtitle is "Case Overview", it is necessary to extract text fragments that describe the case background, time, location, and other information.

[0068] Once the first target text is determined, the system marks it as a text that allows direct filling. This text will be directly filled in under the corresponding subheading of the target identification report without further modification or processing. This step ensures the efficiency and accuracy of the filling process and avoids the tedious steps of manual screening and editing.

[0069] S32, if the filling requirement is indirect filling, extracting a second target text related to the subtitle from the initial text, the second target text is a text that is not allowed to be directly filled.

[0070] Indirect filling can be understood as the process of document or report generation, where some content needs to be further processed, edited or integrated before it can be filled in the predetermined position. This method is usually suitable for situations where the content is complex, requires the integration of information from multiple sources, or needs to be adjusted according to a specific format and context.

[0071] In one example, it is necessary to determine whether the filling requirement is indirect filling. If the filling requirement is indirect filling, it is necessary to extract the second target text related to the subtitle from the initial text. The initial text is a set of text fragments obtained from the previous step, and these fragments have been relevance calculated and sorted.

[0072] Next, a new keyword list is generated based on the subtitles, and the initial text is matched and screened in combination with the previously extracted keywords. Natural language processing (NLP) technology is used to analyze the content of the text fragments and identify the fragments related to the subtitle keywords. By calculating the relevance score between the fragments and the subtitle keywords, the fragments with higher scores are selected as the second target text. Since the filling requirement is indirect filling, the selected second target text is not allowed to be filled directly and needs further processing. These processing may include the following aspects: Content editing: Edit the extracted text to ensure that its content is complete, coherent, and meets the context and format requirements of the report. For example, it may be necessary to reorganize sentences, supplement contextual information, or correct grammatical errors. Information integration: Integrate multiple related text fragments into a complete paragraph or chapter to ensure the comprehensiveness and logic of the information. For example, the extracted fragments may come from different parts and need to be integrated into a complete description. Format adjustment: According to the format requirements of the target identification report, the text format is adjusted, such as font, paragraph spacing, title, etc., to ensure the standardization and aesthetics of the report.

[0073] Once the above processing steps are completed, the revised text will be populated as the final content under the corresponding subheadings of the report.

[0074] S33, combining the first target text and the second target text to obtain a target text.

[0075] S104, according to the title feature of the subtitle, select the target content from the target text and fill the target content into the filling area of ​​the subtitle to generate a target identification report.

[0076] In one example, the target text obtained in the previous step is processed first. The title features of each subheading, including keyword features and text type features, are used by the system to locate the target content related to the subheading in the target text. For example, in the "Case Background" subheading under the "Case Overview" section, the system searches for paragraphs related to the "background" keyword in the target text and determines whether these paragraphs meet the characteristics of descriptive text.

[0077] Once the target content is located, it is extracted and prepared for filling. The filling process needs to take into account the filling area of ​​each subheading, which is predefined in the target template. For example, the template may reserve specific text boxes or paragraph areas for each subheading. The system fills the extracted target content into these reserved areas in the order of the subheadings.

[0078] During the filling process, necessary text formatting adjustments will be made to ensure that the display effect of the target content meets the template requirements. This includes adjusting fonts, paragraph spacing, alignment, etc., so that the filled report looks neat and professional.

[0079] Based on the above embodiment, as an optional implementation, in S104, the title feature includes a keyword feature and a text type feature, and according to the title feature of the subtitle, selecting the target content from the target text and filling the target content into the filling area of ​​the subtitle specifically includes the following steps: S40, obtaining a first target text and a second target text in the target text, and directly filling the first target text into the filling area of ​​the corresponding subtitle.

[0080] S41, extracting candidate content related to the keyword feature from the second target text according to the keyword feature.

[0081] In one example, it is necessary to clarify the keyword features, which include the keyword itself and its semantically associated vocabulary, phrases, and contextual information. These keyword features are usually extracted and sorted in the previous steps and have strong directionality and representativeness. Next, candidate content related to the keyword features is extracted from the second target text. The second target text is a text fragment extracted from the initial text and preliminarily processed. These fragments have been marked as not allowed to be directly filled and need further processing.

[0082] In order to extract candidate content, it is necessary to use natural language processing (NLP) technology for in-depth analysis. First, the second target text is segmented and POS tagged to identify the key elements in the text. Then, the text is matched and screened using keyword features. Specifically, the keyword features are matched with the vocabulary in the second target text, all sentences or paragraphs containing keyword features are marked, and the semantic similarity between the keyword features and the text fragments is calculated to ensure that the extracted content is highly semantically related. At the same time, the context of the keyword features in the text is considered to ensure that the extracted candidate content has complete contextual information, not just a single vocabulary match.

[0083] Through these steps, candidate content that is highly relevant to the keyword features can be screened out from the second target text. These candidate content will be further processed and optimized to ensure that the content that is finally filled in the report is of high quality and high relevance.

[0084] S42, filtering candidate contents according to the text type feature to obtain target contents matching the text type feature.

[0085] In one example, text type features include stylistic style, professional terms, grammatical structure, format requirements, etc., which have been defined and organized in the previous steps. The clarification of text type features helps to ensure that the screened content is not only semantically relevant, but also consistent with the report requirements in form and style.

[0086] Next, the candidate contents are filtered to obtain target contents that match the text type features. The candidate contents are extracted from the second target text according to the keyword features in the previous step. These contents already have a certain relevance, but further filtering is required to ensure that they fully meet the text type features.

[0087] In order to perform effective filtering, it is necessary to extract features from candidate content with the help of natural language processing (NLP) technology to identify elements such as style, professional terms, and grammatical structure in the text. Then, the candidate content is matched and screened using predefined text type features to ensure that the extracted content meets the expected text type features. Through these steps, the target content that matches the text type features can be effectively filtered out.

[0088] S43, filling the target content into the filling area of ​​the subtitle.

[0089] Filling the target content into the filling area of ​​the subtitle includes: if the filling area is not filled, extracting supplementary content from the target text according to the context of the target content, and adding the supplementary content to the filling area until the filling area is filled or the content in the target text is completely extracted.

[0090] In one example, from the previous steps, target content matching the text type features is obtained. These target contents are preliminarily determined to be suitable for filling into the subtitle area of ​​the report. However, the length or amount of information of the target content may not be enough to completely fill the predetermined filling area. In order to ensure the integrity of the report content, it is necessary to further extract and add supplementary content.

[0091] If the fill area is not filled, it is necessary to extract supplementary content from the target text according to the context of the target content. The target text refers to a larger range of text fragments related to the current subheading, which have been identified and processed in the previous steps.

[0092] To this end, the context of the target content is analyzed to identify text fragments that are semantically and logically related to the target content. Then, these relevant supplementary contents are extracted from the target text. During the extraction process, the coherence and consistency of the content need to be considered to ensure that the supplementary content naturally connects to the already filled target content.

[0093] To achieve this, the context window technology can be used, that is, searching for relevant supplementary content within a certain range before and after the target content to ensure that the extracted content is logically and semantically consistent with the target content. The extracted supplementary content will be gradually added to the filling area, and the status of the filling area will be constantly checked during the process until the filling area is completely filled or the content in the target text has been completely extracted.

[0094] After the target identification report is generated, the method further includes: sending the target identification report to the user terminal, receiving a modified target identification report sent by the user terminal, and generating a final target identification report according to the modified target identification report.

[0095] In one example, a target identification report is transmitted to a user's device. The user's interface displays the contents of the report and provides an editing function, allowing the user to modify, add, or delete content from the report. After the user completes the modification, the modified target identification report is sent back to the system. The system receives the modified report and uses it as a new input to generate a final target identification report.

[0096] Based on the above method, the present application also discloses an AI-assisted forensic identification report generation device, such as Figure 2 As shown, Figure 2 It is a structural diagram of an AI-assisted forensic identification report generation device provided in an embodiment of the present application.

[0097] An AI-assisted forensic identification report generation device comprises: a calling module, a selecting module, an adjusting module and an output module; wherein the calling module is used to call a target template corresponding to a target identification report in response to a request for generating a target identification report sent by a user terminal; the selecting module is used to obtain a target chapter title in the target template, and select an initial text from a text material sent by the user terminal according to the target chapter title; the adjusting module is used to obtain a subtitle of the target chapter title and a title feature of the subtitle, and delete the initial text according to the subtitle to obtain a target text; the output module is used to select a target content from the target text according to the title feature of the subtitle and fill the target content into a filling area of ​​the subtitle to generate a target identification report.

[0098] In one example, the selection module is further used to disassemble the target chapter title to obtain at least one keyword; identify a text segment associated with the keyword from the text material sent by the user end, and use the text segment as the initial text.

[0099] In one example, the selection module is also used to preprocess the text material sent by the user terminal to obtain standard text material, which includes multiple text fragments; calculate the relevance score of each text fragment and the keyword; and select the text fragment whose relevance score exceeds a threshold as the text fragment associated with the keyword.

[0100] In one example, the adjustment module is also used to obtain the filling requirements of the subtitle, and the filling requirements include direct filling and indirect filling; if the filling requirement is direct filling, the first target text corresponding to the subtitle is extracted from the initial text, and the first target text is the text that allows direct filling; if the filling requirement is indirect filling, the second target text related to the subtitle is extracted from the initial text, and the second target text is the text that does not allow direct filling; the first target text and the second target text are combined to obtain the target text.

[0101] In one example, the adjustment module is also used to obtain the first target text and the second target text in the target text, and directly fill the first target text into the filling area of ​​the corresponding subtitle; based on the keyword feature, extract candidate content related to the keyword feature from the second target text; based on the text type feature, filter the candidate content to obtain the target content that matches the text type feature; and fill the target content into the filling area of ​​the subtitle.

[0102] In one example, the output module is further used to extract supplementary content from the target text according to the context of the target content if the filling area is not filled, and add the supplementary content to the filling area until the filling area is filled or the content in the target text is completely extracted.

[0103] In one example, the above-mentioned device is also used to send the target identification report to the user terminal, receive the modified target identification report sent by the user terminal, and generate a final target identification report according to the modified target identification report.

[0104] It should be noted that: when the device provided in the above embodiment realizes its function, only the division of the above functional modules is used as an example. In actual application, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0105] See also Figure 3 , is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 3 As shown, the electronic device 1000 may include: at least one processor 1001 , at least one network interface 1004 , a user interface 1003 , a memory 1005 , and at least one communication bus 1002 .

[0106] The communication bus 1002 is used to realize the connection and communication between these components.

[0107] The user interface 1003 may include a display screen (Display) and a camera (Camera). Optionally, the user interface 1003 may also include a standard wired interface and a wireless interface.

[0108] The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).

[0109] Among them, the processor 1001 may include one or more processing cores. The processor 1001 uses various interfaces and lines to connect various parts in the entire server, and executes various functions of the server and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 1005, and calling data stored in the memory 1005. Optionally, the processor 1001 can be implemented in at least one hardware form of digital signal processing (Digital, Signal, Processing, DSP), field programmable gate array (Field-Programmable, Gate, Array, FPGA), and programmable logic array (Programmable, Logic, Array, PLA). The processor 1001 can integrate one or a combination of a central processing unit (Central, Processing, Unit, CPU), an image processor (Graphics, Processing, Unit, GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 1001, but may be implemented separately through a chip.

[0110] Among them, the memory 1005 may include a random access memory (Random, Access, Memory, RAM) and may also include a read-only memory (Read-Only, Memory). Optionally, the memory 1005 includes a non-transitory, computer-readable, storage, medium. The memory 1005 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 1005 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 1005 may optionally be at least one storage device located away from the aforementioned processor 1001. As Figure 3 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an application for an AI-assisted method for generating a forensic appraisal report.

[0111] exist Figure 3In the electronic device 1000 shown, the user interface 1003 is mainly used to provide an input interface for the user and obtain data input by the user; and the processor 1001 can be used to call an application stored in the memory 1005 for an AI-assisted method for generating a forensic appraisal report. When executed by one or more processors, the electronic device executes one or more of the methods described in the above embodiments.

[0112] An electronic device readable storage medium stores instructions, which, when executed by one or more processors, enable the electronic device to execute one or more of the methods described in the above embodiments.

[0113] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required for the present application.

[0114] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0115] In the several embodiments provided in the present application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.

[0116] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0117] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0118] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned memory includes: various media that can store program codes, such as USB flash drives, mobile hard drives, magnetic disks or optical disks.

[0119] The above is only an exemplary embodiment of the present disclosure, and the scope of the present disclosure cannot be limited thereto. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the specification and practicing the disclosure here, those skilled in the art will easily think of other embodiments of the present disclosure. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the technical field not recorded in the present disclosure. The description and examples are only regarded as exemplary, and the scope and spirit of the present disclosure are defined by the claims.

Claims

1. An AI-assisted method for generating a forensic appraisal report, characterized in that: The method comprises: In response to a request for generating a target identification report sent by a user terminal, calling a target template corresponding to the target identification report; Obtaining a target chapter title in the target template, and selecting an initial text from the text material sent by the user terminal according to the target chapter title; Obtaining the subtitle of the target chapter title and the title features of the subtitle, and deleting the initial text according to the subtitle to obtain the target text; According to the title feature of the subtitle, target content is selected from the target text and the target content is filled into the filling area of ​​the subtitle to generate the target identification report.

2. The AI-assisted method for generating a judicial appraisal report according to claim 1, characterized in that: The step of selecting the initial text from the text material sent by the user terminal according to the target chapter title includes: Decomposing the target chapter title to obtain at least one keyword; A text segment associated with the keyword is identified from the text material sent by the user terminal, and the text segment is used as the initial text.

3. The AI-assisted method for generating a judicial appraisal report according to claim 2, characterized in that: The step of identifying a text segment associated with the keyword from the text material sent by the user terminal includes: Preprocessing the text material sent by the user terminal to obtain standard text material, wherein the standard text material includes a plurality of text segments; Calculating the relevance score between each of the text segments and the keyword; The text segment whose relevance score exceeds a threshold is selected as the text segment associated with the keyword.

4. The AI-assisted method for generating a judicial appraisal report according to claim 1, characterized in that: The initial text is deleted according to the subtitle to obtain the target text, including: Obtaining filling requirements for the subtitle, the filling requirements including direct filling and indirect filling; If the filling requirement is the direct filling, extracting a first target text corresponding to the subtitle from the initial text, the first target text being a text that allows direct filling; If the filling requirement is the indirect filling, extracting a second target text related to the subtitle from the initial text, the second target text being a text that does not allow direct filling; The first target text and the second target text are combined to obtain the target text.

5. The AI-assisted method for generating a judicial appraisal report according to claim 4, characterized in that: The title feature includes a keyword feature and a text type feature. The step of selecting target content from the target text and filling the target content into the filling area of ​​the subtitle according to the title feature of the subtitle includes: Acquire the first target text and the second target text in the target text, and directly fill the first target text into the filling area corresponding to the subtitle; According to the keyword feature, extracting candidate content related to the keyword feature from the second target text; Filtering the candidate content according to the text type feature to obtain target content matching the text type feature; Fill the target content into the filling area of ​​the subtitle.

6. The AI-assisted method for generating a judicial appraisal report according to claim 1, characterized in that: The step of filling the target content into the filling area of ​​the subtitle includes: If the filling area is not filled, supplementary content is extracted from the target text according to the context of the target content, and the supplementary content is added to the filling area until the filling area is filled or the content in the target text is completely extracted.

7. The AI-assisted method for generating a judicial appraisal report according to claim 1, characterized in that: After generating the target identification report, the method further includes: The target identification report is sent to the user terminal, a modified target identification report sent by the user terminal is received, and a final target identification report is generated according to the modified target identification report.

8. An AI-assisted forensic identification report generation device, characterized in that: The device comprises: a calling module, a selecting module, an adjusting module and an output module; wherein, The calling module is used to call the target template corresponding to the target identification report in response to the request for generating the target identification report sent by the user terminal; The selection module is used to obtain the target chapter title in the target template, and select the initial text from the text material sent by the user terminal according to the target chapter title; The adjustment module is used to obtain the subtitle of the target chapter title and the title features of the subtitle, and delete the initial text according to the subtitle to obtain the target text; The output module is used to select target content from the target text according to the title feature of the subtitle and fill the target content into the filling area of ​​the subtitle to generate the target identification report.

9. An electronic device, characterized in that: It includes a processor, a memory user interface and a network interface, the memory is used to store instructions, the user interface and the network interface are used to communicate with other devices, and the processor is used to execute the instructions stored in the memory so that the electronic device executes the method as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that: A computer program is stored which can be loaded by a processor and execute the method according to any one of claims 1 to 7.