WO2023207267A1 - Data transmission method, model training method, device, and computer-readable medium - Google Patents

Data transmission method, model training method, device, and computer-readable medium Download PDF

Info

Publication number
WO2023207267A1
WO2023207267A1 PCT/CN2023/076528 CN2023076528W WO2023207267A1 WO 2023207267 A1 WO2023207267 A1 WO 2023207267A1 CN 2023076528 W CN2023076528 W CN 2023076528W WO 2023207267 A1 WO2023207267 A1 WO 2023207267A1
Authority
WO
WIPO (PCT)
Prior art keywords
screen
historical
data
data transmission
moment
Prior art date
Application number
PCT/CN2023/076528
Other languages
French (fr)
Chinese (zh)
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 中兴通讯股份有限公司
Publication of WO2023207267A1 publication Critical patent/WO2023207267A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0248Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal dependent on the time of the day, e.g. according to expected transmission activity
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3287Power saving characterised by the action undertaken by switching off individual functional units in the computer system
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0251Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
    • H04W52/0254Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity detecting a user operation or a tactile contact or a motion of the device
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0251Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
    • H04W52/0258Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity controlling an operation mode according to history or models of usage information, e.g. activity schedule or time of day
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

Embodiments of the present application provide a data transmission method, a model training method, an electronic device, and a computer-readable medium. The data transmission method comprises: under the condition that the screen-off of a terminal device is detected, predicting an estimated duration of the present screen-off; determining, according to the current network state parameter of the terminal device, a target duration required for performing data transmission this time; and determining, according to the estimated duration and the target duration, whether to perform data transmission.

Description

数据传输方法、模型训练方法、设备、计算机可读介质Data transmission method, model training method, equipment, computer-readable media 技术领域Technical field
本申请实施例涉及通信技术领域,特别涉及数据传输方法、模型训练方法、电子设备、计算机可读介质。Embodiments of the present application relate to the field of communication technology, and in particular to data transmission methods, model training methods, electronic devices, and computer-readable media.
背景技术Background technique
现在很多终端设备都会对本设备上的某些重要数据定期后台自动备份到服务器。今后万物互联时代,除了终端设备与服务器之间进行数据传输,终端设备之间进行数据传输的频率会更高、数据量会更大。终端设备在数据传输期间,会尽可能占满网络带宽;也会对数据进行快速读写、压缩和解压,这些处理过程对中央处理器(CPU,Central Processing Unit)和内存有不小开销。终端设备传输的部分数据,对及时性要求不高,比如系统升级下载资源包,定期备份本机数据等,这些都可以使用后台自动传输策略。如果终端设备在后台数据传输期间用户也在使用终端设备其他应用,后台数据传输就会和用户使用的应用争抢网络、CPU和内存等资源,导致用户很大可能会遇上网络卡顿,打开应用耗时长,读取数据慢等情况,会极大降低用户的使用体验。Many terminal devices now automatically back up certain important data on the device to the server in the background on a regular basis. In the future era of the Internet of Everything, in addition to data transmission between terminal devices and servers, the frequency of data transmission between terminal devices will be higher and the amount of data will be larger. During data transmission, the terminal device will occupy the network bandwidth as much as possible; it will also quickly read and write, compress and decompress the data. These processing processes have a lot of overhead on the central processing unit (CPU, Central Processing Unit) and memory. Some data transmitted by terminal devices do not have high timeliness requirements, such as system upgrades and downloading resource packages, regular backup of local data, etc. These can all use background automatic transmission strategies. If the user is also using other applications on the terminal device during the background data transmission of the terminal device, the background data transmission will compete with the applications used by the user for network, CPU, memory and other resources, resulting in the user being very likely to encounter network lag and open the Situations such as long application time and slow reading of data will greatly reduce the user experience.
发明内容Contents of the invention
本申请实施例提供一种数据传输方法、模型训练方法、电子设备、计算机可读介质。Embodiments of the present application provide a data transmission method, a model training method, an electronic device, and a computer-readable medium.
本申请实施例提供一种数据传输方法,包括:在检测到终端设备息屏的情况下,预测本次息屏的预估时长;根据所述终端设备当前的网络状态参数确定本次进行数据传输需要的目标时长;根据所述预估时长和所述目标时长确定是否进行数据传输。Embodiments of the present application provide a data transmission method, which includes: when a terminal device is detected to be turned off, predicting the estimated duration of the screen off; and determining the current data transmission based on the current network status parameters of the terminal device. The required target duration; determine whether to perform data transmission based on the estimated duration and the target duration.
本申请实施例提供一种模型训练方法,包括:接收终端设备发送的在预设历史时间段内的历史息屏数据;其中,所述历史息屏数据包括:历史息屏时刻、下一次历史亮屏时刻、历史息屏方式、历史日期类别;根据所述历史息屏数据进行模型训练得到所述历史日期类别对应的预测模型;将所述历史日期类别对应的预测模型发送给所述终端设备。Embodiments of the present application provide a model training method, including: receiving historical screen information data within a preset historical time period sent by a terminal device; wherein the historical screen information data includes: historical screen screen time, the next historical screen time screen time, historical screen mode, and historical date category; perform model training based on the historical screen data to obtain a prediction model corresponding to the historical date category; and send the prediction model corresponding to the historical date category to the terminal device.
本申请实施例提供一种电子设备,包括:至少一个处理器;存储器,存储器上存储有至少一个程序,当所述至少一个程序被所述至少一个处理器执行时,实现上述任意一种数据传输方法,或上述任意一种模型训练方法。An embodiment of the present application provides an electronic device, including: at least one processor; and a memory. At least one program is stored on the memory. When the at least one program is executed by the at least one processor, any of the above data transmissions are implemented. method, or any of the above model training methods.
本申请实施例提供一种计算机可读介质,计算机可读介质上存储有计算机程序,所述计算机程序被处理器执行时实现上述任意一种数据传输方法,或上述任意一种模型训练方法。Embodiments of the present application provide a computer-readable medium. A computer program is stored on the computer-readable medium. When the computer program is executed by a processor, any of the above-mentioned data transmission methods or any of the above-mentioned model training methods are implemented.
附图说明Description of the drawings
图1为本申请一个实施例提供的数据传输方法的流程图;Figure 1 is a flow chart of a data transmission method provided by an embodiment of the present application;
图2为本申请另一个实施例提供的模型训练方法的流程图;Figure 2 is a flow chart of a model training method provided by another embodiment of the present application;
图3为本申请另一个实施例提供的数据传输装置的组成框图;Figure 3 is a block diagram of a data transmission device provided by another embodiment of the present application;
图4为本申请另一个实施例提供的模型训练装置的组成框图。 Figure 4 is a block diagram of a model training device provided by another embodiment of the present application.
具体实施方式Detailed ways
为使本领域的技术人员更好地理解本申请的技术方案,下面结合附图对本申请实施例提供的数据传输方法、模型训练方法、电子设备、计算机可读介质进行详细描述。In order to enable those skilled in the art to better understand the technical solutions of the present application, the data transmission method, model training method, electronic device, and computer-readable medium provided by the embodiments of the present application are described in detail below in conjunction with the accompanying drawings.
在下文中将参考附图更充分地描述示例实施例,但是所述示例实施例可以以不同形式来体现且不应当被解释为限于本文阐述的实施例。反之,提供这些实施例的目的在于使本申请透彻和完整,并将使本领域技术人员充分理解本申请的范围。Example embodiments will be described more fully below with reference to the accompanying drawings, which may, however, be embodied in different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully enable those skilled in the art to fully understand the scope of the disclosure.
在不冲突的情况下,本申请各实施例及实施例中的各特征可相互组合。The embodiments of the present application and the features in the embodiments can be combined with each other unless there is any conflict.
如本文所使用的,术语“和/或”包括至少一个相关列举条目的任何和所有组合。As used herein, the term "and/or" includes any and all combinations of at least one associated listed item.
本文所使用的术语仅用于描述特定实施例,且不意欲限制本申请。如本文所使用的,单数形式“一个”和“该”也意欲包括复数形式,除非上下文另外清楚指出。还将理解的是,当本说明书中使用术语“包括”和/或“由……制成”时,指定存在所述特征、整体、步骤、操作、元件和/或组件,但不排除存在或添加至少一个其它特征、整体、步骤、操作、元件、组件和/或其群组。The terminology used herein is used to describe particular embodiments only and is not intended to be limiting of the application. As used herein, the singular forms "a," "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will also be understood that when the terms "comprising" and/or "made of" are used in this specification, the presence of stated features, integers, steps, operations, elements and/or components is specified but does not exclude the presence or Add at least one other feature, integer, step, operation, element, component and/or group thereof.
除非另外限定,否则本文所用的所有术语(包括技术和科学术语)的含义与本领域普通技术人员通常理解的含义相同。还将理解,诸如那些在常用字典中限定的那些术语应当被解释为具有与其在相关技术以及本申请的背景下的含义一致的含义,且将不解释为具有理想化或过度形式上的含义,除非本文明确如此限定。Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be construed to have meanings consistent with their meanings in the context of the relevant art and the present application, and will not be construed as having idealized or excessively formal meanings, Unless expressly so limited herein.
图1为本申请一个实施例提供的数据传输方法的流程图。Figure 1 is a flow chart of a data transmission method provided by an embodiment of the present application.
参照图1,本申请一个实施例提供一种数据传输方法,该方法可以应用于终端设备,该方法包括:Referring to Figure 1, one embodiment of the present application provides a data transmission method, which can be applied to terminal devices. The method includes:
步骤100、在检测到终端设备息屏的情况下,预测本次息屏的预估时长。Step 100: When it is detected that the screen of the terminal device is off, predict the estimated duration of the screen off this time.
在一些示例性实施例中,可以采用本领域技术人员熟知的方式预测本次息屏的预估时长。In some exemplary embodiments, the estimated duration of the current pause screen can be predicted using methods well known to those skilled in the art.
在一些示例性实施例中,预测本次息屏的预估时长包括:获取终端设备的息屏时刻和息屏方式;根据息屏时刻和息屏方式预测所述预估时长。In some exemplary embodiments, predicting the estimated duration of the current screen pause period includes: obtaining the screen pause moment and screen pause mode of the terminal device; and predicting the estimated duration based on the screen pause moment and screen pause mode.
在一些示例性的实施方式中,可以结合历史的息屏时刻、息屏方式,及其对应的息屏时长,基于本次息屏的息屏时刻和息屏方式来预测本次息屏的预估时长。In some exemplary implementations, historical breath-holding moments, breath-holding modes, and their corresponding breath-holding durations can be combined to predict the current breath-holding time and breath-holding mode based on the current breath-holding time and breath-holding mode. Estimate the duration.
在另一些示例性实施例中,根据息屏时刻和息屏方式预测预估时长包括:确定息屏时刻对应的日期类别、息屏时刻所处的时间段;将息屏时刻、息屏方式和息屏时刻所处的时间段输入到日期类别对应的预测模型中得到预估时长。In other exemplary embodiments, predicting the estimated duration based on the screen-breathing moment and the screen-breathing mode includes: determining the date category corresponding to the screen-blanking moment and the time period in which the screen-blanking moment is located; The time period in which the screen pause moment is located is input into the prediction model corresponding to the date category to obtain the estimated duration.
在一些示例性实施例中,息屏时刻是指终端设备的屏幕熄灭的时刻。In some exemplary embodiments, the screen-off moment refers to the moment when the screen of the terminal device turns off.
在一些示例性实施例中,息屏方式分为手动息屏方式和自动息屏方式,由于这两种方式下用户的状态是不同的,具体的,手动息屏方式说明用户可能已经暂时完成了终端设备上的某项操作,或者需要临时息屏规避一下外在的突发因素,自动息屏方式大多是用户希望屏幕亮着,可能是等待倒计时抢购商品,也可能是抄录终端设备上的一段文字,较长时间没有点击屏幕。不同的息屏方式对模型训练结果和预测结果产生影响,因此需要增加息屏方式作为特征进行预测。In some exemplary embodiments, the screen rest mode is divided into a manual screen rest mode and an automatic screen rest mode. Since the user's status is different in these two modes, specifically, the manual screen rest mode indicates that the user may have temporarily completed the screen rest mode. A certain operation on the terminal device may require temporary screen suspension to avoid external unexpected factors. Most of the automatic screen suspension methods are used by users who want the screen to be on. This may be to wait for the countdown to buy goods, or to copy a paragraph on the terminal device. Text, no screen clicks for a long time. Different resting modes have an impact on the model training results and prediction results, so it is necessary to add the resting mode as a feature for prediction.
例如,上述息屏方式可以是息屏方式集合S={s1,s2}中的元素,s1表示手动息屏方式,s2表示自动息屏方式。For example, the above-mentioned screen-resting mode may be an element in the screen-resting mode set S={s1, s2}, s1 represents the manual screen-resting mode, and s2 represents the automatic screen-closing mode.
在一些示例性实施例中,息屏时刻对应的日期类别是指息屏时刻所在的日期所属的日期 类别。例如对于日期类别集合D={d1,d2,……,dn1},d1表示工作日,d2表示节假日,d3表示购物节,等等。那么如果息屏时刻对应的日期是工作日,则认为息屏时刻对应的日期类别为工作日,以此类推。In some exemplary embodiments, the date category corresponding to the screen-stop moment refers to the date to which the date of the screen-stop moment belongs. category. For example, for the date category set D={d1, d2,..., dn1}, d1 represents working days, d2 represents holidays, d3 represents shopping days, and so on. Then if the date corresponding to the screen off moment is a working day, the date category corresponding to the screen off moment is considered to be a working day, and so on.
在一些示例性实施例中,将一天按照预定标准划分成Y段,比如统一每段X分钟(如5分钟),那么一天可以划分成1440/X=Y段,表示成时间段集合Y={y1,y2,……,ym},y1表示第1个时间段,y2表示第2个时间段,以此类推;或者,根据时间段进行划分,比如00:00-6:00按照每段X1分钟进行划分,6:00-9:00按照每段X2分钟进行划分,依次类推,得到Y段。In some exemplary embodiments, a day is divided into Y segments according to predetermined standards, such as each segment is uniformly X minutes (such as 5 minutes), then the day can be divided into 1440/X=Y segments, expressed as a set of time segments Y={ y1, y2,...,ym}, y1 represents the first time period, y2 represents the second time period, and so on; or, divide according to the time period, such as 00:00-6:00 according to each period X1 Minutes are divided, and 6:00-9:00 is divided into X2 minutes per segment, and so on, to get Y segments.
这样,就可以计算出息屏时刻对应的是哪一个时间段,也就是息屏时刻所处的时间段。In this way, it is possible to calculate which time period corresponds to the screen-off moment, that is, the time period in which the screen-off moment is located.
在一些示例性实施例中,由于用户在不同的日期类别对应的日期使用终端设备的习惯不同,因此,在进行模型训练时,需要针对不同的日期类别进行不同预测模型的训练,即不同日期类别对应的预测模型不同。In some exemplary embodiments, since users have different habits of using terminal devices on dates corresponding to different date categories, when training the model, it is necessary to train different prediction models for different date categories, that is, different date categories. The corresponding prediction models are different.
本申请实施例对日期类别的具体划分方式不作限定。例如,日期类别可以是工作日、节假日、购物节等类别。The embodiment of this application does not limit the specific classification method of date categories. For example, date categories can be categories such as working days, holidays, shopping days, etc.
步骤101、根据终端设备当前的网络状态参数确定本次进行数据传输需要的目标时长。Step 101: Determine the target duration required for this data transmission according to the current network status parameters of the terminal device.
在一些示例性实施例中,网络状态参数为网络传输速率;根据终端设备当前的网络状态参数确定本次进行数据传输需要的目标时长可以包括:确定目标时长为本次进行数据传输的数据量和网络传输速率的比值。In some exemplary embodiments, the network status parameter is the network transmission rate; determining the target duration required for this data transmission according to the current network status parameter of the terminal device may include: determining the target duration as the data amount for this data transmission and The ratio of network transmission rates.
步骤102、根据预估时长和目标时长确定是否进行数据传输。Step 102: Determine whether to perform data transmission based on the estimated duration and target duration.
在一些示例性实施例中,根据预估时长和目标时长确定是否进行数据传输包括以下至少之一:在预估时长和目标时长之间的差值大于或等于预设阈值的情况下,确定进行数据传输;在预估时长和目标时长之间的差值小于预设阈值的情况下,确定不进行数据传输。In some exemplary embodiments, determining whether to perform data transmission based on the estimated duration and the target duration includes at least one of the following: when the difference between the estimated duration and the target duration is greater than or equal to a preset threshold, determine to proceed Data transmission; when the difference between the estimated duration and the target duration is less than the preset threshold, it is determined that no data transmission will be performed.
在一些示例性实施例中,预设阈值可以是正值,也可以是负值。如果预设阈值是负值,则该预设阈值的绝对值应小于某一个值,即表示本次进行数据传输需要的时间长度比本次息屏时间长度稍微长一点也认为是可以进行数据传输的。In some exemplary embodiments, the preset threshold may be a positive value or a negative value. If the preset threshold is a negative value, the absolute value of the preset threshold should be less than a certain value, which means that the time required for data transmission this time is slightly longer than the screen time, and the data transmission is considered possible. of.
在一些示例性实施例中,预设阈值可以根据实际情况由工程师随意设定。In some exemplary embodiments, the preset threshold can be set arbitrarily by engineers according to actual conditions.
在一些示例性实施例中,该方法还包括:将终端设备在预设历史时间段内的历史息屏数据发送给服务器;其中,历史息屏数据包括:历史息屏时刻、下一次历史亮屏时刻、历史息屏方式、历史日期类别;接收服务器发送的根据历史息屏数据进行模型训练得到的历史日期类别对应的预测模型。In some exemplary embodiments, the method further includes: sending the historical screen-off data of the terminal device within a preset historical time period to the server; wherein the historical screen-off data includes: the historical screen-off moment and the next historical screen-on time. Time, historical screen mode, historical date category; receiving the prediction model corresponding to the historical date category sent by the server through model training based on historical screen data.
在一些示例性实施例中,为了保证预测模型更好拟合用户的最新习惯,终端设备会持续获取息屏数据发送给服务器,服务器可以清楚历史息屏数据,用新的息屏数据进行模型训练,让模型的参数的权重能随着用户息屏习惯的变化而相应调整,保证预测模型能动态拟合用户的习惯。In some exemplary embodiments, in order to ensure that the prediction model better fits the user's latest habits, the terminal device will continue to obtain the screen-time data and send it to the server. The server can clear the historical screen-time data and use the new screen-time data for model training. , so that the weights of the model parameters can be adjusted accordingly as the user's screen habit changes, ensuring that the prediction model can dynamically fit the user's habits.
在本申请实施例中,只要不是当前时刻的息屏对应的息屏数据均可以认为是历史息屏数据,也就是已经发生过的息屏对应的息屏数据。In the embodiment of the present application, any interest screen data that does not correspond to the current interest screen can be considered as historical interest screen data, that is, the interest screen data corresponding to the interest screen that has already occurred.
在一些示例性实施例中,终端设备可以在每一次检测到息屏时将该次息屏对应的息屏数据发送给服务器,也可以在获得预设历史时间段内的所有历史息屏数据后,再将预设历史时间段内的所有历史息屏数据发送给服务器。 In some exemplary embodiments, the terminal device may send the breath-taking data corresponding to the breath-taking screen to the server each time it detects the breath-taking screen, or may obtain all historical breath-taking data within the preset historical time period. , and then send all historical screen data within the preset historical time period to the server.
本申请实施例提供的数据传输方法,预测本次息屏的预估时长,并基于本次息屏的预估时长和本次进行数据传输需要的目标时长确定是否进行数据传输,相比传统的在终端设备的网络状态、CPU状态、内存状态、充电状态等均低于设定的阈值时唤醒目标应用启动运行的方式,本申请实施例的数据传输方法仅需要基于本次息屏的预估时长和本次进行数据传输需要的目标时长确定是否进行数据传输,仅需要确保在进行数据传输期间不会影响用户的使用即可,因此,本申请实施例的数据传输方法更加灵活,实用,适用的场合更多,从而提高了用户的使用体验度。The data transmission method provided by the embodiment of the present application predicts the estimated duration of the current screen time, and determines whether to perform data transmission based on the estimated duration of the current screen time and the target duration required for this data transmission. Compared with the traditional The method of waking up the target application to start running when the network status, CPU status, memory status, charging status, etc. of the terminal device are all lower than the set threshold. The data transmission method in the embodiment of the present application only needs to be based on the estimation of the current screen. The duration and the target duration required for this data transmission determine whether to perform data transmission. It only needs to ensure that the user's use will not be affected during the data transmission. Therefore, the data transmission method of the embodiment of the present application is more flexible, practical, and applicable There are more occasions, thus improving the user experience.
图2为本申请另一个实施例提供的模型训练方法的流程图。Figure 2 is a flow chart of a model training method provided by another embodiment of the present application.
参照图2,本申请另一个实施例提供一种模型训练方法,该方法可以应用于服务器,该方法可以包括:Referring to Figure 2, another embodiment of the present application provides a model training method, which can be applied to a server. The method can include:
步骤200、接收终端设备发送的在预设历史时间段内的历史息屏数据;其中,历史息屏数据包括:历史息屏时刻、下一次历史亮屏时刻、历史息屏方式、历史日期类别。Step 200: Receive historical screen-holding data within a preset historical time period sent by the terminal device; wherein the historical screen-holding data includes: historical screen-holding time, next historical screen-on time, historical screen-holding mode, and historical date category.
在一些示例性实施例中,为了保证预测模型更好拟合用户的最新习惯,终端设备会持续获取息屏数据发送给服务器,服务器可以清楚历史息屏数据,用新的息屏数据进行模型训练,让模型的参数的权重能随着用户息屏习惯的变化而相应调整,保证预测模型能动态拟合用户的习惯。In some exemplary embodiments, in order to ensure that the prediction model better fits the user's latest habits, the terminal device will continue to obtain the screen-time data and send it to the server. The server can clear the historical screen-time data and use the new screen-time data for model training. , so that the weights of the model parameters can be adjusted accordingly as the user's screen habit changes, ensuring that the prediction model can dynamically fit the user's habits.
在本申请实施例中,只要不是终端设备当前时刻的息屏对应的息屏数据均可以认为是历史息屏数据,也就是已经发生过的息屏对应的息屏数据。In this embodiment of the present application, as long as the screen data does not correspond to the current screen of the terminal device, it can be considered as historical screen data, that is, the screen data corresponding to the screen that has already occurred.
在一些示例性实施例中,历史时间段可以预先随意设定,例如设定为60天。In some exemplary embodiments, the historical time period can be set arbitrarily in advance, for example, set to 60 days.
在一些示例性实施例中,在预设历史时间段内的历史息屏数据是指在预设历史时间段内发生的息屏对应的历史息屏数据。In some exemplary embodiments, the historical screen data within the preset historical time period refers to the historical screen data corresponding to the screen that occurred within the preset historical time period.
在一些示例性实施例中,历史息屏时刻是指终端设备的屏幕熄灭的时刻。In some exemplary embodiments, the historical screen-off moment refers to the moment when the screen of the terminal device turns off.
在一些示例性实施例中,下一次历史亮屏时刻是指终端设备息屏后,再次亮屏的时刻。In some exemplary embodiments, the next historical moment when the screen is turned on refers to the time when the terminal device turns on the screen again after the screen is turned off.
在一些示例性实施例中,历史息屏方式分为手动息屏方式和自动息屏方式,由于这两种方式下用户的状态是不同的,具体的,手动息屏方式说明用户可能已经暂时完成了终端设备上的某项操作,或者需要临时息屏规避一下外在的突发因素,自动息屏方式大多是用户希望屏幕亮着,可能是等待倒计时抢购商品,也可能是抄录终端设备上的一段文字,较长时间没有点击屏幕。不同的息屏方式对模型训练结果和预测结果产生影响,因此需要增加息屏方式作为特征进行预测。In some exemplary embodiments, the historical screen resting mode is divided into a manual screen resting mode and an automatic screen resting mode. Since the status of the user in these two modes is different, specifically, the manual screen resting mode indicates that the user may have temporarily completed the screen resting mode. An operation on the terminal device is interrupted, or the screen needs to be temporarily paused to avoid external emergencies. Most of the automatic screen pause methods are used by users who want the screen to be on. This may be to wait for the countdown to buy goods, or to copy the messages on the terminal device. A piece of text that has not been clicked on the screen for a long time. Different resting modes have an impact on the model training results and prediction results, so it is necessary to add the resting mode as a feature for prediction.
例如,上述历史息屏方式可以是息屏方式集合S={s1,s2}中的元素,s1表示手动息屏方式,s2表示自动息屏方式。For example, the above historical screen rest mode may be an element in the screen rest mode set S={s1, s2}, where s1 represents the manual screen rest mode and s2 represents the automatic screen rest mode.
在一些示例性实施例中,历史息屏时刻对应的历史日期类别是指历史息屏时刻所在的日期所属的日期类别。例如对于日期类别集合D={d1,d2,……,dn},d1表示工作日,d2表示节假日,d3表示购物节,等等。那么如果历史息屏时刻对应的日期是工作日,则认为历史息屏时刻对应的历史日期类别为工作日,以此类推。In some exemplary embodiments, the historical date category corresponding to the historical screen moment refers to the date category to which the date of the historical screen moment belongs. For example, for the date category set D={d1, d2,..., dn}, d1 represents working days, d2 represents holidays, d3 represents shopping days, and so on. Then if the date corresponding to the historical screen time is a working day, the historical date category corresponding to the historical screen time is considered to be a working day, and so on.
步骤201、根据历史息屏数据进行模型训练得到历史日期类别对应的预测模型。Step 201: Perform model training based on historical screen data to obtain a prediction model corresponding to the historical date category.
在一些示例性实施例中,不同终端设备的历史息屏数据应分别进行模型训练,也就是说,不同终端设备对应的预测模型不同。In some exemplary embodiments, the historical screen data of different terminal devices should be trained separately. That is to say, the prediction models corresponding to different terminal devices are different.
在一些示例性实施例中,根据历史息屏数据进行模型训练得到历史日期类别对应的预测 模型包括:将历史息屏数据按照历史日期类别进行划分;根据同一历史日期类别的历史息屏数据进行模型训练得到历史日期类别对应的预测模型。In some exemplary embodiments, model training is performed based on historical screen data to obtain predictions corresponding to historical date categories. The model includes: dividing historical screen data according to historical date categories; performing model training based on historical screen data of the same historical date category to obtain a prediction model corresponding to the historical date category.
在一些示例性实施例中,由于用户在不同的日期类别对应的日期使用终端设备的习惯不同,因此,在进行模型训练时,需要针对不同的日期类别进行不同预测模型的训练,即不同日期类别对应的预测模型不同。In some exemplary embodiments, since users have different habits of using terminal devices on dates corresponding to different date categories, when training the model, it is necessary to train different prediction models for different date categories, that is, different date categories. The corresponding prediction models are different.
本申请实施例对日期类别的具体划分方式不作限定。例如,日期类别可以是工作日、节假日、购物节等类别。The embodiment of this application does not limit the specific classification method of date categories. For example, date categories can be categories such as working days, holidays, shopping days, etc.
在一些示例性实施例中,根据同一历史日期类别的历史息屏数据进行模型训练得到历史日期类别对应的预测模型包括:对于同一历史日期类别的历史息屏数据,分别确定每一条历史息屏数据对应的训练样本;其中,训练样本包括:历史息屏时刻、下一次历史亮屏时刻、历史息屏方式、息屏时长类型、历史息屏时刻所处的时间段;根据同一历史日期类别的所有历史息屏数据对应的训练样本进行模型训练得到历史日期类别对应的预测模型。In some exemplary embodiments, performing model training based on historical screen data of the same historical date category to obtain a prediction model corresponding to the historical date category includes: for historical screen data of the same historical date category, separately determining each piece of historical screen data Corresponding training samples; among which, the training samples include: historical screen-off moment, next historical screen-on moment, historical screen-off mode, screen-off duration type, and the time period of the historical screen-off moment; according to all historical date categories The training samples corresponding to the historical information screen data are used for model training to obtain the prediction model corresponding to the historical date category.
在一些示例性实施例中,将一天按照预定标准划分成Y段,比如统一每段X分钟(如5分钟),那么一天可以划分成1440/X=Y段,表示成时间段集合Y={y1,y2,……,ym},y1表示第1个时间段,y2表示第2个时间段,以此类推;或者,根据时间段进行划分,比如00:00-6:00按照每段X1分钟进行划分,6:00-9:00按照每段X2分钟进行划分,依次类推,得到Y段。In some exemplary embodiments, a day is divided into Y segments according to predetermined standards, such as each segment is uniformly X minutes (such as 5 minutes), then the day can be divided into 1440/X=Y segments, expressed as a set of time segments Y={ y1, y2,...,ym}, y1 represents the first time period, y2 represents the second time period, and so on; or, divide according to the time period, such as 00:00-6:00 according to each period X1 Minutes are divided, and 6:00-9:00 is divided into X2 minutes per segment, and so on, to get Y segments.
这样,就可以计算出历史息屏时刻对应的是哪一个时间段,也就是历史息屏时刻所处的时间段。In this way, it is possible to calculate which time period the historical pause moment corresponds to, that is, the time period in which the historical pause moment is located.
在一些示例性实施例中,息屏时长是指下一次历史亮屏时刻和历史息屏时刻之间的时间差。In some exemplary embodiments, the screen-off duration refers to the time difference between the next historical screen-on time and the historical screen-off time.
在一些示例性实施例中,将历史息屏数据按息屏时长进行分类,息屏时长小于A0分钟的历史息屏数据记标记为n0,息屏时长在A0-A1分钟之间的历史息屏数据标记为n1,息屏时长在A1-A2分钟之间的历史息屏数据标记为n2,息屏时长在A2-A3分钟之间的历史息屏数据标记为n3,以此类推。这样,息屏时长类型可以认为是息屏时长类型集合N={n0,n1,n2,……}中的元素,n0表示息屏时长小于A0分钟,n1表示息屏时长在A0-A1分钟之间,以此类推。In some exemplary embodiments, historical screen data is classified according to screen duration. Historical screen data with a screen duration less than A0 minutes are marked as n0, and historical screen data with a screen duration between A0 and A1 minutes are marked. The data is marked as n1, the historical screen data with a screen time between A1 and A2 minutes is marked as n2, the historical screen data with a screen time between A2 and A3 minutes is marked as n3, and so on. In this way, the screen duration type can be considered as an element in the screen duration type set N = {n0, n1, n2,...}, n0 means that the screen time is less than A0 minutes, n1 means that the screen time is between A0-A1 minutes. time, and so on.
在一些示例性实施例中,模型训练过程中,将训练样本中的历史息屏时刻、历史息屏方式、历史息屏时刻所处的时间段作为预测模型的输入,将训练样本中的下一次历史亮屏时刻和历史息屏时刻之间的差值作为预测模型的输出进行模型训练,模型训练过程中会用到息屏时长类型进行相关计算。In some exemplary embodiments, during the model training process, the historical screen time, historical screen mode, and the time period of the historical screen time in the training samples are used as the input of the prediction model, and the next time in the training sample is The difference between the historical screen-on time and the historical screen-off time is used as the output of the prediction model for model training. During the model training process, the screen-off duration type will be used for related calculations.
在一些示例性实施例中,模型训练可以是对决策树(DT,Decision Tree)、逻辑回归(LR,Logistic Regression)、支持向量机(SVM,Support Vector Machine)等经典机器学习算法的训练,也可以是对全连接神经网络、卷积神经网络(CNN,Convolutional Neural Networks)、循环神经网络(RNN,Recurrent Neural Network)、长短期记忆网络(LSTM,Long Short-Term Memory)等神经网络模型中的一个或多个模型的组合的训练。In some exemplary embodiments, model training may be the training of classic machine learning algorithms such as decision tree (DT, Decision Tree), logistic regression (LR, Logistic Regression), support vector machine (SVM, Support Vector Machine), etc. It can be used for neural network models such as fully connected neural networks, convolutional neural networks (CNN, Convolutional Neural Networks), recurrent neural networks (RNN, Recurrent Neural Networks), long short-term memory networks (LSTM, Long Short-Term Memory), etc. Training of a combination of one or more models.
步骤202、将历史日期类别对应的预测模型发送给终端设备。Step 202: Send the prediction model corresponding to the historical date category to the terminal device.
为了更好的呈现本申请实施例的模型训练方法和数据传输方法,下面通过一个具体示例详细描述模型训练过程和数据传输过程,所列举示例不用于限定本申请实施例的保护范围。 In order to better present the model training method and data transmission method of the embodiment of the present application, the model training process and the data transmission process are described in detail below through a specific example. The examples listed are not used to limit the protection scope of the embodiment of the present application.
示例Example
本示例描述模型训练过程和数据传输过程,包括:This example describes the model training process and data transmission process, including:
1、终端设备在每一次检测到息屏时记录该次息屏对应的息屏数据,将该次息屏对应的息屏数据发送给服务器。1. Each time the terminal device detects the interest screen, it records the interest screen data corresponding to the interest screen, and sends the interest screen data corresponding to the interest screen to the server.
本步骤中,息屏数据包括息屏时刻t1、下一次亮屏时刻t2、息屏方式si和日期类别dj。i,j为大于或等于1的整数。也就是说,息屏数据可以采用一个四元组(dj,t1,t2,si)来表示。In this step, the screen rest data includes the screen rest time t1, the next screen on time t2, the screen rest mode si, and the date category dj. i and j are integers greater than or equal to 1. In other words, the information screen data can be represented by a four-tuple (dj, t1, t2, si).
其中,息屏时刻t1是指终端设备的屏幕熄灭的时刻。Among them, the screen-off time t1 refers to the time when the screen of the terminal device goes out.
其中,下一次亮屏时刻t2是指终端设备息屏后,再次亮屏的时刻。The next time the screen is turned on t2 refers to the time when the terminal device turns on the screen again after the screen is turned off.
其中,息屏方式si为息屏方式集合S={s1,s2}中的元素,s1表示手动息屏方式,s2表示自动息屏方式。Among them, the screen rest mode si is an element in the screen rest mode set S = {s1, s2}, s1 represents the manual screen rest mode, and s2 represents the automatic screen rest mode.
其中,日期类别dj为日期类别集合D={d1,d2,……,dn1}中的元素,d1表示工作日,d2表示节假日,d3表示购物节,等等。Among them, the date category dj is an element in the date category set D = {d1, d2,..., dn1}, d1 represents a working day, d2 represents a holiday, d3 represents a shopping day, and so on.
本步骤中,如果终端设备的息屏行为已经结束,则可以认为该次息屏对应的息屏数据是历史息屏数据。In this step, if the screen-holding behavior of the terminal device has ended, the screen-holding data corresponding to the screen-holding time can be considered to be historical screen-holding data.
2、服务器接收到终端设备在预设历史时间段内的历史息屏数据,将历史息屏数据按照历史日期类别进行划分,对于同一历史日期类别的历史息屏数据,分别确定每一条历史息屏数据对应的训练样本;根据同一历史日期类别的所有历史息屏数据对应的训练样本进行模型训练得到历史日期类别对应的预测模型。2. The server receives the historical screen data of the terminal device within the preset historical time period, divides the historical screen data according to historical date categories, and determines each piece of historical screen data for the historical screen data of the same historical date category. Training samples corresponding to the data; perform model training based on the training samples corresponding to all historical screen data of the same historical date category to obtain a prediction model corresponding to the historical date category.
在本步骤中,历史息屏数据对应的训练样本包括:历史息屏时刻t1、下一次历史亮屏时刻t2、历史息屏方式si、息屏时长类型nk、历史息屏时刻所处的时间段yp。In this step, the training samples corresponding to the historical screen-disabled data include: historical screen-disabled time t1, the next historical screen-disabled moment t2, historical screen-disabled mode si, screen-disabled duration type nk, and the time period of the historical screen-disabled moment. yp.
其中,将历史息屏数据按息屏时长进行分类,息屏时长小于A0分钟的历史息屏数据记标记为n0,息屏时长在A0-A1分钟之间的历史息屏数据标记为n1,息屏时长在A1-A2分钟之间的历史息屏数据标记为n2,息屏时长在A2-A3分钟之间的历史息屏数据标记为n3,以此类推。这样,息屏时长类型nk可以认为是息屏时长类型集合N={n0,n1,n2,……}中的元素,n0表示息屏时长小于A0分钟,n1表示息屏时长在A0-A1分钟之间,以此类推。Among them, the historical screen data is classified according to the screen time. The historical screen data with a screen time of less than A0 minutes is marked as n0. The historical screen data with a screen time between A0 and A1 minutes is marked as n1. The historical screen data with a screen duration between A1 and A2 minutes is marked as n2, the historical screen data with a screen duration between A2 and A3 minutes is marked as n3, and so on. In this way, the screen time type nk can be considered as an element in the screen time type set N = {n0, n1, n2,...}, n0 means that the screen time is less than A0 minutes, n1 means that the screen time is between A0 and A1 minutes. in between, and so on.
其中,将一天按照预定标准划分成Y段,比如统一每段X分钟(如5分钟),那么一天可以划分成1440/X=Y段,表示成时间段集合Y={y1,y2,……,ym},y1表示第1个时间段,y2表示第2个时间段,以此类推;或者,根据时间段进行划分,比如00:00-6:00按照每段X1分钟进行划分,6:00-9:00按照每段X2分钟进行划分,依次类推,得到Y段。Among them, the day is divided into Y segments according to predetermined standards, for example, each segment is unified to X minutes (such as 5 minutes), then the day can be divided into 1440/X=Y segments, expressed as a time segment set Y={y1, y2,... , ym}, y1 represents the first time period, y2 represents the second time period, and so on; or, divide according to the time period, for example, 00:00-6:00 is divided according to X1 minutes per period, 6: 00-9:00 is divided into X2 minutes per segment, and so on, to get Y segment.
这样,就可以计算出历史息屏时刻对应的是哪一个时间段,也就是历史息屏时刻所处的时间段。也就是说,历史息屏时刻所处的时间段yp可以认为是时间段集合Y={y1,y2,……,ym}中的元素。In this way, it is possible to calculate which time period the historical pause moment corresponds to, that is, the time period in which the historical pause moment is located. In other words, the time period yp where the historical screen moment is located can be considered as the elements in the time period set Y = {y1, y2,..., ym}.
3、服务器将历史日期类别对应的预测模型发送给终端设备。3. The server sends the prediction model corresponding to the historical date category to the terminal device.
4、在检测到终端设备息屏的情况下,终端设备获取终端设备的息屏时刻和息屏方式。4. When the terminal device detects that the screen is off, the terminal device obtains the screen off time and screen off mode of the terminal device.
5、终端设备确定息屏时刻对应的日期类别、息屏时刻所处的时间段。5. The terminal device determines the date category corresponding to the screen-off moment and the time period of the screen-off moment.
6、终端设备将息屏时刻、息屏方式和息屏时刻所处的时间段输入到日期类别对应的预测模型中得到本次息屏的预估时长。6. The terminal device inputs the screen pause moment, screen pause mode, and the time period of the screen pause moment into the prediction model corresponding to the date category to obtain the estimated duration of the current screen pause.
7、终端设备确定本次进行数据传输需要的目标时长为本次进行数据传输的数据量和网络 传输速率的比值。7. The terminal device determines that the target duration required for this data transmission is the data volume and network for this data transmission. The ratio of transmission rates.
8、在预估时长和目标时长之间的差值大于或等于预设阈值的情况下,终端设备确定进行数据传输;在预估时长和目标时长之间的差值小于预设阈值的情况下,终端设备确定不进行数据传输。8. When the difference between the estimated duration and the target duration is greater than or equal to the preset threshold, the terminal device determines to transmit data; when the difference between the estimated duration and the target duration is less than the preset threshold , the terminal device determines not to transmit data.
本申请另一个实施例提供一种电子设备,包括:至少一个处理器;存储器,存储器上存储有至少一个程序,当至少一个程序被至少一个处理器执行时,实现上述任意一种数据传输方法,或上述任意一种模型训练方法。Another embodiment of the present application provides an electronic device, including: at least one processor; and a memory. At least one program is stored on the memory. When at least one program is executed by at least one processor, any one of the above data transmission methods is implemented. Or any of the above model training methods.
其中,处理器为具有数据处理能力的器件,其包括但不限于中央处理器(CPU)等;存储器为具有数据存储能力的器件,其包括但不限于随机存取存储器(RAM,更具体如SDRAM、DDR等)、只读存储器(ROM)、带电可擦可编程只读存储器(EEPROM)、闪存(FLASH)。Among them, the processor is a device with data processing capabilities, including but not limited to a central processing unit (CPU), etc.; the memory is a device with data storage capabilities, including but not limited to random access memory (RAM, more specifically such as SDRAM). , DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory (FLASH).
在一些实施例中,处理器、存储器通过总线相互连接,进而与计算设备的其它组件连接。In some embodiments, the processor and memory are connected to each other through a bus, and then to other components of the computing device.
本申请另一个实施例提供一种计算机可读介质,计算机可读介质上存储有计算机程序,计算机程序被处理器执行时实现上述任意一种数据传输方法,或上述任意一种模型训练方法。Another embodiment of the present application provides a computer-readable medium. A computer program is stored on the computer-readable medium. When the computer program is executed by a processor, any of the above-mentioned data transmission methods or any of the above-mentioned model training methods are implemented.
图3为本申请另一个实施例提供的数据传输装置的组成框图。Figure 3 is a block diagram of a data transmission device provided by another embodiment of the present application.
参照图3,本申请另一个实施例提供一种数据传输方法,包括:预测模块301,设置为在检测到终端设备息屏的情况下,预测本次息屏的预估时长;确定模块302,设置为根据所述终端设备当前的网络状态参数确定本次进行数据传输需要的目标时长;根据预估时长和所述目标时长确定是否进行数据传输。Referring to Figure 3, another embodiment of the present application provides a data transmission method, including: a prediction module 301, configured to predict the estimated duration of the current screen pause when the terminal device is detected to pause the screen; a determination module 302, It is set to determine the target duration required for this data transmission based on the current network status parameters of the terminal device; and determine whether to perform data transmission based on the estimated duration and the target duration.
在一些示例性实施例中,预测模块301具体设置为:在检测到终端设备息屏的情况下,获取所述终端设备的息屏时刻和息屏方式;根据所述息屏时刻和所述息屏方式预测所述预估时长。In some exemplary embodiments, the prediction module 301 is specifically configured to: when detecting that the terminal device is screen-stopping, obtain the screen-off time and screen-off mode of the terminal device; Screen mode predicts the estimated duration.
在一些示例性实施例中,预测模块301具体设置为采用以下方式实现所述根据所述息屏时刻和所述息屏方式预测所述预估时长:确定所述息屏时刻对应的日期类别,以及所述息屏时刻所处的时间段;将所述息屏时刻、所述息屏方式和所述息屏时刻所处的时间段输入到所述日期类别对应的预测模型中得到预估时长。In some exemplary embodiments, the prediction module 301 is specifically configured to implement the prediction of the estimated duration according to the screen-blanking moment and the screen-blanking mode in the following manner: determine the date category corresponding to the screen-blanking moment, and the time period in which the screen-blanking moment is located; input the screen-blanking moment, the screen-blanking mode and the time period in which the screen-blanking moment is located into the prediction model corresponding to the date category to obtain the estimated duration .
在一些示例性实施例中,还包括:第一模型训练模块303,设置为将所述终端设备在预设历史时间段内的历史息屏数据发送给服务器;其中,所述历史息屏数据包括:历史息屏时刻、下一次历史亮屏时刻、历史息屏方式、历史日期类别;接收所述服务器发送的根据所述历史息屏数据进行模型训练得到的所述历史日期类别对应的预测模型。In some exemplary embodiments, it also includes: a first model training module 303, configured to send historical breath-screen data of the terminal device within a preset historical time period to the server; wherein the historical breath-screen data includes : historical screen-off moment, next historical screen-on moment, historical screen-off mode, and historical date category; receiving a prediction model corresponding to the historical date category sent by the server and obtained by model training based on the historical screen-off data.
在一些示例性实施例中,所述网络状态参数为网络传输速率;确定模块302具体设置为采用以下方式实现所述根据所述终端设备当前的网络状态参数确定目标时长:确定目标时长为本次进行数据传输的数据量和所述网络传输速率的比值。In some exemplary embodiments, the network status parameter is a network transmission rate; the determination module 302 is specifically configured to implement the determination of the target duration according to the current network status parameter of the terminal device in the following manner: determine the target duration as this time The ratio of the amount of data transmitted to the network transmission rate.
在一些示例性实施例中,确定模块302具体设置为采用以下至少之一方式实现所述根据所述预估时长和所述目标时长确定是否进行数据传输:在所述预估时长和所述目标时长之间的差值大于或等于预设阈值的情况下,确定进行数据传输;在所述预估时长和所述目标时长之间的差值小于预设阈值的情况下,确定不进行数据传输。In some exemplary embodiments, the determination module 302 is specifically configured to use at least one of the following methods to determine whether to perform data transmission based on the estimated duration and the target duration: When the difference between the duration is greater than or equal to the preset threshold, it is determined to perform data transmission; when the difference between the estimated duration and the target duration is less than the preset threshold, it is determined not to perform data transmission .
上述数据传输装置的具体实现过程与前述实施例的数据传输方法的具体实现过程相同,这里不再赘述。The specific implementation process of the above data transmission device is the same as the specific implementation process of the data transmission method in the previous embodiment, and will not be described again here.
图4为本申请另一个实施例提供的模型训练装置的组成框图。 Figure 4 is a block diagram of a model training device provided by another embodiment of the present application.
参照图4,本申请另一个实施例提供一种模型训练方法,包括:接收模块401,设置为接收终端设备发送的在预设历史时间段内的历史息屏数据;其中,所述历史息屏数据包括:历史息屏时刻、下一次历史亮屏时刻、历史息屏方式、历史日期类别;第二模型训练模块402,设置为根据所述历史息屏数据进行模型训练得到所述历史日期类别对应的预测模型;发送模块403,设置为将所述历史日期类别对应的预测模型发送给所述终端设备。Referring to Figure 4, another embodiment of the present application provides a model training method, including: a receiving module 401, configured to receive historical information screen data within a preset historical time period sent by a terminal device; wherein, the historical information screen data The data includes: historical screen-off moment, next historical screen-on moment, historical screen-off mode, and historical date category; the second model training module 402 is configured to perform model training based on the historical screen-off data to obtain the historical date category correspondence. The prediction model; the sending module 403 is configured to send the prediction model corresponding to the historical date category to the terminal device.
在一些示例性实施例中,第二模型训练模块402具体设置为:将所述历史息屏数据按照所述历史日期类别进行划分;根据同一所述历史日期类别的历史息屏数据进行模型训练得到所述历史日期类别对应的预测模型。In some exemplary embodiments, the second model training module 402 is specifically configured to: divide the historical screen data according to the historical date category; perform model training based on the historical screen data of the same historical date category. The prediction model corresponding to the historical date category.
在一些示例性实施例中,第二模型训练模块402具体设置为采用以下方式实现所述根据同一所述历史日期类别的历史息屏数据进行模型训练得到所述历史日期类别对应的预测模型:对于同一所述历史日期类别的历史息屏数据,分别确定每一条所述历史息屏数据对应的训练样本;其中,所述训练样本包括:所述历史息屏时刻、所述下一次历史亮屏时刻、所述历史息屏方式、息屏时长类型、所述历史息屏时刻所处的时间段;根据同一所述历史日期类别的所有所述历史息屏数据对应的训练样本进行模型训练得到所述历史日期类别对应的预测模型。In some exemplary embodiments, the second model training module 402 is specifically configured to perform model training based on historical screen data of the same historical date category to obtain a prediction model corresponding to the historical date category in the following manner: for For historical screen data of the same historical date category, a training sample corresponding to each piece of historical screen data is determined respectively; wherein, the training samples include: the historical screen screen moment and the next historical screen light time. , the historical screen mode, screen duration type, and the time period in which the historical screen moment is located; perform model training based on the training samples corresponding to all the historical screen data of the same historical date category to obtain the above Prediction model corresponding to historical date category.
上述模型训练装置的具体实现过程与前述实施例的模型训练方法的具体实现过程相同,这里不再赘述。The specific implementation process of the above model training device is the same as the specific implementation process of the model training method in the previous embodiment, and will not be described again here.
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统、装置中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其它数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM、ROM、EEPROM、闪存或其它存储器技术、CD-ROM、数字多功能盘(DVD)或其它光盘存储、磁盒、磁带、磁盘存储或其它磁存储器、或者可以用于存储期望的信息并且可以被计算机访问的任何其它的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其它传输机制之类的调制数据信号中的其它数据,并且可包括任何信息递送介质。Those of ordinary skill in the art can understand that all or some steps, systems, and functional modules/units in the devices disclosed above can be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may consist of several physical components. Components execute cooperatively. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit . Such software may be distributed on computer-readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). As is known to those of ordinary skill in the art, the term computer storage media includes volatile and nonvolatile media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. removable, removable and non-removable media. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disk (DVD) or other optical disk storage, magnetic cassettes, tapes, disk storage or other magnetic storage, or may be used Any other medium that stores the desired information and can be accessed by a computer. Additionally, it is known to those of ordinary skill in the art that communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media .
本文已经公开了示例实施例,并且虽然采用了具体术语,但它们仅用于并仅应当被解释为一般说明性含义,并且不用于限制的目的。在一些实例中,对本领域技术人员显而易见的是,除非另外明确指出,否则可单独使用与特定实施例相结合描述的特征、特性和/或元素,或可与其它实施例相结合描述的特征、特性和/或元件组合使用。因此,本领域技术人员将理解,在不脱离由所附的权利要求阐明的本申请的范围的情况下,可进行各种形式和细节上的改变。 Example embodiments have been disclosed herein, and although specific terms are employed, they are used and should be interpreted in a general illustrative sense only and not for purpose of limitation. In some instances, it will be apparent to those skilled in the art that features, characteristics and/or elements described in connection with a particular embodiment may be used alone, or may be used in conjunction with other embodiments, unless expressly stated otherwise. Features and/or components used in combination. Accordingly, it will be understood by those skilled in the art that various changes in form and details may be made without departing from the scope of the application as set forth in the appended claims.

Claims (11)

  1. 一种数据传输方法,包括:A data transmission method including:
    在检测到终端设备息屏的情况下,预测本次息屏的预估时长;When the terminal device's screen is detected to be off, predict the estimated duration of the screen off;
    根据所述终端设备当前的网络状态参数确定本次进行数据传输需要的目标时长;Determine the target duration required for this data transmission according to the current network status parameters of the terminal device;
    根据所述预估时长和所述目标时长确定是否进行数据传输。Determine whether to perform data transmission based on the estimated duration and the target duration.
  2. 根据权利要求1所述的数据传输方法,其中,所述预测本次息屏的预估时长包括:The data transmission method according to claim 1, wherein the predicting the estimated duration of this pause screen includes:
    获取所述终端设备的息屏时刻和息屏方式;Obtain the screen pause time and screen pause mode of the terminal device;
    根据所述息屏时刻和所述息屏方式预测所述预估时长。The estimated duration is predicted based on the screen-off moment and the screen-off mode.
  3. 根据权利要求2所述的数据传输方法,其中,所述根据所述息屏时刻和所述息屏方式预测所述预估时长包括:The data transmission method according to claim 2, wherein predicting the estimated duration based on the screen-off moment and the screen-off mode includes:
    确定所述息屏时刻对应的日期类别,以及所述息屏时刻所处的时间段;Determine the date category corresponding to the screen-off moment and the time period in which the screen-off moment is located;
    将所述息屏时刻、所述息屏方式和所述息屏时刻所处的时间段输入到所述日期类别对应的预测模型中得到所述预估时长。The estimated duration is obtained by inputting the screen pause moment, the screen pause mode, and the time period in which the screen pause moment is located into the prediction model corresponding to the date category.
  4. 根据权利要求3所述的数据传输方法,该方法还包括:The data transmission method according to claim 3, further comprising:
    将所述终端设备在预设历史时间段内的历史息屏数据发送给服务器;其中,所述历史息屏数据包括:历史息屏时刻、下一次历史亮屏时刻、历史息屏方式、历史日期类别;Send the historical screen-disabled data of the terminal device within the preset historical time period to the server; wherein the historical screen-disabled data includes: historical screen-disabled moment, the next historical screen-disabled moment, historical screen-disabled mode, and historical date. category;
    接收所述服务器发送的根据所述历史息屏数据进行模型训练得到的所述历史日期类别对应的预测模型。Receive the prediction model corresponding to the historical date category and obtained by model training based on the historical screen data and sent by the server.
  5. 根据权利要求1-4任意一项所述的数据传输方法,其中,所述网络状态参数为网络传输速率;The data transmission method according to any one of claims 1-4, wherein the network status parameter is a network transmission rate;
    所述根据所述终端设备当前的网络状态参数确定本次进行数据传输需要的目标时长包括:Determining the target duration required for this data transmission based on the current network status parameters of the terminal device includes:
    确定所述目标时长为本次进行数据传输的数据量和所述网络传输速率的比值。The target duration is determined as the ratio of the amount of data to be transmitted this time and the network transmission rate.
  6. 根据权利要求1-4任意一项所述的数据传输方法,其中,所述根据预估时长和所述目标时长确定是否进行数据传输包括以下至少之一:The data transmission method according to any one of claims 1 to 4, wherein determining whether to perform data transmission based on the estimated duration and the target duration includes at least one of the following:
    在所述预估时长和所述目标时长之间的差值大于或等于预设阈值的情况下,确定进行数据传输;If the difference between the estimated duration and the target duration is greater than or equal to a preset threshold, determine to perform data transmission;
    在所述预估时长和所述目标时长之间的差值小于预设阈值的情况下,确定不进行数据传输。If the difference between the estimated duration and the target duration is less than a preset threshold, it is determined not to perform data transmission.
  7. 一种模型训练方法,包括:A model training method including:
    接收终端设备发送的在预设历史时间段内的历史息屏数据;其中,所述历史息屏数据包括:历史息屏时刻、下一次历史亮屏时刻、历史息屏方式、历史日期类别;Receive historical screen pause data sent by the terminal device within a preset historical time period; wherein the historical screen pause data includes: historical screen pause moment, next historical screen turn-on moment, historical screen pause mode, and historical date category;
    根据所述历史息屏数据进行模型训练得到所述历史日期类别对应的预测模型;Perform model training based on the historical screen data to obtain a prediction model corresponding to the historical date category;
    将所述历史日期类别对应的预测模型发送给所述终端设备。Send the prediction model corresponding to the historical date category to the terminal device.
  8. 根据权利要求7所述的模型训练方法,其中,所述根据所述历史息屏数据进行模型训练得到所述历史日期类别对应的预测模型包括:The model training method according to claim 7, wherein said performing model training based on the historical screen data to obtain the prediction model corresponding to the historical date category includes:
    将所述历史息屏数据按照所述历史日期类别进行划分;Divide the historical screen data according to the historical date categories;
    根据同一所述历史日期类别的历史息屏数据进行模型训练得到所述历史日期类别对应的预测模型。 Model training is performed based on historical screen data of the same historical date category to obtain a prediction model corresponding to the historical date category.
  9. 根据权利要求8所述的模型训练方法,其中,所述根据同一所述历史日期类别的历史息屏数据进行模型训练得到所述历史日期类别对应的预测模型包括:The model training method according to claim 8, wherein said performing model training based on historical screen data of the same historical date category to obtain a prediction model corresponding to the historical date category includes:
    对于同一所述历史日期类别的历史息屏数据,分别确定每一条所述历史息屏数据对应的训练样本;其中,所述训练样本包括:所述历史息屏时刻、所述下一次历史亮屏时刻、所述历史息屏方式、息屏时长类型、所述历史息屏时刻所处的时间段;For the historical screen data of the same historical date category, a training sample corresponding to each piece of historical screen data is determined respectively; wherein, the training samples include: the historical screen time moment, the next historical screen turn-on time Time, the historical screen mode, the type of screen duration, and the time period in which the historical screen moment is located;
    根据同一所述历史日期类别的所有所述历史息屏数据对应的训练样本进行模型训练得到所述历史日期类别对应的预测模型。Model training is performed based on the training samples corresponding to all the historical screen data of the same historical date category to obtain a prediction model corresponding to the historical date category.
  10. 一种电子设备,包括:An electronic device including:
    至少一个处理器;at least one processor;
    存储器,所述存储器上存储有至少一个程序,当所述至少一个程序被所述至少一个处理器执行时,实现权利要求1-6任意一项所述的数据传输方法,或权利要求7-9任意一项所述的模型训练方法。Memory, at least one program is stored on the memory, and when the at least one program is executed by the at least one processor, the data transmission method according to any one of claims 1-6 is implemented, or claims 7-9 Any of the model training methods described above.
  11. 一种计算机可读介质,所述计算机可读介质上存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1-6任意一项所述的数据传输方法,或权利要求7-9任意一项所述的模型训练方法。 A computer-readable medium with a computer program stored on the computer-readable medium. When the computer program is executed by a processor, the data transmission method of any one of claims 1-6 is implemented, or claims 7-9 Any of the model training methods described above.
PCT/CN2023/076528 2022-04-28 2023-02-16 Data transmission method, model training method, device, and computer-readable medium WO2023207267A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210478826.3A CN117015014A (en) 2022-04-28 2022-04-28 Data transmission method, model training method, device, and computer-readable medium
CN202210478826.3 2022-04-28

Publications (1)

Publication Number Publication Date
WO2023207267A1 true WO2023207267A1 (en) 2023-11-02

Family

ID=88517209

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/076528 WO2023207267A1 (en) 2022-04-28 2023-02-16 Data transmission method, model training method, device, and computer-readable medium

Country Status (2)

Country Link
CN (1) CN117015014A (en)
WO (1) WO2023207267A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110505679A (en) * 2019-08-15 2019-11-26 Oppo广东移动通信有限公司 A kind of power consumption control method of communication terminal, device and storage medium
CN111741502A (en) * 2020-06-19 2020-10-02 青岛海信移动通信技术股份有限公司 Mobile terminal and mobile communication network switching method thereof
US20210042402A1 (en) * 2018-03-28 2021-02-11 Huawei Technologies Co., Ltd. Terminal device management method and terminal device
CN113055984A (en) * 2019-12-26 2021-06-29 Oppo广东移动通信有限公司 Terminal control method and device, mobile terminal and storage medium
WO2021135859A1 (en) * 2020-01-03 2021-07-08 荣耀终端有限公司 Power consumption control method, chip system, and terminal device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210042402A1 (en) * 2018-03-28 2021-02-11 Huawei Technologies Co., Ltd. Terminal device management method and terminal device
CN110505679A (en) * 2019-08-15 2019-11-26 Oppo广东移动通信有限公司 A kind of power consumption control method of communication terminal, device and storage medium
CN113055984A (en) * 2019-12-26 2021-06-29 Oppo广东移动通信有限公司 Terminal control method and device, mobile terminal and storage medium
WO2021135859A1 (en) * 2020-01-03 2021-07-08 荣耀终端有限公司 Power consumption control method, chip system, and terminal device
CN111741502A (en) * 2020-06-19 2020-10-02 青岛海信移动通信技术股份有限公司 Mobile terminal and mobile communication network switching method thereof

Also Published As

Publication number Publication date
CN117015014A (en) 2023-11-07

Similar Documents

Publication Publication Date Title
CN108449286B (en) Network bandwidth resource allocation method and device
US10614360B2 (en) Automatically scaling neural networks based on load
WO2019180433A1 (en) Predicting using digital twins
CN111444009A (en) Resource allocation method and device based on deep reinforcement learning
US20180144251A1 (en) Server and cloud computing resource optimization method thereof for cloud big data computing architecture
US11095531B2 (en) Service-aware serverless cloud computing system
US11799901B2 (en) Predictive rate limiting system for cloud computing services
CN113422812B (en) Service chain deployment method and device
CN110875838B (en) Resource deployment method, device and storage medium
US11297161B1 (en) Systems and methods for managing an automotive edge computing environment
CN107315636B (en) Resource availability early warning method and device
CN114302407A (en) Network decision method and device, electronic equipment and storage medium
CN115905687A (en) Cold start-oriented recommendation system and method based on meta-learning graph neural network
WO2021111456A1 (en) Moderator for identifying deficient nodes in federated learning
WO2023207267A1 (en) Data transmission method, model training method, device, and computer-readable medium
CN111291883A (en) Data processing method and data processing device
CN116384513A (en) Yun Bianduan collaborative learning system and method
CN111124439A (en) Intelligent dynamic unloading algorithm with cloud edge cooperation
KR102146883B1 (en) System for managing server and user device
CN112866130B (en) Message packet interval adjusting method and device
US11943144B1 (en) Dynamic traffic management of microservices
CN112887219B (en) Message packet interval adjusting method and device
KR102531646B1 (en) Method for controlling air conditioning device based on delayed reward
WO2023098460A1 (en) Model updating method and apparatus and related device
US20240134918A1 (en) Dynamic user profile projection

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23794703

Country of ref document: EP

Kind code of ref document: A1