Standby power consumption optimization method and device based on mobile operating system

By dynamically managing wake-up lock integrals based on LightGBM and Q-Learning, the problem of energy waste in the standby state of mobile terminal devices is solved, achieving scientific and personalized standby power consumption optimization and maintaining user experience.

CN121300607AActive Publication Date: 2026-01-09KYLIN CORP
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202511862010.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-11
Publication Date
2026-01-09
Estimated Expiration
2045-12-11

AI Technical Summary

Technical Problem

Existing mobile devices still consume a significant amount of power even in standby mode, resulting in shorter usage time, and forced sleep mode may negatively impact user experience.

Method used

By collecting user behavior data and device status data, and using the LightGBM model and Q-Learning reinforcement learning algorithm, wake-up lock integrals are dynamically managed to optimize standby power consumption.

Benefits of technology

It achieves standby power optimization that maintains a good user experience while saving power consumption, avoiding the rigidity of relying solely on manual rules.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121300607A_ABST
    Figure CN121300607A_ABST
Patent Text Reader

Abstract

The invention provides a standby power consumption optimization method and device based on a mobile operating system, and belongs to the technical field of mobile operating systems. The standby power consumption optimization method comprises the steps that user behavior data, application program running data and equipment state data are collected; converting the feature vectors into numerical feature vectors; training a dependency degree scoring model, and outputting 0-100 dependency degree scores of each application program; and according to the dependency score, the wake-up lock integral of each application program is calculated, whether the execution duration of the wake-up is supported or not is judged, if the execution duration is not enough, the wake-up lock is immediately released and the integral is reset, if the execution duration is enough, the wake-up of the application program is normally executed, and the remaining wake-up lock integral is used for the next wake-up in the screen turn-off time. And the integral is reset. The use of the wake-up lock is intelligently managed according to the operation behavior habits of the user and the electric quantity of the equipment, the standby power consumption is optimized, the power consumption is saved, and the user experience is considered.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of mobile operating system technology, specifically relating to a standby power consumption optimization method and apparatus based on a mobile operating system. Background Technology

[0002] With the widespread use of mobile terminal devices such as smartphones and tablets, they are receiving increasing attention and popularity from users. When using these mobile terminal devices, the duration of use has become an important part of the user experience and is attracting more and more attention from users.

[0003] In the prior art, since the touch screen of the mobile terminal device consumes a large amount of energy, when the user does not need to use the mobile terminal device, they often use the standby function to turn off the touch screen of the mobile terminal device, so that the mobile terminal device is in a screen-off standby state. When the user needs to use the mobile terminal device, they use the wake-up function to start the touch screen of the mobile terminal device in the standby state to work normally, so as to save the power consumption of the mobile terminal device and extend the usage time of the mobile terminal device.

[0004] However, in existing standby solutions, even when the touchscreen is off, the mobile device remains active in standby mode, consuming significant amounts of power and failing to effectively extend its usage time. This is because installed applications can request wake-up locks to prevent background processes from going to sleep, leading to wasted energy and unnecessary power consumption. However, forcing all applications to go to sleep could also negatively impact user experience. Summary of the Invention

[0005] The purpose of this invention is to provide a standby power consumption optimization method and device based on a mobile operating system, which intelligently manages the use of wake-up lock according to user operating habits and device power consumption, thereby optimizing standby power consumption.

[0006] To achieve the above objectives, the technical solution of the present invention is as follows: A standby power consumption optimization method based on a mobile operating system includes: S1. Collect user behavior data, application running data, and device status data of the mobile operating system of the mobile terminal device under the same historical timeline; S2. Convert the collected data into numerical feature vectors; S3. The numerical feature vector is used to train the dependency scoring model, and the dependency score of each application is output from 0 to 100. S4. Calculate the wake-up lock score for each application based on the dependency score. Wake-up lock score = dependency score × 10. When an application requests a wake-up lock after the user turns off the screen, determine whether the application's wake-up lock score is sufficient to support the execution duration of the current wake-up. If it is insufficient, immediately release the wake-up lock and clear the score. If it is sufficient, execute the application's current wake-up normally and use the remaining wake-up lock score for the next wake-up within the current screen-off time until the score is cleared. After the score is cleared, the application cannot request a wake-up lock again within the current screen-off time.

[0007] Furthermore, in step S1, user behavior data includes application launch / exit time, notification clicks, manual cleanup, screen on and screen off events; application running data includes foreground / background dwell time, wake lock application and release records; device status data includes battery level, charging status, network type, and device temperature.

[0008] Furthermore, step S2 includes: S201. Data cleaning and correction: processing missing and outlier values ​​in the collected data; S202, Feature extraction: Extracting statistical features from user behavior data, application running data, and device status data; S203. Feature standardization: Map all feature values ​​to the [0,1] interval; S204. Feature vector generation: The feature vector is constructed using all the features of each application within a statistical period.

[0009] Furthermore, the dependency scoring model described in step S3 adopts the LightGBM model and is set on the server side; the server side is trained with feature vectors converted from the collected large sample data, and the model is fine-tuned by collecting data from mobile terminal devices once in each statistical period.

[0010] Furthermore, step S4 specifically includes: S401. Calculate the application's wake-up lock score N, where N = dependency score × 10; S402. Calculate the maximum time window Tmax corresponding to the wake-up lock integral N when the screen is off; Tmax=N×M; where M is a global proportional coefficient, and different values ​​of M are set when the current battery level of the mobile terminal device is greater than or equal to the judgment threshold and when the battery level is less than the judgment threshold. S403. Calculate Tmax-Trun, where Trun is the execution duration of the application after this wake-up. S404. If Tmax - Trun is less than or equal to 0, immediately release the wake-up lock and clear the integral N; if Tmax - Trun is greater than 0, execute the application's wake-up normally and calculate the remaining integral N. 剩余 N 剩余 =N-(Tmax-Trun) / M, and use the remaining integral for the next wake-up during this screen-off period.

[0011] Furthermore, in step S3, while training the dependency scoring model, an auxiliary model is also trained. The auxiliary model adopts the Q-Learning reinforcement learning algorithm, with the application's dependency score, the mobile terminal device's battery status, screen status, and the application's wake-up lock score as the state set, and adjusting the behavior weight as the action. Rewards and penalties are calculated through standby time improvement and abnormal wake-up counts to form a dynamic optimization mechanism for the wake-up lock score; wherein the wake-up lock score N = dependency score × 10.

[0012] Furthermore, the dynamic optimization mechanism calculates the application's dynamic points. When the user turns off the screen and the application requests a wake-up lock, the dynamic points of the application are used to determine whether they are sufficient to support the execution duration of the current wake-up. If not, the wake-up lock is released immediately and the dynamic points are cleared to zero. If they are sufficient, the application's current wake-up is executed normally, and the remaining dynamic points are used for the next wake-up within the current screen-off time, until the dynamic points are cleared to zero. After the dynamic points are cleared to zero, the application cannot request a wake-up lock again within the current screen-off time.

[0013] Preferred, including: S411. Calculate the application's wake-up lock score N, N = dependency score × 10; then calculate the dynamic score N′, N′ = N + (behavior weight × scenario coefficient); where the behavior weight is obtained through the auxiliary model; when the mobile terminal device's battery is below the low battery threshold, set the scenario coefficient to reduce the behavior weight; when the mobile terminal device is charging, set the scenario coefficient to increase the behavior weight; when the mobile terminal device's battery is above the high battery threshold, the score is frozen, and the application does not consume points when requesting a wake-up lock. S412. Calculate the maximum time window Tmax corresponding to the dynamic integral N′ when the screen is off; Tmax=N′×M; where M is the global scaling factor, and different values ​​of M are set when the current battery level of the mobile terminal device is greater than or equal to the judgment threshold and when the battery level is less than the judgment threshold. S413. Calculate Tmax-Trun, where Trun is the execution duration of the application after this wake-up. S404. If Tmax - Trun is less than or equal to 0, immediately release the wake-up lock and clear the dynamic integral N′; if Tmax - Trun is greater than 0, execute the application's wake-up normally and calculate the remaining integral N.剩余 N 剩余 =N′-(Tmax-Trun) / M, and use the remaining integral for the next wake-up during this screen-off period.

[0014] Furthermore, the Q-table of the auxiliary model Q-Learning reinforcement learning algorithm is stored in the form of a sparse matrix, and data is automatically collected and updated when the mobile terminal device is charging, using Wi-Fi, and with the CPU idle.

[0015] In another aspect, the present invention provides a standby power consumption optimization device based on a mobile operating system, comprising: Data Acquisition Layer: Collects user behavior data, application running data, and device status data of mobile terminal devices' mobile operating systems within the same historical timeline; Feature engineering layer: transforms the collected data into numerical feature vectors; Model training layer: The numerical feature vectors are used to train the dependency scoring model, which outputs a dependency score of 0-100 for each application. Inference Application Layer: Calculate the wake-up lock score for each application based on the dependency score. Wake-up lock score = dependency score × 10. When an application requests a wake-up lock after the user turns off the screen, determine whether the application's wake-up lock score is sufficient to support the execution duration of the current wake-up. If not, immediately release the wake-up lock and clear the score. If sufficient, execute the application's current wake-up normally and use the remaining wake-up lock score for the next wake-up within the current screen-off time, until the score is cleared to zero. After the score is cleared to zero, the application cannot request a wake-up lock again within the current screen-off time.

[0016] Compared with the prior art, the present invention has the following beneficial effects: This invention introduces intelligent algorithms to statistically analyze and model user behavior when using applications, and combines machine learning algorithms to automatically and dynamically generate an points system. The application points result drives the duration control of the wake-up lock when the screen is off, making the wake-up lock management strategy more scientific, dynamic and personalized, in line with the actual usage patterns of users. While saving power, it maintains a good user experience and realizes an intelligent standby power consumption optimization scheme, avoiding the rigidity of simply relying on manual rules. Attached Figure Description

[0017] Figure 1 This is a flowchart illustrating Embodiment 1 of the present invention; Figure 2 This is a flowchart illustrating Embodiment 2 of the present invention; Figure 3 This is a schematic diagram of the structure of Embodiment 3 of the present invention. Detailed Implementation

[0018] It should be noted that, unless otherwise specified, the embodiments and features described in the present invention can be combined with each other.

[0019] The present invention will now be described in detail with reference to specific embodiments and accompanying drawings.

[0020] Example 1: like Figure 1 As shown, the standby power consumption optimization method based on a mobile operating system proposed in Embodiment 1 includes: S1. Collect user behavior data, application running data, and device status data of the mobile operating system of the mobile terminal device under the same historical timeline. This step collects three types of core information data through the mobile operating system hooks and status sensors of the mobile terminal device: User behavior data: application launch / exit time, notification clicks, manual cleanup, screen on and screen off events; Application runtime data: foreground / background dwell time, wake lock request and release records; Device status data: battery level, charging status, network type, and device temperature.

[0021] For example, in this step, data collection adopts a strategy of local caching and batch uploading. Logs are first written to a circular buffer (with a preset data storage capacity; for example, the circular buffer can store 1000 data entries). When the mobile terminal device is in charging + WiFi mode, or when the buffer's cache exceeds 80%, the data in the circular buffer is transmitted to the server in batches. If the collected data consists of high-frequency behavioral events, sampling can be performed at certain intervals, such as 5 seconds. Low-frequency behavioral events are recorded in full to balance power consumption and data integrity.

[0022] S2. Convert the collected data into numerical feature vectors.

[0023] The server transforms the collected raw data into numerical feature vectors that can be used for model training to reflect user behavior patterns, device status, and power consumption characteristics. The transformation process includes four steps: feature extraction, data cleaning, standardization, and feature vector generation, as detailed below: 1. Data cleaning and correction: This step mainly deals with missing and outlier values ​​in the collected raw data.

[0024] Missing value handling: For missing points in the time series, the mean of the two preceding and following points is used to fill them; non-continuous terms are set to zero.

[0025] Outlier detection: Use the 3σ principle to correct outliers that are outside the normal range.

[0026] 2. Feature extraction: Statistical features are extracted from three types of data: user actions, application operation, and device status. An example is shown below:

[0027] 3. Feature standardization: To eliminate dimensional differences among different features, Min-Max normalization is used: Map all extracted feature values ​​to the interval [0,1].

[0028] 4. Feature vector generation: The feature vector is constructed using all features of each application within a statistical period (for example, a statistical period can be 7 days): F = [f1, f2, f3, ..., fn], where each of f1, f2, f3, ..., fn corresponds to a statistical feature in the table above, and n is the feature dimension (approximately 10–20 dimensions in this embodiment).

[0029] Example: Fapp=[0.75,0.20,0.15,0.80,0.60,0.40,0.25,0.10]; Fapp represents the feature vector of the app. The final generated feature vector is input into the dependency scoring model described in the following steps for model training. The training objective is to output an application dependency score of 0–100 for subsequent integral calculation.

[0030] S3. The numerical feature vector is used to train the dependency scoring model, and the dependency score of each application is output from 0 to 100.

[0031] The dependency scoring model uses the LightGBM model and is set on the server side; After the server converts the collected raw data of a large sample into feature vectors, it trains the LightGBM model on the feature vectors of each application and outputs an application dependency score of 0-100. Raw data is collected once per statistical period to fine-tune the dependency scoring model.

[0032] S4. Calculate the wake-up lock score for each application based on the dependency score. Wake-up lock score = dependency score × 10. When an application requests a wake-up lock after the user turns off the screen, determine whether the application's wake-up lock score is sufficient to support the execution duration of the current wake-up. If it is insufficient, immediately release the wake-up lock and clear the score. If it is sufficient, execute the application's current wake-up normally and use the remaining wake-up lock score for the next wake-up within the current screen-off time until the score is cleared. After the score is cleared, the application cannot request a wake-up lock again within the current screen-off time.

[0033] This step is the inference application stage after the model has been trained.

[0034] First, calculate the wake-up lock score for each application based on the dependency score: N = Dependency score × 10; N represents the wake-up lock score.

[0035] When the user requests a wake-up lock in the application after the screen is off, calculate the maximum time window Tmax corresponding to the wake-up lock integral N when the screen is off. Tmax = N × M; Where M is a global proportional coefficient, and different M values ​​are set when the current battery level of the mobile terminal device is greater than or equal to the judgment threshold and when the battery level is less than the judgment threshold. For example, in this embodiment, the judgment threshold is set to 50% battery level of the mobile terminal device. When the current battery level is greater than or equal to 50%, M=0.1; when the current battery level is less than 50%, M=0.05.

[0036] Then calculate the remaining integral: N 剩余 =N-(Tmax-Trun) / M; where N 剩余 The remaining points represent the total points, and Trun represents the execution time of the application since this wake-up. If the remaining points are less than or equal to 0, the wake-up lock will be released immediately and the points N will be cleared. If the remaining points are greater than 0, the application will execute the current wake-up normally, and the remaining points will be used for the next wake-up during the current screen-off period, until the points are cleared. (If the screen-off period is long, the app may request the wake-up lock multiple times).

[0037] After the points are cleared, the application cannot request a wake-up lock during the current screen-off period. This step S4 will be executed again during the next screen-off period after the screen ends.

[0038] Taking a certain application APP as an example, if the dependency score is inferred to be 7.5 based on the model in steps S1-S3, the battery level is 60% when the screen is off.

[0039] The wake-up lock integral N = 7.5 × 10 = 75; The coefficient M = 0.1, and the maximum time window Tmax = 75×0.1 = 7.5 seconds; Calculate Tmax - Trun, where Trun is the execution duration after the application is woken up this time; If the actual execution time after waking up is 30 seconds and Trun > Tmax, immediately release the wake lock and clear the integral; If the actual execution time after waking up is 5 seconds and Trun < Tmax, then Calculate the remaining integral and save it, N 剩余 = 75 - (7.5 - 5) / 0.1 = 50, and store these 50 integrals as the remaining integrals for the next wake-up of this APP during the current screen-off time.

[0040] In this embodiment, a black and white list of application programs can also be set. Application programs added to the blacklist are not allowed to set wake locks and are all forced to be non-wakeable; application programs added to the white list are not restricted by this method when using wake locks.

[0041] In this embodiment, by introducing an intelligent behavior statistics and analysis mechanism and combining machine learning algorithms to automatically generate an integral system, the management of wake locks is made scientific, dynamic, and personalized. This solution intelligently manages sleep locks, which not only ensures power consumption savings but also takes care of the user experience and avoids the rigid problems of simply relying on artificial rules.

[0042] Embodiment 2: This embodiment is a further optimization based on the method described in Embodiment 1, adding a dynamic optimization mechanism for wake lock integrals to achieve further optimization of wake lock management.

[0043] In the method of this embodiment, steps S1 and S2 are the same as those in Embodiment 1, and steps S3 and S4 are optimized to steps S3' and S4', as Figure 2 shown, including: S3'. Train the numerical feature vector dependency scoring model to output a dependency score of 0 - 100 for each application program; at the same time, train an auxiliary model to form a dynamic optimization mechanism for wake lock integrals.

[0044] The dependency scoring model uses the LightGBM model and is set on the server side; After the server side converts all the collected large samples of raw data into feature vectors, it inputs the feature vectors of each application program into the LightGBM model for training and outputs an application dependency score of 0 - 100; Collect raw data once per statistical cycle and fine-tune the dependency scoring model.

[0045] The auxiliary model employs the Q-Learning reinforcement learning algorithm, using the application's dependency score, the mobile terminal device's battery status, screen status, and the application's wake-up lock score as the state set. Adjusting behavioral weights is the action, and rewards and penalties are calculated based on improvements in standby time and the number of abnormal wake-ups. The wake-up lock score is calculated by multiplying the dependency score by 10.

[0046] After training, the model is converted to TensorFlow Lite format for deployment. The Q-table of the Q-Learning reinforcement learning algorithm is stored in the form of a sparse matrix. When the mobile terminal device is charging, using Wi-Fi, and with the CPU idle, data is automatically collected and uploaded to the server for model updates.

[0047] S4' Calculate the application's dynamic points through the dynamic optimization mechanism. When the user turns off the screen and the application requests a wake-up lock, determine whether the application's dynamic points are sufficient to support the execution duration of this wake-up. If not, immediately release the wake-up lock and clear the dynamic points. If sufficient, execute the application's wake-up normally and use the remaining dynamic points for the next wake-up within the current screen-off time until the dynamic points are cleared. After the dynamic points are cleared, the application cannot request a wake-up lock again within the current screen-off time.

[0048] This step is the inference application stage after the dependency scoring model and auxiliary model have been trained.

[0049] First, calculate the wake-up lock score for each application based on the dependency score: N = Dependency score × 10; N represents the wake-up lock score.

[0050] Then calculate the dynamic integral N′, N′=N+(behavior weight × scene coefficient); where the behavior weight is obtained through an auxiliary model; when the mobile terminal device's battery level is below the low battery threshold, a scene coefficient is set to reduce the behavior weight; when the mobile terminal device is charging, a scene coefficient is set to increase the behavior weight; when the mobile terminal device's battery level is above the high battery threshold, the integral is frozen, and no integral is consumed when the application requests a wake-up lock; for example, in this embodiment, the scene coefficient is set to 0.5 when the mobile terminal device's battery level is below 20%, thereby halving the behavior weight; the scene coefficient is set to 1.2 when the mobile terminal device is charging, thereby increasing the behavior weight by 20%; when the mobile terminal device's battery level is above 80%, the integral is frozen, and no integral is consumed when the application requests a wake-up lock after freezing.

[0051] When the user requests a wake-up lock in the application after the screen is off, calculate the maximum time window Tmax corresponding to the wake-up lock integral N when the screen is off. Tmax = N′ × M; where M is a global proportional coefficient. Different M values ​​are set when the current battery level of the mobile terminal device is greater than or equal to the judgment threshold and when the battery level is less than the judgment threshold. For example, in this embodiment, the judgment threshold is set to 50% battery level of the mobile terminal device. When the current battery level is greater than or equal to 50%, M = 0.1; when the current battery level is less than 50%, M = 0.05.

[0052] Then calculate Tmax-Trun, where Trun is the execution duration of the application after this wake-up; If Tmax - Trun is less than or equal to 0, the wake-up lock is immediately released and the dynamic integral N′ is cleared; if Tmax - Trun is greater than 0, the application's wake-up process is executed normally, and the remaining integral N is calculated. 剩余 N 剩余 =N′-(Tmax-Trun) / M, and use the remaining points for the next wake-up during this screen-off period, until the points are cleared. (If the screen-off period is long, the app may request the wake-up lock multiple times).

[0053] After the points are cleared, the application cannot request a wake-up lock during the current screen-off period. This step S4' will be executed again during the next screen-off period after the screen-off ends.

[0054] This embodiment further establishes a dynamic optimization mechanism for wake-up lock integration, making wake-up lock management more scientific, dynamic, and personalized. While saving power, it maintains a good user experience, achieving a more intelligent standby power consumption optimization scheme.

[0055] Example 3: This embodiment proposes a standby power consumption optimization device based on a mobile operating system, such as... Figure 3 As shown, it includes: Data Acquisition Layer: Collects user behavior data, application running data, and device status data of mobile terminal devices' mobile operating systems within the same historical timeline; Feature engineering layer: transforms the collected data into numerical feature vectors; Model training layer: The numerical feature vectors are used to train the dependency scoring model, which outputs a dependency score of 0-100 for each application. Inference Application Layer: Calculate the wake-up lock score for each application based on the dependency score. Wake-up lock score = dependency score × 10. When an application requests a wake-up lock after the user turns off the screen, determine whether the application's wake-up lock score is sufficient to support the execution duration of the current wake-up. If not, immediately release the wake-up lock and clear the score. If sufficient, execute the application's current wake-up normally and use the remaining wake-up lock score for the next wake-up within the current screen-off time, until the score is cleared to zero. After the score is cleared to zero, the application cannot request a wake-up lock again within the current screen-off time.

[0056] In the data acquisition layer, user behavior data includes application launch / exit time, notification clicks, manual cleanup, and screen-on and screen-off events; application running data includes foreground / background dwell time and wake-lock request and release records; device status data includes battery level, charging status, network type, and device temperature.

[0057] The feature engineering layer includes: Data cleaning and correction module: processes missing and outlier values ​​in the collected data; Feature extraction module: Extracts statistical features from user behavior data, application runtime data, and device status data; Feature standardization module: Maps all feature values ​​to the [0,1] interval; Feature vector generation module: Constructs a feature vector from all features of each application within a statistical period.

[0058] The dependency scoring model in the model training layer adopts the LightGBM model and is set on the server side. The server side is trained with feature vectors transformed from the collected large sample data, and the model is fine-tuned by collecting data from mobile terminal devices once every statistical period.

[0059] The inference application layer includes: Indicator Calculation Module: Calculates the application's wake-up lock score N, where N = dependency score × 10; Time window module: Calculates the maximum time window Tmax corresponding to the wake-up lock integral N when the screen is off; Tmax=N×M; where M is a global proportional coefficient, and different values ​​of M are set when the current battery level of the mobile terminal device is greater than or equal to the judgment threshold and when the battery level is less than the judgment threshold; Calculation module: Calculates Tmax - Trun, where Trun is the execution duration of the application after this wake-up. The decision module determines whether to immediately release the wake-up lock and reset the integral N if Tmax - Trun is less than or equal to 0. If Tmax - Trun is greater than 0, the application will execute the current wake-up normally and the remaining integral N will be calculated. 剩余 N 剩余 =N-(Tmax-Trun) / M, and use the remaining integral for the next wake-up during this screen-off period.

[0060] Optimization plan: In the model training layer, an auxiliary model is trained simultaneously with the dependency scoring model. The auxiliary model uses the Q-Learning reinforcement learning algorithm, with the application's dependency score, the mobile terminal device's battery status, screen status, and the application's wake-up lock score as the state set, and adjusting the behavior weights as actions. Rewards and penalties are calculated by increasing standby time and the number of abnormal wake-ups, forming a dynamic optimization mechanism for the wake-up lock score; where the wake-up lock score N = dependency score × 10.

[0061] The inference application layer calculates the application's dynamic points through the dynamic optimization mechanism. When the user turns off the screen and the application requests a wake-up lock, it determines whether the application's dynamic points are sufficient to support the execution duration of the current wake-up. If not, the wake-up lock is immediately released and the dynamic points are cleared to zero. If they are sufficient, the application's current wake-up is executed normally, and the remaining dynamic points are used for the next wake-up within the current screen-off time, until the dynamic points are cleared to zero. After the dynamic points are cleared to zero, the application cannot request a wake-up lock again within the current screen-off time.

[0062] The inference application layer includes: The points calculation module calculates the application's wake-up lock points N, where N = dependency score × 10; then it calculates the dynamic points N′, where N′ = N + (behavior weight × scenario coefficient); where the behavior weight is obtained through an auxiliary model; when the mobile terminal device's battery level is below the low battery threshold, the scenario coefficient that weakens the behavior weight is set; when the mobile terminal device is charging, the scenario coefficient that increases the behavior weight is set; when the mobile terminal device's battery level is above the high battery threshold, the points are frozen, and no points are consumed when the application requests a wake-up lock. Time window module: Calculates the maximum time window Tmax corresponding to the dynamic integral N′ when the screen is off; Tmax=N′×M; where M is a global scaling factor, and different values ​​of M are set when the current battery level of the mobile terminal device is greater than or equal to the judgment threshold and when the battery level is less than the judgment threshold; Calculation module: Calculates Tmax - Trun, where Trun is the execution duration of the application after this wake-up. The judgment module determines whether to immediately release the wake-up lock and clear the dynamic integral N′ if Tmax - Trun is less than or equal to 0; otherwise, it executes the application's wake-up normally and calculates the remaining integral N. 剩余 N 剩余 =N′-(Tmax-Trun) / M, and use the remaining integral for the next wake-up during this screen-off period.

[0063] Among them, the Q-table of the auxiliary model Q-Learning reinforcement learning algorithm is stored in the form of a sparse matrix, and is automatically updated by collecting data when the mobile terminal device is in a state of charging + Wi-Fi + CPU idle.

[0064] The standby power consumption optimization device based on the mobile operating system proposed in this embodiment can realize the standby power consumption optimization method based on the mobile operating system proposed in Embodiment 1 or 2, and has the same technical effect as Embodiment 1 and 2.

[0065] The above-described embodiments are merely preferred embodiments of the present invention and are only used to help understand the method and core ideas of this application. The scope of protection of the present invention is not limited to the above embodiments, and all technical solutions falling within the scope of the present invention's concept are within the scope of protection of the present invention. It should be noted that for those skilled in the art, any improvements and modifications made without departing from the principles of the present invention should also be considered within the scope of protection of the present invention.

Claims

1. A method for optimizing standby power consumption based on a mobile operating system, characterized in that, include: S1. Collect user behavior data, application running data, and device status data of the mobile operating system of the mobile terminal device under the same historical timeline; S2. Convert the collected data into numerical feature vectors; S3. The numerical feature vector is used to train the dependency scoring model, and the dependency score of each application is output from 0 to 100. S4. Calculate the wake-up lock score for each application based on the dependency score. Wake-up lock score = dependency score × 10. When a user turns off the screen and an application requests a wake-up lock, the system determines whether the application's wake-up lock points are sufficient to support the execution duration of the current wake-up. If not, the wake-up lock is immediately released and the points are cleared to zero. If the points are sufficient, the application's current wake-up is executed normally, and the remaining wake-up lock points are used for the next wake-up within the current screen-off time, until the points are cleared to zero. After the points are cleared to zero, the application cannot request a wake-up lock again within the current screen-off time.

2. The standby power consumption optimization method based on a mobile operating system according to claim 1, characterized in that, In step S1, user behavior data includes application launch / exit time, notification clicks, manual cleanup, screen on and screen off events; application running data includes foreground / background dwell time, wake lock application and release records; device status data includes battery level, charging status, network type, and device temperature.

3. The standby power consumption optimization method based on a mobile operating system according to claim 1, characterized in that, Step S2 includes: S201. Data cleaning and correction: processing missing and outlier values ​​in the collected data; S202, Feature extraction: Extracting statistical features from user behavior data, application running data, and device status data; S203. Feature standardization: Map all feature values ​​to the [0,1] interval. S204. Feature vector generation: The feature vector is constructed using all the features of each application within a statistical period.

4. The standby power consumption optimization method based on a mobile operating system according to claim 1, characterized in that, The dependency scoring model described in step S3 adopts the LightGBM model and is set on the server side. The server side is trained with feature vectors converted from the collected large sample data, and the model is fine-tuned by collecting data from mobile terminal devices once every statistical period.

5. The standby power consumption optimization method based on a mobile operating system according to claim 1, characterized in that, Step S4 specifically includes: S401. Calculate the application's wake-up lock integral N, where N = dependency score × 10; S402. Calculate the maximum time window Tmax corresponding to the wake-up lock integral N when the screen is off; Tmax=N×M; where M is a global proportional coefficient, and different values ​​of M are set when the current battery level of the mobile terminal device is greater than or equal to the judgment threshold and when the battery level is less than the judgment threshold. S403. Calculate Tmax-Trun, where Trun is the execution duration of the application after this wake-up. S404. If Tmax - Trun is less than or equal to 0, immediately release the wake-up lock and clear the integral N; if Tmax - Trun is greater than 0, execute the application's wake-up normally and calculate the remaining integral N. 剩余 N 剩余 =N-(Tmax-Trun) / M, and use the remaining integral for the next wake-up during this screen-off period.

6. The standby power consumption optimization method based on a mobile operating system according to claim 1, characterized in that, In step S3, while training the dependency scoring model, an auxiliary model is also trained. The auxiliary model adopts the Q-Learning reinforcement learning algorithm, with the application's dependency score, the mobile terminal device's battery status, screen status, and the application's wake-up lock score as the state set, and adjusting the behavior weight as the action. Rewards and penalties are calculated by increasing standby time and the number of abnormal wake-ups, forming a dynamic optimization mechanism for the wake-up lock score; where the wake-up lock score N = dependency score × 10.

7. The standby power consumption optimization method based on a mobile operating system according to claim 6, characterized in that, The dynamic optimization mechanism calculates the application's dynamic points. When the application requests a wake-up lock after the user turns off the screen, it is determined whether the application's dynamic points are sufficient to support the execution duration of the current wake-up. If not, the wake-up lock is immediately released and the dynamic points are cleared to zero. If they are sufficient, the application's current wake-up is executed normally, and the remaining dynamic points are used for the next wake-up within the current screen-off time, until the dynamic points are cleared to zero. After the dynamic points are cleared to zero, the application cannot request a wake-up lock again within the current screen-off time.

8. The standby power consumption optimization method based on a mobile operating system according to claim 7, characterized in that, include: S411. Calculate the application's wake-up lock integral N, where N = dependency score × 10; Then calculate the dynamic integral N′, N′=N+(behavior weight × scene coefficient); The behavior weights are obtained through an auxiliary model; when the battery level of the mobile terminal device is below the low battery threshold, a scenario coefficient is set to reduce the behavior weight; when the mobile terminal device is charging, a scenario coefficient is set to increase the behavior weight; when the battery level of the mobile terminal device is above the high battery threshold, the points are frozen; and no points are consumed when the application requests a wake-up lock. S412. Calculate the maximum time window Tmax corresponding to the dynamic integral N′ when the screen is off. Tmax = N′ × M; Where M is the global proportional coefficient, and different M values ​​are set when the current battery level of the mobile terminal device is greater than or equal to the judgment threshold and when the battery level is less than the judgment threshold; S413. Calculate Tmax-Trun, where Trun is the execution duration of the application after this wake-up. S404. If Tmax - Trun is less than or equal to 0, immediately release the wake-up lock and clear the dynamic integral N′; if Tmax - Trun is greater than 0, execute the application's wake-up normally and calculate the remaining integral N. 剩余 N 剩余 =N′-(Tmax-Trun) / M, and use the remaining integral for the next wake-up during this screen-off period.

9. The standby power consumption optimization method based on a mobile operating system according to claim 6, characterized in that, The Q-table of the auxiliary model Q-Learning reinforcement learning algorithm is stored in sparse matrix form and is automatically updated when the mobile terminal device is charging, using Wi-Fi, and with the CPU idle.

10. A standby power consumption optimization device based on a mobile operating system, characterized in that, include: Data Acquisition Layer: Collects user behavior data, application running data, and device status data of mobile terminal devices' mobile operating systems within the same historical timeline; Feature engineering layer: transforms the collected data into numerical feature vectors; Model training layer: The numerical feature vectors are used to train the dependency scoring model, which outputs a dependency score of 0-100 for each application. Inference Application Layer: Calculate the wake-up lock score for each application based on the dependency score. Wake-up lock score = dependency score × 10. When an application requests a wake-up lock after the user turns off the screen, determine whether the application's wake-up lock score is sufficient to support the execution duration of the current wake-up. If not, immediately release the wake-up lock and clear the score. If sufficient, execute the application's current wake-up normally and use the remaining wake-up lock score for the next wake-up within the current screen-off time, until the score is cleared to zero. After the score is cleared to zero, the application cannot request a wake-up lock again within the current screen-off time.

Citation Information

Patent Citations

  • Mobile terminal and method for putting same into sleeping state

    CN103402027A

  • Mobile terminal and wake lock control method and system thereof

    CN105183137A

  • Mobile terminal power consumption optimization method and device based on user behavior analysis

    CN110167121A

  • Wake-up performance optimization method and device based on use habits of user

    CN111176743A

  • Dynamic battery power consumption optimization method based on machine learning

    CN120224352A