A load identification method, device, computer equipment and storage medium

By acquiring and analyzing the electrical data of the load terminal and calculating the similarity value to identify the load type, the problem of being unable to identify the load type in the existing technology is solved, and efficient and accurate load identification and safety assurance are achieved.

CN114298088BActive Publication Date: 2025-09-26清科优能(深圳)技术有限公司
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111491039.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-08
Publication Date
2025-09-26
Estimated Expiration
2041-12-08

AI Technical Summary

Technical Problem

Existing technologies cannot identify the type of load connected to the circuit, posing a safety hazard.

Method used

By acquiring the electrical data of the load terminal within the target time period, extracting the power set and current set, calculating the power factor and harmonic set, obtaining comparison parameters and calculating similarity values, and using the preset threshold to determine the load terminal type.

Benefits of technology

It realizes automatic identification of load terminals with high accuracy and efficiency, and can identify and process prohibited terminals to ensure power safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114298088B_ABST
    Figure CN114298088B_ABST
Patent Text Reader

Abstract

The embodiments of the present application belong to the field of device identification and relate to a load identification method, including obtaining electrical data of a load terminal within a target time period; extracting a power set and a current set from the electrical data, and respectively calculating a power factor set corresponding to the power set and a harmonic set corresponding to the current set; obtaining a comparison set, extracting comparison parameters from the comparison set, and calculating a similarity value based on the comparison parameters, the power set, the power factor set, and the harmonic set, wherein the comparison set includes at least one set of comparison parameters, and one set of comparison parameters corresponds to one target terminal; obtaining a preset threshold corresponding to the comparison parameter, and if the similarity value meets the preset threshold, the target terminal corresponding to the comparison parameter is used as the load terminal. The present application also provides a load identification device, a computer device, and a storage medium. The present application realizes automatic identification of the type of load terminal with high identification accuracy and efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of device identification technology, and in particular to a load identification method, apparatus, computer equipment, and storage medium. Background Art

[0002] With the continuous improvement of living standards and the continuous development of intelligent technology, more and more electronic devices are entering our daily lives and work. Currently, it is possible to set a power collection device in the circuit of a single electronic device (load) to collect the power consumption of the load, but it is impossible to identify the load. For example, the load connected to the circuit is a battery, but the power collection device can only collect the battery's power consumption, and cannot identify the type of battery in the circuit. If an electric vehicle battery is connected to a household circuit, there will be serious safety hazards. Summary of the Invention

[0003] The purpose of the embodiments of the present application is to provide a load identification method, apparatus, computer equipment and storage medium to solve the technical problem in the prior art of being unable to identify the type of electrical load.

[0004] In order to solve the above technical problems, the present application provides a load identification method, which adopts the following technical solutions:

[0005] Obtain electrical data of the load terminal within a target time period;

[0006] Extracting a power set and a current set from the electrical data, and respectively calculating a power factor set corresponding to the power set and a harmonic set corresponding to the current set;

[0007] Obtaining a comparison set, extracting comparison parameters from the comparison set, and calculating a similarity value based on the comparison parameters, the power set, the power factor set, and the harmonic set, wherein the comparison set includes at least one set of comparison parameters, and a set of the comparison parameters corresponds to one target terminal;

[0008] A preset threshold corresponding to the comparison parameter is obtained, and if the similarity value satisfies the preset threshold, a target terminal corresponding to the comparison parameter is used as the load terminal.

[0009] Furthermore, the step of respectively calculating the power factor set corresponding to the power set and the harmonic set corresponding to the current set includes:

[0010] Extracting, from the power set, the apparent power parameter and the active power parameter corresponding to the initial time point and the target time point of the target time period, respectively, and extracting, from the current set, the fundamental current parameter and the harmonic current parameter corresponding to the initial time point and the target time point of the target time period, respectively;

[0011] The power factor parameter is calculated based on the apparent power parameter and the active power parameter corresponding to the initial time point and the apparent power parameter and the active power parameter corresponding to the target time point, and the harmonic parameter is calculated based on the fundamental current parameter and the harmonic current parameter corresponding to the initial time point and the fundamental current parameter and the harmonic current parameter corresponding to the target time point, wherein the power factor set includes multiple power factor parameters, each of the power factor parameters corresponds to a different target time point in the target time period, and the harmonic set includes multiple harmonic parameters, each of the harmonic parameters corresponds to a different target time point in the target time period.

[0012] Furthermore, the power set includes a plurality of reactive power parameters; and the step of calculating similarity values ​​based on the comparison parameters, the power set, the power factor set, and the harmonic set includes:

[0013] Calculating statistical values ​​of each reactive power parameter, each active power parameter, each power factor parameter, and each harmonic parameter respectively;

[0014] A similarity value is calculated according to the comparison set, the statistical value of each reactive power parameter, the statistical value of each active power parameter, the statistical value of each power factor parameter, and the statistical value of each harmonic parameter using a Euclidean distance similarity formula.

[0015] Furthermore, the statistical value includes a maximum value and a median value; and the steps of respectively calculating the statistical values ​​of each of the reactive power parameters, each of the active power parameters, each of the power factor parameters, and each of the harmonic parameters include:

[0016] The maximum value and median value of each reactive power parameter, each active power parameter, each power factor parameter and each harmonic parameter are calculated respectively by a sorting algorithm.

[0017] Furthermore, the comparison set includes at least two groups of comparison parameters; and the step of calculating similarity values ​​based on the comparison parameters, the power set, the power factor set, and the harmonic set includes:

[0018] Calculating similarity values ​​corresponding to respective comparison parameters according to the power set, the power factor set, and the harmonic set;

[0019] If the similarity value satisfies the preset threshold, the step of using the target terminal corresponding to the comparison parameter as the load terminal includes:

[0020] All similarity values ​​that meet the preset threshold are obtained, and the maximum similarity value is determined from all similarity values ​​that meet the preset threshold, and the target terminal corresponding to the comparison parameter with the maximum similarity value is calculated as the load terminal.

[0021] Furthermore, before the step of obtaining the preset threshold corresponding to the comparison parameter, the method further includes:

[0022] Sending the electrical data to a calculation end for calculation, and receiving a calculation value sent by the calculation end, wherein the calculation value is obtained by the calculation end calculating the electrical data;

[0023] If the calculated value is equal to the similarity value, outputting the similarity value;

[0024] If the calculated value is not equal to the similarity value, the calculated value is used as the similarity value and the similarity value is output.

[0025] Furthermore, after the step of using the target terminal corresponding to the comparison parameter as the load terminal, the method further includes:

[0026] Determining whether the load terminal is a prohibited terminal;

[0027] If the target terminal is a prohibited terminal, a preset processing method is obtained, and the load terminal is processed according to the preset processing method.

[0028] In order to solve the above technical problems, the embodiment of the present application further provides a load identification device, which adopts the following technical solution:

[0029] A data acquisition module is used to acquire electrical data of the load terminal within a target time period;

[0030] a set calculation module, configured to extract a power set and a current set from the electrical data, and respectively calculate a power factor set corresponding to the power set and a harmonic set corresponding to the current set;

[0031] a similarity value calculation module, configured to obtain a comparison set, extract comparison parameters from the comparison set, and calculate a similarity value based on the comparison parameters, the power set, the power factor set, and the harmonic set, wherein the comparison set includes at least one set of comparison parameters, and a set of comparison parameters corresponds to one target terminal;

[0032] The terminal determination module is configured to obtain a preset threshold corresponding to the comparison parameter, and if the similarity value satisfies the preset threshold, use the target terminal corresponding to the comparison parameter as the load terminal.

[0033] In order to solve the above technical problems, the embodiment of the present application further provides a computer device, which adopts the following technical solution:

[0034] The system comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the load identification method as described above when executing the computer program.

[0035] In order to solve the above technical problems, the embodiment of the present application further provides a computer-readable storage medium, which adopts the following technical solution:

[0036] The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the load identification method described above are implemented.

[0037] Compared with the prior art, the embodiments of the present application have the following main beneficial effects: by obtaining electrical data of the load terminal within a target time period; extracting a power set and a current set from the electrical data, and respectively calculating a power factor set corresponding to the power set and a harmonic set corresponding to the current set; obtaining a comparison set, extracting comparison parameters from the comparison set, and calculating a similarity value based on the comparison parameters, the power set, the power factor set, and the harmonic set, wherein the comparison set includes at least one set of comparison parameters, and a set of the comparison parameters corresponds to one target terminal; obtaining a preset threshold value corresponding to the comparison parameter, and if the similarity value meets the preset threshold value, the target terminal corresponding to the comparison parameter is used as the load terminal. The present application calculates a similarity value based on the comparison set, the power set, the power factor set, and the harmonic set to determine the degree of similarity between the load terminal and the target terminal. When the similarity value meets the preset threshold value, the load terminal is determined to be the target terminal, thereby automatically identifying the type of the load terminal with high recognition accuracy and efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the solutions in this application, a brief introduction will be given below to the drawings required for use in the description of the embodiments of this application. Obviously, the drawings described below are some embodiments of this application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0039] Figure 1 is an exemplary system architecture diagram to which the present application may be applied;

[0040] Figure 2 A flow chart of an embodiment of a load identification method according to the present application;

[0041] Figure 3is a structural schematic diagram of an embodiment of a load identification device according to the present application;

[0042] Figure 4 It is a structural diagram of an embodiment of a computer device according to the present application. DETAILED DESCRIPTION

[0043] Unless otherwise defined, all technical and scientific terms used herein have the same meanings as commonly understood by those skilled in the art to which this application belongs. The terms used in the specification of the application are for the purpose of describing specific embodiments only and are not intended to limit this application. The terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of this application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.

[0044] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0045] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.

[0046] like Figure 1 As shown, system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. Network 104 is a medium for providing communication links between terminal devices 101, 102, 103 and server 105. Network 104 may include various connection types, such as wired or wireless communication links or fiber optic cables.

[0047] Users can use terminal devices 101, 102, and 103 to interact with server 105 via network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, and 103, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0048] Terminal devices 101, 102, and 103 can be various electronic devices with display screens and support web browsing, including but not limited to smartphones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III), MP4 (Moving Picture Experts Group Audio Layer IV), laptop computers, desktop computers, etc.

[0049] The server 105 may be a server that provides various services, such as a background server that provides support for web pages displayed on the terminal devices 101 , 102 , and 103 .

[0050] It should be noted that the load identification method provided in the embodiment of the present application is generally executed by a server / terminal device, and accordingly, the load identification device is generally set in the server / terminal device.

[0051] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is merely illustrative. Any number of terminal devices, networks and servers may be provided as required.

[0052] Continue to refer Figure 2 , shows a flow chart of an embodiment of a load identification method according to the present application. The load identification method comprises the following steps:

[0053] Step S201: Acquire electrical data of a load terminal within a target time period.

[0054] In this embodiment, the electrical data includes voltage, active power, reactive power, apparent power, harmonic current, and fundamental current. In actual applications, when a load terminal is connected to a circuit, electrical information is measured by a voltage meter (such as a voltage transformer) and a current meter (such as a current transformer). The electrical information is transmitted in the form of an electrical signal and, after transformation and scaling, is transmitted to a processor. After receiving the preprocessed electrical information, the processor analyzes the electrical information and extracts and calculates electrical data consisting of active power, reactive power, apparent power, harmonic current, fundamental current, etc.

[0055] Step S202 : extracting a power set and a current set from the electrical data, and respectively calculating a power factor set corresponding to the power set and a harmonic set corresponding to the current set.

[0056] In this embodiment, the above-mentioned power set includes multiple apparent power parameters, multiple active power parameters and multiple reactive power parameters, wherein a target time point in the target time period corresponds to an apparent power parameter, an active power parameter and a reactive power parameter, and the power factor set includes multiple power factor parameters, wherein the power factor parameter corresponding to the target time point is calculated from the apparent power parameter and the active power parameter corresponding to the target time point (for specific calculation, please see the description below).

[0057] The above-mentioned current set includes multiple harmonic current parameters and multiple fundamental current parameters, wherein a target time point in the target time period corresponds to a harmonic current parameter and multiple fundamental current parameters, and the harmonic factor set includes multiple harmonic parameters, wherein the harmonic parameter corresponding to the target time point is calculated by the apparent harmonic current parameter and the fundamental current parameter corresponding to the target time point (for specific calculation, please see the description below).

[0058] Step S203: Obtain a comparison set, extract comparison parameters from the comparison set, and calculate similarity values ​​based on the comparison parameters, the power set, the power factor set, and the harmonic set, wherein the comparison set includes at least one set of comparison parameters, and one set of comparison parameters corresponds to one target terminal.

[0059] In this embodiment, the above-mentioned comparison set includes at least one set of comparison parameters, wherein one set of comparison parameters corresponds to one target terminal. The comparison parameters of the target terminal are compared with the data of the load terminal (including the power set, the power factor set, and the harmonic set) to determine the similarity between the target terminal and the load terminal. The above-mentioned similarity value represents the similarity between the load terminal and the target terminal. The basic rule is that the larger the similarity value, the higher the similarity between the load terminal and the target terminal, and conversely, the smaller the similarity value, the lower the similarity between the load terminal and the target terminal.

[0060] Step S204 : obtaining a preset threshold corresponding to the comparison parameter, and if the similarity value satisfies the preset threshold, using the target terminal corresponding to the comparison parameter as the load terminal.

[0061] In this embodiment, the comparison set includes at least one set of comparison parameters, wherein one set of comparison parameters corresponds to a preset threshold value, or multiple sets of comparison parameters correspond to one preset threshold value, and one target terminal corresponds to one preset threshold value and one set of comparison parameters, that is, the target terminal, the preset threshold value and the comparison parameter are in a corresponding relationship; the above-mentioned preset threshold value is pre-stored in the storage module. In actual application, the preset threshold value corresponding to the comparison parameter is determined from the storage module and called.

[0062] The present application calculates a similarity value based on the comparison set, the power set, the power factor set, and the harmonic set to determine the degree of similarity between the load terminal and the target terminal. When the similarity value meets a preset threshold, the load terminal is determined to be the target terminal. This achieves automatic identification of the type of the load terminal with high accuracy and efficiency.

[0063] In some optional implementations of this embodiment, in step S202, the step of respectively calculating the power factor set corresponding to the power set and the harmonic set corresponding to the current set includes:

[0064] Extracting, from the power set, the apparent power parameter and the active power parameter corresponding to the initial time point and the target time point of the target time period, respectively, and extracting, from the current set, the fundamental current parameter and the harmonic current parameter corresponding to the initial time point and the target time point of the target time period, respectively;

[0065] The power factor parameter is calculated based on the apparent power parameter and the active power parameter corresponding to the initial time point and the apparent power parameter and the active power parameter corresponding to the target time point, and the harmonic parameter is calculated based on the fundamental current parameter and the harmonic current parameter corresponding to the initial time point and the fundamental current parameter and the harmonic current parameter corresponding to the target time point, wherein the power factor set includes multiple power factor parameters, each of the power factor parameters corresponds to a different target time point in the target time period, and the harmonic set includes multiple harmonic parameters, each of the harmonic parameters corresponds to a different target time point in the target time period.

[0066] In this embodiment, the above-mentioned step of calculating the power factor parameter specifically includes calculating a first parameter difference between the apparent power parameter at the target time point and the apparent power parameter at the initial time point, and calculating a second parameter difference between the active power parameter at the target time point and the active power parameter at the initial time point, and then dividing the first parameter difference by the second parameter difference to obtain the above-mentioned power factor parameter.

[0067] In the above step of calculating the harmonic parameters, specifically, the product of the fundamental current parameter and the first parameter of the harmonic current parameter at the initial time point is calculated, and the product of the fundamental current parameter and the second parameter of the harmonic current parameter at the target time point is calculated. Then, the above harmonic parameters can be obtained by calculation according to the cosine theorem, wherein the calculation formula of the cosine theorem is as follows:

[0068]

[0069] In the above formula, a is the harmonic parameter, b is the first parameter multiplication value, c is the second parameter multiplication value, A is the angle between the first parameter multiplication value and the second parameter multiplication value of the side length, and cosA is the cosine value of the angle A, which is a fixed constant and can be obtained through prior experiments.

[0070] It should be noted that the above-mentioned target time period includes multiple target time points, and the power factor parameters and harmonic parameters corresponding to each target time point need to be calculated. Multiple power factor parameters are combined to form the above-mentioned power factor set, and multiple harmonic parameters are combined to form the above-mentioned harmonic set.

[0071] In some optional implementations, the power set includes multiple reactive power parameters; and the step of calculating the similarity value based on the comparison parameters, the power set, the power factor set, and the harmonic set includes:

[0072] Calculating statistical values ​​of each reactive power parameter, each active power parameter, each power factor parameter, and each harmonic parameter respectively;

[0073] A similarity value is calculated according to the comparison set, the statistical value of each reactive power parameter, the statistical value of each active power parameter, the statistical value of each power factor parameter, and the statistical value of each harmonic parameter using a Euclidean distance similarity formula.

[0074] In this embodiment, the method of calculating the statistical values ​​in the above steps is specifically described below; the above comparison set includes at least one group of comparison parameters, one of which is a comparison statistical value, including the comparison statistical value of the reactive power parameter, the comparison statistical value of the active power parameter, the comparison statistical value of the power factor parameter, and the comparison statistical value of the harmonic parameter.

[0075] In the above steps of calculating similarity values, the Euclidean distance similarity formula is as follows:

[0076]

[0077]

[0078] Wherein, sim(x,y) represents a similarity value; in practical applications, the statistical values ​​of the reactive power parameters, the active power parameters, the power factor parameters and the harmonic parameters are substituted into the x of the above formula. i In the example, the statistical value of each reactive power parameter is x1, the statistical value of each active power parameter is x2, the statistical value of each power factor parameter is x3, and the statistical value of each harmonic parameter is x4, and the comparison set is substituted into y iIn the figure, the comparative statistical value of the reactive power parameter is y1, the comparative statistical value of the active power parameter is y2, the comparative statistical value of the power factor parameter is y3, and the comparative statistical value of the harmonic parameter is y4. Then the similarity value can be calculated.

[0079] In some optional implementations, the statistical value includes a maximum value and a median value; and the step of respectively calculating the statistical value of each of the reactive power parameters, each of the active power parameters, each of the power factor parameters, and each of the harmonic parameters includes:

[0080] The maximum value and median value of each reactive power parameter, each active power parameter, each power factor parameter and each harmonic parameter are calculated respectively by a sorting algorithm.

[0081] In this embodiment, the above-mentioned sorting algorithm is sorted according to the size of the parameters, such as sorting the reactive power parameters from large to small, and then obtaining the maximum value and median value of each reactive power parameter. Similarly, the maximum value and median value of each active power parameter, each power factor parameter and each harmonic parameter are obtained.

[0082] It should be noted that, in the above, the comparative statistical values ​​include comparative maximum values ​​and comparative median values, that is, a set of comparative parameters includes comparative maximum values ​​and comparative median values ​​of reactive power parameters, comparative maximum values ​​and comparative median values ​​of active power parameters, comparative maximum values ​​and comparative median values ​​of power factor parameters, and comparative maximum values ​​and comparative median values ​​of harmonic parameters; in the above step of calculating similarity values, each maximum value, each median value, each comparative maximum value and each comparative median value are substituted into the Euclidean distance similarity formula, such as the maximum value of each reactive power parameter is x1, the median value of each reactive power parameter is x2, the maximum value of each reactive power parameter is x3, the median value of each reactive power parameter is x4..., and the comparative set is substituted into y i In the figure, the maximum value of the reactive power parameter comparison is y1, the median value of the reactive power parameter comparison is y2, the maximum value of the active power parameter comparison is y3, the median value of the active power parameter comparison is y4..., and then the similarity value is calculated.

[0083] In some optional implementations, in step S203, the comparison set includes at least two sets of comparison parameters; and the step of calculating similarity values ​​based on the comparison parameters, the power set, the power factor set, and the harmonic set includes:

[0084] Calculating similarity values ​​corresponding to respective comparison parameters according to the power set, the power factor set, and the harmonic set;

[0085] In the above step S204, if the similarity value satisfies the preset threshold, the step of using the target terminal corresponding to the comparison parameter as the load terminal includes:

[0086] All similarity values ​​that meet the preset threshold are obtained, and the maximum similarity value is determined from all similarity values ​​that meet the preset threshold, and the target terminal corresponding to the comparison parameter with the maximum similarity value is calculated as the load terminal.

[0087] In this embodiment, different comparison parameters correspond to different target terminals, such as comparison parameter A corresponds to electric vehicle batteries, comparison parameter B corresponds to AA batteries, comparison parameter C corresponds to induction cookers, and comparison parameter D corresponds to kettles.

[0088] In this step, it is necessary to calculate the similarity values ​​of different comparison parameters respectively, sort all the similarity values ​​obtained, and then obtain the preset threshold value corresponding to each comparison parameter, where different preset threshold values ​​can correspond to different comparison parameters, that is, one comparison parameter corresponds to one preset threshold value. The specific steps are to first obtain the preset threshold value corresponding to the comparison parameter, and then determine whether the similarity value calculated by the comparison parameter meets the preset threshold value, or multiple comparison parameters correspond to one preset threshold value, and compare the similarity value calculated by each comparison parameter with the preset threshold value; after the comparison is completed, all similarity values ​​that meet the preset threshold value are screened out, and the maximum similarity value is determined from all similarity values ​​that meet the preset threshold value, and then the target terminal corresponding to the comparison parameter used to calculate the maximum similarity value is obtained, and the target terminal is used as the load terminal.

[0089] In some optional implementations, in the above step S204, before the step of obtaining a preset threshold corresponding to the comparison parameter, the method further includes:

[0090] Sending the electrical data to a calculation end for calculation, and receiving a calculation value sent by the calculation end, wherein the calculation value is obtained by the calculation end calculating the electrical data;

[0091] If the calculated value is equal to the similarity value, outputting the similarity value;

[0092] If the calculated value is not equal to the similarity value, the calculated value is used as the similarity value and the similarity value is output.

[0093] In this embodiment, the calculation end is a cloud computing platform, and the electrical data is sent to the calculation end in the form of a table or curve to facilitate the calculation end to identify the parameters in the electrical data. The calculation end then calculates the electrical data, such as recalculating the similarity value in the same calculation method as mentioned above, and sending the similarity value as the calculation value.

[0094] If the calculated value is equal to the similarity value, the calculation result representing the similarity value is correct, and the similarity value is output. If the calculated value is not equal to the similarity value, the calculation result representing the similarity value is wrong, and the similarity value is output after taking the calculated value as the similarity value. Abnormal information can be issued to facilitate the operator to detect and repair the calculation steps of the similarity value.

[0095] In some optional implementations, in the above step S204, after the step of using the target terminal corresponding to the comparison parameter as the load terminal, the method further includes:

[0096] Determining whether the load terminal is a prohibited terminal;

[0097] If the target terminal is a prohibited terminal, a preset processing method is obtained, and the load terminal is processed according to the preset processing method.

[0098] In this embodiment, prohibited terminals are characterized as prohibited electrical loads. For example, in a rental house, the prohibited electrical load is charging of electric vehicle batteries. In a school dormitory, the prohibited electrical load is high-power electrical appliances (such as electric heating rods, induction cookers, etc.).

[0099] Initially, each target terminal is classified and identified. For example, if the target terminal is an electric vehicle battery and is classified and identified as prohibited in household electricity use, then the electric vehicle battery is a prohibited terminal. After the target terminal corresponding to the comparison parameters is used as the load terminal, that is, after the load terminal is determined to be the target terminal, it can be determined whether it is a prohibited terminal based on the classification identification of the target terminal.

[0100] The above-mentioned preset processing methods include issuing alarm processing, power-off processing, etc., wherein the alarm processing includes whistle, voice prompts, information prompts, etc., and the power-off processing is to stop supplying power to the prohibited terminal to ensure the safety of electricity use.

[0101] Those skilled in the art will appreciate that all or part of the processes in the above-described method embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When executed, the program can include the processes in the above-described method embodiments. The aforementioned storage medium can be a non-volatile storage medium such as a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

[0102] It should be understood that although the steps in the flowcharts of the accompanying drawings are shown in sequence as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some of the steps in the flowcharts of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.

[0103] Further references Figure 3 , as a response to the above Figure 2 In order to realize the method shown in the figure, the present application provides an embodiment of a load identification device. Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0104] like Figure 3 As shown, the load identification device 400 of this embodiment includes: a data acquisition module 401, a set calculation module 402, a similarity calculation module 403 and a terminal determination module 404.

[0105] The data acquisition module 401 is used to acquire electrical data of the load terminal within a target time period;

[0106] A set calculation module 402 is configured to extract a power set and a current set from the electrical data, and respectively calculate a power factor set corresponding to the power set and a harmonic set corresponding to the current set;

[0107] a similarity value calculation module 403 configured to obtain a comparison set, extract comparison parameters from the comparison set, and calculate a similarity value based on the comparison parameters, the power set, the power factor set, and the harmonic set, wherein the comparison set includes at least one set of comparison parameters, and each set of comparison parameters corresponds to one target terminal;

[0108] The terminal determination module 404 is configured to obtain a preset threshold corresponding to the comparison parameter, and if the similarity value satisfies the preset threshold, use the target terminal corresponding to the comparison parameter as the load terminal.

[0109] The present application calculates a similarity value based on the comparison set, the power set, the power factor set, and the harmonic set to determine the degree of similarity between the load terminal and the target terminal. When the similarity value meets a preset threshold, the load terminal is determined to be the target terminal. This achieves automatic identification of the type of the load terminal with high accuracy and efficiency.

[0110] In some optional implementations of this embodiment, the above-mentioned set calculation module 402 includes a parameter extraction submodule and a parameter calculation submodule.

[0111] a parameter extraction submodule, configured to extract, from the power set, the apparent power parameters and the active power parameters corresponding to the initial time point and the target time point of the target time period, respectively, and to extract, from the current set, the fundamental current parameters and the harmonic current parameters corresponding to the initial time point and the target time point of the target time period, respectively;

[0112] A parameter calculation submodule is used to calculate a power factor parameter based on the apparent power parameter and active power parameter corresponding to the initial time point and the apparent power parameter and active power parameter corresponding to the target time point, and calculate a harmonic parameter based on the fundamental current parameter and harmonic current parameter corresponding to the initial time point and the fundamental current parameter and harmonic current parameter corresponding to the target time point, wherein the power factor set includes multiple power factor parameters, each of the power factor parameters corresponds to a different target time point in the target time period, and the harmonic set includes multiple harmonic parameters, each of the harmonic parameters corresponds to a different target time point in the target time period.

[0113] In some optional implementations of this embodiment, the power set includes multiple reactive power parameters; the similarity value calculation module 403 includes a first calculation submodule and a second calculation submodule.

[0114] in:

[0115] A first calculation submodule, configured to respectively calculate the statistical values ​​of each reactive power parameter, each active power parameter, each power factor parameter, and each harmonic parameter;

[0116] The second calculation submodule is used to calculate the similarity value through the Euclidean distance similarity formula based on the comparison set, the statistical values ​​of each reactive power parameter, the statistical values ​​of each active power parameter, the statistical values ​​of each power factor parameter and the statistical values ​​of each harmonic parameter.

[0117] In some optional implementations of this embodiment, the statistical value calculation submodule includes a calculation unit; wherein:

[0118] A calculation unit is used to calculate the maximum value and median value of each reactive power parameter, each active power parameter, each power factor parameter and each harmonic parameter respectively through a sorting algorithm.

[0119] In some optional implementations of this embodiment, the comparison set includes at least two sets of comparison parameters; and the similarity value calculation module 403 includes a third calculation submodule.

[0120] A third calculation submodule, configured to calculate, based on the power set, the power factor set, and the harmonic set, similarity values ​​corresponding to the comparison parameters;

[0121] The terminal determination module 404 includes a determination submodule.

[0122] The determination submodule is used to obtain all similarity values ​​that meet the preset threshold, determine the maximum similarity value from all similarity values ​​that meet the preset threshold, and use the target terminal corresponding to the comparison parameter with the maximum similarity value as the load terminal.

[0123] In some optional implementations of this embodiment, a receiving module, a first output module, and a second output module are further included.

[0124] a receiving module, configured to send the electrical data to a calculation terminal for calculation, and receive a calculated value sent by the calculation terminal, wherein the calculated value is obtained by the calculation terminal calculating the electrical data;

[0125] a first output module, configured to output the similarity value if the calculated value is equal to the similarity value;

[0126] The second output module is configured to use the calculated value as the similarity value and output the similarity value if the calculated value is not equal to the similarity value.

[0127] Some optional implementations of this embodiment further include a judgment module and a processing module.

[0128] in:

[0129] A judging module, configured to judge whether the load terminal is a prohibited terminal;

[0130] The processing module is used to obtain a preset processing method if the target terminal is a prohibited terminal, and process the load terminal according to the preset processing method.

[0131] To solve the above technical problems, the present application also provides a computer device. Figure 4 , 4 is a basic structural block diagram of the computer device of this embodiment.

[0132] The computer device 4 includes a memory 41, a processor 42, and a network interface 43 that are interconnected through a system bus. It should be noted that the figure only shows a computer device 4 with components 41-43, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application-specific integrated circuits (ASICs), programmable gate arrays (FPGAs), digital signal processors (DSPs), embedded devices, etc.

[0133] The computer device may be a desktop computer, notebook computer, PDA, cloud server, etc. The computer device may interact with the user via a keyboard, mouse, remote control, touchpad, or voice control device.

[0134] The memory 41 includes at least one type of readable storage medium, including flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic storage, a magnetic disk, an optical disk, etc. In some embodiments, the memory 41 may be an internal storage unit of the computer device 4, such as the hard disk or memory of the computer device 4. In other embodiments, the memory 41 may also be an external storage device of the computer device 4, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash memory card, etc. equipped on the computer device 4. Of course, the memory 41 may also include both the internal storage unit of the computer device 4 and its external storage device. In this embodiment, the memory 41 is generally used to store the operating system and various application software installed on the computer device 4, such as the program code of the load identification method. In addition, the memory 41 can also be used to temporarily store various types of data that have been output or are to be output.

[0135] In some embodiments, the processor 42 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip. The processor 42 is generally used to control the overall operation of the computer device 4. In this embodiment, the processor 42 is used to execute program code stored in the memory 41 or process data, such as executing the program code of the method X.

[0136] The network interface 43 may include a wireless network interface or a wired network interface. The network interface 43 is generally used to establish a communication connection between the computer device 4 and other electronic devices.

[0137] The present application calculates a similarity value based on the comparison set, the power set, the power factor set, and the harmonic set to determine the degree of similarity between the load terminal and the target terminal. When the similarity value meets a preset threshold, the load terminal is determined to be the target terminal. This achieves automatic identification of the type of the load terminal with high accuracy and efficiency.

[0138] The present application also provides another embodiment, namely, providing a computer-readable storage medium, which stores a load identification program, and the load identification program can be executed by at least one processor to enable the at least one processor to perform the steps of the load identification method as described above.

[0139] The present application calculates a similarity value based on the comparison set, the power set, the power factor set, and the harmonic set to determine the degree of similarity between the load terminal and the target terminal. When the similarity value meets a preset threshold, the load terminal is determined to be the target terminal. This achieves automatic identification of the type of the load terminal with high accuracy and efficiency.

[0140] 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 the 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 this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0141] Obviously, the embodiments described above are only some of the embodiments of the present application, rather than all of the embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application has been described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions described in the aforementioned specific embodiments, or to make equivalent replacements for some of the technical features therein. Any equivalent structure made using the contents of the present application specification and the accompanying drawings, directly or indirectly used in other related technical fields, is also within the scope of patent protection of the present application.

Claims

1. A load identification method, characterized in that: The steps include: Obtain electrical data of the load terminal within a target time period; Extracting a power set and a current set from the electrical data, and respectively calculating a power factor set corresponding to the power set and a harmonic set corresponding to the current set, wherein the power factor set is calculated based on a rate of change of a difference, and the harmonic set is calculated using the law of cosines; Obtaining a comparison set, extracting comparison parameters from the comparison set, and calculating a similarity value based on the comparison parameters, the power set, the power factor set, and the harmonic set, wherein the comparison set includes at least one set of comparison parameters, and a set of the comparison parameters corresponds to one target terminal; obtaining a preset threshold corresponding to the comparison parameter, and if the similarity value satisfies the preset threshold, using the target terminal corresponding to the comparison parameter as the load terminal; The step of respectively calculating the power factor set corresponding to the power set and the harmonic set corresponding to the current set includes: Extracting, from the power set, the apparent power parameter and the active power parameter corresponding to the initial time point and the target time point of the target time period, respectively, and extracting, from the current set, the fundamental current parameter and the harmonic current parameter corresponding to the initial time point and the target time point of the target time period, respectively; Calculating a power factor parameter based on the apparent power parameter and the active power parameter corresponding to the initial time point and the apparent power parameter and the active power parameter corresponding to the target time point, and calculating a harmonic parameter based on the fundamental current parameter and the harmonic current parameter corresponding to the initial time point and the fundamental current parameter and the harmonic current parameter corresponding to the target time point, wherein the power factor set includes a plurality of power factor parameters, each of which corresponds to a different target time point in the target time period, and the harmonic set includes a plurality of harmonic parameters, each of which corresponds to a different target time point in the target time period; Among them, in the step of calculating the power factor parameter, specifically, calculating the first parameter difference between the apparent power parameter at the target time point and the apparent power parameter at the initial time point, and calculating the second parameter difference between the active power parameter at the target time point and the active power parameter at the initial time point, and then dividing the first parameter difference by the second parameter difference to obtain the above-mentioned power factor parameter; in the step of calculating the harmonic parameter, specifically, calculating the first parameter product of the fundamental current parameter and the harmonic current parameter at the initial time point, and calculating the second parameter product of the fundamental current parameter and the harmonic current parameter at the target time point, and then calculating according to the cosine theorem to obtain the above-mentioned harmonic parameter.

2. The load identification method according to claim 1, characterized in that: The power set includes a plurality of reactive power parameters; and the step of calculating the similarity value based on the comparison parameters, the power set, the power factor set, and the harmonic set includes: Calculating statistical values ​​of each reactive power parameter, each active power parameter, each power factor parameter, and each harmonic parameter respectively; A similarity value is calculated according to the comparison set, the statistical value of each reactive power parameter, the statistical value of each active power parameter, the statistical value of each power factor parameter, and the statistical value of each harmonic parameter using a Euclidean distance similarity formula.

3. The load identification method according to claim 2, characterized in that: The statistical value includes a maximum value and a median value; the steps of respectively calculating the statistical values ​​of each reactive power parameter, each active power parameter, each power factor parameter, and each harmonic parameter include: The maximum value and median value of each reactive power parameter, each active power parameter, each power factor parameter and each harmonic parameter are calculated respectively by a sorting algorithm.

4. The load identification method according to any one of claims 1 to 3, characterized in that: The comparison set includes at least two groups of comparison parameters; and the step of calculating similarity values ​​based on the comparison parameters, the power set, the power factor set, and the harmonic set includes: Calculating similarity values ​​corresponding to respective comparison parameters according to the power set, the power factor set, and the harmonic set; If the similarity value satisfies the preset threshold, the step of using the target terminal corresponding to the comparison parameter as the load terminal includes: All similarity values ​​that meet the preset threshold are obtained, and the maximum similarity value is determined from all similarity values ​​that meet the preset threshold, and the target terminal corresponding to the comparison parameter with the maximum similarity value is calculated as the load terminal.

5. The load identification method according to any one of claims 1 to 3, characterized in that: Before the step of obtaining the preset threshold corresponding to the comparison parameter, the method further includes: Sending the electrical data to a calculation end for calculation, and receiving a calculation value sent by the calculation end, wherein the calculation value is obtained by the calculation end calculating the electrical data; If the calculated value is equal to the similarity value, outputting the similarity value; If the calculated value is not equal to the similarity value, the calculated value is used as the similarity value and the similarity value is output.

6. The load identification method according to any one of claims 1 to 3, characterized in that: After the step of using the target terminal corresponding to the comparison parameter as the load terminal, the method further includes: Determining whether the load terminal is a prohibited terminal; If the target terminal is a prohibited terminal, a preset processing method is obtained, and the load terminal is processed according to the preset processing method.

7. A load identification device, characterized in that: include: A data acquisition module is used to acquire electrical data of the load terminal within a target time period; a set calculation module, configured to extract a power set and a current set from the electrical data, and respectively calculate a power factor set corresponding to the power set and a harmonic set corresponding to the current set, wherein the power factor set is calculated based on a rate of change of a difference, and the harmonic set is calculated using the law of cosines; a similarity value calculation module, configured to obtain a comparison set, extract comparison parameters from the comparison set, and calculate a similarity value based on the comparison parameters, the power set, the power factor set, and the harmonic set, wherein the comparison set includes at least one set of comparison parameters, and a set of comparison parameters corresponds to one target terminal; a terminal determination module, configured to obtain a preset threshold corresponding to the comparison parameter, and if the similarity value satisfies the preset threshold, use a target terminal corresponding to the comparison parameter as the load terminal; The set calculation module includes a parameter extraction submodule and a parameter calculation submodule, wherein: a parameter extraction submodule, configured to extract, from the power set, the apparent power parameters and the active power parameters corresponding to the initial time point and the target time point of the target time period, respectively, and to extract, from the current set, the fundamental current parameters and the harmonic current parameters corresponding to the initial time point and the target time point of the target time period, respectively; a parameter calculation submodule, configured to calculate a power factor parameter based on the apparent power parameter and the active power parameter corresponding to the initial time point and the apparent power parameter and the active power parameter corresponding to the target time point, and calculate a harmonic parameter based on the fundamental current parameter and the harmonic current parameter corresponding to the initial time point and the fundamental current parameter and the harmonic current parameter corresponding to the target time point, wherein the power factor set includes a plurality of power factor parameters, each of which corresponds to a different target time point in the target time period, and the harmonic set includes a plurality of harmonic parameters, each of which corresponds to a different target time point in the target time period; Among them, in the step of calculating the power factor parameter, specifically, calculating the first parameter difference between the apparent power parameter at the target time point and the apparent power parameter at the initial time point, and calculating the second parameter difference between the active power parameter at the target time point and the active power parameter at the initial time point, and then dividing the first parameter difference by the second parameter difference to obtain the above-mentioned power factor parameter; in the step of calculating the harmonic parameter, specifically, calculating the first parameter product of the fundamental current parameter and the harmonic current parameter at the initial time point, and calculating the second parameter product of the fundamental current parameter and the harmonic current parameter at the target time point, and then calculating according to the cosine theorem to obtain the above-mentioned harmonic parameter.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the load identification method according to any one of claims 1 to 6 when executing the computer program.

9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the load identification method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Non-intrusive electric appliance identification method based on harmonic similarity algorithm

    CN111025011A