[go: up one dir, main page]

CN116388112B - Abnormal supply end power-off method, device, electronic equipment and computer readable medium - Google Patents

Abnormal supply end power-off method, device, electronic equipment and computer readable medium Download PDF

Info

Publication number
CN116388112B
CN116388112B CN202310605958.2A CN202310605958A CN116388112B CN 116388112 B CN116388112 B CN 116388112B CN 202310605958 A CN202310605958 A CN 202310605958A CN 116388112 B CN116388112 B CN 116388112B
Authority
CN
China
Prior art keywords
power
information
sequence
power consumption
average value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310605958.2A
Other languages
Chinese (zh)
Other versions
CN116388112A (en
Inventor
孙兴达
卢彩霞
何嘉
唐志涛
刘明明
赵园园
高天
郑凤柱
杜晔
李泽盼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Information and Telecommunication Co Ltd
Beijing Guodiantong Network Technology Co Ltd
Original Assignee
State Grid Information and Telecommunication Co Ltd
Beijing Guodiantong Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by State Grid Information and Telecommunication Co Ltd, Beijing Guodiantong Network Technology Co Ltd filed Critical State Grid Information and Telecommunication Co Ltd
Priority to CN202310605958.2A priority Critical patent/CN116388112B/en
Publication of CN116388112A publication Critical patent/CN116388112A/en
Application granted granted Critical
Publication of CN116388112B publication Critical patent/CN116388112B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02HEMERGENCY PROTECTIVE CIRCUIT ARRANGEMENTS
    • H02H1/00Details of emergency protective circuit arrangements
    • H02H1/0092Details of emergency protective circuit arrangements concerning the data processing means, e.g. expert systems, neural networks
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/50Testing of electric apparatus, lines, cables or components for short-circuits, continuity, leakage current or incorrect line connections
    • G01R31/54Testing for continuity
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N20/00Machine learning
    • G06N20/20Ensemble learning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/0499Feedforward networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • G06N3/084Backpropagation, e.g. using gradient descent
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02HEMERGENCY PROTECTIVE CIRCUIT ARRANGEMENTS
    • H02H7/00Emergency protective circuit arrangements specially adapted for specific types of electric machines or apparatus or for sectionalised protection of cable or line systems, and effecting automatic switching in the event of an undesired change from normal working conditions
    • H02H7/22Emergency protective circuit arrangements specially adapted for specific types of electric machines or apparatus or for sectionalised protection of cable or line systems, and effecting automatic switching in the event of an undesired change from normal working conditions for distribution gear, e.g. bus-bar systems; for switching devices
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02HEMERGENCY PROTECTIVE CIRCUIT ARRANGEMENTS
    • H02H7/00Emergency protective circuit arrangements specially adapted for specific types of electric machines or apparatus or for sectionalised protection of cable or line systems, and effecting automatic switching in the event of an undesired change from normal working conditions
    • H02H7/26Sectionalised protection of cable or line systems, e.g. for disconnecting a section on which a short-circuit, earth fault, or arc discharge has occured

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Evolutionary Computation (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Mathematical Physics (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • General Health & Medical Sciences (AREA)
  • Molecular Biology (AREA)
  • Biophysics (AREA)
  • Computational Linguistics (AREA)
  • Biomedical Technology (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Medical Informatics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Power Sources (AREA)

Abstract

本公开的实施例公开了异常供应端断电方法、装置、电子设备和计算机可读介质。该方法的一具体实施方式包括:将电力容量序列中各个电力容量的平均值确定为电力容量均值;将第一用电量序列中各个第一用电量的平均值确定为用电量均值;将第一用电量序列中大于用电量均值的各个第一用电量的平均值确定为用电量上均值;将电力容量均值和用电量上均值添加至电力初始信息中;对电力初始信息进行数据清洗处理,以生成电力信息;将电力信息输入至预先训练的目标电力信息生成模型中,得到目标电力信息;将目标电力信息输入至预先训练的电力结果信息生成模型中,得到电力结果信息;对供应端进行断电处理。该实施方式可以及时对部分异常供应端进行断电。

Embodiments of the present disclosure disclose abnormal supply end power outage methods, devices, electronic equipment and computer-readable media. A specific implementation of the method includes: determining the average value of each power capacity in the power capacity sequence as the power capacity average; determining the average value of each first power consumption in the first power consumption sequence as the power consumption average; Determine the average value of each first power consumption in the first power consumption sequence that is greater than the average power consumption as the upper average power consumption; add the average power capacity and the upper average power consumption to the initial power information; The initial information is subjected to data cleaning processing to generate power information; the power information is input into the pre-trained target power information generation model to obtain the target power information; the target power information is input into the pre-trained power result information generation model to obtain the power Result information; power off the supply end. This implementation mode can promptly cut off power to some abnormal supply terminals.

Description

异常供应端断电方法、装置、电子设备和计算机可读介质Abnormal supply side power outage method, device, electronic equipment and computer-readable medium

技术领域Technical field

本公开的实施例涉及计算机技术领域,具体涉及异常供应端断电方法、装置、电子设备和计算机可读介质。Embodiments of the present disclosure relate to the field of computer technology, and specifically relate to abnormal supply end power outage methods, devices, electronic equipment and computer-readable media.

背景技术Background technique

对异常供应端进行断电,可以减少异常供应端对电力的浪费。目前,对异常供应端进行断电,通常采用的方式为:根据供应端提供的电力基本信息,按照预先设定的规则识别出供应端是否是异常供应端,然后对异常供应端进行断电。Powering off the abnormal supply end can reduce the waste of power by the abnormal supply end. At present, the usual way to power off an abnormal supply end is to identify whether the supply end is an abnormal supply end according to the basic power information provided by the supply end and according to preset rules, and then cut off power to the abnormal supply end.

然而,采用上述方式通常存在以下技术问题:However, there are usually the following technical problems with the above approach:

第一,供应端提供的电力基本信息的准确度和时效性无法保证,造成通过供应端提供的电力基本信息识别出的异常供应端的准确度较低,导致难以及时对部分异常供应端进行断电;First, the accuracy and timeliness of the basic power information provided by the supplier cannot be guaranteed, resulting in low accuracy in identifying abnormal supply terminals through the basic power information provided by the supplier, making it difficult to cut off power to some abnormal supply terminals in a timely manner. ;

第二,由于电力基本信息包括的用电属性值序列中的用电属性值可能会存在异常(例如,缺失、数值过大、数值过小等),通过存在异常的电力基本信息识别出的异常供应端的准确度较低,导致难以对部分异常供应端进行断电;Second, since the electricity attribute values in the electricity attribute value sequence included in the basic electricity information may be abnormal (for example, missing, too large, too small, etc.), the anomalies identified through the abnormal basic electricity information The accuracy of the supply side is low, making it difficult to power off some abnormal supply sides;

第三,由于电力基本信息包括大量与预先设定的规则无关的信息,使得在识别异常供应端时,需要从大量无关的信息中筛选出与预先设定的规则有关的信息,导致浪费了计算资源;Third, since basic power information includes a large amount of information that is irrelevant to the preset rules, when identifying an abnormal supply end, it is necessary to filter out information related to the preset rules from a large amount of irrelevant information, resulting in a waste of calculations. resource;

第四,预先设定的规则考虑到异常供应端对应的情况较少,识别出的异常供应端的准确度较低,难以对部分异常供应端进行断电。Fourth, the preset rules take into account that there are fewer situations corresponding to abnormal supply terminals, and the accuracy of identifying abnormal supply terminals is low, making it difficult to power off some abnormal supply terminals.

该背景技术部分中所公开的以上信息仅用于增强对本发明构思的背景的理解,并因此,其可包含并不形成本国的本领域普通技术人员已知的现有技术的信息。The above information disclosed in this Background section is only for enhancement of understanding of the background of the inventive concept and therefore it may contain information that does not form the prior art that is already known in this country to a person of ordinary skill in the art.

发明内容Contents of the invention

本公开的内容部分用于以简要的形式介绍构思,这些构思将在后面的具体实施方式部分被详细描述。本公开的内容部分并不旨在标识要求保护的技术方案的关键特征或必要特征,也不旨在用于限制所要求的保护的技术方案的范围。This Summary is provided to introduce in simplified form concepts that are later described in detail in the Detailed Description. The content of this disclosure is not intended to identify key features or essential features of the claimed technical solutions, nor is it intended to be used to limit the scope of the claimed technical solutions.

本公开的一些实施例提出了异常供应端断电方法、装置、电子设备和计算机可读介质,来解决以上背景技术部分提到的技术问题中的一项或多项。Some embodiments of the present disclosure propose abnormal supply-end power outage methods, devices, electronic devices, and computer-readable media to solve one or more of the technical problems mentioned in the background art section above.

第一方面,本公开的一些实施例提供了一种异常供应端断电方法,该方法包括:获取供应端的电力基本信息,其中,上述电力基本信息包括:电力容量序列、第一用电量序列,上述电力容量序列中的电力容量对应第一预设时间段内的一时间粒度,上述第一用电量序列中的第一用电量对应第一预设时间段内的一时间粒度;将上述电力容量序列中各个电力容量的平均值确定为电力容量均值;将上述第一用电量序列中各个第一用电量的平均值确定为用电量均值;将上述第一用电量序列中大于上述用电量均值的各个第一用电量的平均值确定为用电量上均值;将上述电力容量均值和上述用电量上均值添加至电力初始信息中,其中,上述电力初始信息初始为空;对上述电力初始信息进行数据清洗处理,以生成电力信息;将上述电力信息输入至预先训练的目标电力信息生成模型中,得到目标电力信息;将上述目标电力信息输入至预先训练的电力结果信息生成模型中,得到电力结果信息;响应于确定上述电力结果信息满足预设异常条件,对上述供应端进行断电处理。In a first aspect, some embodiments of the present disclosure provide a method for abnormal supply side power outage. The method includes: obtaining basic power information of the supply side, where the above basic power information includes: power capacity sequence, first power consumption sequence , the power capacity in the above-mentioned power capacity sequence corresponds to a time granularity within the first preset time period, and the first power consumption in the above-mentioned first power consumption sequence corresponds to a time granularity within the first preset time period; The average value of each power capacity in the above-mentioned power capacity sequence is determined as the average power capacity; the average value of each first power consumption in the above-mentioned first power consumption sequence is determined as the average power consumption; the above-mentioned first power consumption sequence is determined as the average power consumption. The average value of each first power consumption greater than the above-mentioned average power consumption is determined as the upper average value of power consumption; the above-mentioned average power capacity and the above-mentioned upper average value of power consumption are added to the initial power information, wherein the above-mentioned initial power information Initially empty; perform data cleaning processing on the above-mentioned initial power information to generate power information; input the above-mentioned power information into the pre-trained target power information generation model to obtain the target power information; input the above-mentioned target power information into the pre-trained In the power result information generation model, the power result information is obtained; in response to determining that the power result information satisfies the preset abnormal condition, the power supply end is powered off.

第二方面,本公开的一些实施例提供了一种异常供应端断电装置,装置包括:获取单元,被配置成获取供应端的电力基本信息,其中,上述电力基本信息包括:电力容量序列、第一用电量序列,上述电力容量序列中的电力容量对应第一预设时间段内的一时间粒度,上述第一用电量序列中的第一用电量对应第一预设时间段内的一时间粒度;第一确定单元,被配置成将上述电力容量序列中各个电力容量的平均值确定为电力容量均值;第二确定单元,被配置成将上述第一用电量序列中各个第一用电量的平均值确定为用电量均值;第三确定单元,被配置成将上述第一用电量序列中大于上述用电量均值的各个第一用电量的平均值确定为用电量上均值;添加单元,被配置成将上述电力容量均值和上述用电量上均值添加至电力初始信息中,其中,上述电力初始信息初始为空;数据清洗单元,被配置成对上述电力初始信息进行数据清洗处理,以生成电力信息;第一输入单元,被配置成将上述电力信息输入至预先训练的目标电力信息生成模型中,得到目标电力信息;第二输入单元,被配置成将上述目标电力信息输入至预先训练的电力结果信息生成模型中,得到电力结果信息;断电单元,被配置成响应于确定上述电力结果信息满足预设异常条件,对上述供应端进行断电处理。In a second aspect, some embodiments of the present disclosure provide an abnormal supply-end power outage device. The device includes: an acquisition unit configured to acquire basic power information of the supply end, where the above-mentioned basic power information includes: power capacity sequence, third A power consumption sequence, the power capacity in the power capacity sequence corresponds to a time granularity within a first preset time period, and the first power consumption in the first power consumption sequence corresponds to a time granularity within the first preset time period. A time granularity; the first determination unit is configured to determine the average value of each power capacity in the above-mentioned power capacity sequence as the average power capacity; the second determination unit is configured to determine each first value in the above-mentioned first power consumption sequence. The average value of the electric power consumption is determined as the average electric power consumption; the third determination unit is configured to determine the average value of each first electric power consumption in the above-mentioned first electric power consumption sequence that is greater than the above-described average electric power consumption as the electric power consumption. The average value of the quantity; the adding unit is configured to add the above-mentioned average value of power capacity and the above-mentioned average value of power consumption to the initial power information, wherein the above-mentioned initial information of power is initially empty; the data cleaning unit is configured to add the above-mentioned average value of power consumption to the initial power information. The information is subjected to data cleaning processing to generate power information; the first input unit is configured to input the above-mentioned power information into a pre-trained target power information generation model to obtain the target power information; the second input unit is configured to input the above-mentioned power information The target power information is input into the pre-trained power result information generation model to obtain the power result information; the power outage unit is configured to perform power outage processing on the supply end in response to determining that the power result information satisfies the preset abnormal condition.

第三方面,本公开的一些实施例提供了一种电子设备,包括:一个或多个处理器;存储装置,其上存储有一个或多个程序,当一个或多个程序被一个或多个处理器执行,使得一个或多个处理器实现上述第一方面任一实现方式所描述的方法。In a third aspect, some embodiments of the present disclosure provide an electronic device, including: one or more processors; a storage device on which one or more programs are stored. When one or more programs are processed by one or more The processor executes, causing one or more processors to implement the method described in any implementation manner of the first aspect.

第四方面,本公开的一些实施例提供了一种计算机可读介质,其上存储有计算机程序,其中,程序被处理器执行时实现上述第一方面任一实现方式所描述的方法。In a fourth aspect, some embodiments of the present disclosure provide a computer-readable medium on which a computer program is stored, wherein when the program is executed by a processor, the method described in any implementation manner of the first aspect is implemented.

本公开的上述各个实施例具有如下有益效果:通过本公开的一些实施例的异常供应端断电方法,可以及时对部分异常供应端进行断电。具体来说,导致难以及时对部分异常供应端进行断电的原因在于:供应端提供的电力基本信息的准确度和时效性无法保证,造成通过供应端提供的电力基本信息识别出的异常供应端的准确度较低。基于此,本公开的一些实施例的异常供应端断电方法,首先,获取供应端的电力基本信息。其中,上述电力基本信息包括:电力容量序列、第一用电量序列,上述电力容量序列中的电力容量对应第一预设时间段内的一时间粒度,上述第一用电量序列中的第一用电量对应第一预设时间段内的一时间粒度。由此,电网终端可以直接获取到时间粒度较小(一天、半个月、一个月等)且准确度较高的电力基本信息。其次,将上述电力容量序列中各个电力容量的平均值确定为电力容量均值。接着,将上述第一用电量序列中各个第一用电量的平均值确定为用电量均值。紧接着,将上述第一用电量序列中大于上述用电量均值的各个第一用电量的平均值确定为用电量上均值。然后,将上述电力容量均值和上述用电量上均值添加至电力初始信息中。其中,上述电力初始信息初始为空。由此,可以根据时间粒度较小且准确度较高的电力基本信息,得到时效性以及准确度较高的电力初始信息,以便后续根据电力初始信息识别出异常供应端。再然后,对上述电力初始信息进行数据清洗处理,以生成电力信息。由此,可以得到数据清洗后的电力信息,以便减低后续目标电力信息生成模型的复杂度。之后,将上述电力信息输入至预先训练的目标电力信息生成模型中,得到目标电力信息。由此,可以得到目标电力信息,以便后续电力结果信息生成模型以目标电力信息代替电力信息为输入,可以降低电力结果信息生成模型的复杂度。再之后,将上述目标电力信息输入至预先训练的电力结果信息生成模型中,得到电力结果信息。由此,可以得到电力结果信息,以便后续通过电力结果信息识别出异常供应端。最后,响应于确定上述电力结果信息满足预设异常条件,对上述供应端进行断电处理。由此,可以对异常供应端进行断电处理。从而,可以根据时间粒度较小的电力基本信息,得到时效性较高的电力初始信息。因此,可以识别出较为准确的异常供应端,可以及时对部分异常供应端进行断电。The above-mentioned embodiments of the present disclosure have the following beneficial effects: through the abnormal supply terminal power-off methods of some embodiments of the present disclosure, some abnormal supply terminals can be powered off in a timely manner. Specifically, the reason why it is difficult to cut off power to some abnormal supply terminals in time is that the accuracy and timeliness of the basic power information provided by the supply terminal cannot be guaranteed, resulting in abnormal supply terminals identified through the basic power information provided by the supply terminal. Less accurate. Based on this, the abnormal supply end power outage method in some embodiments of the present disclosure first obtains basic power information of the supply end. Wherein, the above-mentioned basic power information includes: a power capacity sequence and a first power consumption sequence. The power capacity in the above-mentioned power capacity sequence corresponds to a time granularity within a first preset time period. The third power consumption sequence in the above-mentioned first power consumption sequence One power consumption corresponds to one time granularity within the first preset time period. As a result, power grid terminals can directly obtain basic power information with small time granularity (one day, half a month, one month, etc.) and high accuracy. Secondly, the average value of each power capacity in the above power capacity sequence is determined as the power capacity mean value. Next, the average value of each first power consumption in the first power consumption sequence is determined as the average power consumption value. Immediately afterwards, the average value of each first power consumption in the above-mentioned first power consumption sequence that is greater than the above-mentioned average power consumption is determined as the upper average value of power consumption. Then, the above average power capacity value and the above average power consumption value are added to the initial power information. Among them, the above-mentioned initial power information is initially empty. As a result, timely and highly accurate initial power information can be obtained based on basic power information with smaller time granularity and higher accuracy, so that abnormal supply terminals can be subsequently identified based on the initial power information. Then, data cleaning processing is performed on the above-mentioned initial power information to generate power information. Thus, the power information after data cleaning can be obtained, so as to reduce the complexity of the subsequent target power information generation model. Afterwards, the above-mentioned power information is input into the pre-trained target power information generation model to obtain the target power information. In this way, the target power information can be obtained, so that the subsequent power result information generation model uses the target power information as input instead of the power information, which can reduce the complexity of the power result information generation model. Then, the above target power information is input into the pre-trained power result information generation model to obtain the power result information. In this way, the power result information can be obtained, so that the abnormal supply end can be subsequently identified through the power result information. Finally, in response to determining that the above-mentioned power result information satisfies the preset abnormal conditions, the above-mentioned supply end is powered off. In this way, the abnormal supply end can be powered off. Therefore, time-sensitive initial power information can be obtained based on basic power information with smaller time granularity. Therefore, more accurate abnormal supply terminals can be identified, and some abnormal supply terminals can be powered off in a timely manner.

附图说明Description of drawings

结合附图并参考以下具体实施方式,本公开各实施例的上述和其他特征、优点及方面将变得更加明显。贯穿附图中,相同或相似的附图标记表示相同或相似的元素。应当理解附图是示意性的,原件和元素不一定按照比例绘制。The above and other features, advantages, and aspects of various embodiments of the present disclosure will become more apparent with reference to the following detailed description taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It is to be understood that the drawings are schematic and that elements and elements are not necessarily drawn to scale.

图1是根据本公开的异常供应端断电方法的一些实施例的流程图;Figure 1 is a flow chart of some embodiments of an abnormal supply end power outage method according to the present disclosure;

图2是根据本公开的异常供应端断电装置的一些实施例的结构示意图;Figure 2 is a schematic structural diagram of some embodiments of an abnormal supply end power outage device according to the present disclosure;

图3是适于用来实现本公开的一些实施例的电子设备的结构示意图。3 is a schematic structural diagram of an electronic device suitable for implementing some embodiments of the present disclosure.

具体实施方式Detailed ways

下面将参照附图更详细地描述本公开的实施例。虽然附图中显示了本公开的某些实施例,然而应当理解的是,本公开可以通过各种形式来实现,而且不应该被解释为限于这里阐述的实施例。相反,提供这些实施例是为了更加透彻和完整地理解本公开。应当理解的是,本公开的附图及实施例仅用于示例性作用,并非用于限制本公开的保护范围。Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the disclosure are shown in the drawings, it should be understood that the disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of the present disclosure.

另外还需要说明的是,为了便于描述,附图中仅示出了与有关发明相关的部分。在不冲突的情况下,本公开中的实施例及实施例中的特征可以相互组合。It should also be noted that, for convenience of description, only the parts related to the invention are shown in the drawings. The embodiments and features of the embodiments in the present disclosure may be combined with each other without conflict.

需要注意,本公开中提及的“第一”、“第二”等概念仅用于对不同的装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。It should be noted that concepts such as “first” and “second” mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units. Or interdependence.

需要注意,本公开中提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有明确指出,否则应该理解为“一个或多个”。It should be noted that the modifications of "one" and "plurality" mentioned in this disclosure are illustrative and not restrictive. Those skilled in the art will understand that unless the context clearly indicates otherwise, it should be understood as "one or Multiple”.

本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。The names of messages or information exchanged between multiple devices in the embodiments of the present disclosure are for illustrative purposes only and are not used to limit the scope of these messages or information.

下面将参考附图并结合实施例来详细说明本公开。The present disclosure will be described in detail below in conjunction with embodiments with reference to the accompanying drawings.

参考图1,示出了根据本公开的异常供应端断电方法的一些实施例的流程100。该异常供应端断电方法,包括以下步骤:Referring to FIG. 1 , a process 100 of some embodiments of an abnormal supply end power outage method according to the present disclosure is shown. The abnormal supply-side power-off method includes the following steps:

步骤101,获取供应端的电力基本信息。Step 101: Obtain basic power information of the supply side.

在一些实施例中,异常供应端断电方法的执行主体(例如电网终端)可以通过有线连接或无线连接的方式从终端设备中获取供应端的电力基本信息。其中,上述电力基本信息可以包括但不限于以下至少一项:电力容量序列、第一用电量序列、第二用电量序列、第一用电属性值序列、减容容量序列、目标电力容量、第二用电属性值序列、区域用电量序列、区域用电属性值序列。这里,电网终端可以是向供应端供电的终端。供应端可以是运行受电设备的终端。上述电力容量序列中的电力容量对应第一预设时间段内的一时间粒度。上述第一用电量序列中的第一用电量对应第一预设时间段内的一时间粒度。电力容量序列中的电力容量可以是供应端运行的受电设备时的运行容量。运行容量可以是受电设备实际运行的容量。第一用电量序列中的第一用电量可以是供应端运行受电设备时所需要的电量。第二用电量序列中的第二用电量可以是第二预设时间段内的一时间粒度对应的供应端运行受电设备时所需要的电量。第一用电属性值序列中的第一用电属性值可以是第一预设时间段内的一时间粒度对应的供应端运行受电设备时所需要的用电属性值(电费)。减容容量序列中的减容容量可以是第一预设时间段内的一时间粒度对应的供应端运行受电设备时所减少的运行容量。目标电力容量可以是当前供应端运行受电设备时的运行容量。第二用电属性值序列中的第二用电属性值可以是第二预设时间段内的一时间粒度对应的供应端运行受电设备时所需要的用电属性值(电费)。区域用电量序列中的区域用电量可以是第一预设时间段内的一时间粒度对应的与上述供应端类型相同的供应端运行受电设备时所需要的电量。区域用电属性值序列中的区域用电属性值可以是第一预设时间段内的一时间粒度对应的与上述供应端类型相同的供应端运行受电设备时所需要的用电属性值(电费)。例如,上述时间粒度可以是但不限于:一天、一周、半个月。上述第一预设时间段可以是2022.5.1-2022.6.1。上述第一预设时间段还可以是2022.7.1-2023.1.1。上述第一预设时间段可以是2022.1.1-2023.1.1。上述第二预设时间段可以是2022.4.1-2022.5.1。上述第二预设时间段还可以是2022.1.1-2022.7.1。上述第二时间段还可以是2021.1.1-2022.1.1。受电设备可以包括但不限于以下至少一项:移动手机、平板电脑、移动互联网设备(Mobile Internet Device,MID)、风扇等。In some embodiments, the execution body of the abnormal supply side power outage method (for example, the power grid terminal) can obtain the basic power information of the supply side from the terminal device through a wired connection or a wireless connection. Wherein, the above-mentioned basic power information may include but is not limited to at least one of the following: power capacity sequence, first power consumption sequence, second power consumption sequence, first power consumption attribute value sequence, capacity reduction sequence, target power capacity , the second electricity consumption attribute value sequence, the regional electricity consumption sequence, and the regional electricity consumption attribute value sequence. Here, the grid terminal may be a terminal that supplies power to the supply end. The supply side can be the terminal running the powered device. The power capacity in the above power capacity sequence corresponds to a time granularity within the first preset time period. The first power consumption in the first power consumption sequence corresponds to a time granularity within the first preset time period. The power capacity in the power capacity sequence may be the operating capacity when the powered device is operated at the supply end. The operating capacity may be the actual operating capacity of the powered device. The first power consumption in the first power consumption sequence may be the power required by the supply end to operate the powered device. The second power consumption in the second power consumption sequence may be the power required by the supply end to operate the powered device at a time granularity corresponding to the second preset time period. The first power attribute value in the first power attribute value sequence may be the power attribute value (electricity fee) required by the supply end to operate the powered device at a time granularity within the first preset time period. The capacity reduction in the capacity reduction sequence may be the reduced operating capacity when the supply end operates the powered device at a time granularity corresponding to the first preset time period. The target power capacity may be the operating capacity of the current supply end when operating the powered device. The second power consumption attribute value in the second power consumption attribute value sequence may be the power consumption attribute value (electricity fee) required by the supply end to operate the powered device at a time granularity within the second preset time period. The regional power consumption in the regional power consumption sequence may be the power required by a supply end of the same type as the above-mentioned supply end to operate the powered device at a time granularity within the first preset time period. The regional power attribute value in the regional power attribute value sequence may be the power attribute value required by a supply end of the same type as the above-mentioned supply end to operate the powered device at a time granularity within the first preset time period ( electricity bill). For example, the above time granularity can be but is not limited to: one day, one week, and half a month. The above-mentioned first preset time period may be 2022.5.1-2022.6.1. The above-mentioned first preset time period may also be 2022.7.1-2023.1.1. The above-mentioned first preset time period may be 2022.1.1-2023.1.1. The above-mentioned second preset time period may be 2022.4.1-2022.5.1. The above-mentioned second preset time period may also be 2022.1.1-2022.7.1. The above-mentioned second time period can also be 2021.1.1-2022.1.1. The powered device may include but is not limited to at least one of the following: mobile phone, tablet computer, mobile Internet device (Mobile Internet Device, MID), fan, etc.

步骤102,将电力容量序列中各个电力容量的平均值确定为电力容量均值。Step 102: Determine the average value of each power capacity in the power capacity sequence as the power capacity average value.

在一些实施例中,上述执行主体可以将上述电力容量序列中各个电力容量的平均值确定为电力容量均值。In some embodiments, the above-mentioned execution subject may determine the average value of each power capacity in the above-mentioned power capacity sequence as the average power capacity value.

步骤103,将第一用电量序列中各个第一用电量的平均值确定为用电量均值。Step 103: Determine the average value of each first power consumption in the first power consumption sequence as the average power consumption.

在一些实施例中,上述执行主体可以将上述第一用电量序列中各个第一用电量的平均值确定为用电量均值。In some embodiments, the execution subject may determine the average value of each first power consumption in the first power consumption sequence as the average power consumption.

步骤104,将第一用电量序列中大于用电量均值的各个第一用电量的平均值确定为用电量上均值。Step 104: Determine the average value of each first power consumption in the first power consumption sequence that is greater than the average power consumption as the upper average value of power consumption.

在一些实施例中,上述执行主体可以将上述第一用电量序列中大于上述用电量均值的各个第一用电量的平均值确定为用电量上均值。In some embodiments, the execution subject may determine the average value of each first power consumption in the first power consumption sequence that is greater than the average power consumption as the upper average value of power consumption.

步骤105,将电力容量均值和用电量上均值添加至电力初始信息中。Step 105: Add the average power capacity and the upper average power consumption to the initial power information.

在一些实施例中,上述执行主体可以将上述电力容量均值和上述用电量上均值添加至电力初始信息中。其中,上述电力初始信息初始为空。上述电力初始信息可以是上述电力基本信息经过数据预处理之后的信息。In some embodiments, the execution subject may add the average power capacity and the average power consumption to the initial power information. Among them, the above-mentioned initial power information is initially empty. The above-mentioned initial power information may be information obtained after data preprocessing of the above-mentioned basic power information.

可选地,在步骤106之前,上述方法还包括:Optionally, before step 106, the above method also includes:

第一步,对上述第一用电属性值序列进行更新处理,以生成第一更新用电属性值序列。In the first step, the above-mentioned first sequence of electricity attribute values is updated to generate a first updated sequence of electricity attribute values.

在一些实施例中,上述执行主体可以对上述第一用电属性值序列进行更新处理,以生成第一更新用电属性值序列。In some embodiments, the execution subject may update the first sequence of power attribute values to generate a first updated sequence of power attribute values.

实践中,上述执行主体可以通过以下子步骤对上述第一用电属性值序列进行更新处理,以生成第一更新用电属性值序列:In practice, the above-mentioned execution subject may update the above-mentioned first electricity attribute value sequence through the following sub-steps to generate a first updated electricity attribute value sequence:

第一子步骤,对于上述第一用电属性值序列中的每个第一用电属性值,执行如下确定步骤:The first sub-step is to perform the following determination steps for each first power attribute value in the above-mentioned first power attribute value sequence:

第一确定步骤,将去除了上述第一用电属性值的第一用电属性值序列确定为第一目标用电属性值序列。The first determining step is to determine the first electricity attribute value sequence with the above-mentioned first electricity attribute value removed as the first target electricity attribute value sequence.

第二确定步骤,对于上述第一目标用电属性值序列中的每个第一目标用电属性值,将上述第一目标用电属性值与上述第一用电属性值的差值确定为第一用电属性差值。The second determination step is to determine the difference between the first target power attribute value and the first power attribute value as the first target power attribute value in the first target power attribute value sequence. 1. Electricity attribute difference.

第三确定步骤,响应于确定满足预设差值条件的各个第一用电属性差值的数量大于预设差值数量,将上述第一用电属性值确定为第一中心用电属性值。其中,上述预设差值条件可以是第一用电属性差值小于预设差值。例如,上述预设差值可以是20。上述预设差值数量可以是10。The third determination step is to determine the first power attribute value as the first central power attribute value in response to determining that the number of first power attribute differences that satisfy the preset difference condition is greater than the preset difference number. Wherein, the above-mentioned preset difference condition may be that the first electrical attribute difference is less than the preset difference. For example, the above preset difference value may be 20. The above-mentioned preset difference number may be 10.

第二子步骤,将所确定的各个第一中心用电属性值确定为第一中心用电属性值组。The second sub-step is to determine each of the determined first center power consumption attribute values as a first center power consumption attribute value group.

第三子步骤,对于上述第一用电属性值序列中的每个第一用电属性值,执行如下处理步骤:The third sub-step is to perform the following processing steps for each first power attribute value in the above-mentioned first power attribute value sequence:

第一处理步骤,对于上述第一中心用电属性值组中的每个第一中心用电属性值,将上述第一中心用电属性值与上述第一用电属性值的差值确定为第一中心属性差值。The first processing step is to determine, for each first center power attribute value in the first center power attribute value group, the difference between the first center power attribute value and the first power attribute value as the first power attribute value. A center attribute difference.

第二处理步骤,响应于确定所确定的各个第一中心属性差值满足预设距离条件,将上述第一用电属性值确定为第一异常用电属性值。其中,上述预设距离条件可以是所确定的各个第一中心属性差值均大于预设最大差值。例如,预设最大差值可以是100。The second processing step is to determine the above-mentioned first power attribute value as the first abnormal power attribute value in response to determining that each of the determined first center attribute differences satisfies the preset distance condition. Wherein, the above-mentioned preset distance condition may be that each determined first center attribute difference value is greater than the preset maximum difference value. For example, the preset maximum difference value may be 100.

第四子步骤,将所确定的各个第一异常用电属性值从上述第一用电属性值序列中去除,得到第一更新用电属性值序列。The fourth sub-step is to remove each determined first abnormal electricity attribute value from the above-mentioned first electricity attribute value sequence to obtain a first updated electricity attribute value sequence.

步骤105中的相关技术内容作为本公开的实施例的一个发明点,解决了背景技术提及的技术问题二“导致难以对部分异常供应端进行断电”。导致难以对部分异常供应端进行断电的因素往往如下:由于电力基本信息包括的用电属性值序列中的用电属性值可能会存在异常(例如,缺失、数值过大、数值过小等),通过存在异常的电力基本信息识别出的异常供应端的准确度较低。如果解决了上述因素,就能达到可以对部分异常供应端进行断电的效果。为了达到这一效果,首先,可以确定第一用电属性值序列中的各个第一中心用电属性值,以便对第一用电属性值序列中的第一用电属性值进行分类,第一中心用电属性值组中的每个第一中心用电属性值的每一类的中心。然后,可以根据第一用电属性值序列中第一用电属性值到每个中心用电属性值的距离大于预设最大差值,确定出第一用电属性值序列中异常的第一用电属性值。最后,可以各个异常的第一用电属性值从第一用电属性值序列中去除,以便去除第一用电属性值序列中的异常数据。因此,可以得到较为准确的第一用电属性值序列,以便后续根据包括了较为准确的第一用电属性值序列的电力基本信息,识别出较为准确的异常供应端。从而,可以对部分异常供应端进行断电。The relevant technical content in step 105 is an inventive point of the embodiment of the present disclosure, and solves the second technical problem mentioned in the background art, "making it difficult to power off some abnormal supply terminals". The factors that make it difficult to cut off power to some abnormal supply terminals are often as follows: Because the electricity attribute values in the electricity attribute value sequence included in the basic electricity information may be abnormal (for example, missing, too large, too small, etc.) , the accuracy of abnormal supply terminals identified through abnormal basic power information is low. If the above factors are solved, the effect of cutting off power to some abnormal supply terminals can be achieved. In order to achieve this effect, first, each first central power attribute value in the first power attribute value sequence can be determined to classify the first power attribute value in the first power attribute value sequence. A center for each category of each first center power attribute value in the center power attribute value group. Then, based on the distance between the first electricity attribute value in the first electricity attribute value sequence and each central electricity attribute value being greater than the preset maximum difference, the abnormal first user in the first electricity attribute value sequence can be determined. Electrical property value. Finally, each abnormal first power attribute value may be removed from the first power attribute value sequence, so as to remove abnormal data in the first power attribute value sequence. Therefore, a relatively accurate first electricity attribute value sequence can be obtained, so that a more accurate abnormal supply end can be identified later based on the basic electricity information including the relatively accurate first electricity attribute value sequence. Therefore, some abnormal supply terminals can be powered off.

第二步,将上述第一用电量序列中的各个第一用电量的和确定为第一总用电量。In the second step, the sum of each first power consumption in the above-mentioned first power consumption sequence is determined as the first total power consumption.

在一些实施例中,上述执行主体可以将上述第一用电量序列中的各个第一用电量的和确定为第一总用电量。In some embodiments, the execution subject may determine the sum of each first power consumption in the first power consumption sequence as the first total power consumption.

第三步,将上述第二用电量序列中的各个第二用电量的和确定为第二总用电量。The third step is to determine the sum of each second power consumption in the above-mentioned second power consumption sequence as the second total power consumption.

在一些实施例中,上述执行主体可以将上述第二用电量序列中的各个第二用电量的和确定为第二总用电量。In some embodiments, the execution subject may determine the sum of each second power consumption in the second power consumption sequence as the second total power consumption.

第四步,将上述第一总用电量和上述第二总用电量的比值确定为总用电量同比。The fourth step is to determine the ratio of the above-mentioned first total electricity consumption to the above-mentioned second total electricity consumption as the year-on-year total electricity consumption.

在一些实施例中,上述执行主体可以将上述第一总用电量和上述第二总用电量的比值确定为总用电量同比。In some embodiments, the execution subject may determine the ratio of the first total power consumption and the second total power consumption as the total power consumption year-on-year.

第五步,将上述第一更新用电属性值序列中的各个第一更新用电属性值的平均值确定为用电属性均值。The fifth step is to determine the average value of each first updated power attribute value in the first updated power attribute value sequence as the average power attribute value.

在一些实施例中,上述执行主体可以将上述第一更新用电属性值序列中的各个第一更新用电属性值的平均值确定为用电属性均值。In some embodiments, the execution subject may determine the average value of each first updated power attribute value in the first updated power attribute value sequence as the average power attribute value.

第六步,将上述第一更新用电属性值序列中大于上述用电属性均值的各个第一更新用电属性值的平均值确定为用电属性上均值。The sixth step is to determine the average value of each first updated electricity attribute value in the above-mentioned first updated electricity attribute value sequence that is greater than the above-mentioned average value of the electricity attribute as the upper average value of the electricity attribute.

在一些实施例中,上述执行主体可以将上述第一更新用电属性值序列中大于上述用电属性均值的各个第一更新用电属性值的平均值确定为用电属性上均值。In some embodiments, the execution subject may determine the average value of each first updated power attribute value in the sequence of first updated power attribute values that is greater than the average value of the power attribute as the upper mean value of the power attribute.

第七步,将上述第一更新用电属性值序列中最大的第一更新用电属性值与上述第一更新用电属性值序列中最小的第一更新用电属性值的比值确定为用电属性比值。The seventh step is to determine the ratio of the largest first updated electricity attribute value in the above-mentioned first updated electricity attribute value sequence to the smallest first updated electricity attribute value in the above-mentioned first updated electricity attribute value sequence as the electricity consumption. Attribute ratio.

在一些实施例中,上述执行主体可以将上述第一更新用电属性值序列中最大的第一更新用电属性值与上述第一更新用电属性值序列中最小的第一更新用电属性值的比值确定为用电属性比值。In some embodiments, the execution subject may combine the largest first updated power attribute value in the sequence of first updated power attribute values with the smallest first updated power attribute value in the sequence of first updated power attribute values. The ratio of is determined as the electricity attribute ratio.

第八步,将上述总用电量同比、上述用电属性上均值和上述用电属性比值添加至上述电力初始信息中。The eighth step is to add the above-mentioned total electricity consumption year-on-year, the above-mentioned average value of electricity consumption attributes and the above-mentioned electricity consumption attribute ratio to the above-mentioned initial electricity information.

在一些实施例中,上述执行主体可以将上述总用电量同比、上述用电属性上均值和上述用电属性比值添加至上述电力初始信息中。In some embodiments, the above execution subject may add the above total power consumption year-on-year, the above average power consumption attribute, and the above power consumption attribute ratio to the above power initial information.

可选地,上述方法还包括:Optionally, the above method also includes:

第一步,对上述第二用电属性值序列进行更新处理,以生成第二更新用电属性值序列。In the first step, the above-mentioned second electricity attribute value sequence is updated to generate a second updated electricity attribute value sequence.

在一些实施例中,上述执行主任可以对上述第二用电属性值序列进行更新处理,以生成第二更新用电属性值序列。实践中,对上述第二用电属性值序列进行更新处理的具体实现方式及所带来的技术效果可以参考上述实施例中的步骤105,在此不再赘述。In some embodiments, the above-mentioned executive director may update the above-mentioned second sequence of electricity consumption attribute values to generate a second updated sequence of electricity consumption attribute values. In practice, the specific implementation method of updating the above-mentioned second power attribute value sequence and the technical effects brought about can be referred to step 105 in the above-mentioned embodiment, and will not be described again here.

第二步,将上述减容容量序列中的减容容量的数量确定为减容次数。In the second step, the number of capacity reductions in the above capacity reduction sequence is determined as the number of capacity reductions.

在一些实施例中,上述执行主体可以将上述减容容量序列中的减容容量的数量确定为减容次数。In some embodiments, the execution subject may determine the number of capacity reductions in the capacity reduction sequence as the number of capacity reductions.

第三步,将上述减容容量序列中的各个减容容量的和确定为减容总容量。The third step is to determine the sum of each capacity reduction capacity in the above capacity reduction sequence as the total capacity reduction capacity.

在一些实施例中,上述执行主体可以将上述减容容量序列中的各个减容容量的和确定为减容总容量。In some embodiments, the execution subject may determine the sum of each capacity reduction capacity in the capacity reduction sequence as the total capacity reduction capacity.

第四步,将上述减容总容量与上述目标电力容量的比值确定为减容占比。The fourth step is to determine the ratio of the total capacity reduction to the target power capacity as the capacity reduction ratio.

在一些实施例中,上述执行主体可以将上述减容总容量与上述目标电力容量的比值确定为减容占比。In some embodiments, the execution subject may determine the ratio of the total capacity reduction to the target power capacity as the capacity reduction ratio.

第五步,将上述第一更新用电属性值序列中的各个第一更新用电属性值的和确定为第一总用电属性值。The fifth step is to determine the sum of each first updated power attribute value in the above-mentioned first updated power attribute value sequence as the first total power attribute value.

在一些实施例中,上述执行主体可以将上述第一更新用电属性值序列中的各个第一更新用电属性值的和确定为第一总用电属性值。In some embodiments, the execution subject may determine the sum of each first updated power attribute value in the sequence of first updated power attribute values as the first total power attribute value.

第六步,将上述第二更新用电属性值序列中的各个第二更新用电属性值的和确定为第二总用电属性值。The sixth step is to determine the sum of each second updated power attribute value in the above-mentioned second updated power attribute value sequence as the second total power attribute value.

在一些实施例中,上述执行主体可以将上述第二更新用电属性值序列中的各个第二更新用电属性值的和确定为第二总用电属性值。In some embodiments, the execution subject may determine the sum of each second updated power attribute value in the second updated power attribute value sequence as the second total power attribute value.

第七步,将上述第一总用电属性值和上述第二总用电属性值的比值确定为总用电属性同比。The seventh step is to determine the ratio of the above-mentioned first total electricity consumption attribute value and the above-mentioned second total electricity consumption attribute value as the total electricity consumption attribute year-on-year.

在一些实施例中,上述执行主体可以将上述第一总用电属性值和上述第二总用电属性值的比值确定为总用电属性同比。In some embodiments, the execution subject may determine the ratio of the first total power consumption attribute value and the second total power consumption attribute value as the total power consumption attribute ratio.

第八步,对于上述第一用电量序列中的每个第一用电量,将上述第一用电量与上述第一用电量的上一个第一用电量的比值确定为第一用电量比值。Step 8: For each first power consumption in the above-mentioned first power consumption sequence, determine the ratio of the above-mentioned first power consumption to the previous first power consumption of the above-mentioned first power consumption as the first power consumption. Electricity usage ratio.

在一些实施例中,上述执行主体可以对于上述第一用电量序列中的每个第一用电量,将上述第一用电量与上述第一用电量的上一个第一用电量的比值确定为第一用电量比值。In some embodiments, the execution subject may, for each first power consumption in the first power consumption sequence, combine the first power consumption with the previous first power consumption of the first power consumption. The ratio of is determined as the first power consumption ratio.

第九步,将所确定的各个第一用电量比值的平均值确定为用电量变化率。In the ninth step, the average value of the determined first power consumption ratios is determined as the power consumption change rate.

在一些实施例中,上述执行主体可以将所确定的各个第一用电量比值的平均值确定为用电量变化率。In some embodiments, the above execution subject may determine the average value of each determined first power consumption ratio as the power consumption change rate.

第十步,将上述减容次数、上述减容占比、上述总用电属性同比和上述用电量变化率添加至上述电力初始信息中。The tenth step is to add the above-mentioned number of capacity reductions, the above-mentioned capacity reduction ratio, the above-mentioned year-on-year total electricity consumption attributes, and the above-mentioned electricity consumption change rate to the above-mentioned initial power information.

在一些实施例中,上述执行主体可以将上述减容次数、上述减容占比、上述总用电属性同比和上述用电量变化率添加至上述电力初始信息中。In some embodiments, the execution subject may add the number of capacity reductions, the capacity reduction ratio, the total power consumption attribute year-on-year, and the power consumption change rate to the initial power information.

可选地,上述方法还包括:Optionally, the above method also includes:

第一步,将上述区域用电量序列中的各个区域用电量的平均值确定为区域用电量均值。In the first step, the average value of each regional electricity consumption in the above-mentioned regional electricity consumption sequence is determined as the average regional electricity consumption.

在一些实施例中,上述执行主体可以将上述区域用电量序列中的各个区域用电量的平均值确定为区域用电量均值。In some embodiments, the above-mentioned execution subject may determine the average value of each regional power consumption in the above-mentioned regional power consumption sequence as the regional average power consumption.

第二步,将上述区域用电量序列中每个区域用电量的平方确定为区域用电量平方值,得到区域用电量平方值序列。In the second step, the square of each region's electricity consumption in the above-mentioned regional electricity consumption sequence is determined as the regional electricity consumption square value, and a regional electricity consumption square value sequence is obtained.

在一些实施例中,上述执行主体可以将上述区域用电量序列中每个区域用电量的平方确定为区域用电量平方值,得到区域用电量平方值序列。In some embodiments, the execution subject may determine the square of each region's electricity consumption in the region's electricity consumption sequence as the regional electricity consumption square value, thereby obtaining a region's electricity consumption square value sequence.

第三步,将上述区域用电量平方值序列中的各个区域用电量平方值的和确定为区域用电量平方和值。The third step is to determine the sum of the square values of electricity consumption in each region in the above sequence of squared values of regional electricity consumption as the sum of squares of regional electricity consumption.

在一些实施例中,上述执行主体可以将上述区域用电量平方值序列中的各个区域用电量平方值的和确定为区域用电量平方和值。In some embodiments, the above execution subject may determine the sum of the square values of each regional power consumption in the above sequence of regional power consumption square values as the regional sum of square power consumption values.

第四步,将上述区域用电量序列中各个区域用电量的和确定为区域用电量和值。The fourth step is to determine the sum of the regional electricity consumption in the above-mentioned regional electricity consumption sequence as the regional electricity consumption sum value.

在一些实施例中,上述执行主体可以将上述区域用电量序列中各个区域用电量的和确定为区域用电量和值。In some embodiments, the execution subject may determine the sum of the regional electricity consumption in the regional electricity consumption sequence as the regional electricity consumption sum value.

第五步,将上述区域用电量和值的平方确定为区域用电量和平方值。The fifth step is to determine the square of the sum of the above-mentioned regional electricity consumption values as the square value of the regional electricity consumption sum.

在一些实施例中,上述执行主体可以将上述区域用电量和值的平方确定为区域用电量和平方值。In some embodiments, the above execution subject may determine the square of the above regional power consumption sum value as the regional power consumption sum square value.

第六步,将上述区域用电量平方和值与上述区域用电量和平方值的比值确定为区域用电量集中度。The sixth step is to determine the ratio of the sum of squares of electricity consumption in the above-mentioned area to the sum of squares of electricity consumption in the above-mentioned areas as the regional electricity consumption concentration.

在一些实施例中,上述执行主体可以将上述区域用电量平方和值与上述区域用电量和平方值的比值确定为区域用电量集中度。In some embodiments, the above-mentioned execution subject may determine the ratio of the above-mentioned regional sum of squares of electricity consumption to the above-mentioned regional sum of squares of electricity consumption as the regional electricity consumption concentration.

第七步,将上述区域用电属性值序列中的各个区域用电属性值的平均值确定为区域用电属性均值。The seventh step is to determine the average value of each regional electricity attribute value in the above-mentioned regional electricity attribute value sequence as the average regional electricity attribute value.

在一些实施例中,上述执行主体可以将上述区域用电属性值序列中的各个区域用电属性值的平均值确定为区域用电属性均值。In some embodiments, the execution subject may determine the average value of each regional electricity attribute value in the sequence of regional electricity attribute values as the average regional electricity attribute value.

第八步,基于上述区域用电属性值序列,生成区域用电属性值集中度。The eighth step is to generate a regional electricity consumption attribute value concentration ratio based on the above-mentioned regional electricity consumption attribute value sequence.

在一些实施例中,上述执行主体可以基于上述区域用电属性值序列,生成区域用电属性值集中度。实践中,首先,上述执行主体可以将上述区域用电属性值序列中每个区域用电属性值的平方确定为区域用电属性平方值,得到区域用电属性平方值序列。其次,上述执行主体可以将上述区域用电属性平方值序列中的各个区域用电属性平方值的和确定为区域用电属性平方和值。接着,上述执行主体可以将上述区域用电属性值序列中各个区域用电属性值的和确定为区域用电属性和值。然后,上述执行主体可以将上述区域用电属性和值的平方确定为区域用电属性和平方值。最后,上述执行主体可以将上述区域用电属性平方和值与上述区域用电属性和平方值的比值确定为区域用电属性值集中度。In some embodiments, the above-mentioned execution subject may generate a regional power consumption attribute value concentration degree based on the above-mentioned regional power consumption attribute value sequence. In practice, first, the above-mentioned execution subject can determine the square of each regional electricity attribute value in the above-mentioned regional electricity attribute value sequence as the regional electricity attribute square value, and obtain a regional electricity attribute square value sequence. Secondly, the execution subject may determine the sum of the square values of each regional electricity attribute in the sequence of regional electricity attribute square values as the sum of squares of the regional electricity attributes. Next, the execution subject may determine the sum of the regional electricity attribute values in the regional electricity attribute value sequence as the regional electricity attribute sum value. Then, the above execution subject may determine the square of the above regional power consumption attribute sum value as the regional power consumption attribute sum square value. Finally, the above-mentioned execution subject may determine the ratio of the above-mentioned regional electricity consumption attribute sum-square value to the above-mentioned regional electricity consumption attribute sum-square value as the regional electricity consumption attribute value concentration degree.

第九步,将上述区域用电量均值、上述区域用电量集中度、上述区域用电属性均值和上述区域用电属性值集中度添加至上述电力初始信息中。The ninth step is to add the above-mentioned regional electricity consumption average, the above-mentioned regional electricity consumption concentration, the above-mentioned regional electricity attribute average value, and the above-mentioned regional electricity consumption attribute value concentration to the above-mentioned initial electricity information.

在一些实施例中,上述执行主体可以将上述区域用电量均值、上述区域用电量集中度、上述区域用电属性均值和上述区域用电属性值集中度添加至上述电力初始信息中。其中,上述电力初始信息还可以包括但不限于以下至少一项:第一用户占比、第一用电数、第二用电数。这里,第一用户占比可以是上述第一预设时间段内的第一用户总数量(供应端销户的总户数)与第二用户数量(当前供应端用电的总户数)的比值。第一用电数可以是第三预设时间段内的第一用电(偷窃用电)的次数。第二用电数可以是第三预设时间段内的第二用电(违约用电)的次数。第三预设时间段可以是上述第一预设时间段和上述第二预设时间段之和。In some embodiments, the execution subject may add the regional power consumption average, the regional power consumption concentration, the regional power attribute average, and the regional power attribute value concentration to the initial power information. The above-mentioned initial power information may also include but is not limited to at least one of the following: first user proportion, first power consumption number, and second power consumption number. Here, the first user proportion may be the sum of the total number of first users (the total number of households that have canceled their accounts on the supply side) and the number of second users (the total number of households that are currently using electricity on the supply side) within the first preset time period. ratio. The first power usage number may be the number of first power usages (theft power usage) within the third preset time period. The second power consumption number may be the number of second power consumption (default power consumption) within the third preset time period. The third preset time period may be the sum of the above-mentioned first preset time period and the above-mentioned second preset time period.

步骤106,对电力初始信息进行数据清洗处理,以生成电力信息。Step 106: Perform data cleaning processing on the initial power information to generate power information.

在一些实施例中,上述执行主体可以对上述电力初始信息进行数据清洗处理,以生成电力信息。实践中,首先,上述执行主体可以从上述电力初始信息中去除上述总用电属性同比和上述用电量变化率,以生成电力更新信息。然后,上述执行主体可以去除上述电力更新信息中为空的信息,以生成电力信息。由此,可以去除总用电属性同比、用电量变化率以及为空的信息,以减低目标电力信息生成模型的复杂度。In some embodiments, the execution subject may perform data cleaning processing on the initial power information to generate power information. In practice, first, the execution subject may remove the total power consumption attribute year-on-year and the power consumption change rate from the power initial information to generate power update information. Then, the execution subject may remove empty information from the power update information to generate power information. Thus, the year-on-year total power consumption attributes, the change rate of power consumption, and the empty information can be removed to reduce the complexity of the target power information generation model.

步骤107,将电力信息输入至预先训练的目标电力信息生成模型中,得到目标电力信息。Step 107: Input the power information into the pre-trained target power information generation model to obtain the target power information.

在一些实施例中,上述执行主体可以将上述电力信息输入至预先训练的目标电力信息生成模型中,得到目标电力信息。上述目标电力信息生成模型可以是以电力信息为输入,以目标电力信息为输出的神经网络模型。上述目标电力信息可以包括:电力信息包括的满足预设数量条件的信息。上述预设数量条件可以是电力信息对应的权重序列中的前预设数量的权重对应的各个信息。上述权重序列中的权重可以表征电力信息包括的信息的重要程度。上述权重序列可以是电力信息包括的各个信息按照权重从大到小排序后的序列。例如,预设数量可以是15。In some embodiments, the execution subject may input the power information into a pre-trained target power information generation model to obtain the target power information. The above target power information generation model may be a neural network model that takes power information as input and uses target power information as output. The above target power information may include: information included in the power information that satisfies a preset quantity condition. The above-mentioned preset quantity condition may be each piece of information corresponding to the first preset quantity of weights in the weight sequence corresponding to the power information. The weight in the above weight sequence can represent the importance of the information included in the power information. The above-mentioned weight sequence may be a sequence in which various pieces of information included in the power information are sorted from large to small in weight. For example, the preset number could be 15.

可选地,预先训练的目标电力信息生成模型可以是通过以下步骤训练得到的:Optionally, the pre-trained target power information generation model can be trained through the following steps:

第一步,获取训练样本集。The first step is to obtain the training sample set.

在一些实施例中,上述执行主体可以通过有线连接或无线连接的方式从终端设备中获取训练样本集。其中,上述训练样本集中的训练样本包括:样本电力信息和样本目标电力信息。这里,样本目标电力信息可以是样本电力信息对应的样本标签。In some embodiments, the above-mentioned execution subject may obtain the training sample set from the terminal device through a wired connection or a wireless connection. Among them, the training samples in the above training sample set include: sample power information and sample target power information. Here, the sample target power information may be a sample label corresponding to the sample power information.

第二步,确定初始目标电力信息生成模型。The second step is to determine the initial target power information generation model.

在一些实施例中,上述执行主体可以确定初始目标电力信息生成模型。其中,上述初始目标电力信息生成模型可以是以样本电力信息为输入,以初始目标电力信息为输出的神经网络模型。上述初始目标电力信息生成模型可以包括:初始权重生成模型、初始选择模型。In some embodiments, the above-mentioned execution subject may determine an initial target power information generation model. The above-mentioned initial target power information generation model may be a neural network model that uses sample power information as input and initial target power information as output. The above-mentioned initial target power information generation model may include: an initial weight generation model and an initial selection model.

上述初始权重生成模型可以是以样本电力信息为输入,以初始权重信息为输出的第一自定义模型。这里,初始权重信息可以表征样本电力信息包括的各个信息对应的各个权重。第一自定义模型可以分为三层:The above-mentioned initial weight generation model may be a first custom model that uses sample power information as input and initial weight information as output. Here, the initial weight information may represent each weight corresponding to each piece of information included in the sample power information. The first custom model can be divided into three layers:

第一层:输入层,用于接收样本电力信息,以及将样本电力信息输入至第二层。The first layer: input layer, used to receive sample power information and input the sample power information to the second layer.

第二层:处理层,包括:第一子模型和第二子模型。第一子模型可以是以样本电力信息为输入,以第一权重信息为输出的梯度提升模型。第二子模型可以是以样本电力信息为输入,以第二权重信息为输出的分类器模型。其中,第一权重信息可以包括但不限于:第一权重集。第一权重集中的第一权重可以是通过第一子模型,生成的对应样本电力信息包括的信息的权重。第二权重信息可以包括但不限于:第二权重集。第二权重集中的第二权重可以是通过第二子模型,生成的对应样本电力信息包括的信息的权重。这里,第一权重信息包括的第一权重可以对应第二权重信息包括的第二权重。第一权重信息包括的第一权重可以对应样本电力信息包括的信息。例如,第一子模型可以是XGBoost(eXtreme GradientBoosting,极度梯度提升)模型。第二子模型可以是RF(Random Forest,随机森林)模型。The second layer: the processing layer, including: the first sub-model and the second sub-model. The first sub-model may be a gradient boosting model that uses sample power information as input and first weight information as output. The second sub-model may be a classifier model that uses sample power information as input and second weight information as output. The first weight information may include but is not limited to: a first weight set. The first weight in the first weight set may be a weight of information included in the corresponding sample power information generated through the first sub-model. The second weight information may include but is not limited to: a second weight set. The second weight in the second weight set may be a weight of information included in the corresponding sample power information generated through the second sub-model. Here, the first weight included in the first weight information may correspond to the second weight included in the second weight information. The first weight included in the first weight information may correspond to the information included in the sample power information. For example, the first sub-model can be an XGBoost (eXtreme GradientBoosting, extreme gradient boosting) model. The second sub-model can be an RF (Random Forest) model.

第三层,输出层,用于:首先,接收第二层输出的第一权重信息和第二权重信息。接着,对于上述第一权重信息包括的每个第一权重,将上述第一权重和对应上述第一权重的第二权重的平均值确定为平均权重。然后,将所确定的各个平均权重确定为初始权重信息。最后,将初始权重信息作为整个第一自定义模型的输出。The third layer, the output layer, is used to: first, receive the first weight information and the second weight information output by the second layer. Next, for each first weight included in the above-mentioned first weight information, the average value of the above-mentioned first weight and the second weight corresponding to the above-mentioned first weight is determined as the average weight. Then, each determined average weight is determined as initial weight information. Finally, the initial weight information is used as the output of the entire first custom model.

上述初始选择模型可以是以初始权重信息和样本电力信息为输入,以初始目标电力信息为输出的模型。上述初始选择模型可以用于:首先,对初始权重信息包括的各个权重按照从大到小的顺序进行排序处理,得到中转权重序列。然后,将上述中转权重序列中前预设数量的各个权重确定为中转权重组。之后,对于上述中转权重组中的每个中转权重,将样本电力信息包括的对应上述中转权重的信息确定为目标信息。最后,将所确定的各个目标信息确定为初始目标电力信息。The above-mentioned initial selection model may be a model that takes initial weight information and sample power information as inputs and uses initial target power information as output. The above initial selection model can be used to: first, sort the weights included in the initial weight information in descending order to obtain a transit weight sequence. Then, a preset number of individual weights in the above-mentioned transit weight sequence are determined as a transit weight group. Afterwards, for each transfer weight in the above-mentioned transfer weight group, the information corresponding to the above-mentioned transfer weight included in the sample power information is determined as the target information. Finally, each determined target information is determined as initial target power information.

第三步,从上述训练样本集中选取训练样本。The third step is to select training samples from the above training sample set.

在一些实施例中,上述执行主体可以从上述训练样本集中选取训练样本。实践中,上述执行主体可以随机从上述训练样本集中选取训练样本。In some embodiments, the execution subject may select training samples from the training sample set. In practice, the above execution subject can randomly select training samples from the above training sample set.

第四步,将上述训练样本包括的样本电力信息输入至上述初始权重信息生成模型中,得到初始权重信息。The fourth step is to input the sample power information included in the above training samples into the above initial weight information generation model to obtain the initial weight information.

在一些实施例中,上述执行主体可以将上述训练样本包括的样本电力信息输入至上述初始权重信息生成模型中,得到初始权重信息。In some embodiments, the execution subject may input the sample power information included in the training sample into the initial weight information generation model to obtain the initial weight information.

第五步,将上述初始权重信息和上述训练样本包括的样本电力信息输入至上述初始选择模型中,得到初始目标电力信息。The fifth step is to input the above-mentioned initial weight information and the sample power information included in the above-mentioned training samples into the above-mentioned initial selection model to obtain initial target power information.

在一些实施例中,上述执行主体可以将上述初始权重信息和上述训练样本包括的样本电力信息输入至上述初始选择模型中,得到初始目标电力信息。In some embodiments, the execution subject may input the initial weight information and the sample power information included in the training samples into the initial selection model to obtain the initial target power information.

第六步,基于预设的第一损失函数,确定上述初始目标电力信息与上述训练样本包括的样本目标电力信息之间的第一差异值。The sixth step is to determine a first difference value between the initial target power information and the sample target power information included in the training sample based on the preset first loss function.

在一些实施例中,上述执行主体可以基于预设的第一损失函数,确定上述初始目标电力信息与上述训练样本包括的样本目标电力信息之间的第一差异值。其中,预设的第一损失函数可以是但不限于:均方误差损失函数(MSE)、合页损失函数(SVM)、交叉熵损失函数(CrossEntropy)、0-1损失函数、绝对值损失函数、log对数损失函数、平方损失函数、指数损失函数等。In some embodiments, the execution subject may determine a first difference value between the initial target power information and the sample target power information included in the training sample based on a preset first loss function. Among them, the preset first loss function can be but is not limited to: mean square error loss function (MSE), hinge loss function (SVM), cross entropy loss function (CrossEntropy), 0-1 loss function, absolute value loss function , logarithmic loss function, square loss function, exponential loss function, etc.

第七步,响应于确定上述第一差异值满足第一预设条件,调整上述初始目标电力信息生成模型的网络参数。The seventh step is to adjust the network parameters of the initial target power information generation model in response to determining that the first difference value satisfies the first preset condition.

在一些实施例中,上述执行主体可以响应于确定上述第一差异值满足第一预设条件,调整上述初始目标电力信息生成模型的网络参数。其中,上述第一预设条件可以是上述第一差异值大于第一预设差异值。例如,可以对上述第一差异值和第一预设差异值求差值。在此基础上,利用反向传播、梯度下降等方法对上述初始目标电力信息生成模型的网络参数进行调整。需要说明的是,反向传播算法和梯度下降法是目前广泛研究和应用的公知技术,在此不再赘述。其中,对于第一预设差异值的设定,不作限定,例如,第一预设差异值可以是0.1。In some embodiments, the execution subject may adjust the network parameters of the initial target power information generation model in response to determining that the first difference value satisfies the first preset condition. Wherein, the first preset condition may be that the first difference value is greater than the first preset difference value. For example, the difference between the above-mentioned first difference value and the first preset difference value may be calculated. On this basis, back propagation, gradient descent and other methods are used to adjust the network parameters of the above initial target power information generation model. It should be noted that the backpropagation algorithm and gradient descent method are well-known technologies that are widely researched and applied at present, and will not be described again here. There is no limitation on the setting of the first preset difference value. For example, the first preset difference value may be 0.1.

步骤107中的可选的技术内容作为本公开的实施例的一个发明点,解决了背景技术提及的技术问题三“导致浪费了计算资源”。导致浪费了计算资源的因素往往如下:由于电力基本信息包括大量与预先设定的规则无关的信息,使得在识别异常供应端时,需要从大量无关的信息中筛选出与预先设定的规则有关的信息。如果解决了上述因素,就能达到可以减少浪费计算资源的效果。为了达到这一效果,首先,可以通过第一预定义模型包括的第一子模型和第二子模型分别得到电力信息包括的各个信息对应的权重。然后,可以通过第一预定义模型的第三层输出考虑到通过第一子模型和第二子模型两种模型输出的权重,可以得到较为准确的初始权重信息。之后,可以通过初始选择模型从电力信息包括的各个信息中选择出目标电力信息。最后,可以通过训练初始目标电力信息生成模型包括的初始权重生成模型和初始选择模型,得到目标电力信息生成模型。由此,本公开可以通过训练后的目标电力信息生成模型,得到电力信息中重要程度较高的各个信息。因此,只考虑较为重要的电力信息,可以减少浪费计算资源。The optional technical content in step 107 serves as an inventive point of the embodiment of the present disclosure, and solves the third technical problem mentioned in the background art, "resulting in a waste of computing resources." Factors that lead to a waste of computing resources are often as follows: Since basic power information includes a large amount of information that is irrelevant to preset rules, when identifying an abnormal supply end, it is necessary to filter out a large amount of irrelevant information that is related to preset rules. Information. If the above factors are solved, the effect of reducing the waste of computing resources can be achieved. In order to achieve this effect, first, the weight corresponding to each information included in the power information can be obtained through the first sub-model and the second sub-model included in the first predefined model. Then, more accurate initial weight information can be obtained by taking into account the weights output by the first sub-model and the second sub-model through the third layer output of the first predefined model. Afterwards, the target power information can be selected from each information included in the power information through the initial selection model. Finally, the target power information generation model can be obtained by training the initial weight generation model and the initial selection model included in the initial target power information generation model. Therefore, the present disclosure can obtain each piece of information with a high degree of importance in the power information through the trained target power information generation model. Therefore, only considering the more important power information can reduce the waste of computing resources.

可选地,响应于确定上述第一差异值不满足上述第一预设条件,将上述初始目标电力信息生成模型确定为训练后的目标电力信息生成模型。Optionally, in response to determining that the first difference value does not satisfy the first preset condition, the initial target power information generation model is determined as the trained target power information generation model.

在一些实施例中,上述执行主体可以响应于确定上述第一差异值不满足上述第一预设条件,将上述初始目标电力信息生成模型确定为训练后的目标电力信息生成模型。In some embodiments, the execution subject may determine the initial target power information generation model as the trained target power information generation model in response to determining that the first difference value does not satisfy the first preset condition.

步骤108,将目标电力信息输入至预先训练的电力结果信息生成模型中,得到电力结果信息。Step 108: Input the target power information into the pre-trained power result information generation model to obtain the power result information.

在一些实施例中,上述执行主体可以将上述目标电力信息输入至预先训练的电力结果信息生成模型中,得到电力结果信息。其中,上述电力结果信息生成模型可以是以目标电力信息为输入,以电力结果信息为输出的神经网络模型。上述电力结果信息可以是但不限于:第一结果信息、第二结果信息。这里,第一结果信息可以表征供应端是异常供应端。第二结果信息可以表征供应端不是异常供应端。异常供应端可以是用电异常的供应端。In some embodiments, the execution subject may input the target power information into a pre-trained power result information generation model to obtain the power result information. The power result information generation model may be a neural network model that takes target power information as input and uses power result information as output. The above-mentioned power result information may be, but is not limited to: first result information and second result information. Here, the first result information may indicate that the supply end is an abnormal supply end. The second result information may indicate that the supply end is not an abnormal supply end. The abnormal supply end may be a supply end with abnormal power consumption.

可选地,预先训练的电力结果信息生成模型可以是通过以下步骤训练得到的:Optionally, the pre-trained power result information generation model can be trained through the following steps:

第一步,获取训练样本集。The first step is to obtain the training sample set.

在一些实施例中,上述执行主体可以通过有线连接或无线连接的方式从终端设备中获取训练样本集。其中,上述训练样本集中的训练样本包括:样本目标电力信息和样本电力结果信息。In some embodiments, the above-mentioned execution subject may obtain the training sample set from the terminal device through a wired connection or a wireless connection. Among them, the training samples in the above training sample set include: sample target power information and sample power result information.

第二步,确定初始电力结果信息生成模型。The second step is to determine the initial power result information generation model.

在一些实施例中,上述执行主体可以确定初始电力结果信息生成模型。其中,上述初始电力结果信息生成模型可以是以样本目标电力信息为输入,以初始电力结果信息为输出的神经网络模型。上述初始电力结果信息生成模型可以包括:初始目标权重生成模型、初始融合模型、初始标记模型。In some embodiments, the execution entity described above may determine an initial power result information generation model. The above-mentioned initial power result information generation model may be a neural network model that takes sample target power information as input and initial power result information as output. The above-mentioned initial power result information generation model may include: an initial target weight generation model, an initial fusion model, and an initial labeling model.

上述初始目标权重生成模型可以是以样本目标电力信息为输入,以初始目标权重信息为输出的第二自定义模型。这里,初始目标权重信息可以表征样本目标电力信息包括的各个信息对应的各个权重。上述第二自定义模型可以分为三层:The above-mentioned initial target weight generation model may be a second custom model that uses sample target power information as input and initial target weight information as output. Here, the initial target weight information may represent each weight corresponding to each piece of information included in the sample target power information. The above second custom model can be divided into three layers:

第一层:输入层,用于接收样本目标电力信息,以及将样本目标电力信息输入至第二层。The first layer: input layer, used to receive sample target power information and input the sample target power information to the second layer.

第二层:处理层,包括:第一目标子模型和第二目标子模型。第一目标子模型可以是以样本目标电力信息为输入,以第一目标权重信息为输出的多层前馈神经网络模型。第二目标子模型可以是以样本目标电力信息为输出,以第二目标权重信息为输出的梯度提升模型。第一目标权重信息可以包括但不限于:第一目标权重集。第一目标权重集中的第一目标权重可以是通过第一目标子模型,生成的对应样本目标电力信息包括的信息的权重。第二目标权重信息可以包括但不限于:第二目标权重集。第二目标权重集中的第二目标权重可以是通过第二目标子模型,生成的对应样本目标电力信息包括的信息的权重。这里,第一目标权重信息包括的第一目标权重可以对应第二目标权重信息包括的第二目标权重。第一目标权重信息包括的第一目标权重可以对应样本目标电力信息包括的信息。例如,第一目标子模型可以是BP(back propagation,多层前馈神经网络)模型。第二目标子模型可以是XGBoost(eXtreme Gradient Boosting,极度梯度提升)模型。The second layer: the processing layer, including: the first target sub-model and the second target sub-model. The first target sub-model may be a multi-layer feedforward neural network model with sample target power information as input and first target weight information as output. The second target sub-model may be a gradient boosting model that uses sample target power information as its output and second target weight information as its output. The first target weight information may include but is not limited to: a first target weight set. The first target weight in the first target weight set may be a weight of information included in the corresponding sample target power information generated through the first target sub-model. The second target weight information may include but is not limited to: a second target weight set. The second target weight in the second target weight set may be the weight of information included in the corresponding sample target power information generated through the second target sub-model. Here, the first target weight included in the first target weight information may correspond to the second target weight included in the second target weight information. The first target weight included in the first target weight information may correspond to the information included in the sample target power information. For example, the first target sub-model may be a BP (back propagation, multi-layer feedforward neural network) model. The second target sub-model can be an XGBoost (eXtreme Gradient Boosting) model.

第三层,输出层,用于:首先,接收第二层输出的第一目标权重信息和第二目标权重信息。接着,对于上述第一目标权重信息包括的每个第一目标权重,将上述第一目标权重和对应上述第一目标权重的第二目标权重的平均值确定为平均目标权重。然后,将所确定的各个目标权重确定为初始目标权重信息。最后,将初始目标权重信息作为整个第二自定义模型的输出。The third layer, the output layer, is used to: first, receive the first target weight information and the second target weight information output by the second layer. Next, for each first target weight included in the above-mentioned first target weight information, the average value of the above-mentioned first target weight and the second target weight corresponding to the above-mentioned first target weight is determined as the average target weight. Then, each determined target weight is determined as initial target weight information. Finally, the initial target weight information is used as the output of the entire second custom model.

上述初始融合模型可以是以样本目标电力信息和初始目标权重信息为输入,以初始融合信息为输出的模型。这里,上述初始融合模型用于:首先,对于上述样本目标电力信息包括的每个信息,将上述信息和上述初始目标权重信息包括的对应上述信息的平均目标权重的乘积确定为电力权重值。然后,所确定的各个电力权重值的和确定为初始融合信息。The above-mentioned initial fusion model may be a model that takes sample target power information and initial target weight information as input and uses initial fusion information as output. Here, the above-mentioned initial fusion model is used to: firstly, for each information included in the above-mentioned sample target power information, determine the product of the above-mentioned information and the average target weight corresponding to the above-mentioned information included in the above-mentioned initial target weight information as the power weight value. Then, the sum of the determined respective power weight values is determined as the initial fusion information.

上述初始标记模型可以是以初始融合信息为输入,以初始电力结果信息为输出的模型。这里,上述初始标记模型用于:首先,响应于确定上述初始融合信息满足预设标记条件,将第一结果信息确定为初始电力结果信息。然后,响应于确定上述初始融合信息不满足上述预设标记条件,将第二结果信息确定为初始电力结果信息。其中,上述预设标记条件可以是初始融合信息小于预设标记数值。例如,预设标记数值可以是0.5。The above-mentioned initial labeling model may be a model that takes initial fusion information as input and initial power result information as output. Here, the above-mentioned initial marking model is used to: firstly, in response to determining that the above-mentioned initial fusion information satisfies the preset marking condition, determine the first result information as the initial power result information. Then, in response to determining that the above-mentioned initial fusion information does not satisfy the above-mentioned preset flag condition, the second result information is determined as the initial power result information. Wherein, the above-mentioned preset marking condition may be that the initial fusion information is less than the preset marking value. For example, the default marker value may be 0.5.

第三步,从上述训练样本集中选取训练样本。The third step is to select training samples from the above training sample set.

在一些实施例中,上述执行主体可以从上述训练样本集中选取训练样本。实践中,上述执行主体可以随机从上述训练样本集中选取训练样本。In some embodiments, the execution subject may select training samples from the training sample set. In practice, the above execution subject can randomly select training samples from the above training sample set.

第四步,将上述训练样本包括的样本目标电力信息输入至上述初始目标权重生成模型中,得到初始目标权重信息。The fourth step is to input the sample target power information included in the above training sample into the above initial target weight generation model to obtain the initial target weight information.

在一些实施例中,上述执行主体可以将上述训练样本包括的样本目标电力信息输入至上述初始目标权重生成模型中,得到初始目标权重信息。In some embodiments, the execution subject may input the sample target power information included in the training sample into the initial target weight generation model to obtain the initial target weight information.

第五步,将上述训练样本包括的样本目标电力信息和上述初始目标权重信息输入至上述初始融合模型中,得到初始融合信息。The fifth step is to input the sample target power information included in the above training sample and the above initial target weight information into the above initial fusion model to obtain initial fusion information.

在一些实施例中,上述执行主体可以将上述训练样本包括的样本目标电力信息和上述初始目标权重信息输入至上述初始融合模型中,得到初始融合信息。In some embodiments, the execution subject may input the sample target power information included in the training sample and the initial target weight information into the initial fusion model to obtain initial fusion information.

第六步,将上述初始融合信息输入至上述初始标记模型中,得到初始电力结果信息。The sixth step is to input the above-mentioned initial fusion information into the above-mentioned initial labeling model to obtain the initial power result information.

在一些实施例中,上述执行主体可以将上述初始融合信息输入至上述初始标记模型中,得到初始电力结果信息。In some embodiments, the execution subject may input the initial fusion information into the initial marking model to obtain initial power result information.

第七步,基于预设的第二损失函数,确定上述初始电力结果信息与上述训练样本包括的样本电力结果信息之间的第二差异值。The seventh step is to determine the second difference value between the above-mentioned initial power result information and the sample power result information included in the above-mentioned training sample based on the preset second loss function.

在一些实施例中,上述执行主体可以基于预设的第二损失函数,确定上述初始电力结果信息与上述训练样本包括的样本电力结果信息之间的第二差异值。其中,预设的第二损失函数可以是但不限于:均方误差损失函数(MSE)、合页损失函数(SVM)、交叉熵损失函数(CrossEntropy)、0-1损失函数、绝对值损失函数、log对数损失函数、平方损失函数、指数损失函数等。In some embodiments, the execution subject may determine a second difference value between the initial power result information and the sample power result information included in the training sample based on a preset second loss function. Among them, the preset second loss function can be but is not limited to: mean square error loss function (MSE), hinge loss function (SVM), cross entropy loss function (CrossEntropy), 0-1 loss function, absolute value loss function , logarithmic loss function, square loss function, exponential loss function, etc.

第八步,响应于确定上述第二差异值满足第二预设条件,调整上述初始电力结果信息生成模型的网络参数。Step 8: In response to determining that the second difference value satisfies the second preset condition, adjust the network parameters of the initial power result information generation model.

在一些实施例中,上述执行主体可以响应于确定上述第二差异值满足第二预设条件,调整上述初始电力结果信息生成模型的网络参数。其中,上述第二预设条件可以是上述第二差异值大于第二预设差异值。例如,可以对上述第二差异值和第二预设差异值求差值。在此基础上,利用反向传播、梯度下降等方法对上述初始电力结果信息生成模型的网络参数进行调整。需要说明的是,反向传播算法和梯度下降法是目前广泛研究和应用的公知技术,在此不再赘述。其中,对于第二预设差异值的设定,不作限定,例如,第二预设差异值可以是0.1。In some embodiments, the execution subject may adjust the network parameters of the initial power result information generation model in response to determining that the second difference value satisfies the second preset condition. The second preset condition may be that the second difference value is greater than the second preset difference value. For example, the difference between the above-mentioned second difference value and the second preset difference value may be calculated. On this basis, methods such as back propagation and gradient descent are used to adjust the network parameters of the above initial power result information generation model. It should be noted that the backpropagation algorithm and gradient descent method are well-known technologies that are widely researched and applied at present, and will not be described again here. There is no limitation on the setting of the second preset difference value. For example, the second preset difference value may be 0.1.

步骤108中的可选的技术内容作为本公开的实施例的一个发明点,解决了背景技术提及的技术问题四“难以对部分异常供应端进行断电”。难以对部分异常供应端进行断电的因素往往如下:预先设定的规则考虑到异常供应端对应的情况较少,识别出的异常供应端的准确度较低。如果解决了上述因素,就能达到可以对部分异常供应端进行断电的效果。为了达到这一效果,首先,可以通过第二预定义模型包括的第一目标子模型和第二目标子模型分别得到目标电力信息包括的各个信息对应的权重。然后,可以通过第二预定义模型的第三层输出考虑到通过第一目标子模型和第二目标子模型两种模型输出的权重,可以得到较为准确的初始目标权重信息。之后,可以通过初始融合模型得到表征供应端异常情况的初始融合信息。接着,可以通过初始标记模型标记出异常供应端。最后,可以通过训练初始电力结果信息生成模型包括的初始目标权重生成模型、初始融合模型和初始标记模型,得到电力结果信息生成模型。由此,本公开可以通过训练后的电力结果信息生成模型识别出异常供应端,相较于通过预先设定的规则识别出的异常供应端更为准确。因此,可以对部分异常供应端进行断电。The optional technical content in step 108 serves as an inventive point of the embodiment of the present disclosure and solves the fourth technical problem mentioned in the background art, "It is difficult to power off some abnormal supply terminals." The factors that make it difficult to power off some abnormal supply terminals are often as follows: the preset rules take into account that there are fewer situations corresponding to the abnormal supply terminals, and the accuracy of the identified abnormal supply terminals is low. If the above factors are solved, the effect of cutting off power to some abnormal supply terminals can be achieved. In order to achieve this effect, first, the weight corresponding to each information included in the target power information can be obtained through the first target sub-model and the second target sub-model included in the second predefined model. Then, more accurate initial target weight information can be obtained by taking into account the weights output by the first target sub-model and the second target sub-model through the third layer output of the second predefined model. Afterwards, the initial fusion information characterizing the abnormal situation on the supply side can be obtained through the initial fusion model. Then, the abnormal supply end can be marked through the initial marking model. Finally, the power result information generation model can be obtained by training the initial target weight generation model, the initial fusion model and the initial labeling model including the initial power result information generation model. Therefore, the present disclosure can identify abnormal supply terminals through the trained power result information generation model, which is more accurate than identifying abnormal supply terminals through preset rules. Therefore, some abnormal supply terminals can be powered off.

可选地,响应于确定上述第二差异值满足第二预设条件,将上述初始电力结果信息生成模型确定为训练后的电力结果信息生成模型。Optionally, in response to determining that the second difference value satisfies the second preset condition, the initial power result information generation model is determined as the trained power result information generation model.

在一些实施例中,上述执行主体可以响应于确定上述第二差异值满足第二预设条件,将上述初始电力结果信息生成模型确定为训练后的电力结果信息生成模型。In some embodiments, the execution subject may determine the initial power result information generation model as the trained power result information generation model in response to determining that the second difference value satisfies the second preset condition.

步骤109,响应于确定电力结果信息满足预设异常条件,对供应端进行断电处理。Step 109: In response to determining that the power result information satisfies the preset abnormal conditions, perform power-off processing on the supply end.

在一些实施例中,上述执行主体可以响应于确定上述电力结果信息满足预设异常条件,对上述供应端进行断电处理。其中,上述预设异常条件可以是上述电力结果信息是第一结果信息。In some embodiments, the execution subject may perform power-off processing on the supply end in response to determining that the power result information satisfies a preset abnormal condition. Wherein, the above-mentioned preset abnormal condition may be that the above-mentioned power result information is the first result information.

本公开的上述各个实施例具有如下有益效果:通过本公开的一些实施例的异常供应端断电方法,可以及时对部分异常供应端进行断电。具体来说,导致难以及时对部分异常供应端进行断电的原因在于:供应端提供的电力基本信息的准确度和时效性无法保证,造成通过供应端提供的电力基本信息识别出的异常供应端的准确度较低。基于此,本公开的一些实施例的异常供应端断电方法,首先,获取供应端的电力基本信息。其中,上述电力基本信息包括:电力容量序列、第一用电量序列,上述电力容量序列中的电力容量对应第一预设时间段内的一时间粒度,上述第一用电量序列中的第一用电量对应第一预设时间段内的一时间粒度。由此,电网终端可以直接获取到时间粒度较小(一天、半个月、一个月等)且准确度较高的电力基本信息。其次,将上述电力容量序列中各个电力容量的平均值确定为电力容量均值。接着,将上述第一用电量序列中各个第一用电量的平均值确定为用电量均值。紧接着,将上述第一用电量序列中大于上述用电量均值的各个第一用电量的平均值确定为用电量上均值。然后,将上述电力容量均值和上述用电量上均值添加至电力初始信息中。其中,上述电力初始信息初始为空。由此,可以根据时间粒度较小且准确度较高的电力基本信息,得到时效性以及准确度较高的电力初始信息,以便后续根据电力初始信息识别出异常供应端。再然后,对上述电力初始信息进行数据清洗处理,以生成电力信息。由此,可以得到数据清洗后的电力信息,以便减低后续目标电力信息生成模型的复杂度。之后,将上述电力信息输入至预先训练的目标电力信息生成模型中,得到目标电力信息。由此,可以得到目标电力信息,以便后续电力结果信息生成模型以目标电力信息代替电力信息为输入,可以降低电力结果信息生成模型的复杂度。再之后,将上述目标电力信息输入至预先训练的电力结果信息生成模型中,得到电力结果信息。由此,可以得到电力结果信息,以便后续通过电力结果信息识别出异常供应端。最后,响应于确定上述电力结果信息满足预设异常条件,对上述供应端进行断电处理。由此,可以对异常供应端进行断电处理。从而,可以根据时间粒度较小的电力基本信息,得到时效性较高的电力初始信息。因此,可以识别出较为准确的异常供应端,可以及时对部分异常供应端进行断电。The above-mentioned embodiments of the present disclosure have the following beneficial effects: through the abnormal supply terminal power-off methods of some embodiments of the present disclosure, some abnormal supply terminals can be powered off in a timely manner. Specifically, the reason why it is difficult to cut off power to some abnormal supply terminals in time is that the accuracy and timeliness of the basic power information provided by the supply terminal cannot be guaranteed, resulting in abnormal supply terminals identified through the basic power information provided by the supply terminal. Less accurate. Based on this, the abnormal supply end power outage method in some embodiments of the present disclosure first obtains basic power information of the supply end. Wherein, the above-mentioned basic power information includes: a power capacity sequence and a first power consumption sequence. The power capacity in the above-mentioned power capacity sequence corresponds to a time granularity within a first preset time period. The third power consumption sequence in the above-mentioned first power consumption sequence One power consumption corresponds to one time granularity within the first preset time period. As a result, power grid terminals can directly obtain basic power information with small time granularity (one day, half a month, one month, etc.) and high accuracy. Secondly, the average value of each power capacity in the above power capacity sequence is determined as the power capacity mean value. Next, the average value of each first power consumption in the first power consumption sequence is determined as the average power consumption value. Immediately afterwards, the average value of each first power consumption in the above-mentioned first power consumption sequence that is greater than the above-mentioned average power consumption is determined as the upper average value of power consumption. Then, the above average power capacity value and the above average power consumption value are added to the initial power information. Among them, the above-mentioned initial power information is initially empty. As a result, timely and highly accurate initial power information can be obtained based on basic power information with smaller time granularity and higher accuracy, so that abnormal supply terminals can be subsequently identified based on the initial power information. Then, data cleaning processing is performed on the above-mentioned initial power information to generate power information. Thus, the power information after data cleaning can be obtained, so as to reduce the complexity of the subsequent target power information generation model. Afterwards, the above-mentioned power information is input into the pre-trained target power information generation model to obtain the target power information. In this way, the target power information can be obtained, so that the subsequent power result information generation model uses the target power information as input instead of the power information, which can reduce the complexity of the power result information generation model. Then, the above target power information is input into the pre-trained power result information generation model to obtain the power result information. In this way, the power result information can be obtained, so that the abnormal supply end can be subsequently identified through the power result information. Finally, in response to determining that the above-mentioned power result information satisfies the preset abnormal conditions, the above-mentioned supply end is powered off. In this way, the abnormal supply end can be powered off. Therefore, time-sensitive initial power information can be obtained based on basic power information with smaller time granularity. Therefore, more accurate abnormal supply terminals can be identified, and some abnormal supply terminals can be powered off in a timely manner.

进一步参考图2,作为对上述各图所示方法的实现,本公开提供了一种异常供应端断电装置的一些实施例,这些异常供应端断电装置实施例与图1所示的那些方法实施例相对应,该异常供应端断电装置具体可以应用于各种电子设备中。With further reference to Figure 2, as an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of an abnormal supply end power outage device. These abnormal supply end power outage device embodiments are the same as those methods shown in Figure 1 Corresponding to the embodiment, the abnormal supply-side power-off device can be applied to various electronic devices.

如图2所示,一些实施例的异常供应端断电装置200包括:获取单元201、第一确定单元202、第二确定单元203、第三确定单元204、添加单元205、数据清洗单元206、第一输入单元207、第二输入单元208和断电单元209。其中,获取单元201,被配置成获取供应端的电力基本信息,其中,上述电力基本信息包括:电力容量序列、第一用电量序列,上述电力容量序列中的电力容量对应第一预设时间段内的一时间粒度,上述第一用电量序列中的第一用电量对应第一预设时间段内的一时间粒度;第一确定单元202,被配置成将上述电力容量序列中各个电力容量的平均值确定为电力容量均值;第二确定单元203,被配置成将上述第一用电量序列中各个第一用电量的平均值确定为用电量均值;第三确定单元204,被配置成将上述第一用电量序列中大于上述用电量均值的各个第一用电量的平均值确定为用电量上均值;添加单元205,被配置成将上述电力容量均值和上述用电量上均值添加至电力初始信息中,其中,上述电力初始信息初始为空;数据清洗单元206,被配置成对上述电力初始信息进行数据清洗处理,以生成电力信息;第一输入单元207,被配置成将上述电力信息输入至预先训练的目标电力信息生成模型中,得到目标电力信息;第二输入单元208,被配置成将上述目标电力信息输入至预先训练的电力结果信息生成模型中,得到电力结果信息;断电单元209,被配置成响应于确定上述电力结果信息满足预设异常条件,对上述供应端进行断电处理。As shown in Figure 2, the abnormal supply end power outage device 200 in some embodiments includes: an acquisition unit 201, a first determination unit 202, a second determination unit 203, a third determination unit 204, an adding unit 205, a data cleaning unit 206, The first input unit 207, the second input unit 208 and the power-off unit 209. Wherein, the acquisition unit 201 is configured to acquire the basic power information of the supply end, where the above-mentioned basic power information includes: a power capacity sequence and a first power consumption sequence, and the power capacity in the above-mentioned power capacity sequence corresponds to the first preset time period. A time granularity within the first power consumption sequence, the first power consumption in the above-mentioned first power consumption sequence corresponds to a time granularity within the first preset time period; the first determination unit 202 is configured to calculate each power in the above-mentioned power capacity sequence. The average value of the capacity is determined as the average power capacity; the second determination unit 203 is configured to determine the average value of each first power consumption in the above-mentioned first power consumption sequence as the average power consumption; the third determination unit 204, It is configured to determine the average value of each first power consumption in the above-mentioned first power consumption sequence that is greater than the above-mentioned average power consumption as the upper average value of power consumption; the adding unit 205 is configured to add the above-mentioned average power capacity and the above-mentioned average power consumption. The upper average value of power consumption is added to the initial power information, wherein the above-mentioned initial power information is initially empty; the data cleaning unit 206 is configured to perform data cleaning processing on the above-mentioned initial power information to generate power information; the first input unit 207 , is configured to input the above-mentioned power information into the pre-trained target power information generation model to obtain the target power information; the second input unit 208 is configured to input the above-mentioned target power information into the pre-trained power result information generation model. , to obtain the power result information; the power-off unit 209 is configured to perform power-off processing on the above-mentioned supply end in response to determining that the above-mentioned power result information satisfies the preset abnormal condition.

可以理解的是,该异常供应端断电装置200中记载的诸单元与参考图1描述的方法中的各个步骤相对应。由此,上文针对方法描述的操作、特征以及产生的有益效果同样适用于异常供应端断电装置200及其中包含的单元,在此不再赘述。It can be understood that the units recorded in the abnormal supply end power outage device 200 correspond to the various steps in the method described with reference to FIG. 1 . Therefore, the operations, features and beneficial effects described above for the method are also applicable to the abnormal supply end power outage device 200 and the units included therein, and will not be described again here.

下面参考图3,其示出了适于用来实现本公开的一些实施例的电子设备(例如电网终端)300的结构示意图。本公开的一些实施例中的电子设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图3示出的电子设备仅仅是一个示例,不应对本公开的实施例的功能和使用范围带来任何限制。Referring now to FIG. 3 , a schematic structural diagram of an electronic device (eg, a power grid terminal) 300 suitable for implementing some embodiments of the present disclosure is shown. Electronic devices in some embodiments of the present disclosure may include, but are not limited to, mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablets), PMPs (portable multimedia players), vehicle-mounted terminals (such as car navigation terminals) and other mobile terminals as well as fixed terminals such as digital TVs, desktop computers, etc. The electronic device shown in FIG. 3 is only an example and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.

如图3所示,电子设备300可以包括处理装置(例如中央处理器、图形处理器等)301,其可以根据存储在只读存储器(ROM)302中的程序或者从存储装置308加载到随机访问存储器(RAM)303中的程序而执行各种适当的动作和处理。在RAM303中,还存储有电子设备300操作所需的各种程序和数据。处理装置301、ROM302以及RAM 303通过总线304彼此相连。输入/输出(I/O)接口305也连接至总线304。As shown in FIG. 3 , the electronic device 300 may include a processing device (eg, central processing unit, graphics processor, etc.) 301 , which may be loaded into a random access device according to a program stored in a read-only memory (ROM) 302 or from a storage device 308 . The program in the memory (RAM) 303 executes various appropriate actions and processes. In the RAM 303, various programs and data required for the operation of the electronic device 300 are also stored. The processing device 301, ROM 302 and RAM 303 are connected to each other via a bus 304. An input/output (I/O) interface 305 is also connected to bus 304 .

通常,以下装置可以连接至I/O接口305:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置306;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置307;包括例如磁带、硬盘等的存储装置308;以及通信装置309。通信装置309可以允许电子设备300与其他设备进行无线或有线通信以交换数据。虽然图3示出了具有各种装置的电子设备300,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。图3中示出的每个方框可以代表一个装置,也可以根据需要代表多个装置。Generally, the following devices may be connected to the I/O interface 305: input devices 306 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD), speaker, vibration An output device 307 such as a computer; a storage device 308 including a magnetic tape, a hard disk, etc.; and a communication device 309. The communication device 309 may allow the electronic device 300 to communicate wirelessly or wiredly with other devices to exchange data. Although FIG. 3 illustrates electronic device 300 with various means, it should be understood that implementation or availability of all illustrated means is not required. More or fewer means may alternatively be implemented or provided. Each block shown in Figure 3 may represent one device, or may represent multiple devices as needed.

特别地,根据本公开的一些实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的一些实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的一些实施例中,该计算机程序可以通过通信装置309从网络上被下载和安装,或者从存储装置308被安装,或者从ROM302被安装。在该计算机程序被处理装置301执行时,执行本公开的一些实施例的方法中限定的上述功能。In particular, according to some embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as a computer software program. For example, some embodiments of the present disclosure include a computer program product including a computer program carried on a computer-readable medium, the computer program containing program code for performing the method illustrated in the flowchart. In some such embodiments, the computer program may be downloaded and installed from the network via communication device 309, or from storage device 308, or from ROM 302. When the computer program is executed by the processing device 301, the above-described functions defined in the methods of some embodiments of the present disclosure are performed.

需要说明的是,本公开的一些实施例中记载的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开的一些实施例中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开的一些实施例中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium recorded in some embodiments of the present disclosure 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 is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or any combination thereof. More specific examples of computer readable storage media may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard drive, random access memory (RAM), read only memory (ROM), removable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. In some embodiments of the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device . Program code embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to: wire, optical fiber cable, RF (radio frequency), etc., or any suitable combination of the foregoing.

在一些实施方式中,客户端、服务器可以利用诸如HTTP(HyperText TransferProtocol,超文本传输协议)之类的任何当前已知或未来研发的网络协议进行通信,并且可以与任意形式或介质的数字数据通信(例如,通信网络)互连。通信网络的示例包括局域网(“LAN”),广域网(“WAN”),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。In some embodiments, the client and server can communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and can communicate with digital data in any form or medium. (e.g., communications network) interconnection. Examples of communications networks include local area networks ("LAN"), wide area networks ("WAN"), the Internet (e.g., the Internet), and end-to-end networks (e.g., ad hoc end-to-end networks), as well as any currently known or developed in the future network of.

上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:获取供应端的电力基本信息,其中,上述电力基本信息包括:电力容量序列、第一用电量序列,上述电力容量序列中的电力容量对应第一预设时间段内的一时间粒度,上述第一用电量序列中的第一用电量对应第一预设时间段内的一时间粒度;将上述电力容量序列中各个电力容量的平均值确定为电力容量均值;将上述第一用电量序列中各个第一用电量的平均值确定为用电量均值;将上述第一用电量序列中大于上述用电量均值的各个第一用电量的平均值确定为用电量上均值;将上述电力容量均值和上述用电量上均值添加至电力初始信息中,其中,上述电力初始信息初始为空;对上述电力初始信息进行数据清洗处理,以生成电力信息;将上述电力信息输入至预先训练的目标电力信息生成模型中,得到目标电力信息;将上述目标电力信息输入至预先训练的电力结果信息生成模型中,得到电力结果信息;响应于确定上述电力结果信息满足预设异常条件,对上述供应端进行断电处理。The above-mentioned computer-readable medium may be included in the above-mentioned electronic device; it may also exist independently without being assembled into the electronic device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: obtains basic power information at the supply end, where the basic power information includes: a power capacity sequence. , the first power consumption sequence, the power capacity in the above-mentioned power capacity sequence corresponds to a time granularity within the first preset time period, and the first power consumption in the above-mentioned first power consumption sequence corresponds to the first preset time period A time granularity within; determine the average value of each power capacity in the above-mentioned power capacity sequence as the average power capacity; determine the average value of each first power consumption in the above-mentioned first power consumption sequence as the average power consumption; The average value of each first power consumption in the above-mentioned first power consumption sequence that is greater than the above-mentioned average power consumption is determined as the upper average value of power consumption; the above-mentioned average power capacity and the above-mentioned upper average value of power consumption are added to the initial power information. , wherein the above-mentioned initial power information is initially empty; the above-mentioned initial power information is subjected to data cleaning processing to generate power information; the above-mentioned power information is input into a pre-trained target power information generation model to obtain the target power information; the above-mentioned target The power information is input into the pre-trained power result information generation model to obtain the power result information; in response to determining that the power result information satisfies the preset abnormal conditions, the power supply end is powered off.

可以以一种或多种程序设计语言或其组合来编写用于执行本公开的一些实施例的操作的计算机程序代码,上述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)——连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for performing the operations of some embodiments of the present disclosure may be written in one or more programming languages, including object-oriented programming languages—such as Java, Smalltalk, C++, or a combination thereof, Also included are conventional procedural programming languages—such as the "C" language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In situations involving remote computers, the remote computer can be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer, such as an Internet service provider. connected via the Internet).

附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operations of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, segment, or portion of code that contains one or more logic functions that implement the specified executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown one after another may actually execute substantially in parallel, or they may sometimes execute in the reverse order, depending on the functionality involved. It will also be noted that each block of the block diagram and/or flowchart illustration, and combinations of blocks in the block diagram and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or operations. , or can be implemented using a combination of specialized hardware and computer instructions.

描述于本公开的一些实施例中的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的单元也可以设置在处理器中,例如,可以描述为:一种处理器包括获取单元、第一确定单元、第二确定单元、第三确定单元、添加单元、数据清洗单元、第一输入单元、第二输入单元和断电单元。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定,例如,获取单元还可以被描述为“获取供应端的电力基本信息”。The units described in some embodiments of the present disclosure may be implemented in software or hardware. The described unit can also be provided in a processor. For example, it can be described as: a processor includes an acquisition unit, a first determination unit, a second determination unit, a third determination unit, an adding unit, a data cleaning unit, a first Input unit, second input unit and power outage unit. The names of these units do not constitute a limitation on the unit itself under certain circumstances. For example, the acquisition unit may also be described as “obtaining basic power information at the supply end.”

本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、片上系统(SOC)、复杂可编程逻辑设备(CPLD)等等。The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), Systems on Chips (SOCs), Complex Programmable Logical device (CPLD) and so on.

以上描述仅为本公开的一些较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开的实施例中所涉及的发明范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述发明构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开的实施例中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only an illustration of some preferred embodiments of the present disclosure and the technical principles applied. Persons skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to technical solutions composed of specific combinations of the above technical features, and should also cover the above-mentioned technical solutions without departing from the above-mentioned inventive concept. Other technical solutions formed by any combination of technical features or their equivalent features. For example, a technical solution is formed by replacing the above features with technical features with similar functions disclosed in the embodiments of the present disclosure (but not limited to).

Claims (7)

1. An abnormal supply end power-off method comprises the following steps:
acquiring basic power information of a supply end, wherein the basic power information comprises: the power capacity in the power capacity sequence corresponds to a time granularity in a first preset time period, and the first power in the first power sequence corresponds to a time granularity in the first preset time period;
determining an average value of each power capacity in the power capacity sequence as a power capacity average value;
determining an average value of all the first electric quantities in the first electric quantity sequence as an average value of the electric quantities;
determining an average value of all the first electric quantities larger than the average value of the electric quantities in the first electric quantity sequence as an upper average value of the electric quantities;
adding the power capacity average value and the power consumption upper average value into power initial information, wherein the power initial information is initially empty;
performing data cleaning processing on the electric power initial information to generate electric power information;
inputting the power information into a pre-trained target power information generation model to obtain target power information;
inputting the target power information into a pre-trained power result information generation model to obtain power result information;
And responding to the fact that the power result information meets a preset abnormal condition, and performing power-off processing on the supply end.
2. The method of claim 1, wherein the power base information further comprises: the second electricity consumption sequence and the first electricity attribute value sequence; and
before the data cleansing process is performed on the power initial information to generate power information, the method further includes:
updating the first electrical attribute value sequence to generate a first updated electrical attribute value sequence;
determining the sum of all the first electric quantities in the first electric quantity sequence as a first total electric quantity;
determining the sum of the second power consumption in the second power consumption sequence as a second total power consumption;
determining the ratio of the first total power consumption to the second total power consumption as the same ratio of the total power consumption;
determining an average value of each first updated electricity attribute value in the first updated electricity attribute value sequence as an electricity attribute average value;
determining the average value of each first updated electricity attribute value larger than the average value of the electricity attribute in the first updated electricity attribute value sequence as the average value of the electricity attribute;
Determining the ratio of the largest first updated electricity utilization attribute value in the first updated electricity utilization attribute value sequence to the smallest first updated electricity utilization attribute value in the first updated electricity utilization attribute value sequence as an electricity utilization attribute ratio;
and adding the total electricity consumption homonymy, the electricity consumption attribute upper average value and the electricity consumption attribute ratio to the electric power initial information.
3. The method of claim 2, wherein the power base information further comprises: a sequence of volume reduction capacities, a target power capacity, and a sequence of second power usage attribute values; and
the method further comprises the steps of:
updating the second power utilization attribute value sequence to generate a second updated power utilization attribute value sequence;
determining the number of volume reduction capacities in the volume reduction capacity sequence as volume reduction times;
determining the sum of the volume-reducing capacities in the volume-reducing capacity sequence as the volume-reducing total capacity;
determining a ratio of the reduced-volume total capacity to the target power capacity as a reduced-volume duty cycle;
determining a sum of the first updated electrical attribute values in the sequence of first updated electrical attribute values as a first total electrical attribute value;
determining a sum of the second updated electrical attribute values in the sequence of second updated electrical attribute values as a second total electrical attribute value;
Determining the ratio of the first total electricity utilization attribute value and the second total electricity utilization attribute value as the total electricity utilization attribute same ratio;
for each first electric quantity in the first electric quantity sequence, determining the ratio of the first electric quantity to the last first electric quantity of the first electric quantity as a first electric quantity ratio;
determining an average value of the determined first electric quantity ratios as an electric quantity change rate;
and adding the volume reduction times, the volume reduction ratio, the total electricity utilization attribute homoratio and the electricity utilization change rate to the electric power initial information.
4. A method according to claim 3, wherein the power base information further comprises: a region electricity consumption sequence and a region electricity consumption attribute value sequence; and
the method further comprises the steps of:
determining an average value of the power consumption of each area in the area power consumption sequence as an average value of the power consumption of the area;
determining the square of the power consumption of each area in the area power consumption sequence as an area power consumption square value, and obtaining an area power consumption square value sequence;
determining the sum of the square values of the power consumption of each area in the square value sequence of the power consumption of the area as the square sum of the power consumption of the area;
Determining the sum of the regional power consumption in the regional power consumption sequence as the regional power consumption sum value;
determining the square of the regional power consumption sum as a regional power consumption sum square value;
determining the ratio of the square sum value of the regional power consumption to the square sum value of the regional power consumption as regional power consumption concentration;
determining the average value of all the regional power utilization attribute values in the regional power utilization attribute value sequence as the regional power utilization attribute average value;
generating regional electricity attribute value concentration based on the regional electricity attribute value sequence;
and adding the regional power consumption average value, the regional power consumption concentration, the regional power consumption attribute average value and the regional power consumption attribute value concentration to the electric power initial information.
5. An abnormal supply end power-off device, comprising:
an acquisition unit configured to acquire power basic information of a supply terminal, wherein the power basic information includes: the power capacity in the power capacity sequence corresponds to a time granularity in a first preset time period, and the first power in the first power sequence corresponds to a time granularity in the first preset time period;
A first determination unit configured to determine an average value of the individual power capacities in the power capacity sequence as a power capacity average value;
a second determining unit configured to determine an average value of each first electric quantity in the first electric quantity sequence as an electric quantity average value;
a third determining unit configured to determine an average value of each first electric quantity larger than the average value of the electric quantities in the first electric quantity sequence as an upper average value of the electric quantities;
an adding unit configured to add the power capacity average value and the power consumption upper average value to power initial information, wherein the power initial information is initially empty;
a data cleansing unit configured to perform data cleansing processing on the power initial information to generate power information;
a first input unit configured to input the power information into a pre-trained target power information generation model to obtain target power information;
a second input unit configured to input the target power information into a pre-trained power result information generation model to obtain power result information;
and the power-off unit is configured to perform power-off processing on the supply end in response to determining that the power result information meets a preset abnormal condition.
6. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon;
when executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-4.
7. A computer readable medium having stored thereon a computer program, wherein the computer program, when executed by a processor, implements the method of any of claims 1-4.
CN202310605958.2A 2023-05-26 2023-05-26 Abnormal supply end power-off method, device, electronic equipment and computer readable medium Active CN116388112B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310605958.2A CN116388112B (en) 2023-05-26 2023-05-26 Abnormal supply end power-off method, device, electronic equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310605958.2A CN116388112B (en) 2023-05-26 2023-05-26 Abnormal supply end power-off method, device, electronic equipment and computer readable medium

Publications (2)

Publication Number Publication Date
CN116388112A CN116388112A (en) 2023-07-04
CN116388112B true CN116388112B (en) 2023-09-12

Family

ID=86965963

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310605958.2A Active CN116388112B (en) 2023-05-26 2023-05-26 Abnormal supply end power-off method, device, electronic equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN116388112B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117235535B (en) * 2023-11-14 2024-02-20 北京国电通网络技术有限公司 Abnormal supply end power-off method and device, electronic equipment and medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107944642A (en) * 2017-12-19 2018-04-20 国家电网公司 A kind of Forecasting Methodology and forecasting system of electric grid investment demand
CN109636124A (en) * 2018-11-18 2019-04-16 韩霞 Power industry low-voltage platform area line loss analyzing method and processing system based on big data
CN112288594A (en) * 2020-10-23 2021-01-29 国网辽宁省电力有限公司信息通信分公司 Data quality transaction processing method and system based on real-time event triggering
CN112578213A (en) * 2020-12-23 2021-03-30 交控科技股份有限公司 Fault prediction method and device for rail power supply screen
CN113971504A (en) * 2021-09-15 2022-01-25 南方电网物资有限公司 Method, device and equipment for power emergency repair resource allocation based on smart contract
CN115130065A (en) * 2022-08-29 2022-09-30 北京国电通网络技术有限公司 Method, device and equipment for processing characteristic information of supply terminal and computer readable medium
US11494281B1 (en) * 2021-08-25 2022-11-08 Geotab Inc. Methods for handling input/output expansion power faults in a telematics device
CN115599640A (en) * 2022-11-29 2023-01-13 北京国电通网络技术有限公司(Cn) Abnormal supply end warning method, electronic device and medium
CN116129440A (en) * 2023-04-13 2023-05-16 新兴际华集团财务有限公司 Abnormal user side alarm method, device, electronic equipment and medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107944642A (en) * 2017-12-19 2018-04-20 国家电网公司 A kind of Forecasting Methodology and forecasting system of electric grid investment demand
CN109636124A (en) * 2018-11-18 2019-04-16 韩霞 Power industry low-voltage platform area line loss analyzing method and processing system based on big data
CN112288594A (en) * 2020-10-23 2021-01-29 国网辽宁省电力有限公司信息通信分公司 Data quality transaction processing method and system based on real-time event triggering
CN112578213A (en) * 2020-12-23 2021-03-30 交控科技股份有限公司 Fault prediction method and device for rail power supply screen
US11494281B1 (en) * 2021-08-25 2022-11-08 Geotab Inc. Methods for handling input/output expansion power faults in a telematics device
CN113971504A (en) * 2021-09-15 2022-01-25 南方电网物资有限公司 Method, device and equipment for power emergency repair resource allocation based on smart contract
CN115130065A (en) * 2022-08-29 2022-09-30 北京国电通网络技术有限公司 Method, device and equipment for processing characteristic information of supply terminal and computer readable medium
CN115599640A (en) * 2022-11-29 2023-01-13 北京国电通网络技术有限公司(Cn) Abnormal supply end warning method, electronic device and medium
CN116129440A (en) * 2023-04-13 2023-05-16 新兴际华集团财务有限公司 Abnormal user side alarm method, device, electronic equipment and medium

Also Published As

Publication number Publication date
CN116388112A (en) 2023-07-04

Similar Documents

Publication Publication Date Title
CN116703131B (en) Power resource allocation method, device, electronic equipment and computer readable medium
CN115081946A (en) Electricity consumption regulation method, system, device, electronic device and computer medium
CN116991219B (en) Abnormal production state monitoring method, device, electronic equipment and medium
CN115081960A (en) Regional hollow rate information generation method and device, electronic equipment and computer medium
CN115759444B (en) Power equipment distribution methods, devices, electronic equipment and computer-readable media
CN114202130A (en) Multitask model generation method, scheduling method, device and device for forecasting flow
CN116388112B (en) Abnormal supply end power-off method, device, electronic equipment and computer readable medium
CN116862319B (en) Power index information generation method, device, electronic equipment and medium
CN116881097B (en) User terminal alarm method, device, electronic equipment and computer readable medium
CN117236805A (en) Power equipment control method, device, electronic equipment and computer readable medium
CN115907136B (en) Electric vehicle dispatching method, device, equipment and computer-readable medium
WO2024012306A1 (en) Method and apparatus for determining neural network model structure, device, medium, and product
CN117235535B (en) Abnormal supply end power-off method and device, electronic equipment and medium
CN113077351A (en) Information pushing method and device applied to insurance industry, electronic equipment and medium
CN111985967A (en) Article information generation method and device, electronic equipment and computer readable medium
CN116800834B (en) Virtual gift merging method, device, electronic equipment and computer readable medium
CN115577980B (en) Power equipment regulation and control method and device, electronic equipment and medium
CN116757443B (en) Novel power line loss rate prediction method and device for power distribution network, electronic equipment and medium
CN117675507B (en) Abnormal node terminal alarm method, electronic device and computer readable medium
CN116894538B (en) Node carbon emission information generation method and device, electronic equipment and medium
CN116703263B (en) Power equipment distribution method, device, electronic equipment and computer readable medium
CN116755889B (en) Data acceleration method, device and equipment applied to server cluster data interaction
CN115689210B (en) Hydropower adjustment method and device based on water consumption privacy data and electronic equipment
CN116307998B (en) Power equipment material transportation method, device, electronic equipment and computer medium
CN115392803B (en) Method, device, electronic device, and medium for adjusting power supply amount in area

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant