Data processing methods, risk identification methods, computer equipment, storage media
By merging the first sample set and the second sample set to form a third sample set as input, the overfitting problem caused by the scarcity of sample data is solved, and the identification coverage and effect of the risk identification model in the e-commerce platform are improved.
Patent Information
- Application Number
- CN201910464550.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-05-30
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2039-05-30
AI Technical Summary
When sample data is scarce, machine learning models are prone to overfitting, leading to low recognition coverage, especially in risk identification models used to prevent and control counterfeit goods, contraband, and fraud risks in e-commerce platforms. , there are few historical black samples, resulting in unsatisfactory model training results.
By obtaining the first sample set and at least one second sample set used to train the first recognition model, it is determined that the similarity data between the two meets the preset requirements, and the two are merged to form a replacement for the first sample set. The third sample set is used as the model input to supplement the sample data, avoid overfitting, and improve the recognition coverage of the model.
It effectively avoids the over-fitting problem caused by too few samples, improves the recognition coverage and recognition effect of the model, and enables the model to better identify data similar to the second sample set.
Smart Images

Figure CN112016579B
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and specifically to a data processing method, a risk identification method, a computer device, and a computer-readable storage medium. Background Art
[0002] With the development of computer technology, artificial intelligence and machine learning are increasingly being used in practice. Machine learning is a method in which a computer uses existing data to train a model and use the model to infer new instances. Therefore, the training process requires historical sample data, and the sample data will have a great impact on the prediction effect of the final model.
[0003] In practice, for some businesses, historical samples are relatively scarce. For example, in e-commerce platforms, in order to prevent and control risks such as counterfeit goods, contraband, and fraud, and to ensure business security, historical black and white samples are usually collected and risk identification models are trained to prevent and control risks. However, some platforms have relatively few historical black samples.
[0004] The applicant has found through research that if the sample size is too small, the hypothesis will become overly strict in order to obtain a consistent hypothesis. In other words, a hypothesis can obtain a better fit than other hypotheses on the training data, but cannot fit the data well on the data set outside the training data, that is, overfitting occurs. In short, during the model training process, too few samples will lead to overfitting of the model, which in turn leads to low coverage of the model for inference. Summary of the invention
[0005] In view of the above problems, the present application is proposed to provide a data processing method, a risk identification method, a computer device, and a computer-readable storage medium that overcome the above problems or at least partially solve the above problems.
[0006] According to one aspect of the present application, a data processing method is provided, comprising:
[0007] Acquire a first sample set for training a first recognition model, and at least one second sample set, wherein the at least one second sample set is used for training a second recognition model;
[0008] Determining that similarity data between the first sample set and at least one second sample set meets preset requirements;
[0009] The first sample set and at least one second sample set are combined to obtain a third sample set replacing the first sample set as an input for training the first recognition model.
[0010] Optionally, the determining whether the similarity data between the first sample set and at least one second sample set meets a preset requirement includes:
[0011] Clustering the first samples in the first sample set and the second samples in the second sample set;
[0012] Determining similarity data between the first sample set and the second sample set according to the clustering result;
[0013] Determine whether the similarity data meets preset requirements.
[0014] Optionally, determining similarity data between the first sample set and the second sample set according to the clustering result includes:
[0015] The ratio of the number of first samples belonging to the same class as the second sample in the clustering result to the total number of the first samples is calculated as the similarity data.
[0016] Optionally, before clustering the first samples in the first sample set and the second samples in the second sample set, the method further includes:
[0017] Merging the first sample set and the second sample set;
[0018] The first sample and the second sample are normalized and / or vectorized.
[0019] Optionally, acquiring a first sample set for training a first recognition model and at least one second sample set comprises:
[0020] Acquire the first sample set from a first data system;
[0021] The second sample set is obtained from a second data system.
[0022] Optionally, before acquiring the second sample set from the second data system, the method further includes:
[0023] A second data system matching the first data system is selected according to the system attribute of the first data system.
[0024] Optionally, after determining that the similarity data between the first sample set and at least one second sample set meets a preset requirement, the method further includes:
[0025] Acquire a fourth sample set for training a fourth recognition model and a fifth sample set for training a fifth recognition model;
[0026] Determining that the fourth sample set matches the first sample set, and the fifth sample set matches the second sample set;
[0027] The fourth sample set and the fifth sample set are combined to obtain a sixth sample set replacing the fourth sample set as an input for training the fourth recognition model.
[0028] Optionally, before determining that the similarity data between the first sample set and at least one second sample set meets a preset requirement, the method further includes:
[0029] Determine feature data of the first sample set and feature data of the second sample set;
[0030] The determining that the fourth sample set matches the first sample set, and the fifth sample set matches the second sample set includes:
[0031] Determining feature data of the fourth sample set and feature data of the fifth sample set;
[0032] It is determined that the feature data of the fourth sample set matches the feature data of the first sample set, and the feature data of the fifth sample set matches the feature data of the second sample set, then the fourth sample set matches the first sample set, and the fifth sample set matches the second sample set.
[0033] Optionally, before merging the fourth sample set and the fifth sample set to obtain a sixth sample set replacing the fourth sample set as input for training the fourth recognition model, the method further includes:
[0034] It is determined that the sample attributes of the fourth sample set and the sample attributes of the fifth sample set meet preset attribute conditions.
[0035] Optionally, after merging the first sample set and the second sample set to obtain a third sample set replacing the first sample set, the method further includes:
[0036] Adding first label data to the third sample set;
[0037] providing a seventh sample set corresponding to the third sample set, and adding second label data to the seventh sample set;
[0038] The third sample set and the seventh sample set are combined to obtain an eighth sample set, which is used as an input of a supervised learning network to train the first recognition model.
[0039] Optionally, after combining the third sample set and the seventh sample set to obtain an eighth sample set and using the eighth sample set as an input of a supervised learning network to train the first recognition model, the method includes:
[0040] The eighth sample set is subjected to at least one of the following processing: normalization processing, vectorization processing, outlier smoothing processing, missing value processing, and feature screening processing.
[0041] Optionally, after merging the first sample set and the second sample set to obtain a third sample set replacing the first sample set as an input for training the first recognition model, the method further includes:
[0042] Determining that a first recognition model trained with the third sample set as input meets the evaluation requirements;
[0043] The first recognition model is provided.
[0044] According to one aspect of the present application, a risk identification method is provided, comprising:
[0045] A first risk identification model is obtained by training a third sample set replacing the first sample set as input, wherein the third sample set is obtained by obtaining a first sample set used for training the first risk identification model and at least one second sample set, wherein the at least one second sample set is used for training the second risk identification model, determining that similarity data between the first sample set and the at least one second sample set meets a preset requirement, and merging the first sample set and the second sample set;
[0046] The first risk identification model is used to identify risk data.
[0047] Optionally, the first recognition model and the second recognition model are the same recognition model.
[0048] According to another aspect of the present application, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements one or more of the above methods when executing the computer program.
[0049] According to another aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, one or more of the above methods are implemented.
[0050] According to an embodiment of the present application, a first sample set for training a first recognition model and at least one second sample set are obtained, wherein the at least one second sample set is used to train a second recognition model; it is determined that the similarity data between the first sample set and the at least one second sample set meets preset requirements; the first sample set and the at least one second sample set are merged to obtain a third sample set that replaces the first sample set as input for training the first recognition model, thereby supplementing the samples used to train the first recognition model, avoiding the overfitting problem of the first recognition model due to the small number of samples in the first sample set, and then improving the recognition coverage of the first recognition model and improving the recognition effect.
[0051] Furthermore, by selecting a second data system that matches the first data system based on the system properties of the first data system, the similarity data between the first sample set and the second sample set is more likely to meet the preset requirements, thereby increasing the probability that the second sample set and the first sample set can be merged.
[0052] Furthermore, by obtaining a fourth sample set for training a fourth recognition model and a fifth sample set for training a fifth recognition model, it is determined that the fourth sample set matches the first sample set, and that the fifth sample set matches the second sample set, and the fourth sample set and the fifth sample set are merged to obtain a sixth sample set that replaces the fourth sample set as input for training the fourth recognition model, thereby avoiding the process of determining that the two sample sets can be merged based on whether the similarity data between the two sample sets meets preset requirements, and utilizing the results of historical calculations to improve the efficiency of determining that the two sample sets can be merged.
[0053] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0055] Figure 1 A schematic diagram showing the similarity between sample sets;
[0056] Figure 2 A schematic diagram of the data processing process is shown;
[0057] Figure 3 A flowchart of a data processing method according to the first embodiment of the present application is shown;
[0058] Figure 4 A flow chart of a data processing method according to the second embodiment of the present application is shown;
[0059] Figure 5 A flowchart of a data processing method according to Embodiment 3 of the present application is shown;
[0060] Figure 6 A flow chart of a risk identification method embodiment according to Embodiment 4 of the present application is shown;
[0061] Figure 7 A schematic diagram of the data processing flow is shown;
[0062] Figure 8 A schematic diagram showing the risk identification process is shown;
[0063] Fig. 9 A structural block diagram of a data processing device according to Embodiment 5 of the present application is shown;
[0064] Fig.10 A structural block diagram of a risk identification device embodiment according to Embodiment 6 of the present application is shown;
[0065] Fig.11 An exemplary system is shown that can be used to implement the various embodiments described in this disclosure. DETAILED DESCRIPTION
[0066] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0067] In order to enable those skilled in the art to better understand the present application, the concepts involved in the present application are explained below:
[0068] The recognition model includes a model for identifying risks, a model for identifying images, a model for identifying behaviors, etc., and may specifically include any applicable recognition model, which is not limited in the embodiments of the present application. In the present application, the recognition model that has insufficient samples during the training process is recorded as the first recognition model. Training the recognition model requires a sample set, and the sample set includes multiple samples. The sample set used to train the first recognition model is recorded as the first sample set.
[0069] The second sample set is a sample set different from the first sample set. Unlike the first sample set used to train the first recognition model, the second sample set can be used to train the second recognition model. The second sample set may include multiple sets, and different second sample sets can be used to train different second recognition models, or can be used to train the same second recognition model. It is worth noting that the second sample set can be used to train the second recognition model, but the training process of the second recognition model does not necessarily have to have occurred.
[0070] For example, in e-commerce platform A, corresponding risk samples (for example, sellers with risks and their related information, or risky transactions and their related information, etc.) can be collected through risk perception channels such as complaints, customer satisfaction surveys, public opinion, and reports, and the risk samples can form a first sample set. The first sample set can be used to train a recognition model for identifying risky sellers, shops, or transaction behaviors in e-commerce platform A, that is, a first recognition model. However, since there are very few risk samples collected, if the first sample set is directly used as a training black sample, the established first recognition model will be overfitted, and the recognition effect will be unsatisfactory. In e-commerce platform B, more risk samples can be collected to form a second sample set, which can be used to train a recognition model for identifying risky sellers, shops, or transaction behaviors in e-commerce platform B, that is, a second recognition model.
[0071] There are similarities between sample sets, which can be represented by similarity data. Taking e-commerce platform A, e-commerce platform B and video communication platform C as examples, the sample sets collected from the three platforms are similar to each other, but platform A and platform B are both e-commerce platforms, so usually the first sample set and the second sample set have higher similarity.
[0072] The similarity data between the sample sets can be determined by comparing the two sample sets, or can be determined by clustering the samples in the two sample sets and determining according to the clustering results, or by any other applicable method to determine the similarity data, which is not limited in the embodiments of the present application. The similarity data can be represented in various ways such as text, symbols, numbers, etc., or can be combined with multiple representation methods. When there are multiple second sample sets, each second sample set and the first sample set respectively determine a similarity data, that is, one second sample set corresponds to one similarity data.
[0073] After the first sample set and at least one second sample set are merged, the sample set obtained is recorded as the third sample set. Since the similarity data between the first sample set and at least one second sample set meets the preset requirements, that is, it indicates that the first sample set and at least one second sample set are relatively similar, the at least one second sample set can be merged into the first sample set. The third sample set can replace the first sample set as the input for training the first recognition model. By merging the sample sets, the source of the first sample set is expanded, the problem of insufficient samples when training the first recognition model is solved, and the purpose of the first recognition model being able to recognize data similar to the second sample set is achieved while the first sample set does not lose information.
[0074] In an optional embodiment of the present application, the source of the sample set may be a data system, which may be any system containing at least one form of data, such as an e-commerce transaction system containing seller information, reporting information, transaction information, etc., or a video transmission system containing publisher information, comment information, etc. Among them, the first sample set is derived from the first data system, and the second sample set is derived from the second data system.
[0075] In an optional embodiment of the present application, if the second sample set is selected at random, since the possibility that the similarity data between the first sample set and the second sample set meets the preset requirements is not high, and the sample set comes from the data system, the selection of the second data system is very important. The selection of the second data system can be based on the system properties of the first data system. System properties include but are not limited to: user behavior in the system, content in the system, etc., which are not limited in the embodiment of the present application.
[0076] In an optional embodiment of the present application, the samples in the first sample set are recorded as first samples, and the samples in the second sample set are recorded as second samples. The first sample and the second sample are clustered together to obtain a clustering result. Clustering is based on similarity, and cluster analysis is composed of several patterns. Usually, a pattern is a vector of a measure, or a point in a multidimensional space. Patterns in a cluster have more similarities than patterns not in the same cluster.
[0077] In an optional embodiment of the present application, an implementation method of determining the similarity data between the first sample set and the second sample set based on the clustering result may include: calculating the ratio of the number of first samples belonging to the same class as the second sample in the clustering result to the total number of the first samples as the similarity data.
[0078] like Figure 1The schematic diagram of the similarity between the sample sets shown in FIG. 4 shows that the first sample in the first sample set and the second sample in the second sample set are clustered together to obtain four clusters. There are different samples in each class. Cluster 1 has three first samples and several second samples, Cluster 2 has one first sample and several second samples, Cluster 3 has no first sample but several second samples, and Cluster 4 has two first samples but no second samples. The first sample and the second sample belonging to the same class are similar. Therefore, the ratio of the number of first samples belonging to the same class as the second sample to the total number of first samples is calculated. This ratio can characterize the proportion of the first samples similar to the second sample in the first sample set. The larger the ratio, the more similar the first sample set and the second sample set are, which can be used as the similarity data between the first sample set and the second sample set.
[0079] In an optional embodiment of the present application, before clustering the first sample in the first sample set and the second sample in the second sample set, the first sample and the second sample need to be normalized and / or vectorized. Among them, normalization can be in various forms, for example, converting the numerical value to a decimal before (0, 1), or converting the dimensioned expression to a dimensionless expression, so as to process the data later, or any other applicable method, which is not limited in the embodiment of the present application. Vectorization is used to mathematize text or pictures, for example, converting symbolic information such as natural language into digital information in the form of vectors, thus converting the problem of natural language understanding into the problem of machine learning, One-hot encoding, Word2vec (word to vector, word conversion), etc.
[0080] In an optional embodiment of the present application, another recognition model that has a problem of insufficient samples during training is introduced, which is recorded as a fourth recognition model. The sample set used to train the fourth recognition model is recorded as a fourth sample set. Accordingly, a fifth recognition model and a fifth sample set used to train the fifth recognition model are introduced. The fourth sample set and the fifth sample set also need to determine whether they can be merged to solve the problem of insufficient samples in the fourth sample set.
[0081] In an optional embodiment of the present application, in order to describe the regularity or properties of a sample set, characteristic data of the sample set can be calculated. The characteristic data includes, but is not limited to: the distribution of samples in the sample set, the mean of certain aspects of the numerical values of the samples in the sample set, etc., which are not limited in the present embodiment of the application. If the characteristic data of two sample sets match, for example, the difference between the characteristic data of the two sample sets is less than a set threshold, the two sample sets can be considered to match.
[0082] In an optional embodiment of the present application, the first recognition model and the second recognition model are the same recognition model, that is, the structures of the first recognition model and the second recognition model are the same. For example, the first recognition model is the risk identification model of B's e-commerce transaction system, and the second recognition model is the risk identification model of B's e-commerce transaction system. The two recognition models are exactly the same except that the sample data used for training are different.
[0083] According to an embodiment of the present application, during the training process of the recognition model, too few samples may cause the model to overfit, which in turn leads to the problem that the coverage rate of the model for inference is not high. Figure 2 The schematic diagram of the data processing process shown in the figure, the present application provides a data processing mechanism, by obtaining a first sample set for training a first recognition model, and at least one second sample set, wherein the at least one second sample set is used to train a second recognition model; determining that the similarity data between the first sample set and at least one second sample set meets the preset requirements; merging the first sample set and at least one second sample set to obtain a third sample set that replaces the first sample set as the input for training the first recognition model, thereby supplementing the samples used to train the first recognition model, avoiding the overfitting problem of the first recognition model due to too few samples in the first sample set, and then improving the coverage of the first recognition model and improving the recognition effect. The present application is applicable to but not limited to the above application scenarios.
[0084] Reference Figure 3 , shows a flow chart of a data processing method according to the first embodiment of the present application, the method may specifically include the following steps:
[0085] Step 101: Acquire a first sample set for training a first recognition model and at least one second sample set, wherein the at least one second sample set is used for training a second recognition model.
[0086] In an embodiment of the present application, there is a problem of insufficient samples in the first sample set used to train the first recognition model. In order to solve this problem, the first sample set and at least one second sample set are obtained. The implementation methods of obtaining the first sample set used to train the first recognition model and at least one second sample set may include multiple methods, for example, obtaining the first sample set from the first data system, obtaining the second sample set from the second data system, or any other applicable implementation method, which is not limited in the embodiment of the present application.
[0087] Step 102: Determine whether similarity data between the first sample set and at least one second sample set meets preset requirements.
[0088] In the embodiment of the present application, in order to determine whether the first sample set and at least one second sample set can be merged, it is necessary to first determine whether the first sample set and at least one second sample set are sufficiently similar, that is, to achieve this by determining that the similarity data between the first sample set and at least one second sample set meets the preset requirements. For example, the similarity data is a score, and if this score is higher than a preset threshold, it meets the preset requirements. Specifically, applicable preset requirements can be set according to actual needs, and the embodiment of the present application does not limit the preset requirements.
[0089] In an embodiment of the present application, the implementation method of determining whether the similarity data between the first sample set and at least one second sample set meets the preset requirements may include multiple methods, for example, clustering the first sample in the first sample set and the second sample in the second sample set, determining the similarity data between the first sample set and the second sample set based on the clustering result, and determining whether the similarity data meets the preset requirements, or any other applicable implementation method, which is not limited by the embodiment of the present application. When there are multiple second sample sets, the similarity data between each second sample set and the first sample set can be determined separately, and then each similarity data can be determined separately whether it meets the preset requirements, wherein the second sample set corresponding to the similarity data that meets the preset requirements can be merged with the first sample set, and the second sample set corresponding to the similarity data that does not meet the preset requirements cannot be merged with the first sample set.
[0090] Step 103: merge the first sample set and at least one second sample set to obtain a third sample set replacing the first sample set as an input for training the first recognition model.
[0091] According to an embodiment of the present application, a first sample set for training a first recognition model and at least one second sample set are obtained, wherein the at least one second sample set is used to train a second recognition model; it is determined that the similarity data between the first sample set and the at least one second sample set meets preset requirements; the first sample set and the at least one second sample set are merged to obtain a third sample set that replaces the first sample set as input for training the first recognition model, thereby supplementing the samples used to train the first recognition model, avoiding the overfitting problem of the first recognition model due to the small number of samples in the first sample set, and then improving the recognition coverage of the first recognition model and improving the recognition effect.
[0092] In an optional embodiment of the present application, after merging the first sample set and the second sample set to obtain a third sample set that replaces the first sample set as input for training the first recognition model, it may also include: determining that the first recognition model trained with the third sample set as input meets the evaluation requirements; and providing the first recognition model.
[0093] Since the third sample set is used as input instead of the first sample set, the first recognition model trained can still accurately recognize whether it can still recognize accurately. Therefore, the first recognition model can be evaluated. If the first recognition model meets the evaluation requirements, the first recognition model can be provided. For example, by testing the first recognition model, evaluation indicators such as coverage, accuracy, and recall are obtained. If these evaluation indicators meet the evaluation requirements, the first recognition model can be deployed online.
[0094] Reference Figure 4 , shows a flow chart of a data processing method according to the second embodiment of the present application, the method may specifically include the following steps:
[0095] Step 201: Acquire the first sample set from a first data system.
[0096] In the embodiment of the present application, in order to identify the risk, image, or behavior in the first data system, it is necessary to obtain the first sample set from the first data system. For example, the relevant information of each seller's store is obtained from the data system of e-commerce platform A, and each seller's store and its relevant information are taken as a sample to form the first sample set.
[0097] Step 202: Acquire the second sample set from a second data system.
[0098] In the embodiment of the present application, optionally, before acquiring the second sample set from the second data system, the method may further include: selecting a second data system matching the first data system according to a system attribute of the first data system.
[0099] When the system properties of the first data system and the second data system match, it indicates that the sample sets of the two data systems will also have similar rules, resulting in the possibility that the similarity data between the first sample set and the second sample set is more likely to meet the preset requirements, thereby increasing the probability that the second sample set and the first sample set can be merged. For example, for e-commerce platform A and e-commerce platform B, the system properties of the two data systems match, so the data system of e-commerce platform B can be selected and the second sample set can be obtained from it.
[0100] In the embodiment of the present application, optionally, before clustering the first samples in the first sample set and the second samples in the second sample set, the method may further include:
[0101] Sub-step S1: merging the first sample set and the second sample set.
[0102] Sub-step S2: performing normalization processing and / or vectorization processing on the first sample and the second sample.
[0103] Before clustering the first sample and the second sample, the two sample sets need to be merged together first, and then the first sample and the second sample are processed. For numerical values, in order to ensure uniform dimensions, numerical normalization processing such as extreme value normalization or exponential normalization is used. For text or pictures, etc., they need to be converted into vectors to represent text or pictures.
[0104] Step 203: clustering the first samples in the first sample set and the second samples in the second sample set.
[0105] In the embodiment of the present application, the first sample and the second sample are clustered together, for example, the k-means clustering algorithm is used, the number of clusters is specified as k, and the samples are divided into k clusters. The more the number of clusters, the higher the similarity accuracy.
[0106] Step 204: Determine similarity data between the first sample set and the second sample set according to the clustering result.
[0107] In an embodiment of the present application, based on the clustering results, the determined similarity data may include multiple types, for example, calculating the ratio of the number of first samples that belong to the same class as the second sample in the clustering results to the total number of first samples as similarity data, or calculating the ratio of the number of second samples that belong to the same class as the first sample in the clustering results to the total number of second samples as similarity data, or similarity data determined in any other applicable manner, which is not limited by the embodiment of the present application.
[0108] Step 205: Determine whether the similarity data meets preset requirements.
[0109] In the embodiment of the present application, it is determined whether the similarity data meets the preset requirements. If so, step 206 can be executed to merge the sample sets. If not, the sample sets cannot be merged.
[0110] Step 206: merge the first sample set and at least one second sample set to obtain a third sample set that replaces the first sample set.
[0111] Step 207: Add first label data to the third sample set.
[0112] In the embodiment of the present application, during the training process of the supervised learning method, it is necessary to add labeled data to the samples, and therefore, the first labeled data is added to the third sample set.
[0113] Step 208: Provide a seventh sample set corresponding to the third sample set, and add second label data to the seventh sample set.
[0114] In the embodiment of the present application, the training process of the binary supervised learning method requires not only samples in the third sample set, but also another type of samples, providing a seventh sample set corresponding to the third sample set, and adding second label data to the seventh sample set. If it is a multi-class supervised learning method, it can also include other sample sets and add other label data, which is not limited in the embodiment of the present application.
[0115] For example, the first sample set is a set of risky seller samples, the second sample set is a set of risky seller samples, and the merged third sample set is a black sample set. After labeling the third sample set with black samples, it is necessary to add corresponding white sample data, that is, risk-free seller samples. The white sample data can come from the first data system or the sample data in the second data system.
[0116] Step 209: merge the third sample set and the seventh sample set to obtain an eighth sample set, and use the eighth sample set as an input of a supervised learning network to train the first recognition model.
[0117] In the embodiment of the present application, after the two sample sets marked with the first marked data and the second marked data are merged, an eighth sample set is obtained, which is used as the input of the supervised learning network to train the first recognition model. For example, the eighth sample set is input into a deep learning network (DNN, Deep Neural Network) for model training.
[0118] In an embodiment of the present application, optionally, after merging the third sample set and the seventh sample set to obtain an eighth sample set, and using the eighth sample set as an input of a supervised learning network to train the first recognition model, the method may also include: performing at least one of the following processing on the eighth sample set: normalization processing, vectorization processing, outlier smoothing processing, missing value processing, and feature screening processing.
[0119] According to an embodiment of the present application, the first sample set is obtained from a first data system, the second sample set is obtained from a second data system, the first samples in the first sample set and the second samples in the second sample set are clustered, and similarity data between the first sample set and the second sample set is determined based on the clustering result, and it is determined that the similarity data meets preset requirements, and the first sample set and the at least one second sample set are merged to obtain a third sample set that replaces the first sample set, and first label data is added to the third sample set, and a seventh sample set corresponding to the third sample set is provided, and second label data is added to the seventh sample set, and the third sample set and the seventh sample set are merged to obtain an eighth sample set, and the first recognition model is trained as an input of a supervised learning network, thereby supplementing the samples used for training the first recognition model, avoiding the overfitting problem of the first recognition model due to too few samples in the first sample set, and then improving the recognition coverage of the first recognition model and improving the recognition effect.
[0120] Furthermore, by selecting a second data system that matches the first data system based on the system properties of the first data system, the similarity data between the first sample set and the second sample set is more likely to meet the preset requirements, thereby increasing the probability that the second sample set and the first sample set can be merged.
[0121] Reference Figure 5 , shows a flow chart of a data processing method according to the third embodiment of the present application, the method may specifically include the following steps:
[0122] Step 301: Acquire a first sample set for training a first recognition model and at least one second sample set, wherein the at least one second sample set is used for training a second recognition model.
[0123] Step 302: Determine whether the similarity data between the first sample set and at least one second sample set meets a preset requirement.
[0124] In the embodiment of the present application, after the similarity data between the first sample set and the second sample set meets the preset requirements, this result can be saved as historical experience to efficiently determine whether the two sample sets can be merged later.
[0125] Step 303: merge the first sample set and at least one second sample set to obtain a third sample set replacing the first sample set as input for training the first recognition model.
[0126] Step 304: Obtain a fourth sample set for training a fourth recognition model and a fifth sample set for training a fifth recognition model.
[0127] In the embodiment of the present application, the fourth sample set and the fifth sample set are another pair of sample sets that need to be determined whether they can be merged. Since it has been determined historically that the first sample set and the second sample set can be merged, the historical experience of the first sample set and the second sample set can be used to determine whether the fourth sample set and the fifth sample set can be merged.
[0128] Step 305: determine whether the fourth sample set matches the first sample set, and whether the fifth sample set matches the second sample set.
[0129] In the embodiment of the present application, it is determined whether the fourth sample set matches the first sample set, and whether the fifth sample set matches the second sample set. Specifically, multiple implementations may be included, for example, determining whether two sample sets match according to feature data of the sample sets, or comparing two sample sets to obtain similarity data, and determining whether two sample sets match according to the similarity data. Specifically, any applicable implementation may be included, and the embodiment of the present application does not limit this.
[0130] In the embodiment of the present application, optionally, before determining that the similarity data between the first sample set and at least one second sample set meets the preset requirement, the method may further include: determining feature data of the first sample set and feature data of the second sample set. Afterwards, an implementation method of determining that the fourth sample set matches the first sample set and the fifth sample set matches the second sample set may include: determining feature data of the fourth sample set and feature data of the fifth sample set, determining that the feature data of the fourth sample set matches the feature data of the first sample set, and the feature data of the fifth sample set matches the feature data of the second sample set, then the fourth sample set matches the first sample set, and the fifth sample set matches the second sample set.
[0131] For example, the two sample sets that can be merged are determined to meet the preset requirements based on the similarity data between the two sample sets, and their feature data and similarity data are recorded and saved in the sample expert database. When there are two more sample sets that need to be determined whether they can be merged, the sample sets are first matched according to the feature data in the above manner. If the two sample sets match the two sample sets that can be merged recorded in the sample expert database, it means that the two sample sets meet the rules or properties of sample sets that can be merged and can be merged, avoiding the process of determining whether the two sample sets can be merged based on the similarity data between the two sample sets meeting the preset requirements, thereby improving the efficiency of determining whether the two sample sets can be merged.
[0132] Step 306: merge the fourth sample set and the fifth sample set to obtain a sixth sample set that replaces the fourth sample set and serves as an input for training the fourth recognition model.
[0133] In the embodiment of the present application, optionally, before merging the fourth sample set and the fifth sample set to obtain a sixth sample set that replaces the fourth sample set as input for training the fourth recognition model, it may also include: determining that sample attributes of the fourth sample set and sample attributes of the fifth sample set satisfy preset attribute conditions.
[0134] In order to ensure that the fit between the fourth sample set and the fifth sample set is high enough, before merging, it is necessary to determine whether the sample attributes of the two sample sets meet the preset attribute conditions. For example, the sample attribute in the fourth sample set is buyers, and the sample attribute in the fifth sample set is sellers. Buyers and sellers belong to two sample attributes and do not meet the preset attribute conditions, so it is determined that the two sample sets cannot be merged.
[0135] According to an embodiment of the present application, a first sample set for training a first recognition model and at least one second sample set are obtained, wherein the at least one second sample set is used to train a second recognition model; it is determined that the similarity data between the first sample set and the at least one second sample set meets preset requirements; the first sample set and the at least one second sample set are merged to obtain a third sample set that replaces the first sample set as input for training the first recognition model, thereby supplementing the samples used for training the first recognition model, avoiding the overfitting problem of the first recognition model due to the small number of samples in the first sample set, and then improving the recognition coverage of the first recognition model.
[0136] Furthermore, by obtaining a fourth sample set for training a fourth recognition model and a fifth sample set for training a fifth recognition model, it is determined that the fourth sample set matches the first sample set, and that the fifth sample set matches the second sample set, and the fourth sample set and the fifth sample set are merged to obtain a sixth sample set that replaces the fourth sample set as input for training the fourth recognition model, thereby avoiding the process of determining that the two sample sets can be merged based on whether the similarity data between the two sample sets meets preset requirements, and utilizing the results of historical calculations to improve the efficiency of determining that the two sample sets can be merged.
[0137] Reference Figure 6 , shows a flow chart of a risk identification method embodiment according to the fourth embodiment of the present application, the method may specifically include the following steps:
[0138] Step 401, taking a third sample set replacing the first sample set as input, training a first risk identification model, wherein the third sample set is obtained by acquiring a first sample set used to train the first risk identification model, and at least one second sample set, wherein the at least one second sample set is used to train the second risk identification model, determining that similarity data between the first sample set and the at least one second sample set meets preset requirements, and merging the first sample set and the second sample set.
[0139] In the embodiment of the present application, the first risk identification model is used to identify risk data, such as risky sellers, risky trading behaviors, etc. The first sample set and the second sample set are merged in the manner described in the above embodiment, and the obtained third sample set is used as input to supplement the number of samples in the first sample set.
[0140] Step 402: using the first risk identification model to identify risk data.
[0141] According to an embodiment of the present application, a first risk identification model is trained by taking a third sample set replacing the first sample set as input, and the first risk identification model is used to identify risk data, wherein the third sample set is obtained by obtaining the first sample set used to train the first risk identification model, and at least one second sample set, wherein the at least one second sample set is used to train the second risk identification model, and it is determined that the similarity data between the first sample set and the at least one second sample set meets the preset requirements, and the first sample set and the second sample set are merged to obtain, thereby supplementing the samples used to train the first risk identification model, avoiding the overfitting problem of the first risk identification model due to the small number of samples in the first sample set, and then improving the recognition coverage of the first risk identification model.
[0142] In order to enable those skilled in the art to better understand the present application, a data processing method and a risk identification method of the present application are described below through specific examples.
[0143] See also Figure 7 , which shows a schematic diagram of the data processing flow.
[0144] Step 1: Select a small sample, namely the fourth sample set, and select a large sample, namely the fifth sample set.
[0145] Step 2, expert database matching. The sample expert database stores sample sets that have been determined to be merged in history and their feature data and similarity data, such as the first sample set and the second sample set. Determine whether the fourth sample set matches the first sample set, and whether the fifth sample set matches the second sample set.
[0146] Step 3: If no matching sample set can be found in the sample expert database, it is necessary to determine whether the similarity data between the fourth sample set and the fifth sample set meets the preset requirements. Specifically, it needs to go through the following processes: selecting a small sample, selecting a large sample, merging large and small samples, normalization, vectorization, clustering algorithm, and calculating similarity data based on clustering results. If the similarity data meets the preset requirements, the fourth sample set and the fifth sample set can also be written into the sample expert database.
[0147] Step 4: If a sample set can be matched in the sample expert database, a large sample (i.e., the fifth sample set) is recommended as a sample set suitable for merging with a small sample (i.e., the fourth sample set). The large sample is analyzed to determine whether the large sample meets the preset attribute conditions with the small sample based on the sample attributes of the large sample. If not, a new large sample needs to be recommended. If yes, the large and small samples are merged as black samples, and a corresponding white sample is provided.
[0148] Step 5: Merge the black sample and the white sample.
[0149] Step 6: Feature engineering. Perform normalization, vectorization, outlier smoothing, missing value processing, feature screening and other feature engineering on black and white samples.
[0150] Step 7: Deep learning modeling. Use the black samples and white samples as inputs to the deep learning network for model training.
[0151] Step 8: Evaluate the model to make sure that the trained model meets the evaluation requirements. If it does not meet the evaluation requirements, re-perform feature engineering and deep learning modeling. If it meets the evaluation requirements, save the model and deploy it online.
[0152] Step 9: Perform model prediction on online data. Perform feature engineering on online data and use the deployed model to perform model prediction.
[0153] See also Figure 8 , which shows a schematic diagram of the risk identification process.
[0154] Step 1: Obtain black samples such as fraud, counterfeit, and contraband through risk perception portals such as customer satisfaction surveys and reporting information.
[0155] Step 2: Get the model factors. Get the factors of the sample data required for training the model.
[0156] Step 3: Perform feature engineering on the samples.
[0157] Step 4: Select an algorithm, train the model, and evaluate the model.
[0158] Step 5, save the model.
[0159] Step 6: Enter production data.
[0160] Step 7: Use the saved model to perform model prediction on the production data.
[0161] Step 8: Conduct online risk prevention and control.
[0162] Step 9: Model identification risks: review the risks identified by the model.
[0163] Reference Fig. 9 , shows a structural block diagram of a data processing device according to Embodiment 5 of the present application, which may specifically include:
[0164] A set acquisition module 501 is used to acquire a first sample set for training a first recognition model and at least one second sample set, wherein the at least one second sample set is used to train a second recognition model;
[0165] A determination module 502, configured to determine whether similarity data between the first sample set and at least one second sample set meets a preset requirement;
[0166] The merging module 503 is configured to merge the first sample set and at least one second sample set to obtain a third sample set replacing the first sample set as an input for training the first recognition model.
[0167] In the embodiment of the present application, optionally, the determining module includes:
[0168] a clustering submodule, configured to cluster the first samples in the first sample set and the second samples in the second sample set;
[0169] A data determination submodule, configured to determine similarity data between the first sample set and the second sample set according to the clustering result;
[0170] The determination submodule is used to determine whether the similarity data meets the preset requirements.
[0171] In the embodiment of the present application, optionally, the data determination submodule includes:
[0172] A calculation unit is used to calculate the ratio of the number of first samples belonging to the same class as the second sample in the clustering result to the total number of the first samples as the similarity data.
[0173] In the embodiment of the present application, optionally, the device further includes:
[0174] A first merging module, configured to merge the first sample set and the second sample set before clustering the first samples in the first sample set and the second samples in the second sample set;
[0175] A processing module is used to perform normalization processing and / or vectorization processing on the first sample and the second sample.
[0176] In the embodiment of the present application, optionally, the set acquisition module includes:
[0177] A first set acquisition submodule, configured to acquire the first sample set from a first data system;
[0178] The second set acquisition submodule is used to acquire the second sample set from a second data system.
[0179] In the embodiment of the present application, optionally, the device further includes:
[0180] The system selection module is used to select a second data system matching the first data system according to the system attribute of the first data system before acquiring the second sample set from the second data system.
[0181] In the embodiment of the present application, optionally, the device further includes:
[0182] A second set acquisition module, configured to acquire a fourth sample set for training a fourth recognition model and a fifth sample set for training a fifth recognition model after determining that the similarity data between the first sample set and at least one second sample set meets a preset requirement;
[0183] a matching determination module, configured to determine that the fourth sample set matches the first sample set, and the fifth sample set matches the second sample set;
[0184] The second merging module is used to merge the fourth sample set and the fifth sample set to obtain a sixth sample set replacing the fourth sample set as an input for training the fourth recognition model.
[0185] In the embodiment of the present application, optionally, the device further includes:
[0186] A feature determination module, configured to determine feature data of the first sample set and feature data of the second sample set before determining that similarity data between the first sample set and at least one second sample set meets a preset requirement;
[0187] The matching determination module comprises:
[0188] a feature determination submodule, configured to determine feature data of the fourth sample set and feature data of the fifth sample set;
[0189] The matching determination submodule is used to determine that the feature data of the fourth sample set matches the feature data of the first sample set, and the feature data of the fifth sample set matches the feature data of the second sample set, then the fourth sample set matches the first sample set, and the fifth sample set matches the second sample set.
[0190] In the embodiment of the present application, optionally, the device further includes:
[0191] The attribute condition determination module is used to determine whether the sample attributes of the fourth sample set and the sample attributes of the fifth sample set meet the preset attribute conditions before merging the fourth sample set and obtaining a sixth sample set that replaces the fourth sample set as an input for training the fourth recognition model.
[0192] In the embodiment of the present application, optionally, the device further includes:
[0193] A first adding module, configured to add first marking data to the third sample set after the first sample set and the second sample set are combined to obtain a third sample set replacing the first sample set;
[0194] A second adding module, configured to provide a seventh sample set corresponding to the third sample set, and add second label data to the seventh sample set;
[0195] The third merging module is used to merge the third sample set and the seventh sample set to obtain an eighth sample set, which is used as an input of a supervised learning network to train the first recognition model.
[0196] In an embodiment of the present application, optionally, the device includes:
[0197] A set processing module is used to perform at least one of the following processing on the eighth sample set after merging the third sample set and the seventh sample set to obtain an eighth sample set and using it as an input of a supervised learning network to train the first recognition model: normalization processing, vectorization processing, outlier smoothing processing, missing value processing, and feature screening processing.
[0198] In the embodiment of the present application, optionally, the device further includes:
[0199] an evaluation module, configured to determine that the first recognition model trained with the third sample set as input meets the evaluation requirements after obtaining a third sample set replacing the first sample set by combining the first sample set and the second sample set as input for training the first recognition model;
[0200] A model providing module is used to provide the first recognition model.
[0201] In the embodiment of the present application, optionally, the first recognition model and the second recognition model are the same recognition model.
[0202] According to an embodiment of the present application, a first sample set for training a first recognition model and at least one second sample set are obtained, wherein the at least one second sample set is used to train a second recognition model; it is determined that the similarity data between the first sample set and the at least one second sample set meets preset requirements; the first sample set and the at least one second sample set are merged to obtain a third sample set that replaces the first sample set as input for training the first recognition model, thereby supplementing the samples used for training the first recognition model, avoiding the overfitting problem of the first recognition model due to the small number of samples in the first sample set, and then improving the recognition coverage of the first recognition model.
[0203] Reference Fig.10 , shows a structural block diagram of a risk identification device embodiment according to Embodiment 6 of the present application, which may specifically include:
[0204] A training module 601 is used to train a first risk identification model by taking a third sample set replacing the first sample set as input, wherein the third sample set is obtained by obtaining a first sample set used for training the first risk identification model and at least one second sample set, wherein the at least one second sample set is used for training the second risk identification model, determining that similarity data between the first sample set and the at least one second sample set meets a preset requirement, and merging the first sample set and the second sample set;
[0205] The identification module 602 is used to identify risk data using the first risk identification model.
[0206] According to an embodiment of the present application, a first risk identification model is trained by taking a third sample set replacing the first sample set as input, and the first risk identification model is used to identify risk data, wherein the third sample set is obtained by obtaining the first sample set used to train the first risk identification model, and at least one second sample set, wherein the at least one second sample set is used to train the second risk identification model, and it is determined that the similarity data between the first sample set and the at least one second sample set meets the preset requirements, and the first sample set and the second sample set are merged to obtain, thereby supplementing the samples used to train the first risk identification model, avoiding the overfitting problem of the first risk identification model due to the small number of samples in the first sample set, and then improving the recognition coverage of the first risk identification model.
[0207] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0208] Embodiments of the present disclosure may be implemented as a system using any suitable hardware, firmware, software, or any combination thereof to perform the desired configuration. Fig.11 An exemplary system (or device) 800 that can be used to implement various embodiments described in the present disclosure is schematically illustrated.
[0209] For one embodiment, Fig.11 An exemplary system 800 is shown having one or more processors 802, a system control module (chip set) 804 coupled to at least one of the processor(s) 802, a system memory 806 coupled to the system control module 804, a non-volatile memory (NVM) / storage device 808 coupled to the system control module 804, one or more input / output devices 810 coupled to the system control module 804, and a network interface 812 coupled to the system control module 806.
[0210] Processor 802 may include one or more single-core or multi-core processors, and processor 802 may include any combination of general-purpose processors or special-purpose processors (such as graphics processors, application processors, baseband processors, etc.) In some embodiments, system 800 can be used as a browser as described in the embodiments of the present application.
[0211] In some embodiments, the system 800 may include one or more computer-readable media (e.g., system memory 806 or NVM / storage device 808) having instructions and one or more processors 802 that are combined with the one or more computer-readable media and configured to execute the instructions to implement the modules to perform the actions described in the present disclosure.
[0212] For one embodiment, the system control module 804 may include any suitable interface controller to provide any suitable interface to at least one of the processor(s) 802 and / or any suitable device or component in communication with the system control module 804 .
[0213] The system control module 804 may include a memory controller module to provide an interface to the system memory 806. The memory controller module may be a hardware module, a software module, and / or a firmware module.
[0214] The system memory 806 may be used, for example, to load and store data and / or instructions for the system 800. For one embodiment, the system memory 806 may include any suitable volatile memory, such as a suitable DRAM. In some embodiments, the system memory 806 may include double data rate type four synchronous dynamic random access memory (DDR4 SDRAM).
[0215] For one embodiment, the system control module 804 may include one or more input / output controllers to provide interfaces to the NVM / storage device 808 and the input / output device(s) 810 .
[0216] For example, NVM / storage device 808 may be used to store data and / or instructions. NVM / storage device 808 may include any suitable non-volatile memory (e.g., flash memory) and / or may include any suitable non-volatile storage device(s) (e.g., one or more hard disk drives (HDDs), one or more compact disk (CD) drives, and / or one or more digital versatile disk (DVD) drives).
[0217] NVM / storage device 808 may include storage resources that are physically part of the device on which system 800 is installed, or it may be accessible to the device without being part of the device. For example, NVM / storage device 808 may be accessed via (one or more) input / output devices 810 over a network.
[0218] The input / output device(s) 810 may provide an interface for the system 800 to communicate with any other appropriate device, and the input / output device 810 may include a communication component, an audio component, a sensor component, etc. The network interface 812 may provide an interface for the system 800 to communicate through one or more networks, and the system 800 may wirelessly communicate with one or more components of a wireless network according to any of one or more wireless network standards and / or protocols, for example, accessing a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof for wireless communication.
[0219] For one embodiment, at least one of the processor(s) 802 may be packaged together with the logic of one or more controllers (e.g., a memory controller module) of the system control module 804. For one embodiment, at least one of the processor(s) 802 may be packaged together with the logic of one or more controllers of the system control module 804 to form a system-in-package (SiP). For one embodiment, at least one of the processor(s) 802 may be integrated on the same die with the logic of one or more controllers of the system control module 804. For one embodiment, at least one of the processor(s) 802 may be integrated on the same die with the logic of one or more controllers of the system control module 804 to form a system on chip (SoC).
[0220] In various embodiments, the system 800 may be, but is not limited to: a browser, a workstation, a desktop computing device, or a mobile computing device (e.g., a laptop computing device, a handheld computing device, a tablet computer, a netbook, etc.). In various embodiments, the system 800 may have more or fewer components and / or a different architecture. For example, in some embodiments, the system 800 includes one or more cameras, a keyboard, a liquid crystal display (LCD) screen (including a touch screen display), a non-volatile memory port, multiple antennas, a graphics chip, an application specific integrated circuit (ASIC), and a speaker.
[0221] Wherein, if the display includes a touch panel, the display screen can be implemented as a touch screen display to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor can not only sense the boundary of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
[0222] An embodiment of the present application also provides a non-volatile readable storage medium, which stores one or more modules (programs). When the one or more modules are applied to a terminal device, the terminal device can execute instructions (instructions) of each method step in the embodiment of the present application.
[0223] In one example, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements a method as in an embodiment of the present application when executing the computer program.
[0224] In one example, a computer-readable storage medium is provided, on which a computer program is stored, characterized in that when the program is executed by a processor, one or more methods of the embodiments of the present application are implemented.
[0225] The embodiments of the present application disclose a data processing method and device. Example 1 includes a data processing method, which is characterized by comprising:
[0226] Acquire a first sample set for training a first recognition model, and at least one second sample set, wherein the at least one second sample set is used for training a second recognition model;
[0227] Determining that similarity data between the first sample set and at least one second sample set meets preset requirements;
[0228] The first sample set and at least one second sample set are combined to obtain a third sample set replacing the first sample set as an input for training the first recognition model.
[0229] Example 2 may include the method of Example 1, wherein determining that similarity data between the first sample set and at least one second sample set meets a preset requirement includes:
[0230] Clustering the first samples in the first sample set and the second samples in the second sample set;
[0231] Determining similarity data between the first sample set and the second sample set according to the clustering result;
[0232] Determine whether the similarity data meets preset requirements.
[0233] Example 3 may include the method of Example 1 and / or Example 2, wherein determining similarity data between the first sample set and the second sample set according to the clustering result includes:
[0234] The ratio of the number of first samples belonging to the same class as the second sample in the clustering result to the total number of the first samples is calculated as the similarity data.
[0235] Example 4 may include the method described in one or more of Examples 1 to 3, wherein, before clustering the first samples in the first sample set and the second samples in the second sample set, the method further includes:
[0236] Merging the first sample set and the second sample set;
[0237] The first sample and the second sample are normalized and / or vectorized.
[0238] Example 5 may include the method described in one or more of Examples 1 to 4, wherein obtaining a first sample set for training a first recognition model and at least one second sample set includes:
[0239] Acquire the first sample set from a first data system;
[0240] The second sample set is obtained from a second data system.
[0241] Example 6 may include the method described in one or more of Examples 1 to 5, wherein, before acquiring the second sample set from the second data system, the method further includes:
[0242] A second data system matching the first data system is selected according to the system attribute of the first data system.
[0243] Example 7 may include the method described in one or more of Examples 1 to 6, wherein, after determining that the similarity data between the first sample set and at least one second sample set meets a preset requirement, the method further includes:
[0244] Acquire a fourth sample set for training a fourth recognition model and a fifth sample set for training a fifth recognition model;
[0245] Determining that the fourth sample set matches the first sample set, and the fifth sample set matches the second sample set;
[0246] The fourth sample set and the fifth sample set are combined to obtain a sixth sample set replacing the fourth sample set as an input for training the fourth recognition model.
[0247] Example 8 may include the method described in one or more of Examples 1 to 7, wherein, before determining that the similarity data between the first sample set and at least one second sample set meets a preset requirement, the method further includes:
[0248] Determine feature data of the first sample set and feature data of the second sample set;
[0249] The determining that the fourth sample set matches the first sample set, and the fifth sample set matches the second sample set includes:
[0250] Determining feature data of the fourth sample set and feature data of the fifth sample set;
[0251] It is determined that the feature data of the fourth sample set matches the feature data of the first sample set, and the feature data of the fifth sample set matches the feature data of the second sample set, then the fourth sample set matches the first sample set, and the fifth sample set matches the second sample set.
[0252] Example 9 may include the method described in one or more of Examples 1 to 8, wherein, before merging the fourth sample set and the fifth sample set to obtain a sixth sample set replacing the fourth sample set as an input for training the fourth recognition model, the method further includes:
[0253] It is determined that the sample attributes of the fourth sample set and the sample attributes of the fifth sample set meet preset attribute conditions.
[0254] Example 10 may include the method described in one or more of Examples 1 to 9, wherein, after merging the first sample set and the second sample set to obtain a third sample set replacing the first sample set, the method further includes:
[0255] Adding first label data to the third sample set;
[0256] providing a seventh sample set corresponding to the third sample set, and adding second label data to the seventh sample set;
[0257] The third sample set and the seventh sample set are combined to obtain an eighth sample set, which is used as an input of a supervised learning network to train the first recognition model.
[0258] Example 11 may include the method described in one or more of Examples 1 to 10, wherein, after merging the third sample set and the seventh sample set to obtain an eighth sample set and using the eighth sample set as an input of a supervised learning network to train the first recognition model, the method includes:
[0259] The eighth sample set is subjected to at least one of the following processing: normalization processing, vectorization processing, outlier smoothing processing, missing value processing, and feature screening processing.
[0260] Example 12 may include the method described in one or more of Examples 1 to 11, wherein, after merging the first sample set and the second sample set to obtain a third sample set replacing the first sample set as an input for training the first recognition model, the method further includes:
[0261] Determining that a first recognition model trained with the third sample set as input meets the evaluation requirements;
[0262] The first recognition model is provided.
[0263] Example 13 may include the method described in one or more of Examples 1-12, wherein the first recognition model and the second recognition model are the same recognition model.
[0264] Example 14 includes a risk identification method, comprising:
[0265] A first risk identification model is obtained by training a third sample set replacing the first sample set as input, wherein the third sample set is obtained by obtaining a first sample set used for training the first risk identification model and at least one second sample set, wherein the at least one second sample set is used for training the second risk identification model, determining that similarity data between the first sample set and the at least one second sample set meets a preset requirement, and merging the first sample set and the second sample set;
[0266] The first risk identification model is used to identify risk data.
[0267] Example 15 includes a data processing apparatus, comprising:
[0268] A set acquisition module, used to acquire a first sample set for training a first recognition model, and at least one second sample set, wherein the at least one second sample set is used to train a second recognition model;
[0269] A determination module, configured to determine whether similarity data between the first sample set and at least one second sample set meets a preset requirement;
[0270] The merging module is used to merge the first sample set and at least one second sample set to obtain a third sample set replacing the first sample set as an input for training the first recognition model.
[0271] Example 16 may include the apparatus of Example 15, wherein the determining module comprises:
[0272] a clustering submodule, configured to cluster the first samples in the first sample set and the second samples in the second sample set;
[0273] A data determination submodule, configured to determine similarity data between the first sample set and the second sample set according to the clustering result;
[0274] The determination submodule is used to determine whether the similarity data meets the preset requirements.
[0275] Example 17 may include the apparatus of Example 15 and / or Example 16, wherein the data determination submodule includes:
[0276] A calculation unit is used to calculate the ratio of the number of first samples belonging to the same class as the second sample in the clustering result to the total number of the first samples as the similarity data.
[0277] Example 18 may include the apparatus of one or more of Examples 15-17, wherein the apparatus further comprises:
[0278] A first merging module, configured to merge the first sample set and the second sample set before clustering the first samples in the first sample set and the second samples in the second sample set;
[0279] A processing module is used to perform normalization processing and / or vectorization processing on the first sample and the second sample.
[0280] Example 19 may include the apparatus described in one or more of Examples 15 to 18, wherein the set acquisition module includes:
[0281] A first set acquisition submodule, configured to acquire the first sample set from a first data system;
[0282] The second set acquisition submodule is used to acquire the second sample set from a second data system.
[0283] Example 20 may include the apparatus of one or more of Examples 15-19, wherein the apparatus further comprises:
[0284] The system selection module is used to select a second data system matching the first data system according to the system attribute of the first data system before acquiring the second sample set from the second data system.
[0285] Example 21 may include the apparatus of one or more of Examples 15-20, wherein the apparatus further comprises:
[0286] A second set acquisition module, configured to acquire a fourth sample set for training a fourth recognition model and a fifth sample set for training a fifth recognition model after determining that the similarity data between the first sample set and at least one second sample set meets a preset requirement;
[0287] a matching determination module, configured to determine that the fourth sample set matches the first sample set, and the fifth sample set matches the second sample set;
[0288] The second merging module is used to merge the fourth sample set and the fifth sample set to obtain a sixth sample set replacing the fourth sample set as an input for training the fourth recognition model.
[0289] Example 22 may include the apparatus of one or more of Examples 15-21, wherein the apparatus further comprises:
[0290] A feature determination module, configured to determine feature data of the first sample set and feature data of the second sample set before determining that similarity data between the first sample set and at least one second sample set meets a preset requirement;
[0291] The matching determination module comprises:
[0292] a feature determination submodule, configured to determine feature data of the fourth sample set and feature data of the fifth sample set;
[0293] The matching determination submodule is used to determine that the feature data of the fourth sample set matches the feature data of the first sample set, and the feature data of the fifth sample set matches the feature data of the second sample set, then the fourth sample set matches the first sample set, and the fifth sample set matches the second sample set.
[0294] Example 23 may include the apparatus of one or more of Examples 15-22, wherein the apparatus further comprises:
[0295] The attribute condition determination module is used to determine whether the sample attributes of the fourth sample set and the sample attributes of the fifth sample set meet the preset attribute conditions before merging the fourth sample set and obtaining a sixth sample set that replaces the fourth sample set as an input for training the fourth recognition model.
[0296] Example 24 may include the apparatus of one or more of Examples 15-23, wherein the apparatus further comprises:
[0297] A first adding module, configured to add first marking data to the third sample set after the first sample set and the second sample set are combined to obtain a third sample set replacing the first sample set;
[0298] A second adding module, configured to provide a seventh sample set corresponding to the third sample set, and add second label data to the seventh sample set;
[0299] The third merging module is used to merge the third sample set and the seventh sample set to obtain an eighth sample set, which is used as an input of a supervised learning network to train the first recognition model.
[0300] Example 25 may include the apparatus of one or more of Examples 15-24, wherein the apparatus comprises:
[0301] A set processing module is used to perform at least one of the following processing on the eighth sample set after merging the third sample set and the seventh sample set to obtain an eighth sample set and using it as an input of a supervised learning network to train the first recognition model: normalization processing, vectorization processing, outlier smoothing processing, missing value processing, and feature screening processing.
[0302] Example 26 may include the apparatus of one or more of Examples 15-25, wherein the apparatus further comprises:
[0303] an evaluation module, configured to determine that the first recognition model trained with the third sample set as input meets the evaluation requirements after obtaining a third sample set replacing the first sample set by combining the first sample set and the second sample set as input for training the first recognition model;
[0304] A model providing module is used to provide the first recognition model.
[0305] Example 27 may include the apparatus described in one or more of Examples 15-26, wherein the first recognition model and the second recognition model are the same recognition model.
[0306] Example 28 includes a risk identification device, comprising:
[0307] A training module, used to train a first risk identification model by taking a third sample set replacing the first sample set as input, wherein the third sample set is obtained by acquiring a first sample set used for training the first risk identification model and at least one second sample set, wherein the at least one second sample set is used for training the second risk identification model, determining that similarity data between the first sample set and the at least one second sample set meets a preset requirement, and merging the first sample set and the second sample set;
[0308] An identification module is used to identify risk data using the first risk identification model.
[0309] Example 29 includes a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, one or more methods of Examples 1-14 are implemented.
[0310] Example 30 includes a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements one or more methods of Examples 1-14.
[0311] Although certain embodiments are for the purpose of illustration and description, various alternatives, and / or, equivalent implementations, or calculations to achieve the same purpose of the embodiment shown and described implementations do not depart from the scope of the present application. This application is intended to cover any modifications or changes of the embodiments discussed herein. Therefore, it is apparent that the embodiments described herein are limited only by the claims and their equivalents.
Claims
1. A data processing method, characterized in that: include: Obtain a first sample set for training a first recognition model, and at least one second sample set, wherein the at least one second sample set is used to train a second recognition model; wherein the data in the sample set is risk sample data collected from an e-commerce platform, and the risk sample data is risky sellers and related information or risky transaction behaviors and related information; the recognition model is a risk recognition model of an e-commerce transaction system; and the recognition model is used to identify risk data; Determining that similarity data between the first sample set and at least one second sample set meets preset requirements; Merging the first sample set and at least one second sample set to obtain a third sample set replacing the first sample set as an input for training the first recognition model; The determining whether the similarity data between the first sample set and at least one second sample set meets a preset requirement includes: Clustering the first samples in the first sample set and the second samples in the second sample set; Determining similarity data between the first sample set and the second sample set according to the clustering result; Determine whether the similarity data meets preset requirements.
2. The method according to claim 1, characterized in that Determining similarity data between the first sample set and the second sample set according to the clustering result includes: The ratio of the number of first samples belonging to the same class as the second sample in the clustering result to the total number of the first samples is calculated as the similarity data.
3. The method according to claim 1, characterized in that Before clustering the first samples in the first sample set and the second samples in the second sample set, the method further includes: Merging the first sample set and the second sample set; The first sample and the second sample are normalized and / or vectorized.
4. The method according to claim 1, characterized in that: The obtaining of a first sample set for training a first recognition model and at least one second sample set comprises: Acquire the first sample set from a first data system; The second sample set is obtained from a second data system.
5. The method according to claim 4, characterized in that Before acquiring the second sample set from the second data system, the method further includes: A second data system matching the first data system is selected according to the system attribute of the first data system.
6. The method according to claim 1, characterized in that After determining that the similarity data between the first sample set and at least one second sample set meets a preset requirement, the method further includes: Acquire a fourth sample set for training a fourth recognition model and a fifth sample set for training a fifth recognition model; Determining that the fourth sample set matches the first sample set, and the fifth sample set matches the second sample set; The fourth sample set and the fifth sample set are combined to obtain a sixth sample set replacing the fourth sample set as an input for training the fourth recognition model.
7. The method according to claim 6, characterized in that Before determining that the similarity data between the first sample set and at least one second sample set meets a preset requirement, the method further includes: Determine feature data of the first sample set and feature data of the second sample set; The determining that the fourth sample set matches the first sample set, and the fifth sample set matches the second sample set includes: Determining feature data of the fourth sample set and feature data of the fifth sample set; It is determined that the feature data of the fourth sample set matches the feature data of the first sample set, and the feature data of the fifth sample set matches the feature data of the second sample set, then the fourth sample set matches the first sample set, and the fifth sample set matches the second sample set.
8. The method according to claim 6, characterized in that Before merging the fourth sample set and the fifth sample set to obtain a sixth sample set replacing the fourth sample set as an input for training the fourth recognition model, the method further includes: It is determined that the sample attributes of the fourth sample set and the sample attributes of the fifth sample set meet preset attribute conditions.
9. The method according to claim 1, characterized in that: After merging the first sample set and the second sample set to obtain a third sample set replacing the first sample set, the method further includes: Adding first label data to the third sample set; providing a seventh sample set corresponding to the third sample set, and adding second label data to the seventh sample set; The third sample set and the seventh sample set are combined to obtain an eighth sample set, which is used as an input of a supervised learning network to train the first recognition model.
10. The method according to claim 9, characterized in that After combining the third sample set and the seventh sample set to obtain an eighth sample set and using the eighth sample set as an input of a supervised learning network to train the first recognition model, the method includes: The eighth sample set is subjected to at least one of the following processing: normalization processing, vectorization processing, outlier smoothing processing, missing value processing, and feature screening processing.
11. The method according to claim 1, characterized in that: After merging the first sample set and the second sample set to obtain a third sample set replacing the first sample set as an input for training the first recognition model, the method further includes: Determining that a first recognition model trained with the third sample set as input meets the evaluation requirements; The first recognition model is provided.
12. The method according to claim 1, characterized in that The first recognition model and the second recognition model are the same recognition model.
13. A risk identification method, characterized in that: include: A first risk identification model is obtained by training a third sample set replacing the first sample set as input, wherein the third sample set is obtained by obtaining the first sample set used to train the first risk identification model, and at least one second sample set, wherein the at least one second sample set is used to train the second risk identification model, determining that the similarity data between the first sample set and the at least one second sample set meets the preset requirements, and merging the first sample set and the second sample set; wherein the data in the sample set is risk sample data collected from an e-commerce platform, and the risk sample data is risky sellers and related information thereof or risky transaction behaviors and related information thereof; and the identification model is a risk identification model of an e-commerce transaction system; Using the first risk identification model to identify risk data; The determining whether the similarity data between the first sample set and at least one second sample set meets a preset requirement includes: Clustering the first samples in the first sample set and the second samples in the second sample set; Determining similarity data between the first sample set and the second sample set according to the clustering result; Determine whether the similarity data meets preset requirements.
14. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 13 is implemented.
15. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 13 is implemented.
