Processing method and device for analyzing evidence relevance based on prediction model

By building a multi-classification prediction model and big data processing, the quality and efficiency problems caused by manual methods in evidence correlation analysis are solved, and the stability and efficiency of automatic evidence correlation analysis are achieved.

CN118535612AInactive Publication Date: 2024-08-23深圳市万商天勤实业有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410369983.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-29
Publication Date
2024-08-23
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the existing technology, evidence correlation analysis mainly relies on manual methods, resulting in analysis quality and efficiency varying from person to person, making it difficult to ensure stability and improve efficiency.

Method used

Build a multi-classification prediction model, formulate input vector encoding rules through big data processing and model training, use the random selection of legal experts and the median scoring mechanism to reduce label data errors, improve label data accuracy, and achieve automatic analysis.

Benefits of technology

Big data model training ensures the stability of analysis quality, improves analysis efficiency, and achieves high efficiency in automatic analysis of evidence correlation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535612A
    Figure CN118535612A
Patent Text Reader

Abstract

The embodiment of the invention relates to a processing method and device for analyzing evidence relevance based on a prediction model. The method comprises the following steps: constructing an evidence relevance level prediction model; formulating a model input vector coding rule corresponding to the evidence association level prediction model; performing big data collection on historical cases of all courts in the designated area, and constructing a model data set based on a model input vector coding rule and all collected historical cases; performing model training on the evidence association level prediction model based on the model data set; and after model training is finished, performing predictive analysis on complaint evidence relevance of any new case in a specified area based on an evidence relevance level prediction model to obtain a corresponding prediction level. According to the invention, the stability of analysis quality can be guaranteed, and the analysis efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a processing method and device for analyzing evidence relevance based on a prediction model. Background Art

[0002] When the plaintiff collects evidence for a case, it needs to analyze the correlation between the collected evidence and the litigation request. Currently, this evidence correlation analysis activity is mainly completed manually. Due to the differences in human factors, the analysis quality and efficiency of this manual analysis method will vary from person to person. In other words, it is difficult to ensure the stability of the analysis quality and effectively improve the analysis efficiency if the evidence correlation analysis task is handled manually. Summary of the invention

[0003] The purpose of the present invention is to provide a processing method, device, electronic device and computer-readable storage medium for analyzing the relevance of evidence based on a prediction model in view of the defects of the prior art. The present invention pre-constructs an evidence relevance level prediction model for predicting the relevance level of the plaintiff's evidence and the litigation request based on a multi-classification prediction model structure; and formulates corresponding model input vector encoding rules based on the input feature vector structure of the prediction model; and constructs a corresponding model data set through a big data processing method, and in the process of constructing the data set, reduces the annotation error of the label data and improves the accuracy of the label data through a random selection mechanism for legal experts and a median scoring mechanism for cases; and trains the prediction model based on the model data set; after the model training is completed, the prediction model can be used to predict and analyze the relevance of the plaintiff's evidence in a new case to obtain the corresponding prediction level. Through the big data model training of the present invention, the stability of the model analysis quality can be effectively guaranteed; through the automatic analysis method based on the prediction model of the present invention, the analysis efficiency can be effectively improved.

[0004] To achieve the above-mentioned purpose, a first aspect of an embodiment of the present invention provides a processing method for analyzing evidence relevance based on a prediction model, the method comprising:

[0005] Construct a prediction model for the level of evidence association;

[0006] Formulate a model input vector encoding rule corresponding to the evidence association level prediction model;

[0007] Collecting big data of historical cases of all courts in the designated area and constructing a model data set based on the model input vector encoding rules and all the collected historical cases;

[0008] Performing model training on the evidence association level prediction model based on the model data set;

[0009] After the model training is completed, the evidence relevance of any new case in the specified area is predicted and analyzed based on the evidence relevance level prediction model to obtain the corresponding prediction level.

[0010] Preferably, the evidence relevance level prediction model is a multi-classification prediction model; the model input of the evidence relevance level prediction model is an input feature vector, and the model output is a classification prediction vector; the evidence relevance level prediction model is used to predict the evidence relevance level according to the input feature vector and output the corresponding classification prediction vector; the input feature vector is composed of a court feature code, a litigation request code vector and an evidence code vector; the classification prediction vector is composed of a plurality of classification prediction probabilities, each of which corresponds to an evidence relevance level;

[0011] The model input vector encoding rules include court feature encoding rules, litigation request encoding rules and evidence encoding rules;

[0012] The court characteristic coding rule configures a unique court code for each court in the designated area in the manner of regional administrative level code + court administrative level code;

[0013] The litigation request coding rule configures a unique litigation request type code for each litigation request type based on a preset litigation request type set;

[0014] The evidence coding rule configures a unique evidence type code for each type of evidence based on a preset full set of evidence types;

[0015] The model data set includes multiple first data records; the first data record includes a first training vector and a first label level vector; the first training vector is spliced ​​by a first court feature code, a first litigation request code vector and a first evidence code vector; the first litigation request code vector is composed of one or more first litigation request type codes; the first evidence code vector is composed of one or more first evidence type codes; the first label level vector is composed of multiple first classification prediction probabilities; only one of the first classification prediction probabilities in the first label level vector is 1, and all other first classification prediction probabilities are 0.

[0016] Preferably, the collecting of big data of historical cases of all courts in the designated area and constructing a model data set based on the model input vector encoding rules and all collected historical cases specifically includes:

[0017] Data collection is performed on case information of all historical cases in all courts in the designated area within the most recent designated period of time to form a corresponding historical case set; the historical case set includes multiple first historical cases; the first historical case includes a first case court, a first case litigation request set, a first case plaintiff evidence set and a first case judgment content; the first case litigation request set is composed of one or more first litigation request items; the first case evidence set is composed of one or more first evidence items; the first case judgment content is composed of a first judgment analysis and a first judgment result;

[0018] and using the court code configured for the first case court of each of the first historical cases in the court feature coding rule as the corresponding first court feature code;

[0019] and performing litigation request type identification on each of the first litigation request items of each of the first historical cases to obtain a corresponding first litigation request type; and using the litigation request type code configured for each of the first litigation request types in the litigation request coding rule as the corresponding first litigation request type code; and forming a corresponding first litigation request coding vector from all of the first litigation request type codes corresponding to each of the first historical cases;

[0020] and performing evidence type identification on each of the first evidence items of each of the first historical cases to obtain a corresponding first evidence type; and using the evidence type code configured for each of the first evidence types in the evidence coding rule as the corresponding first evidence type code; and forming a corresponding first evidence coding vector from all of the first evidence type codes corresponding to each of the first historical cases;

[0021] and assigning a corresponding first label level vector to each of the first historical cases, and initializing all the first classification prediction probabilities of each of the first label level vectors to 0; and scoring each of the first historical cases by evidence relevance to obtain a corresponding first case scoring level; and resetting the first classification prediction probability corresponding to the first case scoring level corresponding to the current first historical case to 1 in the first label level vector corresponding to each of the first historical cases;

[0022] The first court feature code, the first litigation request code vector, and the first evidence code vector corresponding to each of the first historical cases are concatenated into a corresponding first training vector; and the first training vector and the first label level vector corresponding to each of the first historical cases form a corresponding first data record;

[0023] And all the first data records obtained form the corresponding model data set.

[0024] Furthermore, the step of scoring the evidence relevance level of each of the first historical cases to obtain the corresponding first case scoring level specifically includes:

[0025] According to the designated review batch B, the number of expert groups N and the number of group members M, B batches of first expert sets are selected from the preset legal expert database; B, N and M are integers greater than zero; the legal expert database includes multiple first legal experts; each batch of the first expert sets includes N first expert groups; each first expert group includes M first legal experts; the selection principle of each batch of the first expert sets is the random selection principle, but it is necessary to ensure that the first legal experts in each batch of the first expert sets do not overlap, and the first legal experts in each first expert group in each batch of the first expert sets do not overlap;

[0026] Each of the first expert sets performs an evidence relevance rating on each of the first historical cases in the historical case set to obtain a corresponding first rating level;

[0027] The B first scoring levels corresponding to each of the first historical cases are averaged to obtain the corresponding first average level, and the first scoring level closest to the first average level among the B first scoring levels is used as the corresponding first case scoring level.

[0028] Further preferably, the first expert groups score the first historical cases in the historical case set according to the evidence relevance level to obtain the corresponding first scoring level, specifically including:

[0029] Based on the number N of expert groups, all the first historical cases in the historical case set are randomly divided to obtain corresponding N first historical case subsets; the first historical case subset includes a plurality of the first historical cases; the first historical case subset corresponds one-to-one to the first expert group of the current first expert set;

[0030] Each of the first legal experts of each of the first expert groups scores the evidence relevance level of each of the first historical cases of the corresponding first historical case subset to obtain a corresponding second scoring level; wherein, when scoring the evidence relevance level of each of the first historical cases, each of the first legal experts scores the evidence relevance level of the first case plaintiff's evidence set and the first case litigation request set with reference to the first case judgment content of the current first historical case;

[0031] The M second scoring levels corresponding to each of the first historical cases are averaged to obtain the corresponding second average level, and the second scoring level closest to the second average level among the M second scoring levels is used as the corresponding first scoring level.

[0032] Preferably, the performing model training on the evidence association level prediction model based on the model data set specifically includes:

[0033] Step 61, extracting the first of the first data records in the model data set as the corresponding current data record;

[0034] Step 62, extracting the first training vector and the first label level vector of the current data record as the corresponding current training vector and current label level vector;

[0035] Step 63, inputting the current training vector into the evidence association level prediction model, and the evidence association level prediction model performs evidence association level prediction based on the current training vector and outputs a corresponding current classification prediction vector;

[0036] Step 64, performing loss function calculation according to the current classification prediction vector and the current label level vector based on a preset first loss function to obtain a corresponding first loss value; the first loss function includes L1 and L2 loss functions;

[0037] Step 65, identifying whether the first loss value satisfies a preset first loss value range; if the first loss value satisfies the first loss value range, identifying whether the current data record is the last first data record of the model data set, if so, going to step 66, if not, extracting the next first data record of the model data set as the new current data record and returning to step 62; if the first loss value does not satisfy the first loss value range, using a preset model optimizer to perform an optimization modulation on the model parameters of the evidence association level prediction model in the direction of minimizing the function value of the first loss function, and returning to step 63 at the end of this modulation; the model optimizer includes an SDG optimizer and an Adam optimizer;

[0038] Step 66, stop model training and confirm that model training is completed.

[0039] Preferably, the predictive analysis of the litigation evidence relevance of any new case in the designated area based on the evidence relevance level prediction model to obtain the corresponding prediction level specifically includes:

[0040] receiving case information of any new case in the designated area as a corresponding second case; the second case includes a second case court, a second case litigation request set, and a second case plaintiff evidence set; the second case litigation request set consists of one or more second litigation request items; the second case evidence set consists of one or more second evidence items;

[0041] and using the court code configured for the second case court in the court feature coding rule as the corresponding second court feature code;

[0042] And perform litigation request type identification on each second litigation request item of the second case litigation request set to obtain the corresponding second litigation request type; and use the litigation request type code configured for each second litigation request type in the litigation request coding rule as the corresponding second litigation request type code; and all the obtained second litigation request type codes constitute the corresponding second litigation request coding vector;

[0043] and performing evidence type identification on each of the second evidence items in the second case evidence set to obtain a corresponding second evidence type; and using the evidence type code configured for each of the second evidence types in the evidence coding rule as the corresponding second evidence type code; and forming a corresponding second evidence coding vector from all the obtained second evidence type codes;

[0044] The obtained second court feature code, the second litigation request code vector and the second evidence code vector are concatenated into a corresponding current input feature vector;

[0045] The evidence association level prediction model predicts the evidence association level according to the current input feature vector and outputs a corresponding current classification prediction vector; the current classification prediction vector is composed of a plurality of classification prediction probabilities, each of which corresponds to one evidence association level;

[0046] And the evidence relevance level corresponding to the classification prediction probability with the largest probability value in the current classification prediction vector is used as the corresponding prediction level.

[0047] A second aspect of an embodiment of the present invention provides a device for implementing the processing method of analyzing evidence relevance based on a prediction model as described in the first aspect, the device comprising: a model building module, a coding rule formulation module, a big data processing module, a model training module and a model application module;

[0048] The model building module is used to build an evidence association level prediction model;

[0049] The encoding rule formulation module is used to formulate a model input vector encoding rule corresponding to the evidence association level prediction model;

[0050] The big data processing module is used to collect big data of historical cases of all courts in the specified area and construct a model data set based on the model input vector encoding rules and all collected historical cases;

[0051] The model training module is used to perform model training on the evidence association level prediction model based on the model data set;

[0052] The model application module is used to predict and analyze the relevance of the plaintiff's evidence of any new case in the specified area based on the evidence relevance level prediction model after the model training is completed, and obtain the corresponding prediction level.

[0053] A third aspect of an embodiment of the present invention provides an electronic device, including: a memory, a processor, and a transceiver;

[0054] The processor is used to be coupled to the memory, read and execute instructions in the memory, so as to implement the method steps described in the first aspect above;

[0055] The transceiver is coupled to the processor, and the processor controls the transceiver to send and receive messages.

[0056] A fourth aspect of an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions. When the computer instructions are executed by a computer, the computer executes the instructions of the method described in the first aspect above.

[0057] The embodiment of the present invention provides a processing method, device, electronic device and computer-readable storage medium for analyzing the relevance of evidence based on a prediction model. As can be seen from the above content, the embodiment of the present invention pre-constructs an evidence relevance level prediction model for predicting the relevance level of the plaintiff's evidence and the litigation request based on a multi-classification prediction model structure; and formulates corresponding model input vector encoding rules based on the input feature vector structure of the prediction model; and constructs a corresponding model data set through a big data processing method, and in the process of constructing the data set, reduces the annotation error of the label data and improves the accuracy of the label data through a random selection mechanism for legal experts and a median scoring mechanism for cases; and trains the prediction model based on the model data set; after the model training is completed, the prediction model can be used to predict and analyze the relevance of the plaintiff's evidence in a new case to obtain the corresponding prediction level. The big data model training of the embodiment of the present invention effectively guarantees the stability of the model analysis quality; the automatic analysis method based on the prediction model of the embodiment of the present invention effectively improves the analysis efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] Figure 1 A schematic diagram of a processing method for analyzing evidence relevance based on a prediction model provided in Example 1 of the present invention;

[0059] Figure 2 A module structure diagram of a processing device for analyzing evidence relevance based on a prediction model provided in Embodiment 2 of the present invention;

[0060] Figure 3 A schematic diagram of the structure of an electronic device provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION

[0061] In order to make the purpose, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0062] Embodiment 1 of the present invention provides a processing method for analyzing evidence relevance based on a prediction model, such as Figure 1 A schematic diagram of a processing method for analyzing evidence relevance based on a prediction model provided in the first embodiment of the present invention is shown. The method mainly includes the following steps:

[0063] Step 1, constructing a prediction model for the evidence association level;

[0064] Here, the evidence association level prediction model of the embodiment of the present invention is a multi-classification prediction model; the model input of the evidence association level prediction model is an input feature vector, and the model output is a classification prediction vector; the evidence association level prediction model is used to predict the evidence association level according to the input feature vector and output the corresponding classification prediction vector; the input feature vector is spliced ​​by the court feature code, the litigation request code vector and the evidence code vector; the classification prediction vector is composed of multiple classification prediction probabilities, and each classification prediction probability corresponds to an evidence association level.

[0065] Step 2, formulating the model input vector encoding rules corresponding to the evidence association level prediction model;

[0066] Among them, the model input vector coding rules include court feature coding rules, litigation request coding rules and evidence coding rules; the court feature coding rules configure a unique court code for each court in the designated area according to the regional administrative level code + court administrative level code method; the litigation request coding rules configure a unique litigation request type code for each type of litigation request based on the preset litigation request type set; the evidence coding rules configure a unique evidence type code for each type of evidence based on the preset evidence type set.

[0067] Here, the complete set of litigation request types is an information set of all litigation request types extracted from various laws and regulations applicable in a specified area; the complete set of evidence types is an information set of all evidence types extracted from various laws and regulations applicable in a specified area; the designated area mentioned here and below can be a designated country, a designated province or a designated city, and other regional properties can be set according to actual application needs; in addition, the regional administrative level code and court administrative level code mentioned above are also related to the regional nature of the designated area. For example, when the designated area is a designated country and is China, the coding structure of the corresponding regional administrative level code can be configured as national code + provincial code + city code, and the corresponding court administrative level code can include the Supreme People's Court code, the High People's Court code, the Intermediate People's Court code and the Basic People's Court code.

[0068] Step 3, collect big data of historical cases of all courts in the specified area and build a model data set based on the model input vector encoding rules and all collected historical cases;

[0069] Among them, the model data set includes multiple first data records; the first data record includes a first training vector and a first label level vector; the first training vector is spliced ​​by the first court feature code, the first litigation request code vector and the first evidence code vector; the first litigation request code vector is composed of one or more first litigation request type codes; the first evidence code vector is composed of one or more first evidence type codes; the first label level vector is composed of multiple first classification prediction probabilities; only one first classification prediction probability in the first label level vector is 1, and all other first classification prediction probabilities are 0;

[0070] Specifically, it includes: step 31, collecting data on case information of all historical cases in all courts in the designated area within the most recent designated period of time to form a corresponding historical case set;

[0071] The historical case collection includes multiple first historical cases; the first historical case includes the first case court, the first case litigation request collection, the first case plaintiff evidence collection and the first case judgment content; the first case litigation request collection is composed of one or more first litigation request items; the first case evidence collection is composed of one or more first evidence items; the first case judgment content is composed of the first judgment analysis and the first judgment result;

[0072] Here, the specified period is a preset period parameter; because with the continuous updating of laws and regulations, the older the historical cases, the worse the timeliness, and the corresponding reference value, that is, the data quality, will also be reduced; so when collecting big data, it is necessary to set a period parameter to reduce the impact of timeliness issues on data quality; and each case has a corresponding legal document archive, which should at least include the corresponding complaint, defense and judgment. From these three types of legal documents, multiple legal document elements can be extracted, including: the court element that heard the case, that is, the first case court, one or more litigation request elements in the complaint, that is, the first case litigation request set, one or more evidence elements in the complaint, that is, the first case plaintiff evidence set, the judgment analysis and discussion content of the judgment, that is, the first judgment analysis, and the judgment result element of the judgment, that is, the first judgment result, etc.;

[0073] Step 32, and use the court code configured for the first case court of each first historical case in the court feature coding rule as the corresponding first court feature code;

[0074] Step 33, identify the litigation request type of each first litigation request item of each first historical case to obtain the corresponding first litigation request type; use the litigation request type code configured for each first litigation request type in the litigation request coding rule as the corresponding first litigation request type code; and form a corresponding first litigation request coding vector from all the first litigation request type codes corresponding to each first historical case;

[0075] Here, although each litigation request item in the legal document is a natural language, the natural language can be summarized into a standard legal term, namely, the litigation request type. For example, if the original text of a litigation request item is "require Zhang San to repay Li Si 3,000 yuan before the end of 2024", then the litigation request type corresponding to this litigation request item can be identified as "debt dispute";

[0076] It should be noted that the embodiment of the present invention provides multiple identification methods when identifying the litigation request type of each first litigation request item of each first historical case; one of the identification methods is an identification method based on manual processing, that is, a legal practitioner confirms the litigation request type based on the original text of each first litigation request item and uses the confirmation result as the corresponding first litigation request type; another is a processing method based on an end-to-end topic extraction model pre-trained through a legal knowledge base for identification, that is, the topic extraction model extracts the litigation request type topic according to the original text of each first litigation request item and uses the extraction result as the corresponding first litigation request type; another is a processing method based on a large language model for identification, that is, a large language model identifies the litigation request type according to the original text of each first litigation request item and uses the identification result as the corresponding first litigation request type. Common large language models mentioned here include GPT series models, LLaMA series models, Wenxin Yiyan model, LawGPT-zh model, LaWGPT model and Lawyer LLaMA model, etc.

[0077] Step 34, performing evidence type identification on each first evidence item of each first historical case to obtain a corresponding first evidence type; using the evidence type code configured for each first evidence type in the evidence coding rule as the corresponding first evidence type code; and forming a corresponding first evidence coding vector from all the first evidence type codes corresponding to each first historical case;

[0078] Here, although each evidence item in the legal document is a natural language, the natural language can also be summarized into a standard legal term, namely, the evidence type. For example, if the original text of an evidence item is "Evidence 1: A 3,000 yuan IOU signed between Zhang San and Li Si on January 1, 2024", then the evidence type corresponding to this evidence item can be identified as "Debt Certificate-IOU";

[0079] It should be noted that the embodiment of the present invention provides multiple identification methods when identifying the evidence type of each first evidence item of each first historical case; one of the identification methods is an identification method based on manual processing, that is, a legal practitioner identifies the evidence type based on the original text of each first evidence item and uses the confirmation result as the corresponding first evidence type; another one is a processing method based on another end-to-end topic extraction model that has been pre-trained through a legal knowledge base, that is, the topic extraction model extracts evidence type topics based on the original text of each first evidence item and uses the extraction result as the corresponding first evidence type; another one is a processing method based on the large language model mentioned above, that is, the large language model identifies the evidence type based on the original text of each first evidence item and uses the identification result as the corresponding first evidence type;

[0080] Step 35, assign a corresponding first label level vector to each first historical case, and initialize all first classification prediction probabilities of each first label level vector to 0; and score each first historical case by evidence relevance level to obtain a corresponding first case score level; and in the first label level vector corresponding to each first historical case, reset the first classification prediction probability corresponding to the first case score level corresponding to the current first historical case to 1;

[0081] Specifically, it includes: step 351, assigning a corresponding first label level vector to each first historical case, and initializing all first classification prediction probabilities of each first label level vector to 0;

[0082] Step 352, scoring the evidence relevance level of each first historical case to obtain a corresponding first case scoring level;

[0083] Specifically, step 3521, based on the designated review batch B, the number of expert groups N and the number of group members M, a first set of experts in batch B is selected from a preset legal expert database;

[0084] Among them, B, N, and M are integers greater than zero; the legal expert database includes multiple first legal experts; each batch of first expert sets includes N first expert groups; each first expert group includes M first legal experts; the selection principle of each batch of first expert sets is the random selection principle, but it is necessary to ensure that the first legal experts of each batch of first expert sets do not overlap, and the first legal experts of each first expert group in each batch of first expert sets do not overlap;

[0085] Here, the legal expert database is a pre-prepared national database of legal experts. The legal experts entered into the database are all educators or practitioners with good qualifications in the legal field.

[0086] Step 3522, each first expert set scores the evidence relevance level of each first historical case in the historical case set to obtain a corresponding first scoring level;

[0087] Specifically, it includes: step 35221, randomly dividing all first historical cases in the historical case set based on the number N of expert groups to obtain corresponding N first historical case subsets;

[0088] The first historical case subset includes a plurality of first historical cases; the first historical case subset corresponds one-to-one to the first expert group of the current first expert set;

[0089] Step 35222: each first legal expert of each first expert group scores the evidence relevance level of each first historical case in the corresponding first historical case subset to obtain a corresponding second scoring level;

[0090] Among them, when scoring the evidence relevance level of each first historical case, each first legal expert uses the first case judgment content of the current first historical case as a reference to score the evidence relevance level of the first case plaintiff's evidence set and the first case litigation request set;

[0091] Step 35223, calculating the mean of the M second scoring levels corresponding to each first historical case to obtain the corresponding second average level, and taking the second scoring level closest to the second average level among the M second scoring levels as the corresponding first scoring level;

[0092] Step 3523, performing mean calculation on the B first scoring levels corresponding to each first historical case to obtain the corresponding first average level, and taking the first scoring level closest to the first average level among the B first scoring levels as the corresponding first case scoring level;

[0093] Step 353, in the first label level vector corresponding to each first historical case, the first classification prediction probability corresponding to the first case scoring level corresponding to the current first historical case is reset to 1;

[0094] Step 36, the first court feature code, the first litigation request code vector and the first evidence code vector corresponding to each first historical case are concatenated into a corresponding first training vector; and the first training vector and the first label level vector corresponding to each first historical case form a corresponding first data record;

[0095] Step 37: All the first data records obtained form a corresponding model data set.

[0096] Step 4, training the evidence association level prediction model based on the model data set;

[0097] Specifically, it includes: step 41, extracting the first first data record of the model data set as the corresponding current data record;

[0098] Step 42, extracting the first training vector and the first label level vector of the current data record as the corresponding current training vector and the current label level vector;

[0099] Step 43, inputting the current training vector into the evidence association level prediction model, and the evidence association level prediction model performs evidence association level prediction based on the current training vector and outputs the corresponding current classification prediction vector;

[0100] Step 44, based on a preset first loss function, a loss function is calculated according to the current classification prediction vector and the current label level vector to obtain a corresponding first loss value;

[0101] Among them, the first loss function includes L1 and L2 loss functions;

[0102] Step 45, identifying whether the first loss value satisfies a preset first loss value range; if the first loss value satisfies the first loss value range, identifying whether the current data record is the last first data record of the model data set, if so, turning to step 46, if not, extracting the next first data record of the model data set as a new current data record and returning to step 42; if the first loss value does not satisfy the first loss value range, using a preset model optimizer to optimize and modulate the model parameters of the evidence association level prediction model in the direction of minimizing the function value of the first loss function, and returning to step 43 at the end of this modulation;

[0103] Among them, the model optimizers include SDG optimizer and Adam optimizer;

[0104] Here, the first loss value range is a preset loss value range;

[0105] Step 46, stop model training and confirm that model training is completed.

[0106] Step 5: After the model training is completed, the evidence relevance of any new case in the specified area is predicted and analyzed based on the evidence relevance level prediction model to obtain the corresponding prediction level;

[0107] Specifically, it includes: step 51, receiving case information of any new case in the specified area as the corresponding second case;

[0108] The second case includes the second case court, the second case litigation request set and the second case plaintiff evidence set; the second case litigation request set consists of one or more second litigation request items; the second case evidence set consists of one or more second evidence items;

[0109] Step 52, and use the court code configured for the second case court in the court feature coding rule as the corresponding second court feature code;

[0110] Step 53, identify the litigation request type of each second litigation request item in the second case litigation request set to obtain the corresponding second litigation request type; and use the litigation request type code configured for each second litigation request type in the litigation request coding rule as the corresponding second litigation request type code; and all the obtained second litigation request type codes form a corresponding second litigation request coding vector;

[0111] Here, the identification method used by the embodiment of the present invention when identifying the litigation request type of each second litigation request item in the second case litigation request set is consistent with the litigation request type identification method used in the previous step 33;

[0112] Step 54, performing evidence type identification on each second evidence item of the second case evidence set to obtain a corresponding second evidence type; using the evidence type code configured for each second evidence type in the evidence coding rule as the corresponding second evidence type code; and composing a corresponding second evidence coding vector from all the obtained second evidence type codes;

[0113] Here, the identification method used by the embodiment of the present invention when identifying the evidence type of each second evidence item in the second case evidence set is consistent with the evidence type identification method used in the above step 34;

[0114] Step 55, the obtained second court feature code, the second litigation request code vector and the second evidence code vector are concatenated into a corresponding current input feature vector;

[0115] Step 56, the evidence association level prediction model predicts the evidence association level according to the current input feature vector and outputs the corresponding current classification prediction vector;

[0116] Among them, the current classification prediction vector is composed of multiple classification prediction probabilities, each of which corresponds to a level of evidence relevance;

[0117] Step 57, and taking the evidence relevance level corresponding to the classification prediction probability with the largest probability value in the current classification prediction vector as the corresponding prediction level.

[0118] Here, the higher the prediction level predicted by the evidence association level prediction model based on the embodiment of the present invention, the stronger the correlation between the case plaintiff evidence collected in the current new case and the case litigation request planned to be submitted, and vice versa, the lower the prediction level, the weaker the correlation between the case plaintiff evidence collected in the current new case and the case litigation request planned to be submitted; when a lower prediction level is obtained, the plaintiff can further improve the collected case plaintiff evidence, and re-predict the improved case plaintiff evidence based on the evidence association level prediction model of the embodiment of the present invention until the output prediction level reaches the expected level.

[0119] Figure 2 The module structure diagram of a processing device for analyzing evidence relevance based on a prediction model provided in the second embodiment of the present invention, the device is a terminal device or server that implements the aforementioned method embodiment, and can also be a device that enables the aforementioned terminal device or server to implement the aforementioned method embodiment, for example, the device can be a device or chip system of the aforementioned terminal device or server. Figure 2 As shown, the device includes: a model building module 201, a coding rule formulation module 202, a big data processing module 203, a model training module 204 and a model application module 205.

[0120] The model building module 201 is used to build an evidence association level prediction model.

[0121] The encoding rule formulation module 202 is used to formulate the model input vector encoding rules corresponding to the evidence association level prediction model.

[0122] The big data processing module 203 is used to collect big data of historical cases of all courts in the specified area and construct a model data set based on the model input vector encoding rules and all collected historical cases.

[0123] The model training module 204 is used to perform model training on the evidence association level prediction model based on the model data set.

[0124] The model application module 205 is used to predict and analyze the relevance of the evidence of any new case in the specified area based on the evidence relevance level prediction model after the model training is completed to obtain the corresponding prediction level.

[0125] An embodiment of the present invention provides a processing device for analyzing evidence relevance based on a prediction model, which can execute the method steps in the above method embodiment. Its implementation principle and technical effects are similar and will not be repeated here.

[0126] It should be noted that it should be understood that the division of the various modules of the above device is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software called by processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software called by processing elements, and some modules can be implemented in the form of hardware. For example, the model building module can be a separately established processing element, or it can be integrated in a chip of the above device. In addition, it can also be stored in the memory of the above device in the form of program code, and called and executed by a processing element of the above device. The function of the above-mentioned module is determined. The implementation of other modules is similar. In addition, these modules can be fully or partially integrated together, or they can be implemented independently. The processing element described here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.

[0127] For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more specific integrated circuits (ASIC), or one or more digital signal processors (DSP), or one or more field programmable gate arrays (FPGA), etc. For another example, when a certain module above is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processors that can call program codes. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).

[0128] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the above method embodiments are generated. The above computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The above-mentioned computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the above-mentioned computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, Bluetooth, microwave, etc.) methods. The above-mentioned computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated. The above-mentioned available media can be magnetic media (such as floppy disks, hard disks, tapes), optical media (such as DVDs), or semiconductor media (such as solid-state drives (SSDs)), etc.

[0129] Figure 3This is a schematic diagram of the structure of an electronic device provided in Embodiment 3 of the present invention. The electronic device may be a terminal device or a server for implementing the method of the aforementioned embodiment, or may be a terminal device or a server for implementing the method of the aforementioned embodiment connected to the aforementioned terminal device or server. Figure 3 As shown, the electronic device may include: a processor 301 (such as a CPU), a memory 302, and a transceiver 303; the transceiver 303 is coupled to the processor 301, and the processor 301 controls the transceiver 303. Various instructions may be stored in the memory 302 to complete various processing functions and implement the processing steps described in the aforementioned embodiment method. Preferably, the electronic device involved in the embodiment of the present invention also includes: a power supply 304, a system bus 305 and a communication port 306. The system bus 305 is used to realize the communication connection between components. The above-mentioned communication port 306 is used for connecting and communicating between the electronic device and other peripherals.

[0130] exist Figure 3 The system bus 305 mentioned in the figure can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The system bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. The communication interface is used to realize the communication between the database access device and other devices (such as a client, a read-write library, and a read-only library). The memory may include a random access memory (RAM), and may also include a non-volatile memory (Non-Vol at ile Memory), such as at least one disk storage.

[0131] The above-mentioned processors can be general-purpose processors, including central processing units (CPU), network processors (Network Processor, NP), graphics processing units (Graphics Processing Unit, GPU), etc.; they can also be digital signal processors DSP, application-specific integrated circuits ASIC, field programmable gate arrays FPGA or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0132] It should be noted that an embodiment of the present invention further provides a computer-readable storage medium, in which instructions are stored. When the computer-readable storage medium is run on a computer, the computer executes the method and processing process provided in the above embodiments.

[0133] An embodiment of the present invention further provides a chip for executing instructions, wherein the chip is used to execute the processing steps described in the aforementioned method embodiment.

[0134] The embodiment of the present invention provides a processing method, device, electronic device and computer-readable storage medium for analyzing the relevance of evidence based on a prediction model; it can be seen from the above content that the embodiment of the present invention pre-constructs an evidence relevance level prediction model for predicting the relevance level of the plaintiff's evidence and the litigation request based on a multi-classification prediction model structure; and formulates corresponding model input vector encoding rules based on the input feature vector structure of the prediction model; and constructs a corresponding model data set through a big data processing method, and in the process of constructing the data set, reduces the annotation error of the label data and improves the accuracy of the label data through a random selection mechanism for legal experts and a median scoring mechanism for cases; and trains the prediction model based on the model data set; after the model training is completed, the prediction model can be used to predict and analyze the relevance of the plaintiff's evidence in a new case to obtain the corresponding prediction level. The big data model training of the embodiment of the present invention effectively guarantees the stability of the model analysis quality; the automatic analysis method based on the prediction model of the embodiment of the present invention effectively improves the analysis efficiency.

[0135] The professionals should further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0136] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0137] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for analyzing evidence relevance based on a prediction model, characterized in that: The method comprises: Construct a prediction model for the level of evidence association; Formulate a model input vector encoding rule corresponding to the evidence association level prediction model; Collecting big data of historical cases of all courts in the designated area and constructing a model data set based on the model input vector encoding rules and all the collected historical cases; Performing model training on the evidence association level prediction model based on the model data set; After the model training is completed, the evidence relevance of any new case in the specified area is predicted and analyzed based on the evidence relevance level prediction model to obtain the corresponding prediction level.

2. The method for analyzing evidence relevance based on a prediction model according to claim 1, characterized in that: The evidence relevance level prediction model is a multi-classification prediction model; the model input of the evidence relevance level prediction model is an input feature vector, and the model output is a classification prediction vector; the evidence relevance level prediction model is used to predict the evidence relevance level according to the input feature vector and output the corresponding classification prediction vector; the input feature vector is composed of a court feature code, a litigation request code vector and an evidence code vector; the classification prediction vector is composed of a plurality of classification prediction probabilities, each of which corresponds to an evidence relevance level; The model input vector encoding rules include court feature encoding rules, litigation request encoding rules and evidence encoding rules; The court characteristic coding rule configures a unique court code for each court in the designated area in the manner of regional administrative level code + court administrative level code; The litigation request coding rule configures a unique litigation request type code for each litigation request type based on a preset litigation request type set; The evidence coding rule configures a unique evidence type code for each type of evidence based on a preset full set of evidence types; The model data set includes multiple first data records; the first data record includes a first training vector and a first label level vector; the first training vector is spliced ​​by a first court feature code, a first litigation request code vector and a first evidence code vector; the first litigation request code vector is composed of one or more first litigation request type codes; the first evidence code vector is composed of one or more first evidence type codes; the first label level vector is composed of multiple first classification prediction probabilities; only one of the first classification prediction probabilities in the first label level vector is 1, and all other first classification prediction probabilities are 0.

3. The method for analyzing evidence relevance based on a prediction model according to claim 2, characterized in that: The big data collection of historical cases of all courts in the designated area and the construction of a model data set based on the model input vector encoding rules and all the collected historical cases specifically include: Data collection is performed on case information of all historical cases in all courts in the designated area within the most recent designated period of time to form a corresponding historical case set; the historical case set includes multiple first historical cases; the first historical case includes a first case court, a first case litigation request set, a first case plaintiff evidence set and a first case judgment content; the first case litigation request set is composed of one or more first litigation request items; the first case evidence set is composed of one or more first evidence items; the first case judgment content is composed of a first judgment analysis and a first judgment result; and using the court code configured for the first case court of each of the first historical cases in the court feature coding rule as the corresponding first court feature code; and performing litigation request type identification on each of the first litigation request items of each of the first historical cases to obtain a corresponding first litigation request type; and using the litigation request type code configured for each of the first litigation request types in the litigation request coding rule as the corresponding first litigation request type code; and forming a corresponding first litigation request coding vector from all of the first litigation request type codes corresponding to each of the first historical cases; and performing evidence type identification on each of the first evidence items of each of the first historical cases to obtain a corresponding first evidence type; and using the evidence type code configured for each of the first evidence types in the evidence coding rule as the corresponding first evidence type code; and forming a corresponding first evidence coding vector from all of the first evidence type codes corresponding to each of the first historical cases; and assigning a corresponding first label level vector to each of the first historical cases, and initializing all the first classification prediction probabilities of each of the first label level vectors to 0; and scoring each of the first historical cases by evidence relevance to obtain a corresponding first case scoring level; and resetting the first classification prediction probability corresponding to the first case scoring level corresponding to the current first historical case to 1 in the first label level vector corresponding to each of the first historical cases; The first court feature code, the first litigation request code vector, and the first evidence code vector corresponding to each of the first historical cases are concatenated into a corresponding first training vector; and the first training vector and the first label level vector corresponding to each of the first historical cases form a corresponding first data record; And all the first data records obtained form the corresponding model data set.

4. The method for processing evidence relevance based on predictive model analysis according to claim 3, characterized in that: The step of scoring the evidence relevance level of each of the first historical cases to obtain the corresponding first case scoring level specifically includes: According to the designated review batch B, the number of expert groups N and the number of group members M, B batches of first expert sets are selected from the preset legal expert database; B, N and M are integers greater than zero; the legal expert database includes multiple first legal experts; each batch of the first expert sets includes N first expert groups; each first expert group includes M first legal experts; the selection principle of each batch of the first expert sets is the random selection principle, but it is necessary to ensure that the first legal experts in each batch of the first expert sets do not overlap, and the first legal experts in each first expert group in each batch of the first expert sets do not overlap; Each of the first expert sets performs an evidence relevance rating on each of the first historical cases in the historical case set to obtain a corresponding first rating level; The B first scoring levels corresponding to each of the first historical cases are averaged to obtain the corresponding first average level, and the first scoring level closest to the first average level among the B first scoring levels is used as the corresponding first case scoring level.

5. The method for processing evidence relevance based on predictive model analysis according to claim 4, characterized in that: The first expert groups score the first historical cases in the historical case set based on the evidence relevance to obtain the corresponding first scoring level, specifically including: Based on the number N of expert groups, all the first historical cases in the historical case set are randomly divided to obtain corresponding N first historical case subsets; the first historical case subset includes a plurality of the first historical cases; the first historical case subset corresponds one-to-one to the first expert group of the current first expert set; Each of the first legal experts of each of the first expert groups scores the evidence relevance level of each of the first historical cases of the corresponding first historical case subset to obtain a corresponding second scoring level; wherein, when scoring the evidence relevance level of each of the first historical cases, each of the first legal experts scores the evidence relevance level of the first case plaintiff's evidence set and the first case litigation request set with reference to the first case judgment content of the current first historical case; The M second scoring levels corresponding to each of the first historical cases are averaged to obtain the corresponding second average level, and the second scoring level closest to the second average level among the M second scoring levels is used as the corresponding first scoring level.

6. The method for analyzing evidence relevance based on a prediction model according to claim 2, characterized in that: The performing model training on the evidence association level prediction model based on the model data set specifically includes: Step 61, extracting the first of the first data records of the model data set as the corresponding current data record; Step 62, extracting the first training vector and the first label level vector of the current data record as the corresponding current training vector and current label level vector; Step 63, inputting the current training vector into the evidence association level prediction model, and the evidence association level prediction model performs evidence association level prediction based on the current training vector and outputs a corresponding current classification prediction vector; Step 64, performing loss function calculation according to the current classification prediction vector and the current label level vector based on a preset first loss function to obtain a corresponding first loss value; the first loss function includes L1 and L2 loss functions; Step 65, identifying whether the first loss value satisfies a preset first loss value range; if the first loss value satisfies the first loss value range, identifying whether the current data record is the last first data record of the model data set, if so, going to step 66, if not, extracting the next first data record of the model data set as the new current data record and returning to step 62; if the first loss value does not satisfy the first loss value range, using a preset model optimizer to perform an optimization modulation on the model parameters of the evidence association level prediction model in the direction of minimizing the function value of the first loss function, and returning to step 63 at the end of this modulation; the model optimizer includes an SDG optimizer and an Adam optimizer; Step 66, stop model training and confirm that model training is completed.

7. The method for analyzing evidence relevance based on a prediction model according to claim 2, characterized in that: The predictive analysis of the evidence relevance of any new case in the designated area based on the evidence relevance level prediction model to obtain the corresponding prediction level specifically includes: receiving case information of any new case in the designated area as a corresponding second case; the second case includes a second case court, a second case litigation request set, and a second case plaintiff evidence set; the second case litigation request set is composed of one or more second litigation request items; the second case evidence set is composed of one or more second evidence items; and using the court code configured for the second case court in the court feature coding rule as the corresponding second court feature code; And perform litigation request type identification on each second litigation request item of the second case litigation request set to obtain the corresponding second litigation request type; and use the litigation request type code configured for each second litigation request type in the litigation request coding rule as the corresponding second litigation request type code; and all the obtained second litigation request type codes constitute the corresponding second litigation request coding vector; and performing evidence type identification on each of the second evidence items in the second case evidence set to obtain a corresponding second evidence type; and using the evidence type code configured for each of the second evidence types in the evidence coding rule as the corresponding second evidence type code; and forming a corresponding second evidence coding vector from all the obtained second evidence type codes; The obtained second court feature code, the second litigation request code vector and the second evidence code vector are concatenated into a corresponding current input feature vector; The evidence association level prediction model predicts the evidence association level according to the current input feature vector and outputs a corresponding current classification prediction vector; the current classification prediction vector is composed of a plurality of classification prediction probabilities, each of which corresponds to one evidence association level; And the evidence relevance level corresponding to the classification prediction probability with the largest probability value in the current classification prediction vector is used as the corresponding prediction level.

8. A device for executing the method for analyzing evidence relevance based on a prediction model according to any one of claims 1 to 7, characterized in that: The device comprises: a model building module, a coding rule formulation module, a big data processing module, a model training module and a model application module; The model building module is used to build an evidence association level prediction model; The encoding rule formulation module is used to formulate a model input vector encoding rule corresponding to the evidence association level prediction model; The big data processing module is used to collect big data of historical cases of all courts in the specified area and construct a model data set based on the model input vector encoding rules and all collected historical cases; The model training module is used to perform model training on the evidence association level prediction model based on the model data set; The model application module is used to predict and analyze the relevance of the plaintiff's evidence of any new case in the specified area based on the evidence relevance level prediction model after the model training is completed, and obtain the corresponding prediction level.

9. An electronic device, characterized in that: include: memory, processors, and transceivers; The processor is used to couple with the memory, read and execute instructions in the memory, so as to implement the method according to any one of claims 1 to 7; The transceiver is coupled to the processor, and the processor controls the transceiver to send and receive messages.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a computer, the computer is enabled to execute the method according to any one of claims 1 to 7.