A data processing method, device and storage medium

By extracting object feature information from multimedia data, performing clustering and merging, and generating labeled data, it solves the problems of environmental changes and insufficient labels in face recognition technology, and improves recognition accuracy and performance.

CN110046586BActive Publication Date: 2024-09-27TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN201910319953.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-04-19
Publication Date
2024-09-27
Estimated Expiration
2039-04-19

AI Technical Summary

Technical Problem

Face recognition technology performs complexly in unreliable collection environments, resulting in low recognition rates. In particular, changes in occlusion, lighting, posture, and expressions increase the rejection rate, and face data lacking identity tags makes it difficult to improve recognition performance. .

Method used

By extracting object feature information from multimedia data, clustering, heterogeneous data cleaning and similar cluster merging are performed to generate labeled sample object data, and the object recognition model is trained based on these data to improve the accuracy of face recognition.

Benefits of technology

It effectively improves the accuracy of face recognition, avoids the problem of low recognition rate due to insufficient training data, and improves recognition performance by acquiring a large amount of labeled data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110046586B
    Figure CN110046586B
Patent Text Reader

Abstract

The embodiment of the present invention discloses a data processing method, device and storage medium, wherein the method comprises: obtaining sample object data from multiple multimedia data respectively, extracting object feature information of the sample object data; clustering the multiple sample object data according to the object feature information to obtain multiple first object feature clusters with different cluster labels; cleaning heterogeneous object data in each first object feature cluster, determining the cleaned first object feature cluster as a second object feature cluster; merging the same type of clusters between the multiple second object feature clusters to generate multiple third object feature clusters with different cluster labels, updating the object label of the sample object data to the cluster label of the third object feature cluster to which it belongs; training an object recognition model based on the object label and object feature information of the sample object data in each third object feature cluster. The present invention can improve the accuracy of face recognition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of electronic technology, and in particular to a data processing method, device and storage medium. Background Art

[0002] With the continuous promotion of face recognition technology in practical applications, the problems and difficulties of face recognition have gradually become prominent. In an unreliable collection environment, the user's facial expression and environmental conditions are ever-changing, and their complexity far exceeds the pictures obtained in the standard evaluation. For example, occlusion will cause changes in facial features, which will increase the difficulty of face recognition and increase the rejection rate; changes in lighting, posture and expression will also cause a person's facial features in different environments to vary greatly, reducing the recognition rate and may also increase false recognition. At present, in order to improve the performance of face recognition technology in practical application scenarios, the most direct and effective method is to increase a large amount of face training data with identity labels. There is a large amount of face data in real scenes (such as shopping malls, communities, etc.), but most of them are face data without identity labels. It is impossible to obtain a large amount of face training data with identity labels, and it is impossible to improve face recognition performance by increasing face training data. Summary of the invention

[0003] The embodiments of the present invention provide a data processing method, device and storage medium, which can improve the accuracy of face recognition.

[0004] An embodiment of the present invention provides a data processing method, which may include:

[0005] Acquire sample object data respectively from a plurality of multimedia data, and extract object feature information of the sample object data;

[0006] Clustering the plurality of sample object data according to the object feature information to obtain a plurality of first object feature clusters with different cluster labels; the object labels of all the sample object data are the same as the cluster label of the first object feature cluster to which they belong;

[0007] Cleaning up heterogeneous object data in each first object feature cluster respectively, and determining the cleaned first object feature cluster as a second object feature cluster;

[0008] Merging the same type of clusters among the plurality of second object feature clusters to generate a plurality of third object feature clusters with different cluster labels, and updating the object label of the sample object data to the cluster label of the third object feature cluster to which it belongs;

[0009] An object recognition model is trained based on the object label of the sample object data and the object feature information in each third object feature cluster; the object recognition model is used to identify the similarity between the object data to be predicted and the target object data.

[0010] The obtaining of sample object data from a plurality of multimedia data respectively and extracting object feature information corresponding to the sample object data includes:

[0011] Obtaining object position information in a plurality of multimedia data, obtaining an object region having a target size from each multimedia data according to the object position information, determining image content in the object region as sample object data, and obtaining object feature information of each sample object data;

[0012] If the multimedia data is image data, randomly setting an object label for the sample object data in the image data;

[0013] If the multimedia data is video data, the tracking trajectory information of the sample object data in the video data is detected, the sample object data having the same tracking trajectory information is set with associated attributes, and the same object tag is set for the sample object data having the associated attributes.

[0014] The step of determining the image content in the object area as sample object data includes:

[0015] Performing an affine transformation on the image content in the object area based on the target orientation, and determining the image content after the affine transformation as sample object data; the object in the sample object data is at the target orientation;

[0016] The method further comprises:

[0017] Acquiring multimedia data to be predicted;

[0018] Acquire a target object region with a target size according to the object position information in the multimedia data to be predicted, perform an affine transformation based on the target orientation on the image content to be predicted in the target object region, and determine the image content to be predicted after the affine transformation as the object data to be predicted;

[0019] The similarity between the object to be predicted and the target object is obtained based on the object recognition model.

[0020] The clustering of the plurality of sample object data according to the object feature information to obtain a plurality of first object feature clusters with different cluster labels includes:

[0021] Acquire first sample object data and second sample object data from a plurality of sample object data, determine the object label of the first sample object data as a first object label, and determine the object label of the second sample object data as a second object label; the first object label and the second object label are different;

[0022] Acquire a first image similarity between the object feature information of the first sample object data and the object feature information of the second sample object data;

[0023] If the first image similarity is greater than a first threshold, at least one sample object data having the first object label and at least one sample object data having the second object label are divided into the same first object feature cluster, and the first object label and the second object label are set as cluster labels of the divided first object feature cluster;

[0024] When all the sample object data are classified into the first object feature cluster, each first object feature cluster and the sample object data in the object feature cluster are stored.

[0025] The cleaning of the heterogeneous object data in each first object feature cluster and determining the cleaned first object feature cluster as the second object feature cluster includes:

[0026] In response to a first marking operation on the first object feature cluster, determining the sample object data in the first object feature cluster indicated by the first marking operation as standard object data corresponding to the first object feature cluster;

[0027] In response to a second marking operation on non-standard object data, the non-standard object data indicated by the second marking operation is determined as heterogeneous object data; the non-standard object data is sample object data in the first object feature cluster other than the standard object data;

[0028] The heterogeneous object data is deleted from the first object feature cluster, and the first object feature cluster from which the heterogeneous object data is deleted is determined as the second object feature cluster.

[0029] The step of merging the same type of clusters among the plurality of second object feature clusters to generate a plurality of third object feature clusters with different cluster labels, and updating the object label of the sample object data to the cluster label of the third object feature cluster to which it belongs, comprises:

[0030] Acquire a first detection feature cluster and a second detection feature cluster from a plurality of second object feature clusters;

[0031] In response to a merge request for the first detection feature cluster and the second detection feature cluster, obtaining a first quantity of sample object data in the first detection feature cluster and a second quantity of sample object data in the second detection feature cluster based on the merge request;

[0032] Acquire the category similarity between the first detection feature cluster and the second detection feature cluster according to the image similarity between each sample object data in the first detection feature cluster and each sample object data in the second detection feature cluster, the first number, and the second number;

[0033] If the category similarity is greater than a second threshold, the first detection feature cluster and the second detection feature cluster are merged into a third object feature cluster, and the object labels of the sample object data in the first detection feature cluster and the second detection feature cluster are set as cluster labels of the third object feature cluster.

[0034] Wherein, after merging the same type of clusters among the plurality of second object feature clusters to generate a plurality of third object feature clusters with different cluster labels, and updating the object label of the sample object data to the cluster label of the third object feature cluster to which it belongs, the method further comprises:

[0035] determining the third object feature cluster as a cyclic object feature cluster;

[0036] Clean up the heterogeneous object data in each cyclic object feature cluster separately;

[0037] Merging the same type of cyclic object feature clusters after deleting heterogeneous object data to obtain the third object feature cluster;

[0038] When the third object feature cluster meets the convergence condition, or the number of similar clusters merged is equal to the number threshold, the step of training the object recognition model based on the object label and object feature information of the sample object data in each third object feature cluster is performed.

[0039] Among them, it also includes:

[0040] Respectively obtaining a second image similarity between the standard object data and the non-standard object data in each of the third object feature clusters, and obtaining a similarity mean and a similarity variance respectively corresponding to each of the third object feature clusters according to the second image similarity;

[0041] Determine the third object feature cluster whose similarity mean is less than the mean threshold and whose similarity variance is greater than the variance threshold as the target object feature cluster;

[0042] Obtaining a detection result for the target object feature cluster;

[0043] If the detection result is that there is no heterogeneous object data and homogeneous clusters in the target object feature cluster, it is determined that the third object feature cluster meets the convergence condition.

[0044] The training of the object recognition model based on the object label and object feature information of the sample object data in each third object feature cluster includes:

[0045] Acquire sample image similarity between object feature information of sample object data in the third object feature cluster and object feature information of standard object data in the initial object recognition model;

[0046] Determine a similarity error according to the object label of the sample object data in the object recognition model, the object label of the sample object data in the third object feature cluster, and the sample image similarity, and adjust the model parameters of the initial object recognition model by back-propagation according to the similarity error;

[0047] When the number of adjustments of the model parameters is equal to the adjustment threshold or the similarity error satisfies a convergence condition, an initial object recognition model including the adjusted model parameters is determined as the object recognition model.

[0048] An embodiment of the present invention provides a data processing device, which may include:

[0049] A feature information acquisition unit, used to respectively acquire sample object data from a plurality of multimedia data, and extract object feature information of the sample object data;

[0050] A first feature cluster acquisition unit is used to cluster the plurality of sample object data according to the object feature information to obtain a plurality of first object feature clusters with different cluster labels; the object labels of all the sample object data are the same as the cluster label of the first object feature cluster to which they belong;

[0051] A second feature cluster acquisition unit, used to clean up the heterogeneous object data in each first object feature cluster, and determine the cleaned first object feature cluster as a second object feature cluster;

[0052] A third feature cluster acquisition unit is used to merge the same type of clusters among the plurality of second object feature clusters to generate a plurality of third object feature clusters with different cluster labels, and update the object label of the sample object data to the cluster label of the third object feature cluster to which it belongs;

[0053] A model training unit is used to train an object recognition model based on the object label of the sample object data and the object feature information in each third object feature cluster; the object recognition model is used to identify the similarity between the object data to be predicted and the target object data.

[0054] Wherein, the feature information acquisition unit includes:

[0055] A position information acquisition subunit, used to acquire object position information in a plurality of multimedia data, and acquire an object region having a target size from each multimedia data according to the object position information;

[0056] An object data acquisition subunit, configured to determine the image content in the object area as sample object data, and acquire object feature information of each sample object data;

[0057] The object label setting subunit is used to randomly set object labels for the sample object data in the image data if the multimedia data is image data; if the multimedia data is video data, detect the tracking trajectory information of the sample object data in the video data, set associated attributes for the sample object data having the same tracking trajectory information, and set the same object label for the sample object data having the associated attributes.

[0058] Wherein, the object data acquisition subunit is specifically used for:

[0059] Performing an affine transformation based on the target orientation on the image content in the object area, determining the image content after the affine transformation as sample object data, and obtaining object feature information of each sample object data; the object in the sample object data is at the target orientation;

[0060] The method further comprises:

[0061] The object data recognition unit is used to obtain multimedia data to be predicted; obtain a target object area with a target size according to the object position information in the multimedia data to be predicted, perform an affine transformation based on the target orientation on the image content to be predicted in the target object area, and determine the image content to be predicted after the affine transformation as the object data to be predicted; and obtain the similarity between the object data to be predicted and the target object data based on the object recognition model.

[0062] Wherein, the first feature cluster acquisition unit is specifically used for:

[0063] Acquire first sample object data and second sample object data from a plurality of sample object data, determine the object label of the first sample object data as a first object label, and determine the object label of the second sample object data as a second object label; the first object label and the second object label are different;

[0064] Acquire a first image similarity between the object feature information of the first sample object data and the object feature information of the second sample object data;

[0065] If the first image similarity is greater than a first threshold, at least one sample object data having the first object label and at least one sample object data having the second object label are divided into the same first object feature cluster, and the first object label and the second object label are set as cluster labels of the divided first object feature cluster;

[0066] When all the sample object data are classified into the first object feature cluster, each first object feature cluster and the sample object data in the object feature cluster are stored.

[0067] Wherein, the second feature cluster acquisition unit is specifically used for:

[0068] In response to a first marking operation on the first object feature cluster, determining the sample object data in the first object feature cluster indicated by the first marking operation as standard object data corresponding to the first object feature cluster;

[0069] In response to a second marking operation on non-standard object data, the non-standard object data indicated by the second marking operation is determined as heterogeneous object data; the non-standard object data is sample object data in the first object feature cluster other than the standard object data;

[0070] The heterogeneous object data is deleted from the first object feature cluster, and the first object feature cluster from which the heterogeneous object data is deleted is determined as the second object feature cluster.

[0071] Wherein, the third feature cluster acquisition unit is specifically used for:

[0072] Acquire a first detection feature cluster and a second detection feature cluster from a plurality of second object feature clusters;

[0073] In response to a merge request for the first detection feature cluster and the second detection feature cluster, obtaining a first quantity of sample object data in the first detection feature cluster and a second quantity of sample object data in the second detection feature cluster based on the merge request;

[0074] Acquire the category similarity between the first detection feature cluster and the second detection feature cluster according to the image similarity between each sample object data in the first detection feature cluster and each sample object data in the second detection feature cluster, the first number, and the second number;

[0075] If the category similarity is greater than a second threshold, the first detection feature cluster and the second detection feature cluster are merged into a third object feature cluster, and the object labels of the sample object data in the first detection feature cluster and the second detection feature cluster are set as cluster labels of the third object feature cluster.

[0076] Among them, it also includes:

[0077] A feature cluster cyclic acquisition unit is used to determine the third object feature cluster as a cyclic object feature cluster; clean up the heterogeneous object data in each cyclic object feature cluster respectively; merge the cyclic object feature clusters after deleting the heterogeneous object data into similar clusters to obtain the third object feature cluster; when the convergence condition is met for the third object feature cluster, or the number of similar clusters merged is equal to the number threshold, trigger the model training unit.

[0078] Among them, it also includes:

[0079] a detection unit, configured to respectively obtain a second image similarity between the standard object data and the non-standard object data in each of the third object feature clusters, and obtain a similarity mean and a similarity variance respectively corresponding to each of the third object feature clusters according to the second image similarity; and determine the third object feature cluster whose similarity mean is less than a mean threshold and whose similarity variance is greater than a variance threshold as a target object feature cluster;

[0080] The detection result acquisition unit is used to acquire the detection result for the target object feature cluster; if the detection result is that there is no heterogeneous object data and homogeneous clusters in the target object feature cluster, it is determined that the third object feature cluster meets the convergence condition.

[0081] Wherein, the model training unit is specifically used for:

[0082] Acquire sample image similarity between object feature information of sample object data in the third object feature cluster and object feature information of standard object data in the initial object recognition model;

[0083] Determine a similarity error according to the object label of the sample object data in the object recognition model, the object label of the sample object data in the third object feature cluster, and the sample image similarity, and adjust the model parameters of the initial object recognition model by back-propagation according to the similarity error;

[0084] When the number of adjustments of the model parameters is equal to the adjustment threshold or the similarity error satisfies a convergence condition, an initial object recognition model including the adjusted model parameters is determined as the object recognition model.

[0085] On one hand, an embodiment of the present invention provides a computer storage medium, wherein the computer storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing the above method steps.

[0086] An embodiment of the present invention provides a data processing device, comprising a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the following steps:

[0087] Acquire sample object data respectively from a plurality of multimedia data, and extract object feature information of the sample object data;

[0088] Clustering the plurality of sample object data according to the object feature information to obtain a plurality of first object feature clusters with different cluster labels; the object labels of all the sample object data are the same as the cluster label of the first object feature cluster to which they belong;

[0089] Cleaning up heterogeneous object data in each first object feature cluster respectively, and determining the cleaned first object feature cluster as a second object feature cluster;

[0090] Merging the same type of clusters among the plurality of second object feature clusters to generate a plurality of third object feature clusters with different cluster labels, and updating the object label of the sample object data to the cluster label of the third object feature cluster to which it belongs;

[0091] An object recognition model is trained based on the object label of the sample object data and the object feature information in each third object feature cluster; the object recognition model is used to identify the similarity between the object data to be predicted and the target object data.

[0092] In an embodiment of the present invention, sample object data are obtained from a plurality of multimedia data respectively, and object feature information of the sample object data is extracted; the plurality of sample object data are clustered according to the object feature information to obtain a plurality of first object feature clusters with different cluster labels; the object labels of all sample object data are the same as the cluster label of the first object feature cluster to which they belong; the heterogeneous object data in each first object feature cluster are cleaned respectively, and the cleaned first object feature cluster is determined as a second object feature cluster; similar clusters are merged among the plurality of second object feature clusters to generate a plurality of third object feature clusters with different cluster labels, and the object label of the sample object data is updated to the cluster label of the third object feature cluster to which it belongs; an object recognition model is trained based on the object label and the object feature information of the sample object data in each third object feature cluster; the object recognition model is used to identify the similarity between the object data to be predicted and the target object data. Labeled sample object data is generated by clustering sample object data, removing heterogeneous object data and merging similar clusters. A large amount of unlabeled sample object data is processed into labeled sample object data, and then a large amount of labeled sample object data is used to train the object recognition model. This can avoid the problem of low recognition rate of the object recognition model due to too little training data during the training process. By obtaining a large amount of labeled sample object data, the recognition rate of the predicted object data is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0093] In order to more clearly illustrate the embodiments of the present invention 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 of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0094] Figure 1 is a system architecture diagram of a data processing method provided by an embodiment of the present invention;

[0095] Figure 2a is a scenario schematic diagram of a data processing method provided by an embodiment of the present invention;

[0096] Figure 2b is a scenario schematic diagram of a data processing method provided by an embodiment of the present invention;

[0097] Figure 2c is a schematic diagram of an interface of a data processing method provided by an embodiment of the present invention;

[0098] Figure 3 It is a flowchart of a data processing method provided by an embodiment of the present invention;

[0099] Figure 4 is a flow chart of another data processing method provided by an embodiment of the present invention;

[0100] Figure 5 is an exemplary schematic diagram of setting a label provided by an embodiment of the present invention;

[0101] Figure 6 This is an example schematic diagram of deleting heterogeneous object data provided by an embodiment of the present invention;

[0102] Figure 7 is a schematic diagram of an example of feature cluster merging provided by an embodiment of the present invention;

[0103] Figure 8 is a schematic diagram of an example of a data processing method provided by an embodiment of the present invention;

[0104] Fig. 9 is a structural schematic diagram of a data processing device provided by an embodiment of the present invention;

[0105] Fig.10 It is a structural schematic diagram of another data processing device provided by an embodiment of the present invention. DETAILED DESCRIPTION

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

[0107] It is understandable that in the specific implementation of this application, the user data involved (such as facial data) needs to obtain user permission or consent when the following embodiments of this application are applied to specific products or technologies, and the collection, use and processing of the relevant data need to comply with the relevant laws, regulations and standards of the relevant regions.

[0108] Among them, if it is necessary to collect user data in this application, a prompt interface or pop-up window will be displayed before or during the collection. The prompt interface or pop-up window is used to prompt the user that certain data is currently being collected. Only after the user confirms the prompt interface or pop-up window, the relevant steps for data acquisition will be started, otherwise the process will end. Moreover, the acquired user data will be used in reasonable and legal scenarios or purposes. Optionally, in some scenarios where user data needs to be used but has not been authorized by the user, authorization can be requested from the user, and the user data can be used when the authorization is passed.

[0109] See also Figure 1, is a system architecture diagram of data processing provided by an embodiment of the present invention. The server 10f establishes a connection with a user terminal cluster through a switch 10e and a communication bus 10d, and the user terminal cluster may include: user terminal 10a, user terminal 10b, ..., user terminal 10c. The database 10g stores a plurality of multimedia data without labels. The server 10f extracts a plurality of multimedia data without labels from the database 10g, obtains sample object data from the multimedia data, and divides each sample object data into a corresponding object feature cluster by unsupervised learning, and sets corresponding labels for the object feature cluster and the sample object data, the labels include the object label of the sample object data and the cluster label of the object feature cluster, and the object labels of all sample object data are the same as the cluster label of the object feature cluster to which they belong. Based on a plurality of sample object data carrying labels, the server 10f trains an object recognition model by supervised learning, and stores the object recognition model. The server 10f can detect the similarity between the object data to be predicted and the target object data based on the trained object recognition model. When it is detected that the similarity between the object data to be predicted and the target object data is less than a threshold value, the server 10f sends a prompt signal to the corresponding user terminal to prompt the user that the object data to be predicted and the target object data do not belong to the same object; when it is detected that the similarity between the object data to be predicted and the target object data is greater than or equal to the threshold value, the server 10f sends a prompt signal to the corresponding user terminal to prompt the user that the object data to be predicted and the target object data belong to the same object. For example, the object recognition model is a face recognition model, which is used for the face unlocking password of the mobile terminal. When the similarity between the face data to be predicted and the target face data is less than the threshold value, the user is prompted that the face data to be predicted and the target face data are not the same face, and the mobile terminal fails to unlock. When the similarity between the face data to be predicted and the target face data is greater than or equal to the threshold value, the user is prompted that the face data to be predicted and the target face data are the same face, and the mobile terminal is unlocked successfully. Alternatively, when the server 10f receives a detection request from a user terminal in the terminal cluster, it identifies whether the similarity between the object data to be predicted and the target object data corresponding to the detection request is greater than a threshold value based on the object recognition model, and the server 10f sends the detected result to the corresponding user terminal. Of course, the server 10f may also send the trained object recognition model to each user terminal in the user terminal cluster, and the user terminal detects the similarity between the object data to be predicted and the target object data stored in the user terminal.

[0110] The data processing method provided in the embodiment of the present invention can be applied to mine labeled sample object data that can be used for object recognition model training from a large amount of sample object data without identity labels in real scenes. The data processing device involved in the embodiment of the present invention can be a front-end device, including: tablet computers, smart phones, personal computers (PCs), laptops, handheld computers and other terminal devices. The front-end device directly processes sample object data obtained from multiple multimedia data. The data processing device can also be a server. The server processes and obtains sample object data from a database or a front-end device, and processes it, and sends the processing results to the database or the front-end device for storage.

[0111] Since setting labels for unlabeled sample object data and training object recognition models involve a large amount of calculations, the server 10f can adopt a distributed architecture to segment the data / model, optimize the model training in a distributed manner through multiple working nodes, and finally aggregate the model. The above-mentioned program can be an application program or system program in a Linux system, a Window system, or a Unix system. The following takes the process in the Linux system as an example to train an object recognition model based on a large amount of unlabeled multimedia data. Among them, the user terminal can include a mobile phone, a tablet computer, a laptop computer, a PDA, an intelligent speaker, a mobile Internet device (MID), a POS (Point Of Sales), a wearable device (such as a smart watch, a smart bracelet, etc.), etc.

[0112] Among them, the above Figure 1 The server 10f or any user terminal in the corresponding embodiment can process a large amount of unlabeled sample object data into labeled sample object data to implement object recognition model training based on the labeled sample object data. For ease of description, the following description is based on the server 10f as an example. Please refer to Figure 2a-2b , is a schematic diagram of a data processing scenario provided by an embodiment of the present invention. The server 10f obtains n unlabeled multimedia data, obtains object position information in the multiple multimedia data, obtains an object region with a target size from each multimedia data according to the object position information, determines the image content in the object region as sample object data, and obtains object feature information of each sample object data.

[0113] At this point, the server 10f has obtained a plurality of sample object data and object feature information corresponding to each sample object data. The sample object data may be a face image or an image of another object. Next, the server 10f calculates the image similarity between the plurality of sample object data. The specific method is to calculate the distance information between the object feature information corresponding to two sample object data, that is, the image similarity between the sample object data. If the image similarity is greater than the first threshold, the two sample object data are divided into the same first object feature cluster. It should be noted that if there is a sample object data whose object label is the same as the object label of the sample object data divided into the first object feature cluster, the sample object data with the same object label is also divided into the first object feature cluster. For example, when calculating the image similarity between the first sample object data and the second sample object data, the first sample object data is provided with an associated attribute, that is, the first sample object data has tracking trajectory information with at least one other sample object data in the video data. Then, while the first sample object data and the second sample object data are divided into the first object feature cluster, other sample object data with associated attributes may also be divided into the first object feature cluster. It should be noted that when clustering multiple sample object data, due to the large number of sample object data, clustering takes a long time. In order to improve the efficiency of clustering, a distributed clustering method can be adopted here, that is, dividing the multiple sample object data into multiple sample object data sets, and clustering the multiple sample object data sets separately at the same time. Each sample object data set can generate multiple first object feature clusters.

[0114] It should be noted that, in addition to the above clustering method for calculating image similarity, other clustering algorithms may also be used.

[0115] Finally, a third object feature cluster for training an object recognition model is obtained based on multiple first object feature clusters. The heterogeneous object data in each first object feature cluster is first deleted to generate multiple first object feature clusters. Then, the merged clusters in the second object feature clusters are merged according to the merge request to generate a third object feature cluster. The merged cluster is at least two second object feature clusters that can be merged as indicated by the merge request. Then, the sample object data in the third object feature cluster can be used to train the object recognition model 20a. After the object recognition model 20a is trained, the similarity between the object data to be predicted and the target object data can be directly detected later.

[0116] like Figure 2bAs shown, the server stores a pre-trained object recognition model 20a. The user terminal sends the object data to be predicted to the server for detection of similarity with the target object data. The server obtains the object feature information of the object data to be predicted, and if the similarity between the object data to be predicted and the target object data is less than a threshold value based on the object recognition model 20a, it is determined that the detection has failed. Specifically, it can be applied to the field of face recognition. If it is detected that the similarity between the face data to be predicted and the target face data is less than a threshold value, the server sends the detection result to the user terminal and prompts the user terminal that the face data to be predicted is the face data of a stranger.

[0117] See also Figure 2c , is a schematic diagram of a data processing interface provided by an embodiment of the present invention. Taking the face recognition system as an example, the management platform trains the face recognition model to detect whether the face in the video and the target face in the server cluster (including server 1, server 2, ..., server n) are the same person's face. As shown in interface 20c, the user clicks the "Performance Upgrade" button in the interface, and the management platform copies some labeled face data feature clusters from the server cluster. The labeled face data feature clusters in the server cluster can refer to the above Figure 2a Corresponding to the third object feature cluster in the embodiment, adding labeled sample object data to train the face recognition model can improve the accuracy of face recognition of the face recognition model. The management platform trains the face detection model based on the above-mentioned labeled face data feature cluster. After the face detection model is trained, as shown in interface 20d, the user clicks the "Start Scanning" button in the interface, and the management platform can continuously and uninterruptedly obtain video data through the camera, detect whether the face in the video data and the target face in the server cluster are the face of the same person, and display the detection results. The user can also copy new data from the server cluster again at intervals to update the face detection model.

[0118] The specific process of generating the first object feature cluster, the second object feature cluster and the third object feature cluster can be seen in the following Figures 3 to 8 The corresponding embodiment.

[0119] The following will be combined with the attached Figure 3 -Attached Figure 8 , the data processing method provided by the embodiment of the present invention is introduced in detail.

[0120] See also Figure 3 , which is a flow chart of a data processing method provided by an embodiment of the present invention. Figure 3 As shown, the method of the embodiment of the present invention may include the following steps S101 to S105.

[0121] S101, respectively obtaining sample object data from a plurality of multimedia data, and extracting object feature information of the sample object data;

[0122] Specifically, the data processing device may be the above Figure 1 Any user terminal in the user terminal cluster in the corresponding embodiment may specifically be a terminal device such as a tablet computer, a smart phone, a personal computer (PC), a laptop computer, a handheld computer, or the data processing device may also be the above Figure 1 The corresponding server 10f in the embodiment. The data processing device obtains sample object data from multiple multimedia data respectively, and extracts object feature information of the sample object data. It can be understood that the multimedia data includes image data and video data, and the video data includes at least one frame of image data. The sample object data obtained from the multiple multimedia data are essentially obtained from the image data. For example, the sample object data can be obtained from several pictures or video files. The sample object data is an image area of ​​a target size containing a sample object in the multimedia data. The sample object may include a human face, an animal face or an object. Each multimedia data may include at least one sample object data, or there may be no sample object data. The data processing device extracts object feature information from the sample object data. The object feature information is information such as texture features, shape features, and spatial relationship features of the sample object in the image area of ​​the target size. Generally, the object feature information of the sample object data is extracted by using a feature extraction method after the image is grayed. The feature extraction method includes a scale-invariant feature transform (SIFT) and a histogram of oriented gradient (HOG).

[0123] S102, clustering a plurality of sample object data according to the object feature information to obtain a plurality of first object feature clusters with different cluster labels; the object labels of all sample object data are the same as the cluster label of the first object feature cluster to which they belong;

[0124] Specifically, the data processing device clusters the plurality of sample object data according to the object feature information to obtain a plurality of first object feature clusters with different cluster labels; the object labels of all the sample object data are the same as the cluster labels of the first object feature clusters to which they belong. It can be understood that the data processing device clusters the plurality of sample object data using a clustering algorithm to obtain a plurality of first object feature clusters with different cluster labels, wherein the first object feature clusters are a collection of sample object data having the same clustering criteria, each of the first object feature clusters includes at least one sample object data and image feature information corresponding to the sample object data, the cluster label is identification information of the first object feature cluster, the object label is identification information of the sample object data, the object labels of all the sample object data are the same as the cluster label of the first object feature cluster to which they belong, the object labels of the sample object data of each first object feature cluster are the same, and the cluster labels of different first object data are different. In this solution, the image similarity between the image feature information of the sample object data is used as the clustering criterion, and to determine whether two sample object data belong to the same first object feature cluster, the image similarity between the image feature information corresponding to the two sample object data is calculated, and the calculation formula is as follows:

[0125]

[0126] Among them, S represents the image similarity between two sample object data, , The feature vectors representing the data of two sample objects, Represents the feature dimension, A and B represent two sample object data, if the image similarity , the sample object data A and B are divided into the same first object feature cluster, and the cluster label of the first object feature cluster can select the object label of one of the sample object data A and B as the cluster label, or can set a cluster label different from the object labels of the sample object data A and B, and then set the object labels of the sample object data A and B as the cluster label of the first object feature cluster, until all the sample object data are divided into the first object feature cluster, and the object labels of all the sample object data are set to the cluster label of the first object feature cluster to which they belong.

[0127] S103, cleaning up heterogeneous object data in each first object feature cluster respectively, and determining the cleaned first object feature cluster as a second object feature cluster;

[0128] Specifically, the data processing device cleans up the heterogeneous object data in each first object feature cluster respectively, and determines the cleaned first object feature cluster as the second object feature cluster. It can be understood that the heterogeneous object data is the sample object data marked in the first object feature cluster. The user selects sample object data that does not belong to the first object feature cluster from the first object feature cluster, and marks the selected sample object data. The marked sample object data is heterogeneous object data. The data processing device deletes the heterogeneous object data in each first object feature cluster respectively, and determines the first object feature cluster after deleting the heterogeneous object data as the second object feature cluster. The second object feature cluster is a collection of sample object data with the same clustering criterion. Each second object feature cluster includes at least one sample object data and image feature information corresponding to the sample object data.

[0129] S104, merging the same type of clusters among the plurality of second object feature clusters to generate a plurality of third object feature clusters with different cluster labels, and updating the object label of the sample object data to the cluster label of the third object feature cluster to which it belongs;

[0130] Specifically, the data processing device merges similar clusters among multiple second object feature clusters to generate multiple third object feature clusters with different cluster labels, and updates the object label of the sample object data to the cluster label of the third object feature cluster to which it belongs. It can be understood that when clustering multiple sample object data in a distributed clustering manner, since the multiple sample object data are divided into multiple sample object data sets, and since different sample object data sets are clustered separately, there may be first object feature clusters to be merged in different sample object data sets. Merging the first object feature clusters from which heterogeneous object data are removed can improve the clustering accuracy. The similar cluster is a group of second object feature clusters marked in the second object feature cluster, and each group of similar clusters includes at least two second object feature clusters. The data processing device merges the second pair of clusters in each group. The image feature clusters are merged to generate multiple third object feature clusters with different cluster labels. There may be multiple groups of labeled similar clusters in the second object feature cluster, and each group of similar clusters is merged to generate a third object feature cluster. There may also be unlabeled second object feature clusters in the second object feature cluster, and the unlabeled second object feature clusters are not merged into similar clusters. The cluster label of the third object feature cluster may be the cluster label of any second object feature cluster merged into the third object feature cluster, or a new cluster label may be regenerated, and the object label of the sample object data in the third object feature cluster is updated to the cluster label of the third object feature cluster to which it belongs. The third object feature cluster is a collection of sample object data with the same clustering criterion, and each third object feature cluster includes at least one sample object data and image feature information corresponding to the sample object data.

[0131] S105 , training an object recognition model based on the object label of the sample object data in each third object feature cluster and the object feature information; the object recognition model is used to identify the similarity between the object data to be predicted and the target object data.

[0132] Specifically, the data processing device trains an object recognition model based on the object label and the object feature information of the sample object data in each third object feature cluster; the object recognition model is used to identify the similarity between the object data to be predicted and the target object data. It can be understood that the data processing device uses the object label and the object feature information of the sample object data in each third object feature cluster as input information to obtain model parameters of the object recognition model, and the object recognition model is used to identify the similarity between the object data to be predicted and the target object data. The more sample object data there are, the more accurate the model parameters of the object recognition model are, and the higher the accuracy of the similarity between the predicted object data and the target object data calculated using the object recognition model is.

[0133] In an embodiment of the present invention, sample object data are obtained from a plurality of multimedia data respectively, and object feature information of the sample object data is extracted; the plurality of sample object data are clustered according to the object feature information to obtain a plurality of first object feature clusters with different cluster labels; the object labels of all sample object data are the same as the cluster label of the first object feature cluster to which they belong; the heterogeneous object data in each first object feature cluster are cleaned respectively, and the cleaned first object feature cluster is determined as a second object feature cluster; similar clusters are merged among the plurality of second object feature clusters to generate a plurality of third object feature clusters with different cluster labels, and the object label of the sample object data is updated to the cluster label of the third object feature cluster to which it belongs; an object recognition model is trained based on the object label and the object feature information of the sample object data in each third object feature cluster; the object recognition model is used to identify the similarity between the object data to be predicted and the target object data. Labeled sample object data is generated by clustering sample object data, removing heterogeneous object data and merging similar clusters. A large amount of unlabeled sample object data is generated into labeled sample object data, and then a large amount of labeled sample object data is used to train the object recognition model. This can avoid the problem of low recognition rate of the object recognition model due to too little training data during the training process. By obtaining a large amount of labeled sample object data, the recognition rate of the predicted object data is improved.

[0134] See also Figure 4 , which is a flow chart of a data processing method provided by an embodiment of the present invention. Figure 4As shown, the method of the embodiment of the present invention may include the following steps S201-S210.

[0135] S201, obtaining object position information in a plurality of multimedia data, and obtaining an object region having a target size from each multimedia data according to the object position information;

[0136] Specifically, the data processing device obtains object position information in multiple multimedia data, and obtains an object area with a target size from each multimedia data according to the object position information. It can be understood that the multimedia data includes image data and video data, and the object position information is the position information of the image area where a sample object in the multimedia data is located. The sample object may include a human face, an animal face, or an object. According to the object position information, an object area with a target size is obtained from each multimedia data, and the target size is a preset fixed size.

[0137] S202, determining the image content in the object area as sample object data, and obtaining object feature information of each sample object data;

[0138] Specifically, the data processing device determines the image content in the object area as sample object data, and obtains the object feature information of each sample object data. It can be understood that the data processing device performs an affine transformation based on the target orientation on the image content in the object area, determines the image content after the affine transformation as sample object data, and obtains the object feature information of each sample object data; the object in the sample object data is at the target orientation, and the affine transformation is to perform a linear transformation and a translation transformation on a vector space to transform it into another vector space. The sample object in the sample object data can be adjusted to the target orientation through the affine transformation. The target orientation is preset orientation information, and the target orientation can be adjusted by setting the transformation parameters of the affine transformation. The following figure shows The specific process of obtaining facial feature information of facial images is described by image data: all faces are detected in the image data, and the face positions are represented by rectangular bounding boxes; the position information of facial features (eyes, nose, mouth, etc.) is detected in the rectangular bounding box of the face position, and the image in the rectangular bounding box is affine transformed to adjust the face in the image to the target orientation. In order to facilitate the extraction and comparison of facial feature information, the face is usually adjusted to face the front; according to the pre-set target size, fixed-size facial image data is obtained. In order to improve the quality of facial image data, relatively high-quality facial image data will be filtered out based on indicators such as facial posture, image blur, ambient lighting, and occlusion, and feature extraction methods are used to obtain facial feature information of the filtered facial image data.

[0139] S203, if the multimedia data is image data, randomly setting object tags for the sample object data in the image data; if the multimedia data is video data, detecting tracking trajectory information of the sample object data in the video data, setting associated attributes for the sample object data having the same tracking trajectory information, and setting the same object tags for the sample object data having the associated attributes;

[0140] Specifically, if the multimedia data is image data, the data processing device randomly sets an object tag for the sample object data in the image data; if the multimedia data is video data, the tracking trajectory information of the sample object data in the video data is detected, and the sample object data with the same tracking trajectory information is set with an associated attribute, and the same object tag is set for the sample object data with the associated attribute. It can be understood that the data processing device will set the corresponding object tag according to the type of multimedia data. If the multimedia data is image data, the object tag is randomly set for the sample object data, and different sample object data correspond to different object tags. If the multimedia data is video data, the tracking trajectory information of the sample object data in the video data is detected. The tracking trajectory information is the change information of the position of the sample object data in different frames of the video data. When the change of the position of the sample object data in different frames of the video data is within a threshold range, it is determined that the object data that changes within the threshold range has the same tracking trajectory information, and the sample object data with the same tracking trajectory information is set with an associated attribute. The associated attribute is a kind of marking information used to characterize that the sample object information has the same tracking trajectory information, and the same object tag is set for the sample object data with the associated attribute.

[0141] S204, clustering the plurality of sample object data according to the object feature information to obtain a plurality of first object feature clusters with different cluster labels; the object labels of all the sample object data are the same as the cluster label of the first object feature cluster to which they belong;

[0142] S204 in the embodiment of the present invention may include the following steps S2041-S2044:

[0143] S2041, acquiring first sample object data and second sample object data from a plurality of sample object data, determining an object label of the first sample object data as a first object label, and determining an object label of the second sample object data as a second object label; the first object label and the second object label are different;

[0144] Specifically, the data processing device obtains first sample object data and second sample object data from multiple sample object data, determines the object label of the first sample object data as the first object label, and determines the object label of the second sample object data as the second object label. It can be understood that the first sample object data is one of the multiple sample object data, the second sample object data is sample object data among the multiple sample object data that has an object label different from that of the first sample object data, and the object label of the first sample object data is determined to be the first object label, and the object label of the second sample object data is determined to be the second object label.

[0145] S2042, obtaining a first image similarity between the object feature information of the first sample object data and the object feature information of the second sample object data;

[0146] Specifically, the data processing device obtains the first image similarity between the object feature information of the first sample object data and the object feature information of the second sample object data. It can be understood that the data processing device obtains the object feature information of the first sample object data and the object feature information of the second sample object data, and calculates the first image similarity between the first sample object data and the second sample object data. The calculation formula is as follows:

[0147]

[0148] Where S represents the first image similarity between two sample object data, , The feature vectors representing the data of two sample objects, represents the feature dimension, and A and B represent two sample object data.

[0149] S2043: if the first image similarity is greater than a first threshold, dividing at least one sample object data having the first object label and at least one sample object data having the second object label into the same first object feature cluster, and setting the first object label and the second object label as cluster labels of the divided first object feature cluster;

[0150] Specifically, if the first image similarity is greater than a first threshold, the data processing device divides at least one sample object data having the first object label and at least one sample object data having the second object label into the same first object feature cluster, and sets the first object label and the second object label as cluster labels of the divided first object feature cluster. It can be understood that if the first image similarity is greater than a first threshold, the first threshold is preset, and the data processing device divides at least one sample object data having the first object label and at least one sample object data having the second object label into the same first object feature cluster. The at least one sample object data having the first object label may be a sample object data, or at least one sample object data in an object feature cluster, or at least one sample object data having the same tracking trajectory information in the video data. The at least one sample object data having the second object label may be a sample object data, or at least one sample object data in an object feature cluster, or at least one sample object data having the same tracking trajectory information in the video data. The first object label and the second object label are set as cluster labels of the divided first object feature cluster. The cluster label of the first object feature cluster may be one of the first object label and the second object label, or may be randomly set. Please refer to Figure 5 , which is a schematic diagram of an example of setting a label according to an embodiment of the present invention. Figure 5 As shown, if the first image similarity of sample object data 1 and sample object data 2 is greater than a first threshold, sample object data 1 and sample object data 2 are clustered to generate a first object feature cluster, the object label of sample object data 1 is A, and the object label of sample object data 2 is B. If the cluster label of the first object feature cluster generated by sample object data 1 and sample object data 2 is set to object label A of sample object data 1, then the object labels of sample object data 1 and sample object data 2 are both set to A. If the cluster label of the first object feature cluster generated by sample object data 1 and sample object data 2 is set to object label B of sample object data 2, then the object labels of sample object data 1 and sample object data 2 are both set to B. If the cluster label of the first object feature cluster generated by sample object data 1 and sample object data 2 is randomly set to C, then the object labels of sample object data 1 and sample object data 2 are both set to C.

[0151] S2044, when all the sample object data are classified into the first object feature cluster, each first object feature cluster and the sample object data in the object feature cluster are stored;

[0152] Specifically, when all sample object data are divided into their first object feature clusters, the data processing device stores each first object feature cluster and the sample object data in the object feature cluster. It can be understood that when all sample object data are divided into their first object feature clusters, it can be determined that all sample object data have been clustered, then each first object feature cluster and the sample object data in the object feature cluster are stored, and the first object feature clusters can be stored in the storage space of the data processing device or in a database.

[0153] S205, cleaning up the heterogeneous object data in each first object feature cluster respectively, and determining the cleaned first object feature cluster as a second object feature cluster;

[0154] S205 in the embodiment of the present invention may include the following steps S2051-S2053:

[0155] S2051, in response to a first marking operation on the first object feature cluster, determining the sample object data in the first object feature cluster indicated by the first marking operation as standard object data corresponding to the first object feature cluster;

[0156] Specifically, in response to a first marking operation on the first object feature cluster, the data processing device determines the sample object data in the first object feature cluster indicated by the first marking operation as the standard object data corresponding to the first object feature cluster. It can be understood that the data processing device displays a preset number of sample object data in the first object feature cluster on a display screen, obtains a first marking operation on the sample object data displayed on the display screen, and the first marking operation is a click instruction or a touch instruction on the display screen by an operator or a user, and determines the sample object data indicated by the first marking operation as the standard object data corresponding to the first object feature cluster. The marked sample object data is one sample object data of at least one sample object data displayed on the display screen. It should be noted that in response to the first marking operation on the first object feature cluster, the terminal device may determine the sample object data in the first object feature cluster indicated by the first marking operation as the standard object data corresponding to the first object feature cluster, or the terminal device may transmit the first marking operation to the server, and the server determines the sample object data in the first object feature cluster indicated by the first marking operation as the standard object data corresponding to the first object feature cluster for the first marking operation.

[0157] S2052, in response to a second marking operation on non-standard object data, determining the non-standard object data indicated by the second marking operation as heterogeneous object data; the non-standard object data is sample object data in the first object feature cluster other than the standard object data;

[0158] Specifically, the data processing device responds to the second marking operation on non-standard object data, and determines the non-standard object data indicated by the second marking operation as heterogeneous object data; the non-standard object data is sample object data in the first object feature cluster other than the standard object data. It can be understood that the data processing device that responds to the second marking operation on non-standard object data can be a terminal device or a server. When the data processing device is a terminal device, the terminal device displays the standard object data of the first object feature cluster on the first display area of ​​the display screen, and displays a preset number of non-standard object data on the second display area of ​​the display screen. The data processing device obtains the second marking operation on the non-standard object data displayed in the second display area of ​​the display screen. When the data processing device is a server, the server sends the sample object data of the first object feature cluster to the terminal device, the terminal device displays the standard object data in the first display area of ​​the display screen, and displays a preset number of non-standard object data in the second display area of ​​the display screen, the server obtains a second marking operation sent by the terminal device for the non-standard object data in the second display area on the display screen, the second marking operation is a click instruction or a touch instruction of an operator or user on the display screen, the non-standard object data indicated by the second marking operation is determined as heterogeneous object data, and the marked sample object data is at least one non-standard object data displayed on the display screen, please refer to Figure 6 , which is a schematic diagram of an example of deleting heterogeneous object data according to an embodiment of the present invention. Figure 6 As shown, the display screen is used to display sample object data in a first object feature cluster, standard object data of the first object feature cluster is displayed in a first display area 100 of the display screen, and non-standard object data of the first object feature cluster is displayed in a second display area 200 of the display screen, the second display area 200 can display at least one non-standard object data of the first object feature cluster, and a second marking operation is obtained for the non-standard object data displayed in the second display area on the display screen. If the operator or user believes that one or more non-standard object data in the second display area 200 and the standard object data in the first display area 100 do not belong to the same first object feature cluster, then a second marking operation of the operator or user on the display screen for the one or more non-standard object data in the second display area 200 is obtained, and the non-standard object data indicated by the second marking operation is determined as heterogeneous object data of the first object feature cluster.

[0159] S2053, deleting the heterogeneous object data from the first object feature cluster, and determining the first object feature cluster from which the heterogeneous object data is deleted as the second object feature cluster;

[0160] Specifically, the data processing device deletes the heterogeneous object data from the first object feature cluster, and determines the first object feature cluster from which the heterogeneous object data is deleted as the second object feature cluster. It can be understood that the data processing device deletes the heterogeneous object data in the first object feature cluster, and determines the first object feature cluster from which the heterogeneous object data is deleted as the second object feature cluster, the sample object data in the second object feature cluster is less than or equal to the sample object data in the first object feature cluster, and each second object feature cluster includes at least one sample object data and image feature information corresponding to the sample object data.

[0161] S206, merging the same type of clusters among the multiple second object feature clusters to generate multiple third object feature clusters with different cluster labels, and updating the object label of the sample object data to the cluster label of the third object feature cluster to which it belongs;

[0162] S206 in the embodiment of the present invention may include the following steps S2061-S2064:

[0163] S2061, acquiring a first detection feature cluster and a second detection feature cluster from a plurality of second object feature clusters;

[0164] Specifically, the data processing device obtains a first detection feature cluster and a second detection feature cluster from multiple second object feature clusters. It can be understood that the first detection feature cluster is an object feature cluster among the multiple second object feature clusters, and the second detection feature cluster is an object feature cluster among the multiple second object feature clusters that is different from the first detection feature cluster.

[0165] S2062, in response to a merging request for the first detection feature cluster and the second detection feature cluster, acquiring a first quantity of sample object data in the first detection feature cluster and a second quantity of sample object data in the second detection feature cluster based on the merging request;

[0166] Specifically, the data processing device responds to the merge request for the first detection feature cluster and the second detection feature cluster, and obtains a first number of sample object data in the first detection feature cluster and a second number of sample object data in the second detection feature cluster based on the merge request. It can be understood that the data processing device displays the standard object data of the first detection feature cluster in a first display area of ​​a display screen, and displays the standard object data of the second detection feature cluster in a second display area of ​​the display screen, and obtains a merge request for the standard object data of the first detection feature cluster and the standard object data of the second detection feature cluster displayed on the display screen, wherein the merge request is a click instruction or a touch instruction of an operator or a user on the display screen, and obtains the first detection feature cluster based on the merge request. The first number of sample object data in the detection feature cluster and the second number of sample object data in the second detection feature cluster. It should be noted that, in response to the merge request for the first detection feature cluster and the second detection feature cluster, the terminal device may obtain the merge request, and execute the step of obtaining the first number of sample object data in the first detection feature cluster and the second number of sample object data in the second detection feature cluster based on the merge request for the merge request. In response to the merge request, the server may obtain the merge request transmitted by the terminal device, and the server executes the step of obtaining the first number of sample object data in the first detection feature cluster and the second number of sample object data in the second detection feature cluster based on the merge request for the merge request. Please refer to Figure 7 , which provides an example schematic diagram of a feature cluster merging according to an embodiment of the present invention. Figure 7 As shown, the display screen is used to display standard object data in a detection feature cluster, the standard object data of the first detection feature cluster is displayed in a first display area 300 of the display screen, and the standard object data of the second detection feature cluster is displayed in a second display area 400 of the display screen. If the operator or user believes that the first detection feature cluster and the second detection feature cluster can be merged into the same type of clusters based on the standard object data of the first detection feature cluster and the standard object data of the second detection feature cluster, a click instruction or a touch instruction of a merge request triggered by the operator or user on the display screen is obtained, and a first number of sample object data in the first detection feature cluster and a second number of sample object data in the second detection feature cluster are obtained.

[0167] S2063, acquiring category similarity between the first detection feature cluster and the second detection feature cluster according to the image similarity between each sample object data in the first detection feature cluster and each sample object data in the second detection feature cluster, the first number, and the second number;

[0168] Specifically, the data processing device obtains the category similarity between the first detection feature cluster and the second detection feature cluster according to the image similarity between each sample object data in the first detection feature cluster and each sample object data in the second detection feature cluster, the first number, and the second number. It can be understood that the data processing device calculates the image similarity between each sample object data in the first detection feature cluster and each sample object data in the second detection feature cluster, and obtains the category similarity between the first detection feature cluster and the second detection feature cluster according to the image similarity, the first number, and the second number. The category similarity calculation formula is as follows:

[0169]

[0170] Wherein, M is the category similarity between the first detection feature cluster and the second detection feature cluster, Respectively represent the number of sample object data corresponding to the first detection feature cluster and the second detection feature cluster, Represents the number of sample object data pairs in the first detection feature cluster and the second detection feature cluster whose image similarity is greater than the similarity threshold.

[0171] S2064, if the category similarity is greater than a second threshold, merging the first detection feature cluster and the second detection feature cluster into a third object feature cluster, and setting the object label of the sample object data in the first detection feature cluster and the second detection feature cluster as the cluster label of the third object feature cluster to which they belong;

[0172] Specifically, if the category similarity is greater than the second threshold, the data processing device merges the first detection feature cluster and the second detection feature cluster into a third object feature cluster, and sets the object label of the sample object data in the first detection feature cluster and the second detection feature cluster to the cluster label of the third object feature cluster to which it belongs. It can be understood that if the category similarity is greater than the second threshold, the data processing device merges the first detection feature cluster and the second detection feature cluster into a third object feature cluster, the sample object data in the third object feature cluster includes the sample object data in the first detection feature cluster and the sample object data in the second detection feature cluster, and sets the object label of the sample object data in the first detection feature cluster and the second detection feature cluster to the cluster label of the third object feature cluster, the cluster label of the third object feature cluster may be the cluster label of the first detection feature cluster or the second detection feature cluster, and the cluster label of the third object feature cluster may also be set arbitrarily.

[0173] S207, determining the third object feature cluster as a cyclic object feature cluster; cleaning up heterogeneous object data in each cyclic object feature cluster respectively; merging the cyclic object feature clusters after deleting the heterogeneous object data into similar clusters to obtain the third object feature cluster;

[0174] S208, whether the third object feature cluster meets the convergence condition, or whether the number of times the same type of clusters are merged meets the number threshold;

[0175] When the third object feature cluster meets the convergence condition or the number of similar clusters merged is equal to the number threshold, step S209 is executed; when the third object feature cluster does not meet the convergence condition and the number of similar clusters merged is less than the number threshold, step S207 is repeated.

[0176] Specifically, the data processing device determines the third object feature cluster as a cyclic object feature cluster; cleans up the heterogeneous object data in each cyclic object feature cluster respectively; the method for cleaning up the heterogeneous object data is the same as the method in step S205, and then merges the cyclic object feature clusters after deleting the heterogeneous object data into similar clusters to obtain the third object feature cluster, and the method for merging the cyclic object feature clusters into similar clusters is the same as the method in step S206; it should be noted that cleaning up the heterogeneous object data in the cyclic object feature clusters and merging the cyclic object feature clusters into similar clusters can be performed multiple times. In the process of performing multiple similar cluster merging, each similar cluster merging needs to judge the category similarity. When the category similarity of the first detection feature cluster and the second detection feature cluster to be merged is greater than the second threshold, the similar clusters can be merged. In the process of multiple similar cluster merging, the second threshold in each merging process can be the same, and can also be judged according to the number of iterations of the similar cluster merging. For example, the second threshold of the similar cluster merging is the threshold value corresponding to the number of iterations. ,in Indicates the number of iterations of merging similar clusters. Specifically, when merging similar clusters for the second time, the second threshold is , when the category similarity between the first detection feature cluster and the second detection feature cluster to be merged is greater than When the first detection feature cluster and the second detection feature cluster are merged into a third object feature cluster. When the third object feature cluster meets the convergence condition, or the number of similar clusters merged meets the number threshold condition, the cleaning of heterogeneous object data in the cyclic object feature cluster and the merging of similar clusters for the cyclic object feature clusters are no longer performed, and step S209 is performed, and the convergence condition is that there are no heterogeneous object data and similar clusters in the third object feature cluster.

[0177] Specifically, in the process of determining whether the third object feature cluster satisfies the convergence condition, the data processing device may respectively obtain the second image similarity between the standard object data and the non-standard object data in each of the third object feature clusters, and obtain the similarity mean and similarity variance respectively corresponding to each of the third object feature clusters according to the second image similarity; the third object feature cluster whose similarity mean is less than the mean threshold and whose similarity variance is greater than the variance threshold is determined as the target object feature cluster. It can be understood that the data processing device respectively calculates the second image similarity between the standard object data and the non-standard object data in each of the third object feature clusters, and the calculation formula is as follows:

[0178]

[0179] Among them, S represents the image similarity between two sample object data, , The feature vectors representing the data of two sample objects, Represents a feature dimension, A and B represent two sample object data, and obtains a similarity mean and a similarity variance of the second image similarity in each third object feature cluster; the third object feature cluster whose similarity mean is less than a mean threshold and whose similarity variance is greater than a variance threshold is determined as a target object feature cluster, wherein the mean threshold and the variance threshold are both preset, and the target object feature cluster is an object feature cluster in which the differences between the sample object data in the third object feature cluster are relatively large.

[0180] Acquire a detection result for the target object feature cluster; if the detection result is that there is no heterogeneous object data and homogeneous clusters in the target object feature cluster, determine that the third object feature cluster meets a convergence condition;

[0181] Specifically, the data processing device obtains the detection result for the target object feature cluster; if the detection result is that there are no heterogeneous object data and homogeneous clusters in the target object feature cluster, it is determined that the third object feature cluster meets the convergence condition. It can be understood that the data processing device displays the sample object data of the at least one target object feature cluster on the display screen, and obtains the detection result for the target object feature cluster displayed on the display screen, and the detection result is a click instruction or a touch instruction of the operator or user on the display screen. If the detection result is that there are no heterogeneous object data and homogeneous clusters in the target object feature cluster, it is determined that the third object feature cluster meets the convergence condition; if the detection result is that there are heterogeneous object data or homogeneous clusters in the target object feature cluster, it is determined that the third object feature cluster does not meet the convergence condition.

[0182] S209: training an object recognition model based on the object label of the sample object data in each third object feature cluster and the object feature information; the object recognition model is used to identify the similarity between the object data to be predicted and the target object data.

[0183] Specifically, the data processing device obtains the sample image similarity between the object feature information of the sample object data in the third object feature cluster and the object feature information of the standard object data in the initial object recognition model, determines the similarity error according to the object label of the sample object data in the object recognition model, the object label of the sample object data in the third object feature cluster and the sample image similarity, and adjusts the model parameters of the initial object recognition model by back propagation according to the similarity error, and when the number of adjustments of the model parameters is equal to an adjustment threshold or the similarity error satisfies a convergence condition, determines the initial object recognition model including the adjusted model parameters as the object recognition model, and the convergence condition is that the similarity error is less than a similarity error threshold.

[0184] S210, obtaining multimedia data to be predicted; obtaining a target object area with a target size according to object position information in the multimedia data to be predicted, performing an affine transformation on image content to be predicted in the target object area based on the target orientation, and determining the image content to be predicted after the affine transformation as object data to be predicted; and obtaining the similarity between the object data to be predicted and the target object data based on an object recognition model.

[0185] Specifically, a data processing device obtains multimedia data to be predicted; obtains a target object area with a target size according to object position information in the multimedia data to be predicted, performs an affine transformation based on the target orientation on the image content to be predicted in the target object area, and determines the image content to be predicted after the affine transformation as the object data to be predicted; obtains the similarity between the object data to be predicted and the target object data based on an object recognition model. It can be understood that the multimedia data to be predicted is image data or video data without labels, the object position information is the position information of the image area where the sample object in the multimedia data is located, and the sample object may include a human face, an animal face or an object, obtains an object area with a target size from the multimedia data to be predicted according to the object position information, performs an affine transformation based on the target orientation on the image content in the object area, determines the image content to be predicted after the affine transformation as the object data to be predicted, obtains feature information to be predicted of the object data to be predicted, uses a trained object recognition model to obtain the similarity between the object data to be predicted and the target object data, and determines whether the object data to be predicted and the target object data are the same sample object, and the target object data is sample object data pre-stored in a storage space.

[0186] In an embodiment of the present invention, sample object data are obtained from a plurality of multimedia data respectively, and object feature information of the sample object data is extracted; the plurality of sample object data are clustered according to the object feature information to obtain a plurality of first object feature clusters with different cluster labels; the object labels of all sample object data are the same as the cluster label of the first object feature cluster to which they belong; the heterogeneous object data in each first object feature cluster are cleaned respectively, and the cleaned first object feature cluster is determined as a second object feature cluster; similar clusters are merged among the plurality of second object feature clusters to generate a plurality of third object feature clusters with different cluster labels, and the object label of the sample object data is updated to the cluster label of the third object feature cluster to which it belongs; an object recognition model is trained based on the object label and the object feature information of the sample object data in each third object feature cluster; the object recognition model is used to identify the similarity between the object data to be predicted and the target object data. Labeled sample object data is generated by clustering sample object data, removing heterogeneous object data and merging similar clusters, and labeled sample object data is generated from a large amount of unlabeled sample object data. Then, a large amount of labeled sample object data is used to train an object recognition model. This can avoid the problem of low recognition rate of the object recognition model due to too little training data during the training process of the object recognition model. By repeatedly removing heterogeneous object data and merging similar clusters of the sample object data, as well as sampling inspection, the accuracy of sample object data clustering is improved, and the recognition rate of the object recognition model for predicted object data is further improved.

[0187] The following describes a data processing method provided by an embodiment of the present invention in conjunction with a specific implementation scenario. Figure 8As shown, the data processing method provided by the embodiment of the present invention can be applied to mine labeled sample object data for object recognition model training from a large amount of sample object data without identity labels in real scenes. The following uses unlabeled face data to generate labeled face data to illustrate a data processing method provided by an embodiment of the present invention. The present invention mainly includes four processes: data preprocessing, non-identical person cleaning, identical person merging, and quality inspection. Specifically, a data processing device obtains face data from multiple multimedia data respectively, and the multimedia data includes image data and video data, extracts face feature information from the face data, and performs face feature analysis on the multiple multimedia data according to the face feature information. The face data are clustered to obtain a plurality of first face feature clusters with different cluster labels, and the heterogeneous data in each first face feature cluster are cleaned up respectively, and the first face feature cluster after cleaning the heterogeneous data is determined as a second face feature cluster, and the same clusters are merged among the plurality of second face feature clusters to generate a plurality of third face feature clusters with different cluster labels, and the face label of the face data is updated to the cluster label of the third face feature cluster to which it belongs, and the face label of the face data in the third face feature cluster and the face feature information are used to train a face recognition model, and the face recognition model can be used to identify the similarity between the face data to be predicted and the target face data.

[0188] The data preprocessing process is as follows:

[0189] The unlabeled face data in the multimedia data is stored in a local server with sufficient space, and then preprocessing such as original video frame capture and image format conversion is performed to detect all faces in the multimedia data, and the face positions are represented by rectangular frames. According to the face positions, object areas with target sizes are obtained from each multimedia data respectively, and the target size is a preset fixed size. For example, images of 1 times and 2 times the size of a pre-defined training image size can be cut out. According to the type of multimedia data, corresponding face labels are set. If the multimedia data is image data, face labels are randomly set for the face data. Different sample object data correspond to different face labels. If the multimedia data According to the video data, the tracking trajectory information of the sample object data in the video data is detected, and the sample object data with the same tracking trajectory information is set with an associated attribute, wherein the associated attribute is a kind of marking information, and the same face label is set for the face data with the associated attribute, and the face image with relatively high quality is filtered out according to indicators such as face posture, image blur degree, ambient lighting, and occlusion degree, and the filtered face image and the corresponding face feature information are uploaded to a remote storage unit, and the face feature information of the face image is extracted by using a face recognition model, and the multiple face image data are clustered according to the face feature information to obtain multiple first face feature clusters with different cluster labels.

[0190] Among them, the non-fan cleaning process is as follows:

[0191] The heterogeneous data in the first facial feature cluster is cleared. The heterogeneous data refers to the facial images in the first facial feature cluster that do not belong to the first facial feature cluster. The specific method is to display the facial images with the same clustering label on the display screen of the mobile terminal, and finally confirm whether they are the same person with the cooperation of professional labelers. The data processing device responds to the first marking operation of the professional labelers on the first facial feature cluster, determines the facial image indicated by the first marking operation as the standard facial image corresponding to the first facial feature cluster, responds to the second marking operation on the non-standard facial image, determines the non-standard object data indicated by the second marking operation as heterogeneous data, deletes the heterogeneous object data from the first facial feature cluster, and determines the first facial feature cluster from which the heterogeneous data is deleted as the second facial feature cluster.

[0192] If the removal of heterogeneous data is initiated for the first time, the server will directly update the clustering result information to the database; if this process is iterative, the server will first query whether there is new clustering result information (query based on time). If so, the server will update the corresponding field status of the database according to the new clustering information, and push the image to the display screen of the mobile terminal after completing the database status update.

[0193] Among them, the process of merging fans is as follows:

[0194] Merge similar clusters in the second facial feature cluster, specifically, display two standard facial images of the second facial feature clusters on the display screen of the mobile terminal, and have professional labelers cooperate to finally confirm whether they are the same person, the data processing device obtains the first detection feature cluster and the second detection feature cluster from the multiple second facial feature clusters, responds to the professional labelers' request for merging the first detection feature cluster and the second detection feature cluster, obtains the first number of facial images in the first detection feature cluster and the second number of facial images in the second detection feature cluster based on the merging request, obtains the category similarity of the first detection feature cluster and the second detection feature cluster according to the image similarity, the first number and the second number of each facial image in the first detection feature cluster and each facial image in the second detection feature cluster, and if the category similarity is greater than the second threshold, merges the first detection feature cluster and the second detection feature cluster into a third facial feature cluster.

[0195] If the merger of similar clusters is initiated for the first time, the server will directly update the clustering result information to the database; if this process is iterative, the server will first query whether there is new clustering result information. If so, the server will update the corresponding field status of the database according to the new clustering information. After completing the database status update, the image will be pushed to the display screen of the mobile terminal.

[0196] After completing the merging of fan works for all category pairs, the server will update the merging results to the database and activate the quality inspection process.

[0197] Among them, the quality inspection process is:

[0198] The quality inspection process includes two options: non-same-person quality inspection and same-person quality inspection. The non-same-person quality inspection is to detect whether there is heterogeneous data in the third facial feature cluster, and the same-person quality inspection is to detect whether there are similar clusters that can be merged in multiple third facial feature clusters. The data processing equipment obtains the image similarity between the standard facial image and the non-standard facial image in each third facial feature cluster respectively, and obtains the similarity mean and similarity variance corresponding to each third facial feature cluster according to the image similarity. The third facial feature cluster whose similarity mean is less than the mean threshold and whose similarity variance is greater than the variance threshold is determined as the target facial feature cluster that needs to be quality inspected. The specific target face The feature cluster screening method is to arrange the third facial feature clusters in ascending order according to the mean, or to arrange the third facial feature clusters in descending order according to the variance, and determine the third facial feature clusters in the top 10% as the target facial feature clusters, and then obtain the detection result for the target facial feature cluster. If the detection result is that there is no heterogeneous object data and homogeneous clusters in the target object feature cluster, then train the face recognition model based on the face label and face feature information of the face image in each third facial feature cluster. If the detection result is that there is heterogeneous object data or homogeneous clusters in the target object feature cluster, then perform non-same person cleaning and same person merging again.

[0199] In an embodiment of the present invention, sample object data are obtained from a plurality of multimedia data respectively, and object feature information of the sample object data is extracted; the plurality of sample object data are clustered according to the object feature information to obtain a plurality of first object feature clusters with different cluster labels; the object labels of all sample object data are the same as the cluster label of the first object feature cluster to which they belong; the heterogeneous object data in each first object feature cluster are cleaned respectively, and the cleaned first object feature cluster is determined as a second object feature cluster; similar clusters are merged among the plurality of second object feature clusters to generate a plurality of third object feature clusters with different cluster labels, and the object label of the sample object data is updated to the cluster label of the third object feature cluster to which it belongs; an object recognition model is trained based on the object label and the object feature information of the sample object data in each third object feature cluster; the object recognition model is used to identify the similarity between the object data to be predicted and the target object data. Labeled sample object data is generated by clustering sample object data, removing heterogeneous object data and merging similar clusters. A large amount of unlabeled sample object data is generated into labeled sample object data, and then a large amount of labeled sample object data is used to train the object recognition model. This can avoid the problem of low recognition rate of the object recognition model due to too little training data during the training process. By obtaining a large amount of labeled sample object data, the recognition rate of the predicted object data is improved.

[0200] The following will be combined with the attached Fig. 9 -Attached Fig.10 , the data processing device provided by the embodiment of the present invention is introduced in detail. Fig. 9 -Attached Fig.10 The device shown is used to implement the present invention Figure 1-Figure 8 For the convenience of explanation, only the part related to the embodiment of the present invention is shown. For the specific technical details not disclosed, please refer to the present invention 1- Figure 8 The embodiment shown.

[0201] See also Fig. 9 , which is a schematic diagram of the structure of a data processing device according to an embodiment of the present invention. Fig. 9 As shown, the data processing device 1 of the embodiment of the present invention may include: a feature information acquisition unit 11, a first feature cluster acquisition unit 12, a second feature cluster acquisition unit 13, a third feature cluster acquisition unit 14, a model training unit 15, an object data recognition unit 16, a feature cluster loop acquisition unit 17, a detection unit 18, and a detection result acquisition unit 19.

[0202] The feature information acquisition unit 11 is used to respectively acquire sample object data from a plurality of multimedia data and extract object feature information of the sample object data;

[0203] A first feature cluster acquisition unit 12 is used to cluster the plurality of sample object data according to the object feature information to obtain a plurality of first object feature clusters with different cluster labels; the object labels of all sample object data are the same as the cluster label of the first object feature cluster to which they belong;

[0204] A second feature cluster acquisition unit 13 is used to clean up the heterogeneous object data in each first object feature cluster, and determine the cleaned first object feature cluster as a second object feature cluster;

[0205] A third feature cluster acquisition unit 14 is used to merge the same type of clusters among the plurality of second object feature clusters to generate a plurality of third object feature clusters with different cluster labels, and update the object label of the sample object data to the cluster label of the third object feature cluster to which it belongs;

[0206] The model training unit 15 is used to train an object recognition model based on the object label of the sample object data and the object feature information in each third object feature cluster; the object recognition model is used to identify the similarity between the object data to be predicted and the target object data.

[0207] See also Fig. 9 The feature information acquisition unit 11 of the embodiment of the present invention may include: a location information acquisition subunit 111, an object data acquisition subunit 112, and an object tag setting subunit 113.

[0208] The position information acquisition subunit 111 is used to acquire the object position information in the plurality of multimedia data, and acquire the object area with the target size from each multimedia data according to the object position information;

[0209] The object data acquisition subunit 112 is used to determine the image content in the object area as sample object data, and acquire object feature information of each sample object data;

[0210] The object label setting subunit 113 is used for randomly setting object labels for the sample object data in the image data if the multimedia data is image data; if the multimedia data is video data, detecting tracking trajectory information of the sample object data in the video data, setting associated attributes for the sample object data having the same tracking trajectory information, and setting the same object label for the sample object data having the associated attributes;

[0211] The first feature cluster acquisition unit 12 of the embodiment of the present invention is specifically used for:

[0212] for acquiring first sample object data and second sample object data from a plurality of sample object data, determining an object label of the first sample object data as a first object label, and determining an object label of the second sample object data as a second object label; the first object label and the second object label are different;

[0213] for obtaining a first image similarity between the object feature information of the first sample object data and the object feature information of the second sample object data;

[0214] for dividing at least one sample object data having the first object label and at least one sample object data having the second object label into the same first object feature cluster if the first image similarity is greater than a first threshold, and setting the first object label and the second object label as cluster labels of the divided first object feature cluster;

[0215] When all sample object data are classified into the first object feature cluster, each first object feature cluster and the sample object data in the object feature cluster are stored;

[0216] The second feature cluster acquisition unit 13 of the embodiment of the present invention is specifically used for:

[0217] for responding to a first marking operation on the first object feature cluster, determining the sample object data in the first object feature cluster indicated by the first marking operation as standard object data corresponding to the first object feature cluster;

[0218] In response to a second marking operation on non-standard object data, determining the non-standard object data indicated by the second marking operation as heterogeneous object data; the non-standard object data is sample object data in the first object feature cluster other than the standard object data;

[0219] for deleting the heterogeneous object data from the first object feature cluster, and determining the first object feature cluster from which the heterogeneous object data is deleted as the second object feature cluster;

[0220] The third feature cluster acquisition unit 14 of the embodiment of the present invention is specifically used for:

[0221] Used to obtain a first detection feature cluster and a second detection feature cluster from a plurality of second object feature clusters;

[0222] for responding to a merge request for the first detection feature cluster and the second detection feature cluster, and acquiring a first quantity of sample object data in the first detection feature cluster and a second quantity of sample object data in the second detection feature cluster based on the merge request;

[0223] for obtaining the category similarity between the first detection feature cluster and the second detection feature cluster according to the image similarity between each sample object data in the first detection feature cluster and each sample object data in the second detection feature cluster, the first number, and the second number;

[0224] for merging the first detection feature cluster and the second detection feature cluster into a third object feature cluster if the category similarity is greater than a second threshold, and setting the object label of the sample object data in the first detection feature cluster and the second detection feature cluster as the cluster label of the third object feature cluster to which they belong;

[0225] The feature cluster cyclic acquisition unit 17 is used to determine the third object feature cluster as a cyclic object feature cluster; clean up the heterogeneous object data in each cyclic object feature cluster respectively; merge the cyclic object feature clusters after deleting the heterogeneous object data into similar clusters to obtain the third object feature cluster; when the convergence condition is met for the third object feature cluster, or the number of similar clusters merged is equal to the number threshold, trigger the object data identification unit 16;

[0226] The detection unit 18 is used to respectively obtain the second image similarity between the standard object data and the non-standard object data in each of the third object feature clusters, and obtain the similarity mean and similarity variance corresponding to each of the third object feature clusters according to the second image similarity; and determine the third object feature cluster whose similarity mean is less than the mean threshold and whose similarity variance is greater than the variance threshold as the target object feature cluster;

[0227] A detection result acquisition unit 19 is used to acquire a detection result for the target object feature cluster; if the detection result is that there is no heterogeneous object data and homogeneous clusters in the target object feature cluster, then determine that the third object feature cluster meets the convergence condition;

[0228] The model training unit 15 is used to train an object recognition model based on the object label of the sample object data and the object feature information in each third object feature cluster; the object recognition model is used to identify the similarity between the object data to be predicted and the target object data.

[0229] The object data recognition unit 16 is used to obtain multimedia data to be predicted; obtain a target object area with a target size according to the object position information in the multimedia data to be predicted, perform an affine transformation on the image content to be predicted in the target object area based on the target orientation, and determine the image content to be predicted after the affine transformation as the object data to be predicted; and obtain the similarity between the object data to be predicted and the target object data based on the object recognition model.

[0230] In an embodiment of the present invention, sample object data are obtained from a plurality of multimedia data respectively, and object feature information of the sample object data is extracted; the plurality of sample object data are clustered according to the object feature information to obtain a plurality of first object feature clusters with different cluster labels; the object labels of all sample object data are the same as the cluster label of the first object feature cluster to which they belong; the heterogeneous object data in each first object feature cluster are cleaned respectively, and the cleaned first object feature cluster is determined as a second object feature cluster; similar clusters are merged among the plurality of second object feature clusters to generate a plurality of third object feature clusters with different cluster labels, and the object label of the sample object data is updated to the cluster label of the third object feature cluster to which it belongs; an object recognition model is trained based on the object label and the object feature information of the sample object data in each third object feature cluster; the object recognition model is used to identify the similarity between the object data to be predicted and the target object data. Labeled sample object data is generated by clustering sample object data, removing heterogeneous object data and merging similar clusters, and labeled sample object data is generated from a large amount of unlabeled sample object data. Then, a large amount of labeled sample object data is used to train an object recognition model. This can avoid the problem of low recognition rate of the object recognition model due to too little training data during the training process of the object recognition model. By repeatedly removing heterogeneous object data and merging similar clusters of the sample object data, as well as sampling inspection, the accuracy of sample object data clustering is improved, and the recognition rate of the object recognition model for predicted object data is further improved.

[0231] The embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium can store a plurality of instructions, wherein the instructions are suitable for being loaded and executed by a processor as described above. Figure 1-Figure 8 The method steps of the embodiment shown in the figure can be found in the specific implementation process. Figure 1-Figure 8 The specific description of the illustrated embodiment will not be repeated here.

[0232] See also Fig.10 , which is a schematic diagram of the structure of a data processing device according to an embodiment of the present invention. Fig.10As shown, the data processing device 1000 may include: at least one processor 1001, such as a CPU, at least one network interface 1004, a user interface 1003, a memory 1005, and at least one communication bus 1002. The communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), and the user interface 1003 may optionally include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as at least one disk storage. The memory 1005 may optionally also be at least one storage device located away from the aforementioned processor 1001. As Fig.10 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a data processing application program.

[0233] exist Fig.10 In the device 1000 shown, the user interface 1003 is mainly used to provide an input interface for the user and obtain data input by the user; and the processor 1001 can be used to call the data processing application stored in the memory 1005 and specifically perform the following operations:

[0234] Acquire sample object data respectively from a plurality of multimedia data, and extract object feature information of the sample object data;

[0235] Clustering the plurality of sample object data according to the object feature information to obtain a plurality of first object feature clusters with different cluster labels; the object labels of all the sample object data are the same as the cluster label of the first object feature cluster to which they belong;

[0236] Cleaning up heterogeneous object data in each first object feature cluster respectively, and determining the cleaned first object feature cluster as a second object feature cluster;

[0237] Merging the same type of clusters among the plurality of second object feature clusters to generate a plurality of third object feature clusters with different cluster labels, and updating the object label of the sample object data to the cluster label of the third object feature cluster to which it belongs;

[0238] An object recognition model is trained based on the object label of the sample object data and the object feature information in each third object feature cluster; the object recognition model is used to identify the similarity between the object data to be predicted and the target object data.

[0239] In an embodiment of the present invention, sample object data are obtained from a plurality of multimedia data respectively, and object feature information of the sample object data is extracted; the plurality of sample object data are clustered according to the object feature information to obtain a plurality of first object feature clusters with different cluster labels; the object labels of all sample object data are the same as the cluster label of the first object feature cluster to which they belong; the heterogeneous object data in each first object feature cluster are cleaned respectively, and the cleaned first object feature cluster is determined as a second object feature cluster; similar clusters are merged among the plurality of second object feature clusters to generate a plurality of third object feature clusters with different cluster labels, and the object label of the sample object data is updated to the cluster label of the third object feature cluster to which it belongs; an object recognition model is trained based on the object label and the object feature information of the sample object data in each third object feature cluster; the object recognition model is used to identify the similarity between the object data to be predicted and the target object data. Labeled sample object data is generated by clustering sample object data, removing heterogeneous object data and merging similar clusters. A large amount of unlabeled sample object data is generated into labeled sample object data, and then a large amount of labeled sample object data is used to train the object recognition model. This can avoid the problem of low recognition rate of the object recognition model due to too little training data during the training process. By obtaining a large amount of labeled sample object data, the recognition rate of the predicted object data is improved.

[0240] It should be understood that the device 1000 described in the embodiment of the present invention can execute the above Figures 3 to 9 The description of the data processing method in the corresponding embodiment can also be performed as described above. Fig.10 The description of the data processing device 1 in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated here either.

[0241] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0242] The above disclosure is only the preferred embodiment of the present invention, which certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.

Claims

1. A data processing method, It is characterized in that include: Acquire sample object data respectively from a plurality of multimedia data, and extract object feature information of the sample object data; Clustering the plurality of sample object data according to the object feature information to obtain a plurality of first object feature clusters with different cluster labels; The object labels of all sample object data are the same as the cluster label of the first object feature cluster to which they belong; In response to a first marking operation on the first object feature cluster, the sample object data in the first object feature cluster indicated by the first marking operation is determined as the standard object data corresponding to the first object feature cluster; the first marking operation is a click instruction or a touch instruction on a display screen displaying a preset number of sample object data in the first object feature cluster; In response to a second marking operation on non-standard object data, the non-standard object data indicated by the second marking operation is determined as heterogeneous object data; the non-standard object data is sample object data other than the standard object data in the first object feature cluster; the second marking operation refers to a click instruction or a touch instruction on a display screen displaying a first display area and a second display area, the first display area is used to display the standard object data, and the second display area is used to display the non-standard object data; Deleting the heterogeneous object data from the first object feature cluster, and determining the first object feature cluster from which the heterogeneous object data is deleted as the second object feature cluster; Merging the same type of clusters among the plurality of second object feature clusters to generate a plurality of third object feature clusters with different cluster labels, and updating the object label of the sample object data to the cluster label of the third object feature cluster to which it belongs; An object recognition model is trained based on the object label of the sample object data and the object feature information in each of the third object feature clusters; the object recognition model is used to identify the similarity between the object data to be predicted and the target object data.

2. The method according to claim 1, It is characterized in that The acquiring sample object data from the plurality of multimedia data respectively and extracting object feature information corresponding to the sample object data comprises: Obtaining object position information in a plurality of multimedia data, obtaining an object region having a target size from each multimedia data according to the object position information, determining image content in the object region as sample object data, and obtaining object feature information of each sample object data; If the multimedia data is image data, randomly setting an object label for the sample object data in the image data; If the multimedia data is video data, the tracking trajectory information of the sample object data in the video data is detected, the sample object data having the same tracking trajectory information is set with associated attributes, and the same object tag is set for the sample object data having the associated attributes.

3. The method according to claim 2, It is characterized in that The determining the image content in the object area as sample object data comprises: Performing an affine transformation on the image content in the object area based on the target orientation, and determining the image content after the affine transformation as sample object data; the object in the sample object data is at the target orientation; The method further comprises: Acquiring multimedia data to be predicted; Acquire a target object region with a target size according to the object position information in the multimedia data to be predicted, perform an affine transformation based on the target orientation on the image content to be predicted in the target object region, and determine the image content to be predicted after the affine transformation as the object data to be predicted; The similarity between the object to be predicted and the target object is obtained based on the object recognition model.

4. The method according to claim 1, It is characterized in that The clustering of the plurality of sample object data according to the object feature information to obtain a plurality of first object feature clusters with different cluster labels includes: Acquire first sample object data and second sample object data from a plurality of sample object data, determine the object label of the first sample object data as a first object label, and determine the object label of the second sample object data as a second object label; the first object label and the second object label are different; Acquire a first image similarity between the object feature information of the first sample object data and the object feature information of the second sample object data; If the first image similarity is greater than a first threshold, at least one sample object data having the first object label and at least one sample object data having the second object label are divided into the same first object feature cluster, and the first object label and the second object label are set as cluster labels of the divided first object feature cluster; When all the sample object data are classified into the first object feature cluster, each first object feature cluster and the sample object data in the object feature cluster are stored.

5. The method according to claim 1, It is characterized in that The merging of the same type of clusters among the plurality of second object feature clusters to generate a plurality of third object feature clusters with different cluster labels, and updating the object label of the sample object data to the cluster label of the third object feature cluster to which it belongs, comprises: Acquire a first detection feature cluster and a second detection feature cluster from a plurality of second object feature clusters; In response to a merge request for the first detection feature cluster and the second detection feature cluster, obtaining a first quantity of sample object data in the first detection feature cluster and a second quantity of sample object data in the second detection feature cluster based on the merge request; Acquire the category similarity between the first detection feature cluster and the second detection feature cluster according to the image similarity between each sample object data in the first detection feature cluster and each sample object data in the second detection feature cluster, the first number, and the second number; If the category similarity is greater than a second threshold, the first detection feature cluster and the second detection feature cluster are merged into a third object feature cluster, and the object labels of the sample object data in the first detection feature cluster and the second detection feature cluster are set as cluster labels of the third object feature cluster.

6. The method according to claim 1, It is characterized in that After merging the same type of clusters among the plurality of second object feature clusters to generate a plurality of third object feature clusters with different cluster labels, and updating the object label of the sample object data to the cluster label of the third object feature cluster to which it belongs, the method further includes: determining the third object feature cluster as a cyclic object feature cluster; Clean up the heterogeneous object data in each cyclic object feature cluster separately; Merge the same type of cyclic object feature clusters after deleting heterogeneous object data to obtain the third object feature cluster; When the convergence condition is met for the third object feature cluster, or the number of similar clusters merged is equal to the number threshold, the step of training the object recognition model based on the object label and object feature information of the sample object data in each of the third object feature clusters is performed.

7. The method according to claim 6, It is characterized in that Also includes: Respectively obtaining a second image similarity between the standard object data and the non-standard object data in each of the third object feature clusters, and obtaining a similarity mean and a similarity variance respectively corresponding to each of the third object feature clusters according to the second image similarity; Determine the third object feature cluster whose similarity mean is less than the mean threshold and whose similarity variance is greater than the variance threshold as the target object feature cluster; Obtaining a detection result for the target object feature cluster; If the detection result is that there is no heterogeneous object data and homogeneous clusters in the target object feature cluster, it is determined that the third object feature cluster meets the convergence condition.

8. The method according to claim 1, It is characterized in that The training of the object recognition model based on the object label and object feature information of the sample object data in each of the third object feature clusters comprises: Acquire sample image similarity between object feature information of sample object data in the third object feature cluster and object feature information of standard object data in the initial object recognition model; Determine a similarity error according to the object label of the sample object data in the object recognition model, the object label of the sample object data in the third object feature cluster, and the sample image similarity, and adjust the model parameters of the initial object recognition model by back-propagation according to the similarity error; When the number of adjustments of the model parameters is equal to the adjustment threshold or the similarity error satisfies a convergence condition, an initial object recognition model including the adjusted model parameters is determined as the object recognition model.

9. A data processing device, It is characterized in that include: A feature information acquisition unit, used to respectively acquire sample object data from a plurality of multimedia data, and extract object feature information of the sample object data; A first feature cluster acquisition unit, configured to cluster the plurality of sample object data according to the object feature information to obtain a plurality of first object feature clusters with different cluster labels; The object labels of all sample object data are the same as the cluster label of the first object feature cluster to which they belong; a second feature cluster acquisition unit, configured to respond to a first marking operation on the first object feature cluster and determine the sample object data in the first object feature cluster indicated by the first marking operation as standard object data corresponding to the first object feature cluster; wherein the first marking operation refers to a click instruction or a touch instruction on a display screen displaying a preset number of sample object data in the first object feature cluster; The second feature cluster acquisition unit is further used to respond to a second marking operation on the non-standard object data, and determine the non-standard object data indicated by the second marking operation as heterogeneous object data; the non-standard object data is sample object data other than the standard object data in the first object feature cluster; the second marking operation refers to a click instruction or a touch instruction on a display screen displaying a first display area and a second display area, the first display area is used to display the standard object data, and the second display area is used to display the non-standard object data; The second feature cluster acquisition unit is further used to delete the heterogeneous object data from the first object feature cluster, and determine the first object feature cluster from which the heterogeneous object data is deleted as the second object feature cluster; A third feature cluster acquisition unit is used to merge the same type of clusters among the plurality of second object feature clusters to generate a plurality of third object feature clusters with different cluster labels, and update the object label of the sample object data to the cluster label of the third object feature cluster to which it belongs; The model training unit is used to train an object recognition model based on the object label of the sample object data and the object feature information in each of the third object feature clusters; the object recognition model is used to identify the similarity between the object data to be predicted and the target object data.

10. A data processing device, It is characterized in that include: A processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the method according to any one of claims 1-8.

11. A computer storage medium, It is characterized in that The computer storage medium stores a plurality of instructions, which are suitable for being loaded by a processor and executing the method steps according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Method and device for hierarchical clustering

    CN104391879A

  • Clustering method, clustering device and electronic equipment

    CN106228188A

  • Face recognition method, face recognition system, medium and electronic equipment

    CN109583332A

  • Method, apparatus and computer-readable recording medium for image tagging by using image clustering

    KR101151851B1

  • Systems and methods for image recognition

    US10025950B1