A blockchain-based asset processing traceability method and system

The asset traceability graph is constructed on the blockchain through deep learning models and graph neural networks, and combined with clustering algorithms and knowledge graph verification, it solves the problem of inefficiency in traditional asset traceability methods and achieves efficient asset traceability and traceability graphs. Interpretability.

CN118505398BActive Publication Date: 2024-09-13DATA INTELLIGENCE HUINENG (DALIAN) TECH DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410977916.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-22
Publication Date
2024-09-13
Estimated Expiration
2044-07-22

AI Technical Summary

Technical Problem

Traditional asset traceability methods have problems with low processing efficiency and limited data processing capabilities in blockchain applications. In particular, a large amount of node computing power is consumed during the construction of asset traceability graphs and node mapping, resulting in low traceability efficiency.

Method used

A deep learning model is used to extract features from asset traceability data, a graph neural network is used to construct an initial traceability graph, and a clustering algorithm is used to cluster address label nodes. The knowledge graph is used for semantic mapping and verification to improve asset traceability efficiency.

Benefits of technology

The key features of the asset traceability data are extracted through the deep learning model, and the initial traceability graph is constructed by the graph neural network, and verified through the clustering algorithm and knowledge graph, which significantly improves the efficiency and accuracy of the asset traceability and enhances the interpretability and accuracy of the traceability graph. readability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118505398B
    Figure CN118505398B
Patent Text Reader

Abstract

The present application discloses a blockchain-based asset processing traceability method and system, which involves blockchain, including: obtaining asset traceability data; extracting features from pre-processed asset traceability data; dividing the pre-processed asset traceability data into multiple asset transaction chain data according to key features; using a graph neural network to construct an initial traceability graph; constructing a knowledge graph based on an address tag library, and expressing the semantic association between address tags and entities by constructing a triple of entity-relationship-attribute; according to the address tags in the knowledge graph, replacing the address nodes in the initial traceability graph with corresponding address tag nodes, and using the consensus mechanism of the blockchain to verify the node replacement results to obtain a traceability graph of the address tag nodes; using a clustering algorithm based on deep learning to cluster the address tag nodes in the traceability graph of the address tag nodes. In view of the low efficiency of asset traceability in the prior art, the present application improves the traceability efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of asset traceability, and in particular to a blockchain-based asset processing traceability method and system. Background Art

[0002] With the deepening development of economic globalization and the increasing complexity of financial markets, asset processing has become a common focus of attention in various industries. Traditional asset processing methods often rely on centralized management models, which have many problems such as opaque data, irregular processes, and difficult risk control, making it difficult to adapt to the current complex and changing economic environment and regulatory requirements. Especially in the field of asset tracing, due to the numerous links involved, scattered data sources, and complex circulation paths, asset tracing efficiency is low, making it difficult to achieve visual management and risk prevention and control of the entire life cycle of assets.

[0003] To meet these challenges, blockchain technology has been considered as an effective technology to solve the problem of asset traceability due to its decentralization, immutability and transparency. However, even in blockchain applications, traditional asset traceability methods still face problems of low processing efficiency and limited data processing capabilities.

[0004] In the related art, for example, Chinese patent document CN117829990A provides a blockchain-based asset circulation traceability method, device, equipment and storage medium, which relates to the field of blockchain technology, displays the path and transaction records of assets from the source to the end point, and visualizes the flow direction and ownership change of assets. The method includes: obtaining multiple asset traceability data stored in the data warehouse for preprocessing, and performing feature matching on the preprocessed asset traceability data, summarizing the asset traceability data into multiple asset transaction chain data; inputting multiple asset transaction chain data into a graph neural network model to construct an initial traceability graph; obtaining an address label library; according to the address label library, replacing the address nodes in the initial traceability graph with corresponding address label nodes, and clustering the address label nodes to obtain an asset circulation traceability graph. However, this scheme mainly relies on the address library label when constructing the traceability graph, which is used to replace the address nodes in the initial traceability graph with corresponding label nodes, and needs to maintain and update the label library. In the process of node replacement and mapping, a large amount of node computing power is required, so the traceability efficiency of this scheme needs to be further improved. Summary of the invention

[0005] In response to the problem of low asset traceability efficiency in the prior art, the present application provides a blockchain-based asset processing traceability method and system, which constructs an initial traceability graph through a graph neural network, clusters address label nodes using a clustering algorithm, etc., thereby improving the efficiency of asset traceability.

[0006] Technical solution, the purpose of this application is achieved through the following technical solution.

[0007] One aspect of this specification provides a blockchain-based asset processing and tracing method, including: data preprocessing stage: obtaining original asset tracing data from a distributed data warehouse, which usually includes asset transaction records, address information, timestamps, etc. The original data is preprocessed by cleaning, format conversion, field extraction and other preprocessing operations to remove noise data and convert the data into a structured form that is convenient for subsequent processing. The preprocessed asset tracing data will be used as input for subsequent feature extraction and asset transaction chain division. Feature extraction and asset transaction chain division stage: the preprocessed asset tracing data is input into a pre-trained deep learning model, such as a convolutional neural network (CNN) or a recurrent neural network (RNN), to extract the key features of the data. These features characterize the pattern, anomaly and other information of asset transaction behavior. Based on the extracted key features, a clustering or classification algorithm is used to divide the asset tracing data into multiple asset transaction chain data. Each asset transaction chain data contains at least two address information, indicating the transfer process of assets between these addresses. The asset transaction chain data will be used as input for the next step of constructing an initial traceability graph. Initial traceability graph construction phase: Input asset transaction chain data into the Graph Attention Network to construct an initial traceability graph. In the initial traceability graph, each node represents an address, and the edge between nodes represents the asset transfer information between two connected address nodes, such as transfer amount, timestamp, etc. The features of nodes and edges are learned and updated through the graph neural network to capture key information and patterns in the asset circulation process. The constructed initial traceability graph is uploaded to the blockchain network after digital signature and hash operation to ensure the integrity and immutability of the data. Knowledge graph construction phase: Obtain a pre-built address label library, where each address label represents at least one asset address corresponding to an entity (such as an individual, institution, project, etc.). Based on the address label library, a knowledge graph is constructed, and the semantic association between address labels and entities is represented in the form of entity-relationship-attribute triples, such as (address A, belongs to, individual X), (individual X, investment, project Y), etc. The address label library and knowledge graph are uploaded to the blockchain network after digital signature and hash operation to facilitate node mapping and semantic reasoning in the subsequent traceability graph construction process. Provenance graph node mapping phase: Match the initial provenance graph with the knowledge graph, and for each address node in the initial provenance graph, find the corresponding address label node in the knowledge graph. If the match is successful, replace the address node in the initial provenance graph with the address label node in the knowledge graph; if the match fails, retain the original address node. After the node mapping is completed, the mapping result is verified through the consensus mechanism of the blockchain network (such as proof of work, proof of equity, etc.) to ensure the correctness and consistency of the mapping process. After verification, the mapped provenance graph is used as the provenance graph of the address label node and uploaded to the blockchain network.Provenance graph clustering stage: The provenance graph of the address tag nodes is input into the deep learning-based clustering algorithm (Deep Embedded Clustering) for clustering analysis. The low-dimensional embedding representation of the address tag nodes is learned through a deep neural network, and the nodes are clustered using clustering algorithms such as K-means in the embedding space. The clustering process obtains the optimal clustering result by minimizing the distance between the node embedding and the cluster center, while maximizing the distance between different clusters. The clustering results are verified through the consensus mechanism of the blockchain network to ensure that different nodes reach a consensus on the clustering results. The clustering results after consistency verification are used as the final asset flow traceability graph, and are uploaded to the blockchain network to facilitate subsequent traceability queries and analysis.

[0008] Preferably, in the stage, in order to improve the efficiency of financial data tracing, the following data preprocessing technologies and methods are adopted: identify and process outliers, such as setting thresholds through statistical methods (such as Z-score, box plots, etc.) or domain knowledge, identify abnormal transaction amounts, frequencies, etc., and delete or correct them. Format the timestamp field and convert it to a unified date and time format (such as ISO8601), and adjust the time zone of the timestamp as needed. Normalize the amount field and convert all amounts into a unified currency and unit (such as RMB) to facilitate subsequent summary calculations and comparative analysis. Integrate asset tracing data from different data sources (such as different banks, payment institutions, etc.), and match and merge data based on common fields (such as transaction ID, address, etc.). Perform consistency checks on the integrated data to ensure the consistency of attributes of the same entity in different data sources, such as address information, entity name, etc. New features are derived based on the original fields, such as calculating transaction frequency and transaction interval based on transaction timestamps, and calculating account balances, capital inflows and outflows based on transaction amounts.

[0009] Preferably, the construction process of the knowledge graph is optimized to improve the representation ability of the semantic association between address tags and entities. The entities, relationships, and attributes in the address tag library are converted into symbolic representation forms, such as triples such as (entity 1, relationship, entity 2), (entity, attribute, attribute value). The knowledge graph embedding model (such as TransE, TransR, etc.) is used to train the triples to learn the distributed representation of entities, relationships, and attributes in low-dimensional vector space. The TransE model learns the vector representation of entities and relationships by optimizing the objective function of (h+r≈t), so that for the correct triple (h, r, t), the vector of entity h plus the vector of relationship r should be close to the vector of entity t. Based on TransE, the TransR model introduces a relationship-specific mapping matrix to map entities and relationships to different vector spaces, thereby improving the expression ability of knowledge graph embedding. Through knowledge graph embedding, the semantic similarity between entities, relationships, and attributes is measured in a low-dimensional vector space, and implicit semantic associations are discovered, providing richer and more accurate prior knowledge for subsequent knowledge graph construction. According to the results of embedding the address tag library and the knowledge graph, an initial knowledge graph is constructed, in which nodes represent entities, edges represent relationships between entities, and the attributes of nodes and edges represent the attributes of entities and relationships, respectively. Graph neural networks (such as GCN, GAT, etc.) are used to learn the representation of the knowledge graph and learn the low-dimensional embedding representation of nodes. GCN (Graph Convolutional Network) aggregates the neighbor information of nodes and updates the feature representation of nodes by defining convolution operations on the graph structure. Through the representation learning of the graph neural network, while retaining the structural information of the knowledge graph, the low-dimensional semantic representation of nodes is learned to improve the expressiveness and generalization ability of the knowledge graph. The node and edge information of the knowledge graph are serialized and converted into the form of key-value pairs. Among them, the key is the unique identifier of the node or edge, and the value is the attribute information of the node or edge. The state database of the blockchain (such as LevelDB, RocksDB, etc.) is used to store the serialized knowledge graph data. The state database stores data in the form of key-value pairs and supports fast random read and write operations. In the blockchain network, each node maintains a complete copy of the state database, and the consistency of the state database between different nodes is ensured through the consensus mechanism. When there is a new knowledge graph update operation, the update operation is first submitted to the blockchain network in the form of a transaction. After consensus verification, the state database is updated. By storing the knowledge graph in the state database of the blockchain, the immutability and traceability of the blockchain are used to ensure the security and credibility of the knowledge graph data. At the same time, the distributed storage of the blockchain network also improves the availability and fault tolerance of the knowledge graph. Based on the constructed knowledge graph, various knowledge reasoning and query operations are performed, such as entity linking, relationship prediction, attribute completion, etc.The knowledge graph embedding model is used to calculate the semantic similarity between entities, relationships, and attributes to implement applications such as semantic search and recommendation.

[0010] Preferably, in the stage, according to the address label in the knowledge graph, the address node in the initial traceability graph is replaced with the corresponding address label node, and the node replacement result is verified by the consensus mechanism of the blockchain to obtain the traceability graph of the address label node. The knowledge graph data is stored in a graph database (such as Neo4j). An inverted index from the address hash value to the address label node is established to accelerate the subsequent query process. The initial traceability graph data, including address nodes, edge information, etc., is read from the state database of the blockchain. The initial traceability graph data is loaded into the memory to form a graph data structure. Each address node in the initial traceability graph is traversed, and the corresponding address label node is queried in the graph database according to the address hash value. The inverted index is used to accelerate the query process and quickly locate potential matching nodes. For each address node, the string similarity (such as edit distance) between it and the queried address label node is calculated. A similarity threshold (such as 0.8) is set to determine whether the match is successful. If the similarity is greater than or equal to the threshold, the address node is replaced with the corresponding address label node. If the similarity is less than the threshold, the original address node is temporarily retained and recorded in the unmatched list. When replacing a node, update the edge information of the traceability graph. Incremental updates are used to update only the edges related to the replaced node. Encapsulate node replacement and edge update operations in one transaction to ensure atomicity and consistency. Use a distributed graph processing framework (such as Apache Giraph) to parallelize the traceability graph. Distribute the tasks of node replacement and edge update to multiple computing nodes to improve processing efficiency. After processing, generate a traceability graph of address label nodes. Serialize the traceability graph data into Protocol Buffers format, and use differential encoding and data compression technology to reduce data storage and transmission overhead. Construct the serialized traceability graph data into a blockchain transaction. Use state channel technology to merge multiple update operations into one state transition to reduce the transaction confirmation waiting time of the blockchain. Broadcast the constructed blockchain transaction to the blockchain network. After receiving the transaction, the nodes in the blockchain network verify and reach consensus on the transaction.

[0011] Furthermore, in the stage, a deep learning model is used to extract features from the preprocessed asset traceability data. The original asset traceability data is preprocessed by cleaning, conversion and standardization. The preprocessed asset traceability data is organized in a time series manner to form time series data. The time series data is divided into time windows of fixed length, and each time window represents a data sample. The preprocessed asset traceability data is input into the convolutional neural network. The input data is convolved by the convolution layer to extract local features. The convolution layer scans the input data through the sliding convolution kernel to generate a feature map. The feature map is downsampled by the pooling layer to reduce the size of the feature map and extract significant features. After the superposition of multiple convolutional layers and pooling layers, a local feature vector is obtained. The local feature vector extracted by the convolutional neural network is input into the recurrent neural network. The recurrent neural network uses a multi-layer long short-term memory network (LSTM) and an attention mechanism. The local feature vector is extracted through multi-layer LSTM to capture the dependency of features in the time dimension. Each LSTM layer receives the output of the previous LSTM layer and the local feature vector of the current time step to generate the hidden state of the current time step. By stacking multiple layers of LSTM, the multi-scale time series features of the local feature vector are extracted to obtain the multi-scale time series feature vector. The attention mechanism is introduced on the basis of the recurrent neural network to strengthen the attention to the key time series features. The attention distribution is generated by calculating the similarity of the multi-scale time series feature vector at different time steps. The similarity calculation uses methods such as dot product and cosine similarity. According to the attention distribution, the importance weights of the multi-scale time series features at different time steps are adjusted. The time step with a higher importance weight indicates that the corresponding time series feature is more important and needs more attention. According to the adjusted importance weights, the multi-scale time series feature vectors are weighted and summed. The result of the weighted sum is used as the final time series feature vector. The time series feature vector contains the key feature information of the asset traceability data in the time dimension. The local feature vector extracted by the convolutional neural network and the time series feature vector extracted by the recurrent neural network are spliced. The spliced ​​feature vector is used as the key feature representation of the asset traceability data. The key feature vector contains the local features and time series features of the asset traceability data, and comprehensively describes the feature information of the data. The spliced ​​key feature vector is output for subsequent tasks, such as asset traceability, risk assessment, etc. The key feature vector is used as the input of downstream tasks, such as entering the classifier, clustering algorithm, etc.

[0012] Among them, local feature extraction refers to extracting meaningful feature representations from local areas of data. In the scenario of asset traceability data, local features are understood as significant features of data within a specific time window or interval. These features can characterize information such as the behavior patterns and transaction characteristics of assets within a local range. By extracting local features, key information of asset traceability data in different time periods or intervals is captured, providing a basis for subsequent time series feature extraction and overall feature representation. Preferably, a convolutional neural network is used to extract local features from the preprocessed asset traceability data, including: introducing a dilated convolution in the convolution layer, and expanding the receptive field of the convolution kernel by inserting a hole (zero value) in the convolution kernel. Dilated convolution captures local features in a larger range without increasing the number of parameters and the amount of calculation. By adjusting the dilation rate, the size of the receptive field of the convolution kernel is controlled to extract local features of different scales.

[0013] Furthermore, in the process of concatenating the local feature vector and the temporal feature vector as key features, the attention mechanism and the fully connected layer are used to perform weighted fusion and nonlinear transformation on the features. The attention mechanism is applied to the local feature vector and the temporal feature vector respectively. The local importance weight of each feature in the local feature vector is calculated by the attention mechanism. Similarly, the temporal importance weight of each feature in the temporal feature vector is calculated by the attention mechanism. The attention mechanism is implemented by a self-attention mechanism, a key-value pair attention mechanism, and the like. According to the local importance weight and the temporal importance weight, the local feature vector and the temporal feature vector are weighted fused. The local feature vector is element-wise multiplied by its corresponding local importance weight to obtain a weighted local feature vector. The temporal feature vector is element-wise multiplied by its corresponding temporal importance weight to obtain a weighted temporal feature vector. The weighted local feature vector and the temporal feature vector are concatenated or added to obtain a fused feature vector. The fused feature vector is input into the fully connected layer, and the fused feature vector is nonlinearly transformed by the fully connected layer. The fully connected layer adopts a multi-layer structure, and nonlinear activation functions are used between each layer for nonlinear transformation. The calculation process of the fully connected layer is as follows: First layer: linearly transform the fused feature vector x and apply the nonlinear activation function g to obtain the output of the first layer: . Second layer: output of the first layer Perform a linear transformation and apply a nonlinear activation function h to get the output of the second layer: Feature interaction layer: The output of the second layer With the interaction feature matrix Perform feature cross-product to capture high-order interactions and combination relationships between different features: The third layer: output of the feature interaction layer Perform a linear transformation and apply a nonlinear activation function r to get the output of the third layer: .

[0014] The fourth layer: the output of the third layer It is concatenated with the original fused feature vector x, linearly transformed, and finally a nonlinear activation function f is applied to obtain the key feature vector y: The output of the fully connected layer is the key feature vector y. The key feature vector integrates the information of local features and temporal features, and extracts high-level abstract feature representations through the attention mechanism and the nonlinear transformation of the fully connected layer. The key feature vector is used for subsequent tasks, such as asset tracing and risk assessment.

[0015] Specifically, the fused feature vector x first extracts high-order interaction features and abstract features through the nonlinear transformations g and h of the first and second layers, and then introduces a feature interaction layer between the second and third layers, and explicitly models the high-order interactions and combination relationships between different features through the feature cross multiplication operation ⊗ to obtain interactively enhanced abstract features. Next, the abstract features are optimized and enhanced through the nonlinear transformation r and residual connection of the third layer, and finally, the features are screened and combined through the nonlinear transformation f of the fourth layer to obtain the final key feature vector y. A feature interaction layer is introduced between the second and third layers, and the high-order interactions and combination relationships between different features are explicitly modeled through the feature cross multiplication operation, so as to obtain the output of the second layer nonlinear transformation. Through the weight matrix and the bias term Perform a linear transformation to obtain the interaction feature matrix: ; The output of the second layer nonlinear transformation Perform feature cross product operation with the interaction feature matrix , generate a high-order interaction feature matrix: ; The feature cross-product operation is implemented by multiplying two feature matrices element-wise and then flattening them into vectors, capturing the high-order interactions and combination relationships between different features. The high-order interaction feature matrix is ​​input into the third layer of nonlinear transformation to obtain the interaction-enhanced abstract features: . Finally, the interactively enhanced abstract features are added to the residual connection and input into the fourth layer of nonlinear transformation to obtain the final key feature vector. By introducing the feature interaction layer, it is possible to explicitly model the high-order interactions and combination relationships between different features, capture the correlation and dependency between features, and mine the complex nonlinear relationships contained in the fused feature vector, thus improving the expressiveness and accuracy of key feature extraction. As a supplementary and enhancement mechanism, the feature interaction layer, combined with residual connections and multi-layer nonlinear transformations, further improves the performance and generalization ability of key feature extraction.

[0016] Furthermore, the preprocessed asset traceability data is divided into multiple asset transaction chain data according to key features. The key features of the preprocessed asset traceability data are extracted to obtain the key feature vectors of each asset traceability data. The key feature extraction adopts a combination of convolutional neural network and recurrent neural network, such as the technical solution described above. The Euclidean distance between the key feature vectors of the preprocessed asset traceability data is calculated as the key feature similarity. The Euclidean distance calculation formula is as follows: , where x and y represent two key feature vectors, and i represents the dimension of the vector. The smaller the Euclidean distance, the more similar the key features of the two asset traceability data are. A pre-trained language model is used to semantically encode the pre-processed asset traceability data to obtain a semantic vector. The pre-trained language models are large-scale language models such as BERT and GPT, which are pre-trained on a large amount of text data and can capture the semantic information of vocabulary and sentences. The asset traceability data is input into the pre-trained language model, and the corresponding semantic vector representation is obtained through forward propagation. The cosine similarity between the semantic vectors is calculated as the semantic similarity. The formula for calculating cosine similarity is as follows: , where x and y represent two semantic vectors, dot represents the vector dot product, and norm represents the L2 norm of the vector. The value range of cosine similarity is between -1 and 1. The larger the value, the more similar the semantics of the two asset traceability data are. According to the obtained key feature similarity and semantic similarity, the preprocessed asset traceability data is clustered using a clustering algorithm. The clustering algorithm selects commonly used clustering algorithms such as K-means, DBSCAN, and hierarchical clustering. The key feature similarity and semantic similarity are used as input features of the clustering algorithm. By optimizing the clustering objective function, similar asset traceability data are divided into the same cluster. The goal of the clustering algorithm is to minimize the intra-class distance and maximize the inter-class distance, so that the asset traceability data in the same cluster are similar in key features and semantics, and the asset traceability data between different clusters have obvious differences in key features and semantics. According to the clustering results, the preprocessed asset traceability data is divided into multiple asset transaction chain data. Each cluster corresponds to an asset transaction chain, which contains asset traceability data with similar key features and semantics. The asset transaction chain data represents the flow and correlation between assets in different transaction links, and reflects the asset traceability process.

[0017] Furthermore, based on the obtained key feature similarity and semantic similarity, a clustering algorithm is used to cluster the preprocessed asset traceability data, including: normalizing the obtained key feature similarity and semantic similarity so that their value ranges are unified to [0, 1]. The normalization process uses methods such as Min-MaxNormalization or Z-score normalization. After normalization, the key feature similarity and semantic similarity have the same scale, which is convenient for subsequent fusion and calculation. The normalized key feature similarity and semantic similarity are weighted and fused. Different weight coefficients are assigned according to the importance of key feature similarity and semantic similarity. The formula for weighted fusion is as follows: ,in, and Represent the weight coefficients of key feature similarity and semantic similarity respectively, satisfying The fusion similarity obtained after weighted fusion comprehensively considers the similarity of key features and semantics.

[0018] Specifically, constructing a fusion similarity matrix includes: representing the preprocessed asset traceability data as a list or array, recorded as data_list. Each element in data_list represents an asset traceability data, which contains the key features and semantic information of the data. Record the number of asset traceability data as N. Create a zero matrix of size N×N, recorded as similarity_matrix. The rows and columns of similarity_matrix correspond to the index of the asset traceability data respectively. Each element of the matrix is ​​initialized to 0, indicating that the similarity has not been calculated. Use two layers of nested loops to traverse the asset traceability data list data_list. The outer loop variable i ranges from 0 to N-1, indicating the index of the currently processed asset traceability data. The inner loop variable j ranges from i+1 to N-1, indicating the index of other asset traceability data compared with the current asset traceability data. For each pair of asset traceability data data_list[i] and data_list[j], calculate the fusion similarity between them. The calculation method of fusion similarity is as follows: Extract the key feature vectors of data_list[i] and data_list[j], recorded as feature_i and feature_j respectively. Calculate the Euclidean distance between feature_i and feature_j, recorded as feature_distance. Extract the semantic vectors of data_list[i] and data_list[j], recorded as semantic_i and semantic_j respectively. Calculate the cosine similarity between semantic_i and semantic_j, recorded as semantic_similarity. Normalize feature_distance and semantic_similarity to obtain the normalized similarity value. Perform weighted fusion on the normalized feature_distance and semantic_similarity to obtain the fusion similarity fusion_similarity.

[0019] Assign the calculated fusion similarity fusion_similarity to similarity_matrix[i][j] and similarity_matrix[j][i]. Since the similarity matrix is ​​symmetric, the values ​​of similarity_matrix[i][j] and similarity_matrix[j][i] are the same. Set the diagonal elements of the fusion similarity matrix similarity_matrix to 1. The diagonal elements represent the similarity between each asset traceability data and itself, and are usually set to the maximum value of 1. Return the constructed fusion similarity matrix similarity_matrix. similarity_matrix is ​​a symmetric matrix, in which each element similarity_matrix[i][j] represents the fusion similarity between asset traceability data i and j. Through nested loops, the asset traceability data list is traversed, the fusion similarity between each pair of asset traceability data is calculated, and the results are stored in the similarity matrix. The calculation of fusion similarity comprehensively considers the key feature similarity and semantic similarity, and the final similarity value is obtained by weighted fusion.

[0020] Based on the fusion similarity matrix, the Kruskal algorithm is used to construct the minimum spanning tree of the preprocessed asset traceability data. The minimum spanning tree represents the minimum connected subgraph of the preprocessed asset traceability data in the fusion similarity space. The Kruskal algorithm uses a greedy strategy to select the edges with the smallest weight in turn to construct the minimum spanning tree. The edge set and the corresponding edge weight set of the minimum spanning tree are obtained, where the edge weight represents the fusion similarity between the two asset traceability data. According to the edge weight set of the minimum spanning tree, the truncation distance algorithm is used to determine the parameters eps and min_samples of the HDBSCAN clustering. The edge weight set is sorted in order, and the inflection point of the weight distribution is obtained by the truncation distance algorithm. The edge weight corresponding to the inflection point is used as the parameter eps to represent the neighborhood radius of the cluster. The number of edges before the inflection point is used as the parameter min_samples to represent the minimum number of samples required to form a high-density area. The fusion similarity matrix is ​​used as the input of the HDBSCAN clustering, and clustering is performed according to the determined parameters eps and min_samples.

[0021] HDBSCAN clustering uses a density-reachable method to aggregate asset traceability data and divides density-connected data points into the same cluster. HDBSCAN clustering obtains preliminary division results, and each cluster corresponds to an asset transaction chain. The preliminary division results are hierarchically clustered to calculate the average similarity between asset transaction chain data. The average similarity represents the average value of the similarity between all data points in two asset transaction chains. The asset transaction chain data with an average similarity greater than the preset threshold are merged to form a larger asset transaction chain. The merging operation is performed in an iterative manner until no further merging is possible. After hierarchical clustering and merging, the final asset transaction chain data division results are obtained. Each asset transaction chain contains a set of key features and semantically similar asset traceability data, which represents the flow and association relationship between assets in different transaction links.

[0022] Furthermore, the asset traceability data is aggregated in a density-reachable manner, including: representing the preprocessed asset traceability data as a list or array, recorded as data_list. Each element in data_list represents an asset traceability data, which contains the key features and semantic information of the data. The number of asset traceability data is recorded as N. Set the parameters eps and min_samples of the HDBSCAN clustering algorithm. eps represents the neighborhood radius of the cluster, and min_samples represents the minimum number of samples required to form a high-density area. These two parameters are determined by the edge weight set and truncation distance algorithm of the minimum spanning tree, as described above. Create an empty list clusters to store cluster clusters. Create an array point_labels of size N to store the label of each asset traceability data point. The elements in point_labels are initialized to -1, indicating that they have not been visited. Use a loop to traverse the asset traceability data list data_list, and the loop variable i ranges from 0 to N-1.

[0023] For each asset traceability data point data_list[i], perform the following steps: If point_labels[i] is not equal to -1, it means that the point has been visited, skip the point and continue processing the next point. Calculate the number of data points in the eps neighborhood of data_list[i], recorded as neighbor_count. If neighbor_count is greater than or equal to min_samples, mark data_list[i] as a core point and set point_labels[i] to the number of the current cluster. If data_list[i] is a core point, create a new cluster, add data_list[i] to the cluster, and add the cluster to the clusters list. If data_list[i] is a core point, expand all data points in its eps neighborhood: For each data point data_list[j] in the eps neighborhood, if point_labels[j] is equal to -1, mark it as the number of the current cluster and add it to the current cluster. If point_labels[j] is not equal to -1, it means that the point has been assigned to other clusters and the point is skipped. If data_list[i] is not a core point, continue to process the next data point. Traverse the point_labels array. For elements with a value of -1, it means that the corresponding asset traceability data point is neither a core point nor a boundary point, and it is marked as a noise point. Noise points are not classified into any clusters and the mark of -1 is retained. Return the clusters list, where each element represents a cluster, which contains the asset traceability data points belonging to the cluster. Return the point_labels array, which represents the clustering label of each asset traceability data point, and the mark of the noise point is -1. By traversing the asset traceability data points, the core point is determined according to the number of data points in the eps neighborhood, and the core point is expanded, and the density-connected data points are classified into the same cluster. For data points that do not meet the core point conditions, if there is a core point in its eps neighborhood, it is marked as a boundary point and classified into the corresponding cluster. Data points that are neither core points nor boundary points are marked as noise points and are not included in any cluster. The final clustering result contains multiple clusters and noise points, achieving effective aggregation and division of asset traceability data.

[0024] Furthermore, the initial traceability graph is constructed, including: extracting address information from the asset transaction chain data, and representing each unique address as an address node. For each address node, extract its attribute features, such as transaction amount, transaction frequency, transaction time, etc., and construct a node feature vector. The address node and the corresponding node feature vector are used as the input nodes of the graph neural network. The Graph Attention Layer is used to update the features of the address node. The attention weight matrix between the address nodes is calculated through the attention mechanism, and the weight matrix represents the correlation and importance between the nodes.

[0025] The calculation formula of attention weight is as follows: , where a represents the attention weight vector, which is used to calculate the attention weights between nodes. The dimension of a is (2*hidden_size, 1), where hidden_size represents the dimension of the node feature vector. Represents the weight matrix of node i, which is used to map the feature vector of node i to the latent space. The dimension of is (hidden_size, input_size), where input_size represents the original dimension of the node feature vector. Represents the weight matrix of node j, which is used to map the feature vector of node j to the latent space. The dimensions and same. The feature vector representing node i represents the original feature representation of node i. Represents the feature vector of node j, which represents the original feature representation of node j. || represents the concatenation operation, which concatenates the mapped feature vectors of node i and node j to form a vector of length 2*hidden_size. b represents the bias term, which is used to increase the flexibility and expressiveness of the model. The dimension of b is (2*hidden_size, 1). Leaky ReLU: an activation function used to introduce nonlinear transformations and improve the expressiveness of the model. Compared with the ReLU function, Leaky ReLU has a small negative slope in the negative part, avoiding the "dead ReLU" problem. softmax: a normalization function used to normalize the attention weights to the range of [0, 1] so that the sum of all weights is 1. Specifically, a node-independent weight matrix is ​​introduced and , replacing the shared weight matrix W in the original formula. This allows specific feature transformations to be learned for different nodes, improving the model's expressiveness and flexibility. Adding the bias term b increases the model's degree of freedom, allowing the model to learn more complex attention weight distributions. Using the Leaky ReLU activation function to replace the ReLU function in the original formula avoids the "dead ReLU" problem and improves the model's convergence and stability.

[0026] According to the attention weight matrix, the features of the address node are weighted and summed to update the feature representation of the node. The multi-head attention mechanism is used to update the features of the address node. Multiple independent graph attention layers are used to calculate the attention weight matrix of the address node in parallel, and each graph attention layer uses a different weight matrix. The outputs of different graph attention layers are spliced ​​as the output of the multi-head attention.

[0027] The calculation formula of multi-head attention is as follows: , where the meanings of each parameter are as follows: represents the output of the i-th graph attention layer and represents the node feature representation calculated using the i-th attention head. The dimension is (num_nodes, hidden_size), where num_nodes represents the number of nodes and hidden_size represents the dimension of the hidden layer. Concat: concatenates the outputs of k attention heads together to form a vector of length k*hidden_size. Represents the output weight matrix, which is used to map the concatenated multi-head attention output to the final output feature space. The dimension is (k*hidden_size, output_size), where output_size represents the dimension of the final output feature. Represents the output bias term, which is used to increase the flexibility and expressiveness of the model. The dimension of is (output_size,). Layer Norm represents the layer normalization operation, which is used to normalize the output of multi-head attention to have zero mean and unit variance. Layer Norm accelerates the convergence speed of the model and improves the stability and generalization ability of the model. Specifically, the output bias term is introduced , increasing the degree of freedom of the model so that the model can learn more complex feature transformations. Apply layer normalization operation Layer Norm to the output of multi-head attention to normalize the output. Layer normalization accelerates the convergence speed of the model and improves the stability and generalization ability of the model. It converts the output to a distribution with zero mean and unit variance, making the output distribution between different layers more consistent and reducing the problem of internal covariate shift. The outputs of multiple attention heads are combined through the splicing operation to form a vector of length k*hidden_size. Use the output weight matrix The concatenated multi-head attention output is linearly transformed and mapped to the final output feature space. This increases the flexibility of the model and allows the model to learn more complex and abstract feature representations.

[0028] Output weight matrix The specific expression is as follows: W o = [ w 1 , w 2 ,....., w outputsize ] ,in, Represents the output weight matrix The i-th column of , that is, the weight vector corresponding to the i-th output feature. The dimension is (k*hidden_size, 1). k represents the number of attention heads. hidden_size represents the hidden layer dimension of each attention head. output_size represents the dimension of the final output feature. Output weight matrix It can be viewed as a matrix consisting of output_size column vectors, each of which corresponds to an output feature. The function of is to map the concatenated multi-head attention output (dimension is k*hidden_size) to the final output feature space (dimension is output_size). Output weight matrix Usually, random initialization is used for initialization, using methods such as Xavier initialization or Kaiming initialization.

[0029] Based on the output of multi-head attention, the feature representation of the address node is pooled through the Graph Pooling Layer. The Graph Pooling Layer uses maximum pooling, average pooling, or other pooling methods to aggregate and compress the features of the nodes. The high-level feature representation of the address node is obtained through the Graph Pooling Layer, which reduces the feature dimension and extracts important information. Based on the high-level feature representation of the address node, the address node is mapped from the high-dimensional feature space to the low-dimensional embedding space through the Fully Connected Layer.

[0030] The calculation formula of the fully connected layer is as follows: The meaning of each parameter is as follows: Represents high-level features, i.e., the input features of the fully connected layer. It is the output of the previous layer, such as the output of the convolutional layer or the attention layer. The dimension of is (input_size,). Represents the attention weight, which indicates the importance and relevance between different features. The dimension of is (input_size,), which is the same as the dimension of high-level features. Represents an element-by-element multiplication operation, which multiplies the high-level features and attention weights element-by-element to obtain the weighted feature representation. Represents the first weight matrix, which is used to map the weighted feature representation to an intermediate feature space. The dimension of is (hidden_size, input_size), where hidden_size represents the dimension of the intermediate feature space. Represents the first bias term, which is used to increase the flexibility and expressiveness of the model. The dimension is (hidden_size). activation: Activation function, such as ReLU or tanh, is used to introduce nonlinear transformations and improve the expressiveness of the model. represents the second weight matrix, which is used to map the attention weights to an intermediate feature space. The dimensions are (hidden_size, input_size). Represents the second bias term, which is used to increase the flexibility and expressiveness of the model. The dimension of is (hidden_size). Specifically, the attention weight is introduced , and fuse it with high-level features through element-by-element multiplication operations to obtain a weighted feature representation. In this way, according to the importance and relevance of different features, high-level features are adaptively adjusted and weighted to highlight key information and suppress noise and redundant information. Use two independent fully connected layers to process the weighted feature representation and attention weights respectively to obtain two intermediate feature representations. Add the two intermediate feature representations to obtain the final embedded representation. The addition operation fuses the two intermediate feature representations, captures the complementary information between them, and improves the quality and richness of the embedded representation. Introduce bias terms in the two fully connected layers respectively and , increasing the flexibility and expressiveness of the model, enabling the model to learn more complex feature transformations and mapping relationships.

[0031] The embedding vector representation of the address node is obtained through the fully connected layer. The embedding vector captures the semantic information and structural characteristics of the node. According to the embedding vector representation of the address node, the edge between the address nodes is constructed by calculating the Euclidean distance between the node embedding vectors. The smaller the Euclidean distance, the more similar the two address nodes are in the embedding space, and the greater the weight of the edge. By setting the distance threshold, the node pairs with a distance less than the threshold are connected to form the edge of the initial traceability graph. The nodes of the initial traceability graph are address nodes, and the edges represent the similarity and association between address nodes. The constructed initial traceability graph is digitally signed and hashed using the blockchain's smart contract. Using the blockchain's consensus mechanism, such as proof of work (PoW) or proof of stake (PoS), the signature and hash value of the initial traceability graph are agreed upon in the blockchain network. The initial traceability graph is added to the blockchain as a block to ensure the immutability and traceability of the traceability graph. The blockchain's consensus mechanism ensures the credibility and security of the initial traceability graph and prevents data forgery and tampering. The graph neural network updates and aggregates the features of address nodes through the attention mechanism and multi-head attention mechanism to capture the relevance and importance between nodes. The embedding vector represents the mapping of nodes to a low-dimensional space, which facilitates the construction of edges between nodes.

[0032] Another aspect of this specification also provides a blockchain-based asset processing traceability system for executing a blockchain-based asset processing traceability method of the present application.

[0033] Beneficial effects: Compared with the prior art, the advantages of this application are:

[0034] A deep learning model is used to extract features of asset traceability data, local features are extracted through convolutional neural networks, time series features are extracted through recurrent neural networks, and an attention mechanism is introduced to perform weighted fusion of multi-scale time series features, which improves the feature representation ability of asset traceability data and enhances the discriminability and robustness of key features.

[0035] A clustering algorithm based on key feature similarity and semantic similarity is used to divide the asset transaction chain of asset traceability data. The Euclidean distance between key feature vectors and the cosine similarity between semantic vectors are calculated to construct a fusion similarity matrix. The minimum spanning tree algorithm and density clustering algorithm are used to adaptively divide the asset transaction chain. This overcomes the defects of traditional methods such as sensitivity to parameters and unstable clustering results, and improves the accuracy and reliability of asset transaction chain division.

[0036] A graph neural network is introduced to construct the initial traceability graph, and the asset transaction chain data is mapped into graph structure data. Through the graph attention layer and multi-head attention mechanism, the topological structure relationship and semantic association relationship between address nodes are adaptively learned, and the high-order interaction patterns and long-range dependencies contained in the traceability graph are captured, and the deep feature representation of the traceability graph is mined.

[0037] By integrating the knowledge graph and the address label library, the address nodes in the initial traceability graph are semantically mapped and replaced with corresponding address label nodes. This introduces external domain knowledge, gives the traceability graph a clear semantic description and rich attribute information, and improves the interpretability and readability of the traceability graph.

[0038] A deep embedding clustering algorithm is used to cluster the address label nodes. The local structural features of the address label nodes are extracted through a graph convolutional neural network. The global correlation features between the address label nodes are obtained through a graph attention mechanism. Feature fusion is then performed to obtain a comprehensive feature representation vector of the address label nodes. The graph autoencoder structure is used to achieve feature compression and dimensionality reduction. The K-means algorithm is applied in a low-dimensional embedding space to cluster nodes, effectively balancing the accuracy and efficiency of clustering.

[0039] The key information such as the asset transaction chain division results, the initial traceability map, the address label mapping results, the asset flow traceability map, etc. are stored on the blockchain. The decentralized, tamper-proof, and traceable characteristics of the blockchain are utilized to ensure the transparency and data security of the asset processing and traceability process, and realize the visual tracking of the entire asset flow process. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] This specification will be further described in the form of exemplary embodiments, which will be described in detail by the accompanying drawings. These embodiments are not restrictive, and in these embodiments, the same number represents the same structure, wherein:

[0041] Figure 1 is an exemplary flow chart of a blockchain-based asset processing traceability method according to some embodiments of this specification;

[0042] Figure 2 is an exemplary flow chart of obtaining key features according to some embodiments of this specification;

[0043] Figure 3 is an exemplary flow chart for obtaining the final asset transaction chain data partitioning result according to some embodiments of this specification;

[0044] Figure 4 is an exemplary flow chart of obtaining an initial traceability graph according to some embodiments of this specification;

[0045] Figure 5 It is an exemplary flowchart for obtaining an asset circulation traceability diagram according to some embodiments of this specification. DETAILED DESCRIPTION

[0046] The method and system provided in the embodiments of this specification are described in detail below with reference to the accompanying drawings.

[0047] Figure 1 This is an exemplary flow chart of an asset processing and tracing method based on blockchain according to some embodiments of this specification. Asset tracing data is obtained from a data warehouse and preprocessed; a deep learning model is used to extract features from the preprocessed asset tracing data, and the extracted features are used as key features; the preprocessed asset tracing data is divided into multiple asset transaction chain data according to the key features; each asset transaction chain data contains at least two address information; the asset transaction chain data is used as input, and a graph neural network Graph Attention is used The network constructs an initial traceability graph; the initial traceability graph contains multiple address nodes, and the edge between any two address nodes represents the asset transfer information corresponding to the two connected address nodes; the initial traceability graph is stored on the blockchain; the address label library is obtained, and the address label library stores multiple address labels, each address label represents at least one address corresponding to an entity; a knowledge graph is constructed based on the address label library, and the semantic association between the address label and the entity is represented by constructing a triple of entity-relationship-attribute; the obtained address labels and the constructed knowledge graph are stored on the blockchain; according to the address labels in the knowledge graph, the address nodes in the initial traceability graph are replaced with the corresponding address label nodes, and the node replacement results are verified by the consensus mechanism of the blockchain to obtain the traceability graph of the address label nodes; the address label nodes in the traceability graph of the address label nodes are clustered by using the Deep EmbeddedClustering algorithm based on deep learning; the clustering results are agreed upon by using the consensus mechanism of the blockchain, and the clustering results are used as the asset circulation traceability graph, and the asset circulation traceability graph is stored on the blockchain.

[0048] Data preprocessing. Obtain the original asset traceability data from the distributed data warehouse in the blockchain network, perform preprocessing operations such as cleaning, filtering, and format conversion on the original data, obtain standardized asset traceability data, and store it in the local database. The preprocessed asset traceability data is a two-dimensional matrix with a shape of (num_transactions, num_features), where num_transactions represents the number of transactions and num_features represents the number of attributes of each transaction. If there are 1,000 transactions and each transaction contains 20 attributes (such as transaction amount, transaction time, transaction address, etc.), the shape of the matrix is ​​(1000, 20).

[0049] Figure 2 This is an exemplary flow chart for obtaining key features according to some embodiments of this specification. The first convolution layer: use a 3x3 convolution kernel to perform a convolution operation on the input matrix. Using 64 convolution kernels, the shape of the output feature map of the convolution layer is (num_transactions, num_features, 64). The convolution operation is expressed as: output[i, j, k] = sum(input[i:i+3, j:j+3]*kernel[k]), where output is the output feature map, input is the input matrix, kernel is the convolution kernel, i and j are the row and column indices of the input matrix, and k is the index of the convolution kernel. The convolution layer is followed by a ReLU activation function to perform a nonlinear transformation on the feature map: output[i, j, k] = max(0, output[i, j, k]). The feature map is then downsampled using a maximum pooling layer. The size of the pooling layer is 2x2, and the stride is 2, so the shape of the feature map after pooling is (num_transactions / 2, num_features / 2, 64). The second convolutional layer: Use a 5x5 convolution kernel to convolve the output feature map of the first convolutional layer. Using 128 convolution kernels, the shape of the output feature map of the convolutional layer is (num_transactions / 2, num_features / 2, 128). The convolution operation is expressed as: output[i, j, k] = sum(input[i:i+5, j:j+5,:]*kernel[k]), where ":" indicates convolution in the depth dimension. Similarly, the convolution layer is followed by a ReLU activation function for nonlinear transformation. Then the feature map is downsampled using an average pooling layer. The size of the pooling layer is 2x2, and the stride is 2, so the shape of the feature map after pooling is (num_transactions / 4, num_features / 4, 128). More convolutional and pooling layers: Add more convolutional and pooling layers as needed to further extract high-level features. Each convolutional layer uses a different number and size of convolution kernels to capture local features of different scales. The type (max pooling or average pooling) and size of the pooling layer are adjusted according to the needs of the task. Flattening layer: Flatten the output feature map of the last pooling layer into a vector as the local feature vector of the asset traceability data. The shape of the output feature map of the last pooling layer is (num_transactions / 8, num_features / 8, 256), then the length of the flattened local feature vector is (num_transactions / 8)*(num_features / 8)*256.

[0050] The shape of the local feature vector obtained from the convolutional neural network (CNN) is (num_transactions, local_feature_dim), where num_transactions represents the number of transactions and local_feature_dim represents the dimension of the local feature vector. Use multi-layer LSTM for time series feature extraction: Arrange the local feature vectors in the chronological order of transactions to form a time series data. Use multi-layer LSTM to extract features from time series data. Use two layers of LSTM, and the hidden state dimension of each layer of LSTM is hidden_dim. At each time step, LSTM receives the local feature vector of the current time step, and combines the hidden state of the previous time step to calculate the hidden state and output feature vector of the current time step. The calculation process of LSTM is expressed as: i_t=sigmoid(W_i*[h_{t-1},x_t]+b_i), f_t=sigmoid(W_f*[h_{t-1},x_t]+b_f), o_t=sigmoid(W_o*[h_{t-1},x_t]+b_o), c_t=f_t*c_{t-1}+i_t*tanh(W_c*[h_{t-1},x_t]+b_c), h_t=o_t*tanh(c_t), where i_t, f_t and o_t are input gate, forget gate and output gate respectively, c_t is cell state, h_t is hidden state, and x_t is input local feature vector of current time step. Attention mechanism is used at each time step of LSTM: for the local feature vector of each time step, the weight of each feature is calculated using attention mechanism. The calculation of attention weights is expressed as: attention_weights=softmax(W_a*tanh(W_h*h_t+W_x*x_t+b_a)), where W_a, W_h and W_x are the weight matrices of the attention mechanism, and b_a is the bias term.

[0051] According to the attention weights, the local feature vectors are weighted and summed to obtain the attention feature vector of the current time step: attention_vector=sum(attention_weights*x_t), and the attention feature vector is concatenated with the hidden state of LSTM as the time series feature vector of the current time step. Through the cyclic calculation of multiple layers of LSTM, time series feature vectors of different scales are obtained: the output time series feature vector of the first layer LSTM captures short-term dependencies, and the output time series feature vector of the second layer LSTM captures long-term dependencies. The time series feature vector of the last time step is used as the time series feature vector of the entire transaction sequence. The attention mechanism is used to perform weighted fusion of the local feature vector and the time series feature vector: the local importance weight of each feature in the local feature vector and the time series importance weight of each feature in the time series feature vector are calculated.

[0052] The calculation of local importance weights is expressed as: local_weights=softmax(W_l*local_features+b_l), and the calculation of temporal importance weights is expressed as: temporal_weights=softmax(W_t*temporal_features+b_t). According to the local importance weights and temporal importance weights, the local feature vector and the temporal feature vector are weighted and summed to obtain the fused feature vector: fused_features=local_weights*local_features+temporal_weights*temporal_features. Use a fully connected layer to perform nonlinear transformation on the fused feature vector: Use a multi-layer perceptron (MLP) to perform nonlinear transformation and feature combination on the fused feature vector. The MLP contains two hidden layers, each with a dimension of hidden_dim. At each layer of the MLP, a feature interaction layer is used to capture the high-order interaction relationship between different features. The feature interaction layer uses the feature cross multiplication operation to take the product of different features as a new feature. The calculation of the feature interaction layer is expressed as: interaction_features=fused_features⊗fused_features, where ⊗ represents the feature cross product operation.

[0053] The output of the feature interaction layer is concatenated with the fused feature vector and subjected to nonlinear transformation through the fully connected layer: hidden_features_1=ReLU(W_1*[fused_features, interaction_features]+b_1), hidden_features_2=ReLU(W_2*hidden_features_1+b_2), and the last layer of MLP outputs the key feature vector of asset traceability data: key_features=W_3*hidden_features_2+b_3.

[0054] For each pair of key feature vectors of asset traceability data, calculate the Euclidean distance between them. The calculation formula of Euclidean distance is: distance(x, y) = sqrt(sum((xy)^2)), where x and y are two key feature vectors. Get a key feature similarity matrix of shape (num_transactions, num_transactions), each element in the matrix represents the Euclidean distance between the corresponding two asset traceability data. Encode the text information in the asset traceability data (such as transaction notes, transaction addresses, etc.) using a pre-trained language model (such as BERT). The language model maps text information into a fixed-length semantic vector to capture the semantic information of the text. Get a semantic vector matrix of shape (num_transactions, semantic_dim), where semantic_dim represents the dimension of the semantic vector. For each pair of semantic vectors of asset traceability data, calculate the cosine similarity between them. The formula for calculating cosine similarity is: similarity(x, y) = dot(x, y) / (norm(x) * norm(y)), where x and y are two semantic vectors. A semantic similarity matrix with a shape of (num_transactions, num_transactions) is obtained, and each element in the matrix represents the cosine similarity between the corresponding two asset traceability data. The key feature similarity matrix and the semantic similarity matrix are normalized so that their value range is between [0, 1]. The two similarity matrices are fused using weighted average.

[0055] The weight of key feature similarity is w_key, and the weight of semantic similarity is w_semantic. The calculation formula of fused similarity is: similarity =w_ key *key_ feature_similarity +w_ semantic *semantic_ similarity. A fusion similarity matrix with a shape of (num_transactions, num_transactions) is obtained. The fusion similarity matrix is ​​regarded as a complete graph, where each node represents an asset traceability data, and the weight of the edge represents the fusion similarity between the corresponding two data.

[0056] Figure 3 This is an exemplary flow chart for obtaining the final asset transaction chain data partitioning result according to some embodiments of this specification, using the Kruskal algorithm to construct a minimum spanning tree on the complete graph. The minimum spanning tree is an undirected acyclic connected subgraph that connects all nodes and has the smallest sum of edge weights. The steps of the Kruskal algorithm are as follows: Sort all edges from small to large according to weight. Initialize an empty minimum spanning tree and a union-find set to record the connectivity of the nodes. Traverse the sorted edges, for each edge (u, v): if u and v are not in the same connected component, add the edge to the minimum spanning tree and merge the connected components where u and v are located. The final minimum spanning tree is what is required.

[0057] According to the edge weight distribution of the minimum spanning tree, the parameters eps and min_samples of HDBSCAN clustering are determined using the truncation distance algorithm. The steps of the truncation distance algorithm are as follows: Calculate the mean and standard deviation of the weights of all edges in the minimum spanning tree. Set the truncation distance to the mean plus k times the standard deviation, where k is a hyperparameter. Use the truncation distance as the eps parameter of HDBSCAN clustering, indicating the maximum distance between two samples. Samples exceeding this distance will be regarded as noise points. Use the degree of the node with the largest degree in the minimum spanning tree as the min_samples parameter of HDBSCAN clustering, indicating the minimum number of samples required to be included in a category. Use the fused similarity matrix as the input of HDBSCAN clustering, and cluster using the determined eps and min_samples parameters. The HDBSCAN clustering algorithm regards sample points as points in a high-dimensional space. By estimating the local density of each point, points with connected density are classified into one category, and points with lower density are marked as noise points. The result of HDBSCAN clustering is a label vector indicating the category to which each asset traceability data belongs, and the label of the noise point is -1. For each preliminary clustering result, calculate the average similarity between asset traceability data within the category. Use a hierarchical clustering algorithm to merge the preliminary clustering results. The hierarchical clustering algorithm merges the most similar categories from bottom to top according to the average similarity between categories until the preset number of categories or similarity threshold is reached. Commonly used hierarchical clustering algorithms include AGNES (Agglomerative Nesting) and DIANA (Divisive Analysis). Through hierarchical clustering, asset transaction chains with high similarity are merged to obtain the final asset transaction chain division result.

[0058] Figure 4This is an exemplary flowchart for obtaining an initial traceability graph according to some embodiments of this specification. For each asset transaction chain data, the address node is extracted, and the attribute information of the address node is used as the feature vector of the node. The attribute information of the address node includes the address type (such as the transaction initiator, the recipient), the transaction amount, the transaction timestamp, etc. The extracted address node and the corresponding feature vector are used as the input node of the graph neural network. The graph attention layer uses the attention mechanism to calculate the attention weight matrix between the address nodes to capture the semantic relationship between the nodes. For each address node, the attention weight with all other nodes is calculated. The calculation formula of the attention weight is: attention_weight=softmax(Leaky ReLU(a^T*[W_i*h_i||W_j*h_j]+b)). The multi-head attention mechanism calculates the attention weight matrix of the node in parallel through multiple independent graph attention layers to capture multiple semantic relationships between nodes. For each graph attention layer, different attention vectors and weight matrices are used to calculate the attention weight to obtain different attention weight matrices. The outputs of different graph attention layers are spliced ​​as the output of multi-head attention. If there are K graph attention layers, the output of multi-head attention is expressed as: multi_head_output=Layer Norm(Concat(head_1, head_2, ..., head_k)W_o+b_o). The graph pooling layer performs a pooling operation on the output of multi-head attention to aggregate the feature representation of the nodes. Common graph pooling operations include maximum pooling, average pooling, and self-attention pooling. After the graph pooling layer, the high-level feature representation of each node is obtained, indicating the importance and information aggregation of the node in the graph structure. The fully connected layer maps the high-level feature representation of the node from the high-dimensional feature space to the low-dimensional embedding space to obtain the embedding vector representation of the node. The calculation formula of the fully connected layer is: embedding=activation(W_1*(high_level_features⊙attention_weights)+b_1)+activation(W_2*attention_weights+b_2). According to the embedding vector representation of the node, the Euclidean distance between the nodes is calculated and the edges between the nodes are constructed. The calculation formula for Euclidean distance is: d_ij=||h_i''-h_j''||_2.

[0059] In order to ensure the authenticity and integrity of the data of the initial provenance graph, it is digitally signed using the blockchain's smart contract. Smart contracts use asymmetric encryption algorithms, such as the elliptic curve digital signature algorithm (ECDSA). The smart contract first uses the private key to sign the data of the initial provenance graph to generate a digital signature. The signing process is expressed as: signature = ECDSA_Sign (private_key, initial_provenance_graph_data), where private_key represents the private key of the smart contract, and initial_provenance_graph_data represents the data of the initial provenance graph. The generated digital signature signature will be uploaded to the blockchain network together with the data of the initial provenance graph. In order to further ensure the data integrity of the initial provenance graph, a hash operation is performed on it to obtain a hash value. Use a secure hash algorithm, such as SHA-256, to hash the data of the initial provenance graph. The hash operation process is expressed as: hash_ value = SHA256 (initial_ provenance_graph_data ), where initial_ provenance_graph_data Represents the data of the initial traceability graph. The generated hash value hash_value will be used as the data content of the block and uploaded to the blockchain network together with the data and digital signature of the initial traceability graph. After uploading the data, digital signature and hash value of the initial traceability graph to the blockchain network, it is necessary to reach a consensus in the network through the consensus mechanism of the blockchain. Common consensus mechanisms include proof of work (PoW), proof of stake (PoS), etc. Taking proof of work as an example, nodes in the blockchain network need to compete for the right to record accounts by solving a computational problem. First, the data, digital signature and hash value of the initial traceability graph are packaged into a candidate block. Then, the node finds a hash value that meets the difficulty target by constantly trying different random numbers (nonce). When a node successfully finds a hash value that meets the difficulty target, it broadcasts the block to the entire blockchain network. Other nodes verify the validity of the block, including verifying the integrity of the initial traceability graph data, the correctness of the digital signature, and the legitimacy of the block hash value. If the verification passes, other nodes will accept the block and add it to their own copies of the blockchain. After verification and confirmation by the consensus mechanism, the initial traceability graph is added to the blockchain as a new block.

[0060] The address tag library contains known addresses and their corresponding tag information, such as address type, entity, etc. By interacting with the blockchain network, the latest address tag library data is obtained from the specified smart contract or data storage location. The obtained address tag library data is in JSON, CSV and other formats, containing the mapping relationship between addresses and tags. The obtained address tag library data is cleaned and preprocessed to ensure the quality and consistency of the data. Feature extraction is performed on the preprocessed address tag data to obtain the attribute information of the entity. According to the type of address tag and business needs, key feature attributes are extracted. For transaction addresses, features such as transaction amount, transaction frequency, and transaction object are extracted; for contract addresses, features such as contract code and call parameters are extracted. The extracted features are used as the attributes of the entity to enrich the information representation of the knowledge graph. Based on the extracted address tag features, a knowledge graph with address tags as entities and relationships between entities as edges is constructed. Each address tag is an entity in the knowledge graph, and the attributes of the entity come from the extracted features. The relationship between entities is defined according to business logic and data analysis results, such as transaction relationship, ownership relationship, call relationship, etc. Use appropriate data structures and storage methods to represent the knowledge graph, such as adjacency matrix, adjacency list, triples, etc. The knowledge graph construction process is implemented using a graph database (such as Neo4j) or custom data structures and algorithms. Use the blockchain's asymmetric encryption algorithm (such as ECDSA) to sign the knowledge graph data. Hash the constructed knowledge graph data to obtain a hash value. Use a secure hash algorithm (such as SHA-256) to hash the knowledge graph data. Upload the constructed knowledge graph data, digital signature, and hash value to the blockchain network. Store the knowledge graph data in the blockchain's transaction data, or upload the hash value as the transaction metadata. Persist the knowledge graph data in the blockchain network through smart contracts or the blockchain's data storage mechanism.

[0061] Figure 5This is an exemplary flow chart for obtaining an asset circulation traceability graph according to some embodiments of this specification, and the data of the initial traceability graph and the knowledge graph are obtained from the blockchain network. The initial traceability graph and the knowledge graph are loaded into the memory for matching and mapping operations. The initial traceability graph is represented by a graph data structure (such as an adjacency list), and the knowledge graph is stored by a graph database or a custom data structure. Each address node in the initial traceability graph is traversed, and the corresponding address label entity is found in the knowledge graph. The matching process is based on the string similarity, hash value and other features of the address. If a matching address label entity is found, it is used as the mapping result of the address node; if no matching entity is found, the address node is marked as unknown or a new address label entity is created. For each address node in the initial traceability graph, it is replaced with the matched address label entity. The replacement process is performed in the memory, and the original address node is replaced with the corresponding address label entity node. The replaced node contains the attribute information of the address label entity, such as the label type, the entity to which it belongs, etc. The replaced traceability graph is called the traceability graph of the address label node, which reflects the mapping relationship between the address node and the entity in the knowledge graph. The traceability graph of the address label node is submitted to the blockchain network for verification. The node mapping result is verified through the smart contract or the consensus mechanism of the blockchain. The verification process includes checking the consistency, integrity and legality of the node mapping. The nodes in the blockchain network reach a consensus on the node mapping result through a consensus algorithm (such as proof of work, proof of stake). The consensus process ensures the credibility and immutability of the node mapping result. After verification through the consensus mechanism, the traceability graph of the address label node is uploaded to the blockchain network.

[0062] The traceability graph of address tag nodes is regarded as an undirected graph or a directed graph, where nodes represent address tags and edges represent the relationship between address tags. Each node has multiple attributes, such as the type of address tag, the entity to which it belongs, the transaction amount, etc. The edges have weights, which represent the strength or importance of the relationship between address tags. The adjacency matrix is ​​a two-dimensional matrix used to represent the connection relationship between nodes. The rows and columns of the matrix correspond to the nodes in the graph respectively. If there is an edge between node i and node j, the element A[i, j] in the adjacency matrix = 1 (or the weight of the edge); otherwise, A[i, j] = 0. For undirected graphs, the adjacency matrix is ​​symmetric; for directed graphs, the adjacency matrix is ​​asymmetric. The node feature matrix is ​​a two-dimensional matrix used to represent the attribute information of the node. The rows of the matrix correspond to the nodes in the graph, and the columns correspond to the attributes of the nodes. Each node has multiple attributes, so the number of columns of the node feature matrix depends on the number of attributes. Node features are numerical, categorical, or binary, and need to be properly encoded and normalized. GCN is a convolutional neural network based on graph-structured data. The adjacency matrix A and the node feature matrix X are taken as the input of GCN. Each layer of GCN is represented as: H^(l+1)=f(H^(l),A), where H^(l) represents the node representation of the lth layer and f is a nonlinear activation function. GCN updates the representation of nodes by aggregating the neighborhood information of nodes to capture the local structural features of nodes. The output of GCN is the updated node representation matrix H^(L), where L is the number of layers of GCN. GAT is a graph neural network based on the attention mechanism. The adjacency matrix A and the node feature matrix X are taken as the input of GAT. GAT assigns different weights to nodes through the attention mechanism to learn the importance between nodes. The attention coefficient is calculated by the similarity of the node representation and normalized using the softmax function. Each layer of GAT is represented as: H^(l+1)=f(H^(l),A,α), where α is the attention coefficient matrix. The output of GAT is the updated node representation matrix H^(L), where L is the number of layers of GAT. GCN and GAT capture the local structural features and global association features of nodes respectively. The outputs of GCN and GAT are combined to obtain a comprehensive feature representation of the node. The combination is achieved by concatenation or element-level weighted summation. The combined feature matrix is ​​used for subsequent tasks such as node classification, link prediction, etc.

[0063] The input of GCN is the adjacency matrix A and the node feature matrix X. GCN aggregates the neighborhood information of the node through convolution operations and updates the representation of the node. The convolution operation is expressed as: H^(l+1)=σ(D^(-1 / 2)*A*D^(-1 / 2)*H^(l)*W^(l)), where D is the degree matrix, σ is the nonlinear activation function, and W^(l) is a learnable weight matrix. By stacking multiple layers of GCN, the multi-hop neighborhood information of the node is captured, and the domain information of the node in the traceability graph is learned. The output of GCN is the updated node representation matrix H^(L), which represents the local structural characteristics of the node. The input of GAT is the adjacency matrix A and the node feature matrix X. GAT assigns different weights to nodes through the attention mechanism to learn the importance between nodes. The attention coefficient is calculated by the similarity of the node representation, e_{ij}=a^T*[Wh_i||Wh_j], where a is a learnable attention vector, W is a learnable weight matrix, and h_i and h_j are the representations of nodes i and j. The attention coefficient is normalized by the softmax function: α_{ij}=softmax_j(e_{ij})=exp(e_{ij}) / ∑_{k∈N_i}exp(e_{ik}), where N_i is the set of neighbor nodes of node i.

[0064] GAT updates the representation of nodes by weighted aggregation of node neighbor information: h_i^'=σ(∑_{j∈N_i}α_{ij}*Wh_j). Through the multi-head attention mechanism and the stacking of multiple layers of GAT, the position and role of nodes in the traceability graph are captured, and the global correlation features between nodes are learned. The output of GAT is the updated node representation matrix H^(L), which represents the global correlation features of the nodes. The local structure feature matrix H_GCN extracted by GCN and the global correlation feature matrix H_GAT obtained by GAT are fused. The fusion is achieved by concatenation, that is: H_fused=[H_GCN||H_GAT], where || means column concatenation. Element-level weighted summation is also used, that is: H_fused=α*H_GCN+(1-α)*H_GAT, where α is a learnable weight parameter. The fused feature matrix H_fused represents the comprehensive feature representation of the address label node, which contains local structure information and global correlation information. The comprehensive feature representation matrix H_fused of the address label node is used as the input of the graph autoencoder. The graph autoencoder consists of two parts: the encoder and the decoder. The encoder maps H_fused to a low-dimensional embedding space to obtain the embedded vector representation Z of the node. The encoder is a multi-layer perceptron (MLP) or other neural network structure. The decoder reconstructs the embedded vector representation Z into the original comprehensive feature representation H_fused_rec. The decoder is an MLP or other neural network structure symmetric to the encoder. The parameters of the graph autoencoder are optimized by minimizing the reconstruction error L=||H_fused-H_fused_rec||^2, so that the embedded vector Z can represent the features of the node in a compressed form. The optimization process uses a gradient descent algorithm, such as the Adam optimizer, and sets an appropriate learning rate and regularization term. The output of the graph autoencoder is the embedded vector representation Z of the node, which represents the comprehensive features of the node in a low-dimensional and efficient manner.

[0065] The embedding vector representation Z of the address label node is used as the input of the K-means clustering algorithm. The goal of the K-means clustering algorithm is to divide the nodes into K clusters so that the similarity of the nodes within the cluster is maximized and the similarity of the nodes between clusters is minimized. The clustering process is achieved through iterative optimization, and the specific steps are as follows: Randomly select K nodes as the initial cluster centers. For each node, calculate the Euclidean distance between it and each cluster center, and assign it to the cluster with the closest distance. For each cluster, update the cluster center to the mean of the embedding vectors of the nodes in the cluster. Repeat until the cluster center no longer changes significantly or the maximum number of iterations is reached. The clustering result is represented by the cluster label or cluster center, and each node is assigned to the corresponding cluster. The embedding representation Z of the address label node and the clustering result are used as transaction data and uploaded to the blockchain network. Multiple nodes in the blockchain network calculate the hash value of the transaction data in parallel. The hash values ​​calculated by different nodes are compared and voted through the consensus mechanism to ensure the consistency and credibility of the clustering results. Common consensus mechanisms include proof of work (PoW) and proof of stake (PoS).

[0066] Constructing an asset circulation traceability graph according to the clustering results corresponding to the consistent hash value includes: obtaining a consistent hash value verified by the consensus mechanism from the blockchain network. Retrieving the corresponding clustering results according to the consistent hash value, including the cluster cluster label to which each address label node belongs. Creating an empty directed weighted graph G to represent the asset circulation traceability graph. According to the cluster cluster label in the clustering result, create a node for each cluster cluster and add it to the graph G. For each cluster cluster node, set the following properties: The center coordinates of the cluster cluster: The center position of the cluster cluster in the embedding space is obtained by calculating the mean of the embedding vectors of all address label nodes in the cluster cluster. The number of nodes in the cluster cluster: Count the number of address label nodes contained in the cluster cluster. Store the node attributes in the node data structure of the graph G and associate them with the corresponding cluster cluster node. Traverse the transaction data in the blockchain network, and for each transaction: identify the cluster clusters to which the initiating address and receiving address of the transaction belong. Find the corresponding source cluster cluster node and target cluster cluster node in the graph G. If there is no edge between the source cluster node and the target cluster node, create a new directed edge and add it to the graph G. If there is already an edge between the source cluster node and the target cluster node, update the attributes of the edge. For each edge in the graph G, set the following attributes: Edge direction: According to the clusters to which the initiating address and the receiving address of the transaction belong, determine the direction of the edge, from the source cluster to the target cluster. Edge weight: Count the transaction frequency and transaction amount between the source cluster and the target cluster, and use them as the weight of the edge. Store the edge attributes in the edge data structure of the graph G and associate them with the corresponding directed edges. As new transaction data is generated in the blockchain network, the asset circulation traceability graph is updated regularly. For new transactions, the node attributes and edge attributes in the graph G are repeatedly updated. For cluster nodes and edges that have not been traded for a long time, set an expiration mechanism to remove them from the graph G or mark them as inactive. Upload the constructed asset circulation traceability graph as transaction data to the blockchain network. Through the data storage mechanism of smart contracts or blockchain, the nodes, edges and attribute information of the traceability graph are persistently stored on the blockchain. The upload process needs to follow the consensus mechanism and data verification rules of the blockchain network to ensure the integrity and consistency of the traceability graph data. The immutability and traceability characteristics of the blockchain are used to ensure the credibility and auditability of the asset circulation traceability graph. After the traceability graph data is stored on the blockchain, it is queried, analyzed and visualized through smart contracts or blockchain applications. Query and analysis of traceability graphs. Users initiate a traceability graph query request to the blockchain network through the client. The blockchain node retrieves the corresponding asset circulation traceability graph based on the request information and returns it to the user. Users use the graphical interface to visualize and interactively analyze the traceability graph to deeply explore the asset circulation rules and risk characteristics.

Claims

1. A blockchain-based asset processing and tracing method, comprising: Obtain asset traceability data from the data warehouse and perform preprocessing; A deep learning model is used to extract features from the preprocessed asset traceability data, and the extracted features are used as key features; the preprocessed asset traceability data is divided into multiple asset transaction chain data according to the key features; wherein each asset transaction chain data contains at least two address information; The asset transaction chain data is used as input, and the graph neural network Graph Attention Network is used to construct the initial traceability graph; the initial traceability graph contains multiple address nodes, and the edge between any two address nodes represents the asset transfer information corresponding to the two connected address nodes; the initial traceability graph is stored on the blockchain; Obtain an address tag library, which stores multiple address tags, each of which represents at least one address corresponding to an entity; construct a knowledge graph based on the address tag library, and represent the semantic association between address tags and entities by constructing a triple of entity-relationship-attribute; store the obtained address tags and the constructed knowledge graph on the blockchain; According to the address labels in the knowledge graph, the address nodes in the initial traceability graph are replaced with the corresponding address label nodes. The node replacement results are verified using the consensus mechanism of the blockchain to obtain the traceability graph of the address label nodes. The deep learning-based clustering algorithm Deep Embedded Clustering is used to cluster the address tag nodes in the traceability graph of the address tag nodes. The blockchain consensus mechanism is used to reach a consensus on the clustering results, and the clustering results are used as the asset circulation traceability graph, which is stored on the blockchain. Use deep learning models to extract features from pre-processed asset traceability data; including: The preprocessed asset traceability data is input into the convolutional neural network, and local features of the preprocessed asset traceability data are extracted through the convolutional layer and pooling layer of the convolutional neural network to obtain a local feature vector; The local feature vector is input into the recurrent neural network, and the time series feature is extracted from the local feature vector through the recurrent neural network to obtain the time series feature vector; Concatenate the local feature vector and the temporal feature vector as the key feature; Among them, the recurrent neural network contains multiple layers of long short-term memory networks and attention mechanisms; The multi-scale time series features of the local feature vector are extracted through a multi-layer long short-term memory network to obtain a multi-scale time series feature vector; The attention mechanism generates the attention distribution of multi-scale time series feature vectors by calculating the similarity of multi-scale time series feature vectors at different time steps; According to the attention distribution, adjust the importance weights of multi-scale temporal features at different time steps; According to the adjusted importance weights, weighted summation is performed on the multi-scale time series feature vectors to obtain the time series feature vector; The local feature vector and the time series feature vector are concatenated as key features, including: The local importance weight of each feature in the local feature vector and the temporal importance weight of each feature in the temporal feature vector are calculated through the attention mechanism; According to the local importance weight and the temporal importance weight, the local feature vector and the temporal feature vector are weightedly fused to obtain a fused feature vector; The fused feature vector is input into the fully connected layer, and the fused feature vector is nonlinearly transformed through the fully connected layer to obtain the key features; The fully connected layer uses the following formula to perform nonlinear transformation on the fused feature vector: ; Among them, x represents the fused feature vector, and y represents the key feature vector; , , , , Represents the weight matrix of the fully connected layer, corresponding to the linear transformations of the first layer, the second layer, the third layer, the fourth layer, and the feature interaction layer; , , , , represents the bias term of the fully connected layer, corresponding to the linear transformation of the first layer, the second layer, the third layer, the fourth layer and the feature interaction layer respectively; f, g, h, r represent the nonlinear activation function of the fully connected layer, corresponding to the nonlinear transformation of the fourth layer, the first layer, the second layer and the third layer respectively; Represents the feature cross-product operation, which multiplies the output of the second layer nonlinear transformation by the interaction feature matrix element-wise to capture the high-order interactions and combination relationships between different features.

2. The asset processing traceability method based on blockchain according to claim 1 is characterized in that: The pre-processed asset traceability data is divided into multiple asset transaction chain data according to key features, including: According to the key features, the clustering algorithm based on key feature similarity and semantic similarity is used to cluster the preprocessed asset traceability data.

3. The asset processing traceability method based on blockchain according to claim 2 is characterized in that: The pre-processed asset traceability data is clustered using a clustering algorithm based on key feature similarity and semantic similarity, including: Calculate the Euclidean distance between the key feature vectors of the preprocessed asset traceability data as the key feature similarity; The pre-trained language model is used to semantically encode the pre-processed asset traceability data to obtain semantic vectors, and the cosine similarity between the semantic vectors is calculated as the semantic similarity; According to the obtained key feature similarity and semantic similarity, the clustering algorithm is used to cluster the preprocessed asset traceability data.

4. The asset processing traceability method based on blockchain according to claim 3 is characterized in that: According to the obtained key feature similarity and semantic similarity, a clustering algorithm is used to cluster the pre-processed asset traceability data, including: The obtained key feature similarity and semantic similarity are normalized; the normalized key feature similarity and semantic similarity are weighted fused; based on the fused similarity, a fused similarity matrix is ​​constructed; Based on the fusion similarity matrix, the Kruskal algorithm is used to construct the minimum spanning tree of the preprocessed asset traceability data, and the edge set and corresponding edge weight set of the minimum spanning tree are obtained; wherein the minimum spanning tree represents the minimum connected subgraph of the preprocessed asset traceability data in the fusion similarity space; According to the edge weight set of the minimum spanning tree, the truncation distance algorithm is used to determine the parameters eps and min_samples of the HDBSCAN clustering; wherein, the edge weight set is sorted in order, the inflection point of the weight distribution is obtained by the truncation distance algorithm, the edge weight corresponding to the inflection point is used as the parameter eps, and the number of edges before the inflection point is used as the parameter min_samples; The fused similarity matrix is ​​used as the input of DBSCAN clustering. According to the determined parameters eps and min_samples, the asset traceability data is aggregated in a density-reachable manner to obtain a preliminary partitioning result. Perform hierarchical clustering on the preliminary division results, calculate the average similarity between asset transaction data, merge the asset transaction chain data with an average similarity greater than the threshold, and obtain the final asset transaction chain data division result.

5. The asset processing traceability method based on blockchain according to claim 4 is characterized in that: Aggregate asset traceability data in a density-reachable manner, including: If the number of data points in the eps neighborhood of any asset traceability data point is greater than or equal to the parameter min_samples, the corresponding asset traceability data point is marked as a core point, and all asset traceability data points in the eps neighborhood of the core point are classified into the same cluster; If any asset traceability data point is not a core point, but there is a core point in the eps neighborhood of the corresponding asset traceability data point, the corresponding asset traceability data point will be marked as a boundary point, and the corresponding asset traceability data point will be classified into the corresponding cluster; If any asset traceability data point is neither a core point nor a boundary point, the corresponding asset traceability data point will be marked as a noise point and will not be included in any cluster.

6. The asset processing traceability method based on blockchain according to any one of claims 1 to 5, characterized in that: Construct an initial traceability graph, including: The address information of the asset transaction chain data is extracted as the address node, and the attribute features of the address node are used as the node feature vector; the address node and the node feature vector are used as the input nodes of the graph neural network; Using the graph attention layer, the attention weight matrix between address nodes is calculated through the attention mechanism; the feature representation of the address node is updated according to the attention weight matrix; A multi-head attention mechanism is used to parallelly calculate the attention weight matrix of the address node through multiple independent graph attention layers, and the outputs of different graph attention layers are spliced ​​as the output of the multi-head attention; According to the output of multi-head attention, the feature representation of the address node is pooled through the graph pooling layer to obtain the high-level feature representation of the address node; According to the high-level feature representation of the address node, the address node is mapped from the high-dimensional feature space to the low-dimensional embedding space through the fully connected layer to obtain the embedded vector representation of the address node; According to the embedding vector representation of the address node, the Euclidean distance between the embedding vectors of the address nodes is calculated to construct the edges between the address nodes and obtain the initial traceability graph; The initial traceability graph is constructed using the blockchain’s smart contract and digitally signed and hashed. The signature and hash value of the initial traceability graph are agreed upon in the blockchain network through the blockchain’s consensus mechanism, and the initial traceability graph is added to the blockchain as a block.

7. The asset processing traceability method based on blockchain according to claim 6 is characterized in that: Construct an asset circulation traceability diagram, including: The traceability graph of the address label node is used as input, and the local structural features of the address label node are extracted through the graph convolutional neural network. The global correlation features between the address label nodes are obtained through the graph attention mechanism. The local structural features and the global correlation features are fused to obtain the comprehensive feature representation vector of the address label node. Among them, the local structural features represent the domain information of the address label node in the traceability graph; the global correlation features represent the position and role of the address label node in the traceability graph. The graph autoencoder structure is adopted, and the comprehensive feature representation vector of the address label node is taken as input; the comprehensive feature representation vector is mapped to the low-dimensional embedding space through the graph encoder to obtain the embedded vector representation of the address label node; the embedded vector representation is reconstructed into the original comprehensive feature representation vector through the decoder; the parameters of the graph encoder are adjusted using the original comprehensive feature representation vector; In the low-dimensional embedding space, the K-means clustering algorithm is used to cluster the embedding vector representation of the address label nodes. By minimizing the distance between the embedding vector and the cluster center and maximizing the distance between different clusters, the optimal clustering result of the address label nodes is obtained. The embedded representation and clustering results of the address tag nodes are used as transaction data. The hash value of the transaction data is calculated in parallel by multiple nodes in the blockchain network. The hash values ​​calculated by different nodes are compared and voted using the consensus mechanism of the blockchain. The hash value corresponding to the node with the highest number of votes is selected as the final consistent hash value. According to the clustering results corresponding to the consistent hash values, an asset circulation traceability graph is constructed; the nodes in the asset circulation traceability graph represent the clusters corresponding to the address label nodes, the attributes of the nodes include the center coordinates of the clusters and the number of nodes in the clusters, the edges between the nodes represent the asset circulation relationship between different clusters, and the weights of the edges represent the frequency and amount of asset circulation.