Movatterモバイル変換


[0]ホーム

URL:


CN107608748B - Application program control method and device, storage medium and terminal equipment - Google Patents

Application program control method and device, storage medium and terminal equipment
Download PDF

Info

Publication number
CN107608748B
CN107608748BCN201710944853.4ACN201710944853ACN107608748BCN 107608748 BCN107608748 BCN 107608748BCN 201710944853 ACN201710944853 ACN 201710944853ACN 107608748 BCN107608748 BCN 107608748B
Authority
CN
China
Prior art keywords
application program
application
feature information
training model
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710944853.4A
Other languages
Chinese (zh)
Other versions
CN107608748A (en
Inventor
梁昆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp LtdfiledCriticalGuangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710944853.4ApriorityCriticalpatent/CN107608748B/en
Publication of CN107608748ApublicationCriticalpatent/CN107608748A/en
Priority to PCT/CN2018/100331prioritypatent/WO2019062358A1/en
Application grantedgrantedCritical
Publication of CN107608748BpublicationCriticalpatent/CN107608748B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本申请提供了一种应用程序管控方法、装置、存储介质及终端设备,通过检测应用程序进入后台,获取历史特征信息xi,采用线性支持向量机算法生成训练模型,从而将应用程序的当前特征信息s带入训练模型,进而判断所述应用程序是否需要关闭,智能关闭应用程序。

The present application provides an application management method, apparatus, storage medium and terminal device, which detects when an application enters the background, obtains historical feature information xi , uses a linear support vector machine algorithm to generate a training model, thereby bringing the current feature information s of the application into the training model, and then determines whether the application needs to be closed, and intelligently closes the application.

Description

Translated fromChinese
应用程序管控方法、装置、存储介质及终端设备Application program control method, device, storage medium and terminal device

技术领域technical field

本申请涉及终端领域,具体涉及一种应用程序管控方法、装置、存储介质及终端设备。The present application relates to the field of terminals, and in particular, to an application program management and control method, device, storage medium and terminal device.

背景技术Background technique

终端用户每天会使用大量应用,通常一个应用被推到后台后,如果及时不清理会占用宝贵的系统内存资源,并且会影响系统功耗。因此,有必要提供一种应用程序管控方法、装置、存储介质及终端设备。End users use a large number of applications every day. Usually, after an application is pushed to the background, if it is not cleaned up in time, it will occupy valuable system memory resources and affect system power consumption. Therefore, it is necessary to provide an application program management and control method, apparatus, storage medium and terminal device.

发明内容SUMMARY OF THE INVENTION

本申请实施例提供一种应用程序管控方法、装置、存储介质及终端设备,以智能关闭应用程序。Embodiments of the present application provide an application program management and control method, apparatus, storage medium, and terminal device to intelligently close the application program.

本申请实施例提供一种应用程序管控方法,应用于终端设备,所述应用程序管控方法包括以下步骤:An embodiment of the present application provides an application program control method, which is applied to a terminal device, and the application program control method includes the following steps:

获取所述应用程序在预设历史时段内的样本向量集,其中该样本向量集中的样本向量包括所述应用程序在预设历史时间段内的若干时间点的多个维度的历史特征信息xiObtain a sample vector set of the application within a preset historical period, wherein the sample vector in the sample vector set includes the historical feature information xi of multiple dimensions at several time points within the preset historical period of the application ;

采用线性支持向量机算法对所述历史特征信息xi进行计算,生成训练模型;The linear support vector machine algorithm is used to calculate the historical feature informationxi to generate a training model;

将所述应用程序的当前特征信息s输入所述训练模型进行计算;以及Input the current feature information s of the application into the training model for calculation; and

判断所述应用程序是否需要关闭。Determine whether the application needs to be closed.

本申请实施例还提供一种应用程序管控装置,所述装置包括:The embodiment of the present application also provides an application program management and control device, and the device includes:

获取模块,用于获取所述应用程序在预设历史时段内的样本向量集,其中该样本向量集中的样本向量包括所述应用程序在预设历史时间段内的若干时间点的多个维度的历史特征信息xiThe acquisition module is configured to acquire a sample vector set of the application program within a preset historical period, wherein the sample vector in the sample vector set includes multiple dimensions of the application program at several time points within the preset historical period. historical feature information xi ;

生成模块,用于采用线性支持向量机算法对所述历史特征信息xi进行计算,生成训练模型;A generation module is used to calculate the historical feature informationxi by using a linear support vector machine algorithm to generate a training model;

计算模块,用于将所述应用程序的当前特征信息s输入所述训练模型进行计算;以及a calculation module for inputting the current feature information s of the application into the training model for calculation; and

判断模块,用于判断所述应用程序是否需要关闭。The judgment module is used for judging whether the application program needs to be closed.

本申请实施例还提供一种存储介质,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行上述的应用程序管控方法。An embodiment of the present application further provides a storage medium, where a plurality of instructions are stored in the storage medium, and the instructions are suitable for being loaded by a processor to execute the foregoing application program management and control method.

本申请实施例还提供一种终端设备,所述终端设备包括处理器和存储器,所述终端设备与所述存储器电性连接,所述存储器用于存储指令和数据,所述处理器用于执行以下步骤:An embodiment of the present application further provides a terminal device, the terminal device includes a processor and a memory, the terminal device is electrically connected to the memory, the memory is used for storing instructions and data, and the processor is used for executing the following step:

获取所述应用程序在预设历史时段内的样本向量集,其中该样本向量集中的样本向量包括所述应用程序在预设历史时间段内的若干时间点的多个维度的历史特征信息xiObtain a sample vector set of the application within a preset historical period, wherein the sample vector in the sample vector set includes the historical feature information xi of multiple dimensions at several time points within the preset historical period of the application ;

采用线性支持向量机算法对所述历史特征信息xi进行计算,生成训练模型;The linear support vector machine algorithm is used to calculate the historical feature informationxi to generate a training model;

将所述应用程序的当前特征信息s输入所述训练模型进行计算;以及Input the current feature information s of the application into the training model for calculation; and

判断所述应用程序是否需要关闭。Determine whether the application needs to be closed.

本申请所提供的应用程序管控方法、装置、存储介质及终端设备,通过检测应用程序进入后台,获取历史特征信息xi,采用线性支持向量机算法生成训练模型,从而将应用程序的特征信息带入训练模型,进而判断所述应用程序是否需要关闭,智能关闭应用程序。The application program management and control method, device, storage medium and terminal device provided by the present application, by detecting that the application program enters the background, obtain the historical feature informationxi , and use the linear support vector machine algorithm to generate a training model, so as to bring the feature information of the application program with Enter the training model, and then judge whether the application needs to be closed, and intelligently close the application.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained from these drawings without creative effort.

图1为本申请实施例提供的应用程序管控装置的一种系统示意图。FIG. 1 is a schematic diagram of a system of an application program management and control apparatus provided by an embodiment of the present application.

图2为本申请实施例提供的应用程序管控装置的应用场景示意图。FIG. 2 is a schematic diagram of an application scenario of an application program management and control apparatus provided by an embodiment of the present application.

图3为本申请实施例提供的应用程序管控方法的一种流程示意图。FIG. 3 is a schematic flowchart of an application program management and control method provided by an embodiment of the present application.

图4为本申请实施例提供的应用程序管控方法的另一种流程示意图。FIG. 4 is another schematic flowchart of an application program management and control method provided by an embodiment of the present application.

图5为本申请实施例提供的装置的一种结构示意图。FIG. 5 is a schematic structural diagram of an apparatus provided by an embodiment of the present application.

图6为本申请实施例提供的装置的另一种结构示意图。FIG. 6 is another schematic structural diagram of the apparatus provided by the embodiment of the present application.

图7为本申请实施例提供的电子设备的一种结构示意图。FIG. 7 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.

图8为本申请实施例提供的电子设备的另一种结构示意图。FIG. 8 is another schematic structural diagram of an electronic device provided by an embodiment of the present application.

主要元件符号说明Description of main component symbols

装置 30Device 30

获取模块 31get module 31

生成模块 32Build Module 32

训练模块 321Training Module 321

求解模块 322Solving Module 322

计算模块 33Calculation Module 33

采集模块 331Acquisition Module 331

运算模块 332arithmetic module 332

判断模块 34Judgment Module 34

检测模块 35Detection module 35

第一预设模块 36first preset module 36

储存模块 37storage module 37

第二预设模块 38Second Preset Module 38

关闭模块 39close module 39

电子设备 500Electronic equipment 500

处理器 501Processor 501

存储器 502Memory 502

射频电缆 503RF Cable 503

显示屏 504Display 504

控制电路 505Control circuit 505

输入单元 506Input unit 506

音频电路 507Audio Circuits 507

传感器 508Sensor 508

电源 509Power 509

具体实施例specific embodiment

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall within the protection scope of the present application.

在本申请的描述中,需要理解的是,术语“中心”、“纵向”、“横向”、“长度”、“宽度”、“厚度”、“上”、“下”、“前”、“后”、“左”、“右”、“竖直”、“水平”、“顶”、“底”、“内”、“外”、“顺时针”、“逆时针”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本申请和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本申请的限制。此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个所述特征。在本申请的描述中,“多个”的含义是两个或两个以上,除非另有明确具体的限定。In the description of this application, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", " rear, left, right, vertical, horizontal, top, bottom, inside, outside, clockwise, counterclockwise, etc., or The positional relationship is based on the orientation or positional relationship shown in the accompanying drawings, which is only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, Therefore, it should not be construed as a limitation on this application. In addition, the terms "first" and "second" are only used for descriptive purposes, and should not be construed as indicating or implying relative importance or implying the number of indicated technical features. Thus, features defined as "first", "second" may expressly or implicitly include one or more of said features. In the description of the present application, "plurality" means two or more, unless otherwise expressly and specifically defined.

在本申请的描述中,需要说明的是,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接或可以相互通讯;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通或两个元件的相互作用关系。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本申请中的具体含义。In the description of this application, it should be noted that, unless otherwise expressly specified and limited, the terms "installed", "connected" and "connected" should be understood in a broad sense, for example, it may be a fixed connection or a detachable connection Connection, or integral connection; it can be mechanical connection, electrical connection or can communicate with each other; it can be directly connected or indirectly connected through an intermediate medium, it can be the internal communication of two elements or the interaction of two elements relation. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood according to specific situations.

在本申请中,除非另有明确的规定和限定,第一特征在第二特征之“上”或之“下”可以包括第一和第二特征直接接触,也可以包括第一和第二特征不是直接接触而是通过它们之间的另外的特征接触。而且,第一特征在第二特征“之上”、“上方”和“上面”包括第一特征在第二特征正上方和斜上方,或仅仅表示第一特征水平高度高于第二特征。第一特征在第二特征“之下”、“下方”和“下面”包括第一特征在第二特征正下方和斜下方,或仅仅表示第一特征水平高度小于第二特征。In this application, unless otherwise expressly specified and defined, a first feature "on" or "under" a second feature may include direct contact between the first and second features, or may include the first and second features Not directly but through additional features between them. Also, the first feature being "above", "over" and "above" the second feature includes the first feature being directly above and obliquely above the second feature, or simply means that the first feature is level higher than the second feature. The first feature is "below", "below" and "below" the second feature includes the first feature being directly below and diagonally below the second feature, or simply means that the first feature has a lower level than the second feature.

下文的公开提供了许多不同的实施例或例子用来实现本申请的不同结构。为了简化本申请的公开,下文中对特定例子的部件和设置进行描述。当然,它们仅仅为示例,并且目的不在于限制本申请。此外,本申请可以在不同例子中重复参考数字和/或参考字母,这种重复是为了简化和清楚的目的,其本身不指示所讨论各种实施例和/或设置之间的关系。此外,本申请提供了的各种特定的工艺和材料的例子,但是本领域普通技术人员可以意识到其他工艺的应用和/或其他材料的使用。The following disclosure provides many different embodiments or examples for implementing different structures of the present application. To simplify the disclosure of the present application, the components and arrangements of specific examples are described below. Of course, they are only examples and are not intended to limit the application. Furthermore, this application may repeat reference numerals and/or reference letters in different instances for the purpose of simplicity and clarity and not in itself indicative of a relationship between the various embodiments and/or arrangements discussed. In addition, this application provides examples of various specific processes and materials, but one of ordinary skill in the art will recognize the application of other processes and/or the use of other materials.

请参照附图中的图式,其中相同的组件符号代表相同的组件,本申请的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所示例的本申请的具体实施例,其不应被视为限制本申请未在此详述的其它具体实施例。Please refer to the drawings in the accompanying drawings, wherein the same component symbols represent the same components, and the principles of the present application are illustrated by being implemented in a suitable computing environment. The following description is based on exemplified specific embodiments of the present application and should not be construed as limiting other specific embodiments of the present application not detailed herein.

本申请原理以上述文字来说明,其并不代表为一种限制,本领域技术人员将可了解到以下所述的多种步骤及操作亦可实施在硬件当中。本申请的原理使用许多其它泛用性或特定目的运算、通信环境或组态来进行操作。The principles of the present application are described by the above text, which is not meant to be a limitation. Those skilled in the art will understand that various steps and operations described below can also be implemented in hardware. The principles of the present application operate using many other general-purpose or special-purpose computing, communication environments, or configurations.

本申请提供的应用程序管控方法,主要应用于终端设备,如:手环、智能手机、基于苹果系统或安卓系统的平板电脑、或基于Windows或Linux系统的笔记本电脑等智能移动终端设备。The application program management and control method provided by this application is mainly applied to terminal devices, such as smart mobile terminal devices such as wristbands, smart phones, tablet computers based on Apple system or Android system, or notebook computers based on Windows or Linux system.

请参阅图1,图1为本申请实施例提供的应用程序管控装置的系统示意图。所述应用程序管控装置主要用于:从数据库中获取应用程序的历史特征信息xi,然后,将历史特征信息xi通过算法进行计算,得到训练模型,其次,将应用程序的当前特征信息s输入训练模型进行计算,通过计算结果判断应用程序是否可关闭,以对预设应用程序进行管控,例如关闭、或者冻结等。Please refer to FIG. 1 , which is a schematic diagram of a system of an application program management and control apparatus provided by an embodiment of the present application. The application program management and control device is mainly used for: acquiring the historical feature informationxi of the application program from the database, then calculating the historical feature informationxi through an algorithm to obtain a training model, and secondly, obtaining the current feature information s of the application program. Enter the training model for calculation, and determine whether the application can be closed through the calculation result, so as to control the preset application, such as closing or freezing.

具体的,请参阅图2,图2为本申请实施例提供的应用程序管控方法的应用场景示意图。在一种实施例中,应用程序管控装置在检测到应用程序进入电子设备的后台时,从数据库中获取应用程序的历史特征信息xi,然后,将历史特征信息xi通过算法进行计算,得到训练模型,其次,将应用程序的当前特征信息s输入训练模型进行计算,通过计算结果判断应用程序是否可关闭。比如,应用程序管控装置在检测到应用程序a进入电子设备的后台时,从数据库中获取应用程序a的历史特征信息xi,然后,将历史特征信息xi通过算法进行计算,得到训练模型,其次,将应用程序的当前特征信息s输入训练模型进行计算,通过计算结果判断应用程序a可关闭,并将应用程序a关闭;应用程序管控装置在检测到应用程序b进入电子设备的后台时,从数据库中获取应用程序b的历史特征信息xi,然后,将历史特征信息xi通过算法进行计算,得到训练模型,其次,将应用程序b的当前特征信息s输入训练模型进行计算,通过计算结果判断应用程序b需要保留,并将应用程序b保留。Specifically, please refer to FIG. 2 , which is a schematic diagram of an application scenario of the application program management and control method provided by the embodiment of the present application. In an embodiment, when detecting that the application program has entered the background of the electronic device, the application program management and control device obtains the historical feature informationxi of the application program from the database, and then calculates the historical feature informationxi through an algorithm to obtain Train the model, and secondly, input the current feature information s of the application into the training model for calculation, and judge whether the application can be closed through the calculation result. For example, when the application program control device detects that the application program a has entered the background of the electronic device, it obtains the historical feature informationxi of the application program a from the database, and then calculates the historical feature informationxi through an algorithm to obtain a training model, Secondly, input the current feature information s of the application program into the training model for calculation, determine that the application program a can be closed according to the calculation result, and close the application program a; when the application program control device detects that the application program b enters the background of the electronic device, Obtain the historical feature informationxi of the application b from the database, then calculate the historical feature informationxi through an algorithm to obtain a training model, and then input the current feature information s of the application b into the training model for calculation. As a result, it is determined that application b needs to be retained, and application b is retained.

本申请实施例提供一种应用程序管控方法,所述应用程序管控方法的执行主体可以是本发明实施例提供的应用程序管控装置,或者成了该应用程序管控装置的电子设备,其中该应用程序管控装置可以采用硬件或者软件的方式实现。An embodiment of the present application provides an application program management and control method. The execution body of the application program management and control method may be the application program management and control device provided by the embodiment of the present invention, or an electronic device that becomes the application program management and control device, wherein the application program The management and control device may be implemented in hardware or software.

请参阅图3,图3为本申请实施例提供的应用程序管控方法的流程示意图。本申请实施例提供的应用程序管控方法应用于电子设备,具体流程可以如下:Please refer to FIG. 3 , which is a schematic flowchart of an application program management and control method provided by an embodiment of the present application. The application program management and control method provided by the embodiment of the present application is applied to an electronic device, and the specific process may be as follows:

步骤S101,获取所述应用程序在预设历史时段内的样本向量集,其中该样本向量集中的样本向量包括所述应用程序在预设历史时间段内的若干时间点的多个维度的历史特征信息xiStep S101, obtaining a sample vector set of the application in a preset historical period, wherein the sample vector in the sample vector set includes the historical features of the application in multiple dimensions at several time points in the preset historical period informationxi .

其中,所述预设历史时段为检测到应用程序进入后台的时间点之前的时间段。Wherein, the preset historical period is the period before the time point when the application program enters the background is detected.

例如,所述预设历史时段可以为检测到应用程序处于后台的时间点之前的一周。在一种实施例中,2017年8月15日上午8点15分检测到某一应用程序进入后台,获取2017年8月15日上午8点15分之前一周的历史特征信息xi,也即获取2017年8月8日上午8点15分至2017年8月15日上午8点15分之间的历史特征信息xiFor example, the preset historical period may be one week before the time point when the application program is detected to be in the background. In one embodiment, it is detected that an application enters the background at 8:15 am on August 15, 2017, and the historical feature informationxi of the week before 8:15 am on August 15, 2017 is obtained, that is, Get historical feature informationxi between August 8, 2017, 8:15 am to August 15, 2017, 8:15 am.

例如,在所述预设历史时段还可以为检测到应用程序处于后台的时间点之前的三天。在一种实施例中,2017年8月13日下午6点20分检测到某一应用程序进入后台,获取2017年8月13日下午6点20分之前三天的历史特征信息xi,也即获取2017年8月10日下午6点20分至2017年8月13日下午6点20分之间的历史特征信息xiFor example, the preset historical period may also be three days before the time point when it is detected that the application program is in the background. In one embodiment, it is detected that an application enters the background at 6:20 pm on August 13, 2017, and the historical feature informationxi for three days before 6:20 pm on August 13, 2017 is obtained, and the That is, the historical feature informationxi between 6:20 pm on August 10, 2017 and 6:20 pm on August 13, 2017 is obtained.

其中,所述多个维度的特征信息可以参考表1。For the feature information of the multiple dimensions, reference may be made to Table 1.

表1Table 1

需要说明的是,以上表1示出的10个维度的特征信息仅为本申请实施例中的一种,但是本申请并不局限于表1示出的10个维度的特征信息,也可以为其中之一、或者其中至少两个,或者全部,亦或者还可以包括其他维度的特征信息,例如,当前是否在充电、当前的电量或者当前是否连接WiFi等。It should be noted that the feature information of the 10 dimensions shown in Table 1 above is only one of the embodiments of the present application, but the present application is not limited to the feature information of the 10 dimensions shown in Table 1, and can also be One of them, or at least two of them, or all of them, or may also include feature information of other dimensions, such as whether it is currently charging, the current power level, or whether WiFi is currently connected.

步骤S102,采用线性支持向量机算法对所述历史特征信息xi进行计算,生成训练模型。Step S102, using a linear support vector machine algorithm to calculate the historical feature informationxi to generate a training model.

请参阅图4,在一种实施例中,所述步骤S102可以包括:Referring to FIG. 4, in an embodiment, the step S102 may include:

步骤S1021:对样本向量集中的样本向量进行标记,生成每个样本向量的标记结果yi;以及Step S1021: label the sample vectors in the sample vector set, and generate the labeling resultyi of each sample vector; and

步骤S1022:通过定义超平面,得到训练模型。Step S1022: Obtain a training model by defining a hyperplane.

在步骤S1021中,对样本向量集中的样本向量进行标记,生成每个样本向量的标记结果yiIn step S1021, the sample vectors in the sample vector set are marked, and the marking resultyi of each sample vector is generated.

比如,可以对样本向量集中的样本向量进行标记,在非线性支持向量机算法中输入样本向量,生成每个样本向量的标记结果yi,形成样本向量结果集T={(x1,y1),(x2,y2),...,(xm,ym)},输入样本向量xi∈Rn,yi∈{+1,-1},i=1,2,3,...,n,Rn表示样本向量所在的输入空间,n表示输入空间的维数,yi表示输入样本向量对应的标记结果。For example, it is possible to label the sample vectors in the sample vector set, input the sample vectors in the nonlinear support vector machine algorithm, generate the labeling result yi of each sample vector, and form the sample vector result set T={(x1 , y1 ) ),(x2 ,y2 ),...,(xm ,ym )}, input sample vector xi ∈Rn ,yi ∈{+1,-1},i=1,2,3 ,...,n, Rn represents the input space where the sample vector is located, n represents the dimension of the input space, and yi represents the labeling result corresponding to the input sample vector.

在步骤S1022中,通过定义超平面,得到训练模型。In step S1022, a training model is obtained by defining a hyperplane.

在一种实施例中,所述超平面可以为超平面(w,b):wTx+b=0,,其中,w为超平面的法向量,wT为w的转置向量,x为样本向量,b为超平面截距。In one embodiment, the hyperplane may be a hyperplane (w, b): wT x+b=0, where w is the normal vector of the hyperplane, wT is the transposed vector of w, and x is the sample vector, and b is the hyperplane intercept.

在一种实施例中,所述通过定义超平面,得到训练模型的步骤可以为通过定义超平面,根据超平面得到分类决策函数,得到训练模型。所述分类决策函数可以为其中,f(x)为分类决策值,当f(x)=1时,代表所述应用程序“可清理”,当f(x)=-1时,代表所述应用程序“不可清理”In an embodiment, the step of obtaining the training model by defining a hyperplane may be that the training model is obtained by defining a hyperplane and obtaining a classification decision function according to the hyperplane. The classification decision function can be Among them, f(x) is the classification decision value. When f(x)=1, it means that the application is "cleanable", and when f(x)=-1, it means that the application is "uncleanable"

在一种实施例中,所述通过定义超平面,得到训练模型的步骤可以为通过定义超平面,根据超平面得到分类决策函数,根据分类决策函数定义目标最优化函数,通过序列最小优化算法得到目标优化函数的最优解,得到训练模型,所述目标优化函数为其中,所述目标最优化函数为在参数(α12,…,αi)上求最小值,一个αi对应于一个样本(xi,yi),变量的总数等于训练样本的容量m。In an embodiment, the step of obtaining the training model by defining a hyperplane may be: by defining a hyperplane, obtaining a classification decision function according to the hyperplane, defining an objective optimization function according to the classification decision function, and obtaining a sequence minimum optimization algorithm The optimal solution of the objective optimization function is obtained, and the training model is obtained, and the objective optimization function is The objective optimization function is to find the minimum value on the parameters (α12 ,...,αi ), one αi corresponds to one sample (xi , yi ), and the total number of variables is equal to the number of training samples capacity m.

在一种实施例中,所述最优解可以记为所述训练模型可以为g(x)=wTsx+b,其中,g(x)为训练模型输出值,In one embodiment, the optimal solution can be recorded as The training model may be g(x)=wT sx+b, where g(x) is the output value of the training model,

步骤S103,将所述应用程序的当前特征信息s输入所述训练模型进行计算。Step S103: Input the current feature information s of the application program into the training model for calculation.

请参阅图4,在一种实施例中,所述步骤S103可以包括:Referring to FIG. 4, in an embodiment, the step S103 may include:

步骤S1031:采集所述应用程序的当前特征信息s;以及Step S1031: collect the current feature information s of the application; and

步骤S1032:将当前特征信息s带入训练模型进行计算。Step S1032: Bring the current feature information s into the training model for calculation.

在一种实施例中,采集所述应用程序的当前特征信息s,将当前特征信息s带入公式计算g(s)=wTs+b。In an embodiment, the current feature information s of the application program is collected, and the current feature information s is brought into the formula to calculate g(s)=wT s+b.

在一种实施方式中,采集的所述应用程序的当前特征信息s的维度与采集的所述应用程序的历史特征信息xi的维度相同。In an implementation manner, the dimension of the collected current feature information s of the application is the same as the dimension of the collected historical feature informationxi of the application.

步骤S104,判断所述应用程序是否需要关闭。Step S104, it is determined whether the application program needs to be closed.

需要说明的是,当g(s)>0,判定应用程序需要关闭;当g(s)<0,判定应用程序需要保留。It should be noted that when g(s)>0, it is determined that the application program needs to be closed; when g(s)<0, it is determined that the application program needs to be retained.

本申请所提供的应用程序管控方法,通过检测应用程序进入后台,获取历史特征信息xi,采用线性支持向量机算法生成训练模型,从而将应用程序的特征信息带入训练模型,进而判断所述应用程序是否需要关闭,智能关闭应用程序。The application program management and control method provided by the present application, by detecting that the application program enters the background, obtains the historical feature information xi , and uses the linear support vector machine algorithm to generate a training model, thereby bringing the feature information of the application program into the training model, and then judging the Whether the application needs to be closed, intelligently close the application.

请参阅图5,本申请实施例还提供一种装置30,所述装置30包括获取模块31,生成模块32、计算模块33和判断模块34。Referring to FIG. 5 , an embodiment of the present application further provides an apparatus 30 . The apparatus 30 includes an acquisition module 31 , a generation module 32 , a calculation module 33 and a judgment module 34 .

需要说明的是,所述应用程序可以为聊天应用程序、视频应用程序、音乐应用程序、购物应用程序、共享单车应用程序或手机银行应用程序等。It should be noted that the application may be a chat application, a video application, a music application, a shopping application, a bicycle sharing application, or a mobile banking application, and the like.

所述获取模块31用于获取所述应用程序在预设历史时段内的样本向量集,其中该样本向量集中的样本向量包括所述应用程序在预设历史时间段内的若干时间点的多个维度的历史特征信息xiThe obtaining module 31 is configured to obtain a sample vector set of the application within a preset historical period, wherein the sample vector in the sample vector set includes a plurality of several time points of the application within the preset historical period. Dimensional historical feature informationxi .

在一种实施例中,请参阅图6,所述装置30还包括检测模块35,用于检测所述应用程序进入后台。In an embodiment, referring to FIG. 6 , the apparatus 30 further includes a detection module 35 for detecting that the application program enters the background.

请参阅图6,所述装置30还可以包括第一预设模块36和储存模块37。所述第一预设模块36用于预设历史时段。所述储存模块37用于储存应用程序的特征信息。所述获取模块31根据所述第一预设模块36设定的预设历史时段,从储存模块37中获取预设历史时段内历史特征信息xiReferring to FIG. 6 , the apparatus 30 may further include a first preset module 36 and a storage module 37 . The first preset module 36 is used to preset a historical period. The storage module 37 is used for storing feature information of the application program. The acquisition module 31 acquires the historical feature informationxi within the preset historical period from the storage module 37 according to the preset historical period set by the first preset module 36 .

比如,当检测到应用程序进入后台时,获取应用程序的多个样本向量,所述多个样本向量形成样本向量集。一个样本向量包括应用程序在预设历史时段内的某一时间点的多个维度的历史特征信息xiFor example, when it is detected that the application program enters the background, multiple sample vectors of the application program are obtained, and the multiple sample vectors form a sample vector set. A sample vector includes historical feature informationxi of multiple dimensions of the application at a certain time point within a preset historical period.

其中,所述预设历史时段为检测到应用程序进入后台的时间点之前的时间段。Wherein, the preset historical period is the period before the time point when the application program enters the background is detected.

例如,所述预设历史时段可以为检测到应用程序处于后台的时间点之前的一周。在一种实施例中,2017年8月15日上午8点15分检测到某一应用程序进入后台,获取2017年8月15日上午8点15分之前一周的历史特征信息xi,也即获取2017年8月8日上午8点15分至2017年8月15日上午8点15分之间的历史特征信息xiFor example, the preset historical period may be one week before the time point when the application program is detected to be in the background. In one embodiment, it is detected that an application enters the background at 8:15 am on August 15, 2017, and the historical feature informationxi of the week before 8:15 am on August 15, 2017 is obtained, that is, Get historical feature informationxi between August 8, 2017, 8:15 am to August 15, 2017, 8:15 am.

例如,在所述预设历史时段还可以为检测到应用程序处于后台的时间点之前的三天。在一种实施例中,2017年8月13日下午6点20分检测到某一应用程序进入后台,获取2017年8月13日下午6点20分之前三天的历史特征信息xi,也即获取2017年8月10日下午6点20分至2017年8月13日下午6点20分之间的历史特征信息xiFor example, the preset historical period may also be three days before the time point when it is detected that the application program is in the background. In one embodiment, it is detected that an application enters the background at 6:20 pm on August 13, 2017, and the historical feature informationxi for three days before 6:20 pm on August 13, 2017 is obtained, and the That is, the historical feature informationxi between 6:20 pm on August 10, 2017 and 6:20 pm on August 13, 2017 is obtained.

其中,所述多个维度的特征信息可以参考表2。For the feature information of the multiple dimensions, reference may be made to Table 2.

表2Table 2

需要说明的是,以上表2示出的10个维度的特征信息仅为本申请实施例中的一种,但是本申请并不局限于表1示出的10个维度的特征信息,也可以为其中之一、或者其中至少两个,或者全部,亦或者还可以包括其他维度的特征信息,例如,当前是否在充电、当前的电量或者当前是否连接WiFi等。It should be noted that the feature information of the 10 dimensions shown in Table 2 above is only one of the embodiments of the present application, but the present application is not limited to the feature information of the 10 dimensions shown in Table 1, and can also be One of them, or at least two of them, or all of them, or may also include feature information of other dimensions, such as whether it is currently charging, the current power level, or whether WiFi is currently connected.

所述生成模块32用于采用线性支持向量机算法对所述历史特征信息xi进行计算,生成训练模型。The generation module 32 is configured to use a linear support vector machine algorithm to calculate the historical feature informationxi to generate a training model.

所述生成模块32训练所述获取模块31获取的历史特征信息xi,在线性支持向量机算法中输入所述历史特征信息xiThe generation module 32 trains the historical feature informationxi obtained by the acquisition module 31, and inputs the historical feature informationxi in the linear support vector machine algorithm.

请参阅图6,所述生成模块32包括训练模块321和求解模块322。Referring to FIG. 6 , the generating module 32 includes a training module 321 and a solving module 322 .

所述训练模块321用于对样本向量集中的样本向量进行标记,生成每个样本向量的标记结果。The training module 321 is used for labeling the sample vectors in the sample vector set, and generating a labeling result of each sample vector.

比如,可以对样本向量集中的样本向量进行标记,在非线性支持向量机算法中输入样本向量,生成每个样本向量的标记结果yi,形成样本向量结果集T={(x1,y1),(x2,y2),...,(xm,ym)},输入样本向量xi∈Rn,yi∈{+1,-1},i=1,2,3,...,n,Rn表示样本向量所在的输入空间,n表示输入空间的维数,yi表示输入样本向量对应的标记结果。For example, it is possible to label the sample vectors in the sample vector set, input the sample vectors in the nonlinear support vector machine algorithm, generate the labeling result yi of each sample vector, and form the sample vector result set T={(x1 , y1 ) ),(x2 ,y2 ),...,(xm ,ym )}, input sample vector xi ∈Rn ,yi ∈{+1,-1},i=1,2,3 ,...,n, Rn represents the input space where the sample vector is located, n represents the dimension of the input space, and yi represents the labeling result corresponding to the input sample vector.

所述求解模块322用于通过定义超平面,得到训练模型。The solving module 322 is used to obtain a training model by defining a hyperplane.

在一种实施例中,所述超平面可以为超平面(w,b):wTx+b=0,,其中,w为超平面的法向量,wT为w的转置向量,x为样本向量,b为超平面截距。In one embodiment, the hyperplane may be a hyperplane (w, b): wT x+b=0, where w is the normal vector of the hyperplane, wT is the transposed vector of w, and x is the sample vector, and b is the hyperplane intercept.

在一种实施例中,所述求解模块322可以用于通过定义超平面,根据超平面得到分类决策函数,得到训练模型。所述分类决策函数可以为其中,f(x)为分类决策值,当f(x)=1时,代表所述应用程序“可清理”,当f(x)=-1时,代表所述应用程序“不可清理”In an embodiment, the solving module 322 may be configured to define a hyperplane, obtain a classification decision function according to the hyperplane, and obtain a training model. The classification decision function can be Among them, f(x) is the classification decision value. When f(x)=1, it means that the application is "cleanable", and when f(x)=-1, it means that the application is "uncleanable"

在一种实施例中,所述求解模块322可以用于通过定义超平面,根据超平面得到分类决策函数,根据分类决策函数定义目标最优化函数,通过序列最小优化算法得到目标优化函数的最优解,得到训练模型,所述目标优化函数为其中,所述目标最优化函数为在参数(α12,…,αi)上求最小值,一个αi对应于一个样本(xi,yi),变量的总数等于训练样本的容量m。In one embodiment, the solving module 322 may be configured to define a hyperplane, obtain a classification decision function according to the hyperplane, define an objective optimization function according to the classification decision function, and obtain the optimal value of the objective optimization function through a sequence minimum optimization algorithm solution, the training model is obtained, and the objective optimization function is The objective optimization function is to find the minimum value on the parameters (α12 ,...,αi ), one αi corresponds to one sample (xi , yi ), and the total number of variables is equal to the number of training samples capacity m.

在一种实施例中,所述最优解可以记为所述训练模型可以为g(x)=wTsx+b,其中,g(x)为训练模型输出值,In one embodiment, the optimal solution can be recorded as The training model may be g(x)=wT sx+b, where g(x) is the output value of the training model,

所述计算模块33用于将所述应用程序的当前特征信息s输入所述训练模型进行计算。The calculation module 33 is configured to input the current feature information s of the application program into the training model for calculation.

请参阅图6,在一种实施例中,所述计算模块33可以包括采集模块331和运算模块332。Referring to FIG. 6 , in an embodiment, the calculation module 33 may include a collection module 331 and an operation module 332 .

所述采集模块331用于采集所述应用程序的当前特征信息s。The collection module 331 is used to collect the current feature information s of the application.

所述运算模块332用于当前特征信息s带入训练模型进行计算。The operation module 332 is used for bringing the current feature information s into the training model for calculation.

在一种实施例中,采集所述应用程序的当前特征信息s,将当前特征信息s带入公式计算g(s)=wTs+b。In an embodiment, the current feature information s of the application program is collected, and the current feature information s is brought into the formula to calculate g(s)=wT s+b.

在一种实施方式中,采集的所述应用程序的当前特征信息s的维度与采集的所述应用程序的历史特征信息xi的维度相同。In an implementation manner, the dimension of the collected current feature information s of the application is the same as the dimension of the collected historical feature informationxi of the application.

在一种实施例中,所述采集模块331用于根据预定采集时间定时采集特征信息,并将特征信息存入储存模块37,所述采集模块331还用于采集检测到应用程序进入后台的时间点对应的特征信息,并将该特征信息输入运算模块332用于带入训练模型进行计算。In one embodiment, the collection module 331 is configured to periodically collect feature information according to a predetermined collection time, and store the feature information in the storage module 37 , and the collection module 331 is further configured to collect the time when it is detected that the application program enters the background feature information corresponding to the point, and input the feature information into the operation module 332 for bringing it into the training model for calculation.

所述判断模块34用于判断所述应用程序是否需要关闭。The judging module 34 is used for judging whether the application program needs to be closed.

需要说明的是,当g(s)>0,判定应用程序需要关闭;当g(s)<0,判定应用程序需要保留。It should be noted that when g(s)>0, it is determined that the application program needs to be closed; when g(s)<0, it is determined that the application program needs to be retained.

所述装置30还包括一第二预设模块38。所述第二预设模块38用于预设未来时段。所述判断模块34根据所述计算模块33计算的结果判断应用程序在预设未来时段应用的概率。所述预设的未来时段可以是从检测到应用程序处于后台的时间点之后5分钟、10分钟或者15分钟。The device 30 further includes a second preset module 38 . The second preset module 38 is used to preset a future period. The judging module 34 judges the probability that the application program is applied in a preset future period according to the result calculated by the calculating module 33 . The preset future period may be 5 minutes, 10 minutes, or 15 minutes from the point in time when the application is detected to be in the background.

所述装置30还可以包括关闭模块39,用于当判断应用程序需要关闭时,将所述应用程序关闭。The apparatus 30 may further include a closing module 39 for closing the application when it is determined that the application needs to be closed.

本申请所提供的应用程序管控装置,通过检测应用程序进入后台,获取历史特征信息xi,采用线性支持向量机算法生成训练模型,从而将应用程序的特征信息带入训练模型,进而判断所述应用程序是否需要关闭,智能关闭应用程序。The application program management and control device provided by the present application detects that the application program enters the background, obtains historical feature information xi , and uses a linear support vector machine algorithm to generate a training model, so as to bring the feature information of the application program into the training model, and then judges the Whether the application needs to be closed, intelligently close the application.

请参阅图7,本申请实施例还提供一种终端设备500。所述终端设备500包括:处理器501和存储器502。其中,处理器501与存储器502电性连接。Referring to FIG. 7 , an embodiment of the present application further provides a terminal device 500 . The terminal device 500 includes: a processor 501 and a memory 502 . The processor 501 is electrically connected to the memory 502 .

处理器501是终端设备500的控制中心,利用各种接口和线路连接整个终端设备500的各个部分,通过运行或加载存储在存储器502内的应用程序,以及调用存储在存储器502内的数据,执行终端设备的各种功能和处理数据,从而对终端设备500进行整体监控。The processor 501 is the control center of the terminal device 500, and uses various interfaces and lines to connect various parts of the entire terminal device 500, and executes by running or loading the application program stored in the memory 502 and calling the data stored in the memory 502. Various functions of the terminal device and processing data, so as to monitor the terminal device 500 as a whole.

在本实施例中,终端设备500中的处理器501会按照如下的步骤,将一个或一个以上的应用程序的进程对应的指令加载到存储器502中,并由处理器501来运行存储在存储器502中的应用程序,从而实现各种功能:In this embodiment, the processor 501 in the terminal device 500 loads the instructions corresponding to the processes of one or more application programs into the memory 502 according to the following steps, and is executed by the processor 501 and stored in the memory 502 applications in , so as to achieve various functions:

获取所述应用程序在预设历史时段内的样本向量集,其中该样本向量集中的样本向量包括所述应用程序在预设历史时间段内的若干时间点的多个维度的历史特征信息xiObtain a sample vector set of the application within a preset historical period, wherein the sample vector in the sample vector set includes the historical feature information xi of multiple dimensions at several time points within the preset historical period of the application ;

采用线性支持向量机算法对所述历史特征信息xi进行计算,生成训练模型;The linear support vector machine algorithm is used to calculate the historical feature informationxi to generate a training model;

将所述应用程序的当前特征信息s输入所述训练模型进行计算;以及Input the current feature information s of the application into the training model for calculation; and

判断所述应用程序是否需要关闭。Determine whether the application needs to be closed.

需要说明的是,所述应用程序可以为聊天应用程序、视频应用程序、音乐应用程序、购物应用程序、共享单车应用程序或手机银行应用程序等。It should be noted that the application may be a chat application, a video application, a music application, a shopping application, a bicycle sharing application, or a mobile banking application, and the like.

比如,当检测到应用程序进入后台时,获取应用程序的多个样本向量,所述多个样本向量形成样本向量集。一个样本向量包括应用程序在预设历史时段内的某一时间点的多个维度的历史特征信息xiFor example, when it is detected that the application program enters the background, multiple sample vectors of the application program are obtained, and the multiple sample vectors form a sample vector set. A sample vector includes historical feature informationxi of multiple dimensions of the application at a certain time point within a preset historical period.

其中,所述预设历史时段为检测到应用程序进入后台的时间点之前的时间段。Wherein, the preset historical period is the period before the time point when the application program enters the background is detected.

例如,所述预设历史时段可以为检测到应用程序处于后台的时间点之前的一周。在一种实施例中,2017年8月15日上午8点15分检测到某一应用程序进入后台,获取2017年8月15日上午8点15分之前一周的历史特征信息xi,也即获取2017年8月8日上午8点15分至2017年8月15日上午8点15分之间的历史特征信息xiFor example, the preset historical period may be one week before the time point when the application program is detected to be in the background. In one embodiment, it is detected that an application enters the background at 8:15 am on August 15, 2017, and the historical feature informationxi of the week before 8:15 am on August 15, 2017 is obtained, that is, Get historical feature informationxi between August 8, 2017, 8:15 am to August 15, 2017, 8:15 am.

例如,在所述预设历史时段还可以为检测到应用程序处于后台的时间点之前的三天。在一种实施例中,2017年8月13日下午6点20分检测到某一应用程序进入后台,获取2017年8月13日下午6点20分之前三天的历史特征信息xi,也即获取2017年8月10日下午6点20分至2017年8月13日下午6点20分之间的历史特征信息xiFor example, the preset historical period may also be three days before the time point when it is detected that the application program is in the background. In one embodiment, it is detected that an application enters the background at 6:20 pm on August 13, 2017, and the historical feature informationxi for three days before 6:20 pm on August 13, 2017 is obtained, and the That is, the historical feature informationxi between 6:20 pm on August 10, 2017 and 6:20 pm on August 13, 2017 is obtained.

其中,所述多个维度的特征信息可以参考表3。For the feature information of the multiple dimensions, reference may be made to Table 3.

表3table 3

需要说明的是,以上表3示出的10个维度的特征信息仅为本申请实施例中的一种,但是本申请并不局限于表1示出的10个维度的特征信息,也可以为其中之一、或者其中至少两个,或者全部,亦或者还可以包括其他维度的特征信息,例如,当前是否在充电、当前的电量或者当前是否连接WiFi等。It should be noted that the feature information of the 10 dimensions shown in Table 3 above is only one of the embodiments of the present application, but the present application is not limited to the feature information of the 10 dimensions shown in Table 1, and can also be One of them, or at least two of them, or all of them, or may also include feature information of other dimensions, such as whether it is currently charging, the current power level, or whether WiFi is currently connected.

在一种实施例中,所述处理器501采用线性支持向量机算法对所述历史特征信息xi进行计算,,生成训练模还包括:In an embodiment, the processor 501 uses a linear support vector machine algorithm to calculate the historical feature informationxi , and generating a training model further includes:

对样本向量集中的样本向量进行标记,生成每个样本向量的标记结果yi;以及labeling the sample vectors in the sample vector set, generating a labeling resultyi for each sample vector; and

通过定义超平面,得到训练模型。By defining the hyperplane, the trained model is obtained.

在一种实施例中,可以对样本向量集中的样本向量进行标记,在非线性支持向量机算法中输入样本向量,生成每个样本向量的标记结果yi,形成样本向量结果集T={(x1,y1),(x2,y2),...,(xm,ym)},输入样本向量xi∈Rn,yi∈{+1,-1},i=1,2,3,...,n,Rn表示样本向量所在的输入空间,n表示输入空间的维数,yi表示输入样本向量对应的标记结果。In one embodiment, the sample vectors in the sample vector set can be marked, the sample vectors are input in the nonlinear support vector machine algorithm, the labeling result yi of each sample vector is generated, and the sample vector result set T={( x1 ,y1 ),(x2 ,y2 ),...,(xm ,ym )}, input sample vector xi ∈Rn ,yi ∈{+1,-1},i= 1,2,3,...,n, Rn represents the input space where the sample vector is located, n represents the dimension of the input space, and yi represents the labeling result corresponding to the input sample vector.

在一种实施例中,所述超平面可以为超平面(w,b):wTx+b=0,,其中,w为超平面的法向量,wT为w的转置向量,x为样本向量,b为超平面截距。In one embodiment, the hyperplane may be a hyperplane (w, b): wT x+b=0, where w is the normal vector of the hyperplane, wT is the transposed vector of w, and x is the sample vector, and b is the hyperplane intercept.

在一种实施例中,所述通过定义超平面,得到训练模型的步骤可以为通过定义超平面,根据超平面得到分类决策函数,得到训练模型。所述分类决策函数可以为其中,f(x)为分类决策值,当f(x)=1时,代表所述应用程序“可清理”,当f(x)=-1时,代表所述应用程序“不可清理”In an embodiment, the step of obtaining the training model by defining a hyperplane may be that the training model is obtained by defining a hyperplane and obtaining a classification decision function according to the hyperplane. The classification decision function can be Among them, f(x) is the classification decision value. When f(x)=1, it means that the application is "cleanable", and when f(x)=-1, it means that the application is "uncleanable"

在一种实施例中,所述通过定义超平面,得到训练模型的步骤可以为通过定义超平面,根据超平面得到分类决策函数,根据分类决策函数定义目标最优化函数,通过序列最小优化算法得到目标优化函数的最优解,得到训练模型,所述目标优化函数为其中,所述目标最优化函数为在参数(α12,…,αi)上求最小值,一个αi对应于一个样本(xi,yi),变量的总数等于训练样本的容量m。In an embodiment, the step of obtaining the training model by defining a hyperplane may be: by defining a hyperplane, obtaining a classification decision function according to the hyperplane, defining an objective optimization function according to the classification decision function, and obtaining a sequence minimum optimization algorithm The optimal solution of the objective optimization function is obtained, and the training model is obtained, and the objective optimization function is The objective optimization function is to find the minimum value on the parameters (α12 ,...,αi ), one αi corresponds to one sample (xi , yi ), and the total number of variables is equal to the number of training samples capacity m.

在一种实施例中,所述最优解可以记为所述训练模型可以为g(x)=wTsx+b,其中,g(x)为训练模型输出值,In one embodiment, the optimal solution can be recorded as The training model may be g(x)=wT sx+b, where g(x) is the output value of the training model,

在一种实施例中,所述处理器501将所述应用程序的当前特征信息s输入所述训练模型进行计算还包括:In one embodiment, the processor 501 inputting the current feature information s of the application into the training model for calculation further includes:

采集所述应用程序的当前特征信息s;以及Collect current feature information s of the application; and

将当前特征信息s带入训练模型进行计算。Bring the current feature information s into the training model for calculation.

在一种实施例中,所述处理器501采集所述应用程序的当前特征信息s,将当前特征信息s带入公式计算g(s)=wTs+b。In an embodiment, the processor 501 collects the current feature information s of the application program, and brings the current feature information s into a formula to calculate g(s)=wT s+b.

在一种实施方式中,所述处理器501采集的所述应用程序的当前特征信息s的维度与采集的所述应用程序的历史特征信息xi的维度相同。In an implementation manner, the dimension of the current feature information s of the application program collected by the processor 501 is the same as the dimension of the collected historical feature informationxi of the application program.

在一种实施方式中,所述处理器501判断所述应用程序是否需要关闭。当g(s)>0,所述处理器501判定应用程序需要关闭;当g(s)<0,所述处理器501判定应用程序需要保留。In an implementation manner, the processor 501 determines whether the application program needs to be closed. When g(s)>0, the processor 501 determines that the application program needs to be closed; when g(s)<0, the processor 501 determines that the application program needs to be retained.

存储器502可用于存储应用程序和数据。存储器502存储的程序中包含有可在处理器中执行的指令。所述程序可以组成各种功能模块。处理器501通过运行存储在存储器502的程序,从而执行各种功能应用以及数据处理。Memory 502 may be used to store applications and data. The programs stored in the memory 502 contain instructions executable in the processor. The program can be composed of various functional modules. The processor 501 executes various functional applications and data processing by executing programs stored in the memory 502 .

在一些实施例中,如图8所示,终端设备500还包括:射频电路503、显示屏504、控制电路505、输入单元506、音频电路507、传感器508以及电源509。其中,处理器501分别与射频电路503、显示屏504、控制电路505、输入单元506、音频电路507、传感器508以及电源509电性连接。In some embodiments, as shown in FIG. 8 , the terminal device 500 further includes: a radio frequency circuit 503 , a display screen 504 , a control circuit 505 , an input unit 506 , an audio circuit 507 , a sensor 508 and a power supply 509 . The processor 501 is electrically connected to the radio frequency circuit 503 , the display screen 504 , the control circuit 505 , the input unit 506 , the audio circuit 507 , the sensor 508 and the power supply 509 respectively.

射频电路503用于收发射频信号,以通过无线通信网络与服务器或其他电子设备进行通信。The radio frequency circuit 503 is used for transmitting and receiving radio frequency signals, so as to communicate with the server or other electronic devices through the wireless communication network.

显示屏504可用于显示由用户输入的信息或提供给用户的信息以及终端的各种图形用户接口,这些图形用户接口可以由图像、文本、图标、视频和其任意组合来构成。The display screen 504 may be used to display information input by the user or information provided to the user and various graphical user interfaces of the terminal, which may be composed of images, texts, icons, videos, and any combination thereof.

控制电路505与显示屏504电性连接,用于控制显示屏504显示信息。The control circuit 505 is electrically connected to the display screen 504 for controlling the display screen 504 to display information.

输入单元506可用于接收输入的数字、字符信息或用户特征信息(例如指纹),以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。Input unit 506 may be used to receive input numbers, character information, or user characteristic information (eg, fingerprints), and generate keyboard, mouse, joystick, optical, or trackball signal input related to user settings and function control.

音频电路507可通过扬声器、传声器提供用户与终端之间的音频接口。The audio circuit 507 can provide an audio interface between the user and the terminal through a speaker and a microphone.

传感器508用于采集外部环境信息。传感器508可以包括环境亮度传感器、加速度传感器、陀螺仪等传感器中的一种或多种。The sensor 508 is used to collect external environment information. The sensor 508 may include one or more of an ambient brightness sensor, an acceleration sensor, a gyroscope, and the like.

电源509用于给终端设备500的各个部件供电。在一些实施例中,电源509可以通过电源管理系统与处理器501逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The power supply 509 is used to power various components of the terminal device 500 . In some embodiments, the power supply 509 may be logically connected to the processor 501 through a power management system, so as to implement functions such as managing charging, discharging, and power consumption through the power management system.

尽管图8中未示出,终端设备500还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown in FIG. 8 , the terminal device 500 may also include a camera, a Bluetooth module, and the like, which will not be repeated here.

本申请所提供的终端设备,通过检测应用程序进入后台,获取历史特征信息xi,采用线性支持向量机算法生成训练模型,从而将应用程序的特征信息带入训练模型,进而判断所述应用程序是否需要关闭,智能关闭应用程序。The terminal device provided by the present application enters the background by detecting the application program, obtains the historical feature informationxi , and uses the linear support vector machine algorithm to generate a training model, so as to bring the feature information of the application program into the training model, and then judge the application program Whether you need to close, intelligently close the application.

本发明实施例还提供一种存储介质,该存储介质中存储有多条指令,该指令适于由处理器加载以执行上述任一实施例所述的应用程序管控方法。An embodiment of the present invention further provides a storage medium, where a plurality of instructions are stored in the storage medium, and the instructions are suitable for being loaded by a processor to execute the application program management and control method described in any of the foregoing embodiments.

本发明实施例提供的应用程序管控方法、装置、存储介质及终端设备属于同一构思,其具体实现过程详见说明书全文,此处不再赘述。The application program management and control method, device, storage medium, and terminal device provided by the embodiments of the present invention belong to the same concept, and the specific implementation process thereof can be found in the full text of the specification, which will not be repeated here.

本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储存储介质中,存储存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium can Including: read only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, etc.

以上对本申请实施例提供的应用程序管控方法、装置、存储介质及终端设备进行了详细介绍,本文中应用了具体个例对本申请的原理及实施例进行了阐述,以上实施例的说明只是用于帮助理解本申请。同时,对于本领域的技术人员,依据本申请的思想,在具体实施例及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The application program management and control method, device, storage medium, and terminal device provided by the embodiments of the present application have been described in detail above. The principles and embodiments of the present application are described in this document by using specific examples. The descriptions of the above embodiments are only used for Help understand this application. At the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific embodiments and application scope. To sum up, the content of this specification should not be construed as a limitation to the present application.

Claims (12)

Translated fromChinese
1.一种应用程序管控方法,应用于终端设备,其特征在于,所述应用程序管控方法包括以下步骤:1. An application program management and control method, applied to a terminal device, wherein the application program management and control method comprises the following steps:当检测到应用程序进入后台运行时,获取所述应用程序在预设历史时段内的样本向量集,其中该样本向量集中的样本向量包括所述应用程序在预设历史时间段内的若干时间点的多个维度的历史特征信息xi,其中,所述预设历史时间段为所述应用程序进入后台的时间点之前的时间段,多个维度的历史特征信息包括:所述应用程序上一次切入到后台到现在的时长、所述应用程序上一次切入后台到现在的期间中累计屏幕关闭的时长、当前屏幕亮灭状态,以及所述应用程序在后台停留时间直方图中预设时长对应的次数所占比例;When it is detected that the application program enters the background running, a sample vector set of the application program within a preset historical period is obtained, wherein the sample vectors in the sample vector set include several time points of the application program within the preset historical period historical feature information xi of multiple dimensions, wherein the preset historical time period is the time period before the time point when the application program enters the background, and the historical feature information of multiple dimensions includes: the last time the application program The duration of switching to the background to the present, the cumulative screen-off duration in the period from the last time the application was switched to the background to the present, the current screen on and off status, and the corresponding duration of the preset duration in the histogram of the time spent in the background by the application the proportion of times;采用线性支持向量机算法对所述历史特征信息xi进行计算,生成训练模型;The linear support vector machine algorithm is used to calculate the historical feature informationxi to generate a training model;将所述应用程序的当前特征信息s输入所述训练模型进行计算;以及Input the current feature information s of the application into the training model for calculation; and根据计算结果判断所述应用程序是否需要关闭。Whether the application needs to be closed is determined according to the calculation result.2.如权利要求1所述的应用程序管控方法,其特征在于:采用线性支持向量机算法对所述历史特征信息xi进行计算,生成训练模型的步骤包括:2. application program control method as claimed in claim 1, is characterized in that: adopt linear support vector machine algorithm to calculate described historical characteristic informationxi , and the step of generating training model comprises:对样本向量集中的样本向量进行标记,生成每个样本向量的标记结果yi;以及labeling the sample vectors in the sample vector set, generating a labeling resultyi for each sample vector; and通过所述历史特征信息xi和所述标记结果yi定义超平面,得到训练模型。A hyperplane is defined by the historical feature informationxi and the labeling resultyi to obtain a training model.3.如权利要求2所述的应用程序管控方法,其特征在于:所述超平面为超平面(w,b):wTx+b=0,其中,w为超平面的法向量,wT为w的转置向量,x为样本向量,b为超平面截距。3. The application program control method according to claim 2, wherein the hyperplane is a hyperplane (w, b): wT x+b=0, wherein w is a normal vector of the hyperplane, and wT is the transpose vector of w, x is the sample vector, and b is the hyperplane intercept.4.如权利要求3所述的应用程序管控方法,其特征在于:所述训练模型为g(x)=wTx+b,其中,g(x)为训练模型的输出值;所述将应用程序的当前特征信息s输入所述训练模型进行计算的步骤包括:4. The application program control method according to claim 3, wherein the training model is g(x)=wT x+b, wherein g(x) is the output value of the training model; The steps of inputting the current feature information s of the application into the training model for calculation include:采集所述应用程序的当前特征信息s;以及Collect current feature information s of the application; and将当前特征信息s代入训练模型进行计算,得到输出值g(s)=wTs+b。Substitute the current feature information s into the training model for calculation, and obtain the output value g(s)=wT s+b.5.如权利要求4所述的应用程序管控方法,其特征在于:所述判断应用程序是否需要关闭的步骤还包括:5. The application program control method according to claim 4, wherein the step of judging whether the application program needs to be closed further comprises:当g(s)>0,判定所述应用程序需要关闭;以及When g(s)>0, it is determined that the application needs to be closed; and当g(s)<0,判定所述应用程序需要保留。When g(s)<0, it is determined that the application needs to be reserved.6.一种应用程序管控装置,其特征在于,所述装置包括:6. An application program management and control device, wherein the device comprises:获取模块,用于当检测到应用程序进入后台运行时,获取所述应用程序在预设历史时段内的样本向量集,其中该样本向量集中的样本向量包括所述应用程序在预设历史时间段内的若干时间点的多个维度的历史特征信息xi,其中,所述预设历史时间段为所述应用程序进入后台的时间点之前的时间段,多个维度的历史特征信息包括:所述应用程序上一次切入到后台到现在的时长、所述应用程序上一次切入后台到现在的期间中累计屏幕关闭的时长、当前屏幕亮灭状态,以及所述应用程序在后台停留时间直方图中预设时长对应的次数所占比例;The acquiring module is configured to acquire a sample vector set of the application within a preset historical period when it is detected that the application has entered the background, wherein the sample vectors in the sample vector set include the application in the preset historical period The historical feature information xi of multiple dimensions at several time points within the system, wherein the preset historical time period is the time period before the time point when the application program enters the background, and the historical feature information of multiple dimensions includes: The duration of the last time the application program was switched to the background, the cumulative screen-off duration in the period from the last time the application program was switched to the background to the present, the current screen on and off status, and the time histogram of the application’s stay in the background The proportion of times corresponding to the preset duration;生成模块,用于采用线性支持向量机算法对所述历史特征信息xi进行计算,生成训练模型;A generation module is used to calculate the historical feature informationxi by using a linear support vector machine algorithm to generate a training model;计算模块,用于将所述应用程序的当前特征信息s输入所述训练模型进行计算;以及a calculation module for inputting the current feature information s of the application into the training model for calculation; and判断模块,用于根据计算结果判断所述应用程序是否需要关闭。The judgment module is used for judging whether the application program needs to be closed according to the calculation result.7.如权利要求6所述的应用程序管控装置,其特征在于:所述生成模块包括:7. The application program management and control device according to claim 6, wherein the generating module comprises:训练模块,用于对样本向量集中的样本向量进行标记,生成每个样本向量的标记结果yia training module, used for labeling the sample vectors in the sample vector set, and generating the labeling resultyi of each sample vector;求解模块,通过所述历史特征信息xi和所述标记结果yi定义超平面,得到训练模型。The solving module defines a hyperplane through the historical feature informationxi and the labeling resultyi to obtain a training model.8.如权利要求7所述的应用程序管控装置,其特征在于:所述超平面为超平面(w,b):wTx+b=0,其中,w为超平面的法向量,wT为w的转置向量,x为样本向量,b为超平面截距。8 . The application program management and control device according to claim 7 , wherein the hyperplane is a hyperplane (w, b): wT x+b=0, wherein w is a normal vector of the hyperplane, and wT is the transpose vector of w, x is the sample vector, and b is the hyperplane intercept.9.如权利要求8所述的应用程序管控装置,其特征在于:所述训练模型为g(x)=wTx+b,其中,g(x)为训练模型的输出值;所述计算模块包括采集模块和运算模块,所述采集模块用于采集所述应用程序的当前特征信息s,所述运算模块用于将当前特征信息s代入训练模型进行计算,得到输出值g(s)=wTs+b。9 . The application program control device according to claim 8 , wherein the training model is g(x)=wT x+b, wherein g(x) is the output value of the training model; the calculating The module includes a collection module and an operation module, the collection module is used to collect the current feature information s of the application program, and the operation module is used to substitute the current feature information s into the training model for calculation, and obtain the output value g(s)= wT s+b.10.如权利要求9所述的应用程序管控装置,其特征在于:当g(s)>0,判定所述应用程序需要关闭,当g(s)<0,判定所述应用程序需要保留。10 . The application program control device according to claim 9 , wherein when g(s)>0, it is determined that the application program needs to be closed, and when g(s)<0, it is determined that the application program needs to be retained. 11 .11.一种存储介质,其特征在于:所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行如权利要求1至5中任一项所述的应用程序管控方法。11. A storage medium, characterized in that: the storage medium stores a plurality of instructions, the instructions are adapted to be loaded by a processor to execute the application program management method according to any one of claims 1 to 5 .12.一种终端设备,其特征在于:所述终端设备包括处理器和存储器,所述终端设备与所述存储器电性连接,所述存储器用于存储指令和数据,所述处理器用于执行如权利要求1至5中任一项所述的应用程序管控方法。12. A terminal device, characterized in that: the terminal device comprises a processor and a memory, the terminal device is electrically connected to the memory, the memory is used to store instructions and data, and the processor is used to execute the The application program control method according to any one of claims 1 to 5.
CN201710944853.4A2017-09-302017-09-30Application program control method and device, storage medium and terminal equipmentActiveCN107608748B (en)

Priority Applications (2)

Application NumberPriority DateFiling DateTitle
CN201710944853.4ACN107608748B (en)2017-09-302017-09-30Application program control method and device, storage medium and terminal equipment
PCT/CN2018/100331WO2019062358A1 (en)2017-09-302018-08-14Application program control method and terminal device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201710944853.4ACN107608748B (en)2017-09-302017-09-30Application program control method and device, storage medium and terminal equipment

Publications (2)

Publication NumberPublication Date
CN107608748A CN107608748A (en)2018-01-19
CN107608748Btrue CN107608748B (en)2019-09-13

Family

ID=61069094

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201710944853.4AActiveCN107608748B (en)2017-09-302017-09-30Application program control method and device, storage medium and terminal equipment

Country Status (2)

CountryLink
CN (1)CN107608748B (en)
WO (1)WO2019062358A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN107643948B (en)*2017-09-302020-06-02Oppo广东移动通信有限公司Application program control method, device, medium and electronic equipment
CN107608748B (en)*2017-09-302019-09-13Oppo广东移动通信有限公司Application program control method and device, storage medium and terminal equipment
CN107885544B (en)*2017-10-312020-04-10Oppo广东移动通信有限公司Application program control method, device, medium and electronic equipment
CN110086835B (en)*2018-01-242021-08-03腾讯科技(深圳)有限公司Application program control method, terminal, server and system
WO2020206690A1 (en)*2019-04-122020-10-15深圳市欢太科技有限公司Application cleaning method and apparatus, storage medium and electronic device
CN113439253B (en)*2019-04-122023-08-22深圳市欢太科技有限公司 Application cleaning method, device, storage medium and electronic device
CN115033304B (en)*2022-06-272024-09-24维沃移动通信有限公司 Application program control method, device and electronic device

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105786711A (en)*2016-03-252016-07-20广州华多网络科技有限公司Data analysis method and device
CN106775809A (en)*2016-11-152017-05-31北京奇虎科技有限公司A kind of method of mobile terminal internal memory cleaning, device and mobile terminal
CN107133094A (en)*2017-06-052017-09-05努比亚技术有限公司Application management method, mobile terminal and computer-readable recording medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
KR20150008653A (en)*2013-07-152015-01-23삼성전자주식회사Method for utilizing Usage Log of Portable Terminal and Apparatus for using the same
KR20160091786A (en)*2015-01-262016-08-03삼성전자주식회사Method and apparatus for managing user
CN106055399A (en)*2016-05-312016-10-26宇龙计算机通信科技(深圳)有限公司Application program control method and terminal
CN107643948B (en)*2017-09-302020-06-02Oppo广东移动通信有限公司Application program control method, device, medium and electronic equipment
CN107608748B (en)*2017-09-302019-09-13Oppo广东移动通信有限公司Application program control method and device, storage medium and terminal equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105786711A (en)*2016-03-252016-07-20广州华多网络科技有限公司Data analysis method and device
CN106775809A (en)*2016-11-152017-05-31北京奇虎科技有限公司A kind of method of mobile terminal internal memory cleaning, device and mobile terminal
CN107133094A (en)*2017-06-052017-09-05努比亚技术有限公司Application management method, mobile terminal and computer-readable recording medium

Also Published As

Publication numberPublication date
CN107608748A (en)2018-01-19
WO2019062358A1 (en)2019-04-04

Similar Documents

PublicationPublication DateTitle
CN107608748B (en)Application program control method and device, storage medium and terminal equipment
CN107643948B (en)Application program control method, device, medium and electronic equipment
US11544633B2 (en)Method for cleaning up background application, storage medium, and electronic device
CN107632697B (en)Application processing method and device, storage medium and electronic equipment
CN107704070B (en)Application cleaning method and device, storage medium and electronic equipment
CN107885544B (en)Application program control method, device, medium and electronic equipment
CN107678799A (en) Application program management and control method, device, storage medium and electronic device
CN107678858B (en)Application processing method and device, storage medium and electronic equipment
CN113284142A (en)Image detection method, image detection device, computer-readable storage medium and computer equipment
US11249645B2 (en)Application management method, storage medium, and electronic apparatus
CN109948633A (en)User gender prediction method and device, storage medium and electronic equipment
CN107844338B (en)Application program control method, device, medium and electronic equipment
US20140038674A1 (en)Two-phase power-efficient activity recognition system for mobile devices
CN109726726B (en)Event detection method and device in video
CN107704876B (en)Application control method, device, storage medium and electronic equipment
CN108108455B (en) Destination push method, device, storage medium and electronic device
CN109961075A (en)User gender prediction method, device, medium and electronic equipment
CN107943534A (en)Method for closing, device, storage medium and the electronic equipment of background application
CN111984803A (en)Multimedia resource processing method and device, computer equipment and storage medium
CN107728772B (en)Application processing method and device, storage medium and electronic equipment
CN112948763B (en)Piece quantity prediction method and device, electronic equipment and storage medium
CN107861770B (en)Application program control method and device, storage medium and terminal equipment
CN107729144A (en) Application control method, device, storage medium and electronic equipment
CN105551047A (en)Picture content detecting method and device
CN113918757A (en) Application recommended method, device, electronic device and storage medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
CB02Change of applicant information
CB02Change of applicant information

Address after:Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after:OPPO Guangdong Mobile Communications Co., Ltd.

Address before:Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before:Guangdong OPPO Mobile Communications Co., Ltd.

GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp