Power consumption visualization method and apparatus, electronic device, and computer-readable storage medium

By disassembling and visualizing the comprehensive power consumption data of terminal devices using hardware modules, the problem of coarse-grained power consumption display in existing technologies has been solved, enabling refined power consumption management and positioning.

CN123030453APending Publication Date: 2026-11-03TCL COMM TECH (CHENGDU) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611160405.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-31
Publication Date
2026-11-03

AI Technical Summary

Technical Problem

Existing power consumption display methods are too coarse-grained, failing to provide detailed power consumption data and making it difficult to pinpoint specific sources of power consumption.

Method used

By acquiring the comprehensive power consumption data of the terminal device, breaking it down into the local power consumption data of each hardware module, and displaying it on a visualization interface, the system combines deep learning models and hardware measurement units for precise breakdown and analysis.

Benefits of technology

It enables fine-grained display of power consumption data for terminal devices, helping users intuitively locate the source of power consumption and improving the accuracy and efficiency of power consumption management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123030453A_ABST
    Figure CN123030453A_ABST
Patent Text Reader

Abstract

The application discloses a power consumption visualization method and device, electronic equipment and computer readable storage medium, and relates to the technical field of intelligent devices. The method comprises the following steps: a terminal device acquires comprehensive power consumption data, splits the comprehensive power consumption data to obtain local power consumption data of at least one hardware module, and displays the comprehensive power consumption data and the local power consumption data of the at least one hardware module on a visualization interface. The comprehensive power consumption data of the terminal device is split according to hardware modules to obtain various local power consumption data, and the local power consumption data is displayed in a visual manner, so that fine granularity of terminal device power consumption data is realized, and the source of power consumption can be intuitively perceived and located.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of smart device technology, specifically to a power consumption visualization method, apparatus, electronic device, and computer-readable storage medium. Background Technology

[0002] As electronic devices become increasingly feature-rich, the demand for power management in terminal devices, wearable devices, edge computing devices, and various smart hardware is rising. Existing devices typically collect and display power consumption data in some form, such as total system power consumption, remaining battery power, estimated battery life, a list of application power consumption percentages, or display the overall power consumption trend over a period of time in the form of line charts or bar charts. This type of power consumption display primarily provides users with a rough overview of the device's overall power consumption or the percentage of power consumed by specific applications, helping them understand the battery's rate of depletion and the main power-consuming applications.

[0003] However, existing power consumption display methods are usually coarse-grained, and the power consumption data displayed is mostly the total power consumption, total power consumption or application power consumption ratio at the whole machine level. For example, the existing application power consumption percentage list can usually only show the power consumption ratio of a certain application within the statistical period, and the limited statistical charts are mostly used to show the overall power consumption change or total power consumption trend. Summary of the Invention

[0004] This application provides a power consumption visualization method, apparatus, electronic device, and computer-readable storage medium, which can display power consumption data in a fine-grained manner and help locate the source of power consumption.

[0005] In a first aspect, embodiments of this application provide a power consumption visualization method applied to a terminal device, the method comprising: Obtain the comprehensive power consumption data of the terminal device; The comprehensive power consumption data is broken down to obtain local power consumption data for at least one hardware module; The overall power consumption data and the local power consumption data of the at least one hardware module are displayed on a visual interface.

[0006] Secondly, embodiments of this application also provide a power consumption visualization device applied to a terminal device, the device comprising: The acquisition module is used to acquire the comprehensive power consumption data of the terminal device; The splitting module is used to break down the comprehensive power consumption data to obtain local power consumption data for at least one hardware module. The display module is used to display the overall power consumption data and the local power consumption data of the at least one hardware module on a visual interface.

[0007] Optionally, in some embodiments of this application, displaying the overall power consumption data and the local power consumption data of the at least one hardware module on a visual interface includes: At least one power consumption curve is plotted on the visualization interface based on the comprehensive power consumption data and the local power consumption data of the at least one hardware module.

[0008] Optionally, in some embodiments of this application, the apparatus further includes: In response to a gesture operation on the power consumption curve, an update of the content on the power consumption curve is triggered; The gesture operation includes at least one of pinching with two fingers, long press, tap, or swipe; the content update includes at least one of displaying power consumption data at the target time, the rate of change, or showing / hiding the power consumption curve.

[0009] Optionally, in some embodiments of this application, the step of decomposing the comprehensive power consumption data to obtain local power consumption data for at least one hardware module includes: Obtain power consumption breakdown auxiliary information, which includes at least one of hardware voltage data, hardware temperature data, hardware operating frequency, hardware utilization, network connection status, network throughput, screen brightness, or screen refresh rate. By using the power consumption breakdown model and the power consumption breakdown auxiliary information and / or power consumption feature library, the comprehensive power consumption data is broken down into the local power consumption data for at least one hardware module. The power consumption breakdown model includes a hardware measurement unit or a deep learning model obtained through training.

[0010] Optionally, in some embodiments of this application, the apparatus further includes: The content editing area is displayed through the visual interface. Receive power consumption analysis description information input through the content editing area; The power analysis model outputs power analysis results based on the power analysis description information. The power consumption analysis results are displayed through the visualization interface. The power consumption analysis results include at least one of the following: power consumption mode, associated application package name, associated system service, associated hardware module status, associated power consumption curve segment, trend of change, or optimization suggestions.

[0011] Optionally, in some embodiments of this application, the step of outputting power analysis results for the power analysis description information through a power analysis model includes: The power consumption analysis description information is segmented into words, and entities are extracted after segmentation. The entity is used to filter the associated data to be analyzed, which includes at least one of comprehensive power consumption data, local power consumption data, hardware temperature data, kernel events, or application activities. The power consumption analysis model outputs the power consumption analysis results corresponding to the data to be analyzed. The power consumption analysis model is trained based on a local policy library, which is also updated based on a cloud-based group policy library. The group policy library is obtained by federated learning or graph construction and analysis of sample policies reported by at least one terminal device in the cloud.

[0012] Optionally, in some embodiments of this application, the apparatus further includes: A fixed panel is displayed on the visualization interface. The fixed panel displays power consumption statistics, which include at least one of average power consumption, peak current, module power consumption percentage, or temperature. The visualization interface displays a range selection area, and after detecting a range selection operation on the range selection area, it draws range power consumption information for the range selection operation on the visualization interface. The range power consumption information includes a power consumption trend chart or a pie chart of the cumulative power consumption percentage within the selected range.

[0013] Thirdly, embodiments of this application also provide an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the steps in the power consumption visualization method described above.

[0014] Fourthly, embodiments of this application also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps in the power consumption visualization method described above.

[0015] Fifthly, embodiments of this application also provide a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in the various optional implementations described in embodiments of this application.

[0016] In summary, the terminal device in this application embodiment acquires comprehensive power consumption data, and decomposes the comprehensive power consumption data to obtain local power consumption data for at least one hardware module, and displays the comprehensive power consumption data and the local power consumption data of at least one hardware module on a visualization interface.

[0017] In this embodiment, the overall power consumption data of the terminal device is broken down into individual local power consumption data according to hardware modules, and then displayed in a visual way to achieve fine-grained power consumption data of the terminal device, which helps to intuitively understand / locate the source of power consumption. Attached Figure Description

[0018] To more clearly illustrate the technical solutions in this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 This is a schematic diagram of a scenario in which a terminal device, according to an embodiment of this application, executes the power consumption visualization method; Figure 2 This is a flowchart illustrating the power consumption visualization method provided in an embodiment of this application; Figure 3 This is a schematic diagram of the visual interface provided in the embodiments of this application; Figure 4 This is a schematic diagram of the power consumption visualization device provided in the embodiments of this application; Figure 5 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application.

[0020] Explanation of icon numbers: 101-Terminal device; 401-Acquisition module; 402-Disassembly module; 403-Display module; 501-Processor; 502-Memory; 503-Power supply; 504-Input unit. Detailed Implementation

[0021] The technical solutions of this application will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0022] In the description of the embodiments of this application, it should be understood that the terms "center," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," and "outer," etc., indicating orientation or positional relationships based on the orientation or positional relationships shown in the accompanying drawings, are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the present invention. Furthermore, the terms "first," "second," "third," and "fourth" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, features defined with "first," "second," "third," and "fourth" may explicitly or implicitly include one or more features. In the description of the present invention, "a plurality of" means two or more, unless otherwise explicitly specified.

[0023] In this application, the term "exemplary" is used to mean "serving as an example, illustration, or description." Any embodiment described as "exemplary" in this application is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is provided to enable any person skilled in the art to make and use the invention. Details are set forth in the following description for purposes of explanation. It should be understood that those skilled in the art will recognize that the invention can be made without using these specific details. In other instances, well-known structures and processes will not be described in detail to avoid obscuring the description of the invention with unnecessary detail. Therefore, the invention is not intended to be limited to the embodiments shown, but is consistent with the broadest scope of the principles and features disclosed in this application.

[0024] This application provides a power consumption visualization method, apparatus, electronic device, and computer-readable storage medium. Specifically, this application provides a power consumption visualization apparatus suitable for electronic devices, including terminal devices such as mobile phones, tablets, laptops, or televisions.

[0025] For example, please see Figure 1 , Figure 1 This is a schematic diagram illustrating a scenario where a terminal device, according to an embodiment of this application, executes the power consumption visualization method. Specifically, the execution process of the power consumption visualization method by the terminal device is as follows: Terminal device 101 acquires its own comprehensive power consumption data, and breaks down the comprehensive power consumption data to obtain local power consumption data for at least one hardware module. The comprehensive power consumption data and the local power consumption data of at least one hardware module are then displayed on a visualization interface.

[0026] For example, taking a mobile phone as a terminal device, the mobile phone obtains its overall power consumption data, then breaks down the overall power consumption data according to hardware modules to obtain power consumption data for each hardware module, and then displays the power consumption data at both the overall and individual hardware module levels on the mobile phone interface.

[0027] In summary, this application embodiment breaks down the overall power consumption data of the terminal device into individual local power consumption data according to hardware modules, and displays them in a visual way, thereby achieving fine-grained power consumption data of the terminal device and helping to intuitively understand / locate the source of power consumption.

[0028] The following sections provide detailed descriptions of each example. It should be noted that the order in which the embodiments are described is not intended to limit the priority of the embodiments.

[0029] Please see Figure 2 , Figure 2 This is a flowchart illustrating the power consumption visualization method provided in this application. Although the flowchart shows a logical order, in some cases, the steps shown or described can be performed in a different order than that shown in the flowchart. Specifically, the specific flow of the power consumption visualization method is as follows: S201. Obtain the comprehensive power consumption data of the terminal device.

[0030] The comprehensive power consumption data indicates the overall power consumption level of a terminal device within a preset time period. Power consumption can be reflected in dimensions such as power consumption and current. Taking the comprehensive power consumption data including overall current consumption as an example, this comprehensive power consumption data can include at least one of the following: total current of the entire device, total system current, average current, peak current, current change trend, battery output current, and current consumption per unit time. For example, the comprehensive power consumption data can be used to indicate the total current currently obtained by the terminal device from the battery, the average discharge current over a period of time, or the change in the overall system current during the operation of a certain application.

[0031] S202. The comprehensive power consumption data is decomposed to obtain local power consumption data for at least one hardware module.

[0032] The local power consumption data is used to indicate the power consumption contribution of one or more hardware modules in the terminal device. This local power consumption data may include at least one of the following: real-time current, average current, peak current, cumulative current consumption, current percentage, current trend, and current contribution of the hardware module.

[0033] The hardware modules include AP Cluster, GPU, 5G Modem, Display, GPS, CPU, display screen, communication module, sensor, memory, etc. For example, the local power consumption data can be used to indicate the current consumption or current percentage of each hardware module such as CPU, GPU, display screen, communication module, sensor, and memory.

[0034] The term "disassembly" refers to breaking down the overall power consumption data into multiple local power consumption data points to more clearly define the actual power consumption of each hardware module. In this embodiment, this disassembly can be achieved using measurement tools or deep learning models.

[0035] Understandably, obtaining local power consumption data for each hardware module through disassembly helps to clarify the actual power consumption of each hardware module, facilitating a more refined and granular display of the power consumption of the terminal device.

[0036] S203. Display the overall power consumption data and the local power consumption data of the at least one hardware module on the visualization interface.

[0037] For example, the overall power consumption data and local power consumption data of the terminal device as a whole and its hardware modules can be displayed on the terminal device's interface.

[0038] In summary, this application embodiment breaks down the overall power consumption data of the terminal device into individual local power consumption data according to hardware modules, and displays them in a visual way, thereby achieving fine-grained power consumption data of the terminal device and helping to intuitively understand / locate the source of power consumption.

[0039] In this embodiment of the application, the overall power consumption data and the local power consumption data can be presented in a visualization interface by plotting curves. That is, optionally, in some embodiments of this application, the step of "displaying the overall power consumption data and the local power consumption data of the at least one hardware module on the visualization interface" includes: At least one power consumption curve is plotted on the visualization interface based on the comprehensive power consumption data and the local power consumption data of the at least one hardware module.

[0040] For example, please see Figure 3 As shown, Figure 3 This is a schematic diagram of the visual interface provided in the embodiments of this application. Figure 3 The document shows the power consumption curves for the entire terminal device and for hardware modules (CPU and GPU as examples).

[0041] It is understandable that displaying power consumption curves at both the overall and partial (referring to the hardware module level) levels makes it easier for users to intuitively understand the overall power consumption of the terminal device and the power consumption of each hardware module.

[0042] In this application embodiment, for the displayed power consumption curve, the content that the power consumption curve can display can also be updated by responding to the operation on the power consumption curve. That is, optionally, in some embodiments of this application, the method further includes: In response to a gesture operation on the power consumption curve, an update of the content on the power consumption curve is triggered; The gesture operation includes at least one of pinching with two fingers, long press, tap, or swipe; the content update includes at least one of displaying power consumption data at the target time, the rate of change, or showing / hiding the power consumption curve.

[0043] For example, users can click on the power consumption curve to display the specific current value at the clicked location. Alternatively, they can long-press on the power consumption curve to hide it.

[0044] In this application embodiment, to improve the accuracy of power consumption breakdown, reference information associated with power consumption transformation can also be used to assist in power consumption breakdown. That is, optionally, in some embodiments of this application, the step "breaking down the comprehensive power consumption data to obtain local power consumption data for at least one hardware module" includes: Obtain power consumption breakdown auxiliary information, which includes at least one of hardware voltage data, hardware temperature data, hardware operating frequency, hardware utilization, network connection status, network throughput, screen brightness, or screen refresh rate. By using the power consumption breakdown model and the power consumption breakdown auxiliary information and / or power consumption feature library, the comprehensive power consumption data is broken down into the local power consumption data for at least one hardware module. The power consumption breakdown model includes a hardware measurement unit or a deep learning model obtained through training.

[0045] For example, power consumption breakdown auxiliary information includes data such as voltage, temperature, frequency, and utilization of hardware modules such as CPU and GPU.

[0046] The hardware measurement unit includes a power measurement tool (HMU). In addition, the power consumption breakdown auxiliary information can also be a trained deep learning model. For example, a deep learning model / machine learning model can be trained using a large amount of sample data containing overall power consumption data, power consumption breakdown auxiliary information, and local power consumption data. This enables the deep learning model / machine learning model to learn the trend or pattern of hardware power consumption changes, and thus break down the power consumption data of the terminal device as a whole into local power consumption data for each hardware module in the terminal device.

[0047] Furthermore, in order to bind hardware power consumption with system events and form power consumption event attribution, the association between local power consumption data of hardware modules and kernel events of the system can be established based on timestamps. This allows the generation of power consumption data to be located at specific kernel events, which helps to optimize device status in a targeted manner based on power consumption data, such as controlling foreground / background switching, reducing screen brightness, or turning off GPS.

[0048] Furthermore, the local power consumption data of each hardware module can be bound to the temperature, voltage, and other data of each hardware module, so that the data are aligned in time, which helps to analyze the power consumption by combining multiple data based on time correlation.

[0049] In this embodiment of the application, a content editing area can also be set in the visual interface to allow users to input personalized power consumption analysis requirements, thereby responding to the user's power consumption analysis requirements and performing intelligent power consumption analysis. That is, optionally, in some embodiments of this application, the method further includes: The content editing area is displayed through the visual interface. Receive power consumption analysis description information input through the content editing area; The power analysis model outputs power analysis results based on the power analysis description information. The power consumption analysis results are displayed through the visualization interface. The power consumption analysis results include at least one of the following: power consumption mode, associated application package name, associated system service, associated hardware module status, associated power consumption curve segment, trend of change, or optimization suggestions.

[0050] like Figure 3 As shown, a content editing area is set below the power consumption curve display area. Users can input power consumption analysis requirements through this content editing area, and then trigger intelligent power consumption analysis based on the power consumption analysis requirements.

[0051] The power consumption analysis description information is used to provide a specific description of the power consumption analysis requirements. For example, the power consumption analysis description information includes "Why was there a power consumption spike 10 seconds ago?" and "What caused the sudden increase in CPU power consumption just now?"

[0052] The power consumption analysis results are the results of targeted analysis based on power consumption analysis requirements. These results include power consumption patterns, causes, associated application package names, service or hardware status, or optimization suggestions.

[0053] The power consumption patterns include continuous background activity, periodic wake-ups, or abnormal spikes.

[0054] For example, in this embodiment, power consumption analysis results can be represented by a structured report including core conclusions, key evidence, data visualization snippets, and actionable recommendations. The core conclusions summarize the main cause in one sentence, such as "The power consumption spike 10 seconds ago was mainly due to starting a game." Key evidence lists the associated applications / services, the hardware modules that triggered them, and the number / duration of activities, such as the game's startup time and CPU uptime. Data visualization snippets insert a condensed, highlighted graph of key time periods into the dialogue, such as the power consumption curves 3 seconds before and after 10 seconds ago. Actionable recommendations provide optimization suggestions, such as "It is recommended to limit the background activity of this application" or "Try turning off location services that were not used during this period."

[0055] In this embodiment of the application, the power consumption data to be analyzed can be extracted and located first through entity extraction, and then intelligent power consumption analysis can be performed through a power consumption analysis model. That is, optionally, in some embodiments of this application, the step "outputting power consumption analysis results for the power consumption analysis description information through the power consumption analysis model" includes: The power consumption analysis description information is segmented into words, and entities are extracted after segmentation. The entity is used to filter the associated data to be analyzed, which includes at least one of comprehensive power consumption data, local power consumption data, hardware temperature data, kernel events, or application activities. The power consumption analysis model outputs the power consumption analysis results corresponding to the data to be analyzed. The power consumption analysis model is trained based on a local policy library, which is also updated based on a cloud-based group policy library. The group policy library is obtained by federated learning or graph construction and analysis of sample policies reported by at least one terminal device in the cloud.

[0056] For example, if the power consumption analysis description is "Why did it consume 15% of the power last night in standby mode?", after word segmentation and entity extraction, entities such as "last night", "standby mode", and "15% power consumption" can be obtained. Then, the user's intent can be analyzed, such as power consumption attribution analysis. In addition, the user's intent can also include anomaly detection, trend comparison, or optimization suggestions.

[0057] Furthermore, based on the extracted entities, associated power consumption curves and related temperature, events, and application activities are filtered from the database. These power consumption curves, temperature, events, and application activities are then input into the power consumption analysis model for power consumption attribution analysis.

[0058] The power consumption analysis model is a machine learning model or a deep learning model, which can be trained using sample data that includes power consumption data, temperature, events and application activities, as well as power consumption analysis results. This sample data can be a local policy library built based on local optimization experience. This local policy library contains power consumption attribution analysis results under different power consumption data, temperature, events, etc., as well as corresponding optimization strategies.

[0059] In this embodiment of the application, the local policy library can also be updated based on the group policy in the cloud. For example, the cloud receives policies from multiple terminal devices, performs joint learning or constructs a knowledge graph and analyzes it to obtain a group policy suitable for the group terminals. Then, the group policy is sent to the local terminal device and merged with the local policy of the terminal device to obtain a fusion policy that takes into account both the group style and the local personalization of the terminal.

[0060] In this embodiment, the visualization interface may also display a fixed panel and a range selection area, allowing users to quickly overview power consumption and flexibly select the range of the power consumption curve to be displayed according to their needs. That is, in this embodiment, the method further includes: A fixed panel is displayed on the visualization interface. The fixed panel displays power consumption statistics, which include at least one of average power consumption, peak current, module power consumption percentage, or temperature. The visualization interface displays a range selection area, and after detecting a range selection operation on the range selection area, it draws range power consumption information for the range selection operation on the visualization interface. The range power consumption information includes a power consumption trend chart or a pie chart of the cumulative power consumption percentage within the selected range.

[0061] The range selection area can be selected based on the time interval or the sampling rate, in order to acquire and display power consumption data that meets the requirements for sampling rate display.

[0062] In summary, this application embodiment breaks down the overall power consumption data of the terminal device into individual local power consumption data according to hardware modules, and displays them in a visual way, thereby achieving fine-grained power consumption data of the terminal device and helping to intuitively understand / locate the source of power consumption.

[0063] The power consumption curve provides users with an intuitive understanding of power consumption trends.

[0064] The content editing area allows users to input their power consumption analysis needs and perform intelligent power consumption analysis.

[0065] To facilitate better implementation of the power consumption visualization method of this application, this application also provides a power consumption visualization device based on the above-described power consumption visualization method. The meanings of the terms used are the same as in the power consumption visualization method described above, and specific implementation details can be found in the descriptions of the method embodiments.

[0066] Please see Figure 4 , Figure 4 This is a schematic diagram of the power consumption visualization device provided in an embodiment of this application. The power consumption visualization device is applied to a terminal device, and the device can specifically be as follows: The acquisition module 401 is used to acquire the comprehensive power consumption data of the terminal device; The splitting module 402 is used to decompose the comprehensive power consumption data to obtain local power consumption data for at least one hardware module. The display module 403 is used to display the overall power consumption data and the local power consumption data of the at least one hardware module on a visual interface.

[0067] Optionally, in some embodiments of this application, displaying the overall power consumption data and the local power consumption data of the at least one hardware module on a visual interface includes: At least one power consumption curve is plotted on the visualization interface based on the comprehensive power consumption data and the local power consumption data of the at least one hardware module.

[0068] Optionally, in some embodiments of this application, the apparatus further includes: In response to a gesture operation on the power consumption curve, an update of the content on the power consumption curve is triggered; The gesture operation includes at least one of pinching with two fingers, long press, tap, or swipe; the content update includes at least one of displaying power consumption data at the target time, the rate of change, or showing / hiding the power consumption curve.

[0069] Optionally, in some embodiments of this application, the step of decomposing the comprehensive power consumption data to obtain local power consumption data for at least one hardware module includes: Obtain power consumption breakdown auxiliary information, which includes at least one of hardware voltage data, hardware temperature data, hardware operating frequency, hardware utilization, network connection status, network throughput, screen brightness, or screen refresh rate. By using the power consumption breakdown model and the power consumption breakdown auxiliary information and / or power consumption feature library, the comprehensive power consumption data is broken down into the local power consumption data for at least one hardware module. The power consumption breakdown model includes a hardware measurement unit or a deep learning model obtained through training.

[0070] Optionally, in some embodiments of this application, the apparatus further includes: The content editing area is displayed through the visual interface. Receive power consumption analysis description information input through the content editing area; The power analysis model outputs power analysis results based on the power analysis description information. The power consumption analysis results are displayed through the visualization interface. The power consumption analysis results include at least one of the following: power consumption mode, associated application package name, associated system service, associated hardware module status, associated power consumption curve segment, trend of change, or optimization suggestions.

[0071] Optionally, in some embodiments of this application, the step of outputting power analysis results for the power analysis description information through a power analysis model includes: The power consumption analysis description information is segmented into words, and entities are extracted after segmentation. The entity is used to filter the associated data to be analyzed, which includes at least one of comprehensive power consumption data, local power consumption data, hardware temperature data, kernel events, or application activities. The power consumption analysis model outputs the power consumption analysis results corresponding to the data to be analyzed. The power consumption analysis model is trained based on a local policy library, which is also updated based on a cloud-based group policy library. The group policy library is obtained by federated learning or graph construction and analysis of sample policies reported by at least one terminal device in the cloud.

[0072] Optionally, in some embodiments of this application, the apparatus further includes: A fixed panel is displayed on the visualization interface. The fixed panel displays power consumption statistics, which include at least one of average power consumption, peak current, module power consumption percentage, or temperature. The visualization interface displays a range selection area, and after detecting a range selection operation on the range selection area, it draws range power consumption information for the range selection operation on the visualization interface. The range power consumption information includes a power consumption trend chart or a pie chart of the cumulative power consumption percentage within the selected range.

[0073] In this embodiment of the application, the acquisition module 401 acquires the comprehensive power consumption data of the terminal device, the splitting module 402 decomposes the comprehensive power consumption data to obtain local power consumption data for at least one hardware module, and the display module 403 displays the comprehensive power consumption data and the local power consumption data of the at least one hardware module on a visual interface.

[0074] In summary, this application embodiment breaks down the overall power consumption data of the terminal device into individual local power consumption data according to hardware modules, and displays them in a visual way, thereby achieving fine-grained power consumption data of the terminal device and helping to intuitively understand / locate the source of power consumption.

[0075] In addition, this application also provides an electronic device, such as Figure 5 As shown, it illustrates a structural schematic diagram of the electronic device provided in an embodiment of this application. Specifically: The electronic device may include components such as a processor 501 with one or more processing cores, a memory 502 with one or more computer-readable storage media, a power supply 503, and an input unit 504. Those skilled in the art will understand that... Figure 5 The electronic device structure shown does not constitute a limitation on the electronic device and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein: The processor 501 is the control center of the electronic device. It connects various parts of the electronic device via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 502, and by calling data stored in the memory 502, it performs various functions and processes data, thereby providing overall monitoring of the electronic device. Optionally, the processor 501 may include one or more processing cores; preferably, the processor 501 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 501.

[0076] The memory 502 can be used to store software programs and modules. The processor 501 executes various functional applications and data processing by running the software programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, applications required for at least one function, etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 502 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.

[0077] The electronic device also includes a power supply 503 that supplies power to various components. Preferably, the power supply 503 can be logically connected to the processor 501 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 503 may also include one or more DC or AC power supplies, recharging systems, power equipment debugging circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0078] The electronic device may also include an input unit 504, which can be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.

[0079] Although not shown, the electronic device may also include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 501 in the electronic device loads the executable files corresponding to the processes of one or more applications into the memory 502 according to the following instructions, and the processor 501 runs the applications stored in the memory 502, thereby implementing the steps in any of the power consumption visualization methods provided in the embodiments of this application.

[0080] The terminal device in this application embodiment acquires comprehensive power consumption data and breaks down the comprehensive power consumption data to obtain local power consumption data for at least one hardware module, and displays the comprehensive power consumption data and the local power consumption data of at least one hardware module on a visualization interface.

[0081] In this embodiment, the overall power consumption data of the terminal device is broken down into individual local power consumption data according to hardware modules, and then displayed in a visual way to achieve fine-grained power consumption data of the terminal device, which helps to intuitively understand / locate the source of power consumption.

[0082] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0083] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.

[0084] To this end, this application provides a computer-readable storage medium storing a computer program that can be loaded by a processor to execute the steps in any of the power consumption visualization methods provided in this application.

[0085] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0086] The computer-readable storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0087] Since the instructions stored in the computer-readable storage medium can execute the steps in any of the power consumption visualization methods provided in this application, the beneficial effects that any of the power consumption visualization methods provided in this application can achieve can be realized, as detailed in the preceding embodiments, and will not be repeated here.

[0088] The above provides a detailed description of a power consumption visualization method, apparatus, electronic device, and computer-readable storage medium provided in this application. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, those skilled in the art will recognize that there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.

[0089] It is understood that in the specific implementation of this application, data related to the comprehensive power consumption data of the terminal device, the local power consumption data of multiple hardware modules, events, temperature, and information input by the user through the interface are involved. When the embodiments in this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.

Claims

1. A power consumption visualization method, characterized in that, Applied to a terminal device, the method includes: Obtain the comprehensive power consumption data of the terminal device; The comprehensive power consumption data is broken down to obtain local power consumption data for at least one hardware module; The overall power consumption data and the local power consumption data of the at least one hardware module are displayed on a visual interface.

2. The power consumption visualization method according to claim 1, characterized in that, The process of displaying the overall power consumption data and the local power consumption data of at least one hardware module on a visual interface includes: At least one power consumption curve is plotted on the visualization interface based on the comprehensive power consumption data and the local power consumption data of the at least one hardware module.

3. The power consumption visualization method according to claim 2, characterized in that, The method further includes: In response to a gesture operation on the power consumption curve, an update of the content on the power consumption curve is triggered; The gesture operation includes at least one of pinching with two fingers, long press, tap, or swipe; the content update includes at least one of displaying power consumption data at the target time, the rate of change, or showing / hiding the power consumption curve.

4. The power consumption visualization method according to claim 1, characterized in that, The step of breaking down the overall power consumption data to obtain local power consumption data for at least one hardware module includes: Obtain power consumption breakdown auxiliary information, which includes at least one of hardware voltage data, hardware temperature data, hardware operating frequency, hardware utilization, network connection status, network throughput, screen brightness, or screen refresh rate. By using the power consumption breakdown model and the power consumption breakdown auxiliary information and / or power consumption feature library, the comprehensive power consumption data is broken down into the local power consumption data for at least one hardware module. The power consumption breakdown model includes a hardware measurement unit or a deep learning model obtained through training.

5. The power consumption visualization method according to claim 1, characterized in that, The method further includes: The content editing area is displayed through the visual interface. Receive power consumption analysis description information input through the content editing area; The power analysis model outputs power analysis results based on the power analysis description information. The power consumption analysis results are displayed through the visualization interface. The power consumption analysis results include at least one of the following: power consumption mode, associated application package name, associated system service, associated hardware module status, associated power consumption curve segment, trend of change, or optimization suggestions.

6. The power consumption visualization method according to claim 5, characterized in that, The step of outputting power analysis results based on the power analysis description information through the power analysis model includes: The power consumption analysis description information is segmented into words, and entities are extracted after segmentation. The entity is used to filter the associated data to be analyzed, which includes at least one of comprehensive power consumption data, local power consumption data, hardware temperature data, kernel events, or application activities. The power consumption analysis model outputs the power consumption analysis results corresponding to the data to be analyzed. The power consumption analysis model is trained based on a local policy library, which is also updated based on a cloud-based group policy library. The group policy library is obtained by federated learning or graph construction and analysis of sample policies reported by at least one terminal device in the cloud.

7. The power consumption visualization method according to claim 1, characterized in that, The method further includes: A fixed panel is displayed on the visualization interface. The fixed panel displays power consumption statistics, which include at least one of average power consumption, peak current, module power consumption percentage, or temperature. The visualization interface displays a range selection area, and after detecting a range selection operation on the range selection area, it draws range power consumption information for the range selection operation on the visualization interface. The range power consumption information includes a power consumption trend chart or a pie chart of the cumulative power consumption percentage within the selected range.

8. A power consumption visualization device, characterized in that, Applied to a terminal device, the device includes: The acquisition module is used to acquire the comprehensive power consumption data of the terminal device; The splitting module is used to break down the comprehensive power consumption data to obtain local power consumption data for at least one hardware module. The display module is used to display the overall power consumption data and the local power consumption data of the at least one hardware module on a visual interface.

9. An electronic device, characterized in that, It includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the steps of the power consumption visualization method as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the power consumption visualization method as described in any one of claims 1-7.