Processing method and device for obtaining data quality, equipment and medium

By constructing an external data source information list and matching the identity information and sending frequency range, the preset quality is directly used to judge the data quality of incremental external data sources, which solves the time-consuming and labor-intensive problem of incremental data source quality judgment in the existing technology. Improved efficiency.

CN118760868AActive Publication Date: 2024-10-11HANGZHOU YSCREDIT CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202411247592.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-06
Publication Date
2024-10-11
Estimated Expiration
2044-09-06

AI Technical Summary

Technical Problem

In the prior art, when performing quality judgment on each data sent by an incremental external data source, the same quality judgment method is used, resulting in a time-consuming and labor-intensive problem.

Method used

By obtaining the type of the target external data source, if it is an incremental external data source, build an external data source information list, including identity information, preset sending number range and data quality, match the identity information and determine whether the sending number is within the preset number. Within the set range, if the match is successful, the preset quality will be used directly to avoid repeated judgments.

Benefits of technology

It saves computing power, reduces the time for data quality judgment, improves efficiency, and enables efficient processing of data quality judgment of incremental external data sources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118760868A_ABST
    Figure CN118760868A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of electric digital data processing, in particular to a processing method and device for obtaining data quality, equipment and a medium. The method comprises the steps that the type of a target external data source is acquired, and if the target external data source is an incremental external data source, an external data source information list is acquired; acquiring identity information of the target external data source, and matching the identity information of the target external data source in the external data source information list; if the matching fails, obtaining the quality of the data according to the integrity degree, the accuracy degree and the consistency degree of the data currently sent by the target external data source; otherwise, judging whether the current corresponding sending frequency of the target external data source belongs to the preset sending frequency range included in the matched record or not; and if yes, determining the quality of the preset data included in the matched record as the quality of the data currently sent by the target external data source. According to the invention, the efficiency of judging the quality of the data can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electronic digital data processing, and in particular to a processing method, device, equipment and medium for obtaining data quality. Background Art

[0002] There are differences in the quality of data provided by different external data sources. Some data sources provide data of poor quality, while others provide data of better quality; some data sources provide data of relatively stable quality, while others provide data of relatively unstable quality. An incremental external data source refers to an external data source that only sends data that has changed since the last synchronization. An incremental data source usually sends data at preset time intervals. For example, some incremental data sources of a bank send data every day. When performing data governance on the data sent by the incremental external data source, it is necessary to know the quality of the data sent by the incremental external data source. In the prior art, the same quality judgment method is usually used to judge the quality of the data sent by the incremental external data source each time, which is time-consuming and labor-intensive. Summary of the invention

[0003] The purpose of the present invention is to provide a processing method, device, equipment and medium for obtaining data quality, so as to solve the time-consuming and labor-intensive problem caused by using the same quality judgment method to judge the quality of data sent by an incremental external data source each time.

[0004] According to a first aspect of the present invention, a method for obtaining data quality is provided, the method comprising the following steps: Obtain the type of the target external data source. If the target external data source is an incremental external data source, obtain an external data source information list; the external data source information list includes a plurality of records, each record includes information of an incremental external data source, and the information of any incremental external data source includes the identity information of the corresponding incremental external data source, a preset range of sending times, and a preset data quality; the preset range of sending times and the preset data quality of any incremental external data source are obtained based on the quality of data sent by the corresponding incremental external data source in a historical time period.

[0005] The identity information of the target external data source is obtained, and the identity information of the target external data source is matched in the external data source information list.

[0006] If the match fails, the quality of the data currently sent by the target external data source is obtained based on the completeness, accuracy and consistency of the data currently sent by the target external data source; otherwise, it is determined whether the number of times the target external data source currently sends the data belongs to the preset range of times of sending included in the matching record.

[0007] If it does not, the quality of the data currently sent by the target external data source is obtained based on the completeness, accuracy and consistency of the data currently sent by the target external data source; otherwise, the quality of the preset data included in the matching record is determined as the quality of the data currently sent by the target external data source.

[0008] Furthermore, the process of obtaining the external data source information list includes: Obtain specified information of data sent by a first external data source in a historical time period; the specified information includes completeness, accuracy and consistency; the first external data source is any incremental external data source.

[0009] A data quality change curve of the first external data source within the historical time period is obtained according to designated information of the data sent by the first external data source within the historical time period; the quality of the data sent by the first external data source at any time is related to the completeness, accuracy and consistency of the data sent at the corresponding time; the horizontal axis of the data quality change curve is the number of times the first external data source sends data within the historical time period, and the vertical axis of the data quality change curve is the quality of the data sent by the first external data source.

[0010] If the fluctuation range of the data quality change curve is greater than the preset fluctuation range, the difference between the number of quality fluctuations in the data quality change curve and the last number of quality fluctuations is sequentially appended to the preset number sequence; the preset number sequence is initialized as an empty sequence.

[0011] If the variance of the elements in the frequency sequence is less than or equal to a preset variance threshold, the mean of the elements in the frequency sequence is determined as the specified number of times of the first external data source.

[0012] The sum of the number of transmissions corresponding to the last time the first external data source sent data in the historical time period and 1 is determined as the minimum value of the preset range of transmission times of the first external data source, and the sum of the number of transmissions corresponding to the last time the first external data source sent data in the historical time period and the specified number of times is determined as the maximum value of the preset range of transmission times of the first external data source.

[0013] The average quality of data sent by the first external data source in the most recent specified number of times is determined as the quality of the preset data of the first external data source.

[0014] The identity information of the first external data source, the preset range of sending times of the first external data source, and the preset data quality of the first external data source are constructed into a record of an external data source information list.

[0015] Furthermore, the process of obtaining the external data source information list also includes: If the variance of the elements in the order sequence is greater than a preset variance threshold, it is determined whether the elements in the order sequence satisfy a condition that the element at the latter position is greater than or equal to the element at the former position.

[0016] If satisfied, the last element in the number sequence is determined as the specified number of the first external data source.

[0017] The sum of the number of transmissions corresponding to the last time the first external data source sent data in the historical time period and 1 is determined as the minimum value of the preset range of transmission times of the first external data source, and the sum of the number of transmissions corresponding to the last time the first external data source sent data in the historical time period and the specified number of times is determined as the maximum value of the preset range of transmission times of the first external data source.

[0018] The average quality of data sent by the first external data source in the most recent specified number of times is determined as the quality of the preset data of the first external data source.

[0019] The identity information of the first external data source, the preset range of sending times of the first external data source, and the preset data quality of the first external data source are constructed into a record of an external data source information list.

[0020] Furthermore, the process of obtaining the external data source information list also includes: If the fluctuation range of the data quality change curve is less than or equal to the preset fluctuation range, the sum of the number of transmissions corresponding to the last time the first external data source sent data in the historical time period and 1 is determined as the minimum value of the preset transmission number range of the first external data source, the sum of the number of transmissions corresponding to the last time the first external data source sent data in the historical time period and the first preset number of times is determined as the maximum value of the preset transmission number range of the first external data source, and the average quality of the data sent by the external data source in the most recent first preset number of times is determined as the preset data quality of the first external data source.

[0021] The identity information of the first external data source, the preset range of sending times of the first external data source, and the preset data quality of the first external data source are constructed into a record of an external data source information list.

[0022] Furthermore, obtaining the quality of the data currently sent by the target external data source based on the degree of completeness, accuracy and consistency of the data currently sent includes: obtaining the quality of the data currently sent by the target external data source based on the degree of completeness, accuracy, consistency of the data currently sent by the target external data source, the weight corresponding to the degree of completeness of the data, the weight corresponding to the degree of accuracy of the data and the weight corresponding to the degree of consistency of the data.

[0023] According to a second aspect of the present invention, there is provided a processing device for obtaining data quality, the processing device comprising: The first acquisition module is used to obtain the type of the target external data source. If the target external data source is an incremental external data source, an external data source information list is obtained; the external data source information list includes a plurality of records, each record includes information of an incremental external data source, and the information of any incremental external data source includes the identity information of the corresponding incremental external data source, a preset range of sending times and a preset data quality; the preset range of sending times and the preset data quality of any incremental external data source are obtained according to the quality of data sent by the corresponding incremental external data source in a historical time period.

[0024] The second acquisition module is used to acquire the identity information of the target external data source and match the identity information of the target external data source in the external data source information list.

[0025] The first judgment module is used to obtain the quality of the data currently sent by the target external data source based on the completeness, accuracy and consistency of the data currently sent by the target external data source if the match fails; otherwise, determine whether the number of transmissions corresponding to the current time of the target external data source belongs to the preset range of transmissions included in the matching record.

[0026] The second judgment module is used to obtain the quality of the data currently sent by the target external data source based on the completeness, accuracy and consistency of the data currently sent by the target external data source if it does not belong to it; otherwise, the quality of the preset data included in the matching record is determined as the quality of the data currently sent by the target external data source.

[0027] Furthermore, the processing device further includes a module for obtaining an external data source information list, and the module for obtaining an external data source information list includes: The third acquisition module is used to obtain specified information of data sent by the first external data source in a historical time period; the specified information includes completeness, accuracy and consistency; the first external data source is any incremental external data source.

[0028] The fourth acquisition module is used to obtain the data quality change curve of the first external data source within the historical time period according to the specified information of the data sent by the first external data source in the historical time period; the quality of the data sent by the first external data source at any time is related to the completeness, accuracy and consistency of the data sent at the corresponding time; the horizontal axis of the data quality change curve is the number of times the first external data source sent the data within the historical time period, and the vertical axis of the data quality change curve is the quality of the data sent by the first external data source.

[0029] The third judgment module is used to add the difference between the number of quality fluctuations in the data quality change curve and the last number of quality fluctuations in the data quality change curve to a preset number sequence in sequence if the fluctuation range of the data quality change curve is greater than a preset fluctuation range; the preset number sequence is initialized as an empty sequence.

[0030] The fourth judgment module is used to determine the mean of the elements in the frequency sequence as the specified number of times of the first external data source if the variance of the elements in the frequency sequence is less than or equal to a preset variance threshold.

[0031] The first determination module is used to determine the sum of the number of transmissions corresponding to the last time the first external data source sent data in a historical time period and 1 as the minimum value of a preset range of transmission times of the first external data source, and to determine the sum of the number of transmissions corresponding to the last time the first external data source sent data in a historical time period and a specified number of times as the maximum value of a preset range of transmission times of the first external data source.

[0032] The second determination module is used to determine the average quality of data sent by the first external data source in the most recent specified number of times as the quality of preset data of the first external data source.

[0033] The first construction module is used to construct the identity information of the first external data source, the preset sending number range of the first external data source and the preset data quality of the first external data source into a record of an external data source information list.

[0034] Furthermore, the module for obtaining the external data source information list also includes: The fifth judgment module is used to judge whether the elements in the order sequence satisfy the condition that the latter element is greater than or equal to the former element if the variance of the elements in the order sequence is greater than a preset variance threshold.

[0035] The sixth judgment module is used to determine the last element in the number sequence as the specified number of times of the first external data source if the condition is satisfied.

[0036] The third determination module is used to determine the sum of the number of transmissions corresponding to the last time the first external data source sent data in the historical time period and 1 as the minimum value of the preset range of transmission times of the first external data source, and to determine the sum of the number of transmissions corresponding to the last time the first external data source sent data in the historical time period and a specified number of times as the maximum value of the preset range of transmission times of the first external data source.

[0037] The fourth determination module is used to determine the average quality of the data sent by the first external data source in the most recent specified number of times as the quality of the preset data of the first external data source.

[0038] The second construction module is used to construct the identity information of the first external data source, the preset sending number range of the first external data source and the preset data quality of the first external data source into a record of an external data source information list.

[0039] Furthermore, the module for obtaining the external data source information list also includes: The seventh judgment module is used to determine the sum of the number of transmissions corresponding to the last time the first external data source sent data in the historical time period and 1 as the minimum value of the preset number of transmissions of the first external data source if the fluctuation range of the data quality change curve is less than or equal to the preset fluctuation range, determine the sum of the number of transmissions corresponding to the last time the first external data source sent data in the historical time period and the first preset number of times as the maximum value of the preset number of transmissions of the first external data source, and determine the average quality of the data sent by the external data source in the most recent first preset number of times as the quality of the preset data of the first external data source.

[0040] The third construction module is used to construct the identity information of the first external data source, the preset sending number range of the first external data source and the preset data quality of the first external data source into a record of an external data source information list.

[0041] Furthermore, obtaining the quality of the data currently sent by the target external data source based on the completeness, accuracy and consistency of the data currently sent by the target external data source includes: obtaining the quality of the data currently sent by the target external data source based on the completeness, accuracy, consistency of the data currently sent by the target external data source, the weight corresponding to the completeness of the data, the weight corresponding to the accuracy of the data, and the weight corresponding to the consistency of the data.

[0042] According to a third aspect of the present invention, there is provided an electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned processing method for obtaining data quality when executing the computer program.

[0043] According to a fourth aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processing method for obtaining data quality is implemented.

[0044] Compared with the prior art, the present invention has at least the following beneficial effects: The present invention constructs an external data source information list according to the quality of data sent by several incremental external data sources in a historical time period, and each record of the list includes information of an incremental external data source, and the information includes identity information, a preset range of sending times and a preset quality of data; on this basis, if the target external data source is an incremental external data source, then when obtaining the quality of the data currently sent by it, its identity information is first matched in the list, and if the match is successful, it is further determined whether the number of sending times corresponding to the current time of the target external data source belongs to the preset range of sending times included in the matching record, and if it does, the quality of the preset data included in the matching record is determined as the quality of the data currently sent by the target external data source, and there is no need to obtain the quality of the data currently sent by the target external data source according to the completeness, accuracy and consistency of the data currently sent by the target external data source; in the case of the above-mentioned successful matching and belonging, the present invention can be used without judging the quality of the data currently sent by the target external data source, but directly determining the quality of the preset data in the successfully matched record in the list as the quality of the data currently sent by the target external data source, saving computing power, reducing the time for judging the quality of the data currently sent by the target external data source, and improving efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0046] Figure 1 A flowchart of a method for obtaining data quality provided in Embodiment 1 of the present invention; Figure 2 A first flow chart of the steps of a process for obtaining an external data source information list provided in the first embodiment of the present invention; Figure 3 A second flow chart of the steps of a process for obtaining an external data source information list provided in the first embodiment of the present invention; Figure 4 A third flow chart of the steps of a process for obtaining an external data source information list provided in the first embodiment of the present invention; Figure 5 A schematic diagram of a processing device for obtaining data quality provided in Embodiment 2 of the present invention; Figure 6 A first schematic diagram of a module for obtaining an external data source information list provided in the second embodiment of the present invention; Figure 7A second schematic diagram of a module for obtaining an external data source information list provided in the second embodiment of the present invention; Figure 8 This is a third schematic diagram of a module for obtaining an external data source information list provided in the second embodiment of the present invention. DETAILED DESCRIPTION

[0047] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0048] Embodiment 1: According to this embodiment, Figure 1 As shown, a processing method for obtaining data quality is provided, and the processing method comprises the following steps: S100, obtaining the type of the target external data source, and if the target external data source is an incremental external data source, obtaining an external data source information list; the external data source information list includes a plurality of records, each record includes information of an incremental external data source, and the information of any incremental external data source includes the identity information of the corresponding incremental external data source, a preset range of sending times, and a preset data quality; the preset range of sending times and the preset data quality of any incremental external data source are obtained according to the quality of data sent by the corresponding incremental external data source in a historical time period.

[0049] In this embodiment, the target external data source is a certain external data source, and the type of the target external data source is an incremental external data source or a full external data source. The full external data source refers to an external data source that sends all data regardless of whether the data has changed. Compared with the full external data source, the interval between each data transmission of the incremental external data source is generally shorter and the time interval is relatively fixed.

[0050] In this embodiment, the type of the target external data source is known information. If the target external data source is a full-volume external data source, the external data source information list is no longer obtained and S200-S400 are no longer executed. Instead, the quality of the data currently sent by the target external data source is obtained based on the completeness, accuracy and consistency of the data currently sent by the target external data source.

[0051] In this embodiment, each external data source corresponds to a unique identity information, and the identity information of the target external data source is known.

[0052] In this embodiment, the external data source information list is pre-constructed, different records correspond to different external data sources, different records include different identity information, different records include the same or different preset sending times, and different records include the same or different preset data quality. As a preferred specific implementation, Figure 2 As shown, the process of obtaining the external data source information list includes: S110, obtaining designated information of data sent by a first external data source in a historical time period; the designated information includes completeness, accuracy and consistency; the first external data source is any incremental external data source.

[0053] In this embodiment, the length of the historical time period is an empirical value, and the first external data source has sent data multiple times in the historical time period.

[0054] In this embodiment, the completeness of the data is used to characterize the completeness of the data. The higher the value of the completeness, the stronger the completeness; the accuracy of the data is used to characterize the accuracy of the data. The higher the value of the accuracy, the stronger the accuracy; the consistency of the data is used to characterize the consistency of the data. The higher the value of the consistency, the stronger the consistency; those skilled in the art know that any method of obtaining the completeness, accuracy and consistency of data in the prior art falls within the protection scope of the present invention. As a specific embodiment, the data sent by the external data source is table data, the completeness of the data is obtained by the ratio of the number of missing values ​​in the table to the amount of data included in the table, the accuracy of the data is obtained by the proportion of data in the table that conforms to the format and range of the field, and the consistency of the data is obtained by the proportion of the number of records in the table that meet the preset constraints.

[0055] S120, obtaining a data quality change curve of the first external data source within the historical time period according to the specified information of the data sent by the first external data source within the historical time period; the quality of the data sent by the first external data source at any time is related to the completeness, accuracy and consistency of the data sent at the corresponding time; the horizontal axis of the data quality change curve is the number of times the first external data source sent the data within the historical time period, and the vertical axis of the data quality change curve is the quality of the data sent by the first external data source.

[0056] In this embodiment, the quality of the data sent at any time by the first external data source is obtained using a weighted summation formula, that is, the quality of the data sent at the first external data source corresponding to the time is obtained according to the completeness, accuracy, consistency, weight corresponding to the completeness of the data, weight corresponding to the accuracy of the data, and weight corresponding to the consistency of the data. As an optional specific implementation, the weight corresponding to the completeness of the data, the weight corresponding to the accuracy of the data, and the weight corresponding to the consistency of the data are all empirical values.

[0057] S130, if the fluctuation range of the data quality change curve is greater than the preset fluctuation range, the difference between the number of quality fluctuations in the data quality change curve and the last number of quality fluctuations is sequentially added to the preset number sequence; the preset number sequence is initialized as an empty sequence.

[0058] In this embodiment, if the difference between the quality of the data corresponding to each time count in the data quality change curve and the mean of the data quality change curve is less than or equal to the first preset quality difference threshold, then the fluctuation range of the data quality change curve is determined to be less than or equal to the preset fluctuation range; otherwise, the fluctuation range of the data quality change curve is determined to be greater than the preset fluctuation range. The mean of the data quality change curve is the mean of the quality of the data corresponding to all times included in the data quality change curve, and the difference value is the absolute value of the difference.

[0059] In this embodiment, the number of times that quality fluctuation occurs refers to the number of times that the difference between the quality of the data and the quality of the previous data is greater than or equal to the second preset quality difference threshold. The second preset quality difference threshold and the first preset quality difference threshold are both greater than 0, and optionally, the first preset quality difference threshold is greater than the second preset quality difference threshold.

[0060] In this embodiment, appending to the preset number sequence in sequence means that the corresponding difference value with the previous number is first appended to the preset number sequence, that is, the corresponding difference value with the previous number is located at the front position in the number sequence. For example, the data quality change curve includes the number of times 1-15, and the times of quality fluctuation are the 5th, 8th, 11th and 15th times, then the values ​​appended to the preset number sequence in sequence are: 4, 3, 3 and 4 respectively.

[0061] S140: If the variance of the elements in the frequency sequence is less than or equal to a preset variance threshold, the mean of the elements in the frequency sequence is determined as the specified number of times of the first external data source.

[0062] In this embodiment, the preset variance threshold is an empirical value. If the variance of the elements in the frequency sequence is less than or equal to the preset variance threshold, it is determined that the difference between the elements in the frequency sequence is small; otherwise, it is determined that the difference between the elements in the frequency sequence is large.

[0063] Those skilled in the art know that the method for calculating the variance is a prior art and will not be described in detail here.

[0064] S150, determine the sum of the number of transmissions corresponding to the last time the first external data source sent data in the historical time period and 1 as the minimum value of the preset range of transmissions of the first external data source, and determine the sum of the number of transmissions corresponding to the last time the first external data source sent data in the historical time period and the specified number of times as the maximum value of the preset range of transmissions of the first external data source.

[0065] In this embodiment, after the minimum value and the minimum value of the preset range of the number of transmissions of the first external data source are determined, the preset range of the number of transmissions of the first external data source can be determined. For example, if the specified number of times of the first external data source is 5, and the number of transmissions corresponding to the last data transmission of the first external data source in the historical time period is 12, then the preset range of the number of transmissions of the first external data source is [13, 17].

[0066] S160: Determine the average quality of data sent by the first external data source in the most recent specified number of times as the quality of preset data of the first external data source.

[0067] In this embodiment, the most recent specified number of times refers to the number of previously specified numbers that have been sent in the historical time period and whose sending time is the latest; for example, the specified number of times of the first external data source is 5, and the number of sending times corresponding to the last time the first external data source sent data in the historical time period is 12, then the data sent by the first external data source in the most recent specified number of times refers to the data sent by the first external data source for the 8th time, the data sent by the first external data source for the 9th time, the data sent by the first external data source for the 10th time, the data sent by the first external data source for the 11th time, and the data sent by the first external data source for the 12th time.

[0068] S170: Construct the identity information of the first external data source, the preset range of sending times of the first external data source, and the preset data quality of the first external data source into a record of an external data source information list.

[0069] In this embodiment, if the fluctuation range of the data quality change curve is greater than a preset fluctuation range and the variance of the elements in the frequency sequence is less than or equal to a preset variance threshold, the external data source information list includes a record corresponding to the first external data source.

[0070] As a preferred specific embodiment, Figure 3 As shown, the process of obtaining the external data source information list also includes: S141, if the variance of the elements in the order sequence is greater than a preset variance threshold, determine whether the elements in the order sequence satisfy a condition that the element at the latter position is greater than or equal to the element at the former position.

[0071] In this embodiment, under the condition that the fluctuation range of the data quality change curve is greater than the preset fluctuation range, if the elements in the frequency sequence satisfy the condition that the later element is greater than or equal to the previous element, it is determined that the quality of the data sent by the first external data source is gradually becoming stable.

[0072] S142: If satisfied, determine the last element in the number sequence as the specified number of times of the first external data source.

[0073] In this embodiment, if the elements in the order sequence satisfy the condition that the element at the latter position is greater than or equal to the element at the former position, the last element in the order sequence is the largest element in the order sequence.

[0074] S143, determine the sum of the number of transmissions corresponding to the last time the first external data source sent data in the historical time period and 1 as the minimum value of the preset range of transmissions of the first external data source, and determine the sum of the number of transmissions corresponding to the last time the first external data source sent data in the historical time period and the specified number of times as the maximum value of the preset range of transmissions of the first external data source.

[0075] S144: Determine the average quality of the data sent by the first external data source in the most recent specified number of times as the quality of the preset data of the first external data source.

[0076] S145: Construct the identity information of the first external data source, the preset range of sending times of the first external data source, and the preset data quality of the first external data source into a record of an external data source information list.

[0077] In this embodiment, if the fluctuation range of the data quality change curve is greater than the preset fluctuation range, the variance of the elements in the frequency sequence is greater than the preset variance threshold, and the elements in the frequency sequence satisfy the condition that the later element is greater than or equal to the previous element, then the external data source information list includes the record corresponding to the first external data source.

[0078] In this embodiment, if the fluctuation range of the data quality change curve is greater than the preset fluctuation range, the variance of the elements in the frequency sequence is greater than the preset variance threshold, and the elements in the frequency sequence do not satisfy the condition that the later element is greater than or equal to the previous element, then the record corresponding to the first external data source is not included in the external data source information list.

[0079] As a preferred specific embodiment, Figure 4 As shown, the process of obtaining the external data source information list also includes: S146, if the fluctuation range of the data quality change curve is less than or equal to the preset fluctuation range, the sum of the number of transmissions corresponding to the last data transmission by the first external data source in the historical time period and 1 is determined as the minimum value of the preset transmission number range of the first external data source, the sum of the number of transmissions corresponding to the last data transmission by the first external data source in the historical time period and the first preset number of times is determined as the maximum value of the preset transmission number range of the first external data source, and the average quality of the data sent by the external data source in the most recent first preset number of times is determined as the quality of the preset data of the first external data source.

[0080] In this embodiment, the first preset number of times is an empirical value. Optionally, the first preset number of times is half of the number of times the first external data source sends data in a historical time period.

[0081] S147, constructing the identity information of the first external data source, the preset range of sending times of the first external data source, and the preset data quality of the first external data source into a record of an external data source information list.

[0082] In this embodiment, if the fluctuation range of the data quality change curve is less than or equal to a preset fluctuation range, the external data source information list includes a record corresponding to the first external data source.

[0083] Based on S110-S170, S141-S145 and S146-S147, the process of constructing an external data source information list can be implemented, and the quality of the data of the external data source corresponding to each record in the constructed external data source information list within the preset sending number range is slightly different from the quality of the corresponding preset data, thereby improving the accuracy of the quality of the acquired data.

[0084] S200: Acquire identity information of a target external data source, and match the identity information of the target external data source in an external data source information list.

[0085] In this embodiment, the identity information of the target external data source is compared one by one with the columns whose fields are identity information in the external data source information list until identity information that is the same as the identity information of the target external data source is found, and the match is determined to be successful; or if there is no identity information that is the same as the identity information of the target external data domain after all the identity information is compared, the match is determined to have failed.

[0086] S300, if the match fails, obtain the quality of the data currently sent by the target external data source based on the completeness, accuracy and consistency of the data currently sent by the target external data source; otherwise, determine whether the number of sending times corresponding to the current time of the target external data source belongs to the preset range of sending times included in the matching record.

[0087] In this embodiment, obtaining the quality of the data currently sent by the target external data source based on the completeness, accuracy and consistency of the data currently sent by the target external data source includes: obtaining the quality of the data currently sent by the target external data source based on the completeness, accuracy, consistency of the data currently sent by the target external data source, the weight corresponding to the completeness of the data, the weight corresponding to the accuracy of the data and the weight corresponding to the consistency of the data. Optionally, the completeness, accuracy, consistency of the data, the weight corresponding to the completeness of the data, the weight corresponding to the accuracy of the data and the weight corresponding to the consistency of the data are all empirical values.

[0088] In this embodiment, the matching record is a record including identity information that is the same as the identity information of the target external data source.

[0089] S400, if it does not belong, then obtain the quality of the data currently sent by the target external data source based on the completeness, accuracy and consistency of the data currently sent by the target external data source; otherwise, determine the quality of the preset data included in the matching record as the quality of the data currently sent by the target external data source.

[0090] As a preferred specific implementation, after obtaining the quality of the data currently sent by the target external data source, S400 also includes: matching the quality of the data currently sent by the target external data source, the amount of data currently sent by the target external data source, the time interval between the current data sent by the target external data source and the last data sent, and the importance of the target external data source in the preset data governance table of the incremental external data source, and if the match is successful, determining the data governance process in the successfully matched record as the data governance process matching the target external data source. Wherein, the preset data governance table of the incremental external data source is a pre-established table, which includes a number of records, each record stores preset information of an incremental external data source, and the preset information includes the quality of the data sent, the amount of data sent in a single time, the time interval for sending data, the importance, and the data governance process; if the similarity between the feature vector of the target external data source and the feature vector corresponding to a certain record is greater than or equal to the preset similarity threshold, then the data governance process stored in the record is determined as the data governance process of the target external data source, thereby, the data governance process of the target external data source can be quickly determined. The characteristic vector of the target external data source is a vector consisting of the quality of the data currently sent by the target external data source, the normalized amount of data currently sent by the target external data source, the normalized time interval between the current and last data sent by the target external data source, and the importance of the target external data source. The characteristic vector corresponding to a certain record is a vector consisting of the quality of the data sent stored in the record, the normalized amount of data sent in a single time, the normalized time interval for sending data, and the importance. The importance of the target external data source is a known value, and both the importance and the quality of the data are greater than 0 and less than or equal to 1.

[0091] This embodiment constructs an external data source information list according to the quality of data sent by several incremental external data sources in a historical time period, and each record of the list includes information of an incremental external data source, and the information includes identity information, a preset range of sending times, and preset data quality; on this basis, if the target external data source is an incremental external data source, then when obtaining the quality of the data currently sent by it, its identity information is first matched in the list, and if the match is successful, it is further determined whether the number of sending times corresponding to the current time of the target external data source belongs to the preset range of sending times included in the matching record, and if it does, the quality of the preset data included in the matching record is determined as the quality of the data currently sent by the target external data source, and there is no need to obtain the quality of the data currently sent by the target external data source according to the completeness, accuracy, and consistency of the data currently sent by the target external data source; in this embodiment, in the case of the above-mentioned successful matching and belonging, there is no need to judge the quality of the data currently sent by the target external data source, but directly determine the quality of the preset data in the successfully matched record in the list as the quality of the data currently sent by the target external data source, which saves computing power, reduces the time for judging the quality of the data currently sent by the target external data source, and improves efficiency.

[0092] Embodiment 2: According to this embodiment, Figure 5 As shown, a processing device for obtaining data quality is provided, and the processing device includes: The first acquisition module 100 is used to obtain the type of the target external data source. If the target external data source is an incremental external data source, an external data source information list is obtained; the external data source information list includes a plurality of records, each record includes information of an incremental external data source, and the information of any incremental external data source includes the identity information of the corresponding incremental external data source, a preset range of sending times and a preset data quality; the preset range of sending times and the preset data quality of any incremental external data source are obtained according to the quality of data sent by the corresponding incremental external data source in a historical time period.

[0093] In this embodiment, the target external data source is a certain external data source, and the type of the target external data source is an incremental external data source or a full external data source. The full external data source refers to an external data source that sends all data regardless of whether the data has changed. Compared with the full external data source, the interval between each data transmission of the incremental external data source is generally shorter and the time interval is relatively fixed.

[0094] In this embodiment, the type of the target external data source is known information. If the target external data source is a full-scale external data source, the external data source information list and execution modules 200-400 are no longer obtained. Instead, the quality of the data currently sent by the target external data source is obtained based on the completeness, accuracy and consistency of the data currently sent by the target external data source.

[0095] In this embodiment, each external data source corresponds to a unique identity information, and the identity information of the target external data source is known.

[0096] In this embodiment, the external data source information list is pre-constructed, different records correspond to different external data sources, different records include different identity information, different records include the same or different preset ranges of sending times, and different records include the same or different qualities of preset data; as a preferred specific implementation, the processing device also includes a module for obtaining the external data source information list, such as Figure 6 As shown, the modules for obtaining the external data source information list include: The third acquisition module 110 is used to obtain specified information of data sent by the first external data source in a historical time period; the specified information includes completeness, accuracy and consistency; the first external data source is any incremental external data source.

[0097] In this embodiment, the length of the historical time period is an empirical value, and the first external data source has sent data multiple times in the historical time period.

[0098] In this embodiment, the completeness of the data is used to characterize the completeness of the data. The higher the value of the completeness, the stronger the completeness; the accuracy of the data is used to characterize the accuracy of the data. The higher the value of the accuracy, the stronger the accuracy; the consistency of the data is used to characterize the consistency of the data. The higher the value of the consistency, the stronger the consistency; those skilled in the art know that any method of obtaining the completeness, accuracy and consistency of data in the prior art falls within the protection scope of the present invention. As a specific embodiment, the data sent by the external data source is table data, the completeness of the data is obtained by the ratio of the number of missing values ​​in the table to the amount of data included in the table, the accuracy of the data is obtained by the proportion of data in the table that conforms to the format and range of the field, and the consistency of the data is obtained by the proportion of the number of records in the table that meet the preset constraints.

[0099] The fourth acquisition module 120 is used to obtain a data quality change curve of the first external data source within the historical time period according to the specified information of the data sent by the first external data source within the historical time period; the quality of the data sent by the first external data source at any time is related to the completeness, accuracy and consistency of the data sent at the corresponding time; the horizontal axis of the data quality change curve is the number of times the first external data source sent the data within the historical time period, and the vertical axis of the data quality change curve is the quality of the data sent by the first external data source.

[0100] In this embodiment, the quality of the data sent at any time by the first external data source is obtained using a weighted summation formula, that is, the quality of the data sent at the first external data source corresponding to the time is obtained according to the completeness, accuracy, consistency, weight corresponding to the completeness of the data, weight corresponding to the accuracy of the data, and weight corresponding to the consistency of the data. As an optional specific implementation, the weight corresponding to the completeness of the data, the weight corresponding to the accuracy of the data, and the weight corresponding to the consistency of the data are all empirical values.

[0101] The third judgment module 130 is used to add the difference between the number of quality fluctuations in the data quality change curve and the last number of quality fluctuations in the data quality change curve to a preset number sequence in sequence if the fluctuation range of the data quality change curve is greater than a preset fluctuation range; the preset number sequence is initialized to an empty sequence.

[0102] In this embodiment, if the difference between the quality of the data corresponding to each time count in the data quality change curve and the mean of the data quality change curve is less than or equal to the first preset quality difference threshold, then the fluctuation range of the data quality change curve is determined to be less than or equal to the preset fluctuation range; otherwise, the fluctuation range of the data quality change curve is determined to be greater than the preset fluctuation range. The mean of the data quality change curve is the mean of the quality of the data corresponding to all times included in the data quality change curve, and the difference value is the absolute value of the difference.

[0103] In this embodiment, the number of times that quality fluctuation occurs refers to the number of times that the difference between the quality of the data and the quality of the previous data is greater than or equal to the second preset quality difference threshold. The second preset quality difference threshold and the first preset quality difference threshold are both greater than 0, and optionally, the first preset quality difference threshold is greater than the second preset quality difference threshold.

[0104] In this embodiment, appending to the preset number sequence in sequence means that the corresponding difference value with the previous number is first appended to the preset number sequence, that is, the corresponding difference value with the previous number is located at the front position in the number sequence. For example, the data quality change curve includes the number of times 1-15, and the times of quality fluctuation are the 5th, 8th, 11th and 15th times, then the values ​​appended to the preset number sequence in sequence are: 4, 3, 3 and 4 respectively.

[0105] The fourth judgment module 140 is used to determine the mean of the elements in the order sequence as the specified number of times of the first external data source if the variance of the elements in the order sequence is less than or equal to a preset variance threshold.

[0106] In this embodiment, the preset variance threshold is an empirical value. If the variance of the elements in the frequency sequence is less than or equal to the preset variance threshold, it is determined that the difference between the elements in the frequency sequence is small; otherwise, it is determined that the difference between the elements in the frequency sequence is large.

[0107] Those skilled in the art know that the method for calculating the variance is a prior art and will not be described in detail here.

[0108] The first determination module 150 is used to determine the sum of the number of transmissions corresponding to the last time the first external data source sent data in the historical time period and 1 as the minimum value of the preset range of transmission times of the first external data source, and to determine the sum of the number of transmissions corresponding to the last time the first external data source sent data in the historical time period and a specified number of times as the maximum value of the preset range of transmission times of the first external data source.

[0109] In this embodiment, after the minimum value and the minimum value of the preset range of the number of transmissions of the first external data source are determined, the preset range of the number of transmissions of the first external data source can be determined. For example, if the specified number of times of the first external data source is 5, and the number of transmissions corresponding to the last data transmission of the first external data source in the historical time period is 12, then the preset range of the number of transmissions of the first external data source is [13, 17].

[0110] The second determination module 160 is configured to determine the average quality of data sent by the first external data source in the most recent specified number of times as the quality of preset data of the first external data source.

[0111] In this embodiment, the most recent specified number of times refers to the number of previously specified numbers that have been sent in the historical time period and whose sending time is the latest; for example, the specified number of times of the first external data source is 5, and the number of sending times corresponding to the last time the first external data source sent data in the historical time period is 12, then the data sent by the first external data source in the most recent specified number of times refers to the data sent by the first external data source for the 8th time, the data sent by the first external data source for the 9th time, the data sent by the first external data source for the 10th time, the data sent by the first external data source for the 11th time, and the data sent by the first external data source for the 12th time.

[0112] The first constructing module 170 is used to construct the identity information of the first external data source, the preset sending number range of the first external data source and the preset data quality of the first external data source into a record of an external data source information list.

[0113] In this embodiment, if the fluctuation range of the data quality change curve is greater than a preset fluctuation range and the variance of the elements in the frequency sequence is less than or equal to a preset variance threshold, the external data source information list includes a record corresponding to the first external data source.

[0114] As a preferred specific embodiment, Figure 7 As shown, the module for obtaining the external data source information list also includes: The fifth judgment module 141 is used to judge whether the elements in the order sequence satisfy the condition that the latter element is greater than or equal to the former element if the variance of the elements in the order sequence is greater than a preset variance threshold.

[0115] In this embodiment, under the condition that the fluctuation range of the data quality change curve is greater than the preset fluctuation range, if the elements in the frequency sequence satisfy the condition that the later element is greater than or equal to the previous element, it is determined that the quality of the data sent by the first external data source is gradually becoming stable.

[0116] The sixth judgment module 142 is configured to determine the last element in the number sequence as the specified number of times of the first external data source if the condition is satisfied.

[0117] In this embodiment, if the elements in the order sequence satisfy the condition that the element at the latter position is greater than or equal to the element at the former position, the last element in the order sequence is the largest element in the order sequence.

[0118] The third determination module 143 is used to determine the sum of the number of transmissions corresponding to the last time the first external data source sent data in the historical time period and 1 as the minimum value of the preset range of transmission times of the first external data source, and to determine the sum of the number of transmissions corresponding to the last time the first external data source sent data in the historical time period and a specified number of times as the maximum value of the preset range of transmission times of the first external data source.

[0119] The fourth determination module 144 is configured to determine the average quality of data sent by the first external data source in the most recent specified number of times as the quality of preset data of the first external data source.

[0120] The second construction module 145 is used to construct the identity information of the first external data source, the preset range of sending times of the first external data source and the preset data quality of the first external data source into a record of an external data source information list.

[0121] In this embodiment, if the fluctuation range of the data quality change curve is greater than the preset fluctuation range, the variance of the elements in the frequency sequence is greater than the preset variance threshold, and the elements in the frequency sequence satisfy the condition that the later element is greater than or equal to the previous element, then the external data source information list includes the record corresponding to the first external data source.

[0122] In this embodiment, if the fluctuation range of the data quality change curve is greater than the preset fluctuation range, the variance of the elements in the frequency sequence is greater than the preset variance threshold, and the elements in the frequency sequence do not satisfy the condition that the later element is greater than or equal to the previous element, then the record corresponding to the first external data source is not included in the external data source information list.

[0123] As a preferred specific embodiment, Figure 8 As shown, the module for obtaining the external data source information list also includes: The seventh judgment module 146 is used to determine the sum of the number of transmissions corresponding to the last time the first external data source sent data in the historical time period and 1 as the minimum value of the preset number of transmissions of the first external data source if the fluctuation range of the data quality change curve is less than or equal to the preset fluctuation range, determine the sum of the number of transmissions corresponding to the last time the first external data source sent data in the historical time period and the first preset number of times as the maximum value of the preset number of transmissions of the first external data source, and determine the average quality of the data sent by the external data source in the most recent first preset number of times as the quality of the preset data of the first external data source.

[0124] In this embodiment, the first preset number of times is an empirical value. Optionally, the first preset number of times is half of the number of times the first external data source sends data in a historical time period.

[0125] The third construction module 147 is used to construct the identity information of the first external data source, the preset range of sending times of the first external data source and the preset data quality of the first external data source into a record of an external data source information list.

[0126] In this embodiment, if the fluctuation range of the data quality change curve is less than or equal to a preset fluctuation range, the external data source information list includes a record corresponding to the first external data source.

[0127] Based on modules 110-170, modules 141-145 and modules 146-147, the process of constructing an external data source information list can be implemented, and the quality of the data of the external data source corresponding to each record in the constructed external data source information list within the preset number of sending times is slightly different from the quality of the corresponding preset data, thereby improving the accuracy of the quality of the acquired data.

[0128] The second acquisition module 200 is used to acquire the identity information of the target external data source, and match the identity information of the target external data source in the external data source information list.

[0129] In this embodiment, the identity information of the target external data source is compared one by one with the columns whose fields are identity information in the external data source information list until identity information that is the same as the identity information of the target external data source is found, and the match is determined to be successful; or if there is no identity information that is the same as the identity information of the target external data domain after all the identity information is compared, the match is determined to have failed.

[0130] The first judgment module 300 is used to obtain the quality of the data currently sent by the target external data source based on the completeness, accuracy and consistency of the data currently sent by the target external data source if the match fails; otherwise, determine whether the number of transmissions corresponding to the current time of the target external data source belongs to the preset range of transmissions included in the matching record.

[0131] In this embodiment, obtaining the quality of the data currently sent by the target external data source based on the completeness, accuracy and consistency of the data currently sent by the target external data source includes: obtaining the quality of the data currently sent by the target external data source based on the completeness, accuracy, consistency of the data currently sent by the target external data source, the weight corresponding to the completeness of the data, the weight corresponding to the accuracy of the data and the weight corresponding to the consistency of the data. Optionally, the completeness, accuracy, consistency of the data, the weight corresponding to the completeness of the data, the weight corresponding to the accuracy of the data and the weight corresponding to the consistency of the data are all empirical values.

[0132] In this embodiment, the matching record is a record including identity information that is the same as the identity information of the target external data source.

[0133] The second judgment module 400 is used to obtain the quality of the data currently sent by the target external data source based on the completeness, accuracy and consistency of the data currently sent by the target external data source if it does not belong to it; otherwise, the quality of the preset data included in the matching record is determined as the quality of the data currently sent by the target external data source.

[0134] As a preferred specific implementation, after obtaining the quality of the data currently sent by the target external data source, the second judgment module 400 is also used to match the quality of the data currently sent by the target external data source, the amount of data currently sent by the target external data source, the time interval between the current data sent by the target external data source and the last data sent, and the importance of the target external data source in the preset data governance table of the incremental external data source. If the match is successful, the data governance process in the successfully matched record is determined as the data governance process that matches the target external data source. The preset data governance table of the incremental external data source is a pre-established table, which includes a number of records, each record stores preset information of an incremental external data source, and the preset information includes the quality of the data sent, the amount of data sent in a single time, the time interval for sending data, the importance, and the data governance process; if the similarity between the feature vector of the target external data source and the feature vector corresponding to a certain record is greater than or equal to the preset similarity threshold, the data governance process stored in the record is determined as the data governance process of the target external data source, thereby quickly determining the data governance process of the target external data source. The characteristic vector of the target external data source is a vector consisting of the quality of the data currently sent by the target external data source, the normalized amount of data currently sent by the target external data source, the normalized time interval between the current and last data sent by the target external data source, and the importance of the target external data source. The characteristic vector corresponding to a certain record is a vector consisting of the quality of the data sent stored in the record, the normalized amount of data sent in a single time, the normalized time interval for sending data, and the importance. The importance of the target external data source is a known value, and both the importance and the quality of the data are greater than 0 and less than or equal to 1.

[0135] This embodiment constructs an external data source information list according to the quality of data sent by several incremental external data sources in a historical time period, and each record of the list includes information of an incremental external data source, and the information includes identity information, a preset range of sending times, and preset data quality; on this basis, if the target external data source is an incremental external data source, then when obtaining the quality of the data currently sent by it, its identity information is first matched in the list, and if the match is successful, it is further determined whether the number of sending times corresponding to the current time of the target external data source belongs to the preset range of sending times included in the matching record, and if it does, the quality of the preset data included in the matching record is determined as the quality of the data currently sent by the target external data source, and there is no need to obtain the quality of the data currently sent by the target external data source according to the completeness, accuracy, and consistency of the data currently sent by the target external data source; in this embodiment, in the case of the above-mentioned successful matching and belonging, there is no need to judge the quality of the data currently sent by the target external data source, but directly determine the quality of the preset data in the successfully matched record in the list as the quality of the data currently sent by the target external data source, which saves computing power, reduces the time for judging the quality of the data currently sent by the target external data source, and improves efficiency.

[0136] Embodiment three: This embodiment provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the following steps are implemented: Obtain the type of the target external data source. If the target external data source is an incremental external data source, obtain an external data source information list; the external data source information list includes a plurality of records, each record includes information of an incremental external data source, and the information of any incremental external data source includes the identity information of the corresponding incremental external data source, a preset range of sending times, and a preset data quality; the preset range of sending times and the preset data quality of any incremental external data source are obtained based on the quality of data sent by the corresponding incremental external data source in a historical time period.

[0137] The identity information of the target external data source is obtained, and the identity information of the target external data source is matched in the external data source information list.

[0138] If the match fails, the quality of the data currently sent by the target external data source is obtained based on the completeness, accuracy and consistency of the data currently sent by the target external data source; otherwise, it is determined whether the number of times the target external data source currently sends the data belongs to the preset range of times of sending included in the matching record.

[0139] If it does not, the quality of the data currently sent by the target external data source is obtained based on the completeness, accuracy and consistency of the data currently sent by the target external data source; otherwise, the quality of the preset data included in the matching record is determined as the quality of the data currently sent by the target external data source.

[0140] Embodiment 4: This embodiment provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: Obtain the type of the target external data source. If the target external data source is an incremental external data source, obtain an external data source information list; the external data source information list includes a plurality of records, each record includes information of an incremental external data source, and the information of any incremental external data source includes the identity information of the corresponding incremental external data source, a preset range of sending times, and a preset data quality; the preset range of sending times and the preset data quality of any incremental external data source are obtained based on the quality of data sent by the corresponding incremental external data source in a historical time period.

[0141] The identity information of the target external data source is obtained, and the identity information of the target external data source is matched in the external data source information list.

[0142] If the match fails, the quality of the data currently sent by the target external data source is obtained based on the completeness, accuracy and consistency of the data currently sent by the target external data source; otherwise, it is determined whether the number of times the target external data source currently sends the data belongs to the preset range of times of sending included in the matching record.

[0143] If it does not, the quality of the data currently sent by the target external data source is obtained based on the completeness, accuracy and consistency of the data currently sent by the target external data source; otherwise, the quality of the preset data included in the matching record is determined as the quality of the data currently sent by the target external data source.

[0144] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0145] Although some specific embodiments of the present invention have been described in detail by way of example, it will be appreciated by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present invention. It will also be appreciated by those skilled in the art that various modifications may be made to the embodiments without departing from the scope and spirit of the present invention. The scope of the present invention is defined by the appended claims.

Claims

1. A method for obtaining data quality, characterized in that: The processing method comprises the following steps: The type of the target external data source is obtained. If the target external data source is an incremental external data source, an external data source information list is obtained. The external data source information list includes a plurality of records, each record includes information of an incremental external data source, and the information of any incremental external data source includes the identity information of the corresponding incremental external data source, a preset range of transmission times, and a preset data quality. The preset range of transmission times and the preset data quality of any incremental external data source are obtained according to the quality of data sent by the corresponding incremental external data source in a historical time period. Obtaining identity information of a target external data source, and matching the identity information of the target external data source in an external data source information list; If the match fails, the quality of the data currently sent by the target external data source is obtained according to the completeness, accuracy and consistency of the data currently sent by the target external data source; otherwise, it is determined whether the number of times the target external data source currently sends is within the preset range of times of sending included in the matching record; If it does not, the quality of the data currently sent by the target external data source is obtained based on the completeness, accuracy and consistency of the data currently sent by the target external data source; otherwise, the quality of the preset data included in the matching record is determined as the quality of the data currently sent by the target external data source.

2. The method for obtaining data quality according to claim 1, characterized in that: The process of obtaining the external data source information list includes: Acquire specified information of data sent by a first external data source in a historical time period; the specified information includes completeness, accuracy and consistency; the first external data source is any incremental external data source; Acquire a data quality change curve of the first external data source in the historical time period according to designated information of data sent by the first external data source in the historical time period; the quality of data sent by the first external data source at any time is related to the completeness, accuracy and consistency of the data sent at the corresponding time; the abscissa of the data quality change curve is the number of times the first external data source sent the data in the historical time period, and the ordinate of the data quality change curve is the quality of the data sent by the first external data source; If the fluctuation range of the data quality change curve is greater than the preset fluctuation range, the difference between the number of times the quality fluctuation occurs in the data quality change curve and the number of times the quality fluctuation occurs last time is sequentially added to the preset number sequence; the preset number sequence is initialized as an empty sequence; If the variance of the elements in the frequency sequence is less than or equal to a preset variance threshold, the mean of the elements in the frequency sequence is determined as the specified number of times of the first external data source; The sum of the number of transmissions corresponding to the last data transmission by the first external data source in the historical time period and 1 is determined as the minimum value of the preset range of transmissions of the first external data source, and the sum of the number of transmissions corresponding to the last data transmission by the first external data source in the historical time period and the specified number of transmissions is determined as the maximum value of the preset range of transmissions of the first external data source; Determine the average quality of data sent by the first external data source in the most recent specified number of times as the quality of preset data of the first external data source; The identity information of the first external data source, the preset range of sending times of the first external data source, and the preset data quality of the first external data source are constructed into a record of an external data source information list.

3. The method for obtaining data quality according to claim 2, characterized in that: The process of obtaining the external data source information list also includes: If the variance of the elements in the order sequence is greater than a preset variance threshold, then determine whether the elements in the order sequence satisfy the condition that the element at the latter position is greater than or equal to the element at the former position; If satisfied, the last element in the number sequence is determined as the specified number of times of the first external data source; The sum of the number of transmissions corresponding to the last data transmission by the first external data source in the historical time period and 1 is determined as the minimum value of the preset range of transmissions of the first external data source, and the sum of the number of transmissions corresponding to the last data transmission by the first external data source in the historical time period and the specified number of transmissions is determined as the maximum value of the preset range of transmissions of the first external data source; Determine the average quality of data sent by the first external data source in the most recent specified number of times as the quality of preset data of the first external data source; The identity information of the first external data source, the preset range of sending times of the first external data source, and the preset data quality of the first external data source are constructed into a record of an external data source information list.

4. The method for obtaining data quality according to claim 2, characterized in that: The process of obtaining the external data source information list also includes: If the fluctuation range of the data quality change curve is less than or equal to the preset fluctuation range, the sum of the number of transmissions corresponding to the last data transmission by the first external data source in the historical time period and 1 is determined as the minimum value of the preset range of transmissions of the first external data source, the sum of the number of transmissions corresponding to the last data transmission by the first external data source in the historical time period and the first preset number of transmissions is determined as the maximum value of the preset range of transmissions of the first external data source, and the average quality of the data sent by the external data source in the most recent first preset number of times is determined as the preset data quality of the first external data source; The identity information of the first external data source, the preset range of sending times of the first external data source, and the preset data quality of the first external data source are constructed into a record of an external data source information list.

5. The method for obtaining data quality according to claim 1, characterized in that: Obtaining the quality of data currently sent by the target external data source based on the completeness, accuracy and consistency of the data currently sent by the target external data source includes: obtaining the quality of data currently sent by the target external data source based on the completeness, accuracy, consistency of the data currently sent by the target external data source, the weight corresponding to the completeness of the data, the weight corresponding to the accuracy of the data, and the weight corresponding to the consistency of the data.

6. A processing device for obtaining data quality, characterized in that: The processing device comprises: The first acquisition module is used to acquire the type of the target external data source. If the target external data source is an incremental external data source, an external data source information list is acquired; the external data source information list includes a plurality of records, each record includes information of an incremental external data source, and the information of any incremental external data source includes the identity information of the corresponding incremental external data source, a preset range of transmission times, and a preset data quality; the preset range of transmission times and the preset data quality of any incremental external data source are obtained according to the quality of data sent by the corresponding incremental external data source in a historical time period; A second acquisition module is used to acquire the identity information of the target external data source and match the identity information of the target external data source in the external data source information list; The first judgment module is used to obtain the quality of the data currently sent by the target external data source according to the completeness, accuracy and consistency of the data currently sent by the target external data source if the match fails; otherwise, determine whether the number of times the target external data source currently sends is within a preset range of times of sending included in the matching record; The second judgment module is used to obtain the quality of the data currently sent by the target external data source based on the completeness, accuracy and consistency of the data currently sent by the target external data source if it does not belong to it; otherwise, the quality of the preset data included in the matching record is determined as the quality of the data currently sent by the target external data source.

7. The processing device for obtaining data quality according to claim 6, characterized in that: The processing device further includes a module for obtaining an external data source information list, and the module for obtaining an external data source information list includes: A third acquisition module is used to acquire specified information of data sent by the first external data source in a historical time period; the specified information includes completeness, accuracy and consistency; the first external data source is any incremental external data source; A fourth acquisition module is used to acquire a data quality change curve of the first external data source in a historical time period according to designated information of the data sent by the first external data source in the historical time period; the quality of the data sent by the first external data source at any time is related to the completeness, accuracy and consistency of the data sent at the corresponding time; the abscissa of the data quality change curve is the number of times the first external data source sent the data in the historical time period, and the ordinate of the data quality change curve is the quality of the data sent by the first external data source; A third judgment module is used for, if the fluctuation range of the data quality change curve is greater than a preset fluctuation range, then adding the difference between the number of times the quality fluctuation occurs in the data quality change curve and the number of times the quality fluctuation occurs last time to a preset number sequence in sequence; the preset number sequence is initialized as an empty sequence; A fourth judgment module is used to determine the mean of the elements in the frequency sequence as the specified number of times of the first external data source if the variance of the elements in the frequency sequence is less than or equal to a preset variance threshold; A first determination module is used to determine the sum of the number of transmissions corresponding to the last data transmission by the first external data source in a historical time period and 1 as the minimum value of a preset range of transmissions of the first external data source, and to determine the sum of the number of transmissions corresponding to the last data transmission by the first external data source in a historical time period and a specified number of times as the maximum value of a preset range of transmissions of the first external data source; A second determination module is used to determine the average quality of data sent by the first external data source in the most recent specified number of times as the quality of preset data of the first external data source; The first construction module is used to construct the identity information of the first external data source, the preset sending number range of the first external data source and the preset data quality of the first external data source into a record of an external data source information list.

8. The processing device for obtaining data quality according to claim 7, characterized in that: The modules for obtaining the list of external data source information also include: A fifth judgment module, used for judging whether the elements in the order sequence satisfy the condition that the element at the latter position is greater than or equal to the element at the former position if the variance of the elements in the order sequence is greater than a preset variance threshold; a sixth judgment module, configured to determine the last element in the number sequence as the specified number of times of the first external data source if the condition is satisfied; A third determination module is used to determine the sum of the number of transmissions corresponding to the last data transmission by the first external data source in the historical time period and 1 as the minimum value of the preset range of transmissions of the first external data source, and to determine the sum of the number of transmissions corresponding to the last data transmission by the first external data source in the historical time period and a specified number of times as the maximum value of the preset range of transmissions of the first external data source; A fourth determination module, configured to determine the average quality of data sent by the first external data source in the most recent specified number of times as the quality of preset data of the first external data source; The second construction module is used to construct the identity information of the first external data source, the preset sending number range of the first external data source and the preset data quality of the first external data source into a record of an external data source information list.

9. The processing device for obtaining data quality according to claim 7, characterized in that: The modules for obtaining the list of external data source information also include: a seventh judgment module, for determining, if the fluctuation range of the data quality change curve is less than or equal to the preset fluctuation range, the sum of the number of transmissions corresponding to the last data transmission by the first external data source in the historical time period and 1 as the minimum value of the preset range of transmissions of the first external data source, the sum of the number of transmissions corresponding to the last data transmission by the first external data source in the historical time period and the first preset number of times as the maximum value of the preset range of transmissions of the first external data source, and determining the average quality of the data transmitted by the external data source in the most recent first preset number of times as the quality of the preset data of the first external data source; The third construction module is used to construct the identity information of the first external data source, the preset sending number range of the first external data source and the preset data quality of the first external data source into a record of an external data source information list.

10. The processing device for obtaining data quality according to claim 6, characterized in that: Obtaining the quality of data currently sent by the target external data source based on the completeness, accuracy and consistency of the data currently sent by the target external data source includes: obtaining the quality of data currently sent by the target external data source based on the completeness, accuracy, consistency of the data currently sent by the target external data source, the weight corresponding to the completeness of the data, the weight corresponding to the accuracy of the data, and the weight corresponding to the consistency of the data.

11. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the method for obtaining data quality as described in any one of claims 1 to 5 is implemented.

12. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the processing method for obtaining data quality as claimed in any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Method of matching records, method of scheduling maintenance and apparatus

    CN109074529A

  • Data transmission method and apparatus, data storage method and apparatus, server and storage medium

    CN109639811A

  • Data quality measurement method and device and medium

    CN112506901A

  • Data processing method, device, equipment, system and medium

    CN114185910A

  • Data quality detection method and device

    CN116975109A