A clustering model construction method and device based on graph structure learning

By optimizing the graph structure and extracting high-order feature representations based on graph structure learning, combined with self-supervised learning, the problem of low-quality feature representation and noisy graph structure of the clustering model in unstructured data is solved, significantly improving the accuracy of the clustering results. accuracy and robustness.

CN118503746BActive Publication Date: 2024-09-27UNIV OF SCI & TECH OF CHINA
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410939110.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-15
Publication Date
2024-09-27
Estimated Expiration
2044-07-15

AI Technical Summary

Technical Problem

Existing clustering models suffer from low-quality feature representation, noisy graph structures, and inaccurate regularization weights when processing unstructured data, resulting in inaccurate clustering results.

Method used

Using a method based on graph structure learning, the graph structure is optimized through an enhanced adaptive graph neural network encoder, edge weights are dynamically updated, and multi-layer graph convolutional networks are used to extract high-order feature representations, combined with self-supervised feature representation learning and contrastive learning. , build a robust clustering model.

Benefits of technology

It achieves accurate clustering of unstructured data, improves the robustness of the model and the accuracy of clustering results, and provides more fine-grained data structure control and efficient clustering performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118503746B
    Figure CN118503746B
Patent Text Reader

Abstract

The present invention discloses a method and device for constructing a clustering model based on graph structure learning. The clustering model construction method includes: obtaining an unstructured data set and performing feature extraction on the unstructured data set to obtain original features, and constructing an original graph structure based on the original features; optimizing the graph structure using an enhanced adaptive graph neural network encoder and dynamically updating edge weights; extracting high-order feature representations of data using a multi-layer graph convolutional network as an encoder; and constructing a clustering model based on the optimized graph structure and high-order feature representations. By introducing enhanced adaptive graph structure learning, fine-grained control of the data structure is achieved, thereby providing more accurate clustering results when processing unstructured data. Secondly, while maintaining the ability to capture high-order structural information, the robustness of the model is significantly improved through self-supervised feature representation learning and contrastive learning. In addition, efficient clustering of unstructured data can be achieved by simply adjusting the clustering algorithm.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of machine learning, and more specifically to a method and device for constructing a clustering model based on graph structure learning. Background Art

[0002] With the rapid development of the Internet, a large amount of data has emerged. However, a large part of it is unstructured data, and most of it does not have clear labels. In unsupervised learning, clustering techniques become particularly important. Clustering plays a key role in revealing the intrinsic structure of data by grouping similar data samples into coherent clusters and highlighting the differences between different clusters. Traditional clustering methods include center-based techniques (such as k-means), spectral clustering based on graph Laplacian operators, density-based clustering algorithms, and hierarchical clustering methods. However, these methods are sensitive to initialization, and due to the non-convexity of the model, the solutions obtained are often suboptimal. More importantly, most popular clustering algorithms presuppose or estimate the number of clusters, which is often impractical in practical applications. In fact, determining the optimal number of clusters is a difficult problem that is as challenging as the clustering task itself.

[0003] To address the above challenges, convex clustering models have attracted attention. The model learns the approximate centroid of each data point by solving a strong convex problem, where the fusion regularization term encourages the merging of these centroids. Based on the obtained centroids, the model divides the given data points into different clusters, where the number of clusters is adjustable, and clustering paths can be generated by adjusting the penalty parameter. Generally, the larger the penalty parameter, the fewer clusters are generated. Compared with methods such as k-means, in which different initial guesses for the number of clusters may lead to irrelevant results, the solution of the convex clustering model is proved to be a continuous function of the penalty parameter. In recent years, Shah and Koltun proposed a robust continuous clustering (RCC) model based on the convex clustering framework, which enhances the robustness of the model by introducing an additional penalty function in the fusion term, which aims to cut off spurious connections in the graph constructed from the input data.

[0004] Although convex clustering models and RCC models have made some remarkable progress in solving clustering tasks with unknown number of categories, they still have some limitations: low-quality feature representation, noisy graph structure and inaccurate regularization weights. Summary of the invention

[0005] In this embodiment, a method and device for constructing a clustering model based on graph structure learning are provided to solve the problems existing in current clustering models, such as low-quality feature representation, noisy graph structure, and inaccurate regularization weights.

[0006] In a first aspect, the present invention provides a clustering model construction method based on graph structure learning, the clustering model construction method comprising:

[0007] Obtain an unstructured data set and perform feature extraction on the unstructured data set to obtain original features, and construct the original graph structure based on the original features;

[0008] Utilize an enhanced adaptive graph neural network encoder to optimize graph structure and dynamically update edge weights;

[0009] Use a multi-layer graph convolutional network as an encoder to extract high-order feature representations of data;

[0010] A clustering model is constructed based on the optimized graph structure and high-order feature representation.

[0011] In some optional embodiments, obtaining an unstructured data set and performing feature extraction on the unstructured data set to obtain original features, and constructing an original graph structure according to the original features includes:

[0012] Obtain unstructured data sets and clean the data in the unstructured data sets;

[0013] According to the data type in the unstructured data set, a corresponding model is selected to extract features from the data to obtain the original features;

[0014] Select original features, and construct an original graph structure according to the selected original features.

[0015] In some optional embodiments, optimizing the graph structure using an enhanced adaptive graph neural network encoder and dynamically updating edge weights include:

[0016] Obtain the edge weights of the graph structure and the graph construction problem, model the graph construction problem as an optimization problem, and obtain the optimization function;

[0017] Based on the optimization function, the graph structure is solved to obtain the graph structure function;

[0018] By presetting the sparsity parameter and combining the graph structure function, the edge weights of the original graph are updated.

[0019] In some optional embodiments, the original graph is a directed graph;

[0020] Using a multi-layer graph convolutional network as an encoder to extract high-level feature representations of data includes:

[0021] Convert a directed graph into an undirected graph;

[0022] A multi-layer graph convolutional network is used as an encoder to extract high-level feature representations of the graph structure.

[0023] In some optional embodiments, before extracting high-order features of data, the encoder is trained by contrastive learning, including:

[0024] Adding Gaussian noise to each original feature creates an enhanced view of each original feature;

[0025] Obtain different versions of representations through neural network encoding;

[0026] The representations of different versions are fused into the final representation in a linear manner.

[0027] In some optional embodiments, constructing a clustering model based on the optimized graph structure and high-order feature representation includes:

[0028] Based on the optimized graph structure and high-order feature representation, an enhanced robust continuous clustering model is applied;

[0029] Get the target model.

[0030] In some optional embodiments, obtaining the target model includes:

[0031] Use the target model to perform cluster analysis and obtain clustering results;

[0032] Continuously optimize the target model through negative sampling and graph structure;

[0033] Dynamically adjust clustering results.

[0034] Compared with the prior art, the clustering model construction method based on graph structure learning of the present invention has the following beneficial effects:

[0035] The clustering model construction method based on graph structure learning proposed in the present invention realizes fine-grained control of data structure by introducing enhanced adaptive graph structure learning, thereby providing more accurate clustering results when processing unstructured data. Secondly, while maintaining the ability of graph neural network to capture high-order structural information, the robustness of the model is significantly improved through self-supervised feature representation learning and contrastive learning. In addition, theoretical analysis reveals the deep connection between enhanced adaptive graph neural network and robust continuous clustering model, which provides a new perspective for understanding the combination of graph structure learning and clustering tasks, and provides a theoretical basis for further improvement and optimization. By introducing enhanced adaptive graph structure learning and self-supervised feature representation learning, efficient clustering of unstructured data can be achieved by simply adjusting the clustering algorithm.

[0036] In a second aspect, the present invention provides a clustering model construction device based on graph structure learning, comprising:

[0037] The initialization module is used to obtain an unstructured data set and perform feature extraction on the unstructured data set to obtain the original features, and construct the original graph structure based on the original features;

[0038] Adaptive graph structure weight update module, which uses an enhanced adaptive graph neural network encoder to optimize the graph structure and dynamically update edge weights;

[0039] A high-order feature extraction module is used to extract high-order feature representations of data using a multi-layer graph convolutional network as an encoder;

[0040] The building module is used to build a clustering model using clustering methods based on the optimized graph structure and high-order feature representation.

[0041] In a third aspect, the present invention provides an electronic device including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the above-mentioned clustering model construction method based on graph structure learning.

[0042] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-mentioned method for constructing a clustering model based on graph structure learning.

[0043] Compared with the prior art, the beneficial effects of the clustering model construction device, electronic device and storage medium based on graph structure learning of the present invention are the same as those of the clustering model construction method based on graph structure learning of the first aspect, so they will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 It is a block diagram of the terminal hardware structure for executing the clustering model construction method based on graph structure learning provided in the present invention;

[0045] Figure 2 It is a flowchart of a clustering model construction method based on graph structure learning in an embodiment of the present invention;

[0046] Figure 3 A structural block diagram of a clustering model building device based on graph structure learning in an embodiment of the present invention;

[0047] Figure 4 This is a schematic diagram of a clustering model construction method based on graph structure learning in an embodiment of the present invention. DETAILED DESCRIPTION

[0048] In order to more clearly understand the purpose, technical solutions and advantages of the present application, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments.

[0049] Unless otherwise defined, the technical terms or scientific terms involved in this application shall have the general meaning understood by people with general skills in the technical field to which this application belongs. The words "one", "a", "the", "these" and the like in this application do not indicate a quantitative limitation, and they may be singular or plural. The terms "include", "comprise", "have" and any variants thereof involved in this application are intended to cover non-exclusive inclusions; for example, a process, method and system, product or device comprising a series of steps or modules (units) is not limited to the listed steps or modules (units), but may include unlisted steps or modules (units), or may include other steps or modules (units) inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships, for example, "A and / or B" may mean: A exists alone, A and B exist at the same time, and B exists alone. Generally, the character " / " indicates that the objects associated with each other are in an "or" relationship. The terms "first", "second", "third", etc. in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.

[0050] The method embodiments provided in the present invention may be executed in a terminal, a computer or a similar computing device. For example, when running on a terminal, Figure 1 is a block diagram of the terminal hardware structure for executing the clustering model construction method based on graph structure learning provided in the present invention. Figure 1 As shown, the terminal may include one or more ( Figure 1 Only one is shown in the figure) processor 120 and memory 140 for storing data, wherein processor 120 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA. The above terminal may also include a transmission device 160 and an input and output device 180 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.

[0051] The memory 140 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the clustering model construction method based on graph structure learning in the present invention. The processor 120 executes various functional applications and data processing by running the computer program stored in the memory 140, that is, to implement the above method. The memory 140 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 140 may further include a memory remotely arranged relative to the processor 120, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.

[0052] The transmission device 160 is used to receive or send data via a network. The above network includes a wireless network provided by a communication provider of the terminal. In one example, the transmission device 160 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 160 can be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet wirelessly.

[0053] In an embodiment of the present invention, a clustering model construction method based on graph structure learning is provided, the goal of which is to construct a clustering model (ASRC). Figure 2 is a flow chart of the clustering model construction method based on graph structure learning of the present invention, such as Figure 2 As shown, the process includes the following steps:

[0054] S100: Obtain an unstructured data set and perform feature extraction on the unstructured data set to obtain original features, and construct an original graph structure based on the original features;

[0055] It should be noted that unstructured datasets usually refer to unstructured datasets, which are data that are not organized according to a predefined data model or format, such as social network data, text data, image data, etc.

[0056] Specifically, an unstructured data set is obtained and features are extracted from the unstructured data set to obtain original features. The original graph structure is constructed according to the original features, including:

[0057] An unstructured data set is obtained. In this embodiment, the unstructured data set is image data. The data in the unstructured data set is cleaned to remove obvious errors and inconsistencies, thereby ensuring the quality of the data.

[0058] According to the data type in the unstructured dataset, a corresponding model is selected to extract features from the data to obtain original features. For example, for image data, features can be extracted by using deep learning models such as convolutional neural networks (CNN) to obtain the original features of the data in the unstructured dataset.

[0059] Combination Figure 4 As shown, the original graph structure is constructed according to the original features, and the most meaningful subset for clustering is selected from the extracted features, that is, the original features are selected, and then the original features are converted into a graph structure to perform clustering using graph theory methods, which usually includes: defining proximity or similarity, building an adjacency matrix, optimizing the graph structure, and applying a graph clustering algorithm, which is specifically described below.

[0060] S200, using an enhanced adaptive graph neural network encoder to optimize the graph structure and dynamically update edge weights;

[0061] It should be noted that the core of deep clustering tasks is to learn representations that are conducive to clustering. Clustering begins with the formation of local cluster structures and then merges into larger clusters. This process relies on high-order structural information, which corresponds to the neighborhood aggregation pattern in graph neural networks. However, unstructured data usually lacks a clear graph structure, and graphs built based on the nearest neighbor algorithm (KNN) cannot capture global topological information.

[0062] Based on the above, the enhanced adaptive graph neural network encoder is used to optimize the graph structure and dynamically update the edge weights including:

[0063] Obtain the edge weights of the graph structure and the graph construction problem, model the graph construction problem as an optimization problem, and obtain the optimization function;

[0064] In this example, the edge weights are interpreted as conditional probabilities , which is abbreviated as , that is, at a given node Under the condition that and nodes The probability that there is an edge connecting the given nodes Under the condition of , the probability vector connected to other nodes can be abbreviated as The graph construction problem is modeled as an optimization problem, and the optimization function is as follows:

[0065]

[0066] in, It is a sample The distance vector embedded between other samples, is the probability vector and the uniform distribution The regularization term of is a hyperparameter. For the above optimization goal, it can be achieved for a certain sample i The number of neighbors is controlled.

[0067] Based on the optimization function, the graph structure is solved to obtain the graph structure function;

[0068] Combined with the above, it should be noted that when the hyperparameter When it has the following form:

[0069]

[0070] The graph structure function is as follows:

[0071]

[0072] in, for Vector m Large elements, is the conditional probability p ij The solution, is the ReLU function, k For a given sparsity level parameter. By presetting the sparsity parameter k , combined with the graph structure function Update the edge weights of the original graph.

[0073] It should be noted that the probability distribution is the original graph, so P represents the corresponding edge weight matrix.

[0074] S300, using a multi-layer graph convolutional network as an encoder to extract high-order feature representation of the data;

[0075] It should be noted that the original graph is a directed graph;

[0076] Using a multi-layer graph convolutional network as an encoder to extract high-level feature representations of data includes:

[0077] Convert a directed graph into an undirected graph; , is the edge adjacency matrix The transpose of is the edge adjacency matrix of the transformed undirected graph.

[0078] A multi-layer graph convolutional network (GCN) is used as an encoder to extract high-level feature representations of the graph structure.

[0079] For example, taking a 2-layer GCN as an example, the obtained representation matrix Z is defined as:

[0080]

[0081] in, is the normalized graph matrix, is the activation function, is the parameter of the trainable multi-layer graph convolutional network GCN. The connection distribution between nodes is reconstructed according to the Euclidean distance between the representations, and the reconstructed probability distribution is expressed as follows:

[0082]

[0083] in, Is a node The Kullback-Leibler divergence is used here to measure the difference between the two distributions. The objective function of the entire optimization problem is as follows:

[0084]

[0085] in is a hyperparameter. When optimizing the parameters of the autoencoder GAE, the graph structure remains unchanged. Therefore, the regularization term in the above formula can be omitted.

[0086] For the sparsity level parameter k , by adaptively updating the sparsity level parameter k , to continuously update the graph structure. The update formula is as follows:

[0087]

[0088] Among them, s is the sparsity increment of each update.

[0089] In this embodiment, the enhanced adaptive graph neural network encoder (EadaGAE) will be fixed for the sparsity level parameter k The embedding and graph structure are continuously updated until convergence. This improvement not only ensures the convergence of the algorithm, but also ensures the consistency between the graph structure and the learned representation, thus avoiding incorrect clustering results.

[0090] Combined with the above, in the Enhanced Adaptive Graph Neural Network Encoder (EadaGAE), by increasing the sparsity level parameter kThe value of is used to maximize the connection within the cluster and avoid collapse. However, this may make the node embeddings between different clusters less discriminative, which will have an adverse impact on the performance of the convex clustering model and the enhanced robust continuous clustering model (RCC model), because the ratio of the maximum internal distance and the minimum inter-centroid distance plays a crucial role in successfully recovering the potential clusters. In order to address this limitation, self-supervised learning is used in this embodiment. It should be noted that the core principle of self-supervised learning is to bring similar instances closer and dissimilar instances farther apart, which is naturally consistent with the goal of clustering. Therefore, self-supervised learning, especially contrastive learning, is integrated into it to achieve a more discriminative feature representation.

[0091] It should be noted that contrastive learning has two key components: one is to increase the perspective of data instances and generate multiple views of each instance; the other is to optimize the contrast loss and maximize the consistency between different views of the same instance.

[0092] Specifically, Gaussian noise is added to each original feature X1 to create an enhanced view X2 of each original feature;

[0093] Different versions of representations are obtained through neural network encoding, such as Figure 4 Z1 and Z2 in;

[0094] The different versions of representations (i.e., Z1 and Z2) are fused into the final representation Z in a linear manner.

[0095] These two representation views are fused linearly into the final representation , which is used to calculate the reconstruction loss throughout the training process.

[0096] It should be noted that in each training step, we know the representation of the previous round, that is, we can obtain the clustering results of the previous round. This feedback provides a valuable signal for alleviating sampling bias, which affects the effectiveness of contrastive learning. Intuitively, instances in the same cluster are often potential false negative samples. Therefore, we adjust the commonly used InfoNCE loss through clustering guidance, formalized as follows:

[0097]

[0098] in, and yes and No. OK, is a similarity function, such as cosine similarity, is to exclude samples in the current step Samples belong to the same cluster.

[0099] This type of contrastive learning helps to obtain more discriminative feature representations. In addition, as before, enhanced representations can promote the learning of graph structures and bring improvements in weight values, thereby significantly improving clustering performance.

[0100] Furthermore, in order to generate better graph structures to obtain discriminative representations, the graph structure is first adjusted to be consistent with the clustering objective, and high-level information is extracted using a GAE. Then, the customized graph structure is used as the scope of the regularization term (i.e., the edge set ), the average weight after transformation As a regularization weight, it further matches the clustering task. Finally, clustering-guided contrastive learning is used to enhance the representation quality.

[0101] It should be noted that since weighted graph learning and node representation learning are performed alternately, the quality, weight and representation of the graph structure enhance each other. In general, the goal of ASRC is formulated as:

[0102]

[0103] in, is a trade-off parameter, is the self-supervised optimization objective, is the optimization goal of the graph encoder, is the optimization goal of this algorithm. The above objective formula is optimized by gradient descent to achieve consistent improvements in graph structure, weights, and representations. Therefore, continuous robust clustering can be rewritten as:

[0104]

[0105] in, is the class centroid. is a hyperparameter, For the sample , sample Is there a penalty for an edge in .

[0106] S400, building a clustering model based on the optimized graph structure and high-order feature representation.

[0107] Specifically, building a clustering model based on the optimized graph structure and high-order feature representation includes:

[0108] Based on the optimized graph structure and high-order feature representation, an enhanced robust continuous clustering model is applied;

[0109] Get the target model.

[0110] By applying the enhanced robust continuous clustering model (RCC) to the optimized graph structure and high-order feature representation, the target clustering model is obtained, and clustering analysis can be performed through the target clustering model.

[0111] Furthermore, obtaining the target model includes:

[0112] Use the target model to perform cluster analysis and obtain clustering results;

[0113] Continuously optimize the target model through negative sampling and graph structure;

[0114] Dynamically adjust clustering results.

[0115] Through continuous optimization of negative sampling and graph structure, the clustering performance of the clustering model is gradually improved.

[0116] In this embodiment, the training of the clustering model includes obtaining a training data set, and continuing to train the clustering model on the entire training data set until a predetermined number of iterations or performance indicators are reached to ensure the consistency and convergence of the graph structure, node representation, and clustering results. Finally, the trained clustering model is deployed in practical applications, such as social network analysis, text classification, image segmentation, etc., and appropriate model adjustments and optimizations are performed according to specific application scenarios.

[0117] Taking RCC, EadaGAE and its derivative models (ASRC-1 and ASRC-2) as control models, three different datasets, 20NEWS, UMNIST, and MICE PROTEIN, were selected for experiments. According to the clustering evaluation criteria, we divided the dataset into training set, validation set, and test set, and used average mutual information (AMI) and adjusted Rand index (ARI) as metrics. In order to demonstrate the effect of ASRC, this patent designed the ASRC-1 model that does not include enhanced graph structure learning and debiased negative sampling, and the ASRC-2 model that only does not include debiased negative sampling. The experimental results are shown in Table 1:

[0118] Table 1 Clustering experiment results

[0119]

[0120] From Table 1, we can see that in all datasets, ASRC outperforms RCC, EadaGAE and its derivative models in all indicators. ASRC-1, ASRC-2 and ASRC show significant improvements over RCC, highlighting the importance of adaptive graph structure learning. ASRC-2 is better than ASRC-1, indicating the advantages of enhanced graph structure learning, ensuring the consistency of graph structure, weights and representation, and improving the accuracy of clustering results. ASRC is better than ASRC-2, indicating the effectiveness of debiased negative sampling, alleviating sampling bias and providing more discriminative embedding representations. In summary, the combination of enhanced adaptive graph structure learning and debiased negative sampling enables ASRC to learn better graph structure and discriminative data representation, thereby achieving better clustering results.

[0121] The embodiment of the present invention also provides a clustering model construction device based on graph structure learning, which is used to implement the above method embodiment, and the description has been made no further. The terms "module", "unit", "subunit", etc. used below can implement a combination of software and / or hardware for predetermined functions. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware is also possible and conceived.

[0122] like Figure 3 As shown, Figure 3 : is a structural block diagram of a clustering model construction device based on graph structure learning in the present invention, the device comprises:

[0123] The initialization module is used to obtain an unstructured data set and perform feature extraction on the unstructured data set to obtain the original features, and construct the original graph structure based on the original features;

[0124] Adaptive graph structure weight update module, which uses an enhanced adaptive graph neural network encoder to optimize the graph structure and dynamically update edge weights;

[0125] A high-order feature extraction module is used to extract high-order feature representations of data using a multi-layer graph convolutional network as an encoder;

[0126] A building module for building a clustering model based on the optimized graph structure and high-order feature representation.

[0127] In the above device, by introducing enhanced adaptive graph structure learning and self-supervised feature representation learning, efficient clustering of unstructured data can be achieved by simply adjusting the clustering algorithm.

[0128] It should be noted that the above modules can be functional modules or program modules, and can be implemented by software or hardware. For modules implemented by hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.

[0129] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0130] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0131] Optionally, in one embodiment, the processor may be configured to perform the following steps through a computer program:

[0132] Obtain an unstructured data set and perform feature extraction on the unstructured data set to obtain original features, and construct the original graph structure based on the original features;

[0133] Utilize an enhanced adaptive graph neural network encoder to optimize graph structure and dynamically update edge weights;

[0134] Use a multi-layer graph convolutional network as an encoder to extract high-order feature representations of data;

[0135] A clustering model is constructed based on the optimized graph structure and high-order feature representation.

[0136] It should be noted that the specific examples of the electronic device can refer to the examples described in the embodiments and optional implementations of the above method, and will not be repeated in this embodiment.

[0137] In addition, in combination with the clustering model construction method based on graph structure learning provided in the present invention, a storage medium can also be provided in the present invention to implement the method. The storage medium stores a computer program; when the computer program is executed by a processor, any one of the clustering model construction methods based on graph structure learning in the above embodiments is implemented.

[0138] It should be understood that the specific embodiments described herein are only used to explain the application, rather than to limit it. Based on the embodiments provided in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the protection scope of this application.

[0139] Obviously, the drawings are only some examples or embodiments of the present application. For ordinary technicians in the field, the present application can also be applied to other similar situations based on these drawings without creative work. In addition, it is understandable that although the work done in this development process may be complicated and lengthy, for ordinary technicians in the field, certain changes in design, manufacturing or production based on the technical content disclosed in this application are only conventional technical means and should not be regarded as insufficient content disclosed in this application.

[0140] The term "embodiment" in this application refers to a specific feature, structure or characteristic described in conjunction with the embodiment that can be included in at least one embodiment of the present application. The appearance of this phrase in various locations in the specification does not necessarily mean the same embodiment, nor does it mean that it is mutually exclusive with other embodiments and is independent or optional. It is clearly or implicitly understood by those of ordinary skill in the art that the embodiments described in this application can be combined with other embodiments without conflict.

Claims

1. A clustering model construction method based on graph structure learning, characterized in that: Clustering model building methods include: Obtain an unstructured data set and perform feature extraction on the unstructured data set to obtain original features, and construct an original graph structure based on the original features. The unstructured data set is image data or text data. Utilize an enhanced adaptive graph neural network encoder to optimize graph structure and dynamically update edge weights; Using an enhanced adaptive graph neural network encoder to optimize the graph structure and dynamically update edge weights includes: Obtain the edge weights of the graph structure and the graph construction problem, model the graph construction problem as an optimization problem, and obtain the optimization function; Interpreting edge weights as conditional probabilities , which is abbreviated as , that is, at a given node Under the condition that and nodes The probability that there is an edge connecting the given nodes Under the condition of , the probability vector of connecting with other nodes is abbreviated as , modeling the graph construction problem as an optimization problem, and obtaining the optimization function as follows: in, It is a sample The distance vector between the embeddings and other samples, is the probability vector With uniform distribution The regularization term of is a hyperparameter. For the above optimization function, it can be realized for a certain sample i Control of the number of neighbors; Based on the optimization function, the graph structure is solved to obtain the graph structure function; When the hyperparameter When it has the following form: The graph structure function is as follows: in, for Vector m Large elements, is the conditional probability The solution, is the ReLU function, k For a given sparsity level parameter, by presetting the sparsity parameter k , combined with the graph structure function Update the edge weights of the original graph; The original graph is obtained from the probability distribution. P represents the corresponding edge weight matrix; For the sparsity level parameter k , by adaptively updating the sparsity level parameter k , to continuously update the graph structure, the update formula is as follows: ; in, is the sparsity increment for each update; Use a multi-layer graph convolutional network as an encoder to extract high-order feature representations of data; A clustering model is constructed based on the optimized graph structure and high-order feature representation.

2. The clustering model construction method based on graph structure learning according to claim 1 is characterized in that: Obtain an unstructured data set and perform feature extraction on the unstructured data set to obtain the original features. Constructing the original graph structure based on the original features includes: Obtain unstructured data sets and clean the data in the unstructured data sets; According to the data type in the unstructured data set, a corresponding model is selected to extract features from the data to obtain the original features; Select original features, and construct an original graph structure according to the selected original features.

3. The clustering model construction method based on graph structure learning according to claim 1 is characterized in that: The original graph is a directed graph; Using a multi-layer graph convolutional network as an encoder to extract high-level feature representations of data includes: Convert a directed graph into an undirected graph; A multi-layer graph convolutional network is used as an encoder to extract high-level feature representations of the graph structure.

4. The clustering model construction method based on graph structure learning according to claim 3 is characterized in that: Before extracting high-level features from the data, the encoder is trained using contrastive learning, including: Adding Gaussian noise to each original feature creates an enhanced view of each original feature; Obtain different versions of representations through neural network encoding; The representations of different versions are fused into the final representation in a linear manner.

5. The clustering model construction method based on graph structure learning according to claim 4 is characterized in that: Building a clustering model based on the optimized graph structure and high-order feature representation includes: Based on the optimized graph structure and high-order feature representation, an enhanced robust continuous clustering model is applied; Get the target model.

6. The clustering model construction method based on graph structure learning according to claim 5, characterized in that: After obtaining the target model, it includes: Use the target model to perform cluster analysis and obtain clustering results; Continuously optimize the target model through negative sampling and graph structure; Dynamically adjust clustering results.

7. A clustering model construction device based on graph structure learning, characterized in that: include: The initialization module is used to obtain an unstructured data set and perform feature extraction on the unstructured data set to obtain original features, and construct an original graph structure based on the original features. The unstructured data set is image data or text data; Adaptive graph structure weight update module, which uses an enhanced adaptive graph neural network encoder to optimize the graph structure and dynamically update edge weights; Using an enhanced adaptive graph neural network encoder to optimize the graph structure and dynamically update edge weights includes: Obtain the edge weights of the graph structure and the graph construction problem, model the graph construction problem as an optimization problem, and obtain the optimization function; Interpreting edge weights as conditional probabilities , which is abbreviated as , that is, at a given node Under the condition that and nodes The probability that there is an edge connecting the given nodes Under the condition of , the probability vector of connecting with other nodes is abbreviated as , modeling the graph construction problem as an optimization problem, and obtaining the optimization function as follows: in, It is a sample The distance vector between the embeddings and other samples, is the probability vector With uniform distribution The regularization term of is a hyperparameter. For the above optimization function, it can be realized for a certain sample i Control of the number of neighbors; Based on the optimization function, the graph structure is solved to obtain the graph structure function; When the hyperparameter When it has the following form: The graph structure function is as follows: in, for Vector m Large elements, is the conditional probability The solution, is the ReLU function, k For a given sparsity level parameter, by presetting the sparsity parameter k , combined with the graph structure function Update the edge weights of the original graph; The original graph is obtained from the probability distribution. P represents the corresponding edge weight matrix; For the sparsity level parameter k , by adaptively updating the sparsity level parameter k , to continuously update the graph structure, the update formula is as follows: ; in, is the sparsity increment for each update; A high-order feature extraction module is used to extract high-order feature representations of data using a multi-layer graph convolutional network as an encoder; A building module for building a clustering model based on the optimized graph structure and high-order feature representation.

8. An electronic device, comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to execute the clustering model construction method based on graph structure learning as described in any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, it implements the clustering model construction method based on graph structure learning as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Multi-view clustering method and system based on graph attention automatic encoder

    CN115905903A

  • Scalable Self-Supervised Graph Clustering

    US20240176993A1

  • Deep clustering method and system based on cross-modal fusion

    WO2022166361A1