Voiceprint clustering method, device, equipment and storage medium
The voiceprint clustering method based on grouping recursive thinking solves the time complexity problem of traditional voiceprint clustering algorithms in massive data scenarios, achieves efficient voiceprint clustering, and improves clustering speed and user experience.
Patent Information
- Application Number
- CN202211061539.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-31
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2042-08-31
AI Technical Summary
The traditional voiceprint clustering algorithm has high time complexity in massive data scenarios, causing the clustering speed to become a bottleneck and making it difficult to gain advantages in time complexity.
The voiceprint clustering method adopts the grouping recursive idea to decompose the voiceprint vector into small data sets for clustering, and merge and decompose them according to the recursive conditions until the conditions are met to improve the clustering speed.
The efficiency of voiceprint clustering has been greatly improved, and results can be returned quickly under low clustering reliability conditions, reducing user waiting time and improving user experience.
Smart Images

Figure CN115440227B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of clustering technology, and in particular to a voiceprint clustering method, device, equipment and storage medium. Background Art
[0002] With the advent of the big data era, the scale of voiceprint data has expanded rapidly. Using traditional clustering algorithms to cluster voiceprints will be very time-consuming. For example, the time complexity of the hierarchical clustering algorithm is o(n3). As the amount of data continues to grow, its clustering time will also increase sharply. In the scenario of massive voiceprint data, the speed of voiceprint clustering becomes a bottleneck. How clustering algorithms can gain advantages in terms of time complexity is an important topic. Summary of the invention
[0003] In view of the above-mentioned shortcomings of the prior art, the present invention provides a method, device, equipment and storage medium for voiceprint clustering, so as to provide an efficient voiceprint clustering solution.
[0004] The first aspect of the present application provides a voiceprint clustering method, comprising:
[0005] Obtaining voiceprint vectors; wherein each of the voiceprint vectors corresponds to a unique identifier;
[0006] If the number of the plurality of voiceprint vectors is not less than a preset minimum total number, grouping and clustering the plurality of voiceprint vectors to obtain a grouping and clustering result;
[0007] Determining whether the grouping clustering result meets a preset recursive condition;
[0008] If the grouping and clustering result meets the recursive condition, grouping and clustering the center vectors of the clusters in the grouping and clustering result until the grouping and clustering result does not meet the recursive condition;
[0009] Determining a final clustering result according to the grouping clustering results that do not meet the recursive condition;
[0010] The step of grouping and clustering the plurality of voiceprint vectors includes:
[0011] Dividing the plurality of voiceprint vectors into a plurality of groups according to a preset number of subset voiceprints;
[0012] The voiceprint vectors of each group are clustered respectively.
[0013] Optionally, the method further includes:
[0014] If the number of the voiceprint vectors is less than the minimum total number, the multiple voiceprint vectors are directly clustered to obtain a final clustering result.
[0015] Optionally, the determining whether the grouping clustering result meets a preset recursive condition includes:
[0016] Determining whether the number of clusters in the grouping clustering result is less than the minimum total number;
[0017] Determine whether the convergence rate of the group clustering result is less than a preset clustering convergence rate; wherein the convergence rate is equal to 1 minus the ratio of the number of clusters in the group clustering structure to the number of vectors used in this group clustering;
[0018] Determine whether the number of grouping clusters is greater than the preset number of groupings;
[0019] If the number of clusters in the grouping clustering result is not less than the minimum total number, the convergence rate is not less than the preset clustering convergence rate, and the number of grouping clustering is not greater than the number of groupings, then it is determined that the grouping clustering result meets the preset recursive condition;
[0020] If the number of clusters in the grouping clustering result is less than the minimum total number, or the convergence rate is less than a preset clustering convergence rate, or the number of grouping clustering is not greater than the number of groupings, it is determined that the grouping clustering result does not meet the recursive condition.
[0021] Optionally, determining the final clustering result according to the grouping clustering results that do not meet the recursive condition includes:
[0022] Comprehensive clustering is performed on the clustering clusters in the grouping clustering results that do not meet the recursive condition to obtain a final clustering result.
[0023] A second aspect of the present application provides a device for voiceprint clustering, comprising:
[0024] An obtaining unit, configured to obtain a voiceprint vector; wherein each of the voiceprint vectors corresponds to a unique identifier;
[0025] A clustering unit, configured to group and cluster the multiple voiceprint vectors to obtain a grouping and clustering result if the number of the multiple voiceprint vectors is not less than a preset minimum total number;
[0026] A judging unit, used to judge whether the grouping clustering result meets a preset recursive condition;
[0027] The clustering unit is used for grouping and clustering the center vectors of the clusters in the grouping and clustering result if the grouping and clustering result meets the recursive condition until the grouping and clustering result does not meet the recursive condition;
[0028] A determination unit, configured to determine a final clustering result according to the grouping clustering results that do not meet the recursive condition;
[0029] The step of grouping and clustering the plurality of voiceprint vectors includes:
[0030] Dividing the plurality of voiceprint vectors into a plurality of groups according to a preset number of subset voiceprints;
[0031] The voiceprint vectors of each group are clustered respectively.
[0032] Optionally, the clustering unit is further used for:
[0033] If the number of the voiceprint vectors is less than the minimum total number, the multiple voiceprint vectors are directly clustered to obtain a final clustering result.
[0034] Optionally, when the judging unit judges whether the grouping clustering result meets a preset recursive condition, it is further used to:
[0035] Determining whether the number of clusters in the grouping clustering result is less than the minimum total number;
[0036] Determine whether the convergence rate of the group clustering result is less than a preset clustering convergence rate; wherein the convergence rate is equal to 1 minus the ratio of the number of clusters in the group clustering structure to the number of vectors used in this group clustering;
[0037] Determine whether the number of grouping clusters is greater than the preset number of groupings;
[0038] If the number of clusters in the grouping clustering result is not less than the minimum total number, the convergence rate is not less than the preset clustering convergence rate, and the number of grouping clustering is not greater than the number of groupings, then it is determined that the grouping clustering result meets the preset recursive condition;
[0039] If the number of clusters in the grouping clustering result is less than the minimum total number, or the convergence rate is less than a preset clustering convergence rate, or the number of grouping clustering is not greater than the number of groupings, it is determined that the grouping clustering result does not meet the recursive condition.
[0040] Optionally, when the determining unit determines the final clustering result according to the grouping clustering result that does not meet the recursive condition, it is specifically used to:
[0041] Comprehensive clustering is performed on the clustering clusters in the grouping clustering results that do not meet the recursive condition to obtain a final clustering result.
[0042] A third aspect of the present application provides an electronic device, including a memory and a processor;
[0043] The memory is used to store computer programs;
[0044] The processor is used to execute the computer program, specifically to implement the voiceprint clustering method provided in any one of the first aspects of the present application.
[0045] A fourth aspect of the present application provides a computer storage medium for storing a computer program. When the computer program is executed, it is specifically used to implement the voiceprint clustering method provided in any one of the first aspects of the present application.
[0046] The present application provides a method, device, equipment and storage medium for voiceprint clustering, the method comprising: obtaining a voiceprint vector; grouping and clustering a plurality of voiceprint vectors to obtain a grouping and clustering result; judging whether the grouping and clustering result meets a preset recursive condition; if the grouping and clustering result does not meet the recursive condition, grouping and clustering the clusters in the grouping and clustering result until the grouping and clustering result meets the recursive condition; and determining the final clustering result according to the grouping and clustering result that meets the recursive condition. The present solution greatly improves the efficiency of voiceprint clustering by grouping and clustering the clusters obtained after the first clustering. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] 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 embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0048] Figure 1 A schematic diagram of the principle of a voiceprint clustering method provided in an embodiment of the present application;
[0049] Figure 2 A flow chart of a voiceprint clustering method provided in an embodiment of the present application;
[0050] Figure 3 An example diagram of a clustering result of voiceprint clustering provided in an embodiment of the present application;
[0051] Figure 4 A schematic diagram of the structure of a voiceprint clustering device provided in an embodiment of the present application;
[0052] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0053] 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.
[0054] In order to facilitate understanding of the technical solution provided by this application, the terms that may be involved in this application are first briefly introduced.
[0055] Voiceprint is a general term for the voice characteristic parameters contained in the voice that can uniquely characterize and identify the speaker's identity, as well as the voice model established based on these characteristic parameters. Voiceprint is a biological individual characteristic of a person, and it is difficult to find two people with exactly the same voiceprint.
[0056] Clustering is the process of dividing a collection of physical or abstract objects into multiple classes consisting of similar objects. A cluster generated by clustering is a collection of data objects that are similar to objects in the same cluster and different from objects in other clusters.
[0057] Hierarchical Clustering is a method of creating a hierarchical nested clustering tree by calculating the similarity between data points of different categories. The original data points of different categories are the lowest level of the tree, and the top level of the tree is the root node of a cluster.
[0058] Traditional voiceprint clustering algorithms have high time complexity and are often not suitable for large-scale data. Excessive computational time overhead will reduce the practicality and efficiency of clustering. To solve this problem, the present invention proposes a voiceprint clustering algorithm that combines the idea of grouping recursion to improve clustering speed and achieve comprehensive advantages in terms of time complexity and clustering reliability.
[0059] The principle of the present invention is that in the process of clustering massive voiceprints, a group recursive processing method is used for clustering, the large data set is decomposed into small data sets, and then each small data set is clustered separately, and then all the clustering results are merged. After randomly disrupting the order, if the recursive conditions are met, the clusters are decomposed and merged again.
[0060] First combine Figure 1 The principle of the voiceprint clustering method provided in the embodiment of the present application is briefly described. Figure 1 A schematic diagram of the principle of a voiceprint clustering method provided in an embodiment of the present application.
[0061] 1) Preparation of clustered voiceprint objects: The voiceprint vectors to be clustered and their corresponding original unique identification IDs are pre-loaded into the memory.
[0062] 2) Input parameter settings:
[0063] Recursive condition parameters: the minimum total number of voiceprints that can satisfy grouping sum; the number of voiceprints in the subset num; the maximum number of grouping times; the minimum convergence rate ratio of voiceprint clustering.
[0064] The specific values of the above input parameters can be determined based on the approximate order of magnitude of the voiceprint. Specifically, you can use the labeled data set to continuously adjust the corresponding input parameters for recursive clustering, and record the clustering time and results. Refer to the clustering accuracy and speed under different parameters, and select the input parameters that can balance the two indicators according to the specific business scenario.
[0065] 3) Group recursion:
[0066] In the first grouping clustering, if the total number of input voiceprint objects is not less than the set parameter sum, the entire data set is divided into multiple subsets according to the parameter num, and the voiceprint objects in each subset are clustered using a hierarchical clustering algorithm (this process can be performed in parallel with multiple threads), and the clustered data clusters are obtained: the cluster center vector, the unique identification ID of the cluster center, and the original ID list corresponding to the voiceprint in the cluster. The data clusters are mixed and disrupted.
[0067] In the second grouping and clustering, if the number of data sets after merging is not less than the set parameter sum, and the set number of groupings is not less than 2, and after merging, 1 minus the number of data sets / the total number of input voiceprint objects before this clustering is not less than the set clustering convergence rate ratio, that is, whether the recursive conditions are met is judged. If so, continue grouping and clustering, and then merge; if not, jump out of the recursion and directly cluster the merged data set.
[0068] The operation method of each subsequent grouping and clustering is the same as above, until the result of a certain grouping and clustering meets the recursive condition.
[0069] After jumping out of the last clustering after recursion, the final result can be obtained: the cluster center of each cluster and the list of original identification IDs of the voiceprints in the corresponding cluster.
[0070] See also Figure 2 , is a flow chart of a voiceprint clustering method provided in an embodiment of the present application, and the method may include the following steps.
[0071] S201, obtaining a voiceprint vector.
[0072] Among them, each voiceprint vector corresponds to a unique identifier.
[0073] It can be understood that the number of voiceprint vectors obtained in step S201 is multiple.
[0074] The unique identifier of each voiceprint vector can be randomly generated after all voiceprint vectors are obtained.
[0075] The voiceprint vector may be obtained by obtaining multiple audio data segments, and for each audio data segment, processing the audio data using a feature extraction algorithm to obtain a voiceprint vector corresponding to the audio data.
[0076] S202: Determine whether the number of voiceprint vectors is less than a minimum total number.
[0077] If the number of voiceprint vectors is less than the minimum total number, execute step 207; if the number of voiceprint vectors is not less than the minimum total number, execute step S203.
[0078] The minimum total number is the minimum total number of voiceprints that can satisfy the grouping as mentioned above. The specific value of the minimum total number can be set according to the actual situation, and this embodiment does not limit it. As an example, the minimum total number can be set to 100, that is, if the number of voiceprint vectors S is less than 100, execute S207, if the number of voiceprint vectors S is not less than 100, execute step S203.
[0079] S203, grouping and clustering the multiple voiceprint vectors to obtain a grouping and clustering result.
[0080] In step S203, the specific implementation of grouping and clustering multiple voiceprint vectors may include:
[0081] Dividing the plurality of voiceprint vectors into a plurality of groups according to a preset number of subset voiceprints;
[0082] Cluster the voiceprint vectors of each group separately.
[0083] The number of subset voiceprints, that is, the number num of voiceprints of the aforementioned subset. This embodiment does not limit the specific value of this parameter. Exemplarily, the number of subset voiceprints can be set to 20.
[0084] Dividing multiple voiceprint vectors into multiple groups according to a preset number of subset voiceprints means randomly selecting voiceprint vectors of the subset voiceprint number as a group. If the number of remaining voiceprint vectors is greater than the number of subset voiceprints, then randomly selecting voiceprint vectors of the subset voiceprint number as another group, and so on, until the number of remaining voiceprint vectors is less than or equal to the number of subset voiceprints, the remaining voiceprint vectors are taken as a separate group, thereby completing the division.
[0085] When clustering the voiceprint vectors of each group, the specific clustering algorithm used may be any existing clustering algorithm, for example, may be a k-means algorithm.
[0086] Optionally, in order to improve efficiency, in S203, multiple groups may be clustered in parallel in a multi-threaded parallel manner.
[0087] The group clustering result obtained after each group clustering consists of at least one cluster. Each cluster includes a center vector and an identification list, wherein the identification list includes the unique identification of each voiceprint vector belonging to the cluster. The center vector refers to the voiceprint vector that serves as the cluster center among the multiple voiceprint vectors belonging to the cluster. The center vector of each cluster can be determined by the clustering algorithm during the clustering process.
[0088] S204: Determine whether the grouping and clustering results meet the preset recursive conditions.
[0089] If the grouping and clustering result meets the recursive condition, step S205 is executed; if the grouping and clustering result does not meet the recursive condition, step S206 is executed.
[0090] Optionally, judging whether the grouping clustering result meets the preset recursive conditions includes:
[0091] Determine whether the number of clusters in the grouping clustering result is less than the minimum total number;
[0092] Determine whether the convergence rate of the grouping clustering result is less than a preset clustering convergence rate; wherein the convergence rate is the ratio of the number of clusters in the grouping clustering result to the voiceprint vector;
[0093] Determine whether the number of grouping clusters is greater than the preset number of groupings;
[0094] If the number of clusters in the grouping clustering result is not less than the minimum total number, the convergence rate is not less than the preset clustering convergence rate, and the number of grouping clustering is not greater than the number of groupings, then it is determined that the grouping clustering result meets the preset recursive conditions;
[0095] If the number of clusters in the grouping clustering result is less than the minimum total number, or the convergence rate is less than the preset clustering convergence rate, or the number of grouping clustering is not greater than the number of groupings, it is determined that the grouping clustering result does not meet the recursive condition.
[0096] That is to say, the above recursive conditions include that the number of clusters in the group clustering result is not less than the minimum total, the convergence rate is less than the preset clustering convergence rate, and the number of group clustering is not greater than the number of groupings. If the group clustering result satisfies the above three conditions at the same time, it can be determined that the group clustering result satisfies the recursive conditions. Conversely, if the group clustering result does not meet any one or more of the above three conditions, it can be determined that the group clustering result does not meet the recursive conditions.
[0097] The number of groupings is the aforementioned maximum number of groupings times, and the clustering convergence rate is the aforementioned minimum convergence rate of voiceprint clustering ratio.
[0098] After each grouping and clustering, the convergence rate of the grouping and clustering results is defined as:
[0099] Convergence rate = 1-number of clusters in the grouping clustering result / total number of vectors used in this grouping clustering.
[0100] The following is an example to illustrate the calculation method of the convergence rate:
[0101] Assume that before a certain grouping and clustering, there are 200 vectors that need to be grouped and clustered, which can be 200 unclustered voiceprint vectors obtained in S201, or 200 center vectors corresponding to 200 clusters obtained after at least one grouping and clustering. After the grouping and clustering of these 200 vectors, the obtained grouping and clustering results contain 140 clusters. Therefore, the convergence rate of the grouping and clustering results can be calculated as:
[0102] 1-140 / 200=1-0.7=0.3.
[0103] According to the above definition and calculation method of convergence rate, it can be seen that the smaller the ratio of the sum of the number of clusters in each group after group clustering to the total number of vectors used for clustering this time, the larger the convergence rate value, indicating that the clustering effect is better.
[0104] The purpose of setting the clustering convergence rate in the recursive condition is that if the convergence rate of the grouping clustering result after a certain grouping clustering is less than the set clustering convergence rate, it means that the number of clusters after clustering has changed very little compared to before this grouping clustering, and it has not converged. Then, the grouping clustering will not achieve the clustering effect. Therefore, the convergence rate less than the preset clustering convergence rate is used as one of the recursive conditions.
[0105] S205, grouping and clustering the center vectors of the clusters in the grouping and clustering results.
[0106] As mentioned above, each cluster in the grouping and clustering result includes a central vector, so in S205, the central vectors of each cluster obtained by the most recent grouping and clustering may be clustered again to obtain a new grouping and clustering result.
[0107] Exemplarily, 600 voiceprint vectors are obtained in step S201. After the first grouping and clustering, 400 clusters are obtained, corresponding to 400 center vectors. After judgment, these 400 clusters meet the recursive conditions, so step S205 is executed to group and cluster these 400 center vectors again.
[0108] The specific method of grouping and clustering in S205 is the same as that in S203 and will not be described in detail.
[0109] It should be noted that in order to improve the accuracy of the final clustering results, before executing S205 each time, the previously obtained group clustering results need to be mixed, that is, the arrangement order of the previously obtained group clustering results needs to be disrupted to avoid the situation where clusters belonging to the same group in the previous group clustering are divided into the same group again in the next group clustering.
[0110] It should also be noted that after step S205 is executed, the process returns to step S204 to determine whether the grouping and clustering result after the latest grouping and clustering satisfies the recursive condition.
[0111] S206, determining a final clustering result according to the grouping clustering results that do not meet the recursive condition.
[0112] The specific implementation of step S206 may be:
[0113] The clusters in the grouping clustering results that do not meet the recursive conditions are comprehensively clustered to obtain the final clustering results.
[0114] The above-mentioned comprehensive clustering refers to directly applying the clustering algorithm to the center vectors of each cluster in the grouping clustering results that do not meet the recursive conditions, and the clustering result obtained thereby is the above-mentioned final clustering result.
[0115] S207, directly clustering multiple voiceprint vectors to obtain a final clustering result.
[0116] In step S207, if the number of voiceprint vectors is less than the minimum total number, all the voiceprint vectors obtained in S201 can be clustered directly using any existing clustering algorithm to obtain a final clustering result.
[0117] The present application provides a method for voiceprint clustering, the method comprising: obtaining a voiceprint vector; grouping and clustering a plurality of voiceprint vectors to obtain a grouping and clustering result; judging whether the grouping and clustering result meets a preset recursive condition; if the grouping and clustering result does not meet the recursive condition, grouping and clustering the clusters in the grouping and clustering result until the grouping and clustering result meets the recursive condition; and determining a final clustering result according to the grouping and clustering result that meets the recursive condition. The present solution greatly improves the efficiency of voiceprint clustering by grouping and clustering the clusters obtained after the first clustering.
[0118] The beneficial effect of this embodiment is that the clustering efficiency can be greatly improved under the condition of sacrificing only a part of the clustering reliability, because in many fields, very high accuracy may not be required. In the scenario of massive voiceprint clustering, the results can be returned quickly, reducing the user's excessive time and improving the user experience.
[0119] To facilitate understanding of the voiceprint clustering method provided in the embodiment of the present application, an example of voiceprint clustering is provided. Figure 3 , which is an example diagram of clustering results of voiceprint clustering provided in an embodiment of the present application.
[0120] like Figure 3 As shown, firstly, N voiceprint vectors to be clustered are obtained, which are recorded as voiceprint vectors 1 to N in sequence. After judgment, N is greater than the aforementioned minimum total number, so the N voiceprint vectors are grouped and clustered for the first time (equivalent to step S203), and the grouping and clustering results of the first grouping and clustering are obtained. For the convenience of distinction, it is recorded as the first-level grouping and clustering result. The first-level grouping and clustering result includes M clusters, which are recorded as first-level clusters 1 to M. The center vector of each cluster can be recorded as the first-level center vector 1 to M. M is less than N.
[0121] Let's assume that the identification list of first-level cluster 1 includes the unique identifications of voiceprint vectors 1 to n1, the identification list of first-level cluster 2 includes the unique identifications of voiceprint vectors n1 to n2, the identification list of first-level cluster 3 includes the unique identifications of voiceprint vectors n2 to n3, and so on. In other words, after the first grouping and clustering, voiceprint vectors 1 to n1 belong to first-level cluster 1, voiceprint vectors n1 to n2 belong to first-level cluster 2, and voiceprint vectors n2 to n3 belong to first-level cluster 3.
[0122] Subsequently, it is determined that the first-level grouping clustering result meets the recursive conditions, so the center vectors of each cluster in the first-level grouping clustering result, that is, the first-level center vectors 1 to M are grouped and clustered again to obtain the second grouping clustering result, which is recorded as the second-level grouping clustering result, among which the K clusters are recorded as second-level clustering clusters 1 to K, and the corresponding center vectors are recorded as second-level center vectors 1 to K.
[0123] Similarly, let's assume that the identification list of secondary cluster 1 includes the unique identifications of primary center vectors 1 and 2, the identification list of secondary cluster 2 includes the unique identifications of primary center vectors 3 to m2, the identification list of secondary cluster 3 includes the unique identifications of primary center vectors m2 to m3, and so on. In other words, after the second grouping and clustering, primary center vectors 1 to 2 belong to secondary cluster 1, primary center vectors 3 to m2 belong to secondary cluster 2, and primary center vectors m2 to m3 belong to secondary cluster 3.
[0124] After judging the secondary grouping clustering results, it is determined that the secondary grouping clustering results do not meet the recursive conditions, so the secondary center vectors in the secondary grouping clustering results are comprehensively clustered to obtain the final clustering results. The final clustering results contain three clusters, which are recorded as clusters 1 to 3. Among them, it is assumed that the secondary center vectors 1 and 2 belong to the third-level clustering cluster 1, that is, the identification list of the third-level clustering cluster 1 includes the unique identification of the secondary center vectors 1 and 2. Combined with the above settings, it can be understood that the secondary center vectors 1 and 2 belong to the third-level clustering cluster 1, and the primary center vectors 1 to m2 belong to the secondary clusters 1 and 2 corresponding to the secondary center vectors 1 and 2, respectively. Therefore, it can be seen that the primary center vectors 1 to m2 also belong to the third-level clustering cluster 1.
[0125] Furthermore, voiceprint vectors 1 to n1 belong to first-level cluster 1, voiceprint vectors n1 to n2 belong to first-level cluster 2, and voiceprint vectors n2 to n3 belong to first-level cluster 3. The first-level center vectors 1 to 3 corresponding to the first-level clusters 1 to 3 belong to the third-level cluster 1. It can be seen that voiceprint vectors 1 to n3 all belong to the third-level cluster 1.
[0126] From the above examples, it can be seen that after completing comprehensive clustering, the identification lists of each clustering cluster in each grouping clustering result can be combined to merge the identification lists corresponding to each center vector in the same clustering cluster, so as to determine which voiceprint vectors are specifically contained in each clustering cluster in the final clustering result.
[0127] The present application also provides a device for voiceprint clustering, see Figure 4 , the device may include the following units.
[0128] The obtaining unit 401 is used to obtain a voiceprint vector.
[0129] Among them, each voiceprint vector corresponds to a unique identifier.
[0130] The clustering unit 402 is used to group and cluster the multiple voiceprint vectors to obtain a grouping and clustering result if the number of the multiple voiceprint vectors is not less than a preset minimum total number.
[0131] The judging unit 403 is used to judge whether the grouping clustering result meets the preset recursive condition.
[0132] The clustering unit 402 is used to group and cluster the center vectors of the clusters in the grouping and clustering result if the grouping and clustering result meets the recursive condition, until the grouping and clustering result does not meet the recursive condition.
[0133] The determination unit 404 is used to determine the final clustering result according to the grouping clustering results that do not meet the recursive condition.
[0134] Among them, multiple voiceprint vectors are grouped and clustered, including:
[0135] Dividing the plurality of voiceprint vectors into a plurality of groups according to a preset number of subset voiceprints;
[0136] Cluster the voiceprint vectors of each group separately.
[0137] Optionally, the clustering unit is also used to:
[0138] If the number of voiceprint vectors is less than the minimum total number, multiple voiceprint vectors are directly clustered to obtain the final clustering result.
[0139] Optionally, when the judging unit judges whether the grouping clustering result meets the preset recursive condition, it is also used to:
[0140] Determine whether the number of clusters in the grouping clustering result is less than the minimum total number;
[0141] Determine whether the convergence rate of the grouping clustering result is less than a preset clustering convergence rate; wherein the convergence rate is equal to 1 minus the ratio of the number of clusters in the grouping clustering structure to the number of vectors used in this grouping clustering;
[0142] Determine whether the number of grouping clusters is greater than the preset number of groupings;
[0143] If the number of clusters in the grouping clustering result is not less than the minimum total number, the convergence rate is less than the preset clustering convergence rate, and the number of grouping clustering is not greater than the number of groupings, then it is determined that the grouping clustering result meets the preset recursive conditions;
[0144] If the number of clusters in the grouping clustering result is less than the minimum total number, or the convergence rate is less than the preset clustering convergence rate, or the number of grouping clustering is not greater than the number of groupings, it is determined that the grouping clustering result does not meet the recursive condition.
[0145] Optionally, when the determination unit determines the final clustering result according to the grouping clustering result that does not meet the recursive condition, it is specifically used to:
[0146] The clusters in the grouping clustering results that do not meet the recursive conditions are comprehensively clustered to obtain the final clustering results.
[0147] The specific working principle and beneficial effects of the voiceprint clustering device provided in this embodiment can be found in the relevant steps of the voiceprint clustering method provided in the above embodiments, which will not be described again here.
[0148] The present application also provides an electronic device. Figure 5 , the device may include a memory 501 and a processor 502.
[0149] The memory 501 is used to store computer programs.
[0150] The processor 502 is used to execute a computer program, specifically to implement the voiceprint clustering method provided in any embodiment of the present application.
[0151] The embodiment of the present application further provides a computer storage medium for storing a computer program. When the computer program is executed, it is specifically used to implement the voiceprint clustering method provided in any embodiment of the present application.
[0152] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0153] It should be noted that the concepts such as "first" and "second" mentioned in the present invention are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0154] The present application can be implemented or used by professionals and technicians. Various modifications to these embodiments will be apparent to professionals and technicians in the field, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A voiceprint clustering method, It is characterized in that include: Obtaining voiceprint vectors; wherein each of the voiceprint vectors corresponds to a unique identifier; If the number of the multiple voiceprint vectors is not less than a preset minimum total number, grouping and clustering the multiple voiceprint vectors to obtain a grouping and clustering result; Determine whether the grouping clustering result meets a preset recursive condition, wherein the recursive condition includes that the number of clusters in the grouping clustering result is not less than a minimum total number, the convergence rate of the grouping clustering result is not less than a preset clustering convergence rate, and the number of grouping clustering is not greater than the number of groupings; If the grouping and clustering result meets the recursive condition, grouping and clustering the center vectors of the clusters in the grouping and clustering result until the grouping and clustering result does not meet the recursive condition; Determining a final clustering result according to the grouping clustering results that do not meet the recursive condition; The step of grouping and clustering the plurality of voiceprint vectors includes: Dividing the plurality of voiceprint vectors into a plurality of groups according to a preset number of subset voiceprints; The voiceprint vectors of each group are clustered respectively.
2. The method according to claim 1, It is characterized in that Also includes: If the number of the voiceprint vectors is less than the minimum total number, the multiple voiceprint vectors are directly clustered to obtain a final clustering result.
3. The method according to claim 1, It is characterized in that The determining whether the grouping clustering result meets a preset recursive condition includes: Determining whether the number of clusters in the grouping clustering result is less than the minimum total number; Determine whether the convergence rate of the grouping clustering result is less than a preset clustering convergence rate; wherein the convergence rate is equal to 1 minus the ratio of the number of clusters in the grouping clustering result to the number of vectors used in this grouping clustering; Determine whether the number of grouping clusters is greater than the preset number of groupings; If the number of clusters in the grouping clustering result is not less than the minimum total number, the convergence rate is not less than the preset clustering convergence rate, and the number of grouping clustering is not greater than the number of groupings, then it is determined that the grouping clustering result meets the preset recursive condition; If the number of clusters in the grouping clustering result is less than the minimum total number, or the convergence rate is less than a preset clustering convergence rate, or the number of grouping clustering is greater than the number of groupings, it is determined that the grouping clustering result does not meet the recursive condition.
4. The method according to claim 1, It is characterized in that The determining the final clustering result according to the grouping clustering results that do not meet the recursive condition includes: A clustering algorithm is applied to the center vector of each cluster in the grouping clustering result that does not meet the recursive condition to obtain a final clustering result.
5. A device for voiceprint clustering, It is characterized in that include: An obtaining unit, configured to obtain a voiceprint vector; wherein each of the voiceprint vectors corresponds to a unique identifier; A clustering unit, configured to group and cluster the multiple voiceprint vectors to obtain a grouping and clustering result if the number of the multiple voiceprint vectors is not less than a preset minimum total number; A judging unit, used to judge whether the grouping clustering result meets a preset recursive condition, wherein the recursive condition includes that the number of clusters in the grouping clustering result is not less than a minimum total number, the convergence rate of the grouping clustering result is not less than a preset clustering convergence rate, and the number of grouping clustering is not greater than the number of groupings; The clustering unit is used for grouping and clustering the center vectors of the clusters in the grouping and clustering result if the grouping and clustering result meets the recursive condition until the grouping and clustering result does not meet the recursive condition; A determination unit, configured to determine a final clustering result according to the grouping clustering results that do not meet the recursive condition; The step of grouping and clustering the plurality of voiceprint vectors includes: Dividing the plurality of voiceprint vectors into a plurality of groups according to a preset number of subset voiceprints; The voiceprint vectors of each group are clustered respectively.
6. The device according to claim 5, It is characterized in that The clustering unit is also used for: If the number of the voiceprint vectors is less than the minimum total number, the multiple voiceprint vectors are directly clustered to obtain a final clustering result.
7. The device according to claim 5, It is characterized in that When the judging unit judges whether the grouping clustering result meets the preset recursive condition, it is also used to: Determining whether the number of clusters in the grouping clustering result is less than the minimum total number; Determine whether the convergence rate of the grouping clustering result is less than a preset clustering convergence rate; wherein the convergence rate is equal to 1 minus the ratio of the number of clusters in the grouping clustering result to the number of vectors used in this grouping clustering; Determine whether the number of grouping clusters is greater than the preset number of groupings; If the number of clusters in the grouping clustering result is not less than the minimum total number, the convergence rate is not less than the preset clustering convergence rate, and the number of grouping clustering is not greater than the number of groupings, then it is determined that the grouping clustering result meets the preset recursive condition; If the number of clusters in the grouping clustering result is less than the minimum total number, or the convergence rate is less than a preset clustering convergence rate, or the number of grouping clustering is greater than the number of groupings, it is determined that the grouping clustering result does not meet the recursive condition.
8. The device according to claim 5, It is characterized in that When the determining unit determines the final clustering result according to the grouping clustering result that does not meet the recursive condition, it is specifically used to: A clustering algorithm is applied to the center vector of each cluster in the grouping clustering result that does not meet the recursive condition to obtain a final clustering result.
9. An electronic device, It is characterized in that including memory and processor; The memory is used to store computer programs; The processor is used to execute the computer program, specifically to implement the voiceprint clustering method as described in any one of claims 1 to 4.
10. A computer storage medium, It is characterized in that Used to store a computer program, which, when executed, is specifically used to implement the voiceprint clustering method as described in any one of claims 1 to 4.
