WO2020015060A1 - Power consumption anomaly estimation method and apparatus, device, and computer storage medium - Google Patents

Power consumption anomaly estimation method and apparatus, device, and computer storage medium Download PDF

Info

Publication number
WO2020015060A1
WO2020015060A1 PCT/CN2018/103335 CN2018103335W WO2020015060A1 WO 2020015060 A1 WO2020015060 A1 WO 2020015060A1 CN 2018103335 W CN2018103335 W CN 2018103335W WO 2020015060 A1 WO2020015060 A1 WO 2020015060A1
Authority
WO
WIPO (PCT)
Prior art keywords
power consumption
time node
node information
power
information
Prior art date
Application number
PCT/CN2018/103335
Other languages
French (fr)
Chinese (zh)
Inventor
孙闳绅
金戈
徐亮
肖京
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2020015060A1 publication Critical patent/WO2020015060A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Administration; Management
    • G06Q10/04Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/06Energy or water supply
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/80Management or planning
    • Y02P90/82Energy audits or management systems therefor

Definitions

  • the present application relates to the field of power detection, and in particular, to a method, a device, a device, and a computer storage medium for evaluating abnormal power consumption.
  • the detection equipment collects data on the power consumption of each floor in real time. Take the average of the electrical data, take the average value of the electricity as the electricity constant, and set an electricity consumption interval based on the electricity constant. When the actual electricity consumption is not in this electricity interval, it is determined as an abnormal electricity consumption, that is, The current evaluation of abnormal power consumption must rely on historical data.
  • Such an abnormal evaluation scheme of power consumption has the following deficiencies. For example, the abnormal evaluation is too one-sided due to the influence of abnormal values. In addition, the efficiency of abnormal evaluation is not high. The accuracy and efficiency of assessment has become a technical problem that needs to be solved urgently.
  • the main purpose of this application is to provide a method, device, equipment and computer storage medium for evaluating abnormality in power consumption, which aims to improve the accuracy and efficiency of detecting abnormality in power consumption.
  • the present application provides a method for evaluating abnormality in power consumption, which includes the following steps:
  • the power consumption abnormality prompt information is generated.
  • the steps include:
  • the power sample subset as a target power sample subset, generating an initial regression model based on the target power sample subset, and obtaining other power sample subsets in the n power sample subsets excluding the target power sample subset Using the other power sample subsets to iteratively train the initial regression model to obtain a regression submodel corresponding to the target power sample subset;
  • the step of inputting the power consumption characteristic information and the time node information into a preset regression model to obtain a theoretical power consumption corresponding to the time node information includes:
  • Each regression sub-model in the preset regression model is adjusted based on the updated power sample to obtain an updated regression sub-model, and each of the updated regression sub-models is packaged to generate an updated regression model.
  • the steps of receiving a power consumption abnormality evaluation request, obtaining time node information in the power consumption abnormality evaluation request, and obtaining power consumption characteristic information related to the time node information include:
  • the step of obtaining the actual power consumption corresponding to the time node information, and comparing the actual power consumption with the theoretical power consumption to determine whether the actual power consumption is abnormal include:
  • the step of generating prompt information of abnormal power consumption includes:
  • the present application further provides an apparatus for evaluating abnormality in power consumption.
  • the apparatus for evaluating abnormality in power consumption includes:
  • a receiving and acquiring module configured to receive a request for abnormal evaluation of power consumption, acquire time node information in the request for abnormal evaluation of power consumption, and obtain power consumption characteristic information related to the time node information;
  • An input calculation module configured to input the power consumption characteristic information and the time node information into a preset regression model to obtain a theoretical power consumption corresponding to the time node information
  • An acquisition judgment module configured to acquire the actual power consumption corresponding to the time node information, and compare the actual power consumption with the theoretical power consumption to determine whether the actual power consumption is abnormal;
  • a prompting module is configured to generate prompting information of abnormal power consumption if the actual power consumption is abnormal.
  • the present application also provides a power consumption abnormality evaluation device
  • the power consumption abnormality evaluation device includes: a memory, a processor, and computer-readable instructions stored on the memory and executable on the processor, wherein:
  • the present application also provides a computer storage medium
  • Computer-readable instructions are stored on the computer storage medium, and when the computer-readable instructions are executed by a processor, the steps of the method for evaluating abnormality in power consumption as described above are implemented.
  • a method, device, equipment, and computer storage medium for evaluating abnormal power consumption according to the embodiments of the present application.
  • a power consumption calculation regression model is established in advance.
  • the abnormality evaluation requests the current actual power consumption value, calculates a theoretical power consumption value based on a preset regression model, and then compares the actual power consumption value with the theoretical power consumption value to determine whether the power consumption is abnormal.
  • the power consumption is abnormal.
  • the evaluation does not rely on historical data, which can effectively exclude the impact of historical power abnormal values on the power abnormal evaluation and improve the accuracy of the abnormal evaluation.
  • the server uses a preset regression model to perform power abnormal evaluation to make the power consumption The anomaly evaluation procedure is simpler and more efficient.
  • FIG. 1 is a schematic structural diagram of a device for a hardware operating environment involved in a solution according to an embodiment of the present application
  • FIG. 2 is a schematic flowchart of a first embodiment of an abnormality assessment method for power consumption of this application
  • FIG. 3 is a detailed flowchart of step S40 of the method for evaluating abnormality of power consumption in FIG. 2;
  • FIG. 4 is a schematic diagram of functional modules of an embodiment of an abnormality assessment device for power consumption of the present application.
  • FIG. 1 is a server (also called a power consumption abnormality evaluation device) of a hardware operating environment involved in the solution of the embodiment of the present application.
  • the power consumption abnormality evaluation device may be a separate power consumption abnormality evaluation device.
  • the structure may also be a schematic diagram of the structure formed by combining other devices with an abnormality evaluation device for power consumption.
  • a server refers to a computer that manages resources and provides services to users, and is generally divided into a file server, a database server, and an application server.
  • a computer or computer system running the above software is also called a server.
  • the server may include a processor 1001, such as a central processing unit (Central Processing Unit, CPU), network interface 1004, user interface 1003, memory 1005, communication bus 1002, chipset, disk system, network and other hardware.
  • the communication bus 1002 is used to implement connection and communication between these components.
  • the user interface 1003 may include a display, an input unit such as a keyboard, and the optional user interface 1003 may further include a standard wired interface and a wireless interface.
  • the network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity WIreless-FIdelity, WIFI interface).
  • the memory 1005 may be a high-speed random access memory (random access memory (RAM), or non-volatile memory), such as disk storage.
  • RAM random access memory
  • non-volatile memory such as disk storage.
  • the memory 1005 may optionally be a storage device independent of the foregoing processor 1001.
  • the server may further include a camera, RF (Radio Frequency (radio frequency) circuit, sensor, audio circuit, WiFi module; input unit, display screen, touch screen; optional network interface except wireless interface except WiFi, Bluetooth and so on.
  • RF Radio Frequency (radio frequency) circuit
  • sensor Sensor
  • audio circuit WiFi module
  • WiFi module input unit
  • display screen touch screen
  • optional network interface except wireless interface except WiFi, Bluetooth and so on.
  • the computer software product is stored in a storage medium (storage medium: also called computer storage medium, computer medium, readable medium, readable storage medium, computer-readable storage medium, or directly called medium, etc., such as RAM , Magnetic disks, optical disks, storage media refers to non-volatile readable storage media), including a number of instructions for a terminal device (can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute this
  • the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and computer-readable instructions.
  • the network interface 1004 is mainly used to connect to a background database and perform data communication with the background database;
  • the user interface 1003 is mainly used to connect to a client (client, also called a client or a terminal.
  • client also called a client or a terminal.
  • the terminal may be a fixed terminal or a mobile terminal, which is not described in detail here), and performs data communication with the client;
  • the processor 1001 may be used to call computer-readable instructions stored in the memory 1005 and execute the following embodiments of the present application Provides steps in the method for assessing abnormal power consumption.
  • the method for evaluating abnormality in power consumption includes the following steps:
  • the power consumption abnormality prompt information is generated.
  • a developer needs to establish a preset regression model before the server can calculate a theoretical power consumption based on the preset regression model to compare the theoretical power consumption with the actual power consumption for Evaluation of abnormal user volume, specific steps for establishing a preset regression model, including:
  • Step S01 Obtain a power sample from a preset power sample set, classify each of the power samples according to a preset classification rule, and obtain n power sample subsets.
  • the server obtains a power sample from a preset power sample set, where the preset power sample set refers to pre-stored historical power related information, the server obtains the included power samples from the preset power sample set, and sets each power sample as preset
  • the classification rules are used to classify and obtain n subsets of power samples.
  • the preset classification rules refer to the preset power sample classification rules.
  • the preset classification rules are set to the collection time classification rules. The collection time is classified to obtain a subset of power samples corresponding to each year and month.
  • the server will collect the historical power consumption and related information: the power consumption on Tuesday, June 5, 2018 from 13:00 to 13:05, the outdoor temperature is 30 degrees Celsius, and the address is xxx office building in Shenzhen Room, Guangdong province. Information such as the working day is saved to the memory; when receiving a request to establish a preset regression model, the server randomly extracts a certain amount of historical power consumption and its related information from the memory as a power sample, and uses the extracted power samples Forms a preset power sample set, and the server classifies each power sample in the preset power sample set according to the power sample collection time to obtain n power sample subsets in different time periods, where the power samples in each power sample subset may be the same May also be different.
  • Step S02 the following steps are performed for each of the power sample subsets: using the power sample subset as a target power sample subset, generating an initial regression model based on the target power sample subset, and obtaining the n power samples
  • the other power sample subsets of the target power sample subset are removed from the subset, and the initial regression model is iteratively trained using the other power sample subsets to obtain a regression submodel corresponding to the target power sample subset.
  • the server uses each of the power sample subsets as a target power sample subset, and generates an initial regression model based on the target power sample subset.
  • the initial regression model is a function of power consumption and power characteristic data to establish an initial regression model. It is the characteristic data of each sample in the target power sample subset.
  • the characteristic data includes: time data, temperature data, and holiday data.
  • the function relationship between time data, temperature data, holiday data, and power consumption is determined according to a preset model. This functional relationship is used as the initial regression model; specifically, a model of characteristic data and power consumption is set in advance according to experience.
  • each power sample in the target power sample subset is obtained, and each power sample is passed Determine the initial value of the parameter by equal division status, and assign the determined initial value of the parameter to the preset model to obtain the initial regression model; after the initial regression model is completed; set the maximum number of iterations and the convergence threshold; the server uses to divide the target Charges other than a subset of charge samples In this subset, iterative training is performed on the initial regression model until the number of iterations previously set or has been converged. At this time, the optimal model parameters can be obtained, and then the target power sample subset is obtained according to the optimal model parameters. Corresponding regression model.
  • the server in this embodiment uses time node information, whether it is a holiday and temperature information as feature data, and sets corresponding weights for each feature data to generate an initial regression model corresponding to each target power sample subset.
  • the generated initial regression model is related to the above characteristic data.
  • the server After the initial regression model is generated, the server iteratively trains the initial regression model using n-1 power sample subsets other than the target power sample subset, and the server generates a regression submodel corresponding to each target power sample subset.
  • step S03 the regression sub-model corresponding to each of the target power sample subsets is encapsulated to generate a preset regression model.
  • the server obtains the regression submodel corresponding to each target power sample subset, encapsulates each regression submodel, and generates a preset regression model, that is, in this embodiment, the n regression submodels obtained by training are packaged as a preset Regression model.
  • a preset regression model is created and generated based on historical power consumption information.
  • the power consumption abnormality evaluation is performed based on the generated preset regression prediction, and the power consumption abnormality evaluation based on the generated preset regression prediction can effectively consider the time series characteristics without introducing too much the strong influence of time series on the time point. Effectively detect abnormal points.
  • the method of establishing multiple regression sub-models is used in the scenario where a preset regression model is established, which effectively reduces the process of calculating the theoretical value of power consumption based on the preset regression model. Possible overfitting.
  • the method for evaluating abnormality in power consumption includes:
  • Step S10 Receive a power consumption abnormality evaluation request, acquire time node information in the power consumption abnormality evaluation request, and acquire power consumption characteristic information related to the time node information.
  • the user triggers a power consumption abnormality evaluation request on the terminal.
  • the terminal sends the power consumption abnormality evaluation request to the server.
  • the server receives the power consumption abnormality evaluation request
  • the server obtains the time node information in the power consumption abnormality evaluation request and obtains the The power consumption characteristic information related to the time node information, that is, when the server receives the power consumption abnormality evaluation request, the server obtains the time node included in the power consumption abnormality evaluation request, and collects temperature information and holiday information corresponding to the time node. ; Using the temperature information and the holiday information as the power consumption characteristic information related to the time node information.
  • the server receives the power consumption abnormality evaluation request and obtains the time node information in the power consumption abnormality evaluation request: on May 2, 2018, the server obtains the power consumption characteristic information related to the time node including: Wednesday, work day, location It is the Shenzhen xxx office building in Guangdong province and the temperature is 30 degrees Celsius, that is, the characteristic information collected in this embodiment will affect the abnormal evaluation of power consumption, that is, whether the rest day will affect the power consumption of the Shenzhen xxx office building in Guangdong province. To some extent, the temperature will also affect the electricity consumption.
  • step S20 the power consumption characteristic information and the time node information are input into a preset regression model to obtain a theoretical power consumption corresponding to the time node information.
  • the server inputs the power consumption characteristic information and time node information to each regression sub-model of the preset regression model to obtain the basic power consumption corresponding to each of the regression sub-models; that is, the server evaluates the power consumption abnormally.
  • the power consumption characteristic information and time node in the request are input into each regression sub-model, and n basic power consumptions are obtained according to the calculation formula in each regression sub-model.
  • the average value, and the average value obtained by adding and summing the n basic power consumptions as the theoretical power consumption corresponding to the time node information.
  • Step S30 Acquire the actual power consumption corresponding to the time node information, and compare the actual power consumption with the theoretical power consumption to determine whether the actual power consumption is abnormal.
  • the server obtains the actual power consumption corresponding to the time node information, where the actual power consumption refers to the actual power consumption of the time node obtained by the detection device installed in the server in real time;
  • the theoretical power consumption is compared to obtain a comparison result between the actual power consumption and the theoretical power consumption, and whether the actual power consumption is abnormal according to the comparison result.
  • the server may adopt different implementation methods to determine whether the actual power consumption is abnormal, specifically:
  • Step a1 Obtain an actual power consumption corresponding to the time node information, and calculate a ratio between the actual power consumption and the theoretical power consumption;
  • Step a2 if the ratio of the actual power consumption to the theoretical power consumption exceeds a preset threshold, determine that the actual power consumption is abnormal;
  • step a3 if the ratio between the actual power consumption and the theoretical power consumption does not exceed a preset threshold, it is determined that the actual power consumption is normal.
  • the server acquires the actual power consumption corresponding to the time node information, and calculates a ratio between the actual power consumption and the theoretical power consumption; the actual power consumption and the theoretical power consumption If the ratio of power exceeds a preset threshold, the server determines that the actual power consumption is abnormal; when the ratio of the actual power to the theoretical power does not exceed a preset threshold, the server determines the actual power The quantity is normal; the calculation of the abnormality determination in this embodiment is relatively simple, and the obtained abnormality determination result is intuitive and accurate.
  • step S40 if the actual power consumption is abnormal, a power consumption abnormality prompt message is generated.
  • the server After the server obtains a result of abnormal actual power consumption according to the foregoing power consumption abnormality evaluation step, the server generates a power consumption abnormality prompt message.
  • the prompt information of the abnormal power consumption is sent to the terminal, so that the end user can view the prompt information of the abnormal power consumption.
  • a power consumption calculation regression model is established in advance.
  • the server receives the power consumption abnormality evaluation request, the current actual power consumption value of the power consumption abnormality evaluation request is obtained, and a theoretical power consumption value is calculated based on the preset regression model. Then, the actual power consumption value is compared with the theoretical power consumption value to determine whether the power consumption is abnormal.
  • the evaluation of the power consumption abnormality does not rely on historical data, which can effectively exclude the historical power consumption abnormality value from evaluating the power abnormality Impact, improve the accuracy of abnormality assessment, at the same time, the server uses a preset regression model to perform power abnormality assessment, making the abnormality assessment steps for power consumption simpler and more efficient.
  • this embodiment of the method for evaluating abnormality in power consumption of this application is proposed on the basis of the first embodiment of this application.
  • This embodiment is a refinement of step S40 in the first embodiment.
  • the power consumption is abnormal, the corresponding historical information is acquired to determine the specific situation of the abnormal power consumption.
  • the method for evaluating abnormal power consumption includes:
  • step S41 if the actual power consumption is abnormal, the historical synchronization power consumption corresponding to the time node information is obtained.
  • the server determines that the actual power consumption is abnormal, the server obtains the historical power consumption corresponding to the time node information. For example, the time node corresponding to the actual power consumption abnormality is: at 13:00 on May 2, 2018, the server obtains 2017 The power consumption on the afternoon of May 2, 2013 is the historical power consumption corresponding to the node information at that time.
  • Step S42 Calculate the actual power consumption and the historical power consumption according to a preset synchronization formula to obtain a year-on-year growth rate.
  • the server calculates the actual power consumption and historical power consumption according to a preset period formula to obtain the year-on-year growth rate.
  • the preset period formula is a preset formula for calculating the year-on-year growth rate. Synchronous number) ⁇ Synchronous number * 100%, that is, the server calculates the actual power consumption and the historical power consumption according to a preset synchronization formula to obtain a year-on-year growth rate.
  • Step S43 Generate power consumption abnormality prompt information based on the year-on-year growth rate and the actual power consumption for users to view.
  • the server generates the power consumption abnormality prompt information based on the calculated year-on-year growth rate and actual power consumption. For example, the server inputs the year-on-year growth rate and actual power consumption into the abnormality prompt template, and generates power consumption abnormality prompt information for users. Check it out.
  • the user can check the abnormal power consumption according to the prompt information, reduce the occurrence of abnormal power consumption, and avoid the adverse effects caused by power failure.
  • the power consumption is Anomaly assessment methods include:
  • Step S50 if the actual power consumption is normal, use the time node information and the power consumption characteristic information related to the time node information as an updated power sample.
  • the server determines that the actual power consumption is normal, the server obtains time node information corresponding to the actual power consumption, and obtains power consumption characteristic information related to the time node information as an updated power sample, and updates the first implementation according to the updated power sample
  • the preset regression model in the example is the server obtains time node information corresponding to the actual power consumption, and obtains power consumption characteristic information related to the time node information as an updated power sample, and updates the first implementation according to the updated power sample.
  • Step S60 Save the updated power sample to the preset power sample set to obtain an updated power sample set.
  • the server saves the updated power sample to the preset power sample set to obtain the updated power sample set. After the updated power sample is added to the preset power sample set, the server adds tag information to the updated power sample to obtain the updated power sample. .
  • Step S70 When receiving a preset regression model update request, obtain the updated power sample in the updated power sample set.
  • the user triggers an update request based on a preset regression model, and when the server receives the preset regression model update request, obtains an updated power sample with tag information in the updated power sample set.
  • Step S80 Adjust each regression sub-model in the preset regression model based on the updated power sample to obtain an updated regression sub-model, package each of the updated regression sub-models, and generate an updated regression model.
  • the server obtains the power consumption characteristic information related to the time node information corresponding to the updated power sample, and adjusts the relevant parameters in each regression sub-model in the preset regression model according to the power consumption characteristic information related to the obtained time node information.
  • An update regression sub-model which encapsulates each of the update regression sub-models to generate an update regression model.
  • the preset regression model may be updated, so that the preset regression model has real-time performance, so as to ensure the accuracy of the abnormal evaluation of power consumption.
  • an embodiment of the present application further provides an embodiment of an abnormality evaluation device for power consumption.
  • the abnormality evaluation device for power consumption includes:
  • the receiving and acquiring module 10 is configured to receive a power consumption abnormality evaluation request, acquire time node information in the power consumption abnormality evaluation request, and acquire power consumption characteristic information related to the time node information;
  • An input calculation module 20 configured to input the power consumption characteristic information and the time node information into a preset regression model to obtain a theoretical power consumption corresponding to the time node information;
  • the obtaining and judging module 30 is configured to obtain the actual power consumption corresponding to the time node information, and compare the actual power consumption with the theoretical power consumption to determine whether the actual power consumption is abnormal;
  • the generating prompting module 40 is configured to generate prompting information of abnormal power consumption if the actual power consumption is abnormal.
  • the apparatus for evaluating abnormality in power consumption includes:
  • a sample classification module configured to obtain a power sample from a preset power sample set, and classify each of the power samples according to a preset classification rule to obtain n subsets of power samples;
  • a sub-model generating module configured to use the power sample subset as a target power sample subset, generate an initial regression model based on the target power sample subset, and obtain the n power sample subsets to remove the target power sample subset Other power sample subsets of the set, using the other power sample subsets to iteratively train the initial regression model to obtain a regression submodel corresponding to the target power sample subset;
  • a model packaging module is configured to package the regression sub-model corresponding to each of the target power sample subsets to generate a preset regression model.
  • the input calculation module 20 includes:
  • An information input unit is configured to input the power consumption characteristic information and the time node information into each of the regression sub-models of the preset regression model to obtain a basic power consumption corresponding to each of the regression sub-models. the amount;
  • the theoretical value determining unit is configured to sum each of the basic power consumptions and calculate an average value to obtain a theoretical power consumption corresponding to the time node information.
  • the receiving and acquiring module 10 includes:
  • a collection unit configured to receive a power consumption abnormality evaluation request, acquire time node information in the power consumption abnormality evaluation request, and collect temperature information and holiday information corresponding to the time node information;
  • a characteristic data determining unit configured to use the temperature information and the holiday information as power consumption characteristic information related to the time node information.
  • the acquisition judgment module 30 includes:
  • An obtaining comparison unit configured to obtain the actual power consumption corresponding to the time node information, and calculate a ratio between the actual power consumption and the theoretical power consumption;
  • a first determining unit configured to determine that the actual power consumption is abnormal if a ratio between the actual power consumption and the theoretical power consumption exceeds a preset threshold
  • a second determination unit is configured to determine that the actual power consumption is normal if a ratio between the actual power consumption and the theoretical power consumption does not exceed a preset threshold.
  • the generating prompt module 40 includes:
  • a data acquisition unit configured to acquire historical power consumption in the corresponding period corresponding to the time node information if the actual power consumption is abnormal
  • a change rate calculation unit configured to calculate the actual power consumption and the historical power consumption according to a preset synchronization formula to obtain a year-on-year growth rate
  • a generating unit is configured to generate power consumption abnormality prompt information based on the year-on-year growth rate and the actual power consumption for a user to view.
  • the apparatus for evaluating abnormality in power consumption further includes:
  • a sample processing module configured to use the time node information and the power consumption characteristic information related to the time node information as an updated power sample if the actual power consumption is normal;
  • a sample saving module configured to save the updated power sample to the preset power sample set to obtain an updated power sample set
  • a receiving update module configured to obtain the updated power sample in the updated power sample set when a preset regression model update request is received
  • a model update module is configured to adjust each regression sub-model in the preset regression model based on the updated power sample, obtain an updated regression sub-model, and package each of the updated regression sub-models to generate an updated regression model.
  • an embodiment of the present application also provides a computer storage medium.
  • Computer-readable instructions are stored on the computer storage medium, and when the computer-readable instructions are executed by a processor, the operations in the method for evaluating abnormality in power consumption provided by the foregoing embodiments are implemented.

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Economics (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Theoretical Computer Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Physics & Mathematics (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Tourism & Hospitality (AREA)
  • Health & Medical Sciences (AREA)
  • Development Economics (AREA)
  • Game Theory and Decision Science (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Public Health (AREA)
  • Primary Health Care (AREA)
  • Water Supply & Treatment (AREA)
  • Educational Administration (AREA)
  • General Health & Medical Sciences (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

A power consumption anomaly estimation method and apparatus, a device, and a computer storage medium. The method comprises the following steps: receiving a power consumption anomaly estimation request, obtaining time point information in the power consumption anomaly estimation request, and obtaining power consumption feature information related to the time point information (S10); inputting the power consumption feature information and the time point information to a preset regression model to obtain theoretical power consumption corresponding to the time point information (S20); obtaining actual power consumption corresponding to the time point information and comparing the actual power consumption with the theoretical power consumption to determine whether the actual power consumption is abnormal (S30); and if the actual power consumption is abnormal, generating power consumption anomaly prompt information (S40).The method can improve the accuracy and efficiency of power consumption anomaly estimation.

Description

用电量异常评估方法、装置、设备和计算机存储介质  Method, device, equipment and computer storage medium for evaluating power consumption abnormality Ranch
本申请要求于2018年07月17日提交中国专利局、申请号为201810799777.7发明名称为“用电量异常评估方法、装置、设备和计算机存储介质”的中国专利申请的优先权,其全部内容通过引用结合在申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on July 17, 2018, with the application number 201810799777.7, and the invention name is "Method, Apparatus, Equipment, and Computer Storage Medium for Evaluating Abnormal Power Consumption." Citations are incorporated in the application.
技术领域Technical field
本申请涉及电量检测领域,尤其涉及用电量异常评估方法、装置、设备和计算机存储介质。The present application relates to the field of power detection, and in particular, to a method, a device, a device, and a computer storage medium for evaluating abnormal power consumption.
背景技术Background technique
由于现有人们生活对电的依赖极大,为了防止突然断电对人们生活的影响,人们采用不同的方式进行用电异常检测。Due to the current dependence of people on electricity, in order to prevent the impact of sudden power outages on people's lives, people use different methods to detect abnormal power consumption.
当前的用电异常评估的方案有不同的方式,但是都是基于历史数据作出的,例如,检测设备实时采集各个楼层用电的数据,在接收到用电量异常评估请求时,将历史同期用电数据整理取平均值,将电量的平均值作为用电常量,并基于用电常量设置一个用电区间,在实际用电量没有在这个用电区间时,就判定为用电异常,即,当前的用电异常评估必须依赖于历史数据,这样的用电异常评估方案存在如下不足之处,例如:受异常值的影响异常评估太片面,此外,异常评估效率不高,如何提高用电异常评估的准确率和效率成为了当前亟待解决的技术问题。There are different ways to evaluate current power consumption abnormalities, but they are all based on historical data. For example, the detection equipment collects data on the power consumption of each floor in real time. Take the average of the electrical data, take the average value of the electricity as the electricity constant, and set an electricity consumption interval based on the electricity constant. When the actual electricity consumption is not in this electricity interval, it is determined as an abnormal electricity consumption, that is, The current evaluation of abnormal power consumption must rely on historical data. Such an abnormal evaluation scheme of power consumption has the following deficiencies. For example, the abnormal evaluation is too one-sided due to the influence of abnormal values. In addition, the efficiency of abnormal evaluation is not high. The accuracy and efficiency of assessment has become a technical problem that needs to be solved urgently.
发明内容Summary of the invention
本申请的主要目的在于提供一种用电量异常评估方法、装置、设备和计算机存储介质,旨在解决提高用电异常检测的准确率和效率。The main purpose of this application is to provide a method, device, equipment and computer storage medium for evaluating abnormality in power consumption, which aims to improve the accuracy and efficiency of detecting abnormality in power consumption.
为实现上述目的,本申请提供一种用电量异常评估方法,所述用电量异常评估方法包括以下步骤:In order to achieve the above object, the present application provides a method for evaluating abnormality in power consumption, which includes the following steps:
接收用电量异常评估请求,获取所述用电量异常评估请求中的时间节点信息,并获取所述时间节点信息相关的用电特征信息;Receiving a power consumption abnormality evaluation request, acquiring time node information in the power consumption abnormality evaluation request, and acquiring power consumption characteristic information related to the time node information;
将所述用电特征信息和所述时间节点信息输入至预设回归模型中,得到所述时间节点信息对应的理论用电量;Inputting the power consumption characteristic information and the time node information into a preset regression model to obtain a theoretical power consumption corresponding to the time node information;
获取所述时间节点信息对应的实际用电量,并将所述实际用电量和所述理论用电量进行比较,以判断所述实际用电量是否异常;Acquiring the actual power consumption corresponding to the time node information, and comparing the actual power consumption with the theoretical power consumption to determine whether the actual power consumption is abnormal;
若所述实际用电量异常,则生成用电异常提示信息。If the actual power consumption is abnormal, the power consumption abnormality prompt information is generated.
可选地,所述接收用电量异常评估请求,获取所述用电量异常评估请求中的时间节点信息,并获取所述时间节点信息相关的用电特征信息的步骤之前,包括:Optionally, before the steps of receiving the power consumption abnormality evaluation request, obtaining the time node information in the power consumption abnormality evaluation request, and obtaining the power consumption characteristic information related to the time node information, the steps include:
从预设电量样本集中获取电量样本,将各所述电量样本按预设分类规则进行分类,得到n个电量样本子集;Obtaining power samples from a preset power sample set, classifying each of the power samples according to a preset classification rule, and obtaining n power sample subsets;
针对每一个所述电量样本子集执行如下步骤:The following steps are performed for each of the power sample subsets:
将所述电量样本子集作为目标电量样本子集,基于所述目标电量样本子集生成初始回归模型,获取所述n个电量样本子集中去除所述目标电量样本子集的其他电量样本子集,利用所述其他电量样本子集对所述初始回归模型进行迭代训练,得到所述目标电量样本子集对应的回归子模型;Using the power sample subset as a target power sample subset, generating an initial regression model based on the target power sample subset, and obtaining other power sample subsets in the n power sample subsets excluding the target power sample subset Using the other power sample subsets to iteratively train the initial regression model to obtain a regression submodel corresponding to the target power sample subset;
将每个所述目标电量样本子集对应的所述回归子模型进行封装,生成预设回归模型。Encapsulating the regression sub-model corresponding to each of the target power sample subsets to generate a preset regression model.
可选地,所述将所述用电特征信息和所述时间节点信息输入至预设回归模型中,得到所述时间节点信息对应的理论用电量的步骤,包括:Optionally, the step of inputting the power consumption characteristic information and the time node information into a preset regression model to obtain a theoretical power consumption corresponding to the time node information includes:
将所述用电特征信息和所述时间节点信息分别输入至所述预设回归模型的各个所述回归子模型中,得到每一个所述回归子模型对应的基础用电量;Inputting the power consumption characteristic information and the time node information into each of the regression sub-models of the preset regression model to obtain a basic power consumption corresponding to each of the regression sub-models;
将各所述基础用电量进行求和并计算平均值,得到所述时间节点信息对应的理论用电量。Sum the respective basic power consumptions and calculate an average value to obtain a theoretical power consumption corresponding to the time node information.
可选地,所述获取所述时间节点信息对应的实际用电量,并将所述实际用电量和所述理论用电量进行比较,以判断所述实际用电量是否异常的步骤之后,包括:Optionally, after the step of acquiring the actual power consumption corresponding to the time node information, and comparing the actual power consumption with the theoretical power consumption to determine whether the actual power consumption is abnormal ,include:
若所述实际用电量正常,则将所述时间节点信息及所述时间节点信息相关的用电特征信息作为更新电量样本;If the actual power consumption is normal, using the time node information and power characteristic information related to the time node information as an updated power sample;
将所述更新电量样本保存至所述预设电量样本集,得到更新电量样本集;Saving the updated power sample to the preset power sample set to obtain an updated power sample set;
在接收到预设回归模型更新请求时,获取所述更新电量样本集中的所述更新电量样本;When receiving a preset regression model update request, obtaining the updated power sample in the updated power sample set;
基于所述更新电量样本调整所述预设回归模型中的各个回归子模型,得到更新回归子模型,将各所述更新回归子模型进行封装,生成更新回归模型。Each regression sub-model in the preset regression model is adjusted based on the updated power sample to obtain an updated regression sub-model, and each of the updated regression sub-models is packaged to generate an updated regression model.
可选地,所述接收用电量异常评估请求,获取所述用电量异常评估请求中的时间节点信息,并获取所述时间节点信息相关的用电特征信息的步骤,包括:Optionally, the steps of receiving a power consumption abnormality evaluation request, obtaining time node information in the power consumption abnormality evaluation request, and obtaining power consumption characteristic information related to the time node information include:
接收用电量异常评估请求,获取所述用电量异常评估请求中的时间节点信息,并采集所述时间节点信息对应的温度信息、节假日信息;Receiving a power consumption abnormality evaluation request, acquiring time node information in the power consumption abnormality evaluation request, and collecting temperature information and holiday information corresponding to the time node information;
将所述温度信息和所述节假日信息作为所述时间节点信息相关的用电特征信息。Use the temperature information and the holiday information as the power consumption characteristic information related to the time node information.
可选地,所述获取所述时间节点信息对应的实际用电量,并将所述实际用电量和所述理论用电量进行比较,以判断所述实际用电量是否异常的步骤,包括:Optionally, the step of obtaining the actual power consumption corresponding to the time node information, and comparing the actual power consumption with the theoretical power consumption to determine whether the actual power consumption is abnormal, include:
获取所述时间节点信息对应的实际用电量,计算所述实际用电量与所述理论用电量的比值;Acquiring the actual power consumption corresponding to the time node information, and calculating a ratio between the actual power consumption and the theoretical power consumption;
若所述实际用电量和所述理论用电量的比值超过预设阈值,则判定所述实际用电量异常;If the ratio between the actual power consumption and the theoretical power consumption exceeds a preset threshold, determining that the actual power consumption is abnormal;
若所述实际用电量和所述理论用电量的比值不超过预设阈值,则判定所述实际用电量正常。If the ratio between the actual power consumption and the theoretical power consumption does not exceed a preset threshold, it is determined that the actual power consumption is normal.
可选地,所述若所述实际用电量异常,则生成用电异常提示信息的步骤,包括:Optionally, if the actual power consumption is abnormal, the step of generating prompt information of abnormal power consumption includes:
若所述实际用电量异常,则获取所述时间节点信息对应的历史同期用电量;If the actual power consumption is abnormal, obtaining historical power consumption corresponding to the time node information;
将所述实际用电量与所述历史用电量按预设同期公式计算,得到同比增长率;Calculating the actual power consumption and the historical power consumption according to a preset synchronization formula to obtain a year-on-year growth rate;
基于所述同比增长率和所述实际用电量生成用电异常提示信息,以供用户进行查看。Generate power consumption abnormality prompt information based on the year-on-year growth rate and the actual power consumption for users to view.
此外,为实现上述目的,本申请还提供一种用电量异常评估装置,所述用电量异常评估装置包括:In addition, in order to achieve the foregoing object, the present application further provides an apparatus for evaluating abnormality in power consumption. The apparatus for evaluating abnormality in power consumption includes:
接收获取模块,用于接收用电量异常评估请求,获取所述用电量异常评估请求中的时间节点信息,并获取所述时间节点信息相关的用电特征信息;A receiving and acquiring module, configured to receive a request for abnormal evaluation of power consumption, acquire time node information in the request for abnormal evaluation of power consumption, and obtain power consumption characteristic information related to the time node information;
输入计算模块,用于将所述用电特征信息和所述时间节点信息输入至预设回归模型中,得到所述时间节点信息对应的理论用电量;An input calculation module, configured to input the power consumption characteristic information and the time node information into a preset regression model to obtain a theoretical power consumption corresponding to the time node information;
获取判断模块,用于获取所述时间节点信息对应的实际用电量,并将所述实际用电量和所述理论用电量进行比较,以判断所述实际用电量是否异常;An acquisition judgment module, configured to acquire the actual power consumption corresponding to the time node information, and compare the actual power consumption with the theoretical power consumption to determine whether the actual power consumption is abnormal;
生成提示模块,用于若所述实际用电量异常,则生成用电异常提示信息。A prompting module is configured to generate prompting information of abnormal power consumption if the actual power consumption is abnormal.
此外,为实现上述目的,本申请还提供一种用电量异常评估设备;In addition, in order to achieve the above-mentioned object, the present application also provides a power consumption abnormality evaluation device;
所述用电量异常评估设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机可读指令,其中:The power consumption abnormality evaluation device includes: a memory, a processor, and computer-readable instructions stored on the memory and executable on the processor, wherein:
所述计算机可读指令被所述处理器执行时实现如上所述的用电量异常评估方法的步骤。When the computer-readable instructions are executed by the processor, the steps of the power consumption abnormality assessment method described above are implemented.
此外,为实现上述目的,本申请还提供计算机存储介质;In addition, in order to achieve the above purpose, the present application also provides a computer storage medium;
所述计算机存储介质上存储有计算机可读指令,所述计算机可读指令被处理器执行时实现如上述的用电量异常评估方法的步骤。Computer-readable instructions are stored on the computer storage medium, and when the computer-readable instructions are executed by a processor, the steps of the method for evaluating abnormality in power consumption as described above are implemented.
本申请实施例提出的一种用电量异常评估方法、装置、设备和计算机存储介质,在本申请中预先建立用电计算回归模型,在服务器接收用电量异常评估请求时,获取用电量异常评估请求当前的实际用电值,基于预设回归模型计算出一个理论用电值,然后实际用电值与理论用电值进行比较,判断用电量是否异常,本实施例中用电异常评估不用依赖于历史数据,可以有效地排除历史用电异常值对用电异常评估的影响,提高异常评估的准确率,与此同时,服务器利用预设回归模型进行电量异常评估,使得用电量的异常评估步骤更加简单,评估效率更高。A method, device, equipment, and computer storage medium for evaluating abnormal power consumption according to the embodiments of the present application. In this application, a power consumption calculation regression model is established in advance. When the server receives a request for abnormal power consumption evaluation, the power consumption is obtained. The abnormality evaluation requests the current actual power consumption value, calculates a theoretical power consumption value based on a preset regression model, and then compares the actual power consumption value with the theoretical power consumption value to determine whether the power consumption is abnormal. In this embodiment, the power consumption is abnormal. The evaluation does not rely on historical data, which can effectively exclude the impact of historical power abnormal values on the power abnormal evaluation and improve the accuracy of the abnormal evaluation. At the same time, the server uses a preset regression model to perform power abnormal evaluation to make the power consumption The anomaly evaluation procedure is simpler and more efficient.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1是本申请实施例方案涉及的硬件运行环境的装置结构示意图;FIG. 1 is a schematic structural diagram of a device for a hardware operating environment involved in a solution according to an embodiment of the present application; FIG.
图2为本申请用电量异常评估方法第一实施例的流程示意图;FIG. 2 is a schematic flowchart of a first embodiment of an abnormality assessment method for power consumption of this application;
图3为图2中用电量异常评估方法的步骤S40的细化流程示意图;FIG. 3 is a detailed flowchart of step S40 of the method for evaluating abnormality of power consumption in FIG. 2;
图4为本申请用电量异常评估装置一实施例的功能模块示意图。FIG. 4 is a schematic diagram of functional modules of an embodiment of an abnormality assessment device for power consumption of the present application.
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features and advantages of the purpose of this application will be further described with reference to the embodiments and the drawings.
具体实施方式detailed description
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。It should be understood that the specific embodiments described herein are only used to explain the application, and are not used to limit the application.
如图1所示,图1是本申请实施例方案涉及的硬件运行环境的服务器(又叫用电量异常评估设备,其中,用电量异常评估设备可以是由单独的用电量异常评估装置构成,也可以是由其他装置与用电量异常评估装置组合形成)结构示意图。As shown in FIG. 1, FIG. 1 is a server (also called a power consumption abnormality evaluation device) of a hardware operating environment involved in the solution of the embodiment of the present application. The power consumption abnormality evaluation device may be a separate power consumption abnormality evaluation device. The structure may also be a schematic diagram of the structure formed by combining other devices with an abnormality evaluation device for power consumption.
本申请实施例服务器指一个管理资源并为用户提供服务的计算机,通常分为文件服务器、数据库服务器和应用程序服务器。运行以上软件的计算机或计算机系统也被称为服务器。相对于普通PC(personal computer)个人计算机来说,服务器在稳定性、安全性、性能等方面都要求较高;如图1所示,该服务器可以包括:处理器1001,例如中央处理器(Central Processing Unit,CPU),网络接口1004,用户接口1003,存储器1005,通信总线1002、芯片组、磁盘系统、网络等硬件等。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如无线保真WIreless-FIdelity,WIFI接口)。存储器1005可以是高速随机存取存储器(random access memory,RAM),也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。In the embodiment of the present application, a server refers to a computer that manages resources and provides services to users, and is generally divided into a file server, a database server, and an application server. A computer or computer system running the above software is also called a server. Compared with ordinary PC (personal For a personal computer, the server requires higher stability, security, and performance. As shown in Figure 1, the server may include a processor 1001, such as a central processing unit (Central Processing Unit, CPU), network interface 1004, user interface 1003, memory 1005, communication bus 1002, chipset, disk system, network and other hardware. The communication bus 1002 is used to implement connection and communication between these components. The user interface 1003 may include a display, an input unit such as a keyboard, and the optional user interface 1003 may further include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity WIreless-FIdelity, WIFI interface). The memory 1005 may be a high-speed random access memory (random access memory (RAM), or non-volatile memory), such as disk storage. The memory 1005 may optionally be a storage device independent of the foregoing processor 1001.
可选地,服务器还可以包括摄像头、RF(Radio Frequency,射频)电路,传感器、音频电路、WiFi模块;输入单元,比显示屏,触摸屏;网络接口可选除无线接口中除WiFi外,蓝牙等等。本领域技术人员可以理解,图1中示出的服务器结构并不构成对服务器的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Optionally, the server may further include a camera, RF (Radio Frequency (radio frequency) circuit, sensor, audio circuit, WiFi module; input unit, display screen, touch screen; optional network interface except wireless interface except WiFi, Bluetooth and so on. Those skilled in the art can understand that the server structure shown in FIG. 1 does not constitute a limitation on the server, and may include more or fewer components than shown in the figure, or some components may be combined, or different components may be arranged.
如图1所示,该计算机软件产品存储在一个存储介质(存储介质:又叫计算机存储介质、计算机介质、可读介质、可读存储介质、计算机可读存储介质或者直接叫介质等,如RAM、磁碟、光盘,存储介质是指非易失性可读存储介质)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法,作为一种计算机存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及计算机可读指令。As shown in FIG. 1, the computer software product is stored in a storage medium (storage medium: also called computer storage medium, computer medium, readable medium, readable storage medium, computer-readable storage medium, or directly called medium, etc., such as RAM , Magnetic disks, optical disks, storage media refers to non-volatile readable storage media), including a number of instructions for a terminal device (can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute this In the method described in the various embodiments of the application, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and computer-readable instructions.
在图1所示的服务器中,网络接口1004主要用于连接后台数据库,与后台数据库进行数据通信;用户接口1003主要用于连接客户端(客户端,又叫用户端或终端,本申请实施例终端可以固定终端,也可以是移动终端,在此不再赘述),与客户端进行数据通信;而处理器1001可以用于调用存储器1005中存储的计算机可读指令,并执行本申请以下实施例提供的用电量异常评估方法中的步骤。In the server shown in FIG. 1, the network interface 1004 is mainly used to connect to a background database and perform data communication with the background database; the user interface 1003 is mainly used to connect to a client (client, also called a client or a terminal. The terminal may be a fixed terminal or a mobile terminal, which is not described in detail here), and performs data communication with the client; and the processor 1001 may be used to call computer-readable instructions stored in the memory 1005 and execute the following embodiments of the present application Provides steps in the method for assessing abnormal power consumption.
本申请用电量异常评估方法的第一实施例中,所述用电量异常评估方法包括以下步骤:In the first embodiment of the method for evaluating abnormality in power consumption in the present application, the method for evaluating abnormality in power consumption includes the following steps:
接收用电量异常评估请求,获取所述用电量异常评估请求中的时间节点信息,并获取所述时间节点信息相关的用电特征信息;Receiving a power consumption abnormality evaluation request, acquiring time node information in the power consumption abnormality evaluation request, and acquiring power consumption characteristic information related to the time node information;
将所述用电特征信息和所述时间节点信息输入至预设回归模型中,得到所述时间节点信息对应的理论用电量;Inputting the power consumption characteristic information and the time node information into a preset regression model to obtain a theoretical power consumption corresponding to the time node information;
获取所述时间节点信息对应的实际用电量,并将所述实际用电量和所述理论用电量进行比较,以判断所述实际用电量是否异常;Acquiring the actual power consumption corresponding to the time node information, and comparing the actual power consumption with the theoretical power consumption to determine whether the actual power consumption is abnormal;
若所述实际用电量异常,则生成用电异常提示信息。If the actual power consumption is abnormal, the power consumption abnormality prompt information is generated.
在第一实施例的步骤之前,需要开发人员先建立预设回归模型,服务器才可以基于该预设回归模型计算一个理论用电量,以根据理论用电量和实际用电量比较,以进行实际用户量异常的评估,具体建立预设回归模型的步骤,包括:Before the steps of the first embodiment, a developer needs to establish a preset regression model before the server can calculate a theoretical power consumption based on the preset regression model to compare the theoretical power consumption with the actual power consumption for Evaluation of abnormal user volume, specific steps for establishing a preset regression model, including:
步骤S01,从预设电量样本集中获取电量样本,将各所述电量样本按预设分类规则进行分类,得到n个电量样本子集。Step S01: Obtain a power sample from a preset power sample set, classify each of the power samples according to a preset classification rule, and obtain n power sample subsets.
服务器从预设电量样本集中获取电量样本,其中,预设电量样本集是指预先存储的历史用电相关信息,服务器从预设电量样本集中获取包含的电量样本,并将各个电量样本按预设分类规则进行分类,得到n个电量样本子集;其中,预设分类规则是指预先设置的电量样本分类规则,例如,预设分类规则设置为采集时间分类规则,即,服务器按照各个电量样本的采集时间进行分类,得到各个年份、各个月份对应的电量样本子集。The server obtains a power sample from a preset power sample set, where the preset power sample set refers to pre-stored historical power related information, the server obtains the included power samples from the preset power sample set, and sets each power sample as preset The classification rules are used to classify and obtain n subsets of power samples. The preset classification rules refer to the preset power sample classification rules. For example, the preset classification rules are set to the collection time classification rules. The collection time is classified to obtain a subset of power samples corresponding to each year and month.
例如,服务器将采集的历史用电量和相关信息:2018年6月5日星期二下午13:00-到13:05分的用电量,室外温度30摄氏度,地址广东省深圳室xxx办公楼,工作日等等的信息保存至存储器;在接收到预设回归模型的建立请求时,服务器从存储器中随机抽取一定数量的历史用电量及其相关信息作为电量样本,并将抽取的各个电量样本组成预设电量样本集,服务器将预设电量样本集中的各个电量样本按照电量样本采集时间进行分类,得到不同时间段的n个电量样本子集,其中,各个电量样本子集中的电量样本可能相同也可能不同。For example, the server will collect the historical power consumption and related information: the power consumption on Tuesday, June 5, 2018 from 13:00 to 13:05, the outdoor temperature is 30 degrees Celsius, and the address is xxx office building in Shenzhen Room, Guangdong Province. Information such as the working day is saved to the memory; when receiving a request to establish a preset regression model, the server randomly extracts a certain amount of historical power consumption and its related information from the memory as a power sample, and uses the extracted power samples Forms a preset power sample set, and the server classifies each power sample in the preset power sample set according to the power sample collection time to obtain n power sample subsets in different time periods, where the power samples in each power sample subset may be the same May also be different.
步骤S02,针对每一个所述电量样本子集执行如下步骤:将所述电量样本子集作为目标电量样本子集,基于所述目标电量样本子集生成初始回归模型,获取所述n个电量样本子集中去除所述目标电量样本子集的其他电量样本子集,利用所述其他电量样本子集对所述初始回归模型进行迭代训练,得到所述目标电量样本子集对应的回归子模型。Step S02, the following steps are performed for each of the power sample subsets: using the power sample subset as a target power sample subset, generating an initial regression model based on the target power sample subset, and obtaining the n power samples The other power sample subsets of the target power sample subset are removed from the subset, and the initial regression model is iteratively trained using the other power sample subsets to obtain a regression submodel corresponding to the target power sample subset.
服务器分别将每一个电量样本子集作为目标电量样本子集,并根据目标电量样本子集生成初始回归模型,其中,初始回归模型的是用电量关于用电特征数据的函数,建立初始回归模型是提取目标电量样本子集中的各个样本的特征数据,特征数据包括:时间数据、温度数据、节假日数据,根据预设模型确定时间数据、温度数据、节假日数据与用电量的函数关系,并将该函数关系作为初始回归模型;具体地,根据经验预先设置了一个特征数据与用电量的模型,在建立初始回归模型时,获取目标电量样本子集中的各个电量样本,并将各个电量样本通过等划分状态确定参数初始值,并将确定的参数初始值赋值给预设模型,以得到初始回归模型;在初始回归模型建立完成后;设置最大的迭代次数和收敛阈值;服务器用除所述目标电量样本子集之外的其他电量样本子集对所述初始回归模型进行迭代训练,直到达到先前设置的迭代次数或已经收敛,此时,可得到最优模型参数,进而根据该最优模型参数获得到所述目标电量样本子集对应的回归子模型。The server uses each of the power sample subsets as a target power sample subset, and generates an initial regression model based on the target power sample subset. The initial regression model is a function of power consumption and power characteristic data to establish an initial regression model. It is the characteristic data of each sample in the target power sample subset. The characteristic data includes: time data, temperature data, and holiday data. The function relationship between time data, temperature data, holiday data, and power consumption is determined according to a preset model. This functional relationship is used as the initial regression model; specifically, a model of characteristic data and power consumption is set in advance according to experience. When the initial regression model is established, each power sample in the target power sample subset is obtained, and each power sample is passed Determine the initial value of the parameter by equal division status, and assign the determined initial value of the parameter to the preset model to obtain the initial regression model; after the initial regression model is completed; set the maximum number of iterations and the convergence threshold; the server uses to divide the target Charges other than a subset of charge samples In this subset, iterative training is performed on the initial regression model until the number of iterations previously set or has been converged. At this time, the optimal model parameters can be obtained, and then the target power sample subset is obtained according to the optimal model parameters. Corresponding regression model.
即,本实施例服务器将时间节点信息、是否为节假日和温度信息的作为特征数据,并为各个特征数据设置相对应的权重,以生成每一个目标电量样本子集对应的初始回归模型,其中,生成的初始回归模型跟上述的特征数据相关。That is, the server in this embodiment uses time node information, whether it is a holiday and temperature information as feature data, and sets corresponding weights for each feature data to generate an initial regression model corresponding to each target power sample subset. The generated initial regression model is related to the above characteristic data.
在初始回归模型生成完成之后,服务器利用除目标电量样本子集之外的n-1个电量样本子集对初始回归模型进行迭代训练,服务器生成每一个目标电量样本子集对应的回归子模型。After the initial regression model is generated, the server iteratively trains the initial regression model using n-1 power sample subsets other than the target power sample subset, and the server generates a regression submodel corresponding to each target power sample subset.
步骤S03,将每个所述目标电量样本子集对应的所述回归子模型进行封装,生成预设回归模型。In step S03, the regression sub-model corresponding to each of the target power sample subsets is encapsulated to generate a preset regression model.
服务器获取每个目标电量样本子集对应的所述回归子模型,将各个回归子模型进行封装,生成预设回归模型,即,本实施例中将训练得到n个回归子模型封装为一个预设回归模型。The server obtains the regression submodel corresponding to each target power sample subset, encapsulates each regression submodel, and generates a preset regression model, that is, in this embodiment, the n regression submodels obtained by training are packaged as a preset Regression model.
在本实施例中根据历史用电信息建立生成预设回归模型。以基于生成的预设回归预测进行用电量异常评估,基于生成的预设回归预测进行用电量异常评估可以在有效考虑时序特征的同时并不过多引入时序对时间点的强影响关系,可以有效地检测出异常点,此外,本实施里中在预设回归模型建立的场景下的采用建立多个回归子模型的方式,有效降低了基于预设回归模型进行用电量理论值计算过程中可能产生的过拟合现象。In this embodiment, a preset regression model is created and generated based on historical power consumption information. The power consumption abnormality evaluation is performed based on the generated preset regression prediction, and the power consumption abnormality evaluation based on the generated preset regression prediction can effectively consider the time series characteristics without introducing too much the strong influence of time series on the time point. Effectively detect abnormal points. In addition, in this implementation, the method of establishing multiple regression sub-models is used in the scenario where a preset regression model is established, which effectively reduces the process of calculating the theoretical value of power consumption based on the preset regression model. Possible overfitting.
参照图2,本申请一种用电量异常评估方法的第一实施例中,所述用电量异常评估方法包括: Referring to FIG. 2, in a first embodiment of a method for evaluating abnormality in power consumption according to the present application, the method for evaluating abnormality in power consumption includes:
步骤S10,接收用电量异常评估请求,获取所述用电量异常评估请求中的时间节点信息,并获取所述时间节点信息相关的用电特征信息。Step S10: Receive a power consumption abnormality evaluation request, acquire time node information in the power consumption abnormality evaluation request, and acquire power consumption characteristic information related to the time node information.
用户在终端上触发用电量异常评估请求,终端将电量异常评估请求发送至服务器,服务器接收到用电量异常评估请求时,服务器获取用电量异常评估请求中的时间节点信息,并获取所述时间节点信息相关的用电特征信息,即,服务器在接收用电量异常评估请求时,获取用电量异常评估请求中的包含的时间节点,并采集该时间节点对应的温度信息、节假日信息;将所述温度信息和所述节假日信息作为所述时间节点信息相关的用电特征信息。The user triggers a power consumption abnormality evaluation request on the terminal. The terminal sends the power consumption abnormality evaluation request to the server. When the server receives the power consumption abnormality evaluation request, the server obtains the time node information in the power consumption abnormality evaluation request and obtains the The power consumption characteristic information related to the time node information, that is, when the server receives the power consumption abnormality evaluation request, the server obtains the time node included in the power consumption abnormality evaluation request, and collects temperature information and holiday information corresponding to the time node. ; Using the temperature information and the holiday information as the power consumption characteristic information related to the time node information.
例如,服务器接收用电量异常评估请求,获取用电量异常评估请求中的时间节点信息:2018年5月2日,服务器获取该时间节点相关的用电特征信息包括:周三,上班日、位置为广东省深圳市xxx办公楼和气温30摄氏度,即,本实施例中采集的特征信息会影响用电量异常评估,即,是否为休息日会对广东省深圳市xxx办公楼用电量的多少产生影响,气温的高低也会对用电量产生影响。For example, the server receives the power consumption abnormality evaluation request and obtains the time node information in the power consumption abnormality evaluation request: on May 2, 2018, the server obtains the power consumption characteristic information related to the time node including: Wednesday, work day, location It is the Shenzhen xxx office building in Guangdong Province and the temperature is 30 degrees Celsius, that is, the characteristic information collected in this embodiment will affect the abnormal evaluation of power consumption, that is, whether the rest day will affect the power consumption of the Shenzhen xxx office building in Guangdong Province. To some extent, the temperature will also affect the electricity consumption.
步骤S20,将所述用电特征信息和所述时间节点信息输入至预设回归模型中,得到所述时间节点信息对应的理论用电量。In step S20, the power consumption characteristic information and the time node information are input into a preset regression model to obtain a theoretical power consumption corresponding to the time node information.
服务器将用电特征信息和时间节点信息分别输入至所述预设回归模型的各个回归子模型中,得到每一个所述回归子模型对应的基础用电量;即,服务器将用电量异常评估请求中的用电特征信息和时间节点分别输入每一个回归子模型中,根据各个回归子模型中的计算公式得到n个基础用电量,服务器将n个基础用电量进行累加求和并计算平均值,并将n个基础用电量累加求和得到的平均值作为该时间节点信息对应的理论用电量。The server inputs the power consumption characteristic information and time node information to each regression sub-model of the preset regression model to obtain the basic power consumption corresponding to each of the regression sub-models; that is, the server evaluates the power consumption abnormally. The power consumption characteristic information and time node in the request are input into each regression sub-model, and n basic power consumptions are obtained according to the calculation formula in each regression sub-model. The average value, and the average value obtained by adding and summing the n basic power consumptions as the theoretical power consumption corresponding to the time node information.
例如,服务器将时间节点和用电特征信息中的温度、节假日等信息输入至各个回归子模型,各个回归子模型根据输入的信息进行计算得到基础用电量k1、k2直至kn;理论用电量k=(k1+k2+…+kn)/n。For example, the server inputs information such as temperature and holidays in time node and power consumption characteristic information to each regression sub-model, and each regression sub-model calculates the basic power consumption k 1 , k 2 up to k n according to the input information; Power consumption k = (k 1 + k 2 +… + k n ) / n.
步骤S30,获取所述时间节点信息对应的实际用电量,并将所述实际用电量和所述理论用电量进行比较,以判断所述实际用电量是否异常。Step S30: Acquire the actual power consumption corresponding to the time node information, and compare the actual power consumption with the theoretical power consumption to determine whether the actual power consumption is abnormal.
服务器获取时间节点信息对应的实际用电量,其中,实际用电量是指服务器中设置的检测设备实时检测得到的该时间节点的实际用电量;服务器将所述实际用电量和所述理论用电量进行比较,得到实际用电量和理论用电量的比对结果,并根据比对结果判断所述实际用电量是否异常。其中,服务器根据实际用电量和理论用电量的比对结果,判断所述实际用电量是否异常的可以采用不同的实现方式,具体地:The server obtains the actual power consumption corresponding to the time node information, where the actual power consumption refers to the actual power consumption of the time node obtained by the detection device installed in the server in real time; The theoretical power consumption is compared to obtain a comparison result between the actual power consumption and the theoretical power consumption, and whether the actual power consumption is abnormal according to the comparison result. Wherein, according to a comparison result between the actual power consumption and the theoretical power consumption, the server may adopt different implementation methods to determine whether the actual power consumption is abnormal, specifically:
例如:将实际用电量和理论用电量进行比值运算,根据实际用电量和理论用电量的比值进行异常判定,即,For example: perform a ratio calculation between the actual power consumption and the theoretical power consumption, and perform an abnormality determination based on the ratio between the actual power consumption and the theoretical power consumption, that is,
步骤a1,获取所述时间节点信息对应的实际用电量,计算所述实际用电量与所述理论用电量的比值;Step a1: Obtain an actual power consumption corresponding to the time node information, and calculate a ratio between the actual power consumption and the theoretical power consumption;
步骤a2,若所述实际用电量和所述理论用电量的比值超过预设阈值,则判定所述实际用电量异常;Step a2, if the ratio of the actual power consumption to the theoretical power consumption exceeds a preset threshold, determine that the actual power consumption is abnormal;
步骤a3,若所述实际用电量和所述理论用电量的比值不超过预设阈值,则判定所述实际用电量正常。In step a3, if the ratio between the actual power consumption and the theoretical power consumption does not exceed a preset threshold, it is determined that the actual power consumption is normal.
在本实施例中将服务器获取所述时间节点信息对应的实际用电量,并计算所述实际用电量与所述理论用电量的比值;在所述实际用电量和所述理论用电量的比值超过预设阈值,则服务器判定所述实际用电量异常;在所述实际用电量和所述理论用电量的比值不超过预设阈值,则服务器判定所述实际用电量正常;本实施例中异常判定的计算较为简单,得到的异常判定结果直观准确。In this embodiment, the server acquires the actual power consumption corresponding to the time node information, and calculates a ratio between the actual power consumption and the theoretical power consumption; the actual power consumption and the theoretical power consumption If the ratio of power exceeds a preset threshold, the server determines that the actual power consumption is abnormal; when the ratio of the actual power to the theoretical power does not exceed a preset threshold, the server determines the actual power The quantity is normal; the calculation of the abnormality determination in this embodiment is relatively simple, and the obtained abnormality determination result is intuitive and accurate.
步骤S40,若所述实际用电量异常,则生成用电异常提示信息。In step S40, if the actual power consumption is abnormal, a power consumption abnormality prompt message is generated.
在服务器根据上述用电量异常评估步骤,得到实际用电量异常的结果后,服务器生成用电异常提示信息。并将用电异常提示信息发送至终端,以使终端用户根据用电异常提示信息进行查看。After the server obtains a result of abnormal actual power consumption according to the foregoing power consumption abnormality evaluation step, the server generates a power consumption abnormality prompt message. The prompt information of the abnormal power consumption is sent to the terminal, so that the end user can view the prompt information of the abnormal power consumption.
在本实施例中预先建立用电计算回归模型,在服务器接收用电量异常评估请求时,获取用电量异常评估请求当前的实际用电值,基于预设回归模型计算出一个理论用电值,然后实际用电值与理论用电值进行比较,判断用电量是否异常,本实施例中用电异常评估不用依赖于历史数据,可以有效地排除历史用电异常值对用电异常评估的影响,提高异常评估的准确率,与此同时,服务器利用预设回归模型进行电量异常评估,使得用电量的异常评估步骤更加简单,评估效率更高。In this embodiment, a power consumption calculation regression model is established in advance. When the server receives the power consumption abnormality evaluation request, the current actual power consumption value of the power consumption abnormality evaluation request is obtained, and a theoretical power consumption value is calculated based on the preset regression model. Then, the actual power consumption value is compared with the theoretical power consumption value to determine whether the power consumption is abnormal. In this embodiment, the evaluation of the power consumption abnormality does not rely on historical data, which can effectively exclude the historical power consumption abnormality value from evaluating the power abnormality Impact, improve the accuracy of abnormality assessment, at the same time, the server uses a preset regression model to perform power abnormality assessment, making the abnormality assessment steps for power consumption simpler and more efficient.
参照图3,在本申请第一实施例的基础上提出了本申请用电量异常评估方法的本实施例,本实施例是第一实施例中步骤S40的细化,本实施例中在确定用电异常时,获取对应的历史信息,以根据确定用电异常的具体情况。Referring to FIG. 3, this embodiment of the method for evaluating abnormality in power consumption of this application is proposed on the basis of the first embodiment of this application. This embodiment is a refinement of step S40 in the first embodiment. When the power consumption is abnormal, the corresponding historical information is acquired to determine the specific situation of the abnormal power consumption.
所述用电量异常评估方法包括:The method for evaluating abnormal power consumption includes:
步骤S41,若所述实际用电量异常,则获取所述时间节点信息对应的历史同期用电量。In step S41, if the actual power consumption is abnormal, the historical synchronization power consumption corresponding to the time node information is obtained.
若服务器确定实际用电量异常,则服务器获取时间节点信息对应的历史同期用电量,例如,实际用电量异常对应的时间节点为:2018年5月2日下午13时,则服务器获取2017年5月2日下午13日的用电量作为该时间节点信息对应的历史同期用电量。If the server determines that the actual power consumption is abnormal, the server obtains the historical power consumption corresponding to the time node information. For example, the time node corresponding to the actual power consumption abnormality is: at 13:00 on May 2, 2018, the server obtains 2017 The power consumption on the afternoon of May 2, 2013 is the historical power consumption corresponding to the node information at that time.
步骤S42,将所述实际用电量与所述历史用电量按预设同期公式计算,得到同比增长率。Step S42: Calculate the actual power consumption and the historical power consumption according to a preset synchronization formula to obtain a year-on-year growth rate.
服务器将实际用电量与历史用电量按预设同期公式计算,得到同比增长率,其中,预设同期公式是指预先设置的同比增长率的计算公式,同比增长率=(本期数-同期数)÷同期数*100%,即,服务器将所述实际用电量与所述历史用电量按预设同期公式计算,得到同比增长率。The server calculates the actual power consumption and historical power consumption according to a preset period formula to obtain the year-on-year growth rate. The preset period formula is a preset formula for calculating the year-on-year growth rate. Synchronous number) ÷ Synchronous number * 100%, that is, the server calculates the actual power consumption and the historical power consumption according to a preset synchronization formula to obtain a year-on-year growth rate.
步骤S43,基于所述同比增长率和所述实际用电量生成用电异常提示信息,以供用户进行查看。Step S43: Generate power consumption abnormality prompt information based on the year-on-year growth rate and the actual power consumption for users to view.
服务器将计算得到的同比增长率和实际用电量生成用电异常提示信息,例如,服务器将同比增长率和实际用电量输入至异常提示模板中,并生成用电异常提示信息,以供用户进行查看。The server generates the power consumption abnormality prompt information based on the calculated year-on-year growth rate and actual power consumption. For example, the server inputs the year-on-year growth rate and actual power consumption into the abnormality prompt template, and generates power consumption abnormality prompt information for users. Check it out.
在本实施例中用户可以根据提示信息进行用电异常的排查,减少异常用电的情况出现,同时避免断电带来的不良影响。In this embodiment, the user can check the abnormal power consumption according to the prompt information, reduce the occurrence of abnormal power consumption, and avoid the adverse effects caused by power failure.
进一步的,本申请用电量异常评估方法的第三实施例中,本实施例是在第一实施例的基础上提出的,在本实施例中若用电没有异常,则所述用电量异常评估方法包括:Further, in the third embodiment of the method for evaluating abnormality of power consumption in this application, this embodiment is proposed on the basis of the first embodiment. In this embodiment, if there is no abnormality in power consumption, the power consumption is Anomaly assessment methods include:
步骤S50,若所述实际用电量正常,则将所述时间节点信息及所述时间节点信息相关的用电特征信息作为更新电量样本。Step S50: if the actual power consumption is normal, use the time node information and the power consumption characteristic information related to the time node information as an updated power sample.
若服务器确定实际用电量正常,则服务器获取该实际用电量对应的时间节点信息,并获取该时间节点信息相关的用电特征信息作为更新电量样本,与根据该更新电量样本更新第一实施例中的预设回归模型。If the server determines that the actual power consumption is normal, the server obtains time node information corresponding to the actual power consumption, and obtains power consumption characteristic information related to the time node information as an updated power sample, and updates the first implementation according to the updated power sample The preset regression model in the example.
步骤S60,将所述更新电量样本保存至所述预设电量样本集,得到更新电量样本集。Step S60: Save the updated power sample to the preset power sample set to obtain an updated power sample set.
服务器将更新电量样本保存至所述预设电量样本集,得到更新电量样本集,在更新电量样本添加到预设电量样本集中之后,服务器在更新电量样本上添加标记信息,以获取到更新电量样本。The server saves the updated power sample to the preset power sample set to obtain the updated power sample set. After the updated power sample is added to the preset power sample set, the server adds tag information to the updated power sample to obtain the updated power sample. .
步骤S70,在接收到预设回归模型更新请求时,获取所述更新电量样本集中的所述更新电量样本。Step S70: When receiving a preset regression model update request, obtain the updated power sample in the updated power sample set.
用户基于预设回归模型触发更新请求,在服务器接收到预设回归模型更新请求时,获取所述更新电量样本集中的获取具有标记信息的更新电量样本。The user triggers an update request based on a preset regression model, and when the server receives the preset regression model update request, obtains an updated power sample with tag information in the updated power sample set.
步骤S80,基于所述更新电量样本调整所述预设回归模型中的各个回归子模型,得到更新回归子模型,将各所述更新回归子模型进行封装,生成更新回归模型。Step S80: Adjust each regression sub-model in the preset regression model based on the updated power sample to obtain an updated regression sub-model, package each of the updated regression sub-models, and generate an updated regression model.
服务器获取更新电量样本对应的时间节点信息相关的用电特征信息,并根据获取的时间节点信息相关的用电特征信息,对预设回归模型中的各个回归子模型中的相关参数进行调整,得到更新回归子模型,将各所述更新回归子模型进行封装,生成更新回归模型。The server obtains the power consumption characteristic information related to the time node information corresponding to the updated power sample, and adjusts the relevant parameters in each regression sub-model in the preset regression model according to the power consumption characteristic information related to the obtained time node information. An update regression sub-model, which encapsulates each of the update regression sub-models to generate an update regression model.
在本实施例中可以针对预设回归模型进行更新,使得预设回归模型具有实时性,以保证用电量异常评估的准确性。In this embodiment, the preset regression model may be updated, so that the preset regression model has real-time performance, so as to ensure the accuracy of the abnormal evaluation of power consumption.
此外,参考图4,本申请实施例还提出用电量异常评估装置一实施例,所述用电量异常评估装置,包括:In addition, referring to FIG. 4, an embodiment of the present application further provides an embodiment of an abnormality evaluation device for power consumption. The abnormality evaluation device for power consumption includes:
接收获取模块10,用于接收用电量异常评估请求,获取所述用电量异常评估请求中的时间节点信息,并获取所述时间节点信息相关的用电特征信息;The receiving and acquiring module 10 is configured to receive a power consumption abnormality evaluation request, acquire time node information in the power consumption abnormality evaluation request, and acquire power consumption characteristic information related to the time node information;
输入计算模块20,用于将所述用电特征信息和所述时间节点信息输入至预设回归模型中,得到所述时间节点信息对应的理论用电量;An input calculation module 20, configured to input the power consumption characteristic information and the time node information into a preset regression model to obtain a theoretical power consumption corresponding to the time node information;
获取判断模块30,用于获取所述时间节点信息对应的实际用电量,并将所述实际用电量和所述理论用电量进行比较,以判断所述实际用电量是否异常;The obtaining and judging module 30 is configured to obtain the actual power consumption corresponding to the time node information, and compare the actual power consumption with the theoretical power consumption to determine whether the actual power consumption is abnormal;
生成提示模块40,用于若所述实际用电量异常,则生成用电异常提示信息。The generating prompting module 40 is configured to generate prompting information of abnormal power consumption if the actual power consumption is abnormal.
可选地,所述用电量异常评估装置,包括:Optionally, the apparatus for evaluating abnormality in power consumption includes:
样本分类模块,用于从预设电量样本集中获取电量样本,将各所述电量样本按预设分类规则进行分类,得到n个电量样本子集;A sample classification module, configured to obtain a power sample from a preset power sample set, and classify each of the power samples according to a preset classification rule to obtain n subsets of power samples;
针对每一个所述电量样本子集执行如下步骤:The following steps are performed for each of the power sample subsets:
子模型生成模块,用于将所述电量样本子集作为目标电量样本子集,基于所述目标电量样本子集生成初始回归模型,获取所述n个电量样本子集中去除所述目标电量样本子集的其他电量样本子集,利用所述其他电量样本子集对所述初始回归模型进行迭代训练,得到所述目标电量样本子集对应的回归子模型;A sub-model generating module, configured to use the power sample subset as a target power sample subset, generate an initial regression model based on the target power sample subset, and obtain the n power sample subsets to remove the target power sample subset Other power sample subsets of the set, using the other power sample subsets to iteratively train the initial regression model to obtain a regression submodel corresponding to the target power sample subset;
模型封装模块,用于将每个所述目标电量样本子集对应的所述回归子模型进行封装,生成预设回归模型。A model packaging module is configured to package the regression sub-model corresponding to each of the target power sample subsets to generate a preset regression model.
可选地,所述输入计算模块20,包括:Optionally, the input calculation module 20 includes:
信息输入单元,用于将所述用电特征信息和所述时间节点信息分别输入至所述预设回归模型的各个所述回归子模型中,得到每一个所述回归子模型对应的基础用电量;An information input unit is configured to input the power consumption characteristic information and the time node information into each of the regression sub-models of the preset regression model to obtain a basic power consumption corresponding to each of the regression sub-models. the amount;
理论值确定单元,用于将各所述基础用电量进行求和并计算平均值,得到所述时间节点信息对应的理论用电量。The theoretical value determining unit is configured to sum each of the basic power consumptions and calculate an average value to obtain a theoretical power consumption corresponding to the time node information.
可选地,所述接收获取模块10,包括:Optionally, the receiving and acquiring module 10 includes:
采集单元,用于接收用电量异常评估请求,获取所述用电量异常评估请求中的时间节点信息,并采集所述时间节点信息对应的温度信息、节假日信息;A collection unit, configured to receive a power consumption abnormality evaluation request, acquire time node information in the power consumption abnormality evaluation request, and collect temperature information and holiday information corresponding to the time node information;
特征数据确定单元,用于将所述温度信息和所述节假日信息作为所述时间节点信息相关的用电特征信息。A characteristic data determining unit, configured to use the temperature information and the holiday information as power consumption characteristic information related to the time node information.
可选地,所述获取判断模块30,包括:Optionally, the acquisition judgment module 30 includes:
获取比对单元,用于获取所述时间节点信息对应的实际用电量,计算所述实际用电量与所述理论用电量的比值;An obtaining comparison unit, configured to obtain the actual power consumption corresponding to the time node information, and calculate a ratio between the actual power consumption and the theoretical power consumption;
第一判定单元,用于若所述实际用电量和所述理论用电量的比值超过预设阈值,则判定所述实际用电量异常;A first determining unit, configured to determine that the actual power consumption is abnormal if a ratio between the actual power consumption and the theoretical power consumption exceeds a preset threshold;
第二判定单元,用于若所述实际用电量和所述理论用电量的比值不超过预设阈值,则判定所述实际用电量正常。A second determination unit is configured to determine that the actual power consumption is normal if a ratio between the actual power consumption and the theoretical power consumption does not exceed a preset threshold.
可选地,所述生成提示模块40,包括:Optionally, the generating prompt module 40 includes:
数据获取单元,用于若所述实际用电量异常,则获取所述时间节点信息对应的历史同期用电量;A data acquisition unit, configured to acquire historical power consumption in the corresponding period corresponding to the time node information if the actual power consumption is abnormal;
变化率计算单元,用于将所述实际用电量与所述历史用电量按预设同期公式计算,得到同比增长率;A change rate calculation unit, configured to calculate the actual power consumption and the historical power consumption according to a preset synchronization formula to obtain a year-on-year growth rate;
生成单元,用于基于所述同比增长率和所述实际用电量生成用电异常提示信息,以供用户进行查看。A generating unit is configured to generate power consumption abnormality prompt information based on the year-on-year growth rate and the actual power consumption for a user to view.
可选地,所述用电量异常评估装置,还包括:Optionally, the apparatus for evaluating abnormality in power consumption further includes:
样本处理模块,用于若所述实际用电量正常,则将所述时间节点信息及所述时间节点信息相关的用电特征信息作为更新电量样本;A sample processing module, configured to use the time node information and the power consumption characteristic information related to the time node information as an updated power sample if the actual power consumption is normal;
样本保存模块,用于将所述更新电量样本保存至所述预设电量样本集,得到更新电量样本集;A sample saving module, configured to save the updated power sample to the preset power sample set to obtain an updated power sample set;
接收更新模块,用于在接收到预设回归模型更新请求时,获取所述更新电量样本集中的所述更新电量样本;A receiving update module, configured to obtain the updated power sample in the updated power sample set when a preset regression model update request is received;
模型更新模块,用于基于所述更新电量样本调整所述预设回归模型中的各个回归子模型,得到更新回归子模型,将各所述更新回归子模型进行封装,生成更新回归模型。A model update module is configured to adjust each regression sub-model in the preset regression model based on the updated power sample, obtain an updated regression sub-model, and package each of the updated regression sub-models to generate an updated regression model.
其中,用电量异常评估装置的各个功能模块实现的步骤可参照本申请用电量异常评估方法的各个实施例,此处不再赘述。For the steps implemented by the functional modules of the power consumption abnormality evaluation device, reference may be made to various embodiments of the power consumption abnormality evaluation method of the present application, and details are not described herein again.
此外,本申请实施例还提出一种计算机存储介质。In addition, an embodiment of the present application also provides a computer storage medium.
所述计算机存储介质上存储有计算机可读指令,所述计算机可读指令被处理器执行时实现上述实施例提供的用电量异常评估方法中的操作。Computer-readable instructions are stored on the computer storage medium, and when the computer-readable instructions are executed by a processor, the operations in the method for evaluating abnormality in power consumption provided by the foregoing embodiments are implemented.
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体/操作/对象与另一个实体/操作/对象区分开来,而不一定要求或者暗示这些实体/操作/对象之间存在任何这种实际的关系或者顺序;术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。It should be noted that in this article, relational terms such as first and second are used only to distinguish one entity / operation / object from another entity / operation / object, and do not necessarily require or imply these. There is any such actual relationship or order between entities / operations / objects; the terms "including", "including" or any other variation thereof are intended to cover non-exclusive inclusion, thereby making the process, method, An article or system includes not only those elements, but also other elements not explicitly listed, or elements inherent to such a process, method, article, or system. Without more restrictions, an element limited by the sentence "including a ..." does not exclude the existence of other identical elements in the process, method, article, or system that includes the element.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The above-mentioned serial numbers of the embodiments of the present application are merely for description, and do not represent the superiority or inferiority of the embodiments.
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above are only preferred embodiments of the present application, and thus do not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made by using the contents of the specification and drawings of the present application, or directly or indirectly used in other related technical fields Are included in the scope of patent protection of this application.

Claims (20)

  1. 一种用电量异常评估方法,其特征在于,所述用电量异常评估方法包括以下步骤: A method for evaluating abnormality in power consumption, characterized in that the method for evaluating abnormality in power consumption includes the following steps:
    接收用电量异常评估请求,获取所述用电量异常评估请求中的时间节点信息,并获取所述时间节点信息相关的用电特征信息;Receiving a power consumption abnormality evaluation request, acquiring time node information in the power consumption abnormality evaluation request, and acquiring power consumption characteristic information related to the time node information;
    将所述用电特征信息和所述时间节点信息输入至预设回归模型中,得到所述时间节点信息对应的理论用电量;Inputting the power consumption characteristic information and the time node information into a preset regression model to obtain a theoretical power consumption corresponding to the time node information;
    获取所述时间节点信息对应的实际用电量,并将所述实际用电量和所述理论用电量进行比较,以判断所述实际用电量是否异常;Acquiring the actual power consumption corresponding to the time node information, and comparing the actual power consumption with the theoretical power consumption to determine whether the actual power consumption is abnormal;
    若所述实际用电量异常,则生成用电异常提示信息。If the actual power consumption is abnormal, the power consumption abnormality prompt information is generated.
  2. 如权利要求1所述的用电量异常评估方法,其特征在于,所述接收用电量异常评估请求,获取所述用电量异常评估请求中的时间节点信息,并获取所述时间节点信息相关的用电特征信息的步骤之前,包括:The method for evaluating power consumption abnormality according to claim 1, wherein the receiving the power consumption abnormality evaluation request, obtaining time node information in the power consumption abnormality evaluation request, and acquiring the time node information Prior to the steps related to power usage information, include:
    从预设电量样本集中获取电量样本,将各所述电量样本按预设分类规则进行分类,得到n个电量样本子集;Obtaining power samples from a preset power sample set, classifying each of the power samples according to a preset classification rule, and obtaining n power sample subsets;
    针对每一个所述电量样本子集执行如下步骤:The following steps are performed for each of the power sample subsets:
    将所述电量样本子集作为目标电量样本子集,基于所述目标电量样本子集生成初始回归模型,获取所述n个电量样本子集中去除所述目标电量样本子集的其他电量样本子集,利用所述其他电量样本子集对所述初始回归模型进行迭代训练,得到所述目标电量样本子集对应的回归子模型;Using the power sample subset as a target power sample subset, generating an initial regression model based on the target power sample subset, and obtaining other power sample subsets in the n power sample subsets excluding the target power sample subset Using the other power sample subsets to iteratively train the initial regression model to obtain a regression submodel corresponding to the target power sample subset;
    将每个所述目标电量样本子集对应的所述回归子模型进行封装,生成预设回归模型。Encapsulating the regression sub-model corresponding to each of the target power sample subsets to generate a preset regression model.
  3. 如权利要求2所述的用电量异常评估方法,其特征在于,所述将所述用电特征信息和所述时间节点信息输入至预设回归模型中,得到所述时间节点信息对应的理论用电量的步骤,包括:The method for evaluating abnormal power consumption according to claim 2, wherein the power consumption characteristic information and the time node information are input into a preset regression model to obtain a theory corresponding to the time node information Steps to use electricity, including:
    将所述用电特征信息和所述时间节点信息分别输入至所述预设回归模型的各个所述回归子模型中,得到每一个所述回归子模型对应的基础用电量;Inputting the power consumption characteristic information and the time node information into each of the regression sub-models of the preset regression model to obtain a basic power consumption corresponding to each of the regression sub-models;
    将各所述基础用电量进行求和并计算平均值,得到所述时间节点信息对应的理论用电量。Sum the respective basic power consumptions and calculate an average value to obtain a theoretical power consumption corresponding to the time node information.
  4. 如权利要求2所述的用电量异常评估方法,其特征在于,所述获取所述时间节点信息对应的实际用电量,并将所述实际用电量和所述理论用电量进行比较,以判断所述实际用电量是否异常的步骤之后,包括:The method for evaluating abnormality of power consumption according to claim 2, wherein the actual power consumption corresponding to the time node information is obtained, and the actual power consumption and the theoretical power consumption are compared After the step of determining whether the actual power consumption is abnormal, the method includes:
    若所述实际用电量正常,则将所述时间节点信息及所述时间节点信息相关的用电特征信息作为更新电量样本;If the actual power consumption is normal, using the time node information and power characteristic information related to the time node information as an updated power sample;
    将所述更新电量样本保存至所述预设电量样本集,得到更新电量样本集;Saving the updated power sample to the preset power sample set to obtain an updated power sample set;
    在接收到预设回归模型更新请求时,获取所述更新电量样本集中的所述更新电量样本;When receiving a preset regression model update request, obtaining the updated power sample in the updated power sample set;
    基于所述更新电量样本调整所述预设回归模型中的各个回归子模型,得到更新回归子模型,将各所述更新回归子模型进行封装,生成更新回归模型。Each regression sub-model in the preset regression model is adjusted based on the updated power sample to obtain an updated regression sub-model, and each of the updated regression sub-models is packaged to generate an updated regression model.
  5. 如权利要求1所述的用电量异常评估方法,其特征在于,所述接收用电量异常评估请求,获取所述用电量异常评估请求中的时间节点信息,并获取所述时间节点信息相关的用电特征信息的步骤,包括:The method for evaluating power consumption abnormality according to claim 1, wherein the receiving the power consumption abnormality evaluation request, obtaining time node information in the power consumption abnormality evaluation request, and acquiring the time node information The steps of related power consumption characteristic information include:
    接收用电量异常评估请求,获取所述用电量异常评估请求中的时间节点信息,并采集所述时间节点信息对应的温度信息、节假日信息;Receiving a power consumption abnormality evaluation request, acquiring time node information in the power consumption abnormality evaluation request, and collecting temperature information and holiday information corresponding to the time node information;
    将所述温度信息和所述节假日信息作为所述时间节点信息相关的用电特征信息。Use the temperature information and the holiday information as the power consumption characteristic information related to the time node information.
  6. 如权利要求1所述的用电量异常评估方法,其特征在于,所述获取所述时间节点信息对应的实际用电量,并将所述实际用电量和所述理论用电量进行比较,以判断所述实际用电量是否异常的步骤,包括:The method for evaluating abnormal power consumption according to claim 1, wherein the actual power consumption corresponding to the time node information is obtained, and the actual power consumption and the theoretical power consumption are compared The steps to determine whether the actual power consumption is abnormal include:
    获取所述时间节点信息对应的实际用电量,计算所述实际用电量与所述理论用电量的比值;Acquiring the actual power consumption corresponding to the time node information, and calculating a ratio between the actual power consumption and the theoretical power consumption;
    若所述实际用电量和所述理论用电量的比值超过预设阈值,则判定所述实际用电量异常;If the ratio between the actual power consumption and the theoretical power consumption exceeds a preset threshold, determining that the actual power consumption is abnormal;
    若所述实际用电量和所述理论用电量的比值不超过预设阈值,则判定所述实际用电量正常。If the ratio between the actual power consumption and the theoretical power consumption does not exceed a preset threshold, it is determined that the actual power consumption is normal.
  7. 如权利要求1所述的用电量异常评估方法,其特征在于,所述若所述实际用电量异常,则生成用电异常提示信息的步骤,包括:The method for evaluating abnormality of power consumption according to claim 1, wherein the step of generating the prompt information of abnormality of the power consumption if the actual power consumption is abnormal, comprises:
    若所述实际用电量异常,则获取所述时间节点信息对应的历史同期用电量;If the actual power consumption is abnormal, obtaining historical power consumption corresponding to the time node information;
    将所述实际用电量与所述历史用电量按预设同期公式计算,得到同比增长率;Calculating the actual power consumption and the historical power consumption according to a preset synchronization formula to obtain a year-on-year growth rate;
    基于所述同比增长率和所述实际用电量生成用电异常提示信息,以供用户进行查看。Generate power consumption abnormality prompt information based on the year-on-year growth rate and the actual power consumption for users to view.
  8. 一种用电量异常评估装置,其特征在于,所述用电量异常评估装置包括:A power consumption abnormality evaluation device, characterized in that the power consumption abnormality evaluation device includes:
    接收获取模块,用于接收用电量异常评估请求,获取所述用电量异常评估请求中的时间节点信息,并获取所述时间节点信息相关的用电特征信息;A receiving and acquiring module, configured to receive a request for abnormal evaluation of power consumption, acquire time node information in the request for abnormal evaluation of power consumption, and obtain power consumption characteristic information related to the time node information;
    输入计算模块,用于将所述用电特征信息和所述时间节点信息输入至预设回归模型中,得到所述时间节点信息对应的理论用电量;An input calculation module, configured to input the power consumption characteristic information and the time node information into a preset regression model to obtain a theoretical power consumption corresponding to the time node information;
    获取判断模块,用于获取所述时间节点信息对应的实际用电量,并将所述实际用电量和所述理论用电量进行比较,以判断所述实际用电量是否异常;An acquisition judgment module, configured to acquire the actual power consumption corresponding to the time node information, and compare the actual power consumption with the theoretical power consumption to determine whether the actual power consumption is abnormal;
    生成提示模块,用于若所述实际用电量异常,则生成用电异常提示信息。A prompting module is configured to generate prompting information of abnormal power consumption if the actual power consumption is abnormal.
  9. 如权利要求8所述的用电量异常评估装置,其特征在于,所述用电量异常评估装置,还包括:The apparatus for evaluating abnormality in power consumption according to claim 8, further comprising:
    样本分类模块,用于从预设电量样本集中获取电量样本,将各所述电量样本按预设分类规则进行分类,得到n个电量样本子集;A sample classification module, configured to obtain a power sample from a preset power sample set, and classify each of the power samples according to a preset classification rule to obtain n subsets of power samples;
    子模型生成模块,用于针对每一个所述电量样本子集执行如下步骤:将所述电量样本子集作为目标电量样本子集,基于所述目标电量样本子集生成初始回归模型,获取所述n个电量样本子集中去除所述目标电量样本子集的其他电量样本子集,利用所述其他电量样本子集对所述初始回归模型进行迭代训练,得到所述目标电量样本子集对应的回归子模型;A sub-model generating module is configured to perform the following steps for each of the power sample subsets: use the power sample subset as a target power sample subset, generate an initial regression model based on the target power sample subset, and obtain the Remove the other power sample subsets of the target power sample subset from the n power sample subsets, and use the other power sample subsets to iteratively train the initial regression model to obtain the regression corresponding to the target power sample subset. Sub-model
    模型封装模块,用于将每个所述目标电量样本子集对应的所述回归子模型进行封装,生成预设回归模型。A model packaging module is configured to package the regression sub-model corresponding to each of the target power sample subsets to generate a preset regression model.
  10. 如权利要求9所述的用电量异常评估装置,其特征在于,所述输入计算模块,包括:The apparatus according to claim 9, wherein the input calculation module comprises:
    信息输入单元,用于将所述用电特征信息和所述时间节点信息分别输入至所述预设回归模型的各个所述回归子模型中,得到每一个所述回归子模型对应的基础用电量;An information input unit is configured to input the power consumption characteristic information and the time node information into each of the regression sub-models of the preset regression model to obtain a basic power consumption corresponding to each of the regression sub-models. the amount;
    理论值确定单元,用于将各所述基础用电量进行求和并计算平均值,得到所述时间节点信息对应的理论用电量。The theoretical value determining unit is configured to sum each of the basic power consumptions and calculate an average value to obtain a theoretical power consumption corresponding to the time node information.
  11. 如权利要求9所述的用电量异常评估装置,其特征在于,所述用电量异常评估装置,还包括:The apparatus for evaluating abnormality in power consumption according to claim 9, wherein the apparatus for evaluating abnormality in power consumption further comprises:
    样本处理模块,用于若所述实际用电量正常,则将所述时间节点信息及所述时间节点信息相关的用电特征信息作为更新电量样本;A sample processing module, configured to use the time node information and the power consumption characteristic information related to the time node information as an updated power sample if the actual power consumption is normal;
    样本保存模块,用于将所述更新电量样本保存至所述预设电量样本集,得到更新电量样本集;A sample saving module, configured to save the updated power sample to the preset power sample set to obtain an updated power sample set;
    接收更新模块,用于在接收到预设回归模型更新请求时,获取所述更新电量样本集中的所述更新电量样本;A receiving update module, configured to obtain the updated power sample in the updated power sample set when a preset regression model update request is received;
    模型更新模块,用于基于所述更新电量样本调整所述预设回归模型中的各个回归子模型,得到更新回归子模型,将各所述更新回归子模型进行封装,生成更新回归模型。A model update module is configured to adjust each regression sub-model in the preset regression model based on the updated power sample, obtain an updated regression sub-model, and package each of the updated regression sub-models to generate an updated regression model.
  12. 如权利要求8所述的用电量异常评估装置,其特征在于,所述接收获取模块,包括:The apparatus for evaluating abnormal power consumption according to claim 8, wherein the receiving and acquiring module comprises:
    采集单元,用于接收用电量异常评估请求,获取所述用电量异常评估请求中的时间节点信息,并采集所述时间节点信息对应的温度信息、节假日信息;A collection unit, configured to receive a power consumption abnormality evaluation request, acquire time node information in the power consumption abnormality evaluation request, and collect temperature information and holiday information corresponding to the time node information;
    特征数据确定单元,用于将所述温度信息和所述节假日信息作为所述时间节点信息相关的用电特征信息。A characteristic data determining unit, configured to use the temperature information and the holiday information as power consumption characteristic information related to the time node information.
  13. 如权利要求8所述的用电量异常评估装置,其特征在于,所述获取判断模块,包括:The apparatus for evaluating abnormality of power consumption according to claim 8, wherein the acquisition judgment module comprises:
    获取比对单元,用于获取所述时间节点信息对应的实际用电量,计算所述实际用电量与所述理论用电量的比值;An obtaining comparison unit, configured to obtain the actual power consumption corresponding to the time node information, and calculate a ratio between the actual power consumption and the theoretical power consumption;
    第一判定单元,用于若所述实际用电量和所述理论用电量的比值超过预设阈值,则判定所述实际用电量异常;A first determining unit, configured to determine that the actual power consumption is abnormal if a ratio between the actual power consumption and the theoretical power consumption exceeds a preset threshold;
    第二判定单元,用于若所述实际用电量和所述理论用电量的比值不超过预设阈值,则判定所述实际用电量正常。A second determination unit is configured to determine that the actual power consumption is normal if a ratio between the actual power consumption and the theoretical power consumption does not exceed a preset threshold.
  14. 如权利要求8所述的用电量异常评估装置,其特征在于,所述生成提示模块,包括:The apparatus for evaluating abnormality of power consumption according to claim 8, wherein the generating prompt module comprises:
    数据获取单元,用于若所述实际用电量异常,则获取所述时间节点信息对应的历史同期用电量;A data acquisition unit, configured to acquire historical power consumption in the corresponding period corresponding to the time node information if the actual power consumption is abnormal;
    变化率计算单元,用于将所述实际用电量与所述历史用电量按预设同期公式计算,得到同比增长率;A change rate calculation unit, configured to calculate the actual power consumption and the historical power consumption according to a preset synchronization formula to obtain a year-on-year growth rate;
    生成单元,用于基于所述同比增长率和所述实际用电量生成用电异常提示信息,以供用户进行查看。A generating unit is configured to generate power consumption abnormality prompt information based on the year-on-year growth rate and the actual power consumption for a user to view.
  15. 一种用电量异常评估设备,其特征在于,所述用电量异常评估设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机可读指令,其中:所述计算机可读指令被所述处理器执行时实现以下步骤:A power consumption abnormality evaluation device, characterized in that the power consumption abnormality evaluation device includes a memory, a processor, and computer-readable instructions stored on the memory and executable on the processor, wherein : The computer-readable instructions, when executed by the processor, implement the following steps:
    接收用电量异常评估请求,获取所述用电量异常评估请求中的时间节点信息,并获取所述时间节点信息相关的用电特征信息;Receiving a power consumption abnormality evaluation request, acquiring time node information in the power consumption abnormality evaluation request, and acquiring power consumption characteristic information related to the time node information;
    将所述用电特征信息和所述时间节点信息输入至预设回归模型中,得到所述时间节点信息对应的理论用电量;Inputting the power consumption characteristic information and the time node information into a preset regression model to obtain a theoretical power consumption corresponding to the time node information;
    获取所述时间节点信息对应的实际用电量,并将所述实际用电量和所述理论用电量进行比较,以判断所述实际用电量是否异常;Acquiring the actual power consumption corresponding to the time node information, and comparing the actual power consumption with the theoretical power consumption to determine whether the actual power consumption is abnormal;
    若所述实际用电量异常,则生成用电异常提示信息。If the actual power consumption is abnormal, the power consumption abnormality prompt information is generated.
  16. 如权利要求15所述的用电量异常评估设备,其特征在于,所述计算机可读指令被所述处理器执行时,还实现以下步骤:The apparatus for evaluating abnormality in power consumption according to claim 15, wherein when the computer-readable instructions are executed by the processor, the following steps are further implemented:
    从预设电量样本集中获取电量样本,将各所述电量样本按预设分类规则进行分类,得到n个电量样本子集;Obtaining power samples from a preset power sample set, classifying each of the power samples according to a preset classification rule, and obtaining n power sample subsets;
    针对每一个所述电量样本子集执行如下步骤:The following steps are performed for each of the power sample subsets:
    将所述电量样本子集作为目标电量样本子集,基于所述目标电量样本子集生成初始回归模型,获取所述n个电量样本子集中去除所述目标电量样本子集的其他电量样本子集,利用所述其他电量样本子集对所述初始回归模型进行迭代训练,得到所述目标电量样本子集对应的回归子模型;Using the power sample subset as a target power sample subset, generating an initial regression model based on the target power sample subset, and obtaining other power sample subsets in the n power sample subsets excluding the target power sample subset Using the other power sample subsets to iteratively train the initial regression model to obtain a regression submodel corresponding to the target power sample subset;
    将每个所述目标电量样本子集对应的所述回归子模型进行封装,生成预设回归模型。Encapsulating the regression sub-model corresponding to each of the target power sample subsets to generate a preset regression model.
  17. 如权利要求16所述的用电量异常评估设备,其特征在于,所述将所述用电特征信息和所述时间节点信息输入至预设回归模型中,得到所述时间节点信息对应的理论用电量的步骤,包括:The power consumption abnormality evaluation device according to claim 16, wherein the power consumption characteristic information and the time node information are input into a preset regression model to obtain a theory corresponding to the time node information Steps to use electricity, including:
    将所述用电特征信息和所述时间节点信息分别输入至所述预设回归模型的各个所述回归子模型中,得到每一个所述回归子模型对应的基础用电量;Inputting the power consumption characteristic information and the time node information into each of the regression sub-models of the preset regression model to obtain a basic power consumption corresponding to each of the regression sub-models;
    将各所述基础用电量进行求和并计算平均值,得到所述时间节点信息对应的理论用电量。Sum the respective basic power consumptions and calculate an average value to obtain a theoretical power consumption corresponding to the time node information.
  18. 如权利要求15所述的用电量异常评估设备,其特征在于,所述接收用电量异常评估请求,获取所述用电量异常评估请求中的时间节点信息,并获取所述时间节点信息相关的用电特征信息的步骤,包括:The power consumption abnormality evaluation device according to claim 15, wherein the receiving the power consumption abnormality evaluation request, obtaining time node information in the power consumption abnormality evaluation request, and acquiring the time node information The steps of related power consumption characteristic information include:
    接收用电量异常评估请求,获取所述用电量异常评估请求中的时间节点信息,并采集所述时间节点信息对应的温度信息、节假日信息;Receiving a power consumption abnormality evaluation request, acquiring time node information in the power consumption abnormality evaluation request, and collecting temperature information and holiday information corresponding to the time node information;
    将所述温度信息和所述节假日信息作为所述时间节点信息相关的用电特征信息。Use the temperature information and the holiday information as the power consumption characteristic information related to the time node information.
  19. 如权利要求15所述的用电量异常评估设备,其特征在于,所述获取所述时间节点信息对应的实际用电量,并将所述实际用电量和所述理论用电量进行比较,以判断所述实际用电量是否异常的步骤,包括:The apparatus for evaluating abnormality of power consumption according to claim 15, wherein said acquiring the actual power consumption corresponding to said time node information, and comparing said actual power consumption with said theoretical power consumption The steps to determine whether the actual power consumption is abnormal include:
    获取所述时间节点信息对应的实际用电量,计算所述实际用电量与所述理论用电量的比值;Acquiring the actual power consumption corresponding to the time node information, and calculating a ratio between the actual power consumption and the theoretical power consumption;
    若所述实际用电量和所述理论用电量的比值超过预设阈值,则判定所述实际用电量异常;If the ratio between the actual power consumption and the theoretical power consumption exceeds a preset threshold, determining that the actual power consumption is abnormal;
    若所述实际用电量和所述理论用电量的比值不超过预设阈值,则判定所述实际用电量正常。If the ratio between the actual power consumption and the theoretical power consumption does not exceed a preset threshold, it is determined that the actual power consumption is normal.
  20. 一种计算机存储介质,其特征在于,所述计算机存储介质上存储有计算机可读指令,所述计算机可读指令被处理器执行时实现以下步骤:A computer storage medium is characterized in that computer readable instructions are stored on the computer storage medium, and when the computer readable instructions are executed by a processor, the following steps are implemented:
    接收用电量异常评估请求,获取所述用电量异常评估请求中的时间节点信息,并获取所述时间节点信息相关的用电特征信息;Receiving a power consumption abnormality evaluation request, acquiring time node information in the power consumption abnormality evaluation request, and acquiring power consumption characteristic information related to the time node information;
    将所述用电特征信息和所述时间节点信息输入至预设回归模型中,得到所述时间节点信息对应的理论用电量;Inputting the power consumption characteristic information and the time node information into a preset regression model to obtain a theoretical power consumption corresponding to the time node information;
    获取所述时间节点信息对应的实际用电量,并将所述实际用电量和所述理论用电量进行比较,以判断所述实际用电量是否异常;Acquiring the actual power consumption corresponding to the time node information, and comparing the actual power consumption with the theoretical power consumption to determine whether the actual power consumption is abnormal;
    若所述实际用电量异常,则生成用电异常提示信息。If the actual power consumption is abnormal, the power consumption abnormality prompt information is generated.
PCT/CN2018/103335 2018-07-17 2018-08-30 Power consumption anomaly estimation method and apparatus, device, and computer storage medium WO2020015060A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810799777.7A CN109726885A (en) 2018-07-17 2018-07-17 Electricity consumption anomaly assessment method, apparatus, equipment and computer storage medium
CN201810799777.7 2018-07-17

Publications (1)

Publication Number Publication Date
WO2020015060A1 true WO2020015060A1 (en) 2020-01-23

Family

ID=66294575

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/103335 WO2020015060A1 (en) 2018-07-17 2018-08-30 Power consumption anomaly estimation method and apparatus, device, and computer storage medium

Country Status (2)

Country Link
CN (1) CN109726885A (en)
WO (1) WO2020015060A1 (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110298513A (en) * 2019-07-02 2019-10-01 国家电网有限公司 A method of prediction power purchase issues abnormal
CN110646664B (en) * 2019-09-18 2021-05-07 珠海格力电器股份有限公司 Method and device for monitoring power consumption of multi-split system and multi-split system
CN110930034B (en) * 2019-11-22 2022-12-02 广东电力交易中心有限责任公司 Electric power spot market settlement metering data verification method, device and medium
CN111381206A (en) * 2019-11-29 2020-07-07 中国电力科学研究院有限公司 Method and system for determining power abnormity of metering box
CN111090684B (en) * 2019-12-17 2023-11-03 国网数字科技控股有限公司 Method and system for processing electricity consumption data
CN111178556A (en) * 2019-12-25 2020-05-19 深圳供电局有限公司 Electric quantity abnormality detection method and device, computer equipment and readable storage medium
CN113657695B (en) * 2020-05-12 2024-01-30 北京市天元网络技术股份有限公司 Method and device for judging electric quantity effectiveness of account reporting point
CN113792477B (en) * 2021-08-18 2024-06-07 珠海派诺科技股份有限公司 Electricity utilization abnormality identification method, system, device and fire disaster early warning system
CN113757943B (en) * 2021-09-17 2023-03-24 广东电网有限责任公司 Air conditioning system fault diagnosis method and system based on fault judgment rule
CN115577836B (en) * 2022-09-29 2023-06-30 深圳市三正电子有限公司 Method and device for information acquisition based on MCU

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030046252A1 (en) * 2001-05-10 2003-03-06 Spool Peter R. Business management system and method for a deregulated electric power market using suppliers' special offers
CN101872185A (en) * 2010-06-14 2010-10-27 香港应用科技研究院有限公司 Intelligent matrix electric energy control system
CN105809288A (en) * 2016-03-09 2016-07-27 国网上海市电力公司 Fixed effect model-based power consumption prediction method
CN107169596A (en) * 2016-06-30 2017-09-15 国网江苏省电力公司南通供电公司 The Forecasting Methodology of platform area daily power consumption based on human comfort
CN107563539A (en) * 2017-07-24 2018-01-09 佛山市顺德区中山大学研究院 Short-term and long-medium term power load forecasting method based on machine learning model

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003173206A (en) * 2001-12-05 2003-06-20 Hitachi Ltd Remote operation support method and system for power generating facility
CN103268524B (en) * 2013-06-03 2017-03-29 国家电网公司 A kind of method for improving electrical network short-term load forecasting accuracy
KR101754165B1 (en) * 2015-12-08 2017-07-06 한국건설기술연구원 System for detecting abnormal behavior and evaluating safety of structure for merging non-periodic acceleration data
CN108022043B (en) * 2017-11-30 2021-08-20 北京汇通金财信息科技有限公司 Abnormal electricity consumption behavior identification method and device and central server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030046252A1 (en) * 2001-05-10 2003-03-06 Spool Peter R. Business management system and method for a deregulated electric power market using suppliers' special offers
CN101872185A (en) * 2010-06-14 2010-10-27 香港应用科技研究院有限公司 Intelligent matrix electric energy control system
CN105809288A (en) * 2016-03-09 2016-07-27 国网上海市电力公司 Fixed effect model-based power consumption prediction method
CN107169596A (en) * 2016-06-30 2017-09-15 国网江苏省电力公司南通供电公司 The Forecasting Methodology of platform area daily power consumption based on human comfort
CN107563539A (en) * 2017-07-24 2018-01-09 佛山市顺德区中山大学研究院 Short-term and long-medium term power load forecasting method based on machine learning model

Also Published As

Publication number Publication date
CN109726885A (en) 2019-05-07

Similar Documents

Publication Publication Date Title
WO2020015060A1 (en) Power consumption anomaly estimation method and apparatus, device, and computer storage medium
WO2020019403A1 (en) Electricity consumption abnormality detection method, apparatus and device, and readable storage medium
WO2020024534A1 (en) Power consumption control method, apparatus, and device based on electric quantity prediction, and storage medium
WO2019037196A1 (en) Method and device for task assignment, and computer-readable storage medium
WO2020224246A1 (en) Block chain-based data management method and apparatus, device and storage medium
WO2020119369A1 (en) Intelligent it operation and maintenance fault positioning method, apparatus and device, and readable storage medium
WO2020048047A1 (en) System fault warning method, apparatus, and device, and storage medium
WO2020073688A1 (en) Method, apparatus and device for predicting network device anomaly, and storage medium
WO2018090544A1 (en) Method and device for detecting dos/ddos attack, server, and storage medium
WO2019174090A1 (en) Screenshot file sharing control method, apparatus and device, and computer storage medium
WO2018205373A1 (en) Method and apparatus for estimating injury claims settlement and loss adjustment expense, server and medium
WO2012100607A1 (en) Terminal desktop processing system, terminal, server and method
WO2020119115A1 (en) Data verification method, device, apparatus, and storage medium
WO2020098075A1 (en) Financial data processing method, apparatus and device, and storage medium
WO2020107591A1 (en) Double insurance limiting method, apparatus, device, and readable storage medium
WO2020019405A1 (en) Database monitoring method, device and apparatus, and computer storage medium
WO2020042464A1 (en) Data interaction method, apparatus and device, and readable storage medium
WO2019024485A1 (en) Data sharing method and device and computer readable storage medium
WO2021027143A1 (en) Information pushing method, apparatus and device, and computer-readable storage medium
WO2020103275A1 (en) Money deduction control method, apparatus, and device, and readable storage medium
WO2020155773A1 (en) Method of monitoring for suspicious text input, device, computer apparatus, and storage medium
WO2021012508A1 (en) Ai image recognition method, apparatus and device, and storage medium
WO2021012481A1 (en) System performance monitoring method and apparatus, device, and storage medium
WO2020207038A1 (en) People counting method, apparatus, and device based on facial recognition, and storage medium
WO2019169957A1 (en) Method and device for detecting performance of high-frequency cables, and readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18926493

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18926493

Country of ref document: EP

Kind code of ref document: A1