Data fusion method, device, storage medium and electronic equipment
By dividing and merging database data, combined with field type library and validity period filtering, the problem of data loss and accuracy in multi-source data fusion is solved, high-accuracy data fusion is achieved, and the difficulty of traceability is reduced.
Patent Information
- Application Number
- CN202011138097.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-22
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2040-10-22
AI Technical Summary
Existing multi-source data fusion methods result in poor accuracy and comprehensiveness of composite data, which further increases the difficulty of tracing the source.
By dividing all data in the database and performing data fusion on each collection separately to avoid loss of original data, a field type library is used for standardization and cleaning, and target fields are filtered based on validity period and source credibility to generate high-accuracy composite data.
It improves the accuracy and comprehensiveness of composite data and reduces the difficulty of subsequent traceability.
Smart Images

Figure CN112231524B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of data processing, and in particular to a data fusion method, device, storage medium and electronic device. Background Art
[0002] Threat intelligence is evidence-based knowledge, including scenarios, mechanisms, indicators, meanings, and actionable suggestions. This knowledge is about existing or upcoming threats or dangers to assets, and can provide decision-making information for the subject to respond to relevant threats or dangers. In practice, the sources of intelligence data are diverse, such as security vendors, hacker forums, security information, social accounts, threat sharing platforms, etc., which all publish various forms of intelligence data or intelligence materials; and the first problem that the intelligence processing platform needs to solve is the processing of multi-source heterogeneous data, and then connect the processed multi-source intelligence to its own platform to provide unified data services to the outside world.
[0003] The existing multi-source data fusion is mainly based on the iterative fusion processing of the newly acquired original data and the existing latest original data to obtain the latest composite data, that is, the newly acquired original data is fused with the current latest original data to generate a new composite data; then, the newly acquired original data is fused with the composite data obtained last time, and the iteration is repeated. However, in the fusion process, part of the data is removed, making the composite data incomplete, that is, the accuracy and comprehensiveness of the composite data are poor, and it will also make subsequent tracking and tracing more difficult. Summary of the invention
[0004] In view of this, the purpose of the embodiments of the present disclosure is to provide a data fusion method, device, storage medium and electronic device to solve the problem that the accuracy and comprehensiveness of the composite data obtained in the prior art are poor, and it is difficult to track and trace the source based on the composite data.
[0005] In a first aspect, an embodiment of the present disclosure provides a data fusion method, which includes:
[0006] Get the first data in the database;
[0007] Based on the type information of the first data and the target keyword, generate multiple sets using the first data;
[0008] The first data in each of the sets are fused respectively to obtain composite data corresponding to each of the sets.
[0009] In a possible implementation, it further includes:
[0010] Get the original data;
[0011] Based on a plurality of field types included in a field type library, the original data is standardized to obtain first data; wherein the first data includes at least one field;
[0012] respectively determining a first moment of the first data and a time interval between a historical moment of the historical data in the database and the current moment;
[0013] When the time interval between the first moment and the current moment is smaller than the time interval between the historical moment and the current moment, the first data is stored in the database.
[0014] In a possible implementation manner, the fusing the first data in each of the sets to obtain composite data corresponding to each of the sets includes:
[0015] Determine all fields corresponding to each of the field types in the set;
[0016] For each of the field types, all fields corresponding to the field type are merged to obtain sub-composite data corresponding to each of the field types;
[0017] The composite data corresponding to the set is generated based on all the sub-composite data.
[0018] In a possible implementation, the field type includes a single-value type, a combination type, a key-value pair type, and an array type.
[0019] In a possible implementation manner, the merging of all fields corresponding to the field type to obtain sub-composite data corresponding to each field type includes:
[0020] Clean all said fields;
[0021] Based on the validity period of the first data to which each of the fields belongs, determining whether the cleaned fields are valid;
[0022] Filter the target field from the fields with validity;
[0023] Sub-compound data corresponding to each field type is generated based on the target field, other fields with validity except the target field, and fields without validity.
[0024] In a possible implementation, the step of filtering the target field from the fields having validity includes:
[0025] Determining the priority of each field having validity based on the priority of the source corresponding to the field having validity;
[0026] The field with the highest priority among all the fields having validity is used as the target field.
[0027] In a possible implementation, the data fusion method further includes:
[0028] Determining the credibility of the source corresponding to each field based on the historical data;
[0029] The sources are prioritized based on the trustworthiness of the sources.
[0030] In a second aspect, the present disclosure also provides a data fusion device, which includes:
[0031] A first acquisition module configured to acquire first data in a database;
[0032] a partitioning module configured to generate a plurality of sets using the first data based on the type information of the first data and a target keyword;
[0033] The fusion module is configured to fuse the first data in each of the sets respectively to obtain composite data corresponding to each of the sets.
[0034] In a third aspect, the present disclosure further provides a storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the data fusion method as described above are executed.
[0035] In a fourth aspect, the present disclosure further provides an electronic device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and when the machine-readable instructions are executed by the processor, the steps of the data fusion method as described are performed.
[0036] The data fusion method provided by the embodiment of the present disclosure divides all the first data in the database and performs data fusion on each set obtained by the division. That is, each time the data fusion is performed, all the first data in the database are fused, thereby avoiding the loss of original data, improving the accuracy and comprehensiveness of the composite data, and thus reducing the difficulty of subsequent tracking and tracing based on the composite data.
[0037] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions in the present disclosure or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0039] Figure 1 A flow chart of the data fusion method provided by the present disclosure is shown;
[0040] Figure 2 A flow chart of determining a second allocated value based on the allocation information corresponding to the first allocated value and the first allocated value in the data fusion method provided by the present disclosure is shown;
[0041] Figure 3 A flow chart of determining a plurality of third allocated values based on a network address and a first allocated value in a data fusion method provided by the present disclosure is shown;
[0042] Figure 4 A flow chart showing the method for selecting a second assigned value from a first assigned value and a plurality of third assigned values in the data fusion method provided by the present disclosure is shown;
[0043] Figure 5 A flow chart showing a method for filtering out a second distribution value from a first distribution value and a plurality of third distribution values based on the distribution information corresponding to the first distribution value and the distribution information corresponding to each third distribution value in the data fusion method provided by the present disclosure is shown;
[0044] Figure 6 A flow chart showing the use of a second allocated value to update a first allocated value in a data fusion method provided by the present disclosure is shown;
[0045] Figure 7 A schematic diagram of the structure of the data fusion device provided by the present disclosure is shown;
[0046] Figure 8 A schematic structural diagram of an electronic device provided by the present disclosure is shown. DETAILED DESCRIPTION
[0047] In order to make the purpose, technical solution and advantages of the present disclosure clearer, the technical solution of the present disclosure will be clearly and completely described below in conjunction with the drawings of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the described embodiments of the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0048] Unless otherwise defined, the technical terms or scientific terms used in the present disclosure should be understood by people with ordinary skills in the field to which the present disclosure belongs. The "first", "second" and similar words used in the present disclosure do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprise" and similar words mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0049] In order to keep the following description of the present disclosure clear and concise, the present disclosure omits detailed descriptions of well-known functions and well-known components.
[0050] In the first aspect, in order to facilitate the understanding of the present disclosure, a data fusion method provided by the present disclosure is first described in detail. Figure 1 FIG. 1 is a flowchart of a data fusion method provided by an embodiment of the present disclosure, which specifically includes the following steps:
[0051] S101, obtaining first data in a database.
[0052] Here, the database is pre-established and used to store the first data, wherein the database can be established based on the application scenario, field, etc., for example, a first database corresponding to the technical field, a second database corresponding to the product field, etc.
[0053] It is worth noting that the number of first data in the database changes dynamically. As the time period increases and public information continues to appear, the number of first data in the database increases. Of course, there is also a period of time when no new public information appears, and at this time the number of first data in the database will not increase.
[0054] Specifically, according to Figure 2 The method shown is used to obtain a database containing first data, and the specific steps are as S201-S204.
[0055] S201, obtaining original data.
[0056] Considering the diversity of information technology, there are many platforms and channels for publishing public information. Therefore, the source of raw data can be multiple, such as security vendors, hacker forums, security information, social accounts, threat sharing platforms, etc.
[0057] Using crawlers and other means can obtain a large amount of targeted raw data in real time.
[0058] S202, standardize original data based on multiple field types included in a field type library to obtain first data; wherein the first data includes at least one field.
[0059] Here, while establishing a database, a corresponding field type library is set for the database, and the field type library contains multiple field types, wherein each field type can be determined according to the field and scenario to which the database belongs, wherein the field type includes at least source, time, form, keywords, etc.
[0060] The original data is standardized based on multiple field types, that is, the original data is divided into at least one field according to the field type, that is, the first data includes at least one field, and each field can be identified with its field type and the like.
[0061] S203, respectively determine the first moment of the first data and the time interval between the historical moments of the historical data in the database and the current moment.
[0062] S204: When the time interval between the first moment and the current moment is smaller than the time interval between the historical moment and the current moment, the first data is stored in the database.
[0063] When no historical data is stored in the database, the obtained first data may be directly stored in the database.
[0064] When historical data has been stored in the database, the first moment of the first data is searched from all fields of the first data, and the first moment is the generation moment of the original data corresponding to the first data; at the same time, for each historical data, the historical moment of the historical data is searched from all fields of the historical data, and similarly, the historical moment is the generation moment of the original data corresponding to the historical data.
[0065] After finding the first moment and all historical moments, the time interval between the first moment and the current moment and the time interval between each historical moment and the current moment are calculated respectively. If the time interval between the first moment and the current moment is less than the time interval between the historical moment and the current moment, the first data is stored in the database; if the time interval between the first moment and the current moment is greater than or equal to the time interval between the historical moment and the current moment, the first data is no longer stored in the database to avoid duplicate first data in the database, which leads to the problem of low accuracy of the fused composite data.
[0066] S102: Generate multiple sets using the first data based on the type information of the first data and the target keyword.
[0067] Usually, when obtaining raw data, it is obtained in a targeted manner. For example, the target source and target type of the raw data are determined in advance. In the process of obtaining raw data, only the raw data corresponding to the target type needs to be found in the target source, and there is no need to obtain other data.
[0068] Since there are multiple predetermined target types, after the original data is acquired and the first data corresponding thereto is obtained, all the first data are divided into multiple candidate sets based on the type information of the first data (that is, the target type of the original data corresponding to the first data). Specifically, each candidate set can be determined in advance according to the target type, for example, one candidate set is set corresponding to each target type, and after the target type corresponding to the first data is determined, the first data is stored in the candidate set corresponding to the target type corresponding thereto.
[0069] Since the target type pre-determined when crawling data is a relatively broad type, that is, the target type can also be subdivided into multiple subtypes, for example, when the target type is an IP address, the first data corresponding to address A, the first data corresponding to address B, the first data corresponding to address C, etc. can be obtained; and in order to ensure the pertinence and accuracy of the fusion when performing data fusion, further, based on the target keyword, the first data corresponding to the target keyword is screened from the candidate set corresponding to the target type to which it belongs to generate a set. Among them, the target keyword is pre-determined, which identifies a subtype in the target type. Of course, the target keyword corresponding to each target type is different.
[0070] S103, respectively merge the first data in each set to obtain composite data corresponding to each set.
[0071] For each set, the first data in the set is fused to obtain the composite data corresponding to the set, that is, each set corresponds to one piece of composite data.
[0072] The embodiment of the present application divides all the first data in the database and performs data fusion on each set obtained by the division. That is, each time data fusion is performed, all the first data in the database are fused, thereby avoiding the loss of original data, improving the accuracy and comprehensiveness of the composite data, and thus reducing the difficulty of subsequent tracking and tracing based on the composite data.
[0073] Specifically, Figure 3 The method steps for fusing the first data in each set are shown, specifically including S301-S303.
[0074] S301, determining all fields corresponding to each field type in the set.
[0075] Here, the first data in each set includes at least one field, and each field corresponds to a field type. Based on the field type corresponding to each field, all fields corresponding to each field type are searched.
[0076] It is worth noting that when the original data is standardized, although the fields are divided according to the preset target types, the fields in the obtained first data do not all correspond to all target types. For example, the target types are type A, type B, type C, and type D, but there is no field corresponding to type C in the first data, that is, it only contains three fields, namely, the field corresponding to type A, the field corresponding to type B, and the field corresponding to type D.
[0077] S302: For each field type, all fields corresponding to the field type are merged to obtain sub-composite data corresponding to each field type.
[0078] Among them, field types include single-value type, composite type, key-value pair type and array type. Among them, the single-value type is a single value, such as a string, number, Boolean value, etc., and the implementation methods are different in different programming languages; the composite type is composed of multiple single values, that is, it includes multiple strings or numbers, etc.; the key-value pair type is multiple groups of strings, numbers, Boolean values, etc. with a mapping relationship, that is, the mapping relationship is one-to-one; the array type is multiple strings, numbers, Boolean values, etc. with a mapping relationship, and its mapping relationship is one-to-many.
[0079] After obtaining all fields corresponding to each field type, all fields corresponding to each field type are merged respectively to obtain sub-composite data corresponding to each field type.
[0080] S303: Generate composite data corresponding to the set based on all the sub-composite data.
[0081] After obtaining the sub-composite data corresponding to each field type, a composite data is generated using all the sub-composite data, and the composite data is the composite data corresponding to the set, that is, each set corresponds to a composite data. For example, the composite data corresponding to the set can be divided into a preset number of fields in advance, wherein the preset number can be the same as the number of field types, and then each sub-composite data is filled into the corresponding position in the composite data to obtain the composite data. In practical applications, the position of the sub-composite data corresponding to each field type in the composite data can be fixed for the convenience of user viewing; of course, all the sub-composite data can also be randomly placed in each position in the composite data, etc.
[0082] Of course, the composite data corresponding to each set may also be combined to obtain the comprehensive data corresponding to the database, and this embodiment of the present application does not specifically limit this.
[0083] Here, by fusing all fields corresponding to each field type respectively and using the obtained sub-composite data to generate composite data corresponding to the set, the accuracy of the composite data can be improved to a certain extent.
[0084] Further, please refer to Figure 4 S401-S404 are shown to merge all fields corresponding to the field type to obtain sub-composite data corresponding to each field type, as follows:
[0085] S401, clean all fields.
[0086] Here, there may be some empty values such as null, spaces, etc. in the original data, and the first data obtained by standardizing the original data also has these empty values. Therefore, the fields need to be cleaned to remove the empty values to avoid the empty values affecting the accuracy of the composite data.
[0087] In addition, there are the following cleaning differences for different field types:
[0088] For single-value types and composite types, you only need to remove null values; for key-value pair types, in addition to removing null values, you also need to remove fields that do not have a one-to-one mapping relationship; for array types, in addition to removing null values, you also need to remove fields that do not have a one-to-many mapping relationship.
[0089] S402: Determine whether the cleaned fields are valid based on the validity period of the first data to which each field belongs.
[0090] Considering that some data on the network has an expiration date, the intelligence generated by it becomes meaningless after the expiration date. Therefore, it is necessary to determine the validity of each field. Specifically, the validity period of the first data to which each cleaned field belongs is found, that is, the validity period of the original data corresponding to the first data. The validity period of the first data is the validity period of the field. Then, based on the validity period, determine whether the cleaned field is valid.
[0091] For example, the validity period of the cleaned field is 24 hours, and the original data corresponding to the cleaned field is generated at 00:00 on October 10, 2020. Then, before 00:00 on October 11, 2020, the cleaned field is valid; after 00:00 on October 11, 2020, the cleaned field is not valid.
[0092] S403, filtering a target field from the fields having validity.
[0093] After determining the fields with validity, a field is selected from all the fields with validity as a target field, so as to generate sub-composite data by using the target field.
[0094] Specifically, if there is a field with validity, the field with validity is directly used as the target field; if there are multiple fields with validity, refer to Figure 5 The method shown is to filter the target field from the fields with validity. The specific steps are as follows:
[0095] S501, determining the priority of each field having validity based on the priority of the source corresponding to the field having validity.
[0096] Here, the source of the field with validity is the source of the first data to which the field belongs, that is, the source of the original data corresponding to the first data. Of course, the source can be determined by traversing all fields of the first data to which the field belongs. After determining the source of the field with validity, the priority level corresponding to the source is used as the priority level of the field with validity.
[0097] Of course, in practical applications, there are situations where the cleaned fields are not valid.
[0098] Furthermore, the embodiments of the present disclosure are also Figure 6 The method for determining the priority level of a source is shown in FIG. 6 , which specifically includes S601 - S602 .
[0099] S601, determining the credibility of the source corresponding to each field based on historical data.
[0100] S602, determining the priority level of the source based on the credibility of the source.
[0101] In a specific implementation, based on the analysis of historical data, it can be determined that the original data obtained from different sources have different credibility levels. For example, the original data obtained from official websites and academic forums have a higher credibility level, while the original data obtained from microblogs and blogs have a lower credibility level. Therefore, a corresponding priority level is set in advance for each source. Specifically, the source of the original data with a higher credibility level is set to a higher priority level, and the source of the original data with a lower credibility level is set to a lower priority level.
[0102] S502: The field with the highest priority among all the validity fields is taken as the target field.
[0103] After determining the priority of each valid field, select the field with the highest priority from all valid fields, that is, the field with the highest priority among all fields corresponding to the field type, and use it as the target field corresponding to the field type.
[0104] S404: Generate sub-composite data corresponding to each field type based on the target field, other fields with validity except the target field, and fields without validity.
[0105] After determining the target field, the sub-composite data corresponding to the field type corresponding to the target field is generated based on the target field. Considering that if only the target field is used to generate the sub-composite data, the original data will still be lost. Therefore, in the data fusion method disclosed in the present invention, the target field, other valid fields other than the target field, and fields without validity are used to generate the sub-composite data at the same time to ensure the integrity of the fused data, which can facilitate the subsequent tracing and tracing based on the composite data, and reduce the difficulty of tracing and tracing. Among them, the generated sub-composite data can clearly distinguish the target field from other valid fields other than the target field and fields without validity, such as setting different display colors, etc., so that users can query; considering that some users may only query the content related to the target field, and only query other valid fields and fields without validity other than the target field under special circumstances, therefore, other valid fields and fields without validity other than the target field can also be combined, packaged, etc. to form a non-target field, and then the target field and the non-target field are used to generate sub-composite data. Of course, the target field and the non-target field can also be clearly distinguished, etc., and the embodiment of the present disclosure does not specifically limit this.
[0106] The data fusion method provided by the present disclosure divides all the first data in the database and performs data fusion on each set obtained by the division, that is, each time the data fusion is performed, all the first data in the database are fused, thereby avoiding the loss of original data, improving the accuracy and comprehensiveness of the composite data, and thus reducing the difficulty of subsequent tracking and tracing based on the composite data.
[0107] Based on the same inventive concept, the second aspect of the present disclosure also provides a data fusion device corresponding to the data fusion method. Since the principle of solving the problem by the device in the present disclosure is similar to the above-mentioned data fusion method of the present disclosure, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0108] See also Figure 7 As shown, the data fusion device includes:
[0109] A first acquisition module 701, configured to acquire first data in a database;
[0110] A partitioning module 702 configured to generate a plurality of sets using the first data based on type information and target keywords of the first data;
[0111] The fusion module 703 is configured to fuse the first data in each of the sets respectively to obtain composite data corresponding to each of the sets.
[0112] In another embodiment, the data fusion device further comprises:
[0113] A second acquisition module 704, configured to acquire raw data;
[0114] A standardization module 705, configured to standardize the original data based on a plurality of field types included in a field type library to obtain first data; wherein the first data includes at least one field;
[0115] A determination module 706, configured to respectively determine a first moment of the first data, and a time interval between a historical moment of the historical data in the database and the current moment;
[0116] The storage module 707 is configured to store the first data into the database when the time interval between the first moment and the current moment is smaller than the time interval between the historical moment and the current moment.
[0117] In another embodiment, the fusion module 703 includes:
[0118] A first determining unit configured to determine all fields corresponding to each of the field types in the set;
[0119] a fusion unit configured to fuse all fields corresponding to each field type to obtain sub-composite data corresponding to each field type;
[0120] A generating unit is configured to generate compound data corresponding to the set based on all the sub-compound data.
[0121] In another embodiment, the fusion unit is specifically configured as:
[0122] Clean all said fields;
[0123] Based on the validity period of the first data to which each of the fields belongs, determining whether the cleaned fields are valid;
[0124] Filter the target field from the fields with validity;
[0125] Sub-compound data corresponding to each field type is generated based on the target field, other fields with validity except the target field, and fields without validity.
[0126] In another embodiment, the fusion unit is further configured as:
[0127] Determining the priority of each field having validity based on the priority of the source corresponding to the field having validity;
[0128] The field with the highest priority among all the fields having validity is used as the target field.
[0129] In another embodiment, the fusion module 703 further includes:
[0130] a second determination unit configured to determine the credibility of a source corresponding to each field based on the historical data;
[0131] A third determination unit is configured to determine a priority level of the source based on the credibility of the source.
[0132] The data fusion method provided by the present disclosure divides all the first data in the database and performs data fusion on each set obtained by the division, that is, each time the data fusion is performed, all the first data in the database are fused, thereby avoiding the loss of original data, improving the accuracy and comprehensiveness of the composite data, and thus reducing the difficulty of subsequent tracking and tracing based on the composite data.
[0133] The third aspect of the present disclosure further provides a storage medium, which is a computer-readable medium and stores a computer program. When the computer program is executed by a processor, the method provided by any embodiment of the present disclosure is implemented, including the following steps:
[0134] S11, obtaining first data in a database;
[0135] S12, generating multiple sets using the first data based on the type information of the first data and the target keyword;
[0136] S13, respectively fusing the first data in each of the sets to obtain composite data corresponding to each of the sets.
[0137] When the computer program is executed by the processor to perform the data fusion method, the processor also specifically executes the following steps: obtaining original data; standardizing the original data based on multiple field types contained in the field type library to obtain first data; wherein the first data includes at least one field; respectively determining the first moment of the first data and the time interval between the historical moments of the historical data in the database and the current moment; when the time interval between the first moment and the current moment is less than the time interval between the historical moment and the current moment, storing the first data in the database.
[0138] When the computer program is executed by the processor to fuse the first data in each of the sets respectively to obtain the composite data corresponding to each of the sets, the processor specifically executes the following steps: determining all fields corresponding to each of the field types in the sets; for each of the field types, fusing all fields corresponding to the field type to obtain sub-composite data corresponding to each of the field types; and generating the composite data corresponding to the sets based on all the sub-composite data.
[0139] When the computer program is executed by the processor to merge all fields corresponding to the field type and obtain sub-composite data corresponding to each field type, the processor also executes the following steps: clean all the fields; determine whether the cleaned fields are valid based on the validity period of the first data to which each field belongs; filter the target field from the valid fields; and generate sub-composite data corresponding to each field type based on the target field, other valid fields except the target field, and fields without validity.
[0140] When the computer program is executed by the processor to filter the target field from the fields with validity, the processor also executes the following steps: based on the priority of the source corresponding to each of the fields with validity, determine the priority of the field with validity; and use the field with the highest priority among all the fields with validity as the target field.
[0141] When the computer program is executed by the processor for the data fusion method, the processor also executes the following steps: determining the credibility of the source corresponding to each field based on the historical data; and determining the priority level of the source based on the credibility of the source.
[0142] The data fusion method provided by the present disclosure divides all the first data in the database and performs data fusion on each set obtained by the division, that is, each time the data fusion is performed, all the first data in the database are fused, thereby avoiding the loss of original data, improving the accuracy and comprehensiveness of the composite data, and thus reducing the difficulty of subsequent tracking and tracing based on the composite data.
[0143] It should be noted that the storage medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any storage medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0144] A fourth aspect of the present disclosure also provides an electronic device, such as Figure 8 As shown, the electronic device at least includes a memory 801 and a processor 802. The memory 801 stores a computer program. The processor 802 implements the method provided by any embodiment of the present disclosure when executing the computer program on the memory 801. Exemplarily, the method executed by the electronic device computer program is as follows:
[0145] S21, obtaining first data in a database;
[0146] S22, generating multiple sets using the first data based on the type information of the first data and the target keyword;
[0147] S23, respectively fusing the first data in each of the sets to obtain composite data corresponding to each of the sets.
[0148] The processor executes the data fusion method stored in the execution memory and also executes the following computer program: obtaining original data; standardizing the original data based on multiple field types contained in the field type library to obtain first data; wherein the first data includes at least one field; respectively determining the first moment of the first data and the time interval between the historical moments of the historical data in the database and the current moment; when the time interval between the first moment and the current moment is less than the time interval between the historical moment and the current moment, storing the first data in the database.
[0149] When the processor fuses the first data in each of the sets stored in the execution memory to obtain composite data corresponding to each of the sets, it also executes the following computer program: determining all fields corresponding to each of the field types in the sets; for each of the field types, fusing all fields corresponding to the field type to obtain sub-composite data corresponding to each of the field types; and generating composite data corresponding to the sets based on all the sub-composite data.
[0150] When the processor fuses all fields corresponding to the field type stored in the execution memory to obtain sub-composite data corresponding to each field type, it also executes the following computer program: cleans all the fields; determines whether the cleaned fields are valid based on the validity period of the first data to which each field belongs; filters the target field from the valid fields; and generates sub-composite data corresponding to each field type based on the target field, other valid fields except the target field, and fields without validity.
[0151] When the processor executes the program stored in the memory to filter the target field from the fields with validity, it also executes the following computer program: based on the priority of the source corresponding to each field with validity, determine the priority of the field with validity; and use the field with the highest priority among all the fields with validity as the target field.
[0152] When executing the data fusion method stored in the memory, the processor also executes the following computer program: determining the credibility of the source corresponding to each field based on the historical data; and determining the priority level of the source based on the credibility of the source.
[0153] The data fusion method provided by the present disclosure divides all the first data in the database and performs data fusion on each set obtained by the division, that is, each time the data fusion is performed, all the first data in the database are fused, thereby avoiding the loss of original data, improving the accuracy and comprehensiveness of the composite data, and thus reducing the difficulty of subsequent tracking and tracing based on the composite data.
[0154] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0155] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other.
[0156] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0157] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
[0158] Multiple embodiments of the present disclosure are described in detail above, but the present disclosure is not limited to these specific embodiments. Technical personnel in the field can make various variations and modifications to the embodiments based on the concepts of the present disclosure, and these variations and modifications should all fall within the scope of protection required by the present disclosure.
Claims
1. A data fusion method, characterized in that: include: Acquire first data in a database, where the first data changes dynamically as a time period increases and public information changes; Divide all the first data into multiple candidate sets based on the type information of the first data, and select multiple sets from the multiple candidate sets based on target keywords, each of the target keywords identifying a subtype in the target type of the type information; fusing the first data in each of the sets respectively to obtain composite data corresponding to each of the sets; The step of fusing the first data in each of the sets to obtain composite data corresponding to each of the sets includes: Determine all fields corresponding to each field type in the set, where the field type library includes multiple field types; For each of the field types, all fields corresponding to the field type are merged to obtain sub-composite data corresponding to each of the field types; Generate composite data corresponding to the set based on all the sub-composite data; The merging of all fields corresponding to the field type to obtain sub-composite data corresponding to each field type includes: Clean all said fields; Based on the validity period of the first data to which each of the fields belongs, determining whether the cleaned fields are valid; Filter the target field from the fields with validity; Generate sub-composite data corresponding to each field type based on the target field, other fields with validity except the target field, and fields without validity; The generating of the sub-composite data corresponding to each field type includes: Distinguishing the target field from other valid fields and non-valid fields other than the target field, wherein the distinguishing includes setting different display colors; or Combining and packaging other valid fields and non-valid fields except the target field to form non-target fields, and distinguishing and processing the target field and the non-target field; The generating the composite data corresponding to the set based on all the sub-composite data includes: Each of the sub-compound data is filled into a fixed position to obtain compound data.
2. The data fusion method according to claim 1, characterized in that: Also includes: Get the original data; Based on a plurality of field types included in a field type library, the original data is standardized to obtain first data; wherein the first data includes at least one field; respectively determining a first moment of the first data and a time interval between a historical moment of the historical data in the database and the current moment; When the time interval between the first moment and the current moment is smaller than the time interval between the historical moment and the current moment, the first data is stored in the database.
3. The data fusion method according to claim 1, characterized in that: The field types include single-value type, composite type, key-value pair type and array type.
4. The data fusion method according to claim 1, characterized in that: The step of filtering the target field from the fields with validity includes: Determining the priority of each field having validity based on the priority of the source corresponding to the field having validity; The field with the highest priority among all the fields having validity is used as the target field.
5. The data fusion method according to claim 2, characterized in that: Also includes: Determining the credibility of the source corresponding to each field based on the historical data; The sources are prioritized based on the trustworthiness of the sources.
6. A data fusion device, characterized in that: include: A first acquisition module configured to acquire first data in a database, wherein the first data changes dynamically with the extension of a time period and the change of public information; a partitioning module configured to partition all first data into a plurality of candidate sets based on the type information of the first data, and to screen a plurality of sets from the plurality of candidate sets based on target keywords, wherein each of the target keywords respectively identifies a subtype in the target type of the type information; a fusion module configured to fuse the first data in each of the sets respectively to obtain composite data corresponding to each of the sets; The fusion module includes: A first determining unit configured to determine all fields corresponding to each field type in the set, wherein the field type library includes a plurality of field types; a fusion unit configured to fuse all fields corresponding to each field type to obtain sub-composite data corresponding to each field type; a generating unit configured to generate composite data corresponding to the set based on all the sub-composite data; The fusion unit is specifically configured as follows: Clean all said fields; Based on the validity period of the first data to which each of the fields belongs, determining whether the cleaned fields are valid; Filter the target field from the fields with validity; Generate sub-composite data corresponding to each field type based on the target field, other fields with validity except the target field, and fields without validity; The generating of the sub-composite data corresponding to each field type includes: Distinguishing the target field from other valid fields and non-valid fields other than the target field, wherein the distinguishing includes setting different display colors; or Combining and packaging other valid fields and non-valid fields except the target field to form non-target fields, and distinguishing and processing the target field and the non-target field; The generating unit is specifically configured as follows: Each of the sub-compound data is filled into a fixed position to obtain compound data.
7. A storage medium, characterized in that: The storage medium stores a computer program, which, when executed by a processor, executes the steps of the data fusion method according to any one of claims 1 to 5.
8. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the data fusion method according to any one of claims 1 to 5 are performed.
