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 capacity
- value
- capacity value
- time interval
- mutation
- 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
- 238000000034 method Methods 0.000 title claims abstract description 30
- 230000035772 mutation Effects 0.000 claims abstract description 60
- 238000004458 analytical method Methods 0.000 claims abstract description 18
- 230000006870 function Effects 0.000 claims description 19
- 238000009825 accumulation Methods 0.000 claims description 10
- 238000007689 inspection Methods 0.000 claims description 8
- 238000005070 sampling Methods 0.000 claims description 6
- 238000012360 testing method Methods 0.000 claims description 6
- 230000005611 electricity Effects 0.000 claims description 5
- 238000012545 processing Methods 0.000 claims description 5
- 238000012423 maintenance Methods 0.000 abstract description 6
- 238000004891 communication Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 230000008859 change Effects 0.000 description 3
- 238000011161 development Methods 0.000 description 3
- 230000003321 amplification Effects 0.000 description 2
- 238000005265 energy consumption Methods 0.000 description 2
- 238000003199 nucleic acid amplification method Methods 0.000 description 2
- 210000000056 organ Anatomy 0.000 description 2
- 230000035945 sensitivity Effects 0.000 description 2
- 230000005236 sound signal Effects 0.000 description 2
- 230000006641 stabilisation Effects 0.000 description 2
- 238000011105 stabilization Methods 0.000 description 2
- 230000007306 turnover Effects 0.000 description 2
- 235000006508 Nelumbo nucifera Nutrition 0.000 description 1
- 240000002853 Nelumbo nucifera Species 0.000 description 1
- 235000006510 Nelumbo pentapetala Nutrition 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000002405 diagnostic procedure Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 230000000007 visual effect Effects 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
The present invention proposes a kind of building Electrical Safety recognition methods based on cusum algorithm, comprising: obtains current capacity curve of the predetermined building in time predefined section;Current break point analysis is carried out according to current capacity curve of the cusum algorithm to acquisition, to analyze the point of current capacity value mutation;If the point for analyzing the mutation of current capacity value is working day, the current capacity value of the point is compared, and when being greater than or equal to the first threshold value of warning with preset first threshold value of warning, sends safe early warning information to predetermined terminal;If the point for analyzing the mutation of current capacity value is day off, the current capacity value of the point is compared, and when being more than or equal to preset second threshold value of warning with preset second threshold value of warning, sends safe early warning information to predetermined terminal.It can be improved the maintenance efficiency with electric fault and reduce Electrical Safety hidden danger.
Description
Technical field
The present invention relates to electric power data process field more particularly to a kind of electronic devices, the building based on cusum algorithm
Electrical Safety recognition methods and storage medium.
Background technique
With the continuous development of smart grid and the increase year by year of electricity consumption product, how fast and effeciently to control difference and build
The power load for building object in safe range, must be solved the problems, such as with becoming in smart grid construction.
Currently, being directed to the Electrical Safety diagnostic method of different buildings mainly by each node voltage, line current
And power flow is respectively provided with security constraint range, when the value for occurring more than security constraint range, then passes through driving circuit breaker trip
To play safeguard protection.This security diagnostics method often causes very big impact to the operational process of entire electric system,
And breaking phenomena once occurs, then it needs relay protection engineer to carry out the maintenance of fault inquiry and route at the scene, consumes
A large amount of human time influences the usage experience of user.
Summary of the invention
In view of this, the present invention proposes a kind of electronic device, the building Electrical Safety recognition methods based on cusum algorithm
And storage medium, it can be improved the maintenance efficiency with electric fault and reduce Electrical Safety hidden danger.
Firstly, to achieve the above object, the present invention proposes a kind of electronic device, the electronic device include memory and
The processor being connect with the memory, the processor be used to execute stored on the memory based on cusum algorithm
Building Electrical Safety recognizer, it is described based on the building Electrical Safety recognizer of cusum algorithm by the processor
Following steps are realized when execution:
A1, the current capacity curve for all types of days that obtain predetermined building respectively in time predefined section;
A2, current break point analysis is carried out according to current capacity curve of the predetermined cusum algorithm to acquisition, to divide
The corresponding time interval of point that current capacity value mutates is precipitated;
If A3, the time interval for analyzing the mutation of current capacity value are working day, by the electric current of the time interval
Load value is compared with preset first threshold value of warning, if the current capacity value of the time interval is greater than, or is equal to default
The first threshold value of warning, then to predetermined terminal send safe early warning information;
If A4, the time interval for analyzing the mutation of current capacity value are day off, by the electric current of the time interval
Load value is compared with preset second threshold value of warning, if the current capacity value of the time interval is greater than, or is equal to default
The second threshold value of warning, then to predetermined terminal send safe early warning information.
Preferably, the step A2 includes the following steps:
The current capacity value of various time points in electric load curve is obtained, to constitute the data set sequence of current capacity value
{yi};
The data sequence of the current capacity value is analyzed, according to the predetermined cusum algorithm to detect to occur
The current capacity value corresponding time point of mutation.
Preferably, the data sequence that the current capacity value is analyzed according to the predetermined cusum algorithm, with
The step of detecting the current capacity value corresponding data point to mutate, comprising:
Assuming that { yiIt is an independent same distributed random sequence, the current capacity curve before the mutation of current capacity value
The probability density function of upper each time point isCurrent capacity curve each time after the mutation of current capacity value
Point probability density function beAssuming that θ0And θ1Normal Distribution, then
Wherein, μ is the current capacity value { y to mutateiMean value, σ2It is the current capacity value { y to mutatei?
Variance;
The predefined time interval length identified to current capacity value is N, the threshold value of current capacity value mutation is h;
Calculate separately the current capacity value { y of time interval mutationiVariances sigma0 2And mean μ0And this when
Between section mutation current capacity value { yiVariances sigma1 2And mean μ1;
According to calculated result, point y in this time interval is calculatediCurrent capacity value mutate front and back log-likelihood ratio
s(yi):
Wherein,
Calculate mutate current capacity value this time interval log-likelihood ratio accumulation andWherein,
Establish the hypothesis testing of the mean μ of a current capacity value { yi } based on mutation, it is assumed that
H0: μ=μ0, H1: μ=μ1;
The discrimination standard of inspection are as follows:
IfThen d=0, ifThen d=1;
If d=0, determine that current capacity value does not mutate in the time interval, is denoted as H0If d=1, determining should
Current capacity value mutates in time interval, is denoted as H1, wherein h is the threshold value of current capacity mutation.
Preferably, the predefined time interval length that current capacity value identify be N, current capacity value mutation
In the step of threshold value is h, the N takes current capacity curve of the corresponding electric system of the building in a power frequency period
Sampling time points, the minimum unit of the time interval length are day, the value range of the threshold value h of the current capacity mutation
For 0.025N-0.1N.
Preferably, all types of days include working day and nonworkdays, the nonworkdays packet in the time predefined section
Include festivals or holidays and two-day weekend.
In addition, to achieve the goals above, the present invention also proposes that a kind of building Electrical Safety based on cusum algorithm is known
Other method, described method includes following steps:
S1, the current capacity curve for all types of days that obtain predetermined building respectively in time predefined section;
S2, current break point analysis is carried out according to current capacity curve of the predetermined cusum algorithm to acquisition, to divide
The corresponding time interval of point that current capacity value mutates is precipitated;
If S3, the time interval for analyzing the mutation of current capacity value are working day, by the electric current of the time interval
Load value is compared with preset first threshold value of warning, if the current capacity value of the time interval is greater than, or is equal to default
The first threshold value of warning, then to predetermined terminal send safe early warning information;
If S4, the time interval for analyzing the mutation of current capacity value are day off, by the electric current of the time interval
Load value is compared with preset second threshold value of warning, if the current capacity value of the time interval is greater than, or is equal to default
The second threshold value of warning, then to predetermined terminal send safe early warning information.
Preferably, the step S2 includes the following steps:
The current capacity value of various time points in electric load curve is obtained, to constitute the data set sequence of current capacity value
{yi};
The data sequence of the current capacity value is analyzed, according to the predetermined cusum algorithm to detect to occur
The current capacity value corresponding time point of mutation.
Preferably, the data sequence that the current capacity value is analyzed according to the predetermined cusum algorithm, with
The step of detecting the current capacity value corresponding data point to mutate, comprising:
Assuming that { yiIt is an independent same distributed random sequence, the current capacity curve before the mutation of current capacity value
The probability density function of upper each time point isCurrent capacity curve each time after the mutation of current capacity value
Point probability density function beAssuming that θ0And θ1Normal Distribution, then
Wherein, μ is the current capacity value { y to mutateiMean value, σ2It is the current capacity value { y to mutatei?
Variance;
The predefined time interval length identified to current capacity value is N, the threshold value of current capacity value mutation is h;
Calculate separately the current capacity value { y of time interval mutationiVariances sigma0 2And mean μ0And this when
Between section mutation current capacity value { yiVariances sigma1 2And mean μ1;
According to calculated result, point y in this time interval is calculatediCurrent capacity value mutate front and back log-likelihood ratio
s(yi):
Wherein,
Calculate mutate current capacity value this time interval log-likelihood ratio accumulation andWherein,
Establish the hypothesis testing of the mean μ of a current capacity value { yi } based on mutation, it is assumed that
H0: μ=μ0, H1: μ=μ1;
The discrimination standard of inspection are as follows:
IfThen d=0, ifThen d=1;
If d=0, determine that current capacity value does not mutate in the time interval, is denoted as H0If d=1, determining should
Current capacity value mutates in time interval, is denoted as H1, wherein h is the threshold value of current capacity mutation.
Preferably, the predefined time interval length that current capacity value identify be N, current capacity value mutation
In the step of threshold value is h, the N takes current capacity curve of the corresponding electric system of the building in a power frequency period
Sampling time points, the minimum unit of the time interval length are day, the value range of the threshold value h of the current capacity mutation
For 0.025N-0.1N.
In addition, in order to solve the above-mentioned technical problem, the present invention also proposes a kind of computer readable storage medium, the calculating
Machine readable storage medium storing program for executing is stored with the building Electrical Safety recognizer based on cusum algorithm, described based on cusum algorithm
Building Electrical Safety recognizer can be executed by least one processor, so that at least one described processor executes institute as above
The step of building Electrical Safety recognition methods based on cusum algorithm stated.
Electronic device, the building Electrical Safety recognition methods based on cusum algorithm and storage proposed by the invention is situated between
Matter passes through the current capacity curve for all types of days that obtain predetermined building respectively in time predefined section;According to pre-
First determining cusum algorithm carries out current break point analysis to the current capacity curve of acquisition, to analyze current capacity value hair
The corresponding time interval of point of raw mutation;If the time interval for analyzing the mutation of current capacity value is working day, should
The current capacity value of time interval is compared with preset first threshold value of warning, if the current capacity value of the time interval is big
In, or be equal to preset first threshold value of warning, then safe early warning information is sent to predetermined terminal;If analyzing electric current
The time interval that load value mutates is day off, then by the current capacity value of the time interval and preset second early warning threshold
Value is compared, if the current capacity value of the time interval is greater than, or is equal to preset second threshold value of warning, then to true in advance
Fixed terminal sends safe early warning information.It can be improved the maintenance efficiency with electric fault and reduce Electrical Safety hidden danger.
Detailed description of the invention
Fig. 1 is the schematic diagram of the optional hardware structure of electronic device one proposed by the present invention;
Fig. 2 is the building Electrical Safety recognizer in one embodiment of electronic device of the present invention based on cusum algorithm
Program module schematic diagram;
Fig. 3 is the implementing procedure of the building Electrical Safety recognition methods preferred embodiment the present invention is based on cusum algorithm
Figure.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that described herein, specific examples are only used to explain the present invention, not
For limiting the present invention.Based on the embodiments of the present invention, those of ordinary skill in the art are not before making creative work
Every other embodiment obtained is put, shall fall within the protection scope of the present invention.
It should be noted that the description for being related to " first ", " second " etc. in the present invention is used for description purposes only, and cannot
It is interpreted as its relative importance of indication or suggestion or implicitly indicates the quantity of indicated technical characteristic.Define as a result, " the
One ", the feature of " second " can explicitly or implicitly include at least one of the features.In addition, the skill between each embodiment
Art scheme can be combined with each other, but must be based on can be realized by those of ordinary skill in the art, when technical solution
Will be understood that the combination of this technical solution is not present in conjunction with there is conflicting or cannot achieve when, also not the present invention claims
Protection scope within.
As shown in fig.1, being the optional hardware structure schematic diagram of electronic device one proposed by the present invention.In the present embodiment,
Electronic device 10 may include, but be not limited only to, and connection memory 11, processor 12, net can be in communication with each other by communication bus 14
Network interface 13.It should be pointed out that Fig. 1 illustrates only the electronic device 10 with component 11-14, it should be understood that simultaneously
All components shown realistic are not applied, the implementation that can be substituted is more or less component.
Wherein, memory 11 includes at least a type of computer readable storage medium, computer readable storage medium
Including flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory etc.), random access storage device (RAM), quiet
State random access storage device (SRAM), electrically erasable programmable read-only memory (EEPROM), can be compiled read-only memory (ROM)
Journey read-only memory (PROM), magnetic storage, disk, CD etc..In some embodiments, memory 11 can be electronics dress
Set 10 internal storage unit, such as the hard disk or memory of electronic device 10.In further embodiments, memory 11 can also be with
It is the outer packet storage device of electronic device 10, such as the plug-in type hard disk being equipped on electronic device 10, intelligent memory card (Smart
Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Certainly, it stores
Device 11 can also both including electronic device 10 internal storage unit and also including its outer packet storage device.In the present embodiment, storage
Device 11 is installed on the operating system and types of applications software of electronic device 10 commonly used in storage, such as based on cusum algorithm
Building Electrical Safety recognizer etc..In addition, memory 11 can be also used for temporarily storing and export or will be defeated
Various types of data out.
Processor 12 can be in some embodiments central processing unit (Central Processing Unit, CPU),
Controller, microcontroller, microprocessor or other data processing chips.Processor 12 is commonly used in control electronic device 10
Overall operation.In the present embodiment, program code or processing data of the processor 12 for being stored in run memory 11, such as
The building Electrical Safety recognizer based on cusum algorithm etc. of operation.
Network interface 13 may include radio network interface or wired network interface, and network interface 13 is commonly used in filling in electronics
It sets and establishes communication connection between 10 and other electronic equipments.
Communication bus 14 is for realizing the communication connection between component 11-13.
Fig. 1 illustrates only the electricity of the building Electrical Safety recognizer with component 11-14 and based on cusum algorithm
Sub-device 10, it should be understood that being not required for implementing all components shown, the implementation that can be substituted is more or less
Component.
Optionally, electronic device 10 can also include user interface (not shown in figure 1), and user interface may include display
Device, input unit such as keyboard, wherein user interface can also be including standard wireline interface and wireless interface etc..
Optionally, in some embodiments, display can be light-emitting diode display, liquid crystal display, touch control type LCD and show
Device and OLED touch device etc..Further, display is alternatively referred to as display screen or display unit, for being shown in electronic device
Information is handled in 10 and for showing visual user interface.
Optionally, in some embodiments, electronic device 10 can also include that audio unit (does not show in audio unit Fig. 1
Out), audio unit can be in call signal reception pattern, call mode, logging mode, speech recognition mould in electronic device 10
When under the isotypes such as formula, broadcast reception mode, received or storage audio data is converted into audio signal;Further
Ground, electronic device 10 can also include audio output unit, and the audio signal that audio output unit converts audio unit exports,
And audio output unit can also provide the relevant audio output of specific function that executes to electronic device 10 (such as calling is believed
Number receive sound, message sink sound etc.), audio output unit may include loudspeaker, buzzer etc..
Optionally, in some embodiments, electronic device 10 can also include alarm unit (not shown), alarm list
Member can provide output and the generation of event is notified electron device 10.Typical event may include calling reception, message
Reception, key signals input, touch input etc..Other than audio or video export, alarm unit can be with different sides
Formula provides output with the generation of notification event.For example, alarm unit can provide output in the form of vibration, exhaled when receiving
Cry, message or it is some other can make electronic device 10 enter communication pattern when, alarm unit can provide tactile output (that is,
Vibration) to notify to user.
In one embodiment, the building Electrical Safety recognizer quilt based on cusum algorithm stored in memory 11
When processor 12 executes, following operation is realized:
A1 obtains predetermined building in the current capacity curve of time predefined section Nei Ge respectively;
Specifically, the predetermined building can be the inpatient building of hospital, patient terminal, be also possible to school
Classroom, the administration building of government organs, various markets etc..It is understood that due to the rule of human social activity, such as
Working day working, two-day weekend, festivals or holidays spend a holiday etc. so that same building object different type day (type day include working day,
Festivals or holidays, two-day weekend) historical current load curve it is different, and there is the period in the historical current load curve of same type day
Property the characteristics of, therefore, electric system electrical energy consumption analysis statistics in, need the power load to all types of days to identify, to mention
The data-handling efficiency of high electric system promotes the development of city intelligent power grid.
A2 carries out current break point analysis according to current capacity curve of the predetermined cusum algorithm to acquisition, to divide
The corresponding time interval of point that current capacity value mutates is precipitated;
Specifically, the predetermined cusum algorithm is to detect out in some metastable data sequence
Originate the data point of raw turnover.So-called turning point, i.e. change takes place in the mean value and variance of its context, and then influences
The stabilization of whole group data.
Cusum achievees the effect that amplification, improves inspection by the way that the little deviation between actual value and reference value adds up
The sensitivity of little deviation during survey, when deviation accumulation is more than to a certain extent threshold value, then it is assumed that catastrophe point or different occur
Constant value.Therefore, cusum algorithm also referred to as accumulation and algorithm.
Specifically, in the present embodiment, the step S2 includes the following steps:
Assuming that the current capacity data in the electric load curve obtained constitute data set { yi, if { yiIt is an independence
Same distributed random sequence, current capacity value mutate before current capacity curve on every probability density function beThe probability density function of current capacity curve every after current capacity value mutates isFurther at this
In implementation, it is assumed that θ0And θ1Normal Distribution, then
Wherein, μ is the current capacity data { y to mutateiMean value, σ2It is the current capacity data to mutate
{yiVariance;
The time interval length of the predefined current capacity data identification to building is that (N generally takes the building corresponding to N
Current capacity curve of the electric system in a power frequency period sampling time points, in the present embodiment, time interval
The minimum unit of length is day), current capacity mutation threshold value be h (its value range is 0.025N-0.1N);
Calculate separately the current capacity data { y of time interval mutationiVariances sigma0 2With equal μ0And this when
Between section mutation current capacity data { yiVariances sigma1 2And mean μ1;
According to above-mentioned calculated result, point y in this time interval is calculatediCurrent capacity data mutate front and back logarithm
Likelihood ratio s (yi):
Wherein,
Calculate mutate current capacity data this time interval log-likelihood ratio accumulation andWherein,
The hypothesis testing of the mean μ of the current capacity data { yi } based on mutation is established, specifically, it is assumed that
H0:: μ=μ0, H1: μ=μ1;
The discrimination standard of inspection are as follows:
IfThen d=0, ifThen d=1;
If d=0, determine that current capacity data do not mutate in the time interval, are denoted as H0If d=1 determines
Current capacity data mutate in the time interval, are denoted as H1, wherein h is the threshold value of current capacity mutation.
A3, if it is determined that the time interval that current capacity value mutates out is working day, then by the electric current of the time interval
Load value is compared with preset first threshold value of warning, if the current capacity value of the time interval is greater than, or is equal to default
The first threshold value of warning, then to predetermined terminal send safe early warning information;
A4, if judging, the time interval that current capacity value mutates is day off, by the electric current of the time interval
Load value is compared with preset second threshold value of warning, if the current capacity value of the time interval is greater than, or is equal to default
The second threshold value of warning, then to predetermined terminal send safe early warning information.
By above-mentioned thing embodiment it is found that electronic device proposed by the present invention, by obtaining predetermined building respectively
The current capacity curve of all types of days in time predefined section;It is negative according to electric current of the predetermined cusum algorithm to acquisition
Lotus curve carries out current break point analysis, to analyze the corresponding time interval of point of current capacity value mutation;If analysis
The time interval that current capacity value mutates out is working day, then by the current capacity value of the time interval and preset first
Threshold value of warning is compared, if the current capacity value of the time interval is greater than, or be equal to preset first threshold value of warning, then to
Predetermined terminal sends safe early warning information;If the time interval for analyzing the mutation of current capacity value is day off,
Then the current capacity value of the time interval is compared with preset second threshold value of warning, if the current capacity of the time interval
Value is greater than, or is equal to preset second threshold value of warning, then sends safe early warning information to predetermined terminal.It can be improved
With the maintenance efficiency and reduction Electrical Safety hidden danger of electric fault.
In addition, the building Electrical Safety recognizer of the invention based on cusum algorithm is realized according to its each section
Function it is different, can be described with program module with the same function.It please refers to shown in Fig. 2, is electronic device of the present invention
The program module schematic diagram of building Electrical Safety recognizer in one embodiment based on cusum algorithm.In the present embodiment, base
In the difference for the function that the building Electrical Safety recognizer of cusum algorithm is realized according to its each section, can be divided
At acquisition module 201, analysis module 202, the first early warning and alert module 203 and the second warning module 204.By above description
It is found that the so-called program module of the present invention is the series of computation machine program instruction section for referring to complete specific function, compare program
More suitable for implementation procedure of building Electrical Safety recognizer of the description based on cusum algorithm in electronic device 10.Institute
State that the functions or operations step that module 201-204 is realized is similar as above, and and will not be described here in detail, illustratively, such as its
In:
Obtain the electric current that module 201 is used to obtain predetermined building respectively all types of days in time predefined section
Load curve;
Analysis module 202 is used to carry out electric current according to current capacity curve of the predetermined cusum algorithm to acquisition prominent
Analysis of Changing Points, to analyze the corresponding time interval of point of current capacity value mutation;
If the first warning module 203 is used in the time interval for analyzing the mutation of current capacity value be working day,
The current capacity value of the time interval is compared with preset first threshold value of warning, if the current capacity value of the time interval
It is greater than, or is equal to preset first threshold value of warning, then sends safe early warning information to predetermined terminal;
If the second warning module 204 is used in the time interval for analyzing the mutation of current capacity value be day off,
The current capacity value of the time interval is compared with preset second threshold value of warning, if the current capacity value of the time interval
It is greater than, or is equal to preset second threshold value of warning, then sends safe early warning information to predetermined terminal.
In addition, the present invention also proposes a kind of building Electrical Safety recognition methods based on cusum algorithm, Fig. 3 is please referred to
Shown, the building Electrical Safety recognition methods based on cusum algorithm includes the following steps:
S301, predetermined building is obtained respectively in the current capacity curve of time predefined section Nei Ge;
Specifically, the predetermined building can be the inpatient building of hospital, patient terminal, be also possible to school
Classroom, the administration building of government organs, various markets etc..It is understood that due to the rule of human social activity, such as
Working day working, two-day weekend, festivals or holidays spend a holiday etc. so that same building object different type day (type day include working day,
Festivals or holidays, two-day weekend) historical current load curve it is different, and there is the period in the historical current load curve of same type day
Property the characteristics of, therefore, electric system electrical energy consumption analysis statistics in, need the power load to all types of days to identify, to mention
The data-handling efficiency of high electric system promotes the development of city intelligent power grid.
S302 carries out current break point analysis according to current capacity curve of the predetermined cusum algorithm to acquisition, with
Analyze the corresponding time interval of point of current capacity value mutation;
Specifically, the predetermined cusum algorithm is to detect out in some metastable data sequence
Originate the data point of raw turnover.So-called turning point, i.e. change takes place in the mean value and variance of its context, and then influences
The stabilization of whole group data.
Cusum achievees the effect that amplification, improves inspection by the way that the little deviation between actual value and reference value adds up
The sensitivity of little deviation during survey, when deviation accumulation is more than to a certain extent threshold value, then it is assumed that catastrophe point or different occur
Constant value.Therefore, cusum algorithm also referred to as accumulation and algorithm.
Specifically, in the present embodiment, the step S2 includes the following steps:
Assuming that the current capacity data in the electric load curve obtained constitute data set { yi, if { yiIt is an independence
Same distributed random sequence, current capacity value mutate before current capacity curve on every probability density function beThe probability density function of current capacity curve every after current capacity value mutates isFurther at this
In implementation, it is assumed that θ0And θ1Normal Distribution, then
Wherein, μ is the current capacity data { y to mutateiMean value, σ2It is the current capacity data to mutate
{yiVariance;
The time interval length of the predefined current capacity data identification to building is that (N generally takes the building corresponding to N
Current capacity curve of the electric system in a power frequency period sampling time points, in the present embodiment, time interval
The minimum unit of length is day), current capacity mutation threshold value be h (its value range is 0.025N-0.1N);
Calculate separately the current capacity data { y of time interval mutationiVariances sigma0 2With equal μ0And this when
Between section mutation current capacity data { yiVariances sigma1 2And mean μ1;
According to above-mentioned calculated result, point y in this time interval is calculatediCurrent capacity data mutate front and back logarithm
Likelihood ratio s (yi):
Wherein,
Calculate mutate current capacity data this time interval log-likelihood ratio accumulation andWherein,
The hypothesis testing of the mean μ of the current capacity data { yi } based on mutation is established, specifically, it is assumed that
H0: μ=μ0, H1: μ=μ1;
The discrimination standard of inspection are as follows:
IfThen d=0, ifThen d=1;
If d=0, determine that current capacity data do not mutate in the time interval, are denoted as H0If d=1 determines
Current capacity data mutate in the time interval, are denoted as H1, wherein h is the threshold value of current capacity mutation.
S303, if it is determined that the time interval that current capacity value mutates out is working day, then by the electricity of the time interval
Stream load value is compared with preset first threshold value of warning, if the current capacity value of the time interval is greater than, or is equal to pre-
If the first threshold value of warning, then to predetermined terminal send safe early warning information;
S304, if judging, the time interval that current capacity value mutates is day off, by the electricity of the time interval
Stream load value is compared with preset second threshold value of warning, if the current capacity value of the time interval is greater than, or is equal to pre-
If the second threshold value of warning, then to predetermined terminal send safe early warning information.
By above-mentioned thing embodiment it is found that the building Electrical Safety recognition methods proposed by the present invention based on cusum algorithm,
Pass through the current capacity curve for all types of days that obtain predetermined building respectively in time predefined section;According to true in advance
Fixed cusum algorithm carries out current break point analysis to the current capacity curve of acquisition, occurs to dash forward to analyze current capacity value
The corresponding time interval of point of change;If the time interval for analyzing the mutation of current capacity value is working day, by the time
The current capacity value in section is compared with preset first threshold value of warning, if the current capacity value of the time interval is greater than, or
Person is equal to preset first threshold value of warning, then sends safe early warning information to predetermined terminal;If analyzing current capacity
The time interval that value mutates is day off, then by the current capacity value of the time interval and preset second threshold value of warning into
Row compares, if the current capacity value of the time interval is greater than, or is equal to preset second threshold value of warning, then to predetermined
Terminal sends safe early warning information.It can be improved the maintenance efficiency with electric fault and reduce Electrical Safety hidden danger.
In addition, the present invention also proposes a kind of computer readable storage medium, stored on the computer readable storage medium
There are the building Electrical Safety recognizer based on cusum algorithm, the building Electrical Safety identification based on cusum algorithm
Following operation is realized when program is executed by processor:
The current capacity curve for all types of days that predetermined building obtained respectively in time predefined section;
Current break point analysis is carried out according to current capacity curve of the predetermined cusum algorithm to acquisition, with analysis
The corresponding time interval of point that current capacity value mutates out;
If the time interval for analyzing the mutation of current capacity value is working day, by the current capacity of the time interval
Value is compared with preset first threshold value of warning, if the current capacity value of the time interval is greater than, or is equal to preset the
One threshold value of warning then sends safe early warning information to predetermined terminal;
If the time interval for analyzing the mutation of current capacity value is day off, by the current capacity of the time interval
Value is compared with preset second threshold value of warning, if the current capacity value of the time interval is greater than, or is equal to preset the
Two threshold value of warning then send safe early warning information to predetermined terminal.
Computer readable storage medium of the present invention, specific implementation process is with electronic device and based on cusum algorithm
Building Electrical Safety recognition methods is similar, and details are not described herein.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes
Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.The above is only of the invention excellent
Embodiment is selected, is not intended to limit the scope of the invention, it is all using made by description of the invention and accompanying drawing content etc.
Structure or equivalent process transformation are imitated, is applied directly or indirectly in other relevant technical fields, and is similarly included in the present invention
Scope of patent protection in.
Claims (10)
1. a kind of electronic device, which is characterized in that the electronic device includes memory and the processing that connect with the memory
Device, the processor are used to execute the building Electrical Safety recognizer based on cusum algorithm stored on the memory,
The building Electrical Safety recognizer based on cusum algorithm realizes following steps when being executed by the processor:
A1, the current capacity curve for all types of days that obtain predetermined building respectively in time predefined section;
A2, current break point analysis is carried out according to current capacity curve of the predetermined cusum algorithm to acquisition, to analyze
The corresponding time interval of point that current capacity value mutates;
If A3, the time interval for analyzing the mutation of current capacity value are working day, by the current capacity of the time interval
Value is compared with preset first threshold value of warning, if the current capacity value of the time interval is greater than, or is equal to preset the
One threshold value of warning then sends safe early warning information to predetermined terminal;
If A4, the time interval for analyzing the mutation of current capacity value are day off, by the current capacity of the time interval
Value is compared with preset second threshold value of warning, if the current capacity value of the time interval is greater than, or is equal to preset the
Two threshold value of warning then send safe early warning information to predetermined terminal.
2. electronic device as described in claim 1, which is characterized in that the step A2 includes the following steps:
The current capacity value of various time points in electric load curve is obtained, to constitute the data set sequence { y of current capacity valuei};
The data sequence of the current capacity value is analyzed, according to the predetermined cusum algorithm to detect to mutate
Current capacity value corresponding time point.
3. electronic device as claimed in claim 2, which is characterized in that described according to the predetermined cusum algorithm point
The data sequence of the current capacity value is analysed, the step of to detect the current capacity value corresponding data point to mutate, is wrapped
It includes:
Assuming that { yiAn independent same distributed random sequence, current capacity value mutate before current capacity curve on it is every
The probability density function at a time point isCurrent capacity value mutate after current capacity curve each time point
Probability density function isAssuming that θ0And θ1Normal Distribution, then
Wherein, μ is the current capacity value { y to mutateiMean value, σ2It is the current capacity value { y to mutateiVariance;
The predefined time interval length identified to current capacity value is N, the threshold value of current capacity value mutation is h;
Calculate separately the current capacity value { y of time interval mutationiVariances sigma0 2And mean μ0And this time zone
Between mutation current capacity value { yiVariances sigma1 2And mean μ1;
According to calculated result, point y in this time interval is calculatediCurrent capacity value mutate front and back log-likelihood ratio s
(yi):
Wherein,
Calculate mutate current capacity value this time interval log-likelihood ratio accumulation andWherein,
Establish the hypothesis testing of the mean μ of a current capacity value { yi } based on mutation, it is assumed that H0:: μ=μ0, H1: μ=
μ1;
The discrimination standard of inspection are as follows:
IfThen d=0, ifThen d=1;
If d=0, determine that current capacity value does not mutate in the time interval, is denoted as H0If d=1, the time zone is determined
Interior current capacity value mutates, and is denoted as H1, wherein h is the threshold value of current capacity mutation.
4. electronic device as claimed in claim 3, which is characterized in that in the predefined time identified to current capacity value
In the step of siding-to-siding block length is N, the threshold value of current capacity value mutation is h, the N takes the corresponding electric system of the building one
The sampling time of current capacity curve in a power frequency period counts, and the minimum unit of the time interval length is day, described
The value range of the threshold value h of current capacity mutation is 0.025N-0.1N.
5. the electronic device as described in claim 1-4 is any, which is characterized in that all types of day packets in the time predefined section
Working day and nonworkdays are included, the nonworkdays includes festivals or holidays and two-day weekend.
6. a kind of building Electrical Safety recognition methods based on cusum algorithm, which is characterized in that the method includes walking as follows
It is rapid:
S1, the current capacity curve for all types of days that obtain predetermined building respectively in time predefined section;
S2, current break point analysis is carried out according to current capacity curve of the predetermined cusum algorithm to acquisition, to analyze
The corresponding time interval of point that current capacity value mutates;
If S3, the time interval for analyzing the mutation of current capacity value are working day, by the current capacity of the time interval
Value is compared with preset first threshold value of warning, if the current capacity value of the time interval is greater than, or is equal to preset the
One threshold value of warning then sends safe early warning information to predetermined terminal;
If S4, the time interval for analyzing the mutation of current capacity value are day off, by the current capacity of the time interval
Value is compared with preset second threshold value of warning, if the current capacity value of the time interval is greater than, or is equal to preset the
Two threshold value of warning then send safe early warning information to predetermined terminal.
7. the building Electrical Safety recognition methods based on cusum algorithm as claimed in claim 6, which is characterized in that described
Step S2 includes the following steps:
The current capacity value of various time points in electric load curve is obtained, to constitute the data set sequence { y of current capacity valuei};
The data sequence of the current capacity value is analyzed, according to the predetermined cusum algorithm to detect to mutate
Current capacity value corresponding time point.
8. the building Electrical Safety recognition methods based on cusum algorithm as claimed in claim 7, which is characterized in that described
The data sequence of the current capacity value is analyzed, according to the predetermined cusum algorithm to detect the electricity to mutate
The step of stream load value corresponding data point, comprising:
Assuming that { yiAn independent same distributed random sequence, current capacity value mutate before current capacity curve on it is every
The probability density function at a time point isCurrent capacity value mutate after current capacity curve each time point
Probability density function isAssuming that θ0And θ1Normal Distribution, then
Wherein, μ is the current capacity value { y to mutateiMean value, σ2It is the current capacity value { y to mutateiVariance;
The predefined time interval length identified to current capacity value is N, the threshold value of current capacity value mutation is h;
Calculate separately the current capacity value { y of time interval mutationiVariances sigma0 2And mean μ0And this time zone
Between mutation current capacity value { yiVariances sigma1 2And mean μ1;
According to calculated result, point y in this time interval is calculatediCurrent capacity value mutate front and back log-likelihood ratio s
(yi):
Wherein,
Calculate mutate current capacity value this time interval log-likelihood ratio accumulation andWherein,
Establish the hypothesis testing of the mean μ of a current capacity value { yi } based on mutation, it is assumed that H0: μ=μ0, H1: μ=
μ1;
The discrimination standard of inspection are as follows:
IfThen d=0, ifThen d=1;
If d=0, determine that current capacity value does not mutate in the time interval, is denoted as H0If d=1, the time zone is determined
Interior current capacity value mutates, and is denoted as H1, wherein h is the threshold value of current capacity mutation.
9. the building Electrical Safety recognition methods based on cusum algorithm as claimed in claim 8, which is characterized in that in institute
Stating the predefined time interval length identified to current capacity value is N, in the step of threshold value of current capacity value mutation is h, institute
Stating N takes the sampling time of current capacity curve of the corresponding electric system of the building in a power frequency period to count, described
The minimum unit of time interval length is day, and the value range of the threshold value h of the current capacity mutation is 0.025N-0.1N.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has the building based on cusum algorithm
Object Electrical Safety recognizer, the building Electrical Safety recognizer based on cusum algorithm can be handled by least one
Device executes, so that at least one described processor executes the building based on cusum algorithm as described in any one of claim 6-9
The step of building object Electrical Safety recognition methods.
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 (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111651721A (en) * | 2020-06-15 | 2020-09-11 | 四川中电启明星信息技术有限公司 | Anti-electricity-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 |
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 | 深圳供电局有限公司 | Fault recording data-based power system disturbance occurrence time identification method |
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 kind of multiplexing electric abnormality Activity recognition method 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 | 深圳供电局有限公司 | Fault recording data-based power system disturbance occurrence time identification method |
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 kind of multiplexing electric abnormality Activity recognition method based on fuzzy neural network |
Cited By (6)
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 | 四川中电启明星信息技术有限公司 | Anti-electricity-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 |
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 | |
CN102884559B (en) | Control system, security system and monitor the method in place | |
CN110995482A (en) | Alarm analysis method and device, computer equipment and computer readable storage medium | |
CN110380903B (en) | Power communication network fault detection method, device and equipment | |
CN112749305B (en) | Monitoring data management method, system, equipment and medium based on artificial intelligence | |
CN109634813A (en) | Electronic device, cloud platform exception confirmation method and storage medium | |
CN108765857A (en) | A kind of fire alarm system | |
CN105160941A (en) | Information prompting method, information prompting device and mobile terminal | |
CN109410068A (en) | Electronic device, the electric power data Missing Data Filling method based on XGBoost and storage medium | |
CN114117032A (en) | Method and device for generating plan based on real-time emergency data and electronic equipment | |
CN107111539A (en) | The monitoring method and device of terminal device | |
CN110650243B (en) | Alarm method, alarm device, storage medium and terminal | |
CN112116511A (en) | State monitoring method and device for urban rail transit system | |
CN111400114A (en) | Deep recursion network-based big data computer system fault detection method and system | |
CN115038088A (en) | Intelligent network security detection early warning system and method | |
CN112927178A (en) | Occlusion detection method, occlusion detection device, electronic device, and storage medium | |
KR102125848B1 (en) | Method for controling physical security using mac address and system thereof | |
US20220407868A1 (en) | Detection device, vehicle, detection method, and detection program | |
CN110376519B (en) | High-voltage circuit breaker fault diagnosis method and device and terminal equipment | |
CN112612685A (en) | Processor alarm message processing method, device, terminal and storage medium | |
CN110378111A (en) | For the intrusion detection method and detection system of industrial control system concealed attack | |
CN113743580B (en) | Artificial immune model obtaining method and terminal equipment | |
CN114760087B (en) | DDoS attack detection method and system in software defined industrial internet | |
CN112750268B (en) | Fire alarm system and related product | |
CN115190045A (en) | Express cabinet system service monitoring method and device, electronic equipment and storage medium |
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 |