Method and device for prompting abnormal electricity consumption, computer equipment and storage medium

文档序号:664147 发布日期:2021-04-27 浏览:23次 中文

阅读说明:本技术 用电量异常提示方法、装置、计算机设备和存储介质 (Method and device for prompting abnormal electricity consumption, computer equipment and storage medium ) 是由 张文瀚 詹卫许 王武 张育辉 代庆 杨军 于 2020-12-07 设计创作,主要内容包括:本申请涉及一种用电量异常提示方法、装置、计算机设备和存储介质,应用于计算机领域。方法包括:周期性地接收目标电表上传的用电量数据;在每次接收到目标电表上传的用电量数据之后,检测当前接收到的用电量数据是否为异常用电量数据;若当前接收到的用电量数据不为异常用电量数据,则基于当前接收到的用电量数据以及历史接收到的目标电表上传的用电量数据计算目标时间段内目标电表对应的用电量是否大于第一用电量阈值;若目标时间段内目标电表对应的用电量大于第一用电量阈值,则向与目标电表具有绑定关系的终端发送用电量异常提示信息。采用本方法能够实现对用户的用电量异常进行提示的效果。(The application relates to a method and a device for prompting abnormal electricity consumption, computer equipment and a storage medium, which are applied to the field of computers. The method comprises the following steps: periodically receiving power consumption data uploaded by a target electric meter; after receiving power consumption data uploaded by a target electric meter each time, detecting whether the currently received power consumption data are abnormal power consumption data; if the currently received power consumption data is not abnormal power consumption data, calculating whether the power consumption corresponding to the target electric meter in the target time period is larger than a first power consumption threshold value or not based on the currently received power consumption data and the historically received power consumption data uploaded by the target electric meter; and if the power consumption corresponding to the target electric meter in the target time period is larger than the first power consumption threshold value, sending power consumption abnormity prompt information to a terminal in a binding relationship with the target electric meter. By adopting the method, the effect of prompting the abnormal electricity consumption of the user can be realized.)

1. A method for prompting abnormal electricity consumption is characterized by further comprising the following steps:

periodically receiving power consumption data uploaded by a target electric meter;

after receiving the power consumption data uploaded by the target electric meter each time, detecting whether the currently received power consumption data is abnormal power consumption data;

if the currently received power consumption data is not abnormal power consumption data, calculating whether the power consumption corresponding to the target electric meter in a target time period is larger than a first power consumption threshold value or not based on the currently received power consumption data and the historically received power consumption data uploaded by the target electric meter;

and if the power consumption corresponding to the target electric meter in the target time period is larger than the first power consumption threshold value, sending power consumption abnormity prompt information to a terminal in a binding relationship with the target electric meter.

2. The method of claim 1, wherein before calculating whether the power consumption corresponding to the target electricity meter in the target time period is greater than the first power consumption threshold based on the currently received power consumption data and the historically received power consumption data uploaded by the target electricity meter, the method further comprises:

acquiring peak power consumption data uploaded by the target electric meter in a preset power consumption peak period, wherein the power consumption peak period comprises a plurality of peak power consumption time periods, and the time length of each peak power consumption time period is consistent with the time length of the target time period;

determining peak power consumption corresponding to the target electric meter in each peak power consumption time period based on the peak power consumption data;

and determining the maximum peak power consumption from the peak power consumption corresponding to the target electric meter in each peak power consumption time period, and determining the first power consumption threshold according to the maximum peak power consumption.

3. The method of claim 1, wherein the abnormal power usage data comprises erroneous power usage data, and wherein detecting whether the currently received power usage data is abnormal power usage data comprises:

acquiring non-abnormal electricity consumption data uploaded by the target electricity meter and received last time before the current moment;

calculating a first difference value between the currently received power consumption data and the non-abnormal power consumption data;

and if the first difference is smaller than zero, determining that the currently received power consumption data are error power consumption data.

4. The method of claim 1, wherein the anomalous data comprises abrupt power usage data, and wherein detecting whether the currently received power usage data is anomalous power usage data comprises:

acquiring non-abnormal electricity consumption data uploaded by the target electricity meter and received last time before the current moment;

calculating a first difference value between the currently received power consumption data and the non-abnormal power consumption data;

and if the first difference value is larger than a second electricity quantity threshold value, determining that the currently received electricity consumption data is mutation electricity consumption data.

5. The method of claim 4, wherein prior to detecting whether the currently received power usage data is abnormal power usage data, the method further comprises:

acquiring peak power consumption data uploaded by the target electric meter in a preset power consumption peak period, wherein the peak power consumption data comprises a plurality of abnormal peak power consumption data;

for every two adjacent non-abnormal peak power consumption data, calculating a second difference value between the two non-abnormal peak power consumption data;

and determining a maximum second difference value from the second difference values, and determining the second electric quantity threshold value according to the maximum second difference value.

6. The method of claim 1, further comprising:

and if the currently received power consumption data are abnormal power consumption data, discarding the currently received power consumption data.

7. The method of claim 1, wherein the sending of the abnormal electricity consumption prompt message to the terminal having the binding relationship with the target electricity meter comprises:

detecting whether the times of sending the abnormal electricity consumption prompt information to the terminal is greater than a time threshold value or not;

and if the times of sending the abnormal electricity consumption prompt information to the terminal are smaller than the time threshold, sending the abnormal electricity consumption prompt information to the terminal.

8. An electricity consumption abnormality prompting device, characterized in that the device includes:

the receiving module is used for periodically receiving power consumption data uploaded by the target ammeter;

the detection module is used for detecting whether the currently received power consumption data is abnormal power consumption data after receiving the power consumption data uploaded by the target electric meter each time;

the calculation module is used for calculating whether the electricity consumption corresponding to the target electricity meter in a target time period is larger than a first electricity consumption threshold value or not on the basis of the currently received electricity consumption data and the historically received electricity consumption data uploaded by the target electricity meter under the condition that the currently received electricity consumption data is not abnormal electricity consumption data;

and the sending module is used for sending abnormal electricity consumption prompt information to a terminal in a binding relationship with the target electric meter under the condition that the electricity consumption corresponding to the target electric meter is greater than the first electricity consumption threshold value in the target time period.

9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.

10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.

Technical Field

The present application relates to the field of power system technologies, and in particular, to a method and an apparatus for prompting an abnormal power consumption, a computer device, and a storage medium.

Background

With the development of science and technology, the development of power systems is more and more mature. The generation of electric resources brings the change of covering the ground to our life, and let us end the era of kerosene lamps. Currently, with the progress of society, the types of household appliances are more and more complete, and the electricity consumption of people is more and more.

In order to reasonably charge the electricity consumption of the user and remind the user of reasonable electricity consumption, China implements a policy of step electricity price of residents, and the electricity price is priced in sections according to the electricity consumption of the user and gradually increases in a step shape along with the increase of the electricity consumption.

However, in the electricity utilization process, the situation that the electric appliances are forgotten to be turned off and leak electricity may exist, so that the electricity consumption is increased rapidly and exceeds a certain electricity quantity step, and the electricity utilization cost is increased greatly. This not only results in waste of electrical resources, but also causes economic loss to the user. How to prompt the abnormal electricity consumption condition of the user becomes a problem to be solved urgently.

Disclosure of Invention

In view of the above, it is desirable to provide a method, an apparatus, a computer device, and a storage medium for prompting an abnormal power consumption of a user.

In a first aspect, a method for prompting abnormal power consumption is provided, and the method includes: periodically receiving power consumption data uploaded by a target electric meter; after receiving power consumption data uploaded by a target electric meter each time, detecting whether the currently received power consumption data are abnormal power consumption data; if the currently received power consumption data is not abnormal power consumption data, calculating whether the power consumption corresponding to the target electric meter in the target time period is larger than a first power consumption threshold value or not based on the currently received power consumption data and the historically received power consumption data uploaded by the target electric meter; and if the power consumption corresponding to the target electric meter in the target time period is larger than the first power consumption threshold value, sending power consumption abnormity prompt information to a terminal in a binding relationship with the target electric meter.

In one embodiment, before calculating whether the power consumption corresponding to the target electricity meter in the target time period is greater than the first power consumption threshold value based on the currently received power consumption data and the historically received power consumption data uploaded by the target electricity meter, the method further includes: acquiring peak power consumption data uploaded by a target electric meter in a preset power consumption peak period, wherein the power consumption peak period comprises a plurality of peak power consumption time periods, and the duration of each peak power consumption time period is consistent with that of the target time period; determining peak power consumption corresponding to the target electric meter in each peak power consumption time period based on the peak power consumption data; and determining the maximum peak power consumption from the peak power consumption corresponding to the target electric meter in each peak power consumption time period, and determining a first power consumption threshold according to the maximum peak power consumption.

In one embodiment, the detecting whether the currently received power consumption data is the abnormal power consumption data includes: acquiring non-abnormal electricity consumption data uploaded by a target electricity meter and received last time before the current moment; calculating a first difference value between the currently received power consumption data and the non-abnormal power consumption data; and if the first difference is smaller than zero, determining that the currently received power consumption data are error power consumption data.

In one embodiment, the detecting whether the currently received power consumption data is abnormal power consumption data includes: acquiring non-abnormal electricity consumption data uploaded by a target electricity meter and received last time before the current moment; calculating a first difference value between the currently received power consumption data and the non-abnormal power consumption data; and if the first difference is larger than the second electricity quantity threshold value, determining that the currently received electricity consumption data are sudden change electricity consumption data.

In one embodiment, before detecting whether the currently received power consumption data is abnormal power consumption data, the method further includes: acquiring peak power consumption data uploaded by a target electric meter in a preset power consumption peak period, wherein the peak power consumption data comprises a plurality of non-abnormal peak power consumption data; calculating a second difference value between every two adjacent non-abnormal peak power consumption data; and determining a maximum second difference value from the second difference values, and determining a second electric quantity threshold value according to the maximum second difference value.

In one embodiment, the method further comprises: and if the currently received power consumption data are abnormal power consumption data, discarding the currently received power consumption data.

In one embodiment, sending the abnormal electricity consumption prompt message to the terminal having the binding relationship with the target electricity meter comprises: detecting whether the times of sending the abnormal electricity consumption prompt information to the terminal is greater than a time threshold value; and if the times of sending the abnormal electricity consumption prompt information to the terminal are less than the time threshold, sending the abnormal electricity consumption prompt information to the terminal.

In a second aspect, a power consumption abnormality prompting device is provided, the device including:

and the receiving module is used for periodically receiving the power consumption data uploaded by the target electric meter.

And the detection module is used for detecting whether the currently received power consumption data is abnormal power consumption data after receiving the power consumption data uploaded by the target electric meter each time.

And the calculating module is used for calculating whether the power consumption corresponding to the target electric meter in the target time period is greater than a first power consumption threshold value or not based on the currently received power consumption data and the historically received power consumption data uploaded by the target electric meter under the condition that the currently received power consumption data is not abnormal power consumption data.

And the sending module is used for sending abnormal electricity consumption prompt information to the terminal in the binding relation with the target electric meter under the condition that the electricity consumption corresponding to the target electric meter in the target time period is greater than the first electricity consumption threshold value.

In one embodiment, the power consumption abnormality prompting device further includes:

the acquisition module is used for acquiring peak power consumption data uploaded by the target electric meter in a preset power consumption peak period, the power consumption peak period comprises a plurality of peak power consumption time periods, and the duration of each peak power consumption time period is consistent with the duration of the target time period.

A first determination module: and determining the peak power consumption corresponding to the target electric meter in each peak power consumption time period based on the peak power consumption data.

And the second determining module is used for determining the maximum peak power consumption from the peak power consumption corresponding to the target electric meter in each peak power consumption time period, and determining the first power consumption threshold according to the maximum peak power consumption.

In one embodiment, the abnormal power consumption data includes error power consumption data, and the detection module is specifically configured to: acquiring non-abnormal electricity consumption data uploaded by a target electricity meter and received last time before the current moment; calculating a first difference value between the currently received power consumption data and the non-abnormal power consumption data; and if the first difference is smaller than zero, determining that the currently received power consumption data are error power consumption data.

In one embodiment, the abnormal data includes data of sudden change of power consumption, and the detection module is specifically configured to: acquiring non-abnormal electricity consumption data uploaded by a target electricity meter and received last time before the current moment; calculating a first difference value between the currently received power consumption data and the non-abnormal power consumption data; and if the first difference is larger than the second electricity quantity threshold value, determining that the currently received electricity consumption data are sudden change electricity consumption data.

In one embodiment, the detection module is further configured to: acquiring peak power consumption data uploaded by a target electric meter in a preset power consumption peak period, wherein the peak power consumption data comprises a plurality of non-abnormal peak power consumption data; calculating a second difference value between every two adjacent non-abnormal peak power consumption data; and determining a maximum second difference value from the second difference values, and determining a second electric quantity threshold value according to the maximum second difference value.

In one embodiment, the power consumption abnormality prompting device further includes:

a discarding module: and the processing module is used for discarding the currently received electricity consumption data under the condition that the currently received electricity consumption data is abnormal electricity consumption data.

In one embodiment, the sending module is specifically configured to: detecting whether the times of sending the abnormal electricity consumption prompt information to the terminal is greater than a time threshold value; and if the times of sending the abnormal electricity consumption prompt information to the terminal are less than the time threshold, sending the abnormal electricity consumption prompt information to the terminal.

In a third aspect, a computer device is provided, which includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the power consumption abnormality prompting method according to any one of the first aspect.

In a fourth aspect, there is provided a computer-readable storage medium on which a computer program is stored, the computer program, when executed by a processor, implementing the power consumption abnormality presentation method according to any one of the first aspects.

According to the method, the device, the computer equipment and the storage medium for prompting the abnormal electricity consumption, the electricity consumption data uploaded by the target electricity meter are periodically received, and after the electricity consumption data uploaded by the target electricity meter are received each time, whether the currently received electricity consumption data are the abnormal electricity consumption data or not is detected. And under the condition that the currently received power consumption data is not abnormal power consumption data, calculating whether the power consumption corresponding to the target electric meter in the target time period is larger than a first power consumption threshold value or not based on the currently received power consumption data and the historically received power consumption data uploaded by the target electric meter. And sending abnormal electricity consumption prompt information to a terminal in a binding relationship with the target electric meter under the condition that the electricity consumption corresponding to the target electric meter in the target time period is greater than the first electricity consumption threshold value. According to the method, the power consumption data uploaded by the target electric meter are periodically received, and whether the currently received power consumption data are abnormal power consumption data or not is detected, so that the correct acquired power consumption data can be ensured, and the power consumption error corresponding to the target electric meter, which is obtained through calculation, due to the abnormal power consumption data is avoided. And under the condition that the electricity consumption data is not abnormal electricity consumption data, calculating whether the electricity consumption corresponding to the target electricity meter is larger than a first electricity consumption threshold value or not, and under the condition that the electricity consumption corresponding to the target electricity meter is larger than the first electricity consumption threshold value in the target time period, sending electricity consumption abnormality prompt information to a terminal in a binding relationship with the target electricity meter, so that the effect of prompting the electricity consumption abnormality of the user is realized.

Drawings

FIG. 1 is a diagram illustrating an exemplary embodiment of a method for prompting an abnormal amount of power consumption;

FIG. 2 is a flow chart illustrating a method for prompting an abnormal amount of power consumption according to an embodiment;

FIG. 3 is a flowchart illustrating an abnormal power consumption prompt step according to an embodiment;

FIG. 4 is a flow chart illustrating a method for prompting an abnormal amount of power consumption according to another embodiment;

FIG. 5 is a flow chart illustrating a method for prompting an abnormal amount of power consumption according to another embodiment;

FIG. 6 is a flow chart illustrating a method for prompting an abnormal amount of power consumption according to another embodiment;

FIG. 7 is a flowchart illustrating a method for prompting an abnormal amount of power used in an embodiment;

FIG. 8 is a block diagram showing an example of an abnormal power consumption prompt apparatus;

FIG. 9 is a block diagram showing an example of an abnormal power consumption prompt apparatus;

fig. 10 is a block diagram showing a configuration of a power consumption abnormality presentation apparatus according to an embodiment.

Detailed Description

In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.

With the development of science and technology, the development of power systems is more and more mature. The generation of electric resources brings the change of covering the ground for our life. Currently, with the progress of society, the types of household appliances are more and more comprehensive, and along with the progress of society, the electricity consumption of people is more and more.

In order to reasonably charge the electricity consumption of the user and remind the user of reasonable electricity consumption, the state implements a policy of step electricity price of residents, and the electricity price is priced in sections according to the electricity consumption of the user and gradually increases in a step shape along with the increase of the electricity consumption.

However, in our normal life, the situation that the electric appliance is forgotten to be turned off or damaged and leaked electricity often occurs, so that the power consumption of the user is increased rapidly under the situation that the user is unaware of the situation, and the power consumption cost is also increased rapidly. This not only wastes a lot of electricity resources, but also causes economic loss to users. In the prior art, no direct solution is provided for the problem of how to monitor the power consumption of a user and send prompt information to the user in time when the power consumption of the user is abnormal.

In view of the above, embodiments of the present application provide a method for prompting an abnormal power consumption, in which a computer device periodically receives power consumption data uploaded by a target power meter, and detects whether currently received power consumption data is abnormal power consumption data after receiving the power consumption data uploaded by the target power meter each time. And under the condition that the currently received power consumption data is not abnormal power consumption data, calculating whether the power consumption corresponding to the target electric meter in the target time period is larger than a first power consumption threshold value or not based on the currently received power consumption data and the historically received power consumption data uploaded by the target electric meter. And sending abnormal electricity consumption prompt information to a terminal in a binding relationship with the target electric meter under the condition that the electricity consumption corresponding to the target electric meter in the target time period is greater than the first electricity consumption threshold value. According to the method, the power consumption data uploaded by the target electric meter are periodically received, and whether the currently received power consumption data are abnormal power consumption data or not is detected, so that the correct acquired power consumption data can be ensured, and the power consumption error corresponding to the target electric meter, which is obtained through calculation, due to the abnormal power consumption data is avoided. And under the condition that the electricity consumption data is not abnormal electricity consumption data, calculating whether the electricity consumption corresponding to the target electricity meter is larger than a first electricity consumption threshold value or not, and under the condition that the electricity consumption corresponding to the target electricity meter is larger than the first electricity consumption threshold value in the target time period, sending electricity consumption abnormality prompt information to a terminal in a binding relationship with the target electricity meter, so that the effect of prompting the electricity consumption abnormality of the user is realized.

The method for prompting abnormal electricity consumption provided by the embodiment of the application can be applied to the application environment shown in fig. 1. The application environment includes a computer device 102 and a plurality of electric meters 104, and the computer device 102 communicates with the plurality of electric meters 104 through a network. The computer device 102 may be a server or a terminal, when the computer device is a terminal, the terminal may be, but is not limited to, various personal computers, notebook computers or tablet computers, and when the computer device is a server, the server may be implemented by an independent server or a server cluster formed by a plurality of servers.

In an alternative embodiment of the present application, as shown in fig. 2, a method for prompting an abnormal power consumption is provided, which is described by taking the method as an example applied to the computer device in fig. 1, and includes the following steps:

in step 201, the computer device periodically receives power consumption data uploaded by the target electric meter.

As described above, the computer device may communicate with a plurality of electric meters through a network, wherein the target electric meter is any one of the plurality of electric meters.

In one possible implementation, the computer device may send a power consumption data uploading instruction to the target electricity meter, where the power consumption data uploading instruction may include a power consumption data uploading time interval, and after receiving the power consumption data uploading instruction, the target electricity meter may periodically upload the power consumption data to the computer device according to the power consumption data uploading time interval. For example, the power usage data upload time interval may be 30 minutes, and the target meter may upload the power usage data to the computer device every 30 minutes.

In another possible implementation manner, the target electricity meter may store an electricity consumption data uploading time interval in advance, and the target electricity meter may periodically upload the electricity consumption data to the computer device according to the electricity consumption data uploading time interval stored in the target electricity meter.

In an alternative embodiment of the present application, the electricity consumption data may be data of the current electricity consumption displayed on the target electricity meter. Optionally, after receiving the power consumption data uploaded by the target electricity meter, the computer device may store the received power consumption data in a database of the computer device.

In step 202, after receiving the power consumption data uploaded by the target electric meter each time, the computer device detects whether the currently received power consumption data is abnormal power consumption data.

After receiving the power consumption data uploaded by the target electric meter, the computer device needs to detect whether the currently received power consumption data is abnormal power consumption data in order to ensure the accuracy of the power consumption data. The abnormal electricity consumption data can comprise error electricity consumption data, mutation electricity consumption data and a null value, and optionally, the current electricity consumption data can be determined as the error electricity consumption data under the condition that the currently received electricity consumption data is smaller than the non-abnormal electricity consumption data received before the current moment; the method comprises the steps that under the condition that a first difference value between current received power consumption data and non-abnormal power consumption data received last time before the current time is larger than a first power consumption threshold, the current received power consumption data can be determined to be sudden change power consumption data; when the currently received power consumption data is 0 or an unrecognizable character, the currently received power consumption data may be determined as a null value. In the embodiment of the present application, the type of the abnormal power consumption data is not specifically limited.

In one possible implementation manner, after receiving the power consumption data uploaded by the target electric meter each time, the computer device may calculate a first difference between the currently received power consumption data and the non-abnormal power consumption data uploaded by the target electric meter and received last time before the current time based on the non-abnormal power consumption data uploaded by the target electric meter and received last time before the current time, and detect whether the currently received power consumption data is the abnormal power consumption data based on the first difference.

For example, the current time is 16:30 at 10/month and 30/2020, the uploading time interval of the power consumption data can be 30 minutes, after receiving the power consumption data uploaded by the electric meter at the current time, the computer device extracts the non-abnormal power consumption data uploaded by the target electric meter and received at 16:00 at 10/month and 30/month and 2020 in the database of the computer device, calculates a first difference between the power consumption data uploaded by the target electric meter at 30: 30 at 10/month and 2020 and the non-abnormal power consumption data uploaded by the target electric meter and received at 16:00 at 30/month and 10/month and 2020, and detects whether the currently received power consumption data is abnormal power consumption data or not based on the first difference.

In another possible implementation manner, after receiving the power consumption data uploaded by the target electric meter each time, the computer device may obtain non-abnormal power consumption data of a time corresponding to the current time in a time period previous to the current time, calculate a third difference between the currently received power consumption data and the non-abnormal power consumption data of the time corresponding to the current time in the time period previous to the current time, and detect whether the currently received power consumption data is the abnormal power consumption data based on the third difference.

For example, the current time is 16:30 at 10/month and 30/2020, the time period may be 1 day, after receiving the power consumption data uploaded by the electric meter at the current time, the computer device extracts, in a database of the computer device, non-abnormal power consumption data uploaded by the target electric meter and received at 16:30 at 29/month and 10/month in 2020, calculates a third difference between the power consumption data uploaded by the target electric meter and received at 16:30 at 29/month and 10/month in 2020, and detects whether the currently received power consumption data is abnormal power consumption data or not based on the third difference.

In step 203, if the currently received power consumption data is not abnormal power consumption data, the computer device calculates whether the power consumption corresponding to the target electric meter in the target time period is greater than a first power consumption threshold value based on the currently received power consumption data and the historically received power consumption data uploaded by the target electric meter.

In this embodiment of the application, if the computer device detects that the currently received power consumption data is not abnormal power consumption data, it indicates that the currently received power consumption data is normal power consumption data, and in this case, the computer device may calculate, based on the currently received power consumption data and the historically received power consumption data uploaded by the target electric meter, whether the power consumption corresponding to the target electric meter in the target time period is greater than the first power consumption threshold. The target time period may be one day, one week, or one month, and the duration of the target time period is not specifically limited in the embodiment of the present application.

In this embodiment, the first power threshold may be a maximum value of power consumption in a target time period set for a target user corresponding to a target electric meter. The first electric quantity threshold may be set by the computer device according to the power consumption of the target user, or may be set by the computer device according to a request instruction of the target user.

In one possible implementation manner, the computer device may calculate a fourth difference between the currently received power consumption data and the last received power consumption data before the start of the target time period based on the currently received power consumption data and the historically received power consumption data uploaded by the target electric meter, and compare the fourth difference with the first power consumption threshold, so as to determine whether the power consumption corresponding to the target electric meter in the target time period is greater than the first power consumption threshold. If the fourth difference is smaller than the first electricity quantity threshold value, the computer equipment determines that the electricity consumption corresponding to the target electricity meter in the target time period is not larger than the first electricity quantity threshold value; if the fourth difference is greater than the first electricity consumption threshold, the computer device determines that the electricity consumption corresponding to the target electricity meter in the target time period is greater than the first electricity consumption threshold.

And 204, if the power consumption corresponding to the target electric meter in the target time period is greater than the first power consumption threshold value, the computer equipment sends power consumption abnormity prompt information to the terminal which is in binding relationship with the target electric meter.

In this embodiment of the application, if the power consumption corresponding to the target electric meter in the target time period is greater than the first power consumption threshold, it is indicated that the power consumption corresponding to the target electric meter in the target time period exceeds the first power consumption threshold. The computer device may send the abnormal power consumption prompt information to the terminal having a binding relationship with the target electric meter through a communication connection with the terminal, where the terminal having a binding relationship with the target electric meter may be, but is not limited to, a smart phone, a personal computer, a notebook computer, a wearable device, and the like. The embodiment of the application does not specifically limit the terminal having the binding relationship with the target electric meter.

In a possible implementation manner, the computer device may send the power consumption abnormality prompting information to the terminal by sending a short message, where the power consumption abnormality information may include the power consumption corresponding to the current target electric meter, the power consumption corresponding to the target electric meter in the target time period, and how much the power consumption corresponding to the target electric meter in the target time period exceeds the first power consumption threshold.

In another possible implementation manner, the computer device may also send the power consumption abnormality prompt message to the terminal by dialing a mobile phone call; the computer equipment can also send the prompting information of abnormal power consumption to the terminal through other chat software, and the embodiment of the application does not specifically limit the way of sending the prompting information of abnormal power consumption to the terminal by the computer equipment.

The method for prompting the abnormal electricity consumption comprises the steps of periodically receiving electricity consumption data uploaded by a target electricity meter, and detecting whether the currently received electricity consumption data are abnormal electricity consumption data after receiving the electricity consumption data uploaded by the target electricity meter each time. And under the condition that the currently received power consumption data is not abnormal power consumption data, calculating whether the power consumption corresponding to the target electric meter in the target time period is larger than a first power consumption threshold value or not based on the currently received power consumption data and the historically received power consumption data uploaded by the target electric meter. And sending abnormal electricity consumption prompt information to a terminal in a binding relationship with the target electric meter under the condition that the electricity consumption corresponding to the target electric meter in the target time period is greater than the first electricity consumption threshold value. According to the method, the power consumption data uploaded by the target electric meter are periodically received, and whether the currently received power consumption data are abnormal power consumption data or not is detected, so that the correct acquired power consumption data can be ensured, and the power consumption error corresponding to the target electric meter, which is obtained through calculation, due to the abnormal power consumption data is avoided. And under the condition that the electricity consumption data is not abnormal electricity consumption data, calculating whether the electricity consumption corresponding to the target electricity meter is larger than a first electricity consumption threshold value or not, so that the accuracy of the calculation result is ensured. And sending abnormal electricity consumption prompt information to a terminal in a binding relationship with the target electricity meter under the condition that the electricity consumption corresponding to the target electricity meter in the target time period is greater than the first electricity consumption threshold value, so that the effect of prompting the abnormal electricity consumption of the user is realized.

In an alternative embodiment of the present application, as shown in fig. 3, before calculating whether the power consumption corresponding to the target electricity meter in the target time period is greater than the first power consumption threshold based on the currently received power consumption data and the historically received power consumption data uploaded by the target electricity meter, the method may further include the following steps:

step 301, a computer device obtains peak power consumption data uploaded by a target electric meter in a preset power consumption peak period, wherein the power consumption peak period comprises a plurality of peak power consumption time periods, and the duration of each peak power consumption time period is consistent with the duration of the target time period.

In this embodiment, the computer device may read, from the database of the computer device, the peak power consumption data uploaded by the target electricity meter in the preset power consumption peak period based on the power consumption data uploaded by the target electricity meter, and extract the peak power consumption data. Wherein, the power utilization peak period comprises a plurality of peak power utilization time periods. The duration of each peak power utilization time period is consistent with the duration of the target time period.

Alternatively, the preset peak period may include several days or several months when all or most of the home appliances in the target user corresponding to the target electricity meter are normally used. For example, each peak power consumption period may be 25 holidays in 7-9 months in 2020, or 5 months between 1 and 31 days in 6-10 months in 2020. In the case where the duration of the target time period is 1 day, then the electricity peak period may be 25 holidays of 7-9 months in 2020; in the case where the duration of the target time period is 1 month, then the power consumption peak period may be 5 months between 6 months and 1 day to 10 months and 31 days in 2020.

Based on the peak power consumption data, the computer device determines peak power consumption for the target meter during each peak power consumption time period, step 302.

In this embodiment of the application, after obtaining the peak power consumption data, the computer device may calculate, according to the duration of each peak power consumption time period, the peak power consumption corresponding to the target power meter in each peak power consumption time period by subtracting the power consumption data received at the last moment before the start of each peak power consumption time period from the power consumption data received at the last moment in each peak power consumption time period, so as to determine the power consumption corresponding to the target power meter in each peak power consumption time period.

For example, in the case where the duration of the target time period is 1 month, the duration of each peak power consumption time period is also one month. Optionally, in a case that the electricity consumption peak time period is a time period of 5 months between 6 month 1 day of 2020 year and 10 month 31 day, the computer device extracts peak electricity consumption data of a time period of 5 months between 6 month 1 day of 2020 year and 10 month 31 day of 2020 year from a database of the computer device, and calculates, based on the extracted peak electricity consumption data, an electricity consumption data received at the last time of 30 days of 6 months minus an electricity consumption data received at the last time before the start of 1 day of 6 months respectively, to obtain an electricity consumption of 6 months of 2020 year; calculating the power consumption data received at the last moment of 31 days in 7 months by subtracting the power consumption data received at the last moment before the beginning of 1 day in 7 months to obtain the power consumption of 7 months in 2020; calculating the power consumption data received at the last moment of 31 days in 8 months minus the power consumption data received at the last moment before the beginning of 1 day in 7 months to obtain the power consumption of 8 months in 2020; the method is utilized to sequentially calculate the electricity consumption of 9 months and the electricity consumption data of 10 months. Thus, peak power usage for months 6, 7, 8, 9, and 10 is determined.

Step 303, the computer device determines a maximum peak power consumption from peak power consumptions corresponding to the target electric meters in each peak power consumption time period, and determines a first power consumption threshold according to the maximum peak power consumption.

In the embodiment of the application, after the peak power consumption corresponding to the target electric meter in each peak power consumption time period is obtained, the computer equipment respectively counts the peak power consumption corresponding to the target electric meter in each peak power consumption time period, and sorts the peak power consumption from small to large or from large to small, so that the maximum peak power consumption is determined.

For example, the electricity consumption peak time period is a time period of 5 months between 6 months and 1 day and 10 months and 31 days in 2020, and the electricity consumption of 6 months is 88 degrees, the electricity consumption of 7 months is 103 degrees, the electricity consumption data of 8 months is 92 degrees, the electricity consumption of 9 months is 89 degrees, and the electricity consumption data of 10 months is 83 degrees. The computer equipment respectively compares the peak power consumption of the months 6, 7, 8, 9 and 10, and sorts the peak power consumption of the months 6, 7, 8, 9 and 10 from large to small, and determines that the peak power consumption of the month 7 is the largest, and the maximum peak power consumption is 103 degrees.

Optionally, in the embodiment of the present application, the determined maximum peak power consumption may be used as the first power threshold, and the determined maximum peak power consumption may also be multiplied by a corresponding coefficient, so as to determine the first power threshold, where the corresponding coefficient multiplied by the maximum peak power consumption may be 1.1, 1.2, 1.3, and the like, and the corresponding coefficient multiplied by the maximum peak power consumption is not specifically limited in the embodiment of the present application.

In the embodiment of the application, the computer equipment acquires peak power consumption data uploaded by a target electric meter in a preset power consumption peak period, the power consumption peak period comprises a plurality of peak power consumption time periods, and the duration of each peak power consumption time period is consistent with the duration of the target time period. Based on the peak power consumption data, the computer device determines peak power consumption corresponding to the target electric meter in each peak power consumption time period, determines the maximum peak power consumption from the peak power consumption corresponding to the target electric meter in each peak power consumption time period, and determines a first power consumption threshold according to the maximum peak power consumption. According to the method, the computer equipment acquires the peak power consumption data of the peak power consumption time period consistent with the target time period, so that the matching between the peak power consumption data and the power consumption data in the target time period is ensured, and the acquired peak power consumption data is more representative. The maximum peak power consumption data is determined from the peak power consumption data, so that the first power consumption threshold value is determined according to the maximum peak power consumption, the accuracy of the first power consumption threshold value is guaranteed, the monitoring on the abnormal power consumption of the target user is more accurate, and the user is timely reminded when the abnormal power consumption of the user occurs.

In an alternative embodiment of the present application, as shown in FIG. 4, the abnormal power usage data may include erroneous power usage data and may also include sudden power usage data. Therefore, the method for detecting whether the currently received power consumption data is abnormal power consumption data can comprise the following steps:

step 401, the computer device obtains the non-abnormal electricity consumption data uploaded by the target electricity meter, which is received last time before the current time.

In the embodiment of the application, the computer device detects the power consumption data uploaded by the target electric meter received last time before the current time, and determines that the power consumption data uploaded by the target electric meter received last time before the current time is non-abnormal power consumption data. Therefore, whether the currently received power consumption data is abnormal power consumption data or not can be detected based on the non-abnormal power consumption data uploaded by the target electric meter and received last time before the current time.

In the embodiment of the application, after the computer device receives the power consumption data uploaded by the target electric meter at the current time, the computer device reads the non-abnormal power consumption data uploaded by the target electric meter and received last time before the current time in the database, and extracts the non-abnormal power consumption data uploaded by the target electric meter and received last time before the current time, so that the non-abnormal power consumption data uploaded by the target electric meter and received last time before the current time are obtained.

Optionally, for example, the current time is 10/29/15: 00 in 2020, the uploading time interval of the power consumption data may be 1 hour, and after receiving the power consumption data uploaded by the electric meter at the current time, the computer device reads, in the database of the computer device, the non-abnormal power consumption data uploaded by the target electric meter and received in the data base at 16:00 in 29/10/2020, and extracts the non-abnormal power consumption data uploaded by the target electric meter and received in 16:00 in 29/10/2020.

At step 402, a computer device calculates a first difference between currently received power usage data and non-abnormal power usage data.

In the embodiment of the application, after acquiring the currently received power consumption data uploaded by the target electric meter and the recently received non-abnormal power consumption data uploaded by the target electric meter before the current time, the computer device subtracts the recently received non-abnormal power consumption data uploaded by the target electric meter before the current time from the currently received power consumption data uploaded by the target electric meter, and obtains a first difference between the currently received power consumption data and the recently received non-abnormal power consumption data uploaded by the target electric meter before the current time. In the embodiment of the application, the computer device detects the obtained first difference to determine whether the currently received power consumption data is error power consumption data or sudden power consumption data.

Optionally, for example, the current time is 15:00 at 29 th at 10 month in 2020, the uploading time interval of the power consumption data may be 1 hour, the power consumption data currently received by the computer device is 203 degrees, and 200 degrees of non-abnormal power consumption data uploaded by the target meter at 16:00 th at 29 th at 10 month in 2020, read from the database by the computer device are obtained by subtracting 200 degrees from 203 degrees, where 3 degrees is a first difference between the currently received power consumption data and the non-abnormal power consumption data uploaded by the target meter at 16:00 th at 29 th at 10 month in 2020. The computer equipment detects whether the currently received power consumption data is error power consumption data or mutation power consumption data according to the calculated first difference.

Step 403, based on the first difference, the computer device detects and determines whether the currently received power consumption data is error power consumption data or mutation power consumption data, and if the first difference is smaller than zero, step 404 is executed; if the first difference is greater than the second electric quantity threshold, go to step 405

In step 404, the computer device determines that the currently received power usage data is erroneous power usage data.

In step 405, the computer device determines that the currently received power consumption data is sudden change power consumption data.

In the embodiment of the present application, if a first difference between the previously received power consumption data and the non-abnormal power consumption data uploaded by the target power meter received last time before the current time is less than zero, it indicates that the current power consumption data is less than the non-abnormal power consumption data uploaded by the target power meter received last time before the current time, and since the power consumption data is continuously increased along with the power consumption of the household appliance, the power consumption data cannot be reduced along with the power consumption of the household appliance, and therefore the currently received power consumption data is determined to be the wrong power consumption data.

Optionally, for example, the current time is 15:00 at 29 th in 10 th and 29 th in 2020, the uploading time interval of the power consumption data may be 1 hour, the power consumption data currently received by the computer device is 203 degrees, the computer device reads 208 degrees of non-abnormal power consumption data uploaded by the target meter at 16:00 th in 29 th in 10 th in 2020 from the database, and subtracts 208 degrees from 203 degrees to obtain-5 degrees, where-5 is less than 0, and the computer device determines that the currently received power consumption data is the wrong power consumption data.

In this embodiment of the application, if the first difference is greater than the second electricity consumption threshold, it is determined that the currently received electricity consumption data is far greater than the non-abnormal electricity consumption data uploaded by the target electricity meter that is received last time before the current time, and the first difference between the currently received electricity consumption data and the non-abnormal electricity consumption data uploaded by the target electricity meter that is received last time before the current time exceeds the second electricity consumption threshold, so that it is determined that the currently received electricity consumption data is the sudden change electricity consumption data.

In the embodiment of the application, if a first difference between the currently received power consumption data and the non-abnormal power consumption data uploaded by the target electric meter received last time before the current time is greater than zero and smaller than a second electric quantity threshold, it is indicated that the currently received power consumption data is greater than the non-abnormal power consumption data uploaded by the target electric meter received last time before the current time, and the first difference between the currently received power consumption data and the non-abnormal power consumption data is within a preset range, so that the previously received power consumption data can be determined to be correct power consumption data.

In the embodiment of the application, through acquiring the non-abnormal electricity consumption data uploaded by the target electricity meter received last time before the current time, calculating a first difference value between the currently received electricity consumption data and the non-abnormal electricity consumption data, and judging whether the currently received electricity consumption data is the abnormal electricity consumption data or not according to two possible situations of the first difference value. In one case, if the first difference is smaller than zero, it indicates that the current power consumption data is smaller than the non-abnormal power consumption data uploaded by the target electric meter which is received last time before the current time, and since the power consumption data only can be increased but cannot be decreased, it is determined that the current received power consumption data is the wrong power consumption data. In another case, if the first difference is greater than the second electricity threshold, it indicates that the first difference between the currently received electricity consumption data and the non-abnormal electricity consumption data uploaded by the target electricity meter and received last time before the current time far exceeds the normal standard difference, and thus it is determined that the currently received electricity consumption data is the sudden change electricity consumption data. By the method, whether the currently received power consumption data are abnormal power consumption data can be accurately and quickly determined. Therefore, the accuracy of the power consumption data uploaded by the target electric meter is guaranteed, the monitoring of the power consumption of the target user is more accurate, and the abnormal power consumption of the user is prompted.

In an alternative embodiment of the present application, as shown in fig. 5, the above-mentioned embodiment refers to that the "first difference is greater than the second electricity threshold", so that before detecting whether the currently received electricity consumption data is abnormal electricity consumption data, the second electricity threshold is further determined, and the process of determining the second electricity threshold may include the following steps:

step 501, a computer device obtains peak power consumption data uploaded by a target electric meter in a preset power consumption peak period, wherein the peak power consumption data comprises a plurality of abnormal peak power consumption data.

In this embodiment, the peak power consumption data uploaded by the target electric meter in the preset power consumption peak period may be read from the database of the computer device based on the power consumption data uploaded by the target electric meter. The preset power utilization peak period may include several days or several months of normal use of all or most of the home appliances in the target user corresponding to the target electric meter.

In this embodiment of the application, the computer device periodically receives the power consumption data uploaded by the target electric meter, where a time interval of the power consumption data uploaded by the target electric meter may be 15 minutes, 30 minutes, or 1 hour. Thus, the computer device may extract in the database a plurality of peak power usage data uploaded during a preset power usage peak period. The computer equipment detects whether the currently received power consumption data is abnormal power consumption data after receiving the power consumption data uploaded by the target electric meter every time, so that the plurality of peak power consumption data extracted by the computer are detected and are non-abnormal peak power consumption data.

At step 502, for every two adjacent off-peak power consumption data, the computer device calculates a second difference between the two off-peak power consumption data.

In the embodiment of the application, after extracting a plurality of abnormal peak power consumption data from a database of a computer device, the computer device calculates a second difference value between two adjacent abnormal peak power consumption data respectively to obtain a plurality of corresponding second difference values.

For example, the plurality of abnormal peak power consumption data extracted by the computer device are respectively 103 degrees, 108 degrees, 110 degrees, 115 degrees, 123 degrees and 129 degrees, and the computer device obtains a plurality of second difference values respectively for a second difference value between 103 degrees and 108 degrees, a second difference value between 108 degrees and 110 degrees, a second difference value between 110 degrees and 115 degrees, a second difference value between 115 degrees and 123 degrees and a second difference value between 123 degrees and 129 degrees, wherein the plurality of second difference values are respectively 5 degrees, 2 degrees, 5 degrees, 8 degrees and 6 degrees.

Step 503, the computer device determines a maximum second difference value from the second difference values, and determines a second electric quantity threshold according to the maximum second difference value.

In this embodiment, after obtaining a plurality of second difference values through subtraction calculation, the computer device respectively reads each second difference value, performs data comparison on each second difference value, and determines a maximum second difference value from each second difference value. Optionally, in the embodiment of the present application, the maximum second difference may be used as the second electrical threshold, or the maximum second difference may be multiplied by a corresponding coefficient, and a final multiplication result is determined as the second electrical threshold. In this embodiment of the present application, the coefficient of the corresponding coefficient multiplied by the maximum second difference may be 1.1, 1.2, 1.3, and the like, and the coefficient multiplied by the maximum second difference is not specifically limited in this embodiment of the present application.

For example, the plurality of second differences obtained in the above example are respectively 5 degrees, 2 degrees, 5 degrees, 8 degrees, and 6 degrees, and the maximum second difference is determined to be 8 degrees, optionally, a value corresponding to the maximum second difference, that is, 8 degrees, may be used as the second electrical threshold, and the maximum second difference may be multiplied by a corresponding coefficient, and a final multiplication result is determined to be the second electrical threshold, that is, 8 degrees corresponding to the maximum second difference is multiplied by 1.3, so as to obtain 10.4 degrees, and 10.4 degrees is used as the second electrical threshold.

In the embodiment of the application, the peak power consumption data uploaded by the target electric meter in the preset power consumption peak period is obtained. And for every two adjacent non-abnormal peak power consumption data, calculating a second difference value between the two non-abnormal peak power consumption data, determining a maximum second difference value from the second difference values, and determining a second electricity quantity threshold according to the maximum second difference value. The method does not directly determine the second electricity threshold, but calculates a second difference value between every two adjacent non-abnormal peak electricity consumption data, selects a maximum second difference value from a plurality of second difference values, and determines the second electricity threshold according to the maximum second difference value, so that the calculated second electricity threshold is more accurate, and whether the currently received electricity consumption data is abnormal electricity consumption data is more accurately detected.

In an optional embodiment of the present application, the method for prompting abnormal electricity consumption may further include the following steps:

and if the currently received power consumption data are abnormal power consumption data, discarding the currently received power consumption data.

In the embodiment of the application, in a case that the computer device determines that the currently received power consumption data is abnormal power consumption data, in order to avoid interference of the abnormal power consumption data on correct power consumption data, which results in a power consumption error corresponding to the target electricity meter obtained through calculation, the currently received abnormal power consumption data may be discarded.

Optionally, the computer device may delete the currently received abnormal power consumption data, and continue to periodically receive the power consumption data uploaded by the target electric meter.

Optionally, the computer device may further store the currently received abnormal power consumption data in a storage unit other than the two storage units of the computer database, and store the data separately from the current normal power consumption data, so as to avoid interference of the abnormal power consumption data on the normal power consumption data.

In the embodiment of the application, under the condition that the currently received power consumption data is abnormal power consumption data, the currently received power consumption data is discarded, so that the interference of the abnormal power consumption data to all the power consumption data can be reduced, and the accuracy of monitoring the power consumption data of the target user is ensured.

In this embodiment of the application, the content of the step 203 "sending the abnormal electricity consumption prompting message to the terminal having the binding relationship with the target electricity meter" may include the following steps:

step 601, the computer equipment detects whether the frequency of sending the abnormal electricity consumption prompt information to the terminal is greater than a frequency threshold value.

In the embodiment of the application, in order to avoid a burden of message bombing to a user when the computer device determines that the power consumption corresponding to the target electric meter in the target time period is greater than the first power consumption threshold, the computer device reads the times of sending the power consumption abnormality prompting information to the terminal by the computer device stored in the database, and judges whether the times of sending the power consumption abnormality prompting information to the terminal is greater than the times threshold based on a result after reading the data.

Optionally, the time threshold may be preset by the computer device according to a requirement of the target user, or preset by the computer device according to a requirement instruction of the target user, and the time threshold may be set to be the same time threshold according to different target time periods, or may be set to be different time thresholds according to different target time periods.

For example, if the target time period is 1 day, the number threshold may be 1 or 2; if the target time period is one month, the number threshold may be 1 time, 2 times, 3 times, or 5 times, and the number threshold is not specifically limited in this embodiment of the application.

Step 602, if the number of times of sending the abnormal electricity consumption prompt message to the terminal is less than the number threshold, the computer device sends the abnormal electricity consumption prompt message to the terminal.

In the embodiment of the application, when the computer device determines that the number of times of sending the abnormal power consumption prompt message to the terminal is less than the number threshold, the computer device may send the abnormal power consumption prompt message to the terminal having a binding relationship with the target electric meter through communication connection with the terminal.

Optionally, the computer device may send a power consumption abnormality prompt message to the terminal by sending a short message; the computer equipment can also send the abnormal electricity consumption prompt information to the terminal by dialing the mobile phone; the computer equipment can also send the prompting information of abnormal power consumption to the terminal through other chat software, and the embodiment of the application does not specifically limit the way of sending the prompting information of abnormal power consumption to the terminal by the computer equipment.

In the embodiment of the application, if the number of times of sending the abnormal power consumption prompt information to the terminal is not less than the number threshold, the abnormal power consumption prompt information is forbidden to be sent to the terminal, so that the information bombing to the target user is avoided.

In the embodiment of the application, after sending the abnormal electricity consumption prompting information to the terminal each time, the computer equipment records the information such as the time, the mode, the content and the like of sending the abnormal electricity consumption prompting information so as to record and update the times of sending the abnormal electricity consumption prompting information to the terminal.

In the embodiment of the application, the computer device detects whether the number of times of sending the abnormal electricity consumption prompting information to the terminal is larger than a number threshold, determines whether the number of times of sending the abnormal electricity consumption prompting information to the terminal is larger than the number threshold, sends the abnormal electricity consumption prompting information to the terminal when the number of times of sending the abnormal electricity consumption prompting information to the terminal is smaller than the number threshold, and prohibits sending the abnormal electricity consumption prompting information to the terminal when the number of times of sending the abnormal electricity consumption prompting information to the terminal is not smaller than the number threshold. Therefore, the abnormal electricity consumption condition of the target user can be reminded under the condition that the target user is guaranteed not to be bombed.

Referring to fig. 7, a flowchart of an exemplary method for prompting abnormal power consumption according to an embodiment of the present application is shown, where the method may be applied to the implementation environment shown in fig. 1. As shown in fig. 7, the method may include the steps of:

step 701, the computer device periodically receives power consumption data uploaded by a target electric meter.

Step 702, a computer device obtains peak power consumption data uploaded by a target electric meter in a preset power consumption peak period, wherein the peak power consumption data comprises a plurality of abnormal peak power consumption data.

Step 703, for every two adjacent off-peak electricity consumption data, the computer device calculates a second difference between the two off-peak electricity consumption data.

Step 704, the computer device determines a maximum second difference value from the second difference values, and determines a second electric quantity threshold according to the maximum second difference value.

Step 705, after receiving the power consumption data uploaded by the target electric meter each time, the computer device obtains the non-abnormal power consumption data uploaded by the target electric meter and received last time before the current time.

At step 706, the computer device calculates a first difference between the currently received power usage data and the non-abnormal power usage data.

In step 707, the computer device detects whether the currently received power consumption data is abnormal power consumption data according to the first difference. If the first difference is less than zero, go to step 708; if the first difference is greater than the second electric quantity threshold, execute step 709; if the first difference is greater than zero and less than the second power threshold, step 711 is executed.

In step 708, the computer device determines that the currently received power consumption data is erroneous power consumption data, and performs step 710.

In step 709, the computer device determines that the currently received power consumption data is the sudden change power consumption data, and executes step 710.

In step 710, the computer device discards the currently received power consumption data.

In step 711, the computer apparatus determines that the currently received power consumption data is not abnormal power consumption data, and performs step 712.

In step 712, the computer device obtains the peak power consumption data uploaded by the target electric meter in the preset power consumption peak period.

Based on the peak power usage data, the computer device determines a peak power usage corresponding to the target meter for each peak power usage time period, step 713.

In step 714, the computer device determines a maximum peak power consumption from the peak power consumptions corresponding to the target electricity meters in each peak power consumption time period, and determines a first power consumption threshold according to the maximum peak power consumption.

In step 715, the computer device calculates whether the power consumption corresponding to the target electric meter in the target time period is greater than a first power consumption threshold value based on the currently received power consumption data and the historically received power consumption data uploaded by the target electric meter.

In step 716, when the power consumption corresponding to the target electricity meter in the target time period is greater than the first electricity consumption threshold, the computer device detects whether the number of times of sending the abnormal power consumption prompt information to the terminal is greater than the number threshold.

In step 717, in the case that the number of times of sending the abnormal electricity consumption prompt message to the terminal is less than the number threshold, the computer device sends the abnormal electricity consumption prompt message to the terminal.

It should be understood that although the various steps in the flow charts of fig. 2-7 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-7 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.

In one embodiment, as shown in fig. 8, there is provided a power consumption abnormality presentation apparatus 800 including: a receiving module 801, a detecting module 802, a calculating module 803 and a sending module 804, wherein:

the receiving module 801 is configured to periodically receive power consumption data uploaded by the target electric meter.

The detecting module 802 is configured to detect whether currently received power consumption data is abnormal power consumption data after receiving the power consumption data uploaded by the target electric meter each time.

The calculating module 803 is configured to calculate, based on the currently received power consumption data and the historically received power consumption data uploaded by the target electric meter, whether the power consumption corresponding to the target electric meter in the target time period is greater than a first power consumption threshold value, when the currently received power consumption data is not the abnormal power consumption data.

The sending module 804 is configured to send a power consumption abnormality prompting message to a terminal having a binding relationship with the target electric meter when the power consumption corresponding to the target electric meter in the target time period is greater than the first power consumption threshold.

In one embodiment, as shown in fig. 9, before the calculating module 803, the power consumption abnormality prompting apparatus 800 further includes: an obtaining module 805, a first determining module 806 and a second determining module 807, wherein:

the obtaining module 805 is configured to obtain peak power consumption data uploaded by a target electric meter in a preset power consumption peak period, where the power consumption peak period includes multiple peak power consumption time periods, and a time duration of each peak power consumption time period is consistent with a time duration of the target time period.

The first determination module 806: and determining the peak power consumption corresponding to the target electric meter in each peak power consumption time period based on the peak power consumption data.

The second determining module 807 is configured to determine a maximum peak power consumption from peak power consumptions corresponding to the target power meters in each peak power consumption time period, and determine the first power consumption threshold according to the maximum peak power consumption.

In one embodiment, the abnormal electricity consumption data includes error electricity consumption data, and the detecting module 802 is specifically configured to: acquiring non-abnormal electricity consumption data uploaded by a target electricity meter and received last time before the current moment; calculating a first difference value between the currently received power consumption data and the non-abnormal power consumption data; and if the first difference is smaller than zero, determining that the currently received power consumption data are error power consumption data.

In one embodiment, the abnormal electricity consumption data includes error electricity consumption data, and the detecting module 802 is specifically configured to: acquiring non-abnormal electricity consumption data uploaded by a target electricity meter and received last time before the current moment; calculating a first difference value between the currently received power consumption data and the non-abnormal power consumption data; and if the first difference is smaller than zero, determining that the currently received power consumption data are error power consumption data.

In one embodiment, the detecting module 802 is further configured to: acquiring peak power consumption data uploaded by a target electric meter in a preset power consumption peak period, wherein the peak power consumption data comprises a plurality of non-abnormal peak power consumption data; calculating a second difference value between every two adjacent non-abnormal peak power consumption data; and determining a maximum second difference value from the second difference values, and determining a second electric quantity threshold value according to the maximum second difference value.

In one embodiment, as shown in fig. 10, the above-mentioned abnormal electricity consumption prompting apparatus 800 further includes: a discard module 808, wherein:

the discard module 808: and the processing module is used for discarding the currently received electricity consumption data under the condition that the currently received electricity consumption data is abnormal electricity consumption data.

In one embodiment, the sending module 804 is specifically configured to: detecting whether the times of sending the abnormal electricity consumption prompt information to the terminal is greater than a time threshold value; and if the times of sending the abnormal electricity consumption prompt information to the terminal are less than the time threshold, sending the abnormal electricity consumption prompt information to the terminal.

For the specific limitation of the power consumption abnormality prompting device, reference may be made to the above limitation on the power consumption abnormality prompting method, which is not described herein again. All or part of the modules in the power consumption abnormity prompting device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.

In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:

periodically receiving power consumption data uploaded by a target electric meter; after receiving power consumption data uploaded by a target electric meter each time, detecting whether the currently received power consumption data are abnormal power consumption data; if the currently received power consumption data is not abnormal power consumption data, calculating whether the power consumption corresponding to the target electric meter in the target time period is larger than a first power consumption threshold value or not based on the currently received power consumption data and the historically received power consumption data uploaded by the target electric meter; and if the power consumption corresponding to the target electric meter in the target time period is larger than the first power consumption threshold value, sending power consumption abnormity prompt information to a terminal in a binding relationship with the target electric meter.

In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring peak power consumption data uploaded by a target electric meter in a preset power consumption peak period, wherein the power consumption peak period comprises a plurality of peak power consumption time periods, and the duration of each peak power consumption time period is consistent with that of the target time period; determining peak power consumption corresponding to the target electric meter in each peak power consumption time period based on the peak power consumption data; and determining the maximum peak power consumption from the peak power consumption corresponding to the target electric meter in each peak power consumption time period, and determining a first power consumption threshold according to the maximum peak power consumption.

In one embodiment, the abnormal power usage data includes erroneous power usage data, and the processor when executing the computer program further performs the steps of: acquiring non-abnormal electricity consumption data uploaded by a target electricity meter and received last time before the current moment; calculating a first difference value between the currently received power consumption data and the non-abnormal power consumption data; and if the first difference is smaller than zero, determining that the currently received power consumption data are error power consumption data.

In one embodiment, the exception data includes sudden power usage data, and the processor when executing the computer program further performs the steps of: acquiring non-abnormal electricity consumption data uploaded by a target electricity meter and received last time before the current moment; calculating a first difference value between the currently received power consumption data and the non-abnormal power consumption data; and if the first difference is larger than the second electricity quantity threshold value, determining that the currently received electricity consumption data are sudden change electricity consumption data.

In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring peak power consumption data uploaded by a target electric meter in a preset power consumption peak period, wherein the peak power consumption data comprises a plurality of non-abnormal peak power consumption data; calculating a second difference value between every two adjacent non-abnormal peak power consumption data; and determining a maximum second difference value from the second difference values, and determining a second electric quantity threshold value according to the maximum second difference value.

In one embodiment, the processor, when executing the computer program, further performs the steps of: and if the currently received power consumption data are abnormal power consumption data, discarding the currently received power consumption data.

In one embodiment, the processor, when executing the computer program, further performs the steps of: detecting whether the times of sending the abnormal electricity consumption prompt information to the terminal is greater than a time threshold value;

and if the times of sending the abnormal electricity consumption prompt information to the terminal are less than the time threshold, sending the abnormal electricity consumption prompt information to the terminal.

In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:

periodically receiving power consumption data uploaded by a target electric meter; after receiving power consumption data uploaded by a target electric meter each time, detecting whether the currently received power consumption data are abnormal power consumption data; if the currently received power consumption data is not abnormal power consumption data, calculating whether the power consumption corresponding to the target electric meter in the target time period is larger than a first power consumption threshold value or not based on the currently received power consumption data and the historically received power consumption data uploaded by the target electric meter; and if the power consumption corresponding to the target electric meter in the target time period is larger than the first power consumption threshold value, sending power consumption abnormity prompt information to a terminal in a binding relationship with the target electric meter.

In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring peak power consumption data uploaded by a target electric meter in a preset power consumption peak period, wherein the power consumption peak period comprises a plurality of peak power consumption time periods, and the duration of each peak power consumption time period is consistent with that of the target time period; determining peak power consumption corresponding to the target electric meter in each peak power consumption time period based on the peak power consumption data; and determining the maximum peak power consumption from the peak power consumption corresponding to the target electric meter in each peak power consumption time period, and determining a first power consumption threshold according to the maximum peak power consumption.

In one embodiment, the abnormal power usage data comprises erroneous power usage data, and the computer program when executed by the processor further performs the steps of: acquiring non-abnormal electricity consumption data uploaded by a target electricity meter and received last time before the current moment; calculating a first difference value between the currently received power consumption data and the non-abnormal power consumption data; and if the first difference is smaller than zero, determining that the currently received power consumption data are error power consumption data.

In one embodiment, the exception data comprises abrupt power usage data, and the computer program when executed by the processor further performs the steps of: acquiring non-abnormal electricity consumption data uploaded by a target electricity meter and received last time before the current moment; calculating a first difference value between the currently received power consumption data and the non-abnormal power consumption data; and if the first difference is larger than the second electricity quantity threshold value, determining that the currently received electricity consumption data are sudden change electricity consumption data.

In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring peak power consumption data uploaded by a target electric meter in a preset power consumption peak period, wherein the peak power consumption data comprises a plurality of non-abnormal peak power consumption data; calculating a second difference value between every two adjacent non-abnormal peak power consumption data; and determining a maximum second difference value from the second difference values, and determining a second electric quantity threshold value according to the maximum second difference value.

In one embodiment, the computer program when executed by the processor further performs the steps of: and if the currently received power consumption data are abnormal power consumption data, discarding the currently received power consumption data.

In one embodiment, the computer program when executed by the processor further performs the steps of: detecting whether the times of sending the abnormal electricity consumption prompt information to the terminal is greater than a time threshold value;

and if the times of sending the abnormal electricity consumption prompt information to the terminal are less than the time threshold, sending the abnormal electricity consumption prompt information to the terminal.

It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.

The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.

The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

25页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:用于光通信的方法、设备、装置和计算机可读介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!