Classification method and device, computer equipment, storage medium and program product
Through multiple clustering processing and feature extraction technology, user association diagrams are generated, which solves the problem of low accuracy of banking user classification, achieves more accurate user classification and portraits, and improves user satisfaction and loyalty.
Patent Information
- Application Number
- CN202410846116.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-09-17
AI Technical Summary
The classification accuracy of banking user classification methods is low, resulting in inaccurate analysis of user needs and behavior patterns, which affects the effectiveness of marketing strategies and service plans.
By obtaining the user information of multiple users to be classified, perform multiple clustering processes to generate a network topology map, and combine the clustering algorithm and feature extraction technology with different influencing factors to determine the correlation and weight between users, and then conduct accurate User classification.
It improves the accuracy and effectiveness of user classification, provides a more comprehensive user portrait, supports precision marketing and risk management, and improves user satisfaction and loyalty.
Smart Images

Figure CN118656679A
Abstract
Description
Technical Field
[0001] The present application relates to the field of big data technology, and in particular to a classification method, apparatus, computer equipment, storage medium and program product. Background Art
[0002] In the financial and banking industries, user classification is very important because different types of users have different needs and behavior patterns. In the user classification application of banking business, conventional clustering algorithms are usually used to classify and analyze different types of user groups.
[0003] In the related art, the user classification method for banking services has the problem of low classification accuracy. Summary of the invention
[0004] Based on this, it is necessary to provide a classification method, device, computer equipment, storage medium and program product that can improve the accuracy of banking business user classification in response to the above technical problems.
[0005] In a first aspect, the present application provides a classification method, the method comprising:
[0006] Obtain user information of multiple users to be classified;
[0007] Performing multiple clustering processes on the multiple users to be classified according to the user information of the multiple users to be classified, and obtaining multiple clustered network topology graphs; each network topology graph includes association relationships between the multiple users to be classified;
[0008] A plurality of users to be classified are classified according to a plurality of clustered network topology graphs, and a target user among the plurality of users to be classified is determined.
[0009] In one embodiment, multiple clustering processes are performed on multiple users to be classified according to user information of multiple users to be classified to obtain multiple clustered network topology graphs, including:
[0010] According to the user information of multiple users to be classified, clustering algorithms with different influencing factors are respectively used to perform multiple clustering processes on the multiple users to be classified, and a network topology diagram after each clustering is obtained.
[0011] In one embodiment, classifying a plurality of users to be classified according to a plurality of clustered network topology graphs and determining a target user among the plurality of users to be classified includes:
[0012] Input each clustered network topology map into a preset feature extraction network for feature extraction to obtain a feature map corresponding to each network topology map;
[0013] A plurality of users to be classified are classified according to the characteristic graphs corresponding to the network topology graphs, and a target user among the plurality of users to be classified is determined.
[0014] In one embodiment, each clustered network topology graph is input into a preset feature extraction network for feature extraction to obtain a feature graph corresponding to each network topology graph, including:
[0015] Determine the adjacency matrix, degree matrix and characteristic matrix corresponding to each network topology graph;
[0016] The adjacency matrix, degree matrix and feature matrix corresponding to each network topology graph are input into a preset feature extraction network for feature extraction to obtain a feature graph corresponding to each network topology graph.
[0017] In one embodiment, classifying a plurality of users to be classified according to the feature graphs corresponding to the network topology graphs, and determining a target user among the plurality of users to be classified includes:
[0018] According to the feature graphs corresponding to each network topology graph, a corresponding weight is assigned to each user to be classified, and the weight of each user included in each feature graph is obtained;
[0019] The multiple users to be classified are classified according to the weights of the users included in the feature graphs, and a target user among the multiple users to be classified is determined.
[0020] In one embodiment, according to the feature graphs corresponding to the network topology graphs, corresponding weights are assigned to the users to be classified, and the weights of the users included in the feature graphs are obtained, including:
[0021] For each feature graph, determine the centroid of the cluster of the feature graph and the distance between each user in the feature graph and the centroid of the cluster;
[0022] According to the distance between each user and the centroid of the cluster, a corresponding weight is assigned to each user to be classified, and the weight of each user included in each feature graph is obtained.
[0023] In one embodiment, classifying a plurality of users to be classified according to the weight of each user included in each feature graph and determining a target user among the plurality of users to be classified includes:
[0024] For each user, a weighted average operation is performed according to the weight of the user in each feature graph to obtain the target weight corresponding to the user;
[0025] According to the target weights corresponding to the users, the target users among the users to be classified are determined.
[0026] In one embodiment, the target users include core users and marginal users, and according to the target weights corresponding to the users, the target users among the users to be classified are determined, including:
[0027] Determine users whose target weight is greater than a preset weight threshold as core users;
[0028] Users whose target weight is not greater than a preset weight threshold are determined as marginal users.
[0029] In one embodiment, the method further comprises:
[0030] Performing enhancement processing on the feature graphs corresponding to each network topology graph to obtain enhanced feature graphs corresponding to each network topology graph;
[0031] Classifying multiple users to be classified according to the feature graphs corresponding to each network topology graph, and determining a target user among the multiple users to be classified, including:
[0032] A plurality of users to be classified are classified according to the enhanced feature graphs corresponding to each network topology graph, and a target user among the plurality of users to be classified is determined.
[0033] In a second aspect, the present application also provides a classification device, comprising:
[0034] An acquisition module, used to acquire user information of multiple users to be classified;
[0035] A clustering processing module, used for performing multiple clustering processing on multiple users to be classified according to user information of multiple users to be classified, and obtaining multiple clustered network topology graphs; each network topology graph includes association relationships between multiple users to be classified;
[0036] The classification module is used to classify multiple users to be classified according to multiple clustered network topology diagrams, and determine the target user among the multiple users to be classified.
[0037] In a third aspect, the present application further provides a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the method of the first aspect.
[0038] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which implements the steps of the method of the first aspect when the computer program is executed by a processor.
[0039] In a fifth aspect, the present application also provides a computer program product, including a computer program, which implements the steps of the method of the first aspect when executed by a processor.
[0040] The above classification method, device, computer equipment, storage medium and program product obtain user information of multiple users to be classified, and perform multiple clustering processes on multiple users to be classified according to the user information of multiple users to be classified, so as to obtain multiple clustered network topology maps. Further, multiple users to be classified are classified according to multiple clustered network topology maps, and target users among multiple users to be classified are determined. Compared with the conventional clustering algorithm method in the prior art, by obtaining user information of multiple users to be classified in the embodiment of the present application, the characteristics and needs of users can be better understood, and a rich data basis can be provided for subsequent classification and clustering processing, so as to ensure the accuracy and reliability of the results. By performing multiple clustering processes on multiple users to be classified, different clustering algorithms and parameter settings can be used, which increases the flexibility and adaptability of the method, so that the relationship between users can be analyzed from different angles and levels, and more comprehensive information can be provided for subsequent classification. Further, by comprehensively considering multiple clustered network topology maps, target users can be more accurately located, and the accuracy and effectiveness of classification can be improved. Further, based on the classification results, more accurate marketing strategies, service plans, etc. can be formulated for target users to improve user satisfaction and loyalty. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0042] FIG1 is a schematic diagram of an implementation environment of a classification method in an embodiment of the present application;
[0043] FIG2 is a schematic diagram of a flow chart of a classification method in one embodiment of the present application;
[0044] FIG3 is a schematic diagram of a flow chart of a classification method in another embodiment of the present application;
[0045] FIG4 is a schematic diagram of a flow chart of a classification method in another embodiment of the present application;
[0046] FIG5 is a schematic diagram of a flow chart of a classification method in another embodiment of the present application;
[0047] FIG6 is a flow chart of a classification method in another embodiment of the present application;
[0048] FIG7 is a schematic diagram of the overall process of a classification method in one embodiment of the present application;
[0049] FIG8 is a schematic diagram of the overall framework of a classification method in one embodiment of the present application;
[0050] FIG9 is a schematic diagram of the structure of a classification device in one embodiment of the present application;
[0051] FIG. 10 is a diagram showing the internal structure of a computer device in one embodiment of the present application. DETAILED DESCRIPTION
[0052] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0053] The classification method, apparatus, computer equipment and storage medium provided in the embodiments of the present application can be applied to classification application scenarios of power equipment; of course, they can also be applied to classification scenarios of other businesses, which is not limited in the embodiments of the present application.
[0054] In the financial and banking industries, user classification is very important because different types of customers have different needs and behavior patterns, and clustering algorithms are an effective tool for classifying and analyzing a large number of users. In bank user classification, clustering algorithms can help banks quickly and accurately find user groups with similar characteristics, thereby obtaining user portraits, better understanding customer needs, and improving customer satisfaction and loyalty. Traditional bank customer clustering algorithms mainly cluster based on user income, assets, credit scores and other information. Furthermore, when traditional clustering algorithms are used to build graphs, the selection of parameters is not fixed, which easily causes the graph network to contain noise information. When the samples are unbalanced, new data samples tend to be biased towards clusters with a large number, which ultimately leads to low prediction accuracy. A single sample association relationship topology contains too much noise information, and its topological structure characteristics cannot be deeply utilized, resulting in low classification accuracy.
[0055] In response to the above technical problems, the embodiment of the present application proposes a classification method, which will be specifically introduced in the following embodiment. Figure 1 is a schematic diagram of the implementation environment of the classification method in an embodiment of the present application. The implementation environment of the embodiment of the present application may include: a terminal 101 and a server 102; wherein the terminal 101 can communicate with the server 102 through a network. Among them, the terminal 101 may include but is not limited to various personal computers, laptops, smart phones and tablet computers. The server 102 can be implemented with an independent server or a server cluster consisting of multiple servers. The data storage system can store user information of users to be classified that the server 102 needs to process, the network topology diagram after clustering, target users among the users to be classified, and other information. The data storage system can be integrated on the server 102, or it can be placed on the cloud or other network servers.
[0056] In combination with the above implementation environment, in the embodiment of the present application, the server 102 can obtain user information of multiple users to be classified; and perform multiple clustering processes on the multiple users to be classified according to the user information of the multiple users to be classified, and obtain multiple clustered network topology diagrams. The server 102 can classify the multiple users to be classified according to the multiple clustered network topology diagrams, and determine the target user among the multiple users to be classified, so that the terminal 101 can obtain the target user from the server 102.
[0057] Those skilled in the art will understand that the structure shown in FIG. 1 is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the application environment to which the scheme of the present application is applied. A specific terminal may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0058] The classification method, device, computer equipment, storage medium and program product provided in the embodiments of the present application can better understand the characteristics and needs of users by obtaining user information of multiple users to be classified, provide a rich data basis for subsequent classification and clustering processing, and ensure the accuracy and reliability of the results. By performing multiple clustering processes on multiple users to be classified, different clustering algorithms and parameter settings can be used to increase the flexibility and adaptability of the method, so that the relationship between users can be analyzed from different angles and levels, and more comprehensive information can be provided for subsequent classification. Further, by comprehensively considering the network topology diagram after multiple clustering, the target user can be more accurately located, and the accuracy and effectiveness of the classification can be improved. Further, based on the classification results, more accurate marketing strategies, service plans, etc. can be formulated for the target users to improve user satisfaction and loyalty.
[0059] In one embodiment, as shown in FIG. 2 , a classification method is provided, which is described by taking the method applied to a computer device as an example. The computer device may include but is not limited to a terminal and a server, and includes the following steps:
[0060] S201, obtaining user information of multiple users to be classified.
[0061] Among them, user information refers to a collection of data on user characteristics, behaviors, needs, etc., which may include but is not limited to user name, age, income level, credit score, etc.
[0062] In this step, the computer device can obtain user information of multiple users to be classified. By automatically collecting and processing user information through the computer device, the efficiency and accuracy of data processing can be greatly improved, providing a data basis for subsequent user classification and personalized services.
[0063] S202, performing multiple clustering processes on the multiple users to be classified according to the user information of the multiple users to be classified, and obtaining multiple clustered network topology diagrams.
[0064] Clustering refers to the process of grouping similar data points or objects into one category. In the financial and banking industries, clustering is often used to group users with similar characteristics, behaviors, or needs into one category in order to better understand the users and provide personalized services to them. Clustering can include but is not limited to the K-means algorithm, the centroid clustering algorithm, and the density-based clustering algorithm.
[0065] A network topology is a graph of nodes in a network and their interconnected relationships. In the user classification scenario of the financial and banking industries, a network topology can intuitively display the associations between different users, such as transaction relationships, social relationships, etc. A network topology can include multiple nodes, and each network topology can include the associations between multiple users to be classified. Each node represents a user, and the lines between nodes represent some kind of association or similarity between these users. The association can be based on a variety of factors, such as the user's transaction history, geographic location, social network activities, etc.
[0066] In a possible implementation, the computer device may perform multiple clustering processes on the multiple users to be classified using clustering algorithms with different influencing factors according to the user information of the multiple users to be classified, and obtain a network topology diagram after each clustering.
[0067] The influencing factors refer to various factors or parameters that affect the results of the clustering algorithm, such as the K value in the K-means algorithm.
[0068] In this implementation, the computer device can perform multiple clustering processes by using clustering algorithms with different influencing factors, and can analyze the relationship between users from multiple angles and levels, providing more comprehensive and detailed user classification results. By comparing the clustering results under different influencing factors, the process and results of user classification can be better understood, and the interpretability of the classification results can be improved.
[0069] In another possible implementation, the computer device may process the user information of the multiple users to be classified using an integrated clustering algorithm based on the user information of the multiple users to be classified, and obtain a network topology diagram after each clustering.
[0070] Among them, integrated clustering refers to a strategy that uses the results of multiple clustering algorithms to produce a more stable and reliable clustering result.
[0071] In this implementation, the computer device combines the advantages of multiple clustering algorithms through integrated clustering to improve the stability and accuracy of clustering results. In addition, the sensitivity of a single clustering algorithm to initial conditions, parameter settings, etc. can also be reduced.
[0072] In this way, through any of the above implementation methods, multiple clustered network topology diagrams can be obtained.
[0073] S203, classifying a plurality of users to be classified according to a plurality of clustered network topology graphs, and determining a target user among the plurality of users to be classified.
[0074] Among them, classification refers to dividing multiple users to be classified into different user groups or categories according to multiple clustered network topology graphs. The classification process is usually based on the association relationship between nodes in the network topology graph, the attribute characteristics of the nodes, and the results of the clustering algorithm.
[0075] Target users refer to a group of users with specific characteristics, needs or behavior patterns among multiple users to be classified.
[0076] In this step, the computer device may extract features from the multiple clustered network topology graphs, and classify the multiple users to be classified according to the feature vectors after feature extraction, and determine the target user among the multiple users to be classified.
[0077] It can be seen that by comprehensively considering multiple clustered network topology graphs, computer equipment can combine the advantages of clustering algorithms with different influencing factors, reduce the errors that may be caused by a single clustering algorithm, and thus improve the accuracy of user classification. According to multiple clustered network topology graphs, multiple users to be classified are classified and target users are determined, which can improve classification accuracy and stability, discover potential associations, optimize target user identification, support precision marketing and risk management, and improve decision-making efficiency.
[0078] In the above classification method, the computer device can obtain user information of multiple users to be classified, and perform multiple clustering processes on the multiple users to be classified according to the user information of the multiple users to be classified, and obtain multiple network topology maps after clustering. Further, the computer device can classify the multiple users to be classified according to the multiple network topology maps after clustering, and determine the target user among the multiple users to be classified. In the embodiment of the present application, by obtaining the user information of multiple users to be classified, the characteristics and needs of the users can be better understood, and a rich data basis can be provided for subsequent classification and clustering processing, ensuring the accuracy and reliability of the results. By performing multiple clustering processes on multiple users to be classified, different clustering algorithms and parameter settings can be used, which increases the flexibility and adaptability of the method, so that the relationship between users can be analyzed from different angles and levels, and more comprehensive information can be provided for subsequent classification. Further, by comprehensively considering the network topology maps after multiple clustering, the target user can be more accurately located, and the accuracy and effectiveness of the classification can be improved. Further, based on the classification results, more accurate marketing strategies, service plans, etc. can be formulated for the target users to improve user satisfaction and loyalty.
[0079] In one embodiment, based on the above embodiment, FIG3 is a flow chart of a classification method in another embodiment of the present application, and the present embodiment provides an exemplary introduction to the relevant contents of "classifying multiple users to be classified according to multiple clustered network topology diagrams, and determining a target user among multiple users to be classified" in S203 involved in the above embodiment. The method of the embodiment of the present application may include the following steps.
[0080] S2031, inputting each clustered network topology map into a preset feature extraction network for feature extraction, and obtaining a feature map corresponding to each network topology map.
[0081] Among them, the preset feature extraction network refers to a predefined network model, which is obtained by training the initial feature extraction network based on the contrastive learning method, and is used to extract useful features from the input data, and may include but is not limited to graph convolutional neural networks, graph attention networks, graph autoencoders, etc.
[0082] When processing network topology graphs, feature extraction can include learning embedded representations of nodes, attributes of edges, global attributes of graphs, etc. By presetting feature extraction networks, complex structures and patterns can be captured from network topology graphs.
[0083] In this step, the computer device can input the adjacency matrix, degree matrix and feature matrix corresponding to each clustered network topology graph into a preset feature extraction network for feature extraction to obtain a feature graph corresponding to each network topology graph.
[0084] It can be seen that by inputting the network topology graph after each clustering, the computer device can fully capture the connection relationship between nodes in the network topology graph, the degree information of the nodes, and the attribute characteristics of the nodes, which is conducive to improving the accuracy of subsequent classification or prediction tasks. By analyzing the feature graph, we can deeply understand the characteristics of nodes and edges in the network topology graph and the relationship between them, providing support for subsequent decision-making.
[0085] The following is an exemplary introduction to the relevant contents of the characteristic graphs corresponding to each network topology graph.
[0086] The computer device can determine the adjacency matrix, degree matrix and characteristic matrix corresponding to each network topology graph.
[0087] Among them, the adjacency matrix is a matrix used to represent the adjacent relationship between nodes in the network topology graph; the degree matrix refers to a diagonal matrix, and the elements on the diagonal represent the degree of each node in the network topology graph; the feature matrix refers to the input feature, that is, the feature representation of each node in the network topology graph.
[0088] Furthermore, the computer device can input the adjacency matrix, degree matrix and feature matrix corresponding to each network topology graph into a preset feature extraction network for feature extraction to obtain a feature graph corresponding to each network topology graph.
[0089] Exemplarily, the formula for feature extraction can be expressed as:
[0090] (1)
[0091] in, is the adjacency matrix, ,in, is the identity matrix; is the degree matrix, is the input feature, i.e. the feature representation of the node, are network parameters, is the activation function, is the output of this layer and is also the input of the next layer in the multi-layer graph convolutional neural network, that is, .
[0092] Of course, the feature extraction formula can also be expressed as other variations or equivalent formulas of the above formula (1).
[0093] The following is an exemplary introduction to the relevant contents of the preset feature extraction network.
[0094] The computer device can perform enhancement processing on each network topology map to obtain positive samples corresponding to each network topology map.
[0095] Exemplarily, the enhancement processing may include, but is not limited to, changing the size of the network topology map, blurring the features of the network topology map, and color distortion.
[0096] Optionally, other images from different original images are negative samples.
[0097] Optionally, the contrastive learning model can promote the initial feature extraction network's ability to distinguish positive and negative samples through the loss of contrast between samples. The contrastive loss function is used to measure the similarity or distance between positive and negative sample pairs and guide the feature extraction network to learn better. The calculation formula of the loss function can be expressed as:
[0098] (2)
[0099] Among them, L is the loss function, which promotes the learning of feature extraction network. and is a positive sample, and are positive and negative samples, is the Euclidean distance between two positive samples.
[0100] Of course, the calculation formula of the loss function can also be expressed as other variations or equivalent formulas of the above formula (2).
[0101] Furthermore, the computer device can use positive samples, negative samples and contrastive learning loss functions to train the initial feature extraction network to obtain a preset feature extraction network.
[0102] It can be seen that contrastive learning can maximize the similarity between all positive samples, bring positive samples closer together, and push negative samples away. Positive samples are attribute graphs obtained through graph data enhancement, and negative samples are obtained through different instance processing. By training the feature extraction network through contrastive learning loss, the distance between positive samples after attribute enhancement is shortened, and the distance between negative samples is pushed away, making the final graph sample more affinity and more powerful for clustering.
[0103] S2032: Classify a plurality of users to be classified according to the feature graphs corresponding to the network topology graphs, and determine a target user among the plurality of users to be classified.
[0104] In this step, the computer device can obtain the weight of each node in each network topology diagram according to the feature diagram corresponding to each network topology diagram, and classify multiple users to be classified according to the weight to determine the target user among the multiple users to be classified.
[0105] It can be seen that since the network topology map can reflect the connection relationship and structural characteristics of users in the network, the network topology map can contain multiple types of nodes and connection relationships. Using feature maps to classify users can more accurately capture user behavior patterns and attributes. By learning different network topologies, the model can learn the classification rules of users in different scenarios, enhance its generalization ability in various network environments, and thus improve the accuracy of classification.
[0106] In the embodiment of the present application, the computer device can fully capture the connection relationship between nodes, the degree information of nodes, and the attribute characteristics of nodes in the network topology diagram by inputting each clustered network topology diagram, which is conducive to improving the accuracy of subsequent classification or prediction tasks. Furthermore, the network topology diagram can contain multiple types of nodes and connection relationships. Using feature graphs to classify users can more accurately capture the user's behavior patterns and attributes. By learning different network topology diagrams, the model can learn the classification rules of users in different scenarios, enhance its generalization ability in various network environments, and thus improve the accuracy of classification.
[0107] In one embodiment, based on the above embodiment, FIG4 is a flow chart of a classification method in another embodiment of the present application, and the present embodiment of the present application provides an exemplary introduction to the relevant contents of "classifying multiple users to be classified according to the feature graphs corresponding to each network topology graph, and determining the target user among the multiple users to be classified" in S2032 involved in the above embodiment. The method of the embodiment of the present application may include the following steps.
[0108] S401, assigning corresponding weights to each user to be classified according to the feature graphs corresponding to each network topology graph, and obtaining the weights of each user included in each feature graph.
[0109] In one possible implementation, the computer device may assign corresponding weights to each user to be classified based on the cluster centroid of the feature graph and the distance between each user and the cluster centroid in the feature graph, and obtain the weight of each user contained in each feature graph.
[0110] In this implementation, by calculating the distance between the user and the centroid of the cluster, the similarity or correlation between the user and different categories can be intuitively reflected, and the relationship between the user and the category can be captured more accurately, thereby improving the classification accuracy in the classification task. When the network topology changes or a new user joins, the centroid of the cluster and the distance between the user and the centroid can be recalculated, thereby dynamically updating the user's weight.
[0111] In another possible implementation, the computer device may extract the node attributes of each user to be classified from the feature graph of the network topology graph, and assign weights according to the node attributes of each user in the feature graph.
[0112] Among them, node attributes may include the number of connections of users in the network, interaction frequency, etc. Since different attributes may have different dimensions and value ranges, the attributes can be standardized or normalized, and a weight value can be assigned to each user based on the standardized node attributes.
[0113] In this implementation, the node attributes of the user can fully reflect the user's behavior and characteristics in the network. Assigning weights based on attributes can comprehensively consider the multi-dimensional characteristics of the user and obtain more accurate weight allocation. Different application scenarios may pay more attention to certain attributes of the user. By assigning weights based on node attributes, the weight allocation strategy can be adjusted according to specific needs to adapt to different application scenarios.
[0114] In this way, through any of the above implementation methods, the weight of each user included in each feature graph can be obtained.
[0115] S402, classifying a plurality of users to be classified according to the weight of each user included in each feature graph, and determining a target user among the plurality of users to be classified.
[0116] In this step, the computer device can obtain the target weight corresponding to the user according to the weight of each user included in each feature graph; classify multiple users to be classified, thereby determining the target user among the multiple users to be classified. By comprehensively considering the weights in multiple feature graphs, the attributes and behaviors of the user can be more comprehensively evaluated, thereby improving the accuracy of classification, which is conducive to more accurate identification of the target user.
[0117] In the embodiment of the present application, by assigning a corresponding weight to each user to be classified, the similarity or correlation between the user and different categories can be intuitively reflected, and the relationship between the user and the category can be more accurately captured, thereby improving the classification accuracy in the classification task. Furthermore, by comprehensively considering the weights in multiple feature graphs, the computer device can more comprehensively evaluate the user's attributes and behaviors, thereby improving the accuracy of classification and facilitating more accurate identification of the target user.
[0118] In one embodiment, based on the above embodiment, FIG5 is a flow chart of a classification method in another embodiment of the present application, and the present embodiment provides an exemplary introduction to the relevant contents of "allocating corresponding weights to each user to be classified according to the feature graphs corresponding to each network topology graph, and obtaining the weights of each user included in each feature graph" in S401 involved in the above embodiment. The method of the embodiment of the present application may include the following steps.
[0119] S4011, for each feature graph, determining the cluster centroid of the feature graph and the distance between each user in the feature graph and the cluster centroid.
[0120] Exemplarily, the cluster centroid refers to the average value or center point of all points in a cluster; wherein the cluster centroid can be randomly selected or selected using a preset algorithm.
[0121] The distance between each user and the centroid of the cluster in the feature graph can be calculated using methods such as Euclidean distance and Chebyshev distance.
[0122] In this step, for each feature graph, the computer device can determine the centroid of the cluster of the feature graph and the distance between each user in the feature graph and the centroid of the cluster. By accurately calculating the centroid of the cluster and the distance between the user and the centroid, a data basis can be provided for the subsequent weight allocation, thereby improving the accuracy of classification.
[0123] S4012, assigning a corresponding weight to each user to be classified according to the distance between each user and the centroid of the cluster, and obtaining the weight of each user included in each feature graph.
[0124] In this step, the computer device can assign corresponding weights to each user to be classified according to the distance between each user and the centroid of the cluster through a preset weight allocation strategy to obtain the weight of each user included in each feature graph.
[0125] The preset weight allocation strategy may include but is not limited to an inversely proportional to distance strategy and a Gaussian kernel function strategy.
[0126] It can be seen that the computer device can more accurately reflect the degree of association between the user and different clusters by assigning weights according to the distance between the user and the cluster centroid, which is conducive to more accurately determining the user's category in the subsequent classification step. Furthermore, when new user data is added, the computer device can recalculate the distance between the user and the cluster centroid and update the user's weight accordingly, so that the model can support incremental learning and dynamically adapt to changes in data.
[0127] In the embodiment of the present application, for each feature graph, the computer device can accurately calculate the centroid of the cluster and the distance between the user and the centroid to provide a data basis for the subsequent weight allocation, thereby improving the accuracy of classification. The computer device can more accurately reflect the degree of association between the user and different clusters by allocating weights based on the distance between the user and the centroid of the cluster, which is conducive to more accurately determining the user's category in the subsequent classification step.
[0128] In one embodiment, based on the above embodiment, FIG6 is a flow chart of a classification method in another embodiment of the present application, and the present embodiment provides an exemplary introduction to the relevant contents of "classifying multiple users to be classified according to the weights of each user included in each feature graph, and determining a target user among the multiple users to be classified" in S402 involved in the above embodiment. The method of the embodiment of the present application may include the following steps.
[0129] S4021, for each user, perform a weighted average operation according to the weight of the user in each feature graph to obtain a target weight corresponding to the user.
[0130] Considering that each user in each feature graph has a corresponding weight, the weights of each user included in each feature graph can be summarized.
[0131] For each user, the computer device can perform a weighted average operation based on the weight of the user in each feature graph to obtain the target weight corresponding to the user. It can be seen that by comprehensively considering the weight of each user in multiple feature graphs, the computer device can more comprehensively evaluate the user's attributes and behaviors, thereby improving the accuracy of classification, which is conducive to more accurately identifying the target user and providing strong support for subsequent recommendation, marketing and other activities.
[0132] S4022: Determine a target user among the users to be classified according to the target weights corresponding to the users.
[0133] Among them, target users may include core users and marginal users.
[0134] Core users refer to users who are close to the centroid of a cluster and have high importance or representativeness in the cluster. Core users can be the most active and influential users in the cluster, or their user behaviors and attributes are highly consistent with the representative characteristics of the cluster. Marginal users refer to users who are far away from the centroid of a cluster, or are not consistent with the representative characteristics of the cluster. They can be new users, inactive users, or users who deviate from the core characteristics of the cluster in some aspects.
[0135] Optionally, the computer device may determine users whose target weights are greater than a preset weight threshold as core users; and determine users whose target weights are not greater than the preset weight threshold as marginal users.
[0136] It can be seen that computer devices can classify users into core users and marginal users by weight, achieving more accurate user classification, which is conducive to more accurately understanding the distribution and characteristics of users in the entire user group. Different strategies can be formulated for different types of users. By distinguishing between core users and marginal users, user behavior and preferences can be more accurately predicted.
[0137] In the embodiment of the present application, the computer device can more comprehensively evaluate the attributes and behaviors of the user by comprehensively considering the weight of each user in multiple feature graphs, thereby improving the accuracy of classification. The computer device can classify users into core users and marginal users by weight to achieve more accurate user classification, and by distinguishing between core users and marginal users, the user's behavior and preferences can be more accurately predicted.
[0138] In one embodiment, based on the above embodiment, the present application embodiment provides an exemplary introduction to the content of classifying multiple users to be classified according to the feature graphs corresponding to each network topology graph and determining the target user among the multiple users to be classified. The method of the present application embodiment may include the following steps.
[0139] The feature maps corresponding to each network topology map are enhanced to obtain enhanced feature maps corresponding to each network topology map.
[0140] Exemplarily, enhancement processing refers to amplifying the data, or perturbing the original data representation, so as to enhance the expressive power of the network model, avoid overfitting and other phenomena, and improve the robustness and generalizability of the model.
[0141] A possible implementation of the enhancement process is described below by way of example.
[0142] The feature map is masked, and feature positions in the feature map are randomly selected according to a certain ratio, and the values of these positions are set to 0, which "blocks" or "destroys" the original feature map to a certain extent, requiring the model to make accurate predictions even when some information is missing.
[0143] Correspondingly, a plurality of users to be classified are classified according to the characteristic graphs corresponding to each network topology graph, and a target user among the plurality of users to be classified is determined, including:
[0144] A plurality of users to be classified are classified according to the enhanced feature graphs corresponding to each network topology graph, and a target user among the plurality of users to be classified is determined.
[0145] In this step, the computer device may classify a plurality of users to be classified according to the enhanced feature graphs corresponding to each network topology graph, and determine a target user among the plurality of users to be classified.
[0146] In the embodiment of the present application, the computer device performs enhancement processing on the feature graph, such as masking, noise addition, etc., so that the model can learn a more robust and generalized feature representation, which is conducive to making accurate classification when facing new and unseen data, thereby improving the accuracy of target user classification. Classifying multiple users to be classified according to the enhanced feature graphs corresponding to each network topology graph can significantly improve classification accuracy, generalization ability and robustness.
[0147] In one embodiment, based on the above embodiment, an overall flow diagram of a classification method is provided in an embodiment of the present application. FIG7 is an overall flow diagram of a classification method in an embodiment of the present application. As shown in FIG7 , the method may include the following steps.
[0148] S701, a computer device obtains user information of multiple users to be classified.
[0149] S702, the computer device performs multiple clustering processes on the multiple users to be classified using clustering algorithms with different influencing factors according to the user information of the multiple users to be classified, and obtains a network topology diagram after each clustering.
[0150] Each network topology diagram includes association relationships between multiple users to be classified;
[0151] S703, the computer device determines the adjacency matrix, degree matrix and characteristic matrix corresponding to each network topology graph.
[0152] S704, the computer device inputs the adjacency matrix, degree matrix and feature matrix corresponding to each network topology graph into a preset feature extraction network for feature extraction to obtain a feature graph corresponding to each network topology graph.
[0153] S705, for each feature graph, the computer device determines the cluster centroid of the feature graph and the distance between each user in the feature graph and the cluster centroid.
[0154] S706, the computer device assigns a corresponding weight to each user to be classified according to the distance between each user and the centroid of the cluster, and obtains the weight of each user included in each feature graph.
[0155] S707, for each user, the computer device performs a weighted average operation according to the weight of the user in each feature graph to obtain a target weight corresponding to the user.
[0156] S708: The computer device determines the users whose target weights are greater than a preset weight threshold as core users.
[0157] S709: The computer device determines the user whose target weight is not greater than the preset weight threshold as an edge user.
[0158] It should be noted that the achievable methods and technical effects of each step in the embodiments of the present application can refer to the relevant contents in the above embodiments and will not be repeated here.
[0159] In one embodiment, based on the above embodiment, an overall framework diagram of a classification method is provided in an embodiment of the present application. FIG8 is an overall framework diagram of a classification method in an embodiment of the present application. As shown in FIG8 , the method may include the following steps.
[0160] (1) The computer device obtains user information of multiple users to be classified.
[0161] (2) The computer device uses clustering algorithms with different influencing factors to perform multiple clustering processes on the multiple users to be classified based on the user information of the multiple users to be classified, and obtains a network topology diagram after each clustering.
[0162] (3) Input each clustered network topology map into a preset feature extraction network for feature extraction to obtain a feature map corresponding to each network topology map.
[0163] Among them, the preset feature extraction network can be a multi-layer graph convolutional neural network.
[0164] (4) The feature maps corresponding to each network topology map are enhanced to obtain enhanced feature maps corresponding to each network topology map.
[0165] (5) Classify multiple users to be classified according to the enhanced feature graphs corresponding to each network topology graph, and determine the target users among the multiple users to be classified. The target users include core users and edge users.
[0166] It should be noted that the achievable methods and technical effects of each step in the embodiments of the present application can refer to the relevant contents in the above embodiments and will not be repeated here.
[0167] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0168] Based on the same inventive concept, the embodiment of the present application also provides a classification device for implementing the classification method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more classification device embodiments provided below can refer to the limitations on the classification method above, and will not be repeated here.
[0169] In one embodiment, FIG9 is a schematic diagram of the structure of a classification device in an embodiment of the present application. The classification device provided in the embodiment of the present application can be applied to a computer device. As shown in FIG9, the classification device in the embodiment of the present application includes: an acquisition module 901, a clustering processing module 902 and a classification module 903:
[0170] An acquisition module 901 is used to acquire user information of multiple users to be classified;
[0171] The clustering processing module 902 is used to perform multiple clustering processes on the multiple users to be classified according to the user information of the multiple users to be classified, so as to obtain multiple clustered network topology graphs; each network topology graph includes the association relationship between the multiple users to be classified;
[0172] The classification module 903 is used to classify a plurality of users to be classified according to a plurality of clustered network topology graphs, and determine a target user among the plurality of users to be classified.
[0173] In one embodiment, the clustering processing module 902 is specifically configured to:
[0174] According to the user information of multiple users to be classified, clustering algorithms with different influencing factors are respectively used to perform multiple clustering processes on the multiple users to be classified, and a network topology diagram after each clustering is obtained.
[0175] In one embodiment, the classification module 903 includes a feature extraction unit and a classification unit, wherein:
[0176] A feature extraction unit is used to input each clustered network topology map into a preset feature extraction network for feature extraction to obtain a feature map corresponding to each network topology map;
[0177] The classification unit is used to classify multiple users to be classified according to the feature graphs corresponding to each network topology graph, and determine the target user among the multiple users to be classified.
[0178] In one embodiment, the feature extraction unit is specifically used to:
[0179] Determine the adjacency matrix, degree matrix and characteristic matrix corresponding to each network topology graph;
[0180] The adjacency matrix, degree matrix and feature matrix corresponding to each network topology graph are input into a preset feature extraction network for feature extraction to obtain a feature graph corresponding to each network topology graph.
[0181] In one embodiment, the classification unit includes a weight allocation subunit and a classification subunit, wherein:
[0182] The weight allocation subunit is used to allocate corresponding weights to each user to be classified according to the feature graphs corresponding to each network topology graph, and obtain the weights of each user included in each feature graph;
[0183] The classification subunit is used to classify multiple users to be classified according to the weight of each user included in each feature graph, and determine the target user among the multiple users to be classified.
[0184] In one embodiment, the weight allocation subunit is specifically used for:
[0185] For each feature graph, determine the centroid of the cluster of the feature graph and the distance between each user in the feature graph and the centroid of the cluster;
[0186] According to the distance between each user and the centroid of the cluster, a corresponding weight is assigned to each user to be classified, and the weight of each user included in each feature graph is obtained.
[0187] In one embodiment, the classification subunit is specifically used for:
[0188] For each user, a weighted average operation is performed according to the weight of the user in each feature graph to obtain the target weight corresponding to the user;
[0189] According to the target weights corresponding to the users, the target users among the users to be classified are determined.
[0190] In one embodiment, the classification subunit is specifically used for:
[0191] Determine users whose target weight is greater than a preset weight threshold as core users;
[0192] Users whose target weight is not greater than a preset weight threshold are determined as marginal users.
[0193] In one embodiment, the above device further comprises an enhanced processing module, wherein:
[0194] The enhancement processing module performs enhancement processing on the feature graphs corresponding to each network topology graph to obtain enhanced feature graphs corresponding to each network topology graph;
[0195] Correspondingly, the above classification units are also used for:
[0196] A plurality of users to be classified are classified according to the enhanced feature graphs corresponding to each network topology graph, and a target user among the plurality of users to be classified is determined.
[0197] The classification device provided in this embodiment can execute the technical solution in the above classification method embodiment. Its implementation principle and technical effect are similar and will not be repeated here.
[0198] Each module in the above classification device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0199] In an exemplary embodiment, a computer device is provided, which may include but is not limited to a terminal and a server. FIG. 10 is an internal structure diagram of a computer device in an embodiment of the present application. As shown in FIG. 10, the computer device may include a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store user information of users to be classified, a network topology diagram after clustering, target users among users to be classified, and other information. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external device through a network connection. When the computer program is executed by the processor, the classification method provided in the above embodiment of the present application is implemented.
[0200] Those skilled in the art will understand that the structure shown in FIG. 10 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0201] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0202] Obtain user information of multiple users to be classified;
[0203] Performing multiple clustering processes on the multiple users to be classified according to the user information of the multiple users to be classified, and obtaining multiple clustered network topology graphs; each network topology graph includes association relationships between the multiple users to be classified;
[0204] A plurality of users to be classified are classified according to a plurality of clustered network topology graphs, and a target user among the plurality of users to be classified is determined.
[0205] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0206] According to the user information of multiple users to be classified, clustering algorithms with different influencing factors are respectively used to perform multiple clustering processes on the multiple users to be classified, and a network topology diagram after each clustering is obtained.
[0207] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0208] Input each clustered network topology map into a preset feature extraction network for feature extraction to obtain a feature map corresponding to each network topology map;
[0209] A plurality of users to be classified are classified according to the characteristic graphs corresponding to the network topology graphs, and a target user among the plurality of users to be classified is determined.
[0210] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0211] Determine the adjacency matrix, degree matrix and characteristic matrix corresponding to each network topology graph;
[0212] The adjacency matrix, degree matrix and feature matrix corresponding to each network topology graph are input into a preset feature extraction network for feature extraction to obtain a feature graph corresponding to each network topology graph.
[0213] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0214] According to the feature graphs corresponding to each network topology graph, a corresponding weight is assigned to each user to be classified, and the weight of each user included in each feature graph is obtained;
[0215] The multiple users to be classified are classified according to the weights of the users included in the feature graphs, and a target user among the multiple users to be classified is determined.
[0216] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0217] For each feature graph, determine the centroid of the cluster of the feature graph and the distance between each user in the feature graph and the centroid of the cluster;
[0218] According to the distance between each user and the centroid of the cluster, a corresponding weight is assigned to each user to be classified, and the weight of each user included in each feature graph is obtained.
[0219] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0220] For each user, a weighted average operation is performed according to the weight of the user in each feature graph to obtain the target weight corresponding to the user;
[0221] According to the target weights corresponding to the users, the target users among the users to be classified are determined.
[0222] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0223] Determine users whose target weight is greater than a preset weight threshold as core users;
[0224] Users whose target weight is not greater than a preset weight threshold are determined as marginal users.
[0225] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0226] Performing enhancement processing on the feature graphs corresponding to each network topology graph to obtain enhanced feature graphs corresponding to each network topology graph;
[0227] Classifying multiple users to be classified according to the feature graphs corresponding to each network topology graph, and determining a target user among the multiple users to be classified, including:
[0228] A plurality of users to be classified are classified according to the enhanced feature graphs corresponding to each network topology graph, and a target user among the plurality of users to be classified is determined.
[0229] The computer device provided in this embodiment can execute the technical solution in the above classification method embodiment. Its implementation principle and technical effect are similar and will not be repeated here.
[0230] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0231] Obtain user information of multiple users to be classified;
[0232] Performing multiple clustering processes on the multiple users to be classified according to the user information of the multiple users to be classified, and obtaining multiple clustered network topology graphs; each network topology graph includes association relationships between the multiple users to be classified;
[0233] A plurality of users to be classified are classified according to a plurality of clustered network topology graphs, and a target user among the plurality of users to be classified is determined.
[0234] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0235] According to the user information of multiple users to be classified, clustering algorithms with different influencing factors are respectively used to perform multiple clustering processes on the multiple users to be classified, and a network topology diagram after each clustering is obtained.
[0236] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0237] Input each clustered network topology map into a preset feature extraction network for feature extraction to obtain a feature map corresponding to each network topology map;
[0238] A plurality of users to be classified are classified according to the characteristic graphs corresponding to the network topology graphs, and a target user among the plurality of users to be classified is determined.
[0239] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0240] Determine the adjacency matrix, degree matrix and characteristic matrix corresponding to each network topology graph;
[0241] The adjacency matrix, degree matrix and feature matrix corresponding to each network topology graph are input into a preset feature extraction network for feature extraction to obtain a feature graph corresponding to each network topology graph.
[0242] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0243] According to the feature graphs corresponding to each network topology graph, a corresponding weight is assigned to each user to be classified, and the weight of each user included in each feature graph is obtained;
[0244] The multiple users to be classified are classified according to the weights of the users included in the feature graphs, and a target user among the multiple users to be classified is determined.
[0245] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0246] For each feature graph, determine the centroid of the cluster of the feature graph and the distance between each user in the feature graph and the centroid of the cluster;
[0247] According to the distance between each user and the centroid of the cluster, a corresponding weight is assigned to each user to be classified, and the weight of each user included in each feature graph is obtained.
[0248] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0249] For each user, a weighted average operation is performed according to the weight of the user in each feature graph to obtain the target weight corresponding to the user;
[0250] According to the target weights corresponding to the users, the target users among the users to be classified are determined.
[0251] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0252] Determine users whose target weight is greater than a preset weight threshold as core users;
[0253] Users whose target weight is not greater than a preset weight threshold are determined as marginal users.
[0254] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0255] Performing enhancement processing on the feature graphs corresponding to each network topology graph to obtain enhanced feature graphs corresponding to each network topology graph;
[0256] Classifying multiple users to be classified according to the feature graphs corresponding to each network topology graph, and determining a target user among the multiple users to be classified, including:
[0257] A plurality of users to be classified are classified according to the enhanced feature graphs corresponding to each network topology graph, and a target user among the plurality of users to be classified is determined.
[0258] The computer program in the computer-readable storage medium provided in this embodiment can be used to execute the technical solution in the above-mentioned classification method embodiment when executed by a processor. Its implementation principle and technical effect are similar and will not be repeated here.
[0259] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0260] Obtain user information of multiple users to be classified;
[0261] Performing multiple clustering processes on the multiple users to be classified according to the user information of the multiple users to be classified, and obtaining multiple clustered network topology graphs; each network topology graph includes association relationships between the multiple users to be classified;
[0262] A plurality of users to be classified are classified according to a plurality of clustered network topology graphs, and a target user among the plurality of users to be classified is determined.
[0263] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0264] According to the user information of multiple users to be classified, clustering algorithms with different influencing factors are respectively used to perform multiple clustering processes on the multiple users to be classified, and a network topology diagram after each clustering is obtained.
[0265] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0266] Input each clustered network topology map into a preset feature extraction network for feature extraction to obtain a feature map corresponding to each network topology map;
[0267] A plurality of users to be classified are classified according to the characteristic graphs corresponding to the network topology graphs, and a target user among the plurality of users to be classified is determined.
[0268] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0269] Determine the adjacency matrix, degree matrix and characteristic matrix corresponding to each network topology graph;
[0270] The adjacency matrix, degree matrix and feature matrix corresponding to each network topology graph are input into a preset feature extraction network for feature extraction to obtain a feature graph corresponding to each network topology graph.
[0271] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0272] According to the feature graphs corresponding to each network topology graph, a corresponding weight is assigned to each user to be classified, and the weight of each user included in each feature graph is obtained;
[0273] The multiple users to be classified are classified according to the weights of the users included in the feature graphs, and a target user among the multiple users to be classified is determined.
[0274] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0275] For each feature graph, determine the centroid of the cluster of the feature graph and the distance between each user in the feature graph and the centroid of the cluster;
[0276] According to the distance between each user and the centroid of the cluster, a corresponding weight is assigned to each user to be classified, and the weight of each user included in each feature graph is obtained.
[0277] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0278] For each user, a weighted average operation is performed according to the weight of the user in each feature graph to obtain the target weight corresponding to the user;
[0279] According to the target weights corresponding to the users, the target users among the users to be classified are determined.
[0280] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0281] Determine users whose target weight is greater than a preset weight threshold as core users;
[0282] Users whose target weight is not greater than a preset weight threshold are determined as marginal users.
[0283] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0284] Performing enhancement processing on the feature graphs corresponding to each network topology graph to obtain enhanced feature graphs corresponding to each network topology graph;
[0285] Classifying multiple users to be classified according to the feature graphs corresponding to each network topology graph, and determining a target user among the multiple users to be classified, including:
[0286] A plurality of users to be classified are classified according to the enhanced feature graphs corresponding to each network topology graph, and a target user among the plurality of users to be classified is determined.
[0287] The computer program in the computer program product provided in this embodiment can be used to execute the technical solution in the above-mentioned classification method embodiment when the computer program is executed by the processor. Its implementation principle and technical effects are similar and will not be repeated here.
[0288] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0289] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0290] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A classification method, characterized in that: The method comprises: Obtain user information of multiple users to be classified; Performing multiple clustering processes on the multiple users to be classified according to the user information of the multiple users to be classified, so as to obtain multiple clustered network topology graphs; each of the network topology graphs includes association relationships between the multiple users to be classified; The multiple users to be classified are classified according to the multiple clustered network topology graphs, and a target user among the multiple users to be classified is determined.
2. The method according to claim 1, characterized in that The step of performing multiple clustering processes on the multiple users to be classified according to the user information of the multiple users to be classified to obtain multiple clustered network topology graphs includes: According to the user information of the multiple users to be classified, clustering algorithms with different influencing factors are respectively used to perform multiple clustering processes on the multiple users to be classified, so as to obtain a network topology diagram after each clustering.
3. The method according to claim 1 or 2, characterized in that: The step of classifying the plurality of users to be classified according to the plurality of clustered network topology graphs and determining a target user among the plurality of users to be classified includes: Inputting each of the clustered network topology graphs into a preset feature extraction network for feature extraction to obtain a feature graph corresponding to each of the network topology graphs; The multiple users to be classified are classified according to the feature graphs corresponding to the network topology graphs, and a target user among the multiple users to be classified is determined.
4. The method according to claim 3, characterized in that The step of inputting each of the clustered network topology graphs into a preset feature extraction network for feature extraction to obtain a feature graph corresponding to each of the network topology graphs includes: Determine the adjacency matrix, degree matrix and characteristic matrix corresponding to each of the network topology graphs; The adjacency matrix, degree matrix and feature matrix corresponding to each of the network topology graphs are input into a preset feature extraction network for feature extraction to obtain feature graphs corresponding to each of the network topology graphs.
5. The method according to claim 3, characterized in that: The classifying the plurality of users to be classified according to the feature graphs corresponding to the network topology graphs, and determining a target user among the plurality of users to be classified, comprises: According to the feature graphs corresponding to the network topology graphs, a corresponding weight is assigned to each of the users to be classified, so as to obtain the weight of each user included in each of the feature graphs; The multiple users to be classified are classified according to the weights of the users included in the feature graphs, and a target user among the multiple users to be classified is determined.
6. The method according to claim 5, characterized in that The step of assigning a corresponding weight to each of the to-be-classified users according to the feature graphs corresponding to each of the network topology graphs, and obtaining the weight of each user included in each of the feature graphs, comprises: For each of the feature graphs, determining the centroid of the cluster of the feature graph and the distance between each of the users in the feature graph and the centroid of the cluster; According to the distance between each of the users and the centroid of the cluster, a corresponding weight is allocated to each of the users to be classified, so as to obtain the weight of each user included in each of the feature graphs.
7. The method according to claim 5, characterized in that The classifying the plurality of users to be classified according to the weights of the users included in the feature graphs, and determining the target user among the plurality of users to be classified, comprises: For each user, a weighted average operation is performed according to the weight of the user in each of the feature graphs to obtain a target weight corresponding to the user; According to the target weights corresponding to the users, a target user among the users to be classified is determined.
8. The method according to claim 7, characterized in that The target users include core users and marginal users, and determining the target users among the users to be classified according to the target weights corresponding to the users includes: Determine the user whose target weight is greater than a preset weight threshold as the core user; The users whose target weights are not greater than the preset weight threshold are determined as the marginal users.
9. The method according to claim 3, characterized in that: The method further comprises: Performing enhancement processing on the feature graphs corresponding to the network topology graphs to obtain enhanced feature graphs corresponding to the network topology graphs; The classifying the plurality of users to be classified according to the feature graphs corresponding to the network topology graphs, and determining a target user among the plurality of users to be classified, comprises: The multiple users to be classified are classified according to the enhanced feature graphs corresponding to the network topology graphs, and a target user among the multiple users to be classified is determined.
10. A classification device, characterized in that: The device comprises: An acquisition module, used to acquire user information of multiple users to be classified; A clustering processing module, used for performing multiple clustering processes on the multiple users to be classified according to the user information of the multiple users to be classified, so as to obtain multiple clustered network topology graphs; each of the network topology graphs includes the association relationship between the multiple users to be classified; The classification module is used to classify the multiple users to be classified according to the multiple clustered network topology diagrams, and determine the target user among the multiple users to be classified.
11. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 9 are implemented.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.
13. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.
