Intelligent electric meter alarm method and device, electronic equipment and storage medium
By training electricity consumption prediction models and setting personalized alarm methods, smart meters can intelligently alarm according to users' electricity consumption habits and tolerances, solving the problem that existing meter alarm methods cannot meet diversified needs, improving user satisfaction and Stability of power supply.
Patent Information
- Application Number
- CN202410721855.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-05
- Publication Date
- 2024-08-30
AI Technical Summary
Existing meter alarm methods cannot provide personalized alarms based on different users and power consumption needs, resulting in unsatisfactory alarm effects and the inability to effectively avoid the impact of sudden power interruptions on users.
By obtaining the user information and historical power consumption data of the target meter, the power consumption prediction model is trained to determine the appropriate balance alarm threshold, and different alarm methods are set according to the user's power outage tolerance to achieve personalized alarms for smart meters.
It realizes smart meter alarms based on different users and power consumption needs, improves user satisfaction and avoids unnecessary effects of power interruptions.
Smart Images

Figure CN118569436A
Abstract
Description
Technical Field
[0001] One or more embodiments of the present specification relate to the field of instrument measurement and control technology, and in particular, to a smart meter alarm method, device, electronic device and storage medium. Background Art
[0002] In the electric power industry, electric meters are often used to count the electricity consumption of users, and electricity is supplied through a prepaid model. When the real-time balance in the electric meter is insufficient, the power is cut off for the user. Therefore, in order to avoid the instability caused by sudden power outages, it is usually necessary to use an electric meter alarm method so that an early alarm is issued when the balance in the electric meter is insufficient. However, the existing conventional electric meter alarm methods often use a fixed balance alarm threshold. When the balance alarm threshold is set too low, the early warning effect cannot be achieved. When the balance alarm threshold is set too high, excessive reminders will cause user disgust. Therefore, the use of this conventional alarm method cannot meet the alarm needs of different users and different electricity consumption, and the alarm effect is not ideal. Summary of the invention
[0003] The embodiments of this specification provide a smart meter alarm method, device, electronic device and storage medium, and the technical solution is as follows: In a first aspect, an embodiment of the present specification provides a smart meter alarm method, the method comprising: Obtain user information and historical electricity consumption data corresponding to the target electricity meter; Training an electricity consumption prediction model based on the historical electricity consumption data, and determining a balance alarm threshold of the target electricity meter based on the trained electricity consumption prediction model; Determining a power outage tolerance corresponding to the user information, and determining an alarm mode of the target electric meter based on the power outage tolerance; The real-time meter balance of the target meter is continuously monitored, and when the real-time meter balance is not greater than the balance alarm threshold, an alarm is issued according to the alarm mode.
[0004] In a second aspect, a smart meter alarm device is provided, the device comprising: An acquisition module is used to acquire user information and historical electricity consumption data corresponding to a target electric meter; A prediction module, used to train an electricity consumption prediction model based on the historical electricity consumption data, and determine a balance alarm threshold of the target electricity meter based on the trained electricity consumption prediction model; A determination module, configured to determine a power outage tolerance corresponding to the user information, and determine an alarm mode of the target electric meter based on the power outage tolerance; The alarm module is used to continuously monitor the real-time meter balance of the target meter, and to generate an alarm according to the alarm mode when the real-time meter balance is not greater than the balance alarm threshold.
[0005] In a third aspect, an electronic device is provided, including a device processor and a memory; The device processor is connected to the memory; The memory is used to store executable program code; The device processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute the steps of the method provided in the first aspect or any possible implementation manner of the first aspect.
[0006] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, and the computer-readable storage medium stores instructions, which, when the instructions are executed on a computer or a device processor, cause the computer or the device processor to execute the method provided in the first aspect or any possible implementation of the first aspect.
[0007] The beneficial effects brought by the technical solutions provided by some embodiments of this specification include at least: In one or more embodiments of this specification, the user information and historical electricity consumption data corresponding to the target meter are first obtained, the electricity consumption prediction model is trained based on the historical electricity consumption data, and the balance alarm threshold is determined based on the trained electricity consumption prediction model, and then the alarm mode of the target meter is determined based on the power outage tolerance. When the real-time meter balance is not greater than the balance alarm threshold, the smart meter alarm is completed according to the determined alarm mode. When different target users use the smart meter, the electricity consumption prediction model can be used to determine the appropriate balance alarm threshold for alarm monitoring in the face of different electricity consumption requirements, which meets diversified needs, and different target users are reminded separately by setting different alarm modes, thereby improving user satisfaction. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0009] Figure 1 A schematic diagram of the system architecture of a smart meter alarm method provided in an embodiment of this specification; Figure 2 A flowchart of a smart meter alarm method provided in an embodiment of this specification; Figure 3 A schematic diagram of the structure of a smart meter alarm device provided in an embodiment of this specification; Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of this specification. DETAILED DESCRIPTION
[0010] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0011] The terms "first", "second", "third", etc. in the description and claims of this specification and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0012] The following description provides examples and does not limit the scope, applicability or examples set forth in the claims. Changes may be made to the functions and arrangements of the elements described without departing from the scope of the present specification. Various processes or components may be appropriately omitted, substituted or added to each example. For example, the described method may be performed in an order different from the order described, and various steps may be added, omitted or combined. In addition, features described with respect to some examples may be combined in other examples.
[0013] See also Figure 1 , Figure 1 A schematic diagram of the system architecture of a smart meter alarm method provided in an embodiment of this specification is shown.
[0014] like Figure 1 As shown, the system architecture of the smart meter alarm method may include at least a terminal 10 , a server 20 and a network 30 .
[0015] The terminal 10 includes but is not limited to electronic devices such as smart phones, desktop computers, tablet computers, laptops, smart speakers, digital assistants, smart wearable devices, etc., and may also be software running on the above electronic devices, such as applications, etc. Optionally, the operating system running on the electronic device may include but is not limited to Android system, IOS system, Linux, Windows, etc. Optionally, the terminal 10 provides a smart meter alarm service to the user, and the terminal 10 may obtain a smart meter alarm instruction of an application program interface and send a smart meter alarm request to the server 20.
[0016] The server 20 can provide background services for the terminal 10. According to the smart meter alarm request sent by the terminal 10, the server 20 will obtain a series of smart meter alarm instructions, and the server 20 transmits the smart meter alarm instructions to other terminals 10 through the network 30. Specifically, the server 20 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms.
[0017] The network 30 is used to provide a medium for a communication link between the terminal 10 and the server 20. The network 30 may include various connection types, such as wired or wireless communication links or optical fiber cables.
[0018] In addition, it should be noted that Figure 1 What is shown is only one system provided by the present disclosure. In practical applications, other systems may also be included, for example, more terminals may be included.
[0019] In the embodiments of the present specification, the terminal 10 and the server 20 may be directly or indirectly connected via wired or wireless communication, which is not limited in the present disclosure.
[0020] See next Figure 2 , Figure 2 The overall flow chart of a smart meter alarm method provided in an embodiment of the present specification is shown. The smart meter alarm method can be used in the server 20.
[0021] like Figure 2 As shown, the smart meter alarm method may at least include the following steps: Step 201: Obtain user information and historical electricity usage data corresponding to a target electricity meter.
[0022] In the embodiments of this specification, when the target user's electricity consumption status is monitored through the target meter, the user information corresponding to the target meter will be recorded and uploaded to the background server at the initial installation stage of the meter, and the target meter will continuously record and upload real-time electricity consumption data during the continuous monitoring process, and save it as historical electricity consumption data. In the actual electricity consumption process of different target users, different electricity consumption channels and electricity consumption patterns will lead to different electricity consumption data, so the user information and historical electricity consumption data corresponding to the target meter can be obtained through the background server first, so as to realize the intelligent alarm of the target meter later.
[0023] Step 202: training an electricity consumption prediction model based on the historical electricity consumption data, and determining a balance alarm threshold of the target electricity meter based on the trained electricity consumption prediction model.
[0024] In the embodiments of this specification, each target user will have different electricity demands according to actual production and living needs. As an example: a user stays at home for a long time due to weather reasons at a certain stage, which will cause a sharp increase in electricity consumption during this period, or a user is away from home for a long time due to work reasons at a certain stage, which will cause a sharp drop in electricity consumption during this period. Therefore, after obtaining the historical electricity consumption data corresponding to the target meter, you can first train an electricity consumption prediction model based on the historical electricity consumption data, using the electricity consumption time as the model input value and the electricity consumption as the model output value. Enter a fixed time in the trained electricity consumption prediction model to predict the electricity consumption within the fixed time. Therefore, the electricity consumption within a fixed time is determined by the trained electricity consumption prediction model, and then the appropriate balance alarm threshold of the target meter is determined based on the fixed time electricity consumption combined with the current electricity price.
[0025] In one possible implementation, the training of the electricity consumption prediction model based on the historical electricity consumption data includes: Constructing an initial electricity consumption prediction model based on a deep learning algorithm, and constructing a sample training set based on the historical electricity consumption data; The initial power consumption prediction model is trained based on the sample training set to obtain a trained power consumption prediction model.
[0026] In the embodiments of the present specification, when training the electricity consumption prediction model through historical electricity consumption data, an initial electricity consumption prediction model can be first constructed based on a deep learning algorithm, and a large amount of historical electricity consumption data can be analyzed, and a large number of data pairs in which the electricity consumption time and the electricity consumption match each other can be intercepted and used as the training set of the initial electricity consumption prediction model. The electricity consumption time in the training set is used as the model input value, and the electricity consumption is used as the model output value to train the initial electricity consumption prediction model to obtain a trained electricity consumption prediction model. Then, the parameters of the electricity consumption prediction model are optimized through representative historical electricity consumption data to improve the accuracy of the model prediction. When the model is used subsequently, it only needs to enter a fixed time length to predict the predicted electricity consumption within the fixed time length.
[0027] In one possible implementation, the determining the balance alarm threshold of the target electric meter based on the trained electric consumption prediction model includes: Setting an alarm judgment time period, and determining a total predicted power consumption within the set alarm judgment time period based on the trained power consumption prediction model; A balance alarm threshold of the target electricity meter is determined based on the total predicted electricity consumption.
[0028] In the embodiments of the present specification, in order to determine the balance alarm threshold of the target electricity meter, a fixed alarm judgment time period may be set first. As an example: if an alarm reminder is required approximately three days before the balance of the electricity meter returns to zero, the alarm judgment time period is set to 3 days. Next, using the set alarm judgment time period as input, a trained electricity consumption prediction model is used to perform a prediction to obtain the total predicted electricity consumption within the alarm judgment time period. Furthermore, after determining the total predicted electricity consumption within the alarm judgment time period, in order to minimize the delayed alarm caused by the prediction error, the total predicted electricity consumption is increased by ten percent to obtain the final determined amount. Finally, the final determined amount is converted into the balance alarm threshold of the target electricity meter based on the current unit price of electricity.
[0029] Step 203: Determine the power outage tolerance corresponding to the user information, and determine the alarm mode of the target electric meter based on the power outage tolerance.
[0030] In the embodiments of this specification, the target users may include ordinary residential users, university research institute users, and micro-enterprise users. For ordinary residential users, power outages due to insufficient meter balance are generally acceptable, and timely payment of electricity bills is sufficient, so the corresponding power outage tolerance is very high. For university research institute users, sudden power outages due to insufficient meter balance may cause losses such as experimental data destruction, which consumes a lot of time and effort, so the corresponding power outage tolerance is very low. For micro-enterprise users, sudden power outages due to insufficient meter balance may cause production lines or companies to stop operating, and it is necessary to start the backup power supply in time to wait for the electricity bill to be paid, so the corresponding power outage tolerance is general. Therefore, due to the different actual power uses of each target user, the corresponding power outage tolerance of the target user is different when there is a sudden power outage due to insufficient meter balance. Further, the determined power outage tolerance represents the impact of power outages to a certain extent, so the alarm mode of the target meter can be determined based on the power outage tolerance, and the actual reminder level required by different target users can be met by setting different alarm modes.
[0031] In one possible implementation, determining the power outage tolerance corresponding to the user information includes: Determine a category label corresponding to the user information; The power outage tolerance corresponding to the type tag is determined based on the tolerance database.
[0032] In the embodiments of this specification, when determining the power outage tolerance corresponding to the user information, the category label corresponding to the user information may be determined first. As an example, the category label may include labels such as ordinary residential users, micro-enterprise users, and university and research institute users. Then, a tolerance database is preset by an electric power engineer with long-term work experience in combination with a user survey form. In the tolerance database, each category label has a corresponding power outage tolerance threshold. Further, the category label is queried in the preset tolerance database to determine the power outage tolerance corresponding to the category label.
[0033] As an example: if the category label corresponding to a certain user information is an ordinary residential user, then the corresponding power outage tolerance is 80 when queried through the tolerance database; if the category label corresponding to a certain user information is a micro-enterprise user, then the corresponding power outage tolerance is 40 when queried through the tolerance database; and if the category label corresponding to a certain user information is a university or research institute user, then the corresponding power outage tolerance is 10 when queried through the tolerance database.
[0034] In one possible implementation, the determining the alarm mode of the target electric meter based on the power outage tolerance includes: When the power outage tolerance is within the first tolerance interval, the target electric meter uses a first alarm mode, wherein the first alarm mode is that a buzzer and a flashing light work simultaneously, and sends an alarm message to the target terminal; When the power outage tolerance is within the second tolerance interval, the target meter uses the second alarm mode, the second alarm mode is that the buzzer and the flashing light work simultaneously, and the maximum value of the first tolerance interval is less than the minimum value of the second tolerance interval; When the power outage tolerance is in the third tolerance interval, the alarm mode of the target meter is the third alarm mode, the third alarm mode is buzzer operation, and the maximum value of the second tolerance interval is less than the minimum value of the third tolerance interval.
[0035] In the embodiment of this specification, different target users have different tolerances for power outages, so different alarm modes need to be set to meet the actual reminder levels required by different target users. When determining the alarm mode of the target meter by the acquired tolerance for power outages, it is only necessary to determine the tolerance interval in which the tolerance for power outages is located. Set the first tolerance interval to 0-30, the second tolerance interval to 31-60, and the third tolerance interval to 61-100. When the acquired tolerance for power outages is in the first tolerance interval of 0-30, the first alarm mode is adopted, that is, the buzzer makes a chirp, the flashing light continues to flash, and an alarm message is sent to the target terminal to prompt the user to recharge the electricity bill in time. When the acquired tolerance for power outages is in the second tolerance interval of 31-60, the second alarm mode is adopted, that is, the buzzer makes a chirp, and the flashing light continues to flash. When the acquired tolerance for power outages is in the third tolerance interval of 61-100, the third alarm mode is adopted, that is, the buzzer makes a chirp, and the flashing light continues to flash.
[0036] Step 204: continuously monitor the real-time meter balance of the target meter, and when the real-time meter balance is not greater than the balance alarm threshold, generate an alarm according to the alarm mode.
[0037] In the embodiment of the present specification, after the balance alarm threshold and alarm mode corresponding to the target meter are determined, the real-time meter balance of the target meter is continuously detected, and when the monitored real-time meter balance is greater than the balance alarm threshold, the continuous monitoring state is maintained. When the monitored real-time meter balance is not greater than the balance alarm threshold, it indicates that the alarm condition has been triggered at this time, and a timely alarm is issued according to the previously determined alarm mode.
[0038] In one possible implementation, when the real-time electricity meter balance is not greater than the balance alarm threshold, an alarm is issued according to the alarm mode, including: Calculate the difference between the real-time electricity meter balance and the balance alarm threshold to obtain a comparison result; When the comparison result indicates that the real-time electric meter balance is greater than the balance alarm threshold, maintaining a continuous monitoring state; When the comparison result indicates that the real-time electricity meter balance is not greater than the balance alarm threshold, the alarm method is adopted to issue an alarm.
[0039] In the embodiments of this specification, in order to timely determine the time when the real-time meter balance is not greater than the balance alarm threshold, the real-time meter balance and the balance alarm threshold can be calculated by difference to obtain a comparison result. When the comparison result after the difference calculation is a positive number, it indicates that the real-time meter balance is greater than the balance alarm threshold, and no alarm is required, and only the continuous monitoring state is maintained. When the comparison result after the difference calculation is a negative number or zero, it indicates that the real-time meter balance is not greater than the balance alarm threshold, and a determined alarm method is used to alarm.
[0040] In one possible implementation, when the real-time electric meter balance is not greater than the balance alarm threshold, after the alarm is issued according to the alarm mode, the method includes: Determine a balance interval corresponding to the real-time electricity meter balance; The alarm frequency of the buzzer is determined based on the balance interval, and the buzzer is controlled to alarm based on the alarm frequency.
[0041] In the embodiments of this specification, no matter which method is used for alarm, a buzzer will be used to sound, and different alarm frequencies can be set when the buzzer sounds, so different alarm frequencies can be set to represent the real-time meter balance. Therefore, after using the determined alarm method to alarm, the balance interval corresponding to the real-time meter balance can be determined first, and then the buzzer alarm frequency can be determined based on the balance interval, and each balance interval corresponds to an alarm frequency. Furthermore, the buzzer is controlled to alarm at the determined alarm frequency. When the real-time meter balance is less, the corresponding buzzer alarm frequency is faster.
[0042] As an example, when the balance alarm threshold is determined to be 30, the buzzer alarm frequency corresponding to the balance interval 0-5 is set to 60Hz, the buzzer alarm frequency corresponding to the balance interval 6-10 is set to 50Hz, the buzzer alarm frequency corresponding to the balance interval 11-15 is set to 40Hz, the buzzer alarm frequency corresponding to the balance interval 16-20 is set to 30Hz, the buzzer alarm frequency corresponding to the balance interval 21-25 is set to 20Hz, and the buzzer alarm frequency corresponding to the balance interval 26-30 is set to 10Hz. When the monitored real-time meter balance is 18, the corresponding balance interval 16-20 controls the buzzer alarm frequency to 30Hz. If the user still does not recharge in time in the subsequent stage, causing the detected real-time meter balance to drop to 3, the corresponding balance interval 0-5 controls the buzzer alarm frequency to 60Hz, so as to achieve the purpose of changing the buzzer alarm frequency with the real-time meter balance.
[0043] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0044] See next Figure 3 , Figure 3 The structure diagram of a smart meter alarm device provided in the embodiment of this specification is shown. It should be noted that: Figure 3 The smart meter alarm device shown is used to implement the present application Figure 2 For the convenience of explanation, only the part related to the embodiment of the present application is shown. For the specific technical details not disclosed, please refer to the present application. Figure 2 The embodiment shown.
[0045] like Figure 3 As shown, the smart meter alarm device may at least include: An acquisition module 301 is used to acquire user information and historical electricity consumption data corresponding to a target electric meter; A prediction module 302, configured to train a power consumption prediction model based on the historical power consumption data, and determine a balance alarm threshold of the target power meter based on the trained power consumption prediction model; A determination module 303, configured to determine a power outage tolerance corresponding to the user information, and determine an alarm mode of the target electric meter based on the power outage tolerance; The alarm module 304 is used to continuously monitor the real-time meter balance of the target meter, and to generate an alarm according to the alarm mode when the real-time meter balance is not greater than the balance alarm threshold.
[0046] In one possible implementation, the prediction module 302 is specifically used for: Constructing an initial electricity consumption prediction model based on a deep learning algorithm, and constructing a sample training set based on the historical electricity consumption data; The initial power consumption prediction model is trained based on the sample training set to obtain a trained power consumption prediction model.
[0047] In one possible implementation, the prediction module 302 is further configured to: Setting an alarm judgment time period, and determining a total predicted power consumption within the set alarm judgment time period based on the trained power consumption prediction model; A balance alarm threshold of the target electricity meter is determined based on the total predicted electricity consumption.
[0048] In one possible implementation, the determination module 303 is specifically configured to: Determine a category label corresponding to the user information; The power outage tolerance corresponding to the type tag is determined based on the tolerance database.
[0049] In one possible implementation, the determination module 303 is further configured to: When the power outage tolerance is within the first tolerance interval, the target electric meter uses a first alarm mode, wherein the first alarm mode is that a buzzer and a flashing light work simultaneously, and sends an alarm message to the target terminal; When the power outage tolerance is within the second tolerance interval, the target meter uses the second alarm mode, the second alarm mode is that the buzzer and the flashing light work simultaneously, and the maximum value of the first tolerance interval is less than the minimum value of the second tolerance interval; When the power outage tolerance is in the third tolerance interval, the alarm mode of the target meter is the third alarm mode, the third alarm mode is buzzer operation, and the maximum value of the second tolerance interval is less than the minimum value of the third tolerance interval.
[0050] In one possible implementation, the alarm module 304 is specifically used for: Calculate the difference between the real-time electricity meter balance and the balance alarm threshold to obtain a comparison result; When the comparison result indicates that the real-time electric meter balance is greater than the balance alarm threshold, maintaining a continuous monitoring state; When the comparison result indicates that the real-time electricity meter balance is not greater than the balance alarm threshold, the alarm method is adopted to issue an alarm.
[0051] In one possible implementation, the alarm module 304 is further configured to: Determine a balance interval corresponding to the real-time electricity meter balance; The alarm frequency of the buzzer is determined based on the balance interval, and the buzzer is controlled to alarm based on the alarm frequency.
[0052] Those skilled in the art can clearly understand that the technical solutions of the embodiments of the present application can be implemented with the help of software and / or hardware. The "unit" and "module" in this specification refer to software and / or hardware that can independently complete or cooperate with other components to complete specific functions, where the hardware can be, for example, a field programmable gate array (FPGA), an integrated circuit (IC), etc.
[0053] Each processing unit and / or module of the embodiments of the present application may be implemented by an analog circuit that implements the functions described in the embodiments of the present application, or may be implemented by software that executes the functions described in the embodiments of the present application.
[0054] See next Figure 4 , Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of this specification is shown.
[0055] like Figure 4 As shown, the electronic device 400 may include: at least one device processor 401 , at least one network interface 404 , a user interface 403 , a memory 405 , and at least one communication bus 402 .
[0056] The communication bus 402 may be used to realize the connection and communication among the above-mentioned components.
[0057] The user interface 403 may include buttons, and the optional user interface may also include a standard wired interface or a wireless interface.
[0058] The network interface 404 may include, but is not limited to, a Bluetooth module, an NFC module, a Wi-Fi module, etc.
[0059] Among them, the device processor 401 may include one or more processing cores. The device processor 401 uses various interfaces and lines to connect various parts within the entire electronic device 400, and executes various functions and processes data of the electronic device 400 by running or executing instructions, programs, code sets or instruction sets stored in the memory 405, and calling data stored in the memory 405. Optionally, the device processor 401 can be implemented in at least one hardware form of DSP, FPGA, and PLA. The device processor 401 can integrate one or a combination of CPU, GPU, modem, etc. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to handle wireless communications. It can be understood that the above-mentioned modem may not be integrated into the device processor 401, and it can be implemented separately through a chip.
[0060] The memory 405 may include a RAM or a ROM. Optionally, the memory 405 includes a non-transitory computer-readable medium. The memory 405 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 405 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned method embodiments, etc.; the data storage area may store data involved in the above-mentioned method embodiments, etc. The memory 405 may optionally be at least one storage device located away from the aforementioned device processor 401. As Figure 4 As shown, the memory 405 as a computer storage medium may include an operating system, a network communication module, a user interface module, and program instructions.
[0061] Specifically, the device processor 401 may be used to call the smart meter alarm application stored in the memory 405, and specifically perform the following operations: Obtain user information and historical electricity consumption data corresponding to the target electricity meter; Training an electricity consumption prediction model based on the historical electricity consumption data, and determining a balance alarm threshold of the target electricity meter based on the trained electricity consumption prediction model; Determining a power outage tolerance corresponding to the user information, and determining an alarm mode of the target electric meter based on the power outage tolerance; The real-time meter balance of the target meter is continuously monitored, and when the real-time meter balance is not greater than the balance alarm threshold, an alarm is issued according to the alarm mode.
[0062] As an optional embodiment of this specification, it is characterized in that the training of the electricity consumption prediction model based on the historical electricity consumption data includes: Constructing an initial electricity consumption prediction model based on a deep learning algorithm, and constructing a sample training set based on the historical electricity consumption data; The initial power consumption prediction model is trained based on the sample training set to obtain a trained power consumption prediction model.
[0063] As an optional embodiment of the present specification, it is characterized in that the determining the balance alarm threshold of the target electric meter based on the trained electric consumption prediction model includes: Setting an alarm judgment time period, and determining a total predicted power consumption within the set alarm judgment time period based on the trained power consumption prediction model; A balance alarm threshold of the target electricity meter is determined based on the total predicted electricity consumption.
[0064] As an optional embodiment of this specification, it is characterized in that the determining the power outage tolerance corresponding to the user information includes: Determine a category label corresponding to the user information; The power outage tolerance corresponding to the type tag is determined based on the tolerance database.
[0065] As an optional embodiment of this specification, it is characterized in that the determining the alarm mode of the target electric meter based on the power outage tolerance includes: When the power outage tolerance is within the first tolerance interval, the target electric meter uses a first alarm mode, wherein the first alarm mode is that a buzzer and a flashing light work simultaneously, and sends an alarm message to the target terminal; When the power outage tolerance is within the second tolerance interval, the target meter uses the second alarm mode, the second alarm mode is that the buzzer and the flashing light work simultaneously, and the maximum value of the first tolerance interval is less than the minimum value of the second tolerance interval; When the power outage tolerance is in the third tolerance interval, the alarm mode of the target meter is the third alarm mode, the third alarm mode is buzzer operation, and the maximum value of the second tolerance interval is less than the minimum value of the third tolerance interval.
[0066] As an optional embodiment of this specification, it is characterized in that when the real-time meter balance is not greater than the balance alarm threshold, after the alarm is issued according to the alarm mode, it includes: Determine a balance interval corresponding to the real-time electricity meter balance; The alarm frequency of the buzzer is determined based on the balance interval, and the buzzer is controlled to alarm based on the alarm frequency.
[0067] As an optional embodiment of this specification, it is characterized in that when the real-time meter balance is not greater than the balance alarm threshold, an alarm is issued according to the alarm mode, including: Calculate the difference between the real-time electricity meter balance and the balance alarm threshold to obtain a comparison result; When the comparison result indicates that the real-time electric meter balance is greater than the balance alarm threshold, maintaining a continuous monitoring state; When the comparison result indicates that the real-time electricity meter balance is not greater than the balance alarm threshold, the alarm method is adopted to issue an alarm.
[0068] The embodiments of this specification also provide a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the above method are implemented. The computer-readable storage medium may include, but is not limited to, any type of disk, including a floppy disk, an optical disk, a DVD, a CD-ROM, a micro drive, and a magneto-optical disk, a ROM, a RAM, an EPROM, an EEPROM, a DRAM, a VRAM, a flash memory device, a magnetic card or an optical card, a nanosystem (including a molecular memory IC), or any type of medium or device suitable for storing instructions and / or data.
[0069] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0070] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0071] In the several embodiments provided in the present application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0072] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0073] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0074] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, disk or optical disk and other media that can store program codes.
[0075] A person skilled in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by entering a program to instruct related hardware, and the program may be stored in a computer-readable memory, which may include a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0076] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
Claims
1. A smart meter alarm method, characterized in that: The method comprises: Obtain user information and historical electricity consumption data corresponding to the target electricity meter; Training an electricity consumption prediction model based on the historical electricity consumption data, and determining a balance alarm threshold of the target electricity meter based on the trained electricity consumption prediction model; Determining a power outage tolerance corresponding to the user information, and determining an alarm mode of the target electric meter based on the power outage tolerance; The real-time meter balance of the target meter is continuously monitored, and when the real-time meter balance is not greater than the balance alarm threshold, an alarm is issued according to the alarm mode.
2. The method according to claim 1, characterized in that The training of the electricity consumption prediction model based on the historical electricity consumption data comprises: Constructing an initial electricity consumption prediction model based on a deep learning algorithm, and constructing a sample training set based on the historical electricity consumption data; The initial power consumption prediction model is trained based on the sample training set to obtain a trained power consumption prediction model.
3. The method according to claim 1, characterized in that The determining the balance alarm threshold of the target electric meter based on the trained electric consumption prediction model includes: Setting an alarm judgment time period, and determining a total predicted power consumption within the set alarm judgment time period based on the trained power consumption prediction model; A balance alarm threshold of the target electricity meter is determined based on the total predicted electricity consumption.
4. The method according to claim 1, characterized in that: The determining the power outage tolerance corresponding to the user information includes: Determine a category label corresponding to the user information; The power outage tolerance corresponding to the type tag is determined based on the tolerance database.
5. The method according to claim 1, characterized in that The step of determining an alarm mode of the target electric meter based on the power outage tolerance comprises: When the power outage tolerance is within the first tolerance interval, the target electric meter uses a first alarm mode, wherein the first alarm mode is that a buzzer and a flashing light work simultaneously, and sends an alarm message to the target terminal; When the power outage tolerance is within the second tolerance interval, the target meter uses the second alarm mode, the second alarm mode is that the buzzer and the flashing light work simultaneously, and the maximum value of the first tolerance interval is less than the minimum value of the second tolerance interval; When the power outage tolerance is in the third tolerance interval, the alarm mode of the target meter is the third alarm mode, the third alarm mode is buzzer operation, and the maximum value of the second tolerance interval is less than the minimum value of the third tolerance interval.
6. The method according to claim 5, characterized in that When the real-time electric meter balance is not greater than the balance alarm threshold, after the alarm is given according to the alarm mode, the method includes: Determine a balance interval corresponding to the real-time electricity meter balance; The alarm frequency of the buzzer is determined based on the balance interval, and the buzzer is controlled to alarm based on the alarm frequency.
7. The method according to claim 1, characterized in that When the real-time electric meter balance is not greater than the balance alarm threshold, an alarm is issued according to the alarm mode, including: Calculate the difference between the real-time electricity meter balance and the balance alarm threshold to obtain a comparison result; When the comparison result indicates that the real-time electric meter balance is greater than the balance alarm threshold, maintaining a continuous monitoring state; When the comparison result indicates that the real-time electricity meter balance is not greater than the balance alarm threshold, the alarm method is adopted to issue an alarm.
8. A smart meter alarm device, characterized in that: The device comprises: An acquisition module is used to acquire user information and historical electricity consumption data corresponding to a target electric meter; A prediction module, used to train an electricity consumption prediction model based on the historical electricity consumption data, and determine a balance alarm threshold of the target electricity meter based on the trained electricity consumption prediction model; A determination module, configured to determine a power outage tolerance corresponding to the user information, and determine an alarm mode of the target electric meter based on the power outage tolerance; The alarm module is used to continuously monitor the real-time meter balance of the target meter, and to generate an alarm according to the alarm mode when the real-time meter balance is not greater than the balance alarm threshold.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, wherein the computer-readable storage medium has instructions stored therein, and when the instructions are executed on a computer or a processor, the computer or the processor executes the steps of the method according to any one of claims 1 to 7.
Citation Information
Cited By
Prepayment early warning method and system for intelligent electric meter
CN119904945A
