Fraud type judgment method and device based on fraud stages and elements
Through the method of human-machine dialogue and matching of six fraud factors, fraud types can be detected quickly and accurately, which solves the problem of fast update of fraud techniques and improves anti-fraud efficiency and resource utilization.
Patent Information
- Application Number
- CN202410375315.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-29
- Publication Date
- 2024-08-23
AI Technical Summary
Fraud techniques are updated rapidly, and it is difficult for existing technology to quickly and accurately detect fraud types and determine the possibility of fraud, making it difficult for public security personnel to compete with fraud techniques.
Use human-computer dialogue to obtain user descriptions, code through word segmentation and sentence segmentation, and perform similarity matching with the six-element fraud database to supplement unmentioned elements, use the nearest neighbor algorithm to determine the type of fraud, and provide methods and devices for determining the type of fraud.
It achieves fast and accurate fraud type detection, reduces the workload of public security personnel, improves anti-fraud efficiency, reduces resource consumption, and can match the update speed of fraud techniques.
Smart Images

Figure CN118535987A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of telecommunication fraud detection applications, and in particular, relates to a method and device for determining fraud types based on fraud stages and elements. Background Art
[0002] Fraud refers to the act of defrauding a large amount of public or private property by fabricating facts or concealing the truth for the purpose of illegal possession. Common frauds are roughly divided into rebates for fake orders, false investment and financial management, false shopping services, impersonating e-commerce logistics customer service, loans, credit agency, false credit investigation, impersonating public security, online marriage and dating, false transactions of online game products, and impersonating military and police shopping.
[0003] In recent years, the number of victims of fraud has increased, and the victims have shifted from the elderly to all social groups. Both low-income people and highly educated people are vulnerable to being defrauded of their personal finances. Although the government and law enforcement agencies have taken many anti-fraud measures and strengthened the efforts to combat fraud, they still cannot completely eliminate the existence of fraud. On the contrary, in order to escape technical tracking, fraudsters are updating their fraudulent methods at a rate of two weeks. The iteration speed of fraud is so fast that the anti-fraud personnel of the public security also need to regularly update and learn about the detection of fraudulent methods. Relying solely on manpower to regularly learn about the updates of each type of fraud can no longer compete with the speed of updating fraudulent methods. Therefore, how to detect fraud types and judge fraud faster and more accurately may be a technical problem that technicians in this field need to solve at present. Summary of the invention
[0004] In response to the above-mentioned technical problem of slow update speed for detecting fraud types and judging the possibility of fraud, the present invention provides a fraud type judgment method and device based on fraud stages and elements that is simple, easy to operate and can accurately detect fraud types.
[0005] In order to achieve the above object, the technical solution adopted by the present invention is that the present invention provides a method for determining the type of fraud based on fraud stages and elements, comprising the following steps:
[0006] a. First, the user's subjective description of the current specific situation is obtained through human-computer dialogue, and the text information is scanned and obtained, and the data obtained after word segmentation and sentence segmentation is encoded;
[0007] b. According to the six elements of fraud, the encoded word and sentence data are matched with the material library for similarity, and the elements not mentioned in the user's subjective description are supplemented by human-computer inquiry;
[0008] c. Based on fraud judgment and matching of the most similar fraud cases, the fraud type and the fraud case with the highest similarity are given.
[0009] Preferably, in step a, the specific operation method of performing word segmentation and sentence segmentation on the scanned text is:
[0010] a1. First, scan the text input by the user. After scanning, segment the text based on stop words. The segmentation results are stored in the segmentation array. Then, the segmentation array is filtered to keep only Chinese characters. Then, the stop words and rare words are removed from the segmentation array table to finally obtain the required segmentation array.
[0011] a2. Encode and calculate the words in the word segmentation array according to the pre-trained model, and then convert the encoded data into a matrix form for storage.
[0012] a3. Sentence segmentation: First, the whole paragraph is divided into multiple complete sentences based on punctuation marks, and then stored in the sentence array. The sentence array is encoded using tokenizer, and finally the output array is converted into a coding matrix.
[0013] Preferably, in step b, the specific operation method for determining the six elements of fraud, the matching of word segmentation and sentence segmentation encoding results, and the supplementary elements is as follows:
[0014] b1. Through the analysis of a large number of fraud cases, it is found that all fraud processes can be summarized into three stages, namely: fraud approach stage, fraud preparation stage, and fraud implementation stage. In order to make the three stages more specific and accurate, the three stages are divided into six elements, among which fraud approach is divided into: identity, reason, fraud preparation is divided into: increasing credibility, and fraud implementation is divided into: obtaining funds, increasing funds, and payment methods.
[0015] b2. Compare the previously encoded word segmentation codes and sentence codes with the previously encoded six-element library for similarity, and return the element types with the highest similarity between word segmentation and sentence matching.
[0016] b3. Then analyze the matched elements, complete the elements that the user did not mention by asking questions, and finally obtain the complete six elements.
[0017] Preferably, in step c, the specific operation method of fraud judgment and matching the most similar fraud case is as follows:
[0018] c1. Check whether the complete six elements provided by the user meet the requirements of fraud. If yes, the user will be prompted that the current situation is a fraud.
[0019] c2. Extract features from each element type obtained through similarity matching, then use the nearest neighbor algorithm to find the closest case in the case library, and finally output the case to the user for viewing.
[0020] A second aspect of the present invention relates to a device for determining the type of fraud based on fraud stages and elements, comprising a memory and one or more processors, wherein the memory stores executable code, and when the one or more processors execute the executable code, they are used to implement the method for determining the type of fraud based on fraud stages and elements of the present invention.
[0021] A third aspect of the present invention relates to a computer-readable storage medium having a program stored thereon, which, when executed by a processor, implements the fraud type determination method based on fraud stages and elements of the present invention.
[0022] Compared with the prior art, the advantages and positive effects of the present invention are:
[0023] This invention provides a fraud type judgment method based on fraud stages and elements. It can judge possible fraud behaviors and greatly reduce the workload of public security personnel in terms of social benefits. It can adjust personnel to positions that require more manual solutions, coordinate resources, and strengthen the actual and effective efforts of anti-fraud. Because public security personnel need to keep pace with the times in fraud detection, fraud methods are constantly updated and iterated, and it also takes a lot of resources to popularize fraud methods for anti-fraud personnel. Iterating the model using machine learning methods can reduce a lot of resource loss and save a lot of time. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 It is a flow chart of the method of the present invention.
[0025] Figure 2 This is a diagram of the three stages of fraud and the six elements of fraud. Specific implementation methods
[0027] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described below in conjunction with the accompanying drawings and embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0028] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways than those described herein. Therefore, the present invention is not limited to the specific embodiments of the following disclosure.
[0029] Example 1
[0030] like Figure 1 and Figure 2 This embodiment aims to detect fraud types and judge the possibility of fraud faster and more accurately. To this end, this embodiment provides a fraud type judgment method based on fraud stages and elements, including the following steps:
[0031] First, obtain the user's subjective description of the current specific situation, and perform word segmentation on the text entered by the user. The specific operation method is as follows: Step 1, first use "stop words" to segment the text. Stop words refer to some commonly used punctuation marks and phrases with practical meanings, such as: not only, personally, they, it seems, etc. Store the word segmentation structure in the word segmentation array. Step 2, filter the word segmentation array, retain only Chinese characters, and remove array elements containing punctuation marks or mathematical symbols. Then perform a second screening on the array to remove array elements that are not in the stop word range but in the rare word range, and finally obtain the filtered word segmentation array.
[0032] The text input by the user is segmented into sentences. The specific operation method is as follows: the text is segmented by pause punctuation marks, and the segmentation results are stored in the sentence array (sentence array [0], sentence array [1] ... sentence array [n]). Considering that users may have different pause habits, in order to ensure that the subsequent similarity matching can be successful, the word array is divided into groups of three and spliced twice. For example, sentence array [0], sentence array [1], and sentence array [2] are spliced into sentence array [n+1], and sentence array [1], sentence array [2], and sentence array [3] are spliced into sentence array [n+2], and so on. Finally, the spliced array is obtained as the final sentence array.
[0033] The word segmentation array and sentence array are encoded. The word segmentation encoding inputs each array element as a token into the trained encoding model. After feature analysis, a vector with a dimension of 100 is output as the encoding result of a single word segmentation array element. Finally, all the word segments are summarized to obtain the word segmentation matrix. In the same way, the sentence array elements are encoded into a vector with a dimension of 768, and then the sentence matrix is obtained. All the encoded word segments and sentences are matched with the keywords and key sentence libraries prepared in advance and encoded. All the word segmentation and sentence encodings are used to calculate the similarity with the keywords and sentences in the six elements according to the type. For example, all the word segmentation and sentences are matched with all the keywords and sentences in the first type A1 in element A. The value with the highest similarity among the word segmentation and sentence is retained as the matching similarity with A1. The similarity is calculated in A2 in turn, and the value with the highest similarity is still retained as the matching similarity with A2. Finally, the matching similarity results of all types in element A are compared, and the type with the highest matching similarity value and a matching similarity value greater than 0.9 is retained. If there is no type greater than 0.9, the match fails. The most matching type between the word segmentation and sentence encoding and each element is obtained in the order of the six elements.
[0034] Statistical analysis of the matching similarity results shows that each text message should have the complete six elements to be judged as fraud and the fraud category can be detected. Therefore, it is necessary to supplement the types that failed to match in a simple question-and-answer format. For example, if the missing element is D, then ask questions about D1, D2, etc. in D in turn. If the user replies in the affirmative, stop asking questions of the following types. If the final question and answer does not have this element, it will be recorded as empty.
[0035] Finally, based on the complete six elements provided by the user, it is determined whether the text provided by the user is likely to be a fraud. If the response is yes, the nearest case is calculated using the nearest neighbor algorithm based on the complete six element types, and then similar cases are pushed to the user to prove that the current situation is a fraud.
[0036] After experiments, it was found that the recognition rate of fraud judgment using this method can reach more than 80%, and the similarity of push results of similar cases can reach more than 70%.
[0037] Example 2
[0038] The present embodiment relates to a device for determining the type of fraud based on fraud stages and elements, including a memory and one or more processors, wherein the memory stores executable code, and when the one or more processors execute the executable code, they are used to implement the method for determining the type of fraud based on fraud stages and elements of the present invention.
[0039] Example 3
[0040] This embodiment relates to a computer-readable storage medium having a program stored thereon. When the program is executed by a processor, the method for determining the fraud type based on fraud stages and elements of the present invention is implemented.
[0041] The above description is only a preferred embodiment of the present invention and does not limit the present invention in other forms. Any technician familiar with the profession may use the technical content disclosed above to change or modify it into an equivalent embodiment with equivalent changes and apply it to other fields. However, any simple modification, equivalent change and modification made to the above embodiment based on the technical essence of the present invention without departing from the content of the technical solution of the present invention still falls within the protection scope of the technical solution of the present invention.
Claims
1. A fraud type determination method based on fraud stages and elements, characterized in that: The method comprises the following steps: a. First, the user's subjective description of the current specific situation is obtained through human-computer dialogue, and the text information is scanned and obtained, and the data obtained after word segmentation and sentence segmentation is encoded; b. According to the six elements of fraud, the encoded word and sentence data are matched with the material library for similarity, and the elements not mentioned in the user's subjective description are supplemented by human-computer inquiry; c. Based on fraud judgment and matching of the most similar fraud cases, the fraud type and the fraud case with the highest similarity are given.
2. The fraud type determination method based on fraud stages and elements according to claim 1 is characterized in that: In step a, the specific operation method of segmenting the scanned text into words and sentences is as follows: a1. First, scan the text input by the user. After scanning, perform word segmentation on the text based on stop words. The word segmentation results are stored in the word segmentation array. Then, the word segmentation array is filtered to retain only Chinese characters. Then, the word segmentation array table is removed from stop words and rare words to finally obtain the required word segmentation array. a2. Encode and calculate the words in the word segmentation array according to the pre-trained model, and then convert the encoded data into a matrix form for storage; a3. The sentence segmentation operation first divides a whole paragraph into multiple complete sentences based on punctuation marks, and then stores them into a sentence array; the sentence array is encoded using a tokenizer, and finally the output array is converted into a coding matrix.
3. The fraud type determination method based on fraud stages and elements according to claim 1 is characterized in that: In step b, the specific operation method of judging the six elements of fraud, the matching of word segmentation and sentence segmentation encoding results, and the supplementary elements is as follows: b1. Through the analysis of a large number of fraud cases, it is found that all fraud processes can be summarized into three stages, namely: fraud approach stage, fraud preparation stage, and fraud implementation stage. In order to make the three stages more specific and accurate, the three stages are divided into six elements, among which the fraud approach is divided into: identity, reason, fraud preparation is divided into: increasing credibility, fraud implementation is divided into: obtaining funds, increasing funds, payment methods; b2. Compare the previously encoded word segmentation codes and sentence segmentation codes with the previously encoded six-element library for similarity, and return the element types with the highest similarity between word segmentation codes and sentence segmentation codes; b3. Then analyze the matched elements, complete the elements that the user did not mention by asking questions, and finally obtain the complete six elements.
4. The fraud type determination method based on fraud stages and elements according to claim 1 is characterized in that: In step c, the specific operation method of fraud judgment and matching the most similar fraud cases is as follows: c1. Check whether the six elements provided by the user are consistent with fraud. If they are, the user will be prompted that the current situation is fraud; c2. Extract features of each element type obtained by similarity matching, and then use the nearest neighbor algorithm to Find the closest case in the case library and finally output the case to the user for viewing.
5. A fraud type determination device based on fraud stages and elements, characterized in that: It includes a memory and one or more processors, wherein the memory stores executable code, and when the one or more processors execute the executable code, it is used to implement the fraud type judgment method based on fraud stages and elements as described in any one of claims 1-4.
6. A computer-readable storage medium, characterized in that: A program is stored thereon, and when the program is executed by a processor, the fraud type determination method based on fraud stages and elements described in any one of claims 1-4 is implemented.
