A multi-layer semi-supervised classification method
Through a multi-layer semi-supervised classification method, using graph topology and convolutional neural networks, the problems of inaccurate feature expression and limited application scope in the existing technology are solved, and the classification accuracy and applicability are improved.
Patent Information
- Application Number
- CN201811619744.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-12-27
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2038-12-27
AI Technical Summary
Existing graph-based semi-supervised classification methods suffer from the problems of insufficiently accurate feature expression and too small or too large sample size, resulting in low classification accuracy and limited application scope.
Using a multi-layer semi-supervised classification method, by constructing a data set containing graph topology, extracting node information and feature vectors and adjacency matrices composed of edges, a convolutional neural network model is established, and forward propagation and back propagation are used for iterative training. Combined with the cross-entropy loss function, the weight matrix is updated, and second-order neighbors are introduced to expand the calculation range and improve the classification accuracy.
It improves the classification accuracy and the application scope of the data set, making it suitable for classification regardless of the size of the data set, achieving better classification results.
Smart Images

Figure CN109858520B
Abstract
Description
Technical Field
[0001] The present disclosure relates to a data classification method, and in particular, to a multi-layer semi-supervised classification method. Background Art
[0002] Existing data classification methods include supervised classification, semi-supervised classification, and unsupervised classification. Among them, supervised classification methods require a large number of labeled samples to train the model, which limits its application scenarios; unsupervised classification does not require data category information and is widely used, but the lack of category information leads to poor classification results. Semi-supervised classification only requires a small amount of labeled data, which is low in acquisition cost, and can obtain better classification results by learning the data distribution of a large amount of unlabeled data, so it has a wide range of application scenarios.
[0003] Graph-based semi-supervised classification methods often achieve good results and receive widespread attention because they make full use of the relationship between data samples.
[0004] In the current graph-based semi-supervised classification methods, the feature expression of the data is not accurate enough and cannot well reflect the actual situation of the classified data, so the classification accuracy is low. In addition, for data sets with small sample sizes, the characteristics of the data category cannot be effectively reflected because the scope covered is too small; and for data sets with large sample sizes, the amount of calculation is too large, there is too much time and space loss, and it cannot be applied to larger data sets. Therefore, in the existing graph-based semi-supervised classification methods, the application scope of the data set is too narrow and the classification accuracy is low. Summary of the invention
[0005] In view of the above problems, the present invention proposes a multi-layer semi-supervised classification method, which can not only improve the classification accuracy, but also expand the application scope of the data set.
[0006] Specifically, the multi-layer semi-supervised classification method proposed in the present disclosure includes:
[0007] S100, preparing a data set, wherein the data set is a data set including a graph topology structure, including nodes and relationships between nodes, and the relationships between nodes are represented by edges in the graph topology structure, and the data set includes two parts: labeled data and unlabeled data, wherein the labeled data includes category information as a label of the data, and the unlabeled data does not include category information and labels;
[0008] S200, preprocessing the data set prepared in step S100,
[0009] S201, extracting feature vectors of all node information in the data set to form a feature vector X, and extracting edges of all nodes in the data set to form an adjacency matrix A;
[0010] S202, preprocessing is performed according to the constructed adjacency matrix A to obtain a new adjacency matrix
[0011] S300, establishing a corresponding convolutional neural network model based on the data set preprocessed in step S200;
[0012] S400, based on the data set pre-processed in step S200, the convolutional neural network model established in step S300 is trained to obtain a classification result, including:
[0013] S401, initializing the weight matrix of the model;
[0014] S402: Input the feature vector X of the data set and the new adjacency matrix into the established convolutional neural network model. Perform forward propagation;
[0015] S403, after the forward propagation is completed and the classification result is output, it is determined whether the iteration end condition is met. If the iteration is completed, the classification result of this step is output as the final classification result; if the iteration is not completed, the error between the output classification result and the actual data category is calculated using the cross entropy loss function to obtain the cross entropy C;
[0016] S404, using the cross entropy C to perform back propagation in the model to update the weight matrix of the model;
[0017] S405: Based on the updated weight matrix, return to step S402 and continue execution.
[0018] The use of the multi-layer semi-supervised classification method disclosed in the present invention not only improves the accuracy of classification, but also expands the application scope of the data set, so that both large and small data sets can be well classified; compared with the existing technology, better classification effects are achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 A structural diagram showing a convolutional neural network model established by the present disclosure;
[0020] Figure 2 A schematic diagram showing a comparison of classification accuracy between the existing first-order adjacency semi-supervised classification method and the multi-layer semi-supervised classification method disclosed in the present invention. DETAILED DESCRIPTION
[0021] The following is combined with Figure 1 The specific process of the multi-layer semi-supervised classification method disclosed in the present invention is described.
[0022] In one embodiment, a multi-layer semi-supervised classification method is provided, comprising:
[0023] S100, preparing a data set, wherein the data set is a data set including a graph topology structure, including nodes and relationships between nodes, and the relationships between nodes are represented by edges in the graph topology structure, and the data set includes two parts: labeled data and unlabeled data, wherein the labeled data includes category information as a label of the data, and the unlabeled data does not include category information and labels;
[0024] S200, preprocessing the data set prepared in step S100,
[0025] S201, extracting feature vectors of all node information in the data set to form a feature vector X, and extracting edges of all nodes in the data set to form an adjacency matrix A;
[0026] S202, preprocessing is performed based on the constructed adjacency matrix A to obtain a new adjacency matrix
[0027] S300, establishing a corresponding convolutional neural network model based on the data set preprocessed in step S200;
[0028] S400, based on the data set pre-processed in step S200, the convolutional neural network model established in step S300 is trained to obtain a classification result, including:
[0029] S401, initializing the weight matrix of the model;
[0030] S402: Input the feature vector X of the data set and the new adjacency matrix into the established convolutional neural network model. Perform forward propagation;
[0031] S403, after the forward propagation is completed and the classification result is output, it is determined whether the iteration end condition is met. If the iteration is completed, the classification result of this step is output as the final classification result; if the iteration is not completed, the error between the output classification result and the actual data category is calculated using the cross entropy loss function to obtain the cross entropy C;
[0032] S404, using the cross entropy C to perform back propagation in the model to update the weight matrix of the model;
[0033] S405: Based on the updated weight matrix, return to step S402 and continue execution.
[0034] In this embodiment, since the method adopts semi-supervised learning, part of the data in the selected data set contains category information as data labels, and part does not. The data set contains a graph topology structure, that is, a data set containing nodes and relationships between nodes, so there is no need to build a graph model of the data, because the data set itself is a ready-made topological graph. The feature vectors of all node information in the graph can be extracted to form a feature vector X, and each edge in the graph can be extracted to form an adjacency matrix A. The combination of the two can represent the entire data set, and the extraction method is, for example, the existing embedding method.
[0035] In this embodiment, the iteration condition in step S403 is usually to set the number of training epochs, and the training ends when the number of training epochs reaches epochs. Generally, the more times, the better the training effect, and the more accurate the classification result obtained. Specifically, it can be set to 100 times, 200 times, 250 times, etc., according to the actual classification accuracy requirements.
[0036] In a preferred embodiment, the step S202 is specifically as follows:
[0037] Using the formula Construct a new adjacency matrix Among them A 2 represents the second-order neighbors of the graph, α represents the weight between the node itself and its first-order neighbors, and the second-order neighbors of the node have weight (1-α), I N It is an N-order identity matrix with all 1s on the diagonal, where N represents the number of data in the data set.
[0038] In this embodiment, the adjacency matrix used in the commonly used graph convolutional neural network is Improved, the original commonly used The scope of includes only the instance itself and its first-order neighbors, Since the coverage is too small to accurately express the characteristics of each node, the second-order neighbor A of the graph is introduced 2 , thereby introducing the second-order neighbors of the instance into the calculation scope, expanding the scope of instances considered in the adjacency matrix calculation, so it can more accurately describe the relationship between each node in the graph, thereby more accurately expressing the characteristics of the data, close to the actual classification situation, and improving the accuracy of classification.
[0039] In a preferred embodiment, in step S300, the convolutional neural network model is established in the order of data flow, and the structure of the model is as follows: Figure 1 As shown, including:
[0040] Input layer, used to receive the feature vector X and the new adjacency matrix as input and stored;
[0041] Random dropout layer_1, used to randomly drop the data of the input layer;
[0042] Graph convolution layer_1, used to receive the result of random drop layer_1 and adjacency matrix A, and perform convolution operation;
[0043] Random dropout layer_2 is used to randomly drop the operation results of graph convolution layer_1;
[0044] Graph convolution layer_2, used to receive the result of random drop layer_2 and adjacency matrix A, and perform convolution operation;
[0045] Random dropout layer_3 is used to randomly drop the operation results of graph convolution layer_2;
[0046] Graph convolution layer_3, used to receive the result of random drop layer 3 and adjacency matrix A, and perform convolution operation;
[0047] The fully connected layer is used to receive the operation results of the graph convolution layer_3. Each neuron in the fully connected layer is connected to the neurons in the graph convolution layer_3, and the fully connected layer performs convolution operations;
[0048] The output layer uses the softmax function to calculate and obtain the classification results for storage and output.
[0049] In this embodiment, the model is established according to the flow order of the input data. In addition to the input layer and the output layer, the model also uses three random dropout layers, three graph convolution layers and a fully connected layer. Each layer processes the input data in sequence and finally outputs the classification result.
[0050] In a preferred embodiment, the weight matrix of the model initialized in step S401 is specifically:
[0051] W (0) , W (1) , W (2) , W (3) , W (4) Randomly assign values, where W (0) Represents the weight matrix from the input layer to the random dropout layer_1, W (1) The figure shows the weight matrix from convolutional layer 1 to random dropout layer 2, W (2) Represents the weight matrix from graph convolution layer 2 to random dropout layer 3, W (3) Represents the weight matrix from graph convolution layer 3 to the fully connected layer, W (4) Represents the weight matrix from the fully connected layer to the output layer.
[0052] After the required neural network model is established, the model needs to be trained so that the model can obtain better classification results. The model training process of this method includes: initializing the weight matrix → forward propagation to obtain the classification result → calculating the cross entropy → back propagation to update the weight matrix → returning to the forward propagation multiple iterative processes. In this embodiment, it is explained that the training process first randomly assigns values to each weight matrix in the model as the starting step of model training.
[0053] In a preferred embodiment, the forward propagation process in step S402 includes:
[0054] S4021, the eigenvector X and the new adjacency matrix Stored in the input layer in the form of a matrix;
[0055] S4022, random drop layer_1 randomly closes the neurons in the input layer;
[0056] S4023, inputting the information not discarded by the random discard layer_1 and the adjacency matrix A into the graph convolution layer_1 for convolution operation;
[0057] S4024, random drop layer_2 randomly closes the neurons of graph convolution layer_1;
[0058] S4025, inputting the operation results of the random discard layer_2 that are not discarded and the adjacency matrix A into the graph convolution layer_2 for convolution operation;
[0059] S4026, random drop layer_3 randomly closes the neurons of graph convolution layer_2;
[0060] S4027, inputting the operation results of the random discard layer_3 that are not discarded and the adjacency matrix A into the graph convolution layer_3 for convolution operation;
[0061] S4028, outputting the operation result of the graph convolution layer_3 to the fully connected layer for convolution operation;
[0062] S4029, passing the operation result of the fully connected layer to the output layer, classifying it through the softmax function to obtain the classification result, storing it and outputting it.
[0063] In this embodiment, each random discard layer randomly discards the data of the previous layer by randomly shutting down some neurons. For the convolutional neural network model, each neuron corresponds to a data node, and some neurons are randomly shut down to prevent overfitting.
[0064] Overfitting is a common problem in machine learning, which means that a model performs well on the training set but performs poorly on the test set, with poor generalization ability. If a model suffers from overfitting, it is also said that the model has too high variance. This may be caused by too many parameters in the model, which makes the model too complex. Similarly, the model may also encounter underfitting problems, which is also called too high deviation. The reason is that the model is too simple to learn the patterns in the training set data and also performs poorly on the test set.
[0065] In this embodiment, the random dropout layer randomly turns off some neurons, which can reduce the complexity of the model and effectively avoid overfitting.
[0066] In a preferred embodiment, during the forward propagation process, the calculation process of data passing through the previous layer of the convolutional neural network model, the random dropout layer, and then the next convolutional layer is:
[0067] H (j) =D(σ(AH (j-1 )W (j-1) )),
[0068] Among them, H (j) represents the operation result of the jth layer, H (j-1) represents the operation result of the j-1th layer, H (j) and H (j-1) are activation vectors, W (j-1) represents the weight matrix connecting the j-1th layer to the random dropout layer, D represents the random dropout function, which is used to randomly turn off some neurons, σ is the activation function, and H (0) Represents the activation vector of the input layer.
[0069] For the present invention, the above calculation process is involved three times, so the value of j is 1, 2, and 3, and the results of three convolution operations can be calculated respectively, which is an iterative process of three identical operations.
[0070] Specifically, the values of j are 1, 2, and 3, and the calculation process from the input layer to the graph convolution layer_1 to the graph convolution layer_2 to the graph convolution layer_3 is as follows:
[0071] When j = 1, the above formula is converted to H (1) =D(σ(AH (0) W (0) )), because there is no other convolutional layer before the graph convolutional layer_1, so H (0) represents the operational output of the input layer as an activation vector; H (1) H represents the operation result of graph convolution layer_1, which is also the activation vector. (0)It contains the aforementioned input and the feature vector X stored in the input layer and the new adjacency matrix information.
[0072] σ is the activation function, which is used to add nonlinear factors because the linear model is not expressive enough. For samples, they are not necessarily linearly separable. To solve this problem, linear changes can be made or nonlinear factors can be introduced to solve problems that linear models cannot solve. Commonly used nonlinear activation functions include sigmoid, tanh, relu, etc. The first two, sigmoid and tanh, are more common in fully connected layers, and the latter, relu, is more common in convolutional layers. Activation functions are well-known and commonly used methods, and can be selected according to actual needs.
[0073] When j = 2, the formula is transformed into H (2) =D(σ(AH (1) W (1) )), H (2) Represents the operation result of graph convolution layer_2,
[0074] When j = 3, the formula is converted to H (3) =D(σ(AH (2) W (2) )), H (3) Represents the operation result of graph convolution layer 3.
[0075] After the above three steps, we get the following formula:
[0076]
[0077] Solving this system of equations, we get the following formulas for H and A:
[0078] f(H, A) = H (3) =D(σ(AD(σ(AD(σ(AH (0) W (0) )W (1) )W (2) )))),
[0079] f(H, A) represents the operation process of the three-layer graph convolution structure. If we regard the operation result of each σ(·) as a new H′, we will find that this is three iterations of the same operation.
[0080] In the operation process from graph convolution layer_3 to the fully connected layer, the operation formula of the fully connected layer is: H (4) =σ(AH (3) W (3) ), H (4) Represents the operation result of the fully connected layer.
[0081] In the operation process from the fully connected layer to the output layer, the operation formula is: H (5) =softmax(H (4) W (4) ), H (5) Represents the classification operation result output by the output layer.
[0082] In a preferred embodiment, in step S403, the cross entropy loss function for calculating the cross entropy C is:
[0083] C=-∑ k y k log a k
[0084] Among them, C represents the cross entropy, a k represents the output value of the kth neuron in the output layer, y k Represents the true value corresponding to the kth neuron, which can be 0 or 1.
[0085] In this embodiment, the log likelihood cost function is used to calculate the cross entropy, which can achieve better calculation results.
[0086] In a preferred embodiment, after the cross entropy is calculated, nodes with smaller cross entropy loss are selected to add labels to increase the number of nodes with labels in the data set.
[0087] In this embodiment, since the graph convolutional neural network has certain requirements on the number of labeled nodes in the process of calculating the cross entropy loss, the scope of application of the method is limited. As mentioned in S100, there is a part of unlabeled data and a part of labeled data in the data set. When the number of labeled nodes in the data set is too small, the calculation of the cross entropy loss will produce a large error, similar to if the number of samples used for reference is too small, the scope covered by the samples will be too one-sided and cannot reflect all the characteristics of the data.
[0088] Therefore, after calculating the cross entropy loss, we can select some instances (nodes) with smaller cross entropy losses (closest to the ideal model) to add to the category set, thereby increasing the number of labeled instances (nodes) in the data set.
[0089] In another preferred embodiment, the screening condition for selecting nodes with smaller cross entropy loss is:
[0090] a) The cross entropy loss is less than the threshold t;
[0091] b) rank in the top d% in the ascending order of cross entropy loss;
[0092] The values of t and d are adjusted according to different data sets.
[0093] In this embodiment, nodes that meet the above-mentioned screening node conditions (closest to the actual situation) are selected and labeled, so that the number of nodes with labels can be increased. By increasing the number of nodes with labels, the labeled data set can cover a wider range, making the calculation of cross entropy loss more accurate. In this way, the application scope of the data set can be expanded.
[0094] In a preferred embodiment, the back propagation process in step S404 includes:
[0095] S4041, use cross entropy to calculate W (4) Find the partial derivative p (4) , the formula is:
[0096] Update W (4) :W (4) ′=W (4) -φ*p (4) , where φ represents the learning rate, W (4) ′ represents the updated weight matrix;
[0097] S4042, use cross entropy to calculate W (3) Find the partial derivative p (3) , the formula is: h (4) Represents the output result of the fully connected layer;
[0098] Update W (3) :W (3) ′=W (3) -φ*p (3) , where φ represents the learning rate, W (3) ′ represents the updated weight matrix;
[0099] S4043, use cross entropy to calculate W (2) Find the partial derivative p (2) , the formula is: h (3) Represents the output result of graph convolution layer 3;
[0100] Update W (2) :W (2) ′=W (2) -φ*p (2) , where φ represents the learning rate, W (2) ′ represents the updated weight matrix;
[0101] S4044, use cross entropy to calculate W (1) Find the partial derivative p (1) , the formula is: h(2) Represents the output result of graph convolution layer 2;
[0102] Update W (1) :W (1) ′=W (1) -φ*p (1) , where φ represents the learning rate, W (1) ′ represents the updated weight matrix;
[0103] S4045, use cross entropy to calculate W (0) Find the partial derivative p (0) , the formula is: h (1) Represents the output result of graph convolution layer 1;
[0104] Update W (0) :W (0) ′=W (0) -φ*p (0) , where φ represents the learning rate, W (0) ′ represents the updated weight matrix.
[0105] In this embodiment, the calculation is performed step by step in the reverse direction through the cross entropy to refine each weight matrix so as to serve as the basic weight matrix when returning to the forward propagation again.
[0106] When the set iteration conditions are reached, the model training process is stopped and the final classification result can be output.
[0107] The above is a detailed description of the multi-layer semi-supervised classification method disclosed in the present invention. Classifying data according to this method can not only accurately express the characteristics of the data and improve the accuracy of classification, but also expand the application scope of the data set, so that both large and small data sets can be well classified; compared with the existing technology, better classification effect is achieved.
[0108] experiment:
[0109] In order to verify the advantages of the multi-layer semi-supervised classification method proposed in the present invention over the existing first-order neighbor semi-supervised classification method, an experimental comparison and verification was carried out.
[0110] In the experiment, the Cora dataset is used. The Cora dataset is an existing publicly known dataset and can be downloaded from the Internet: https: / / linqs-data.soe.ucsc.edu / public / lbc / cora.tgz.
[0111] Figure 2It is a comparative diagram of the experimental results, which shows the classification accuracy of the multi-layer semi-supervised classification method disclosed in the present invention and the existing first-order neighbor semi-supervised classification method. It can be seen from the figure that when the value of α in the present method is increased, the classification accuracy is also continuously improved. The accuracy when d=0.99 is also shown. The accuracy of the present method is higher than that of the method when only first-order neighbors are considered.
[0112] In summary, the multi-layer semi-supervised classification method disclosed in the present invention not only improves the accuracy of classification, but also expands the application scope of the data set, so that both large and small data sets can be well classified; compared with the existing technology, it achieves better classification effect.
[0113] Although the embodiments of the present invention are described above in conjunction with the accompanying drawings, the present invention is not limited to the above specific embodiments and application fields, and the above specific embodiments are only illustrative and instructive, rather than restrictive. A person of ordinary skill in the art can also make many forms under the guidance of this specification and without departing from the scope of protection of the claims of the present invention, all of which belong to the protection of the present invention.
Claims
1. A multi-layer semi-supervised classification method executed on a computer, the method aims to solve the problem that the application scope of the data set in the existing graph-based semi-supervised classification is too narrow, and is characterized in that: The method comprises the following steps: S100, preparing a data set, wherein the data set is a data set including a graph topology structure, including nodes and relationships between nodes, and the relationships between nodes are represented by edges in the graph topology structure, and the data set includes two parts: labeled data and unlabeled data, wherein the labeled data includes category information as a label of the data, and the unlabeled data does not include category information and labels; there is no need to build a graph model of the data, because the data set itself is a ready-made topology graph; S200, preprocessing the data set prepared in step S100, S201, extracting feature vectors of all node information in the data set to form a feature vector X, and extracting edges of all nodes in the data set to form an adjacency matrix A; S202, preprocessing is performed according to the constructed adjacency matrix A to obtain a new adjacency matrix ; S300, establishing a corresponding convolutional neural network model based on the data set preprocessed in step S200; S400, based on the data set pre-processed in step S200, the convolutional neural network model established in step S300 is trained to obtain a classification result, including: S401, initializing the weight matrix of the model; S402: Input the feature vector X of the data set and the new adjacency matrix into the established model. Perform forward propagation; S403, after the forward propagation is completed and the classification result is output, it is determined whether the iteration end condition is met. If the iteration is completed, the classification result of this step is output as the final classification result; if the iteration is not completed, the error between the output classification result and the actual data category is calculated using the cross entropy loss function to obtain the cross entropy C; S404, using the cross entropy C to perform back propagation in the model to update the weight matrix of the model; S405, based on the updated weight matrix, return to step S402 to continue execution; The data set in step S100 is the Cora data set; The method can improve the accuracy of classification; Wherein, the step S202 is specifically as follows: using the formula Construct a new adjacency matrix ,in represents the second-order neighbors of the graph, α represents the weight of the node itself and the first-order neighbors, and the second-order neighbors of the node have weight , It is an N-order identity matrix with all 1s on the diagonal, where N represents the number of data in the data set; Wherein, in step S300, the convolutional neural network model is established in the order of data flow, including: Input layer, used to receive the feature vector X and the new adjacency matrix as input and stored; Random dropout layer_1, used to randomly drop the data of the input layer; Graph convolution layer_1, used to receive the result of random drop layer_1 and adjacency matrix A, and perform convolution operation; Random dropout layer_2 is used to randomly drop the operation results of graph convolution layer_1; Graph convolution layer_2, used to receive the result of random drop layer_2 and adjacency matrix A, and perform convolution operation; Random dropout layer_3 is used to randomly drop the operation results of graph convolution layer_2; Graph convolution layer_3, used to receive the result of random drop layer 3 and adjacency matrix A, and perform convolution operation; The fully connected layer is used to receive the operation results of the graph convolution layer_3. Each neuron in the fully connected layer is connected to the neurons in the graph convolution layer_3 and performs convolution operations; The output layer uses the softmax function to calculate the output of the fully connected layer and obtain the classification result for storage and output; The weight matrix of the model initialized in step S401 is specifically: Will , , , Perform random assignment, where Represents the weight matrix from the input layer to the random dropout layer_1, The figure represents the weight matrix from convolutional layer 1 to random dropout layer 2. Represents the weight matrix from graph convolution layer 2 to random dropout layer 3, Represents the weight matrix from graph convolution layer 3 to the fully connected layer, Represents the weight matrix from the fully connected layer to the output layer; The forward propagation process in step S402 includes: S4021, the eigenvector X and the new adjacency matrix Stored in the input layer in the form of a matrix; S4022, random drop layer_1 randomly closes the neurons in the input layer; S4023, inputting the information not discarded by the random discard layer_1 and the adjacency matrix A into the graph convolution layer_1 for convolution operation; S4024, random drop layer_2 randomly closes the neurons of graph convolution layer_1; S4025, inputting the operation results of the random discard layer_2 that are not discarded and the adjacency matrix A into the graph convolution layer_2 for convolution operation; S4026, random drop layer_3 randomly closes the neurons of graph convolution layer_2; S4027, inputting the operation results of the random discard layer_3 that are not discarded and the adjacency matrix A into the graph convolution layer_3 for convolution operation; S4028, outputting the operation result of the graph convolution layer_3 to the fully connected layer for convolution operation; S4029, transferring the operation result of the fully connected layer to the output layer, classifying it through the softmax function to obtain the classification result, storing it and outputting it; Among them, in the forward propagation process, the calculation process of data passing through the previous layer of the convolutional neural network model to the random drop layer and then to the next graph convolution layer is: ; in, represents the operation result of the jth layer, represents the operation result of the j-1th layer, and are activation vectors, represents the weight matrix connecting the j-1th layer to the random dropout layer, and D represents the random dropout function, which is used to randomly turn off some neurons. is the activation function, represents the activation vector of the input layer; Wherein, in step S403, the cross entropy loss function for calculating the cross entropy C is: ; in, represents the cross entropy, represents the output value of the kth neuron in the output layer, Represents the true value corresponding to the kth neuron, which can be 0 or 1; Among them, after calculating the cross entropy, nodes with smaller cross entropy loss are selected to add labels to increase the number of nodes with labels in the data set; Among them, the screening criteria for selecting nodes with smaller cross entropy loss are: a) The cross entropy loss is less than the threshold t; b) In the ascending order of cross entropy loss, it ranks in the top d%; Among them, the values of t and d are adjusted according to different data sets; The back propagation process in step S404 includes: S4041, use cross entropy Find partial derivatives , the formula is: ; renew : = ,in , Represents the updated weight matrix; S4042, use cross entropy Find partial derivatives , the formula is: , Represents the output result of the fully connected layer; renew : ,in , Represents the updated weight matrix; S4043, use cross entropy Find partial derivatives , the formula is: , Represents the output result of graph convolution layer_3; renew : ,in , Represents the updated weight matrix; S4044, use cross entropy Find partial derivatives , the formula is: , Represents the output result of graph convolution layer_2; renew ,in , Represents the updated weight matrix; S4045, use cross entropy Find partial derivatives , the formula is: , Represents the output result of graph convolution layer_1; renew ,in , Represents the updated weight matrix.
