CN110955322A - Power consumption abnormal behavior detection method and electronic equipment - Google Patents

Power consumption abnormal behavior detection method and electronic equipment Download PDF

Info

Publication number
CN110955322A
CN110955322A CN201911163821.6A CN201911163821A CN110955322A CN 110955322 A CN110955322 A CN 110955322A CN 201911163821 A CN201911163821 A CN 201911163821A CN 110955322 A CN110955322 A CN 110955322A
Authority
CN
China
Prior art keywords
power consumption
consumption data
application program
abnormal behavior
historical
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911163821.6A
Other languages
Chinese (zh)
Inventor
陈磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Microphone Holdings Co Ltd
Original Assignee
Shenzhen Microphone Holdings Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Microphone Holdings Co Ltd filed Critical Shenzhen Microphone Holdings Co Ltd
Priority to CN201911163821.6A priority Critical patent/CN110955322A/en
Publication of CN110955322A publication Critical patent/CN110955322A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/329Power saving characterised by the action undertaken by task scheduling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/327Alarm or error message display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3438Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment monitoring of user actions
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • Power Sources (AREA)

Abstract

The application provides a power consumption abnormal behavior detection method and electronic equipment. The power consumption abnormal behavior detection method provided by the application comprises the steps of firstly obtaining first power consumption data of at least one application program, then judging whether the first application program has power consumption abnormal behaviors or not according to the first power consumption data and first reference power consumption data, and if the judgment result is yes, outputting prompt information. Thus, the detection of the power consumption abnormal behavior is completed. After the user learns that the first application program has the power consumption abnormal behavior, the user can select to pause, terminate, continue to operate or delete the first application program according to the operation state of the current terminal so as to relatively prolong the cruising ability of the terminal and further improve the use experience of the user.

Description

Power consumption abnormal behavior detection method and electronic equipment
Technical Field
The present application relates to the field of wireless communication technologies, and in particular, to a method for detecting abnormal power consumption behavior and an electronic device.
Background
With the rapid development of wireless communication technology, more and more applications are developed, and the use of various functional applications has penetrated into the daily work and life of users.
However, the use of various applications brings better user experience and also causes the power consumption of the terminal battery to increase quietly. Therefore, when a user uses an application, how much power consumption of the application is consumed on a terminal used by the user is important for the user.
In the prior art, a user prompt is usually triggered only when the remaining power of the terminal is less than a certain threshold, and the abnormal power utilization behavior cannot be found and prompted in the running process of the application program.
Disclosure of Invention
The application provides a power consumption abnormal behavior detection method and electronic equipment, which are used for solving the technical problem that an abnormal power consumption behavior cannot be found and a user cannot be prompted in the running process of an existing application program applied to a terminal.
In a first aspect, the present application provides a method for detecting abnormal power consumption behavior, including:
acquiring first power consumption data of at least one application program;
judging whether a first application program has power consumption abnormal behavior according to the first power consumption data and first reference power consumption data, wherein the first application program is any one of the at least one application program, and the first reference power consumption data is power consumption data corresponding to the first application program when the first application program runs normally;
if the judgment result is yes, the prompt message is output.
In one possible design, the determining whether the first application program has the power consumption abnormal behavior according to the first power consumption data and the first reference power consumption data includes:
acquiring calibrated power consumption data, wherein the calibrated power consumption data are generated according to first power consumption data of a plurality of terminals, and the first power consumption data are power consumption data corresponding to the first application program;
and judging whether the first application program has power consumption abnormal behavior according to the first power consumption data and the calibrated power consumption data, wherein the first reference power consumption data is the calibrated power consumption data.
In one possible design, the determining whether the first application program has a power consumption abnormal behavior according to the first power consumption data and the calibrated power consumption data includes:
determining a calibration power consumption threshold according to the calibration power consumption data, wherein the calibration power consumption threshold is used for representing a power consumption threshold of unit time length;
determining a first power consumption value according to the first power consumption data, wherein the first power consumption value is a power consumption value of unit time length;
and if the first power consumption value is larger than the calibrated power consumption threshold value, judging that the first application program has power consumption abnormal behavior.
In one possible design, the determining whether the first application program has the power consumption abnormal behavior according to the first power consumption data and the first reference power consumption data includes:
acquiring historical power consumption data, wherein the historical power consumption data is generated according to first historical power consumption data of a current terminal, and the first historical power consumption data is historical power consumption data corresponding to a first application program;
and judging whether the first application program has power consumption abnormal behavior according to the first power consumption data and the historical power consumption data, wherein the first reference power consumption data is the historical power consumption data.
In one possible design, the determining whether the first application program has a power consumption abnormal behavior according to the first power consumption data and the historical power consumption data includes:
determining a first historical power consumption threshold according to the first historical power consumption data, wherein the first historical power consumption threshold is used for representing a historical power consumption threshold of unit time length;
determining a first power consumption value according to the first power consumption data, wherein the first power consumption value is a power consumption value of unit time length;
if the first power consumption value is larger than the first historical power consumption threshold value, the judgment result is that the first application program has power consumption abnormal behavior.
In one possible design, the historical power consumption data includes historical power consumption data of the first application program running in a plurality of operating states.
In one possible design, the determining whether the first application program has a power consumption abnormal behavior according to the first power consumption data and the historical power consumption data includes:
determining a second historical power consumption threshold according to the first historical power consumption data in the historical power consumption data, wherein the second historical power consumption threshold is used for representing a historical power consumption threshold of the first application program in unit time length in a first working state;
determining a first power consumption value according to the first power consumption data, wherein the first power consumption value is the power consumption value of the first application program in unit time length in the first working state;
and if the first power consumption value is larger than the second historical power consumption threshold value, judging that the first application program has power consumption abnormal behavior.
Optionally, the obtaining calibrated power consumption data includes:
and acquiring first power consumption data of the plurality of terminals through a server.
In one possible design, the prompt message includes pop-window information and/or a short message.
In a second aspect, the present application provides an electronic device comprising
At least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of detecting power consuming abnormal behaviour according to the first aspect and optional aspects.
The application provides a power consumption abnormal behavior detection method and electronic equipment, wherein first power consumption data of at least one application program is obtained, and then whether the first application program has power consumption abnormal behavior or not is judged according to the first power consumption data and first reference power consumption data, wherein the first application program is any one of the at least one application program, and the first reference power consumption data is corresponding power consumption data when the first application program operates normally. If the judgment result is yes, the prompt message is output. Therefore, the detection of the power consumption abnormal behavior of the application program in the terminal is completed, and the user is timely reminded through the prompt message, so that the user can select to pause or stop the application program in the power consumption abnormal behavior, the cruising ability of the terminal is relatively prolonged, and the use experience of the user is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a display interface of a battery power usage of a mobile phone in the prior art according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a power consumption abnormal behavior detection system according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a method for detecting abnormal power consumption behavior according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram of outputting a prompt message according to an embodiment of the present disclosure;
fig. 5 is a schematic flowchart of another power consumption abnormal behavior detection method according to an embodiment of the present application;
fig. 6 is a statistical chart of calibrated power consumption data according to an embodiment of the present application;
fig. 7 is a schematic flowchart of another power consumption abnormal behavior detection method according to an embodiment of the present application;
fig. 8 is a schematic flowchart of another power consumption abnormal behavior detection method according to an embodiment of the present application;
fig. 9 is a schematic flowchart of another power consumption abnormal behavior detection method according to an embodiment of the present application;
fig. 10 is a schematic flowchart of another power consumption abnormal behavior detection method according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of a power consumption abnormal behavior detection apparatus according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of another power consumption abnormal behavior detection apparatus according to an embodiment of the present application;
fig. 13 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 14 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
With the foregoing drawings in mind, certain embodiments of the disclosure have been shown and described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of methods and apparatus consistent with certain aspects of the present application, as detailed in the appended claims.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the above-described drawings (if any) are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
With the rapid development of wireless communication technology, more and more applications are developed, and the use of various functional applications has penetrated into the daily work and life of users. However, the user uses various applications on the terminal, and the user obtains a better usage experience while the power consumption of the terminal battery is quietly increased. Therefore, how the power consumption of the application on the terminal used by the user is critical to the user. At present, in the prior art, abnormal power utilization behavior cannot be prompted in time in the running process of an application program, and a terminal can trigger a user to remind only when the residual power of the terminal is smaller than a certain threshold value. For example, when the terminal is a mobile phone, the terminal usually only prompts how much power is currently left and how much power is currently consumed by an application running in the mobile phone, as shown in fig. 1, fig. 1 is a display interface of battery power usage of a mobile phone 1 in the prior art provided by the embodiment of the present application. As shown in fig. 1, the current remaining power of the mobile phone 1 accounts for 90% of the total battery capacity, and the current remaining power can be estimated to last for 10 hours, for example, the application program named weather has consumed power of 3% of the total battery capacity, the screen has consumed power of 3% of the total battery capacity, the system has consumed power of 1% of the total battery capacity, and the browser has consumed power of 1% of the total battery capacity. However, for the current power consumption situation of the mobile phone 1, the user cannot know whether the application program has the abnormal power consumption behavior, and if the abnormal power consumption behavior exists, the user still continues to use the application program without knowing, so that the cruising ability of the terminal is shortened, and the user experience is reduced.
In view of the above problems in the prior art, the present application provides a power consumption abnormal behavior detection method and an electronic device, where first power consumption data of at least one application program is obtained, and then whether a power consumption abnormal behavior exists in the first application program is determined according to the first power consumption data and first reference power consumption data, where the first application program is any one of the at least one application program, and the first reference power consumption data is power consumption data corresponding to the first application program when the first application program is operating normally. If the judgment result is yes, the prompt message is output. Therefore, the detection of the power consumption abnormal behavior of the application program in the terminal is completed, and the user is timely reminded through the prompt message, so that the user can select to pause or stop the application program in the power consumption abnormal behavior, the cruising ability of the terminal is relatively prolonged, and the use experience of the user is improved.
The technical solution of the present application will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 2 is a schematic structural diagram of a power consumption abnormal behavior detection system according to an embodiment of the present application. As shown in fig. 2, the power consumption abnormal behavior detection system provided in this embodiment includes a plurality of terminals and one terminal that determines the power consumption abnormal behavior. A certain terminal performing power consumption abnormal behavior detection in fig. 2 is illustrated by taking a smart phone as an example, for example, the terminal 1, and the plurality of terminals may be any terminals capable of running an application program and performing battery power data statistics, for example, a mobile phone, a smart watch, a computer, a tablet computer, and the like, which is not limited in this embodiment of the application, the plurality of terminals in fig. 2 are illustrated by taking a mobile phone as an example, and only some of the plurality of terminals, for example, the terminal 2, the terminal 3, and the terminal 4, are illustrated in fig. 2 by way of example. The certain terminal for determining the abnormal power consumption behavior may be one of the terminals, or another terminal capable of running the application program.
Referring to fig. 2, in the power consumption abnormal behavior detection method provided in the embodiment of the present application, calibration power consumption data is obtained first, where the calibration power consumption data is generated according to first power consumption data of a plurality of terminals, such as a terminal 2, a terminal 3, and a terminal 4, and the first power consumption data is power consumption data corresponding to a first application program, then the terminal 1 obtains the first power consumption data of the first application program, and can determine whether a power consumption abnormal behavior exists in the first application program according to the first power consumption data and the calibration power consumption data, and if the determination result is yes, prompt information is output, where the prompt information is used to remind a user that the power consumption abnormal behavior exists in the first application program. Therefore, the detection of the power consumption abnormal behavior of the application program in the terminal 1 is completed, and the user is timely reminded through the prompt message, so that the user can select to pause or stop the use of the application program in the power consumption abnormal behavior, the cruising ability of the terminal 1 is relatively prolonged, and the use experience of the user is improved.
It should be noted that fig. 2 only illustrates the first reference power consumption data as the calibration power consumption data, that is, the first reference power consumption data in the power consumption abnormal behavior detection system shown in fig. 2 is data generated according to the first power consumption data of the plurality of terminals. It should be understood that when the first reference power consumption data is historical power consumption data or historical power consumption data in a plurality of operating states, only the current terminal performing power consumption abnormal behavior detection, that is, the terminal 1, is shown in fig. 2. Alternatively, in fig. 2, the first power consumption data of the terminal 2, the terminal 3, and the terminal 4 may be acquired by a server, which is not limited in the embodiment of the present application.
Fig. 3 is a schematic flowchart of a method for detecting abnormal power consumption behavior according to an embodiment of the present application. As shown in fig. 3, the method for detecting abnormal power consumption behavior according to this embodiment includes:
s301: first power consumption data of at least one application program is obtained.
The terminal acquires first power consumption data of at least one application program running thereon. The first power consumption data is current power consumption data of at least one application program running on the terminal. It is understood that the terminal with the power consumption amount data statistics can acquire the power consumption data of the application program.
S302: and judging whether the first application program has power consumption abnormal behavior according to the first power consumption data and the first reference power consumption data.
The first application program is any one of at least one application program, and the first reference power consumption data is power consumption data corresponding to the first application program when the first application program operates normally.
It is to be understood that the first application is any application that can run on the terminal. The first reference power consumption data is power consumption consumed when the first application program operates normally. Whether the power consumption abnormal behavior exists in the first application program is judged according to the first power consumption data and the first reference power consumption data, and the judgment can be made as to whether the power consumption abnormal behavior exists in the terminal when the terminal operates the current application program according to the current power consumption data of the terminal and the power consumption of the terminal when the terminal normally operates one application program.
S303: if the judgment result is yes, the prompt message is output.
When the first application program running at the present time of the terminal is judged to have the power consumption abnormal behavior according to the first power consumption data and the first reference power consumption data, a prompt message is output, and a user is reminded that the first application program has the power consumption abnormal behavior at the present time.
The prompt message may be at least one of popup message and short message. Or may be a vibration or a warning tone to alert the user. Fig. 4 is a schematic diagram of outputting prompt information according to an embodiment of the present application, and as shown in fig. 4, assuming that a terminal is a smart phone, when it is determined that a first application program currently running in the terminal has a power consumption abnormal behavior, the first application program is displayed on a current page of the terminal through popup information to remind a user that the first application program has the power consumption abnormal behavior, where the first application program in fig. 4 is an application program named "jittering sound" as an example.
The power consumption abnormal behavior detection method provided in this embodiment obtains first power consumption data of at least one application program, and then determines whether a power consumption abnormal behavior exists in the first application program according to the first power consumption data and first reference power consumption data, where the first application program is any one of the at least one application program, and the first reference power consumption data is power consumption data corresponding to the first application program when the first application program is operating normally. If the judgment result is yes, prompt information is output, such as pop-up window information and/or short messages and the like, so as to prompt the user in time. When the user learns that the first application program has power consumption abnormal behavior, the user can select to pause, terminate, continue to run or delete the first application program according to the running state of the current terminal, and when the first application program is selected to pause, terminate or delete, the cruising ability of the terminal is relatively prolonged, and the use experience of the user is further improved.
In a possible design, fig. 5 is a schematic flow chart of another power consumption abnormal behavior detection method provided in the embodiment of the present application. As shown in fig. 5, the method for detecting abnormal power consumption behavior according to this embodiment includes:
s501: and acquiring calibration power consumption data.
The calibration power consumption data is data generated according to first power consumption data of the plurality of terminals, and the first power consumption data is power consumption data corresponding to the first application program.
The terminal for detecting the power consumption abnormal behavior generates punctuation power consumption data according to first power consumption data of a plurality of other terminals, wherein the first power consumption data is power consumption data corresponding to a first application program, and the first application program is any application program capable of running on the terminal.
Optionally, the first power consumption data of the plurality of terminals may also be acquired by a server, where the server may be a cloud server. Specifically, various applications run on a plurality of terminals, and the power consumption data terminal of each application run on each terminal acquires, for example, the terminal may acquire the situation that all applications run on the terminal have consumed electric power in a certain past duration, and generally performs statistics on the percentage of the consumed electric power to the remaining electric power of the current battery. The terminal can upload power consumption data of each application program for a certain time period to the server. It can be understood that the power consumption data of the application program in the time duration is the first power consumption data. It should be noted that the certain time period in the past is generally the time period from the battery full state of the terminal to the current time. It can be understood that the server is connected with the terminal performing power consumption abnormal behavior detection through wireless communication, after acquiring the first power consumption data of the plurality of terminals, the server sends the first power consumption data to the terminal performing power consumption abnormal behavior detection, and the terminal determines the first power consumption data as the calibration power consumption data according to the first power consumption data.
Optionally, the terminal obtains the calibration power consumption data according to a preset rule.
The preset rule may be data embedding, for example, code embedding, in a plurality of terminals. It is understood that the code is embedded in the terminal that needs to upload the first power consumption data, so that the terminal can upload the power consumption data of the application running thereon.
It should be understood that the plurality of terminals selected for the universality of the obtained data can be different models and versions, for example, different terminals with different preset battery capacities or different terminals with different operating systems.
Optionally, the terminal may obtain the calibrated power consumption data periodically, for example, every day or every week, and may be set according to the specific terminal or an application program running on the terminal, which is not limited in this embodiment of the application.
The calibration power consumption data is data generated according to first power consumption data of a plurality of terminals. Specifically, after first power consumption data of a plurality of terminals are acquired, data statistics is performed on the first power consumption data, first power consumption data of a corresponding first application program on each terminal in the plurality of terminals are counted, and then power consumption data of the first application program in unit time length are calculated according to the first power consumption data.
Calculating power consumption data of the first application program in unit time length according to the first power consumption data, wherein assuming that the unit time length is determined to be per minute, calculating the percentage of the electric quantity consumed in each minute of the first application program to the preset battery capacity of the terminal running the first application program according to the first power consumption data, wherein the preset battery capacity is the capacity set by the battery used by the terminal when the terminal leaves a factory. It is understood that the unit time duration may be every five minutes, every hour, and the like, and all the power consumption data that can represent the first application program in the unit time duration may be used, for comparison, the embodiment of the present application is not limited. Table 1 lists the calculated power consumption data per minute for some of the different terminals, e.g. terminal 1, terminal 2, three different applications (application a, application B and application C) on terminal 3.
Terminal name Application name Power consumption data
Terminal
1 Applications A 0.3% of electricity is consumed in every minute
Terminal
1 Application B 0.2% of electricity is consumed in every minute
Terminal
1 Applications C 0.25% of electricity is consumed in every minute
Terminal
2 Applications A 0.4% of electricity is consumed in every minute
Terminal
2 Application B 0.15% of electricity is consumed in every minute
Terminal
3 Application B 0.18% of electricity is consumed in every minute
Terminal
3 Applications C Consumes 0.24% of electricity per minute
The preset total battery capacities of the terminal 1, the terminal 2 and the terminal 3 in table 1 may be the same or different, and the operating systems of the three terminals may be the same or different, which is not limited in the embodiment of the present application.
And generating calibration power consumption data according to the power consumption data of the first application program in unit time length on the plurality of terminals, which is obtained through statistics and calculation. Specifically, the power consumption data of the same first application program in unit time length on the terminal with the same preset battery capacity is averaged, and the obtained average value constitutes the calibration power consumption data of the first application program. The unit time length may be every minute, every hour, and the like, and the embodiment of the present application is not limited thereto. Therefore, the calibration power consumption data of the first application program on the terminal with the preset battery capacity can be obtained. For example, the nominal power consumption data may be described as the current version of application a consuming an average of 0.12% of power per minute on a 3500 ma terminal and the current version of application B consuming an average of 0.23% of power per minute on a 3500 ma terminal.
Fig. 6 is a statistical chart of the calibrated power consumption data provided in the embodiment of the present application, and fig. 6 exemplarily shows the calibrated power consumption data per hour of all applications on the terminal with the preset battery capacity of 3300 ma. As shown in fig. 6, for example, the terminal has the nominal power consumption data of application a1 of 7.2% per hour, the terminal has the nominal power consumption data of application a2 of 7.0% per hour, and so on.
It is worth noting that the power consumption data described in the embodiment of the present application are all power consumed by the first application program when running, where the running includes foreground running and background running.
In order to update the first power consumption data of the plurality of terminals in time, optionally, the calibration power consumption data may be obtained according to a preset period. The preset period may be set according to an actual situation of the first application program for the terminal to run, for example, weekly, monthly, and the like, and the embodiment of the present application is not limited thereto.
It is to be understood that the terminal stores the acquired nominal power consumption data locally.
S502: first power consumption data of at least one application program is obtained.
The terminal acquires power consumption data of at least one application program running on the terminal, wherein the at least one application program is the first application program, and the power consumption data of the first application program is current power consumption data of the first application program running on the terminal. It is understood that the terminal with the power consumption amount data statistics may perform the acquisition of the current power consumption data of the first application.
S503: and determining whether the first application program has power consumption abnormal behavior according to the first power consumption data and the calibration power consumption data.
The calibration power consumption data is the first reference power consumption data in the embodiment shown in fig. 3.
After the terminal acquires the calibrated power consumption data, the terminal stores the calibrated power consumption data to the local, at the moment, the terminal acquires first power consumption data of a first application program which is currently running, and then whether power consumption abnormal behaviors exist in the first application program or not is determined according to the first power consumption data and the calibrated power consumption data.
And if the first application program is determined to have the power consumption abnormal behavior according to the first power consumption data and the calibration power consumption data, outputting prompt information, wherein the prompt information is used for reminding a user that the first application program has the power consumption abnormal behavior. The prompt information can be directly fed back to the user in a mode of notification messages such as popup messages and/or short messages, and can also be reminded to the user through third-party software operated on the terminal, for example, when the terminal is a mobile phone, the prompt information can be fed back through a mobile phone manager operated on the mobile phone. When the user learns that the first application program has the power consumption abnormal behavior, the user can select to pause or terminate the operation of the first application program according to the current use condition of the terminal, and even delete the first application program so as to ensure the cruising ability of the terminal.
Optionally, the terminal determines that the first application program has the power consumption abnormal behavior according to the first power consumption data and the calibrated power consumption data in a possible implementation manner that the terminal directly compares the first power consumption data corresponding to the first application program with the calibrated power consumption data, and if the first power consumption data corresponding to the current first application program is not greater than the calibrated power consumption data, the first application program does not have the power consumption abnormal behavior; if the first power consumption data corresponding to the current first application program is larger than the calibration power consumption data, determining that the first application program has abnormal power consumption behaviors, and simultaneously outputting prompt information to remind a user that the current first application program has the abnormal power consumption behaviors. After the user knows, the user can choose to suspend or terminate the use of the first application program so as to ensure the cruising ability of the terminal. Thus, the power consumption abnormal behavior detection is completed.
It is to be understood that, when determining whether the first application program has the power consumption abnormal behavior, the terminal may convert the first power consumption data of the first application program into power consumption data of a unit time length, for example, every minute or every hour, and the like.
Optionally, another possible implementation manner that the terminal determines that the first application program has the power consumption abnormal behavior according to the first power consumption data and the calibrated power consumption data is that the terminal determines whether the first application program has the power consumption abnormal behavior according to the acquired calibrated power consumption data and by combining the current operation state of the terminal. And if the first application program is determined to have the power consumption abnormal behavior, outputting prompt information to remind a user that the first application program has the power consumption abnormal behavior. Thus, the detection of the power consumption abnormal behavior is completed.
The method for detecting power consumption abnormal behavior provided by this embodiment includes generating calibrated power consumption data according to first power consumption data of multiple terminals, where the first power consumption data is power consumption data corresponding to a first application program, then obtaining the first power consumption data of the corresponding first application program, then determining whether the first application program has power consumption abnormal behavior according to the first power consumption data and the calibrated power consumption data, and if it is determined that the first application program has power consumption abnormal behavior, outputting, by the terminal, a prompt message to remind a user that the first application program has power consumption abnormal behavior, thereby completing power consumption abnormal behavior detection. When the user learns that the first application program has power consumption abnormal behavior, the user can select to pause, terminate, continue to run or delete the first application program according to the running state of the current terminal, and when the first application program is selected to pause, terminate or delete, the cruising ability of the terminal is relatively prolonged, and the use experience of the user is further improved.
Based on the foregoing embodiment, fig. 7 is a schematic flowchart of another power consumption abnormal behavior detection method provided in the embodiment of the present application. As shown in fig. 7, the method for detecting abnormal power consumption behavior of the present embodiment includes:
s701: and determining a calibration power consumption threshold according to the calibration power consumption data, wherein the calibration power consumption threshold is used for representing the power consumption threshold of unit time length.
S702: and determining a first power consumption value according to the first power consumption data, wherein the first power consumption value is a power consumption value of unit time length.
Steps S701 to S702 will be explained in conjunction.
After the terminal acquires the calibrated power consumption data, the terminal determines a calibrated power consumption threshold according to the calibrated power consumption data in combination with the current operating state of the first application program and the current operating state of the terminal, wherein the calibrated power consumption threshold can represent a power consumption threshold of unit time duration, and the power consumption threshold can be understood as the calibrated power consumption of the first application program on the terminal, which is determined by the terminal according to the calibrated power consumption data.
In a possible design, after the terminal acquires the calibrated power consumption data, the terminal may cause the actual capacity of the terminal battery to be smaller than the preset battery capacity due to some factors such as unstable operation of an operating system of the terminal, and the like, and the terminal may increase or decrease the numerical value on the basis of the calibrated power consumption data to obtain the calibrated power consumption, and the ratio of the calibrated power consumption per unit time length to the preset battery capacity is obtained through calculation, that is, the calibrated power consumption threshold.
In step S702, the terminal determines a first power consumption value according to the first power consumption data, where the first power consumption value is a power consumption value of a unit duration.
After the terminal acquires the first power consumption data of the currently running first application program, the power consumption value of the first application program in unit time length is obtained through calculation.
In one possible design, the first power consumption value is a ratio of a current power consumption per unit time length to a preset battery capacity.
S703: if the first power consumption value is larger than the calibrated power consumption threshold value, the judgment result shows that the first application program has power consumption abnormal behavior.
The terminal compares the first power consumption value with a calibrated power consumption threshold, and if the first power consumption value is not greater than the calibrated power consumption threshold, the first application program is determined to have no power consumption abnormal behavior currently; and if the first power consumption value is larger than the calibrated power consumption threshold value, determining that the first application program has the current power consumption abnormal behavior.
Optionally, after the terminal determines that the first application program has the power consumption abnormal behavior, the terminal outputs a prompt message to remind the user that the first application program has the power consumption abnormal behavior, so that the user can know in time, and selectively processes the first application program, for example, pausing or terminating or deleting the first application program, so as to ensure the cruising ability of the terminal.
The method for detecting power consumption abnormal behavior includes generating calibrated power consumption data according to first power consumption data of a plurality of terminals, where the first power consumption data is power consumption data corresponding to a first application program, then obtaining real-time power consumption data of the first application program, and the terminals determine a calibrated power consumption threshold according to the calibrated power consumption data, where the calibrated power consumption threshold is used for representing a power consumption threshold of a unit duration, and determine a first power consumption value according to the first power consumption data, where the first power consumption value is a power consumption value of the unit duration, specifically, the calibrated power consumption threshold is a ratio of calibrated power consumption of the unit duration to a preset battery capacity, and the real-time power consumption value is a ratio of real-time power consumption of the unit duration to the preset battery capacity. And finally, the terminal compares the first power consumption value with the calibrated power consumption threshold, and if the first power consumption value is greater than the calibrated power consumption threshold, the judgment result is that the first application program has power consumption abnormal behavior. And outputting prompt information for reminding a user that the first application program has power consumption abnormal behavior, thereby completing power consumption abnormal behavior detection. When the user learns that the first application program has power consumption abnormal behavior, the user can select to pause, terminate, continue to run or delete the first application program according to the running state of the current terminal, and when the first application program is selected to pause, terminate or delete, the cruising ability of the terminal is relatively prolonged, and the use experience of the user is further improved.
On the basis of the foregoing embodiment, optionally, another power consumption abnormal behavior detection method provided in the embodiment of the present application is as shown in fig. 8, where fig. 8 is a schematic flow chart of another power consumption abnormal behavior detection method provided in the embodiment of the present application, and the method includes:
s801: and acquiring historical power consumption data.
The historical power consumption data is generated according to first historical power consumption data of the current terminal, and the first historical power consumption data is historical power consumption data corresponding to the first application program.
The terminal acquires historical power consumption data, wherein the historical power consumption data are generated according to first historical power consumption data of the current terminal, and the first historical power consumption data are historical power consumption data of the terminal when a first application program is operated. It is understood that the historical power consumption data of the terminal when running the first application may be the first power consumption data of the terminal in a historical phase, wherein the historical phase may be the first power consumption data corresponding to the first application that the current terminal itself runs on the past day, week or month. The terminal carries out statistical processing, such as averaging, on the first power consumption data in the self history stage to obtain the history power consumption data.
S802: and judging whether the first application program has power consumption abnormal behavior according to the first power consumption data and the historical power consumption data.
The historical power consumption data is the first reference power consumption data in the above illustrated embodiment.
The implementation principle of step 802 is similar to that of step 503 in the embodiment shown in fig. 5, except that the historical power consumption data is used in this implementation, the calibration power consumption data is used in step 503, and the historical power consumption data and the calibration power consumption data belong to two different first reference power consumption data. Specifically, reference may be made to the description in the above embodiments, which are not repeated herein.
According to the power consumption abnormal behavior detection method provided by the embodiment, historical power consumption data is obtained, and whether a power consumption abnormal behavior exists in a first application program is judged according to the first power consumption data and the historical power consumption data. The terminal can compare the current power consumption situation with the historical power consumption situation so as to judge whether the first application program has power consumption abnormal behavior when the terminal runs the first application program currently.
Further, fig. 9 is a schematic flowchart of another power consumption abnormal behavior detection method provided in an embodiment of the present application, and as shown in fig. 9, the method includes:
s901: and determining a first historical power consumption threshold according to the first historical power consumption data, wherein the first historical power consumption threshold is used for representing a historical power consumption threshold of unit time length.
S902: and determining a first power consumption value according to the first power consumption data, wherein the first power consumption value is a power consumption value of unit time length.
S903: if the first power consumption value is larger than the first historical power consumption threshold value, the judgment result is that the first application program has power consumption abnormal behavior.
The implementation manners of steps S901 to S903 are similar to those of steps S701 to S703 in the embodiment shown in fig. 7, except that in this embodiment, a first historical power consumption threshold is determined according to the first historical power consumption data, and the first historical power consumption threshold is compared with the first power consumption value to determine whether there is a power consumption abnormal behavior in the first application program. In steps S701 to S703 of the embodiment shown in fig. 7, a calibrated power consumption threshold is determined according to the calibrated power consumption data, and the calibrated power consumption threshold is compared with the first power consumption value to determine whether there is a power consumption abnormal behavior in the first application program. The determination method is similar, and the detailed description is omitted here. It is understood that the first historical power consumption threshold is a ratio of the historical power consumption to a preset battery capacity.
In the method for detecting abnormal power consumption behavior provided in this embodiment, a first historical power consumption threshold is determined according to first historical power consumption data, the first power consumption value is compared with the first historical power consumption threshold, if the first power consumption value is greater than the first historical power consumption threshold, a determination result indicates that the first application program has abnormal power consumption behavior, and at this time, prompt information is output to remind a user that the first application program has abnormal power consumption behavior. After the user knows, the user can select to pause, terminate, continue to run or delete the first application program according to the running state of the current terminal, and when the user selects to pause, terminate or delete the first application program, the cruising ability of the terminal is relatively prolonged, and the use experience of the user is further improved.
Alternatively, on the basis of the embodiment shown in fig. 8, the historical power consumption data includes historical power consumption data of the first application program running in a plurality of operating states. The plurality of operating states may be understood as, for example, the first application being opened, but only staying on the home page without actually using the various functions in the first application. Specifically, assume that the first application is a network game, and one working state is to open the application of the network game, but only browse an interface or view a game play description; another operational state is the battle of the user in the network game as a player acting as a character in the game. As can be seen, the first application may be in a number of different operating states.
It should be understood that the two operating states are only examples, and the plurality of operating states of the first application may be determined according to specific functions and applications of the application, and the embodiments of the present application are not limited thereto.
Further, when the historical power consumption data includes historical power consumption data of the first application program running in a plurality of operating states, in a possible design, an implementation manner of the power consumption abnormal behavior detection method is shown in fig. 10, where fig. 10 is a schematic flow diagram of another power consumption abnormal behavior detection method provided in an embodiment of the present application, and the method includes:
s1001: and determining a second historical power consumption threshold according to the first historical power consumption data in the historical power consumption data.
And the second historical power consumption threshold is used for representing the historical power consumption threshold of the first application program in unit time length in the first working state.
The first operating state is any one of a plurality of operating states of the first application. And determining the power consumption of the unit time length of the first working state according to the historical power consumption data in the first working state, namely determining a second historical power consumption threshold.
Specifically, the second historical power consumption threshold may be an average value of the historical power consumption data of the first application program in the first operating state in a plurality of time periods, or after the average value is determined, a final calculated value may be determined as the historical power consumption data in the first operating state by adding or subtracting a value to the average value in accordance with the function and use of the terminal itself and/or the first application program. Specifically, the determined historical power consumption data is a ratio of the historical power consumption of the unit time length to a preset battery capacity, and the ratio is a second historical power consumption threshold.
S1002: a first power consumption value is determined according to the first power consumption data.
The first power consumption value is the power consumption value of the first application program in unit time length in the first working state.
Step S1002 is similar to the implementation principle and effect of step S902 in the foregoing embodiment, except that the first power consumption value is a power consumption value of the first application program running in the first working state in unit time duration. It can be understood that the first power consumption value is a ratio of a current power consumption per unit time length of the first application program running in the first working state to a preset battery capacity.
S1003: and if the first power consumption value is larger than the second historical power consumption threshold value, judging that the first application program has power consumption abnormal behavior.
Step S1003 is similar to the implementation principle of step S903 in the above embodiment, and here, the description is omitted here.
In the method for detecting power consumption abnormal behavior provided by this embodiment, a second historical power consumption threshold is determined according to historical power consumption data of a first application program running in different working states, a first power consumption value determined according to the first power consumption data is compared with the second historical power consumption threshold, if the first power consumption value is greater than the second historical power consumption threshold, a determination result is that the first application program has power consumption abnormal behavior, and at this time, prompt information is output to remind a user that the first application program has power consumption abnormal behavior. After the user knows, the user can select to pause, terminate, continue to run or delete the first application program according to the running state of the current terminal, and when the user selects to pause, terminate or delete the first application program, the cruising ability of the terminal is relatively prolonged, and the use experience of the user is further improved.
Fig. 11 is a schematic structural diagram of a power consumption abnormal behavior detection device according to an embodiment of the present application, where the power consumption abnormal behavior detection device according to the present embodiment is applied to a terminal and is used to execute the power consumption abnormal behavior detection method in the foregoing embodiments. As shown in fig. 11, the power consumption abnormality detection apparatus 100 according to the present embodiment includes:
the first obtaining module 101 is configured to obtain first power consumption data of at least one application.
The processing module 102 is configured to determine whether a power consumption abnormal behavior exists in the first application program according to the first power consumption data and first reference power consumption data, where the first application program is any one of the at least one application program, and the first reference power consumption data is power consumption data corresponding to the first application program when the first application program operates normally.
And the output module 103 is used for outputting prompt information if the judgment result is yes.
Optionally, the first obtaining module 101 is specifically configured to:
and acquiring first power consumption data according to a preset rule, wherein the first power consumption data is power consumption data corresponding to the first application program.
Optionally, the output module 103 is specifically configured to:
and outputting the popup message and/or the short message.
The implementation principle and effect of this embodiment are similar to those of the embodiment shown in fig. 3, and are not described herein again.
In one possible design, the process module 102 includes:
the first processing unit 1021 is configured to obtain calibrated power consumption data, where the calibrated power consumption data is generated according to first power consumption data of multiple terminals, and the first power consumption data is power consumption data corresponding to a first application program.
And determining whether the first application program has power consumption abnormal behavior according to the first power consumption data and the calibration power consumption data.
Optionally, the first processing unit 1021 is specifically configured to:
and determining a calibration power consumption threshold according to the calibration power consumption data, wherein the calibration power consumption threshold is used for representing the power consumption threshold of unit time length.
And determining a first power consumption value according to the first power consumption data, wherein the first power consumption value is a power consumption value of unit time length.
If the first power consumption value is larger than the calibrated power consumption threshold value, the judgment result shows that the first application program has power consumption abnormal behavior.
Optionally, the calibrated power consumption threshold is a ratio of calibrated power consumption per unit time length to a preset battery capacity, and the first power consumption value is a ratio of real-time power consumption per unit time length to the preset battery capacity.
The implementation principle and effect of this embodiment are similar to those of the embodiment shown in fig. 7, and are not described herein again.
In one possible design, the process module 102 includes:
a second processing unit 1022, configured to:
acquiring historical power consumption data, wherein the historical power consumption data is generated according to first historical power consumption data of a current terminal, and the first historical power consumption data is historical power consumption data corresponding to a first application program;
and judging whether the first application program has power consumption abnormal behavior according to the first power consumption data and the historical power consumption data, wherein the first reference power consumption data is historical power consumption data.
The implementation principle and effect of this embodiment are similar to those of the embodiment shown in fig. 8, and are not described herein again.
Optionally, the second processing unit 1022 is specifically configured to:
determining a first historical power consumption threshold according to the first historical power consumption data, wherein the first historical power consumption threshold is used for representing a historical power consumption threshold of unit time length;
determining a first power consumption value according to the first power consumption data, wherein the first power consumption value is a power consumption value of unit time length;
if the first power consumption value is larger than the first historical power consumption threshold value, the judgment result is that the first application program has power consumption abnormal behavior.
The implementation principle and effect of this embodiment are similar to those of the embodiment shown in fig. 9, and are not described herein again.
Optionally, the historical power consumption data includes historical power consumption data of the first application program running in a plurality of operating states. Further, the second processing unit 1022 includes:
the processing subunit 10220 is configured to determine a second historical power consumption threshold according to a first historical power consumption data in the historical power consumption data, where the second historical power consumption threshold is used to represent a historical power consumption threshold of a unit duration of the first application program running in the first operating state;
determining a first power consumption value according to the first power consumption data, wherein the first power consumption value is the power consumption value of the first application program in unit time length in the first working state;
and if the first power consumption value is larger than the second historical power consumption threshold value, judging that the first application program has power consumption abnormal behavior.
The implementation principle and effect of this embodiment are similar to those of the embodiment shown in fig. 10, and are not described herein again.
Fig. 12 is a schematic structural diagram of another power consumption abnormal behavior detection device according to an embodiment of the present application, where the power consumption abnormal behavior detection device according to the present embodiment is applied to a server and is used to execute the power consumption abnormal behavior detection method according to the foregoing embodiment. As shown in fig. 12, the power consumption abnormality detection apparatus 700 according to the present embodiment includes:
the second obtaining module 701 is configured to obtain first power consumption data of the multiple terminals, where the first power consumption data is power consumption data corresponding to the first application program.
A sending module 702, configured to send first power consumption data of multiple terminals.
Optionally, the power consumption abnormality detection apparatus 700 provided in the embodiment of the present application further includes:
the updating module 703 is configured to update the acquired first power consumption data of the multiple terminals according to a preset period.
The implementation principle and effect of the present embodiment are similar to those of the server in the embodiment shown in fig. 5, and are not described herein again.
Fig. 13 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 13, the electronic device 800 provided in the present embodiment includes:
at least one processor 801; and
a memory 802 communicatively coupled to the at least one processor 801; wherein,
the memory 802 stores instructions executable by the at least one processor 801, and the instructions are executed by the at least one processor 801, so that the at least one processor 801 can execute the steps of the power consumption abnormal behavior detection method executed by the terminal, which may be specifically referred to in the description of the foregoing method embodiments.
Optionally, the electronic device 800 provided in this embodiment further includes a display 803, configured to display the output prompt information to remind the user that the first application program has the power consumption abnormal behavior.
Fig. 14 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 14, the electronic device 900 provided in the present embodiment includes:
at least one processor 901; and
a memory 902 communicatively connected to the at least one processor 901; wherein,
the memory 902 stores instructions executable by the at least one processor 901, and the instructions are executed by the at least one processor 901, so that the at least one processor 901 can execute the steps of the power consumption abnormal behavior detection method executed by the server, which may specifically refer to the description in the foregoing method embodiments.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A power consumption abnormal behavior detection method is characterized by comprising the following steps:
acquiring first power consumption data of at least one application program;
judging whether a first application program has power consumption abnormal behavior according to the first power consumption data and first reference power consumption data, wherein the first application program is any one of the at least one application program, and the first reference power consumption data is power consumption data corresponding to the first application program when the first application program runs normally;
if the judgment result is yes, the prompt message is output.
2. The method according to claim 1, wherein the determining whether the first application program has the power consumption abnormal behavior according to the first power consumption data and a first reference power consumption data comprises:
acquiring calibrated power consumption data, wherein the calibrated power consumption data are generated according to first power consumption data of a plurality of terminals, and the first power consumption data are power consumption data corresponding to the first application program;
and judging whether the first application program has power consumption abnormal behavior according to the first power consumption data and the calibrated power consumption data, wherein the first reference power consumption data is the calibrated power consumption data.
3. The method according to claim 2, wherein the determining whether the first application program has the power consumption abnormal behavior according to the first power consumption data and the calibrated power consumption data includes:
determining a calibration power consumption threshold according to the calibration power consumption data, wherein the calibration power consumption threshold is used for representing a power consumption threshold of unit time length;
determining a first power consumption value according to the first power consumption data, wherein the first power consumption value is a power consumption value of unit time length;
and if the first power consumption value is larger than the calibrated power consumption threshold value, judging that the first application program has power consumption abnormal behavior.
4. The method according to claim 1, wherein the determining whether the first application program has the power consumption abnormal behavior according to the first power consumption data and a first reference power consumption data comprises:
acquiring historical power consumption data, wherein the historical power consumption data is generated according to first historical power consumption data of a current terminal, and the first historical power consumption data is historical power consumption data corresponding to a first application program;
and judging whether the first application program has power consumption abnormal behavior according to the first power consumption data and the historical power consumption data, wherein the first reference power consumption data is the historical power consumption data.
5. The method according to claim 4, wherein the determining whether the first application program has the power consumption abnormal behavior according to the first power consumption data and the historical power consumption data includes:
determining a first historical power consumption threshold according to the first historical power consumption data, wherein the first historical power consumption threshold is used for representing a historical power consumption threshold of unit time length;
determining a first power consumption value according to the first power consumption data, wherein the first power consumption value is a power consumption value of unit time length;
if the first power consumption value is larger than the first historical power consumption threshold value, the judgment result is that the first application program has power consumption abnormal behavior.
6. The power consumption abnormal behavior detection method according to claim 4, wherein the historical power consumption data comprises historical power consumption data of the first application program running in a plurality of operating states.
7. The method according to claim 6, wherein the determining whether the first application program has the power consumption abnormal behavior according to the first power consumption data and the historical power consumption data includes:
determining a second historical power consumption threshold according to the first historical power consumption data in the historical power consumption data, wherein the second historical power consumption threshold is used for representing a historical power consumption threshold of the first application program in unit time length in a first working state;
determining a first power consumption value according to the first power consumption data, wherein the first power consumption value is the power consumption value of the first application program in unit time length in the first working state;
and if the first power consumption value is larger than the second historical power consumption threshold value, judging that the first application program has power consumption abnormal behavior.
8. The power consumption abnormal behavior detection method according to claim 2, wherein the acquiring of the calibrated power consumption data includes:
and acquiring first power consumption data of the plurality of terminals through a server.
9. The power consumption abnormal behavior detection method according to any one of claims 1 to 8, wherein the prompt message comprises a popup message and/or a short message.
10. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the power consuming abnormal behavior detection method of any one of claims 1 to 9.
CN201911163821.6A 2019-11-25 2019-11-25 Power consumption abnormal behavior detection method and electronic equipment Pending CN110955322A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911163821.6A CN110955322A (en) 2019-11-25 2019-11-25 Power consumption abnormal behavior detection method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911163821.6A CN110955322A (en) 2019-11-25 2019-11-25 Power consumption abnormal behavior detection method and electronic equipment

Publications (1)

Publication Number Publication Date
CN110955322A true CN110955322A (en) 2020-04-03

Family

ID=69978287

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911163821.6A Pending CN110955322A (en) 2019-11-25 2019-11-25 Power consumption abnormal behavior detection method and electronic equipment

Country Status (1)

Country Link
CN (1) CN110955322A (en)

Similar Documents

Publication Publication Date Title
CN107911487B (en) Information pushing method and device, server and readable storage medium
Ferreira et al. Revisiting human-battery interaction with an interactive battery interface
CN109947497B (en) Application program preloading method and device, storage medium and mobile terminal
CN103823543B (en) Portable electronic device and the method operated wherein
CN107340014B (en) Multi-sensor detection method and device and computer readable storage medium
US20140188412A1 (en) Application idle current drain measurement
CN102200942B (en) Based on application behavior monitoring method and the cloud server of cloud computing
CN105676997A (en) Mobile terminal management method and system and mobile terminal
CN104239195A (en) Method for processing power consumption of electronic equipment, and electronic equipment
CN112153216A (en) Electric quantity early warning method and device, terminal equipment and storage medium
CN105403836A (en) Battery power consumption monitoring
CN107148072B (en) Method and system for acquiring target resource parameters of intelligent terminal application
CN106455022B (en) A kind of battery saving mode switching method and device
CN106569585A (en) Method and terminal of managing application program process
EP3118780A1 (en) Lifestyle behavior estimating device, and program
CN105204981A (en) Application performance test method and device
CN111596215A (en) Storage battery state monitoring method and device and storage medium
CN106326065B (en) Terminal use duration management method and device
CN111929583A (en) Electric quantity monitoring method, device and system of intelligent terminal
CN115042664A (en) Automobile power battery monitoring method and device
CN111311014A (en) Service data processing method and device, computer equipment and storage medium
CN112714368B (en) Method and device for prompting abnormal electricity consumption, computer equipment and storage medium
CN108038050B (en) Performance adjusting method and device, storage medium and electronic equipment
CN104348140B (en) The method and electronic equipment that a kind of low battery is reminded
CN110955322A (en) Power consumption abnormal behavior detection method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination