A text clustering method and system based on adaptive granularity evolution

The text clustering method with adaptive granularity evolution solves the problems of unstable cluster number specification and high noise in text clustering with unknown cluster number by constructing an initial prototype set and performing adaptive granularity evolution, thus achieving more stable clustering results and higher computational efficiency.

CN123179016APending Publication Date: 2026-11-27DOCUMENT & INFORMATION CENT OF CHINESE ACAD OF SCI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611577586.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-13
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies require pre-specifying the number of clusters in text clustering tasks with unknown cluster numbers. Traditional cluster number selection metrics are unstable, density clustering has high noise, and representation learning and cluster number discovery are too tightly coupled, resulting in unstable clustering results and low efficiency.

Method used

By constructing an initial set of prototypes, calculating the prototype validity and performing adaptive granular evolution, including prototype merging, deletion and creation, until the preset semantic granularity maturity is reached, the clustering result corresponding to the target semantic granularity is determined.

Benefits of technology

It improves the stability and quality of text clustering with unknown cluster numbers, increases computational efficiency, and solves the problems of unstable cluster number specification and high noise.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123179016A_ABST
    Figure CN123179016A_ABST
Patent Text Reader

Abstract

The application discloses a text clustering method and system based on adaptive granularity evolution and relates to the technical field of data processing. The method comprises the following steps: obtaining text semantics corresponding to texts to be clustered, and constructing an initial prototype set based on a preset initial prototype quantity; determining a text belonging relationship, calculating a prototype effective degree set corresponding to the initial prototype set, and calculating a semantic granularity maturity; taking a preset semantic granularity maturity as an adaptive target, taking a prototype topology evolution operation as an adaptive execution means to update; when the preset semantic granularity maturity is reached, the updated prototype set and the updated text belonging relationship are determined as a clustering result corresponding to a target semantic granularity. The technical problems of needing to pre-specify a cluster number, traditional cluster number selection indexes being unstable, high noise of density clustering, and tight coupling between representation learning and cluster number discovery in the prior art are solved, and the technical effects of improving the stability, quality and calculation efficiency of unknown cluster number text clustering are achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data processing technology, specifically to a text clustering method and system based on adaptive granularity evolution. Background Technology

[0002] Text clustering is crucial in fields such as natural language processing, scientific literature mining, topic discovery, user feedback classification, knowledge base construction, and intelligence analysis. With the rapid development of information technology, various industries have accumulated massive amounts of unlabeled text data, such as scientific papers, patent documents, short news articles, question-and-answer records, and medical texts. Existing technologies still face many challenges in handling text clustering tasks with unknown cluster numbers. Traditional KMeans, Gaussian Mixture Models (GMM), spectral clustering, and many deep clustering methods all require users to pre-specify the number of clusters. In practical applications, users often cannot predict the number of clusters in the corpus to be clustered. The limited number of topics or categories severely restricts its direct application; in high-dimensional text semantic embedding spaces, the candidate cluster selection index of KMeans scanning based on contour coefficients is unstable, easily leading to over-splitting, over-merging, or highly random results, failing to meet the stability requirements of practical applications; density clustering methods represented by HDBSCAN tend to classify a large number of samples as noise points, making it difficult to directly use for effective clustering of high-dimensional text data; in addition, representation learning and cluster number discovery in deep clustering are often not sufficiently decoupled, leading to the destruction of the discovered semantic structure and thus causing irreversible semantic collapse.

[0003] Therefore, current related technologies have technical problems such as the need to pre-specify the number of clusters, the instability of traditional cluster number selection indicators, high noise in density clustering, and overly tight coupling between representation learning and cluster number discovery. Summary of the Invention

[0004] This application provides a text clustering method and system based on adaptive granularity evolution, which solves the technical problems existing in the prior art, such as the need to pre-specify the number of clusters, the instability of traditional cluster number selection indicators, high noise in density clustering, and the tight coupling between representation learning and cluster number discovery. It achieves the technical effect of improving the stability, clustering quality, and computational efficiency of text clustering with unknown cluster numbers.

[0005] This application provides a text clustering method based on adaptive granularity evolution. The method includes: obtaining the text semantics corresponding to the text to be clustered, and constructing an initial prototype set based on a preset initial prototype number, wherein the semantic granularity corresponding to the initial prototype number is greater than the target semantic granularity to be determined; determining the text affiliation relationship with the initial prototype set based on the text semantics, calculating the prototype validity set corresponding to the initial prototype set, and calculating the semantic granularity maturity based on the prototype validity set; updating the initial prototype set with the preset semantic granularity maturity as the adaptive target and prototype topology evolution operation as the adaptive execution means, wherein the prototype topology evolution operation includes at least one of prototype merging, prototype deletion, and prototype creation; and determining the updated prototype set and updated text affiliation relationship corresponding to reaching the preset semantic granularity maturity as the clustering result corresponding to the target semantic granularity.

[0006] In a possible implementation, the method for calculating the prototype validity set corresponding to the initial prototype set includes: determining the number of samples supporting the k-th prototype in the initial prototype set based on the text attribution relationship, wherein the number of samples supporting the sample is the number of texts belonging to the k-th prototype based on the text semantics; calculating the intra-cluster cohesion degree corresponding to the k-th prototype based on the distance between the text semantics belonging to the k-th prototype and the semantic center of the corresponding prototype; obtaining the text attribution relationship corresponding to multiple consecutive evolution check times, and determining the average sample attribution stability within the k-th prototype by analyzing the changes in sample attribution under consecutive text attribution relationships; and calculating the prototype validity degree of the k-th prototype based on the number of samples supporting the sample, the intra-cluster cohesion degree, and the average sample attribution stability. :

[0007] Where k is the index of the prototype. Let be the number of sample support for the k-th prototype at evolution check time t. The degree of cluster cohesion of the k-th prototype at evolution check time t. Let be the average sample assignment stability of the k-th prototype at evolution check time t, where t is the evolution check time. The cutoff function is given, where N is the total number of samples to be clustered. The sample size suppression index and This is used to control and reduce the excessive dominance of sample size on prototype validity. It is the stability constant.

[0008] In a possible implementation, the semantic granularity maturity is calculated based on the prototype validity set, and the method includes: calculating the effective prototype statistic based on the number of samples supporting each prototype in the prototype validity set; calculating the average intra-cluster cohesion stability based on the intra-cluster cohesion degree of each prototype in the prototype validity set; calculating the average sample assignment stability based on the sample assignment stability of each prototype in the prototype validity set; and defining the semantic granularity maturity according to the effective prototype statistic, the average intra-cluster cohesion stability, and the average sample assignment stability.

[0009] In a possible implementation, the initial prototype set is updated using a preset semantic granularity maturity level as the adaptive target and prototype topology evolution operation as the adaptive execution means. The method includes: comparing the current semantic granularity maturity level with the preset semantic granularity maturity level; when the current semantic granularity maturity level does not reach the preset semantic granularity maturity level, determining the prototype topology evolution operation based on the prototype validity level corresponding to each prototype and the text attribution relationship; wherein, when the text attribution relationships corresponding to two prototypes have semantic overlap, the two prototypes are identified as merging candidates and prototype merging is performed; prototypes with a validity level lower than the preset validity level are identified as deletion candidates and prototype deletion is performed; when the text semantics corresponding to a prototype contains multiple stable local clustering structures, the prototype is locally segmented and a new prototype is generated; the initial prototype set is updated according to the executed prototype topology evolution operation until the updated prototype set and updated text attribution relationship corresponding to reaching the preset semantic granularity maturity level are obtained.

[0010] In a possible implementation, the two prototypes are identified as merging candidates and prototype merging is performed. The method includes: determining merging candidates corresponding to the two prototypes to be merged based on the text semantics and the initial prototype set; constructing corresponding pre-merge text attribution relationships and post-merge text attribution relationships based on the merging candidates; determining corresponding semantic anchors in a preset reference semantic space based on the pre-merge text attribution relationships and the post-merge text attribution relationships respectively, and determining the consistency degree between the pre-merge text attribution relationships and the semantic anchors respectively; when the decrease in the consistency degree after merging relative to the consistency degree before merging is less than a preset decrease, and the semantic anchors corresponding to the merging candidates satisfy a preset semantic proximity condition, the merging of the two prototypes to be merged is performed.

[0011] In a possible implementation, a corresponding semantic anchor point is determined in a preset reference semantic space, the semantic anchor point including a first set of semantic anchor points and a second set of semantic anchor points; based on the number of prototypes corresponding to the current prototype set, a first set of semantic anchor points corresponding to the number of prototypes is determined in the preset reference semantic space; and based on the number of prototypes after the prototype merging is performed, a second set of semantic anchor points corresponding to the number of merged prototypes is determined in the preset reference semantic space.

[0012] In a possible implementation, prototypes with a validity value lower than a preset validity value are identified as candidates for deletion and prototype deletion is performed. The method includes: obtaining the prototype validity value corresponding to multiple consecutive evolution check times; when the prototype validity value of the same prototype is lower than the preset validity value at multiple consecutive evolution check times, the prototype is identified as a prototype to be deleted; the prototype to be deleted is deleted, and the text ownership relationship is re-determined based on the set of deleted prototypes.

[0013] In a possible implementation, the method of performing local segmentation on the prototype and generating a new prototype includes: determining a prototype with multiple local clustering structures based on the distribution of text semantics corresponding to the same prototype; performing local segmentation on the prototype with multiple local clustering structures to obtain at least two candidate prototypes; determining the number of samples supporting each candidate prototype and the degree of cluster cohesion within each cluster; adding candidate prototypes whose number of samples supporting a preset number of samples and whose degree of cluster cohesion after local segmentation is increased relative to that before segmentation to the prototype set; and determining that the new prototype is valid if the stability of sample affiliation at multiple consecutive evolution check times after local segmentation is greater than a preset stability of affiliation.

[0014] In a possible implementation, after determining the clustering result corresponding to the target semantic granularity, the method further includes: saving the updated prototype set and the updated text attribution relationship as the protection state corresponding to the target semantic granularity; updating the parameters of the text semantics and the corresponding prototype semantic center based on the protection state, wherein the parameters include the feature parameters of the text semantics, the position parameters of the prototype semantic center, and the text attribution boundary parameters corresponding to the prototype.

[0015] This application also provides a text clustering system based on adaptive granularity evolution. The system includes: an initial prototype set construction module, used to obtain the text semantics corresponding to the text to be clustered, and construct an initial prototype set based on a preset number of initial prototypes, wherein the semantic granularity corresponding to the number of initial prototypes is greater than the target semantic granularity to be determined; a semantic granularity maturity calculation module, used to determine the text affiliation relationship with the initial prototype set based on the text semantics, calculate the prototype validity set corresponding to the initial prototype set, and calculate the semantic granularity maturity based on the prototype validity set; an initial prototype set update module, used to update the initial prototype set with the preset semantic granularity maturity as the adaptive target and prototype topology evolution operation as the adaptive execution means, wherein the prototype topology evolution operation includes at least one of prototype merging, prototype deletion, and prototype spawning; and a clustering result determination module, used to determine the updated prototype set and updated text affiliation relationship corresponding to reaching the preset semantic granularity maturity as the clustering result corresponding to the target semantic granularity.

[0016] This application proposes a text clustering method and system based on adaptive granularity evolution. The method obtains the semantic meaning of the text to be clustered and constructs an initial prototype set based on a preset initial number of prototypes. It then determines the text attribution relationships, calculates the prototype validity set and semantic granularity maturity corresponding to the initial prototype set, and updates the set using the preset semantic granularity maturity as the adaptive target and prototype topology evolution as the adaptive execution method. The updated prototype set and updated text attribution relationships corresponding to reaching the preset semantic granularity maturity are determined as the clustering result corresponding to the target semantic granularity. This method solves the technical problems in existing technologies, such as the need to pre-specify the number of clusters, instability of traditional cluster number selection indicators, high noise in density clustering, and tight coupling between representation learning and cluster number discovery. It achieves the technical effect of improving the stability, clustering quality, and computational efficiency of text clustering with unknown cluster numbers. Attached Figure Description

[0017] To more clearly illustrate the technical solutions of the embodiments of this disclosure, the accompanying drawings of the embodiments of this disclosure will be briefly described below. Flowcharts are used in this application to illustrate the operations performed by the system according to the embodiments of this application. It should be understood that the preceding or following operations are not necessarily performed precisely in sequence. Instead, various steps can be processed in reverse order or simultaneously as needed. Furthermore, other operations can be added to these processes, or one or more steps can be removed from these processes.

[0018] Figure 1 This is a schematic diagram of a text clustering method based on adaptive granularity evolution provided in an embodiment of this application.

[0019] Figure 2 This is a schematic diagram of a text clustering system structure based on adaptive granularity evolution, provided as an embodiment of this application.

[0020] Figure labeling: Initial prototype set construction module 10, semantic granularity maturity calculation module 20, initial prototype set update module 30, clustering result determination module 40. Detailed Implementation

[0021] To further illustrate the technical means and effects of the present invention in achieving its intended purpose, the following detailed description is provided in conjunction with the accompanying drawings and preferred embodiments, based on the specific implementation methods, structure, features, and effects of the present invention.

[0022] This application provides a text clustering method based on adaptive granularity evolution, such as... Figure 1 As shown, the method includes: Step S100: Obtain the text semantics corresponding to the text to be clustered, and construct an initial prototype set based on a preset initial prototype number, wherein the semantic granularity corresponding to the initial prototype number is greater than the target semantic granularity to be determined.

[0023] Preferably, for each text in the input set of texts to be clustered, a semantic encoder is used to encode it, obtaining a semantic representation vector corresponding to each text. Specifically, this includes using pre-trained semantic encoders such as Sentence-BERT, MPNet, BERT, RoBERTa, E5, BGE, SciBERT, BioBERT, and SapBERT to encode each text, obtaining an original semantic vector. Then, the original semantic vector is L2 normalized to obtain a reference semantic vector. Finally, a trainable projection layer is used to map the current semantic vector to the clustering space and L2 normalizes it again to obtain a reference semantic vector for the prototype phase. Similarity calculation and prototype evolution clustering representation determine the text semantics, which is the normalized vector representation of each text in the clustering space. Then, based on the sample size segmentation rules and preset initial granularity parameters, the preset number of initial prototypes is determined. That is, based on the total number N of samples to be clustered, the number of samples falling into a preset sample size interval is selected, thereby selecting the corresponding number of candidate initial prototypes. Next, initial KMeans clustering is performed on the reference semantic space to obtain the initial cluster number of each text. Based on the initial cluster number, initial prototypes are constructed in the clustering representation space. Each initial prototype is the normalized mean of the corresponding sample cluster representation. The set of initial prototypes is denoted as . , The initial number of prototypes is defined as follows: the semantic granularity corresponding to the initial number of prototypes is greater than the target semantic granularity to be determined. That is, the initial division is finer than the final target division, ensuring that different semantic categories are not incorrectly merged due to an insufficient number of prototypes in the initial stage. Semantic granularity refers to the coarseness of the clustering division. The finer the semantic granularity, the more prototypes there are, and the smaller the text range covered by each prototype; the coarser the semantic granularity, the fewer prototypes there are, and the larger the text range covered by each prototype.

[0024] Step S200: Determine the text attribution relationship with the initial prototype set based on the text semantics, calculate the prototype validity set corresponding to the initial prototype set, and calculate the semantic granularity maturity based on the prototype validity set.

[0025] Preferred clustering representation for each text. With each prototype in the initial prototype set Similarity calculations are performed using inner product, since both text semantics and prototypes have been L2 normalized, and a temperature coefficient is introduced for scaling.

[0026] Where T represents transpose. Represents the column vector Transpose the vector to obtain the row vector. A temperature coefficient greater than 0 is assigned to the prototype to control the smoothness of the similarity distribution; then, the similarity is converted into a probability distribution using the Softmax function to obtain the soft-assignment probability that the i-th text belongs to the k-th prototype:

[0027] in, The number of prototypes in the current prototype set is given. The prototype with the highest soft assignment probability is taken as the hard assignment number of the text, indicating the prototype to which the i-th text is finally assigned. The text assignment relationship refers to the correspondence between each text and the prototype, including the soft assignment vector describing the probability distribution of the text belonging to each prototype, which is used to calculate the joint training loss, and the hard assignment number describing the prototype to which the text is finally assigned, which is used to count the sample occupancy of each prototype and calculate the sample assignment stability.

[0028] Furthermore, step S200 also includes: determining the number of samples supporting the k-th prototype in the initial prototype set based on the text attribution relationship, wherein the number of samples supporting the sample is the number of texts belonging to the k-th prototype based on the text semantics; calculating the degree of cluster cohesion corresponding to the k-th prototype based on the distance between the text semantics belonging to the k-th prototype and the semantic center of the corresponding prototype; obtaining the text attribution relationship corresponding to multiple consecutive evolution check times, and determining the average sample attribution stability within the k-th prototype by analyzing the changes in sample attribution under consecutive text attribution relationships.

[0029] Preferably, after determining the hard-assignment number of each text, the sample support quantity of the k-th prototype in the initial prototype set is determined based on the text affiliation relationship. The sample support quantity is the number of texts belonging to the k-th prototype based on text semantics, representing how many texts are currently hard-assigned to the k-th prototype, reflecting the degree of sample support obtained by this prototype in the clustering structure. If the sample support quantity is 0, it means that the prototype has not occupied any samples and is an empty prototype. If the sample support quantity is very small, it means that the prototype only covers a small number of texts, which may be a long-tail category or an invalid prototype. Then, the average closeness between the semantic vectors of all texts belonging to the k-th prototype and the semantic center of the prototype is calculated. Specifically, since both text semantics and prototypes have been L2 normalized, their inner product is equivalent to directional similarity. The cluster cohesion of the k-th prototype is defined as:

[0030] in, Indicates the number of samples supported. Reflecting the density of samples within a cluster, when When =0, let =0, The larger the value, the more concentrated the sample texts belonging to the k-th prototype are in the direction of that prototype in the clustering representation space, and the higher the degree of cluster cohesion. The smaller the value, the more dispersed the sample texts belonging to the k-th prototype are, and the lower the degree of cluster cohesion.

[0031] Preferably, at multiple consecutive evolution check times, it is observed whether the samples belonging to the k-th prototype continue to maintain their belonging to that prototype, the stability of sample belonging is calculated and averaged. First, the stability of belonging to a single sample is defined, and the actual historical window length participating in the statistics is assumed to be... The degree of cluster affiliation consistency of the i-th text in the most recent historical rounds is defined as follows:

[0032] Among them, I The indicator function is set to 1 if the hard assignment number in the historical round is the same as the current hard assignment number, and 0 otherwise. Then, for all samples belonging to the k-th prototype, the average value of their attribution stability is calculated:

[0033] in, The closer it is to 1, the more stable the i-th text is, indicating that it consistently belongs to the same prototype in the most recent evolutionary checks. The closer it is to 0, the more frequently the i-th text switches between different prototypes, indicating an unstable affiliation and that it may be located near the cluster boundary. This represents the average stability of the attribution of all samples within the k-th prototype. The higher the value, the more stable the sample attribution within the prototype; The lower the value, the more chaotic the sample attribution within the prototype is, indicating that it may be a temporary, spurious prototype or a cluster with unclear boundaries.

[0034] Preferably, the prototype validity of the k-th prototype is calculated based on the number of samples supporting it, the degree of cluster cohesion, and the average sample attribution stability. :

[0035] Where k is the index of the prototype. Let be the number of sample support for the k-th prototype at evolution check time t. The degree of cluster cohesion of the k-th prototype at evolution check time t. Let be the average sample assignment stability of the k-th prototype at evolution check time t, where t is the evolution check time. The cutoff function is given, where N is the total number of samples to be clustered. The sample size suppression index and This is used to control and reduce the excessive dominance of sample size on prototype validity. It is the stability constant.

[0036] Furthermore, step S200 also includes: calculating the effective prototype statistic based on the number of samples supporting each prototype in the prototype validity set; calculating the average intra-cluster cohesion stability based on the intra-cluster cohesion degree of each prototype in the prototype validity set; calculating the average sample assignment stability based on the sample assignment stability of each prototype in the prototype validity set; and defining semantic granularity maturity according to the effective prototype statistic, the average intra-cluster cohesion stability, and the average sample assignment stability.

[0037] Preferably, the effective prototype statistic is calculated based on the number of samples supporting each prototype in the prototype validity set. Specifically, when the number of prototypes is small, the minimum value is used as the effective prototype statistic, requiring that each retained prototype must have sufficient validity and not allowing any invalid prototypes. When the number of prototypes is large or when processing long-tail corpora, the low quantile is used as the effective prototype statistic, requiring that the vast majority of prototypes are valid, while allowing a small number of real long-tail prototypes to have lower validity. A larger effective prototype statistic indicates more valid prototypes in the current prototype set and higher overall prototype quality; a smaller effective prototype statistic indicates more prototypes lacking sample support or with unstable internal structures, indicating that the current semantic granularity is not yet mature. For each prototype k, its intra-cluster cohesion stability is calculated, based on the relative change between the current cohesion and the historical average cohesion.

[0038] in, The current intra-cluster cohesion level of the k-th prototype. For each prototype k, the cluster cohesion stability is... For the k-th prototype in the most recent Average cohesion across historical cycles >0 is a stability constant that prevents the relative change from being abnormally amplified when the historical average cohesion is close to zero. This means truncating x to the interval [0, 1]. Then, the average cohesion stability of all prototypes is taken to obtain the average intra-cluster cohesion stability, which is used to measure whether the intra-cluster cohesion of each prototype in the current prototype set has remained stable in the most recent historical rounds. The closer the average intra-cluster cohesion stability is to 1, the smaller the current cohesion of the k-th prototype changes relative to recent history, and the more stable the intra-cluster cohesion state. The larger the average intra-cluster cohesion stability, the more stable the intra-cluster cohesion state of the entire prototype set, and the less significant the changes in the internal structure of each prototype. The smaller the average intra-cluster cohesion stability, the more drastic the changes in the intra-cluster cohesion state of each prototype, and the less mature the semantic granularity.

[0039] Preferably, for each prototype k, its internal average sample attribution stability is calculated:

[0040] in, Let be the number of samples supporting the k-th prototype. For the set of sample indices belonging to the k-th prototype, Let denot i be the degree of cluster affiliation consistency of the i-th text in the most recent historical rounds. Then, average the affiliation stability of all samples to obtain the average affiliation stability of all samples. This average affiliation stability measures whether samples within each prototype in the current prototype set have maintained their affiliation to that prototype in the most recent historical rounds. The higher the average affiliation stability, the more stable the affiliation relationship of the entire sample set, and the less frequently samples change prototypes. The lower the average affiliation stability, the more drastically the sample affiliation is changing, and the semantic granularity is not yet mature. Finally, the effective prototype statistic, average intra-cluster cohesion stability, and average sample affiliation stability are geometrically averaged to obtain the semantic granularity maturity, with a value range of [0, 1]. It is required that all three factors reach a high level simultaneously. The closer the semantic granularity maturity is to 1, the more mature the current semantic granularity and the more stable the prototype set. The closer the semantic granularity maturity is to 0, the less mature the current semantic granularity is, and prototype topological evolution still needs to be performed.

[0041] Step S300: The initial prototype set is updated with a preset semantic granularity maturity as the adaptive target and a prototype topology evolution operation as the adaptive execution means. The prototype topology evolution operation includes at least one of prototype merging, prototype deletion, and prototype creation.

[0042] Step S300 further includes comparing the current semantic granularity maturity with the preset semantic granularity maturity; when the current semantic granularity maturity does not reach the preset semantic granularity maturity, determining the prototype topology evolution operation based on the prototype validity corresponding to each prototype and the text attribution relationship; wherein, when the text attribution relationships corresponding to two prototypes have semantic overlap, the two prototypes are identified as merging candidates and prototype merging is performed; prototypes with prototype validity lower than the preset validity are identified as deletion candidates and prototype deletion is performed; when the text semantics corresponding to a prototype contains multiple stable local clustering structures, local segmentation is performed on the prototype and a new prototype is generated; the initial prototype set is updated according to the executed prototype topology evolution operation until the updated prototype set and updated text attribution relationship corresponding to reaching the preset semantic granularity maturity are obtained.

[0043] Preferably, at each evolution check moment, the currently calculated semantic granularity maturity is compared with the preset semantic granularity maturity to determine whether the semantic granularity of the current prototype set has stabilized to the point where evolution can be stopped. If the currently calculated semantic granularity maturity reaches the preset semantic granularity maturity, it indicates that the current semantic granularity is mature, and topological evolution is stopped. The current prototype set and text attribution relationship are output as the final clustering result. If the current semantic granularity maturity does not reach the preset semantic granularity maturity, it indicates that the current semantic granularity is not yet mature. Based on the prototype validity and text attribution relationship of each prototype, the type of topological evolution operation to be performed is determined. The prototype topological evolution operation includes at least one of prototype merging, prototype deletion, and prototype creation. When the text attribution relationship of two prototypes has semantic overlap, that is, the two prototypes have overlap or confusion in text attribution, for example, in the samples belonging to prototype a, a large proportion use prototype b as the second closest prototype, or belong to the original prototype b. In samples of type b, a large proportion use prototype a as the second closest prototype. Therefore, the two prototypes are identified as candidates for merging, and prototype merging is performed, which reduces one prototype and updates the prototype set. Prototypes with validity lower than a preset validity are identified as candidates for deletion and are removed from the prototype set. If the validity of a prototype is lower than a preset threshold, it indicates that the prototype may have insufficient sample support, low cluster cohesion, or unstable sample affiliation. When the semantic text corresponding to a prototype contains multiple stable local clustering structures, local segmentation is performed on the prototype to obtain at least two candidate prototypes. Candidate prototypes that meet the conditions for increasing sample support and cohesion are added to the prototype set, increasing the number of prototypes. Multiple stable local clustering structures refer to sample texts contained within a prototype that are not uniformly distributed in the semantic space. For example, the prototype may have a sufficiently large sample support, or its cluster cohesion may be lower than the median level of the current prototype set.

[0044] Furthermore, step S300 also includes: determining merging candidates corresponding to two prototypes to be merged based on the text semantics and the initial prototype set; constructing corresponding pre-merge text attribution relationships and post-merge text attribution relationships based on the merging candidates; determining corresponding semantic anchors in a preset reference semantic space based on the pre-merge text attribution relationships and post-merge text attribution relationships respectively; determining the consistency between the pre-merge text attribution relationships and semantic anchors respectively; and performing the merging of the two prototypes to be merged when the decrease in the consistency after merging relative to the consistency before merging is less than a preset decrease, and the semantic anchors corresponding to the merging candidates meet a preset semantic proximity condition.

[0045] Preferably, prototype pairs that may be suitable for merging are selected from the current prototype set as merging candidates. Specifically, for each sample i, in addition to its current hard-assigned prototype, its temperature scaling similarity with the other prototypes is calculated, the other prototype with the highest similarity is taken as the second nearest prototype, and the assignment overlap from prototype a to prototype b is defined:

[0046] in, The number of samples supporting prototype a. For the set of sample indices belonging to prototype a, This indicates the proportion of samples currently assigned to prototype a, with prototype b as the second closest prototype; further defining the symmetric assignment overlap, both prototypes must have sufficient sample support and the symmetric assignment overlap must reach a preset threshold before they are identified as merging candidates.

[0047] Furthermore, step S300 also includes determining a first set of semantic anchor points in the preset reference semantic space corresponding to the number of prototypes corresponding to the current prototype set; and determining a second set of semantic anchor points in the preset reference semantic space corresponding to the number of merged prototypes after the prototype merging is performed.

[0048] Preferably, for each candidate prototype pair (a, b), the text attribution relationship before merging and the text attribution relationship after merging are constructed respectively. In a fixed reference semantic space, semantic anchor points corresponding to the number of prototypes before merging and the number of prototypes after merging are generated respectively. Here, the preset reference semantic space refers to the space composed of reference semantic vectors output by the pre-trained semantic encoder and normalized by L2. Specifically, let... This represents the K-class KMeans unsupervised center partitioning method using randomly initialized parameters ξ. The first semantic anchor set (before merging) refers to the verification anchors of the same granularity corresponding to the current number of prototypes K. The second semantic anchor set (after merging) refers to the number of prototypes K after merging. The lower-level verification anchor point corresponding to 1: ,in, and For initialization parameters independent of the training anchor, it is preferable to use independent random initialization or independent random seed to reduce the coupling between the training anchor and the merging decision.

[0049] Preferably, Normalized Mutual Information (NMI) is used as the consistency metric to calculate the consistency between the text attribution relationship before merging and the first semantic anchor set, and the consistency between the text attribution relationship after merging and the second semantic anchor set. A higher consistency before merging indicates a greater consistency between the current model partition and the independent structure formed by the fixed reference semantic space at the K-granularity. A higher consistency after merging indicates a greater consistency between the candidate merged partition and the fixed reference semantic space at the K-granularity. The more consistent the independent structures formed at the granularity level, the greater the decrease in anchor point consistency caused by candidate merging. When the decrease in consistency after merging relative to the consistency before merging is less than a preset decrease, and the semantic anchor points corresponding to the merging candidates meet the preset semantic proximity condition, then the merging of the two prototypes to be merged is performed. After merging, the new prototype is constructed from the mean of the cluster representations of the samples currently occupied by the two prototypes and normalized.

[0050] Furthermore, step S300 also includes obtaining the prototype validity corresponding to multiple consecutive evolution check times; when the prototype validity of the same prototype is lower than a preset validity at multiple consecutive evolution check times, the prototype is determined as a prototype to be deleted; the prototype to be deleted is deleted, and the text ownership relationship is re-determined based on the set of deleted prototypes.

[0051] Preferably, at multiple consecutive evolution check times, the validity of each prototype is calculated and recorded. The minimum prototype validity required for deletion and the required number of consecutive triggers are set. When the prototype validity of the same prototype at multiple consecutive evolution check times is lower than the preset validity, i.e., the deletion trigger flag is 1, the number of times this condition appears at consecutive evolution check times is recorded. Only when the deletion condition of the same prototype continuously meets the minimum number of consecutive triggers is the prototype determined as a prototype to be deleted. If deleted immediately, real long-tail category prototypes may be mistakenly deleted. Then, the prototype is removed from the current prototype set, reducing the number of internal prototypes by 1, and the soft assignment probability of each text belonging to each prototype is recalculated. The prototype with the highest soft assignment probability is then taken as the new hard assignment number of the text, and the text belonging relationship is finally determined. At the same time, the historical state related to the prototype number dimension is cleared to avoid directly using the prototype number and condensation history before the topological change for the stability judgment after the topological change.

[0052] Furthermore, step S300 also includes: determining prototypes with multiple local clustering structures based on the distribution of text semantics corresponding to the same prototype; performing local segmentation on the prototypes with multiple local clustering structures to obtain at least two candidate prototypes; determining the number of samples supported and the degree of cluster cohesion within each candidate prototype respectively; adding candidate prototypes whose number of samples supported reaches a preset number of supported samples and whose degree of cluster cohesion within the cluster after local segmentation is increased relative to that before segmentation to the prototype set; and determining that the prototype nascent stage is valid when the stability of sample affiliation at multiple consecutive evolution check times after local segmentation is greater than a preset stability of affiliation.

[0053] Preferably, it is determined whether the sample text contained within a prototype forms two or more mutually separate, internally cohesive substructures in the semantic space. This includes whether the number of sample support for the prototype is not less than the new candidate threshold, whether the intra-cluster cohesion of the prototype is lower than the median level of the current prototype set, and whether the text semantics of the samples within the prototype are not uniformly distributed in the clustering representation space. Prototypes with multiple local clustering structures are identified, that is, the sample text within the prototype can be naturally divided into two or more subgroups, the semantics of the samples within each subgroup are similar, while the semantics of the samples between different subgroups are significantly different. Then, the minimum cohesion improvement after local segmentation is calculated.

[0054] in, This represents the intracluster cohesion of the prototype before segmentation. This represents the increase in cohesion between the two subclusters after splitting, relative to the initial state before splitting. The cohesion of the two candidate subclusters after segmentation is determined. A local segmentation operation is performed on the samples within the prototype using binary clustering, dividing them into at least two candidate subclusters as candidate prototypes. The sample support quantity and intra-cluster cohesion of each candidate prototype are determined. If the sample quantity of each candidate subcluster is not less than the preset minimum sample quantity, and the cohesion of both candidate subclusters after segmentation is improved compared to before segmentation, with the minimum increase in cohesion reaching a preset threshold, then the original prototype is replaced with two sub-prototypes, increasing the number of internal prototypes by 1. If the sample assignment stability at multiple consecutive evolution check times after local segmentation is greater than the preset assignment stability, then the prototype's new generation is determined to be valid, and the newly generated prototype is formally added to the prototype set.

[0055] Step S400: The updated prototype set and updated text attribution relationship corresponding to the preset semantic granularity maturity are determined as the clustering result corresponding to the target semantic granularity.

[0056] Preferably, each time a topology evolution operation (merging, deleting, or creating) is performed, the initial prototype set changes. Therefore, prototypes are added or removed based on the performed operation, and the initial prototype set is updated. Based on the updated prototype set, the soft assignment probability and hard assignment number of each text are recalculated, historical records related to the prototype number dimension are cleared, such as historical sample allocation and intra-cluster aggregation history, and accumulation begins anew from the new topology. This process is iterated repeatedly until the current semantic granularity maturity reaches a preset threshold. At this point, the updated prototype set and updated text affiliation relationships represent the clustering result corresponding to the target semantic granularity.

[0057] Furthermore, step S400 also includes saving the updated prototype set and the updated text attribution relationship as the protection state corresponding to the target semantic granularity; updating the parameters of the text semantics and the corresponding prototype semantic center based on the protection state, wherein the parameters include the feature parameters of the text semantics, the position parameters of the prototype semantic center, and the text attribution boundary parameters corresponding to the prototype.

[0058] Preferably, when the semantic granularity maturity reaches a preset target or the current number of prototypes reaches the lower limit of semantic resolution, the updated prototype set and updated text attribution relationships are saved as a protected state corresponding to the target semantic granularity. This includes at least the effective cluster number corresponding to the target semantic granularity, structural statistics such as semantic granularity maturity, effective prototype statistics, and average sample attribution stability, the protection trigger reason, and the current model parameters. After saving the protected state, the prototype topology is frozen, i.e., operations that would change the number of prototypes (merging, deleting, and creating new ones) are stopped, preventing further changes in the internal prototype number. However, the feature parameters of text semantics, the position parameters of the prototype semantic center, and the text attribution boundary parameters corresponding to the prototypes continue to be updated. The feature parameters of text semantics refer to those used to generate text semantics. The model parameters, including projection layer parameters and lightweight semantic adaptation parameters, are updated to improve the clustering quality of the text representation. The position parameters of the prototype semantic centers refer to the semantic center vectors of each prototype themselves. These are updated to better represent the semantic centers of the occupied samples, making the prototype semantic centers more accurately reflect the current sample distribution and improving the degree of cluster cohesion. The text belonging boundary parameters corresponding to the prototypes refer to the boundary parameters that determine which prototype the text belongs to, i.e., the parameters in the calculation methods of soft assignment and hard assignment, including the prototype assignment temperature coefficient, the target distribution parameter in the prototype assignment sharpening loss, and the text belonging boundary. These are updated to refine the boundaries and improve the accuracy of the clustering labels. Thus, while ensuring the stability of semantic resolution, the accuracy of the clustering boundaries and the final clustering quality are improved.

[0059] In the above text, refer to Figure 1 A text clustering method based on adaptive granularity evolution according to an embodiment of the present invention is described in detail. Next, reference will be made to... Figure 2This invention describes a text clustering system based on adaptive granularity evolution according to an embodiment of the present invention.

[0060] An adaptive granularity evolution-based text clustering system according to an embodiment of the present invention addresses the technical problems in existing technologies, such as the need to pre-specify the number of clusters, instability of traditional cluster number selection metrics, high noise in density clustering, and overly tight coupling between representation learning and cluster number discovery. This system achieves the technical effect of improving the stability, clustering quality, and computational efficiency of text clustering with unknown cluster numbers. Figure 2 As shown, a text clustering system based on adaptive granularity evolution includes: an initial prototype set construction module 10, a semantic granularity maturity calculation module 20, an initial prototype set update module 30, and a clustering result determination module 40.

[0061] The initial prototype set construction module 10 is used to obtain the text semantics corresponding to the text to be clustered, and construct an initial prototype set based on a preset number of initial prototypes, wherein the semantic granularity corresponding to the number of initial prototypes is greater than the target semantic granularity to be determined; the semantic granularity maturity calculation module 20 is used to calculate the prototype validity set corresponding to the initial prototype set based on the text semantics to determine the text belonging relationship with the initial prototype set, and calculate the semantic granularity maturity based on the prototype validity set; the initial prototype set update module 30 is used to update the initial prototype set with the preset semantic granularity maturity as the adaptive target and the prototype topology evolution operation as the adaptive execution means, wherein the prototype topology evolution operation includes at least one of prototype merging, prototype deletion, and prototype creation; the clustering result determination module 40 is used to determine the updated prototype set and updated text belonging relationship corresponding to reaching the preset semantic granularity maturity as the clustering result corresponding to the target semantic granularity.

[0062] The following describes in detail the specific configuration of the semantic granularity maturity calculation module 20. The semantic granularity maturity calculation module 20 further includes: determining the number of sample supports for the k-th prototype in the initial prototype set based on the text attribution relationship, wherein the number of sample supports is the number of texts belonging to the k-th prototype based on the text semantics; calculating the intra-cluster cohesion degree corresponding to the k-th prototype based on the distance between the text semantics belonging to the k-th prototype and the semantic center of the corresponding prototype; obtaining the text attribution relationship corresponding to multiple consecutive evolution check times, and determining the average sample attribution stability within the k-th prototype by analyzing the changes in sample attribution under consecutive text attribution relationships; and calculating the prototype validity of the k-th prototype based on the number of sample supports, the intra-cluster cohesion degree, and the average sample attribution stability. :

[0063] Where k is the index of the prototype. Let be the number of sample support for the k-th prototype at evolution check time t. The degree of cluster cohesion of the k-th prototype at evolution check time t. Let be the average sample assignment stability of the k-th prototype at evolution check time t, where t is the evolution check time. The cutoff function is given, where N is the total number of samples to be clustered. The sample size suppression index and This is used to control and reduce the excessive dominance of sample size on prototype validity. It is the stability constant.

[0064] The following will describe in detail the specific configuration of the semantic granularity maturity calculation module 20. The semantic granularity maturity calculation module 20 further includes: calculating the effective prototype statistic based on the number of samples supporting each prototype in the prototype validity set; calculating the average intra-cluster cohesion stability based on the intra-cluster cohesion degree of each prototype in the prototype validity set; calculating the average sample assignment stability based on the sample assignment stability of each prototype in the prototype validity set; and defining the semantic granularity maturity according to the effective prototype statistic, the average intra-cluster cohesion stability, and the average sample assignment stability.

[0065] The specific configuration of the initial prototype set update module 30 will be described in detail below. The initial prototype set update module 30 further includes: comparing the current semantic granularity maturity with the preset semantic granularity maturity; when the current semantic granularity maturity does not reach the preset semantic granularity maturity, determining a prototype topology evolution operation based on the prototype validity corresponding to each prototype and the text attribution relationship; wherein, when the text attribution relationships corresponding to two prototypes have semantic overlap, the two prototypes are identified as merging candidates and prototype merging is performed; prototypes with a validity lower than the preset validity are identified as deletion candidates and prototype deletion is performed; when the text semantics corresponding to a prototype contains multiple stable local clustering structures, local segmentation is performed on the prototype and a new prototype is generated; the initial prototype set is updated according to the executed prototype topology evolution operation until the updated prototype set and updated text attribution relationship corresponding to reaching the preset semantic granularity maturity are obtained.

[0066] The specific configuration of the initial prototype set update module 30 will be described in detail below. The initial prototype set update module 30 further includes: determining two merging candidates corresponding to the prototypes to be merged based on the text semantics and the initial prototype set; constructing corresponding pre-merge text attribution relationships and post-merge text attribution relationships based on the merging candidates; determining corresponding semantic anchors in a preset reference semantic space based on the pre-merge text attribution relationships and the post-merge text attribution relationships respectively; determining the consistency degree between the pre-merge text attribution relationships and the semantic anchors respectively; and performing the merging of the two prototypes to be merged when the decrease in the consistency degree after merging relative to the pre-merge consistency degree is less than a preset decrease, and the semantic anchors corresponding to the merging candidates meet a preset semantic proximity condition.

[0067] The specific configuration of the initial prototype set update module 30 will be described in detail below. The initial prototype set update module 30 further includes: determining corresponding semantic anchors in a preset reference semantic space, wherein the semantic anchors include a first set of semantic anchors and a second set of semantic anchors; determining a first set of semantic anchors in the preset reference semantic space corresponding to the number of prototypes corresponding to the current prototype set; and determining a second set of semantic anchors in the preset reference semantic space corresponding to the number of merged prototypes after the prototype merging is performed.

[0068] The specific configuration of the initial prototype set update module 30 will be described in detail below. The initial prototype set update module 30 further includes: obtaining the prototype validity corresponding to multiple consecutive evolution check times; when the prototype validity of the same prototype at the multiple consecutive evolution check times is lower than a preset validity, the prototype is determined as a prototype to be deleted; the prototype to be deleted is deleted, and the text ownership relationship is re-determined based on the deleted prototype set.

[0069] The specific configuration of the initial prototype set update module 30 will be described in detail below. The initial prototype set update module 30 further includes: determining prototypes with multiple local clustering structures based on the distribution of text semantics corresponding to the same prototype; locally segmenting the prototypes with multiple local clustering structures to obtain at least two candidate prototypes; determining the number of samples supported and the degree of intra-cluster cohesion corresponding to each candidate prototype; adding candidate prototypes whose number of samples supported reaches a preset number and whose intra-cluster cohesion after local segmentation is greater than that before segmentation to the prototype set; and determining that the prototype nascent stage is valid if the sample attribution stability at multiple consecutive evolution check times after local segmentation is greater than a preset attribution stability.

[0070] The specific configuration of the clustering result determination module 40 will be described in detail below. The clustering result determination module 40 further includes: saving the updated prototype set and the updated text attribution relationship as the protection state corresponding to the target semantic granularity; updating the parameters of the text semantics and the corresponding prototype semantic center based on the protection state, wherein the parameters include the feature parameters of the text semantics, the position parameters of the prototype semantic center, and the text attribution boundary parameters corresponding to the prototype.

[0071] The text clustering system based on adaptive granularity evolution provided in this embodiment of the invention can execute the text clustering method based on adaptive granularity evolution provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0072] The above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention in any way. Although the present invention has been disclosed above with reference to preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art can make some modifications or alterations to the above-disclosed technical content to create equivalent embodiments without departing from the scope of the present invention. Any modifications, equivalent changes, and alterations made to the above embodiments based on the technical essence of the present invention without departing from the scope of the present invention shall still fall within the scope of the present invention.

Claims

1. A text clustering method based on adaptive granularity evolution, characterized in that, The method includes: Obtain the text semantics corresponding to the text to be clustered, and construct an initial prototype set based on a preset initial prototype number, wherein the semantic granularity corresponding to the initial prototype number is greater than the target semantic granularity to be determined; Based on the semantics of the text, determine the text belonging relationship with the initial prototype set, calculate the prototype validity set corresponding to the initial prototype set, and calculate the semantic granularity maturity based on the prototype validity set. The initial prototype set is updated with a preset semantic granularity maturity as the adaptive target and prototype topology evolution operation as the adaptive execution means. The prototype topology evolution operation includes at least one of prototype merging, prototype deletion and prototype creation. The updated prototype set and updated text attribution relationship corresponding to the preset semantic granularity maturity are determined as the clustering result corresponding to the target semantic granularity.

2. The text clustering method based on adaptive granularity evolution as described in claim 1, characterized in that, The method for calculating the prototype validity set corresponding to the initial prototype set includes: The number of samples supporting the kth prototype in the initial prototype set is determined based on the text attribution relationship, wherein the number of samples supporting the kth prototype is the number of texts that belong to the kth prototype based on the text semantics. The degree of intra-cluster cohesion corresponding to the k-th prototype is calculated based on the distance between the text semantics belonging to the k-th prototype and the semantic center of the corresponding prototype. Obtain the text attribution relationship corresponding to multiple consecutive evolution check times, and determine the average sample attribution stability within the kth prototype by analyzing the changes in sample attribution under consecutive text attribution relationships. The prototype validity of the k-th prototype is calculated based on the number of samples supported, the degree of cluster cohesion, and the average sample affiliation stability. : Where k is the index of the prototype. Let be the number of sample support for the k-th prototype at evolution check time t. The degree of cluster cohesion of the k-th prototype at evolution check time t. Let be the average sample assignment stability of the k-th prototype at evolution check time t, where t is the evolution check time. The cutoff function is given, where N is the total number of samples to be clustered. The sample size suppression index and This is used to control and reduce the excessive dominance of sample size on prototype validity. It is the stability constant.

3. The text clustering method based on adaptive granularity evolution as described in claim 2, characterized in that, The method for calculating semantic granularity maturity based on the prototype validity set includes: The effective prototype statistic is calculated based on the number of samples supporting each prototype in the prototype validity set. The average intra-cluster cohesion stability is calculated based on the intra-cluster cohesion degree of each prototype in the prototype validity set. The average sample assignment stability is calculated based on the sample assignment stability of each prototype in the prototype validity set. Semantic granularity maturity is defined based on the effective prototype statistics, the average intra-cluster cohesion stability, and the average sample affiliation stability.

4. The text clustering method based on adaptive granularity evolution as described in claim 1, characterized in that, The initial prototype set is updated using a preset semantic granularity maturity level as the adaptive target and prototype topology evolution operation as the adaptive execution means. The method includes: Compare the current semantic granularity maturity with the preset semantic granularity maturity; When the current semantic granularity maturity does not reach the preset semantic granularity maturity, the prototype topology evolution operation is determined according to the prototype validity corresponding to each prototype and the text affiliation relationship; Specifically, when the text belonging relationships corresponding to two prototypes have semantic overlap, the two prototypes are identified as merging candidates and prototype merging is performed; prototypes with a validity lower than a preset validity are identified as deletion candidates and prototype deletion is performed; when the text semantics corresponding to a prototype contain multiple stable local clustering structures, local segmentation is performed on the prototype and a new prototype is generated. The initial prototype set is updated according to the executed prototype topology evolution operation until the updated prototype set and updated text attribution relationship corresponding to the preset semantic granularity maturity are obtained.

5. The text clustering method based on adaptive granularity evolution as described in claim 4, characterized in that, The method for identifying the two prototypes as merging candidates and performing prototype merging includes: Based on the text semantics and the initial prototype set, determine the merging candidates corresponding to the two prototypes to be merged; Based on the merge candidates, construct the corresponding text attribution relationships before and after the merge; Based on the text attribution relationship before and after the merger, corresponding semantic anchors are determined in a preset reference semantic space, and the degree of consistency between the text attribution relationship before and after the merger and the semantic anchors is determined. When the decrease in the consistency level after merging relative to the consistency level before merging is less than a preset decrease, and the semantic anchor point corresponding to the merging candidate meets the preset semantic proximity condition, the merging of the two prototypes to be merged is performed.

6. The text clustering method based on adaptive granularity evolution as described in claim 5, characterized in that, In a preset reference semantic space, corresponding semantic anchors are determined, and the semantic anchors include a first set of semantic anchors and a second set of semantic anchors; Based on the number of prototypes corresponding to the current prototype set, determine the first set of semantic anchors corresponding to the number of prototypes in the preset reference semantic space; Based on the number of prototypes after the prototype merging is performed, a second set of semantic anchor points corresponding to the number of merged prototypes is determined in the preset reference semantic space.

7. The text clustering method based on adaptive granularity evolution as described in claim 4, characterized in that, Prototypes with a validity level lower than a preset validity level are identified as candidates for deletion and deleted. The method includes: Obtain the prototype validity corresponding to multiple consecutive evolution check times; When the prototype validity of the same prototype is lower than the preset validity at multiple consecutive evolution check times, the prototype is determined to be a prototype to be deleted. Delete the prototype to be deleted, and redetermine the text ownership relationship based on the set of deleted prototypes.

8. The text clustering method based on adaptive granularity evolution as described in claim 4, characterized in that, Methods for performing local segmentation on the prototype and generating a new prototype include: Based on the distribution of textual semantics corresponding to the same prototype, a prototype with multiple local clustering structures is determined. The prototype with multiple local clustering structures is locally segmented to obtain at least two candidate prototypes; Determine the number of samples supporting each candidate prototype and the degree of cluster cohesion within each cluster. Add the candidate prototypes whose number of samples supporting the preset number of samples and whose degree of cluster cohesion after local segmentation is increased relative to that before segmentation to the prototype set. If the stability of sample attribution at multiple consecutive evolution check times after the local segmentation is greater than the preset stability of attribution, the prototype regeneration is determined to be valid.

9. The text clustering method based on adaptive granularity evolution as described in claim 2, characterized in that, After determining the clustering result corresponding to the target semantic granularity, the method further includes: Save the updated prototype set and the updated text attribution relationship as the protection state corresponding to the target semantic granularity; Based on the protection status, the parameters of the text semantics and the corresponding prototype semantic center are updated. The parameters include the feature parameters of the text semantics, the position parameters of the prototype semantic center, and the text belonging boundary parameters corresponding to the prototype.

10. A text clustering system based on adaptive granularity evolution, characterized in that, The system is used to implement the text clustering method based on adaptive granularity evolution as described in any one of claims 1 to 9, and the system comprises: An initial prototype set construction module is used to obtain the text semantics corresponding to the text to be clustered, and to construct an initial prototype set based on a preset number of initial prototypes, wherein the semantic granularity corresponding to the number of initial prototypes is greater than the target semantic granularity to be determined. The semantic granularity maturity calculation module is used to determine the text attribution relationship with the initial prototype set based on the text semantics, calculate the prototype validity set corresponding to the initial prototype set, and calculate the semantic granularity maturity based on the prototype validity set. The initial prototype set update module is used to update the initial prototype set with a preset semantic granularity maturity as the adaptive target and prototype topology evolution operation as the adaptive execution means. The prototype topology evolution operation includes at least one of prototype merging, prototype deletion and prototype creation. The clustering result determination module is used to determine the updated prototype set and updated text attribution relationship corresponding to the preset semantic granularity maturity as the clustering result corresponding to the target semantic granularity.