TWI717878B - Battery power prediction method and computer program product thereof - Google Patents

Battery power prediction method and computer program product thereof Download PDF

Info

Publication number
TWI717878B
TWI717878B TW108138396A TW108138396A TWI717878B TW I717878 B TWI717878 B TW I717878B TW 108138396 A TW108138396 A TW 108138396A TW 108138396 A TW108138396 A TW 108138396A TW I717878 B TWI717878 B TW I717878B
Authority
TW
Taiwan
Prior art keywords
battery power
power consumption
per unit
unit time
battery
Prior art date
Application number
TW108138396A
Other languages
Chinese (zh)
Other versions
TW202117352A (en
Inventor
陳冠儒
陳良其
Original Assignee
宏碁股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 宏碁股份有限公司 filed Critical 宏碁股份有限公司
Priority to TW108138396A priority Critical patent/TWI717878B/en
Application granted granted Critical
Publication of TWI717878B publication Critical patent/TWI717878B/en
Publication of TW202117352A publication Critical patent/TW202117352A/en

Links

Images

Landscapes

  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Power Sources (AREA)
  • Tests Of Electric Status Of Batteries (AREA)

Abstract

A method for predicting battery power, suitable for a carriable device, comprising: detecting one or more applications currently executing on the mobile device and obtaining names of the one or more applications; inputting the names of the one or more applications to a battery power prediction model to calculate a battery power drop value per unit time, wherein the battery power prediction model is trained to store an equivalent power consumption weight corresponding to the one or more applications; the battery power prediction model correspondingly finds the equivalent power consumption weight of the one or more applications according to different names of the one or more applications that are input; and determining whether to issue a battery warning according to the battery power drop value per unit time.

Description

電池電量預測的方法及其電腦程式產品Method for predicting battery power and its computer program product

本發明係有關於一種電池電量預測的方法,特別是有關於一種適用於可攜式裝置的電池電量預測的方法及其電腦程式產品。The present invention relates to a method for predicting battery power, and more particularly, to a method for predicting battery power for portable devices and computer program products.

現在的電子裝置,僅有顯示目前電量剩多少百分比,但並沒有告訴使用者接下來開啟的程式對電池剩餘電量的影響、或接下來的行程是否有需要接上電源線或攜帶電源線。Current electronic devices only display the current percentage of battery power, but they do not tell the user the impact of the next program on the remaining battery power, or whether it is necessary to connect a power cord or carry a power cord for the next trip.

現有顯示電池剩餘電量的問題在於並沒有參考到使用者在不同時段的使用習慣。更具體的來說,例如,下午三點時顯示電池電量剩下5小時,可是當下午五點半時,使用者正在玩遊戲,產生的程序樹(process tree)中有的程序會啟用圖形處理器(Graphics Processing Unit:GPU),造成耗電量更高,或許下午六點不到裝置就因電池的電量用完而關機。The problem with the current display of the remaining battery power is that it does not refer to the user's usage habits at different times. More specifically, for example, the battery level is displayed for 5 hours at 3 in the afternoon, but when the user is playing a game at 5:30 in the afternoon, some programs in the generated process tree will enable graphics processing The GPU (Graphics Processing Unit) causes higher power consumption. Perhaps the device shuts down before 6 o'clock in the afternoon because the battery runs out.

依據本發明一實施例之電池電量的預測方法,適用於一可攜式裝置,該可攜式裝置利用載於其內的一電池電量預測模型,用以判斷是否發出一電量警示,該預測方法包括:偵測該可攜式裝置上當下正在執行的一至多個應用程式,並取得該一至多個應用程式的名稱;將該一至多個應用程式的名稱輸入至該電池電量預測模型,用以計算一單位時間電池電量下降幅度值;其中, 該電池電量預測模型經訓練儲存有對應於該一至多個應用程式的等效耗電權重;該電池電量預測模型依據所輸入該一至多個應用程式的名稱的不同,而對應地找出該一至多個應用程式的等效耗電權重;依據該單位時間電池電量下降幅度值,判斷是否發出該電量警示。The method for predicting battery power according to an embodiment of the present invention is applicable to a portable device that uses a battery power prediction model carried in it to determine whether to issue a power warning. The prediction method Including: detecting one or more applications currently running on the portable device, and obtaining the names of the one or more applications; inputting the names of the one or more applications into the battery power prediction model for Calculate a value of the decrease in battery power per unit time; wherein the battery power prediction model is trained to store equivalent power consumption weights corresponding to the one or more applications; the battery power prediction model is based on the input of the one or more applications According to the difference of the name, find out the equivalent power consumption weight of the one or more applications accordingly; determine whether to issue the power warning according to the value of the battery power decrease per unit time.

如上述之電池電量的預測方法,更包括:偵測當下的時間點,用以判斷該當下的時間點是否落入一預約事件發生前的一預警時段內;其中,該預約事件發生時的當下,該可攜式裝置會執行該一至多個應用程式;當該當下的時間點有落入該預約事件發生前的該預警時段內時,將該一至多個應用程式的名稱輸入至該電池電量預測模型,預測該預約事件發生時的該單位時間電池電量下降幅度值;依據該單位時間電池電量下降幅度值,判斷是否發出另一電量警示。The method for predicting battery power as described above further includes: detecting the current time point to determine whether the current time point falls within an early warning period before a scheduled event occurs; wherein, the current time when the scheduled event occurs , The portable device will execute the one or more applications; when the current time falls within the warning period before the scheduled event, enter the name of the one or more applications into the battery level The prediction model predicts the battery power decrease value per unit time when the scheduled event occurs; according to the battery power decrease value per unit time, it is judged whether to issue another power warning.

如上述之電池電量的預測方法,其中,該電池電量預測模型的訓練方法,包括:偵測該可攜式裝置上正在執行該一至多個應用程式時的一單位時間總耗電值;調整該一至多個應用程式的等效耗電權重,使得該電池電量預測模型依據該一至多個應用程式的等效耗電權重所計算出的該單位時間電池電量下降幅度值能相近於該單位時間總耗電值;重複調整該一至至多個應用程式的等效耗電權重,直到該單位時間電池電量下降幅度值與該單位時間總耗電值的差值小於等於一閾值;當該單位時間電池電量下降幅度值與該單位時間總耗電值的差值小於等於該閾值,則設定並儲存當下的等效耗電權重為對應於該一至多個應用程式的等效耗電權重。The battery power prediction method described above, wherein the training method of the battery power prediction model includes: detecting a total power consumption value per unit time when the one or more applications are running on the portable device; adjusting the The equivalent power consumption weights of one or more applications, so that the battery power prediction model calculated based on the equivalent power consumption weights of the one or more applications, the battery power decline value per unit time can be close to the total unit time Power consumption value; repeatedly adjust the equivalent power consumption weights of one or more applications until the difference between the battery power decrease value per unit time and the total power consumption value per unit time is less than or equal to a threshold; when the battery power per unit time If the difference between the decrease value and the total power consumption value per unit time is less than or equal to the threshold, the current equivalent power consumption weight is set and stored as the equivalent power consumption weight corresponding to the one or more applications.

如上述之電池電量的預測方法,其中,該電量警示為透過該可攜式裝置的一顯示幕,顯示需要接上一電源線的訊息。Such as the method for predicting battery power, wherein the power warning is a display screen of the portable device to display a message that a power cord needs to be connected.

如上述之電池電量的預測方法,其中,該另一電量警示為透過該可攜式裝置的一顯示幕,顯示需要攜帶一電源線的訊息。Such as the method for predicting battery power, wherein the other power warning is to display a message that a power cord needs to be carried through a display screen of the portable device.

如上述之電池電量的預測方法,其中,該單位時間電池電量下降幅度值為該電池每一小時的耗電量、或該電池每小時下降的電量百分比。The method for predicting battery power as described above, wherein the decrease in battery power per unit time is the power consumption of the battery per hour, or the percentage of power that the battery decreases per hour.

依據本發明一實施例之電腦程式產品,適用於一可攜式裝置,用以判斷是否發出一電量警示,該電腦程式產品經由電腦載入該程式以執行:一第一偵測指令,使該電腦的一處理器偵測該可攜式裝置上當下正在執行的一至多個應用程式,並取得該一至多個應用程式的名稱;一呼叫指令,使該處理器從該電腦的儲存器中取得一電池電量預測模型;其中, 該電池電量預測模型經訓練儲存有對應於該一至多個應用程式的等效耗電權重;該電池電量預測模型依據所輸入該一至多個應用程式的名稱的不同,而對應地找出該一至多個應用程式的等效耗電權重;一第一輸入指令,使該處理器將該一至多個應用程式的名稱輸入至該電池電量預測模型,用以計算一單位時間電池電量下降幅度值;一第一判斷指令,使該處理器依據該單位時間電池電量下降幅度值,判斷是否發出該電量警示。The computer program product according to an embodiment of the present invention is suitable for a portable device to determine whether to issue a power warning. The computer program product is loaded into the program by the computer to execute: a first detection command to make the A processor of the computer detects one or more application programs currently running on the portable device, and obtains the name of the one or more application programs; a call instruction causes the processor to obtain from the computer's memory A battery power prediction model; wherein the battery power prediction model is trained to store equivalent power consumption weights corresponding to the one or more application programs; the battery power prediction model is based on the input name of the one or more application programs , And correspondingly find out the equivalent power consumption weights of the one or more applications; a first input command causes the processor to input the names of the one or more applications into the battery power prediction model to calculate a A value of the decrease in battery power per unit time; a first judgment command enables the processor to determine whether to issue the power warning according to the value of the decrease in battery power per unit time.

如上述之電腦程式產品,更包括:一第二偵測指令,使該處理器偵測當下的時間點,用以判斷該當下的時間點是否落入一預約事件發生前的一預警時段內;其中,該預約事件發生時的當下,該可攜式裝置會執行該一至多個應用程式;一第二輸入指令,當該當下的時間點有落入該預約事件發生前的該預警時段內時,使該處理器將該一至多個應用程式的名稱輸入至該電池電量預測模型,預測該預約事件發生時的該單位時間電池電量下降幅度值;一第二判斷指令,使該處理器依據該單位時間電池電量下降幅度值,判斷是否發出另一電量警示。For example, the above-mentioned computer program product further includes: a second detection command to enable the processor to detect the current time point to determine whether the current time point falls within an early warning period before a scheduled event occurs; Wherein, at the moment when the scheduled event occurs, the portable device will execute the one or more applications; a second input command, when the current point in time falls within the warning period before the scheduled event occurs , Enabling the processor to input the names of the one or more application programs into the battery power prediction model to predict the decrease in battery power per unit time when the scheduled event occurs; a second judgment instruction enables the processor to follow the The value of the battery power decrease per unit time to determine whether another power warning is issued.

如上述之電腦程式產品,其中,對於該電池電量預測模型的訓練,該電腦程式產品經由電腦載入該程式以執行:一耗電偵測指令,使該處理器偵測該可攜式裝置上正在執行該一至多個應用程式時的一單位時間總耗電值;一權重調整指令,使該處理器調整該一至多個應用程式的等效耗電權重,使該電池電量預測模型依據該一至多個應用程式的等效耗電權重所計算出的該單位時間電池電量下降幅度值能相近於該單位時間總耗電值;其中,該處理器重複執行該權重調整指令,直到該單位時間電池電量下降幅度值與該單位時間總耗電值的差值小於等於一閾值;一權重設定指令,當該單位時間電池電量下降幅度值與該單位時間總耗電值的差值小於等於該閾值,使該處理器設定並儲存當下的等效耗電權重為對應於該一至多個應用程式的等效耗電權重。Such as the above-mentioned computer program product, in which, for the training of the battery power prediction model, the computer program product is loaded into the program by the computer to execute: a power consumption detection command to enable the processor to detect the portable device A total power consumption value per unit time when the one or more application programs are running; a weight adjustment instruction causes the processor to adjust the equivalent power consumption weight of the one or more application programs, so that the battery power prediction model is based on the one to The battery power reduction value per unit time calculated by the equivalent power consumption weights of multiple applications can be close to the total power consumption value per unit time; wherein, the processor repeatedly executes the weight adjustment instruction until the unit time battery The difference between the value of battery power decline and the total power consumption per unit time is less than or equal to a threshold; a weight setting command, when the difference between the battery power decline value per unit time and the total power consumption per unit time is less than or equal to the threshold, The processor sets and stores the current equivalent power consumption weight as the equivalent power consumption weight corresponding to the one or more application programs.

如上述之電腦程式產品,其中,該電量警示為透過該可攜式裝置的一顯示幕,顯示需要接上一電源線的訊息。Such as the above-mentioned computer program product, wherein the battery warning is a display screen of the portable device to display a message that a power cord needs to be connected.

如上述之電腦程式產品,其中,該另一電量警示為透過該可攜式裝置的一顯示幕,顯示需要攜帶一電源線的訊息。Such as the above-mentioned computer program product, wherein the other power warning is a display screen of the portable device to display a message that a power cord needs to be carried.

如上述之電腦程式產品,其中,該單位時間電池電量下降幅度值為該電池每一小時的耗電量、或該電池每小時下降的電量百分比。Such as the above-mentioned computer program product, wherein the decrease in battery power per unit time is the power consumption of the battery per hour, or the percentage of power decrease per hour of the battery.

本發明揭露的電池電量的預測方法係適用於一可攜式裝置,該可攜式裝置可包括:個人數位助理(PDA)、智慧型手機(smart phone)、筆記型電腦(laptop)、平板電腦(tablet)…等。第1圖為本揭露實施例之電池電量的預測方法的流程圖。該可攜式裝置利用載於其內的一電池電量預測模型,用以判斷是否發出一電量警示。第1圖為本揭露實施例之電池電量的預測方法的流程圖。如第1圖所示,首先,本發明的電池電量的預測方法偵測該可攜式裝置上當下正在執行的一至多個應用程式,並取得該一至多個應用程式的名稱(步驟S100)。舉例來說,本發明的電池電量的預測方法可偵測使用者在該可攜式裝置上所開啟的程式、所構成的程序樹(process tree)、硬體設定(例如,BIOS設定)、以及使用者的特定程式排程…等,並且同時取得使用者在該可攜式裝置上所開啟程式的名稱。例如,當本發明的電池電量的預測方法偵測到使用者正在執行的程式為程式A、程式B,及程式C,則本發明的電池電量的預測方法同時亦取得正在執行的程式名單為程式A、程式B,以及程式C。The method for predicting battery power disclosed in the present invention is applicable to a portable device. The portable device may include: personal digital assistants (PDA), smart phones, laptops, and tablet computers. (tablet)...etc. Figure 1 is a flowchart of the method for predicting battery power according to an embodiment of the disclosure. The portable device uses a battery power prediction model contained in it to determine whether to issue a power warning. Figure 1 is a flowchart of the method for predicting battery power according to an embodiment of the disclosure. As shown in Figure 1, first, the method for predicting battery power of the present invention detects one or more applications currently running on the portable device, and obtains the names of the one or more applications (step S100). For example, the battery power prediction method of the present invention can detect the programs opened by the user on the portable device, the process tree formed, the hardware settings (for example, BIOS settings), and The user's specific program schedule... etc., and at the same time obtain the name of the program opened by the user on the portable device. For example, when the battery power prediction method of the present invention detects that the program being executed by the user is program A, program B, and program C, the battery power prediction method of the present invention also obtains the list of programs being executed as programs A, program B, and program C.

接著,本發明的電池電量的預測方法將正在執行的該一至多個應用程式的名稱輸入至該電池電量預測模型,用以計算一單位時間電池電量下降幅度值 (步驟102)。值得注意的是,該電池電量預測模型為經過訓練儲存有對應於該一至多個應用程式的等效耗電權重。第2圖為本揭露實施例之電池電量預測模型儲存有等效耗電權重的示意圖。如第2圖所示,本發明所揭露的電池電量預測模型儲存有資料a、資料b、資料c,以及資料d,但本發明不限於此。其中,資料a紀錄了當該可攜式裝置正在執行程式A時,電池電量預測模型將程式A的等效耗電權重(W A)設為1,亦即W A=1。資料b紀錄了當該可攜式裝置同時執行程式A及程式B時,電池電量預測模型將程式A的等效耗電權重(W A)設為0.6,並且將程式B的等效耗電權重(W B)設為0.4,亦即W A=0.6、W B=0.4。換句話說,當該可攜式裝置同時執行程式A及程式B時,程式A的耗電量佔了當下該可攜式裝置的總耗電量的60%,並且程式B的耗電量佔了當下該可攜式裝置的總耗電量的40%。 Next, the battery power prediction method of the present invention inputs the names of the one or more applications being executed into the battery power prediction model to calculate a battery power decline value per unit time (step 102). It is worth noting that the battery power prediction model is trained to store equivalent power consumption weights corresponding to the one or more applications. FIG. 2 is a schematic diagram of the battery power prediction model storing equivalent power consumption weights in the embodiment of the disclosure. As shown in Figure 2, the battery power prediction model disclosed in the present invention stores data a, data b, data c, and data d, but the invention is not limited to this. Among them, data a records that when the portable device is running program A, the battery power prediction model sets the equivalent power consumption weight (W A ) of program A to 1, that is, W A =1. Data b records that when the portable device executes program A and program B at the same time, the battery power prediction model sets the equivalent power consumption weight (W A ) of program A to 0.6 and sets the equivalent power consumption weight of program B (W B ) is set to 0.4, that is, W A =0.6 and W B =0.4. In other words, when the portable device is running both program A and program B, the power consumption of program A accounts for 60% of the current total power consumption of the portable device, and the power consumption of program B accounts for This represents 40% of the current total power consumption of the portable device.

相同地,資料c紀錄了當該可攜式裝置同時執行程式A、程式B、及程式C時,電池電量預測模型將程式A的等效耗電權重(W A)設為0.4,將程式B的等效耗電權重(W B)設為0.4,並且將程式C的等效耗電權重(W C)設為0.2,亦即W A=0.4、W B=0.4、W C=0.2。資料d紀錄了當該可攜式裝置同時執行程式A、程式B、程式C、及程式D時,電池電量預測模型將程式A的等效耗電權重(W A)設為0.3,將程式B的等效耗電權重(W B)設為0.2,將程式C的等效耗電權重(W C)設為0.4,並且將程式D的等效耗電權重(W D)設為0.1,亦即W A=0.3、W B=0.2、W C=0.4、W D=0.1。在一些實施例中,本發明的電池電量的預測方法的電池電量預測模型依據所輸入該一至多個應用程式的名稱的不同,而對應地找出該一至多個應用程式地等效耗電權重。 Similarly, data c records that when the portable device executes program A, program B, and program C at the same time, the battery power prediction model sets the equivalent power consumption weight (W A ) of program A to 0.4, and program B The equivalent power consumption weight (W B ) of is set to 0.4, and the equivalent power consumption weight (W C ) of formula C is set to 0.2, that is, W A =0.4, W B =0.4, and W C =0.2. Data d records that when the portable device executes program A, program B, program C, and program D at the same time, the battery power prediction model sets the equivalent power consumption weight (W A ) of program A to 0.3 and program B Set the equivalent power consumption weight (W B ) of formula C to 0.2, set the equivalent power consumption weight (W C ) of formula C to 0.4, and set the equivalent power consumption weight (W D ) of formula D to 0.1, also That is, W A =0.3, W B =0.2, W C =0.4, W D =0.1. In some embodiments, the battery power prediction model of the battery power prediction method of the present invention correspondingly finds the equivalent power consumption weight of the one or more application programs according to the difference of the input name of the one or more application programs .

舉例來說,如第2圖所示,當該可攜式裝置正在執行程式A、程式B、及程式C時,本發明的電池電量的預測方法將程式A、程式B、及程式C的名稱輸入至電池電量預測模型,使得電池電量預測模型可對應地找到對應於同時執行程式A、程式B、及程式C時所設定的等效耗電權重,亦即W A=0.4、W B=0.4、W C=0.2,並且電池電量預測模型可依據上述等效耗電權重,計算該可攜式裝置正在執行程式A、程式B、及程式C時的該單位時間電池電量下降幅度值。上述的等效耗電權重值僅為例式,不為本發明的限制。在一些實施例中,該單位時間電池電量下降幅度值可為該可攜式裝置的電池每一小時的耗電量、或該電池每小時下降的電量百分比。 For example, as shown in Figure 2, when the portable device is running program A, program B, and program C, the battery power prediction method of the present invention will be the name of program A, program B, and program C Input to the battery power prediction model, so that the battery power prediction model can correspondingly find the equivalent power consumption weights set when the program A, the program B, and the program C are executed at the same time, that is, W A =0.4, W B =0.4 、W C =0.2, and the battery power prediction model can calculate the battery power decrease value per unit time when the portable device is executing program A, program B, and program C based on the above-mentioned equivalent power consumption weight. The above-mentioned equivalent power consumption weight value is only an example, and is not a limitation of the present invention. In some embodiments, the decrease value of the battery power per unit time may be the power consumption of the battery of the portable device per hour, or the percentage of power decrease of the battery per hour.

最後,本發明的電池電量的預測方法依據該單位時間電池電量下降幅度值,判斷是否發出該電量警示(步驟S104)。舉例來說,電池電量預測模型依據該一至多個應用程式的各別的等效耗電權重,而計算出當下的該單位時間電池電量下降幅度值,並且依據該單位時間電池電量下降幅度值,推算該可攜式裝置的剩餘電池電量。當該可攜式裝置的剩餘電池電量低於一閾值,則本發明的電池電量的預測方法則對使用者發出一電量警示。舉例來說,本發明的電池電量的預測方法可透過該可攜式裝置的一顯示幕,顯示『需要接上一電源線』的訊息。Finally, the battery power prediction method of the present invention judges whether to issue the power warning according to the battery power decrease value per unit time (step S104). For example, the battery power prediction model calculates the current battery power decline value per unit time based on the respective equivalent power consumption weights of the one or more applications, and based on the battery power decline value per unit time, Calculate the remaining battery power of the portable device. When the remaining battery power of the portable device is lower than a threshold, the battery power prediction method of the present invention issues a power warning to the user. For example, the battery power prediction method of the present invention can display a message "need to connect a power cord" through a display screen of the portable device.

第3圖為本揭露實施例之等效耗電權重的示意圖。如第3圖所示,範例(1)為將程式A的名稱輸入至電池電量模型300,使得電池電量模型300依據程式A的等效耗電權重W A(即單獨執行程式A時的耗電量,W A=1)計算出一單位時間電池電量下降幅度值302。範例(2)為將程式A及程式B的名稱輸入至電池電量模型300,使得電池電量模型300依據程式A的等效耗電權重W A及程式B的等效耗電權重W B(同時執行程式A及程式B,例如WA=0.6、WB=0.4)計算出該單位時間電池電量下降幅度值302。 FIG. 3 is a schematic diagram of the equivalent power consumption weight of the embodiment of the disclosure. As shown in Figure 3, the example (1) is to input the name of program A into the battery power model 300, so that the battery power model 300 is based on the equivalent power consumption weight W A of the program A (that is, the power consumption when the program A is executed alone) Quantity, W A =1) Calculate the value 302 of the decrease in battery power per unit time. Example (2) is to input the names of program A and program B into the battery power model 300, so that the battery power model 300 is based on the equivalent power consumption weight W A of the program A and the equivalent power consumption weight W B of the program B (simultaneous execution Formula A and Formula B, for example, WA=0.6, WB=0.4) calculate the battery power decrease value 302 per unit time.

範例(3)為將程式A、程式B、及程式C的名稱輸入至電池電量模型300。與上述範例(1)、(2)不同,範例(3)所構成的耗電網路為3層。換句話說,電池電量預測模型300需先依據程式A、程式B、及程式C各別的耗電權重(例如,耗電權重304、306、308)來計算節點A’的單位時間耗電值,以及依據程式C的耗電權重(例如,耗電權重310),計算節點B’的單位時間耗電值。最後,電池電量模型300再依據節點A’的耗電權重(例如,耗電權重312)及節點B’的耗電權重(例如,耗電權重314)來計算出該單位時間電池電量下降幅度值302。在一些實施例中,本發明的電池電量模型300可將範例(3)的計算簡化為依據程式A的等效耗電權重W A、程式B的等效耗電權重W B、及程式C的等效耗電權重WC,來計算出該單位時間電池電量下降幅度值302。換句話說,本發明的電池電量的預測方法將耗電權重304、耗電權重306、耗電權重308、耗電權重310、耗電權重312及耗電權重314全部等效為由程式A所貢獻的等效耗電權重W A、由程式B所貢獻的等效耗電權重W B,以及由程式C所貢獻的等效耗電權重W C,用以減少儲存在電池電量預測模型300中的等效耗電權重的資料量。 Example (3) is to input the names of program A, program B, and program C into the battery power model 300. Different from the above examples (1) and (2), the power consumption network constructed by the example (3) has three layers. In other words, the battery power prediction model 300 needs to first calculate the power consumption value of node A'per unit time according to the power consumption weights of program A, program B, and program C (for example, power consumption weights 304, 306, 308) , And calculate the power consumption value of node B'per unit time according to the power consumption weight of formula C (for example, power consumption weight 310). Finally, the battery power model 300 calculates the magnitude of the battery power decrease per unit time according to the power consumption weight of node A'(for example, power consumption weight 312) and the power consumption weight of node B'(for example, power consumption weight 314) 302. In some embodiments, the battery power model 300 of the present invention can simplify the calculation of Example (3) to be based on the equivalent power consumption weight W A of the formula A , the equivalent power consumption weight W B of the formula B , and the formula C The equivalent power consumption weight WC is used to calculate the decrease range value 302 of the battery power per unit time. In other words, the battery power prediction method of the present invention takes the power consumption weight 304, the power consumption weight 306, the power consumption weight 308, the power consumption weight 310, the power consumption weight 312, and the power consumption weight 314 to be all equivalent to the formula A. The equivalent power consumption weight W A contributed, the equivalent power consumption weight W B contributed by the formula B , and the equivalent power consumption weight W C contributed by the formula C are used to reduce the storage in the battery power prediction model 300 The amount of data for the equivalent power consumption weight.

相同地,範例(4)為將程式A、程式B、程式C、及程式D的名稱輸入至電池電量模型300。與上述範例(3)相同,範例(4)所構成的耗電網路亦為3層。換句話說,電池電量預測模型300需先依據程式A、程式B、程式C、或程式D各別的耗電權重(例如,耗電權重316、318)來計算節點A’的單位時間耗電值,依據程式B、程式C及程式D各別的耗電權重(例如,耗電權重320、322、324)來計算節點B’的單位時間耗電值,並且依據程式D的耗電權重(例如,耗電權重326) 來計算節點C’的單位時間耗電值。最後,電池電量模型300再依據節點A’的耗電權重(例如,耗電權重328)、節點B’的耗電權重(例如,耗電權重330)、及節點C’的耗電權重(例如,耗電權重332)來計算出該單位時間電池電量下降幅度值302。在一些實施例中,如第3圖所示,輸入於電池電量預測模型300的應用程式的個數及其所對應耗電網路層數僅為例示,不為本發明的限制。Similarly, example (4) is to input the names of program A, program B, program C, and program D into the battery power model 300. Similar to the above example (3), the power consumption network constituted by the example (4) is also three layers. In other words, the battery power prediction model 300 needs to first calculate the power consumption per unit time of node A'according to the power consumption weights of program A, program B, program C, or program D (for example, power consumption weights 316, 318) Calculate the power consumption value of node B'per unit time according to the power consumption weights of formula B, formula C and formula D (for example, power consumption weights 320, 322, 324), and according to the power consumption weight of formula D ( For example, the power consumption weight 326) is used to calculate the power consumption value of node C'per unit time. Finally, the battery power model 300 is based on the power consumption weight of node A'(for example, power consumption weight 328), the power consumption weight of node B'(for example, power consumption weight 330), and the power consumption weight of node C'(for example, , The power consumption weight 332) to calculate the battery power decrease value 302 per unit time. In some embodiments, as shown in FIG. 3, the number of applications input to the battery power prediction model 300 and the number of corresponding power consumption network layers are only examples, and not a limitation of the present invention.

第4圖為本揭露實施例之電池電量的預測方法的另一流程圖。本發明的電池電量的預測方法更偵測當下的時間點,用以判斷該當下的時間點是否落入一預約事件發生前的一預警時段內(步驟S400)。該預約事件發生時的當下,該可攜式裝置會執行該一至多個應用程式。舉例來說,依據排程,使用者會在每周三的03:00PM開會,並且在該會議中該可攜式裝置會同時執行程式A、程式B、及程式C。接著,當該當下的時間點有落入該預約事件發生前的該預警時段內時,本發明的電池電量的預測方法將該一至多個應用程式的名稱輸入至該電池電量預測模型,預測該預約事件發生時的該單位時間電池電量下降幅度值302(步驟S402)。例如,本發明的電池電量的預測方法可在周三的02:50PM(即該預警時段為10分鐘)判斷當下的時間點已落入該預約事件(即會議)發生前的該預警時段內,則本發明的電池電量的預測方法可於周三的02:50PM將程式A、程式B、及程式C的名稱輸入於電池電量模型300中。由於電池電量模型300已儲存有同時執行程式A、程式B及程式C時各個程式所對應的等效耗電權重,因此可預測使用者在周三的03:00PM開會同時執行程式A、程式B、及程式C後,該可攜式裝置的該單位時間電池電量下降幅度值。FIG. 4 is another flowchart of the method for predicting battery power according to an embodiment of the disclosure. The battery power prediction method of the present invention further detects the current time point to determine whether the current time point falls within an early warning period before a scheduled event occurs (step S400). At the moment when the scheduled event occurs, the portable device will execute the one or more applications. For example, according to the schedule, the user will have a meeting at 03:00 PM every Wednesday, and the portable device will execute program A, program B, and program C at the same time during the meeting. Then, when the current time point falls within the warning period before the scheduled event occurs, the battery power prediction method of the present invention inputs the names of the one or more applications into the battery power prediction model to predict the The battery power decrease value 302 per unit time when the scheduled event occurs (step S402). For example, the battery power prediction method of the present invention can determine that the current time point has fallen within the early warning period before the scheduled event (ie meeting) occurs at 02:50 PM on Wednesday (that is, the early warning period is 10 minutes), then The battery power prediction method of the present invention can input the names of program A, program B, and program C into the battery power model 300 at 02:50PM on Wednesday. Since the battery power model 300 has stored the equivalent power consumption weights corresponding to each program when executing program A, program B, and program C at the same time, it can be predicted that users will execute program A, program B, After the program C, the battery power decrease value per unit time of the portable device.

最後,本發明的電池電量的預測方法依據該該單位時間電池電量下降幅度值302,判斷是否發出另一電量警示(步驟S404)。在一些實施例中,本發明的電池電量的預測方法可透過該可攜式裝置的一顯示幕,顯示『需要攜帶一電源線』的訊息。Finally, the method for predicting battery power of the present invention determines whether another power warning is issued according to the value 302 of the battery power decrease per unit time (step S404). In some embodiments, the battery power prediction method of the present invention can display a message "need to carry a power cord" through a display screen of the portable device.

第5圖為本揭露實施例之電池電量預測模型的訓練方法的流程圖。如第5圖所示,本發明的電池電量預測模型300的訓練方法首先偵測該可攜式裝置上正在執行該一至多個應用程式時的一單位時間總耗電值(P total)(步驟S500)。舉例來說,本發明的電池電量預測模型300可透過第三方的電源管理應用程式而得到當下正在執行的該一至多個應用程式的該單位時間總耗電值。換句話說,該單位時間總耗電值可視為本發明的電池電量預測模型300所得到的一實際耗電量測值。接著,本發明的電池電量預測模型300的訓練方法調整該一至多個應用程式的等效耗電權重,使得該電池電量預測模型300依據該一至多個應用程式的等效耗電權重所計算出的該單位時間電池電量下降幅度值302能相近於該單位時間總耗電值(P total) (步驟S502)。例如,當電池電量預測模型300正在進行訓練時,電池電量預測模型300偵測到該可攜式裝置正在同時執行程式A、程式B、程式C、及程式D。此時,電池電量預測模型300已得知單獨執行程式A的耗電量P A、單獨執行程式B的耗電量P B、單獨執行程式C的耗電量P C,及單獨執行程式D的耗電量P D。電池電量預測模型300各別調整程式A的等效耗電權重W A、程式B的等效耗電權重W B、程式C的等效耗電權重W C,以及程式D的等效耗電權重W D,使得以下算式得以成立,P A*W A+P B*W B+P C*W C+P D*W D≒P totalFIG. 5 is a flowchart of the training method of the battery power prediction model according to the disclosed embodiment. As shown in Figure 5, the training method of the battery power prediction model 300 of the present invention first detects a total power consumption per unit time (P total ) when the one or more applications are running on the portable device (step S500). For example, the battery power prediction model 300 of the present invention can obtain the total power consumption value per unit time of the one or more applications currently running through a third-party power management application. In other words, the total power consumption value per unit time can be regarded as an actual power consumption measurement value obtained by the battery power prediction model 300 of the present invention. Then, the training method of the battery power prediction model 300 of the present invention adjusts the equivalent power consumption weights of the one or more applications, so that the battery power prediction model 300 calculates the equivalent power consumption weights of the one or more applications The battery power decrease range value 302 per unit time can be close to the total power consumption value per unit time (P total ) (step S502). For example, when the battery power prediction model 300 is training, the battery power prediction model 300 detects that the portable device is executing program A, program B, program C, and program D at the same time. At this time, battery performing predictive model 300 that has a separate power consumption P A program A, program B execution power consumption P B alone, the program execution of the power consumption P C C alone, and a separate execution program D Power consumption P D. The battery power prediction model 300 individually adjusts the equivalent power consumption weight W A of formula A , the equivalent power consumption weight W B of formula B , the equivalent power consumption weight W C of formula C , and the equivalent power consumption weight of formula D W D , so that the following formula is established, P A *W A +P B *W B +P C *W C +P D *W D ≒P total .

再者,本發明的電池電量預測模型300的訓練方法重複調整該一至至多個應用程式的等效耗電權重,直到該單位時間電池電量下降幅度值302與該單位時間總耗電值的差值小於等於一閾值(P th)(步驟S504)。並且,當該單位時間電池電量下降幅度值302與該單位時間總耗電值(P total)的差值小於等於該閾值(P th),則設定並儲存當下的等效耗電權重為對應於該一至多個應用程式的等效耗電權重。舉例來說,當|P total- (P A*W A+P B*W B+P C*W C+P D*W D)|≦P th,則本發明的電池電量模型300將W A設為同時執行程式A、程式B、程式C、及程式D的情況下的程式A的等效耗電權重,將W B設為同時執行程式A、程式B、程式C、及程式D的情況下的程式B的等效耗電權重,將W C設為同時執行程式A、程式B、程式C、及程式D的情況下的程式C的等效耗電權重,以及將W D設為同時執行程式A、程式B、程式C、及程式D的情況下的程式D的等效耗電權重,並將上述W A、W B、W C、W D的值存入該可攜式裝置的儲存器中,例如第2圖的資料d。因此,當本發明的電池電量的預測方法執行第1圖的步驟S100、步驟S102,或第4圖的步驟S400、步驟S402,本發明的電池電量預測模型300可依據所偵測到正在執行的程式A、程式B、程式C及程式D的名稱,找到其對應的等效耗電權重W A、W B、W C、W D,用以計算該單位時間電池電量下降幅度值302。 Furthermore, the training method of the battery power prediction model 300 of the present invention repeatedly adjusts the equivalent power consumption weights of one to a plurality of applications until the difference between the unit time battery power decrease value 302 and the unit time total power consumption value It is less than or equal to a threshold value (P th ) (step S504). And, when the difference between the battery power decrease value per unit time 302 and the total power consumption value per unit time (P total ) is less than or equal to the threshold (P th ), then the current equivalent power consumption weight is set and stored to correspond to The equivalent power consumption weight of the one or more applications. For example, when |P total- (P A *W A +P B *W B +P C *W C +P D *W D )|≦P th , the battery power model 300 of the present invention will be W A Set the equivalent power consumption weight of program A in the case of executing program A, program B, program C, and program D at the same time, and set W B to the case of executing program A, program B, program C, and program D at the same time The equivalent power consumption weight of program B below, set W C to the equivalent power consumption weight of program C when program A, program B, program C, and program D are executed at the same time, and set W D to simultaneously The equivalent power consumption weight of program D when executing program A, program B, program C, and program D, and store the above-mentioned W A , W B , W C , and W D values in the portable device In the memory, for example, data d in Figure 2. Therefore, when the battery power prediction method of the present invention executes step S100 and step S102 in Figure 1, or steps S400 and S402 in Figure 4, the battery power prediction model 300 of the present invention can be based on the detected Find the corresponding equivalent power consumption weights W A , W B , W C , W D for the names of program A, program B, program C, and program D to calculate the battery power decrease value per unit time 302.

本發明更揭露一種電腦程式產品,適用於一可攜式裝置,用以判斷是否發出一電量警示,該電腦程式產品經由電腦載入該程式以執行:一第一偵測指令、一呼叫指令、一第一輸入指令,及一第一判斷指令。該第一偵測指令使該電腦的一處理器執行第1圖的步驟S100。該呼叫指令,使該處理器從該電腦的儲存器中取得一電池電量預測模型。其中,該電池電量預測模型經訓練儲存有對應於該一至多個應用程式的等效耗電權重,並且該電池電量預測模型依據所輸入該一至多個應用程式的名稱的不同,而對應地找出該一至多個應用程式的等效耗電權重,如第2圖及第3圖所示。該第一輸入指令使該處理器執行第1圖的步驟S102。該第一判斷指令使該處理器執行第1圖的步驟S104。The present invention further discloses a computer program product, which is suitable for a portable device to determine whether a power warning is issued. The computer program product is loaded into the program by a computer to execute: a first detection command, a call command, A first input instruction, and a first judgment instruction. The first detection instruction causes a processor of the computer to execute step S100 in FIG. 1. The call instruction causes the processor to obtain a battery power prediction model from the computer's storage. Wherein, the battery power prediction model is trained to store equivalent power consumption weights corresponding to the one or more applications, and the battery power prediction model finds correspondingly according to the input name of the one or more applications. The equivalent power consumption weights of the one or more applications are calculated, as shown in Figures 2 and 3. The first input instruction causes the processor to execute step S102 in FIG. 1. The first judgment instruction causes the processor to execute step S104 in FIG. 1.

依據本發明所揭露的電腦程式產品,更執行:一第二偵測指令、一第二輸入指令  ,以及一第二判斷指令。該第二偵測指令使該處理器執行第4圖的步驟S400。該第二輸入指令使該處理器執行第4圖的步驟S402。該第二判斷指令使該處理器執行第4圖的步驟S404。According to the computer program product disclosed in the present invention, it further executes: a second detection command, a second input command, and a second judgment command. The second detection instruction causes the processor to execute step S400 in FIG. 4. The second input instruction causes the processor to execute step S402 in FIG. 4. The second judgment instruction causes the processor to execute step S404 in FIG. 4.

依據本發明所揭露的電腦程式產品,對於該電池電量預測模型的訓練,該電腦程式產品經由電腦載入該程式以執行:一耗電偵測指令、一權重調整指令,及一權重設定指令。該耗電偵測指令使該處理器執行第5圖的步驟S500。該權重調整指令使該處理器執行第5圖的步驟S502及步驟S504。該權重設定指令使該處理器執行第5圖的步驟S506。本發明的電腦程式產品所執行的步驟或動作係可直接對應本發明所揭露的電池電量的預測方法,本發明所揭露的電池電量的預測方法已於本案說明書第[0017]~[0028]段做詳細描述,故不再贅述。According to the computer program product disclosed in the present invention, for the training of the battery power prediction model, the computer program product loads the program through the computer to execute: a power consumption detection command, a weight adjustment command, and a weight setting command. The power consumption detection instruction causes the processor to execute step S500 in FIG. 5. The weight adjustment instruction causes the processor to execute steps S502 and S504 in FIG. 5. The weight setting instruction causes the processor to execute step S506 in FIG. 5. The steps or actions performed by the computer program product of the present invention can directly correspond to the battery power prediction method disclosed in the present invention. The battery power prediction method disclosed in the present invention is described in paragraphs [0017]~[0028] of the specification of this application. Do a detailed description, so I won't repeat it.

本發明所揭露的電池電量的預測方法及其電腦程式產品可達成的預期效用如下:一、使用者的電子裝置(例如,可攜式裝置)在未接上電源的情況之下,當使用者開啟任何程式時,可根據訓練出的電池電量預測模型進行推理是否要接上電源線;二、不管該電子裝置是否有接上電源線,當使用者某個排程(例如:開會、出差、或上課…等)的開始時間快到的時候,可建議使用者是否有必要攜帶電源線。The expected utility of the battery power prediction method and its computer program products disclosed in the present invention are as follows: 1. When the user’s electronic device (for example, a portable device) is not connected to a power source, the user When opening any program, you can infer whether to connect the power cord based on the trained battery power prediction model; 2. Regardless of whether the electronic device is connected to the power cord, when the user has a certain schedule (for example: meeting, business trip, Or class... etc.) When the start time is approaching, users can be advised whether it is necessary to bring a power cord.

雖然本發明的實施例如上述所描述,我們應該明白上述所呈現的只是範例,而不是限制。依據本實施例上述示範實施例的許多改變是可以在沒有違反發明精神及範圍下被執行。因此,本發明的廣度及範圍不該被上述所描述的實施例所限制。更確切地說,本發明的範圍應該要以以下的申請專利範圍及其相等物來定義。Although the embodiments of the present invention are as described above, we should understand that what is presented above is only an example, not a limitation. According to this embodiment, many changes of the above exemplary embodiment can be implemented without violating the spirit and scope of the invention. Therefore, the breadth and scope of the present invention should not be limited by the embodiments described above. More precisely, the scope of the present invention should be defined by the following patented scope and its equivalents.

S100、S102、S104:步驟 a、b、c、d:資料 A、B、C、D:程式 W A、W B、W C、W D:等效耗電權重 300:電池電量預測模型 302:單位時間電池電量下降幅度值 304、306、308、310:耗電權重 312、314、316、318:耗電權重 320、322、324、326:耗電權重 328、330、332:耗電權重 A’、B’、C’:節點 (1)、(2)、(3):範例 S400、S402、S404:步驟 S500、S502、S504、S506:步驟 S100, S102, S104: steps a, b, c, d: data A, B, C, D: program W A , W B , W C , W D : equivalent power consumption weight 300: battery power prediction model 302: Battery power decrease value per unit time 304, 306, 308, 310: power consumption weight 312, 314, 316, 318: power consumption weight 320, 322, 324, 326: power consumption weight 328, 330, 332: power consumption weight A ', B', C': nodes (1), (2), (3): example S400, S402, S404: steps S500, S502, S504, S506: steps

第1圖為本揭露實施例之電池電量的預測方法的流程圖。 第2圖為本揭露實施例之電池電量預測模型儲存有等效耗電權重的示意圖。 第3圖為本揭露實施例之等效耗電權重的示意圖。 第4圖為本揭露實施例之電池電量的預測方法的另一流程圖。 第5圖為本揭露實施例之電池電量預測模型的訓練方法的流程圖。 Figure 1 is a flowchart of the method for predicting battery power according to an embodiment of the disclosure. FIG. 2 is a schematic diagram of the battery power prediction model storing equivalent power consumption weights in the embodiment of the disclosure. FIG. 3 is a schematic diagram of the equivalent power consumption weight of the embodiment of the disclosure. FIG. 4 is another flowchart of the method for predicting battery power according to an embodiment of the disclosure. FIG. 5 is a flowchart of the training method of the battery power prediction model according to the disclosed embodiment.

S100、S102、S104:步驟 S100, S102, S104: steps

Claims (10)

一種電池電量的預測方法,適用於一可攜式裝置,該可攜式裝置利用載於其內的一電池電量預測模型,用以判斷是否發出一電量警示,該預測方法包括:偵測該可攜式裝置上當下正在執行的一至多個應用程式,並取得該一至多個應用程式的名稱;將該一至多個應用程式的名稱輸入至該電池電量預測模型,用以計算一單位時間電池電量下降幅度值;其中,該電池電量預測模型經訓練儲存有對應於該一至多個應用程式的等效耗電權重;該電池電量預測模型依據所輸入該一至多個應用程式的名稱的不同,而對應地找出該一至多個應用程式的等效耗電權重;依據該單位時間電池電量下降幅度值,判斷是否發出該電量警示;該預測方法更包括:偵測當下的時間點,用以判斷該當下的時間點是否落入一預約事件發生前的一預警時段內;其中,該預約事件發生時的當下,該可攜式裝置會執行該一至多個應用程式;當該當下的時間點有落入該預約事件發生前的該預警時段內時,將該一至多個應用程式的名稱輸入至該電池電量預測模型,預測該預約事件發生時的該單位時間電池電量下降幅度值;依據該單位時間電池電量下降幅度值,判斷是否發出另一電 量警示。 A method for predicting battery power is suitable for a portable device. The portable device uses a battery power prediction model contained in it to determine whether to issue a power warning. The prediction method includes: detecting the battery power One or more applications currently running on the portable device, and obtain the names of the one or more applications; input the names of the one or more applications into the battery power prediction model to calculate the battery power per unit time Decline value; wherein, the battery power prediction model is trained to store equivalent power consumption weights corresponding to the one or more applications; the battery power prediction model is based on the input name of the one or more applications, and Correspondingly find out the equivalent power consumption weights of the one or more applications; determine whether the battery power warning is issued according to the value of the battery power drop per unit time; the prediction method further includes: detecting the current time point to determine Whether the current time falls within an early warning period before a scheduled event occurs; where the portable device will execute the one or more applications at the moment when the scheduled event occurs; when the current time has When it falls within the warning period before the scheduled event, input the names of the one or more applications into the battery power prediction model to predict the battery power decline value per unit time when the scheduled event occurs; according to the unit The value of the time the battery power drops to determine whether to send another power Quantity warning. 如申請專利範圍第1項所述之預測方法,其中,該電池電量預測模型的訓練方法,包括:偵測該可攜式裝置上正在執行該一至多個應用程式時的一單位時間總耗電值;調整該一至多個應用程式的等效耗電權重,使得該電池電量預測模型依據該一至多個應用程式的等效耗電權重所計算出的該單位時間電池電量下降幅度值能相近於該單位時間總耗電值;重複調整該一至至多個應用程式的等效耗電權重,直到該單位時間電池電量下降幅度值與該單位時間總耗電值的差值小於等於一閾值;當該單位時間電池電量下降幅度值與該單位時間總耗電值的差值小於等於該閾值,則設定並儲存當下的等效耗電權重為對應於該一至多個應用程式的等效耗電權重。 Such as the prediction method described in claim 1, wherein the training method of the battery power prediction model includes: detecting the total power consumption per unit time when the one or more applications are running on the portable device Value; adjust the equivalent power consumption weights of the one or more applications, so that the battery power prediction model calculated based on the equivalent power consumption weights of the one or more applications can be similar to The total power consumption value per unit time; repeatedly adjust the equivalent power consumption weights of one to multiple applications until the difference between the battery power decrease value per unit time and the total power consumption value per unit time is less than or equal to a threshold; If the difference between the battery power decrease value per unit time and the total power consumption value per unit time is less than or equal to the threshold, the current equivalent power consumption weight is set and stored as the equivalent power consumption weight corresponding to the one or more applications. 如申請專利範圍第1項所述之預測方法,其中,該電量警示為透過該可攜式裝置的一顯示幕,顯示需要接上一電源線的訊息。 For example, in the prediction method described in item 1 of the scope of patent application, the power warning is a display screen of the portable device to display a message that a power cord needs to be connected. 如申請專利範圍第1項所述之預測方法,其中,該另一電量警示為透過該可攜式裝置的一顯示幕,顯示需要攜帶一電源線的訊息。 For example, in the prediction method described in item 1 of the scope of patent application, the other battery warning is displayed through a display screen of the portable device, indicating that a power cord needs to be carried. 如申請專利範圍第1項所述之預測方法,其中,該單位時間電池電量下降幅度值為該電池每一小時的耗電量、或該電池 每小時下降的電量百分比。 For example, the prediction method described in item 1 of the scope of patent application, wherein the decrease in battery power per unit time is the power consumption of the battery per hour, or the battery The percentage of electricity dropped per hour. 一種電腦程式產品,適用於一可攜式裝置,用以判斷是否發出一電量警示,該電腦程式產品經由電腦載入該程式以執行:一第一偵測指令,使該電腦的一處理器偵測該可攜式裝置上當下正在執行的一至多個應用程式,並取得該一至多個應用程式的名稱;一呼叫指令,使該處理器從該電腦的儲存器中取得一電池電量預測模型;其中,該電池電量預測模型經訓練儲存有對應於該一至多個應用程式的等效耗電權重;該電池電量預測模型依據所輸入該一至多個應用程式的名稱的不同,而對應地找出該一至多個應用程式的等效耗電權重;一第一輸入指令,使該處理器將該一至多個應用程式的名稱輸入至該電池電量預測模型,用以計算一單位時間電池電量下降幅度值;一第一判斷指令,使該處理器依據該單位時間電池電量下降幅度值,判斷是否發出該電量警示;該電腦程式產品執行更包括:一第二偵測指令,使該處理器偵測當下的時間點,用以判斷該當下的時間點是否落入一預約事件發生前的一預警時段內;其中,該預約事件發生時的當下,該可攜式裝置會執行該一至多個應用程式;一第二輸入指令,當該當下的時間點有落入該預約事件發生 前的該預警時段內時,使該處理器將該一至多個應用程式的名稱輸入至該電池電量預測模型,預測該預約事件發生時的該單位時間電池電量下降幅度值;一第二判斷指令,使該處理器依據該單位時間電池電量下降幅度值,判斷是否發出另一電量警示。 A computer program product suitable for a portable device to determine whether to issue a power warning. The computer program product is loaded into the program by a computer to execute: a first detection command to enable a processor of the computer to detect Measure one or more applications currently running on the portable device, and obtain the name of the one or more applications; a call command enables the processor to obtain a battery power prediction model from the computer's memory; Wherein, the battery power prediction model is trained to store the equivalent power consumption weights corresponding to the one or more applications; the battery power prediction model finds out correspondingly according to the input names of the one or more applications The equivalent power consumption weight of the one or more application programs; a first input command causes the processor to input the name of the one or more application programs into the battery power prediction model to calculate the battery power decrease per unit time Value; a first judgment command that enables the processor to determine whether to issue the power warning according to the value of the battery power drop per unit time; the computer program product execution further includes: a second detection command to make the processor detect The current time point is used to determine whether the current time point falls within an early warning period before the occurrence of a scheduled event; wherein, at the moment when the scheduled event occurs, the portable device will execute the one or more applications ; A second input instruction, when the current time point falls into the scheduled event During the previous warning period, the processor is made to input the names of the one or more applications into the battery power prediction model to predict the battery power decline value per unit time when the scheduled event occurs; a second judgment instruction , Enabling the processor to determine whether to issue another battery power warning based on the battery power decrease value per unit time. 如申請專利範圍第6項所述之電腦程式產品,其中,對於該電池電量預測模型的訓練,該電腦程式產品經由電腦載入該程式以執行:一耗電偵測指令,使該處理器偵測該可攜式裝置上正在執行該一至多個應用程式時的一單位時間總耗電值;一權重調整指令,使該處理器調整該一至多個應用程式的等效耗電權重,使該電池電量預測模型依據該一至多個應用程式的等效耗電權重所計算出的該單位時間電池電量下降幅度值能相近於該單位時間總耗電值;其中,該處理器重複執行該權重調整指令,直到該單位時間電池電量下降幅度值與該單位時間總耗電值的差值小於等於一閾值;一權重設定指令,當該單位時間電池電量下降幅度值與該單位時間總耗電值的差值小於等於該閾值,使該處理器設定並儲存當下的等效耗電權重為對應於該一至多個應用程式的等效耗電權重。 For example, the computer program product described in item 6 of the scope of patent application, in which, for the training of the battery power prediction model, the computer program product is loaded into the program by the computer to execute: a power consumption detection command to make the processor detect Measure the total power consumption per unit time when the one or more application programs are running on the portable device; a weight adjustment command causes the processor to adjust the equivalent power consumption weight of the one or more application programs so that the The battery power prediction model calculated based on the equivalent power consumption weights of the one or more applications, the battery power decline value per unit time can be close to the total power consumption per unit time; wherein the processor repeatedly executes the weight adjustment Command until the difference between the battery power decrease value per unit time and the total power consumption value per unit time is less than or equal to a threshold; a weight setting command, when the battery power decrease value per unit time and the total power consumption value per unit time The difference is less than or equal to the threshold, so that the processor sets and stores the current equivalent power consumption weight as the equivalent power consumption weight corresponding to the one or more application programs. 如申請專利範圍第6項所述之電腦程式產品,其中,該電量警示為透過該可攜式裝置的一顯示幕,顯示需要接上一電源 線的訊息。 For example, the computer program product described in item 6 of the scope of patent application, wherein the battery warning is displayed through a display screen of the portable device, indicating that a power supply needs to be connected Line message. 如申請專利範圍第6項所述之電腦程式產品,其中,該另一電量警示為透過該可攜式裝置的一顯示幕,顯示需要攜帶一電源線的訊息。 For example, the computer program product described in item 6 of the scope of patent application, wherein the other battery warning is a display screen of the portable device to display a message that a power cord needs to be carried. 如申請專利範圍第6項所述之電腦程式產品,其中,該單位時間電池電量下降幅度值為該電池每一小時的耗電量、或該電池每小時下降的電量百分比。 For example, the computer program product described in item 6 of the scope of patent application, wherein the decrease in battery power per unit time is the power consumption of the battery per hour, or the percentage of power decrease per hour of the battery.
TW108138396A 2019-10-24 2019-10-24 Battery power prediction method and computer program product thereof TWI717878B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW108138396A TWI717878B (en) 2019-10-24 2019-10-24 Battery power prediction method and computer program product thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW108138396A TWI717878B (en) 2019-10-24 2019-10-24 Battery power prediction method and computer program product thereof

Publications (2)

Publication Number Publication Date
TWI717878B true TWI717878B (en) 2021-02-01
TW202117352A TW202117352A (en) 2021-05-01

Family

ID=75745672

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108138396A TWI717878B (en) 2019-10-24 2019-10-24 Battery power prediction method and computer program product thereof

Country Status (1)

Country Link
TW (1) TWI717878B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104635908A (en) * 2013-11-13 2015-05-20 腾讯科技(深圳)有限公司 Method and device for lowering power consumption of mobile terminal
CN107517494A (en) * 2017-08-31 2017-12-26 努比亚技术有限公司 A kind of display methods of terminal battery electricity quantity, terminal and computer-readable recording medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104635908A (en) * 2013-11-13 2015-05-20 腾讯科技(深圳)有限公司 Method and device for lowering power consumption of mobile terminal
CN107517494A (en) * 2017-08-31 2017-12-26 努比亚技术有限公司 A kind of display methods of terminal battery electricity quantity, terminal and computer-readable recording medium

Also Published As

Publication number Publication date
TW202117352A (en) 2021-05-01

Similar Documents

Publication Publication Date Title
US11966315B2 (en) Smart advice to charge notification
KR101940389B1 (en) Adaptive battery life extension
TW201814512A (en) Scenario-based method and apparatus for performance and power management in electronic apparatus
CN108475935A (en) A kind of battery charging management method and terminal
US20100162024A1 (en) Enabling a Charge Limited Device to Operate for a Desired Period of Time
US10903665B2 (en) Usage data based battery charge or discharge time determination
EP3542243B1 (en) Dynamic energy storage device discharging
US20170108906A1 (en) Single Fuel Gauge for Multiple Energy Storage Devices
US8990038B2 (en) Method and apparatus for monitoring battery life
Dey et al. User interaction aware reinforcement learning for power and thermal efficiency of CPU-GPU mobile MPSoCs
CN106294051B (en) A kind of motor detecting method and terminal
CN107843844A (en) A kind of method, terminal and computer-readable recording medium for calibrating charge value
CN106406494B (en) A kind of method and terminal of processor scheduling
CN108089970A (en) Predict method, terminal and the storage medium of remaining capacity up time
TWI717878B (en) Battery power prediction method and computer program product thereof
US20120065909A1 (en) Time dampened charging indicator
JP5708265B2 (en) Information processing apparatus, battery remaining amount prediction method, and battery remaining amount prediction program
CN110994052B (en) Method and device for prolonging battery endurance, storage medium and terminal equipment
CN113439263B (en) Application cleaning method and device, storage medium and electronic equipment
WO2018154970A1 (en) Information processing device, information processing method, and program
JP2007310704A (en) Method of estimating service use change
WO2021221157A1 (en) Processing device, processing method, and program
WO2020133389A1 (en) Application grouping adjustment method and apparatus, and storage medium and electronic device
JP6518614B2 (en) Electronic device, method of specifying operation of electronic device, and program
CN100449457C (en) Method for regulating CPU arithmetic speed in electronic apparatus