Method and system for assisting in handling case in whole course under driving of large language model
Through the full-process auxiliary case handling method driven by large language models, industry-specific large models are used to extract behavioral facts in case file materials, which solves the problem of difficulty in efficiently analyzing cases in the existing technology, improves the work efficiency of case handlers, and clarifies case conclusions and Evidence of guilt.
Patent Information
- Application Number
- CN202410806590.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-06-21
AI Technical Summary
The existing technology makes it difficult to efficiently analyze and identify behavioral facts when handling cases using case file materials, making it difficult for case handlers to quickly understand the case situation and reducing work efficiency.
Adopting a full-process auxiliary case handling method driven by a large language model, by receiving case file materials, it determines whether it belongs to an existing case, automatically identifies and incorporates it into the holographic file, uses an industry-specific large model to extract behavioral facts, and provides information based on plot identification rules Conclusion, build a case map and improve the work efficiency of case handlers.
The large language model is used to extract behavioral facts from case file materials, determine the plot, analyze the case conclusion, and clarify whether the criminal evidence is established, which significantly improves the ability and work efficiency of case investigators to understand the case situation.
Smart Images

Figure CN118606486A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of case handling, and in particular to a method and system for fully assisting case handling driven by a large language model. Background Art
[0002] The applicant previously designed a case graph using case files to populate a case template (constructed using knowledge graph principles). This graph serves as a reference for case handlers, allowing them to quickly understand the case. Based on this, the applicant uses the large language model to determine the circumstances of the case based on the behavioral facts presented in the case files. Based on this determination, the applicant can then analyze the case conclusion, such as whether the evidence involved is established. This makes it easier for case handlers to understand the case and improves their work efficiency. Summary of the Invention
[0003] In view of the problems and shortcomings of the existing technology, the present invention provides a method and system for fully assisting case handling driven by a large language model.
[0004] The present invention solves the above technical problems through the following technical solutions:
[0005] The present invention provides a method for assisting case handling throughout the entire process driven by a large language model, which is characterized in that it includes the following steps:
[0006] S1. Receive a case file and determine whether the case file belongs to an existing case. If yes, proceed to step S2; otherwise, proceed to step S3.
[0007] S2. Automatically identify the case file and add it to the corresponding holographic file of the target case. If the holographic file already contains the matched target case template, proceed to step S4.
[0008] S3. Create a new case as the target case, automatically identify the case file materials and add them to the holographic file of the target case, and match the corresponding case template from the case template library according to the case type of the target case as the target case template, and proceed to step S4;
[0009] S4. Extract behavioral facts from the case file based on the target case template and using the industry-specific large model. Use the extracted behavioral facts to fill in the target case template with entities. The target case template is constructed using the knowledge graph principle.
[0010] Industry-specific large models are large language models obtained through fine-tuning and reinforcement learning based on the model base using industry-specific task designs and related datasets.
[0011] S5. Adapt the circumstances identification rules and conditions based on the extracted behavioral facts and give a qualitative conclusion on the circumstances identification;
[0012] S6. Analyze the elements of the target case supported by the qualitative conclusion of the circumstances determination based on the qualitative conclusion of the circumstances determination, and provide a conclusion on the case based on the elements of the target case supported by the qualitative conclusion of the circumstances determination;
[0013] S7. The target case map, the qualitative conclusion of the circumstances and the case conclusion formed after the entity filling are stored in the holographic file of the target case.
[0014] The present invention also provides a system for assisting case handling throughout the entire process driven by a large language model, which is characterized in that it includes a case file judgment module, a first file entry module, a second file entry module, an extraction and filling module, a plot identification module, a case analysis module, and a storage module;
[0015] The case file judgment module is used to receive a case file material and judge whether the case file material belongs to an existing case. If the judgment is yes, the first file entry module is called, and if the judgment is no, the second file entry module is called;
[0016] The first file entry module is used to automatically identify and file the case file materials into the holographic file of the corresponding target case. The holographic file already contains the matched target case template, and calls the extraction and filling module;
[0017] The second filing module is used to create a new case as a target case, automatically identify the case file materials and file them into the holographic archive of the target case, match the corresponding case template from the case template library according to the case type of the target case as the target case template, and call the extraction and filling module;
[0018] The extraction and filling module is used to extract behavioral facts from the case file materials based on the target case template and using the industry-specific large model, and use the extracted behavioral facts to fill the target case template with entities. The target case template is constructed using the knowledge graph principle;
[0019] Industry-specific large models are large language models obtained through fine-tuning and reinforcement learning based on the model base using industry-specific task designs and related datasets.
[0020] The scenario identification module is used to adapt the scenario identification rule conditions according to the extracted behavioral facts and give a qualitative conclusion on the scenario identification;
[0021] The case analysis module is used to analyze the elements of the target case supported by the qualitative conclusion of the circumstances identification according to the qualitative conclusion of the circumstances identification, and to provide a case conclusion based on the elements of the target case supported by the qualitative conclusion of the circumstances identification;
[0022] The storage module is used to store the target case map, the qualitative conclusion of the plot identification and the case conclusion formed after the entity filling in the holographic file of the target case.
[0023] The positive progressive effect of the present invention is that the present invention determines the circumstances based on the behavioral facts presented by the large language model from the case files, and based on the circumstances determination, it can further analyze the conclusion of the case, such as whether the evidence involved is established, which makes it easier for case handlers to understand the situation of the case and improves the work efficiency of case handlers. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 This is a flowchart of a method for fully assisting case handling driven by a large language model in a preferred embodiment of the present invention.
[0025] Figure 2 This is a structural block diagram of a system for fully assisting case handling driven by a large language model in a preferred embodiment of the present invention. DETAILED DESCRIPTION
[0026] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.
[0027] like Figure 1 As shown, this embodiment provides a method for assisting case handling throughout the entire process driven by a large language model, which includes the following steps:
[0028] Step 101: Receive a case file and determine whether the case file belongs to an existing case. If so, proceed to step 102; otherwise, proceed to step 103.
[0029] Step 102 : Automatically identify the case file material and file it into the holographic file of the corresponding target case. If the holographic file already contains a matched target case template, proceed to step 104 .
[0030] Step 103: Create a new case as the target case, automatically identify the case file materials and file them into the holographic file of the target case, match the corresponding case template from the case template library according to the case type of the target case as the target case template, and proceed to step 104.
[0031] In this plan, if the case materials are new case materials for an existing case, the case materials will be directly filed into the holographic file of the corresponding target case in the existing case; if the case materials do not belong to an existing case, a new target case will need to be created, and the case materials will be filed into the holographic file of the newly created target case.
[0032] Step 104: extract behavioral facts from the case file materials based on the target case template and using the industry-specific large model, and use the extracted behavioral facts to fill in the target case template with entities.
[0033] The target case template is constructed using knowledge graph principles. Industry-specific large models are large language models derived through fine-tuning and reinforcement learning based on the model base using industry-specific task designs and relevant datasets.
[0034] The case file is a written document, and step 104 includes the following steps:
[0035] S41. Determine whether the document is a formatted document or an unformatted document. If it is a formatted document, proceed to step S42; if it is an unformatted document, proceed to step S43.
[0036] S42. First, use a pre-set regular expression and a pre-trained BERT model to extract the standard content in the formatted document, extract the entity information from it and fill it into the corresponding nodes in the target case template, then use the industry-specific large model to extract the non-standard content in the formatted document, extract the entity information from it and fill it into the corresponding nodes in the target case template, and use the industry-specific large model to extract layer by layer according to the node breadth-first strategy in the target case template.
[0037] S43. Directly use the industry-specific big model to extract the standard content and non-standard content in the non-formatted document, extract the entity information from it and fill it into the corresponding node in the target case template, and use the industry-specific big model to extract layer by layer according to the node breadth-first strategy in the target case template during the extraction process.
[0038] For the specific implementation of steps S42 and S43, please refer to the invention patent with application number 2024106805417, entitled A method and system for improving the efficiency and quality of holographic file extraction.
[0039] Among them, behavioral facts written according to certain standards constitute standard content, and behavioral facts not written according to certain standards constitute non-standard content.
[0040] Moreover, before the quality of the BERT model reaches the preset requirements, a preset regular expression is used to extract the standard content in the formatted document. The data extracted by the regular expression is accumulated as a data sample set for training the BERT model. After the quality of the BERT model reaches the preset requirements after sample training, the trained BERT model is used to extract the standard content in the formatted document.
[0041] In this step, regular expressions and the BERT model are used to extract and fill the standard content in formatted documents into the target case template, which has higher extraction accuracy and efficiency. For non-standard content in formatted documents, and standard content and non-standard content in unformatted documents, industry-specific large models are used to extract and fill them into the target case template.
[0042] Step 105: Adapt the circumstances identification rule conditions according to the extracted behavioral facts and give a qualitative conclusion on the circumstances identification.
[0043] Step 106: Analyze the elements of the target case supported by the qualitative conclusion of the circumstances determination according to the qualitative conclusion of the circumstances determination, and give a case conclusion based on the elements of the supported target case.
[0044] Step 107: Store the target case map, qualitative conclusion of the circumstances and case conclusion formed after entity filling into the holographic file of the target case.
[0045] In step 106, the qualitative conclusion of the circumstances is analyzed to determine which elements of the target case are supported by the qualitative conclusion. Based on these elements, a determination is made as to whether the target case is established. If it is fully established, a case conclusion is given that the target case is established. If it is not fully established, possible causes of action are analyzed based on these elements. The possible cause of action is used as a new target case of action, and the cause of action template corresponding to the new target case of action is used as a new target cause of action template. Steps 104-105 are then executed. The two target case maps and qualitative conclusions of the circumstances ...
[0046] For example, if a case file A1 is received and it is determined that it belongs to an existing case A, then the file A1 is automatically identified and added to the holographic file of case A. A matching target case template, such as a theft template, already exists in the holographic file of case A. Based on the theft template and using an industry-specific large model, the behavioral facts in the case file A1 are extracted. The theft template is then filled with entities using the extracted behavioral facts to obtain the theft graph for case A. The extracted behavioral facts are then matched to the circumstances identification rules (such as voluntary surrender, mitigating circumstances for theft, and aggravating circumstances for theft) to provide a qualitative conclusion on the circumstances. Analyze which elements of theft are supported by the qualitative conclusion of the circumstances, and determine whether theft is established based on these elements. If all elements are supported, the case A is concluded to be theft. If not, the possible causes of action, such as robbery, are analyzed based on these elements. A robbery template is matched, and behavioral facts from the A1 case file are extracted based on the theft template and an industry-specific large model. The extracted behavioral facts are used to fill in the robbery template to obtain the robbery graph of Case A. Based on the extracted behavioral facts, the circumstances of the circumstances identification rules (such as surrender, mitigating circumstances for robbery, aggravating circumstances for robbery, etc.) are adapted to give a qualitative conclusion of the circumstances identification. The two target case graphs and the qualitative conclusions of the circumstances identification are then presented to the case handlers, allowing them to determine whether Case A is theft or robbery.
[0047] like Figure 2 As shown, this embodiment also provides a system for assisting case handling throughout the process driven by a large language model, which includes a case file judgment module 1, a first file entry module 2, a second file entry module 3, an extraction and filling module 4, a circumstance identification module 5, a case analysis module 6, a storage module 7 and a display module 8.
[0048] The case file judgment module 1 is used to receive a case file material and judge whether the case file material belongs to an existing case. If the answer is yes, the first file entry module 2 is called; if not, the second file entry module 3 is called.
[0049] The first filing module 2 is used to automatically identify the case file materials and file them into the holographic file of the corresponding target case. The holographic file already has a matched target case template, and calls the extraction and filling module 4.
[0050] The second filing module 3 is used to create a new case as a target case, automatically identify the case file materials and file them into the holographic archive of this target case, match the corresponding case template from the case template library as the target case template according to the case type of the target case, and call the extraction and filling module 4.
[0051] The extraction and filling module 4 is used to extract behavioral facts in the case file materials based on the target case template and using the industry-specific large model, and use the extracted behavioral facts to fill the target case template with entities. The target case template is constructed using the knowledge graph principle; the industry-specific large model is a large language model obtained by fine-tuning and reinforcement learning based on the model base and using industry-specific task design and related data sets.
[0052] The case file material is a written document, and the extraction and filling module 4 includes a type judgment unit, a first extraction and filling unit, and a second extraction and filling unit.
[0053] The type determination unit is used to determine whether the document material is a formatted document or an unformatted document. If it is a formatted document, the first extraction and filling unit is called; if it is an unformatted document, the second extraction and filling unit is called.
[0054] The first extraction and filling unit is used to first use a preset regular expression and a pre-trained BERT model to extract the standard content in the formatted document, extract the entity information therefrom and fill it into the corresponding nodes in the target case template, and then use the industry-specific large model to extract the non-standard content in the formatted document, extract the entity information therefrom and fill it into the corresponding nodes in the target case template. During the extraction process using the industry-specific large model, the extraction is performed layer by layer according to the node breadth-first strategy in the target case template.
[0055] The second extraction and filling unit is used to directly use the industry-specific large model to extract the standard content and non-standard content in the non-formatted document, extract the entity information therefrom and fill it into the corresponding node in the target case template, and use the industry-specific large model to extract layer by layer according to the node breadth-first strategy in the target case template during the extraction process.
[0056] Among them, behavioral facts written according to certain standards constitute standard content, and behavioral facts not written according to certain standards constitute non-standard content.
[0057] Moreover, before the quality of the BERT model reaches the preset requirements, a preset regular expression is used to extract the standard content in the formatted document. The data extracted by the regular expression is accumulated as a data sample set for training the BERT model. After the quality of the BERT model reaches the preset requirements after sample training, the trained BERT model is used to extract the standard content in the formatted document.
[0058] The scenario identification module 5 is used to adapt the scenario identification rule conditions according to the extracted behavioral facts and give a qualitative conclusion on the scenario identification.
[0059] The case analysis module 6 is used to analyze the elements of the target case supported by the qualitative conclusion of the circumstances determination according to the qualitative conclusion of the circumstances determination, and to give a case conclusion based on the elements of the target case supported by the qualitative conclusion of the circumstances determination.
[0060] The storage module 7 is used to store the target case map, the qualitative conclusion of the circumstances and the case conclusion formed after the entity filling into the holographic file of the target case.
[0061] The case analysis module 6 is used to analyze which elements of the target case are supported by the qualitative conclusion of the circumstance identification, and determine whether the target case is established based on the supported elements. When it is completely established, a case conclusion that the target case is established is given. When it is not completely established, possible cases are analyzed based on the supported elements, and the possible case is used as a new target case. The case template corresponding to the new target case is used as a new target case template, and the extraction and filling module 4 and the circumstance identification module 5 are called, and then the display module 8 is called to display the two target case maps and the qualitative conclusions of the circumstance identification to the case handlers, so that the case handlers can determine whether the target case is established or the new target case is established.
[0062] Although specific embodiments of the present invention have been described above, those skilled in the art will appreciate that these are merely illustrative and that the scope of the present invention is defined by the appended claims. Those skilled in the art may make various changes or modifications to these embodiments without departing from the principles and essence of the present invention, and such changes and modifications are intended to fall within the scope of the present invention.
Claims
1. A method for assisting case handling throughout the process driven by a large language model. It is characterized in that It includes the following steps: S1, receiving a case file, determining whether the case file belongs to an existing case, if yes, proceeding to step S2, if no, proceeding to step S3; S2, automatically identifying and filing the case file into the corresponding holographic file of the target case, and the holographic file already contains the matched target case template, and proceeding to step S4; S3, create a new case as the target case, automatically identify the case file materials and file them into the holographic file of the target case, match the corresponding case template from the case template library according to the case type of the target case as the target case template, and proceed to step S4; S4. Extract the behavioral facts in the case file materials based on the target case template and using the industry-specific big model, and use the extracted behavioral facts to fill in the target case template with entities. The target case template is constructed using the knowledge graph principle; Industry-specific large models are large language models that are fine-tuned and reinforced through learning based on the model base using industry-specific task designs and related datasets. S5. Adapt the rules and conditions for the circumstances identification according to the extracted behavioral facts and give a qualitative conclusion on the circumstances identification; S6. Analyze the elements of the target case supported by the qualitative conclusion of the circumstances identification according to the qualitative conclusion of the circumstances identification, and give the case conclusion based on the elements of the target case supported by the qualitative conclusion of the circumstances identification; S7. Store the target case map, qualitative conclusion of the circumstances and case conclusion formed after entity filling into the holographic file of the target case.
2. The method for assisting case handling in the whole process driven by a large language model as claimed in claim 1, It is characterized in that In step S6, the circumstances are analyzed to determine which elements of the target case are supported by the qualitative conclusion, and whether the target case is established is determined based on the supported elements. If it is fully established, a case conclusion that the target case is established is given; if it is not fully established, a case conclusion that the target case is not fully established is given.
3. The method for assisting case handling throughout the process driven by a large language model as claimed in claim 2, It is characterized in that If it is not fully established, then analyze the possible causes of action based on the supporting elements, take the possible cause of action as a new target cause of action, and use the cause of action template corresponding to the new target cause of action as a new target cause of action template, execute steps S4-S5, and then display the target case maps and qualitative conclusions of the circumstances identification before and after to the case handlers, so that they can determine whether the target cause of action is established or the new target cause of action is established.
4. The method for assisting case handling throughout the process driven by a large language model as claimed in claim 1, It is characterized in that The case file material is a document material, and step S4 includes the following steps: S41, determining whether the document material is a formatted document or an unformatted document, if it is a formatted document, proceeding to step S42, if it is an unformatted document, proceeding to step S43; S42, first use a pre-set regular expression and a pre-trained BERT model to extract the standard content in the formatted document, extract entity information from it and fill it into the corresponding node in the target case template, then use the industry-specific large model to extract the non-standard content in the formatted document, extract entity information from it and fill it into the corresponding node in the target case template, and use the industry-specific large model to extract layer by layer according to the node breadth-first strategy in the target case template during the extraction process; S43, directly using the industry-specific big model to extract the standard content and non-standard content in the non-formatted document, extracting entity information from it and filling it into the corresponding node in the target case template, and extracting layer by layer according to the node breadth-first strategy in the target case template during the extraction process using the industry-specific big model; Among them, behavioral facts written according to certain standards constitute standard content, and behavioral facts not written according to certain standards constitute non-standard content.
5. The method for assisting case handling throughout the process driven by a large language model as claimed in claim 4, It is characterized in that Before the quality of the BERT model reaches the preset requirements, a preset regular expression is used to extract the standard content in the formatted document. The data extracted by the regular expression is accumulated as a data sample set for training the BERT model. After the quality of the BERT model reaches the preset requirements after sample training, the trained BERT model is used to extract the standard content in the formatted document.
6. A system that assists in handling cases throughout the process driven by a large language model. It is characterized in that It includes a case file judgment module, a first file entry module, a second file entry module, an extraction and filling module, a plot identification module, a case analysis module and a storage module; The case file judgment module is used to receive a case file material, judge whether the case file material belongs to an existing case, and call the first file entry module if the answer is yes, and call the second file entry module if the answer is no; The first file entry module is used to automatically identify and file the case file material into the holographic file of the corresponding target case, and the holographic file already has a matched target case template, and calls the extraction and filling module; The second filing module is used to create a new case as a target case, automatically identify and file the case materials into the holographic archive of the target case, match the corresponding case template from the case template library as the target case template according to the case type of the target case, and call the extraction and filling module; The extraction and filling module is used to extract behavioral facts in the case file materials according to the target case template and using the industry-specific large model, and use the extracted behavioral facts to fill the target case template with entities. The target case template is constructed using the knowledge graph principle; Industry-specific large models are large language models that are fine-tuned and reinforced through learning based on the model base using industry-specific task designs and related datasets. The scenario identification module is used to adapt the scenario identification rule conditions according to the extracted behavior facts and give a qualitative conclusion on the scenario identification; The case analysis module is used to analyze the elements of the target case supported by the qualitative conclusion of the situation identification according to the qualitative conclusion of the situation identification, and give a case conclusion based on the elements of the target case supported by the qualitative conclusion of the situation identification; The storage module is used to store the target case map, the qualitative conclusion of the circumstances identification and the case conclusion formed after the entity filling into the holographic file of the target case.
7. The system for assisting case handling in the whole process driven by a large language model as claimed in claim 6, It is characterized in that The case analysis module is used to analyze which elements of the target case are supported by the qualitative conclusion of the circumstances determination, and determine whether the target case is established based on the supported elements. If it is fully established, a case conclusion that the target case is established is given; if it is not fully established, a case conclusion that the target case is not fully established is given.
8. The system for assisting case handling in the whole process driven by a large language model as claimed in claim 7, It is characterized in that The system also includes a display module, which analyzes possible causes of action based on the supporting elements when they are not fully established, takes the possible cause of action as a new target cause of action, and uses the cause of action template corresponding to the new target cause of action as a new target cause of action template, calls the extraction and filling module and the circumstance identification module, and then calls the display module to display the two target case maps and qualitative conclusions of the circumstance identification to the case handlers, so that the case handlers can determine whether the target cause of action is established or the new target cause of action is established.
9. The system for assisting case handling in the whole process driven by a large language model as claimed in claim 6, It is characterized in that The case file material is a document material, and the extraction and filling module includes a type judgment unit, a first extraction and filling unit, and a second extraction and filling unit; The type determination unit is used to determine whether the document material is a formatted document or an unformatted document, and if it is a formatted document, the first extraction and filling unit is called, and if it is an unformatted document, the second extraction and filling unit is called; The first extraction and filling unit is used to first extract the standard content in the formatted document using a preset regular expression and a pre-trained BERT model, extract entity information therefrom and fill it into the corresponding node in the target case template, and then use the industry-specific large model to extract the non-standard content in the formatted document, extract entity information therefrom and fill it into the corresponding node in the target case template, and extract layer by layer according to the node breadth-first strategy in the target case template during the extraction process using the industry-specific large model; The second extraction and filling unit is used to directly use the industry-specific large model to extract the standard content and non-standard content in the non-formatted document, extract entity information from it and fill it into the corresponding node in the target case template, and extract layer by layer according to the node breadth-first strategy in the target case template during the extraction process using the industry-specific large model; Among them, behavioral facts written according to certain standards constitute standard content, and behavioral facts not written according to certain standards constitute non-standard content.
10. The system for assisting case handling in the whole process driven by a large language model as claimed in claim 9, It is characterized in that Before the quality of the BERT model reaches the preset requirements, a preset regular expression is used to extract the standard content in the formatted document. The data extracted by the regular expression is accumulated as a data sample set for training the BERT model. After the quality of the BERT model reaches the preset requirements after sample training, the trained BERT model is used to extract the standard content in the formatted document.
Citation Information
Patent Citations
Crime conviction prediction method, system, storage medium and server
CN109376230A
Element extraction method and device, electronic equipment and storage medium
CN111597803A
Behavior map creating and generating method and system
CN117273129A
Individual case graph creating and generating method and system
CN117540799A
Dynamic holographic case management system
CN117763156A
Cited By
Library updating, question answering and resource sharing method and device based on large model, and information display method and device
CN119149790A
Large model-based library updating, question answering, resource sharing method, information display method and device
CN119149790B
