Reinforcement learning-based adaptive correction method for abnormal data
By acquiring abnormal indicator signals and data lineage maps, retracing the update source chain to reconstruct clean shadow snapshots, simulating the recovery curve and simulation cost of the recalculation range, and using reinforcement learning models to determine batch granularity and expansion strategies, batch recalculation and batch-by-batch verification are performed, solving the problems of statistical baseline contamination and recalculation range decision-making, and achieving efficient and accurate abnormal data correction.
Patent Information
- Application Number
- CN202611302018.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-26
- Publication Date
- 2026-11-20
AI Technical Summary
In existing technologies, statistical baselines are easily contaminated by bad data, leading to distorted anomaly detection. Reinforcement learning models rely on real recalculation and trial-and-error, resulting in high learning costs. The recalculation range decision granularity is coarse, making it difficult to adaptively balance recovery speed and recalculation cost.
By acquiring abnormal indicator signals, data lineage maps, and shadow snapshots, we trace back the update source chain to reconstruct clean shadow snapshots, simulate the recovery curve and simulation cost of the recalculation range, use reinforcement learning models to determine batch granularity and expansion strategies, recalculate in batches and verify batch by batch until the verification passes.
This approach enables adaptive determination of the recalculation range at low cost, provided that the statistical baseline is reliable. This improves the accuracy and efficiency of outlier correction, reduces learning costs, and enhances the long-term stability of the system.
Smart Images

Figure CN123140141A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, and in particular to an adaptive correction method for abnormal data based on reinforcement learning. Background Technology
[0002] A data warehouse is the core carrier of an enterprise's data assets. In the entire lifecycle service of an ETL (Extract, Transform, Load) data warehouse, the raw data from business systems undergoes extraction, cleaning, and transformation layer by layer, forming data tables at the source layer, detail layer, and summary layer. The core indicator tables in the summary layer (such as daily active user tables and sales summary tables) directly carry key business indicators, and their data quality directly affects the accuracy of business analysis, business reports, and intelligent decision-making. To ensure data quality, data warehouses typically establish data lineage graphs to record the upstream and downstream dependencies between data tables and configure monitoring and alarm mechanisms to periodically monitor core indicator tables, triggering anomaly correction processes when indicators show abnormalities.
[0003] In existing technologies, abnormal data correction for core indicator tables typically involves: after detecting an anomaly signal, comparing the current data snapshot with a pre-established statistical baseline; determining whether abnormal changes have occurred and locating the abnormal link by comparing statistical features such as the number of rows and the distribution of key fields; and then performing a full recalculation of the data tables along the lineage path of that link, i.e., re-performing extraction, cleaning, and transformation until the core indicator table returns to normal. To reduce the cost of full recalculation, some existing technologies introduce reinforcement learning models for recalculation range decision-making. Reinforcement learning is a machine learning method in which an agent interacts with the execution environment and iteratively optimizes its strategy based on reward signals. Specifically, this approach uses anomaly information and data lineage relationships as states, recalculation range as actions, and trains the strategy model using the actual recalculation execution effect as a reward signal, thereby adaptively determining the range of data tables to be recalculated.
[0004] The inventors of this application have discovered the following technical problems with the prior art: First, the statistical baseline on which anomaly detection relies is calculated using historical data loading batches. When the data loading batch that triggered the last update of the statistical baseline carries mildly bad data (such as extracting missing data but with similar row numbers and slightly offset field distribution), the statistical baseline itself is contaminated, leading to distortion in anomaly detection and source identification. Second, reinforcement learning models rely on real recalculation and trial-and-error to obtain rewards. Each trial and error requires production computing resources and interferes with the normal ETL process, resulting in high learning costs. Third, the recalculation scope decision granularity is coarse. Usually, a full recalculation is performed at once or the model is expanded according to a fixed strategy, making it difficult to adaptively balance recovery speed and recalculation costs.
[0005] In summary, the technical problem that this application aims to solve is how to learn adaptively to determine the recalculation range at low cost and achieve efficient correction of outlier data, provided that the statistical baseline is reliable. Summary of the Invention
[0006] This invention provides an adaptive correction method for outlier data based on reinforcement learning. The technical problem to be solved is: how to learn adaptively to determine the recalculation range at low cost and achieve efficient correction of outlier data, under the premise of reliable statistical baseline.
[0007] To achieve the above-mentioned objectives, the technical solution adopted by this invention is as follows: Reinforcement learning-based adaptive correction methods for outlier data include: Obtain abnormal indicator signals, data lineage graphs, shadow snapshots, and current data snapshots. The shadow snapshots include a statistical profile of the core indicator table and a traceability chain of update sources. The updated source traceability chain records the data loading batch identifier and quality indicators that trigger the shadow snapshot update; If the data loading batch recorded in the update source traceability chain has a quality index lower than the preset quality threshold, the shadow snapshot is determined to be contaminated and a clean shadow snapshot is reconstructed; if there is no data loading batch with a quality index lower than the preset quality threshold in the update source traceability chain, the shadow snapshot is used as the clean shadow snapshot. The clean shadow snapshot is compared with the current data snapshot to determine whether the abnormal nature of the indicator signal is a data problem or a business problem, and to locate the source link; when the abnormal nature is a business problem, the indicator signal is marked as a business fluctuation signal and output. When the anomaly is a data problem, based on the statistical profile of the clean shadow snapshot, the statistical state evolution of the core indicator table after recalculation according to each candidate recalculation range is simulated, and a simulation recovery curve and simulation cost are generated. The candidate recalculation range is a set of candidate data tables for recalculating the data tables on the lineage path to which the source link belongs. Using the abnormal indicator signal, the source link, the simulation recovery curve and the simulation cost as state components, the recalculation range is determined by the reinforcement learning model. The recalculation range includes batch granularity and expansion strategy. Recalculate in batches according to the recalculation range. After each batch of recalculation is completed, compare the statistical profile of the core indicator table after recalculation with the clean shadow snapshot to verify the recalculation result. If it fails, expand the recalculation range of the next batch along the data lineage map according to the expansion strategy until the verification is passed and the corrected data is obtained.
[0008] Furthermore, the reinforcement learning model includes a high-level policy network and a low-level policy network; The high-level policy network takes the state component as input and outputs the expansion policy. The action space of the expansion policy includes whether to continue expansion and the number of batches for each expansion. The low-level policy network takes the state components and the extended policy as inputs and outputs the batch granularity, which indicates the selection of a subset of data tables for this batch of recalculation from the candidate recalculation range. The state component also includes the quality status of each data table on the lineage path, and the quality status is determined by the extraction integrity rate, the cleaning and rejection rate and the conversion verification pass rate. The state component also includes historical anomaly fingerprints, which are encoded by anomaly features, anomaly properties, source links, and recalculation ranges. The recalculation range is generated based on the batch granularity and the expansion strategy, indicating the set of data tables to be recalculated in each batch and the expansion order between batches.
[0009] Furthermore, the training reward of the reinforcement learning model includes immediate reward and delayed reward; The instant reward is determined by weighting the normalized simulation recovery time and simulation cost corresponding to the simulation recovery curve. The simulation recovery time is the time required for the core indicator table statistical profile indicated by the simulation recovery curve to recover to a stable state. After the recalculation result is verified, the actual recovery time and the actual recalculation cost are obtained. The actual recovery time is the time taken to restore the core indicator table to stability after recalculation, and the actual recalculation cost is determined according to the number of recalculated data tables and the resources occupied. The deviation between the simulated recovery time indicated by the simulated recovery curve and the actual recovery time is calculated to obtain the simulation verification consistency. The simulation verification consistency, the normalized actual recovery time, and the actual recalculation cost are used as the delay reward. The policy parameters of the higher-level policy network are updated according to the delayed reward, while the policy parameters of the lower-level policy network are updated according to the immediate reward.
[0010] The beneficial effects of this invention are as follows: First, addressing the problem in existing technologies where statistical baselines are easily contaminated by bad data, leading to distorted anomaly detection, this application first checks the update source tracing chain before identifying the nature of the anomaly. When a batch of data loading recorded in the update source tracing chain has a quality index lower than a preset quality threshold, the shadow snapshot is determined to be contaminated, and a clean shadow snapshot is reconstructed. Then, using the clean shadow snapshot as the discrimination baseline, it is compared with the current data snapshot to determine the nature of the anomaly and locate the source. Compared with existing technologies where the statistical baseline directly participates in the calculation and lacks a contamination self-checking mechanism, this application determines the "discrimination premise" itself, directly solving the problem of distorted anomaly detection caused by mildly contaminated statistical baselines, ensuring the accuracy of anomaly detection and source location, and avoiding erroneous corrections caused by discrimination distortion.
[0011] Second, addressing the issue of high learning costs in existing technologies where reinforcement learning decisions rely on real recalculation trial-and-error, this application, before initiating real recalculation, simulates the statistical state evolution of the core indicator table after recalculation according to each candidate recalculation range based on the statistical profile of the clean shadow snapshot. This generates simulation recovery curves and simulation costs, which are then used as state components to drive the reinforcement learning model to determine the recalculation range. Compared to existing technologies where reinforcement learning models rely on real recalculation trial-and-error to obtain rewards, this application achieves zero-cost learning through counterfactual simulation. It eliminates the need for real recalculation trial-and-error to explore recalculation strategies, directly solving the problem of high learning costs and disruption to the production chain caused by real recalculation trial-and-error, significantly reducing the training and decision-making costs of the reinforcement learning model.
[0012] Third, addressing the problem in existing technologies where the recalculation range is difficult to adaptively balance between recovery speed and recalculation cost, this application employs a reinforcement learning model for joint decision-making on batch granularity and expansion strategy. It recalculates in batches according to the stated recalculation range, verifying each batch sequentially. If verification fails, the recalculation range is expanded along the data lineage map according to the expansion strategy until verification passes. Compared to existing technologies that involve a one-time full recalculation or expansion according to a fixed strategy, this application directly solves the problem of the recalculation range being difficult to adaptively balance between recovery speed and recalculation cost. It minimizes recalculation cost while ensuring recalculation integrity, shortens the recovery time of core indicator tables, and improves the efficiency of abnormal data correction.
[0013] Fourth, addressing the issues in existing technologies where reinforcement learning model decision-making and simulation inference are disconnected, and simulation accuracy cannot continuously improve with real execution feedback, this application, after the recalculation result verification is passed, verifies the simulation recovery curve and the simulation cost using the real recovery time and the real recalculation cost, calculates the simulation verification consistency, and corrects the simulation parameters of statistical state evolution according to simulation error feedback, forming a closed loop of "simulation decision-making—batch recalculation—verification feedback." Compared with existing technologies where reinforcement learning model decision-making and simulation inference are disconnected, this application directly solves the problem that simulation inference accuracy cannot continuously improve with real execution feedback, enabling the reinforcement learning model's decision-making and simulation inference to continuously self-correct with real execution feedback, making the system more accurate with use and improving the long-term stability of adaptive correction of abnormal data. Attached Figure Description
[0014] Figure 1 This is a flowchart illustrating the overall process of this application; Figure 2 A schematic diagram of the high-level and low-level policy networks in an enhanced learning model; Figure 3 A diagram illustrating the immediate and delayed rewards for enhancing learning models; Figure 4 This is a flowchart of the fingerprint rapid screening-deep investigation hierarchical reasoning process. Detailed Implementation
[0015] The technical solution of this application will be further described below with reference to the embodiments. It should be understood that the following embodiments are only used to illustrate this application and are not intended to limit the scope of protection of this application.
[0016] This application provides an adaptive correction method for abnormal data based on reinforcement learning. This method is applied to the entire lifecycle data processing scenario of an ETL data warehouse, and mainly includes a data source system, an ETL processing cluster, data warehouse storage, a lineage graph service, shadow snapshot storage, a monitoring and alarm service, simulation computing nodes, reinforcement learning decision services, and recalculation execution scheduling services. The data source system and the ETL processing cluster are connected via a high-speed data channel. The data source system provides raw data from upstream business systems. The ETL processing cluster includes extraction nodes, cleaning nodes, and transformation nodes, which are interconnected through an internal cluster network to sequentially perform extraction, cleaning, and transformation processing on the raw data. The data warehouse storage is connected to the ETL processing cluster via an internal network and is used for hierarchical storage of the processed data tables, including source-attached, detail, and summary layers. The lineage graph service is connected to the ETL processing cluster and the data warehouse storage via an internal network to register upstream and downstream dependencies between data tables during ETL task execution, generating and storing a data lineage graph. The shadow snapshot storage... The system is connected to the data warehouse storage via an internal network to store statistical profiles and update source traceability chains for each data table; the monitoring and alarm service is connected to the data warehouse storage via an internal network to periodically monitor core indicator tables and generate indicator anomaly signals when anomalies are detected; the simulation computing node is connected to the shadow snapshot storage via an internal network to perform statistical state evolution simulations based on statistical profiles; the reinforcement learning decision service is connected to the simulation computing node and the monitoring and alarm service via an internal network to determine the recalculation range based on state components; the recalculation execution scheduling service is connected to the ETL processing cluster and the reinforcement learning decision service via an internal network to schedule batch recalculations according to the recalculation range and verify the recalculation results.
[0017] This application provides an adaptive correction method for outlier data based on reinforcement learning, comprising the following steps: Obtain abnormal indicator signals, data lineage graphs, shadow snapshots, and current data snapshots. The shadow snapshots include a statistical profile of the core indicator table and a traceability chain of update sources.
[0018] Specifically, the abnormal indicator signal is generated by the monitoring and alarm service. The monitoring and alarm service acquires the indicator values of the core indicator table according to a preset monitoring cycle, compares the indicator values with a preset normal baseline value, and generates an abnormal indicator signal carrying an indicator identifier, an abnormal value, a normal baseline value, and the detection time when the fluctuation range of the indicator value exceeds a preset fluctuation range. The core indicator table is a data table in the data warehouse aggregation layer that carries core business indicators, such as a daily active user count table, a sales summary table, or a conversion rate summary table. The data lineage graph is maintained by the lineage graph service. The lineage graph service collects the input table identifier and output table identifier of each ETL task execution, registers the dependency edges between the input table and the output table, thereby constructing a directed graph with data tables as nodes and dependency relationships as edges. This directed graph is the data lineage graph, and the sequence of nodes traversed from any upstream data table to its downstream data table constitutes a lineage path. The shadow snapshot is stored and maintained by the shadow snapshot. The shadow snapshot is the statistical baseline established by the core indicator table under normal conditions. The shadow snapshot includes the statistical profile and update source traceability chain of the core indicator table. The statistical profile is profile data that characterizes the statistical features of the core indicator table. The update source traceability chain is a chain record that records the update source of the shadow snapshot. The specific composition of the statistical profile and the update source traceability chain will be explained in subsequent steps.
[0019] The update source traceability chain records the data loading batch identifier and quality indicators that triggered the shadow snapshot update.
[0020] Specifically, when the ETL processing cluster loads a new batch of data into the core metric table, this batch of data constitutes a data loading batch, and the shadow snapshot storage assigns a unique batch identifier to this data loading batch. The shadow snapshot storage appends the batch identifier and the corresponding quality metric to the update source traceability chain. The quality metric is a quantitative indicator characterizing the data quality of the data loading batch. The quality metric is determined based on the quality statistics of the batch data in the extraction, cleaning, and transformation stages, including extraction completeness rate, cleaning rejection rate, and transformation verification pass rate; wherein, the extraction completeness rate is the ratio of the number of records actually extracted in the batch to the number of records that should have been extracted, the cleaning rejection rate is the ratio of the number of records rejected by the cleaning rules in the batch to the total number of records in the batch, and the transformation verification pass rate is the ratio of the number of records that passed the transformation verification in the batch to the total number of records in the batch. The quality metric is synthesized according to the following formula: in, The quality indicator has a value range of [value range missing]. , The larger the value, the higher the data quality of the batch being loaded. The extraction completeness rate is... The cleaning rejection rate is... The conversion verification pass rate; , , For quality weighting coefficients, satisfying For example, , , The quality metrics are calculated by the shadow snapshot storage after the ETL processing cluster completes the loading of the data batch, and are written into the update source tracing chain along with the batch identifier. It should be noted that for bad data with slight field distribution shifts but no significant changes in extraction completeness, cleaning and rejection rate, and transformation verification pass rate, the quality metrics may not be able to fully capture them. Such bad data is identified by comparing the key field distributions of the current data snapshot and the clean shadow snapshot in subsequent steps.
[0021] If the data loading batch recorded in the update source traceability chain has a quality index lower than the preset quality threshold, the shadow snapshot is determined to be contaminated, and a clean shadow snapshot is reconstructed.
[0022] Specifically, the shadow snapshot is updated at a preset period or after data loading is completed. If the data loading batch that triggered the most recent update carries quality defects, such as mild bad data (e.g., missing data extraction but row count similar to normal batches, slight field distribution shifts), the statistical profile obtained from the data in this batch will deviate from the normal baseline. In other words, the shadow snapshot is contaminated by this mild bad data, leading to distorted subsequent judgments. Therefore, before judgment, the update source traceability chain is checked back to read the quality indicators of each data loading batch recorded in the chain. Each quality indicator is compared with a preset quality threshold, which is a pre-set minimum quality indicator value for judging the quality of a data loading batch as acceptable. An exemplary value is [value to be inserted here]. When quality indicators The shadow snapshot is determined to be contaminated at that time, wherein The preset quality threshold is used; when contamination is determined, the clean shadow snapshot is reconstructed. The clean shadow snapshot is the normal statistical baseline that is not contaminated. The reconstruction method includes rolling back to the historical snapshot version before contamination or recalculating the statistical profile along the data lineage map. The specific reconstruction method will be described in detail in subsequent embodiments.
[0023] By comparing the clean shadow snapshot with the current data snapshot, the abnormal nature of the indicator signal is determined to be a data problem or a business problem, and the source link is located.
[0024] Specifically, the current data snapshot is a real-time statistical profile of the core indicator table within the monitoring period corresponding to the abnormal indicator signal. The clean shadow snapshot is compared item by item with the data-side features in the current data snapshot. These data-side features include the number of rows, key field distribution, and lineage input fingerprint. The number of rows is the total number of records in the data table; the key field distribution is the percentage distribution of records for each value range of the key fields; and the lineage input fingerprint is the digest value obtained by hashing the lineage input data of the core indicator table. The normalized difference of each data-side feature is calculated item by item, where the first... The normalized difference of the data-side features is calculated using the following formula: in, For the first Normalized differences in features of each data item The first in the current data snapshot The values of the data-side features, Let basexk be the value of the k-th data-side feature in the clean shadow snapshot. When basexk is zero, a preset zero-prevention constant is used to replace the denominator. When any... When the value exceeds a corresponding preset mutation threshold, the data-side feature is determined to have mutated. The preset mutation threshold is exemplarily set to a value of [value missing]. When at least one data-side feature undergoes a sudden change, it indicates that the anomaly in the core indicator table is caused by a deterioration in upstream data quality. The anomaly is determined to be a data problem, and the link in which the data table with the sudden change occurs is identified based on the data lineage diagram. This link is then designated as the source link, which is the most upstream data link that triggered the indicator anomaly. When none of the data-side features undergo a sudden change, it indicates that the data in the core indicator table itself remains normal, but the indicator value has jumped. The anomaly is determined to be a business problem, which indicates that the indicator anomaly is caused by a real business change.
[0025] When the anomaly is a data problem, based on the statistical profile of the clean shadow snapshot, the statistical state evolution of the core indicator table after recalculation according to each candidate recalculation range is simulated to generate a simulation recovery curve and simulation cost.
[0026] Specifically, the candidate recalculation range is a set of candidate data tables for recalculating data tables along the lineage path of the source link. Each candidate recalculation range corresponds to a different batch granularity and expansion strategy. Before initiating the actual recalculation, the simulation computing node is a simulation computing service deployed in the data warehouse, internally configured with the statistical profile evolution model. Using the statistical profile of the clean shadow snapshot as the simulation benchmark, it simulates the change process of the statistical profile of the core indicator table after extraction, cleaning, and transformation of the corresponding data table according to each candidate recalculation range as the recalculation process progresses. This change process is the statistical state evolution. The simulation recovery curve is a curve characterizing the relationship between the statistical profile of the core indicator table and the clean shadow snapshot over time during the statistical state evolution process; the simulation cost is a quantitative estimate of the computing resources required to perform recalculation according to the corresponding candidate recalculation range. Through the simulation of the statistical state evolution, the recalculation effect and cost of each candidate recalculation range can be obtained in advance without initiating the actual recalculation, thereby avoiding learning through trial and error of actual recalculation and achieving zero-cost learning.
[0027] Using the abnormal indicator signal, the source link, the simulation recovery curve, and the simulation cost as state components, a reinforcement learning model determines the recalculation range, which includes batch granularity and expansion strategy.
[0028] Specifically, the reinforcement learning model is a decision model based on Markov decision process modeling. The input of the reinforcement learning model is a state component, and the output is an action. The state component includes the abnormal indicator signal, the source link, the simulation recovery curve, and the simulation cost. The action space consists of the batch granularity and the expansion strategy, wherein the batch granularity determines the number of data tables to be recalculated in each batch, and the expansion strategy determines the batch expansion method when the recalculation range fails the verification. The reinforcement learning model takes the state component as input and outputs the batch granularity and the expansion strategy, which together constitute the recalculation range. During inference, the reinforcement learning model directly outputs the recalculation range based on the current state component, and during training, it updates the policy parameters based on reward feedback. The specific network structure and training method of the reinforcement learning model will be described in detail in subsequent embodiments.
[0029] Recalculate in batches according to the recalculation range. After each batch of recalculation is completed, compare the statistical profile of the core indicator table after recalculation with the clean shadow snapshot to verify the recalculation result. If it fails, expand the recalculation range of the next batch along the data lineage map according to the expansion strategy until the verification is passed and the corrected data is obtained.
[0030] Specifically, the recalculation execution scheduling service divides the data tables to be recalculated into several batches according to the recalculation range, and schedules the ETL processing cluster to perform recalculation in batches. After each batch of recalculation is completed, the recalculation result is verified. The verification involves comparing the statistical profile of the core indicator table after recalculation with the clean shadow snapshot, and calculating the statistical profile difference according to the overall difference calculation method. The statistical profile difference is a weighted sum of the differences in the number of rows, the differences in the distribution of key fields, and the differences in the lineage input fingerprint. When the statistical profile difference is less than a preset verification threshold, the recalculation result is determined to have passed the verification. The preset verification threshold is exemplarily set to a value of [value missing]. Otherwise, the recalculation result is determined to have failed verification. When the recalculation result fails verification, the next batch of recalculation range is expanded along the data lineage map according to the expansion strategy, that is, data tables that have not yet been recalculated are selected from the candidate recalculation range and added to the next batch of recalculation until verification passes. After verification passes, the data in the core indicator table is restored to the normal state, and the corrected data is obtained. The corrected data is the correct data after anomaly correction.
[0031] In summary, this application ensures the reliability of the baseline for anomaly detection through the self-checking and reconstruction of the shadow snapshot, preventing mildly bad data from eroding the detection benchmark. Through statistical state evolution simulation based on statistical profiling, the recalculation effect and cost of each candidate recalculation range are obtained before actual recalculation, achieving zero-cost learning and avoiding interference with production indicators from actual recalculation trial and error. The recalculation range is adaptively determined through the joint decision-making of batch granularity and expansion strategy using a reinforcement learning model. The gradual correction through batch recalculation and batch-by-batch verification balances recalculation integrity and cost, enabling indicator anomalies to be corrected at minimal cost and significantly shortening indicator recovery time.
[0032] In this embodiment, the reinforcement learning model includes a high-level policy network and a low-level policy network.
[0033] Specifically, the reinforcement learning model adopts a hierarchical policy network architecture, where both the high-level and low-level policy networks are based on multilayer perceptrons. The high-level policy network is used to determine the expansion method of recalculation, while the low-level policy network is used to determine the batch granularity of each recalculation. The inputs to both the high-level and low-level policy networks are the state components, and the low-level policy network also receives the output of the high-level policy network as input, thus forming a hierarchical collaborative structure where high-level decisions guide low-level decisions. The two policy networks each correspond to independent policy parameters, which are the connection weights and biases of each layer of the network. In this embodiment, both the high-level and low-level policy networks contain a hidden layer with the same number of neurons. The activation function is ReLU, and the output layer uses Softmax to output the action probability distribution.
[0034] The high-level policy network takes the state component as input and outputs the expansion policy. The action space of the expansion policy includes whether to continue expansion and the number of batches for each expansion.
[0035] Specifically, after the high-level policy network encodes the state components, it outputs the action probability distribution of the expansion policy through the output layer. The action space includes whether to continue expansion and the number of batches for each expansion. For example, the action space of the expansion policy is defined as... The actions Indicates termination of extension, action , , Each represents an expansion indivual, indivual, The data table is divided into batches. The expansion strategy guides the expansion range of the recalculation range for the next batch when the recalculation result fails the verification, thereby achieving adaptive convergence of the recalculation range.
[0036] The low-level policy network takes the state components and the extended policy as inputs and outputs the batch granularity, which indicates the subset of data tables to be recalculated in this batch from the candidate recalculation range.
[0037] Specifically, the lower-level policy network concatenates the state components with the extended policy output by the higher-level policy network as a joint input, and outputs the batch-granularity action probability distribution through the output layer. The batch-granularity action space is a subset of data tables selected from the candidate recalculation range for this batch recalculation. For example, the lower-level policy network outputs a combination of identifiers for the subset of data tables selected from the candidate recalculation range, and this subset of data tables is the set of data tables for this batch recalculation. Through the collaboration of the high- and low-level policy networks, the higher-level network determines the overall expansion rhythm, and the lower-level network determines the specific data tables for a single batch recalculation, thereby achieving fine-grained control of the recalculation range.
[0038] The state component also includes the quality status of each data table on the lineage path, which is determined by the extraction integrity rate, the cleaning and rejection rate, and the conversion verification pass rate.
[0039] Specifically, to enhance the reinforcement learning model's ability to perceive recalculation effects, the state component, based on the abnormal indicator signal, the source link, the simulation recovery curve, and the simulation cost, further includes the quality status of each data table along the lineage path from the source link to the core indicator table. The quality status of each data table is determined by its extraction completeness rate, cleaning and rejection rate, and transformation verification pass rate. For example, these three quality statistics are combined into a three-dimensional quality status vector and normalized according to the min-max formula. Normalization to The interval is then used as the quality status of the data table and input into the reinforcement learning model, where, These are the raw values of the quality statistics. , These are the minimum and maximum values of the quality statistic, respectively. This is the normalized value. The quality status enables the reinforcement learning model to perceive the data quality level at each stage of the recalculation path, thereby making more accurate decisions about the recalculation range.
[0040] The state component also includes historical anomaly fingerprints, which are encoded by anomaly features, anomaly properties, source links, and recalculation range.
[0041] Specifically, the historical anomaly fingerprint is fingerprint data obtained by encoding the handling experience of historical indicator anomaly events. The historical anomaly fingerprint is encoded by anomaly features, anomaly nature, source links, and recalculation range. The anomaly features are characteristics such as the amplitude and change pattern extracted from the indicator anomaly signal. The anomaly nature, source links, and recalculation range are the discrimination results and correction schemes corresponding to the historical event. The historical anomaly fingerprint is stored in a historical anomaly fingerprint database in the form of numerical vectors. The historical anomaly fingerprint is input as a state component into the reinforcement learning model, enabling the reinforcement learning model to make decisions based on the handling experience of similar historical anomalies, achieving a self-evolving capability that becomes more accurate with use.
[0042] The recalculation range is generated based on the batch granularity and the expansion strategy, indicating the set of data tables to be recalculated in each batch and the expansion order between batches.
[0043] Specifically, the batch granularity output by the lower-level policy network indicates the subset of data tables to be recalculated in this batch, and the expansion policy output by the higher-level policy network indicates whether subsequent batches should continue to expand and the number of batches to be expanded each time. Combining the two generates the complete recalculation range, which indicates the set of data tables to be recalculated in each batch and the expansion order between batches. The recalculation range is issued to the recalculation execution scheduling service in the form of structured instructions, and the recalculation execution scheduling service schedules batch recalculation according to the recalculation range.
[0044] In summary, this embodiment decomposes the recalculation range decision into two levels of decision-making: overall expansion strategy and single-batch granularity, through hierarchical collaboration between the high-level policy network and the low-level policy network. This reduces the decision complexity of a single policy network and improves the granularity of the recalculation range decision. By incorporating the quality status and historical anomaly fingerprints of each data table on the lineage path into the state component, the reinforcement learning model's ability to perceive the data quality and historical experience of the recalculation path is enhanced, thereby improving the accuracy of the recalculation range decision.
[0045] In this embodiment, the training reward of the reinforcement learning model includes immediate reward and delayed reward.
[0046] Specifically, the reinforcement learning model is trained using a reward-driven policy optimization approach, with the training reward consisting of both immediate and delayed rewards. The immediate reward is a reward signal obtainable before the actual recalculation is completed, while the delayed reward is a reward signal obtained based on the actual result after the actual recalculation is completed. The immediate and delayed rewards jointly drive the update of the policy parameters of the reinforcement learning model.
[0047] The instant reward is determined based on the simulation recovery time and simulation cost corresponding to the simulation recovery curve. The simulation recovery time is the time required for the statistical profile of the core indicator table indicated by the simulation recovery curve to return to stability.
[0048] Specifically, the simulation recovery time is the time elapsed from the start of recalculation until the statistical profile of the core indicator table stabilizes. The simulation recovery time is determined by the simulation recovery curve, specifically the difference between the time when the statistical profile difference on the simulation recovery curve converges to below a preset recovery threshold and the start time of recalculation. The preset recovery threshold is exemplarily set to a value of... The instant reward is calculated using the following formula: in, For the aforementioned instant reward, The simulation recovery time is... For the simulation cost, , For example, as an instant reward weighting factor, , The immediate reward can be calculated based on the simulation results after the reinforcement learning model outputs the recalculation range, without waiting for the actual recalculation to complete, thus providing a reward signal with zero waiting time for policy updates. The simulation recovery time and the simulation cost are normalized according to preset time and preset cost benchmarks, respectively, before calculating the immediate reward. The immediate reward weight coefficient only represents the relative importance of the two items.
[0049] After the recalculation result is verified, the actual recovery time and the actual recalculation cost are obtained. The actual recovery time is the time taken to restore the core indicator table to stability after recalculation, and the actual recalculation cost is determined according to the number of recalculated data tables and the resources occupied.
[0050] Specifically, once the actual recalculation is completed and the recalculation result verification is passed, the actual recalculation process data is recorded. The actual recovery time is the actual time elapsed from the start of recalculation to the core indicator table returning to stability; the actual recalculation cost is determined based on the number of data tables actually recalculated and the computing resources used, and the actual recalculation cost is calculated according to the following formula: in, The actual recalculation cost is... This is the set of data tables that are actually recalculated. For data table The scale of data For data table The amount of computing resources used for recalculation. , The cost coefficient is defined as follows: The actual recovery time and the actual recalculation cost reflect the actual execution effect of the recalculation strategy, and are used to constitute the delayed reward and update the simulation parameters of the statistical state evolution, which are executed in parallel.
[0051] The deviation between the simulated recovery time indicated by the simulated recovery curve and the actual recovery time is calculated to obtain the simulation verification consistency. The simulation verification consistency, the actual recovery time, and the actual recalculation cost are used as the delay reward.
[0052] Specifically, the actual recovery result is the actual statistical profile recovery result of the core indicator table after the recalculation result verification is passed. The simulation verification consistency is the degree of consistency between simulation and reality determined based on the deviation between the simulation recovery time and the actual recovery time, and the simulation verification consistency is calculated according to the following formula: in, The simulation is used to verify the consistency. The actual recovery time is... To prevent the division by zero constant, the delayed reward is calculated using the following formula: in, For the delayed reward, , For example, the delayed reward weighting coefficient, , The delayed reward includes both simulation and real consistency feedback and real execution cost feedback, used to correct the decisions of the reinforcement learning model. The simulation verification consistency is calculated according to the formula, and is truncated to zero when the calculation result is less than zero. The real recovery time and the real recalculation cost are normalized according to preset time and preset cost benchmarks consistent with the simulation before calculating the delayed reward. The delayed reward weight coefficient only represents the relative importance of the two items.
[0053] The policy parameters of the higher-level policy network are updated according to the delayed reward, while the policy parameters of the lower-level policy network are updated according to the immediate reward.
[0054] Specifically, the high-level policy network is responsible for deciding the overall expansion pace, and its decision effect needs to be evaluated based on the actual recovery situation after recalculation. Therefore, the policy parameters of the high-level policy network are updated according to the delayed reward. The low-level policy network is responsible for making decisions at the single-batch granularity level, and its decision effect can be evaluated in real time by simulation results. Therefore, the policy parameters of the low-level policy network are updated according to the real-time reward. For example, the policy gradient algorithm is used to update the policy parameters, and the policy parameters of the high-level policy network are updated in the following manner: in, These are the policy parameters of the higher-level policy network. For the high-level learning rate, an example value is taken as follows: , For the high-level policy network in state Select action The policy probabilities are calculated. The policy parameters of the lower-level policy network are updated according to the following formula: in, These are the policy parameters of the lower-level policy network. For the low-level learning rate, an example value is set to [value]. , For the low-level policy network in state and high-level actions Select action The strategy probability is determined. Through a hierarchical reward update mechanism, the higher-level policy network optimizes the expansion rhythm based on real execution feedback, while the lower-level policy network optimizes the batch granularity based on simulation feedback, thus achieving division of labor learning among the hierarchical policy networks.
[0055] In summary, this embodiment, through a dual-channel reward design of immediate and delayed rewards, enables the reinforcement learning model to obtain simulation-driven immediate feedback before the actual recalculation is completed, and to obtain delayed feedback including simulation verification consistency after the actual recalculation is completed, thus achieving a closed loop of zero-wait learning and simulation error correction. Furthermore, the hierarchical update mechanism, where high-level policy networks are updated according to delayed rewards and low-level policy networks are updated according to immediate rewards, allows each level of policy network to perform its respective function, improving learning efficiency and decision quality.
[0056] In this embodiment, before determining the nature of the anomaly, the method further includes: matching the indicator anomaly signal with historical anomaly fingerprints in the historical anomaly fingerprint database to obtain a fingerprint matching result, wherein the historical anomaly fingerprint is encoded by anomaly features, anomaly nature, source link and recalculation range.
[0057] Specifically, the historical anomaly fingerprint database is a database storing experience in handling historical indicator anomaly events. Each historical anomaly fingerprint in the database is obtained by encoding the anomaly characteristics, anomaly nature, source link, and recalculation range of the historical event into a numerical vector. Before determining the anomaly nature, a fast screening process is performed: the currently acquired indicator anomaly signal is feature-encoded to obtain a current anomaly feature vector; the current anomaly feature vector is expanded into a vector of the same dimension as the historical anomaly fingerprint according to the encoding structure of the historical anomaly fingerprint; and the similarity between the expanded vector and each historical anomaly fingerprint in the historical anomaly fingerprint database is calculated using the cosine similarity formula. in, The current abnormal feature vector, The first in the historical abnormal fingerprint database A historical abnormal fingerprint vector, The range of values is A higher value indicates a higher similarity. Specifically, the current abnormal feature vector is expanded according to the encoding structure of the historical abnormal fingerprint to form a vector of the same dimension as the historical abnormal fingerprint before participating in the similarity calculation, thus eliminating dimensional inconsistencies. The result of the similarity calculation constitutes the fingerprint matching result.
[0058] When the fingerprint matching result indicates that the similarity between the indicator abnormal signal and the historical abnormal fingerprint is not lower than a preset similarity threshold, the historical abnormal fingerprint with the highest similarity is determined as the matching fingerprint.
[0059] Specifically, the preset similarity threshold is a pre-set minimum similarity value for determining successful fingerprint matching, and for example, it is set to a value of [value to be filled in]. When the highest similarity in the fingerprint matching results is not lower than the preset similarity threshold, it indicates that the current anomaly is highly similar to a historical anomaly. In this case, the historical anomaly fingerprint with the highest similarity is determined as the matching fingerprint, and the matching fingerprint indicates that the processing experience of the historical event is applicable to the current anomaly.
[0060] Skip the steps of identifying the abnormal nature and locating the source, determine the abnormal nature in the matching fingerprint as the abnormal nature, and take the source link in the matching fingerprint as the source link; when the abnormal nature is a data problem, determine the data table to be recalculated according to its recalculation range.
[0061] Specifically, the abnormal nature, source link, and recalculation range of the historical event are extracted from the matching fingerprint. The abnormal nature in the matching fingerprint is determined as the abnormal nature of the current indicator abnormal signal, and the source link in the matching fingerprint is determined as the source link of the current anomaly. When the abnormal nature is a data problem, the data table to be recalculated is determined according to the recalculation range in the matching fingerprint, thereby reusing historical processing experience and skipping the complete inference process of the reinforcement learning model. When the abnormal nature is a business problem, the indicator abnormal signal is marked as a business fluctuation signal and output, without triggering recalculation.
[0062] The data table to be recalculated is recalculated and verified in batches. If the verification fails, the next batch of recalculation range is extended along the data lineage map according to the extension strategy indicated by the recalculation range in the matching fingerprint, until the verification passes.
[0063] Specifically, according to the recalculation range in the matching fingerprint, the data table to be recalculated is recalculated in batches. After each batch of recalculation is completed, the recalculation result is verified. The verification method is the same as the aforementioned verification method, that is, the statistical profile of the core indicator table after recalculation is compared with the clean shadow snapshot. When the verification fails, the next batch of recalculation range is extended along the data lineage map according to the extension strategy indicated by the recalculation range in the matching fingerprint until the verification passes. In this way, even in the scenario of fast screening hit, a complete recalculation correction closed loop is completed, avoiding the data flow break after the data table to be recalculated is determined without subsequent processing.
[0064] When the fingerprint matching result indicates that the similarity between the indicator abnormal signal and the historical abnormal fingerprint is lower than a preset similarity threshold, the abnormality determination and subsequent steps are executed.
[0065] Specifically, when the highest similarity in the fingerprint matching result is lower than the preset similarity threshold, it indicates that the current anomaly is an unknown anomaly that has not appeared in the historical fingerprint database. At this time, the fast screening fails and the process is transferred to the deep search process. The aforementioned subsequent steps, such as judging the nature of the anomaly, statistical state evolution simulation, reinforcement learning model determining the recalculation range, and batch recalculation verification, are executed. In other words, a complete reinforcement learning inference is triggered for the unknown anomaly.
[0066] In summary, this embodiment achieves hierarchical reasoning of fast screening and deep investigation through similarity matching of historical anomaly fingerprint database. Known anomalies can reuse historical processing experience in seconds, skipping reinforcement learning for complete reasoning, which greatly reduces reasoning overhead; only unknown anomalies trigger complete reasoning, and the processing experience is written back to the fingerprint database to achieve self-evolution that becomes more accurate with use.
[0067] In this embodiment, the simulation of the statistical state evolution includes: obtaining candidate batches corresponding to each candidate recalculation range, wherein the candidate batch is a subset of data tables available for recalculation in the data table set on the lineage path to which the source link belongs.
[0068] Specifically, the simulation of the statistical state evolution is the counterfactual simulation process. First, candidate batches corresponding to each candidate recalculation range are obtained. Each candidate recalculation range corresponds to one candidate batch. The candidate batch is a set of data tables for recalculating the data tables on the lineage path to which the source link belongs. The candidate batch consists of data tables on the lineage path to which the source link belongs. Each candidate recalculation range determines different combinations of recalculated data tables from the candidate batches through different batch granularities and expansion strategies.
[0069] Using the statistical profile of the clean shadow snapshot as the initial state, the changes in the statistical profile of the core indicator table after the candidate batch is extracted, cleaned and transformed are simulated to obtain the statistical state evolution sequence.
[0070] Specifically, using the statistical profile of the clean shadow snapshot as the initial state of the simulation, the simulation simulates the change of the statistical profile of the core indicator table as the recalculation process occurs after the corresponding data tables are extracted, cleaned, and transformed according to candidate batches. The simulation is based on an evolutionary model of the statistical profile. This model, based on the changes in lineage input data after recalculation of each data table, deduces the hourly changes in the number of rows, key field distribution, and lineage input fingerprints of the core indicator table. The model is deduced step-by-step according to a preset time step, yielding a set of simulated statistical profiles at each time step. Arranging these profiles in chronological order results in the statistical state evolution sequence. The evolutionary model derives the statistical profile characteristics of the core indicator table using the following formula: in, For the first The number of rows in the core indicator table obtained from the simulation at each time step For the first The number of rows in the core indicator table obtained from the simulation at each time step For the first The set of data tables that are recalculated at each time step. For data table The number of rows after recalculation For data table The baseline row number; For the first The distribution of key fields obtained from simulations at each time step For the first The distribution of key fields obtained from simulations at each time step For data table The recalculated distribution of key fields For data table The distribution of benchmark key fields; For the first The bloodline input fingerprint was obtained by simulating the time step. For the first The bloodline input fingerprint was obtained by simulating the time step. For data table Changes in the summary of kinship input data caused by recalculation For concatenation operations, This is a hash function. It should be noted that in the original expression, ⊕ B Represents the binary concatenation operation, ⊕ N This represents the N-ary aggregation concatenation operation, both of which belong to string concatenation (i.e., concatenating multiple byte sequences in sequence); F t With each ΔF j All are fixed-length digest byte strings, according to data table T j In ℬ t+1 After being concatenated in a preset order, the new kinship input fingerprint is calculated using the hash function H. This formula is used for the approximate derivation of kinship input fingerprints in counterfactual simulations, and it constructs a different digest than the fingerprint obtained by directly concatenating and hashing all kinship input data. The data table... Recalculated row count Key field distribution and changes in bloodline input data summary The data is estimated based on the statistical profile in the shadow snapshot and the upstream data features on the data lineage map, and calibrated by the statistical results fed back after the ETL processing cluster performs the recalculation following the actual recalculation. Baseline row number Distribution of benchmark key fields Read from the shadow snapshot. The above deduction of row count and key field distribution is applicable to scenarios where there is record-level additivity between the core indicator table and the upstream data table. For aggregated indicator tables, the deduction of key field distribution at each time step is based on the estimation of the change in the proportion of records in each value interval. The key field distribution participates in the deduction in the form of the proportion of records in each value interval.
[0071] According to The proportion of records in the value range is used in the deduction.
[0072] The simulation recovery curve and the simulation cost are generated based on the statistical state evolution sequence.
[0073] Specifically, based on the normalized difference between the simulated statistical profile at each time step in the statistical state evolution sequence and the clean shadow snapshot, a curve is plotted to show the difference over time, thus obtaining the simulation recovery curve. The simulation cost is estimated based on the number of data tables in the candidate batch and the computational resources used in the simulation. The simulation recovery curve visually reflects the process and time taken for the core indicator table to recover to the normal baseline after recalculation according to the candidate recalculation range, and the simulation cost reflects the computational overhead of the recalculation scheme.
[0074] The simulation recovery curve indicates the change in the difference between the statistical profile of the core indicator table and the clean shadow snapshot over time, and the simulation cost is determined based on the number of data tables in the candidate batch and the computational resources occupied by the simulation.
[0075] Specifically, the horizontal axis of the simulation recovery curve represents simulation time, and the vertical axis represents the normalized difference between the statistical profile of the core indicator table and the clean shadow snapshot. The moment when the difference converges to below a preset recovery threshold is the end point of the simulation recovery time. The simulation cost is calculated using the following formula: in, For the simulation cost, The set of data tables in the candidate batch. For data table The scale of data For data table Simulate the amount of computing resources used for recalculation. , The cost coefficient is used. The simulation recovery curve and the simulation cost together constitute the simulation evaluation result of the candidate recalculation range, which is used to drive reinforcement learning decision-making and immediate reward calculation.
[0076] After the recalculation result is verified, the simulation recovery curve and simulation cost are verified with the actual recovery time and the actual recalculation cost to obtain the simulation error. The simulation parameters of the statistical state evolution are then updated according to the simulation error.
[0077] Specifically, after the actual recalculation is completed and the recalculation result is verified, the actual recovery time and actual recalculation cost obtained from the actual recalculation are compared with the simulated recovery time and simulated cost obtained from the simulation. The deviation between the two is calculated to obtain the simulation error. The simulation error is calculated according to the following formula: in, The simulation error is used to update the simulation parameters of the statistical state evolution according to the simulation error. These simulation parameters are the parameters controlling the inference process in the evolution model, and are updated using the following formula: in, The simulation parameters are... To simulate the learning rate, an example value is taken as follows: , The gradient of the simulation error with respect to the simulation parameters is used for updating. Through gradient descent, the inference results of the evolution model gradually approach the actual recalculated results, achieving self-correction of the simulation inference. The simulation error gradually converges with the feedback from the actual verification.
[0078] In summary, this embodiment discloses the complete deduction process and simulation error feedback mechanism for the simulation of the statistical state evolution, enabling the counterfactual simulation to be continuously corrected under the drive of real recalculation results. The accuracy of the simulation recovery curve and simulation cost gradually improves with use, thereby enhancing the reliability of reinforcement learning decisions and immediate rewards.
[0079] In this embodiment, the maintenance of the shadow snapshot includes: the shadow snapshot includes a statistical profile corresponding to each data table, the statistical profile includes the number of rows, the distribution of key fields and the lineage input fingerprint, and the lineage input fingerprint is a hash digest of the lineage input data.
[0080] Specifically, the shadow snapshot is a statistical baseline established for each data table. The shadow snapshot includes a statistical profile corresponding to each data table, with one statistical profile for each data table. The statistical profile includes three statistical features: row count, key field distribution, and lineage input fingerprint. The row count is the total number of records in the data table; the key field distribution is the percentage distribution of records for each key field across different value ranges. For example, for the sales revenue field, the sales revenue is divided into several value ranges, and the number of records in each range is counted to form the key field distribution; the lineage input fingerprint is a digest value obtained by hashing the lineage input data of the data table. The lineage input data consists of all upstream input data of the data table, and the lineage input fingerprint is generated as follows: in, Input fingerprints for the bloodline. The set consisting of all data records in the bloodline input data. For concatenation operations (where ⊕ B Represents binary concatenation operation, ⊕ N This represents an N-ary aggregation concatenation operation, both of which belong to string concatenation, i.e., concatenating multiple byte sequences in sequence. The hash function is used, exemplarily employing the SHA-256 hash function. The bloodline input fingerprint is used to quickly compare whether the bloodline input data has changed.
[0081] The current statistical profile of the core indicator table is obtained at a preset period, and the current statistical profile is compared with the shadow snapshot. When the difference is less than a preset difference threshold, the shadow snapshot is updated with the current statistical profile.
[0082] Specifically, the shadow snapshot is maintained at a preset period, which is exemplarily daily or after each data load. The current statistical profile of the core indicator table is obtained at the preset period, and the overall difference between the current statistical profile and the shadow snapshot is calculated. The overall difference is a weighted sum of differences in the number of rows, key field distribution, and lineage input fingerprint, calculated using the following formula: in, For the overall difference, For the difference in the number of rows, The key field distribution differences, Input fingerprint differences for the bloodline. , , For the difference weighting coefficient, satisfying exemplarily , , The row count difference is the ratio of the absolute value of the difference between the row count of the current statistical profile and the row count of the shadow snapshot to the row count of the shadow snapshot; the key field distribution difference is the ratio of the sum of the absolute values of the differences between the number of records in the corresponding value intervals of the key field distributions of the current statistical profile and the shadow snapshot to the total number of records in the shadow snapshot; the bloodline input fingerprint difference is the value taken when the bloodline input fingerprint of the current statistical profile and the bloodline input fingerprint of the shadow snapshot are inconsistent. When they are consistent, the value is taken as follows: When the overall difference is less than the preset difference threshold, it indicates that the core indicator table is currently within the normal fluctuation range. The shadow snapshot is updated with the current statistical profile to maintain baseline freshness as the shadow snapshot evolves normally with the data. When the overall difference is not less than the preset difference threshold, it indicates that the data has undergone abnormal changes. The shadow snapshot is not updated, and the original baseline is retained for judgment. When the overall difference is not less than the preset difference threshold for a consecutive preset number of periods, it is determined that the shadow snapshot has not been updated for a long time, triggering the forced reconstruction of the shadow snapshot. The forced reconstruction is to recalculate the statistical profile from upstream along the data lineage map or prompt the operation and maintenance personnel for manual confirmation.
[0083] Record the batch identifier and quality index of the data loading that triggered this update, and save the batch identifier and quality index of the data loading corresponding to the most recent preset number of updates and the shadow snapshot version before the update in chronological order to form the update source traceability chain.
[0084] Specifically, each time the shadow snapshot is updated with the current statistical profile, the data loading batch identifier that triggered the update and the quality index of that batch are recorded. The data loading batch identifiers, quality indices, and previous shadow snapshot versions corresponding to the most recent preset number of updates are saved in chronological order to form the update source traceability chain. The preset number is exemplarily... The pre-update shadow snapshot version in the update source tracing chain is a copy of a historical snapshot saved before each update, used to roll back to a clean version before the shadow snapshot is contaminated.
[0085] In summary, this embodiment discloses a dual-track maintenance mechanism for the shadow snapshot. On the one hand, it maintains the baseline freshness of the shadow snapshot by updating it periodically. On the other hand, it records the update source and historical version of the snapshot through the update source traceability chain, providing a basis for subsequent contamination determination and clean baseline reconstruction.
[0086] In this embodiment, the step of reconstructing a clean shadow snapshot and determining the abnormal nature includes: when a data loading batch in the update source tracing chain with a quality index lower than the preset quality threshold has a corresponding pre-update shadow snapshot version, the shadow snapshot is rolled back to the pre-update shadow snapshot version of the data loading batch to obtain the clean shadow snapshot.
[0087] Specifically, when it is determined that the shadow snapshot is contaminated, a rollback method is first used for reconstruction: the most recent update record is located from the update source tracing chain, and the shadow snapshot version before that update, i.e., the pre-update shadow snapshot version, is retrieved. Since the data loading batch corresponding to this version did not participate in the statistical profile calculation, it is not contaminated. The shadow snapshot is rolled back to the pre-update shadow snapshot version, thus obtaining the clean shadow snapshot. The rollback method has low computational overhead and fast speed, making it the preferred method for clean baseline reconstruction.
[0088] When updating the source traceability chain to a version of the shadow snapshot before contamination, the statistical profile of the core indicator table is recalculated from upstream based on the data lineage graph to obtain the clean shadow snapshot.
[0089] Specifically, when there is no shadow snapshot version before contamination in the update source tracing chain, for example, when the shadow snapshot has been contaminated multiple times since its establishment, or when the number of versions before the update has exceeded the upper limit of storage, a clean baseline cannot be obtained by rollback. In this case, the upstream data table of the core indicator table is determined according to the data lineage graph, and extraction, cleaning and transformation are re-executed from the upstream data table to recalculate the statistical profile of the core indicator table and obtain the clean shadow snapshot. Thus, a reliable baseline can still be reconstructed in scenarios where there are no historical versions to roll back.
[0090] The number of rows, key field distribution, and bloodline input fingerprints of the clean shadow snapshot are compared with those of the current data snapshot item by item to obtain the data-side feature mutation results.
[0091] Specifically, the reconstructed clean shadow snapshot is compared with the current data snapshot for three data-side features: row number, key field distribution, and bloodline input fingerprint. The normalized difference is calculated for each feature and compared with the corresponding preset mutation threshold. The mutation of each data-side feature is recorded. All mutation determination results constitute the data-side feature mutation result.
[0092] When the mutation result of the data-side feature indicates that at least one feature has mutated, the abnormal nature is determined to be a data problem, and the link where the data table corresponding to the mutated feature is located is taken as the source link.
[0093] Specifically, when the mutation result of the data-side feature indicates that at least one data-side feature has mutated, it means that the statistical baseline of the core indicator table has been broken by the upstream data change. The abnormality is identified as a data problem, and the link in which the data table corresponding to the mutated data feature is located is determined according to the data lineage map. This link is taken as the source link.
[0094] When the data-side feature mutation results indicate that none of the features have mutated, the abnormal nature is determined to be a business problem.
[0095] Specifically, when the data-side feature mutation result indicates that none of the data-side features have mutated, it means that the data layer of the core indicator table has not changed but the indicator value has jumped. The nature of the anomaly is determined to be a business problem. The business problem indicates that the indicator anomaly is caused by a real business change. Subsequently, a business fluctuation signal is output without triggering recalculation.
[0096] In summary, this embodiment discloses two reconstruction methods for contaminated shadow snapshots and a data-side feature mutation discrimination process. The reconstruction strategy of prioritizing rollback and using lineage recalculation as a fallback ensures that a reliable clean baseline can be obtained in any scenario, thereby guaranteeing the accuracy of anomaly identification and source link location.
[0097] In this embodiment, the source location step includes: when multiple abnormal indicator signals are detected, obtaining the abnormal time stamp of each abnormal indicator signal, wherein the abnormal time stamp is the moment when the abnormal indicator is first detected.
[0098] Specifically, when an upstream data quality incident triggers multiple downstream indicators to malfunction sequentially, the monitoring and alarm service generates multiple indicator anomaly signals. In this case, a cascaded time-series propagation positioning method is used to locate the source link. First, the anomaly time stamp of each indicator anomaly signal is obtained. The anomaly time stamp is the moment when the indicator anomaly is first detected. The monitoring and alarm service records this and includes it in the indicator anomaly signal when it detects an indicator anomaly.
[0099] The lineage paths of the indicator tables corresponding to the abnormal signals of each indicator are sorted according to the abnormal time stamps.
[0100] Specifically, the lineage path of each indicator's abnormal signal is determined according to the data lineage map. The lineage path is the data dependency path from the upstream source to the indicator table. The corresponding lineage paths are sorted in order of the abnormal time stamp of each indicator's abnormal signal from earliest to latest, so that the lineage path corresponding to the first abnormal indicator is placed first.
[0101] The difference in the abnormal time stamps of adjacent abnormal indicator signals is calculated to determine the propagation of the abnormality along the data lineage from the earlier abnormal indicator to the later abnormal indicator.
[0102] Specifically, the difference in abnormal time stamps between two adjacent abnormal indicator signals after sorting is calculated using the following formula: in, For the first Abnormal time stamps of individual indicator abnormal signals For the first Abnormal time stamps of individual indicator abnormal signals This is the difference between adjacent abnormal time stamps. When If the abnormality occurs later than the abnormality of the previous indicator, and there is a bloodline dependency between the two indicators, it is determined that the abnormality propagates along the data bloodline map from the first abnormal indicator to the second abnormal indicator. That is, the first abnormal indicator is the source side of the propagation, and the second abnormal indicator is the downstream of the propagation.
[0103] The common links of each bloodline path are taken as common upstream links, and the intersection of the bloodline path with the first abnormal indicator and the common upstream links is taken as the candidate source link set.
[0104] Specifically, the common upstream link is the link that the lineage path of the abnormal signals of each indicator passes through. Since the true source of the cascading anomaly must be located upstream of all abnormal indicators, the intersection of the lineage path of the first abnormal indicator and the common upstream link is taken as the candidate source link set, thereby excluding links downstream of the first abnormal indicator and links that only some abnormal indicators pass through, thus narrowing the candidate source range.
[0105] The current statistical profile of each candidate source link is compared with its statistical profile in the clean shadow snapshot item by item to obtain the data-side feature mutation results of each candidate source link. The data-side features include the number of rows, the distribution of key fields, and the bloodline input fingerprint.
[0106] Specifically, the common upstream links may contain hotspot links that all indicators must pass through. These hotspot links are naturally located in the intersection even if no quality events occur, forming false common links. To filter out these false common links, for each candidate source link in the candidate source link set, the current statistical profile of that link is compared item by item with the statistical profile of that link in the shadow snapshot to obtain the data-side feature mutation results of that link. The data-side features include the number of rows, the distribution of key fields, and the lineage input fingerprint, to determine whether the data-side features of that link itself have actually undergone a mutation.
[0107] When the data-side feature mutation result indicates that none of the features have mutated, the link is removed from the candidate source link set; when the candidate source link set is not empty after removal, the candidate source link set is taken as the source link; when the candidate source link set is empty after removal, the upstream end link of the bloodline path of the first abnormal indicator is taken as the source link.
[0108] Specifically, when the data-side feature mutation result of a candidate source link indicates that none of the features have mutated, it means that the link itself has not experienced a data quality mutation. Its appearance in the common upstream is solely due to its status as a hotspot link, and this link is removed from the candidate source link set. After all candidate source links have been verified and removed, if the candidate source link set is not empty, the remaining candidate source link set is taken as the source link; if the candidate source link set is empty after removal, the upstream end link of the lineage path of the first abnormal indicator is taken as the source link. The source link is the upstream data link that actually triggered the cascading anomaly.
[0109] In summary, this embodiment infers the direction of anomaly propagation by sorting abnormal time stamps and adjacent time differences, locates the intersection of common upstream links and the lineage path of the first abnormal indicator, and filters out hotspot false common links by verifying data-side feature mutations. This achieves time-aware dynamic source localization and avoids the problem of static common ancestor attribution misjudging hotspot links as sources.
[0110] In this embodiment, the step of recalculating in batches according to the recalculation range includes: determining the smallest path set with the fewest data tables in the bloodline path to which the source link belongs, and using it as the first batch of data table set for recalculation.
[0111] Specifically, when recalculating in batches according to the recalculation range, the minimum path set with the fewest data tables in the lineage path to which the source link belongs is first determined. The minimum path set is the set of data tables that passes through the fewest data tables from the source link to the core indicator table. The minimum path set is used as the first batch of data table set to be recalculated. The minimum path set is an instance of the first batch of data table set to be recalculated indicated by the batch granularity. The data table set for subsequent batches of recalculation is jointly determined by the batch granularity and the expansion strategy, so that the first batch of recalculation prioritizes the restoration of the direct dependency path of the core indicator at the lowest cost.
[0112] Extraction, cleaning, and transformation are performed on the minimum path set to obtain the recalculation result. Statistical profiles of the unrecalculated data tables in the candidate recalculation range are obtained, and estimated data are derived based on the statistical profiles as placeholder data.
[0113] Specifically, the data table of the minimum path set is subjected to extraction, cleaning, and transformation processes to obtain the recalculation result. During the phased recalculation, the data tables that have not yet been recalculated in the candidate recalculation range are not temporarily included in the recalculation. In order to enable downstream calculations based on these unrecalculated data tables to continue, a statistical profile of the unrecalculated data tables in the shadow snapshot is obtained. Estimated data is derived based on the statistical profile. The estimated data is an approximate data of the data tables estimated based on the statistical profile. For example, a corresponding number of records are generated according to the number of rows in the statistical profile, and the records are randomly allocated in each value range according to the distribution of the key fields to obtain the estimated data. The estimated data is used as the placeholder data, which is used to temporarily replace the unrecalculated data tables in downstream calculations before the actual recalculation is completed.
[0114] Add placeholder tags to the placeholder data and record the downstream results of consuming the placeholder data and the corresponding lineage path.
[0115] Specifically, a placeholder mark is added to the placeholder data. The placeholder mark is a marker information that identifies the data as estimated placeholder data. At the same time, the downstream results that consume the placeholder data and the lineage path corresponding to the downstream results that consume the placeholder data are recorded. That is, it records which downstream calculation results used the placeholder data and the lineage path between these downstream results and the placeholder data, so as to provide a basis for subsequent traceability correction.
[0116] If the recalculation result fails verification, the next batch of recalculation range is extended along the data lineage map according to the expansion strategy until the verification passes.
[0117] Specifically, the recalculation results after each batch of recalculation is completed are verified. When the recalculation result fails the verification, the range of the next batch of recalculation is expanded along the data lineage map according to the expansion strategy. That is, the data table that has not yet been recalculated and is adjacent to the current recalculation path is selected from the candidate recalculation range and added to the next batch of recalculation. The recalculation and verification are repeated until the verification passes.
[0118] After the verification is passed, the data tables in the candidate recalculation range that have not yet been recalculated are recalculated. The corresponding placeholder data are replaced with the real data obtained from the recalculation. The downstream results are located according to the corresponding lineage path, and the retrospective correction of the downstream results is triggered.
[0119] Specifically, after the verification is passed, the data tables that have not yet been recalculated in the candidate recalculation range are recalculated along the data lineage map according to the expansion strategy until all data tables in the candidate recalculation range have been recalculated. The placeholder data is replaced with the real data obtained from the recalculation, and the downstream results that consumed the placeholder data are located according to the recorded lineage path of consuming the placeholder data. The traceability correction of the downstream results is triggered. The traceability correction is to recalculate the downstream results with the replaced real data, thereby blocking the spread of estimated value contamination along the lineage.
[0120] The retrospective correction involves recalculating the downstream results using the replaced real data.
[0121] Specifically, the retrospective correction is performed by re-executing the calculation process of the downstream results with the replaced real data, so that the downstream results are regenerated based on real data rather than estimated data, ensuring that the final released downstream indicators and reports are based on correct data and avoiding the propagation of distorted data along the lineage.
[0122] In summary, this embodiment employs a progressive recalculation mechanism that prioritizes the minimum path set, estimates data placeholders, performs batch-by-batch verification and expansion, and corrects placeholders by tracing their origin. This mechanism minimizes the cost of recalculation while ensuring its integrity. Furthermore, by using placeholder markers and consumption relationship records, it achieves full traceability of placeholder data, ensuring that distortion does not spread downstream along the lineage.
[0123] In this embodiment, when the anomaly is a business problem, the indicator anomaly signal is marked as a business fluctuation signal and output, and the business fluctuation signal indicates that the indicator anomaly signal is caused by a business change.
[0124] Specifically, when the anomaly is determined to be a business problem, the business problem indicates that the anomaly is caused by a real business change. In this case, no recalculation is triggered. The anomaly signal is marked as a business fluctuation signal and output. The business fluctuation signal is a signal that indicates the anomaly is caused by a business change. It is used to prompt the operation and maintenance personnel or downstream systems that the anomaly is a real fluctuation on the business side, and no data correction is required, thus avoiding unnecessary data recalculation for normal business fluctuations.
[0125] Once the anomaly is identified as a data problem and passes verification, the anomaly time stamp corresponding to the anomaly signal is obtained. The anomaly time stamp is the moment when the anomaly is first detected.
[0126] Specifically, when the anomaly is determined to be a data problem and the recalculation result is verified, it indicates that the anomaly has been corrected. At this time, the anomaly time stamp of the indicator anomaly signal is obtained. The anomaly time stamp is the moment when the indicator anomaly was first detected and is used to record the occurrence time information of this anomaly.
[0127] The abnormal indicator signal, the abnormal time stamp, the abnormal nature, the source link, and the recalculation range are encoded into a new historical abnormal fingerprint.
[0128] Specifically, the abnormal indicator signal, the abnormal time stamp, the abnormal nature, the source link, and the recalculation range of this abnormality handling process are encoded into numerical vectors to obtain the new historical abnormality fingerprint. The new historical abnormality fingerprint fully records the characteristics, discrimination results, and correction scheme of this abnormality, forming reusable processing experience.
[0129] The new historical abnormal fingerprints are written back to the historical abnormal fingerprint database, which is used to perform similarity matching on subsequently acquired indicator abnormal signals.
[0130] Specifically, the new historical anomaly fingerprints are written back to the historical anomaly fingerprint database, allowing fingerprints in the database to accumulate continuously. When new indicator anomaly signals are subsequently acquired, similarity matching is first performed in the historical anomaly fingerprint database. If an anomaly similar to the current anomaly appears later, the current judgment conclusion and recalculation range can be directly reused through fast screening. This achieves the self-evolution and accumulation of experience in "anomaly features - temporal propagation - attribution path - recalculation range", making the system more and more accurate with use.
[0131] In summary, this embodiment outputs business fluctuation signals through business problem branches, avoiding unnecessary recalculation of normal business fluctuations; by encoding and writing back the data problem handling experience into the historical anomaly fingerprint database, it achieves continuous accumulation and reuse of handling experience, forming a self-evolving closed loop of fast screening-deep investigation-writeback.
[0132] In other embodiments of this application, the simulation of the statistical state evolution can also be achieved through statistical extrapolation based on the recalculation effect of historical similar anomalies. Specifically, several historical anomaly fingerprints with the highest similarity to the current indicator anomaly signal are retrieved from the historical anomaly fingerprint database. The recovery time and recalculation cost after actual recalculation in the historical events corresponding to each historical anomaly fingerprint are extracted. The recovery time and recalculation cost are weighted and averaged to obtain an estimate of the simulation recovery time and simulation cost for the current candidate recalculation range. The estimate is then corrected by combining the statistical profile of the clean shadow snapshot to generate the simulation recovery curve and the simulation cost. Compared with the extrapolation method based on the statistical profile evolution model, the method based on historical statistical extrapolation has lower computational overhead and faster extrapolation speed when there are sufficient historical samples, and is suitable for scenarios with abundant historical anomaly samples. However, when historical samples are sparse, the extrapolation method based on the statistical profile evolution model is more reliable. The two methods can complement each other, and can be dynamically selected according to the number of historical samples in practical applications.
[0133] In other embodiments of this application, the reinforcement learning model can also be implemented using an Actor-Critic architecture. Specifically, the reinforcement learning model includes an Actor network and a Critic network. The Actor network outputs the batch granularity and the extended policy, while the Critic network evaluates the value of the current state. The Critic network takes the state components as input and outputs a state value estimate, which is used to reduce the variance of policy gradient updates. Compared to hierarchical policy network architectures, the Actor-Critic architecture, by introducing a value evaluation network, can update policy parameters more stably during training, making it suitable for scenarios with high state component dimensionality and high reward signal noise.
[0134] In other embodiments of this application, the quality status can also be determined by the lineage-weighted quality values of each data table. Specifically, the quality status of each data table is determined not only by its own extraction completeness rate, cleaning and rejection rate, and transformation verification pass rate, but also by weighting it according to its hierarchical position in the lineage path. The closer the data table is to the core indicator table, the higher its quality status weight. This highlights the quality level of data tables that have a greater impact on the core indicators in the status components, further improving the accuracy of recalculation range decisions.
[0135] In other embodiments of this application, the verification of common anomalies in the cascaded temporal propagation localization can also be implemented using a lineage input fingerprint comparison method. Specifically, for each candidate source link in the candidate source link set, the current lineage input fingerprint of that link is compared with the lineage input fingerprint of that link in the clean shadow snapshot. When the two match, it is determined that the input of that link has not changed, and it is removed from the candidate source link set; when the two do not match, the candidate status of that link is retained. By hashing the lineage input fingerprint, it is possible to quickly and accurately determine whether the link input has undergone substantial changes, serving as a supplement or alternative to data-side feature mutation verification.
[0136] The above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. An adaptive correction method for outlier data based on reinforcement learning, characterized in that, include: Obtain abnormal indicator signals, data lineage graphs, shadow snapshots, and current data snapshots. The shadow snapshots include a statistical profile of the core indicator table and a traceability chain of update sources. The updated source traceability chain records the data loading batch identifier and quality indicators that trigger the shadow snapshot update; If the data loading batch recorded in the update source traceability chain has a quality index lower than the preset quality threshold, the shadow snapshot is determined to be contaminated and a clean shadow snapshot is reconstructed; if there is no data loading batch with a quality index lower than the preset quality threshold in the update source traceability chain, the shadow snapshot is used as the clean shadow snapshot. The clean shadow snapshot is compared with the current data snapshot to determine whether the abnormal nature of the indicator signal is a data problem or a business problem, and to locate the source link; when the abnormal nature is a business problem, the indicator signal is marked as a business fluctuation signal and output. When the anomaly is a data problem, based on the statistical profile of the clean shadow snapshot, the statistical state evolution of the core indicator table after recalculation according to each candidate recalculation range is simulated, and a simulation recovery curve and simulation cost are generated. The candidate recalculation range is a set of candidate data tables for recalculating the data tables on the lineage path to which the source link belongs. Using the abnormal indicator signal, the source link, the simulation recovery curve and the simulation cost as state components, the recalculation range is determined by the reinforcement learning model. The recalculation range includes batch granularity and expansion strategy. Recalculate in batches according to the recalculation range. After each batch of recalculation is completed, compare the statistical profile of the core indicator table after recalculation with the clean shadow snapshot to verify the recalculation result. If it fails, expand the recalculation range of the next batch along the data lineage map according to the expansion strategy until the verification is passed and the corrected data is obtained.
2. The method according to claim 1, characterized in that, The reinforcement learning model includes a high-level policy network and a low-level policy network; The high-level policy network takes the state component as input and outputs the expansion policy. The action space of the expansion policy includes whether to continue expansion and the number of batches for each expansion. The low-level policy network takes the state components and the extended policy as inputs and outputs the batch granularity, which indicates the selection of a subset of data tables for this batch of recalculation from the candidate recalculation range. The state component also includes the quality status of each data table on the lineage path, and the quality status is determined by the extraction integrity rate, the cleaning and rejection rate and the conversion verification pass rate. The state component also includes historical anomaly fingerprints, which are encoded by anomaly features, anomaly properties, source links, and recalculation ranges. The recalculation range is generated based on the batch granularity and the expansion strategy, indicating the set of data tables to be recalculated in each batch and the expansion order between batches.
3. The method according to claim 2, characterized in that, The training rewards for the reinforcement learning model include immediate rewards and delayed rewards; The instant reward is determined by weighting the normalized simulation recovery time and simulation cost corresponding to the simulation recovery curve. The simulation recovery time is the time required for the core indicator table statistical profile indicated by the simulation recovery curve to recover to a stable state. After the recalculation result is verified, the actual recovery time and the actual recalculation cost are obtained. The actual recovery time is the time taken to restore the core indicator table to stability after recalculation, and the actual recalculation cost is determined according to the number of recalculated data tables and the resources occupied. The deviation between the simulated recovery time indicated by the simulated recovery curve and the actual recovery time is calculated to obtain the simulation verification consistency. The simulation verification consistency, the normalized actual recovery time, and the actual recalculation cost are used as the delay reward. The policy parameters of the higher-level policy network are updated according to the delayed reward, while the policy parameters of the lower-level policy network are updated according to the immediate reward.
4. The method according to claim 1, characterized in that, Before determining the anomalous nature, the method further includes: The abnormal indicator signal is matched with the historical abnormal fingerprint in the historical abnormal fingerprint database to obtain the fingerprint matching result. The historical abnormal fingerprint is encoded by abnormal features, abnormal nature, source link and recalculation range. When the fingerprint matching result indicates that the similarity between the indicator abnormal signal and the historical abnormal fingerprint is not lower than a preset similarity threshold, the historical abnormal fingerprint with the highest similarity is determined as the matching fingerprint. Skip the steps of identifying the abnormal nature and locating the source, determine the abnormal nature in the matching fingerprint as the abnormal nature, and take the source link in the matching fingerprint as the source link; when the abnormal nature is a data problem, check the update source tracing chain to determine whether the shadow snapshot is contaminated. If it is contaminated, rebuild a clean shadow snapshot, and then determine the data table to be recalculated according to its recalculation range. The data table to be recalculated is recalculated and verified in batches. If the verification fails, the next batch of recalculation range is extended along the data lineage map according to the extension strategy indicated by the recalculation range in the matching fingerprint, until the verification passes. When the fingerprint matching result indicates that the similarity between the indicator abnormal signal and the historical abnormal fingerprint is lower than a preset similarity threshold, the abnormality determination and subsequent steps are executed.
5. The method according to claim 1, characterized in that, The simulation of the statistical state evolution includes: Obtain the candidate batches corresponding to each candidate recalculation range. The candidate batches are subsets of data tables that can be selected for recalculation in the data table set on the bloodline path to which the source link belongs. Using the statistical profile of the clean shadow snapshot as the initial state, the changes in the statistical profile of the core indicator table after the candidate batch is extracted, cleaned and transformed are simulated to obtain the statistical state evolution sequence. The simulation recovery curve and the simulation cost are generated based on the statistical state evolution sequence. The simulation recovery curve indicates the change in the difference between the statistical profile of the core indicator table and the clean shadow snapshot over time, and the simulation cost is determined based on the number of data tables in the candidate batch and the computing resources occupied by the simulation. After the recalculation result is verified, the simulation recovery curve and simulation cost are verified with the actual recovery time and the actual recalculation cost to obtain the simulation error. The simulation parameters of the statistical state evolution are then updated according to the simulation error.
6. The method according to claim 1, characterized in that, The method also includes maintaining the shadow snapshot, the maintenance including: The shadow snapshot includes a statistical profile corresponding to each data table. The statistical profile includes the number of rows, the distribution of key fields, and the bloodline input fingerprint. The bloodline input fingerprint is a hash digest of the bloodline input data. The current statistical profile of the core indicator table is obtained at a preset period, and the current statistical profile is compared with the shadow snapshot. When the difference is less than a preset difference threshold, the shadow snapshot is updated with the current statistical profile. Record the batch identifier and quality index of the data loading that triggered this update, and save the batch identifier and quality index of the data loading corresponding to the most recent preset number of updates and the shadow snapshot version before the update in chronological order to form the update source traceability chain.
7. The method according to claim 6, characterized in that, The process of reconstructing a clean shadow snapshot and determining the anomalous properties includes: When a data loading batch in the update source tracing chain with a quality index lower than the preset quality threshold has a corresponding pre-update shadow snapshot version, the shadow snapshot is rolled back to the pre-update shadow snapshot version of that data loading batch to obtain the clean shadow snapshot. When updating the source traceability chain to a version of the shadow snapshot before contamination, the statistical profile of the core indicator table is recalculated from upstream based on the data lineage graph to obtain the clean shadow snapshot; The number of rows, distribution of key fields, and bloodline input fingerprints of the clean shadow snapshot are compared with those of the current data snapshot item by item to obtain the data-side feature mutation results; When the data-side feature mutation result indicates that at least one feature has mutated, the abnormal nature is determined to be a data problem, and the link where the data table corresponding to the mutated feature is located is taken as the source link. When the data-side feature mutation results indicate that none of the features have mutated, the abnormal nature is determined to be a business problem.
8. The method according to claim 7, characterized in that, The source location process includes: When multiple abnormal indicator signals are detected, the abnormal time stamp of each signal is obtained, and the abnormal time stamp is the time when the indicator abnormality is first detected. The lineage paths of the indicator tables corresponding to the abnormal signals of each indicator are sorted according to the abnormal time stamps. Calculate the difference in abnormal time stamps between adjacent abnormal signals to determine the propagation of the abnormality along the data lineage from the earlier abnormal indicator to the later abnormal indicator. The common links of each bloodline path are taken as the common upstream links, and the intersection of the bloodline path with the first abnormal indicator and the common upstream links is taken as the candidate source link set. The current statistical profile of each candidate source link is compared with its statistical profile in the clean shadow snapshot item by item to obtain the data-side feature mutation results of each candidate source link. The data-side features include the number of rows, the distribution of key fields and the bloodline input fingerprint. When the data-side feature mutation result indicates that none of the features have mutated, the link is removed from the candidate source link set; when the candidate source link set is not empty after removal, the candidate source link set is taken as the source link; when the candidate source link set is empty after removal, the upstream end link of the bloodline path of the first abnormal indicator is taken as the source link.
9. The method according to claim 1, characterized in that, The recalculation in batches according to the recalculation range includes: The minimum set of data tables with the fewest data tables in the bloodline path to which the source link belongs is determined, and this minimum set of data tables with the fewest data tables in the bloodline path to which the source link belongs is used as the first batch of data table set to be recalculated. The batch granularity indicates the subset of data tables to be recalculated in subsequent batches. Extraction, cleaning and transformation are performed on the minimum path set to obtain the recalculation result. The statistical profile of the unrecalculated data table in the candidate recalculation range is obtained. The estimated data is derived based on the statistical profile as placeholder data. Add placeholder tags to the placeholder data and record the downstream results of consuming the placeholder data and the corresponding lineage path; If the recalculation result fails the verification, the next batch of recalculation range is extended along the data lineage map according to the expansion strategy until the verification passes. After the verification is passed, the data tables in the candidate recalculation range that have not yet been recalculated are recalculated. The corresponding placeholder data are replaced with the real data obtained from the recalculation. The downstream results are located according to the corresponding bloodline path, and the retrospective correction of the downstream results is triggered. The retrospective correction involves recalculating the downstream results using the replaced real data.
10. The method according to claim 4, characterized in that, include: When the anomaly is a business issue, the abnormal indicator signal is marked as a business fluctuation signal and output. The business fluctuation signal indicates that the abnormal indicator signal is caused by a business change. Once the anomaly is identified as a data problem and passes verification, the anomaly time stamp corresponding to the anomaly signal is obtained. The anomaly time stamp is the moment when the anomaly is first detected. The abnormal indicator signal, the abnormal time stamp, the abnormal nature, the source link, and the recalculation range are encoded into a new historical abnormal fingerprint; The new historical abnormal fingerprints are written back to the historical abnormal fingerprint database, which is used to perform similarity matching on subsequently acquired indicator abnormal signals.
