Multi-angle civil case judgment prediction method
By establishing a legal knowledge base and using long short-term memory network and joint attention network, the judge's decision-making process is simulated, which solves the shortcomings of judgment prediction for multiple civil causes of cases in the existing technology and improves the accuracy and multi-angle information of judgment prediction. use.
Patent Information
- Application Number
- CN202111079627.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-15
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2041-09-15
AI Technical Summary
Existing methods for predicting judgments in civil cases mainly start from the perspective of the judge and ignore the perspectives of the plaintiff and defendant. It is difficult to uniformly model multiple civil cases and predict the judgment results. Moreover, existing methods have problems in capturing the complex interactions of cases. insufficient.
By acquiring training data sets of claims, arguments, facts, appeals and judgment results, a legal knowledge base is established, and the long-short-term memory network and joint attention network are used to convert case information into low-dimensional semantic expressions, and proceed from multiple perspectives. Judgment prediction simulates the judgment process of human judges and extracts relevant legal knowledge for judgment prediction.
It improves the accuracy of judgment prediction in civil cases and can better utilize case facts, plaintiff’s claims and defendant’s arguments from multiple angles, and is suitable for judgment prediction on various civil cases.
Smart Images

Figure CN113836262B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of machine learning and intelligent justice based on legal text analysis, and in particular, to a multi-angle civil case judgment prediction method. Background Art
[0002] Legal judgment prediction aims to automatically predict the judgment results based on case materials. It is the basic technology for building a smart court system. In-depth research on this technology can not only improve the work efficiency of legal practitioners, but also provide fast and high-quality legal guidance and assistance to people who lack legal knowledge.
[0003] At present, there are mainly two types of legal judgment prediction:
[0004] 1) Judgment prediction based on criminal cases:
[0005] Judgment prediction for criminal cases is mainly divided into single-task prediction and multi-task prediction. The single-task prediction method models the relationship between case facts and legal knowledge, combines relevant legal knowledge such as crime attributes and legal article semantics with the case fact description, and predicts the three subtasks of crime, legal article, and sentence respectively. However, this method ignores the topological relationship between the three subtasks. After considering the topological relationship between the subtasks, some studies use multi-task learning models to jointly model the three subtasks, improving the relevance and interpretability between tasks.
[0006] 2) Judgment prediction based on civil cases:
[0007] The judgment prediction of civil cases mainly makes a judgment to allow or reject the plaintiff's claim. In order to better predict the judgment of civil cases and capture the complex interaction between complementary case materials, some works formalize the judgment prediction as a legal reading comprehension problem. Following the working standards of people's judges, the complex semantic interaction between facts, claims and legal provisions is captured to predict the final judgment of the plaintiff's claim in divorce disputes. In addition to divorce disputes, some studies have used multi-perspective information such as past behavior information of buyers and sellers and text evidence of current transactions in e-commerce disputes. This multi-perspective dispute representation is integrated into an innovative multi-task learning framework to predict legal outcomes.
[0008] However, the above judgment prediction methods based on civil cases mainly model a specific cause of action, while ignoring the modeling research of various causes of action in reality. In the actual trial process, there are more than 400 causes of action, such as divorce disputes and private loan disputes. The nature of cases and trials of different causes of action vary greatly. In addition, the current work mainly studies the judgment prediction of civil cases based on the description of case facts from the perspective of judges, but ignores the study of the overall case from the perspective of plaintiffs and defendants. Therefore, using the existing methods, it is difficult to uniformly model multiple civil causes of action and predict the corresponding judgment results. Summary of the invention
[0009] The purpose of the present invention is to provide a multi-angle civil case judgment prediction method, which starts from multiple angles, makes full use of the case facts and the information between the plaintiff's claims and the defendant's defense, and uses legal knowledge to predict the judgment of the plaintiff's claims, thereby greatly improving the accuracy of the prediction results.
[0010] In order to achieve the above-mentioned object, the present invention provides a multi-angle civil case judgment prediction method, which comprises:
[0011] Step 1: Obtain a training data set of claims, defenses, facts, demands, and judgment results;
[0012] Step 2: Establish a legal knowledge base and search for G pieces of legal knowledge from it based on the plaintiff's claim and the defendant's defense;
[0013] Step 3: Calculate the cosine similarity between the G pieces of legal knowledge obtained in step 2 and the case facts and extract the first k pieces of legal knowledge;
[0014] Step 4: Obtain respective vector representations of the claims, defenses, case facts, demands, and legal knowledge through the long short-term memory network, so as to convert the case claims, defenses, facts, demands, and legal knowledge into low-dimensional semantic expressions;
[0015] Step 5: Connect the claim and defense to the fact vector respectively, and then use the joint attention network to obtain the claim & fact and defense & fact vector representations respectively.
[0016] Step 6: Combine the k legal knowledge vectors with the facts through a joint attention network to obtain knowledge & fact vector representation;
[0017] Step 7: Predict the judgment of the plaintiff's claim based on the vector representation of claim & facts, defense & facts, and knowledge & facts.
[0018] Preferably, in step 1, the plaintiff claims The defendant argued Description of the facts of the case Plaintiff's first claim The judgment result based on the first claim is Y={0, 1}.
[0019] Preferably, step 2 includes constructing a legal knowledge base based on the interpretation and application points of the corresponding case causes, and the legal knowledge base contains relevant legal knowledge of each case cause; using the plaintiff's claims and the defendant's defense to search the knowledge base respectively to obtain G pieces of legal knowledge.
[0020] Preferably, in step 3, the word sequence of the i-th legal knowledge is represented as The word sequence of case facts is represented as Each word is mapped to a low-dimensional dense vector space to obtain the corresponding word embedding sequence
[0021] Calculate the cosine similarity between each piece of legal knowledge and the case facts, and take the first k pieces of legal knowledge with the highest cosine similarity to form the legal knowledge set D = {d 1 , …, d k}.
[0022] Preferably, step 4 comprises:
[0023] For the claim, first give the word sequence representation of the claim Each word is mapped to a low-dimensional dense vector space to obtain the corresponding word embedding sequence By V c =LSTM(E c ) to obtain a continuous hidden layer vector V c ,in, Furthermore, the hidden layer vectors of arguments, facts, claims, and legal knowledge are subjected to the same operation to obtain V a 、V f 、V p and
[0024] Preferably, in step 5, V c and argue that V a Respect and Facts V f Make a connection to get V cf and V af , the vector obtained after the joint attention network is the claim & fact vector C cf and the argument & fact vector representation C af ; Among them, the claim & fact vector C cf The acquisition process is:
[0025] First, get the affinity matrix L, which contains the affinity scores corresponding to all connection word and request word pairs:
[0026] Standardize the affinity matrix row by row and generate attention weights A for each word in the connected word p , and normalize by column to produce attention weight A for each word in the connection cf :
[0027]
[0028]
[0029] Next, the attention of the connectives of the claim and fact is calculated for each word in the request:
[0030]
[0031] Finally, we get the joint attention claim & fact vector representation of the request, claim, and fact:
[0032]
[0033] The same method is used to obtain the defendant's defense and facts to the common attention of the appeal. The defense & facts vector representation C af .
[0034] Preferably, in step 6, the first k pieces of legal knowledge are combined with the case facts through a common attention network as shown in step 5 to obtain the attention vector representation of the i-th piece of knowledge & fact Connect the vector representations of k pieces of knowledge & facts to obtain the vector representation C of knowledge & facts Df .
[0035] Preferably, step 7 includes converting the claims & facts C obtained in steps 5 and 6 into cf , Claims & Facts C af , vector representation of knowledge & facts C Df Concatenate to obtain C; obtain the final vector representation c through average pooling and define a softmax-based affine transformation to predict the final decision result:
[0036] P = softmax(w o c+b o ).
[0037] According to the above technical scheme, the present invention sequentially obtains training data sets of claims, defenses, facts, demands, and judgment results; establishes a legal knowledge base and searches for G legal knowledge from the CPC according to the plaintiff's claims and the defendant's defenses; calculates the cosine similarity of the G legal knowledge with the case facts and extracts the first k legal knowledge; obtains their respective vector representations of the claims, defenses, case facts, demands, and legal knowledge through long-term and short-term memory networks; connects the claims and defenses with the fact vectors respectively, and then obtains the claims & facts and the defense & facts vector representations through the common attention network with the demands respectively; obtains the knowledge & facts vector representations through the common attention network with the k legal knowledge vectors and the facts respectively; and predicts the judgment of the plaintiff's demands according to the vector representations of claims & facts, defense & facts, and knowledge & facts. It can be seen that by simulating the judgment process of human judges, relevant legal knowledge is extracted from the external knowledge base according to the information of the plaintiff and defendant and the facts of the case. From multiple perspectives, the information between the facts of the case and the plaintiff's claims and the defendant's defenses is fully utilized, and the legal knowledge is used to predict the judgment of the plaintiff's demands. Compared with the existing technology, the accuracy of the prediction results is greatly improved.
[0038] Other features and advantages of the present invention will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present invention but do not constitute a limitation of the present invention. In the accompanying drawings:
[0040] Figure 1 It is a flow chart of a multi-angle civil case judgment prediction method provided by the present invention;
[0041] Figure 2 It is a framework diagram of a multi-angle civil case judgment prediction method provided by the present invention. DETAILED DESCRIPTION
[0042] The specific implementation of the present invention is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the present invention, and is not used to limit the present invention.
[0043] See also Figure 1 and Figure 2 The present invention provides a multi-angle civil case judgment prediction method, which comprises:
[0044] Step 1: Obtain a training data set of claims, defenses, facts, demands, and judgment results;
[0045] Step 2: Establish a legal knowledge base and search for G pieces of legal knowledge from it based on the plaintiff's claim and the defendant's defense;
[0046] Step 3: Calculate the cosine similarity between the G pieces of legal knowledge obtained in step 2 and the case facts and extract the first k pieces of legal knowledge;
[0047] Step 4: Obtain respective vector representations of the claims, defenses, case facts, demands, and legal knowledge through the long short-term memory network, so as to convert the case claims, defenses, facts, demands, and legal knowledge into low-dimensional semantic expressions;
[0048] Step 5: Connect the claim and defense to the fact vector respectively, and then use the joint attention network to obtain the claim & fact and defense & fact vector representations respectively.
[0049] Step 6: Combine the k legal knowledge vectors with the facts through a joint attention network to obtain knowledge & fact vector representation;
[0050] Step 7: Predict the judgment of the plaintiff's claim based on the vector representation of claim & facts, defense & facts, and knowledge & facts.
[0051] In step 1, the plaintiff claims The defendant argued Description of the facts of the case Plaintiff's first claim The judgment result based on the first claim is Y={0, 1}.
[0052] In step 2, the purpose of building a knowledge base is to better predict civil cases with different causes. The "Civil Case Causes Provisions" stipulates more than 400 causes, which means that there are more than 400 civil cases in actual trials. The "Guidelines for the Application of Causes and Claims in Civil Cases of the Supreme People's Court" stipulates the interpretation and application points of the corresponding causes. Based on this, a legal knowledge base is constructed, and the legal knowledge in the knowledge base includes the relevant legal knowledge of each cause. According to the logic of the judge in handling the case, the knowledge base should be searched separately using the plaintiff's claims and the defendant's defense, and a total of G legal knowledge should be searched.
[0053] In step 3, in order to better rearrange the legal knowledge and better match it with the case, given each legal knowledge and case fact word sequence representation Each word is mapped to a low-dimensional dense vector space to obtain the corresponding word embedding sequence
[0054] Calculate the cosine similarity between each piece of legal knowledge and the case facts, and take the first k pieces of legal knowledge with the highest cosine similarity to form the legal knowledge set D = {d1 , …, d k}.
[0055] The purpose of step 4 is to convert the case's claims, defenses, facts, demands, and legal knowledge into low-dimensional semantic expressions through the long short-term memory network.
[0056] For the claim, first give the word sequence representation of the claim Each word is mapped to a low-dimensional dense vector space to obtain the corresponding word embedding sequence By V c =LSTM(E c ) to obtain a continuous hidden layer vector V c ,in, Furthermore, the hidden layer vectors of arguments, facts, claims, and legal knowledge are subjected to the same operation to obtain V a 、V f 、V p and
[0057] During the trial, the judge needs to include all the elements in the determination of the facts of the case. c and argue that V a Respect and Facts V f Make a connection to get V cf and V af The adjudication of the claim can be viewed as a question-and-answer problem, where the claim of the plaintiff is equivalent to the question and the connected vector is equivalent to the text. The claim and the two connected vectors are respectively passed through the joint attention network to capture the answer to the question, such as grant or reject. The vector obtained after passing through the joint attention network is the claim & fact vector C cf and the argument & fact vector representation C af . With the claim & fact vector C cf Take the acquisition of as an example, the acquisition process is as follows:
[0058] First, get the affinity matrix L, which contains the affinity scores corresponding to all connection word and request word pairs:
[0059] Standardize the affinity matrix row by row and generate attention weights A for each word in the connected word p , and normalize by column to produce attention weight A for each word in the connection cf :
[0060]
[0061]
[0062] Next, the attention of the connectives of the claim and fact is calculated for each word in the request:
[0063]
[0064] Finally, we get the joint attention claim & fact vector representation of the request, claim, and fact:
[0065]
[0066] Similarly, V af and V p As above, we can obtain the defendant's defense and facts' common attention to the claim. The defense & fact vector representation C af .
[0067] In the trial process of the judge, legal knowledge is one of the indispensable elements of the trial process. In step 3, we obtained k pieces of legal knowledge, which correspond to the relevant causes of different cases. In order to better combine legal knowledge with case facts. The first k pieces of legal knowledge are respectively combined with the case facts through the joint attention network as shown in step 5 to obtain the attention vector representation of the i-th piece of knowledge & fact Connect the vector representations of k pieces of knowledge & facts to obtain the vector representation C of knowledge & facts Df .
[0068] Step 7 includes converting the claims & facts obtained in steps 5 and 6 into cf , Claims & Facts C af , vector representation of knowledge & facts C Df Concatenate to obtain C; obtain the final vector representation c through average pooling and define a softmax-based affine transformation to predict the final decision result:
[0069] P = softmax(w o c+b o ).
[0070] Through the above technical scheme, the training data sets of claims, defenses, facts, demands, and judgment results are obtained in turn; a legal knowledge base is established and G legal knowledge is searched from the CPC according to the plaintiff's claims and the defendant's defenses; the cosine similarity of the G legal knowledge and the case facts is calculated and the first k legal knowledge is extracted; the claims, defenses, case facts, demands, and legal knowledge are respectively obtained through the long short-term memory network to obtain their respective vector representations; the claims and defenses are respectively connected to the fact vectors, and then they are respectively connected to the demands through the joint attention network to obtain the claims & facts and the defense & facts vector representations; the k legal knowledge vectors are respectively connected to the facts through the joint attention network to obtain the knowledge & facts vector representation; the plaintiff's demands are predicted according to the vector representations of claims & facts, defense & facts, and knowledge & facts. It can be seen that by simulating the judgment process of human judges, relevant legal knowledge is extracted from the external knowledge base according to the information of the plaintiff, the defendant, and the facts of the case. From multiple perspectives, the information between the facts of the case and the plaintiff's claims and the defendant's defenses is fully utilized, and the legal knowledge is used to predict the judgment of the plaintiff's demands. Compared with the existing technology, the accuracy of the prediction results is greatly improved.
[0071] The preferred embodiments of the present invention are described in detail above in conjunction with the accompanying drawings. However, the present invention is not limited to the specific details in the above embodiments. Within the technical concept of the present invention, a variety of simple modifications can be made to the technical solution of the present invention, and these simple modifications all belong to the protection scope of the present invention.
[0072] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present invention will not further describe various possible combinations.
[0073] In addition, various embodiments of the present invention may be arbitrarily combined, and as long as they do not violate the concept of the present invention, they should also be regarded as the contents disclosed by the present invention.
Claims
1. A multi-angle civil case judgment prediction method, characterized in that: The multi-angle civil case judgment prediction method includes: Step 1: Obtain a training data set of claims, defenses, facts, demands, and judgment results; Step 2: Establish a legal knowledge base and search for G pieces of legal knowledge from it based on the plaintiff's claim and the defendant's defense; Step 3: Calculate the cosine similarity between the G pieces of legal knowledge obtained in step 2 and the case facts and extract the first k pieces of legal knowledge; Step 4: Obtain respective vector representations of the claims, defenses, case facts, demands, and legal knowledge through the long short-term memory network, so as to convert the case claims, defenses, facts, demands, and legal knowledge into low-dimensional semantic expressions; Step 5: Connect the claim and defense to the fact vector respectively, and then use the joint attention network to obtain the claim & fact and defense & fact vector representations respectively. Step 6: Combine the k legal knowledge vectors with the facts through a joint attention network to obtain knowledge & fact vector representation; Step 7: Predict the judgment of the plaintiff's claim based on the vector representation of claim & facts, defense & facts, and knowledge & facts; Step 4 includes: For the claim, first give the word sequence representation of the claim Each word is mapped to a low-dimensional dense vector space to obtain the corresponding word embedding sequence By V c =LSTM(E c ) to obtain a continuous hidden layer vector V c ,in, Furthermore, the hidden layer vectors of arguments, facts, claims, and legal knowledge are operated in the same way to obtain V a 、V f 、V p and In step 5, V c and argue that V a Respect and Facts V f Make the connection to get V cf and V af , the vector obtained after the joint attention network is the claim & fact vector C cf and the argument & fact vector representation C af ; Among them, the claim & fact vector C cf The acquisition process is: First, get the affinity matrix L, which contains the affinity scores corresponding to all connection word and request word pairs: Standardize the affinity matrix row by row and generate attention weights A for each word in the connected word p , and normalize by column to produce attention weight A for each word in the connection cf : Next, the attention of the connectives of the claim and fact is calculated for each word in the request: Finally, we get the joint attention claim & fact vector representation of the request, claim, and fact: The same method is used to obtain the defendant's defense and facts to the common attention of the appeal. The defense & facts vector representation C af .
2. The multi-angle civil case judgment prediction method according to claim 1 is characterized in that: In step 1, the plaintiff claims The defendant argued Description of the facts of the case Plaintiff's first claim The judgment result based on the first claim is Y={0,1}.
3. The multi-angle civil case judgment prediction method according to claim 1 is characterized in that: Step 2 includes constructing a legal knowledge base based on the interpretation and application points of the corresponding case causes, and the legal knowledge base contains relevant legal knowledge of each case cause; using the plaintiff's claims and the defendant's defenses to search the knowledge base respectively, G legal knowledge is obtained.
4. The multi-angle civil case judgment prediction method according to claim 1 is characterized in that: In step 3, the word sequence of the i-th legal knowledge is represented as The word sequence of case facts is represented as Each word is mapped to a low-dimensional dense vector space to obtain the corresponding word embedding sequence Calculate the cosine similarity between each piece of legal knowledge and the case facts, and take the first k pieces of legal knowledge with the highest cosine similarity to form the legal knowledge set D = {d1,…, k }.
5. The multi-angle civil case judgment prediction method according to claim 1 is characterized in that: In step 6, the first k pieces of legal knowledge are combined with the case facts through a joint attention network as shown in step 5 to obtain the attention vector representation of the i-th piece of knowledge & fact Connect the vector representations of k pieces of knowledge & facts to obtain the vector representation C of knowledge & facts Df .
6. The multi-angle civil case judgment prediction method according to claim 1 is characterized in that: Step 7 includes converting the claims & facts obtained in steps 5 and 6 into cf , Claims & Facts C af , vector representation of knowledge & facts C Df Concatenate to obtain C; obtain the final vector representation c through average pooling and define a softmax-based affine transformation to predict the final decision result: P=softmax(w o c+b o )。
Citation Information
Patent Citations
Criminal case judging result measurement method and system
CN107918921A
Legal provision recommendation method based on joint deep learning model
CN110750635A
