A method, device and equipment for evaluating traceability data
By generating traceability adjacency matrices and recording weight vectors, the authority of data is automatically evaluated, which solves the problem in the existing technology of being unable to evaluate the authority of upstream data in the data generation process, and achieves global authoritative assessment of data and different granularity assessment capabilities. .
Patent Information
- Application Number
- CN202410803701.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2044-06-20
AI Technical Summary
In the existing technology, the data lineage method is limited to basic data conversion operations and does not involve complex data analysis operations. The traceability method is limited to providing visual means to assist users in manual tracing. It cannot evaluate the authority of the upstream data in the data generation process, resulting in the inability to discover high-level data. Authoritative data.
By generating a traceability adjacency matrix, performing a normalization operation, determining the record weight vector, conducting data authoritative assessment based on this information, and realizing automatic analysis and output of authoritative assessment results.
Without manual participation, it automatically performs statistics and calculations on the global upstream traceability relationship of data, supports data-level and record-level authoritative assessment, and realizes data authoritative assessment capabilities at different granularities to meet the needs of different scenarios.
Smart Images

Figure CN118378006B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method, device and equipment for evaluating traceability data. Background Art
[0002] In the field of data processing, due to the huge volume of data and the sparseness of valuable information, the data processing and analysis process is usually complicated, involving various levels of original access, intermediate processing and final output results. In the results, there are usually some high-value and high-authority data, which directly affects the credibility of the entire data processing and analysis results. Therefore, how to discover high-value and high-authority data has become an important task in the field of data processing and analysis.
[0003] In the prior art, data lineage methods are limited to basic data conversion operations and do not involve complex data analysis operations. The traceability method is limited to providing visualization means to assist users in manual tracing. Therefore, it is impossible to evaluate the authority of upstream data in the data generation process based on the traceability information obtained by the lineage method, and it is impossible to discover highly authoritative data and / or highly authoritative records. Therefore, it does not have the ability to evaluate the authority of data.
[0004] Based on this, a method for evaluating traceability data is needed. Summary of the invention
[0005] The embodiments of this specification provide a method, device and equipment for evaluating traceability data, which are used to solve the following technical problems: In the prior art, the data lineage method is limited to basic data conversion operations and does not involve complex data analysis operations. The traceability method is limited to providing visualization means to assist users in manual tracing. Therefore, it is impossible to evaluate the authority of upstream data in the data generation process based on the traceability information obtained by the lineage method, and it is impossible to discover highly authoritative data (records). Therefore, it does not have the ability to evaluate the authority of the data.
[0006] To solve the above technical problems, the embodiments of this specification are implemented as follows:
[0007] This embodiment of the specification provides a method for evaluating traceability data, including:
[0008] Generate a traceability adjacency matrix based on the traceability record information of the data to be evaluated;
[0009] Performing a normalization operation on the traceability adjacency matrix to generate a normalized traceability adjacency matrix;
[0010] Based on the normalized traceability adjacency matrix, determine the weight vector of each record of the data to be evaluated to obtain a record weight vector;
[0011] Based on the traceability adjacency matrix and the record weight vector, performing record-level data authority evaluation on the data to be evaluated;
[0012] and / or
[0013] Based on the data volume information of the data to be evaluated and the record weight vector, a data authority evaluation is performed on the data to be evaluated at a data level.
[0014] The embodiment of this specification also provides a traceability data evaluation device, including:
[0015] A traceability adjacency matrix generation module generates a traceability adjacency matrix based on the traceability record information of the data to be evaluated;
[0016] A normalization module performs a normalization operation on the traceability adjacency matrix to generate a normalized traceability adjacency matrix;
[0017] A record weight vector generation module determines the weight vector of each record of the data to be evaluated based on the normalized traceability adjacency matrix to obtain a record weight vector;
[0018] An evaluation module, which performs a record-level data authority evaluation on the data to be evaluated based on the traceability adjacency matrix and the record weight vector;
[0019] and / or
[0020] Based on the data volume information of the data to be evaluated and the record weight vector, a data authority evaluation is performed on the data to be evaluated at a data level.
[0021] The embodiment of the present specification also provides an electronic device, including:
[0022] at least one processor; and,
[0023] a memory communicatively connected to the at least one processor; wherein,
[0024] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
[0025] Generate a traceability adjacency matrix based on the traceability record information of the data to be evaluated;
[0026] Performing a normalization operation on the traceability adjacency matrix to generate a normalized traceability adjacency matrix;
[0027] Based on the normalized traceability adjacency matrix, determine the weight vector of each record of the data to be evaluated to obtain a record weight vector;
[0028] Based on the traceability adjacency matrix and the record weight vector, performing record-level data authority evaluation on the data to be evaluated;
[0029] and / or
[0030] Based on the data volume information of the data to be evaluated and the record weight vector, a data authority evaluation is performed on the data to be evaluated at a data level.
[0031] The method for evaluating traceability data provided in the embodiments of this specification generates a traceability adjacency matrix based on the traceability record information of the data to be evaluated; performs a normalization operation on the traceability adjacency matrix to generate a normalized traceability adjacency matrix; determines the weight vector of each record of the data to be evaluated based on the normalized traceability adjacency matrix to obtain a record weight vector; performs a record-level data authority evaluation on the data to be evaluated based on the traceability adjacency matrix and the record weight vector; and / or performs a data-level data authority evaluation on the data to be evaluated based on the data body information of the data to be evaluated and the record weight vector, without manual participation, automatically performs statistics and calculations on the global upstream traceability relationship of the data, and automatically produces a data authority evaluation result based on sorting for user reference, thereby achieving the purpose of automatically analyzing and outputting the authority evaluation result; supports two data authority evaluation capabilities at the data level and the record level, the former supports coarse-grained data such as files / library tables, and the latter supports fine-grained data such as result records, thereby achieving data authority evaluation capabilities of different granularities to meet the needs of different scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0033] Figure 1 A schematic diagram of the system architecture of a method for evaluating traceability data provided in an embodiment of this specification;
[0034] Figure 2 A flowchart of a method for evaluating traceability data provided in an embodiment of this specification;
[0035] Figure 3 A schematic diagram of a traceability adjacency matrix provided in an embodiment of this specification;
[0036] Figure 4 A schematic diagram of a normalized traceability adjacency matrix provided in an embodiment of this specification;
[0037] Figure 5 A framework diagram of a method for evaluating traceability data provided in an embodiment of this specification;
[0038] Figure 6 A schematic diagram of a traceability data evaluation device provided in an embodiment of this specification. DETAILED DESCRIPTION
[0039] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.
[0040] Figure 1 A schematic diagram of the system architecture of a data traceability evaluation method provided in an embodiment of this specification. Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0041] The terminal devices 101, 102, 103 interact with the server 105 via the network 104 to receive or send messages, etc. Various client applications may be installed on the terminal devices 101, 102, 103, such as dedicated programs for evaluating methods for data tracing.
[0042] The terminal devices 101, 102, 103 may be hardware or software. When the terminal devices 101, 102, 103 are hardware, they may be various dedicated or general electronic devices, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, etc. When the terminal devices 101, 102, 103 are software, they may be installed in the electronic devices listed above. They may be implemented as multiple software or software modules (e.g., multiple software or software modules for providing distributed services), or they may be implemented as a single software or software module.
[0043] The server 105 may be a server that provides various services, such as a backend server that provides services for client applications installed on the terminal devices 101, 102, and 103. For example, the server may perform data traceability assessment so that the data traceability assessment result is displayed on the terminal device server 101, 102, and 103, and the server may also perform data traceability-based assessment so that the data traceability assessment result is displayed on the terminal devices 101, 102, and 103.
[0044] The server 105 may be hardware or software. When the server 105 is hardware, it may be implemented as a distributed server cluster consisting of multiple servers, or as a single server. When the server 105 is software, it may be implemented as multiple software or software modules (e.g., multiple software or software modules for providing distributed services), or as a single software or software module.
[0045] Figure 2 The following is a flow chart of a data traceability evaluation method provided in the embodiment of this specification. From the program perspective, the execution subject of the process can be a program installed on an application server or application terminal. It can be understood that the method can be executed by any device, equipment, platform, or device cluster with computing and processing capabilities. Figure 2 As shown, the evaluation method includes:
[0046] Step S201: Generate a traceability adjacency matrix based on the traceability record information of the data to be evaluated.
[0047] In the embodiments of the present specification, the data to be evaluated is numerical data, text data, or data that can be converted into numerical data or text data. The data to be evaluated is data that needs to be evaluated.
[0048] In the embodiments of this specification, the data to be evaluated is data including traceability record information and data body information, which is data generated during the data analysis and processing process. In the data to be evaluated, there is a traceability relationship between data and data, and there is a traceability relationship between records and records.
[0049] In the embodiments of this specification, the traceability record information RecordTrace is used to describe the traceability relationship between records in the data processing process. The traceability record information includes the unique identifier of the traceability record information, the parent traceability record identifier of the traceability record information, and the number of records of the direct upstream traceability record of the traceability record information.
[0050] In the embodiment of this specification, assuming that downstream record A comes from upstream records B and C, RecordTrace is defined as:
[0051] RecordTrace= <ID1,A,<B,num1> ,<C,num2> >, where:
[0052] ID1: The unique identifier of this traceability record information;
[0053] A: traceability root record A identifier;
[0054] <B,num1> : The upstream traceability record B identifier and the number of all records with B as the direct upstream num1;
[0055] <C,num2> : The upstream traceability record C identifier and the number of all records with C as the direct upstream num2;
[0056] In the embodiments of this specification, the data body information DataTrace is used to describe the specific records contained in a certain data. The data body information includes the unique identifier of the data body information, data W, the number of record entries contained in the data to be processed, and the identifier of the direct upstream traceability record contained in the data W that records the traceability record information.
[0057] In the embodiment of this specification, assuming that data W includes records B and C, DataTrace is defined as:
[0058] DataTrace= <ID2,W,num3,<B,C> >, where:
[0059] ID2: The unique identifier of this data body information;
[0060] W: data W identifier;
[0061] num3: the number of record entries contained in the data W;
[0062] <B,C> : Data W contains record B identifier and record C identifier.
[0063] In the embodiment of this specification, the traceability adjacency matrix is an n*n matrix, and the traceability adjacency matrix is used to represent the number of all records directly upstream of a record represented by each element, and n is the total number of all records corresponding to the data to be evaluated.
[0064] In order to further understand the traceability adjacency matrix provided in the embodiments of this specification, Figure 3 This is a schematic diagram of the traceability adjacency matrix provided in the embodiments of this specification. Figure 3 As shown, according to the traceability record information of the data to be evaluated, the total number n of all records in the traceability record information is determined, and then an n*n traceability adjacency matrix is generated. In the traceability adjacency matrix, each element in the matrix identifies the number of all records directly upstream of a certain record.
[0065] Step S203: Normalize the traceability adjacency matrix to generate a normalized traceability adjacency matrix.
[0066] In the embodiments of this specification, the operation of normalizing the traceability adjacency matrix to generate a normalized traceability adjacency matrix specifically includes:
[0067] Normalize each column of the traceability adjacency matrix so that the total probability is 1 to generate the normalized traceability adjacency matrix.
[0068] Figure 4 For understanding the normalized traceability adjacency matrix further, the following is a schematic diagram of the normalized traceability adjacency matrix provided in the embodiments of this specification. As Figure 4 shown, according to Figure 3 the traceability adjacency matrix, perform normalization operation according to the total probability of 1 for each column to obtain the normalized traceability adjacency matrix.
[0069] Step S205: Based on the normalized traceability adjacency matrix, determine the weight vectors of each record of the data to be evaluated to obtain record weight vectors.
[0070] In the embodiments of this specification, the operation of determining the weight vectors of each record of the data to be evaluated based on the normalized traceability adjacency matrix specifically includes:
[0071] Based on the normalized traceability adjacency matrix, use the PageRank algorithm to calculate the weight vectors of each record of the data to be evaluated;
[0072] The calculation formula of the PageRank algorithm is:
[0073] R i =pM’R i-1 +[(1-p) / n]*E;
[0074] where R i is the updated weight vector, R i-1 is the weight vector before update, p is the damping coefficient, and the convergence condition of the PageRank algorithm is |R i -R i-1 |<L, L is the convergence threshold, and E is the identity matrix.
[0075] Since the PageRank algorithm is an algorithm for ranking web pages based on links, in the embodiments of this specification, the weight vectors of records are determined through the PageRank algorithm. In a specific embodiment, the value of p is in the range of [0.8, 1.0], the default value is 0.9, and the default value of L is 0.5.
[0076] In the embodiment of this specification, the recorded weight vector R=[x1,x2,…,x n ], x i Represents the weight value of record i;
[0077] Step S207: Based on the traceability adjacency matrix and the record weight vector, perform record-level data authority evaluation on the data to be evaluated;
[0078] and / or
[0079] Based on the data volume information of the data to be evaluated and the record weight vector, a data authority evaluation is performed on the data to be evaluated at a data level.
[0080] In the embodiment of the present specification, the authority evaluation of the data to be evaluated includes the data authority evaluation at the record level and the data authority evaluation at the data level, and the data authority evaluation at the data level includes: the average authority evaluation at the data level and the potential authority evaluation at the data level.
[0081] In the embodiment of this specification, the data authority evaluation of the to-be-evaluated data at the record level based on the traceability adjacency matrix and the record weight vector specifically includes:
[0082] Based on the traceability adjacency matrix, determine the number of all records directly downstream of each record in the sequence Q to form a fusion sequence Q', where the sequence Q is obtained by sorting the record weight vectors;
[0083] The fused sequence Q' is used as the record-level data authority evaluation of the data to be evaluated.
[0084] In the embodiment of the present specification, the sequence Q can be obtained by recording the x in the weight vector R i Sort by largest to smallest order.
[0085] In the embodiment of the present specification, the data authority evaluation of the data to be evaluated at the data level based on the data volume information of the data to be evaluated and the record weight vector specifically includes:
[0086] Determine an average authority value of data W in the data volume information of the data to be evaluated based on the data volume information of the data to be evaluated and the record weight vector;
[0087] Sorting the average authority values to obtain a sequence T;
[0088] The sequence T is segmented evenly according to the segmentation coefficient, and the data weight values in the average segment are uniformly valued to form a sequence T', and the sequence T' is the average authoritative evaluation result of the data level of the data to be evaluated;
[0089] or
[0090] Based on the data volume information of the data to be evaluated, determine data W in the data volume information of the data to be evaluated;
[0091] Determine the number of all records in TOP-K1 in the data W as f1, and the number of all records with a weight value of 0 as f2;
[0092] Determine f based on f1 and f2 to form a sequence S;
[0093] The sequence S is segmented evenly according to the segmentation coefficients, and the data weight values in the average segments are uniformly valued to form a sequence S', and the sequence S' is a potential authoritative evaluation result of the data level of the data to be evaluated.
[0094] In the embodiments of this specification, the value of TOP-K1 may be determined according to a specific business scenario. The default value of TOP-K1 may be 100, which may be adjusted according to the business scenario.
[0095] It should be noted that in a specific embodiment, f1 may not exist. The larger the value of f1, the stronger the authority of the record. f2 may be empty, but in the embodiments of this specification, both f1 and f2 cannot be empty when performing potential authority evaluation, because if f1 and / or f2 are empty, it means that the data does not have potential authority.
[0096] In the embodiment of the present specification, determining the average authority value of data W in the data volume information of the data to be evaluated based on the data volume information of the data to be evaluated and the record weight vector specifically includes:
[0097] Based on the data volume information of the data to be evaluated and the record weight vector, the weight values corresponding to all records in the data W are determined and summed, and the sum is divided by the number of record entries contained in the data W to determine the average authority value of the data W in the data volume information of the data to be evaluated.
[0098] In the embodiment of the present specification, the sequence T is segmented evenly according to the segmentation coefficient, and the data weight values in the average segment are uniformly valued to form a sequence T', which specifically includes:
[0099] The sequence T is segmented evenly according to the segmentation coefficient, and the data weight value in each segment of each segment is uniformly set to 10*(kj), so as to form the sequence T';
[0100] in,
[0101] k is the segmentation coefficient, and j is the number of segments obtained by averaging segmenting the sequence T according to the segmentation coefficient.
[0102] In the embodiment of this specification, determining f based on f1 and f2 to form a sequence S specifically includes:
[0103] f=(f1*(f1+f2)) / num3;
[0104] According to f, all the data in the data W are sorted in descending order to form the sequence S;
[0105] The sequence S is segmented evenly according to the segmentation coefficients, and the data weight values in the average segments are uniformly valued to form a sequence S', which specifically includes:
[0106] The sequence S is segmented evenly according to the segmentation coefficients, and the data weight value in each segment of each segment is uniformly taken as 10*(kj), so as to form the sequence S';
[0107] in,
[0108] k is the segmentation coefficient, and j is the number of segments obtained by averaging segmenting the sequence T according to the segmentation coefficient.
[0109] In the embodiment of this specification, the default value of k is 10.
[0110] In order to further understand the data traceability evaluation method provided in the embodiments of this specification, it will be further explained below.
[0111] Figure 5 This is a framework diagram of a method for evaluating traceability data provided in an embodiment of this specification. Figure 5 As shown, a traceability adjacency matrix M is generated according to the traceability record information RecordTrace; the traceability adjacency matrix M is then normalized to generate a normalized traceability adjacency matrix M'; the weight vector R of each record is calculated using the PageRank algorithm; the data authority at the record level is evaluated and output based on R, or the data authority at the data level is evaluated and output based on R. Specifically, the evaluation of the data authority at the data level includes: evaluating the average authority at the data level and evaluating the potential authority at the data level.
[0112] The data traceability evaluation method provided in the embodiments of this specification does not require human intervention, automatically counts and calculates the global upstream traceability relationship of the data, and automatically produces sorting-based data authority evaluation results for user reference, thereby achieving the purpose of automatically analyzing and outputting authoritative evaluation results; it supports two data authority evaluation capabilities, data level and record level. The former supports coarse-grained data such as files / library tables, and the latter supports fine-grained data such as result records, thereby achieving data authority evaluation capabilities of different granularities to meet the needs of different scenarios.
[0113] The above content describes in detail a data traceability evaluation method. Correspondingly, this specification also provides a data traceability evaluation device, such as Figure 6 shown. Figure 6 A schematic diagram of a traceability evaluation device is provided for an embodiment of this specification, and the evaluation device includes:
[0114] A traceability adjacency matrix generation module 601 generates a traceability adjacency matrix based on the traceability record information of the data to be evaluated;
[0115] A normalization module 603 performs a normalization operation on the traceability adjacency matrix to generate a normalized traceability adjacency matrix;
[0116] A record weight vector generating module 605 determines the weight vector of each record of the data to be evaluated based on the normalized traceability adjacency matrix to obtain a record weight vector;
[0117] An evaluation module 607 performs a record-level data authority evaluation on the data to be evaluated based on the traceability adjacency matrix and the record weight vector;
[0118] and / or
[0119] Based on the data volume information of the data to be evaluated and the record weight vector, a data authority evaluation is performed on the data to be evaluated at a data level.
[0120] The embodiment of the present specification also provides an electronic device, including:
[0121] at least one processor; and,
[0122] a memory communicatively connected to the at least one processor; wherein,
[0123] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
[0124] Generate a traceability adjacency matrix based on the traceability record information of the data to be evaluated;
[0125] Performing a normalization operation on the traceability adjacency matrix to generate a normalized traceability adjacency matrix;
[0126] Based on the normalized traceability adjacency matrix, determine the weight vector of each record of the data to be evaluated to obtain a record weight vector;
[0127] Based on the traceability adjacency matrix and the record weight vector, performing record-level data authority evaluation on the data to be evaluated;
[0128] and / or
[0129] Based on the data volume information of the data to be evaluated and the record weight vector, a data authority evaluation is performed on the data to be evaluated at a data level.
[0130] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0131] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, electronic device, and non-volatile computer storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0132] The apparatus, electronic device, non-volatile computer storage medium and method provided in the embodiments of this specification correspond to each other, and therefore, the apparatus, electronic device and non-volatile computer storage medium also have similar beneficial technical effects as the corresponding method. Since the beneficial technical effects of the method have been described in detail above, the beneficial technical effects of the corresponding apparatus, electronic device and non-volatile computer storage medium will not be repeated here.
[0133] In the 1990s, it was very clear whether the improvement of a technology was hardware improvement (for example, improvement of the circuit structure of diodes, transistors, switches, etc.) or software improvement (improvement of the method flow). However, with the development of technology, many improvements of the method flow today can be regarded as direct improvements of the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be implemented with hardware entity modules. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask chip manufacturers to design and make dedicated integrated circuit chips. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one kind of HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.
[0134] The controller may be implemented in any suitable manner, for example, the controller may take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (e.g., software or firmware) executable by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include but are not limited to the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, and the memory controller may also be implemented as part of the control logic of the memory. It is also known to those skilled in the art that, in addition to implementing the controller in a purely computer-readable program code manner, the controller may be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, such a controller may be considered as a hardware component, and the devices for implementing various functions included therein may also be considered as structures within the hardware component. Or even, the devices for implementing various functions may be considered as both software modules for implementing the method and structures within the hardware component.
[0135] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0136] For the convenience of description, the above devices are described in terms of functions and are divided into various units. Of course, when implementing one or more embodiments of this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0137] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, the embodiments of this specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0138] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0139] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0140] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0141] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0142] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0143] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0144] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0145] The specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media including storage devices.
[0146] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0147] The above is only an embodiment of this specification and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A method for evaluating provenance data, It is characterized in that The evaluation methods include: Based on the traceability record information of the data to be evaluated, a traceability adjacency matrix is generated, where the traceability adjacency matrix is an n*n matrix, and the traceability adjacency matrix is used to represent the number of all records directly upstream of a record represented by each element, where n is the total number of all records corresponding to the data to be evaluated; Performing a normalization operation on the traceability adjacency matrix to generate a normalized traceability adjacency matrix; Based on the normalized traceability adjacency matrix, determine the weight vectors of each record of the data to be evaluated to obtain the record weight vectors, specifically including: based on the normalized traceability adjacency matrix, use the PageRank algorithm to calculate the weight vectors of each record of the data to be evaluated; the calculation formula of the PageRank algorithm is: R i =pM’R i-1 +[(1-p) / n]*E; where, R i is the updated weight vector, R i-1 is the weight vector before update, p is the damping coefficient, and the convergence condition of the PageRank algorithm is |R i -R i-1 |<L, L is the convergence threshold, M’ is the normalized traceability adjacency matrix, and n is the total number of all records corresponding to the data to be evaluated; Based on the traceability adjacency matrix and the record weight vector, the data authority evaluation of the data to be evaluated at the record level is performed, specifically including: based on the traceability adjacency matrix, determining the number of all records directly downstream of each record in the sequence Q to form a fused sequence Q', wherein the sequence Q is obtained by sorting the record weight vector; and using the fused sequence Q' as the data authority evaluation of the data to be evaluated at the record level; and / or Based on the data body information of the data to be evaluated and the record weight vector, a data-level data authority evaluation is performed on the data to be evaluated, specifically including: determining the average authority value of the data W in the data body information of the data to be evaluated based on the data body information of the data to be evaluated and the record weight vector; sorting the average authority value to obtain a sequence T; evenly segmenting the sequence T according to the segmentation coefficient, and uniformly taking the data weight values in the average segment to form a sequence T', wherein the sequence T' is the average authority evaluation result of the data level of the data to be evaluated, and the data body information includes the unique identifier of the data body information, data W, the number of record entries contained in the data to be processed, and the identifier of the direct upstream traceability record contained in the data W that records the traceability record information.
2. The evaluation method according to claim 1, It is characterized in that The step of normalizing the traceability adjacency matrix to generate a normalized traceability adjacency matrix specifically includes: Each column of the traceability adjacency matrix is normalized according to the total probability of 1 to generate the normalized traceability adjacency matrix.
3. The evaluation method according to claim 1, It is characterized in that The determining, based on the data volume information of the data to be evaluated and the record weight vector, an average authority value of the data W in the data volume information of the data to be evaluated specifically includes: Based on the data volume information of the data to be evaluated and the record weight vector, determine the weight values corresponding to all records in the data W, sum them, and divide them by the number of record entries included in the data W to determine the average authority value of the data W in the data volume information of the data to be evaluated; The step of evenly segmenting the sequence T according to the segmentation coefficients and uniformly taking the data weight values in the evenly segmented segments to form a sequence T' specifically includes: The sequence T is evenly segmented according to the segmentation coefficients, and the data weight value in each segment is uniformly set to 10*(kj), so as to form the sequence T'; in, k is the segmentation coefficient, and j is the number of segments obtained by averaging segmenting the sequence T according to the segmentation coefficient.
4. A device for evaluating traceability data, It is characterized in that The evaluation device comprises: A traceability adjacency matrix generation module generates a traceability adjacency matrix based on the traceability record information of the data to be evaluated. The traceability adjacency matrix is an n*n matrix. The traceability adjacency matrix is used to represent the number of all records directly upstream of a record represented by each element, and n is the total number of all records corresponding to the data to be evaluated; A normalization module performs a normalization operation on the traceability adjacency matrix to generate a normalized traceability adjacency matrix; Record weight vector generation module, based on the normalized traceability adjacency matrix, determines the weight vectors of each record of the data to be evaluated, and obtains the record weight vectors, specifically including: based on the normalized traceability adjacency matrix, using the PageRank algorithm to calculate the weight vectors of each record of the data to be evaluated; the calculation formula of the PageRank algorithm is: R i =pM’R i-1 +[(1-p) / n]*E; where R i is the updated weight vector, R i-1 is the weight vector before update, p is the damping coefficient, and the convergence condition of the PageRank algorithm is |R i -R i-1 |<L, L is the convergence threshold, M’ is the normalized traceability adjacency matrix, and n is the total number of all records corresponding to the data to be evaluated; The evaluation module performs a record-level data authority evaluation on the data to be evaluated based on the traceability adjacency matrix and the record weight vector, specifically comprising: determining the number of all records directly downstream of each record in the sequence Q based on the traceability adjacency matrix to form a fused sequence Q', wherein the sequence Q is obtained by sorting the record weight vector; and using the fused sequence Q' as a record-level data authority evaluation of the data to be evaluated; and / or Based on the data body information of the data to be evaluated and the record weight vector, a data-level data authority evaluation is performed on the data to be evaluated, specifically including: determining the average authority value of the data W in the data body information of the data to be evaluated based on the data body information of the data to be evaluated and the record weight vector; sorting the average authority value to obtain a sequence T; evenly segmenting the sequence T according to the segmentation coefficient, and uniformly taking the data weight values in the average segment to form a sequence T', wherein the sequence T' is the average authority evaluation result of the data level of the data to be evaluated, and the data body information includes the unique identifier of the data body information, data W, the number of record entries contained in the data to be processed, and the identifier of the direct upstream traceability record contained in the data W that records the traceability record information.
5. An electronic device, include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to: Based on the traceability record information of the data to be evaluated, a traceability adjacency matrix is generated, where the traceability adjacency matrix is an n*n matrix, and the traceability adjacency matrix is used to represent the number of all records directly upstream of a record represented by each element, where n is the total number of all records corresponding to the data to be evaluated; Performing a normalization operation on the traceability adjacency matrix to generate a normalized traceability adjacency matrix; Based on the normalized traceability adjacency matrix, determine the weight vectors of each record of the data to be evaluated, and obtain the record weight vectors, specifically including: based on the normalized traceability adjacency matrix, use the PageRank algorithm to calculate the weight vectors of each record of the data to be evaluated; the calculation formula of the PageRank algorithm is: R i =pM’R i-1 +[(1-p) / n]*E; where R i is the updated weight vector, R i-1 is the weight vector before update, p is the damping coefficient, and the convergence condition of the PageRank algorithm is |R i -R i-1 |<L, L is the convergence threshold, M’ is the normalized traceability adjacency matrix, and n is the total number of all records corresponding to the data to be evaluated; Based on the traceability adjacency matrix and the record weight vector, the data authority evaluation of the data to be evaluated at the record level is performed, specifically including: based on the traceability adjacency matrix, determining the number of all records directly downstream of each record in the sequence Q to form a fused sequence Q', wherein the sequence Q is obtained by sorting the record weight vector; and using the fused sequence Q' as the data authority evaluation of the data to be evaluated at the record level; and / or Based on the data body information of the data to be evaluated and the record weight vector, a data-level data authority evaluation is performed on the data to be evaluated, specifically including: determining the average authority value of the data W in the data body information of the data to be evaluated based on the data body information of the data to be evaluated and the record weight vector; sorting the average authority value to obtain a sequence T; evenly segmenting the sequence T according to the segmentation coefficient, and uniformly taking the data weight values in the average segment to form a sequence T', wherein the sequence T' is the average authority evaluation result of the data level of the data to be evaluated, and the data body information includes the unique identifier of the data body information, data W, the number of record entries contained in the data to be processed, and the identifier of the direct upstream traceability record contained in the data W that records the traceability record information.
