Data augmentation method, fraud identification method and device

By generating synthetic samples using an adversarial generative network model and then evaluating their quality, the problem of scarce sample data is solved, and the training effect of the classification model is improved.

CN116432015BActive Publication Date: 2026-11-20THE FOURTH PARADIGM BEIJING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111675608.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-31
Publication Date
2026-11-20
Estimated Expiration
2041-12-31

AI Technical Summary

Technical Problem

In machine learning, the scarcity of sample data due to the difficulty in obtaining sample data for a certain category can lead to low-quality classification models.

Method used

A synthetic sample that conforms to the distribution characteristics of the first test sample data is generated by an adversarial generative network model, and the sample in the first test sample set is replaced to construct a second test sample set. The classification model trained on the training sample set is used to predict the two test sample sets, and the synthetic sample is selected based on the prediction results.

Benefits of technology

While increasing the number of samples, the model training effect was improved, ensuring that the quality of the synthesized samples could enhance the model training quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116432015B_ABST
    Figure CN116432015B_ABST
Patent Text Reader

Abstract

A data enhancement method and fraud identification method and device are disclosed. A sample set is divided into a training sample set and a first test sample set. For a first test sample in the first test sample set whose label belongs to a first category, an adversarial generative network model is used to generate a same number of synthetic samples conforming to the data distribution characteristics of the first test sample. The first test sample in the first test sample set is replaced with the synthetic samples to obtain a second test sample set. A classification model trained based on the training sample set is used to predict the first test sample set and the second test sample set respectively to obtain a first prediction result of the first test sample set and a second prediction result of the second test sample set. Based on the first prediction result and the second prediction result, synthetic samples are selected from the second test sample set. In this way, while solving the problem of data scarcity, sample data enhancement can be achieved to improve the model training effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of data processing, and in particular to a data augmentation method, a fraud detection method, and an apparatus. Background Technology

[0002] Machine learning is an inevitable product of the development of artificial intelligence research to a certain stage. It is dedicated to improving the performance of a system by using experience through computational means. In computer systems, "experience" usually exists in the form of "data". Through machine learning algorithms, "models" can be generated from the data. That is, by providing experience data to machine learning algorithms, models can be generated based on this experience data. When faced with new situations, the model will provide corresponding judgments, that is, predict the results.

[0003] When training a classification model using sample data, there is often a situation where sample data for a certain category is difficult to obtain, resulting in a scarcity of sample data for that category, which in turn leads to a low quality of the trained classification model.

[0004] Therefore, a solution is needed to augment sample data of a certain category in a classification scenario in order to solve the problem of data scarcity in that category. Summary of the Invention

[0005] One objective of this disclosure is to provide a scheme that can augment sample data of a certain category in a classification scenario to address the problem of data scarcity in that category.

[0006] According to a first aspect of this disclosure, a data augmentation method is provided, comprising: dividing a sample set into a training sample set and a first test sample set, the first test sample set including first test samples with labels belonging to a first category and second test samples with labels not belonging to the first category; generating, for the first test samples in the first test sample set, the same number of synthetic samples conforming to the data distribution characteristics of the first test samples based on an adversarial generative network model; replacing the first test samples in the first test sample set with the synthetic samples to obtain a second test sample set; using a classification model trained based on the training sample set to predict the first test sample set and the second test sample set respectively, to obtain a first prediction result for the first test sample set and a second prediction result for the second test sample set; and selecting synthetic samples from the second test sample set based on the first prediction result and the second prediction result.

[0007] Optionally, the step of selecting synthetic samples from the second test sample set based on the first prediction result and the second prediction result includes: evaluating the classification model's first discrimination ability on the first test samples and the second test samples in the first test sample set based on the first prediction result; evaluating the classification model's second discrimination ability on the synthetic samples and the second test samples in the second test sample set based on the second prediction result; and selecting synthetic samples from the second test sample set based on the difference between the first discrimination ability and the second discrimination ability.

[0008] Optionally, the step of selecting synthetic samples from the second test sample set based on the difference between the first discrimination ability and the second discrimination ability includes: if the second discrimination ability is greater than or equal to the first discrimination ability, then selecting all synthetic samples from the second test sample set; and / or if the second discrimination ability is less than the first discrimination ability, then selecting a portion of the synthetic samples from the second test sample set.

[0009] Optionally, the step of selecting a portion of synthetic samples from the second test sample set includes: selecting synthetic samples from the second test sample set with the goal of making the classification model's ability to distinguish between the selected synthetic samples and the second test samples greater than or equal to the first distinguishing ability.

[0010] Optionally, the first prediction result includes the probability value of each sample in the first test sample set belonging to the first category. The step of evaluating the classification model's first discrimination ability on the first test samples and the second test samples in the first test sample set based on the first prediction result includes: sorting the samples in the first test sample set based on the magnitude of the probability values; and determining the first discrimination ability based on the number of the first test samples, the number of the second test samples, and the sorting result in the first test sample set.

[0011] Optionally, the second prediction result includes the probability value of each sample in the second test sample set belonging to the second category. The step of evaluating the classification model's second discrimination ability on the synthetic samples and the second test samples in the second test sample set based on the second prediction result includes: sorting the samples in the second test sample set based on the magnitude of the probability values; and determining the second discrimination ability based on the number of synthetic samples in the second test sample set, the number of the second test samples, and the sorting result.

[0012] Optionally, the first discrimination capability or the second discrimination capability is calculated based on the following formula:

[0013]

[0014] positiveclass represents the first category, ins i This indicates the i-th sample in the test sample set whose label belongs to the first category. Let M represent the sorting result of the i-th sample, M represent the number of samples in the test sample set whose labels belong to the first category, and N represent the number of samples in the test sample set whose labels do not belong to the first category.

[0015] Optionally, the method further includes: adding selected synthetic samples to the sample set, and iteratively performing the steps of partitioning the sample set, generating synthetic samples, constructing a second test sample set, predicting the first test sample set and the second test sample set, selecting synthetic samples, and adding the selected synthetic samples to the sample set.

[0016] Optionally, the method further includes using at least a portion of the selected synthetic samples as training samples for training the classification model.

[0017] Optionally, the classification model is a binary classification model used to predict whether a transfer transaction is a fraudulent transaction, and the first test sample is constructed based on transfer transaction data that belongs to fraudulent transactions.

[0018] According to a second aspect of this disclosure, a fraud identification method is proposed, comprising: constructing a prediction sample based on customer transfer transaction data; and using a pre-trained fraud identification model to determine whether the prediction sample belongs to a fraudulent transaction, wherein the fraud identification model is trained using a training sample set, and the positive samples belonging to fraudulent transactions in the training sample set include real positive samples constructed based on collected transfer transaction data belonging to fraudulent transactions and synthetic positive samples obtained by data augmentation of the real positive samples.

[0019] Optionally, the synthesized positive samples are obtained using the data augmentation method described in the first aspect above.

[0020] According to a third aspect of this disclosure, a data augmentation apparatus is proposed, comprising: a partitioning module for partitioning a sample set into a training sample set and a first test sample set, the first test sample set including first test samples with labels belonging to a first category and second test samples with labels not belonging to the first category; a generation module for generating, based on an adversarial generative network model, the same number of synthetic samples conforming to the data distribution characteristics of the first test samples for the first test samples in the first test sample set whose labels belong to the first category; a construction module for replacing the first test samples in the first test sample set with the synthetic samples to obtain a second test sample set; a prediction module for using a classification model trained based on the training sample set to predict the first test sample set and the second test sample set respectively, to obtain a first prediction result for the first test sample set and a second prediction result for the second test sample set; and a selection module for selecting synthetic samples from the second test sample set based on the first prediction result and the second prediction result.

[0021] Optionally, the selection module includes: a first evaluation module, used to evaluate the classification model's first discrimination ability on the first test sample and the second test sample in the first test sample set based on the first prediction result; a second evaluation module, used to evaluate the classification model's second discrimination ability on the synthetic sample and the second test sample in the second test sample set based on the second prediction result; and a selection submodule, used to select synthetic samples from the second test sample set based on the difference between the first discrimination ability and the second discrimination ability.

[0022] Optionally, if the second distinguishing ability is greater than or equal to the first distinguishing ability, the selection submodule selects all synthetic samples in the second test sample set, and / or if the second distinguishing ability is less than the first distinguishing ability, the selection submodule selects a portion of the synthetic samples from the second test sample set.

[0023] Optionally, the selection submodule selects synthetic samples from the second test sample set with the goal of making the classification model's ability to distinguish between the selected synthetic samples and the second test samples greater than or equal to the first distinguishing ability.

[0024] Optionally, the first prediction result includes the probability value of each sample in the first test sample set belonging to the first category, and the first evaluation module includes: a first sorting module, used to sort the samples in the first test sample set based on the magnitude of the probability value; and a first determination module, used to determine the first discrimination ability based on the number of the first test samples in the first test sample set, the number of the second test samples, and the sorting result.

[0025] Optionally, the second prediction result includes the probability value of each sample in the second test sample set belonging to the second category, and the second evaluation module includes: a second sorting module, used to sort the samples in the second test sample set based on the magnitude of the probability value; and a second determination module, used to determine the second discrimination ability based on the number of synthetic samples in the second test sample set, the number of the second test samples, and the sorting result.

[0026] Optionally, the first determining module calculates the first distinguishing ability based on the following formula, or the second determining module calculates the second distinguishing ability based on the following formula.

[0027]

[0028] positiveclass represents the first category, ins i This indicates the i-th sample in the test sample set whose label belongs to the first category. Let M represent the sorting result of the i-th sample, M represent the number of samples in the test sample set whose labels belong to the first category, and N represent the number of samples in the test sample set whose labels do not belong to the first category.

[0029] Optionally, the device further includes: an adding module for adding selected synthetic samples to the sample set; and an iteration module for instructing the partitioning module, the generating module, the constructing module, the selecting module, and the adding module to iteratively perform operations of partitioning the sample set, generating synthetic samples, constructing a second test sample set, predicting the first test sample set and the second test sample set, selecting synthetic samples, and adding the selected synthetic samples to the sample set.

[0030] Optionally, the apparatus further includes a determining module for using at least a portion of the selected synthetic samples as training samples for training the classification model.

[0031] Optionally, the classification model is a binary classification model used to predict whether a transfer transaction is a fraudulent transaction, and the first test sample is constructed based on transfer transaction data that belongs to fraudulent transactions.

[0032] According to a fourth aspect of this disclosure, a fraud detection device is also proposed, comprising: a construction module for constructing a prediction sample based on customer transfer transaction data; and a judgment module for judging whether the prediction sample belongs to a fraudulent transaction using a pre-trained fraud detection model, wherein the fraud detection model is trained using a training sample set, and the positive samples belonging to fraudulent transactions in the training sample set include real positive samples constructed based on collected transfer transaction data belonging to fraudulent transactions and synthetic positive samples obtained by data augmentation of the real positive samples.

[0033] Optionally, the synthesized positive samples are obtained using the data augmentation method described in the first aspect above.

[0034] According to a fifth aspect of this disclosure, a computing device is provided, comprising: a processor; and a memory having executable code stored thereon, which, when executed by the processor, causes the processor to perform the method described in the first aspect above.

[0035] According to a sixth aspect of this disclosure, a computer program product is provided, including executable code that, when executed by a processor of an electronic device, causes the processor to perform the method as described in the first or second aspect above.

[0036] According to a seventh aspect of this disclosure, a non-transitory machine-readable storage medium is provided, on which executable code is stored, which, when executed by a processor of an electronic device, causes the processor to perform the method described in the first or second aspect above.

[0037] This disclosure addresses the data scarcity problem in the first test sample set, where the label belongs to the first category. It generates an equal number of synthetic samples that match the data distribution characteristics of the first test sample based on a generative adversarial network model. The first test samples in the first test sample set are then replaced with these synthetic samples to obtain a second test sample set. A classification model trained on the training sample set is then used to predict the results of these two test sample sets. Based on the prediction results of these two test sets, the synthetic samples are selected. Therefore, while addressing the data scarcity problem in the first category, sample data augmentation is achieved, improving the model training effect. Attached Figure Description

[0038] The above and other objects, features and advantages of this disclosure will become more apparent from the more detailed description of exemplary embodiments thereof taken in conjunction with the accompanying drawings, wherein like reference numerals generally denote like parts.

[0039] Figure 1A schematic flowchart of a data augmentation method according to an embodiment of the present disclosure is shown.

[0040] Figure 2 A schematic flowchart of a fraud identification method according to an embodiment of the present disclosure is shown.

[0041] Figure 3 A schematic diagram of the structure of a data enhancement apparatus according to an embodiment of the present disclosure is shown.

[0042] Figure 4 A schematic diagram of a fraud detection device according to an embodiment of the present disclosure is shown.

[0043] Figure 5 A schematic diagram of the structure of a computing device according to an embodiment of the present disclosure is shown. Detailed Implementation

[0044] Preferred embodiments of the present disclosure will now be described in more detail with reference to the accompanying drawings. While preferred embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that the present disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.

[0045] For sample data of a category where data is relatively scarce in a classification scenario, the problem of data scarcity can be solved by generating synthetic samples based on an adversarial generative network model.

[0046] In principle, synthetic samples generated by generative adversarial networks can be directly used as usable samples. However, the data quality of synthetic samples may not actually be superior to that of the original samples obtained through collection. If synthetic samples are directly used as usable samples, it is impossible to determine whether they actually enhance or weaken the model training quality.

[0047] Therefore, it is necessary to evaluate the quality of synthetic samples in order to select synthetic samples that can enhance the training quality of the model, so that while expanding the number of samples, sample data augmentation can be truly achieved and the model training effect can be improved.

[0048] To achieve the above objectives, this disclosure proposes, based on the existing model training process of splitting the sample set into a training sample set and a test sample set for model training and testing, to generate corresponding synthetic samples based on a generative adversarial network for a certain type of scarce sample in the test sample set, and replace the sample of that type with the synthetic sample. In this way, two test sample sets can be obtained. Then, the classification model obtained by training the model based on the training sample set is used to predict the two test sample sets. Based on the prediction results of the two test sets, it is determined whether the quality of the synthetic sample is better than that of the original sample, and the usable synthetic sample is selected according to the judgment result.

[0049] The details of this disclosure will be further explained below with reference to specific embodiments.

[0050] Figure 1 A schematic flowchart of a data augmentation method according to an embodiment of the present disclosure is shown. Figure 1 The method shown can be implemented in software via a computer program, or it can be executed via a computing device with a specific configuration. Figure 1 The method shown.

[0051] See Figure 1 In step S110, the sample set is divided into a training sample set and a first test sample set.

[0052] Depending on the specific classification problem, real data can be collected to construct a sample set for training the classification model.

[0053] The sample set includes multiple samples, each of which can consist of sample features and sample labels. The sample label is used to characterize the category to which the sample belongs. In a binary classification scenario, the sample label can indicate whether the sample is a positive or negative sample; in a multi-class classification scenario, the sample label can indicate the category to which the sample belongs among multiple (at least three) categories.

[0054] When constructing a sample set, there may be a problem where sample data for a certain category is difficult to obtain, resulting in a smaller number of samples of that category in the constructed sample set. For ease of distinction, the category for which sample data is difficult to obtain can be called the first category.

[0055] Therefore, the sample set can include samples whose labels belong to the first category and samples whose labels do not belong to the first category. In a binary classification scenario, samples whose labels do not belong to the first category all belong to the same category. Furthermore, if samples whose labels belong to the first category are considered positive samples, then samples whose labels do not belong to the first category can be considered negative samples; conversely, if samples whose labels belong to the first category are considered both positive and negative samples, then samples whose labels do not belong to the first category can be considered positive samples. In a multi-class classification scenario, samples whose labels do not belong to the first category belong to at least one of the two categories.

[0056] When dividing the sample set into a training sample set and a test sample set (i.e., the first test sample set), the sample set can be randomly divided into the training sample set and the first test sample set according to a preset ratio.

[0057] Considering the small number of samples in the first category in the sample set, random partitioning might result in the test sample set containing very few or no samples in the first category. Therefore, we can first partition the samples belonging to the first category into training samples and test samples (i.e., the first test samples) according to a first preset ratio (e.g., 8:2), and then partition the samples not belonging to the first category into training samples and test samples (i.e., the second test samples) according to a second preset ratio (e.g., 7:3), thus obtaining the training sample set and the first test sample set. Alternatively, other partitioning methods can be used, such as partitioning samples from each category in the sample set into the training sample set and the test sample set according to a certain ratio.

[0058] Therefore, the first test sample set includes first test samples whose labels belong to the first category and second test samples whose labels do not belong to the first category.

[0059] In step S120, for the first test sample in the first test sample set, an equal number of synthetic samples that conform to the data distribution characteristics of the first test sample are generated based on the adversarial generative network model.

[0060] A Generative Adversarial Network (GAN) model consists of a generator G and a discriminator D. The generator G aims to learn the true distribution of the original data as much as possible, generating synthetic data that the discriminator cannot distinguish from the synthetic data. The discriminator D aims to improve its ability to differentiate between the original and synthetic data. Through mutual optimization, the generator G continuously improves its generation ability, and the discriminator D improves its discrimination ability, ultimately enabling the generator G to generate synthetic data that conforms to the distribution characteristics of the original data. The GAN model can employ the Conditional Tabular GANs (CTGAN) algorithm.

[0061] The number of synthetic samples generated based on the adversarial generative network model is the same as the number of first test samples in the first test sample set. The data distribution characteristics of the synthetic samples conform to those of the first test samples, meaning that the labels of the synthetic samples are the same as those of the first test samples (both are in the first category), and the number, type, and distribution of features in the synthetic samples are consistent with those of the first test samples. That is, if the first test sample has k features, then the synthetic sample also has k features, and the data type and distribution of the k features of the synthetic sample are consistent with those of the k features of the first test sample.

[0062] In step S130, the first test sample in the first test sample set is replaced with a synthetic sample to obtain the second test sample set. The first test sample set consists of the first test sample and the second test sample. The second test sample set consists of the synthetic sample and the second test sample. The second test sample in the first test sample set and the second test sample set are the same.

[0063] In step S140, the classification model trained based on the training sample set is used to predict the first test sample set and the second test sample set respectively, to obtain the first prediction result of the first test sample set and the second prediction result of the second test sample set.

[0064] In step S150, based on the first prediction result and the second prediction result, a synthetic sample is selected from the second test sample set.

[0065] Based on the first and second prediction results, the data quality of the synthetic samples in the second test sample set can be compared with that of the first test samples in the first test sample set. If the comparison result shows that the overall data quality of the synthetic samples is better than or equal to that of the first test samples, then all synthetic samples in the second test sample set can be considered as truly usable samples. Conversely, if the comparison result shows that the overall data quality of the synthetic samples is worse than that of the first test samples, then a portion of the synthetic samples in the second test sample set can be selected as truly usable samples.

[0066] As an example, the accuracy of the classification model can be evaluated based on the first prediction result to obtain a first accuracy; the accuracy of the classification model can be evaluated based on the second prediction result to obtain a second accuracy; by comparing the first accuracy and the second accuracy, it can be determined whether the overall data quality of the synthetic sample is better than that of the first test sample. As an optional but not preferred embodiment, the percentage of correctly predicted results (i.e., results whose predicted results are consistent with the labels of the test samples) in the test sample set relative to the total number of samples in the test sample set (i.e., accuracy rate) can be used as the accuracy evaluation index.

[0067] Given that the purpose of this disclosure is to expand the sample data of the first category to address the data scarcity problem in the first category, i.e., the number of first category samples in the test sample set is inherently small, the accuracy of the classification model trained on the training sample set may be inherently low. Therefore, using accuracy as an evaluation metric may not accurately assess the quality difference between the synthetic samples and the first test samples.

[0068] Therefore, this disclosure proposes a more reasonable method for comparing the data quality of synthetic samples and the first test samples. Specifically, the difference in quality between the synthetic samples and the first test samples is determined by the difference in the classification model's ability to distinguish between samples labeled as belonging to the first category (first test samples or synthetic samples) and samples labeled as not belonging to the first category (second test samples) in both the first and second test sample sets. Thus, the ability to distinguish can be used as an evaluation index for the aforementioned accuracy.

[0069] Specifically, the classification model can be evaluated based on the first prediction result to distinguish between the first test sample and the second test sample in the first test sample set; the classification model can be evaluated based on the second prediction result to distinguish between the synthetic sample and the second test sample in the second test sample set; and a synthetic sample can be selected from the second test sample set based on the difference between the first and second distinguishing abilities.

[0070] Discriminative power characterizes how closely the data distribution of test samples (first test samples or synthetic samples) labeled as belonging to the first category in the test sample set (first test sample set or second test sample set) resembles that of training samples labeled as belonging to the first category in the training sample set. A higher discriminative power indicates that the data distribution of test samples labeled as belonging to the first category in the test sample set is closer to that of training samples labeled as belonging to the first category in the training sample set. Furthermore, since both the test samples in the first test sample set and the training samples in the training sample set are real samples obtained through data collection, the first discriminative power characterizes the classification model's ability to distinguish real samples labeled as belonging to the first category. Therefore, the first discriminative power can serve as a benchmark for judging whether synthetic samples are generally usable.

[0071] If the second discriminative power is greater than or equal to the first discriminative power, it indicates that the data distribution of the synthetic samples is closer overall to the training samples in the training sample set whose labels belong to the first category than the first test samples. In this case, all synthetic samples in the second test sample set can be considered usable.

[0072] If the second discriminative power is less than the first discriminative power, it indicates that the data distribution of the first test sample is, on the whole, closer to the training samples in the training sample set whose labels belong to the first category than the synthetic samples. In this case, not all synthetic samples in the second test sample set are usable. In this situation, some synthetic samples can be selected from the second test sample set.

[0073] To ensure that the data distribution of the selected synthetic samples is closer to that of the training samples in the training sample set whose labels belong to the first category, the goal can be to select synthetic samples from the second test sample set with the objective that the classification model's ability to distinguish between the selected synthetic samples and the second test samples is greater than or equal to the first distinguishing ability. For example, a portion of the synthetic samples can be selected from the second test sample set with the simultaneous objective of maximizing the number of samples selected and ensuring that the distinguishing ability between the selected synthetic samples and the second test samples is greater than or equal to the first distinguishing ability.

[0074] Based on the prediction principle of classification models, regardless of whether the model is binary or multi-class, for each sample, the probability value of the sample belonging to the first class can be obtained. Taking a binary classification model used to predict whether a sample belongs to the first class as an example, for each sample in the test set, the model can predict whether the sample belongs to the first class, obtaining a score for that test sample. This score represents the probability value of the test sample belonging to the first class. Taking a classification model used to predict which of multiple classes (at least three classes) a sample belongs to, including the first class, as an example, for each sample, the model can predict the probability of the sample belonging to each class, obtaining the probability value of the sample belonging to each class.

[0075] Therefore, the first prediction result may include the probability value of each sample in the first test sample set belonging to the first category, and the second prediction result may include the probability value of each sample in the second test sample set belonging to the first category.

[0076] When calculating discriminative power, the samples in the test sample set (either the first or second test sample set) can be ranked based on the probability value of each sample belonging to the first category. The ranking can be done by sorting the samples in ascending (or descending) order of probability values.

[0077] The ranking results reflect the classification model's ability to distinguish whether a sample belongs to the first category (i.e., its classification ability). For example, if the ranking results, based on probability values ​​from smallest to largest, show that the samples ranked higher are those whose labels do not belong to the first category, and the samples ranked lower are those whose labels belong to the first category, then the classification model has a good ability to distinguish whether the samples in the test sample set belong to the first category. Therefore, the discriminative ability can be calculated based on the ranking results.

[0078] As an example, the discriminative ability can be determined based on the number of samples in the test sample set whose labels belong to the first category, the number of samples in the test sample set whose labels do not belong to the first category, and the ranking results. That is, the first discriminative ability can be determined based on the number of first test samples in the first test sample set, the number of second test samples, and the ranking results; similarly, the second discriminative ability can be determined based on the number of synthetic samples in the second test sample set, the number of second test samples, and the ranking results.

[0079] An exemplary formula for calculating discrimination ability can be expressed as follows:

[0080]

[0081] Where positiveclass represents the first category, ins i This represents the i-th sample in the test sample set that belongs to the first category. Let M represent the sorting result of the i-th sample, M represent the number of samples in the test sample set whose labels belong to the first category, and N represent the number of samples in the test sample set whose labels do not belong to the first category.

[0082] After selecting synthetic samples, at least a portion of the selected synthetic samples can be used as training samples for training the classification model, such as as incremental training samples to incrementally train the classification model.

[0083] When the amount of data in the selected synthetic samples is small, the selected synthetic samples can be added to the sample set to obtain a new sample set. The steps of partitioning the sample set (step S110), generating synthetic samples (step S120), constructing a second test sample set (step S130), predicting the first test sample set and the second test sample set (step S140), selecting synthetic samples (step S150), and adding the selected synthetic samples to the sample set are performed iteratively until the amount of data in the selected synthetic samples reaches the expected level, or the newly generated synthetic samples no longer have an effect on improving model training.

[0084] Thus concluded Figure 1 The implementation process of the data augmentation method disclosed herein is described in detail.

[0085] It should be noted that the data augmentation method disclosed herein can be used to augment binary classification scenarios or negative samples, as well as to augment samples of one or more categories in multi-class classification scenarios. Specifically, when augmenting samples of multiple categories in a multi-class classification scenario, each of these categories can be treated as the first category and the above-described method can be applied sequentially. Figure 1The data augmentation method shown achieves the goal of augmenting data across multiple categories by performing data augmentation on a category-by-category basis.

[0086] Application examples

[0087] Taking the enhancement of positive sample data in anti-fraud scenarios as an example, the classification model mentioned above can be used as a binary classification model to predict whether a transfer transaction is a fraudulent transaction. The first test sample that needs to be enhanced is a positive sample constructed based on transfer transaction data that belongs to fraudulent transactions.

[0088] The following describes the specific implementation process of the data augmentation method disclosed herein in a fraud scenario.

[0089] As society and the economy continue to develop and people's lives become increasingly affluent, more and more criminals are using various fraudulent methods to trick victims into transferring their assets through bank transfers, resulting in huge losses.

[0090] The fraud discussed in this embodiment mainly involves transfer transactions through banks or internet financial institutions. This type of fraud is complex and covert, and it also constitutes abnormal transaction behavior of the victims, which is distinct from normal transactions. Therefore, such transactions can be detected and intercepted through manual rules or machine learning models.

[0091] Manual rule-based prediction relies on the professional analysis and summarization of domain experts. Its drawbacks include high labor costs and slow rule updates. Therefore, machine learning models are often preferred for predicting fraudulent behavior. However, in real-world environments, samples identified as fraudulent need to be intercepted by rule-based systems or machine learning models and then manually verified. This type of data is usually limited, and the volume of fraudulent transactions is far less than the volume of normal transactions, resulting in a very small amount of positive sample data representing fraudulent transactions that can be used to train machine learning models.

[0092] For machine learning models, the amount of data determines the upper limit of a model's performance. The more data a model has, the better it tends to perform and the less likely it is to overfit. Conversely, a small amount of data will reduce the model's generalization ability and make it unable to effectively capture fraudulent transaction behavior. Therefore, the insufficient positive sample size in anti-fraud scenarios is a challenge and drawback for effectively using machine learning models in such scenarios.

[0093] The data augmentation methods described above in this disclosure can effectively address the problem of insufficient positive sample size in anti-fraud scenarios. The overall implementation process of the solution is as follows.

[0094] Step 1: Construct sample data

[0095] Relevant data is collected in the anti-fraud production system to construct positive and negative training samples. This step is a common step in traditional machine learning, and the data processing yields a dataset of positive and negative samples used to train the model.

[0096] The goal of anti-fraud scenario modeling is to predict whether a customer's transfer transaction is fraudulent, which is a binary classification problem. Positive and negative samples are constructed using customer transaction data, with positive sample labels derived from an expert rule system. When a customer's transfer transaction is found to be abnormal and matches an expert rule, the transaction is blocked and suspended by the system. Subsequently, business personnel will follow up with the customer via phone, or the customer will proactively contact the system to confirm whether the transaction is fraudulent.

[0097] The sample is defined as a customer's transfer transaction record, labeled as <transaction serial number, tag>. Among them, positive samples are defined as transaction records that were suspended by the expert rules system and confirmed as fraudulent by the customer after a follow-up call by business personnel, denoted as <transaction serial number, 1>; negative samples are defined as transaction records that were suspended by the expert rules system and confirmed as non-fraudulent by the customer after a follow-up call by business personnel, as well as other transactions that were not suspended by the expert rules system.

[0098] After defining the samples, features need to be concatenated to enrich the sample's features so that the model can more easily learn useful information. Typically, a "Customer Attribute Feature Table" and a "Customer Behavior Feature Table" are used. The "Customer Attribute Feature Table" mainly describes customer attribute information, such as "age," "gender," "marital status," and "education level." The "Customer Behavior Feature Table" mainly describes customer transaction behavior information, such as transaction time, transaction channel (online banking / mobile banking), transaction amount, and transaction device information (IP / MAC). For example, Table 1 shows the sample data after data concatenation:

[0099] Transaction serial number Trading hours Transaction amount Transaction channels age gender Education level Label A 2020 / 9 / 1 10000 1 25 1 1 1 B 2020 / 9 / 1 5000 0 37 1 0 1 C 2020 / 9 / 2 20000 1 22 0 1 1 D 2020 / 9 / 10 25000 2 45 1 1 0 E 2020 / 9 / 15 3000 0 33 0 2 0 F 2020 / 9 / 16 100 1 38 0 3 1

[0100] Table 1

[0101] Step 2: Synthesize positive sample data using a generative adversarial network model.

[0102] A Generative Adversarial Network (CTGAN) model capable of synthesizing structured data can be used. The original positive sample data `pos` is randomly divided into two positive sample datasets, `pos1` and `pos2`, in an 8:2 ratio. Each positive sample dataset has k features {F1, F2, ..., Fk}. The CTGAN model is trained using the fraudulent positive sample data `pos2`. The model outputs the same number of synthetic positive sample datasets `fake_p` with k features {F1, F2, ..., Fk}. The data type and distribution of the k features in `fake_p` are consistent with those in `pos2`.

[0103] Step 3: Dataset Partitioning

[0104] Since the amount of negative sample data is much larger than that of positive sample data, we need to randomly sample negative samples to obtain m data points. Then, we use 70% of the sampled negative samples as training negative samples (neg_train, data volume m * 0.7) and 30% of the sampled negative samples as test negative samples (neg_test, data volume m * 0.3).

[0105] pos1 and neg_train are merged into the training set train, pos2 and neg_test are merged into the test set test1, and fake_p and neg_test are merged into the test set test2. Table 2 shows the data sources for different datasets. pos2 corresponds to the first test sample mentioned above, fake_p corresponds to the synthetic sample mentioned above, neg_test corresponds to the second test sample mentioned above, test1 corresponds to the first test sample set mentioned above, and test2 corresponds to the second test sample set mentioned above.

[0106] Dataset source use train pos1+neg_train training set test1 pos2+neg_test test set test2 fdke_p+neg_test test set

[0107] Table 2

[0108] Step 4: Model Training and Prediction

[0109] The GBDT model is trained using the training set train to obtain the model model. The model is then used to predict whether the samples in the test sets test1 and test2 belong to fraudulent transactions, and the prediction results pred1 and pred2 are obtained.

[0110] The prediction results include a predicted score for each sample. Based on these scores, the AUC value predicted by the two models can be calculated. The AUC value can be calculated using the formula for discriminative power mentioned above; that is, the AUC calculation formula can be expressed as follows:

[0111]

[0112] In this embodiment, Let represent the index of the i-th sample, sorted by probability score from smallest to largest, and placed at the i-th position; M and N are the number of positive samples and the number of negative samples, respectively. This means summing the indices of all positive samples.

[0113]

[0114] Table 3 shows the prediction results obtained by the model on a test set consisting of five test samples. Table 4 shows the results of Table 3 sorted by score from smallest to largest. The number of positive samples M = 3, the number of negative samples N = 2, and the sorted sequence numbers of the 3 positive samples are 1, 3, and 4. Therefore, according to the AUC calculation formula, we can obtain:

[0115]

[0116] Based on the above calculation method, the AUC values ​​of the model's prediction results pred1 and pred2 for the two test sets are calculated as a1 and a2, respectively.

[0117] Step 5: Data Filtering and Integration Update

[0118] Compare the model prediction AUC values ​​obtained in step 4: a1 and a2.

[0119] 1. If a2≥a1, it means that the distribution of the synthesized positive sample fake_p is closer to that of the original positive sample pos1 than pos2. The synthesized positive sample data fake_p in the test set test2 can be merged with the original positive sample data pos to form a new positive sample data pos_set.

[0120] 2. If a2 < a1, indicating that pos2 is closer to the distribution of the original positive sample pos1 than the synthetic positive sample fake_p, then the prediction result pred2 of mode_2 is sorted according to the predicted score, and the AUC value is calculated to be equal to a2. The synthetic positive sample fake_p in the cut-off test set data test2 is then fused with the original positive sample data pos. Detailed steps are illustrated below:

[0121] ID label score rank C 1 0.12 1 A 0 0.2 2 D 1 0.4 3 B 0 0.7 4 E 1 0.9 5 F 0 0.92 6 G 0 0.95 7

[0122] Table 5

[0123] Assuming Table 5 shows the prediction result pred2 of the test set test2 constructed based on synthetic positive samples, the AUC value obtained according to the AUC calculation formula in step 4 is 0.5, i.e., a2 = 0.5. Assuming the AUC value of the prediction result pred1 of the test set test1 is 0.83, i.e., a1 = 0.83. Since a2 < a1, the samples in the test set test2 can be sorted from smallest to largest based on pred2, and data can be truncated according to the sorting results. The AUC at the truncated position is calculated. When the calculated AUC value is greater than or equal to 0.83, the synthetic positive samples from the calculated data are selected for fusion.

[0124] As shown in Table 5, when the data is truncated to rank=5, the truncated data is all the data between rank=1 and rank=5, and the AUC value is 0.83. At this time, we select the synthetic positive samples C, D and E in the truncated data and merge them with the original positive sample data to form a new positive sample data pos_set.

[0125] Step 6: Data Repetition Augmentation

[0126] When the amount of synthesized positive sample data obtained in step 5 is small, the fused positive sample data pos_set can be used as the original positive sample data pos, and then steps 2 to 5 can be repeated until the amount of positive sample data no longer improves the model training effect or reaches the expected amount.

[0127] In summary, to address the issue of insufficient positive samples representing fraud in anti-fraud scenarios, this embodiment constructs sample data based on collected real transaction data. It then uses an adversarial generative network model capable of synthesizing structured data to learn the true distribution of the original positive sample data and generate synthetic positive sample data conforming to the same distribution. Finally, to ensure that the synthetic positive sample data effectively improves model training performance, this embodiment also designs a strategy to fuse the synthetic positive sample data with the original positive samples. This filters out qualified synthetic data, reduces the noise impact of low-quality synthetic data, and expands the sample size available for machine learning model training after fusing the synthetic and original data. This reduces the risk of overfitting during model training and effectively improves model training and prediction performance.

[0128] Figure 2 A schematic flowchart of a fraud identification method according to an embodiment of the present disclosure is shown. Figure 2 The method shown can be implemented in software via a computer program, or it can be executed via a computing device with a specific configuration. Figure 2 The method shown.

[0129] See Figure 2 In step S210, a prediction sample is constructed based on the customer's transfer transaction data.

[0130] Customer transfer transaction data can refer to transfer transaction data obtained before the user's transfer transaction takes effect (i.e., before the transfer transaction is completed), or it can refer to transfer transaction data obtained after the user's transfer transaction takes effect (i.e., after the transfer transaction is completed).

[0131] Customer transfer transaction data may include, but is not limited to, attribute information and behavioral information of both the transferor and transferee. Attribute information may include, but is not limited to, "age," "gender," "marital status," and "education level." Behavioral information may include information describing the customer's transaction behavior, such as, but is not limited to, transaction time, transaction channel (online banking / mobile banking), transaction amount, and transaction device information (IP / MAC).

[0132] Customer transfer transaction data can be processed (feature extraction and / or concatenation) to construct prediction samples based on the obtained feature data. That is, the prediction sample can consist of multiple features.

[0133] In step S220, a pre-trained fraud detection model is used to determine whether the predicted sample belongs to a fraudulent transaction.

[0134] Fraud detection models can be trained using a training sample set. Positive samples belonging to fraudulent transactions in the training sample set include real positive samples and synthetic positive samples obtained by data augmentation of real positive samples. Real positive samples are constructed based on collected transfer transaction data belonging to fraudulent transactions. As an example, synthetic positive samples can be obtained by combining the above... Figure 1 The data augmentation method shown is used to obtain the data.

[0135] The data augmentation method disclosed herein can also be implemented as a data augmentation device. Figure 2 A schematic diagram of a data enhancement apparatus according to an embodiment of the present disclosure is shown. The functional units of the data enhancement apparatus can be implemented by hardware, software, or a combination of hardware and software that implement the principles of the present disclosure. Those skilled in the art will understand that... Figure 2 The described functional units can be combined or divided into sub-units to achieve the principles of the invention described above. Therefore, the description herein can support any possible combination, division, or further limitation of the functional units described herein.

[0136] The following is a brief description of the functional units that a data augmentation device can have and the operations that each functional unit can perform. For details, please refer to the relevant descriptions above, which will not be repeated here.

[0137] See Figure 3 The data augmentation device 300 includes a partitioning module 310, a generation module 320, a construction module 330, a prediction module 340, and a selection module 350.

[0138] The partitioning module 310 divides the sample set into a training sample set and a first test sample set. The first test sample set includes first test samples with labels belonging to a first category and second test samples with labels not belonging to the first category. The generation module 320 generates an equal number of synthetic samples that conform to the data distribution characteristics of the first test samples based on an adversarial generative network model, for each first test sample in the first test sample set whose labels belong to the first category. The construction module 330 replaces the first test samples in the first test sample set with synthetic samples to obtain the second test sample set. The prediction module 340 uses a classification model trained on the training sample set to predict the first test sample set and the second test sample set respectively, obtaining a first prediction result for the first test sample set and a second prediction result for the second test sample set. The selection module 350 selects synthetic samples from the second test sample set based on the first and second prediction results.

[0139] The selection module 350 may include a first evaluation module, a second evaluation module, and a selection submodule. The first evaluation module is used to evaluate the classification model's first ability to distinguish between first and second test samples in the first test sample set based on the first prediction result. The second evaluation module is used to evaluate the classification model's second ability to distinguish between synthetic samples and second test samples in the second test sample set based on the second prediction result. The selection submodule is used to select synthetic samples from the second test sample set based on the difference between the first and second distinguishing abilities.

[0140] If the second discrimination ability is greater than or equal to the first discrimination ability, the selection submodule selects all synthetic samples from the second test sample set, and / or if the second discrimination ability is less than the first discrimination ability, the selection submodule selects a portion of the synthetic samples from the second test sample set.

[0141] When selecting synthetic samples from the second test sample set, the selection submodule can select synthetic samples from the second test sample set with the goal of making the classification model's ability to distinguish between the selected synthetic samples and the second test samples greater than or equal to the first distinguishing ability.

[0142] The first prediction result may include the probability value of each sample in the first test sample set belonging to the first category. The first evaluation module includes a first ranking module and a first determination module. The first ranking module is used to rank the samples in the first test sample set based on the magnitude of the probability values. The first determination module is used to determine the first discrimination ability based on the number of first test samples, the number of second test samples, and the ranking result in the first test sample set.

[0143] The second prediction result includes the probability value of each sample in the second test sample set belonging to the second category. The second evaluation module includes a second ranking module and a second determination module. The second ranking module is used to rank the samples in the second test sample set based on the magnitude of the probability values. The second determination module is used to determine the second discrimination ability based on the number of synthetic samples in the second test sample set, the number of second test samples, and the ranking result. The specific calculation formula for the discrimination ability can be found in the relevant description above.

[0144] The data augmentation device 300 may further include an adding module and an iterating module. The adding module is used to add selected synthetic samples to the sample set; the iterating module is used to instruct the partitioning module 310, the generation module 320, the construction module 330, the selection module 340, and the adding module 350 to iteratively execute the steps of partitioning the sample set, generating synthetic samples, constructing a second test sample set, predicting the first and second test sample sets, selecting synthetic samples, and adding the selected synthetic samples to the sample set.

[0145] The data augmentation device 300 may further include a determination module. The determination module is used to use at least a partially selected synthetic sample as training samples for training the classification model.

[0146] The fraud detection method disclosed herein can also be implemented as a fraud detection device. Figure 4 A schematic diagram of a fraud detection device according to an embodiment of the present disclosure is shown. The functional units of the fraud detection device can be implemented by hardware, software, or a combination of hardware and software that implement the principles of the present disclosure. Those skilled in the art will understand that... Figure 4 The described functional units can be combined or divided into sub-units to achieve the principles of the invention described above. Therefore, the description herein can support any possible combination, division, or further limitation of the functional units described herein.

[0147] The following is a brief explanation of the functional units that a fraud detection device may have and the operations that each functional unit can perform. For details, please refer to the relevant descriptions above, which will not be repeated here.

[0148] See Figure 4 The fraud detection device 400 includes a construction module 410 and a judgment module 420.

[0149] The construction module 410 is used to construct prediction samples based on the customer's transfer transaction data.

[0150] The judgment module 420 is used to determine whether a predicted sample belongs to a fraudulent transaction using a pre-trained fraud detection model. The fraud detection model is trained using a training sample set. Positive samples belonging to fraudulent transactions in the training sample set include real positive samples constructed based on collected transfer transaction data belonging to fraudulent transactions, and synthetic positive samples obtained by data augmentation of real positive samples. As an example, a synthetic positive sample can be obtained by combining the above... Figure 1 The data augmentation method shown is used to obtain the data.

[0151] Figure 5 A schematic diagram of a computing device according to an embodiment of the present invention is shown, which can be used to implement the above-described data augmentation method or fraud detection method.

[0152] See Figure 5 The computing device 500 includes a memory 510 and a processor 520.

[0153] Processor 520 may be a multi-core processor or may contain multiple processors. In some embodiments, processor 520 may include a general-purpose main processor and one or more special-purpose coprocessors, such as a graphics processing unit (GPU), a digital signal processor (DSP), etc. In some embodiments, processor 520 may be implemented using custom circuitry, such as an application-specific integrated circuit (ASIC) or a field-programmable gate array (FPGA).

[0154] Memory 510 may include various types of storage units, such as system memory, read-only memory (ROM), and permanent storage devices. ROM may store static data or instructions required by the processor 520 or other modules of the computer. Permanent storage devices may be read-write storage devices. Permanent storage devices may be non-volatile storage devices that retain stored instructions and data even when the computer is powered off. In some embodiments, permanent storage devices use mass storage devices (e.g., magnetic or optical disks, flash memory) as permanent storage devices. In other embodiments, permanent storage devices may be removable storage devices (e.g., floppy disks, optical drives). System memory may be a read-write storage device or a volatile read-write storage device, such as dynamic random access memory. System memory may store some or all of the instructions and data required by the processor during operation. Furthermore, memory 510 may include any combination of computer-readable storage media, including various types of semiconductor memory chips (DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), and disks and / or optical disks may also be used. In some embodiments, memory 510 may include a removable storage device that is readable and / or writable, such as a laser disc (CD), a read-only digital multifunction optical disc (e.g., DVD-ROM, dual-layer DVD-ROM), a read-only Blu-ray disc, an ultra-high-density optical disc, a flash memory card (e.g., SD card, mini SD card, Micro-SD card, etc.), a magnetic floppy disk, etc. Computer-readable storage media do not contain carrier waves or transient electronic signals transmitted wirelessly or via wired connections.

[0155] The memory 510 stores executable code, which, when processed by the processor 520, can enable the processor 520 to execute the data augmentation method or fraud detection method described above.

[0156] The data augmentation method, fraud detection apparatus, and computing device according to the present invention have been described in detail above with reference to the accompanying drawings.

[0157] Furthermore, the method according to the present invention can also be implemented as a computer program or computer program product, which includes computer program code instructions for performing the steps defined in the above-described method of the present invention.

[0158] Alternatively, the present invention can also be implemented as a non-transitory machine-readable storage medium (or computer-readable storage medium, or machine-readable storage medium) storing executable code (or computer program, or computer instruction code) thereon, which, when executed by a processor of an electronic device (or computing device, server, etc.), causes the processor to perform the various steps of the method described above according to the present invention.

[0159] Those skilled in the art will also understand that the various exemplary logic blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein can be implemented as electronic hardware, computer software, or a combination of both.

[0160] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems and methods according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0161] The various embodiments of the present invention have been described above. These descriptions are exemplary and not exhaustive, nor are they limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen to best explain the principles, practical application, or improvement of the technology in the market, or to enable others skilled in the art to understand the embodiments disclosed herein.

Claims

1. A data augmentation method, comprising: The sample set is divided into a training sample set and a first test sample set. The first test sample set includes first test samples with labels belonging to the first category and second test samples with labels not belonging to the first category. The first test samples are samples to be expanded. The training sample set and the first test sample set are constructed based on transfer transaction records belonging to fraudulent transactions. The transfer transaction records include customer attribute features and customer behavior features. The customer behavior features include transaction time, transaction channel, transaction amount, and transaction device information. For the first test sample in the first test sample set, generate the same number of synthetic samples that conform to the data distribution characteristics of the first test sample based on the adversarial generative network model; The first test sample in the first test sample set is replaced with the synthetic sample to obtain the second test sample set; The classification model trained based on the training sample set is used to predict the first test sample set and the second test sample set respectively, to obtain the first prediction result of the first test sample set and the second prediction result of the second test sample set. Based on the first prediction result and the second prediction result, a synthetic sample is selected from the second test sample set.

2. The method according to claim 1, wherein, The step of selecting synthetic samples from the second test sample set based on the first prediction result and the second prediction result includes: Based on the first prediction result, evaluate the classification model's first ability to distinguish between the first test sample and the second test sample in the first test sample set; The classification model is evaluated based on the second prediction result to assess its second ability to distinguish between the synthetic samples and the second test samples in the second test sample set. Based on the difference between the first discrimination ability and the second discrimination ability, a synthetic sample is selected from the second test sample set.

3. The method according to claim 2, wherein, The step of selecting synthetic samples from the second test sample set based on the difference between the first distinguishing ability and the second distinguishing ability includes: If the second discriminative power is greater than or equal to the first discriminative power, then all synthetic samples in the second test sample set are selected; and / or If the second distinguishing ability is less than the first distinguishing ability, then a portion of the synthetic samples are selected from the second test sample set.

4. The method according to claim 3, wherein, The steps for selecting a portion of synthetic samples from the second test sample set include: To achieve the goal of making the classification model's ability to distinguish between the selected synthetic samples and the second test samples greater than or equal to the first distinguishing ability, synthetic samples are selected from the second test sample set.

5. The method according to claim 2, wherein, The first prediction result includes the probability value of each sample in the first test sample set belonging to the first category. The step of evaluating the classification model's first discrimination ability on the first test samples and the second test samples in the first test sample set based on the first prediction result includes: The samples in the first test sample set are sorted based on their probability values. The first discrimination ability is determined based on the number of the first test samples, the number of the second test samples, and the sorting results in the first test sample set.

6. The method according to claim 2, wherein, The second prediction result includes the probability value of each sample in the second test sample set belonging to the second category. The step of evaluating the classification model's second discrimination ability on the synthetic samples and the second test samples in the second test sample set based on the second prediction result includes: The samples in the second test sample set are sorted based on their probability values. The second discrimination ability is determined based on the number of synthetic samples in the second test sample set, the number of the second test samples, and the sorting results.

7. The method according to claim 5 or 6, wherein, The first discrimination ability or the second discrimination ability is calculated based on the following formula. Indicates the first category, This indicates that the label in the test sample set belongs to the first category. Sample, Indicates the first The sorting results of the samples, This indicates the number of samples in the test sample set whose labels belong to the first category. This indicates the number of samples in the test sample set whose labels do not belong to the first category.

8. The method according to claim 1, further comprising: The selected synthetic samples are added to the sample set, and the steps of partitioning the sample set, generating synthetic samples, constructing a second test sample set, predicting the first test sample set and the second test sample set, selecting synthetic samples, and adding the selected synthetic samples to the sample set are executed iteratively.

9. The method according to claim 1, further comprising: At least a portion of the selected synthetic samples are used as training samples for training the classification model.

10. The method according to claim 1, wherein, The classification model is a binary classification model used to predict whether a transfer transaction is a fraudulent transaction.

11. A fraud detection method, comprising: Construct a prediction sample based on customer transfer transaction data; The pre-trained fraud detection model is used to determine whether the predicted sample belongs to a fraudulent transaction. The fraud detection model is trained using a training sample set. Positive samples belonging to fraudulent transactions in the training sample set include real positive samples and synthetic positive samples obtained by data augmentation of the real positive samples. The real positive samples are constructed based on the collected transfer transaction data belonging to fraudulent transactions. The synthesized positive sample is obtained using the data augmentation method according to any one of claims 1 to 10.

12. A data augmentation device, comprising: The partitioning module is used to divide the sample set into a training sample set and a first test sample set. The first test sample set includes first test samples with labels belonging to the first category and second test samples with labels not belonging to the first category. The first test samples are samples to be expanded. The training sample set and the first test sample set are constructed based on transfer transaction records belonging to fraudulent transactions. The transfer transaction records include customer attribute features and customer behavior features. The customer behavior features include transaction time, transaction channel, transaction amount, and transaction device information. The generation module is used to generate the same number of synthetic samples that conform to the data distribution characteristics of the first test samples based on the adversarial generative network model for the first test samples whose labels belong to the first category in the first test sample set. A construction module is used to replace the first test sample in the first test sample set with the synthetic sample to obtain the second test sample set; The prediction module is used to use a classification model trained based on the training sample set to predict the first test sample set and the second test sample set respectively, and to obtain a first prediction result for the first test sample set and a second prediction result for the second test sample set. The selection module is used to select synthetic samples from the second test sample set based on the first prediction result and the second prediction result.

13. The apparatus according to claim 12, wherein, The selection module includes: The first evaluation module is used to evaluate the classification model’s first ability to distinguish between the first test sample and the second test sample in the first test sample set based on the first prediction result. The second evaluation module is used to evaluate the classification model's second discrimination ability against the synthetic samples and the second test samples in the second test sample set based on the second prediction result; A selection submodule is used to select synthetic samples from the second test sample set based on the difference between the first discrimination ability and the second discrimination ability.

14. The apparatus according to claim 13, wherein, If the second distinguishing ability is greater than or equal to the first distinguishing ability, then the selection submodule selects all synthetic samples from the second test sample set, and / or If the second distinguishing ability is less than the first distinguishing ability, then the selection submodule selects a portion of the synthetic samples from the second test sample set.

15. The apparatus according to claim 14, wherein, The selection submodule selects synthetic samples from the second test sample set with the goal of making the classification model's ability to distinguish between the selected synthetic samples and the second test samples greater than or equal to the first distinguishing ability.

16. The apparatus according to claim 13, wherein, The first prediction result includes the probability value of each sample in the first test sample set belonging to the first category, and the first evaluation module includes: The first sorting module is used to sort the samples in the first test sample set based on the magnitude of the probability value; The first determining module is used to determine the first discrimination ability based on the number of the first test samples in the first test sample set, the number of the second test samples, and the sorting result.

17. The apparatus according to claim 13, wherein, The second prediction result includes the probability value of each sample in the second test sample set belonging to the second category, and the second evaluation module includes: The second sorting module is used to sort the samples in the second test sample set based on the magnitude of the probability value; The second determining module is used to determine the second discrimination ability based on the number of synthetic samples in the second test sample set, the number of the second test samples, and the sorting result.

18. The apparatus according to claim 16 or 17, wherein, The first determining module calculates the first distinguishing ability based on the following formula, or the second determining module calculates the second distinguishing ability based on the following formula. Indicates the first category, This indicates that the label in the test sample set belongs to the first category. Sample, Indicates the first The sorting results of the samples, This indicates the number of samples in the test sample set whose labels belong to the first category. This indicates the number of samples in the test sample set whose labels do not belong to the first category.

19. The apparatus of claim 12, further comprising: An add module is used to add selected synthetic samples to the sample set; The iteration module is used to instruct the partitioning module, the generation module, the construction module, the selection module, and the addition module to iteratively perform the operations of partitioning the sample set, generating synthetic samples, constructing a second test sample set, predicting the first test sample set and the second test sample set, selecting synthetic samples, and adding the selected synthetic samples to the sample set.

20. The apparatus of claim 12, further comprising: A determination module is used to use at least a portion of the selected synthetic samples as training samples for training the classification model.

21. The apparatus according to claim 12, wherein, The classification model is a binary classification model used to predict whether a transfer transaction is a fraudulent transaction. The first test sample is constructed based on transfer transaction data that are fraudulent transactions.

22. A fraud detection device, comprising: The construction module is used to construct prediction samples based on customer transfer transaction data; The judgment module is used to determine whether the predicted sample belongs to a fraudulent transaction using a pre-trained fraud detection model. The fraud detection model is trained using a training sample set. Positive samples belonging to fraudulent transactions in the training sample set include real positive samples constructed based on collected transfer transaction data belonging to fraudulent transactions and synthetic positive samples obtained by data augmentation of the real positive samples. The synthesized positive sample is obtained using the data augmentation method according to any one of claims 1 to 10.

23. A computing device, comprising: processor; as well as A memory having executable code stored thereon, which, when executed by the processor, causes the processor to perform the method as described in any one of claims 1 to 11.

24. A computer program product comprising executable code that, when executed by a processor of an electronic device, causes the processor to perform the method as claimed in any one of claims 1 to 11.

25. A non-transitory machine-readable storage medium having executable code stored thereon, which, when executed by a processor of an electronic device, causes the processor to perform the method as described in any one of claims 1 to 11.