Multi-source heterogeneous data fusion method, device, equipment and storage medium
The multi-objective joint optimization model and feature extractor are used to process multi-source heterogeneous power data, which solves the problem of low data correlation, achieves stronger data correlation and discrimination capabilities, and improves the data fusion effect.
Patent Information
- Application Number
- CN202410198181.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-22
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-02-22
AI Technical Summary
The low correlation between multi-source heterogeneous data makes it difficult to perform efficient correlation analysis.
A multi-objective joint optimization model is used to process multi-source heterogeneous power data. Bert and Transformer feature extractors are used to extract features, and the loss value is generated through the first and second objective functions. Data fusion is completed when the loss value meets the preset conditions. , improve the correlation and discrimination ability between data.
It improves the correlation and discrimination ability between multi-source heterogeneous data, enhances the ability to distinguish different categories, and solves the problem of data fusion.
Smart Images

Figure CN118094469B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information processing technology, and in particular to a method, device, equipment and storage medium for fusing multi-source heterogeneous data. Background Art
[0002] At present, power terminal sensing devices (such as high-definition video, patrol robots, drones, voiceprint monitoring, infrared monitoring) generate data of different modes (such as time series state quantity, visible light, infrared and voiceprint) in real time. Among them, the core problem is to integrate and analyze the semantic association of the collected multi-source heterogeneous data to better serve the power business. However, multi-source heterogeneous data often have the phenomenon of "weak feature discrimination within the same mode" and "weak semantic association between different modes", which makes it difficult to perform efficient association analysis. Summary of the invention
[0003] In view of this, the present invention provides a method, device, equipment and storage medium for fusing multi-source heterogeneous data to solve the problem of low correlation between multi-source heterogeneous data.
[0004] In a first aspect, the present invention provides a method for fusing multi-source heterogeneous data, the method comprising:
[0005] Acquiring electric power multi-source heterogeneous data, wherein the electric power multi-source heterogeneous data includes time series state quantity and visible light;
[0006] A multi-objective joint optimization model is used to process multi-source heterogeneous power data, and when the preset conditions are met, the fusion of multi-source heterogeneous power data is completed.
[0007] The present invention provides a method for fusing multi-source heterogeneous data. The method provided by the present invention improves the correlation between the multi-source heterogeneous data.
[0008] In an optional implementation, a multi-objective joint optimization model is used to process the electric power multi-source heterogeneous data, and when the preset conditions are met, the fusion of the electric power multi-source heterogeneous data is completed, including:
[0009] The Bert feature extractor and the Transformer feature extractor are used to extract the features of the time series state quantity and the visible light respectively, and the time series state quantity features and the visible light features are generated;
[0010] Processing the time series state quantity feature and the visible light feature using the first objective function to generate a first target loss value;
[0011] Processing the time series state quantity feature and the visible light feature using the second objective function to generate a second objective loss value;
[0012] When the first target loss value and the second target loss value meet the preset conditions, the fusion of multi-source heterogeneous power data is completed.
[0013] The method provided by the present invention utilizes a multi-objective joint optimization model to improve the ability to distinguish different categories and enhance discrimination.
[0014] In an optional implementation, the first objective function is:
[0015]
[0016] Among them, L1 represents the first target loss value, D KL (y k ||p(x k )) represents KL divergence, represents the true category label of the kth time series state quantity, represents the characteristics of the kth time series state quantity, p() represents the probability, N T Represents the number of time series state quantities in the training set, N I represents the number of visible lights in the training set, represents the true category label of the kth visible light, Represents the characteristics of the kth visible light.
[0017] The method provided by the present invention classifies multi-source heterogeneous data through a first objective function. First, the multi-source heterogeneous data is distinguished in categories to widen the gap between different subcategories of the multi-source heterogeneous data, thereby ensuring strong discrimination between different categories.
[0018] In an optional implementation, the second objective function is:
[0019]
[0020] Among them, L2 represents the second target loss value, x i ,x j ,x k ,x l It forms a four-tuple, representing the anchor point, positive sample, first negative sample and second negative sample respectively. The superscript M represents the mode, M=1 is the time series state quantity, M=2 is the visible light, d() represents the distance, ɑ and β represent the boundary values.
[0021] The method provided by the present invention minimizes the intra-class difference and maximizes the inter-class difference through the second objective function, further improving the ability to distinguish different categories and improving the discriminability.
[0022] In a second aspect, the present invention provides a device for fusing multi-source heterogeneous data, the device comprising:
[0023] A data acquisition module, used to acquire electric power multi-source heterogeneous data, wherein the electric power multi-source heterogeneous data includes time series state quantity and visible light;
[0024] The data fusion module is used to process the multi-source heterogeneous data of electric power by using the multi-objective joint optimization model, and complete the fusion of the multi-source heterogeneous data of electric power when the preset conditions are met.
[0025] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the multi-source heterogeneous data fusion method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0026] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the multi-source heterogeneous data fusion method of the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0028] Figure 1 is a flow chart of a method for fusing multi-source heterogeneous data according to an embodiment of the present invention;
[0029] Figure 2 is a structural block diagram of a device for fusing multi-source heterogeneous data according to an embodiment of the present invention;
[0030] Figure 3 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0031] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0032] According to an embodiment of the present invention, an embodiment of a method for fusing multi-source heterogeneous data is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0033] In this embodiment, a method for fusing multi-source heterogeneous data is provided, which can be used for the above-mentioned mobile terminals, such as mobile phones, tablet computers, etc. (the execution subject is described in combination with actual conditions). Figure 1 is a flow chart of a method for fusing multi-source heterogeneous data according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:
[0034] Step S101, acquiring electric power multi-source heterogeneous data, where the electric power multi-source heterogeneous data includes time series state quantities and visible light.
[0035] In the embodiment of the present invention, this is only taken as an example and is not intended to be limiting. In practical applications, the type of corresponding power multi-source heterogeneous data is selected according to actual conditions.
[0036] Step S102, using a multi-objective joint optimization model to process the electric power multi-source heterogeneous data, and when the preset conditions are met, the fusion of the electric power multi-source heterogeneous data is completed.
[0037] In an embodiment of the present invention, a Bert feature extractor and a Transformer feature extractor are used to extract features of time series state quantity and visible light respectively, and generate time series state quantity features and visible light features; the time series state quantity features and visible light features are processed using a first objective function to generate a first target loss value; the time series state quantity features and visible light features are processed using a second objective function to generate a second target loss value; when the first target loss value and the second target loss value meet the preset conditions, the fusion of multi-source heterogeneous data of electric power is completed. This is only an example and is not limited to this. In actual applications, the corresponding preset conditions are selected according to the actual situation. For example, when the sum of the first target loss value and the second target loss value is less than the preset value, the fusion of multi-source heterogeneous data of electric power is completed. The preset value is not limited here and is selected according to the actual situation.
[0038] In this embodiment of the present invention, the first objective function is:
[0039]
[0040] Among them, L1 represents the first target loss value, D KL (y k ||p(x k )) represents KL divergence, represents the true category label of the kth time series state quantity (indicating output), represents the characteristics of the kth time series state quantity, p() represents the probability, N T Represents the number of time series state quantities in the training set, N I represents the number of visible lights in the training set, represents the true category label of the kth visible light, Represents the feature of the kth visible light. By calculating the difference between the probability distribution of the model output and the label, the model aims to make the output probability distribution as close to the distribution of the real label as possible during the training process, thereby improving the model's discrimination ability.
[0041] In this embodiment of the present invention, the second objective function is:
[0042]
[0043] Among them, L2 represents the second target loss value, x i ,x j ,x k ,x l A quaternary group is formed, representing the anchor point, positive sample, first negative sample and second negative sample respectively. The superscript M represents the mode, M=1 is the time series state quantity, M=2 is the visible light, d() represents the distance, ɑ and β represent the boundary value. The following two aspects of distance are considered at the same time: first, for the same target, the distance between objects of the same category is smaller than the distance between objects of different categories, that is, the distance between the anchor point and the positive sample is smaller than the distance between the anchor point and the negative sample; second, the distance between objects of the same category is smaller than the distance between objects of different categories, that is, the distance between the anchor point and the positive sample is smaller than the distance between the first negative sample and the second negative sample.
[0044] The multi-source heterogeneous data fusion method provided in this embodiment has a first objective function that widens the gap between different subclasses of the multi-source heterogeneous data to ensure strong discrimination between different categories; the second objective function minimizes the intra-class differences and maximizes the inter-class differences, thereby further increasing the model's ability to distinguish different categories and improving discrimination.
[0045] In this embodiment, a fusion device for multi-source heterogeneous data is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0046] This embodiment provides a device for fusing multi-source heterogeneous data. Figure 2 As shown, including:
[0047] The data acquisition module 201 is used to acquire electric power multi-source heterogeneous data, where the electric power multi-source heterogeneous data includes time series state quantities and visible light.
[0048] The data fusion module 202 is used to process the electric power multi-source heterogeneous data using a multi-objective joint optimization model, and complete the fusion of the electric power multi-source heterogeneous data when the preset conditions are met.
[0049] The multi-source heterogeneous data fusion device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0050] The embodiment of the present invention also provides a computer device having the above Figure 2 The device for fusing multi-source heterogeneous data is shown.
[0051] See also Figure 3 , Figure 3 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 3 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 3 A processor 10 is taken as an example.
[0052] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0053] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.
[0054] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0055] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0056] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.
[0057] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0058] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A method for fusing multi-source heterogeneous data, characterized in that: The method comprises: Acquiring electric power multi-source heterogeneous data, wherein the electric power multi-source heterogeneous data includes time series state quantity and visible light; The multi-objective joint optimization model is used to process the heterogeneous data of power multi-sources. When the preset conditions are met, the fusion of the heterogeneous data of power multi-sources is completed. The multi-objective joint optimization model is used to process the heterogeneous data of power multi-sources. When the preset conditions are met, the fusion of the heterogeneous data of power multi-sources is completed, including: The Bert feature extractor and the Transformer feature extractor are used to extract the features of the time series state quantity and the visible light respectively, and the time series state quantity features and the visible light features are generated; Processing the time series state quantity feature and the visible light feature using the first objective function to generate a first target loss value; Processing the time series state quantity feature and the visible light feature using the second objective function to generate a second objective loss value; When the first target loss value and the second target loss value meet the preset conditions, the fusion of multi-source heterogeneous data of electric power is completed; The first objective function is: Among them, L1 represents the first target loss value, D KL (yk||p(xk)) represents the KL divergence, represents the true category label of the kth time series state quantity, represents the characteristics of the kth time series state quantity, p() represents the probability, N T Represents the number of time series state quantities in the training set, N I represents the number of visible lights in the training set, represents the true category label of the kth visible light, represents the characteristics of the kth visible light; The second objective function is: Among them, L2 represents the second target loss value, x i ,x j ,x k ,x l It forms a four-tuple, representing the anchor point, positive sample, first negative sample and second negative sample respectively. The superscript M represents the mode, M=1 is the time series state quantity, M=2 is the visible light, d() represents the distance, ɑ and β represent the boundary values.
2. A device for fusing multi-source heterogeneous data, characterized in that: The device comprises: A data acquisition module, used to acquire electric power multi-source heterogeneous data, wherein the electric power multi-source heterogeneous data includes time series state quantity and visible light; The data fusion module is used to process the electric power multi-source heterogeneous data using a multi-objective joint optimization model, and complete the fusion of the electric power multi-source heterogeneous data when the preset conditions are met; The multi-objective joint optimization model is used to process the heterogeneous data of power multi-sources. When the preset conditions are met, the fusion of the heterogeneous data of power multi-sources is completed, including: The Bert feature extractor and the Transformer feature extractor are used to extract the features of the time series state quantity and the visible light respectively, and the time series state quantity features and the visible light features are generated; Processing the time series state quantity feature and the visible light feature using the first objective function to generate a first target loss value; Processing the time series state quantity feature and the visible light feature using the second objective function to generate a second objective loss value; When the first target loss value and the second target loss value meet the preset conditions, the fusion of multi-source heterogeneous data of electric power is completed; The first objective function is: Among them, L1 represents the first target loss value, D KL (yk||p(xk)) represents the KL divergence, represents the true category label of the kth time series state quantity, represents the characteristics of the kth time series state quantity, p() represents the probability, N T Represents the number of time series state quantities in the training set, N I represents the number of visible lights in the training set, represents the true category label of the kth visible light, represents the characteristics of the kth visible light; The second objective function is: Among them, L2 represents the second target loss value, x i ,x j ,x k ,x l It forms a four-tuple, representing the anchor point, positive sample, first negative sample and second negative sample respectively. The superscript M represents the mode, M=1 is the time series state quantity, M=2 is the visible light, d() represents the distance, ɑ and β represent the boundary values.
3. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the multi-source heterogeneous data fusion method according to claim 1 by executing the computer instructions.
4. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the multi-source heterogeneous data fusion method according to claim 1.
