Data collection implementation system, method and medium for self-sensing data conversion and quality control
Establish an automatic perception and analysis data chain through metadata standard tables and libraries, automatically match the value conversion and quality control rules of the data collection system, solve the problems of repeated configuration and data quality control in data collection in the existing technology, and improve the standardization of data collection. and quality.
Patent Information
- Application Number
- CN202410859535.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-06-28
AI Technical Summary
Existing data collection methods require a large workload of repeated configuration and are error-prone when maintaining mapping relationships, and lack pre-control of data quality, resulting in substandard data quality.
Through the metadata standard table, metadata standard business dictionary library and metadata standard quality control library, an automatic perception and analysis data chain is established, and general tools are used to automatically match data value conversion and quality control rules to realize automatic data perception based on metadata field names. Standardized value conversion and data quality control.
It reduces the user rule configuration work, improves the degree of data standardization and normalization and data quality, and realizes an easy-to-operate data collection solution.
Smart Images

Figure CN118394831B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of big data processing, and specifically relates to a data acquisition implementation system, method and medium for self-perception data conversion and quality control. Background Art
[0002] With the rapid development of IT technology, decision support based on big data analysis has become a very important technical field, and in this field, data standardization and data quality control have become a key issue affecting the accuracy of analysis.
[0003] The maintenance of value conversion mapping relationships is an important technical feature of data standardization. It requires maintaining mapping relationships for fields in the business tables of each business system before data collection. This feature can achieve standardized conversion of business field values in heterogeneous data sources. However, at the same time, there are some problems in maintaining mapping relationships. For example, when the same fields in multiple business tables need to be converted to standardized values, it is necessary to repeatedly configure the corresponding rules, which is labor-intensive and error-prone; in the existing mapping rules, when the mapping rules of related fields need to be modified, the workload is large and difficult to maintain.
[0004] In addition, existing data collection methods do not perform prior quality control on data quality, so data that does not meet quality standards will be submitted to the central database.
[0005] Therefore, in order to meet the requirements for high consistency and high quality of data in data collection, it is necessary to establish a collection plan that is easy to operate and has data quality control at the forefront. Summary of the invention
[0006] The technical problem solved by the present invention is to provide a data collection implementation system, method and medium for realizing self-perceiving data conversion and quality control based on automatic perception of metadata field names, which can realize data standardization value conversion and data quality control.
[0007] Technical solution: In order to solve the above technical problems, the technical solution adopted by the present invention is as follows:
[0008] A data collection implementation method for self-perceiving data conversion and quality control, which establishes an automatic perception analysis data chain based on metadata fields through metadata standard tables, metadata standard business dictionary libraries and metadata standard quality control libraries, analyzes the data chain and uses a general tool central program to automatically match data value conversion and data quality control related rules, and realizes data standardization value conversion and data quality control that are automatically perceived based on metadata field names, specifically including the following steps:
[0009] Step 1: Initial review and setup of data value conversion and data quality control;
[0010] Step 2: Develop a data collection plan;
[0011] Step 3: Execution of data collection plan; the specific implementation process is as follows:
[0012] Step 301, the data collector cycles through the list of plans to be executed and detects an executable plan;
[0013] Step 302, automatically create the execution unit of the plan for detection, build the execution engine instance and state machine for the plan, generate a unique plan execution batch identifier, and move the plan to the list of plans being executed;
[0014] Step 303: The execution engine of the current plan loads the plan, parses the data acquisition scripts of each task, parses the mapping relationship between the result set fields and the metadata fields, and constructs the state machine and data acquisition execution thread of each task;
[0015] Step 304, the execution engine is started, the data acquisition execution thread is started according to the task list, and the task execution state is changed;
[0016] Step 305: a task data fetching execution thread fetches data first and converts the fetching result column into the English name of the metadata field, and changes the task execution state;
[0017] Step 306, automatically matching corresponding rules to perform standardized value conversion according to the converted column names, and changing the task execution state;
[0018] Step 307, after the data value is standardized, the data is input into the data buffer area and the task execution state is changed;
[0019] Step 308, start the quality control engine and change the task execution state;
[0020] Step 309: The quality control engine automatically matches the corresponding quality control rules according to the column names, performs quality control on all records in the result set one by one and field by field, and outputs the quality control results, changing the task execution status;
[0021] Step 310, after all the tasks in the plan are completed, summarize and analyze the quality control compliance rate and quality control report;
[0022] Step 311, determine whether the quality control compliance rate of the current batch of data meets the standard, and if so, upload the data to the central database;
[0023] The calculation method for data quality control compliance rate is as follows:
[0024] ;
[0025] In the formula, P(q) represents the quality control compliance rate, S(q) represents the total number of quality control compliance, and S(a) represents the total number of quality controls;
[0026] The calculation method for the total number of quality controls is:
[0027] ;
[0028] In the formula, T(a i ) indicates the total number of quality controls in a metadata table;
[0029] ;
[0030] In the formula, F(a i ) represents the number of quality control points of a source data field, and M represents the number of records in the master data table of the current meta-table;
[0031] The method to obtain S(q) is:
[0032] S(q) = directly summarized from the quality control result set.
[0033] Furthermore, step 1: initial review and setting of data value conversion and data quality control, the specific implementation process is as follows:
[0034] Step 101, check the metadata table directory and metadata field table of the system built-in model;
[0035] Step 102, checking the metadata field standard value conversion rules built into the system;
[0036] Step 103, check the metadata field quality control rules built into the system;
[0037] Step 104, adjusting whether to perform value conversion on the metadata field according to actual conditions;
[0038] Step 105: Adjust the metadata field to determine whether to perform data quality control based on actual conditions.
[0039] Further, step 2: formulate a data collection plan; the specific implementation process is as follows:
[0040] Step 201, create a new data collection plan, set the model, data collection type, and execution time;
[0041] Step 202: Add a data acquisition task in the data collection plan.
[0042] A data collection implementation system for self-sensing data conversion and quality control, used for the above-mentioned data collection implementation method for self-sensing data conversion and quality control, characterized by comprising:
[0043] Business system database, as the business system database to be collected;
[0044] Data collector, which realizes data collection, standardization conversion and quality verification to achieve the set compliance rate;
[0045] The central database, as the target database for data collectors to upload data, is the central database used by platform applications;
[0046] The data collector includes a standard data set and a general tool set. The standard data set includes a standard metadata definition library, a metadata standard business dictionary library and a metadata standard quality control library; the general tool set includes an automatic perception data quality control engine, a data collection plan configuration tool, a data collection execution engine, an automatic perception value converter and a master data management tool.
[0047] The standard metadata definition library is used to define the required collection scope, data standards and basic information of the analysis model;
[0048] The metadata standard business dictionary library is applicable to the standard business dictionary item values of various industries;
[0049] The metadata standard quality control library is used to describe the relationship between quality control subjects and quality control rules;
[0050] The automatic perception data quality control engine automatically adapts data quality control rules according to metadata English field names and models, performs data quality analysis, and outputs the results and conclusions to the record table;
[0051] The data acquisition plan configuration tool realizes the setting of the execution plan of the data collector;
[0052] The data collection and execution engine realizes the judgment, scheduling and execution of each task in the plan;
[0053] The automatic perception value converter establishes an automatic perception analysis data chain based on metadata fields according to the metadata standard table, metadata field table and metadata standard business dictionary library, and the program automatically matches the corresponding value conversion rules to perform value conversion.
[0054] Furthermore, the execution process of the data collector is as follows:
[0055] Step 801, start the data collector;
[0056] Step 802, obtaining data retrieval plans from the library, and loading these plans into the list of plans to be executed;
[0057] Step 803, the data collector periodically cycles through the list of plans to be executed, and reads the information of the plans to be executed one by one;
[0058] Step 804, verify whether the plan start condition is met from the definition information in the read plan information, if not, execute step 803 to determine the next plan, if the start condition is met, proceed to step 805;
[0059] Step 805, create a plan execution unit to configure the current plan execution engine later. This execution unit needs to read the plan details to build a plan object instance, read all the tasks of the plan to build a task list, create a unique identifier for this execution, create a plan execution engine object instance for the current plan object instance, and create a plan execution state machine instance for the current plan object instance;
[0060] Step 806, start the plan execution engine object instance of the current plan object instance;
[0061] Step 807, move the plan from the list of plans to be executed to the list of plans being executed, and build a task queue according to the task list corresponding to the plan;
[0062] Step 808, polling the task queue, constructing an execution thread and a state machine for each task, and starting the task execution thread. In the thread, the program calls the automatic perception value converter to complete the standard value conversion, and the program also calls the automatic perception quality control engine to complete the data quality control;
[0063] Step 809, determine whether all the tasks in the task list have been executed, if not, jump to step 808 to perform the operation of the next task;
[0064] Step 810, determine whether the current plan is a single plan, if so, end; otherwise jump to step 811;
[0065] Step 811, move the current plan to the list of plans to be executed, and then jump to step 803 to wait for the next round of execution.
[0066] Furthermore, the execution process of the automatic perception value converter is:
[0067] Step 901, enter the automatic perception value converter;
[0068] Step 902, parsing the data acquisition script in the current task;
[0069] Step 903, execute the data retrieval script to pull data from the business system table into the data buffer area;
[0070] Step 904, obtaining a metadata table record set corresponding to the current task;
[0071] Step 905, obtaining a metadata field table record set corresponding to the current task;
[0072] Step 906, obtaining a metadata standard business dictionary table record set corresponding to the current task;
[0073] Step 907, traverse the record set in the data buffer area row by row;
[0074] Step 908, read the row of the record set;
[0075] Step 909, traverse the row records field by field;
[0076] Step 910, read the fields in the row;
[0077] Step 911, judging whether to perform value conversion according to the description in the metadata table and the metadata field table, if not, jumping to step 913, if yes, entering step 912 for execution;
[0078] Step 912, automatically adapt the conversion rules according to the values of the metadata field name, system manufacturer, business system name, and business table name corresponding to the current field, and convert this field value into a standard value for output;
[0079] Step 913, determine whether the traversal of the fields in the row is complete, if not, jump to step 910 to continue the next field operation, if yes, go to step 914 to execute;
[0080] Step 914, determine whether the traversal of the rows in the record set is complete, if not, jump to step 908 to continue the operation of the next row, if yes, end.
[0081] Furthermore, the automatic perception quality control engine execution process is:
[0082] Step 1001, entering the automatic perception quality control engine;
[0083] Step 1002, pulling the standardized data set in the current task from the cache;
[0084] Step 1003, obtaining a metadata table record set corresponding to the current task;
[0085] Step 1004, obtaining a metadata field table record set corresponding to the current task;
[0086] Step 1005, obtaining a metadata standard business dictionary table record set corresponding to the current task;
[0087] Step 1006, traverse the record set in the data buffer area row by row;
[0088] Step 1007, read the row of the record set;
[0089] Step 1008, traverse the row records field by field;
[0090] Step 1009, read the fields in the row;
[0091] Step 1010, judging whether to perform data quality control according to the description in the metadata table and the metadata field table, if not, jumping to step 1016, if yes, entering step 1011 for execution;
[0092] Step 1011, obtaining a quality control rule record set of all quality control points of this metadata field;
[0093] Step 1012, traverse the quality control rule record set line by line;
[0094] Step 1013, read the quality control rule record set record set row;
[0095] Step 1014, load the quality control rule script into the quality control analyzer, then parse the corresponding quality control script, and execute it, and finally give the quality control result. If the quality control is not compliant, the quality control result and conclusion should be output to the quality control record table;
[0096] Step 1015, determine whether all quality control rules of the current field have been executed, if not, jump to step 1013 to continue the execution of the next quality control rule, if yes, jump to step 1016 to execute;
[0097] Step 1016, determine whether all the row fields of the current record set have been traversed. If not, jump to step 1009 to continue the operation of the next field. If yes, jump to step 1017 to execute;
[0098] Step 1017, determine whether all rows of the current record set have been traversed. If not, jump to step 1007 to continue the operation of the next row segment. If yes, the quality control of this task is completed.
[0099] A computer-readable storage medium stores a data acquisition program, which implements the above-mentioned data acquisition system and method when executed by a processor.
[0100] Beneficial effects: Compared with the prior art, the present invention has the following advantages:
[0101] The data collection realization system, method and medium for self-perceiving data conversion and quality control of the present invention establish an automatic perception analysis data chain based on metadata fields through the metadata standard table, metadata standard business dictionary library and metadata standard quality control library provided by the present invention. According to this analysis data chain, the general tool (or service) centralized program provided by the present invention will automatically match the data value conversion and data quality control related rules, thereby realizing the data standardization value conversion and data quality control automatically perceived according to the metadata field name. As the standard rule library records included in this system increase, the user configuration work will be less, which greatly reduces the user rule configuration work, and at the same time, the data uploaded to the central platform is more standardized and normalized, and the data quality is also higher. The present invention can be applied to various types of structure data collection and has a wide range of application prospects. BRIEF DESCRIPTION OF THE DRAWINGS
[0102] Figure 1Schematic diagram of the architecture of the data collector for self-sensing data conversion and quality control described in the present invention.
[0103] Figure 2 Schematic diagram of the process of the data collector for self-sensing data conversion and quality control described in the present invention.
[0104] Figure 3 It is a schematic diagram of the process of the automatic perception value converter described in the present invention.
[0105] Figure 4 Schematic diagram of the process of self-sensing data quality control described in the present invention. DETAILED DESCRIPTION
[0106] The present invention is further illustrated below in conjunction with specific examples. The examples are implemented based on the technical solutions of the present invention. It should be understood that these examples are only used to illustrate the present invention and are not used to limit the scope of the present invention.
[0107] like Figure 1 As shown, the data collection implementation system for self-perception data conversion and quality control of the present application includes a business system database 1, a data collector 2, a cache database 3 and a central database 4. The business system database 1 serves as the data source of the data collector 2, the cache database 2 serves as the cache area of the data collector 2, and the data collected and processed by the data collector 2 is stored in the central database 4.
[0108] Figure 1 This is a schematic diagram of the architecture of the data collector for self-sensing data conversion and quality control according to the present invention. It shows that the entire data collector operation consists of 4 parts:
[0109] (1) Business system database 1 is used as the data source and is the business system database to be collected;
[0110] (2) Data collector 2, which is a data collector implemented based on the solution of the present invention;
[0111] (3) Cache database 3 is used as a cache area. Data collector 2 not only realizes data collection and uploading, but also performs standardization and conversion on the data values after collection. After normalization, data quality inspection is required. Data is uploaded only after reaching the agreed compliance rate. Therefore, the operations of standard value conversion and data quality control are all performed in this cache area.
[0112] (4) Central database 4 (central database): This database is the target database for data collection device data upload and is the central database used by platform applications.
[0113] The data collector is the core of the data collection implementation system for self-perceiving data conversion and quality control, including standard data sets and general tool (or service) sets.
[0114] The standard data set includes the standard metadata definition library (metadata table, metadata field table), metadata standard business dictionary library and metadata standard quality control library. The general tool (or service) set includes the automatic perception data quality control engine, data collection plan configuration tool, data collection execution engine (not shown in the figure), automatic perception value converter and master data management tool.
[0115] The standard metadata definition library is used to define the basic information of the required collection scope, data standards and analysis models. It is a description and construction of the relevant logical relationships such as the metadata tables, metadata field tables, metadata field value conversion rules and quality control rules in the current model.
[0116] The metadata standard business dictionary library is a table of general conversion rules applicable to the standard business dictionary items of various industries, which is uniformly collected and maintained by the platform. The storage format of this table is a Key-Value record set, where the Key value is the English name of the metadata field.
[0117] The metadata standard quality control library consists of a quality control subject table and a quality control rule table, which are used to describe the relationship between quality control subjects and quality control rules. The quality control rules are stored in a Key-Value format, where the Key value is the English name of the metadata field.
[0118] The automatic perception data quality control engine is started after the data collector completes the standardization conversion and pulls the normalized data into the data cache area. This engine automatically adapts the data quality control rules according to the metadata English field name and the model, and then loads it into the engine for data quality analysis, and outputs the results and conclusions to the record table.
[0119] The data collection plan configuration tool is a tool for setting the execution plan of the data collector. A plan includes the collection of raw data from multiple metadata tables of the current model. The data collection of each metadata table is set as a task. In each task, the mapping relationship between the fields of the raw data table and the fields of the metadata table and the data acquisition cycle must be specified. The plan also needs to set the execution frequency of the plan, etc.
[0120] The data collection execution engine is a data collector that cycles through the collection plan list to determine whether the plan in the list has reached the set execution time node. If the time has arrived, an execution unit will be created for the plan. A new plan execution engine object and state machine will be established in this execution unit. The plan will be loaded into the execution engine to schedule the execution of each task in the plan, and the execution progress and log will be fed back to the data collector through the state machine.
[0121] The automatic perception value converter establishes an automatic perception analysis data chain based on metadata fields according to the metadata standard table, metadata field table and metadata standard business dictionary library. The program automatically matches the corresponding value conversion rules to perform value conversion.
[0122] The automatic perception data quality control engine is started after the data collector completes the standardization conversion and pulls the normalized data into the data cache area. This engine automatically adapts the data quality control rules according to the metadata English field name and the model, and then loads it into the engine for data quality analysis, and outputs the results and conclusions to the record table.
[0123] The master data management tool is a tool for managing the original data collected by the data collector. This original data is used for subsequent analysis and processing.
[0124] The present invention also discloses a data collection implementation method for self-perceiving data conversion and quality control, which is implemented using the above-mentioned data collection implementation system for self-perceiving data conversion and quality control. An automatic perception analysis data chain based on metadata fields is established through a metadata table, a metadata standard business dictionary library, and a metadata standard quality control library. According to this analysis data chain, the general tool set program provided by the present invention will automatically match data value conversion and data quality control related rules, thereby realizing data standardization value conversion and data quality control that are automatically perceived based on metadata field names.
[0125] The main steps include:
[0126] Step 1: Initial review and setup of data value conversion and data quality control;
[0127] Step 2: Develop a data collection plan;
[0128] Step 3: Data collection plan execution.
[0129] The specific contents of each step are as follows:
[0130] Step 1: Initial review and setup of data value conversion and data quality control.
[0131] Step 101, check the metadata table directory and metadata field table of the system built-in model;
[0132] Step 102, check the metadata field standard value conversion rules built into the system, and the user can add them according to the actual situation;
[0133] Step 103, check the metadata field quality control rules built into the system, and the user can add them according to the actual situation;
[0134] Step 104, adjusting (enabling or disabling) whether to perform value conversion on the metadata field according to actual conditions;
[0135] Step 105, adjusting (opening or closing) the metadata field to perform data quality control according to the actual situation;
[0136] Step 2: Develop a data collection plan.
[0137] Step 201, create a new data collection plan, set the model, data collection type (single, repeated), execution time (single should be specific to the hour, minute, second of a certain year and month; repeated should be specific to the hour, minute, second of each day, the hour, minute, second of each day of the week, or the number of hours);
[0138] Step 202: Add a data acquisition task in the data acquisition plan. The task includes:
[0139] Data source request address, account number and password, business system manufacturer, business system name, and business table name in the business system;
[0140] Get data script, get the mapping relationship between data result set columns and metadata fields;
[0141] By matching key information such as metadata field names, business system vendors, business system names, and business table names in the business system, an automatic perception thinking chain for data standardization conversion is formed for use in subsequent automatic perception value converter execution.
[0142] By matching key information such as metadata field names and the models they belong to, an automatic perception thinking chain for data quality control is formed for use in subsequent data quality control engine execution.
[0143] The address, account number, password, and name of the main data table for storing configuration data uploaded to the central database;
[0144] Step 203, save the data collection plan, and add the plan to the plan execution list.
[0145] Step 3: Data collection plan execution.
[0146] Step 301, the data collector cycles through the list of plans to be executed and detects an executable plan;
[0147] Step 302, automatically create the execution unit of the plan for detection, build the execution engine instance and state machine for the plan, generate a unique plan execution batch identifier, and move the plan to the list of plans being executed;
[0148] Step 303: The execution engine of the current plan loads the plan, parses the data acquisition scripts of each task, parses the mapping relationship between the result set fields and the metadata fields, and constructs the state machine and data acquisition execution thread of each task;
[0149] Step 304, the execution engine is started, the data acquisition execution thread is started according to the task list, and the task execution state is changed;
[0150] Step 305: a task data fetching execution thread fetches data first and converts the fetching result column into the English name of the metadata field, and changes the task execution state;
[0151] Step 306, automatically matching corresponding rules to perform standardized value conversion according to the converted column names, and changing the task execution state;
[0152] Step 307, after the data value is standardized, the data is input into the data buffer area and the task execution state is changed;
[0153] Step 308, start the quality control engine and change the task execution state;
[0154] Step 309: The quality control engine automatically matches the corresponding quality control rules according to the column names, performs quality control on all records in the result set one by one and field by field, outputs the quality control results, and changes the task execution status;
[0155] Step 310, after all the tasks in the plan are completed, summarize and analyze the quality control compliance rate and quality control report.
[0156] Step 311, determine whether the quality control compliance rate of the current batch of data meets the standard, and if so, upload the data to the central library.
[0157] The calculation method for data quality control compliance rate is as follows:
[0158]
[0159] In the formula, P(q) represents the quality control compliance rate, S(q) represents the total number of quality control compliances, and S(a) represents the total number of quality controls.
[0160] The calculation method for the total number of quality controls is:
[0161]
[0162] In the formula, T(a i ) indicates the total number of quality controls for a metadata table.
[0163]
[0164] In the formula, F(a i ) represents the number of quality control points of a source data field, and M represents the number of records in the main data table of the current metadata table.
[0165] The method to obtain S(q) is:
[0166] S(q) = directly summarized from the quality control result set.
[0167] Figure 2 This is a flow chart of the data collector for self-sensing data conversion and quality control of the present invention. In the initial state, it is assumed that the current data collector has obtained the latest standard data set from the platform, has established an analysis data chain for metadata fields that need value standardization conversion, and has also established an analysis data chain for metadata that needs data quality control; at the same time, it is assumed that the data collection plan has been configured, so the execution process of this example is:
[0168] Step 801, start the data collector;
[0169] Step 802, obtaining data retrieval plans from the library, and loading these plans into the list of plans to be executed;
[0170] Step 803, the data collector periodically cycles through the list of plans to be executed, and reads the information of the plans to be executed one by one;
[0171] Step 804, verify whether the plan start condition is met from the definition information in the read plan information, if not, execute step 803 to determine the next plan, if the start condition is met, proceed to step 805;
[0172] Step 805 mainly creates a plan execution unit to configure the current plan execution engine. This execution unit needs to read the plan details to build a plan object instance, read all the tasks of the plan to build a task list, create a unique identifier for this execution (such as a batch number), create a plan execution engine object instance for the current plan object instance, and create a plan execution state machine instance for the current plan object instance;
[0173] Step 806, start the plan execution engine object instance of the current plan object instance;
[0174] Step 807, move the plan from the list of plans to be executed to the list of plans being executed, and build a task queue according to the task list corresponding to the plan;
[0175] Step 808, polling the task queue, constructing an execution thread and a state machine for each task, and starting the task execution thread. In the thread, the program will call the automatic perception value converter to complete the standard value conversion, and the program will also call the automatic perception quality control engine to complete the data quality control;
[0176] Step 809, determine whether all the tasks in the task list have been executed, if not, jump to step 808 to perform the operation of the next task;
[0177] Step 810, determine whether the current plan is a single plan, if so, end; otherwise jump to step 811;
[0178] Step 811, move the current plan to the list of plans to be executed, and then jump to step 803 to wait for the next round of execution.
[0179] Figure 3 This is a flow chart of the automatic perception value converter of the present invention. Here, it is assumed that the scheduled task execution engine has started to call the automatic perception value converter. Then the execution process of this example is:
[0180] Step 901, enter the automatic perception value converter;
[0181] Step 902, parsing the data acquisition script in the current task;
[0182] Step 903, execute the data retrieval script to pull data from the business system table into the data buffer area;
[0183] Step 904, obtaining a metadata table record set corresponding to the current task;
[0184] Step 905, obtaining a metadata field table record set corresponding to the current task;
[0185] Step 906, obtaining a metadata standard business dictionary table record set corresponding to the current task;
[0186] Step 907, traverse the record set in the data buffer area row by row;
[0187] Step 908, read the row of the record set;
[0188] Step 909, traverse the row records field by field;
[0189] Step 910, read the fields in the row;
[0190] Step 911, judging whether to perform value conversion according to the description in the metadata table and the metadata field table, if not, jumping to step 913, if yes, entering step 912 for execution;
[0191] Step 912, automatically adapt the conversion rules according to the metadata field name, system manufacturer, business system name, business table name and other values corresponding to the current field, and convert this field value into a standard value for output;
[0192] Step 913, determine whether the traversal of the fields in the row is complete, if not, jump to step 910 to continue the next field operation, if yes, go to step 914 to execute;
[0193] Step 914, determine whether the traversal of the rows in the record set is complete, if not, jump to step 908 to continue the operation of the next row, if yes, end.
[0194] Figure 4This is a flow chart of the self-perception data quality control engine of the present invention. Here, it is assumed that the scheduled task execution engine has started to call the automatic perception quality control engine. Then the execution process of this example is:
[0195] Step 1001, entering the automatic perception quality control engine;
[0196] Step 1002, pulling the standardized data set in the current task from the cache;
[0197] Step 1003, obtaining a metadata table record set corresponding to the current task;
[0198] Step 1004, obtaining a metadata field table record set corresponding to the current task;
[0199] Step 1005, obtaining a metadata standard business dictionary table record set corresponding to the current task;
[0200] Step 1006, traverse the record set in the data buffer area row by row;
[0201] Step 1007, read the row of the record set;
[0202] Step 1008, traverse the row records field by field;
[0203] Step 1009, read the fields in the row;
[0204] Step 1010, judging whether to perform data quality control according to the description in the metadata table and the metadata field table, if not, jumping to step 1016, if yes, entering step 1011 for execution;
[0205] Step 1011, obtaining a quality control rule record set of all quality control points of this metadata field;
[0206] Step 1012, traverse the quality control rule record set line by line;
[0207] Step 1013, read the quality control rule record set record set row;
[0208] Step 1014, load the quality control rule script into the quality control analyzer, then parse the corresponding quality control script, and execute it, and finally give the quality control result. If the quality control is not compliant, the quality control result and conclusion should be output to the quality control record table;
[0209] Step 1015, determine whether all quality control rules of the current field have been executed, if not, jump to step 1013 to continue the execution of the next quality control rule, if yes, jump to step 1016 to execute;
[0210] Step 1016, determine whether all the row fields of the current record set have been traversed. If not, jump to step 1009 to continue the operation of the next field. If yes, jump to step 1017 to execute;
[0211] Step 1017, determine whether all rows of the current record set have been traversed. If not, jump to step 1007 to continue the operation of the next row segment. If yes, the quality control of this task is completed.
[0212] The present invention also includes a device configured by appropriately combining the above-mentioned embodiments. The device is an entity for executing at least one software (program) for realizing the functions of the above-mentioned embodiments. The method for realizing the above-mentioned embodiments executed by the device or system is also an aspect of the present invention. The program is provided to the system or device via a network or various types of storage media, and at least one computer (CPU or microprocessing unit (MPU)) of the system or device reads the program in at least one memory and executes the program. More specifically, as an aspect of the present invention, the present invention also includes the program itself and various types of computer-readable storage media storing the program. The present invention can also be implemented by using a circuit (e.g., an application-specific integrated circuit (ASIC)) for realizing the functions of the above-mentioned exemplary embodiments.
[0213] Other embodiments
[0214] The embodiments of the present invention may also be implemented by providing software (program) for executing the functions of the above embodiments to a system or device via a network or various storage media, and a computer or a central processing unit (CPU) or a microprocessing unit (MPU) of the system or device reads and executes the program.
[0215] The implementation method of data collection for self-perception data conversion and quality control provided by the present invention can be applied to many fields such as medical care, taxation, and finance. For example, in the medical care industry, when conducting grade evaluation of secondary or tertiary hospitals, many indicators will be set up according to its evaluation standards. The data sources of these indicators are the business tables of business systems provided by many manufacturers. The standardization and quality control of their data are labor-intensive and complicated. However, no matter which manufacturer's business system it is, when its business data needs to be synchronized to the platform center library for subsequent use, its output table structure needs to be consistent with the metadata table structure. Based on this requirement, the present invention can use the fields of the metadata table to establish a set of data value standardization conversion and data quality control automatic perception analysis data chain. Then, the system can pre-collect the business dictionary values of the systems of the relevant manufacturers, preset the corresponding conversion rules, and preset the quality control rules of quality control points of each industry according to the metadata fields. The goal can be achieved. When the data collector has built-in self-perception data value conversion and data quality control analysis data chain, the user only needs to configure the plan and the plan task. Since the median conversion rules and quality control rules of the data collector for self-perception data conversion and quality control are already built in, it has the characteristics of easy operation, easy layout, easy maintenance, high normalization of collected data, high compliance rate of collected data, and has the characteristics of industry universality and versatility. Therefore, this technology has a high promotion value.
[0216] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for implementing data collection for self-sensing data conversion and quality control, characterized in that: Through the metadata standard table, metadata standard business dictionary library and metadata standard quality control library, an automatic perception and analysis data chain based on metadata fields is established. According to this analysis data chain, the general tool centralized program is used to automatically match data value conversion and data quality control related rules to achieve automatic perception of data standardization value conversion and data quality control based on metadata field names. The specific steps include: Step 1: Initial review and setup of data value conversion and data quality control; Step 2: Develop a data collection plan; Step 3: Execution of data collection plan; the specific implementation process is as follows: Step 301, the data collector cycles through the list of plans to be executed and detects an executable plan; Step 302, automatically create the execution unit of the plan for detection, build the execution engine instance and state machine for the plan, generate a unique plan execution batch identifier, and move the plan to the list of plans being executed; Step 303: The execution engine of the current plan loads the plan, parses the data acquisition scripts of each task, parses the mapping relationship between the result set fields and the metadata fields, and constructs the state machine and data acquisition execution thread of each task; Step 304, the execution engine is started, the data acquisition execution thread is started according to the task list, and the task execution state is changed; Step 305: a task data fetching execution thread fetches data first and converts the fetching result column into the English name of the metadata field, and changes the task execution state; Step 306, automatically matching corresponding rules to perform standardized value conversion according to the converted column names, and changing the task execution state; Step 307, after the data value is standardized, the data is input into the data buffer area and the task execution state is changed; Step 308, start the quality control engine and change the task execution state; Step 309: The quality control engine automatically matches the corresponding quality control rules according to the column names, performs quality control on all records in the result set one by one and field by field, and outputs the quality control results, changing the task execution status; Step 310, after all the tasks in the plan are completed, summarize and analyze the quality control compliance rate and quality control report; Step 311, determine whether the quality control compliance rate of the current batch of data meets the standard, and if so, upload the data to the central database; The calculation method for data quality control compliance rate is as follows: ; In the formula, P(q) represents the quality control compliance rate, S(q) represents the total number of quality control compliance, and S(a) represents the total number of quality controls; The calculation method for the total number of quality controls is: ; In the formula, T(a i ) indicates the total number of quality controls in a metadata table; ; In the formula, F(a i ) represents the number of quality control points of a source data field, and M represents the number of records in the master data table of the current meta-table; The method to obtain S(q) is: S(q) = directly summarized from the quality control result set.
2. The method for realizing data collection for self-sensing data conversion and quality control according to claim 1, characterized in that: Step 1: Initial review and setting of data value conversion and data quality control. The specific implementation process is as follows: Step 101, check the metadata table directory and metadata field table of the system built-in model; Step 102, checking the metadata field standard value conversion rules built into the system; Step 103, check the metadata field quality control rules built into the system; Step 104, adjusting whether to perform value conversion on the metadata field according to actual conditions; Step 105: Adjust the metadata field to determine whether to perform data quality control based on actual conditions.
3. The method for realizing data collection for self-sensing data conversion and quality control according to claim 1, characterized in that: Step 2: Develop a data collection plan; the specific implementation process is as follows: Step 201, create a new data collection plan, set the model, data collection type, and execution time; Step 202: Add a data acquisition task in the data collection plan.
4. A data acquisition implementation system for self-sensing data conversion and quality control, used to implement the data acquisition implementation method for self-sensing data conversion and quality control according to any one of claims 1 to 3, characterized in that: include: Business system database, as the business system database to be collected; Data collector, which realizes data collection, standardization conversion and quality verification to achieve the set compliance rate; The central database, as the target database for data collectors to upload data, is the central database used by platform applications; The data collector includes a standard data set and a general tool set. The standard data set includes a standard metadata definition library, a metadata standard business dictionary library, and a metadata standard quality control library. The general tool set includes an automatic perception data quality control engine, a data collection plan configuration tool, a data collection execution engine, an automatic perception value converter, and a master data management tool. The standard metadata definition library is used to define the required collection scope, data standards and basic information of the analysis model; The metadata standard business dictionary library is applicable to the standard business dictionary item values of various industries; The metadata standard quality control library is used to describe the relationship between quality control subjects and quality control rules; The automatic perception data quality control engine automatically adapts data quality control rules according to metadata English field names and models, performs data quality analysis, and outputs the results and conclusions to the record table; The data acquisition plan configuration tool realizes the setting of the execution plan of the data collector; The data collection and execution engine realizes the judgment, scheduling and execution of each task in the plan; The automatic perception value converter establishes an automatic perception analysis data chain based on metadata fields according to the metadata standard table, metadata field table and metadata standard business dictionary library, and the program automatically matches the corresponding value conversion rules to perform value conversion.
5. The data acquisition implementation system for self-sensing data conversion and quality control according to claim 4 is characterized in that: The execution process of the data collector is as follows: Step 801, start the data collector; Step 802, obtaining data retrieval plans from the library, and loading these plans into the list of plans to be executed; Step 803, the data collector periodically cycles through the list of plans to be executed, and reads the information of the plans to be executed one by one; Step 804, verify whether the plan start condition is met from the definition information in the read plan information, if not, execute step 803 to determine the next plan, if the start condition is met, proceed to step 805; Step 805, create a plan execution unit to configure the current plan execution engine later. This execution unit needs to read the plan details to build a plan object instance, read all the tasks of the plan to build a task list, create a unique identifier for this execution, create a plan execution engine object instance for the current plan object instance, and create a plan execution state machine instance for the current plan object instance; Step 806, start the plan execution engine object instance of the current plan object instance; Step 807, move the plan from the list of plans to be executed to the list of plans being executed, and build a task queue according to the task list corresponding to the plan; Step 808, polling the task queue, constructing an execution thread and a state machine for each task, and starting the task execution thread. In the thread, the program calls the automatic perception value converter to complete the standard value conversion, and the program also calls the automatic perception quality control engine to complete the data quality control; Step 809, determine whether all the tasks in the task list have been executed, if not, jump to step 808 to perform the operation of the next task; Step 810, determine whether the current plan is a single plan, if so, end; otherwise jump to step 811; Step 811, move the current plan to the list of plans to be executed, and then jump to step 803 to wait for the next round of execution.
6. The data acquisition implementation system for self-sensing data conversion and quality control according to claim 4 is characterized by: The execution process of the automatic perception value converter is as follows: Step 901, enter the automatic perception value converter; Step 902, parsing the data acquisition script in the current task; Step 903, execute the data retrieval script to pull data from the business system table into the data buffer area; Step 904, obtaining a metadata table record set corresponding to the current task; Step 905, obtaining a metadata field table record set corresponding to the current task; Step 906, obtaining a metadata standard business dictionary table record set corresponding to the current task; Step 907, traverse the record set in the data buffer area row by row; Step 908, read the row of the record set; Step 909, traverse the row records field by field; Step 910, read the fields in the row; Step 911, judging whether to perform value conversion according to the description in the metadata table and the metadata field table, if not, jumping to step 913, if yes, entering step 912 for execution; Step 912, automatically adapt the conversion rules according to the values of the metadata field name, system manufacturer, business system name, and business table name corresponding to the current field, and convert this field value into a standard value for output; Step 913, determine whether the traversal of the fields in the row is complete, if not, jump to step 910 to continue the next field operation, if yes, go to step 914 to execute; Step 914, determine whether the traversal of the rows in the record set is complete, if not, jump to step 908 to continue the operation of the next row, if yes, end.
7. The data acquisition implementation system for self-sensing data conversion and quality control according to claim 4 is characterized by: The automatic perception quality control engine execution process is as follows: Step 1001, entering the automatic perception quality control engine; Step 1002, pulling the standardized data set in the current task from the cache; Step 1003, obtaining a metadata table record set corresponding to the current task; Step 1004, obtaining a metadata field table record set corresponding to the current task; Step 1005, obtaining a metadata standard business dictionary table record set corresponding to the current task; Step 1006, traverse the record set in the data buffer area row by row; Step 1007, read the row of the record set; Step 1008, traverse the row records field by field; Step 1009, read the fields in the row; Step 1010, judging whether to perform data quality control according to the description in the metadata table and the metadata field table, if not, jumping to step 1016, if yes, entering step 1011 for execution; Step 1011, obtaining a quality control rule record set of all quality control points of this metadata field; Step 1012, traverse the quality control rule record set line by line; Step 1013, read the quality control rule record set record set row; Step 1014, load the quality control rule script into the quality control analyzer, then parse the corresponding quality control script, and execute it, and finally give the quality control result. If the quality control is not compliant, the quality control result and conclusion should be output to the quality control record table; Step 1015, determine whether all quality control rules of the current field have been executed, if not, jump to step 1013 to continue the execution of the next quality control rule, if yes, jump to step 1016 to execute; Step 1016, determine whether all the row fields of the current record set have been traversed. If not, jump to step 1009 to continue the operation of the next field. If yes, jump to step 1017 to execute; Step 1017, determine whether all rows of the current record set have been traversed. If not, jump to step 1007 to continue the operation of the next row segment. If yes, the quality control of this task is completed.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a data acquisition program, which, when executed by a processor, implements the data acquisition method for perceptual data conversion and quality control as described in any one of claims 1 to 3.
