Object label determination method, device and computer equipment
By obtaining a reference object that is similar to the target object, and using the label determination model to calculate the influence of the reference label, the problem of low efficiency and accuracy in object label determination is solved, and more efficient and accurate label determination is achieved.
Patent Information
- Application Number
- CN201910505450.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-06-12
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2039-06-12
AI Technical Summary
The efficiency and accuracy of determining object labels in the existing technology are low, requiring manual labeling one by one, which requires a large workload and is greatly affected by subjectivity, resulting in low efficiency and accuracy.
By obtaining multiple reference objects that are similar to the target object, the label of the target object is determined based on the influence of the reference label of the reference object. The influence is calculated through the pre-trained label determination model, and the influence of the reference label is calculated based on the similarity and likelihood. force.
It improves the efficiency and accuracy of object label determination, reduces the need for manual annotation, reduces the workload, and enhances the reliability of annotation.
Smart Images

Figure CN112085040B
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing, and in particular to a method, device and computer equipment for determining an object tag. Background Art
[0002] With the development of data processing technology, it is necessary to determine the labels of objects in many cases. For example, when conducting supervised model training, it is necessary to prepare a training sample set for model training, and the training samples in the training sample set need to be labeled with the correct labels so that an accurate machine learning model can be trained. At present, there are a large number of unlabeled objects or objects with incorrect labels, which need to be manually labeled one by one. The workload is very large and is greatly affected by human subjectivity, resulting in low efficiency and accuracy in determining object labels. Summary of the invention
[0003] Based on this, it is necessary to provide an object label determination method, apparatus and computer device to address the above-mentioned problems of low efficiency and accuracy in determining object labels.
[0004] A method for determining an object label, the method comprising: obtaining a target object whose label is to be determined; obtaining multiple reference objects similar to the target object, and obtaining labels corresponding to each of the reference objects as reference labels; obtaining label influences corresponding to each of the reference labels, wherein the label influences are calculated based on the likelihood corresponding to the reference labels, and the likelihood that the reference labels are labels of the reference objects is predicted by inputting object features corresponding to each of the reference objects into a pre-trained label determination model; and determining a target label corresponding to the target object based on the label influences of each of the reference labels.
[0005] A device for determining an object label, the device comprising: a target object acquisition module, used to acquire a target object of a to-be-determined label; a reference information acquisition module, used to acquire a plurality of reference objects similar to the target object, and acquire labels corresponding to each of the reference objects as reference labels; a label influence acquisition module, used to acquire label influences corresponding to each of the reference labels, wherein the label influences are calculated based on the likelihood corresponding to the reference labels, and the likelihood that the reference labels are labels of the reference objects is predicted by inputting object features corresponding to each of the reference objects into a pre-trained label determination model; and a target label determination module, used to determine a target label corresponding to the target object based on the label influences of each of the reference labels.
[0006] In some embodiments, the determination module for calculating the label influence corresponding to the reference label includes: a similarity and possibility acquisition unit, used to obtain the similarity between the reference object and the target object, and to obtain the possibility corresponding to the reference label; a label influence determination unit, used to determine the label influence corresponding to the reference label based on the similarity and the possibility corresponding to the reference label.
[0007] In some embodiments, the label determination model includes multiple label influence determination units for: obtaining a comprehensive possibility corresponding to the reference label by integrating the possibility statistics output by each label determination model; and determining the label influence corresponding to the reference label based on the similarity and the comprehensive possibility corresponding to the reference label.
[0008] In some embodiments, the target tag determination module includes: a tag influence statistics unit, which is used to count the tag influences corresponding to the same reference tag to obtain the tag influence statistics corresponding to each tag category; and a target tag determination unit, which is used to determine the target tag corresponding to the target object based on the tag influence statistics of each tag category.
[0009] In some embodiments, the target tag determination unit is used to: filter out the maximum tag influence statistic from the tag influence statistic corresponding to each of the tag categories; when the maximum tag influence statistic is greater than a preset threshold, determine that the tag corresponding to the maximum tag influence statistic is the tag corresponding to the target object.
[0010] In some embodiments, the device also includes: a sample set acquisition module, used to acquire a sample set, the sample set including multiple samples; a training module, used to train the label determination model using the samples in the sample set; the target object acquisition module is used to: acquire the object corresponding to the sample from the sample set as the target object; the device also includes: an update module, used to update the label of the sample to the target label corresponding to the target object.
[0011] In some embodiments, the reference information acquisition module is used to: input the features corresponding to the samples in the sample set into the object vector acquisition model to obtain the vectors corresponding to each of the samples, and the vectors corresponding to each of the samples constitute a vector set; from the vector set, obtain multiple reference vectors similar to the vector corresponding to the target object, and use the objects corresponding to each of the reference vectors as the reference objects.
[0012] In some embodiments, the target object is a resource receiver, the target tag is a resource receiver type, and the device further includes: a resource transfer data set acquisition module, used to acquire a resource transfer data set corresponding to a target user, the resource transfer data in the resource transfer data set including a resource transfer value and a resource receiver; a resource receiver type acquisition module, used to acquire a resource receiver type corresponding to each of the resource receivers in the resource transfer data set; a resource transfer value statistics module, used to count the resource transfer values corresponding to each of the resource receiver types, and obtain resource transfer statistics corresponding to each of the resource receiver types; and a sending module, used to send the resource transfer statistics corresponding to each of the resource receiver types to a terminal corresponding to the target user.
[0013] A computer device includes a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the above-mentioned object tag determination method.
[0014] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the steps of the above-mentioned object tag determination method.
[0015] The above-mentioned object label determination method, apparatus, computer equipment and storage medium obtain multiple reference objects similar to the target object, and determine the label of the target object according to the influence of the reference labels of the multiple reference objects. The influence of the reference label of the reference object represents the influence of the reference label of the reference object on the label of the target object, and the influence of the reference label is obtained based on the possibility of the reference label output by the label determination model. The possibility output by the label determination model can reflect the accuracy and influence of the label of the reference object, thereby improving the efficiency and accuracy of determining the object label. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 A diagram of an application environment of an object tag determination method provided in some embodiments;
[0017] Figure 2 is a flowchart of a method for determining an object label in some embodiments;
[0018] Figure 3 A flowchart of calculating the tag influence corresponding to a reference tag in some embodiments;
[0019] Figure 4 is a flowchart of a method for determining an object label in some embodiments;
[0020] Figure 5A flowchart of obtaining multiple reference objects similar to a target object in some embodiments;
[0021] Figure 6 is a flowchart of a method for determining an object label in some embodiments;
[0022] Figure 7 A schematic diagram showing resource transfer statistics corresponding to resource receiver types in some embodiments;
[0023] Figure 8 is a schematic diagram of modifying a sample set using an object label determination device in some embodiments;
[0024] Fig. 9 is a structural block diagram of an object tag determination device in some embodiments;
[0025] Fig.10 A block diagram of the internal structure of a computer device in some embodiments. DETAILED DESCRIPTION
[0026] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0027] It is understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but unless otherwise specified, these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, a first label may be referred to as a second label, and similarly, a second label may be referred to as a first label without departing from the scope of this application.
[0028] Figure 1 FIG. 1 is an application environment diagram of the object tag determination method provided in some embodiments, such as Figure 1As shown, in this application environment, a terminal 110 and a server 120 are included. The terminal 110 can send a request to the server 120 to obtain bill statistics information, such as a request to obtain the consumption bill of the current month. The server 120 can store labels corresponding to various resource receivers, such as stores. The labels corresponding to resource receivers, such as stores, can be obtained by the server 120 according to the object labeling method provided in the embodiment of the present application, or the labels of the sample set can be corrected using the object labeling method provided in the embodiment of the present application, and a more accurate label determination model is retrained based on the corrected sample set, and then the label of the store is predicted using the new label determination model. The label can refer to the type corresponding to the resource receiver, such as whether the type of store is a restaurant or a clothing store. The server 120 counts the user's consumption in various aspects according to the type corresponding to the resource receiver, such as consumption on food, consumption on clothes, and consumption on transportation, and obtains the user's consumption bill.
[0029] The object label determination method provided in the embodiment of the present application can be applied to determine the labels of training samples. The training samples are used to train the model. In many cases, the labels of the training samples are wrong. Therefore, the method provided in the embodiment of the present application can be used to determine the labels of the samples, and then the corresponding model can be obtained based on the training samples.
[0030] The server 120 may be an independent physical server or a server cluster composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud servers, cloud databases, cloud storage, and CDN. The terminal 110 may be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, etc., but is not limited thereto. The terminal 110 and the server 120 may be connected via a communication connection such as a network, and this application does not limit this.
[0031] like Figure 2 As shown, in some embodiments, a method for determining an object label is proposed. This embodiment mainly applies this method to the above Figure 1 The server 120 is used as an example. Specifically, the following steps may be included:
[0032] Step S202, obtaining the target object of the tag to be determined.
[0033] Specifically, an object is anything that needs to be labeled, which can be tangible or intangible. For example, it can be a movie, a person, or the weather. A label refers to the category to which an object belongs. For example, if you want to predict what the weather will be today, you can use the weather as an object, and the label corresponding to the weather can be rainy, sunny, or cloudy. If you want to predict the category of a movie, you can use the movie as an object, and the label corresponding to the movie can be tragedy, comedy, or horror. If you want to predict the type of a merchant, you can use the merchant as an object, and the label of the merchant can be catering or clothing.
[0034] In some embodiments, the target object for which the label needs to be determined may be one or more, and "multiple" means at least two. For example, before using a supervised method to train a model, a sample set needs to be obtained, and the objects of each sample in the sample set can be used as target objects. To give a practical example, suppose that a sentiment prediction model needs to be trained to classify text into pessimistic or optimistic categories, then multiple training samples can be obtained, and one article can correspond to one training sample. The training sample includes the features of the text and the category corresponding to the text, i.e., the label, but the label of the text may be wrong, so the text can be obtained as the object of the label to be determined.
[0035] Step S204: obtaining a plurality of reference objects similar to the target object, and obtaining labels corresponding to the respective reference objects as reference labels.
[0036] Specifically, the reference object is an object similar to the target object. There can be multiple reference objects, which can be set as needed, for example, there can be 5. The reference label is the label of the reference object, and the label of the reference object already exists. The reference label can be the original label of the reference object, such as the original label of the sample in the training set. The label of the reference object can be a confirmed correct label. For example, if the label is the user's age group, the reference object is an object whose correct age has been confirmed. Object similarity can mean that the similarity is greater than a preset similarity, or it can mean that the similarity ranking is before the preset ranking. The similarity indicates the degree of similarity. The greater the similarity, the more similar.
[0037] The calculation method of similarity can be set as needed. The vector corresponding to the object can be obtained by a vectorization algorithm. When obtaining the target object, the vector of the target object can be obtained. When obtaining the reference object, the vector of the reference object can be obtained. The similarity between the vectors is calculated as the similarity between the objects. A neighbor algorithm can also be used to obtain similar objects as reference objects. The neighbor algorithm can, for example, be a K-nearest neighbor (KNN) algorithm, which can obtain k neighbor objects. The neighbor algorithm can find similar vectors based on the similarity of the vectors. In order to increase the speed of obtaining the neighbor vector, an index corresponding to the vector can be established in advance, for example, a tree index structure is established to partition the vector to achieve efficient indexing. For example, a KD-tree (k-dimensional Tree) is established. For example, a practical example can be obtained. The vectors corresponding to multiple objects, such as thousands of objects, can be respectively obtained. A KD-tree (k-dimensional Tree) is established based on the vector. When it is necessary to obtain the neighbor object of the target object as a reference object, the vector corresponding to the target object can be obtained, and the neighbor vector of the vector corresponding to the target object can be obtained from the KD-tree (k-dimensional Tree).
[0038] Step S206, obtaining the label influence corresponding to each reference label respectively, the label influence is calculated based on the probability corresponding to the reference label, and the predicted reference label is the probability of the label of the reference object by inputting the object features corresponding to each reference object into the pre-trained label determination model.
[0039] Specifically, the label determination model is a machine learning model for determining labels, and the label of an object can be determined according to the characteristics of the object. For example, it can be a picture classification model or a weather prediction model. The specific model structure adopted is determined according to the actual application. For example, it can be a CNN (Convolutional Neural Networks) model or an RNN (Recurrent Neural Network) model. The label determination model can be obtained by pre-training, and a supervised algorithm can be used to train the label determination model using training samples. Object features are data used to represent the characteristics of an object. For example, when it is necessary to predict the weather, the characteristics of the weather may include one or more of temperature, humidity or wind direction. When it is necessary to predict the type of restaurant, such as whether it belongs to the fast food category or the non-fast food category, the characteristics of the restaurant that can be obtained may include the price of food, the time period when transactions are mainly concentrated, and the per capita consumption. When it is necessary to classify pictures, the characteristics of the pictures may be the color characteristics and texture characteristics of the image.
[0040] Possibility is used to indicate the degree of possibility. The larger the possibility, the more likely it is. Possibility can be expressed as a probability value. Possibility indicates the probability that the reference label is the label of the reference object. For example, assuming there are three reference objects, the label of the first object is a, the label of the second object is b, and the label of the third object is c. Then the features of the first reference object can be input into the label determination model to obtain the probability of label a, the features of the second reference object can be input into the label determination model to obtain the probability of label b, and the features of the third reference object can be input into the label determination model to obtain the probability of label c.
[0041] The label influence corresponding to the reference label indicates the influence of the reference label of the reference object on the label of the target object. The greater the influence, the greater the influence. The possibility is positively correlated with the label influence. The greater the possibility, the greater the label influence. The possibility can be directly used as the label influence.
[0042] In some embodiments, there may be multiple label determination models, and the features of each object may be input into the label determination model to obtain the likelihoods corresponding to the reference labels. For example, assuming there are three label determination models, for the first object, whose reference label is a, the features of the first object may be input into the label determination model to obtain the likelihood p1 of the reference label a output by the first model, the likelihood p2 of the reference label a output by the second model, and the likelihood p3 of the reference label a output by the third model.
[0043] When there are multiple label determination models, the label influence corresponding to the reference label can be obtained by combining the likelihoods of the reference labels output by the multiple label determination models. For example, the label influence of the label a of the first object can be calculated based on the likelihood p1, the likelihood p2, and the likelihood p3. The average of the likelihood p1, the likelihood p2, and the likelihood p3 can be used as the label influence.
[0044] In some embodiments, the tag influence corresponding to the reference tag can be obtained by combining the similarity and likelihood between the target object and the reference object. For example, the tag influence can be the product of the similarity and the likelihood.
[0045] The step of inputting the features into the label determination model to obtain the possibility can be completed in advance before step S206. For example, the reference object of the target object is obtained from the object set, and the features of each object in the object set can be input into the label determination model in advance to obtain the possibility of the label of each object in the object set. Therefore, when the reference object is obtained from the object set, the possibility of the reference label of the reference object can be directly obtained.
[0046] Step S208: determining a target tag corresponding to the target object according to the tag influence of each reference tag.
[0047] Specifically, after obtaining the label influence of the reference labels, the label with the largest label influence can be selected as the label of the target object. Alternatively, the label with a label influence greater than a preset label influence can be selected as the label of the target object. If the label influence of each reference label is less than the preset label influence, the label can be determined by other methods, or the sample can be discarded and the label of the sample can no longer be determined.
[0048] The above-mentioned object label determination method obtains multiple reference objects similar to the target object, and determines the label of the target object according to the influence of the reference labels of the multiple reference objects. The influence of the reference label of the reference object represents the influence of the reference label of the reference object on the label of the target object. The influence of the reference label is obtained based on the possibility of the reference label output by the label determination model. The possibility output by the label determination model can reflect the accuracy and influence of the label of the reference object, and thus can improve the efficiency and accuracy of determining the object label.
[0049] In some embodiments, determining the target tag corresponding to the target object based on the tag influence of each reference tag includes: counting the tag influence corresponding to the same reference tag to obtain the tag influence statistics corresponding to each tag category; and determining the target tag corresponding to the target object based on the tag influence statistics of each tag category.
[0050] Specifically, the label influence statistics may be the average value of the label influence. Among multiple reference objects, there may be reference objects with the same reference label. Therefore, the label influence corresponding to the same reference label can be counted to obtain the label influence statistics corresponding to each label category. If there is no same, the label influence of the label of the reference object can be used as the statistical value. After obtaining the label influence statistics, the target label corresponding to the target object is determined according to the label influence statistics of each label category. For a practical example, suppose there are four reference objects, of which the first reference object and the second reference object have the same reference labels, both of which are L1, and the third reference object and the fourth reference object have the same reference labels, both of which are L2. Assuming that the label influence of the reference label of the first reference object is 0.5 and the label influence of the reference label of the second reference object is 0.9, the label influence statistics of the label category L1 is (0.5+0.9) / 2=0.7. Assuming that the label influence of the reference label of the third reference object is 0.8 and the label influence of the reference label of the fourth reference object is 0.7, the label influence statistic of the label category L2 is (0.7+0.8) / 2=0.75.
[0051] In some embodiments, the maximum tag influence statistic can be screened out from the tag influence statistic values corresponding to each tag category; when the maximum tag influence statistic is greater than a preset threshold, the tag corresponding to the maximum tag influence statistic is determined to be the tag corresponding to the target object.
[0052] Specifically, the preset threshold can be set as needed, for example, 0.6. When the maximum tag influence statistic is greater than the preset threshold, the tag corresponding to the maximum tag influence statistic is determined as the tag corresponding to the target object, which can avoid the situation where the tag is used as the tag of the target object when the tag influence statistic is small, that is, when the confidence is not strong, thereby improving the accuracy of the target tag of the target object.
[0053] For example, suppose the target object is h1, and there are three reference objects: h2, h3, and h4. The labels corresponding to h2 and h3 are a, and the label corresponding to h4 is b. Suppose that the label influence corresponding to label a in h2 is calculated to be 0.6, the label influence corresponding to label a in h3 is calculated to be 0.8, and the label influence corresponding to label b in h4 is calculated to be 0.5. Since h2 and h3 have the same label, the label influence of label a in h2 and h3 can be averaged, and the label influence statistic of label a in this category is (0.6+0.8) / 2=0.7. However, label b has only one label influence, which is 0.5, so the label influence statistic of label b is 0.5, and the maximum label influence statistic is 0.7. Assuming the preset threshold is 0.6, 0.7 is greater than 0.6, so label a is used as the target label corresponding to the target object.
[0054] In some embodiments, Figure 3 As shown, the step of calculating the label influence corresponding to the reference label includes the following steps:
[0055] Step S302, obtaining the similarity between the reference object and the target object, and obtaining the possibility of the reference tag corresponding to the reference object.
[0056] Specifically, the similarity between the reference object and the target object can be calculated when it is necessary to obtain the label influence corresponding to the reference label, or it can be calculated in the step of obtaining multiple reference objects similar to the target object. The algorithm for calculating the similarity can be, for example, the Manhattan distance algorithm, the Euclidean distance or the cosine similarity algorithm, etc., which can be set specifically as needed. After obtaining the similarity, the similarity can be normalized to between 0 and 1. The normalization method can adopt the deviation normalization method (Min-Max Normalization). The vectors corresponding to the reference object and the target object can be obtained, and the similarity between the vectors can be calculated to obtain the similarity between the reference object and the target object. The possibility can be that the features of the reference object are pre-input into the label determination model, and the reference label output by the label determination model is the possibility of the label of the reference object.
[0057] When obtaining the vector corresponding to the object, a vectorization (embedding) algorithm can be used to vectorize the object into a V-dimensional fixed-length vector to represent the object, where the value of the dimension V depends on the vectorization algorithm. The vectorization algorithm can be set as needed. For example, for text, the corresponding vector can be obtained through word2vec, fasttext or bert (Bidirectional Encoder Representations from Transformers). Vectors for objects such as graphics, videos or voice can be obtained through node2vec and other deep neural network models. Fasttext is an open source word vector and text classification tool from Facebook. The features of the object can be obtained, and the features can be input into the vectorization model to obtain the vectorized representation corresponding to the object. Node2vec is a framework for learning continuous feature expressions for nodes in a network.
[0058] Step S304: determining the tag influence corresponding to the reference tag according to the similarity and the possibility corresponding to the reference tag.
[0059] Specifically, similarity and label influence are positively correlated. As similarity increases, label influence also increases. For example, label influence can be the product of similarity and possibility. It is also possible to set a correspondence between similarity and label influence, and a correspondence between possibility and label influence. The first label influence is obtained based on the similarity, and the second label influence is obtained based on the possibility. The label influence corresponding to the reference label is obtained based on the first label influence and the second label influence. For example, the sum of the first label influence and the second label influence is the label influence corresponding to the reference label.
[0060] The correspondence between similarity and label influence can be set based on experience. For example, when the similarity is less than 0.5, the corresponding label influence is 0. When the similarity is greater than 0.5 and less than 0.8, the corresponding label influence is 0.3. When the similarity is greater than 0.8 and less than 0.9, the corresponding label influence is 0.5.
[0061] In some embodiments, the label determination model includes multiple models, and determining the label influence corresponding to the reference label based on the similarity and the probability corresponding to the reference label includes: obtaining the comprehensive probability corresponding to the reference label by integrating the probability statistics output by each label determination model; determining the label influence corresponding to the reference label based on the similarity and the comprehensive probability corresponding to the reference label.
[0062] Specifically, the number of label determination models can be set as needed, and these label determination models are different models. The difference in model can refer to at least one of the different model structure, parameter configuration or training samples of model training. For example, three models can be included, namely SVM (Support Vector Machine) model, logistic regression model and neural network model. After obtaining the probability output by each label determination model, the probability corresponding to each reference label is counted to obtain a comprehensive probability, which can be a mean, a median or the sum of the probabilities. For example, for the first object, the reference label is a, and the features of the first object can be input into each label determination model respectively to obtain the probability p1 of the reference label a output by the first model, the probability p2 of the reference label a output by the second model, and the probability p3 of the reference label a output by the third model. The comprehensive probability can be the mean of the probability p1, the probability p2 and the probability p3. The label influence corresponding to the reference label is calculated based on the similarity and the comprehensive probability corresponding to the reference label, for example, it can be the product of the similarity and the comprehensive probability.
[0063] In some embodiments, Figure 4 As shown, the object tag determination method may further include the following steps:
[0064] Step S402: Acquire a sample set, where the sample set includes multiple samples.
[0065] Specifically, the sample set may include multiple samples, for example, 100,000 samples. The samples are used for model training. A sample may include multiple features and labels. For example, for text, the keywords of the text and the author of the text may be used as the features of the text. For video, the duration of the video, the director's name, and keywords may be used as the features of the video.
[0066] Step S404: training a label determination model using samples in the sample set.
[0067] Specifically, supervised training methods can be used for model training. During training, the features of the sample are input into the model to obtain the label predicted by the model, and the loss value is calculated based on the difference between the label predicted by the model and the actual label in the sample. The model parameters are adjusted in the direction of reducing the loss value using the gradient descent method.
[0068] In some embodiments, the label determination model used to determine the likelihood of the reference label of the reference object may not be trained with the sample set. For example, the model may be trained with a sample set composed of other samples whose labels have been determined to be correct to obtain the label determination model.
[0069] In some embodiments, when using samples in a sample set for training, a K-fold cross-validation method can be used to divide the sample set into K sub-sample sets. Each time training is performed, one of the sub-sample sets is retained as a test sample set for verifying the model, and the other K-1 sample sets are used for training. The cross-validation can be repeated K times until each sub-sample set is used as a test sample set to obtain a label determination model.
[0070] Step S202, namely obtaining the target object of the to-be-determined label, includes: obtaining the object corresponding to the sample from the sample set as the target object.
[0071] Specifically, after determining the label determination model, an object corresponding to a sample can be obtained from the sample set in sequence as the target object, or objects corresponding to the samples can be obtained in batches as the target objects.
[0072] In some embodiments, a reference object can be obtained from a sample set, and the original labels of the samples in the sample set can be used as reference labels. In this way, after obtaining the sample set, there is no need to refer to other data, and the samples with incorrect labels in the sample set can be corrected by relying on the obtained sample set. Because most of the sample labels in the sample set are correct in general, and only a part of them are wrong, the label determination model can be obtained by training the sample set before correction, and the reference samples of the target samples in the sample set can be obtained. The label determination model is then used to obtain the probability of the labels of each reference sample, and the label influence is calculated based on the probability of the label of the reference object. The label influence is used to determine the label of the target sample, so the labels of the samples with incorrect labels in the sample set can be corrected. When the labels of the samples in the sample set are corrected, the label determination model is retrained using the corrected sample set, so that the final label determination model is more accurate.
[0073] The object label determination method also includes step S406: updating the label of the sample to the target label corresponding to the target object.
[0074] Specifically, after the label corresponding to the target object is determined by the method provided in this embodiment, the label of the sample in the sample set can be updated to the target label corresponding to the target object. In this way, the label of the sample in the sample set can be corrected by using the target object label to improve the accuracy of the sample label in the sample set. After the label of the sample in the sample set is updated, the sample set can be used for model training to obtain a more accurate label determination model. For example, the classification problem in machine learning is usually completed by supervised learning, and the classified samples are the basis and the most core and important assets of supervised learning. Usually, there will inevitably be label errors in the classified samples. Wrong labels will generate wrong supervision signals, thereby misleading the learning of the model, and ultimately often reduce the learning effect of the model. Usually, the cleaning of samples and the correction of labels require the help of a lot of expert knowledge and domain knowledge, and the data must be manually annotated to correct the erroneous samples. However, the label determination method provided by the embodiment of the present application can automatically correct the samples with wrong labels in the sample set based on the data of the sample set itself, thereby improving the quality of the samples.
[0075] In some embodiments, Figure 5 As shown, step S204, i.e. obtaining a plurality of reference objects similar to the target object, includes:
[0076] Step S502, inputting the features corresponding to the samples in the sample set into the object vector obtaining model to obtain the vectors corresponding to the respective samples, and the vectors corresponding to the respective samples constitute a vector set.
[0077] Specifically, the object vector acquisition model is a model used to vectorize the object. For example, for text, the vector corresponding to the target object can be obtained through models such as word2vec, fasttext or bert (Bidirectional Encoder Representations from Transformers). For vectors of objects such as graphics, videos or voices, the vector corresponding to the target object can be obtained through models such as node2vec and other deep neural networks. The vectors corresponding to the samples in the sample set constitute a vector set.
[0078] Step S504: Acquire multiple reference vectors similar to the vector corresponding to the target object from the vector set, and use the object corresponding to each reference vector as a reference object.
[0079] Specifically, a vector corresponding to the target object is obtained, and multiple reference vectors similar to the vector corresponding to the target object are obtained from the vector set according to the target vector. When searching for similar vectors of the vector of the target object, an exhaustive search method can be used, that is, the similarity between the vector of the target object and each vector in the vector set is calculated, and the first N vectors with the highest similarity ranking or the vectors with similarity greater than the preset similarity are extracted as similar vectors. A nearest neighbor search algorithm can also be used to retrieve similar content vectors of the vector of the target object. The nearest neighbor algorithm can find vectors similar to the vector of the target object based on the similarity of the vector. The nearest neighbor search algorithm may include algorithms such as faiss or annoy. Faiss is an open source library for clustering and similarity search by Facebook, which can provide efficient similarity search and clustering for dense vectors. Faiss can create indexes to pre-process vectors and improve query efficiency. Annoy is an open source library for finding approximate nearest neighbors in high-dimensional space. Annoy constructs a binary tree, which can divide the set into two parts by randomly selecting two points and using an equidistant hyperplane perpendicular to the point.
[0080] The method provided by the embodiment of the present application can be used in various scenarios for classifying objects to better manage data. For example, it can be applied to the field of computer security protection. By obtaining the data packet received by the server, taking the data packet as an object, and implementing the object label determination method provided by the embodiment of the present application, the label of the obtained data packet can be safe or unsafe. If the data packet is determined to be unsafe, the data packet can be discarded or processed to remove the unsafe data in the data packet. It can also be used to classify consumption data and obtain consumption bills so that consumers can better understand their consumption behavior.
[0081] In some embodiments, the target object is a resource receiver, and the target tag is a resource receiver type, such as Figure 6 As shown, the object label determination method also includes:
[0082] Step S602: Acquire a resource transfer data set corresponding to the target user. The resource transfer data in the resource transfer data set includes a resource transfer value and a resource recipient.
[0083] Specifically, resources can be physical resources or virtual resources. For example, resources can be currency, game coins, or stocks. The resource transfer value refers to the amount of resource transfer, and resource transfer includes two parties: the resource transferor and the resource receiver. The resource transferor is the party that transfers out resources, and the target user is the resource transferor. The resource receiver is the party that receives the resources. The resource transfer data set may include one or more resource transfer data. For example, the resource transfer data set corresponding to the target user may be the resource transfer data set of the target user within a preset time period, and the preset time period may be, for example, one month. To give a practical example, assuming that a user purchases food provided by merchant A on the Internet platform through a mobile phone, and the total price is 15 yuan, a resource transfer data will be generated, including that the resource receiver is merchant A and the resource transfer value is 15 yuan.
[0084] Step S604: Obtain the resource receiver type corresponding to each resource receiver in the resource transfer data set.
[0085] Specifically, the resource receiver type can be determined based on the goods provided by the resource receiver. Goods can be tangible, such as shoes and clothes. Goods can also be intangible, such as hairdressing services. The resource receiver type is determined by the object tag determination method provided in the embodiment of the present application. Taking the merchant as the object, the object tag determination method provided in the embodiment of the present application is implemented to obtain the type corresponding to the merchant.
[0086] Step S606: Count the resource transfer values corresponding to each resource receiver type to obtain the resource transfer statistics corresponding to each resource receiver type.
[0087] Specifically, the resource transfer statistics may be one or more of the mean, average or median of the resource. The resource transfer data corresponding to each resource receiver type is counted to obtain the resource transfer statistics corresponding to each resource receiver type. For example, the resource transfer values of the food type are counted to obtain the total consumption of food. The resource transfer values of the clothing type are counted to obtain the total consumption of clothing.
[0088] Step S608: Send resource transfer statistics corresponding to resource receiver types to the terminal corresponding to the target user.
[0089] Specifically, after obtaining the resource transfer statistics corresponding to each resource receiver type, the resource transfer statistics can be sent to the terminal corresponding to the target user, and the terminal can display the resource transfer statistics corresponding to each resource receiver type, so that the user can understand the resource transfer situation. The server can send the resource transfer statistics corresponding to each resource receiver type to the terminal in response to the request of the terminal, and can send them actively, for example, it can send the user's consumption bill for the previous month on the first day of each month. The consumption bill includes the expenditure of each consumption type. Figure 7 shown.
[0090] In some embodiments, the object label determination method provided in the embodiment of the present application is described below by taking the evaluation of the labels of samples in the sample set and the correction of samples with incorrect labels in the sample set as an example, including the following steps:
[0091] 1. Obtain a sample set.
[0092] Specifically, there may be multiple samples in a sample set, for example, 10,000. A sample may include the features of an object and a reference label of the object. The reference label may also be called the original label, that is, the original label of the sample. The labels of some samples in the sample set may be wrong and need to be corrected. Assuming there are c samples, the sample set can be represented by C = {c 1 ,c 2 ,c 3 ,…,c c} means that a sample has a label, and the value set of the label can be expressed as L = {L 1 ,L 2 ,L 3 ,…,L m}, there are n labels in total, that is, the label of a sample is one of these n labels.
[0093] 2. Multiple label determination models are obtained based on sample training of the sample set.
[0094] Specifically, there may be n label determination models, for example, and the models are trained separately using sample sets. During training, the sample set may be divided into preset parts, for example, 10 parts. According to the idea of the K-fold cross-validation algorithm, one of the parts is taken as a test set each time training is performed, and the remaining parts are taken as training sets until each part has been tested as a test set, and the label determination model is obtained. For example, there may be three label determination models, which may be SVM models, logistic regression models, and deep neural network models.
[0095] 3. Obtain the features of each sample in the sample set, input them into multiple label determination models respectively, and obtain the possibility of the reference label of each object.
[0096] Since there are n possible values for a label, the label determines the probability of the model output and can also include the probability of each non-reference label. For example, for a sample, the probability of a model output can be expressed as P = {p m1,1 ,p m1,2 ,p m1,3 ,…,p m1,n}, for example, p m1,n It indicates the probability that the label of the sample output by model m1 is label Ln. When the label of the sample is the third one, then p m1,3 is the probability of the reference label of the object, and the others are the probability of the non-reference label of the object.
[0097] 4. Comprehensively determine the probability of the model output by each label and obtain the comprehensive probability corresponding to each reference label.
[0098] For example, sample c h The corresponding comprehensive possibility vector can be expressed as formula (1), where m is the number of models, n is the number of labels, and p mi,n Represents the model mi for sample c h In the predicted probability of the nth label, h represents the hth sample, so Represents sample c h In the example, the comprehensive probability corresponding to the first label, assuming that the reference label is the second label, then the comprehensive probability corresponding to the reference label is
[0099]
[0100] 5. Input the features corresponding to the samples in the sample set into the object vector obtaining model to obtain the vectors corresponding to each sample. The vectors corresponding to each sample constitute a vector set.
[0101] A vectorization algorithm can be used to obtain the vector of each sample, where the vector corresponding to a sample is the vector corresponding to the object.
[0102] 6. Get the target object of the tag to be determined.
[0103] One or more samples in the sample set can be used as samples of labels to be determined in sequence, and the vector corresponding to the sample can be obtained as the vector of the target object, that is, the vectorized representation of the target object is obtained.
[0104] 7. From the vector set, obtain multiple reference vectors that are similar to the vector corresponding to the target object, and use the object corresponding to each reference vector as a reference object.
[0105] Specifically, a nearest neighbor calculation method may be used to obtain t vectors with the highest similarity as nearest neighbor vectors, and samples corresponding to the nearest neighbor vectors may be obtained as reference samples. t may be 3, for example.
[0106] 8. Obtain the label influence corresponding to each reference label.
[0107] Since the comprehensive possibility has been calculated in step 4, the similarity between the reference object and the target object can be obtained, and the label influence corresponding to the reference label is determined according to the similarity and the comprehensive possibility corresponding to the reference label.
[0108] For example, sample c i The t nearest neighbor samples can be expressed as
[0109] NearestC={ner 1 ,ner 2 ,…,ner t},ner t represents the tth nearest neighbor sample, and the reference label set of t nearest neighbor samples is expressed as represents the label of the tth nearest neighbor sample. Then the calculation method of the influence of the reference label of the nearest neighbor sample on the label of the target sample is shown in formula (2): Indicates reference label The corresponding label influence, s t It represents the similarity between the target sample and the tth sample in the neighbor set. I(x) is the indicator function, which returns a vector. The vector characteristic is that when the label Lner of the neighbor sample t When taking the kth label, the kth position of the vector is 1, and the remaining positions are 0. “*” refers to cross multiplication, and “·” refers to dot multiplication. Refers to the comprehensive probability vector corresponding to the tth nearest neighbor sample. It can be seen from formula (2) that although the probability of the sample label being each label is calculated according to formula (1), the vector returned by the indicator function is the label Lner of the nearest neighbor sample. t When the kth label is taken, that is, when the reference label is the kth, the kth position of the vector is 1, and the remaining positions are 0. Therefore, the influence corresponding to the reference label is finally calculated, and the influence corresponding to the non-reference label is 0.
[0110]
[0111] 9. Count the label influences corresponding to the same reference labels to obtain the label influence statistics corresponding to each label category.
[0112] Some of the neighboring samples have the same label, so the label influence corresponding to the same reference label in the neighboring samples is counted to obtain the label influence statistics corresponding to each label category.
[0113] 10. Filter out the maximum label influence statistical value from the label influence statistical values corresponding to each label category; when the maximum label influence statistical value is greater than a preset threshold, determine that the label corresponding to the maximum label influence statistical value is the label corresponding to the target object.
[0114] As shown in the figure, Figure 8 As shown, after the sample set is obtained, it is input into the object label determination device, and the sample labels of the sample set are corrected by the object label determination device to obtain a corrected sample set.
[0115] For example, assume that the label of sample D is obtained according to step 6, and the neighboring samples of sample D include A, B and C according to step 7. The comprehensive probability vector of samples A, B and C has been obtained in advance according to step 4, and it is assumed that the label of the sample can be L1, L2 or L3.
[0116] Assuming that the original label of sample A is L1, the vector returned by the indicator function is (1, 0, 0). According to step 4, the comprehensive probability vector of sample A is (0.7, 0.25, 0.13), where 0.7 represents the probability that the label of sample A is L1 (i.e., the reference label), 0.25 represents the probability that the label of sample A is L2 (i.e., the non-reference label), and 0.13 represents the probability that the label of sample A is L3 (i.e., the non-reference label). The similarity between sample A and sample D is 0.65. According to formula (2), the label influence of the reference label L1 of the neighboring sample A is 0.65*(1, 0, 0)·(0.7, 0.25, 0.13)=0.1625.
[0117] Assuming that the label of sample B is the same as that of A, which is also L1, according to the above method for calculating the label influence of the reference label of sample A, the label influence of the reference label L1 of the neighboring sample B is 0.77. Assuming that the label of sample C is L2, according to the above method for calculating the label influence of the reference label of sample A, the label influence of the reference label L2 of the neighboring sample C is 0.85.
[0118] According to step 9, two of the neighboring samples have the same reference labels. The label influence of the same reference label L1 is statistically analyzed, and their mean is calculated to be (0.1625+0.77) / 2=0.466. According to step 10, since the label influence statistic of reference label L2 is 0.85, which is greater than the label influence statistic of reference label L1, 0.85 is the maximum label influence statistic. It is determined whether 0.85 is greater than a preset threshold. The threshold value range can be between 0 and 1. Assuming the threshold is 0.6, since 0.85 is greater than 0.6, reference label L2 can be used as the label of sample D.
[0119] like Fig. 9 As shown, in some embodiments, an object label determination device is provided, which can be integrated into the above-mentioned computer device 120, and can specifically include a target object acquisition module 902, a reference information acquisition module 904, a label influence acquisition module 906 and a target label determination module 908.
[0120] The target object acquisition module 902 is used to acquire the target object whose label is to be determined.
[0121] The reference information acquisition module 904 is used to acquire multiple reference objects similar to the target object, and acquire labels corresponding to each reference object as reference labels.
[0122] The label influence acquisition module 906 is used to obtain the label influence corresponding to each reference label. The label influence is calculated based on the probability corresponding to the reference label. The object features corresponding to each reference object are input into the pre-trained label determination model to predict the probability that the reference label is the label of the reference object.
[0123] The target tag determination module 908 is used to determine the target tag corresponding to the target object according to the tag influence of each reference tag.
[0124] The above-mentioned object label determination device obtains multiple reference objects similar to the target object, and determines the label of the target object according to the influence of the reference labels of the multiple reference objects. The influence of the reference label of the reference object represents the influence of the reference label of the reference object on the label of the target object, and the influence of the reference label is obtained based on the possibility of the reference label output by the label determination model. The possibility output by the label determination model can reflect the accuracy and influence of the label of the reference object, and thus can improve the efficiency and accuracy of determining the object label.
[0125] In some embodiments, the determination module for calculating the tag influence corresponding to the reference tag includes:
[0126] The similarity and possibility acquisition unit is used to acquire the similarity between the reference object and the target object, and acquire the possibility corresponding to the reference tag.
[0127] The tag influence determination unit is used to determine the tag influence corresponding to the reference tag according to the similarity and the possibility of the reference tag corresponding.
[0128] In some embodiments, the tag determination model includes multiple tag influence determination units for:
[0129] The probability statistics of the model output are determined by combining various labels to obtain the comprehensive probability corresponding to the reference label.
[0130] The label influence corresponding to the reference label is determined according to the similarity and the comprehensive possibility corresponding to the reference label.
[0131] In some embodiments, the target tag determination module 908 includes:
[0132] The label influence statistical unit is used to count the label influences corresponding to the same reference label to obtain label influence statistical values corresponding to each label category.
[0133] The target label determination unit is used to determine the target label corresponding to the target object according to the label influence statistics of each label category.
[0134] In some embodiments, the target tag determination unit is configured to:
[0135] The maximum tag influence statistical value is selected from the tag influence statistical values corresponding to each tag category.
[0136] When the maximum tag influence statistic is greater than a preset threshold, the tag corresponding to the maximum tag influence statistic is determined to be the tag corresponding to the target object.
[0137] In some embodiments, the object tag determining device further comprises:
[0138] The sample set acquisition module is used to acquire a sample set, where the sample set includes multiple samples.
[0139] The training module is used to obtain a label determination model by training samples in the sample set.
[0140] The target object acquisition module 902 is used for:
[0141] Get the object corresponding to the sample from the sample set as the target object;
[0142] The object tag determining device also includes:
[0143] The update module is used to update the label of the sample to the target label corresponding to the target object.
[0144] In some embodiments, the reference information acquisition module 904 is used to:
[0145] The features corresponding to the samples in the sample set are input into the object vector obtaining model to obtain the vectors corresponding to the respective samples, and the vectors corresponding to the respective samples constitute a vector set.
[0146] From the vector set, multiple reference vectors similar to the vector corresponding to the target object are obtained, and the object corresponding to each reference vector is used as a reference object.
[0147] In some embodiments, the target object is a resource receiver, the target tag is a resource receiver type, and the object tag determining device further includes:
[0148] The resource transfer data set acquisition module is used to acquire the resource transfer data set corresponding to the target user. The resource transfer data in the resource transfer data set includes the resource transfer value and the resource recipient.
[0149] The resource receiver type obtaining module is used to obtain the resource receiver type corresponding to each resource receiver in the resource transfer data set.
[0150] The resource transfer value statistics module is used to count the resource transfer values corresponding to each resource receiver type, and obtain the resource transfer statistics corresponding to each resource receiver type.
[0151] The sending module is used to send resource transfer statistics corresponding to resource receiver types to the terminal corresponding to the target user.
[0152] Fig.10 The internal structure diagram of the computer device in some embodiments is shown. The computer device can be specifically Figure 1 The server 120 in FIG. Fig.10 As shown, the computer device includes a processor, a memory, and a network interface connected via a system bus. The memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program, which, when executed by the processor, enables the processor to implement the object tag determination method. The internal memory may also store a computer program, which, when executed by the processor, enables the processor to execute the object tag determination method.
[0153] Those skilled in the art will understand that Fig.10The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0154] In some embodiments, the object tag determination device provided by the present application can be implemented in the form of a computer program. Fig.10 The memory of the computer device may store various program modules constituting the object tag determination device, for example, Fig. 9 The target object acquisition module 902, reference information acquisition module 904, label influence acquisition module 906 and target label determination module 908 are shown. The computer program composed of various program modules enables the processor to execute the steps of the object label determination method of each embodiment of the present application described in this specification.
[0155] For example, Fig.10 The computer device shown can be Fig. 9 The target object acquisition module 902 in the object label determination device shown acquires the target object of the label to be determined. The reference information acquisition module 904 acquires multiple reference objects similar to the target object, and acquires the labels corresponding to each reference object as reference labels. The label influence acquisition module 906 acquires the label influence corresponding to each reference label. The label influence is calculated based on the probability corresponding to the reference label. The object features corresponding to each reference object are input into the pre-trained label determination model to predict the probability that the reference label is the label of the reference object. The target label determination module 908 determines the target label corresponding to the target object based on the label influence of each reference label.
[0156] In some embodiments, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the object tag determination method described above. The steps of the object tag determination method here may be the steps of the object tag determination method described in the above embodiments.
[0157] In some embodiments, a computer-readable storage medium is provided, which stores a computer program, and when the computer program is executed by a processor, the processor executes the steps of the object tag determination method described above. The steps of the object tag determination method here can be the steps of the object tag determination method described in each of the above embodiments.
[0158] It should be understood that, although each step in the flow chart of each embodiment of the present application is shown in sequence according to the indication of the arrow, these steps are not necessarily performed in sequence according to the order indicated by the arrow. Unless there is clear explanation in this article, the execution of these steps does not have strict order restriction, and these steps can be performed in other orders. Moreover, at least a portion of the steps in each embodiment may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these sub-steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps.
[0159] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0160] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0161] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for determining an object label, the method include: Acquire a sample set; the sample set includes multiple samples, and the samples include object features and labels corresponding to the objects; Using samples in the sample set to train a label determination model; Acquire the object corresponding to the sample from the sample set as the target object whose label is to be determined; Acquire multiple reference objects similar to the target object from the sample set, and acquire labels corresponding to the reference objects from the sample set as reference labels; Obtaining the similarity between the reference object and the target object, and obtaining the probability corresponding to the reference label; inputting the object features corresponding to the reference object into the label determination model, and using the probability that the predicted label corresponds to the reference label as the probability corresponding to the reference label; Determining the label influence corresponding to the reference label according to the similarity and the possibility corresponding to the reference label; Determining a target tag corresponding to the target object from each of the reference tags according to the tag influence of each of the reference tags; Updating the label of the sample to the target label corresponding to the target object; The label determination model is retrained based on the updated sample set.
2. The method according to claim 1, It is characterized in that Determining the label influence corresponding to the reference label according to the similarity and the possibility corresponding to the reference label includes: Obtaining a first label influence according to the similarity, and obtaining a second label influence according to the possibility corresponding to the reference label; The label influence corresponding to the reference label is obtained according to the first label influence and the second label influence.
3. The method according to claim 1, It is characterized in that Determining the label influence corresponding to the reference label according to the similarity and the possibility corresponding to the reference label includes: The product of the similarity and the possibility corresponding to the reference tag is used as the tag influence corresponding to the reference tag.
4. The method according to claim 1, It is characterized in that The tag determination model includes multiple models, and determining the tag influence corresponding to the reference tag according to the similarity and the possibility corresponding to the reference tag includes: The probability of the model output is determined by integrating the probability statistics of each of the labels to obtain the comprehensive probability corresponding to the reference label; The tag influence corresponding to the reference tag is determined according to the similarity and the comprehensive possibility corresponding to the reference tag.
5. The method according to claim 1, It is characterized in that The step of determining the target tag corresponding to the target object from each of the reference tags according to the tag influence of each of the reference tags includes: The label influences corresponding to the same reference labels are counted to obtain the label influence statistics corresponding to each label category; According to the label influence statistics of each of the label categories, a target label corresponding to the target object is determined from each of the reference labels.
6. The method according to claim 5, It is characterized in that The step of determining the target tag corresponding to the target object from each of the reference tags according to the tag influence statistics of each of the tag categories includes: Filter out the maximum tag influence statistical value from the tag influence statistical values corresponding to each of the tag categories; When the maximum tag influence statistic is greater than a preset threshold, it is determined that the reference tag corresponding to the maximum tag influence statistic is the target tag corresponding to the target object.
7. The method according to claim 1, It is characterized in that The acquiring a plurality of reference objects similar to the target object from the sample set comprises: Inputting the features corresponding to the samples in the sample set into the object vector obtaining model to obtain the vectors corresponding to the samples respectively, and the vectors corresponding to the samples constitute a vector set; A plurality of reference vectors similar to the vector corresponding to the target object are obtained from the vector set, and the object corresponding to each of the reference vectors is used as the reference object.
8. The method according to claim 1, It is characterized in that The target object is a resource receiver, the target tag is a resource receiver type, and the method further includes: Acquire a resource transfer data set corresponding to the target user, wherein the resource transfer data in the resource transfer data set includes a resource transfer value and a resource recipient; Obtaining a resource receiver type corresponding to each resource receiver in the resource transfer data set; Counting resource transfer values corresponding to each resource receiver type to obtain resource transfer statistics corresponding to each resource receiver type; The resource transfer statistics corresponding to the resource receiver types are sent to the terminal corresponding to the target user.
9. A device for determining an object tag, the device include: A sample set acquisition module, used to acquire a sample set; The sample set includes a plurality of samples, and the samples include object features and labels corresponding to the objects; A training module, used for training a label determination model using samples in the sample set; A target object acquisition module, used to acquire the object corresponding to the sample from the sample set as the target object of the label to be determined; A reference information acquisition module, configured to acquire a plurality of reference objects similar to the target object from the sample set, and acquire labels corresponding to the reference objects from the sample set as reference labels; A label influence acquisition module is used to acquire the similarity between the reference object and the target object, and acquire the possibility corresponding to the reference label; by inputting the object features corresponding to the reference object into the label determination model, the probability of the predicted label being the reference label is used as the possibility corresponding to the reference label; and the label influence corresponding to the reference label is determined according to the similarity and the possibility corresponding to the reference label; A target tag determination module, configured to determine a target tag corresponding to the target object from each of the reference tags according to the tag influence of each of the reference tags; An updating module, used to update the label of the sample to a target label corresponding to the target object; The training module is also used to retrain the label determination model based on the updated sample set.
10. A computer device, It is characterized in that The invention comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the object label determination method according to any one of claims 1 to 8.
11. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the steps of the object tag determination method according to any one of claims 1 to 8.
