Power consumption control method, device, storage medium and terminal of electronic device

By using machine learning to identify the working scenarios of electronic devices and adjust power consumption, it solves the problem of long battery life and high performance of electronic devices, enables flexible adjustment of power consumption in different scenarios, and improves user experience and market competitiveness.

CN112162625BActive Publication Date: 2024-10-25SHANGHAI WINGTECH INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011020925.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-25
Publication Date
2024-10-25
Estimated Expiration
2040-09-25

AI Technical Summary

Technical Problem

It is difficult to combine long battery life and high performance in electronic devices with existing technology. The battery life is usually extended by reducing hardware performance, resulting in poor user experience and insufficient product competitiveness.

Method used

Use machine learning methods to identify real-time working scenarios of electronic devices, and adjust power consumption in time according to scene switching, including reducing power consumption in long-life scenarios and increasing power consumption in high-performance scenarios, by controlling CPU overclocking, fan speed, charging chip mode, etc. means to achieve.

Benefits of technology

Without increasing costs, electronic devices can extend battery life as much as possible according to user needs, and improve performance as much as possible when performance needs to be improved, greatly improving market competitiveness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112162625B_ABST
    Figure CN112162625B_ABST
Patent Text Reader

Abstract

The present invention discloses a power consumption control method, device, storage medium and terminal of an electronic device, and the method comprises the following steps: using a machine learning method to identify the real-time working scene of the electronic device; using a control method corresponding to the real-time working scene to control the power consumption of the electronic device. The present invention uses emerging artificial intelligence technologies such as machine learning to judge the working scene according to the temperature distribution of the main components of the electronic device in various working scenes, the software running status and the user's operation instructions, and timely and accurately executes the strategy of increasing or reducing power consumption when the working scene is switched, so that the electronic device can extend the battery life as much as possible in the scene where the battery life needs to be improved according to the user's needs, and improve the performance as much as possible in the scene where the performance needs to be improved, so that the electronic device has both long battery life and high performance without increasing the cost, which greatly improves the market competitiveness.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to the field of intelligent devices, and in particular to a method, device, storage medium and terminal for controlling power consumption of an electronic device. [Background technology]

[0002] The battery life and performance of electronic devices such as laptops are the indicators that users are most concerned about, and have a significant impact on the user's normal use and experience. The main way to increase the battery life of laptops is to increase the battery capacity and reduce the power consumption of the laptop, but due to the space limitations of the laptop, especially ultra-thin laptops, the battery capacity cannot be greatly increased. On the other hand, the higher the performance of the laptop, the higher the power consumption, and the higher the surface temperature of the casing, the battery life will inevitably decrease. The existing technology for power consumption control of electronic devices such as laptops is relatively simple. For example, without considering user needs, in order to ensure battery life, the performance of the hardware is actively reduced, resulting in poor user experience and insufficient product competitiveness. [Summary of the invention]

[0003] The present invention provides a power consumption control method, device, storage medium and terminal of an electronic device, which solves the technical problem that electronic devices in the prior art cannot have both long battery life and high performance.

[0004] The technical solution of the present invention to solve the above technical problem is as follows: A method for controlling power consumption of an electronic device comprises the following steps:

[0005] Use machine learning methods to identify real-time working scenarios of electronic devices;

[0006] The power consumption of the electronic device is controlled by using the control method corresponding to the real-time working scenario.

[0007] In a preferred embodiment, the working scenarios of the electronic device include long battery life scenarios and high performance scenarios. The long battery life scenarios include web browsing scenarios, local video playback scenarios, and low-power software running scenarios; the high-performance scenarios include high-power software running scenarios, high-power game running scenarios, and multiple software running scenarios at the same time.

[0008] In a preferred embodiment, the control method corresponding to the real-time working scenario is used to control the power consumption of the electronic device, including:

[0009] If the real-time working scenario is a long-endurance scenario, a first control method is used to reduce the power consumption of the electronic device;

[0010] If the real-time working scenario is a high-performance scenario, a second control method is used to increase the power consumption of the electronic device;

[0011] The first control method includes reminding the user to turn off the LED light effect and the touchpad, reducing the CPU overclocking power and overclocking time, limiting the maximum power consumption of the CPU, controlling the CPU to work at the lowest rated power, controlling the charging chip to enter a sleep mode, and reducing the fan speed. One or more;

[0012] The second control method includes one or more of increasing the CPU overclocking power and overclocking time, increasing the CPU maximum power consumption, relaxing the temperature limit of reducing the frequency after the CPU is overheated, and increasing the fan speed.

[0013] In a preferred embodiment, the method of using a machine learning method to identify the real-time working scene of the electronic device includes:

[0014] Obtain historical temperature data of multiple preset locations on the mainboard under different working scenarios, and establish a first training set and a first test set;

[0015] Based on the first training set and the first test set, a first target computing model for identifying a real-time working scene of an electronic device is established by using a machine learning method;

[0016] The real-time temperature data of the plurality of preset positions on the mainboard are collected, and the first target calculation model is called to generate a real-time working scene of the electronic device.

[0017] In a preferred embodiment, the method of using a machine learning method to identify the real-time working scene of the electronic device further includes:

[0018] Establishing the first training set and the first test set corresponding to different ambient temperature ranges;

[0019] Using a machine learning method to establish the first target calculation model corresponding to each ambient temperature range;

[0020] The real-time ambient temperature is obtained, and the corresponding first target calculation model is called according to the ambient temperature range of the real-time ambient temperature, and a real-time working scene of the electronic device is generated.

[0021] In a preferred embodiment, the machine learning method includes at least one of a conditional random field algorithm, a maximum entropy model algorithm, a bagging algorithm, a boosting algorithm, a neural network algorithm, a logistic regression algorithm, and a support vector machine algorithm.

[0022] In a preferred embodiment, the method of using a machine learning method to identify the real-time working scene of the electronic device includes:

[0023] Obtain historical location information, historical time information, historical software running status information, and corresponding user operation instructions of the electronic device in different working scenarios, and establish a second training set and a second test set;

[0024] Based on the second training set and the second test set, a second target computing model for identifying the real-time working scene of the electronic device is established by using a machine learning method;

[0025] Identify the current location information, current time information, current software running status information and current operation instructions of the electronic device, and call the second target computing model to generate a real-time working scene of the electronic device.

[0026] A second aspect of an embodiment of the present invention provides a power consumption control device for an electronic device, comprising a scene recognition module and a control module.

[0027] The scene recognition module is used to recognize the real-time working scene of the electronic device using a machine learning method;

[0028] The control module is used to control the power consumption of the electronic device by adopting the control method corresponding to the real-time working scenario.

[0029] In a preferred embodiment, when the real-time working scenario is a long-endurance scenario, the control module is used to reduce the power consumption of the electronic device by adopting a first control method;

[0030] When the real-time working scenario is a high-performance scenario, the control module is used to increase the power consumption of the electronic device by adopting a second control method;

[0031] The first control method includes reminding the user to turn off the LED light effect and the touchpad, reducing the CPU overclocking power and overclocking time, limiting the maximum power consumption of the CPU, controlling the CPU to work at the lowest rated power, controlling the charging chip to enter a sleep mode, and reducing the fan speed. One or more;

[0032] The second control method includes one or more of increasing the CPU overclocking power and overclocking time, increasing the CPU maximum power consumption, relaxing the temperature limit of reducing the frequency after the CPU is overheated, and increasing the fan speed.

[0033] In a preferred embodiment, the scene recognition module includes a first machine learning unit, a first storage unit, a first temperature acquisition unit and a first recognition unit.

[0034] The first machine learning unit is used to obtain historical temperature data of multiple preset positions on the mainboard under different working scenarios, establish a first training set and a first test set, and use a machine learning method to establish a first target computing model for identifying the real-time working scenario of the electronic device based on the first training set and the first test set;

[0035] The first storage unit is used to store the first target calculation model;

[0036] The first temperature collection unit is used to collect real-time temperature data of the plurality of preset positions on the mainboard;

[0037] The first recognition unit is used to call the first target calculation model and generate a real-time working scene of the electronic device according to the real-time temperature data.

[0038] In a preferred embodiment, the scene recognition module further includes a second temperature acquisition unit.

[0039] The second temperature collection unit is used to collect real-time ambient temperature;

[0040] The first machine learning unit is further used to establish the first training set and the first test set corresponding to different ambient temperature ranges, and to establish the first target calculation model corresponding to each ambient temperature range using a machine learning method;

[0041] The first recognition unit is also used to call the corresponding first target calculation model according to the ambient temperature range of the real-time ambient temperature, and generate a real-time working scene of the electronic device.

[0042] In a preferred embodiment, the scene recognition module further includes a second machine learning unit, a second storage unit, a state acquisition unit and a second recognition unit.

[0043] The second machine learning unit is used to obtain historical positioning information, historical time information, historical software running status information and corresponding user operation instructions of the electronic device in different working scenarios, establish a second training set and a second test set, and based on the second training set and the second test set, use a machine learning method to establish a second target computing model for identifying the real-time working scenario of the electronic device;

[0044] The second storage unit is used to store the second target calculation model;

[0045] The state acquisition unit is used to collect the current location information, current time information, current software running state information and current operation instructions of the user of the electronic device;

[0046] The second identification unit is used to call the second target calculation model and generate a real-time working scene of the electronic device according to the current positioning information, current time information, current software running status information of the electronic device and the current operation instructions of the user.

[0047] A third aspect of an embodiment of the present invention provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the above-mentioned method for controlling power consumption of an electronic device is implemented.

[0048] A fourth aspect of an embodiment of the present invention provides a terminal, comprising the computer-readable storage medium and a processor, wherein the processor implements the steps of the above-mentioned method for controlling power consumption of an electronic device when executing the computer program on the computer-readable storage medium.

[0049] The present invention proposes a power consumption control method, device, storage medium and terminal for an electronic device. By using emerging artificial intelligence technologies such as machine learning, the working scene is judged according to the temperature distribution of main components of the electronic device in various working scenes, the software running status and the user's operation instructions, and the strategy of increasing or reducing power consumption is timely and accurately executed when the working scene is switched, so that the electronic device can extend the battery life as much as possible in the scene where the battery life needs to be improved, and improve the performance as much as possible in the scene where the performance needs to be improved, so that the electronic device has both long battery life and high performance without increasing the cost, thereby greatly improving the market competitiveness.

[0050] In order to make the above-mentioned objects, features and advantages of the invention more obvious and easy to understand, the preferred embodiments of the present invention are specifically cited below and described in detail with reference to the attached drawings.

Brief Description of the Drawings

[0051] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0052] Figure 1 This is an application scenario diagram of a method for controlling power consumption of an electronic device in one embodiment;

[0053] Figure 2 is a schematic flow chart of a method for controlling power consumption of an electronic device in an embodiment;

[0054] Figure 3 is a schematic diagram of a process of using a machine learning method to identify a real-time working scene of an electronic device in an embodiment;

[0055] Figure 4 is a flow chart of another embodiment of using a machine learning method to identify a real-time working scene of an electronic device;

[0056] Figure 5 is a schematic diagram of the structure of a power consumption control device of an electronic device in an embodiment;

[0057] Figure 6 The figure is a diagram of the internal structure of an electronic device in an embodiment. [Specific implementation method]

[0058] In order to make the purpose, technical solution and beneficial technical effect of the present invention clearer, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. It should be understood that the specific implementation methods described in this specification are only for explaining the present invention, not for limiting the present invention.

[0059] The power consumption control method of the electronic device provided in this application can be applied to Figure 1 In the application environment shown. The power consumption control method of the electronic device is applied to the terminal 102, wherein the terminal 102 may be, but is not limited to, a computer, a laptop computer, a handheld computer, a personal digital assistant (PDA), a portable media player (PMP), a navigation terminal, a wearable device, a smart bracelet, a pedometer and other mobile terminals, as well as fixed terminals such as a digital TV and a desktop computer.

[0060] In one embodiment, Figure 2 As shown, a method for controlling power consumption of an electronic device is provided, and the method is applied to Figure 1 The following steps are used as an example to illustrate the use of a laptop computer in the following example:

[0061] Step S1: The laptop computer uses a machine learning method to identify the real-time working scene.

[0062] In this embodiment, the working scenarios of the laptop computer can be divided into long-life scenarios and high-performance scenarios according to different user needs. Long-life scenarios include web browsing scenarios, local video playback scenarios, and low-power software running scenarios, such as office, PDF reader and other small program running scenarios. These scenarios do not require too high hardware performance to meet the user's needs for fast response speed and short delay. High-performance scenarios include high-power software, such as running scenarios of running software, CAD drawing software and video editing software, high-power games, such as large-scale stand-alone game running scenarios and multiple multi-software running scenarios at the same time, etc. These scenarios have high requirements for hardware performance, and only when the performance is met can it run normally, so the battery life can be exchanged for the improvement of the machine hardware performance.

[0063] For laptops, there are two ways to determine the working scene. One is to identify the real-time working scene through the temperature distribution of the motherboard on the laptop, including the following steps:

[0064] S101, the laptop computer obtains historical temperature data of multiple preset positions on the mainboard under different working scenarios, and establishes a first training set and a first test set. In a specific embodiment, multiple high-precision and wide-operating temperature temperature sensors set on the mainboard can obtain temperature data of corresponding preset positions, and the laptop computer records the temperature data to form historical temperature data, and then a part of it can be set as the first training set, and the other part can be set as the first test set. The first training set is used to train the calculation model of the machine learning method, and the first test set is used to test the classification effect of the trained calculation model and optimize the parameters of the calculation model. In the specific implementation process, the temperature sensors of the laptop computer are distributed near the high-power consumption devices of the mainboard, such as the central processing unit (CPU), solid-state disk (SSD) and WIFI module. The heat radiated and conducted by the high-power consumption devices can be quickly sensed by the temperature sensor.

[0065] S102, in a constant temperature environment, the laptop computer uses a machine learning method to establish a first target calculation model for identifying the real-time working scene of the laptop computer based on the first training set and the first test set: Q = ε1·T1+ε2·T2+…+ε(n)·T(n), where T represents the temperature value collected by the temperature sensor, ε represents the weighted value of the temperature sensor corresponding to each preset position, and n represents the number of temperature sensors. In the process of using the machine learning method to train the above-mentioned calculation model, a large amount of temperature data in the first training set is deeply learned, so as to converge to the best first target calculation model, that is, to adjust the optimal ε value, so that different working scenes have a relatively stable Q value range. If the Q value continues to fluctuate over a large range or cannot clearly distinguish different working scenes, continue to increase the historical temperature data for learning, that is, increase the amount of data in the first training set, repeat the cycle continuously, and adjust the value of ε until a more ideal Q value distribution appears.

[0066] In a specific embodiment, the laptop computer can use an embedded controller (EC) or a dedicated machine learning chip to efficiently execute the machine learning process and obtain the first target computing model. In other embodiments, the laptop computer can also only be provided with a storage module storing the first target computing model, and the training process of the specific first target computing model is preprocessed by an external embedded controller or a dedicated machine learning device.

[0067] The machine learning methods used in the present invention include but are not limited to at least one of a conditional random field algorithm, a maximum entropy model algorithm, a bagging algorithm, a boosting algorithm, a neural network algorithm, a logistic regression algorithm, and a support vector machine algorithm. In the process of machine learning, a first training set and a first test set can also be constructed in a vector manner to obtain a first target calculation model represented by a vector. These machine learning methods are all commonly used algorithms and are not described in detail here.

[0068] S103, the laptop computer collects real-time temperature data of multiple preset positions on the mainboard, and calls the first target calculation model to generate a real-time working scene of the laptop computer. In a specific embodiment, after the laptop computer continues to work in a certain working scene for a period of time, parameters such as machine temperature and power consumption reach a stable state, and the temperature sensor reads the real-time temperature data and reports it to the embedded controller or machine learning dedicated chip of the laptop computer, and then the embedded controller or machine learning dedicated chip calls the first target calculation model to calculate a relatively stable Q value, thereby accurately judging the real-time working scene of the laptop computer.

[0069] In another preferred embodiment, considering that the ambient temperature will affect the weighted value of the first target calculation model, thereby reducing the judgment accuracy of the real-time working scene, the embedded controller or machine learning dedicated chip of the laptop can also establish a first training set and a first test set corresponding to different ambient temperature ranges, and establish a first target calculation model corresponding to each ambient temperature range based on the first training set and the first test set. Then, the real-time ambient temperature is collected, and the corresponding first target calculation model is called according to the ambient temperature range in which the real-time ambient temperature is located, so as to more accurately generate the real-time working scene in which the laptop is located.

[0070] Another solution of the embodiment of the present invention is to identify the real-time working scene through the location information, time information, software running status information and user operation instructions of the notebook computer, such as Figure 4 As shown, the following steps are included:

[0071] S105, the laptop computer obtains historical positioning information, historical time information, historical software running status information and corresponding user operation instructions in different working scenarios, and establishes a second training set and a second test set.

[0072] S106, the laptop computer uses a machine learning method to establish a second target computing model for identifying real-time working scenarios based on the second training set and the second test set.

[0073] S107, the laptop computer identifies the current location information, the current time information, the current software running status information and the user's current operation instruction, and calls the second target computing model to generate the real-time working scene.

[0074] In a specific embodiment, the embedded controller or machine learning dedicated chip of the laptop can use all historical positioning information, historical time information, historical software running status information and corresponding user operation instructions within a period of time as four types of tensor data for machine learning training, so as to judge the work scene of the laptop. Among them, the software running status information can be detected by the dynamic platform and thermal framework program (DPTF, Dynamic Platform and Thermal Framework) of the laptop or the operating system of the laptop. The dynamic platform and thermal framework program was originally a basic computer program released by Intel. When the adaptive policy is turned on, it can monitor the basic software running on the computer, or directly use the operating system to detect, and can obtain the software running status information in more detail and accurately. The user operation instruction includes information such as the content of the operation instruction, the operation time and the operation frequency. The second training set is used for training, and the second test set is used for parameter optimization, so as to train and obtain the second target calculation model by calculating the relationship between the predicted value of the work scene and the multivariate. The advantage of this is that the laptop can be inferred to be in a long-life scenario or a high-performance scenario based on the user's historical operation instructions (for example, periodically at 8 o'clock in the evening, in a fixed geographical range such as home, open the video software to watch local videos).

[0075] Of course, in other embodiments, the temperature data and positioning information, time information, software running status information and user operation instructions at the preset position can be combined for machine learning training to obtain a better third target calculation model, thereby further improving the speed and accuracy of work scene recognition.

[0076] Then, step S2 is executed, and the notebook computer uses a control method corresponding to the real-time working scenario to control its own power consumption. In a specific embodiment, if the real-time working scenario is a long-life scenario, the embedded controller or machine learning dedicated chip of the notebook computer uses a first control method to reduce the power consumption of the notebook computer, and the first control method includes reminding the user to turn off the LED light effect and the touchpad, reduce the CPU overclocking power and overclocking time, limit the maximum power consumption of the CPU, control the CPU to work at the lowest rated power, control the charging chip to enter the sleep mode, and reduce the fan speed. One or more.

[0077] When the real-time working scenario is a high-performance scenario, the embedded controller or machine learning dedicated chip of the laptop computer adopts a second control method to increase the power consumption of the laptop computer. The second control method includes increasing the CPU overclocking power and overclocking time, increasing the maximum power consumption of the CPU, relaxing the temperature limit of reducing the frequency after the CPU is overheated, and increasing the fan speed. One or more of the methods.

[0078] In the process of using the first control method to reduce power consumption or the second control method to increase power consumption, the above control means can be used in sequence according to a preset order, such as first considering changing the fan speed, and then considering changing the CPU power consumption or rated power, so as to control the power consumption of the laptop computer step by step. It is also possible to use multiple control means at the same time to further improve the speed and efficiency of power consumption adjustment.

[0079] The above embodiment proposes a power consumption control method for an electronic device. Through emerging artificial intelligence technologies such as machine learning, the working scene is judged according to the temperature distribution of main components of the electronic device in various working scenes, the software running status and the user's operation instructions, and the strategy of increasing or reducing power consumption is timely and accurately executed when the working scene is switched. The electronic device can extend the battery life as much as possible in the scene where the battery life needs to be improved, and improve the performance as much as possible in the scene where the performance needs to be improved according to user needs. The electronic device has both long battery life and high performance without increasing costs, which greatly improves the market competitiveness.

[0080] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0081] Figure 5 is a schematic diagram of the structure of a power consumption control device of an electronic device provided by another embodiment of the present invention, such as Figure 5 As shown, it includes a scene recognition module 100 and a control module 200,

[0082] The scene recognition module 100 is used to recognize the real-time working scene of the electronic device using a machine learning method;

[0083] The control module 200 is used to control the power consumption of the electronic device by adopting a control method corresponding to the real-time working scenario.

[0084] In one embodiment, when the real-time working scenario is a long-endurance scenario, the control module 200 is used to reduce the power consumption of the electronic device by adopting a first control method;

[0085] When the real-time working scenario is a high-performance scenario, the control module 200 is used to increase the power consumption of the electronic device by adopting the second control method;

[0086] The first control method includes reminding the user to turn off the LED light effect and the touchpad, reducing the CPU overclocking power and overclocking time, limiting the maximum power consumption of the CPU, controlling the CPU to work at the lowest rated power, controlling the charging chip to enter a sleep mode, and reducing the fan speed. One or more;

[0087] The second control method includes one or more of increasing the CPU overclocking power and overclocking time, increasing the CPU maximum power consumption, relaxing the temperature limit of reducing the frequency after the CPU is overheated, and increasing the fan speed.

[0088] In one embodiment, the scene recognition module 100 includes a first machine learning unit, a first storage unit, a first temperature acquisition unit and a first recognition unit.

[0089] The first machine learning unit is used to obtain historical temperature data of multiple preset positions on the mainboard under different working scenarios, establish a first training set and a first test set, and use a machine learning method to establish a first target computing model for identifying the real-time working scenario of the electronic device based on the first training set and the first test set;

[0090] The first storage unit is used to store the first target calculation model;

[0091] The first temperature collection unit is used to collect real-time temperature data of multiple preset positions on the mainboard;

[0092] The first recognition unit is used to call the first target calculation model and generate a real-time working scene of the electronic device according to the real-time temperature data.

[0093] In one embodiment, the scene recognition module 100 further includes a second temperature acquisition unit.

[0094] The second temperature collection unit is used to collect real-time ambient temperature;

[0095] The first machine learning unit is also used to establish a first training set and a first test set corresponding to different ambient temperature ranges, and to establish a first target calculation model corresponding to each ambient temperature range using a machine learning method;

[0096] The first recognition unit is also used to call the corresponding first target calculation model according to the ambient temperature range of the real-time ambient temperature, and generate a real-time working scene of the electronic device.

[0097] In one embodiment, the scene recognition module 100 further includes a second machine learning unit, a second storage unit, a state acquisition unit, and a second recognition unit.

[0098] The second machine learning unit is used to obtain historical positioning information, historical time information, historical software running status information and corresponding user operation instructions of the electronic device in different working scenarios, establish a second training set and a second test set, and based on the second training set and the second test set, use a machine learning method to establish a second target computing model for identifying the real-time working scenario of the electronic device;

[0099] The second storage unit is used to store the second target calculation model;

[0100] The state acquisition unit is used to collect the current location information, current time information, current software running state information and current operation instructions of the user of the electronic device;

[0101] The second recognition unit is used to call the second target calculation model and generate a real-time working scene of the electronic device according to the current positioning information, current time information, current software running status information of the electronic device and the current operation instructions of the user.

[0102] The above embodiments propose a power consumption control device for an electronic device. Through emerging artificial intelligence technologies such as machine learning, the working scene is judged according to the temperature distribution of main components of the electronic device in various working scenes, the software running status, and the user's operation instructions, and the strategy of increasing or reducing power consumption is timely and accurately executed when the working scene is switched. The electronic device can extend the battery life as much as possible in the scene where the battery life needs to be improved, and improve the performance as much as possible in the scene where the performance needs to be improved, so that the electronic device has both long battery life and high performance without increasing the cost, which greatly improves the market competitiveness.

[0103] In one embodiment, the present invention further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the following steps are implemented:

[0104] S1, uses machine learning methods to identify real-time working scenarios of electronic devices;

[0105] S2, using a control method corresponding to the real-time working scenario to control the power consumption of the electronic device.

[0106] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0107] S101, obtaining historical temperature data of multiple preset positions on the mainboard under different working scenarios, and establishing a first training set and a first test set;

[0108] S102, based on the first training set and the first test set, using a machine learning method to establish a first target computing model for identifying a real-time working scene of an electronic device;

[0109] S103, collecting real-time temperature data of multiple preset positions on the mainboard, and calling the first target calculation model to generate a real-time working scene of the electronic device.

[0110] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: establishing a first training set and a first test set corresponding to different ambient temperature ranges, and establishing a first target calculation model corresponding to each ambient temperature range based on the first training set and the first test set. Then, the real-time ambient temperature is collected, and the corresponding first target calculation model is called according to the ambient temperature range in which the real-time ambient temperature is located, so as to more accurately generate the real-time working scene of the laptop computer.

[0111] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0112] S105, obtaining historical positioning information, historical time information, historical software running status information and corresponding user operation instructions of the electronic device in different working scenarios, and establishing a second training set and a second test set;

[0113] S106, based on the second training set and the second test set, using a machine learning method to establish a second target computing model for identifying the real-time working scene of the electronic device;

[0114] S107, identifying the current location information, current time information, current software running status information and current operation instructions of the electronic device, and calling the second target computing model to generate a real-time working scene of the electronic device.

[0115] In one embodiment, when the computer program is executed by a processor, the machine learning method includes at least one of a conditional random field algorithm, a maximum entropy model algorithm, a bagging algorithm, a boosting algorithm, a neural network algorithm, a logistic regression algorithm, and a support vector machine algorithm.

[0116] In one embodiment, when the computer program is executed by the processor, the working scenarios of the electronic device include long battery life scenarios and high performance scenarios. The long battery life scenarios include web browsing scenarios, local video playback scenarios, and low-power software running scenarios; the high-performance scenarios include high-power software running scenarios, high-power game running scenarios, and multiple software running scenarios at the same time.

[0117] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0118] If the real-time working scenario is a long-battery-life scenario, the first control method is used to reduce the power consumption of the laptop computer. The first control method includes reminding the user to turn off the LED light effect and touchpad, reducing the CPU overclocking power and overclocking time, limiting the maximum power consumption of the CPU, controlling the CPU to work at the lowest rated power, controlling the charging chip to enter sleep mode, and reducing the fan speed. One or more of the methods.

[0119] When the real-time working scenario is a high-performance scenario, a second control method is used to increase the power consumption of the electronic device. The second control method includes increasing the CPU overclocking power and overclocking time, increasing the maximum power consumption of the CPU, relaxing the temperature limit of reducing the frequency after the CPU is high temperature, and increasing the fan speed. One or more.

[0120] The above embodiments propose a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, a power consumption control method of an electronic device is executed. Therefore, the working scene can be judged according to the temperature distribution of the main components of the electronic device in various working scenes, the software running status and the user's operation instructions through emerging artificial intelligence technologies such as machine learning, and the strategy of increasing or reducing power consumption is executed in a timely and accurate manner when the working scene is switched, so that the electronic device can extend the battery life as much as possible in the scene where the battery life needs to be improved according to user needs, and improve the performance as much as possible in the scene where the performance needs to be improved, so that the electronic device has both long battery life and high performance without increasing costs, thereby greatly improving the market competitiveness.

[0121] Figure 6 1 is an internal structure diagram of an electronic device in an embodiment, and the electronic device may be a notebook computer, or other mobile terminals or fixed terminals. Figure 6 As shown, it includes a memory 81 and a processor 80, the memory 81 stores a computer program 82, and the processor 80 implements the following steps when executing the computer program 82:

[0122] S1, uses machine learning methods to identify real-time working scenarios of electronic devices;

[0123] S2, using a control method corresponding to the real-time working scenario to control the power consumption of the electronic device.

[0124] In one embodiment, when the processor 80 executes the computer program 82, the processor 80 further implements the following steps:

[0125] S101, obtaining historical temperature data of multiple preset positions on the mainboard under different working scenarios, and establishing a first training set and a first test set;

[0126] S102, based on the first training set and the first test set, using a machine learning method to establish a first target computing model for identifying a real-time working scene of an electronic device;

[0127] S103, collecting real-time temperature data of multiple preset positions on the mainboard, and calling the first target calculation model to generate a real-time working scene of the electronic device.

[0128] In one embodiment, the processor 80 further implements the following steps when executing the computer program 82: establishing a first training set and a first test set corresponding to different ambient temperature ranges, and establishing a first target calculation model corresponding to each ambient temperature range based on the first training set and the first test set. Then, the real-time ambient temperature is collected, and the corresponding first target calculation model is called according to the ambient temperature range in which the real-time ambient temperature is located, so as to more accurately generate the real-time working scene of the laptop computer.

[0129] In one embodiment, when the processor 80 executes the computer program 82, the processor 80 further implements the following steps:

[0130] S105, obtaining historical positioning information, historical time information, historical software running status information and corresponding user operation instructions of the electronic device in different working scenarios, and establishing a second training set and a second test set;

[0131] S106, based on the second training set and the second test set, using a machine learning method to establish a second target computing model for identifying the real-time working scene of the electronic device;

[0132] S107, identifying the current location information, current time information, current software running status information and current operation instructions of the electronic device, and calling the second target computing model to generate a real-time working scene of the electronic device.

[0133] In one embodiment, when the processor 80 executes the computer program 82, the machine learning method includes at least one of a conditional random field algorithm, a maximum entropy model algorithm, a bagging algorithm, a boosting algorithm, a neural network algorithm, a logistic regression algorithm, and a support vector machine algorithm.

[0134] In one embodiment, when the processor 80 executes the computer program 82, the working scenarios of the electronic device include long battery life scenarios and high performance scenarios. The long battery life scenarios include web browsing scenarios, local video playback scenarios, and low-power software running scenarios; the high-performance scenarios include high-power software running scenarios, high-power game running scenarios, and multiple software running scenarios at the same time.

[0135] In one embodiment, when the processor 80 executes the computer program 82, the processor 80 further implements the following steps:

[0136] If the real-time working scenario is a long-battery-life scenario, the first control method is used to reduce the power consumption of the laptop computer. The first control method includes reminding the user to turn off the LED light effect and touchpad, reducing the CPU overclocking power and overclocking time, limiting the maximum power consumption of the CPU, controlling the CPU to work at the lowest rated power, controlling the charging chip to enter sleep mode, and reducing the fan speed. One or more of the methods.

[0137] When the real-time working scenario is a high-performance scenario, a second control method is used to increase the power consumption of the electronic device. The second control method includes increasing the CPU overclocking power and overclocking time, increasing the maximum power consumption of the CPU, relaxing the temperature limit of reducing the frequency after the CPU is high temperature, and increasing the fan speed. One or more.

[0138] The above embodiments use emerging artificial intelligence technologies such as machine learning to judge the working scenarios based on the temperature distribution of main components of electronic devices in various working scenarios, software running status, and user operation instructions, and timely and accurately execute strategies to increase or reduce power consumption when switching working scenarios, so that electronic devices can extend the battery life as much as possible in scenarios where the battery life needs to be improved, and improve the performance as much as possible in scenarios where the performance needs to be improved, so that electronic devices have both long battery life and high performance without increasing costs, greatly improving market competitiveness.

[0139] Those skilled in the art will understand that Figure 6 It is only an example of the terminal of the present invention and does not constitute a limitation on the terminal. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal may also include a power management module, an operation processing module, input and output devices, a network access device, a bus, etc.

[0140] The processor 80 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0141] The memory 81 may be an internal storage unit of the terminal, such as a hard disk or a memory. The memory 81 may also be an external storage device of the terminal, such as a plug-in hard disk equipped on the compass calibration terminal, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Further, the memory 81 may also include both an internal storage unit of the compass calibration terminal and an external storage device. The memory 81 is used to store computer programs and other programs and data required by the compass calibration terminal. The memory 81 may also be used to temporarily store data that has been output or is to be output.

[0142] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the terminal is divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned device refers to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0143] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0144] Those of ordinary skill in the art will appreciate that the units and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0145] In the embodiments provided by the present invention, it should be understood that the disclosed terminal / terminal device and method can be implemented in other ways. For example, the terminal / terminal device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, the indirect coupling or communication connection of the terminal or unit can be electrical, mechanical or other forms.

[0146] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0147] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0148] The present invention is not limited to what is described in the specification and implementation modes, and therefore additional advantages and modifications can be easily realized by those skilled in the art. Therefore, without departing from the spirit and scope of the general concept defined by the claims and their equivalents, the present invention is not limited to the specific details, representative devices, and illustrative examples shown and described herein.

Claims

1. A method for controlling power consumption of an electronic device, characterized in that: The following steps are involved: Use machine learning methods to identify real-time working scenarios of electronic devices; The power consumption of the electronic device is controlled by using the control method corresponding to the real-time working scenario; The real-time working scenario of the electronic device identified by the machine learning method includes: Obtain historical temperature data of multiple preset locations on the mainboard under different ambient temperature ranges and different working scenarios, and establish a corresponding first training set and a first test set; Based on the first training set and the first test set, a first target calculation model corresponding to each ambient temperature range is established by using a machine learning method, wherein the first target calculation model is used to identify a real-time working scenario of the electronic device; Acquire the real-time ambient temperature, and call the corresponding first target calculation model according to the ambient temperature range of the real-time ambient temperature; Real-time temperature data of the plurality of preset positions on the mainboard are collected, and a real-time working scene of the electronic device is generated according to the first target calculation model.

2. The method for controlling power consumption of an electronic device according to claim 1, characterized in that: The working scenarios of the electronic device include long-battery-life scenarios and high-performance scenarios. The long-battery-life scenarios include web browsing scenarios, local video playing scenarios, and low-power software running scenarios; the high-performance scenarios include high-power software running scenarios, high-power game running scenarios, and multiple software running scenarios at the same time.

3. The method for controlling power consumption of an electronic device according to claim 2, characterized in that: The control method corresponding to the real-time working scenario is used to control the power consumption of the electronic device, including: If the real-time working scenario is a long-life scenario, a first control method is used to reduce the power consumption of the electronic device; if the real-time working scenario is a high-performance scenario, a second control method is used to increase the power consumption of the electronic device; The first control method includes reminding the user to turn off the LED light effect and the touchpad, reducing the CPU overclocking power and overclocking time, limiting the maximum power consumption of the CPU, controlling the CPU to work at the lowest rated power, controlling the charging chip to enter a sleep mode, and reducing the fan speed. One or more; The second control method includes one or more of increasing the CPU overclocking power and overclocking time, increasing the CPU maximum power consumption, relaxing the temperature limit of reducing the frequency after the CPU is overheated, and increasing the fan speed.

4. The method for controlling power consumption of an electronic device according to any one of claims 1 to 3, characterized in that: The machine learning method includes at least one of a conditional random field algorithm, a maximum entropy model algorithm, a bagging algorithm, a boosting algorithm, a neural network algorithm, a logistic regression algorithm, and a support vector machine algorithm.

5. The method for controlling power consumption of an electronic device according to any one of claims 1 to 3, characterized in that: The real-time working scenario of the electronic device identified by the machine learning method includes: Obtain historical location information, historical time information, historical software running status information, and corresponding user operation instructions of the electronic device in different working scenarios, and establish a second training set and a second test set; Based on the second training set and the second test set, a second target computing model for identifying the real-time working scene of the electronic device is established by using a machine learning method; Identify the current location information, current time information, current software running status information and current operation instructions of the electronic device, and call the second target computing model to generate a real-time working scene of the electronic device.

6. A power consumption control device for an electronic device, characterized in that: Including scene recognition module and control module, The scene recognition module is used to recognize the real-time working scene of the electronic device using a machine learning method; The control module is used to control the power consumption of the electronic device by adopting the control method corresponding to the real-time working scenario; The scene recognition module includes a first machine learning unit, a first storage unit, a first temperature acquisition unit, a second temperature acquisition unit and a first recognition unit. The first machine learning unit is used to obtain historical temperature data of multiple preset positions on the mainboard under different ambient temperature ranges and different working scenarios, establish a corresponding first training set and a first test set, and based on the first training set and the first test set, use a machine learning method to establish a first target calculation model corresponding to each ambient temperature range, and the first target calculation model is used to identify the real-time working scenario of the electronic device; The first storage unit is used to store a first target calculation model corresponding to each ambient temperature range; The first temperature collection unit is used to collect real-time temperature data of multiple preset positions on the mainboard; The second temperature collection unit is used to collect real-time ambient temperature; The first recognition unit is used to call the corresponding first target calculation model according to the ambient temperature range of the real-time ambient temperature, and generate a real-time working scene of the electronic device according to the real-time temperature data.

7. A computer-readable storage medium, characterized in that: A computer program is stored, and when the computer program is executed by a processor, the power consumption control method of the electronic device according to any one of claims 1 to 5 is implemented.

8. A terminal, characterized in that: It comprises the computer-readable storage medium and a processor as described in claim 7, and when the processor executes the computer program on the computer-readable storage medium, it implements the steps of the power consumption control method of the electronic device as described in any one of claims 1-5.