Data fusion method, device, equipment, storage medium and product
Determine data labels and source information through preset data classification rules, generate data query views, solve the problem of low efficiency of multi-source heterogeneous data fusion, achieve efficient data fusion, and reduce the delay and bandwidth pressure of cross-domain data fusion. .
Patent Information
- Application Number
- CN202411040489.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-07-31
AI Technical Summary
When merging multi-source heterogeneous data, a large amount of business data from multiple data sources needs to be preprocessed and migrated, resulting in high cross-domain data fusion latency, bandwidth pressure, and low efficiency.
Determine the source information of data labels and selected data attributes through preset data classification rules, and generate data query views as data fusion results to avoid direct processing of business data and reduce data transmission and cross-domain access.
It improves data fusion efficiency, reduces latency and bandwidth pressure, and reduces computing overhead and cross-domain data analysis costs.
Smart Images

Figure CN118568670B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of big data technology, and in particular to a data fusion method, device, equipment, storage medium and product. Background Art
[0002] In related technologies, when fusing multi-source heterogeneous data, it is necessary to preprocess and migrate a large amount of business data from multiple data sources, which involves large-scale data transmission and frequent cross-domain access, increasing the latency and bandwidth pressure of cross-domain data fusion, making data fusion efficiency low. Summary of the invention
[0003] The main purpose of this application is to provide a data fusion method, device, equipment, storage medium and product, aiming to solve the technical problem of low efficiency of data fusion methods.
[0004] To achieve the above purpose, the present application provides a data fusion method, which includes:
[0005] Using each data classification rule in a preset data classification rule set, determine a data label for each data row in multiple data sources that meets the data classification rule; wherein one data classification rule corresponds to one data label;
[0006] For each data label, extract source information of selected data attributes in each data row corresponding to the data label from multiple data sources; wherein the selected data attributes are classification basis of the data classification rule, there is a first corresponding relationship between the data label and the selected data attributes, and there is a second corresponding relationship between the selected data attributes and the source information;
[0007] According to all the first correspondences and all the second correspondences, data query views of multiple data sources are generated as data fusion results of the multiple data sources; wherein the data query views are used to return target data queried from multiple data sources according to the query request when a query request is received.
[0008] Optionally, the step of generating data query views of multiple data sources as data fusion results of the multiple data sources according to all the first corresponding relationships and all the second corresponding relationships includes:
[0009] Generate a logical view table according to all first correspondences;
[0010] Generate a virtual attribute table according to all second corresponding relationships;
[0011] The logical view table and the attribute virtual table are used as data query views to obtain data fusion results.
[0012] Optionally, before the step of using each data classification rule in a preset data classification rule set to determine the data label of each data row in the multiple data sources that meets the data classification rule, the method further includes:
[0013] Determine a preset data classification rule set from partial business data from multiple data sources;
[0014] For each data classification rule, a data label of the data classification rule is determined according to the corresponding classification basis.
[0015] Optionally, a classification basis of a data classification rule includes at least one selected data attribute, and the step of determining a preset data classification rule set from part of the business data of multiple data sources includes:
[0016] Using a genetic algorithm, according to all data features in part of the business data, at least one selected data attribute in each classification basis is determined to obtain an initial data classification rule set;
[0017] For the initial classification basis of each initial data classification rule in the initial data classification rule set, the particle swarm algorithm is used to determine the constraint conditions of each selected data attribute in the initial classification basis according to the data characteristics of all corresponding selected data attributes in part of the business data, and the preset data classification rule set is obtained.
[0018] Optionally, the step of using a genetic algorithm to determine at least one selected data attribute in each classification basis according to all data features in the partial business data to obtain an initial data classification rule set includes:
[0019] Construct an initial data attribute population based on all data features;
[0020] Iterate the initial data attribute population according to a preset crossover probability, a preset mutation probability and a preset number of iterations to obtain a target data attribute population;
[0021] By using each target individual in the target data attribute population, at least one selected data attribute in each corresponding classification basis is determined to obtain an initial data classification rule set.
[0022] Optionally, using a particle swarm algorithm, according to data features of all corresponding selected data attributes in part of the business data, determining the constraint conditions of each selected data attribute in the initial classification basis, and obtaining a preset data classification rule set, comprises:
[0023] For each selected data attribute in the initial classification basis, determining a constrained search space of the selected data attribute based on all data features of the selected data attribute in the partial business data;
[0024] Constructing an initial particle swarm according to the total number of data attributes selected in the initial classification basis and the constrained search space of each selected data attribute in the initial classification basis;
[0025] According to the initial classification accuracy value of each initial particle in the initial particle group, the initial global optimal particle in the initial particle group is determined; wherein the classification accuracy is the classification accuracy of the data classification rule for marking part of the business data;
[0026] The initial particle swarm is used as the current particle swarm, and the initial global optimal particle is used as the current global optimal particle;
[0027] According to the preset iteration parameters, update the current particle swarm to obtain the target particle swarm;
[0028] According to the target classification accuracy value of each target particle in the target particle group, the target global optimal particle in the target particle group is determined;
[0029] If the current total classification accuracy value of the current particle swarm is less than the target total classification accuracy value of the target particle swarm, the target particle swarm is used as the current particle swarm, and the target global optimal particle is used as the current global optimal particle;
[0030] Determine whether the classification accuracy difference between the current classification accuracy value of the current global optimal particle and the historical classification accuracy value of the previous historical global optimal particle is less than or equal to a preset difference;
[0031] If the classification accuracy difference is greater than the preset difference, return to execute the step of updating the current particle swarm according to the preset iteration parameters to obtain the target particle swarm;
[0032] Until the classification accuracy difference is less than or equal to the preset difference, the selected data attribute values in the current global optimal particle are used as the constraint conditions of the corresponding selected data attributes in the initial classification basis to obtain the preset data classification rule set.
[0033] Optionally, for the initial classification basis of each initial data classification rule in the initial data classification rule set, using a particle swarm algorithm, according to the data features of all corresponding selected data attributes in part of the business data, to determine the constraint conditions of each selected data attribute in the initial classification basis, after obtaining the step of the preset data classification rule set, the method further comprises:
[0034] Using the non-maximum suppression algorithm, according to the classification accuracy value and coverage value of each data classification rule in the preset data classification rule set, the preset data classification rule set is optimized to obtain the target data classification rule set; wherein the coverage is the coverage of the data classification rule in part of the business data;
[0035] The step of determining the data label of each data row that meets the data classification rule in the plurality of data sources by using each data classification rule in the preset data classification rule set includes:
[0036] The target data classification rules in the target data classification rule set are used to determine data labels of each data row in multiple data sources that meets the target data classification rules.
[0037] Optionally, the step of optimizing the preset data classification rule set by using a non-maximum suppression algorithm according to the classification accuracy value and coverage value of each data classification rule in the preset data classification rule set to obtain a target data classification rule set includes:
[0038] Obtaining a current source rule set according to a union of a preset data classification rule set and a target rule feature population;
[0039] For each current source rule in the current source rule set, obtain the intersection-and-union ratio of the current result according to the marking result of the current source rule on part of the business data;
[0040] Determine the current optimal source rule in the current source rule set according to the current result intersection and union ratio corresponding to each current source rule in the current source rule set;
[0041] If the classification accuracy value of the current optimal source rule is greater than or equal to the preset classification accuracy tolerance, and the coverage value of the current optimal source rule is greater than or equal to the preset coverage tolerance, then a temporary rule set is obtained according to the union of the current optimal source rule and the current rule set;
[0042] If the sum of the temporary result intersection-and-union ratios of the temporary marking results of all temporary rules in the temporary rule set is greater than the sum of the current result intersection-and-union ratios of all current result intersection-and-union ratios in the current source rule set, the current rule set is updated to the temporary rule set;
[0043] Delete the current optimal source rule in the current source rule set to obtain the target source rule set;
[0044] Taking the target source rule set as the current source rule set, returning to the step of executing the marking result of the current source rule for each current source rule in the current source rule set on part of the business data, and obtaining the intersection-union ratio of the current result according to the marking result of the current source rule;
[0045] Until the target source rule set is empty, the current rule set is used as the target data classification rule set.
[0046] Optionally, after the step of using the logical view table and the attribute virtual table as data query views to obtain data fusion results, the method further includes:
[0047] When receiving a query request, obtain the corresponding target data label;
[0048] According to the target data label, determine the target data attribute from the logical view table;
[0049] According to the target data attributes, the target source information is determined from the attribute virtual table;
[0050] According to the target source information, the target data is obtained from the corresponding target data source.
[0051] In addition, to achieve the above purpose, the present application also proposes a data fusion device, which includes:
[0052] A data labeling module, used to determine the data label of each data row that meets the data classification rule in multiple data sources by using each data classification rule in a preset data classification rule set; wherein one data classification rule corresponds to one data label;
[0053] An information extraction module is used to extract, for each data label, source information of selected data attributes in each data row corresponding to the data label from multiple data sources; wherein the selected data attributes are the classification basis of the data classification rule, there is a first corresponding relationship between the data label and the selected data attributes, and there is a second corresponding relationship between the selected data attributes and the source information;
[0054] The information fusion module is used to generate a data query view of multiple data sources according to all the first corresponding relationships and all the second corresponding relationships as a data fusion result of the multiple data sources; wherein the data query view is used to return the target data queried from the multiple data sources according to the query request when a query request is received.
[0055] In addition, to achieve the above objectives, the present application also proposes a data fusion device, which includes: a memory, a processor, and a data fusion program stored in the memory and executable on the processor, wherein the data fusion program is configured to implement the steps of the data fusion method as described above.
[0056] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, on which a data fusion program is stored, and when the data fusion program is executed by a processor, the steps of the data fusion method as described above are implemented.
[0057] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a data fusion program. When the data fusion program is executed by a processor, the steps of the data fusion method as described above are implemented.
[0058] The above one or more technical solutions provided by this application may have the following advantages or at least achieve the following technical effects:
[0059] The present application provides a data fusion method, apparatus, device, storage medium and product, which use each data classification rule in a preset data classification rule set to determine the data label of each data row that meets the data classification rule in multiple data sources; wherein one data classification rule corresponds to one data label; for each data label, extract the source information of the selected data attribute in each data row corresponding to the data label from multiple data sources; wherein the selected data attribute is the classification basis of the data classification rule, there is a first corresponding relationship between the data label and the selected data attribute, and there is a second corresponding relationship between the selected data attribute and the source information; according to all the first corresponding relationships and all the second corresponding relationships, generate data query views of multiple data sources as the data fusion result of multiple data sources; wherein the data query view is used to return the target data queried from the multiple data sources according to the query request when a query request is received.
[0060] Therefore, the present application determines the data labels of each data row of multiple data sources by utilizing each data classification rule in a preset data classification rule set, extracts the source information of the selected data attribute in the data row corresponding to each data label, and generates a data query view as a data fusion result of multiple data sources according to a first correspondence between the data label of each data classification rule and the selected data attribute in the classification basis of the data classification rule, and a second correspondence between the selected data attribute and the source information of the selected data attribute; in the data fusion process, it is only necessary to determine the data label of the data row, and it is also only necessary to extract the source information of the selected data attribute in the data row, without extracting the actual business data. In the data query view, there is only a correspondence between the selected data attribute and the source information and the data label, and there is no actual business data, so that the data fusion method of the present application does not need to perform preprocessing and migration operations on a large amount of business data in multiple data sources, avoids large-scale data transmission and frequent cross-domain access, reduces the delay and bandwidth pressure of cross-domain data fusion, and improves data fusion efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.
[0062] Figure 1 A schematic diagram of the structure of a data fusion device in a hardware operating environment involved in an embodiment of the present application;
[0063] Figure 2This is a flow chart of the first embodiment of the data fusion method of the present application;
[0064] Figure 3 A schematic diagram of data classification rules provided for the data fusion method of this application;
[0065] Figure 4 is a schematic diagram of an exemplary logical entity table;
[0066] Figure 5 is a schematic diagram of an exemplary attribute virtual table;
[0067] Figure 6 It is a schematic diagram of an exemplary mapping relationship between entity table-attribute virtual table-logical entity table;
[0068] Figure 7 A schematic diagram of a wide table of some business data provided for the data fusion method of this application;
[0069] Figure 8 This is a module diagram of the first embodiment of the data fusion device of the present application.
[0070] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0071] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0072] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0073] In this application, the term "comprises", "includes" or any other variation thereof is intended to cover non-exclusive inclusion, so that a device or system including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such a device or system. In the absence of more restrictions, an element defined by the sentence "includes..." does not exclude the presence of other identical elements in the device or system including the element.
[0074] With the continuous generation and accumulation of business data, the scale of data clusters has expanded rapidly. The traditional centralized center computing architecture can no longer meet the storage, management and computing needs of data across regions and platforms. Therefore, in industries such as communications and the Internet, the solution to break through the bottleneck of data cluster capacity is to gradually evolve from the vertical expansion of the original physically centralized single center to a multi-center distributed cross-domain collaborative computing architecture, forming a situation where multiple data centers collaborate to support upper-level global business. However, in the distributed cross-domain collaborative computing process, the heterogeneity of the structure and format of the data stored in each data center for the same information has become a problem in realizing global big data analysis using cross-domain data.
[0075] In related technologies, the concept of cross-domain data fusion is proposed for wide-area computing of cross-domain heterogeneous data. Data fusion solutions include:
[0076] 1. Use data integration and ETL (Extract-Transform-Load) tools to extract business data from different data sources, and perform format conversion, cleansing, and integration for unified data management and analysis.
[0077] 2. Based on data warehouse modeling, use the data warehouse to store and manage cross-domain data, and integrate data from different data sources into a centralized data warehouse.
[0078] In summary, when fusing multi-source heterogeneous data, a large amount of data from multiple data sources needs to be preprocessed and migrated to establish a fused data warehouse or data lake, which involves large-scale data transmission and frequent cross-domain access, increasing the latency and bandwidth pressure of cross-domain data fusion, making data fusion efficiency low.
[0079] In view of the technical problem of low efficiency of data fusion methods, this application provides a data fusion method, device, equipment, storage medium and product. The overall idea is as follows:
[0080] The method includes: using each data classification rule in a preset data classification rule set to determine the data label of each data row that meets the data classification rule in multiple data sources; wherein one data classification rule corresponds to one data label; for each data label, extracting the source information of the selected data attribute in each data row corresponding to the data label from multiple data sources; wherein the selected data attribute is the classification basis of the data classification rule, there is a first corresponding relationship between the data label and the selected data attribute, and there is a second corresponding relationship between the selected data attribute and the source information; according to all the first corresponding relationships and all the second corresponding relationships, a data query view of multiple data sources is generated as a data fusion result of multiple data sources; wherein the data query view is used to return the target data queried from the multiple data sources according to the query request when a query request is received.
[0081] The present application provides a data fusion method, device, equipment, storage medium and product. By using each data classification rule in a preset data classification rule set, the data label of each data row of multiple data sources is determined, and the source information of the selected data attribute in the data row corresponding to each data label is extracted. According to the first corresponding relationship between the data label of each data classification rule and the selected data attribute in the classification basis of the data classification rule, and the second corresponding relationship between the selected data attribute and the source information of the selected data attribute, a data query view is generated as the data fusion result of multiple data sources; in the data fusion process, it is only necessary to determine the data label of the data row, and it is also only necessary to extract the source information of the selected data attribute in the data row, and there is no need to extract the actual business data. In the data query view, there is only the corresponding relationship between the selected data attribute and the source information and the data label, and there is no actual business data, so that the data fusion method of the present application does not need to perform preprocessing and migration operations on a large amount of business data in multiple data sources, avoids large-scale data transmission and frequent cross-domain access, reduces the delay and bandwidth pressure of cross-domain data fusion, and improves data fusion efficiency.
[0082] The following is a detailed description of the data fusion method, device, equipment, storage medium and product used in the implementation of the technology of this application:
[0083] Reference Figure 1 , Figure 1 This is a schematic diagram of the structure of the data fusion device of the hardware operating environment involved in the embodiment of the present application.
[0084] like Figure 1 As shown, the device may include: a processor 1001, such as a CPU, a user interface 1003, a memory 1005, and a communication bus 1002. The communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a user terminal such as a computer, a personal computer, a notebook, and a smart device. Optionally, the user interface 1003 may also be a display screen (Display), an input unit such as a keyboard (Keyboard), etc. The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0085] It is understandable that the data fusion device may further include a network interface 1004, which may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface). Optionally, the data fusion device may further include an RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, and the like.
[0086] Those skilled in the art will understand that Figure 1 The device structure shown in the figure does not constitute a limitation on the data fusion device, and may include more or less components than those shown in the figure, or combine certain components, or arrange the components differently.
[0087] Based on the above hardware structure but not limited to the above hardware structure, refer to Figures 2 to 7 , Figure 2 This is a flow chart of the first embodiment of the data fusion method of this application. Figure 3 A schematic diagram of data classification rules provided for the data fusion method of this application, Figure 4 is a schematic diagram of an exemplary logical entity table, Figure 5 is a schematic diagram of an exemplary attribute virtual table, Figure 6 is a schematic diagram of an exemplary mapping relationship between entity table, attribute virtual table and logical entity table. Figure 7 A schematic diagram of a wide table of some business data provided for the data fusion method of this application.
[0088] The present application embodiment provides a data fusion method, which may include:
[0089] Step S100: using each data classification rule in a preset data classification rule set to determine a data label for each data row in a plurality of data sources that complies with the data classification rule.
[0090] Among them, one data classification rule corresponds to one data label.
[0091] In this embodiment, the execution subject is as follows Figure 1 The data fusion device shown may be a physical server including an independent host, or may be a virtual server carried by a host cluster.
[0092] It should be noted that multiple data sources can be heterogeneous data sources under the same business scenario, and each data source stores the source business data under the business scenario. The source business data is all business data formed by completing business tasks under the business scenario. In the data source, the source business data is stored in the entity table. Each field in the entity table corresponds to a data attribute, and each data row in the entity table may include multiple source business data of a business task. The data features of the source business data in the entity table may include continuous and discrete types. The continuous source business data may be a data range, and the discrete source business data may be a value, text, or symbol, etc. Therefore, this embodiment can mark the data rows that meet different data classification rules with different data labels, realize the classification of the source business data, and determine the data labels corresponding to each data row in the data source.
[0093] In actual business scenarios, the continuous source business data of the same data attribute will be in different numerical ranges due to different task requirements of business tasks, and the same discrete source business data will also be represented by different numerical values, texts or symbols due to different task requirements of business tasks. Therefore, data labels can also be used to represent data labels corresponding to different task requirements in a business scenario, so that when marking each data row, the influence of the data characteristic value of the source business data on the data label can also be considered. That is, the classification basis of the data classification rule can include not only the selected data attribute, but also the constraint conditions corresponding to the selected data attribute in the classification basis. Among them, the data label can be a credit risk label or a data risk label, etc. When used specifically, the data label corresponding to the data classification rule can be set in combination with the constraint conditions corresponding to the selected data attribute and the actual business scenario to achieve the marking of each data row with different task requirements in a business scenario.
[0094] In one example, taking a mobile communication scenario as an example, a row of source business data in an entity table may generally include user data and user call data, user data may include user age and user location, etc., user call data may include late-night call duration, number of calls and call location, etc., that is, data attributes in the entity table may include user age, user location, number of late-night calls, number of calls and call location. If a late-night call duration greater than a preset duration is marked as a call abnormality, and a late-night call duration less than or equal to a preset duration is marked as a call normal, then the data label includes call abnormality and call normal, and the classification basis of the data classification rule in the preset data classification rule set may include late-night call duration and constraint conditions greater than the preset duration, and late-night call duration and constraint conditions less than or equal to the preset duration. At this time, each row of source business data is marked according to the data classification rule, and the data row where the source business data with the selected data attribute of late-night call duration and the late-night call duration greater than the preset duration is located can be marked as a call abnormality, and the data row where the source business data with the selected data attribute of late-night call duration and the late-night call duration less than or equal to the preset duration is located can be marked as a call normal.
[0095] It can be understood that the preset data classification rule set can be extracted from the business data sample set through the machine learning model. The business data sample set can be a sample data table. Each field in the sample data table corresponds to a data attribute. Each row of business data in the sample data table corresponds to a data label. The data label of each row of business data in the sample data table is determined according to the data attributes, data characteristics and actual business scenarios of the row of business data. In actual use, the machine learning model can first extract the preset data classification rule set from the business data sample set, and then use the data labels of each row of business data covered by each data classification rule in the sample data table as the data labels of the data classification rules, wherein the data labels of at least one row of business data covered by a data classification rule are the same. The business data sample set can be obtained according to actual usage requirements.
[0096] In this embodiment, the data classification rules can be used as follows: Figure 3 The "IF-THEN" structure shown in the figure indicates that the "IF" clause is the classification basis of the data classification rule, and the "THEN" clause is the data label corresponding to the data classification rule. represents the i-th data classification rule, represents the selected data attribute of the mth discrete data, The data feature constraint condition representing the selected data attribute of the mth discrete data is the kth data feature, Represents the selected data attribute of the nth continuous data, [ , ] represents the range of constraints for the selected data attributes of the mth discrete data. Represents the data label of the i-th data classification rule.
[0097] That is, the classification basis of a data classification rule may include at least one selected data attribute and the constraints corresponding to each selected data attribute. In a specific implementation, the data attributes of all source business data in any data row need to include at least one selected data attribute at the same time and satisfy the constraints corresponding to the selected data attributes before any data row can be marked with the data label corresponding to the data classification rule.
[0098] In one example, the data classification rule is: "IF: Number of late-night calls > 10 & Number of outgoing calls > 5 THEN & "Location of calls is Beijing"". The data attributes selected in the classification basis of the data classification rule include "Number of late-night calls" and "Number of outgoing calls", the corresponding constraints are ">10" and ">5, and the data label is "Location of calls is Beijing".
[0099] Step S400: for each data tag, extract source information of selected data attributes in each data row corresponding to the data tag from multiple data sources.
[0100] Among them, the selected data attribute is the classification basis of the data classification rule, there is a first corresponding relationship between the data label and the selected data attribute, and there is a second corresponding relationship between the selected data attribute and the source information.
[0101] In this embodiment, the same data tag may exist in different data sources and different entity tables. The source information may include the data source information, entity table information, and field information of the selected data attribute. The data source information may be a database name, the entity table information may be an entity table name in the database, and the field information may include a field name and a field type, etc.
[0102] Step S500: Generate data query views of multiple data sources according to all first corresponding relationships and all second corresponding relationships as a data fusion result of the multiple data sources.
[0103] The data query view is used to return target data obtained by querying from multiple data sources according to the query request when a query request is received.
[0104] In this embodiment, the data query view includes a first correspondence and a second correspondence, and there is no actual business data. For a data label, if the classification basis of a data classification rule is a selected data attribute, the number of first correspondences between the data label and the selected data attribute in the data query view is 1, and if the classification basis of a data classification rule is multiple selected data attributes, the number of first correspondences between the data label and the selected data attribute in the data query view is the same as the number of selected data attributes. For the second correspondence between the selected data attribute and the source information, the data query view may include the second correspondence between the selected data attribute and different source information, that is, the number of second correspondences corresponding to a selected data attribute in the data query view is determined according to the number of source information of the selected data attribute in all data sources.
[0105] In this embodiment, step S500 may include:
[0106] Step S510: Generate a logical view table according to all first corresponding relationships.
[0107] Step S520: Generate an attribute virtual table according to all second corresponding relationships.
[0108] Step S530: Use the logical view table and the attribute virtual table as data query views to obtain data fusion results.
[0109] In this embodiment, the data query view may be implemented through a table, and the data query view may include a logical view table and an attribute virtual table.
[0110] The logical view table includes all first correspondences of all data tags. The fields of the logical view table may include data tags and attribute information of selected data attributes, etc. The attribute information may include the attribute name of the selected data attribute, the field type and description of the field.
[0111] In a specific implementation, a row of data in a logical view table includes a data label and attribute information of a selected data attribute in the classification basis corresponding to the data label. Figure 4 In the example shown, the data label includes potential_customers (view name), and the selected data attributes of the source business data marked by the data label include name (selected data attribute 1) and age (selected data attribute 2). The field type of the name (customer name) field in the entity table is String, and the description is customer name; the field type of the age (customer age) field is Int, and the description is customer name and customer age.
[0112] The fields of the attribute virtual table may include the attribute information, source information, and data update time of the selected data attribute. The attribute information may include the attribute type and attribute name of the selected data attribute. The attribute type may include basic attributes and extended attributes. The basic attributes may be the selected data attributes in the classification basis of the data classification rule. The extended attributes may be the selected data attributes related to the basic attributes, which are obtained according to the metadata extension of the basic attributes when used specifically.
[0113] It can be understood that when the attribute type includes an extended attribute, the source information may also include source information of source business data of the extended attribute.
[0114] In a specific implementation, a row of data in the attribute virtual table includes attribute information of a selected data attribute and a piece of source information of the marked business data of the selected data attribute.
[0115] In such Figure 5 In the example shown, the selected data attributes in the classification basis of a data classification rule include the basic attribute age, and the extended attribute address. The source information of the tagged business data with the selected data attribute age includes source 1 (data source information), db.person (entity table information), nian_ji (field name), Int (field type), and 20230518 (update time), as well as source 2 (data source information), db.students (entity table information), nian_ling (field name), String (field type), and 20230518 (update time). The source information of the source business data with the selected data attribute address includes source 1 (data source information), db.person (entity table information), location (field name), Text (field type), and 20230510 (update time).
[0116] In such Figure 6In the example shown, entity table 1 and entity table 2 are entity tables in data source 1, and entity table 3 is an entity table in data source 2. For a data tag, the corresponding classification basis is the selected data attribute A. If there are two data rows in entity table 1 that meet the data classification rule corresponding to the data tag, there is one data row in entity table 2 that meets the data classification rule corresponding to the data tag, and there is one data row in entity table 3 that meets the data classification rule corresponding to the data tag, then the second correspondence in entity table 1 includes a correspondence 1 between two A and the source information of A, the second correspondence in entity table 2 includes a correspondence 2 between A and the source information of A, and the second correspondence in entity table 3 includes a correspondence 3 between A and the source information of A. The entity table information in the source information of correspondence 1 and correspondence 2 is different, the data source information, entity table information and data update time in the source information of correspondence 1 and correspondence 3 are all different, the data source information, entity table information and data update time in the source information of correspondence 2 and correspondence 3 are also different, and the selected data attribute information in correspondence 1, correspondence 2 and correspondence 3 are all the same. Therefore, when generating the attribute virtual table, it is necessary to add a corresponding relationship 1, a corresponding relationship 2, and a corresponding relationship 3 to the attribute virtual table.
[0117] Furthermore, after step S530, the method may also include: obtaining a corresponding target data tag when receiving a query request; determining a target data attribute from a logical view table according to the target data tag; determining target data source information from an attribute virtual table according to the target data attribute; and obtaining target data from a corresponding target data source according to the target data source information.
[0118] In this embodiment, the target data tag can be determined according to the query condition in the query request.
[0119] In a specific implementation, according to the query requirements, after obtaining the target data tag, the logical view table can be traversed to determine whether the target data tag exists in the logical view table. If the target data tag does not exist in the logical view table, an error prompt is returned. If the target data tag exists in the logical view table, at least one target data attribute corresponding to the target data tag is determined from the logical view table; after determining at least one target data attribute, the target data source information corresponding to each target data attribute is determined from the attribute virtual table, and according to each target data source information, a query is performed in the corresponding target data source to obtain at least one target data.
[0120] As an implementation manner, before step S300, the method may include:
[0121] Step S100: Determine a preset data classification rule set from part of the business data from multiple data sources.
[0122] Step S200: For each data classification rule, determine the data label of the data classification rule according to the corresponding classification basis.
[0123] In this embodiment, the business data sample set includes a small-scale partial business data from multiple data sources, and the partial business data can be randomly extracted from all source business data. In actual use, the source business data of a small-scale business task from multiple data sources can be randomly selected to obtain partial business data.
[0124] like Figure 7 As shown, partial business data from multiple data sources can be merged into a wide table. A row of data in the wide table can include all source business data corresponding to a business task in a data source. The field name of the wide table includes all data attributes in partial business data. X 1 ~X N And data label Label, where N is the total number of data attributes in some business data, M is the total number of business tasks in some business data, C is the total number of data rows covered by all data classification rules in the wide table in the preset data classification rule set. C j and C k Corresponding to j The number of data rows covered by each data classification rule in the wide table and the k The number of data rows covered by each data classification rule in the wide table, y j For the j The data labels corresponding to the data classification rules are: y k For the k The data labels corresponding to the data classification rules are: S For the j Data classification rules to k The total number of selected data attributes in the data classification rules.
[0125] In specific use, the machine learning model can be used to first extract a preset data classification rule set from the wide table, and then determine the corresponding data label based on the classification basis of each data classification rule. The machine learning model can also be used to generate data labels for each row of data in the wide table, and then the preset data classification rule set is extracted from the wide table, and then the data labels of each row of data covered by each data classification rule in the wide table are used as the data labels of the corresponding data classification rules.
[0126] Furthermore, the classification basis of a data classification rule includes at least one selected data attribute, and step S100 may include:
[0127] Step S110: using a genetic algorithm, according to all data features in part of the business data, determine at least one selected data attribute in each classification basis, and obtain an initial data classification rule set.
[0128] Step S120: For the initial classification basis of each initial data classification rule in the initial data classification rule set, use the particle swarm algorithm to determine the constraint conditions of each selected data attribute in the initial classification basis according to the data characteristics of all corresponding selected data attributes in part of the business data, and obtain the preset data classification rule set.
[0129] In this embodiment, the machine learning model mentioned above may be a heuristic rule learning model.
[0130] In a specific implementation, the heuristic rule learning model can first determine the data label of each row of data in the wide table based on all data attributes and all data features in the wide table, and then use the genetic algorithm to determine at least one selected data attribute in the classification basis of each data classification rule, and use the particle swarm algorithm to determine the constraint conditions of the selected data attribute in each data classification rule to obtain a preset data classification rule set, and then for each data classification rule, use the data label of at least one row of data covered by the data classification rule in the wide table as the data label of the data classification rule. Among them, the data labels of at least one row of data covered by a data classification rule in the wide table are the same.
[0131] In this embodiment, step S110 may include: constructing an initial data attribute population based on all data features; iterating the initial data attribute population according to a preset crossover probability, a preset mutation probability and a preset number of iterations to obtain a target data attribute population; using each target individual in the target data attribute population, determining at least one selected data attribute in each corresponding classification basis to obtain an initial data classification rule set.
[0132] In this embodiment, the length of an individual in the data attribute population is the total number of data attributes in the wide table, and the population size is determined according to the size of the wide table, wherein the individual is a binary chromosome. The preset crossover probability, the preset mutation probability, and the preset number of iterations can be set according to actual use requirements, and preferably, the preset crossover probability, the preset mutation probability, and the preset number of iterations can be set in combination with the computing power of the device and / or the iteration accuracy.
[0133] In a specific implementation, the length of the individual is determined according to the total number of data attributes in the wide table, the population size is determined according to the scale of the wide table, each initial individual in the initial population is initialized according to all data features in the wide table, and the initial data attribute population is iterated according to a preset crossover probability, a preset mutation probability and a preset number of iterations to obtain a target data attribute population. Since the individual is a binary individual, for each target individual, each data attribute with a value of 1 or 0 in the target individual can be used as a selected data attribute for classification of the data classification rule corresponding to the target individual. Preferably, for each target individual, each data attribute with a value of 1 in the target individual is used as a selected data attribute for classification of the data classification rule corresponding to the target individual.
[0134] It should be noted that the heuristic rule learning model of this embodiment can also introduce the idea of Taboo Search (TS). Before each iteration, the rows of data covered by the initial data classification rules generated in the short term are deleted from the wide table, and the rows of data deleted in the long term are returned to change the distribution of the initial data classification rule set in the feature dimension. In other words, the rows of data covered by the generated initial data classification rules can be returned to the wide table again in subsequent iterations, so that more effective initial data classification rules can be discovered through the different feature dimensions of each row of data.
[0135] In this embodiment, step S120 may include: for each selected data attribute in the initial classification basis, according to all data features of the selected data attribute in the partial business data, determining the constrained search space of the selected data attribute; constructing an initial particle swarm according to the total number of selected data attributes in the initial classification basis and the constrained search space of each selected data attribute in the initial classification basis; determining an initial global optimal particle in the initial particle swarm according to the initial classification accuracy value of each initial particle in the initial particle swarm; wherein the classification accuracy is the classification accuracy of the data classification rule for marking the partial business data; using the initial particle swarm as the current particle swarm, and using the initial global optimal particle as the current global optimal particle; updating the current particle swarm according to the preset iteration parameter to obtain the target particle swarm; and determining the initial global optimal particle in the target particle swarm according to the target value of each target particle in the target particle swarm. The classification accuracy value is used to determine the target global optimal particle in the target particle swarm; if the current total classification accuracy value of the current particle swarm is less than the target total classification accuracy value of the target particle swarm, the target particle swarm is used as the current particle swarm, and the target global optimal particle is used as the current global optimal particle; it is determined whether the classification accuracy difference between the current classification accuracy value of the current global optimal particle and the historical classification accuracy value of the previous historical global optimal particle is less than or equal to the preset difference; if the classification accuracy difference is greater than the preset difference, it is returned to execute the step of updating the current particle swarm according to the preset iteration parameter to obtain the target particle swarm; until the classification accuracy difference is less than or equal to the preset difference, each selected data attribute value in the current global optimal particle is used as the constraint condition of the corresponding selected data attribute in the initial classification basis to obtain the preset data classification rule set.
[0136] In this embodiment, for each initial data classification rule in the initial data classification rule set, a particle swarm is constructed to optimize the classification accuracy of each particle in the particle swarm in the wide table. After satisfying the iteration requirements, the constraint conditions of each selected data attribute in the initial classification basis of the initial data classification rule are determined according to the global optimal particle. The preset iteration parameter and the preset difference are set according to the actual use requirements.
[0137] Among them, the length of the particle is the total number of selected data attributes in the initial classification basis, and the search space of each particle in the particle is determined according to all data features of the selected data attributes corresponding to the particle in the wide table. The optimization goal of the particle swarm algorithm is as follows:
[0138]
[0139] Represents the classification accuracy of data classification rules in wide tables, C i For the i The number of data rows covered by each data classification rule in the wide table, l is the total number of data classification rules.
[0140] Furthermore, after step S120, the method may further include:
[0141] Step S130: using a non-maximum suppression algorithm, according to the classification accuracy value and coverage value of each data classification rule in the preset data classification rule set, the preset data classification rule set is optimized to obtain a target data classification rule set.
[0142] Among them, the coverage rate refers to the coverage of data classification rules in some business data.
[0143] Correspondingly, step S300 may include: using each target data classification rule in the target data classification rule set to determine the data label of each data row in the multiple data sources that meets the target data classification rule.
[0144] In this embodiment, the preset data classification rule set may also be pruned according to the classification accuracy value and coverage value of each data classification rule in the preset data classification rule set to optimize the classification performance of the preset data classification rule set.
[0145] The coverage rate is calculated as follows:
[0146]
[0147] is the coverage rate, M The total number of rows of data in the wide table.
[0148] It should be noted that, in some implementations, a non-maximum suppression algorithm may also be used to optimize the preset data classification rule set according to the classification accuracy value and rule complexity value of each data classification rule in the preset data classification rule set to obtain a target data classification rule set.
[0149] The calculation of rule complexity is as follows:
[0150]
[0151] is the complexity of the rules.
[0152] In this embodiment, step S130 may include: obtaining a current source rule set according to the union of a preset data classification rule set and a target rule feature population; for each current source rule in the current source rule set, obtaining a current result intersection-and-union ratio according to the marking result of the current source rule on part of the business data; determining the current optimal source rule in the current source rule set according to the current result intersection-and-union ratio corresponding to each current source rule in the current source rule set; if the classification accuracy value of the current optimal source rule is greater than or equal to the preset classification accuracy tolerance, and the coverage value of the current optimal source rule is greater than or equal to the preset coverage tolerance, then according to the current optimal source rule and the current rule set, Union, get a temporary rule set; if the sum of the temporary result intersection-union ratios of the temporary marking results of all temporary rules in the temporary rule set is greater than the sum of the current result intersection-union ratios of all current result intersection-union ratios in the current source rule set, then update the current rule set to a temporary rule set; delete the current optimal source rule in the current source rule set to get the target source rule set; take the target source rule set as the current source rule set, return to execute the steps of obtaining the current result intersection-union ratio for each current source rule in the current source rule set according to the marking results of the current source rule for part of the business data; until the target source rule set is empty, take the current rule set as the target data classification rule set.
[0153] In this embodiment, the preset classification accuracy tolerance and the preset coverage tolerance are set according to actual use requirements. When the non-maximum suppression algorithm is iterated for the first time, the current rule set is an empty set.
[0154] The non-maximum suppression algorithm takes the intersection-and-union ratio of the labeling results of each data classification rule as the optimization target. The intersection-and-union ratio of the labeling results is calculated as follows:
[0155]
[0156] in, IoU is the intersection-over-union ratio of the labeling results, TP is the number of true positive examples in the labeled results, FP is the number of false positives in the labeling results, FN is the number of false negative examples in the labeling results.
[0157] It can be understood that after the step of "determining the current optimal source rule in the current source rule set based on the current result intersection-union ratio corresponding to each current source rule in the current source rule set", the method can also include: if the classification accuracy value of the current optimal source rule is less than the preset classification accuracy tolerance, or the coverage value of the current optimal source rule is less than the preset coverage tolerance, then jump to execute the step of "deleting the current optimal source rule in the current source rule set to obtain the target source rule set".
[0158] After the step of "obtaining a temporary rule set based on the union of the current optimal source rule and the current rule set", the method may further include: if the sum of the intersection and union ratios of the temporary results is less than or equal to the sum of the intersection and union ratios of the current results, then jumping to the step of "deleting the current optimal source rule in the current source rule set to obtain the target source rule set".
[0159] On the one hand, a data fusion method is provided in this embodiment. In the data fusion process, it is only necessary to determine the data label of the data row, and it is also only necessary to extract the source information of the selected data attribute in the data row, without extracting the actual business data. In the data query view, there is only the corresponding relationship between the selected data attribute and the source information and the data label, and there is no actual business data, so that the data fusion method of this application does not need to perform operations such as preprocessing and migration on a large amount of business data in multiple data sources, avoiding large-scale data transmission and frequent cross-domain access, reducing the delay and bandwidth pressure of cross-domain data fusion, and improving data fusion efficiency. Moreover, in the data fusion process, it does not involve operations such as preprocessing and migration on a large amount of business data in multiple data sources, which also reduces the computational overhead of the data fusion method. In addition, in the data query view, there is only the corresponding relationship between the selected data attribute and the source information and the data label. When querying data, it can effectively improve the efficiency of returning query results and reduce the cost of cross-domain data analysis.
[0160] Secondly, this embodiment is based on a heuristic rule learning model of a hybrid heuristic algorithm. When extracting data classification rules from small-scale partial business data from multiple data sources, when faced with partial business data involving discrete data and continuous data, and with missing values and unbalanced data labels, the classification accuracy and coverage of the obtained data classification rule set are both high, making the data classification rule set more reliable.
[0161] Thirdly, the data fusion method of this embodiment is a low-overhead and reusable cross-domain data fusion method, which is applicable to various business scenarios and has high versatility.
[0162] Based on the same inventive concept, Figure 8 , Figure 8 This is a module diagram of the first embodiment of the data fusion device of the present application. The present application also proposes a data fusion device, which may include:
[0163] The data labeling module 10 is used to determine the data label of each data row that meets the data classification rule in the plurality of data sources by using each data classification rule in the preset data classification rule set; wherein one data classification rule corresponds to one data label;
[0164] The information extraction module 20 is used to extract, for each data tag, source information of the selected data attribute in each data row corresponding to the data tag from multiple data sources; wherein the selected data attribute is a classification basis of the data classification rule, there is a first corresponding relationship between the data tag and the selected data attribute, and there is a second corresponding relationship between the selected data attribute and the source information;
[0165] The information fusion module 30 is used to generate a data query view of multiple data sources according to all the first corresponding relationships and all the second corresponding relationships as a data fusion result of the multiple data sources; wherein the data query view is used to return the target data queried from the multiple data sources according to the query request when a query request is received.
[0166] Furthermore, the device may also include:
[0167] The rule extraction module is used to determine a preset data classification rule set from part of the business data of multiple data sources; for each data classification rule, the data label of the data classification rule is determined according to the corresponding classification basis.
[0168] For more implementation details in the specific implementation of the above data fusion device, please refer to the description of the specific implementation of the data fusion method in any implementation of the above embodiments. For the sake of brevity of the specification, they will not be repeated here.
[0169] In addition, an embodiment of the present application further proposes a storage medium, on which a data fusion program is stored, and when the data fusion program is executed by a processor, the steps of the data fusion method as described above are implemented. Therefore, it will not be repeated here. In addition, the description of the beneficial effects of adopting the same method will not be repeated. For technical details not disclosed in the computer-readable storage medium embodiment involved in the present application, please refer to the description of the method embodiment of the present application. As an example, the program instructions can be deployed to be executed on one computing device, or on multiple computing devices located at one location, or on multiple computing devices distributed at multiple locations and interconnected by a communication network.
[0170] In addition, an embodiment of the present application also proposes a computer program product, including a data fusion program, which implements the steps of the above-mentioned data fusion method when executed by a processor.
[0171] The specific implementation of the computer program product of the present application is basically the same as the various embodiments of the above-mentioned data fusion method, and will not be repeated here.
[0172] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a computer-readable storage medium (such as ROM / RAM, magnetic disk, optical disk) as above, and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of various embodiments of the present invention.
[0173] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A data fusion method, characterized in that: The method comprises: Using each data classification rule in a preset data classification rule set, determine the data label of each data row in multiple data sources that meets the data classification rule; wherein one data classification rule corresponds to one data label; For each of the data tags, extract the source information of the selected data attribute in each of the data rows corresponding to the data tag from the multiple data sources; wherein the selected data attribute is the classification basis of the data classification rule, there is a first corresponding relationship between the data tag and the selected data attribute, and there is a second corresponding relationship between the selected data attribute and the source information; According to all the first corresponding relationships and all the second corresponding relationships, a data query view of the multiple data sources is generated as a data fusion result of the multiple data sources; wherein the data query view is used to return target data queried from the multiple data sources according to the query request when a query request is received; The step of generating the data query views of the multiple data sources as the data fusion result of the multiple data sources according to all the first corresponding relationships and all the second corresponding relationships includes: Generate a logical view table according to all the first corresponding relationships; Generate an attribute virtual table according to all the second corresponding relationships; The logical view table and the attribute virtual table are used as the data query view to obtain the data fusion result.
2. The method according to claim 1, characterized in that Before the step of using each data classification rule in a preset data classification rule set to determine the data label of each data row in multiple data sources that meets the data classification rule, the method further includes: Determining the preset data classification rule set from part of the business data of the multiple data sources; For each of the data classification rules, the data label of the data classification rule is determined according to the corresponding classification basis.
3. The method according to claim 2, characterized in that The classification basis of one of the data classification rules includes at least one of the selected data attributes, and the step of determining the preset data classification rule set from part of the business data of the multiple data sources includes: Using a genetic algorithm, according to all data features in the partial business data, determine at least one of the selected data attributes in each of the classification bases to obtain an initial data classification rule set; For the initial classification basis of each initial data classification rule in the initial data classification rule set, a particle swarm algorithm is used to determine the constraint conditions of each selected data attribute in the initial classification basis according to the data characteristics of all corresponding selected data attributes in the part of the business data, so as to obtain the preset data classification rule set.
4. The method according to claim 3, characterized in that The step of using a genetic algorithm to determine at least one selected data attribute in each of the classification bases according to all data features in the partial business data to obtain an initial data classification rule set includes: According to all the data characteristics, construct an initial data attribute population; Iterate the initial data attribute population according to a preset crossover probability, a preset mutation probability and a preset number of iterations to obtain a target data attribute population; By using each target individual in the target data attribute population, at least one selected data attribute in each corresponding classification basis is determined to obtain the initial data classification rule set.
5. The method according to claim 3, characterized in that The step of using a particle swarm algorithm to determine the constraint conditions of each selected data attribute in the initial classification basis according to the data features of all corresponding selected data attributes in the part of the business data to obtain the preset data classification rule set includes: For each of the selected data attributes in the initial classification basis, determining a constrained search space of the selected data attribute according to all of the data features of the selected data attribute in the portion of business data; constructing an initial particle swarm according to the total number of selected data attributes in the initial classification basis and the constrained search space of each of the selected data attributes in the initial classification basis; Determine the initial global optimal particle in the initial particle swarm according to the initial classification accuracy value of each initial particle in the initial particle swarm; wherein the classification accuracy is the classification accuracy of the data classification rule for marking the part of the business data; Taking the initial particle swarm as the current particle swarm, and taking the initial global optimal particle as the current global optimal particle; According to preset iteration parameters, the current particle swarm is updated to obtain a target particle swarm; Determining a target global optimal particle in the target particle swarm according to a target classification accuracy value of each target particle in the target particle swarm; If the current total classification accuracy value of the current particle swarm is less than the target total classification accuracy value of the target particle swarm, the target particle swarm is used as the current particle swarm, and the target global optimal particle is used as the current global optimal particle; Determine whether a classification accuracy difference between a current classification accuracy value of the current global optimal particle and a historical classification accuracy value of a previous historical global optimal particle is less than or equal to a preset difference; If the classification accuracy difference is greater than the preset difference, returning to the step of updating the current particle swarm according to the preset iteration parameter to obtain the target particle swarm; Until the classification accuracy difference is less than or equal to the preset difference, each selected data attribute value in the current global optimal particle is used as the constraint condition of the corresponding selected data attribute in the initial classification basis.
6. The method according to claim 4, characterized in that After the step of determining the constraint conditions of each selected data attribute in the initial classification basis according to the data features of all the corresponding selected data attributes in the part of the business data for the initial classification basis of each initial data classification rule in the initial data classification rule set, and obtaining the preset data classification rule set, the method further comprises: Using a non-maximum suppression algorithm, according to the classification accuracy value and coverage value of each of the data classification rules in the preset data classification rule set, the preset data classification rule set is optimized to obtain a target data classification rule set; wherein the coverage is the coverage of the data classification rule in the part of the business data; The step of using each data classification rule in a preset data classification rule set to determine the data label of each data row in multiple data sources that meets the data classification rule includes: The data labels of the data rows in the plurality of data sources that meet the target data classification rules are determined by using the target data classification rules in the target data classification rule set.
7. The method according to claim 6, characterized in that The step of optimizing the preset data classification rule set by using the non-maximum suppression algorithm according to the classification accuracy value and coverage value of each data classification rule in the preset data classification rule set to obtain the target data classification rule set includes: Obtaining a current source rule set according to a union of the preset data classification rule set and the target rule feature population; For each current source rule in the current source rule set, obtaining a current result intersection-and-union ratio according to a marking result of the current source rule on the portion of business data; Determine the current optimal source rule in the current source rule set according to the current result intersection-and-union ratio corresponding to each current source rule in the current source rule set; If the classification accuracy value of the current optimal source rule is greater than or equal to the preset classification accuracy tolerance, and the coverage value of the current optimal source rule is greater than or equal to the preset coverage tolerance, a temporary rule set is obtained according to the union of the current optimal source rule and the current rule set; If the sum of the temporary result intersection-and-union ratios of the temporary marking results of all temporary rules in the temporary rule set is greater than the sum of the current result intersection-and-union ratios of all the current result intersection-and-union ratios in the current source rule set, then the current rule set is updated to the temporary rule set; Deleting the current optimal source rule in the current source rule set to obtain a target source rule set; Taking the target source rule set as the current source rule set, returning to the step of executing the marking result of the portion of business data according to the current source rule for each current source rule in the current source rule set, and obtaining the intersection-union ratio of the current result; Until the target source rule set is empty, the current rule set is used as the target data classification rule set.
8. The method according to claim 1, characterized in that After the step of using the logical view table and the attribute virtual table as the data query view to obtain the data fusion result, the method further includes: When receiving the query request, obtaining a corresponding target data tag; According to the target data tag, determining the target data attribute from the logical view table; According to the target data attribute, determining the target source information from the attribute virtual table; The target data is obtained from a corresponding target data source according to the target source information.
9. A data fusion device, characterized in that: The device comprises: A data labeling module, used to determine the data label of each data row in a plurality of data sources that meets the data classification rule by using each data classification rule in a preset data classification rule set; wherein one data classification rule corresponds to one data label; An information extraction module, for extracting, for each of the data tags, source information of the selected data attributes in each of the data rows corresponding to the data tag from the multiple data sources; wherein the selected data attributes are the classification basis of the data classification rule, there is a first corresponding relationship between the data tag and the selected data attributes, and there is a second corresponding relationship between the selected data attributes and the source information; An information fusion module, configured to generate a data query view of the multiple data sources according to all the first corresponding relationships and all the second corresponding relationships as a data fusion result of the multiple data sources; wherein the data query view is configured to return target data queried from the multiple data sources according to the query request when a query request is received; The information fusion module is further used to generate a logical view table according to all the first corresponding relationships; generate an attribute virtual table according to all the second corresponding relationships; and use the logical view table and the attribute virtual table as the data query view to obtain the data fusion result.
10. A data fusion device, characterized in that: The device comprises: a memory, a processor, and a data fusion program stored in the memory and executable on the processor, wherein the data fusion program is configured to implement the steps of the data fusion method according to any one of claims 1 to 8.
11. A computer storage medium, characterized in that: The storage medium stores a data fusion program, and when the data fusion program is executed by the processor, the steps of the data fusion method according to any one of claims 1 to 8 are implemented.
12. A computer program product, characterized in that The computer program product comprises a data fusion program, and when the data fusion program is executed by a processor, the steps of the data fusion method according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Data processing method, device and equipment and computer storage medium
CN116226280A
Multi-source heterogeneous data fusion method and device and computer readable storage medium
CN116737817A
