[go: up one dir, main page]

CN106649069A - User behavior statistical method and system - Google Patents

User behavior statistical method and system Download PDF

Info

Publication number
CN106649069A
CN106649069A CN201611238617.2A CN201611238617A CN106649069A CN 106649069 A CN106649069 A CN 106649069A CN 201611238617 A CN201611238617 A CN 201611238617A CN 106649069 A CN106649069 A CN 106649069A
Authority
CN
China
Prior art keywords
user behavior
behavior data
data
file
record
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.)
Granted
Application number
CN201611238617.2A
Other languages
Chinese (zh)
Other versions
CN106649069B (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.)
TCL Corp
Original Assignee
TCL Corp
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 TCL Corp filed Critical TCL Corp
Priority to CN201611238617.2A priority Critical patent/CN106649069B/en
Publication of CN106649069A publication Critical patent/CN106649069A/en
Application granted granted Critical
Publication of CN106649069B publication Critical patent/CN106649069B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3438Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment monitoring of user actions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3452Performance evaluation by statistical analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Evolutionary Biology (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Debugging And Monitoring (AREA)

Abstract

本发明适用于用户行为记录领域,提供了一种用户行为统计方法及系统,所述方法包括:获取当前的第一用户行为数据,并记录至用户行为文件;若在预设时间内监测到第一用户行为数据发生变化,记录变化后得到的第二用户行为数据至用户行为文件;若在预设时间内未监测到第一用户行为数据发生变化,根据第一用户行为数据,计算并记录第二用户行为数据至用户行为文件;将所述第二用户行为数据作为所述第一用户行为数据,返回执行所述监测所述第一用户行为数据是否发生变化的步骤。使得用户每个用户行为数据都能实时记录下来,同时在用户两次行为操作间隔时间时间超过预设时间时,还能预测两次行为操作之间的行为数据,使得记录的行为数据更加准确。

The present invention is applicable to the field of user behavior recording, and provides a method and system for user behavior statistics. The method includes: obtaining the current first user behavior data and recording it in the user behavior file; if the first user behavior data is detected within a preset time When the user behavior data changes, record the second user behavior data obtained after the change to the user behavior file; if no change is detected in the first user behavior data within the preset time, calculate and record the second user behavior data according to the first user behavior data. second user behavior data to the user behavior file; using the second user behavior data as the first user behavior data, returning to the step of monitoring whether the first user behavior data changes. Each user's behavior data can be recorded in real time, and at the same time, when the interval between two user behavior operations exceeds the preset time, the behavior data between the two behavior operations can also be predicted, making the recorded behavior data more accurate.

Description

一种用户行为统计方法及系统Method and system for user behavior statistics

技术领域technical field

本发明属于用户行为记录领域,尤其涉及一种用户行为统计方法及系统。The invention belongs to the field of user behavior records, and in particular relates to a user behavior statistics method and system.

背景技术Background technique

随着智能终端的广泛普及,人们的生活方式发生了极大的改变,人们对于智能终端的依赖性也越来越强。因而,基于用户具体操作行为的用户行为数据,在数量上也呈现了爆炸式的增长。“大数据”成为当今时代的一种关键技术,主要用于分析和挖掘用户行为数据的潜在规律和应用价值。用户具体的行为信息、行为特征,对服务提供者提供更好的推荐服务至关重要。With the widespread popularization of smart terminals, people's lifestyles have undergone great changes, and people's dependence on smart terminals has become stronger and stronger. Therefore, the user behavior data based on the user's specific operation behavior has also shown explosive growth in quantity. "Big data" has become a key technology in today's era, which is mainly used to analyze and mine the potential laws and application value of user behavior data. User specific behavioral information and behavioral characteristics are crucial for service providers to provide better recommendation services.

现有技术中,一般采用每隔一段时间,就当前的用户行为数据写入相应的记录文件的方法,来记录用户行为数据。由于应用程序有时会出现非正常的关闭的情况,如智能终端运行内存资源紧张时强制关闭应用程序等情况,此时,若未到达预定的用户行为数据记录时间,则无法记录从上一次采集到此次应用程序关闭之间的用户行为数据,导致用户行为数据的丢失。In the prior art, a method of writing the current user behavior data into a corresponding record file is generally adopted at regular intervals to record the user behavior data. Because the application sometimes shuts down abnormally, such as when the smart terminal runs out of memory resources, the application is forcibly closed. The user behavior data between the closing of the application will result in the loss of user behavior data.

发明内容Contents of the invention

有鉴于此,本发明提供了一种用户行为统计方法及系统,以解决现有技术中当应用程序非正常关闭时,无法记录从上一次记录到此次应用程序关闭之间的用户行为数据,导致用户行为数据的丢失的问题。In view of this, the present invention provides a user behavior statistics method and system to solve the problem that in the prior art, when the application program is closed abnormally, it is impossible to record the user behavior data between the last recording and the application program closing. The problem that leads to the loss of user behavior data.

第一方面,提供了一种用户行为统计方法,包括:In the first aspect, a user behavior statistics method is provided, including:

获取当前的第一用户行为数据,并记录至用户行为文件;Obtain the current first user behavior data and record it to the user behavior file;

监测所述第一用户行为数据是否发生变化;monitoring whether the first user behavior data changes;

若在预设时间内监测到所述第一用户行为数据发生变化,记录变化后得到的第二用户行为数据至所述用户行为文件;If it is detected that the first user behavior data changes within the preset time, record the second user behavior data obtained after the change to the user behavior file;

若在所述预设时间内未监测到所述第一用户行为数据发生变化,根据所述第一用户行为数据,计算并记录所述第二用户行为数据至所述用户行为文件;If no change is detected in the first user behavior data within the preset time, calculate and record the second user behavior data to the user behavior file according to the first user behavior data;

将所述第二用户行为数据作为所述第一用户行为数据,返回执行所述监测所述第一用户行为数据是否发生变化的步骤。Using the second user behavior data as the first user behavior data, return to the step of monitoring whether the first user behavior data changes.

第二方面,提供了一种用户行为统计系统,包括:In the second aspect, a user behavior statistics system is provided, including:

获取单元,用于获取当前的第一用户行为数据,并记录至用户行为文件;an acquisition unit, configured to acquire the current first user behavior data, and record it to the user behavior file;

监测单元,用于监测所述第一用户行为数据是否发生变化;a monitoring unit, configured to monitor whether the first user behavior data changes;

第一记录单元,用于若在预设时间内监测到所述第一用户行为数据发生变化,记录变化后得到的第二用户行为数据至所述用户行为文件;The first recording unit is configured to record the second user behavior data obtained after the change to the user behavior file if it is detected that the first user behavior data changes within a preset time;

第一计算单元,用于若在所述预设时间内未监测到所述第一用户行为数据发生变化,根据所述第一用户行为数据,计算并记录所述第二用户行为数据至所述用户行为文件;The first computing unit is configured to calculate and record the second user behavior data to the user behavior files;

返回单元,用于将所述第二用户行为数据作为所述第一用户行为数据,返回执行所述监测所述第一用户行为数据是否发生变化的步骤。A returning unit, configured to use the second user behavior data as the first user behavior data, and return to execute the step of monitoring whether the first user behavior data changes.

在本发明中,实时监测第一用户行为数据的变化并记录在用户行为文件中,当预设时间内没有监测到第一用户行为数据变化,则对第二用户行为数据进行预测计算,并将预测得到的第二用户行为数据记录在在用户行为文件中。使得用户每个行为操作产生的用户行为数据都能被实时记录下来,即使在应用应用程序非正常关闭时,也能及时记录上一次记录到此次应用程序关闭之间的用户行为数据,同时在用户相连两次行为操作间隔时间时间超过预设时间时,还能预测相连两次行为操作之间的行为数据,使得记录的行为数据更加准确。In the present invention, the change of the first user behavior data is monitored in real time and recorded in the user behavior file. When no change of the first user behavior data is detected within the preset time, the second user behavior data is predicted and calculated, and the The predicted second user behavior data is recorded in the user behavior file. The user behavior data generated by each behavior operation of the user can be recorded in real time. Even when the application program is closed abnormally, the user behavior data between the last recording and the closing of the application program can be recorded in time. When the interval between two connected behavioral operations of the user exceeds the preset time, the behavioral data between the two connected behavioral operations can also be predicted, making the recorded behavioral data more accurate.

附图说明Description of drawings

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

图1是本发明实施例1中用户行为统计方法的一流程图;Fig. 1 is a flowchart of the user behavior statistics method in the embodiment 1 of the present invention;

图2是本发明实施例2中用户行为统计系统的一结构框图。Fig. 2 is a structural block diagram of the user behavior statistics system in Embodiment 2 of the present invention.

具体实施方式detailed description

以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本发明。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本发明。在其它情况中,省略对众所周知的系统、电路以及方法的详细说明,以免不必要的细节妨碍本发明的描述。In the following description, for purposes of illustration rather than limitation, specific details, such as specific system architectures and techniques, are set forth in order to provide a thorough understanding of the present invention. It will be apparent, however, to one skilled in the art that the invention may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.

本发明提供了一种用户行为统计方法,该方法包括:获取当前的第一用户行为数据,并记录至用户行为文件;监测所述第一用户行为数据是否发生变化;若在预设时间内监测到所述第一用户行为数据发生变化,记录变化后得到的第二用户行为数据至所述用户行为文件;若在所述预设时间内未监测到所述第一用户行为数据发生变化,根据所述第一用户行为数据,计算并记录所述第二用户行为数据至所述用户行为文件。The present invention provides a method for user behavior statistics, the method comprising: acquiring the current first user behavior data and recording it in a user behavior file; monitoring whether the first user behavior data changes; When the first user behavior data changes, record the second user behavior data obtained after the change to the user behavior file; if no change is detected in the first user behavior data within the preset time, according to For the first user behavior data, calculate and record the second user behavior data to the user behavior file.

用户行为数据包括开关机数据、信源数据、应用操作数据、系统信息数据、按键操作数据及外设信息数据等。User behavior data includes switch machine data, source data, application operation data, system information data, key operation data and peripheral information data, etc.

其中开关机数据是指开机时间点数据及关机时间点数据;信源数据是指信源观看的相关记录;应用操作数据是指用户操作应用的数据,包括应用名称数据、进入应用时间点数据及离开应用时间点数据;系统信息数据是用户行为操作时,系统相关的一系列数据的统称,如应用占用内存数据等;按键操作数据主要指按键被触发时相关数据,如按键开始时间点;外设信息数据是指外部设备的相关数据,如优盘插入/拔开时间点数据和优盘容量数据等。Among them, the power-on and power-off data refer to the start-up time point data and the power-off time point data; the source data refers to the related records viewed by the source; the application operation data refers to the data of the user operating the application, including the application name data, the entry time point data and the application operation data. Data at the time point of leaving the application; system information data is a collective term for a series of data related to the system when the user acts and operates, such as memory data occupied by the application, etc.; key operation data mainly refers to relevant data when the key is triggered, such as the start time of the key; The setting information data refers to the relevant data of the external device, such as the time point data of the USB flash drive insertion/unplugging and the USB flash drive capacity data.

实际情况中,由于信源数据、系统信息数据及外设信息数据等数据,都可由按键操作数据和应用操作数据直接或间接的计算得出,因此,本说明书中,所有实施例中的用户行为数据均是以按键操作数据、应用名称数据、开机时间点数据及关机时间点数据为例进行说明,用户行为数据包括第一用户行为数据及第二用户行为数据。In actual situations, since data such as source data, system information data, and peripheral information data can be directly or indirectly calculated from key operation data and application operation data, in this specification, user behavior in all embodiments The data are all described by taking button operation data, application name data, start-up time point data, and power-off time point data as examples, and user behavior data includes first user behavior data and second user behavior data.

为了说明本发明所述的技术方案,下面通过具体实施例来进行说明。In order to illustrate the technical solutions of the present invention, specific examples are used below to illustrate.

实施例1Example 1

图1示出了本发明实施例一提供的行为数据的记录方法的实现流程,详述如下:Figure 1 shows the implementation process of the behavior data recording method provided by Embodiment 1 of the present invention, which is described in detail as follows:

步骤S101,获取当前的第一用户行为数据,并记录至用户行为文件。In step S101, the current first user behavior data is acquired and recorded in a user behavior file.

获取的第一用户行为数据,不仅是作为用户行为数据的一部分数据进行记录,还为后续的用户行为数据是否发生变化提供了判断依据。本实施例中,获取到用户行为数据不是保存在运行内存中,而是直接记录至用户行为文件,以防意外关机时用户行为数据丢失的情况。The obtained first user behavior data is not only recorded as a part of the user behavior data, but also provides a basis for judging whether the subsequent user behavior data changes. In this embodiment, the obtained user behavior data is not saved in the running memory, but is directly recorded in the user behavior file, so as to prevent the user behavior data from being lost during an unexpected shutdown.

步骤S102,监测所述第一用户行为数据是否发生变化。Step S102, monitoring whether the first user behavior data changes.

本实施例以智能终端只进行一次开机和关机内的用户操作为例进行用户行为数据记录说明,多次开机关机操作的用户行为数据记录,只需重复本实施例的操作即可。In this embodiment, user behavior data recording is described by taking the user operation of the smart terminal as an example of only one power-on and power-off operation, and user behavior data records for multiple power-on and power-off operations only need to repeat the operations of this embodiment.

由于本实施例中的用户行为数据主要指按键操作数据、应用名称数据、开机时间点数据及关机时间点数据,而智能终端只进行一次开机和关机的操作时,开机时间点数据和关机时间点数据均只有一个数据,无需进行实时监测,因此,在监测用户行为数据变化时,只需监测按键操作数据及应用名称数据即可,即只需监测按键操作和当前操作的应用名称是否发生变化即可。Since the user behavior data in this embodiment mainly refers to key operation data, application name data, power-on time point data and power-off time point data, and when the smart terminal only performs power-on and power-off operations once, the power-on time point data and power-off time point There is only one piece of data, and no real-time monitoring is required. Therefore, when monitoring changes in user behavior data, it is only necessary to monitor key operation data and application name data. Can.

步骤S103,若在预设时间内监测到所述第一用户行为数据发生变化,记录变化后得到的第二用户行为数据至所述用户行为文件。Step S103, if it is detected that the first user behavior data changes within a preset time, record the second user behavior data obtained after the change to the user behavior file.

当用户进行按键操作应用时时,按键操作数据及应用名称数据会发生相应的变化,如从智能终端的主界面应用点击打开日历应用时,按键操作数据中按键开始时间点会替换为点击操作的时间点,应用名称数据会替换为日历应用的应用名称,得到第二用户行为数据,并将第二用户行为数据记录至用户行为文件。When the user presses the button to operate the application, the button operation data and application name data will change accordingly. For example, when the application clicks to open the calendar application from the main interface of the smart terminal, the start time of the button in the button operation data will be replaced by the time of the click operation point, the application name data will be replaced with the application name of the calendar application to obtain the second user behavior data, and record the second user behavior data to the user behavior file.

步骤S104,若在所述预设时间内未监测到所述第一用户行为数据发生变化,根据所述第一用户行为数据,计算并记录所述第二用户行为数据至所述用户行为文件。Step S104, if no change of the first user behavior data is detected within the preset time, calculate and record the second user behavior data to the user behavior file according to the first user behavior data.

实际情况中,用户的连续两次行为操作间隔过长,或者丢失了多次连续行为操作中一部分行为操作对应的用户行为数据,都会使得智能终端较长一段时间内获取不到新的用户行为数据,即第一用户行为数据在较长一段时间内不会发生变化。为了补充丢失的用户行为数据,本实施例中,有技术人员根据实际用户连续行为操作的习惯设定一个预设时间,在这个预设时间内,都认为是用户正常的连续行为操作,但当第一用户行为数据发生变化的时间超出预设时间时,则认为其中丢失了一部分用户行为数据,此时采用预测算法对第一用户行为数据进行计算,将计算得出的第二用户行为数据作为对用户行为数据的补充。In actual situations, if the interval between two consecutive behavior operations of the user is too long, or the user behavior data corresponding to part of the behavior operations in multiple consecutive behavior operations is lost, the smart terminal will not be able to obtain new user behavior data for a long period of time. , that is, the first user behavior data will not change in a relatively long period of time. In order to supplement the lost user behavior data, in this embodiment, a technician sets a preset time according to the actual user's habit of continuous behavior operation. During this preset time, it is considered as the user's normal continuous behavior operation, but when When the change time of the first user behavior data exceeds the preset time, it is considered that a part of the user behavior data is lost. At this time, the prediction algorithm is used to calculate the first user behavior data, and the calculated second user behavior data is used as Complementary to user behavior data.

其中预测算法是指可以根据历史数据对未产生的数据进行预测计算的算法的统称,包括但不限于常见的马尔科夫算法。The prediction algorithm refers to the general term for algorithms that can predict and calculate ungenerated data based on historical data, including but not limited to the common Markov algorithm.

步骤S105,将所述第二用户行为数据作为所述第一用户行为数据,返回执行所述监测所述第一用户行为数据是否发生变化的步骤。Step S105, using the second user behavior data as the first user behavior data, returning to the step of monitoring whether the first user behavior data changes.

在未关机之前,智能终端会持续记录用户行为数据,所以在步骤S103和步骤S104记录好第二用户行为数据之后,会将第二用户行为数据作为第一用户行为数据,为后续的用户行为数据是否发生变化提供判断依据,并返回到步骤S102中,继续监测和记录后续的用户行为数据。Before shutting down, the smart terminal will continue to record user behavior data, so after the second user behavior data is recorded in steps S103 and S104, the second user behavior data will be used as the first user behavior data, and the subsequent user behavior data Whether there is a change provides a judgment basis, and returns to step S102 to continue monitoring and recording subsequent user behavior data.

在步骤S101之前,还包括:Before step S101, it also includes:

获取开机时间点数据,并记录至所述用户行为文件。Acquire data at the time of booting, and record it into the user behavior file.

智能终端在开机后,会读取并记录智能终端的开机时间点数据到用户行为文件中。After the smart terminal is powered on, it will read and record the data of the starting time point of the smart terminal into the user behavior file.

作为步骤S104的一个具体实施例,包括:As a specific embodiment of step S104, including:

采用马尔科夫算法处理所述第一用户行为数据,计算得到所述第二用户行为数据。马尔科夫算法是常见的预测算法,利用马尔科夫算法进行数据预测也是公知技术,本说明书中不予详述。The first user behavior data is processed by using a Markov algorithm to obtain the second user behavior data through calculation. The Markov algorithm is a common forecasting algorithm, and data forecasting using the Markov algorithm is also a well-known technology, which will not be described in detail in this specification.

记录所述第二用户行为数据至所述用户行为文件。Recording the second user behavior data to the user behavior file.

作为本发明的一个扩展实施例,在步骤S104之后,还包括:As an extended embodiment of the present invention, after step S104, it also includes:

将所述第二用户行为数据与标准行为数据库进行匹配。由于在步骤S104中生成的第二用户行为数据是通过预测算法计算得出的,并不是真实的用户行为数据,为了验证第二用户行为数据的准确度,本实施例中,采用将第二用户行为数据与标准行为数据库匹配的方式来判断第二用户行为数据是否可以作为真实用户行为数据。Matching the second user behavior data with a standard behavior database. Since the second user behavior data generated in step S104 is calculated by a prediction algorithm and is not real user behavior data, in order to verify the accuracy of the second user behavior data, in this embodiment, the second user Behavior data is matched with a standard behavior database to determine whether the second user behavior data can be used as real user behavior data.

技术人员使用马尔科夫算法,针对智能终端中安装好的应用及用户的行为操作进行标准用户行为数据预测计算,并将得到的标准用户行为数据集合得到标准行为数据库。Technicians use the Markov algorithm to predict and calculate standard user behavior data for installed applications and user behavior operations in smart terminals, and collect the standard user behavior data to obtain a standard behavior database.

若所述匹配的结果为失败,判定所述第二用户行为数据为虚假用户行为数据。若标准行为数据库中没有与第二用户行为数据相匹配的标准用户行为数据,则匹配的结果为失败,此时第二用户行为数据的准确度较低不能作为真实用户行为数据,即判定第二用户行为数据为虚假用户行为数据。If the matching result is failure, it is determined that the second user behavior data is false user behavior data. If there is no standard user behavior data matching the second user behavior data in the standard behavior database, the matching result is a failure. At this time, the accuracy of the second user behavior data is low and cannot be used as real user behavior data. User behavior data is false user behavior data.

若所述匹配的结果为成功,判定所述第二用户行为数据为真实用户行为数据。若标准行为数据库中有与第二用户行为数据相匹配的标准用户行为数据,则匹配的结果为失败,此时第二用户行为数据的准确度较高,可以作为真实用户行为数据,即判定第二用户行为数据为真实用户行为数据。If the matching result is successful, it is determined that the second user behavior data is real user behavior data. If there is standard user behavior data matching the second user behavior data in the standard behavior database, the matching result is a failure. At this time, the accuracy of the second user behavior data is high, and it can be used as real user behavior data, that is, to determine the second user behavior data. 2. User behavior data is real user behavior data.

作为本发明的一个扩展实施例,还包括:As an extended embodiment of the present invention, it also includes:

计算所述用户行为文件中记录的所述虚假用户行为数据与记录的用户行为数据的百分比,所述用户行为数据包括所述第一用户行为数据及所述第二用户行为数据。由于在生成的用户行为文件,包含部分由预测算法生成的用户行为数据。由上文可知,预测算法生成的用户行为数据中可能包含虚假用户行为数据,而虚假用户行为数据会影响用户行为文件记录的准确性,因此,在本实施例中,采用计算虚假用户行为数据占所有用户行为数据的百分比的方式来判断用户行为文件记录的准确性。calculating the percentage of the false user behavior data recorded in the user behavior file and the recorded user behavior data, where the user behavior data includes the first user behavior data and the second user behavior data. Because the generated user behavior file contains part of the user behavior data generated by the prediction algorithm. It can be seen from the above that the user behavior data generated by the prediction algorithm may contain false user behavior data, and the false user behavior data will affect the accuracy of user behavior file records. The percentage of all user behavior data is used to judge the accuracy of user behavior file records.

若所述百分比高于预设阀值,则判定所述用户行为文件记录不准确。由技术人员根据实际需求,预设一个阀值,若虚假用户行为数据占所有用户行为数据的百分比超出预设阀值时,则判定虚假用户行为数据过多,用户行为文件记录不准确。If the percentage is higher than the preset threshold, it is determined that the user behavior file record is inaccurate. The technicians preset a threshold according to the actual needs. If the percentage of false user behavior data in all user behavior data exceeds the preset threshold, it is determined that there are too many false user behavior data and the user behavior file records are inaccurate.

在本实施例中,记录开机时间点数据,并实时监测第一用户行为数据的变化记录在用户行为文件中,当预设时间内没有监测到第一用户行为数据变化,则对第二用户行为数据使用马尔科夫算法进行预测计算,并将预测得到的第二用户行为数据记录在在用户行为文件中。在用户每个行为操作产生的用户行为数据实时记录同时,还能对丢失的对用户行为数据进行预测计算并补充验证。即使在应用应用程序非正常关闭时,也能及时记录上一次记录到此次应用程序关闭之间的用户行为数据,同时还能对其中丢失用户行为数据进行补充和验证,使得记录的用户行为数据更加完整准确。In this embodiment, the data at the boot time point is recorded, and the change of the first user behavior data is monitored in real time and recorded in the user behavior file. When no change in the first user behavior data is detected within the preset time, the second user behavior The data is predicted and calculated using the Markov algorithm, and the predicted second user behavior data is recorded in the user behavior file. While the user behavior data generated by each user behavior operation is recorded in real time, the lost user behavior data can also be predicted, calculated and supplemented for verification. Even when the application is closed abnormally, it can record the user behavior data between the last record and the application closing in time, and at the same time supplement and verify the lost user behavior data, so that the recorded user behavior data more complete and accurate.

实施例2Example 2

对应于上文实施例所述的行为数据的记录方法,图2示出了本发明实施例2提供的行为数据的记录系统的结构框图。Corresponding to the behavior data recording method described in the above embodiments, FIG. 2 shows a structural block diagram of a behavior data recording system provided by Embodiment 2 of the present invention.

参照图2,该系统包括:Referring to Figure 2, the system includes:

获取单元21,用于获取当前的第一用户行为数据,并记录至用户行为文件;An acquisition unit 21, configured to acquire the current first user behavior data and record it in the user behavior file;

监测单元22,用于监测所述第一用户行为数据是否发生变化;A monitoring unit 22, configured to monitor whether the first user behavior data changes;

第一纪录单元23,用于若在预设时间内监测到所述第一用户行为数据发生变化,记录变化后得到的第二用户行为数据至所述用户行为文件;The first recording unit 23 is configured to record the second user behavior data obtained after the change to the user behavior file if it is detected that the first user behavior data changes within a preset time;

第一计算单元24,用于若在所述预设时间内未监测到所述第一用户行为数据发生变化,根据所述第一用户行为数据,计算并记录所述第二用户行为数据至所述用户行为文件;The first computing unit 24 is configured to calculate and record the second user behavior data to the Describe user behavior files;

返回单元25,用于将所述第二用户行为数据作为所述第一用户行为数据,返回执行所述监测所述第一用户行为数据是否发生变化的步骤。The returning unit 25 is configured to use the second user behavior data as the first user behavior data, and return to execute the step of monitoring whether the first user behavior data changes.

进一步地,所述获取单元21之前,还包括:Further, before the acquisition unit 21, it also includes:

第二记录单元,用于记录系统开机时间点至所述用户行为文件。The second recording unit is configured to record the system startup time point to the user behavior file.

进一步地,所述第一计算单元24,包括:Further, the first computing unit 24 includes:

计算子单元,用于采用马尔科夫算法处理所述第一用户行为数据,计算得到所述第二用户行为数据;A calculation subunit, configured to process the first user behavior data by using a Markov algorithm, and calculate and obtain the second user behavior data;

记录子单元,用于记录所述第二用户行为数据至所述用户行为文件。A recording subunit, configured to record the second user behavior data to the user behavior file.

进一步地,所述第一计算单元24之后,还包括:Further, after the first calculation unit 24, it also includes:

匹配单元,用于将所述第二用户行为数据与标准行为数据库进行匹配;a matching unit, configured to match the second user behavior data with a standard behavior database;

第一判定单元,用于若所述匹配的结果为失败,判定所述第二用户行为数据为虚假用户行为数据;A first judging unit, configured to judge that the second user behavior data is false user behavior data if the matching result is a failure;

第二判定单元,用于若所述匹配的结果为成功,判定所述第二用户行为数据为真实用户行为数据。The second determining unit is configured to determine that the second user behavior data is real user behavior data if the matching result is successful.

进一步地,所述系统,还包括:Further, the system also includes:

第二计算单元,用于计算所述用户行为文件中记录的所述虚假用户行为数据与记录的用户行为数据的百分比,所述用户行为数据包括所述第一用户行为数据及所述第二用户行为数据;The second calculation unit is used to calculate the percentage of the false user behavior data recorded in the user behavior file and the recorded user behavior data, and the user behavior data includes the first user behavior data and the second user behavioral data;

第三判定单元,用于若所述百分比高于预设阀值,则判定所述用户行为文件记录不准确。A third judging unit, configured to judge that the user behavior file record is inaccurate if the percentage is higher than a preset threshold.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention. It should be understood that the sequence numbers of the steps in the above embodiments do not mean the sequence of execution, and the execution sequence of each process should be determined by its functions and internal logic, and should not constitute any limitation to the implementation process of the embodiment of the present invention.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、系统和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of the above-described system, system and unit can refer to the corresponding process in the foregoing method embodiments, and details are not repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统、系统和方法,可以通过其它的方式实现。例如,以上所描述的系统实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,系统或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, system and method can be implemented in other ways. For example, the system embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of systems or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.

所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes. .

以上所述实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围,均应包含在本发明的保护范围之内。The above-described embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still carry out the foregoing embodiments Modifications to the technical solutions recorded in the examples, or equivalent replacement of some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention, and should be included in within the protection scope of the present invention.

Claims (10)

1.一种用户行为统计方法,其特征在于,包括:1. A method for user behavior statistics, characterized in that, comprising: 获取当前的第一用户行为数据,并记录至用户行为文件;Obtain the current first user behavior data and record it to the user behavior file; 监测所述第一用户行为数据是否发生变化;monitoring whether the first user behavior data changes; 若在预设时间内监测到所述第一用户行为数据发生变化,记录变化后得到的第二用户行为数据至所述用户行为文件;If it is detected that the first user behavior data changes within the preset time, record the second user behavior data obtained after the change to the user behavior file; 若在所述预设时间内未监测到所述第一用户行为数据发生变化,根据所述第一用户行为数据,计算并记录所述第二用户行为数据至所述用户行为文件;If no change is detected in the first user behavior data within the preset time, calculate and record the second user behavior data to the user behavior file according to the first user behavior data; 将所述第二用户行为数据作为所述第一用户行为数据,返回执行所述监测所述第一用户行为数据是否发生变化的步骤。Using the second user behavior data as the first user behavior data, return to the step of monitoring whether the first user behavior data changes. 2.如权利要求1所述方法,其特征在于,所述获取当前的第一用户行为数据,并进行记录之前,还包括:2. The method according to claim 1, characterized in that, before acquiring the current first user behavior data and recording, further comprising: 获取开机时间点数据,并记录至所述用户行为文件。Acquire data at the time of booting, and record it into the user behavior file. 3.如权利要求1所述方法,其特征在于,所述根据所述第一用户行为数据,计算并记录所述第二用户行为数据至所述用户行为文件,包括:3. The method according to claim 1, wherein the calculating and recording the second user behavior data to the user behavior file according to the first user behavior data comprises: 采用马尔科夫算法处理所述第一用户行为数据,计算得到所述第二用户行为数据;Processing the first user behavior data by using a Markov algorithm to calculate and obtain the second user behavior data; 记录所述第二用户行为数据至所述用户行为文件。Recording the second user behavior data to the user behavior file. 4.如权利要求1所述方法,其特征在于,所述根据所述第一用户行为数据,计算并记录所述第二用户行为数据至所述用户行为文件之后,还包括:4. The method according to claim 1, wherein, after calculating and recording the second user behavior data to the user behavior file according to the first user behavior data, further comprising: 将所述第二用户行为数据与标准行为数据库进行匹配;matching the second user behavior data with a standard behavior database; 若所述匹配的结果为失败,判定所述第二用户行为数据为虚假用户行为数据;If the matching result is a failure, determining that the second user behavior data is false user behavior data; 若所述匹配的结果为成功,判定所述第二用户行为数据为真实用户行为数据。If the matching result is successful, it is determined that the second user behavior data is real user behavior data. 5.如权利要求4所述方法,其特征在于,所述方法,还包括:5. method as claimed in claim 4, is characterized in that, described method, also comprises: 计算所述用户行为文件中记录的所述虚假用户行为数据与记录的用户行为数据的百分比,所述用户行为数据包括所述第一用户行为数据及所述第二用户行为数据;calculating the percentage of the false user behavior data recorded in the user behavior file and the recorded user behavior data, the user behavior data including the first user behavior data and the second user behavior data; 若所述百分比高于预设阀值,则判定所述用户行为文件记录不准确。If the percentage is higher than the preset threshold, it is determined that the user behavior file record is inaccurate. 6.一种用户行为统计系统,其特征在于,包括:6. A user behavior statistics system, comprising: 获取单元,用于获取当前的第一用户行为数据,并记录至用户行为文件;an acquisition unit, configured to acquire the current first user behavior data, and record it to the user behavior file; 监测单元,用于监测所述第一用户行为数据是否发生变化;a monitoring unit, configured to monitor whether the first user behavior data changes; 第一记录单元,用于若在预设时间内监测到所述第一用户行为数据发生变化,记录变化后得到的第二用户行为数据至所述用户行为文件;The first recording unit is configured to record the second user behavior data obtained after the change to the user behavior file if it is detected that the first user behavior data changes within a preset time; 第一计算单元,用于若在所述预设时间内未监测到所述第一用户行为数据发生变化,根据所述第一用户行为数据,计算并记录所述第二用户行为数据至所述用户行为文件;The first computing unit is configured to calculate and record the second user behavior data to the user behavior files; 返回单元,用于将所述第二用户行为数据作为所述第一用户行为数据,返回执行所述监测所述第一用户行为数据是否发生变化的步骤。A returning unit, configured to use the second user behavior data as the first user behavior data, and return to execute the step of monitoring whether the first user behavior data changes. 7.如权利要求6所述系统,其特征在于,所述获取单元之前,还包括:7. system as claimed in claim 6, is characterized in that, before described acquiring unit, also comprises: 第二记录单元,用于获取开机时间点数据,并记录至所述用户行为文件。The second recording unit is used to acquire the data of the boot time point and record it into the user behavior file. 8.如权利要求6所述系统,其特征在于,所述第一计算单元,包括:8. The system according to claim 6, wherein the first computing unit comprises: 计算子单元,用于采用马尔科夫算法处理所述第一用户行为数据,计算得到所述第二用户行为数据;A calculation subunit, configured to process the first user behavior data by using a Markov algorithm, and calculate and obtain the second user behavior data; 记录子单元,用于记录所述第二用户行为数据至所述用户行为文件。A recording subunit, configured to record the second user behavior data to the user behavior file. 9.如权利要求6所述系统,其特征在于,所述第一计算单元之后,还包括:9. The system according to claim 6, further comprising: after the first computing unit: 匹配单元,用于将所述第二用户行为数据与标准行为数据库进行匹配;a matching unit, configured to match the second user behavior data with a standard behavior database; 第一判定单元,用于若所述匹配的结果为失败,判定所述第二用户行为数据为虚假用户行为数据;A first judging unit, configured to judge that the second user behavior data is false user behavior data if the matching result is a failure; 第二判定单元,用于若所述匹配的结果为成功,判定所述第二用户行为数据为真实用户行为数据。The second determining unit is configured to determine that the second user behavior data is real user behavior data if the matching result is successful. 10.如权利要求9所述系统,其特征在于,所述系统,还包括:10. The system according to claim 9, further comprising: 第二计算单元,用于计算所述用户行为文件中记录的所述虚假用户行为数据与记录的用户行为数据的百分比,所述用户行为数据包括所述第一用户行为数据及所述第二用户行为数据;The second calculation unit is used to calculate the percentage of the false user behavior data recorded in the user behavior file and the recorded user behavior data, and the user behavior data includes the first user behavior data and the second user behavioral data; 第三判定单元,用于若所述百分比高于预设阀值,则判定所述用户行为文件记录不准确。A third judging unit, configured to judge that the user behavior file record is inaccurate if the percentage is higher than a preset threshold.
CN201611238617.2A 2016-12-28 2016-12-28 Method and system for user behavior statistics Expired - Fee Related CN106649069B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611238617.2A CN106649069B (en) 2016-12-28 2016-12-28 Method and system for user behavior statistics

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611238617.2A CN106649069B (en) 2016-12-28 2016-12-28 Method and system for user behavior statistics

Publications (2)

Publication Number Publication Date
CN106649069A true CN106649069A (en) 2017-05-10
CN106649069B CN106649069B (en) 2019-12-13

Family

ID=58835325

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611238617.2A Expired - Fee Related CN106649069B (en) 2016-12-28 2016-12-28 Method and system for user behavior statistics

Country Status (1)

Country Link
CN (1) CN106649069B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110333985A (en) * 2019-06-12 2019-10-15 东北石油大学 Method and device for recording operation information of mobile terminal
CN113781079A (en) * 2020-10-13 2021-12-10 北京沃东天骏信息技术有限公司 Method and apparatus for training a model

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102238045A (en) * 2010-04-27 2011-11-09 广州迈联计算机科技有限公司 System and method for predicting user behavior in wireless Internet
US20120290589A1 (en) * 2011-05-13 2012-11-15 Canon Kabushiki Kaisha Information processing apparatus, information processing method, and non-transitory computer readable storage medium
CN103761296A (en) * 2014-01-20 2014-04-30 北京集奥聚合科技有限公司 Method and system for analyzing network behaviors of mobile terminal users
CN104320704A (en) * 2014-11-13 2015-01-28 北京国双科技有限公司 Method and device for detecting network television installation states
US20160148275A1 (en) * 2001-11-09 2016-05-26 Sony Corporation Contents distributing system, device for processing charge for advertisement information, contents distributing server, their program, and program recording medium
CN105812933A (en) * 2014-12-30 2016-07-27 Tcl集团股份有限公司 Television starting method and device
CN105873110A (en) * 2016-05-27 2016-08-17 北京灵龄科技有限责任公司 User behavior correcting method and device
CN106209472A (en) * 2016-07-26 2016-12-07 长沙湘移通信技术有限公司 A kind of broadband user's data mining and the method for early warning
CN106209512A (en) * 2016-07-11 2016-12-07 乐视控股(北京)有限公司 A kind of method and device of report of user behavioral data

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160148275A1 (en) * 2001-11-09 2016-05-26 Sony Corporation Contents distributing system, device for processing charge for advertisement information, contents distributing server, their program, and program recording medium
CN102238045A (en) * 2010-04-27 2011-11-09 广州迈联计算机科技有限公司 System and method for predicting user behavior in wireless Internet
US20120290589A1 (en) * 2011-05-13 2012-11-15 Canon Kabushiki Kaisha Information processing apparatus, information processing method, and non-transitory computer readable storage medium
CN103761296A (en) * 2014-01-20 2014-04-30 北京集奥聚合科技有限公司 Method and system for analyzing network behaviors of mobile terminal users
CN104320704A (en) * 2014-11-13 2015-01-28 北京国双科技有限公司 Method and device for detecting network television installation states
CN105812933A (en) * 2014-12-30 2016-07-27 Tcl集团股份有限公司 Television starting method and device
CN105873110A (en) * 2016-05-27 2016-08-17 北京灵龄科技有限责任公司 User behavior correcting method and device
CN106209512A (en) * 2016-07-11 2016-12-07 乐视控股(北京)有限公司 A kind of method and device of report of user behavioral data
CN106209472A (en) * 2016-07-26 2016-12-07 长沙湘移通信技术有限公司 A kind of broadband user's data mining and the method for early warning

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110333985A (en) * 2019-06-12 2019-10-15 东北石油大学 Method and device for recording operation information of mobile terminal
CN113781079A (en) * 2020-10-13 2021-12-10 北京沃东天骏信息技术有限公司 Method and apparatus for training a model

Also Published As

Publication number Publication date
CN106649069B (en) 2019-12-13

Similar Documents

Publication Publication Date Title
CN108090567B (en) Method and device for fault diagnosis of power communication system
CN104866366B (en) Application program method for cleaning and device
CN103646208B (en) Monitoring method and device of eMMC
US10147048B2 (en) Storage device lifetime monitoring system and storage device lifetime monitoring method thereof
CN110688168B (en) Method, device, equipment and storage medium for improving application startup speed
CN107590016B (en) Power-down restarting identification method and device
CN109992473B (en) Application system monitoring method, device, equipment and storage medium
CN105637432A (en) Identifying anomalous behavior of a monitored entity
CN106547615A (en) A kind of management method and management module of background application
CN113127320B (en) Application program abnormity detection method, device, equipment and system
CN110908838A (en) Data processing method and device, electronic equipment and storage medium
WO2020140624A1 (en) Method for extracting data from log, and related device
CN110347571A (en) A kind of crash log acquisition method, analysis method and relevant apparatus
CN106033574B (en) Method and device for identifying cheating behaviors
CN109684309A (en) A kind of quality of data evaluating method and device, computer equipment and storage medium
CN110021792A (en) Charge control method, device, terminal device and computer storage medium
CN106649069B (en) Method and system for user behavior statistics
CN110376519B (en) High-voltage circuit breaker fault diagnosis method and device and terminal equipment
CN110333968B (en) Data management method, device and computer equipment applied to database
CN106777981B (en) A method and device for verifying behavior data
CN110134219B (en) Application program background power consumption processing method and device
CN106021006A (en) Terminal startup abnormity processing method and terminal
CN115756309A (en) Battery management equipment parameter storage method, battery management equipment and energy storage system
CN105158611B (en) A kind of information processing method and electronic equipment
CN113032064B (en) Method, device and equipment for determining execution popup

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20191213