CN109409661A - Electronic device, the building Electrical Safety recognition methods based on cusum algorithm and storage medium - Google Patents
Electronic device, the building Electrical Safety recognition methods based on cusum algorithm and storage medium Download PDFInfo
- Publication number
- CN109409661A CN109409661A CN201811095410.3A CN201811095410A CN109409661A CN 109409661 A CN109409661 A CN 109409661A CN 201811095410 A CN201811095410 A CN 201811095410A CN 109409661 A CN109409661 A CN 109409661A
- Authority
- CN
- China
- Prior art keywords
- current load
- load value
- time interval
- value
- sudden change
- 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.)
- Pending
Links
- 238000004422 calculation algorithm Methods 0.000 title claims abstract description 60
- 238000000034 method Methods 0.000 title claims abstract description 30
- 230000005611 electricity Effects 0.000 claims abstract description 43
- 230000035772 mutation Effects 0.000 claims abstract description 24
- 238000004458 analytical method Methods 0.000 claims abstract description 14
- 230000008859 change Effects 0.000 claims description 63
- 230000006870 function Effects 0.000 claims description 18
- 238000012360 testing method Methods 0.000 claims description 12
- 230000001186 cumulative effect Effects 0.000 claims description 8
- 238000004364 calculation method Methods 0.000 claims description 6
- 238000005070 sampling Methods 0.000 claims description 6
- 238000012423 maintenance Methods 0.000 abstract description 6
- 238000004891 communication Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 6
- 238000012545 processing Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 4
- 238000011161 development Methods 0.000 description 3
- 230000002159 abnormal effect Effects 0.000 description 2
- 230000003321 amplification Effects 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 238000003745 diagnosis Methods 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 238000003199 nucleic acid amplification method Methods 0.000 description 2
- 230000000737 periodic effect Effects 0.000 description 2
- 230000035945 sensitivity Effects 0.000 description 2
- 230000005236 sound signal Effects 0.000 description 2
- 238000004590 computer program Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000008094 contradictory effect Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 238000012800 visualization Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/06—Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
- G06Q10/063—Operations research, analysis or management
- G06Q10/0635—Risk analysis of enterprise or organisation activities
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/06—Energy or water supply
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Business, Economics & Management (AREA)
- Human Resources & Organizations (AREA)
- Engineering & Computer Science (AREA)
- Economics (AREA)
- Strategic Management (AREA)
- Entrepreneurship & Innovation (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Marketing (AREA)
- General Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- Tourism & Hospitality (AREA)
- Educational Administration (AREA)
- Quality & Reliability (AREA)
- Operations Research (AREA)
- Game Theory and Decision Science (AREA)
- Development Economics (AREA)
- Public Health (AREA)
- Water Supply & Treatment (AREA)
- General Health & Medical Sciences (AREA)
- Primary Health Care (AREA)
- Emergency Alarm Devices (AREA)
Abstract
本发明提出一种基于cusum算法的建筑物用电安全识别方法,包括:获取预先确定的建筑物在预定义时间段内的电流负荷曲线;根据cusum算法对获取的电流负荷曲线进行电流突变点分析,以分析出电流负荷值发生突变的点;若分析出电流负荷值发生突变的点为工作日,则将该点的电流负荷值与预设的第一预警阈值进行比较,并在大于或等于第一预警阈值时,向预先确定的终端发送安全预警信息;若分析出电流负荷值发生突变的点为休息日,则将该点的电流负荷值与预设的第二预警阈值进行比较,并在大于或者等于预设的第二预警阈值时,向预先确定的终端发送安全预警信息。能够提高用电故障的维护效率以及降低用电安全隐患。
The invention provides a method for identifying the safety of building electricity consumption based on the cusum algorithm, which includes: obtaining a predetermined current load curve of a building within a predefined time period; and performing a current mutation point analysis on the obtained current load curve according to the cusum algorithm , to analyze the point where the current load value suddenly changes; if the point where the current load value suddenly changes is a working day, then compare the current load value at this point with the preset first warning threshold, and if it is greater than or equal to the first warning threshold When the first warning threshold is used, the safety warning information is sent to the predetermined terminal; if it is analyzed that the point at which the current load value suddenly changes is a rest day, the current load value at the point is compared with the preset second warning threshold, and When it is greater than or equal to the preset second warning threshold, the security warning information is sent to the predetermined terminal. It can improve the maintenance efficiency of electricity failure and reduce the hidden danger of electricity safety.
Description
技术领域technical field
本发明涉及电力数据处理领域,尤其涉及一种电子装置、基于cusum算法的建筑物用电安全识别方法及存储介质。The invention relates to the field of power data processing, in particular to an electronic device, a building power safety identification method based on a cusum algorithm, and a storage medium.
背景技术Background technique
随着智能电网的不断发展以及用电产品的逐年增加,如何快速有效地控制不同建筑物的用电负荷在安全范围内,以成为智能电网建设中必须解决的问题。With the continuous development of smart grid and the increase of electricity products year by year, how to quickly and effectively control the electricity load of different buildings within a safe range has become a problem that must be solved in the construction of smart grid.
目前,针对不同建筑物的用电安全诊断方法主要通过对各个节点电压、线路电流以及功率流均设置安全约束范围,当出现超过安全约束范围的值,则通过驱动断路器跳闸来起到安全保护。这种安全诊断方法往往会对整个电力系统的运行过程造成很大的冲击,且一旦发生断路现象,则需要继电保护工程师在现场进行故障查询以及线路的维修,消耗大量的人力时间,影响用户的使用体验。At present, the power safety diagnosis method for different buildings mainly sets the safety constraint range for each node voltage, line current and power flow. . This safety diagnosis method often has a great impact on the operation of the entire power system, and once a circuit break occurs, a relay protection engineer is required to conduct fault inquiry and line maintenance on site, which consumes a lot of manpower time and affects users. user experience.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本发明提出一种电子装置、基于cusum算法的建筑物用电安全识别方法及存储介质,能够提高用电故障的维护效率以及降低用电安全隐患。In view of this, the present invention proposes an electronic device, a building electricity safety identification method based on a cusum algorithm, and a storage medium, which can improve the maintenance efficiency of electricity failure and reduce the hidden danger of electricity safety.
首先,为实现上述目的,本发明提出一种电子装置,所述电子装置包括存储器、及与所述存储器连接的处理器,所述处理器用于执行所述存储器上存储的基于cusum算法的建筑物用电安全识别程序,所述基于cusum算法的建筑物用电安全识别程序被所述处理器执行时实现如下步骤:First of all, in order to achieve the above object, the present invention provides an electronic device, the electronic device includes a memory and a processor connected to the memory, the processor is used for executing the building based on the cusum algorithm stored on the memory A power consumption safety identification program, when the building power consumption safety identification program based on the cusum algorithm is executed by the processor, the following steps are implemented:
A1、分别获取预先确定的建筑物在预定义时间段内各类型日的电流负荷曲线;A1. Obtain the current load curve of each type of day of the pre-determined building in the pre-defined time period;
A2、根据预先确定的cusum算法对获取的电流负荷曲线进行电流突变点分析,以分析出电流负荷值发生突变的点对应的时间区间;A2. Perform current mutation point analysis on the acquired current load curve according to the predetermined cusum algorithm, so as to analyze the time interval corresponding to the point where the current load value changes abruptly;
A3、若分析出电流负荷值发生突变的时间区间为工作日,则将该时间区间的电流负荷值与预设的第一预警阈值进行比较,若该时间区间的电流负荷值大于,或者等于预设的第一预警阈值,则向预先确定的终端发送安全预警信息;A3. If it is analyzed that the time interval in which the current load value changes abruptly is a working day, the current load value in the time interval is compared with the preset first warning threshold. If the current load value in the time interval is greater than or equal to the pre-warning threshold If the first warning threshold is set, the security warning information is sent to the predetermined terminal;
A4、若分析出电流负荷值发生突变的时间区间为休息日,则将该时间区间的电流负荷值与预设的第二预警阈值进行比较,若该时间区间的电流负荷值大于,或者等于预设的第二预警阈值,则向预先确定的终端发送安全预警信息。A4. If it is analyzed that the time interval in which the current load value suddenly changes is a rest day, the current load value in this time interval is compared with the preset second warning threshold. If the current load value in this time interval is greater than or equal to the pre-warning threshold If the second pre-warning threshold is set, the security pre-warning information is sent to the predetermined terminal.
优选地,所述步骤A2包括如下步骤:Preferably, the step A2 includes the following steps:
获取电力负荷曲线中各个时间点的电流负荷值,以构成电流负荷值的数据集序列{yi};Obtain the current load values at each time point in the power load curve to form a data set sequence {y i } of the current load values;
根据所述预先确定的cusum算法分析所述电流负荷值的数据序列,以检测出发生突变的电流负荷值对应的时间点。The data sequence of the current load value is analyzed according to the predetermined cusum algorithm to detect the time point corresponding to the sudden change of the current load value.
优选地,所述根据所述预先确定的cusum算法分析所述电流负荷值的数据序列,以检测出发生突变的电流负荷值对应的数据点的步骤,包括:Preferably, the step of analyzing the data sequence of the current load value according to the predetermined cusum algorithm to detect the data point corresponding to the sudden change of the current load value includes:
假设{yi}是一个独立的同分布随机序列,电流负荷值发生突变前的电流负荷曲线上每个时间点的概率密度函数为电流负荷值发生突变后的电流负荷曲线每个时间点的概率密度函数为假设θ0和θ1服从正态分布,则Assuming that {y i } is an independent identically distributed random sequence, the probability density function of each time point on the current load curve before the current load value abruptly changes is The probability density function at each time point of the current load curve after the sudden change of the current load value is: Assuming that θ 0 and θ 1 follow a normal distribution, then
其中,μ是发生突变的电流负荷值{yi}的均值,σ2是发生突变的电流负荷值{yi}的方差;Among them, μ is the mean value of the abrupt current load value {y i }, and σ 2 is the variance of the sudden change current load value {y i };
预定义对电流负荷值识别的时间区间长度为N、电流负荷值突变的阈值为h;The predefined time interval length for identifying the current load value is N, and the threshold value for the sudden change of the current load value is h;
分别计算上一时间区间发生突变的电流负荷值{yi}的方差σ0 2和均值μ0,以及本时间区间的发生突变的电流负荷值{yi}的方差σ1 2和均值μ1;Calculate the variance σ 0 2 and the mean μ 0 of the current load value {y i } with sudden change in the previous time interval, as well as the variance σ 1 2 and the mean value μ 1 of the current load value {y i } with sudden change in this time interval. ;
根据计算结果,计算本时间区间内点yi的电流负荷值发生突变前后的对数似然比s(yi):According to the calculation results, calculate the log-likelihood ratio s(y i ) before and after the sudden change of the current load value at point y i in this time interval:
其中, in,
计算发生突变的电流负荷值在本时间区间对数似然比的累积和其中,Calculate the cumulative sum of the log-likelihood ratios of the sudden change in the current load value in this time interval in,
建立一个基于发生突变的电流负荷值{yi}的均值μ的假设检验,假设Set up a hypothesis test based on the mean μ of the abrupt current load values {yi}, assuming
H0:μ=μ0,H1:μ=μ1;H 0 : μ=μ 0 , H 1 : μ=μ 1 ;
检验的判别标准为:The test criteria are:
若则d=0,若则d=1;like Then d=0, if then d=1;
若d=0,则判定该时间区间内电流负荷值未发生突变,记为H0,若d=1,则判定该时间区间内电流负荷值发生突变,记为H1,其中,h为电流负荷突变的阈值。If d=0, it is determined that the current load value has not changed abruptly in this time interval, which is denoted as H 0 ; if d=1, it is determined that the current load value has a sudden change in this time interval, which is denoted as H 1 , where h is the current Threshold for load mutation.
优选地,在所述预定义对电流负荷值识别的时间区间长度为N、电流负荷值突变的阈值为h的步骤中,所述N取该建筑物对应的电力系统在一个工频周期内的电流负荷曲线的采样时间点数,所述时间区间长度的最小单位为日,所述电流负荷突变的阈值h的取值范围为0.025N-0.1N。Preferably, in the step of predefining the length of the time interval for identifying the current load value as N, and the threshold value for the sudden change of the current load value as h, the N is the value of the power system corresponding to the building within one power frequency cycle. The number of sampling time points of the current load curve, the minimum unit of the length of the time interval is day, and the value range of the threshold h for the sudden change of the current load is 0.025N-0.1N.
优选地,所述预定义时间段内各类型日包括工作日和非工作日,所述非工作日包括节假日以及双休日。Preferably, various types of days in the predefined time period include working days and non-working days, and the non-working days include holidays and weekends.
此外,为了实现上述目的,本发明还提出一种基于cusum算法的建筑物用电安全识别方法,所述方法包括如下步骤:In addition, in order to achieve the above purpose, the present invention also proposes a method for identifying electricity safety in buildings based on a cusum algorithm, the method comprising the following steps:
S1、分别获取预先确定的建筑物在预定义时间段内各类型日的电流负荷曲线;S1. Obtain the current load curves of each type of day of a predetermined building in a predetermined time period respectively;
S2、根据预先确定的cusum算法对获取的电流负荷曲线进行电流突变点分析,以分析出电流负荷值发生突变的点对应的时间区间;S2. Perform current mutation point analysis on the acquired current load curve according to a predetermined cusum algorithm, so as to analyze the time interval corresponding to the point where the current load value changes abruptly;
S3、若分析出电流负荷值发生突变的时间区间为工作日,则将该时间区间的电流负荷值与预设的第一预警阈值进行比较,若该时间区间的电流负荷值大于,或者等于预设的第一预警阈值,则向预先确定的终端发送安全预警信息;S3. If it is analyzed that the time interval in which the current load value changes abruptly is a working day, compare the current load value in the time interval with the preset first warning threshold, and if the current load value in the time interval is greater than or equal to the pre-warning threshold If the first warning threshold is set, the security warning information is sent to the predetermined terminal;
S4、若分析出电流负荷值发生突变的时间区间为休息日,则将该时间区间的电流负荷值与预设的第二预警阈值进行比较,若该时间区间的电流负荷值大于,或者等于预设的第二预警阈值,则向预先确定的终端发送安全预警信息。S4. If the time interval in which the sudden change of the current load value is analyzed is a rest day, compare the current load value in the time interval with the preset second warning threshold, and if the current load value in the time interval is greater than or equal to the pre-warning threshold If the second pre-warning threshold is set, the security pre-warning information is sent to the predetermined terminal.
优选地,所述步骤S2包括如下步骤:Preferably, the step S2 includes the following steps:
获取电力负荷曲线中各个时间点的电流负荷值,以构成电流负荷值的数据集序列{yi};Obtain the current load values at each time point in the power load curve to form a data set sequence {y i } of the current load values;
根据所述预先确定的cusum算法分析所述电流负荷值的数据序列,以检测出发生突变的电流负荷值对应的时间点。The data sequence of the current load value is analyzed according to the predetermined cusum algorithm to detect the time point corresponding to the sudden change of the current load value.
优选地,所述根据所述预先确定的cusum算法分析所述电流负荷值的数据序列,以检测出发生突变的电流负荷值对应的数据点的步骤,包括:Preferably, the step of analyzing the data sequence of the current load value according to the predetermined cusum algorithm to detect the data point corresponding to the sudden change of the current load value includes:
假设{yi}是一个独立的同分布随机序列,电流负荷值发生突变前的电流负荷曲线上每个时间点的概率密度函数为电流负荷值发生突变后的电流负荷曲线每个时间点的概率密度函数为假设θ0和θ1服从正态分布,则Assuming that {y i } is an independent identically distributed random sequence, the probability density function of each time point on the current load curve before the current load value abruptly changes is The probability density function at each time point of the current load curve after the sudden change of the current load value is: Assuming that θ 0 and θ 1 follow a normal distribution, then
其中,μ是发生突变的电流负荷值{yi}的均值,σ2是发生突变的电流负荷值{yi}的方差;Among them, μ is the mean value of the abrupt current load value {y i }, and σ 2 is the variance of the sudden change current load value {y i };
预定义对电流负荷值识别的时间区间长度为N、电流负荷值突变的阈值为h;The predefined time interval length for identifying the current load value is N, and the threshold value for the sudden change of the current load value is h;
分别计算上一时间区间发生突变的电流负荷值{yi}的方差σ0 2和均值μ0,以及本时间区间的发生突变的电流负荷值{yi}的方差σ1 2和均值μ1;Calculate the variance σ 0 2 and the mean μ 0 of the current load value {y i } with sudden change in the previous time interval, as well as the variance σ 1 2 and the mean value μ 1 of the sudden current load value {y i } in this time interval. ;
根据计算结果,计算本时间区间内点yi的电流负荷值发生突变前后的对数似然比s(yi):According to the calculation results, calculate the log-likelihood ratio s(y i ) before and after the sudden change of the current load value at point y i in this time interval:
其中, in,
计算发生突变的电流负荷值在本时间区间对数似然比的累积和其中,Calculate the cumulative sum of the log-likelihood ratios of the sudden change in the current load value in this time interval in,
建立一个基于发生突变的电流负荷值{yi}的均值μ的假设检验,假设Set up a hypothesis test based on the mean μ of the abrupt current load values {yi}, assuming
H0:μ=μ0,H1:μ=μ1;H 0 : μ=μ 0 , H 1 : μ=μ 1 ;
检验的判别标准为:The test criteria are:
若则d=0,若则d=1;like Then d=0, if then d=1;
若d=0,则判定该时间区间内电流负荷值未发生突变,记为H0,若d=1,则判定该时间区间内电流负荷值发生突变,记为H1,其中,h为电流负荷突变的阈值。If d=0, it is determined that the current load value has not changed abruptly in this time interval, which is denoted as H 0 ; if d=1, it is determined that the current load value has a sudden change in this time interval, which is denoted as H 1 , where h is the current Threshold for load mutation.
优选地,在所述预定义对电流负荷值识别的时间区间长度为N、电流负荷值突变的阈值为h的步骤中,所述N取该建筑物对应的电力系统在一个工频周期内的电流负荷曲线的采样时间点数,所述时间区间长度的最小单位为日,所述电流负荷突变的阈值h的取值范围为0.025N-0.1N。Preferably, in the step of predefining the length of the time interval for identifying the current load value as N, and the threshold value for the sudden change of the current load value as h, the N is the value of the power system corresponding to the building within one power frequency cycle. The number of sampling time points of the current load curve, the minimum unit of the length of the time interval is day, and the value range of the threshold h for the sudden change of the current load is 0.025N-0.1N.
此外,为了解决上述技术问题,本发明还提出一种计算机可读存储介质,所述计算机可读存储介质存储有基于cusum算法的建筑物用电安全识别程序,所述基于cusum算法的建筑物用电安全识别程序可被至少一个处理器执行,以使所述至少一个处理器执行如上所述的基于cusum算法的建筑物用电安全识别方法的步骤。In addition, in order to solve the above technical problems, the present invention also proposes a computer-readable storage medium, the computer-readable storage medium stores a building electricity safety identification program based on a cusum algorithm, and the building The electrical safety identification program may be executed by at least one processor, so that the at least one processor executes the steps of the cusum algorithm-based building electrical safety identification method as described above.
本发明所提出的电子装置、基于cusum算法的建筑物用电安全识别方法及存储介质,通过分别获取预先确定的建筑物在预定义时间段内各类型日的电流负荷曲线;根据预先确定的cusum算法对获取的电流负荷曲线进行电流突变点分析,以分析出电流负荷值发生突变的点对应的时间区间;若分析出电流负荷值发生突变的时间区间为工作日,则将该时间区间的电流负荷值与预设的第一预警阈值进行比较,若该时间区间的电流负荷值大于,或者等于预设的第一预警阈值,则向预先确定的终端发送安全预警信息;若分析出电流负荷值发生突变的时间区间为休息日,则将该时间区间的电流负荷值与预设的第二预警阈值进行比较,若该时间区间的电流负荷值大于,或者等于预设的第二预警阈值,则向预先确定的终端发送安全预警信息。能够提高用电故障的维护效率以及降低用电安全隐患。The electronic device, the building electricity safety identification method and the storage medium based on the cusum algorithm proposed by the present invention obtain the current load curves of the pre-determined buildings for each type of day in the pre-defined time period respectively; according to the pre-determined cusum The algorithm analyzes the current mutation point of the acquired current load curve to analyze the time interval corresponding to the point where the current load value changes abruptly; The load value is compared with the preset first warning threshold. If the current load value in the time interval is greater than or equal to the preset first warning threshold, the safety warning information is sent to the predetermined terminal; if the current load value is analyzed If the time interval in which the sudden change occurs is a rest day, the current load value in the time interval is compared with the preset second warning threshold, and if the current load value in the time interval is greater than or equal to the preset second warning threshold, then Send security warning information to predetermined terminals. It can improve the maintenance efficiency of electricity failure and reduce the hidden danger of electricity safety.
附图说明Description of drawings
图1是本发明提出的电子装置一可选的硬件架构的示意图;1 is a schematic diagram of an optional hardware architecture of an electronic device proposed by the present invention;
图2是本发明电子装置一实施例中基于cusum算法的建筑物用电安全识别程序的程序模块示意图;2 is a schematic diagram of a program module of a building electricity safety identification program based on a cusum algorithm in an embodiment of the electronic device of the present invention;
图3是本发明基于cusum算法的建筑物用电安全识别方法较佳实施例的实施流程图。FIG. 3 is an implementation flow chart of a preferred embodiment of the method for identifying electricity safety in buildings based on the cusum algorithm of the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization, functional characteristics and advantages of the present invention will be further described with reference to the accompanying drawings in conjunction with the embodiments.
具体实施方式Detailed ways
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
需要说明的是,在本发明中涉及“第一”、“第二”等的描述仅用于描述目的,而不能理解为指示或暗示其相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。另外,各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本发明要求的保护范围之内。It should be noted that the descriptions involving "first", "second", etc. in the present invention are only for the purpose of description, and should not be construed as indicating or implying their relative importance or implying the number of indicated technical features . Thus, a feature delimited with "first", "second" may expressly or implicitly include at least one of that feature. In addition, the technical solutions between the various embodiments can be combined with each other, but must be based on the realization by those of ordinary skill in the art. When the combination of technical solutions is contradictory or cannot be realized, it should be considered that the combination of such technical solutions does not exist. , is not within the scope of protection required by the present invention.
参阅图1所示,是本发明提出的电子装置一可选的硬件架构示意图。本实施例中,电子装置10可包括,但不仅限于,可通过通信总线14相互通信连接存储器11、处理器12、网络接口13。需要指出的是,图1仅示出了具有组件11-14的电子装置10,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。Referring to FIG. 1 , it is a schematic diagram of an optional hardware structure of the electronic device proposed by the present invention. In this embodiment, the electronic device 10 may include, but is not limited to, the memory 11 , the processor 12 , and the network interface 13 that can be connected to each other through the communication bus 14 in communication. It should be noted that FIG. 1 only shows the electronic device 10 having components 11-14, but it should be understood that it is not required to implement all of the illustrated components, and more or less components may be implemented instead.
其中,存储器11至少包括一种类型的计算机可读存储介质,计算机可读存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘等。在一些实施例中,存储器11可以是电子装置10的内部存储单元,例如电子装置10的硬盘或内存。在另一些实施例中,存储器11也可以是电子装置10的外包存储设备,例如电子装置10上配备的插接式硬盘,智能存储卡(SmartMedia Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。当然,存储器11还可以既包括电子装置10的内部存储单元也包括其外包存储设备。本实施例中,存储器11通常用于存储安装于电子装置10的操作系统和各类应用软件,例如基于cusum算法的建筑物用电安全识别程序等。此外,存储器11还可以用于暂时地存储已经输出或者将要输出的各类数据。Wherein, the memory 11 includes at least one type of computer-readable storage medium, and the computer-readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static Random Access Memory (SRAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), Programmable Read Only Memory (PROM), Magnetic Memory, Magnetic Disk, Optical Disk, etc. In some embodiments, the memory 11 may be an internal storage unit of the electronic device 10 , such as a hard disk or a memory of the electronic device 10 . In other embodiments, the memory 11 may also be an outsourced storage device of the electronic device 10, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) equipped on the electronic device 10 card, flash card (Flash Card) and so on. Of course, the memory 11 may also include both an internal storage unit of the electronic device 10 and an external storage device thereof. In this embodiment, the memory 11 is generally used to store the operating system and various application software installed in the electronic device 10 , such as a building electricity safety identification program based on the cusum algorithm, and the like. In addition, the memory 11 can also be used to temporarily store various types of data that have been output or will be output.
处理器12在一些实施例中可以是中央处理器(Central Processing Unit,CPU)、控制器、微控制器、微处理器、或其他数据处理芯片。处理器12通常用于控制电子装置10的总体操作。本实施例中,处理器12用于运行存储器11中存储的程序代码或者处理数据,例如运行的基于cusum算法的建筑物用电安全识别程序等。In some embodiments, the processor 12 may be a central processing unit (Central Processing Unit, CPU), a controller, a microcontroller, a microprocessor, or other data processing chips. The processor 12 is generally used to control the overall operation of the electronic device 10 . In this embodiment, the processor 12 is configured to run the program code or process data stored in the memory 11 , for example, the running safety identification program for building electricity consumption based on the cusum algorithm.
网络接口13可包括无线网络接口或有线网络接口,网络接口13通常用于在电子装置10与其他电子设备之间建立通信连接。The network interface 13 may include a wireless network interface or a wired network interface, and the network interface 13 is generally used to establish a communication connection between the electronic device 10 and other electronic devices.
通信总线14用于实现组件11-13之间的通信连接。The communication bus 14 is used to implement the communication connection between the components 11-13.
图1仅示出了具有组件11-14以及基于cusum算法的建筑物用电安全识别程序的电子装置10,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。FIG. 1 only shows the electronic device 10 with components 11-14 and a building electricity safety identification program based on the cusum algorithm, but it should be understood that it is not required to implement all the shown components, and more can be implemented instead. or fewer components.
可选地,电子装置10还可以包括用户接口(图1中未示出),用户接口可以包括显示器、输入单元比如键盘,其中,用户接口还可以包括标准的有线接口、无线接口等。Optionally, the electronic device 10 may further include a user interface (not shown in FIG. 1 ), the user interface may include a display, an input unit such as a keyboard, and the user interface may further include a standard wired interface, a wireless interface, and the like.
可选地,在一些实施例中,显示器可以是LED显示器、液晶显示器、触控式液晶显示器以及OLED触摸器等。进一步地,显示器也可称为显示屏或显示单元,用于显示在电子装置10中处理信息以及用于显示可视化的用户界面。Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED touch, and the like. Further, the display may also be referred to as a display screen or a display unit for displaying information processed in the electronic device 10 and for displaying a user interface for visualization.
可选地,在一些实施例中,电子装置10还可以包括音频单元(音频单元图1中未示出),音频单元可以在电子装置10处于呼叫信号接收模式、通话模式、记录模式、语音识别模式、广播接收模式等等模式下时,将接收的或者存储的音频数据转换为音频信号;进一步地,电子装置10还可以包括音频输出单元,音频输出单元将音频单元转换的音频信号输出,而且音频输出单元还可以提供与电子装置10执行的特定功能相关的音频输出(例如呼叫信号接收声音、消息接收声音等等),音频输出单元可以包括扬声器、蜂鸣器等等。Optionally, in some embodiments, the electronic device 10 may further include an audio unit (the audio unit is not shown in FIG. 1 ), and the audio unit may be in a call signal receiving mode, a talking mode, a recording mode, a voice recognition mode when the electronic device 10 is in a Mode, broadcast receiving mode, etc., convert the received or stored audio data into audio signals; further, the electronic device 10 may also include an audio output unit, and the audio output unit outputs the audio signal converted by the audio unit, and The audio output unit may also provide audio output related to a specific function performed by the electronic device 10 (eg, call signal reception sound, message reception sound, etc.), and the audio output unit may include a speaker, a buzzer, and the like.
可选地,在一些实施例中,电子装置10还可以包括警报单元(图中未示出),警报单元可以提供输出已将事件的发生通知给电子装置10。典型的事件可以包括呼叫接收、消息接收、键信号输入、触摸输入等等。除了音频或者视频输出之外,警报单元可以以不同的方式提供输出以通知事件的发生。例如,警报单元可以以震动的形式提供输出,当接收到呼叫、消息或一些其他可以使电子装置10进入通信模式时,警报单元可以提供触觉输出(即,振动)以将其通知给用户。Optionally, in some embodiments, the electronic device 10 may further include an alarm unit (not shown in the figure), and the alarm unit may provide an output that the occurrence of the event has been notified to the electronic device 10 . Typical events may include call reception, message reception, key signal input, touch input, and the like. In addition to audio or video output, the alarm unit can provide output in various ways to notify the occurrence of an event. For example, the alarm unit may provide an output in the form of vibrations, and the alarm unit may provide a haptic output (ie, vibration) to notify the user when a call, message, or some other event is received that may put the electronic device 10 into a communication mode.
在一实施例中,存储器11中存储的基于cusum算法的建筑物用电安全识别程序被处理器12执行时,实现如下操作:In one embodiment, when the building electricity safety identification program based on the cusum algorithm stored in the memory 11 is executed by the processor 12, the following operations are implemented:
A1,分别获取预先确定的建筑物在预定义时间段内各日的电流负荷曲线;A1, respectively obtain the current load curve of the pre-determined building in the pre-defined time period on each day;
具体地,所述预先确定的建筑物可以是医院的住院大楼、门诊大楼、也可以是学校教室、政府机构的行政大楼、各种商场等等。可以理解的是,由于人类社会活动的规律,例如工作日上班,双休日,节假日度假等等,使得同一建筑物在不同类型日(类型日包括工作日、节假日、双休日)的历史电流负荷曲线不同,且在同一类型日的历史电流负荷曲线具有周期性的特点,因此,在电力系统用电分析统计中,需要对各类型日的用电负荷进行识别,以提高电力系统的数据处理效率,促进城市智能电网的发展。Specifically, the predetermined building may be an inpatient building of a hospital, an outpatient building, a school classroom, an administrative building of a government agency, various shopping malls, and the like. It can be understood that due to the laws of human social activities, such as working on weekdays, weekends, holidays, etc., the historical current load curves of the same building on different types of days (type days include working days, holidays, and weekends) are different. Moreover, the historical current load curve on the same type of day has periodic characteristics. Therefore, in the analysis and statistics of power system electricity consumption, it is necessary to identify the power consumption load of each type of day, so as to improve the data processing efficiency of the power system and promote urbanization. The development of smart grid.
A2,根据预先确定的cusum算法对获取的电流负荷曲线进行电流突变点分析,以分析出电流负荷值发生突变的点对应的时间区间;A2, according to the pre-determined cusum algorithm, perform current mutation point analysis on the acquired current load curve, so as to analyze the time interval corresponding to the point where the current load value changes abruptly;
具体地,所述预先确定的cusum算法用以在某个相对稳定的数据序列中,检测出开始发生转折的数据点。所谓转折点,即它前后序列的均值和方差开始发生改变,进而影响到整组数据的稳定。Specifically, the predetermined cusum algorithm is used to detect a data point that begins to turn in a relatively stable data sequence. The so-called turning point means that the mean and variance of the series before and after it begins to change, which in turn affects the stability of the entire set of data.
cusum通过将实际值与参考值之间的小偏差累加起来,达到放大的效果,提高了检测过程中小偏差的灵敏度,当偏差累积到一定程度超过阈值时,则认为出现突变点或者异常值。因此,cusum算法也称为累积和算法。Cusum achieves the effect of amplification by accumulating small deviations between the actual value and the reference value, and improves the sensitivity of small deviations in the detection process. When the accumulated deviation exceeds the threshold to a certain extent, it is considered that a mutation point or abnormal value occurs. Therefore, the cusum algorithm is also known as the cumulative sum algorithm.
具体地,在本实施例中,所述步骤S2包括如下步骤:Specifically, in this embodiment, the step S2 includes the following steps:
假设获取的电力负荷曲线中的电流负荷数据构成数据集{yi},设{yi}是一个独立的同分布随机序列,电流负荷值发生突变前的电流负荷曲线上每点的概率密度函数为电流负荷值发生突变后的电流负荷曲线每点的概率密度函数为进一步在本实施中,假设θ0和θ1服从正态分布,则Assuming that the current load data in the obtained power load curve constitute the data set {y i }, let {y i } be an independent and identically distributed random sequence, the probability density function of each point on the current load curve before the current load value changes abruptly for The probability density function of each point of the current load curve after the sudden change of the current load value is: Further in this implementation, assuming that θ 0 and θ 1 obey normal distribution, then
其中,μ是发生突变的电流负荷数据{yi}的均值,σ2是发生突变的电流负荷数据{yi}的方差;Among them, μ is the mean value of the abrupt current load data {y i }, and σ 2 is the variance of the abrupt current load data {y i };
预定义对建筑物的电流负荷数据识别的时间区间长度为N(N一般取该建筑物对应的电力系统在一个工频周期内的电流负荷曲线的采样时间点数,在本实施例中,时间区间长度的最小单位为日)、电流负荷突变的阈值为h(其取值范围为0.025N-0.1N);The length of the pre-defined time interval for identifying the current load data of the building is N (N generally takes the sampling time points of the current load curve of the power system corresponding to the building in one power frequency cycle. In this embodiment, the time interval is The minimum unit of length is day), and the threshold of current load mutation is h (the value range is 0.025N-0.1N);
分别计算上一时间区间发生突变的电流负荷数据{yi}的方差σ0 2和均μ0,以及本时间区间的发生突变的电流负荷数据{yi}的方差σ1 2和均值μ1;Calculate the variance σ 0 2 and the mean μ 0 of the current load data {y i } with sudden change in the previous time interval, as well as the variance σ 1 2 and the mean μ 1 of the current load data {y i } with sudden change in this time interval ;
根据上述计算结果,计算本时间区间内点yi的电流负荷数据发生突变前后的对数似然比s(yi):According to the above calculation results, calculate the log-likelihood ratio s(y i ) before and after the sudden change of the current load data at point yi in this time interval:
其中, in,
计算发生突变的电流负荷数据在本时间区间对数似然比的累积和其中,Calculate the cumulative sum of the log-likelihood ratio of the current load data with sudden change in this time interval in,
建立一个基于发生突变的电流负荷数据{yi}的均值μ的假设检验,具体地,假设Build a hypothesis test based on the mean μ of the abrupt current load data {yi}, specifically, assuming
H0::μ=μ0,H1:μ=μ1;H 0 : μ=μ 0 , H 1 : μ=μ 1 ;
检验的判别标准为:The test criteria are:
若则d=0,若则d=1;like Then d=0, if then d=1;
若d=0,则判定该时间区间内电流负荷数据未发生突变,记为H0,若d=1,则判定该时间区间内电流负荷数据发生突变,记为H1,其中,h为电流负荷突变的阈值。If d=0, it is determined that the current load data has not changed abruptly in this time interval, and it is recorded as H 0 ; if d=1, it is determined that the current load data has changed abruptly in this time interval, and it is recorded as H 1 , where h is the current Threshold for load mutation.
A3,若判定出电流负荷值发生突变的时间区间为工作日,则将该时间区间的电流负荷值与预设的第一预警阈值进行比较,若该时间区间的电流负荷值大于,或者等于预设的第一预警阈值,则向预先确定的终端发送安全预警信息;A3, if it is determined that the time interval in which the current load value suddenly changes is a working day, the current load value in the time interval is compared with the preset first warning threshold. If the first warning threshold is set, the security warning information is sent to the predetermined terminal;
A4,若判断出电流负荷值发生突变的时间区间为休息日,则将该时间区间的电流负荷值与预设的第二预警阈值进行比较,若该时间区间的电流负荷值大于,或者等于预设的第二预警阈值,则向预先确定的终端发送安全预警信息。A4. If it is determined that the time interval in which the current load value suddenly changes is a rest day, the current load value in the time interval is compared with the preset second warning threshold. If the current load value in the time interval is greater than or equal to the pre-warning threshold If the second pre-warning threshold is set, the security pre-warning information is sent to the predetermined terminal.
由上述事实施例可知,本发明提出的电子装置,通过分别获取预先确定的建筑物在预定义时间段内各类型日的电流负荷曲线;根据预先确定的cusum算法对获取的电流负荷曲线进行电流突变点分析,以分析出电流负荷值发生突变的点对应的时间区间;若分析出电流负荷值发生突变的时间区间为工作日,则将该时间区间的电流负荷值与预设的第一预警阈值进行比较,若该时间区间的电流负荷值大于,或者等于预设的第一预警阈值,则向预先确定的终端发送安全预警信息;若分析出电流负荷值发生突变的时间区间为休息日,则将该时间区间的电流负荷值与预设的第二预警阈值进行比较,若该时间区间的电流负荷值大于,或者等于预设的第二预警阈值,则向预先确定的终端发送安全预警信息。能够提高用电故障的维护效率以及降低用电安全隐患。It can be seen from the above-mentioned embodiments that the electronic device proposed by the present invention obtains the current load curves of each type of day in a predetermined time period of a pre-determined building respectively; Mutation point analysis, to analyze the time interval corresponding to the point where the current load value changes abruptly; if it is analyzed that the time interval where the current load value changes abruptly is a working day, the current load value in this time interval is compared with the preset first warning thresholds are compared, and if the current load value in this time interval is greater than or equal to the preset first warning threshold, the safety warning information is sent to the predetermined terminal; if it is analyzed that the time interval in which the current load value suddenly changes is a rest day, The current load value in the time interval is compared with the preset second warning threshold, and if the current load value in the time interval is greater than or equal to the preset second warning threshold, the safety warning information is sent to the predetermined terminal. . It can improve the maintenance efficiency of electricity failure and reduce the hidden danger of electricity safety.
此外,本发明的基于cusum算法的建筑物用电安全识别程序依据其各部分所实现的功能不同,可用具有相同功能的程序模块进行描述。请参阅图2所示,是本发明电子装置一实施例中基于cusum算法的建筑物用电安全识别程序的程序模块示意图。本实施例中,基于cusum算法的建筑物用电安全识别程序依据其各部分所实现的功能的不同,可以被分割成获取模块201、分析模块202、第一预警预测模块203以及第二预警模块204。由上面的描述可知,本发明所称的程序模块是指能够完成特定功能的一系列计算机程序指令段,比程序更适合于描述基于cusum算法的建筑物用电安全识别程序在电子装置10中的执行过程。所述模块201-204所实现的功能或操作步骤均与上文类似,此处不再详述,示例性地,例如其中:In addition, the building electricity safety identification program based on the cusum algorithm of the present invention can be described by program modules with the same functions according to the different functions realized by its various parts. Please refer to FIG. 2 , which is a schematic diagram of a program module of a building electricity safety identification program based on the cusum algorithm in an embodiment of the electronic device of the present invention. In this embodiment, the building electricity safety identification program based on the cusum algorithm can be divided into an acquisition module 201 , an analysis module 202 , a first early warning prediction module 203 and a second early warning module according to the different functions implemented by its various parts. 204. It can be seen from the above description that the program module referred to in the present invention refers to a series of computer program instruction segments that can complete specific functions, and is more suitable than a program to describe the cusum algorithm-based building power safety identification program in the electronic device 10. Implementation process. The functions or operation steps implemented by the modules 201-204 are similar to the above, and will not be described in detail here, for example, in which:
获取模块201用于分别获取预先确定的建筑物在预定义时间段内各类型日的电流负荷曲线;The obtaining module 201 is used to obtain the current load curves of each type of day of the pre-determined building in the pre-defined time period respectively;
分析模块202用于根据预先确定的cusum算法对获取的电流负荷曲线进行电流突变点分析,以分析出电流负荷值发生突变的点对应的时间区间;The analysis module 202 is configured to perform current mutation point analysis on the acquired current load curve according to a predetermined cusum algorithm, so as to analyze the time interval corresponding to the point where the current load value changes abruptly;
第一预警模块203用于在若分析出电流负荷值发生突变的时间区间为工作日,则将该时间区间的电流负荷值与预设的第一预警阈值进行比较,若该时间区间的电流负荷值大于,或者等于预设的第一预警阈值,则向预先确定的终端发送安全预警信息;The first warning module 203 is configured to compare the current load value of the time interval with the preset first warning threshold if the time interval in which the sudden change of the current load value is analyzed is a working day, if the current load value of the time interval is If the value is greater than or equal to the preset first warning threshold, send security warning information to the predetermined terminal;
第二预警模块204用于在若分析出电流负荷值发生突变的时间区间为休息日,则将该时间区间的电流负荷值与预设的第二预警阈值进行比较,若该时间区间的电流负荷值大于,或者等于预设的第二预警阈值,则向预先确定的终端发送安全预警信息。The second early warning module 204 is configured to compare the current load value in the time interval with the preset second warning threshold if the time interval in which the sudden change of the current load value is analyzed is a rest day, and if the current load value in the time interval is If the value is greater than or equal to the preset second pre-warning threshold, the security pre-warning information is sent to the pre-determined terminal.
此外,本发明还提出一种基于cusum算法的建筑物用电安全识别方法,请参阅图3所示,所述基于cusum算法的建筑物用电安全识别方法包括如下步骤:In addition, the present invention also proposes a building electricity safety identification method based on the cusum algorithm, please refer to FIG. 3 , the building electricity safety identification method based on the cusum algorithm includes the following steps:
S301、分别获取预先确定的建筑物在预定义时间段内各日的电流负荷曲线;S301, respectively acquiring the current load curve of the predetermined building on each day in the predetermined time period;
具体地,所述预先确定的建筑物可以是医院的住院大楼、门诊大楼、也可以是学校教室、政府机构的行政大楼、各种商场等等。可以理解的是,由于人类社会活动的规律,例如工作日上班,双休日,节假日度假等等,使得同一建筑物在不同类型日(类型日包括工作日、节假日、双休日)的历史电流负荷曲线不同,且在同一类型日的历史电流负荷曲线具有周期性的特点,因此,在电力系统用电分析统计中,需要对各类型日的用电负荷进行识别,以提高电力系统的数据处理效率,促进城市智能电网的发展。Specifically, the predetermined building may be an inpatient building of a hospital, an outpatient building, a school classroom, an administrative building of a government agency, various shopping malls, and the like. It can be understood that due to the laws of human social activities, such as working on weekdays, weekends, holidays, etc., the historical current load curves of the same building on different types of days (type days include working days, holidays, and weekends) are different. Moreover, the historical current load curve on the same type of day has periodic characteristics. Therefore, in the analysis and statistics of power system electricity consumption, it is necessary to identify the power consumption load of each type of day, so as to improve the data processing efficiency of the power system and promote urbanization. The development of smart grid.
S302,根据预先确定的cusum算法对获取的电流负荷曲线进行电流突变点分析,以分析出电流负荷值发生突变的点对应的时间区间;S302, perform current mutation point analysis on the acquired current load curve according to a predetermined cusum algorithm, so as to analyze the time interval corresponding to the point where the current load value changes abruptly;
具体地,所述预先确定的cusum算法用以在某个相对稳定的数据序列中,检测出开始发生转折的数据点。所谓转折点,即它前后序列的均值和方差开始发生改变,进而影响到整组数据的稳定。Specifically, the predetermined cusum algorithm is used to detect a data point that begins to turn in a relatively stable data sequence. The so-called turning point means that the mean and variance of the series before and after it begins to change, which in turn affects the stability of the entire set of data.
cusum通过将实际值与参考值之间的小偏差累加起来,达到放大的效果,提高了检测过程中小偏差的灵敏度,当偏差累积到一定程度超过阈值时,则认为出现突变点或者异常值。因此,cusum算法也称为累积和算法。Cusum achieves the effect of amplification by accumulating small deviations between the actual value and the reference value, and improves the sensitivity of small deviations in the detection process. When the accumulated deviation exceeds the threshold to a certain extent, it is considered that a mutation point or abnormal value occurs. Therefore, the cusum algorithm is also known as the cumulative sum algorithm.
具体地,在本实施例中,所述步骤S2包括如下步骤:Specifically, in this embodiment, the step S2 includes the following steps:
假设获取的电力负荷曲线中的电流负荷数据构成数据集{yi},设{yi}是一个独立的同分布随机序列,电流负荷值发生突变前的电流负荷曲线上每点的概率密度函数为电流负荷值发生突变后的电流负荷曲线每点的概率密度函数为进一步在本实施中,假设θ0和θ1服从正态分布,则Assuming that the current load data in the obtained power load curve constitute the data set {y i }, let {y i } be an independent and identically distributed random sequence, the probability density function of each point on the current load curve before the current load value changes abruptly for The probability density function of each point of the current load curve after the sudden change of the current load value is: Further in this implementation, assuming that θ 0 and θ 1 obey normal distribution, then
其中,μ是发生突变的电流负荷数据{yi}的均值,σ2是发生突变的电流负荷数据{yi}的方差;Among them, μ is the mean value of the abrupt current load data {y i }, and σ 2 is the variance of the abrupt current load data {y i };
预定义对建筑物的电流负荷数据识别的时间区间长度为N(N一般取该建筑物对应的电力系统在一个工频周期内的电流负荷曲线的采样时间点数,在本实施例中,时间区间长度的最小单位为日)、电流负荷突变的阈值为h(其取值范围为0.025N-0.1N);The length of the pre-defined time interval for identifying the current load data of the building is N (N generally takes the sampling time points of the current load curve of the power system corresponding to the building in one power frequency cycle. In this embodiment, the time interval is The minimum unit of length is day), and the threshold of current load mutation is h (the value range is 0.025N-0.1N);
分别计算上一时间区间发生突变的电流负荷数据{yi}的方差σ0 2和均μ0,以及本时间区间的发生突变的电流负荷数据{yi}的方差σ1 2和均值μ1;Calculate the variance σ 0 2 and the mean μ 0 of the current load data {y i } with sudden change in the previous time interval, as well as the variance σ 1 2 and the mean μ 1 of the current load data {y i } with sudden change in this time interval ;
根据上述计算结果,计算本时间区间内点yi的电流负荷数据发生突变前后的对数似然比s(yi):According to the above calculation results, calculate the log-likelihood ratio s(y i ) before and after the sudden change of the current load data at point yi in this time interval:
其中, in,
计算发生突变的电流负荷数据在本时间区间对数似然比的累积和其中,Calculate the cumulative sum of the log-likelihood ratio of the current load data with sudden change in this time interval in,
建立一个基于发生突变的电流负荷数据{yi}的均值μ的假设检验,具体地,假设Build a hypothesis test based on the mean μ of the abrupt current load data {yi}, specifically, assuming
H0:μ=μ0,H1:μ=μ1;H 0 : μ=μ 0 , H 1 : μ=μ 1 ;
检验的判别标准为:The test criteria are:
若则d=0,若则d=1;like Then d=0, if then d=1;
若d=0,则判定该时间区间内电流负荷数据未发生突变,记为H0,若d=1,则判定该时间区间内电流负荷数据发生突变,记为H1,其中,h为电流负荷突变的阈值。If d=0, it is determined that the current load data has not changed abruptly in this time interval, and it is recorded as H 0 ; if d=1, it is determined that the current load data has changed abruptly in this time interval, and it is recorded as H 1 , where h is the current Threshold for load mutation.
S303,若判定出电流负荷值发生突变的时间区间为工作日,则将该时间区间的电流负荷值与预设的第一预警阈值进行比较,若该时间区间的电流负荷值大于,或者等于预设的第一预警阈值,则向预先确定的终端发送安全预警信息;S303, if it is determined that the time interval in which the current load value changes abruptly is a working day, compare the current load value in the time interval with the preset first warning threshold, and if the current load value in the time interval is greater than or equal to the pre-warning threshold If the first warning threshold is set, the security warning information is sent to the predetermined terminal;
S304,若判断出电流负荷值发生突变的时间区间为休息日,则将该时间区间的电流负荷值与预设的第二预警阈值进行比较,若该时间区间的电流负荷值大于,或者等于预设的第二预警阈值,则向预先确定的终端发送安全预警信息。S304, if it is determined that the time interval in which the current load value suddenly changes is a rest day, compare the current load value in the time interval with the preset second warning threshold, and if the current load value in the time interval is greater than or equal to the pre-warning threshold If the second pre-warning threshold is set, the security pre-warning information is sent to the predetermined terminal.
由上述事实施例可知,本发明提出的基于cusum算法的建筑物用电安全识别方法,通过分别获取预先确定的建筑物在预定义时间段内各类型日的电流负荷曲线;根据预先确定的cusum算法对获取的电流负荷曲线进行电流突变点分析,以分析出电流负荷值发生突变的点对应的时间区间;若分析出电流负荷值发生突变的时间区间为工作日,则将该时间区间的电流负荷值与预设的第一预警阈值进行比较,若该时间区间的电流负荷值大于,或者等于预设的第一预警阈值,则向预先确定的终端发送安全预警信息;若分析出电流负荷值发生突变的时间区间为休息日,则将该时间区间的电流负荷值与预设的第二预警阈值进行比较,若该时间区间的电流负荷值大于,或者等于预设的第二预警阈值,则向预先确定的终端发送安全预警信息。能够提高用电故障的维护效率以及降低用电安全隐患。It can be seen from the above-mentioned embodiments that the method for identifying the safety of building electricity consumption based on the cusum algorithm proposed by the present invention obtains the current load curves of the pre-determined buildings for each type of day in the pre-defined time period respectively; according to the pre-determined cusum The algorithm analyzes the current mutation point of the acquired current load curve to analyze the time interval corresponding to the point where the current load value changes abruptly; The load value is compared with the preset first warning threshold. If the current load value in the time interval is greater than or equal to the preset first warning threshold, the safety warning information is sent to the predetermined terminal; if the current load value is analyzed If the time interval in which the sudden change occurs is a rest day, the current load value in the time interval is compared with the preset second warning threshold, and if the current load value in the time interval is greater than or equal to the preset second warning threshold, then Send security warning information to predetermined terminals. It can improve the maintenance efficiency of electricity failure and reduce the hidden danger of electricity safety.
此外,本发明还提出一种计算机可读存储介质,所述计算机可读存储介质上存储有基于cusum算法的建筑物用电安全识别程序,所述基于cusum算法的建筑物用电安全识别程序被处理器执行时实现如下操作:In addition, the present invention also provides a computer-readable storage medium, which stores a building electricity safety identification program based on the cusum algorithm, and the building electricity safety identification program based on the cusum algorithm is The processor executes the following operations:
分别获取预先确定的建筑物在预定义时间段内各类型日的电流负荷曲线;Obtain the current load curve of each type of day of the pre-determined building in the pre-defined time period;
根据预先确定的cusum算法对获取的电流负荷曲线进行电流突变点分析,以分析出电流负荷值发生突变的点对应的时间区间;Perform current mutation point analysis on the acquired current load curve according to the predetermined cusum algorithm, so as to analyze the time interval corresponding to the point where the current load value changes abruptly;
若分析出电流负荷值发生突变的时间区间为工作日,则将该时间区间的电流负荷值与预设的第一预警阈值进行比较,若该时间区间的电流负荷值大于,或者等于预设的第一预警阈值,则向预先确定的终端发送安全预警信息;If it is analyzed that the time interval in which the current load value suddenly changes is a working day, the current load value in the time interval is compared with the preset first warning threshold, and if the current load value in the time interval is greater than or equal to the preset value the first warning threshold, sending security warning information to a predetermined terminal;
若分析出电流负荷值发生突变的时间区间为休息日,则将该时间区间的电流负荷值与预设的第二预警阈值进行比较,若该时间区间的电流负荷值大于,或者等于预设的第二预警阈值,则向预先确定的终端发送安全预警信息。If it is analyzed that the time interval in which the sudden change of the current load value is a rest day, the current load value of the time interval is compared with the preset second warning threshold, and if the current load value of the time interval is greater than or equal to the preset value The second warning threshold is to send security warning information to a predetermined terminal.
本发明计算机可读存储介质,其具体实施过程与电子装置以及基于cusum算法的建筑物用电安全识别方法类似,在此不再赘述。The specific implementation process of the computer-readable storage medium of the present invention is similar to that of the electronic device and the method for identifying electricity safety in buildings based on the cusum algorithm, and will not be repeated here.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of the present invention. The above are only preferred embodiments of the present invention, and are not intended to limit the scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the description and drawings of the present invention, or directly or indirectly applied in other related technical fields , are similarly included in the scope of patent protection of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811095410.3A CN109409661A (en) | 2018-09-19 | 2018-09-19 | Electronic device, the building Electrical Safety recognition methods based on cusum algorithm and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811095410.3A CN109409661A (en) | 2018-09-19 | 2018-09-19 | Electronic device, the building Electrical Safety recognition methods based on cusum algorithm and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109409661A true CN109409661A (en) | 2019-03-01 |
Family
ID=65465011
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811095410.3A Pending CN109409661A (en) | 2018-09-19 | 2018-09-19 | Electronic device, the building Electrical Safety recognition methods based on cusum algorithm and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109409661A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111651721A (en) * | 2020-06-15 | 2020-09-11 | 四川中电启明星信息技术有限公司 | An Anti-Electrical Stealing Early Warning Method Based on Space-Time Correlation Matrix |
CN111709105A (en) * | 2020-06-05 | 2020-09-25 | 广东电网有限责任公司 | Current load value calculation method, device, equipment and storage medium |
CN112444698A (en) * | 2020-11-17 | 2021-03-05 | 中国南方电网有限责任公司超高压输电公司昆明局 | Method for detecting abnormal measurement of electrical quantity of extra-high voltage direct current transmission system |
CN114565250A (en) * | 2022-02-21 | 2022-05-31 | 国网宁夏电力有限公司营销服务中心(国网宁夏电力有限公司计量中心) | Ordered electricity utilization intelligent monitoring method and system based on big data |
CN117829097A (en) * | 2024-02-29 | 2024-04-05 | 双一力(宁波)电池有限公司 | Battery data processing method and device, electronic equipment and readable storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011021827A (en) * | 2009-07-16 | 2011-02-03 | Aisin Seiki Co Ltd | Cogeneration system |
CN103208091A (en) * | 2013-04-25 | 2013-07-17 | 国家电网公司 | Electric larceny preventing method based on data mining of electric load management system |
CN103795144A (en) * | 2013-11-22 | 2014-05-14 | 深圳供电局有限公司 | Method for identifying disturbance occurrence time of power system based on fault recording data |
EP2784616A1 (en) * | 2013-03-26 | 2014-10-01 | Airbus Helicopters | Method for detecting and acknowledging an abrupt change in at least one supervision indicator of a device |
CN104636999A (en) * | 2015-01-04 | 2015-05-20 | 江苏联宏自动化系统工程有限公司 | Detection method for building abnormal energy consumption data |
CN108416693A (en) * | 2018-02-01 | 2018-08-17 | 东华大学 | A Method for Recognition of Abnormal Power Consumption Behavior Based on Fuzzy Neural Network |
-
2018
- 2018-09-19 CN CN201811095410.3A patent/CN109409661A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011021827A (en) * | 2009-07-16 | 2011-02-03 | Aisin Seiki Co Ltd | Cogeneration system |
EP2784616A1 (en) * | 2013-03-26 | 2014-10-01 | Airbus Helicopters | Method for detecting and acknowledging an abrupt change in at least one supervision indicator of a device |
CN103208091A (en) * | 2013-04-25 | 2013-07-17 | 国家电网公司 | Electric larceny preventing method based on data mining of electric load management system |
CN103795144A (en) * | 2013-11-22 | 2014-05-14 | 深圳供电局有限公司 | Method for identifying disturbance occurrence time of power system based on fault recording data |
CN104636999A (en) * | 2015-01-04 | 2015-05-20 | 江苏联宏自动化系统工程有限公司 | Detection method for building abnormal energy consumption data |
CN108416693A (en) * | 2018-02-01 | 2018-08-17 | 东华大学 | A Method for Recognition of Abnormal Power Consumption Behavior Based on Fuzzy Neural Network |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111709105A (en) * | 2020-06-05 | 2020-09-25 | 广东电网有限责任公司 | Current load value calculation method, device, equipment and storage medium |
CN111651721A (en) * | 2020-06-15 | 2020-09-11 | 四川中电启明星信息技术有限公司 | An Anti-Electrical Stealing Early Warning Method Based on Space-Time Correlation Matrix |
CN111651721B (en) * | 2020-06-15 | 2023-04-07 | 四川中电启明星信息技术有限公司 | Anti-electricity-stealing early warning method based on space-time correlation matrix |
CN112444698A (en) * | 2020-11-17 | 2021-03-05 | 中国南方电网有限责任公司超高压输电公司昆明局 | Method for detecting abnormal measurement of electrical quantity of extra-high voltage direct current transmission system |
CN114565250A (en) * | 2022-02-21 | 2022-05-31 | 国网宁夏电力有限公司营销服务中心(国网宁夏电力有限公司计量中心) | Ordered electricity utilization intelligent monitoring method and system based on big data |
CN114565250B (en) * | 2022-02-21 | 2024-07-12 | 国网宁夏电力有限公司营销服务中心(国网宁夏电力有限公司计量中心) | Ordered electricity utilization intelligent monitoring method and system based on big data |
CN117829097A (en) * | 2024-02-29 | 2024-04-05 | 双一力(宁波)电池有限公司 | Battery data processing method and device, electronic equipment and readable storage medium |
CN117829097B (en) * | 2024-02-29 | 2024-05-28 | 双一力(宁波)电池有限公司 | Battery data processing method and device, electronic equipment and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109409661A (en) | Electronic device, the building Electrical Safety recognition methods based on cusum algorithm and storage medium | |
CN110708204B (en) | Abnormity processing method, system, terminal and medium based on operation and maintenance knowledge base | |
CN110474795B (en) | Server capacity processing method and device, storage medium and electronic equipment | |
CN109086182B (en) | Automatic database alarming method and terminal equipment | |
CN109918279B (en) | Electronic device, method for identifying abnormal operation of user based on log data and storage medium | |
CN112636957B (en) | Early warning method and device based on log, server and storage medium | |
CN110278143B (en) | E-mail data processing method and device, computer equipment and storage medium | |
US10061273B2 (en) | Intelligent security hub for providing smart alerts | |
CN112463422A (en) | Internet of things fault operation and maintenance method and device, computer equipment and storage medium | |
CN114387762A (en) | A method, device, device and storage medium for building data management | |
CN114124460B (en) | Industrial control system intrusion detection method, device, computer equipment and storage medium | |
CN114363935A (en) | Network element detection method and device, storage medium and electronic equipment | |
CN111585785A (en) | Method and device for shielding alarm information, computer equipment and storage medium | |
CN110287093A (en) | Mobile terminal, data interface test method and storage medium | |
CN109214578B (en) | Electronic device, method for predicting building electric load based on decision tree model and storage medium | |
CN109683856B (en) | Electronic device, faas platform function creation method and storage medium | |
CN114090407A (en) | Interface performance early warning method and related equipment based on linear regression model | |
CN110677271A (en) | Big data alarm method, device, equipment and storage medium based on ELK | |
CN114257493A (en) | Fault early warning method, device, medium and electronic equipment for network node | |
CN116415744B (en) | Power prediction method, device and storage medium based on deep learning | |
CN106357481B (en) | Power utilization safety management method and system | |
CN113868646B (en) | Intrusion detection method and device based on host | |
CN116308303A (en) | Maintenance plan generation method, device, equipment and medium based on equipment data | |
WO2018119776A1 (en) | Alarm processing method and device | |
CN115378791A (en) | Data management method, device, storage medium and electronic equipment |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190301 |
|
RJ01 | Rejection of invention patent application after publication |