Case processing method and device, equipment, storage medium and program product
Through the type recognition model, high-frequency word recognition model and case element recognition model, the key elements in fraud cases are automatically analyzed, solving the problems of low efficiency and poor reliability of fraud case processing in the existing technology, and realizing more efficient and reliable cases. deal with.
Patent Information
- Application Number
- CN202410779218.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-10-15
AI Technical Summary
The existing technology cannot accurately analyze the fraud case reporting process, resulting in low processing efficiency and poor reliability, requiring manual intervention.
The type recognition model, high-frequency word recognition model and case element recognition model are used to automatically and quickly identify key element information in the case, generate case analysis results, and improve processing efficiency and reliability.
Through multi-dimensional analysis and processing, the processing efficiency and reliability of fraud cases are improved, and the problem of poor reliability caused by single-dimensional analysis is avoided.
Smart Images

Figure CN118780959A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of information processing technology, and in particular, relates to a case processing method, device, equipment, storage medium and program product. Background Art
[0002] In recent years, there have been more and more fraud cases. In order to more clearly analyze the criminal behaviors and characteristics of fraud cases and prevent fraud in advance, it is increasingly important to establish a complete fraud case interception and reporting process.
[0003] Among the existing methods, the flowable tool is mainly used to customize the process by utilizing workflow to implement the operation of the fraud case reporting process.
[0004] However, this method focuses on the customization of the reporting process, and it is unable to accurately analyze the reported fraud cases. It requires manual analysis and processing of the reported fraud cases, resulting in low efficiency and poor reliability in the processing of fraud cases. Summary of the invention
[0005] The embodiments of the present application provide a case handling method, apparatus, equipment, storage medium and program product, which can improve case handling efficiency and case handling reliability.
[0006] In one aspect of an embodiment of the present application, a case handling method is provided, the method comprising:
[0007] Obtaining case information of at least one case and a corresponding first case type;
[0008] Input the case information of each case and the corresponding first case type into the type recognition model to obtain the second case type of each case, where the second case type is a subtype of the first case type;
[0009] Inputting case information of at least one case into a high-frequency word recognition model to obtain high-frequency word information corresponding to the at least one case;
[0010] Inputting the case information of each case into the case element recognition model to obtain the case element information of each case, wherein the case element information includes at least one of the characteristics of the victim, the characteristics of the perpetrator, and the crime tool;
[0011] Statistical processing is performed on the second case type, the high-frequency word information, and the case element information to obtain a case analysis result corresponding to at least one case.
[0012] In one aspect of an embodiment of the present application, a case handling device is provided, the device comprising:
[0013] An information acquisition module, used to acquire case information of at least one case and a corresponding first case type;
[0014] A type determination module, used for inputting the case information of each case and the corresponding first case type into the type identification model to obtain a second case type of each case, where the second case type is a subtype of the first case type;
[0015] A high-frequency word determination module, used to input case information of at least one case into a high-frequency word recognition model to obtain high-frequency word information corresponding to the at least one case;
[0016] A case element determination module, used to input the case information of each case into the case element recognition model to obtain the case element information of each case, wherein the case element information includes at least one of the characteristics of the victim, the characteristics of the perpetrator, and the crime tool;
[0017] The result generation module is used to perform statistical processing on the second case type, high-frequency word information and case element information to obtain a case analysis result corresponding to at least one case.
[0018] In one aspect of an embodiment of the present application, an electronic device is provided, which includes: a memory and a program or instruction stored in the memory and executable on a processor, wherein when the program or instruction is executed by the processor, a case handling method as provided in any aspect of the above-mentioned embodiment of the present application is implemented.
[0019] In one aspect of an embodiment of the present application, a readable storage medium is provided, on which a program or instruction is stored. When the program or instruction is executed by a processor, a case handling method provided in any aspect of the above-mentioned embodiment of the present application is implemented.
[0020] In one aspect of an embodiment of the present application, a computer program product is provided. When instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes a case handling method provided in any aspect of the above-mentioned embodiment of the present application.
[0021] In the case processing method provided by the embodiment of the present application, the key element information in the case can be automatically and quickly identified by using the type recognition model, the high-frequency word recognition model and the case element recognition model, without the need for manual analysis and processing, thereby improving the processing efficiency of the case. At the same time, the second case type, high-frequency word information and case element information of the case are obtained respectively through the type recognition model, the high-frequency word recognition model and the case element recognition model, and then the case analysis results corresponding to the case are generated. By analyzing and processing the case from multiple dimensions, the key elements of multiple dimensions of the case can be obtained more comprehensively, avoiding the problem of poor reliability caused by analyzing and processing the case from a single dimension, thereby improving the processing reliability of the case. In this way, the embodiment of the present application uses the type recognition model, the high-frequency word recognition model and the case element recognition model to process the case, which can improve the processing efficiency of the case and the processing reliability of the case. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0023] Figure 1 It is a flowchart of a case handling method provided by an embodiment of the present application;
[0024] Figure 2 is a structural diagram of a case processing system provided by an embodiment of the present application;
[0025] Figure 3 is a structural schematic diagram of a case handling device provided by an embodiment of the present application;
[0026] Figure 4 It is a structural diagram of a case handling device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0027] The features and exemplary embodiments of each aspect of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0028] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0029] It should be noted that the acquisition, storage, use, and processing of data in the technical solution of this application are in compliance with the relevant provisions of national laws and regulations.
[0030] It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.
[0031] In the related art, the flowable tool is used to customize the process using workflow to realize the operation of the fraud case reporting process. However, this method focuses on the customization of the reporting process, and it is unable to accurately analyze the reported fraud cases. It requires manual analysis and processing of the reported fraud cases, resulting in low efficiency and poor reliability in the processing of fraud cases.
[0032] The purpose of the present application is to provide a case processing method, device, equipment, storage medium and program product. In the case processing method provided by the embodiment of the present application, the key element information in the case can be automatically and quickly identified by using the type recognition model, the high-frequency word recognition model and the case element recognition model, without the need for manual analysis and processing, thereby improving the processing efficiency of the case. At the same time, the second case type, high-frequency word information and case element information of the case are obtained respectively through the type recognition model, the high-frequency word recognition model and the case element recognition model, and then the case analysis result corresponding to the case is generated. By analyzing and processing the case from multiple dimensions, the key elements of multiple dimensions of the case can be obtained more comprehensively, avoiding the problem of poor reliability caused by analyzing and processing the case from a single dimension, thereby improving the processing reliability of the case. In this way, the embodiment of the present application uses the type recognition model, the high-frequency word recognition model and the case element recognition model to process the case, which can improve the processing efficiency of the case and the processing reliability of the case.
[0033] The following describes specific embodiments of the case handling method, device, equipment, storage medium, and program product provided by the embodiments of the present application. First, the case handling method is introduced.
[0034] Figure 1 A flowchart of a case handling method is provided. The case handling method can be applied to a server. The case handling method can include the following steps S101 to S105.
[0035] S101, obtaining case information of at least one case and a corresponding first case type.
[0036] In this embodiment, the case may be any type of case such as a fraud case, a violation case, or a law-breaking case, and the case information is descriptive information of the case interception process.
[0037] The first case type is the case type to which the case belongs. For example, the first case type may include the major category to which the fraud case belongs and the minor category to which the fraud case belongs. When the major category to which the fraud case belongs is the customer infringement category, the minor category to which the fraud case belongs may be telecommunications fraud; when the major category to which the fraud case belongs is the bank infringement category, the minor category to which the fraud case belongs may be bill fraud or false account opening.
[0038] As an example, this embodiment uses flowable as a process customization engine to customize the reporting of each fraud case. For example, the customized reporting of fraud cases can be performed on a quarterly or annual basis.
[0039] Then, after the fraud case is reported, the server will obtain the case information of each fraud case, the major category to which the fraud case belongs, and the minor category to which the fraud case belongs.
[0040] S102, inputting the case information of each case and the corresponding first case type into the type recognition model to obtain the second case type of each case, where the second case type is a subtype of the first case type.
[0041] In this embodiment, the type identification model is a model for identifying a specific second case type of a case under a first case type.
[0042] The second case type is a subtype of the first case type. For example, when the first case type represents that the major category of fraud cases is customer infringement, and the minor category of fraud cases is telecommunications fraud, the corresponding second case type may be fraud in the name of online loans, fraud in the name of high-value financial management, or fraud using the epidemic or selling epidemic prevention materials.
[0043] As an example, this embodiment uses the Bert+BiLSTM algorithm to train the preset model to obtain a type recognition model.
[0044] The server then inputs the case information of each case and the corresponding first case type into the type recognition model, and obtains a more specific second case type for each case under the corresponding first case type.
[0045] S103: Input case information of at least one case into a high-frequency word recognition model to obtain high-frequency word information corresponding to the at least one case.
[0046] In this embodiment, the high-frequency word recognition model is a model for recognizing high-frequency words that appear in multiple cases.
[0047] As an example, this embodiment uses the TF-IDF algorithm to train the preset model to obtain a high-frequency word recognition model.
[0048] The server then summarizes the case information of each fraud case and inputs it into the high-frequency word recognition model at the same time to obtain the high-frequency word information corresponding to the multiple fraud cases.
[0049] As another example, the first case type of each fraud case can be used to group the acquired fraud cases to obtain at least one fraud case group. Then, taking the fraud case group as a unit, the case information of each fraud case included in the fraud case group is summarized and simultaneously input into the high-frequency word recognition model to obtain the high-frequency word information corresponding to the fraud case group.
[0050] S104, inputting the case information of each case into the case element recognition model to obtain the case element information of each case, wherein the case element information includes at least one of the characteristics of the victim, the characteristics of the perpetrator, and the crime tool.
[0051] In this embodiment, the case element identification model is a model for identifying case element information corresponding to a case. The case element information includes at least one of the characteristics of the victim, the characteristics of the perpetrator, and the crime tool.
[0052] As an example, this embodiment uses the Bert-base-chinese algorithm to train the preset model to obtain a case element recognition model.
[0053] The server then inputs the case information of each fraud case into the type recognition model to obtain the victim characteristics, perpetrator characteristics and crime tools corresponding to each fraud case.
[0054] S105, statistically processing the second case type, high-frequency word information, and case element information to obtain a case analysis result corresponding to at least one case.
[0055] In this embodiment, the case analysis result is an analysis result obtained by statistically analyzing key element information corresponding to multiple cases reported in the same batch.
[0056] As an example, the server performs statistical summarization on the second case type of each fraud case output by the model, the high-frequency word information corresponding to the fraud case, and the case element information of each fraud case, so as to obtain the case analysis results corresponding to the batch of fraud cases.
[0057] Through this embodiment, the key element information in the case can be automatically and quickly identified by using the type recognition model, the high-frequency word recognition model and the case element recognition model, without the need for manual analysis and processing, thereby improving the case processing efficiency. At the same time, through the type recognition model, the high-frequency word recognition model and the case element recognition model, the second case type, high-frequency word information and case element information of the case are obtained respectively, and then the case analysis results corresponding to the case are generated. By analyzing and processing the case from multiple dimensions, the key elements of multiple dimensions of the case can be obtained more comprehensively, avoiding the problem of poor reliability caused by analyzing and processing the case from a single dimension, thereby improving the case processing reliability. In this way, the embodiment of the present application uses the type recognition model, the high-frequency word recognition model and the case element recognition model to process the case, which can improve the case processing efficiency and the case processing reliability.
[0058] As an optional embodiment, the case handling method may further include:
[0059] Acquire at least one first training sample, where the first training sample includes first input information and a first result label;
[0060] Using each first training sample to train the first model until a first training stop condition is met, thereby obtaining a second model;
[0061] When the second model is a type recognition model, the first input information is case information of a historical case and a first case type of the historical case, and the first result label is a second case type of the historical case;
[0062] In the case where the second model is a high-frequency word recognition model, the first input information is case information of a historical case, and the first result label is a high-frequency word label of the historical case;
[0063] When the second model is a case element recognition model, the first input information is case information of a historical case, and the first result label is a case element label of the historical case.
[0064] In this embodiment, the first model is a preset model for training, and the second model is a model obtained through training.
[0065] The first training sample is a data sample used to train the first model, and the first training sample includes first input information and a first result label.
[0066] The first training stop condition may be that the number of training times reaches a first number threshold or the function loss value is less than a first loss threshold.
[0067] As an example, when a type recognition model needs to be trained, the case information of each historical fraud case and the first fraud type are first input into the first model as input values to obtain the model recognition result of each historical fraud case. Then, the function loss value is calculated based on the model recognition result and the second fraud type corresponding to each historical fraud case. The first model is further trained using the function loss value until the first training stop condition is met, and the type recognition model can be obtained.
[0068] As another example, when a high-frequency word recognition model needs to be trained, the case information of multiple historical fraud cases is first input into the first model as input values to obtain a model recognition result. Then, the function loss value is calculated based on the model recognition result and the high-frequency word labels corresponding to the multiple historical fraud cases. The first model is further trained using the function loss value until the first training stop condition is met, and a type recognition model can be obtained.
[0069] As another example, when a case element recognition model needs to be trained, the case information of each historical fraud case is first input into the first model to obtain the model recognition result of each historical fraud case. Then, the function loss value is calculated based on the model recognition result and the case element label corresponding to each historical fraud case. The function loss value is used to further train the first model until the first training stop condition is met, and the case element recognition model can be obtained.
[0070] Through this embodiment, the first training sample is generated by using historical cases, and then the first model is trained by using the first training sample until the first training stop condition is met, and the second model can be obtained. This helps to directly call the second model to analyze the key element information of the case in the future, without the need for manual analysis of the key element information of the case, thereby improving the efficiency of case processing.
[0071] As an optional embodiment, the case handling method may further include:
[0072] Determine whether the model recognition result of each case is correct, and obtain the error ratio and number of errors in the model recognition result;
[0073] When the error ratio of the model recognition result exceeds the first threshold and the number of errors exceeds the second threshold, generating a second training sample using the case, the second training sample includes the second input information and the second result label;
[0074] Retraining the third model using each second training sample until the second training stop condition is met, thereby obtaining a retrained third model;
[0075] When the model recognition result is the second case type of the case, the second input information is the case information of the case and the first case type of the case, the second result label is the second case type of the manually labeled case, and the third model is a type recognition model;
[0076] When the model recognition result is case element information of a case, the second input information is case information of the case, the second result label is a manually marked case element label of the case, and the third model is a case element recognition model.
[0077] In this embodiment, the server determines the correctness of the model recognition result of each case in the preset time period after the preset time period. For example, the correctness of the model recognition result of each case in the month can be verified after each month.
[0078] Then, based on the correctness of the model recognition results for each case, the error ratio and number of errors in the model recognition results are obtained.
[0079] When the error ratio of the model recognition result exceeds the first threshold and the number of errors exceeds the second threshold, it indicates that the recognition accuracy of the third model is low. At this time, the second training samples are generated using each case, and the third model is retrained using the second training samples until the second training stop condition is met, thereby obtaining a third model with a higher recognition accuracy after retraining. For example, the first threshold can be set to 25%, and the second threshold can be set to 1000.
[0080] As an example, when the model recognition result is the second case type of a fraud case, it is determined whether the second case type of each fraud case output by the type recognition model is correct, and the error ratio and number of errors of the second case type are counted. When the error ratio exceeds the first threshold and the number of errors exceeds the second threshold, the second case type of each fraud case is manually labeled, and the second training samples are generated in sequence, and the type recognition model is retrained using the second training samples until the second training stop condition is met, thereby obtaining a type recognition model with a higher recognition accuracy after retraining.
[0081] As an example, when the model recognition result is the case element information of a fraud case, it is determined whether the case element information of each fraud case output by the case element recognition model is correct, and the error ratio and the number of errors in the case element information are counted. When the error ratio exceeds the first threshold and the number of errors exceeds the second threshold, the case element information of each fraud case is manually labeled, and the second training samples are generated in sequence, and the case element recognition model is retrained using the second training samples until the second training stop condition is met, thereby obtaining a case element recognition model with a higher recognition accuracy after retraining.
[0082] Through this embodiment, the recognition accuracy of the third model is verified by judging whether the model recognition result of each case is correct. In the case where the recognition accuracy of the third model is low, new training samples are generated using the case, and the third model is retrained using the training samples, so that the recognition accuracy of the third model can be improved, thereby improving the reliability of case processing.
[0083] As an optional embodiment, after S102, the case handling method may further include:
[0084] In the case where the type recognition model cannot match the second case type corresponding to the case, the output result of the type recognition model is that the case belongs to other types;
[0085] When the number of cases of other types exceeds the third threshold, generating a third training sample using the cases of other types, the third training sample including case information of the cases of other types, the first case type of the cases of other types, and the second case type of the cases of other types that are manually annotated;
[0086] The type recognition model is retrained using each third training sample until the third training stop condition is met, thereby obtaining a retrained type recognition model.
[0087] In this embodiment, when the type recognition model cannot match the second case type corresponding to the case, that is, when the type recognition model cannot accurately identify the second case type corresponding to the case, it is output that the case belongs to other types.
[0088] When the number of cases of other types exceeds the third threshold, the second case type of the other types of cases is manually labeled. For example, the third threshold may be a number threshold of other types of cases or a percentage threshold of other types of cases.
[0089] The server then generates a third training sample based on the labeled cases of other types, and uses the third training sample to retrain the type recognition model until the third training stop condition is met, thereby obtaining a type recognition model with higher recognition accuracy after retraining.
[0090] Through this embodiment, when a second case type that cannot be identified by the type recognition model occurs, the second case type is manually labeled, and a third training sample is generated based on the result of the manual labeling. The type recognition model is retrained using the third training sample, thereby improving the recognition accuracy of the type recognition model for the newly generated second case type, thereby improving the reliability of case processing.
[0091] As an optional embodiment, the second model is a case element identification model;
[0092] After obtaining at least one first training sample, the case processing method further includes:
[0093] Cleaning the first training sample that meets the sample cleaning condition in the at least one first training sample to obtain at least one fourth training sample;
[0094] The sample cleaning condition is that the first case type of the historical case corresponding to the first training sample is the target type, the case information of the historical case corresponding to the first training sample is less than the word count threshold, and the historical case corresponding to the first training sample is a duplicated reported case.
[0095] The first model is trained using each first training sample until a first training stop condition is met to obtain a second model, including:
[0096] The first model is trained using each fourth training sample until the first training stop condition is met, thereby obtaining a second model.
[0097] In this embodiment, the sample cleaning condition is used to clean the training samples that do not have valid element information in the historical cases corresponding to the first training sample.
[0098] As an example, the target type can be a counterfeit currency type. When the first fraud type in a historical fraud case is a counterfeit currency type, the case information is "In ***** month, ***** branch staff discovered ** pieces of counterfeit currency in the course of handling business, totaling **** million yuan." At this time, it can be determined that there is no valid element information in the historical fraud case corresponding to the first training sample.
[0099] The word count threshold can be 80 words. When the case information of the historical fraud case corresponding to the first training sample is less than 80 words, the case information is usually described in only one sentence, such as "According to work requirements, the model was used to carry out special inspections of personal accounts and comprehensively check the personal accounts involved in the case." At this time, it can be determined that there is no valid element information in the historical fraud case corresponding to the first training sample.
[0100] Specifically, after obtaining at least one first training sample, the server screens out the first training samples of the historical fraud cases corresponding to each first training sample, in which the first fraud type is the target type, the case information of the historical fraud cases is less than the word count threshold, and the historical fraud cases are repeatedly reported fraud cases, to obtain at least one fourth training sample. Then, the first model is trained using the fourth training sample until the first training stop condition is met, thereby obtaining a case element recognition model.
[0101] Through this embodiment, after obtaining the first training sample, the training samples without valid element information in the first training sample are cleaned using the sample cleaning condition, thereby obtaining the fourth training sample, and finally the first model is trained using the fourth training sample to obtain the case element recognition model. In this way, the embodiment of the present application can improve the effect of model training by cleaning the training samples without valid element information, thereby improving the reliability of case processing.
[0102] As an optional embodiment, S105 may specifically include:
[0103] Performing statistical processing on the second case type of each case to obtain a type analysis result, where the type analysis result is a preset number of case types with the highest frequency of occurrence in at least one case;
[0104] Performing statistical processing on the high-frequency word information corresponding to at least one case to obtain a high-frequency word analysis result, where the high-frequency word analysis result is a preset number of high-frequency words with the highest frequency of occurrence in at least one case;
[0105] Performing statistical processing on the case element information of each case to obtain a case element analysis result, where the case element analysis result is a preset number of case elements with the highest frequency of occurrence in at least one case;
[0106] Using the type analysis results, high-frequency word analysis results, and case element analysis results, a case analysis result corresponding to at least one case is generated in a preset template format.
[0107] In this embodiment, the server uses the type recognition model, the high-frequency word recognition model and the case element recognition model to obtain the second case type, high-frequency word information and case element information of the case respectively.
[0108] Then, statistics are collected on the second case types of the cases to obtain the proportion of each type of second case type, and the types are sorted by size. A preset number of second case types with the highest proportion are selected to generate type analysis results.
[0109] The high-frequency word information of the case is counted to obtain the proportion of each type of high-frequency word, and then sorted by size, and the high-frequency words with the highest proportion are selected to generate the high-frequency word analysis results. Among them, invalid high-frequency words should be eliminated.
[0110] The case element information of the case is counted to obtain the proportion of each type of case element information, and the information is sorted by size. A preset number of case element information with the highest proportion is selected to generate the case element analysis results.
[0111] Finally, using the type analysis results, high-frequency word analysis results, and case element analysis results, freemarker is used to generate a word file, and pyechars is used to generate case element statistical charts in the background to obtain the case analysis results.
[0112] Through this embodiment, the second case type, high-frequency word information and case element information of the case are respectively counted to obtain the case analysis result, which helps the user to directly determine the specific situation of the case based on the case analysis result without having to analyze each case, thereby improving the case processing efficiency.
[0113] As an optional embodiment, Figure 2 As shown, a schematic diagram of the structure of a case processing system is provided. Specifically, each case is first reported to the case processing system, and then the case processing system integrates the reported data. Then, through the type recognition model, high-frequency word recognition model and case element recognition model, the second case type recognition, high-frequency word information recognition and case element information recognition are respectively performed. Finally, the recognition content is summarized to obtain the case analysis result corresponding to the case.
[0114] Based on the case handling method, accordingly, the present application also provides a specific embodiment of the case handling device.
[0115] like Figure 3 As shown, the case processing device provided in the embodiment of the present application includes an information acquisition module 310, a type determination module 320, a high-frequency word determination module 330, a case element determination module 340 and a result generation module 350.
[0116] An information acquisition module 310, configured to acquire case information of at least one case and a corresponding first case type;
[0117] A type determination module 320, for inputting the case information of each case and the corresponding first type into a type identification model to obtain a second case type of each case, where the second case type is a subtype of the first case type;
[0118] A high-frequency word determination module 330, for inputting case information of at least one case into a high-frequency word recognition model to obtain high-frequency word information corresponding to the at least one case;
[0119] A case element determination module 340 is used to input the case information of each case into a case element recognition model to obtain the case element information of each case, wherein the case element information includes at least one of the characteristics of the victim, the characteristics of the perpetrator, and the crime tool;
[0120] The result generation module 350 is used to perform statistical processing on the second case type, high-frequency word information and case element information to obtain a case analysis result corresponding to at least one case.
[0121] As an optional embodiment, the case processing device further includes the following modules:
[0122] A sample acquisition module, used to acquire at least one first training sample, where the first training sample includes first input information and a first result label;
[0123] A model training module, used to train the first model using each first training sample until a first training stop condition is met, thereby obtaining a second model;
[0124] When the second model is a type recognition model, the first input information is case information of a historical case and a first case type of the historical case, and the first result label is a second case type of the historical case;
[0125] In the case where the second model is a high-frequency word recognition model, the first input information is case information of a historical case, and the first result label is a high-frequency word label of the historical case;
[0126] When the second model is a case element recognition model, the first input information is case information of a historical case, and the first result label is a case element label of the historical case.
[0127] As an optional embodiment, the case processing device further includes the following modules:
[0128] The result judgment module is used to judge whether the model recognition result of each case is correct and obtain the error ratio and number of errors in the model recognition result;
[0129] A sample generation module, configured to generate a second training sample using the case when the error ratio of the model recognition result exceeds a first threshold and the number of errors exceeds a second threshold, wherein the second training sample includes second input information and a second result label;
[0130] A model retraining module, used to retrain the third model using each second training sample until the second training stop condition is met, thereby obtaining a retrained third model;
[0131] When the model recognition result is the second case type of the case, the second input information is the case information of the case and the first case type of the case, the second result label is the second case type of the manually labeled case, and the third model is a type recognition model;
[0132] When the model recognition result is case element information of a case, the second input information is case information of the case, the second result label is a manually marked case element label of the case, and the third model is a case element recognition model.
[0133] As an optional embodiment, the case processing device further includes the following modules:
[0134] A model output module, used for obtaining an output result of the type recognition model that the case belongs to other types when the type recognition model cannot match the second case type corresponding to the case;
[0135] The sample generation module is further used to generate a third training sample using other types of cases when the number of cases of other types exceeds a third threshold, the third training sample including case information of other types of cases, a first case type of other types of cases, and a second case type of other types of cases manually marked;
[0136] The model retraining module is further used to retrain the type recognition model using each third training sample until the third training stop condition is met, thereby obtaining the retrained type recognition model.
[0137] As an optional embodiment, the second model is a case element identification model;
[0138] The case processing device also includes the following modules:
[0139] A sample cleaning module, used for cleaning a first training sample that meets a sample cleaning condition in at least one first training sample to obtain at least one fourth training sample;
[0140] The sample cleaning condition is that the first case type of the historical case corresponding to the first training sample is the target type, the case information of the historical case corresponding to the first training sample is less than the word count threshold, and the historical case corresponding to the first training sample is a duplicated reported case.
[0141] Model training module, specifically used for:
[0142] The first model is trained using each fourth training sample until the first training stop condition is met, thereby obtaining a second model.
[0143] As an optional embodiment, the result generation module 350 specifically includes the following units:
[0144] A type statistics unit, used for performing statistical processing on the second case type of each case to obtain a type analysis result, wherein the type analysis result is a preset number of case types with the highest frequency of occurrence in at least one case;
[0145] A high-frequency word statistical unit, used to perform statistical processing on the high-frequency word information corresponding to at least one case to obtain a high-frequency word analysis result, wherein the high-frequency word analysis result is a preset number of high-frequency words with the highest frequency of occurrence in at least one case;
[0146] A case element statistics unit, used to perform statistical processing on the case element information of each case to obtain a case element analysis result, wherein the case element analysis result is a preset number of case elements with the highest frequency of occurrence in at least one case;
[0147] The result generating unit is used to generate a case analysis result corresponding to at least one case in a preset template form by using the type analysis result, the high-frequency word analysis result and the case element analysis result.
[0148] Based on the case handling method, accordingly, the present application also provides a specific embodiment of the case handling device.
[0149] Figure 4 A schematic diagram of the hardware structure of the case processing device provided in an embodiment of the present application is shown.
[0150] The case processing device may include a processor 401 and a memory 402 storing computer program instructions.
[0151] Specifically, the processor 401 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0152] Memory 402 may include a large capacity memory for data or instructions. By way of example and not limitation, memory 402 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, memory 402 may include a removable or non-removable (or fixed) medium. In appropriate cases, memory 402 may be inside or outside of an integrated gateway disaster recovery device. In a specific embodiment, memory 402 is a non-volatile solid-state memory.
[0153] The memory may include read-only memory (ROM), random access memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical or other physical / tangible memory storage devices. Thus, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to an aspect of the present disclosure.
[0154] The processor 401 implements any one of the case handling methods in the above embodiments by reading and executing computer program instructions stored in the memory 402 .
[0155] In one example, the case handling device may further include a communication interface 403 and a bus 410. Figure 4 As shown, the processor 401, the memory 402, and the communication interface 403 are connected via a bus 410 and communicate with each other.
[0156] The communication interface 403 is mainly used to implement communication between each module, device, unit and / or equipment in the embodiment of the present application.
[0157] Bus 410 includes hardware, software or both, and the parts of case handling equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 410 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.
[0158] In addition, in combination with the case handling method in the above embodiment, the embodiment of the present application can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any one of the case handling methods in the above embodiment is implemented.
[0159] In addition, in combination with the case handling method in the above embodiment, the embodiment of the present application can provide a computer program product to implement. When the instructions in the computer program product are executed by the processor of the electronic device, the electronic device executes any one of the case handling methods in the above embodiment.
[0160] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiment, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make each kind of change, modification and addition, or change the order between the steps after understanding the spirit of the present application.
[0161] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0162] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0163] Each aspect of the present disclosure is described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.
[0164] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of each equivalent modification or replacement within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application.
Claims
1. A case handling method, It is characterized in that The method comprises: Obtaining case information of at least one case and a corresponding first case type; Inputting the case information of each case and the corresponding first case type into a type recognition model to obtain a second case type of each case, where the second case type is a subtype of the first case type; Inputting the case information of the at least one case into a high-frequency word recognition model to obtain high-frequency word information corresponding to the at least one case; Inputting the case information of each case into the case element recognition model to obtain the case element information of each case, wherein the case element information includes at least one of the characteristics of the victim, the characteristics of the perpetrator, and the crime tool; Statistical processing is performed on the second case type, the high-frequency word information, and the case element information to obtain a case analysis result corresponding to the at least one case.
2. The method according to claim 1, It is characterized in that The method further comprises: Acquire at least one first training sample, where the first training sample includes first input information and a first result label; Using each of the first training samples to train the first model until a first training stop condition is met, thereby obtaining a second model; In the case where the second model is the type recognition model, the first input information is case information of a historical case and a first case type of the historical case, and the first result label is the second case type of the historical case; In the case where the second model is the high-frequency word recognition model, the first input information is the case information of the historical case, and the first result label is the high-frequency word label of the historical case; In the case where the second model is the case element recognition model, the first input information is the case information of the historical case, and the first result label is the case element label of the historical case.
3. The method according to claim 1, It is characterized in that The method further comprises: Determine whether the model recognition result of each case is correct, and obtain the error ratio and number of errors of the model recognition result; When the error ratio of the model recognition result exceeds a first threshold and the number of errors exceeds a second threshold, generating a second training sample using the case, the second training sample including second input information and a second result label; Retraining the third model using each of the second training samples until a second training stop condition is met, thereby obtaining the retrained third model; In a case where the model recognition result is the second case type of the case, the second input information is the case information of the case and the first case type of the case, the second result label is the manually labeled second case type of the case, and the third model is the type recognition model; When the model recognition result is the case element information of the case, the second input information is the case information of the case, the second result label is the manually marked case element label of the case, and the third model is the case element recognition model.
4. The method according to claim 1, It is characterized in that After inputting the case information of each case and the corresponding first case type into the type recognition model, the method further includes: In the case where the type recognition model cannot match the second case type corresponding to the case, an output result of the type recognition model is that the case belongs to other types; When the number of cases of the other types exceeds a third threshold, generating a third training sample using the other types of cases, the third training sample including case information of the other types of cases, the first case type of the other types of cases, and the second case type of the other types of cases manually annotated; The type recognition model is retrained using each of the third training samples until a third training stop condition is met, thereby obtaining the retrained type recognition model.
5. The method according to claim 2, It is characterized in that The second model is the case element identification model; After obtaining at least one first training sample, the method further includes: Cleaning the first training samples that meet the sample cleaning condition in the at least one first training sample to obtain at least one fourth training sample; The sample cleaning condition is at least one of: the first case type of the historical case corresponding to the first training sample is the target type, the case information of the historical case corresponding to the first training sample is less than the word count threshold, and the historical case corresponding to the first training sample is a duplicated reported case; The step of training the first model using each of the first training samples until a first training stop condition is met to obtain a second model includes: The first model is trained using each of the fourth training samples until a first training stop condition is met, thereby obtaining a second model.
6. The method according to any one of claims 1 to 5, It is characterized in that The statistical processing of the second case type, the high-frequency word information, and the case element information to obtain a case analysis result corresponding to the at least one case includes: Performing statistical processing on the second case type of each of the cases to obtain a type analysis result, wherein the type analysis result is a preset number of case types with the highest frequency of occurrence in the at least one case; Performing statistical processing on the high-frequency word information corresponding to the at least one case to obtain a high-frequency word analysis result, wherein the high-frequency word analysis result is a preset number of high-frequency words with the highest frequency of occurrence in the at least one case; Performing statistical processing on the case element information of each of the cases to obtain a case element analysis result, wherein the case element analysis result is a preset number of case elements with the highest frequency of occurrence in the at least one case; The case analysis result corresponding to the at least one case is generated in a preset template format by using the type analysis result, the high-frequency word analysis result and the case element analysis result.
7. A case handling device, It is characterized in that The device comprises: An information acquisition module, used to acquire case information of at least one case and a corresponding first case type; A type determination module, used for inputting the case information of each case and the corresponding first case type into a type identification model to obtain a second case type of each case, where the second case type is a subtype of the first case type; A high-frequency word determination module, used to input the case information of the at least one case into the high-frequency word recognition model to obtain the high-frequency word information corresponding to the at least one case; A case element determination module, used for inputting the case information of each case into the case element recognition model to obtain the case element information of each case, wherein the case element information includes at least one of the characteristics of the victim, the characteristics of the perpetrator, and the crime tool; The result generation module is used to perform statistical processing on the second case type, the high-frequency word information and the case element information to obtain a case analysis result corresponding to the at least one case.
8. An electronic device, It is characterized in that The device comprises: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the case handling method according to any one of claims 1 to 6 is implemented.
9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the case handling method according to any one of claims 1 to 6 is implemented.
10. A computer program product, It is characterized in that When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the case handling method as described in any one of claims 1 to 6.
