A commodity classification method based on balance theory

By using feature preprocessing based on equilibrium theory and sparse matrix operations, a robust spectral domain graph neural network was designed, which solved the efficiency and robustness problems of graph neural networks in heterogeneous graphs and large graphs, and achieved efficient and highly generalizable product classification.

CN115965434BActive Publication Date: 2026-11-24RENMIN UNIVERSITY OF CHINA
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211472798.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-18
Publication Date
2026-11-24
Estimated Expiration
2042-11-18

AI Technical Summary

Technical Problem

Existing graph neural networks perform poorly in heterogeneous graph scenarios, are susceptible to graph structure attacks, and have low computational efficiency, making it difficult to scale to large graphs for effective application.

Method used

By employing a balance theory-based approach, node features are preprocessed using a feature transformation module and a spectral domain graph filter. Optimization is achieved using sparse matrix operations and cross-entropy loss function, resulting in a robust and scalable spectral domain graph neural network that maintains good prediction accuracy in heterogeneous graphs and against graph structure attacks.

Benefits of technology

It achieves efficient classification with low complexity in large graphs, has good generalization ability and robustness, and can maintain high prediction accuracy when facing abnormal nodes and graph structure attacks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115965434B_ABST
    Figure CN115965434B_ABST
Patent Text Reader

Abstract

This invention implements a product classification method based on equilibrium theory using methods from the field of network security. Product classification is achieved through eight steps: Step S1, modeling objects and their relationships in the target scene using a graph data structure; Step S2, reducing node features to h dimensions; Step S3, performing message propagation on the transformed feature matrix; Step S4, repeating Step S3; Step S5, defining a weighted summation of the learnable coefficients of the propagated feature matrix sequence; Step S6, defining and selecting hyperparameters such as the cross-entropy loss function, the learner's learning rate, and the L2 regularization term; Step S7, repeating steps S2 to S6; and Step S8, returning the predicted product category based on the result of S7. Compared to general graph robustness methods, the method provided by this invention offers better theoretical explanatory power from a spectral domain perspective.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of artificial intelligence technology, and in particular to a product classification method based on equilibrium theory. Background Technology

[0002] With the advent of the big data era, the volume of data has increased dramatically, and the types of data have become more diverse. There exists both structured data such as images and text, and unstructured graph data, such as social networks and biological protein molecular structures. To address the representation learning problem on graph data, graph neural network (Graph Neural Network) technology has been proposed and has achieved excellent performance in tasks such as graph node classification and graph classification. In practical applications, Graph Neural Networks are widely used in predicting the properties of biomolecules, mining social network data, fraud detection, and recommender system design, and can also be seen in the realistic modeling of physical and chemical systems.

[0003] A fraud detection method based on graph neural networks (GNNs) establishes users as nodes and models user relationships, business relationships, and other relationships using a graph structure. Then, based on the graph isomorphism assumption, a relevant GNN is used to learn abstract representations of each node, identifying nodes whose representations differ from those of legitimate users as fraudulent / abnormal nodes. Graph neural networks can effectively utilize the interaction relationships between nodes, demonstrating significant effectiveness in handling graph data-related problems.

[0004] Graph homonymy means that connected nodes in a graph structure have similar features and labels. Graph homonymy is often a prerequisite for designing graph neural networks. However, in real-world networks, graph homonymy is not always satisfied. Take a product classification network as an example: the relationship between users and products includes likes and dislikes, both of which reflect effective interactions between products and users, but their forms of expression differ and are not always homonymous. Early graph neural networks often corresponded to low-pass filters in the spectral domain, smoothing graph node features between adjacent nodes. Such graph neural networks perform poorly when dealing with heteronymous graphs. A more challenging problem is exploring whether a more robust graph structure information extractor exists, allowing the same model to effectively utilize graph structure information from both sides. To date, no graph neural network possesses this capability.

[0005] Furthermore, traditional graph neural networks (GNNs) are vulnerable to graph structure attacks. Changes in the graph structure can significantly degrade the performance of a GNN, demonstrating its vulnerability to structural attacks. Graph attacks can be categorized by attack method into graph structure attacks, graph feature attacks, or a combination of both. For graph structure attacks, based on attack time, they can be classified as attacks targeting the entire graph or attacks targeting only the test set. According to the attacker's understanding of the attacked model, they can be categorized as black-box attacks, white-box attacks, and gray-box attacks. In real-world applications, high-quality graph structures cannot always be guaranteed. For example, in consumer networks, numerous inactive or fraudulent user nodes may establish abnormal connections with regular users, or legitimate user accounts may be stolen, leading to modifications of normal user relationships. These all test the quality of the graph structure and the robustness of the GNN. In the product user classification problem, there are numerous abnormal nodes, inactive nodes, and disordered graph structures. If the GNN does not include robust designs to address these issues, its performance will suffer a severe decline, making it difficult to demonstrate its excellent graph learning capabilities. In addition, in product classification tasks, users' "likes" and "dislikes" can both reflect users' preferences for products. However, existing algorithms usually do not have the ability to directly generalize to these two relationships, and instead rely on the isomatch relationship.

[0006] Existing robust graph neural networks are mostly defined in the spatial domain, resulting in relatively complex algorithms with high time and space costs, making them difficult to perform well on large graphs. In real-world product user classification networks, the number of nodes and edges often reaches hundreds of millions, making overly complex robust graph neural network designs difficult to apply. For example, the ProGNN method requires space costs on the order of the square of the number of graph nodes, making it difficult to scale to tasks with hundreds of thousands or more. Spectral domain methods offer good scalability, but currently, there are few robust graph neural networks based on spectral domain methods, and current spectral domain methods lack robustness guarantees when there are significant differences in graph compatibility between the training and test graphs. Designing corresponding spectral domain graph neural networks for these scenarios remains a challenge.

[0007] The following existing technologies exist to address the above problems: One existing technology is GNNGuard. This technology belongs to the field of spatial graph neural network technology. Spatial graph neural network technology is based on graph convolutional neural networks and focuses on the design of the graph propagation process. This technology uses an attention mechanism to calculate the attention coefficients between nodes during graph propagation and performs message propagation based on these coefficients. Dissimilar parts of messages between nodes are discarded, thus achieving a more robust message propagation process.

[0008] The disadvantages of the existing technology are: (1) There is no guarantee of effectiveness in the case of heterogeneous graphs. Technology 1 is based on the spatial domain perspective and still relies on the assumption of homogeneity between networks. If network information is presented in a heterogeneous manner, this technology is difficult to preserve effective heterogeneous information during message propagation. (2) This method is highly dependent on the quality of node features and has low computational efficiency. For each pair of connected nodes, this method needs to calculate the attention between nodes during computation, which is inefficient in real-world scenarios.

[0009] The second existing technology is ProGNN. This technology is based on graph structure learning theory and aims to improve the representational power of existing graph neural networks by learning more robust graph network structures and removing potentially contaminated graph structures. This method incorporates the requirements for the sparsity of the graph structure and the smoothness of information between graph structures into the loss function, uses projective gradient descent for parameter optimization, and performs graph structure learning across the entire graph. The learned graph structure is then used as the input structure for a downstream graph neural network, which classifies the nodes using the terminal graph neural network.

[0010] The disadvantages of the existing technology 2 are: (1) Low computational efficiency. The process of retraining the graph structure requires a space complexity of O(n^2), which is only applicable to small graphs with tens of thousands of nodes and is difficult to apply to real large graph machine learning. (2) Lack of ability to identify multiple interaction relationships, and also relies on the isomorphism assumption. (3) Lack of scalability. If a new batch of nodes is added or deleted, the graph structure needs to be re-examined. This invention aims to address the aforementioned shortcomings by defining a robust, scalable graph neural network with spectral domain interpretability. This invention considers a semi-supervised node classification task. Given an adjacency matrix A and features X on the training set, the task is to predict the label y on the test set. This invention, during classification, can improve the prediction accuracy of existing spectral domain methods on the test set in the face of non-targeted graph structure attacks.

[0011] This invention demonstrates portability across product user networks with varying relationships, improving the generalization ability of graph neural networks on graph structures with dissimilar isomorphisms. Furthermore, the method exhibits good robustness against anomalous nodes and graph structure attacks, remaining relatively unaffected by abnormal network structures. The method should possess low algorithmic complexity to better apply to large graphs in real-world scenarios. More specifically, if misleading edges, edges with multiple meanings (like / dislike), or attacker accounts exist in the product classification task, polluting the graph structure network quality, this invention should be able to mitigate the impact of these interfering factors, obtaining relatively accurate and clean node representations. Summary of the Invention

[0012] To address this, this invention first proposes a product classification method based on equilibrium theory, achieving product classification through eight steps. For products on shopping websites targeting different consumer segments within the high-end market, they can be further subdivided into mid-to-high-end products, mid-range products, and low-end products, to formulate corresponding product marketing and promotion strategies. For specific problems, the input data includes product attributes such as price, sales volume, product category, product origin, and manufacturer, as well as user consumption habits, forming node features; user purchase records, user preferences and aversions to products forming a product-user network; and the known product positioning of some products. The final output is the product positioning of the product to be predicted. A product classification method based on equilibrium theory is characterized by: classifying products through eight steps; for products on shopping websites targeting different consumer groups within the high-end segment, they can be further subdivided into mid-to-high-end products, mid-end products, and low-end products, to formulate corresponding product marketing and promotion strategies. For specific problems, the input data includes product attributes such as price, sales volume, product category, product origin, and manufacturer; user consumption habits forming node features; user purchase records; user preferences and aversions forming a product-user network; and known product positioning for some products; the final output is the product positioning of the product to be predicted. Step S1: Based on the product and user information, model the objects and their relationships in the target scenario using a graph data structure, representing them as a graph. The object is... The nodes in the graph represent the relationships between the objects. Edges in the matrix can be represented using an adjacency matrix. This indicates that a node object has node characteristics and node labels, denoted as follows: and .

[0013] Taking a product classification task on a shopping website as an example, information about products and users is collected and added to a database. This information includes attributes such as the product's origin, production date, and price, and the user's age and cumulative spending. In the product classification task, both products and users are considered nodes in a network. By collecting user purchase behavior data, a user-product network is established. Feasible graph construction methods include connecting user nodes to product nodes if a user has purchased a product. In the product classification task, the product's subcategories serve as node labels. Similar network modeling methods can be transferred to other tasks such as user classification.

[0014] In the specific task, products with known subcategories are assigned to the training set. A small subset of nodes from the training set are assigned to the validation set for selecting training models. Unknown products with subcategories to be predicted are assigned to the test set. During model training, the training set nodes are used for model training, while the features of the test set nodes and their connections with other nodes are used for label prediction.

[0015] Step S2, in the graph structure First, a feature transformation module is used to preprocess node features. This module can choose from algorithms such as the multilayer perceptron (MPB) or tree models for feature preprocessing. This process allows for flexible embedding of different feature transformation algorithms for different types of nodes, such as products or users, transforming the original features of each node, which have different dimensions and attributes, to the same dimension. Taking the MPB algorithm as an example, the MPB algorithm performs feature transformation on the original feature X, denoted as... ,like have Multilayer perceptrons reduce node features to 3D features through two linear layers and an activation layer. Dimension, among which This represents the preprocessed feature dimensions. Typically much smaller This results in smaller storage space occupied by the processed features and lower complexity during subsequent graph propagation. ReLU is used as the activation function, specifically in the form: Preprocessed features can be stored in a database and retrieved for learning during the feature propagation stage; Step S3 involves retrieving the features to be learned from the database. Message propagation is then performed on the transformed feature matrix, which consists of two sub-steps: Step S31, record This is a diagonal matrix. The diagonal elements represent the degrees of the corresponding nodes. The normalized adjacency matrix is ​​calculated using the diagonal matrix and the adjacency matrix. ; Step S32, the Laplacian matrix is ​​defined as the degree matrix minus the adjacency matrix. Let... Let be the Laplace matrix, denoted as To normalize the Laplace matrix, using As a single propagation matrix, a symmetric graph filter is established in the spectral domain.

[0016] Step S33: Using a symmetric graph filter on a node-by-node basis, propagate the graph signal to obtain the propagated feature matrix. For each node In other words, its transformed characteristics are matrices. The OK; Step S4, set the maximum number of propagation attempts to be [value]. .repeat In step S3, the feature propagation matrix is ​​then processed. Propagation yields the feature matrix By summing all the feature propagation matrices, we obtain the sequence of even-order feature propagation matrices. ; and by first calculating the first-order propagation Then continue calculating the second propagation. This reduces the algorithm's space cost. Step S5: Define the learnable coefficients for the propagated feature matrix sequence. The final feature matrix is ​​obtained by weighted summation. ,initialization Then, each propagation feature matrix is ​​obtained. , then Accumulate to In step S6, the cross-entropy loss function is defined and calculated. and The loss is calculated, and the backpropagation algorithm is used to optimize the multilayer perceptron and learnable weighted parameters based on this loss. The Adam optimizer is used, and the learning rate and L2 regularization term of the optimizer are defined as hyperparameters. For each iteration, the gradient of the learnable parameters with respect to the loss in that iteration is obtained. The search step size is determined according to the method based on the learning rate and historical update momentum in the Adam algorithm. The direction of this update is determined according to the direction of the historical update gradient and the direction of the current gradient. Then, the parameters are updated along the update direction with a search step size of units. A parameter penalty term based on L2 regularization is added to the loss function to alleviate the model overfitting problem. In the selection of hyperparameters, the hyperparameters are selected based on the validation set. During the model training process, a portion of the nodes are divided from the training set as the validation set. The hyperparameters corresponding to the model that performs best on the validation set in all iterations are selected as the final model hyperparameters. In step S7, steps S2 to S6 are repeated until the algorithm shows no performance improvement on the classification results on the validation set within a certain number of iterations, at which point the model parameter update is stopped. The best model selected in step S6 is applied to each product node, and the resulting low-dimensional feature representations of the nodes are stored in the database as the final node representations.

[0017] In step S8, the final node classification representation in the input database is used to score the product to be predicted using an exponentially normalized scoring function, predicting its sub-category and obtaining the probability that the product belongs to each sub-category. Specifically, the category corresponding to the maximum value in the vector is returned using the vector output in step S7.

[0018] The coefficients of the propagated feature matrix sequence are initialized using hyperparameters. The coefficients of the initialized matrix sequence are: .

[0019] The technical effects to be achieved by this invention are as follows: This invention applies technology to product user classification. Compared to traditional methods, this method has the following inherent advantages: (1) The algorithm has low time and space complexity. During graph message propagation, this scheme only needs to calculate the multiplication of sparse matrices and vectors, and the space and time complexity are linearly related to the number of nodes and edges. Compared with the previous algorithm that required complexity on the order of the square of the number of nodes, this method has greatly improved and guaranteed efficiency.

[0020] (2) This method can generalize between homologous and heterologous networks. Traditional methods have high requirements for the consistency of homologousness between training and test graphs. Once there is a difference in homologousness between the two, the performance of the trained model on the test set will drop significantly. This method overcomes the limitations of traditional methods in this task and has better generalization ability on graphs with different homologousness.

[0021] (3) This method has better robustness against graph structure attacks compared to general spectral domain models. When there are abnormal connections in the network or when facing malicious structure attacks, this method can achieve better average prediction accuracy.

[0022] (4) Compared with the general graph robustness method, the present invention has better theoretical explanatory power from the perspective of the spectral domain. Attached Figure Description

[0023] Figure 1 Invention technology flowchart. Detailed Implementation

[0024] The following are preferred embodiments of the present invention, which are described in conjunction with the accompanying drawings. However, the present invention is not limited to these embodiments.

[0025] This invention proposes a commodity classification method based on equilibrium theory.

[0026] like Figure 1 As shown, the present invention includes steps S1-S8.

[0027] A product classification method based on equilibrium theory is characterized by: classifying products through eight steps; for products on shopping websites targeting different consumer groups within the high-end segment, they can be further subdivided into mid-to-high-end products, mid-end products, and low-end products, to formulate corresponding product marketing and promotion strategies. For specific problems, the input data includes product attributes such as price, sales volume, product category, product origin, and manufacturer; user consumption habits forming node features; user purchase records; user preferences and aversions forming a product-user network; and known product positioning for some products; the final output is the product positioning of the product to be predicted. Step S1: Based on the product and user information, model the objects and their relationships in the target scenario using a graph data structure, representing them as a graph. The object is... The nodes in the graph represent the relationships between the objects. Edges in the matrix can be represented using an adjacency matrix. This indicates that a node object has node characteristics and node labels, denoted as follows: and .

[0028] Taking a product classification task on a shopping website as an example, information about products and users is collected and added to a database. This information includes attributes such as the product's origin, production date, and price, and the user's age and cumulative spending. In the product classification task, both products and users are considered nodes in a network. By collecting user purchase behavior data, a user-product network is established. Feasible graph construction methods include connecting user nodes to product nodes if a user has purchased a product. In the product classification task, the product's subcategories serve as node labels. Similar network modeling methods can be transferred to other tasks such as user classification.

[0029] In the specific task, products with known subcategories are assigned to the training set. A small subset of nodes from the training set are assigned to the validation set for selecting training models. Unknown products with subcategories to be predicted are assigned to the test set. During model training, the training set nodes are used for model training, while the features of the test set nodes and their connections with other nodes are used for label prediction.

[0030] Step S2, in the graph structure First, a feature transformation module is used to preprocess node features. This module can choose from algorithms such as the multilayer perceptron (MPB) or tree models for feature preprocessing. This process allows for flexible embedding of different feature transformation algorithms for different types of nodes, such as products or users, transforming the original features of each node, which have different dimensions and attributes, to the same dimension. Taking the MPB algorithm as an example, the MPB algorithm performs feature transformation on the original feature X, denoted as... ,like have Multilayer perceptrons reduce node features to 3D features through two linear layers and an activation layer. Dimension, among which This represents the preprocessed feature dimensions. Typically much smaller This results in smaller storage space occupied by the processed features and lower complexity during subsequent graph propagation. ReLU is used as the activation function, specifically in the form: Preprocessed features can be stored in a database and retrieved for learning during the feature propagation stage; Step S3 involves retrieving the features to be learned from the database. Message propagation is then performed on the transformed feature matrix, which consists of two sub-steps: Step S31, record This is a diagonal matrix. The diagonal elements represent the degrees of the corresponding nodes. The normalized adjacency matrix is ​​calculated using the diagonal matrix and the adjacency matrix. ; Step S32, the Laplacian matrix is ​​defined as the degree matrix minus the adjacency matrix. Let... Let be the Laplace matrix, denoted as To obtain the normalized Laplace matrix, using As a single propagation matrix, a symmetric graph filter is established in the spectral domain.

[0031] Step S33: Using a symmetric graph filter on a node-by-node basis, propagate the graph signal to obtain the propagated feature matrix. For each node In other words, its transformed characteristics are matrices. The OK; Step S4, set the maximum number of propagation attempts to be [value]. .repeat In step S3, the feature propagation matrix is ​​then processed. Propagation yields the feature matrix By summing all the feature propagation matrices, we obtain the sequence of even-order feature propagation matrices. ; and by first calculating the first-order propagation Then continue calculating the second propagation. This reduces the algorithm's space cost. It is worth noting that in actual calculations, it is not necessary to calculate the dense matrix. Instead, first calculate the first-order propagation. Then continue calculating the second propagation. This effectively reduces the algorithm's space cost from the square of the number of nodes to the number of edges. Since graph-structured data is often sparse, with the number of edges being much smaller than the square of the number of nodes, the algorithm can save a significant amount of space.

[0032] Step S5: Define the learnable coefficients for the propagated feature matrix sequence. The final characteristic matrix is ​​obtained by weighted summation. .

[0033] It is worth noting that the weighted summation calculation does not require simultaneous storage. A feature propagation sequence can be initialized. Then, each propagation feature matrix is ​​obtained. , then Accumulate to Thus, throughout the entire propagation and summation process, only one feature propagation matrix and one accumulation matrix need to be stored simultaneously, further compressing the memory and GPU memory space required by the algorithm.

[0034] This invention uses a personalized random walk method to initialize the coefficients of a matrix sequence. This method uses hyperparameters. The coefficients of the initialized matrix sequence are: In subsequent learning, the sequence matrix coefficients participate in backpropagation, and are updated based on the gradient starting from the initial values.

[0035] In step S6, the cross-entropy loss function is defined and calculated. and The loss is calculated, and the backpropagation algorithm is used to optimize the multilayer perceptron and learnable weighted parameters based on this loss. The Adam optimizer is used, and the learning rate and L2 regularization term of the optimizer are defined as hyperparameters. For each iteration, the gradient of the learnable parameters with respect to the loss in that iteration is obtained. The search step size is determined according to the method based on the learning rate and historical update momentum in the Adam algorithm. The direction of this update is determined according to the direction of the historical update gradient and the direction of the current gradient. Then, the parameters are updated along the update direction with a search step size of units. A parameter penalty term based on L2 regularization is added to the loss function to alleviate the model overfitting problem. In the selection of hyperparameters, the hyperparameters are selected based on the validation set. During the model training process, a portion of the nodes are divided from the training set as the validation set. The hyperparameters corresponding to the model that performs best on the validation set in all iterations are selected as the final model hyperparameters. In step S7, steps S2 to S6 are repeated until the algorithm shows no performance improvement on the classification results on the validation set within a certain number of iterations, at which point the model parameter update is stopped. The best model selected in step S6 is applied to each product node, and the resulting low-dimensional feature representations of the nodes are stored in the database as the final node representations.

[0036] In step S8, the final node classification representation in the input database is used to score the product to be predicted using an exponentially normalized scoring function, predicting its sub-category and obtaining the probability that the product belongs to each sub-category. Specifically, the category corresponding to the maximum value in the vector is returned using the vector output in step S7.

Claims

1. A commodity classification method based on equilibrium theory, characterized in that: Product categorization is achieved through 8 steps: Step S1: Collect product and user information from shopping websites, add it to the database by number, and the product and user information includes: product place of origin, production date, price attribute, user age, and cumulative consumption amount. In the product classification task, both products and users are regarded as nodes in the network. By collecting users' product purchase behavior, a user-product network is established. The specific graph construction method is as follows: Based on product and user information, the objects and their relationships in the target scenario are modeled using a graph data structure and represented as a graph. In this context, the objects in the target scene are graphs. The nodes in the graph represent the relationships between the objects. Edges in the array are represented using an adjacency matrix. This indicates that a node object has node characteristics and node labels, denoted as follows: and If a user has purchased a product, an edge is connected between the user node and the product node, and the product's subcategories are the node labels. Then, products with known subcategories are added to the training set, and a small number of nodes in the training set are added to the validation set to select the training model. Unknown products with subcategories to be predicted are the test set nodes. In model training, the training set nodes are used for model training, and the features of the test set nodes and their connections with other nodes are used for label prediction. Step S2, in the figure First, a feature transformation module is used to preprocess node features, and the feature transformation module selects a multilayer perceptron algorithm for feature preprocessing. The multilayer perceptron algorithm performs feature transformation on the original feature X, and the transformed feature is denoted as X. ,like have The dimensionality of the features is reduced using a feature transformation module; a multilayer perceptron is used to further reduce the dimensionality of the node features through two linear layers and an activation layer. Dimension, among which The preprocessed feature dimension is smaller than the original feature dimension; ReLU is used as the activation function, specifically in the form of: The preprocessed features are stored in the database and then retrieved for learning during the feature propagation stage. Step S3 involves retrieving the features to be learned from the database and performing message propagation on the transformed feature matrix. This step consists of three sub-steps: Step S31, record The adjacency matrix is ​​a diagonal matrix where the diagonal elements represent the degrees of the corresponding nodes. The normalized adjacency matrix is ​​calculated using the diagonal matrix and the adjacency matrix. ; Step S32, the Laplace matrix is ​​defined as the angle matrix minus the adjacency matrix, denoted as... Let be the Laplace matrix, denoted as To obtain the normalized Laplace matrix, using As a single propagation matrix, a graph filter symmetric in the spectral domain is established; Step S33: Using a symmetric graph filter on a node-by-node basis, propagate the graph signal to obtain the propagated feature matrix. For each node In other words, its transformed characteristics are matrices. The OK; Step S4, set the maximum number of propagation attempts to be [value]. ;repeat In step S3, the feature propagation matrix is ​​then processed. Propagation yields the feature matrix By summing all the feature propagation matrices, we obtain the sequence of even-order feature propagation matrices. In actual calculations, the first-order propagation is calculated first. Then continue calculating the second propagation. This reduces the algorithm's space cost. Step S5: Define the learnable coefficients for the propagated feature matrix sequence. Define the even-order feature propagation matrix sequence as Define an even-order symmetric graphical filter. Perform graph filtering to obtain The filtered feature matrix is ​​calculated by weighted summation. ,initialization Then, each propagation feature matrix is ​​obtained. , then Accumulate to In step S6, the cross-entropy loss function is defined and calculated. and The loss is calculated, and the backpropagation algorithm is used to optimize the multilayer perceptron and learnable weighted parameters based on this loss. The Adam optimizer is used, and the learning rate and L2 regularization term of the optimizer are defined as hyperparameters. For each iteration, the gradient of the learnable weighted parameters with respect to the loss in that iteration is obtained. The search step size is determined according to the method based on the learning rate and historical update momentum in the Adam algorithm. The direction of this update is determined according to the direction of the historical update gradient and the direction of the current gradient. Then, the parameters are updated along the update direction with a search step size of units. A parameter penalty term based on L2 regularization is added to the loss function to alleviate the model overfitting problem. In the selection of hyperparameters, the hyperparameters are selected based on the validation set. During the model training process, a portion of the nodes are divided from the training set as the validation set. The hyperparameters corresponding to the model that performs best on the validation set in all iterations are selected as the final model hyperparameters. In step S7, repeat steps S2 to S6 until the algorithm does not improve the classification results on the validation set within a certain number of iterations, then stop updating the model parameters; apply the best model selected in step S6 to each product node, and store the low-dimensional feature representation of the obtained node in the database as the final node representation. In step S8, the final node classification representation in the input database is used to score the product to be predicted using the exponentially normalized scoring function, predict its sub-category, and obtain the probability that the product belongs to each sub-category. Specifically, the product category corresponding to the maximum value in the vector is returned using the vector output in step S7.

2. The commodity classification method based on equilibrium theory as described in claim 1, characterized in that: The coefficients of the propagated feature matrix sequence are initialized using hyperparameters. The coefficients of the initialized matrix sequence are: .

Citation Information

Patent Citations

  • Object classification method and device, electronic equipment and storage medium

    CN115130554A

  • Anomaly detection method and system based on large-scale graph neural network

    CN115310540A