A model training method, business allocation method, device and equipment

Through the methods of clustering and constructing constraint coefficients, the problem of multi-category data affecting model accuracy in semi-supervised learning is solved, and the accuracy of user classification and business processing efficiency are improved.

CN113344066BActive Publication Date: 2024-08-23INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110603499.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-31
Publication Date
2024-08-23
Estimated Expiration
2041-05-31

AI Technical Summary

Technical Problem

In semi-supervised learning, the use of multi-category data may affect the accuracy of model training, leading to a reduction in the accuracy of user classification, thereby affecting user experience.

Method used

By obtaining user sample data, dividing it into single-view data from different business processing perspectives, performing clustering, constructing correlation constraint coefficients and smoothing constraint coefficients, and adjusting the similarity of the data, thereby comprehensively training the user classification model.

Benefits of technology

It improves the accuracy of user classification, ensures the effective utilization of data in semi-supervised learning, and improves the efficiency of business processing and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113344066B
    Figure CN113344066B
Patent Text Reader

Abstract

The embodiments of this specification provide a model training method, a business allocation method, an apparatus and a device, which can be applied to the field of artificial intelligence technology. The method includes: obtaining user sample data; the user sample data includes labeled data and unlabeled data; dividing the user sample data into single-view data corresponding to at least two business processing perspectives; clustering each group of single-view data to obtain data clustering results under each business processing perspective; constructing an association constraint coefficient according to the data clustering structure; determining a smoothing constraint coefficient based on the user sample data; training a user classification model based on the data clustering results; the user classification model is used to determine the user category according to the user data. The above method ensures the effective use of data in the semi-supervised learning process, improves the accuracy of user classification, and is conducive to allocating corresponding services to users in the subsequent process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of this specification relate to the field of artificial intelligence technology, and in particular to a model training method, a business allocation method, a device and equipment. Background Art

[0002] With the development and progress of society, the subdivision of business types is also increasing. These businesses can be businesses that provide corresponding services to users, or businesses that require users to process in a timely manner. Correspondingly, different types of users need to obtain different services. Therefore, judging the services that users may obtain based on the relevant information of users in advance, and preparing the data and resources corresponding to the corresponding services in advance, can effectively improve the efficiency of business processing in the subsequent process and improve the user experience.

[0003] In the process of model training, in order to balance the workload of labeling sample data and the accuracy of model training, the model will be trained using a semi-supervised learning method, that is, using a part of labeled data and a part of unlabeled data for training. However, in practical applications, the sample data may correspond to more categories. When using multiple categories of data to train the model at the same time, it may affect the accuracy of model training. When only part of the data is labeled, there may be certain differences in the data categories corresponding to the labeled data and the unlabeled data. When training with a combination of labeled data and unlabeled data, the final training effect may be affected by the difference in data categories, reducing the accuracy of using the model to classify users, thereby affecting the user experience. Therefore, there is an urgent need for a method that can accurately and effectively train models based on semi-supervised learning. Summary of the invention

[0004] The purpose of the embodiments of this specification is to provide a model training method, a business allocation method, an apparatus and a device to solve the problem of how to improve the accuracy of user classification to improve the user experience of handling business.

[0005] To solve the above technical problems, an embodiment of the present specification provides a model training method based on user classification, including: obtaining user sample data; the user sample data includes labeled data and unlabeled data; the labeled data corresponds to a user category; the user sample data is divided into single-perspective data corresponding to at least two business processing perspectives; the business processing perspective is used to indicate different categories of data; clustering is performed on each group of single-perspective data to obtain data clustering results under each business processing perspective; an association constraint coefficient is constructed according to the data clustering results; the association constraint coefficient is used to adjust the similarity of the training results of the single-perspective data under each business processing perspective; a smoothing constraint coefficient is determined based on the user sample data; the smoothing constraint coefficient is used to adjust the similarity of the training results of the labeled data and the unlabeled data; a user classification model is obtained by training the association constraint coefficient and the smoothing constraint coefficient; the user classification model is used to determine the user category according to the user data.

[0006] The embodiment of this specification also proposes a model training device based on user classification, including: a user sample data acquisition module, used to acquire user sample data; the user sample data includes labeled data and unlabeled data; the labeled data corresponds to a user category; a single-view data division module, used to divide the user sample data into single-view data corresponding to at least two business processing perspectives respectively; the business processing perspective is used to indicate different categories of data; a clustering module, used to cluster each group of single-view data separately to obtain data clustering results under each business processing perspective; an association constraint coefficient construction module, used to construct an association constraint coefficient according to the data clustering results; the association constraint coefficient is used to adjust the similarity of the training results of the single-view data under each business processing perspective; a smoothing constraint coefficient determination module, used to determine a smoothing constraint coefficient based on the user sample data; the smoothing constraint coefficient is used to adjust the similarity of the training results of the labeled data and the unlabeled data; a training module, used to train the user classification model based on the data clustering results; the user classification model is used to determine the user category according to the user data.

[0007] The embodiment of this specification also proposes a model training device based on user classification, including a memory and a processor; the memory is used to store computer program instructions; the processor is used to execute the computer program instructions to implement the following steps: obtaining user sample data; the user sample data includes labeled data and unlabeled data; the labeled data corresponds to a user category; dividing the user sample data into single-view data corresponding to at least two business processing perspectives respectively; the business processing perspective is used to indicate different categories of data; clustering is performed on each group of single-view data to obtain data clustering results under each business processing perspective; constructing an association constraint coefficient based on the data clustering structure; the association constraint coefficient is used to adjust the similarity of the training results of the single-view data under each business processing perspective; determining a smoothing constraint coefficient based on the user sample data; the smoothing constraint coefficient is used to adjust the similarity of the training results of the labeled data and the unlabeled data; training a user classification model based on the data clustering results; the user classification model is used to determine the user category based on the user data.

[0008] In order to solve the above technical problems, the embodiment of this specification also proposes a business allocation method based on user classification, including: obtaining user feature information of the target user; inputting the user feature information into a user classification model to obtain a user category; the user classification model is obtained in the following manner: obtaining user sample data; the user sample data includes labeled data and unlabeled data; the labeled data corresponds to a user category; the user sample data is divided into single-perspective data corresponding to at least two business processing perspectives; the business processing perspective is used to indicate different categories of data; clustering is performed on each group of single-perspective data to obtain data clustering results under each business processing perspective; constructing an association constraint coefficient based on the data clustering results; the association constraint coefficient is used to adjust the similarity of the training results of the single-perspective data under each business processing perspective; determining a smoothing constraint coefficient based on the user sample data; the smoothing constraint coefficient is used to adjust the similarity of the training results of the labeled data and the unlabeled data; training the user classification model by combining the association constraint coefficient and the smoothing constraint coefficient; and allocating the business corresponding to the user category to the target user.

[0009] The embodiment of this specification also proposes a service allocation device based on user classification, including: a feature information acquisition module, used to obtain user feature information of a target user; a user category acquisition module, used to input the user feature information into a user classification model to obtain a user category; the user classification model is obtained in the following manner: obtaining user sample data; the user sample data includes labeled data and unlabeled data; the labeled data corresponds to a user category; the user sample data is divided into single-view data corresponding to at least two service processing perspectives; the service processing perspective is used to indicate different categories of data; clustering is performed on each group of single-view data to obtain data clustering results under each service processing perspective; an association constraint coefficient is constructed according to the data clustering results; the association constraint coefficient is used to adjust the similarity of training results of single-view data under each service processing perspective; a smoothing constraint coefficient is determined based on the user sample data; the smoothing constraint coefficient is used to adjust the similarity of training results of labeled data and unlabeled data; the user classification model is obtained by training the association constraint coefficient and the smoothing constraint coefficient in combination; a service allocation module is used to allocate the service corresponding to the user category to the target user.

[0010] The embodiment of the present specification also proposes a service allocation device based on user classification, including a memory and a processor; the memory is used to store computer program instructions; the processor is used to execute the computer program instructions to implement the following steps: obtaining user feature information of a target user; inputting the user feature information into a user classification model to obtain a user category; the user classification model is obtained in the following manner: obtaining user sample data; the user sample data includes labeled data and unlabeled data; the labeled data corresponds to a user category; dividing the user sample data into single-view data corresponding to at least two service processing perspectives; the service processing perspective is used to indicate different categories of data; clustering is performed on each group of single-view data to obtain data clustering results under each service processing perspective; constructing an association constraint coefficient according to the data clustering result; the association constraint coefficient is used to adjust the similarity of the training results of the single-view data under each service processing perspective; determining a smoothing constraint coefficient based on the user sample data; the smoothing constraint coefficient is used to adjust the similarity of the training results of the labeled data and the unlabeled data; training the user classification model by combining the association constraint coefficient and the smoothing constraint coefficient; and allocating the service corresponding to the user category to the target user.

[0011] It can be seen from the technical solutions provided by the above embodiments of this specification that after obtaining user sample data containing a portion of labeled data, the embodiments of this specification divide the user sample data into data corresponding to different business processing perspectives, and then cluster these data. Based on the clustering results, the association constraint coefficient and the smoothness constraint coefficient are further determined to quantitatively evaluate the correlation between labeled data and unlabeled data and the correlation between output results, and then the final user classification model is obtained by training the association constraint coefficient and the smoothness constraint coefficient. Through the above method, the model training effect and the correlation between labeled data and unlabeled data can be effectively combined, which ensures the effective use of data in the semi-supervised learning process, improves the accuracy of user classification, and is conducive to the allocation of corresponding services to users in the subsequent process. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] In order to more clearly illustrate the embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0013] Figure 1 This is a flow chart of a model training method based on user classification according to an embodiment of this specification;

[0014] Figure 2 A flowchart of a model training process based on semi-supervised learning according to an embodiment of this specification;

[0015] Figure 3 This is a flow chart of a service allocation method based on user classification according to an embodiment of this specification;

[0016] Figure 4 This is a schematic diagram of a process for predicting user categories according to an embodiment of this specification;

[0017] Figure 5 This is a module diagram of a model training device based on user classification according to an embodiment of this specification;

[0018] Figure 6 This is a module diagram of a service allocation device based on user classification according to an embodiment of this specification;

[0019] Figure 7 This is a structural diagram of a model training device based on user classification according to an embodiment of this specification;

[0020] Figure 8 This is a structural diagram of a service allocation device based on user classification according to an embodiment of this specification. DETAILED DESCRIPTION

[0021] The following will be combined with the drawings in the embodiments of this specification to clearly and completely describe the technical solutions in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this specification.

[0022] In order to solve the above technical problems, firstly, a model training method based on user classification is introduced in the embodiment of this specification. The execution subject of the model training method based on user classification is a model training device based on user classification, and the model training device based on user classification includes but is not limited to a server, an industrial computer, a PC, etc. Figure 1 As shown, the user classification-based model training method may include the following specific implementation steps.

[0023] S110: Obtain user sample data; the user sample data includes labeled data and unlabeled data; the labeled data corresponds to a user category.

[0024] User sample data can be sample data used to train a model. The user sample data can be basic information of the user, such as education, gender, age, etc., or historical records of the user's business operations. Specifically, the user sample data can include labeled data and unlabeled data. In the field of machine learning, modeling and learning based on partially labeled data and partially unlabeled data is fast and accurate, and has good application value.

[0025] The labeled data is data marked with corresponding labels. The label may be a user category. The user category is the result of classifying the user in combination with the user's business processing situation. For example, the user category may include a positive category and a negative category, which respectively represent a large amount of historical business processing and a small amount of historical business processing.

[0026] In some embodiments, when obtaining labeled data, a labeled user may be selected from the sample users corresponding to the user sample data. A labeled user is a user who needs to be labeled to obtain the corresponding user category. After determining the labeled user, the historical business record of the labeled user may be obtained. The historical business record may be a record retained when the user previously processed a business, and specifically may be information such as the type of business processed, the duration of business processing, and the number of businesses. The business processing record may be a record within a preset test time, for example, it may be set to 3 days, 7 days, one month, three months, etc.

[0027] The user category can be set for the annotated user based on the historical business records. The specific method of setting the user category is to feed back the historical business records to the terminal corresponding to the manager, and then the manager determines the user category based on the historical business records, or to use a pre-trained classifier model to determine the user category corresponding to the annotated user. Correspondingly, the user category also corresponds to the user sample data of the annotated user, that is, the user category of the annotated user can be determined based on the user sample data, thereby completing the determination of the labeled data.

[0028] Using a specific example to illustrate, it is assumed that the added labels include positive labels and negative labels. A positive label can indicate that the user has a relatively frequent business processing record, and a negative label can indicate that the user has almost no business processing record in the recent period. Accordingly, the preset test time can be set to 3 months. After obtaining the business processing records of the test user within three months, if the test user has a business processing record within three months, the positive label is marked; if the test user has no business processing record within three months, the negative label is marked. The positive label and the negative label can be set based on the type of business handled by the user. For example, the monthly average daily financial assets in the performance period can be increased by 50% relative to the monthly average daily financial assets in the last month of the observation period. It is defined as a high-value customer, and the label is set to 1, representing a positive label; it is defined as a non-high-value customer with the sample, and the label is set to -1, representing a negative label.

[0029] The above implementation is only a specific example designed in combination with label categories. In actual applications, other methods can be used to label data based on different types of labels, which will not be described in detail here.

[0030] Preferably, in order to reduce the time consumed in labeling data, the labeled data may correspond to only a small proportion of the overall user sample data.

[0031] In some embodiments, after the user sample data is obtained, the user sample data may be preprocessed. The preprocessing includes: completing the original features based on preset feature fields. In order to ensure that the original features can be effectively utilized in subsequent processes, the missing value columns in the original features may be completed. The preset feature fields may be fields corresponding to different completion rules. For example, for missing values ​​of numerical features in the original features, the preset feature fields may be completed with a "0" value; for missing values ​​of non-numerical features, the preset feature fields may be completed with an "unknown" value. In actual applications, other preset feature fields may be used to complete the original features as needed, which is not limited to the above examples and will not be repeated here.

[0032] S120: Divide the user sample data into single-perspective data corresponding to at least two business processing perspectives respectively; the business processing perspectives are used to indicate different categories of data.

[0033] The service processing perspective may be used to represent different information categories, so that user data may be distinguished using the service processing perspective, that is, used to indicate different categories of data.

[0034] In some implementations, the business processing perspective may include at least one of a basic information perspective, an asset information perspective, a holding information perspective, and a behavior information perspective.

[0035] User data from different business processing perspectives have different data characteristics. Specifically, based on the above implementation method, the characteristics in the basic information perspective may include information such as gender, age group, marital status, housing, vehicle, occupation and industry; the characteristics in the asset information perspective may include information such as point-in-time assets, average daily assets, historical assets, etc.; the characteristics in the holding information perspective may include information such as current balance, time balance, bond balance, fund balance, gold balance, RMB and foreign currency wealth management balance, third-party custody balance, insurance balance and personal consumption loan balance; the characteristics in the behavior information perspective may include information such as the number of consumption transactions, consumption amount, investment and wealth management converted to deposit amount, deposit converted to investment and wealth management, cash withdrawal amount, credit card repayment amount, debit card consumption amount, number of online banking transactions in the past year, and number of mobile banking transactions in the past year.

[0036] Based on the above-mentioned various business processing perspectives and the corresponding characteristics of the data under different business processing perspectives, these user sample data can be divided to obtain the corresponding data under different business processing perspectives.

[0037] The single-view data is the data corresponding to a certain business processing perspective after the division is completed. It should be noted that different single-view data can be completely different, or there can be some identical data, and there is no limitation on this.

[0038] In some implementations, after acquiring the single-view data, feature data corresponding to different data features under the single-view data can be determined, and the data features are used to represent the data categories subdivided under the business processing perspective. For a specific description of the data features, reference can be made to the introduction in the above implementations. After determining the feature data, clustering can be performed based on the feature data in subsequent steps, thereby more effectively achieving data clustering and model training effects.

[0039] S130: Clustering each group of single-view data respectively to obtain data clustering results under each business processing perspective.

[0040] After determining the single-view data corresponding to each business processing perspective, clustering can be performed for each group of single-view data. Clustering is to divide these single-view data into different clusters according to the similarity between different data in each group of single-view data. The number of these clusters can be pre-set or determined based on the effect of the actual clustering process, so as to achieve different degrees of clustering process.

[0041] Different clusters can be set for different business processing perspectives. For example, based on the example in step S120, two clusters can be set in the basic information perspective, three clusters can be set in the asset information perspective, four clusters can be set in the holding information perspective, and five clusters can be set in the behavior information perspective. In actual applications, the number of clusters can be set according to needs, and there is no limitation on this.

[0042] In some embodiments, the process of clustering the single-view data may be to first obtain the similarity relationship between the single-view data under each business processing perspective, and then construct a weighted association matrix for each group of single-view data based on the similarity relationship. The weighted association matrix is ​​used to represent the clustering results of the data under each business processing perspective. The similarity relationship can be represented by the degree of similarity between the data or the distance between the data. Specifically, the similarity relationship can be a 1-value similarity relationship and a 0-value similarity relationship, which are respectively used to represent that two single-view data are similar or dissimilar.

[0043] In a specific example, the formula Calculate the similarity relationship, where s(i,j) represents the single-view data x i With single-view data x j The similarity relationship between them, V represents the number of business processing perspectives, K v represents the number of clusters from the perspective of the vth business process, I(x i ,x j ) (v,k) is the single-view data x i With single-view data x j The correlation function in the kth cluster from the perspective of the vth business process, where is the kth cluster from the vth perspective, is the single-view data x i With single-view data x j The intra-cluster density coefficient in the kth cluster from the perspective of the vth business process, where Cluster The number of single-view data, is the single-view data x iand x j In cluster The distance in. Cluster The mean of the single-view data,

[0044] S140: constructing an association constraint coefficient according to the data clustering result; the association constraint coefficient is used to adjust the similarity of the training results of the single-view data under each business processing perspective.

[0045] In the case where the data clustering result can be used to represent the classification relationship of the single-view data, the association constraint coefficient can be determined by the data clustering result. The association constraint coefficient is used to adjust the similarity of the training results of the single-view data under each business processing perspective.

[0046] The association constraint coefficient can be used to refer to the weighted association constraint of multi-view clustering. Based on the constructed association matrix, a weighted association constraint based on multi-view clustering can be constructed so that similar sample data in the feature space can also maintain the same similar relationship in the output space.

[0047] Specifically, the weighted association constraint R based on multi-view clustering sim The specific calculation method can be to use the formula Calculate the association constraint coefficient, where R sim is the association constraint coefficient, |L| is the number of labeled data, |U| is the number of unlabeled data, f(x) is the pre-set user classification model, s(i,j) is the single-view data x i With x j The associated relationship.

[0048] By calculating the association constraint coefficient, a better evaluation is obtained for the association relationship between different user sample data, so that in subsequent steps, the training effect of the model can be effectively evaluated in combination with the association constraint coefficient.

[0049] S150: Determine a smooth constraint coefficient based on the user sample data; the smooth constraint coefficient is used to adjust the similarity of training results of labeled data and unlabeled data.

[0050] While calculating the association constraint coefficient, the user sample data can also be used to determine the smooth constraint coefficient. The smooth constraint coefficient is used to adjust the similarity of the training results of the labeled data and the unlabeled data. Since the model training method adopts semi-supervised learning when training the model, that is, the training samples include labeled samples and unlabeled samples, in order to ensure the consistency of the labeled samples and the unlabeled samples in the training results and output results, the smooth constraint coefficient can be calculated to calculate the above standards.

[0051] In some implementations, the smoothing constraint coefficient can be used for label smoothing constraints, that is, to make the mean of similar samples of labeled samples in the output space as consistent as possible with the true label of the labeled samples, thereby improving the generalization effect of the model. Specifically, the formula can be used Calculate the smoothing constraint coefficient, where R smo is the smoothing constraint coefficient, |L| is the number of labeled data, |U| is the number of unlabeled data, f(x) is the pre-set user classification model, s(i,j) is the single-view data x i With x j The associated relationship.

[0052] By calculating the smoothing constraint coefficient, the correlation between the labeled sample data and the unlabeled sample data is determined, so that the similarities between different types of sample data can be integrated to effectively evaluate and optimize the training effect of the model.

[0053] S160: A user classification model is obtained by training the association constraint coefficient and the smoothness constraint coefficient; the user classification model is used to determine the user category according to the user data.

[0054] After obtaining the association constraint coefficient and the smoothness constraint coefficient, the evaluation effect of the above coefficients on the sample data can be effectively utilized to complete the training of the user classification model.

[0055] After the corresponding user classification model is pre-set, the classification effect of the user classification model may not be particularly good, and the user classification model needs to be further optimized. Therefore, the model can be further optimized according to the training results of the model in each training batch to improve the accuracy of the model in classifying users.

[0056] Specifically, for example, the user classification model may be optimized using a gradient descent method until the number of optimizations reaches a preset iteration threshold or the loss value of two objective functions is less than a preset loss threshold. The actual optimization process may be set and adjusted based on the details in a specific application, which will not be described in detail here.

[0057] Since the association constraint coefficient and the smoothness constraint coefficient can effectively evaluate the data, the corresponding objective function can be constructed in combination with the association constraint coefficient and the smoothness constraint coefficient, and then the calculation result of the objective function can be used to evaluate the training effect of the model to achieve the result of optimizing the model.

[0058] Specifically, the objective function can be constructed as L = R emp +α·R sim +β·R smo, where L is the objective function, R emp is the experience loss, where |L| is the number of labeled data, y i is the user category with labeled data, f(x i ) is the user sample data x determined by the user classification model i The corresponding user category, α, β are hyper parameters, R sim is the association constraint coefficient, R smo Smoothness constraint coefficient.

[0059] In the actual calculation process, the optimization process can use the formula To achieve this, we can obtain the user classification model, where F(x) is the user classification model, f v is a subclassifier, x is user information, ω1 is the first user category, and ω2 is the second user category. The above examples are only formulas set when the subclassifier corresponds to the above three information categories. In actual applications, the corresponding formula for generating a user classification model can be determined according to the specific information category, which is not limited to the above examples and will not be repeated here.

[0060] The following uses a specific scenario example to introduce the above user classification-based model training method. Figure 2 As shown, it is a flow chart of a model training method. Among them, after obtaining labeled samples and unlabeled samples, these sample data are divided into different single-perspective data under the basic information perspective, asset information perspective, holding information perspective and behavior information perspective. These single-perspective data are further clustered, so as to obtain different numbers of clusters under different perspectives. Afterwards, a weighted association matrix based on multi-perspective clustering is constructed according to these clustered data, and the weighted association matrix is ​​used to respectively obtain the weighted association constraints and label smoothing constraints, which correspond to the association constraint coefficients and smoothing constraint coefficients in the above embodiment. According to the weighted association constraints and label smoothing constraints, a semi-supervised high-value customer mining model with weighted association constraints and label smoothing constraints based on subspace clustering is trained.

[0061] Based on the introduction of the above embodiments and scenario examples, it can be seen that after the method obtains the user sample data containing a portion of labeled data, it divides the user sample data into data corresponding to different business processing perspectives, and then clusters these data. Based on the clustering results, the association constraint coefficient and the smoothness constraint coefficient are further determined to quantitatively evaluate the correlation between labeled data and unlabeled data and the correlation between output results, and then the association constraint coefficient and the smoothness constraint coefficient are trained to obtain the final user classification model. Through the above method, the model training effect and the correlation between labeled data and unlabeled data can be effectively combined, which ensures the effective use of data in the semi-supervised learning process, improves the accuracy of user classification, and is conducive to the allocation of corresponding services to users in the subsequent process.

[0062] based on Figure 1 Corresponding to the model training method based on user classification, the embodiment of this specification also proposes a service allocation method based on user classification. The execution subject of the service allocation method based on user classification can be a service allocation device based on user classification, and the service allocation device based on user classification includes but is not limited to a server, an industrial computer, a PC, etc. Figure 3 As shown, the service allocation method based on user classification includes the following specific implementation steps.

[0063] S310: Obtain user characteristic information of the target user.

[0064] The target user may be a user to whom a service needs to be assigned, or to whom a service needs to be predicted. User characteristic information is information corresponding to the target user. The user characteristic information may be set according to the requirements of the user classification model. For example, the user characteristic information may be the identity information of the user himself, or may be information of historical services handled by the user, etc., without limitation.

[0065] S320: Input the user feature information into a user classification model to obtain a user category; the user classification model is obtained in the following manner: obtain user sample data; the user sample data includes labeled data and unlabeled data; the labeled data corresponds to a user category; divide the user sample data into single-perspective data corresponding to at least two business processing perspectives; the business processing perspective is used to indicate different categories of data; cluster each group of single-perspective data separately to obtain data clustering results under each business processing perspective; construct an association constraint coefficient based on the data clustering results; the association constraint coefficient is used to adjust the similarity of the training results of the single-perspective data under each business processing perspective; determine a smoothing constraint coefficient based on the user sample data; the smoothing constraint coefficient is used to adjust the similarity of the training results of the labeled data and the unlabeled data; and obtain a user classification model by training the association constraint coefficient and the smoothing constraint coefficient in combination.

[0066] After obtaining the user characteristic information, the user characteristic information can be directly input into the user classification model to obtain the corresponding user category. The user classification model is used to identify and classify users according to the user characteristic information to determine the user category to which the target user belongs.

[0067] For a detailed introduction to the user classification model, please refer to Figure 1 The introduction of the corresponding model training method based on user classification will not be repeated here.

[0068] S330: Allocate the service corresponding to the user category to the target user.

[0069] Based on different user categories, corresponding services can be preset, and after the user category corresponding to the target user is determined, the service corresponding to the user category can be allocated to the target user.

[0070] The specific correspondence between the user category and the service can be directly specified by the management personnel, or can be obtained through training based on historical data. The specific acquisition method can be set based on the actual application situation, which will not be described in detail here.

[0071] The above business allocation method is introduced using a scenario example. Figure 4 As shown, it is a flowchart of a business allocation process, wherein, after obtaining the corresponding user data from the data warehouse, the user data is preprocessed, and after extracting the corresponding data features, the data is divided into training samples and test samples, the training samples are used for model training, and the final semi-supervised high-value customer mining model based on weighted association constraints and label smoothing constraints is obtained in combination with the test samples, so as to obtain the final prediction result to realize the allocation of the corresponding business.

[0072] based on Figure 1 The corresponding model training method based on user classification introduces a model training device based on user classification in the embodiment of this specification. The model training device based on user classification can be set in a model training device based on user classification. Figure 5 As shown, the user classification-based model training device includes the following modules.

[0073] The user sample data acquisition module 510 is used to acquire user sample data; the user sample data includes labeled data and unlabeled data; the labeled data corresponds to a user category;.

[0074] The single-view data division module 520 is used to divide the user sample data into single-view data corresponding to at least two business processing perspectives respectively; the business processing perspectives are used to indicate different categories of data.

[0075] The clustering module 530 is used to cluster each group of single-view data to obtain data clustering results under each business processing perspective.

[0076] The association constraint coefficient construction module 540 is used to construct an association constraint coefficient according to the data clustering result; the association constraint coefficient is used to adjust the similarity of the training results of the single-view data under each business processing perspective.

[0077] The smoothing constraint coefficient determination module 550 is used to determine the smoothing constraint coefficient based on the user sample data; the smoothing constraint coefficient is used to adjust the similarity of the training results of the labeled data and the unlabeled data.

[0078] The training module 560 is used to train a user classification model based on the data clustering results; the user classification model is used to determine the user category according to the user data.

[0079] based on Figure 3 The corresponding user classification-based service allocation method introduces a user classification-based service allocation device in the embodiment of this specification. The user classification-based service allocation device is arranged in the user classification-based service allocation device. Figure 6 As shown, the service allocation device based on user classification includes the following modules.

[0080] The feature information acquisition module 610 is used to acquire user feature information of the target user.

[0081] The user category acquisition module 620 is used to input the user feature information into a user classification model to obtain a user category; the user classification model is obtained in the following manner: obtaining user sample data; the user sample data includes labeled data and unlabeled data; the labeled data corresponds to a user category; dividing the user sample data into single-view data corresponding to at least two business processing perspectives; the business processing perspective is used to indicate different categories of data; clustering is performed on each group of single-view data to obtain data clustering results under each business processing perspective; constructing an association constraint coefficient based on the data clustering results; the association constraint coefficient is used to adjust the similarity of the training results of the single-view data under each business processing perspective; determining a smoothing constraint coefficient based on the user sample data; the smoothing constraint coefficient is used to adjust the similarity of the training results of the labeled data and the unlabeled data; and training the user classification model by combining the association constraint coefficient and the smoothing constraint coefficient.

[0082] The service allocation module 630 is configured to allocate the service corresponding to the user category to the target user.

[0083] based on Figure 1 Corresponding to the user classification-based model training method, the embodiment of this specification provides a user classification-based model training device. Figure 7 As shown, the user classification-based model training device may include a memory and a processor.

[0084] In this embodiment, the memory may be implemented in any appropriate manner. For example, the memory may be a read-only memory, a mechanical hard disk, a solid-state hard disk, or a USB flash drive, etc. The memory may be used to store computer program instructions.

[0085] In this embodiment, the processor may be implemented in any suitable manner. For example, the processor may take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro)processor, a logic gate, a switch, an application specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller, etc. The processor can execute the computer program instructions to implement the following steps: obtaining user sample data; the user sample data includes labeled data and unlabeled data; the labeled data corresponds to a user category; dividing the user sample data into single-perspective data corresponding to at least two business processing perspectives; the business processing perspective is used to indicate different categories of data; clustering each group of single-perspective data separately to obtain data clustering results under each business processing perspective; constructing an association constraint coefficient based on the data clustering structure; the association constraint coefficient is used to adjust the similarity of training results of single-perspective data under each business processing perspective; determining a smoothing constraint coefficient based on the user sample data; the smoothing constraint coefficient is used to adjust the similarity of training results of labeled data and unlabeled data; training a user classification model based on the data clustering results; the user classification model is used to determine the user category based on the user data.

[0086] based on Figure 3 Corresponding to the service allocation method based on user classification, the embodiment of this specification provides a service allocation device based on user classification. Figure 8 As shown, the service allocation device based on user classification may include a memory and a processor.

[0087] In this embodiment, the memory may be implemented in any appropriate manner. For example, the memory may be a read-only memory, a mechanical hard disk, a solid-state hard disk, or a USB flash drive, etc. The memory may be used to store computer program instructions.

[0088] In this embodiment, the processor may be implemented in any suitable manner. For example, the processor may take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro)processor, a logic gate, a switch, an application specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller, etc. The processor can execute the computer program instructions to implement the following steps: obtain user feature information of the target user; input the user feature information into a user classification model to obtain a user category; the user classification model is obtained in the following manner: obtain user sample data; the user sample data includes labeled data and unlabeled data; the labeled data corresponds to a user category; the user sample data is divided into single-view data corresponding to at least two business processing perspectives; the business processing perspective is used to indicate different categories of data; clustering is performed on each group of single-view data to obtain data clustering results under each business processing perspective; an association constraint coefficient is constructed according to the data clustering results; the association constraint coefficient is used to adjust the similarity of the training results of the single-view data under each business processing perspective; a smoothing constraint coefficient is determined based on the user sample data; the smoothing constraint coefficient is used to adjust the similarity of the training results of the labeled data and the unlabeled data; the user classification model is obtained by training the association constraint coefficient and the smoothing constraint coefficient; and the business corresponding to the user category is allocated to the target user.

[0089] It should be noted that the above-mentioned grayscale testing method, device and equipment can be applied to the field of artificial intelligence technology, and can also be applied to other technical fields except the field of artificial intelligence technology, without any limitation.

[0090] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages ​​and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.

[0091] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0092] It can be known from the above description of the implementation mode that the technicians in this field can clearly understand that the present specification can be implemented by means of software plus the necessary first hardware platform. Based on such an understanding, the technical solution of the present specification can be essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present specification or some parts of the embodiments.

[0093] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system 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.

[0094] This specification can be used in many first or special computer system environments or configurations, such as personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc.

[0095] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0096] Although the present specification is described through embodiments, those skilled in the art will appreciate that there are many modifications and changes to the present specification without departing from the spirit of the present specification, and it is intended that the appended claims include these modifications and changes without departing from the spirit of the present specification.

Claims

1. A model training method based on user classification, characterized in that: include: Obtain user sample data; the user sample data includes labeled data and unlabeled data; the labeled data corresponds to a user category; Dividing the user sample data into single-view data corresponding to at least two business processing perspectives respectively; the business processing perspectives are used to indicate different categories of data; Cluster each group of single-view data separately to obtain data clustering results from each business processing perspective; constructing an association constraint coefficient according to the data clustering result; The association constraint coefficient is used to adjust the similarity of the training results of the single-view data under each business processing perspective; Determining a smoothing constraint coefficient based on the user sample data; the smoothing constraint coefficient is used to adjust the similarity of training results of labeled data and unlabeled data; The user classification model is obtained by training the associated constraint coefficient and the smooth constraint coefficient; including: constructing an objective function based on the associated constraint coefficient and the smooth constraint coefficient, and using the objective function to train the user classification model; the user classification model is used to determine the user category according to the user sample data; Wherein, constructing the association constraint coefficient according to the data clustering result includes: Using the formula Calculate the association constraint coefficient, where R sim is the association constraint coefficient, |L| is the number of labeled data, |U| is the number of unlabeled data, f(x) is the pre-set user classification model, s(i,j) is the single-view data x i With x j The relationship between Wherein, determining the smoothing constraint coefficient based on the user sample data includes: Using the formula Calculate the smoothing constraint coefficient, where R smo is the smoothness constraint coefficient, y i is the user category with labeled data.

2. The method according to claim 1, characterized in that The obtaining of user sample data includes: Selecting a labeled user from sample users corresponding to the user sample data; Obtaining historical business records of the marked user; A user category is set for the marked user according to the historical business record; the user category corresponds to user sample data of the marked user.

3. The method according to claim 1, characterized in that The business processing perspective includes at least one of a basic information perspective, an asset information perspective, a holding information perspective, and a behavior information perspective.

4. The method according to claim 1, characterized in that The business processing perspectives correspond to at least two data features respectively; the data features are used to express different categories of data; after the user sample data is divided into single-perspective data corresponding to at least two business processing perspectives, the method further includes: Determine feature data corresponding to different data features under the single-view data; Accordingly, clustering is performed on each group of single-view data to obtain data clustering results under each business processing perspective, including: Each group of single-view data is clustered separately in combination with the feature data to obtain data clustering results under each business processing perspective.

5. The method according to claim 1, characterized in that The clustering is performed for each group of single-view data to obtain data clustering results under each business processing perspective, including: Obtain similarity relationships between single-view data under each business processing perspective; A weighted association matrix is ​​constructed based on the similarity relationship; the weighted association matrix is ​​used to represent the clustering results of the data from the perspective of each business process.

6. The method according to claim 5, characterized in that The obtaining of similarity relationships between single-view data under each business processing perspective includes: Using the formula Calculate the similarity relationship, where s(i,j) represents the single-view data x i With single-view data x j The similarity relationship between them, V represents the number of business processing perspectives, K v represents the number of clusters from the perspective of the vth business process, I(x i ,x j ) (v,k) is the single-view data x i With single-view data x j The correlation function in the kth cluster from the perspective of the vth business process, where is the kth cluster from the vth perspective, is the single-view data x i With single-view data x j The intra-cluster density coefficient in the kth cluster from the perspective of the vth business process, where Cluster The number of single-view data in is the single-view data x i and x j In cluster The distance in Cluster The mean of the single-view data, 7. The method according to claim 1, characterized in that Before dividing the user sample data into single-view data corresponding to at least two business processing perspectives, the method further includes: The user sample data is preprocessed; the preprocessing includes: completing the user sample data based on preset feature fields.

8. The method according to claim 1, characterized in that The user classification model is obtained by training the combined association constraint coefficient and the smoothness constraint coefficient, including: Constructing an objective function based on the association constraint coefficient and the smoothness constraint coefficient; The user classification model is optimized according to the objective function; the user classification model is used to determine the user category corresponding to the user sample data under different business processing perspectives.

9. The method according to claim 8, characterized in that The constructing of the objective function based on the association constraint coefficient and the smoothness constraint coefficient comprises: Construct the objective function as L = R emp +α·R sim +β·R smo , where L is the objective function, R emp is the experience loss, where L| is the number of labeled data, y i is the user category with labeled data, f(x i ) is the user sample data x determined by the user classification model i The corresponding user category, α, β are hyper parameters, R sim is the association constraint coefficient, R smo Smoothness constraint coefficient.

10. The method according to claim 9, characterized in that The optimizing the user classification model according to the objective function includes: The user classification model is optimized using a gradient descent method until the number of optimizations reaches a preset iteration threshold or the loss value of two objective functions is less than a preset loss threshold.

11. A model training device based on user classification, characterized in that: include: A user sample data acquisition module, used to acquire user sample data; the user sample data includes labeled data and unlabeled data; the labeled data corresponds to a user category; A single-view data division module, used to divide the user sample data into single-view data corresponding to at least two business processing perspectives; the business processing perspectives are used to indicate different categories of data; The clustering module is used to cluster each group of single-view data and obtain data clustering results under each business processing perspective; An association constraint coefficient construction module, used to construct an association constraint coefficient according to the data clustering result; The association constraint coefficient is used to adjust the similarity of the training results of the single-view data under each business processing perspective; A smoothing constraint coefficient determination module, used to determine a smoothing constraint coefficient based on the user sample data; the smoothing constraint coefficient is used to adjust the similarity of the training results of the labeled data and the unlabeled data; A training module, used to train a user classification model based on the data clustering results; the user classification model is used to determine the user category based on the user sample data; in, The association constraint coefficient construction module uses the formula Calculate the association constraint coefficient, where R sim is the association constraint coefficient, |L| is the number of labeled data, |U| is the number of unlabeled data, f(x) is the pre-set user classification model, s(i,j) is the single-view data x i With x j 1. The relationship between The smoothing constraint coefficient determination module uses the formula Calculate the smoothing constraint coefficient, where R smo is the smoothness constraint coefficient, y i is the user category with labeled data; The training module is specifically used to construct an objective function based on the association constraint coefficient and the smoothness constraint coefficient, and to obtain a user classification model by training using the objective function.

12. A model training device based on user classification, comprising a memory and a processor; The memory is used to store computer program instructions; The processor is used to execute the computer program instructions to implement the following steps: obtaining user sample data; the user sample data includes labeled data and unlabeled data; the labeled data corresponds to user categories; dividing the user sample data into single-view data corresponding to at least two business processing perspectives; the business processing perspective is used to indicate different categories of data; clustering each group of single-view data to obtain data clustering results under each business processing perspective; constructing an association constraint coefficient according to the data clustering results; The association constraint coefficient is used to adjust the similarity of the training results of the single-view data under each business processing perspective; the smoothing constraint coefficient is determined based on the user sample data; The smoothing constraint coefficient is used to adjust the similarity of the training results of the labeled data and the unlabeled data; Comprehensively training the data clustering results to obtain a user classification model; including: constructing an objective function based on the association constraint coefficient and the smoothness constraint coefficient, and using the objective function to train to obtain a user classification model; the user classification model is used to determine the user category according to the user sample data; Wherein, constructing the association constraint coefficient according to the data clustering result includes: Using the formula Calculate the association constraint coefficient, where R sim is the association constraint coefficient, |L| is the number of labeled data, |U| is the number of unlabeled data, f(x) is the pre-set user classification model, s(i,j) is the single-view data x i With x j 1. The relationship between Wherein, determining the smoothing constraint coefficient based on the user sample data includes: Using the formula Calculate the smoothing constraint coefficient, where R smo is the smoothness constraint coefficient, y i is the user category with labeled data.

13. A service allocation method based on user classification, characterized in that: include: Obtain user characteristic information of target users; Input the user feature information into a user classification model to obtain user categories; the user classification model is obtained by: obtaining user sample data; the user sample data includes labeled data and unlabeled data; the labeled data corresponds to user categories; dividing the user sample data into single-view data corresponding to at least two business processing perspectives; the business processing perspective is used to indicate different categories of data; clustering each group of single-view data respectively to obtain data clustering results under each business processing perspective; constructing an association constraint coefficient based on the data clustering results; The association constraint coefficient is used to adjust the similarity of the training results of the single-view data under each business processing perspective; the smoothing constraint coefficient is determined based on the user sample data; the smoothing constraint coefficient is used to adjust the similarity of the training results of the labeled data and the unlabeled data; The user classification model is obtained by training the associated constraint coefficient and the smooth constraint coefficient; including: constructing an objective function based on the associated constraint coefficient and the smooth constraint coefficient, and obtaining the user classification model by training using the objective function; Allocating the service corresponding to the user category to the target user; Wherein, constructing the association constraint coefficient according to the data clustering result includes: Using the formula Calculate the association constraint coefficient, where R sim is the association constraint coefficient, |L| is the number of labeled data, |U| is the number of unlabeled data, f(x) is the pre-set user classification model, s(i,j) is the single-view data x i With x j The relationship between Wherein, determining the smoothing constraint coefficient based on the user sample data includes: Using the formula Calculate the smoothing constraint coefficient, where R smo is the smoothness constraint coefficient, y i is the user category with labeled data.

14. A service distribution device based on user classification, characterized in that: include: A feature information acquisition module is used to acquire user feature information of a target user; A user category acquisition module is used to input the user feature information into a user classification model to obtain a user category; the user classification model is obtained by: obtaining user sample data; the user sample data includes labeled data and unlabeled data; the labeled data corresponds to a user category; dividing the user sample data into single-view data corresponding to at least two business processing perspectives; the business processing perspective is used to indicate different categories of data; clustering each group of single-view data respectively to obtain data clustering results under each business processing perspective; and constructing an association constraint coefficient based on the data clustering results; The association constraint coefficient is used to adjust the similarity of the training results of the single-view data under each business processing perspective; the smoothing constraint coefficient is determined based on the user sample data; the smoothing constraint coefficient is used to adjust the similarity of the training results of the labeled data and the unlabeled data; The user classification model is obtained by training the associated constraint coefficient and the smooth constraint coefficient; including: constructing an objective function based on the associated constraint coefficient and the smooth constraint coefficient, and obtaining the user classification model by training using the objective function; A service allocation module, used for allocating services corresponding to the user category to the target user; Wherein, constructing the association constraint coefficient according to the data clustering result includes: Using the formula Calculate the association constraint coefficient, where R sim is the association constraint coefficient, |L| is the number of labeled data, |U| is the number of unlabeled data, f(x) is the pre-set user classification model, s(i,j) is the single-view data x i With x j The relationship between Wherein, determining the smoothing constraint coefficient based on the user sample data includes: Using the formula Calculate the smoothing constraint coefficient, where R smo is the smoothness constraint coefficient, y i is the user category with labeled data.

15. A service allocation device based on user classification, comprising a memory and a processor; The memory is used to store computer program instructions; The processor is used to execute the computer program instructions to implement the following steps: obtaining user feature information of a target user; inputting the user feature information into a user classification model to obtain a user category; the user classification model is obtained by: obtaining user sample data; the user sample data includes labeled data and unlabeled data; the labeled data corresponds to a user category; dividing the user sample data into single-view data corresponding to at least two business processing perspectives; the business processing perspective is used to indicate different categories of data; clustering each group of single-view data respectively to obtain data clustering results under each business processing perspective; constructing an association constraint coefficient according to the data clustering results; The association constraint coefficient is used to adjust the similarity of the training results of the single-view data under each business processing perspective; the smoothing constraint coefficient is determined based on the user sample data; the smoothing constraint coefficient is used to adjust the similarity of the training results of the labeled data and the unlabeled data; The user classification model is obtained by training the associated constraint coefficient and the smooth constraint coefficient; including: constructing an objective function based on the associated constraint coefficient and the smooth constraint coefficient, and obtaining the user classification model by training the objective function; and allocating the service corresponding to the user category to the target user; Wherein, constructing the association constraint coefficient according to the data clustering result includes: Using the formula Calculate the association constraint coefficient, where R sim is the association constraint coefficient, |L| is the number of labeled data, |U| is the number of unlabeled data, f(x) is the pre-set user classification model, s(i,j) is the single-view data x i With x j 1. The relationship between Wherein, determining the smoothing constraint coefficient based on the user sample data includes: Using the formula Calculate the smoothing constraint coefficient, where R smo is the smoothness constraint coefficient, y i is the user category with labeled data.