Enterprise-level data asset automatic cataloging and full-link blood relationship tracking method and system
By constructing a directed acyclic graph and generating accurate semantic labels using multimodal cue words, the problem of single metadata annotation features and missing lineage tracing links in existing technologies is solved. This enables efficient data asset cataloging and full-link lineage tracing, ensuring the accuracy of data security classification and authentication.
Patent Information
- Application Number
- CN202611525673.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-29
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies in data asset cataloging and end-to-end lineage tracing suffer from problems such as single-dimensional semantic annotation features of metadata, difficulty in parsing output structure, static parsing leading to missing lineage tracing links, and insufficient accuracy in security classification and retrieval authentication due to detachment from end-to-end lineage transmission.
By acquiring physical metadata and sampled data snapshots, and combining them with distribution features to generate a set of semantic tags, a directed acyclic graph is constructed. The security classification score of data flow nodes is calculated, and lineage relationships are captured based on dynamic execution logs. Accurate semantic tags are generated by combining multimodal prompts and JSON Schema structured constraints, thus achieving end-to-end lineage tracing and security authentication.
It improves the accuracy of automatic cataloging, enhances the granularity of end-to-end lineage tracing, ensures the dynamic transmission of data security classification and accurate authentication of terminal retrieval, and prevents unauthorized access to sensitive assets.
Smart Images

Figure CN123178369A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing technology, and in particular to methods and systems for automatic cataloging and end-to-end lineage tracing of enterprise-level data assets. Background Technology
[0002] As enterprise business systems evolve, the types and quantities of data sources continue to increase, making data asset cataloging and lineage tracing fundamental tasks of data governance. Existing data asset cataloging methods primarily rely on manual annotation or pre-defined regular rules for metadata classification. When dealing with large-scale and complex data, this approach suffers from low accuracy and processing efficiency. Some automatic annotation technologies attempt to use model inference of semantics, but their inputs are often limited to static physical metadata such as table names or field names, failing to incorporate the underlying distribution characteristics of data snapshots. Furthermore, their model output lacks strict syntactic structure constraints, easily generating non-standard format sequences, which prevents subsequent parsing processes from accurately extracting structured tag sets.
[0003] At the data lineage tracing level, traditional solutions typically rely solely on parsing static SQL scripts to construct data dependencies. However, real-world business scenarios often involve dynamically executed scripts and implicit data replication processes across data domains. Static parsing alone cannot capture the dynamic runtime state during execution, leading to missing nodes or broken links in the generated lineage network structure.
[0004] Furthermore, existing technologies for classifying and grading the security of data assets are typically conducted in isolation, lacking a linkage mechanism with the data flow process. Sensitive data identification is often based on single-point scanning, failing to utilize data lineage networks to calculate the probability of sensitivity inheritance from upstream to downstream nodes. This results in derived data potentially losing its original security attributes after calculation or transfer. Furthermore, when a terminal initiates a data retrieval request, existing systems usually rely solely on static system permission configurations for coarse-grained interception, lacking a node-level authentication mechanism that incorporates global security grading scores across the lineage, making it difficult to prevent unauthorized access to sensitive data after it has flowed through complex network nodes.
[0005] To address the aforementioned technologies, we provide enterprise-level automatic cataloging and end-to-end lineage tracing methods and systems for data assets. Summary of the Invention
[0006] The purpose of this application is to provide an automatic cataloging and full-chain lineage tracing method and system for enterprise-level data assets, aiming to improve the problems in the existing technology, such as the single dimension of metadata semantic annotation features and the difficulty in parsing the output structure, the single static code parsing leading to the lack of lineage tracing links, and the insufficient accuracy of security classification and retrieval authentication caused by the separation from the full-chain lineage transmission.
[0007] By adopting the above technical solution, the first aspect of the present invention provides a method for automatic cataloging and end-to-end lineage tracing of enterprise-level data assets, comprising the following steps:
[0008] Determine the polling period for different data sources, obtain physical metadata and sampled data snapshots, and the physical metadata contains the original fields;
[0009] Extract the distribution features of the sampled data snapshot, combine the distribution features with physical metadata and input them into the language model to generate a set of semantic tags, and store the mapping relationship between the original fields and the set of semantic tags.
[0010] Capture the abstract syntax tree and dynamic execution log of the data processing task, extract the data flow nodes, and construct a directed acyclic graph with the data flow nodes as vertices;
[0011] Read the mapping relationship and directed acyclic graph, calculate the probability distribution of sensitive types, and determine the data security classification score of hierarchical classification labels and data flow nodes;
[0012] The system stores the data of data flow nodes, the structural data of the directed acyclic graph, the semantic label set, and the hierarchical classification label; calculates the data difference between data flow nodes; and merges them to complete global data synchronization.
[0013] Based on the terminal's retrieval request, authentication is performed based on the data security rating score. If the authentication is successful, the data asset details, lineage network structure, and list of affected downstream nodes are returned.
[0014] During the metadata collection process targeting the data source, physical metadata is extracted and sampled data snapshots are simultaneously extracted by calling the corresponding adapter interface. The next metadata change time is predicted based on historical change time intervals and expected time intervals to dynamically adjust the polling cycle; and when the number of times the target data source has not changed in a continuous monitoring cycle reaches a preset threshold, it automatically switches to a heartbeat detection mode that only maintains liveness detection. When the target data source is detected to be in a state with network access restrictions, physical metadata and sampled data snapshots are read in the isolated network and data blocks are generated for asynchronous transmission. If the verification and comparison at the receiving end fails, the damaged data blocks are discarded and retransmission is initiated.
[0015] During the generation of the semantic tag set, aggregate statistics are performed on the sampled data snapshots to extract data distribution indicators and perform normalization to construct distribution features. Field names, data types, and table-level comments are extracted from the physical metadata and combined with the distribution features to construct a multimodal cue word context. Based on the data domain to which the original fields belong, historical labeled positive examples are combined with the multimodal cue word context and input into the language model. A predefined JSON Schema structured constraint template is injected at the end of the multimodal cue word context. During the language model's result generation stage, cascaded decoding interceptors only allow the generation of lexical sequences that conform to the syntax tree corresponding to the JSON Schema structured constraint template. The output is deserialized into a semantic tag set using a parsing library.
[0016] When extracting data flow nodes and constructing a directed acyclic graph (DAG), the static SQL scripts of the data processing tasks are parsed to capture the abstract syntax tree, and dynamic execution logs are intercepted and captured through proxy probes. The similarity prediction of sampled data snapshots between data flow nodes is calculated. Preset weights are assigned to the similarity prediction, the edit distance normalized score of the original field names, and the data type compatibility score, and then summed. When the summation result is greater than a preset threshold, a directed edge indicating data replication dependency exists between the two data flow nodes. A DAG is then constructed based on the data flow nodes and the directed edge indicating data replication dependency.
[0017] When determining the hierarchical classification labels and data security rating scores, a basic scan is performed using a sensitive keyword dictionary to obtain a basic matching score. A pre-trained model is used to process the names and annotations of the original fields and output predicted probabilities. The direct upstream nodes of the target data flow node are traversed, and the inheritance probability of the target data flow node is calculated based on the comprehensive sensitivity probability of each upstream node and the edge decay coefficient. The basic matching score and predicted probability are fused to obtain an independent sensitivity probability. The independent sensitivity probability and inheritance probability are weighted to output the final comprehensive sensitivity probability, which is then converted into a data security rating score. When storing the data of the data flow nodes, the structural data of the directed acyclic graph, the semantic label set, and the hierarchical classification labels, and calculating and merging the data differences between data flow nodes to complete global data synchronization, for the target data flow node in the synchronization queue, a synchronization priority weight is calculated based on the node's out-degree value in the directed acyclic graph, its data security rating score, and its last update timestamp. The nodes are sorted in descending order of synchronization priority weight, and each metadata change is packaged into a change event with a version number for incremental synchronization.
[0018] When performing authentication based on data security rating scores, the system receives retrieval requests from terminals, calculates the cosine similarity score between the retrieval request and the semantic tag set corresponding to each data flow node, and matches the target data flow node. It then compares the security permission level of the user initiating the retrieval request with the data security rating score of the target data flow node. If the user's security permission level is greater than or equal to the data security rating score, it outputs a preset authentication pass flag and returns the corresponding data. If the user's security permission level is lower than the data security rating score, the retrieval request is rejected, and the target data flow node and its associated edges are forcibly marked as invisible.
[0019] A second aspect of this invention provides an enterprise-level automatic cataloging and end-to-end lineage tracing system for data assets, used to execute the method provided in the first aspect above. The system includes:
[0020] The metadata collection module is used to determine the polling period of different data sources, obtain physical metadata and sampled data snapshots, and the physical metadata contains raw fields;
[0021] The semantic annotation module is used to extract the distribution features of the sampled data snapshot, combine the distribution features with physical metadata and input them into the language model to generate a set of semantic tags, and store the mapping relationship between the original fields and the set of semantic tags.
[0022] The lineage analysis module is used to capture the abstract syntax tree and dynamic execution log of the data processing task, extract data flow nodes, and construct a directed acyclic graph with the data flow nodes as vertices.
[0023] The sensitive data classification module is used to read mapping relationships and directed acyclic graphs, calculate the probability distribution of sensitive types, determine hierarchical classification labels, and assign data security classification scores to data flow nodes.
[0024] The data storage and synchronization module is used to store the data of data flow nodes, the structure data of the directed acyclic graph, the semantic label set and the hierarchical classification label, calculate the data difference between data flow nodes, and merge them to complete global data synchronization.
[0025] The data service module is used to authenticate data based on the data security rating score according to the terminal's retrieval request. If the authentication is successful, it returns the data asset details, the lineage network structure, and the list of affected downstream nodes.
[0026] In summary, this application includes at least one of the following beneficial technical effects:
[0027] 1. This application effectively reduces the polling computation overhead and network bandwidth usage of the system by dynamically adjusting the polling cycle of the data source based on historical and expected change times, and automatically switching to heartbeat detection mode when there are no continuous changes. At the same time, for the collection environment with network access restrictions, a mechanism is adopted to read physical metadata and sampled data snapshots in an isolated network and perform asynchronous data block transmission and verification retransmission to ensure the integrity and reliability of metadata collection in complex network environments.
[0028] 2. This application constructs a multimodal prompt word context by extracting the distribution features of the sampled data snapshot and combining them with physical metadata, and introduces historical positive sample input into the language model, which improves the accuracy of automatic cataloging and labeling. On this basis, by connecting a cascaded interceptor in the language model decoding stage and applying the syntax tree structure constraint corresponding to JSON Schema, the format of the output word sequence is strictly limited, avoiding the structural divergence problem of the model generation result, and ensuring that the semantic tag set can be directly deserialized and applied by the parsing library;
[0029] 3. This application constructs a directed acyclic graph of data flow by combining a static abstract syntax tree and a dynamic execution log, and establishes data replication dependencies through multi-dimensional similarity scores and edit distance calculations, thereby improving the granularity of end-to-end lineage tracing. By calculating the basic matching score and combining it with the decay inheritance probability of the direct upstream node in the graph structure, the comprehensive sensitivity probability and security level of the node are determined, realizing the dynamic transfer calculation of security level in the lineage link. This enables precise node-level data authentication based on the level score during terminal retrieval, preventing unauthorized access to sensitive assets. Attached Figure Description
[0030] Figure 1 This is the logical architecture diagram of the enterprise-level data asset automatic cataloging and full-link lineage tracing system of this application;
[0031] Figure 2 This is the overall flowchart of the enterprise-level data asset automatic cataloging and full-link lineage tracing method in this application;
[0032] Figure 3 This is a flowchart of the metadata collection and polling prediction method for this application;
[0033] Figure 4 This is a flowchart of the semantic annotation and model fine-tuning process based on a large language model in this application;
[0034] Figure 5 This is a flowchart of the full-link lineage analysis and DAG graph construction process of this application;
[0035] Figure 6 This is a flowchart of the cross-environment data multimodal storage and incremental synchronization process of this application;
[0036] Figure 7 This is a flowchart of the sensitive data security classification based on graph path tracing in this application;
[0037] Figure 8 This is a flowchart of the data service based on semantic retrieval and dynamic permission pruning in this application. Detailed Implementation
[0038] The following is in conjunction with the appendix Figure 1 -Appendix Figure 8 This application will be described in further detail below.
[0039] See attached document Figure 1 This invention provides an enterprise-level automatic cataloging and end-to-end lineage tracing system for data assets. The system may include: a metadata acquisition module, a semantic annotation module, a lineage analysis module, a data storage and synchronization module, a sensitive data classification module, and a data service module.
[0040] The system is logically divided into a data source layer, an acquisition layer, a logical calculation layer, a storage layer, and an application layer.
[0041] The metadata acquisition module is deployed in the acquisition layer and is used to establish communication connections with heterogeneous storage media in the data source layer through protocol interfaces. The metadata acquisition module extracts physical structure information and operation log information from the data source at a preset frequency and transmits the extracted data to the logical computing layer.
[0042] The logical computing layer includes a semantic annotation module, a lineage analysis module, and a sensitive data classification module.
[0043] The semantic labeling module receives physical structure information and generates semantic label mapping relationships by combining statistical features. The lineage analysis module analyzes physical structure information and operation log information to calculate the input-output dependencies in the data processing task. The sensitive data classification module receives the generated semantic label mapping relationships and input-output dependencies, and outputs the security classification level of the data.
[0044] The data storage and synchronization module constitutes the storage layer and connects to the various computing modules in the logical computing layer. This module receives and saves various computing results and performs data state synchronization mechanisms across multiple physical nodes.
[0045] The data service module is deployed at the application layer, connecting to the data storage and synchronization module, and exposing data access interfaces and front-end interactive pages to the outside world.
[0046] See attached document Figure 2 This invention provides a method for automatic cataloging and end-to-end lineage tracing of enterprise-level data assets, comprising the following steps:
[0047] S10, the metadata acquisition module determines the polling period of different data sources according to the preset smoothing prediction algorithm, acquires the physical metadata and sampled data of various data sources according to the determined polling period, and transmits the acquired physical metadata and sampled data to the data storage and synchronization module for initial storage.
[0048] S20, the semantic annotation module reads physical metadata and sampled data from the data storage and synchronization module, extracts the distribution features of the sampled data, combines the distribution features with the physical metadata and inputs them into the pre-trained language model to generate a set of semantic tags containing business domains, technical structures and quality levels, and writes the corresponding mapping relationship between the original fields and the set of semantic tags into the data storage and synchronization module.
[0049] S30, the lineage analysis module captures the abstract syntax tree and dynamic execution log in the system's operating environment, extracts data flow nodes, and constructs a directed acyclic graph with data nodes as vertices and transformation tasks as directed edges;
[0050] S40, the data storage and synchronization module will split and store the node data, directed acyclic graph structure data and various label data generated during the system operation cycle into relational, graph structure and high-dimensional vectors, and calculate the data difference between nodes in different network domains based on the clock vector mechanism, and perform concurrent merging operations to complete global data synchronization.
[0051] S50, the sensitive data classification module reads the semantic label mapping relationship and directed acyclic graph in the data storage and synchronization module, and calculates the probability distribution of the sensitive type of each data field by combining the feature matching algorithm and the node connection path in the directed acyclic graph, and determines the hierarchical classification label.
[0052] S60, the data service module queries the data in the data storage and synchronization module, and returns the corresponding data asset details, lineage network structure and list of affected downstream nodes according to the retrieval request sent by the terminal.
[0053] See attached document Figure 3 In one embodiment of the present invention, the metadata acquisition module in step S10 determines the polling period of different data sources according to a preset smoothing prediction method, and acquires the physical metadata and sampled data of various data sources according to the determined polling period. This step specifically includes the following sub-steps:
[0054] S101, the metadata acquisition module calls the corresponding adapter interface for different types of data sources, extracts the physical metadata of the data source, and simultaneously extracts a snapshot of the sampled data used for subsequent feature calculations. Heterogeneous data sources include relational databases, data warehouses, message queues, object storage, non-relational databases, and application programming interface services. The metadata acquisition module automatically routes to the corresponding parsing logic according to the protocol type of the access resource: for relational databases, a collection mechanism based on Change Data Capture (CDC) logs is used to listen to the Binlog or Redo Log to obtain structural changes; for data warehouses, a dual-channel approach combining Information Schema and internal engine query commands is used to obtain definitions; for SaaS application interfaces, OAuth2.0 authorization plus incremental polling is used for collection. Considering the objective deviation of the clocks of the physical servers where multi-source heterogeneous nodes reside, this embodiment uniformly adds a global timestamp aligned based on the standardized Network Time Protocol (NTP) to ensure the strict monotonicity of the state time sequence during subsequent lineage analysis.
[0055] The metadata acquisition module encapsulates the extracted physical metadata and sampled data snapshots into a data packet in a unified format (such as JSON or Protobuf), and writes the global timestamp, the unique identifier of the data source, and the environmental information of the acquisition node into the header field of the data packet. This enables the downstream logic calculation layer to perform strict out-of-order reordering and event tracing based on the header timestamp during parsing.
[0056] S102, the metadata acquisition module adopts the corresponding physical node deployment mode and data transmission protocol based on the network connectivity status of the target data source. When the target data source is detected to be network reachable, the metadata acquisition module deploys a lightweight proxy process (Sidecar), which is strictly limited to memory usage below 128MB and CPU usage peak below 5%, and reports physical metadata and sampled data via the gRPC protocol. When the target data source is detected to be under firewall access restrictions, an asynchronous decoupled acquisition architecture of scanning, compression, signing, and asynchronous uploading is adopted. The acquisition end within the isolated network reads only the physical metadata and sampled snapshots, performs lossless compression and digital signature on the serialized file, and uses an asynchronous chunking mechanism for transmission. Here, the chunking mechanism limits the maximum size of a single file to 2GB, and combined with breakpoint resume and checksum retransmission mechanisms, avoids system resource blocking caused by long connection timeouts. If the receiving end fails the checksum comparison, it will discard the damaged data block and initiate a retransmission using an asynchronous callback.
[0057] S103, the metadata acquisition module uses the Exponentially Weighted Moving Average (EWMA) calculation method to predict the next metadata change time of the data source, dynamically mapping the polling cycle of the target data source. The system linearly weights and sums the actual change time intervals of the most recent N times (default N=20) with the expected time interval using a smoothing coefficient (an empirical value greater than 0.5). The system has a pre-set threshold constant at the underlying level for dynamic adjustment: when the calculated expected change time interval is less than or equal to 5 minutes, the metadata acquisition module shrinks and increases the actual polling cycle to 1 minute; when the predicted change time is greater than or equal to 24 hours, the acquisition frequency is reduced to 6 hours. At the same time, a threshold for the number of consecutive unchanged times is introduced. Once it is found that the target data source has not changed in 10 consecutive monitoring cycles, the smoothing prediction mechanism is exited, and the system automatically switches to a heartbeat detection mode once every 24 hours, maintaining only a minimum level of liveness detection, thereby achieving a better dynamic balance between computing resources and data timeliness.
[0058] See attached document Figure 4 In one embodiment of the present invention, the step S20, in which the semantic annotation module reads physical metadata and sampled data from the data storage and synchronization module, and finally writes the corresponding mapping relationship between the original fields and the semantic tag set into the data storage and synchronization module, specifically includes:
[0059] In step S201, the semantic annotation module extracts a raw data sample set containing 10,000 records from each field to be annotated in the target data table. The module performs aggregation statistics on this sample set to construct a feature vector characterizing the distribution of data values. The system calculates the null value rate by statistically analyzing the percentage of null records in the sample set. Subsequently, for the valid data set after removing null values, it statistically analyzes indicators such as the number of unique values, the percentage of the top 10 high-frequency values, the mean / median / quantiles (Q1, Q3) of numerical fields, and the maximum length of strings. Before performing proportional division calculations, the system checks if the denominator is zero to prevent division by zero anomalies. Then, it performs maximum and minimum value normalization processing and concatenates the results into a fixed 128-dimensional physical feature vector.
[0060] In S202, the semantic annotation module performs cross-modal alignment between the extracted feature vectors and physical metadata. It extracts field names, data types, and table-level comments from the physical metadata and, combined with the aforementioned 128-dimensional feature vectors and upstream / downstream relationships, serializes them into a multimodal cue word context. Based on the data domain to which the current field belongs, the system introduces a few-shot learning (Few-shotPrompt) template, retrieving positive samples from historical high-quality annotation data for input tensor combination, thus keeping the average inference time for a single field annotation below 800ms.
[0061] S203, the pre-built large language model, employs a decoder-only network based on the Transformer architecture, internally cascaded with a self-attention encoding layer and a linear projection layer. The multimodal context input tensor propagates forward layer by layer, and the highest confidence result is determined through a BeamSearch algorithm. The output is forcibly parsed into three sets of semantic labels: (a) business labels (including business domain, business entity, dimension / metric); (b) technical labels (data type, primary / foreign key, whether it is a partition key); and (c) quality labels (four data quality levels: A / B / C / D).
[0062] To ensure the deterministic format of the large language model output and enable forced parsing, the system injects a predefined JSON Schema structured constraint template at the end of the multimodal prompt word context. During the lexical generation stage of the decoder network, a low-level cascaded constrained decoding interceptor only allows the generation of lexical sequences that conform to the JSON Schema syntax tree. Finally, a standard JSON parsing library directly deserializes the model output into the three types of semantic tag sets mentioned above, eliminating the parsing anomaly risks associated with unstructured text.
[0063] S204 collects user terminal intervention data on the semantic label set. Specifically, when business personnel manually modify abnormal labels predicted by the model through the front-end page of the data service module, the system captures this correction event, constructs a pair of supervised learning samples with the original multimodal prompt word context and the user-corrected true labels, and stores them in the correction sample library. Local weight iterative optimization is performed based on the low-rank adaptive (LoRA) mechanism. When the accumulated data increment in the correction sample library reaches the fine-tuning trigger threshold of 500 entries, the fine-tuning process is initiated. The system locks the pre-trained weights of the self-attention module from participating in gradient updates and introduces trainable dimensionality reduction and expansion mapping matrices into the side-path mapping matrix. During backpropagation, cross-entropy loss is used to update only the local mapping matrix parameters, achieving a smooth generalization improvement in model labeling accuracy from 78% to over 95% with extremely low memory overhead.
[0064] See attached document Figure 5 In one embodiment of the present invention, the bloodline analysis module in step S30 captures the abstract syntax tree and dynamic execution log in the system operating environment, and extracts data flow nodes to construct a directed acyclic graph, specifically including:
[0065] S301, the lineage analysis module simultaneously enables a multi-channel acquisition mechanism. For static SQL scripts, an improved Apache Calcite framework is used to generate an Abstract Syntax Tree (AST). For nested view references, the underlying definition is read and recursively expanded to force mapping to the underlying physical table. Simultaneously, execution logs of ETL tasks (such as Airflow / DolphinScheduler) are captured as supplementary scheduling logs. Furthermore, the system introduces a dynamic proxy probe based on Java Agent bytecode enhancement technology at the application server level to intercept the JDBC standard connection protocol, capture dynamically concatenated SQL and parameter binding snapshots, and resolve the dynamic lineage breakage issue caused by the ORM framework.
[0066] S302 introduces an implicit lineage inference mechanism based on data snapshot fingerprint (MinHash signature) comparison. The underlying layer is a set of multiple independent hash functions that detect whether the minimum hash values generated by two valid data sets are equal, calculating a similarity estimate. A weighted total score is calculated by combining this estimate, edit distance, and type compatibility. Specifically, the calculation logic is as follows: The MinHash similarity estimate, the normalized score of the field name edit distance calculated based on the Levenshtein algorithm, and the data type compatibility score (1 for the same type, 0.5 for compatible types, and 0 for incompatible types) are each assigned a corresponding preset weight and summed. When the score exceeds the judgment threshold and meets the time lag constraint, an implicit data replication dependency directed edge is established between the two nodes.
[0067] In step S303, the system constructs a Directed Acyclic Graph (DAG) in memory, using data nodes, transformation nodes, and data node triples as basic units, and utilizes UUID v7 as the global asset ID to complete cross-domain lineage splicing. In the DAG, each transformation node not only represents the directed edge itself, but the system also appends the task scheduling cycle, runtime status code extracted in step S301, and the specific transformation logic (such as filtering conditions, aggregation functions, and table join operators) obtained from the Abstract Syntax Tree (AST) parsing to the underlying attributes of that transformation node. This edge attribute information serves as an important basis for filtering and sorting during subsequent forward or reverse breadth-first searches. When a closed loop caused by high homogeneity is detected, the system automatically backtracks and cuts off the virtual dependency edge with the latest timestamp. The system further introduces impact domain and root cause analysis algorithms: When upstream changes occur, a reverse BFS (breadth-first search) algorithm based on lineage graphs is used, with a maximum traversal depth of 50 layers and a maximum number of nodes of 10,000. An impact domain report containing affected BI reports and AI models is output within 3 seconds. When downstream quality problems occur, a forward BFS algorithm is used to automatically locate suspicious upstream nodes. Combined with indicators such as null value rate mutation, the nodes are sorted and a Top 10 root cause node candidate set is output.
[0068] See attached document Figure 6 In one embodiment of the present invention, the step of data storage and synchronization module performing multi-environment data state synchronization across physical gateways in step S40 specifically includes:
[0069] S401, the data storage and synchronization module adopts a multimodal hybrid storage architecture combining relational, graph, and vector databases. The system writes structured metadata to PostgreSQL; maps table names and field flows to vertices and directed edges (including labels generated in step S20 as entity attributes) and writes them to the NebulaGraph graph database; and writes the dense vector of field semantic embeddings generated in step S20 to the Milvus vector database to support subsequent semantic retrieval.
[0070] S402 employs an eventually consistent synchronization protocol based on Conflict-Free Replicated Data Type (CRDT) to perform cross-network incremental synchronization. Edge nodes independently store local full metadata hashes and incremental events from the last 30 days, ensuring that local queries are completely unaffected during network outages. Due to network gateway throughput limitations, the system introduces a synchronization priority scheduling algorithm based on the importance of the directed acyclic graph topology. The data storage and synchronization module targets any target node in the synchronization queue. Calculate its synchronization priority weight The calculation formula is as follows:
[0071] ;
[0072] in, , , These are the normalized out-degree, safety, and time weight coefficients, respectively. This represents the out-degree value of the node in the DAG. Assign a security rating score to the node. This is the system's current timestamp. For any target node The last update timestamp. The set of nodes to be synchronized. For set Any node in the denominator. Before performing division, if the result of the denominator calculation tends to 0, a non-zero minimum constant is added to the denominator to prevent division by zero anomalies.
[0073] S403, system based The metadata changes are sorted in descending order, packaged into change events with vector clock version numbers, and converted into binary byte streams. Hardware encryption is used to encapsulate the changes across the network gateway, and incremental synchronization is achieved between edge and central nodes via Kafka message queues, reducing cross-network synchronization latency from minutes to less than 3 seconds (P99).
[0074] See attached document Figure 7 In one embodiment of the present invention, the step S50, in which the security classification module determines the data security level based on multi-strategy fusion and graph path tracing, specifically includes:
[0075] In S501, the security classification module initiates a multi-dimensional strategy parallel feature matching logic. The system has more than 200 built-in regular expressions (covering ID card numbers, MAC addresses, etc.), which, combined with a built-in dictionary of over 100,000 sensitive keywords, perform a basic scan to obtain basic matching scores. Simultaneously, a Transformer encoder model is used to process field names and annotation snapshots, forcibly limiting them to a maximum length of 512 characters, converting them into a token sequence and mapping it to a 768-dimensional semantic tensor. After passing through a masked multi-head self-attention module and a Softmax classification head, the predicted probability of the security category is output.
[0076] S502 addresses the issue of format confusion and failure in derived fields by introducing a sensitive probability propagation algorithm along a directed acyclic graph path. This algorithm is applicable to any target data node. traverse its direct upstream node set , evaluate target node The joint probability of inheriting sensitive features from at least one upstream node is used to conform to the highest level of inheritance principle. Target node Inheritance probability The calculation formula is as follows:
[0077] ;
[0078] in, For set The direct upstream node in. upstream node The overall sensitivity probability determined through iterative calculation. This is the attenuation coefficient corresponding to the connecting edge (restricted to the interval (0,1)). For the original root node without an upstream node, its inheritance probability is set. It is 0.
[0079] Meanwhile, to avoid the meaningless propagation of tiny, sensitive probabilities in deep links, which could lead to the exhaustion of graph traversal resources, the system sets an empirical probability propagation truncation threshold (e.g., 0.05). When performing topology traversal calculations along a directed acyclic graph, when any target node... Calculated inheritance probability When the value falls below this cutoff threshold, the system forces it to zero and immediately terminates the current target node. The computational branch of sensitive probability is passed to its downstream direct child nodes, thereby achieving fast convergence of probability calculation in large network graphs.
[0080] S503, the basic matching score output in step S501 and the predicted probability output by the Transformer model are initially fused and calculated to obtain the independent sensitivity probability of the node itself. Subsequently, this independent sensitivity probability is combined with the inherited probability. The system outputs a weighted, comprehensive sensitivity probability. This probability is then compared and tagged against a discrete four-layer security hierarchy (L1 to L4, public, internal, sensitive, and confidential). To facilitate subsequent permission-based mathematical comparison and pruning operations, L1 to L4 are mapped sequentially to continuous numerical constants 1 to 4 at the lowest level. The tagging results are synchronized in real time to the access control module to trigger corresponding de-identification rules and approval / auditing requirements.
[0081] See attached document Figure 8 In one embodiment of the present invention, the data retrieval and service output module in step S60 performs asset matching based on semantic vectorization and dynamic permission pruning, specifically including:
[0082] In step S601, the system receives a natural language query request from the front end and calls a pre-built dual-tower Transformer neural network model. The text is limited to a maximum of 128 characters, and a 768-dimensional dense query tensor is output. During offline training, a contrastive loss function is used to calculate the angle between positive and negative sample features to accurately fit the semantics of the vertical domain. When generating contrastive learning samples during offline training, the system adopts a mixed strategy of in-batch negative sampling and domain-hard negative samples. For domain-hard negative samples, the system performs synonym replacement or data type inversion on positive query samples to generate query pairs that are literally similar to positive samples but have completely different business semantics. This forces the model to be able to keenly capture the subtle semantic boundaries of data asset domain terms when calculating the spatial dot product. In the quantification of relevance stage, the system forcibly verifies the L2 norm of the query tensor and the pre-stored asset vector. If it is 0, an anomaly protection logic is triggered to assign a preset minimal constant. After the verification is passed, the spatial dot product of the two is calculated and divided by the L2 norm product to obtain the cosine similarity score.
[0083] S602, a dynamic permission pruning algorithm is introduced based on security control requirements. The security permission level of the requesting user is compared with the data security classification score of the target data node. Both levels call the underlying constants quantified in step S503. If the user's permission level is greater than or equal to the latter's classification score, the positive difference between the two is activated by an underlying function (such as a heaviside step function, which takes a value of 1 when the independent variable is greater than or equal to 0 and a value of 0 when it is less than 0) and outputs 1. At this time, the dynamic access authentication value is equal to the preset authentication pass flag value. If the difference is less than 0 (representing insufficient user permissions), the authentication value is output as a negative value and an access interception threshold is triggered. The system forcibly marks the target node and all its subordinate associated edges as invisible in memory, achieving physical-level kinship graph node access isolation and pruning.
[0084] The S603 data retrieval and service output module encapsulates the pruned connected subgraph into a lightweight exchange format. The system provides a RESTful API compliant with the OpenAPI 3.0 specification, supporting an average single API response time of less than 200ms when cached and less than 1.5s when directly querying the database, and supporting high-concurrency calls exceeding 5000 QPS. Furthermore, the system offers open direct connection drivers, providing integration with commercial BI tools and AI development frameworks such as LangChain and LlamaIndex for large-scale Retrieval model retrieval, enabling integration with enterprise knowledge bases.
Claims
1. An automatic cataloging and end-to-end lineage tracing method for enterprise-level data assets, characterized in that, Includes the following steps: Determine the polling period for different data sources, obtain physical metadata and sampled data snapshots, wherein the physical metadata contains raw fields; Extract the distribution features of the sampled data snapshot, combine the distribution features with the physical metadata and input them into the language model to generate a semantic tag set, and store the mapping relationship between the original fields and the semantic tag set; The abstract syntax tree and dynamic execution log of the data processing task are captured, the data flow nodes are extracted, and a directed acyclic graph with the data flow nodes as vertices is constructed. Read the mapping relationship and the directed acyclic graph, calculate the probability distribution of sensitive types, and determine the hierarchical classification labels and the data security classification scores of the data flow nodes; The data of the data flow nodes, the structural data of the directed acyclic graph, the semantic tag set, and the hierarchical classification tags are stored. The data difference between the data flow nodes is calculated and merged to complete global data synchronization. Based on the terminal's retrieval request, authentication is performed based on the data security rating score. If the authentication is successful, data asset details, lineage network structure, and a list of affected downstream nodes are returned.
2. The method according to claim 1, characterized in that, The step of determining the polling period for different data sources and obtaining physical metadata and sampled data snapshots, wherein the physical metadata includes original fields, includes: For the target data source in the different data sources, call the corresponding adapter interface to extract the physical metadata of the target data source and simultaneously extract the sampled data snapshot; Predict the next metadata change time of the target data source based on historical change time intervals and expected time intervals; The polling cycle is dynamically adjusted based on the comparison between the next metadata change time and a preset time threshold. When the number of times the target data source remains unchanged in a continuous monitoring cycle reaches a preset threshold, the system automatically switches to a heartbeat detection mode that only maintains survival detection.
3. The method according to claim 2, characterized in that, The process of calling the corresponding adapter interface for the target data source in the different data sources, extracting the physical metadata of the target data source, and synchronously extracting the sampled data snapshot includes: When the target data source is detected to be network reachable, the physical metadata and the sampled data snapshot are directly reported via the communication protocol. When the target data source is detected to be in a state of network access restriction, the physical metadata and the sampled data snapshot are read in an isolated network within the firewall that is the same as the target data source, and a data block is generated for asynchronous transmission. If the receiving end fails to verify and compare the data block, it will discard the damaged data block and initiate a retransmission.
4. The method according to claim 1, characterized in that, The steps of extracting the distribution features of the sampled data snapshot, combining the distribution features with the physical metadata and inputting them into a language model to generate a semantic tag set, and storing the mapping relationship between the original fields and the semantic tag set, include: Aggregate statistics are performed on the sampled data snapshots to extract data distribution indicators and perform normalization processing to construct the distribution feature quantities; Extract field names, data types, and table-level comments from the physical metadata, and combine them with the distribution feature quantities to construct a multimodal prompt word context; Based on the data domain to which the original field belongs, the historical labeled positive sample and the context of the multimodal prompt word are combined and input into the language model to generate the semantic label set.
5. The method according to claim 4, characterized in that, The step of combining historical labeled positive sample data with the multimodal prompt word context based on the data domain to which the original field belongs, and inputting this combination into the language model to generate the semantic label set, includes: Inject a predefined JSON Schema structured constraint template at the end of the context of the multimodal cue words; During the language model generation stage, cascaded decoding interceptors only allow the generation of lexical sequences that conform to the syntax tree corresponding to the JSONSchema structured constraint template; The output of the language model is deserialized into the semantic tag set using a parsing library.
6. The method according to claim 1, characterized in that, The steps of capturing the abstract syntax tree and dynamic execution log of the data processing task, extracting data flow nodes, and constructing a directed acyclic graph with the data flow nodes as vertices include: The abstract syntax tree is captured by parsing the static SQL script of the data processing task, and the dynamic execution log is intercepted and captured by the proxy probe; Calculate the similarity estimate of the sampled data snapshots between the data flow nodes, assign preset weights to the similarity estimate, the edit distance normalized score of the original field name, and the data type compatibility score, and sum them up. When the summation result is greater than the preset judgment threshold, it is established that there is a directed edge with data replication dependency between the two data flow nodes, and the directed acyclic graph is constructed based on the data flow nodes and the directed edge with data replication dependency.
7. The method according to claim 1, characterized in that, The steps of reading the mapping relationship and the directed acyclic graph, calculating the probability distribution of sensitive types, determining the hierarchical classification labels and the data security classification scores of the data flow nodes include: A basic scan is performed using a dictionary of sensitive keywords to obtain a basic matching score. A pre-trained model is then used to process the names and annotations of the original fields and output the predicted probabilities. Traverse the direct upstream nodes of the target data flow node, and calculate the inheritance probability of the target data flow node based on the comprehensive sensitivity probability and connection edge attenuation coefficient of each upstream node; The independent sensitivity probability is obtained by fusing the basic matching score and the predicted probability. The independent sensitivity probability is weighted and the inherited probability is output as the final comprehensive sensitivity probability, which is then converted into the data security classification score.
8. The method according to claim 1, characterized in that, The steps of storing the data of the data flow nodes, the structural data of the directed acyclic graph, the semantic tag set, and the hierarchical classification tags, calculating the data difference between the data flow nodes, and merging them to complete global data synchronization include: For the target data flow node in the synchronization queue formed by the data difference set, the synchronization priority weight is calculated based on the node's out-degree value in the directed acyclic graph, the data security rating score, and the last update timestamp, and the corresponding weight coefficients. Based on the aforementioned synchronization priority weights in descending order, each metadata change is packaged into a change event with a version number for incremental synchronization.
9. The method according to claim 1, characterized in that, The step of authenticating based on the data security rating score according to the terminal's retrieval request, and returning data asset details, lineage network structure, and a list of affected downstream nodes if the authentication is successful, includes: Receive the retrieval request from the terminal, calculate the cosine similarity score between the retrieval request and the semantic tag set corresponding to each data flow node, and match the target data flow node; Compare the security permission level of the user who initiated the retrieval request with the data security rating score of the target data flow node; If the user's security permission level is greater than or equal to the data security rating score, output the preset authentication pass flag value and return the corresponding data; If the user's security permission level is lower than the data security rating score, the retrieval request is rejected, and the target data flow node and its subordinate associated edges are forcibly marked as invisible.
10. An enterprise-level automatic cataloging and end-to-end lineage tracing system for data assets, characterized in that: The method for automatic cataloging and end-to-end lineage tracing of enterprise-level data assets as described in any one of claims 1-9 includes: The metadata acquisition module is used to determine the polling period of different data sources, obtain physical metadata and sampled data snapshots, and the physical metadata contains raw fields; The semantic annotation module is used to extract the distribution features of the sampled data snapshot, combine the distribution features with the physical metadata and input them into the language model to generate a set of semantic tags, and store the mapping relationship between the original fields and the set of semantic tags. The lineage analysis module is used to capture the abstract syntax tree and dynamic execution log of the data processing task, extract data flow nodes, and construct a directed acyclic graph with the data flow nodes as vertices. The sensitive data classification module is used to read the mapping relationship and the directed acyclic graph, calculate the probability distribution of sensitive types, determine the hierarchical classification labels and the data security classification score of the data flow nodes; The data storage and synchronization module is used to store the data of the data flow nodes, the structural data of the directed acyclic graph, the semantic tag set and the hierarchical classification tags, calculate the data difference between the data flow nodes, and merge them to complete global data synchronization. The data service module is used to perform authentication based on the data security rating score according to the terminal's retrieval request. If the authentication is successful, it returns data asset details, lineage network structure, and a list of affected downstream nodes.
