WO2012034388A1 - Method and apparatus for user behaviors statistics based on user events - Google Patents

Method and apparatus for user behaviors statistics based on user events Download PDF

Info

Publication number
WO2012034388A1
WO2012034388A1 PCT/CN2011/071904 CN2011071904W WO2012034388A1 WO 2012034388 A1 WO2012034388 A1 WO 2012034388A1 CN 2011071904 W CN2011071904 W CN 2011071904W WO 2012034388 A1 WO2012034388 A1 WO 2012034388A1
Authority
WO
WIPO (PCT)
Prior art keywords
user
event
dimension
information
object instance
Prior art date
Application number
PCT/CN2011/071904
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 WO2012034388A1 publication Critical patent/WO2012034388A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic

Definitions

  • the invention relates to statistical technology in the field of communication, in particular to a user behavior statistical method and device based on user events. Background technique
  • the user location must belong to a certain location area, routing area, service area, etc., and the access method must be attributed to some access method, such as the second generation.
  • Mobile communication technology (2G, Second Generation), third-generation mobile communication technology (3G, 3rd-Generation), or fourth-generation mobile communication technology (4G, Fourth Generation), whose access point must belong to an access point name (APN, Access Point Name)
  • APN Access Point Name
  • attributes such as user location, access method, and home APN related to the event are called dimensions, and the type of business behavior of the user is called an event, and the specific business process is called.
  • the statistical results are called indicators.
  • Serving GPRS Support Node the dimension that the operator pays attention to, may be routing area, location area, service area, tracking area, access point, access mode, service type, user category, and terminal type.
  • a specific or combined dimension in the series dimension, the concern indicators include the number of attached users, the number of activated users, the attach success rate, the activation success rate, the paging success rate, the delay, the quality of service (QoS), and the terminal type.
  • QoS quality of service
  • the usual processing method is: Establish a Cartesian model of the attention indicator in the statistical system. Specifically, assume that there are M dimensions in the user information, and the indicators that the operator pays attention to. Involving N dimensions, where N ⁇ M, D 1 D 2 D n represents N dimensions, and the corresponding number of dimensions is N, N 2
  • N NixN 2 x xN n
  • SGSN dimensions include routing area, location area, access point, and service area. If the above formula is used, the total number of records corresponding to it will be very large. According to the method of allocating memory and performing arithmetic operations, the resources and performance of the existing system are often difficult to meet the requirements. Therefore, the above method needs to be improved.
  • the following two solutions are available in the prior art:
  • the dimensional space is compressed according to the relationship of the dimensions.
  • a fixed location area in the network model must belong to a specific routing area.
  • This method can save some memory resources.
  • the dimensional compression method is too complicated. If the network model of the network element changes, it is difficult to implement automatic processing.
  • a fixed statistical model is established for the dimensions and indicators of the operator's attention, and statistical analysis is performed separately.
  • This statistical method is more suitable for real-time monitoring. In order to obtain a relatively high compression ratio, however, since the method is based on a fixed model and a fixed index, the statistical function is single, and it is difficult to meet the flexible combination requirements of the dimensions.
  • the existing user behavior statistics method cannot implement multi-dimensional statistics and combined multi-dimensional statistics of event-based user behavior.
  • the main object of the present invention is to provide a user behavior statistical method and apparatus based on user events, which can implement multi-dimensional statistics and combined multi-dimensional statistics of event-based user behavior.
  • the present invention provides a user behavior statistics method based on user events, the method includes: after receiving a user event message, obtaining dimension information of a current state of the user from the currently saved basic user information;
  • the count value of the event-related indicator in the corresponding statistical object instance is accumulated according to the dimension information and the event type of the current state of the user.
  • the method before obtaining the dimension information of the current state of the user from the currently saved user basic information, the method further includes:
  • the saved user basic information is updated according to the user dimension carried in the user event packet.
  • the sum of the event-related indicators in the corresponding statistical object instance is accumulated according to the dimension information and the event type of the current state of the user, and is:
  • the corresponding statistical object instance is searched. If the corresponding statistical object instance is found, the count value of the event related indicator in the statistical object instance is incremented by 1 according to the event type, if no corresponding corresponding is found. For the statistical object instance, a new statistical object instance is created, and the count value of the event-related indicator in the statistical object instance is incremented by one according to the event type.
  • the searching for the corresponding statistical object instance according to the dimension information of the currently saved user state is:
  • the index corresponding to the dimension information is calculated according to the dimension information of the currently saved user state; and the statistical object instance corresponding to the index is searched according to the index corresponding to the dimension information.
  • the method further includes:
  • the method further includes:
  • the statistical results are further analyzed and calculated according to the user's requirements, and the operation results are output.
  • the present invention also provides a user behavior statistics device based on a user event, the device comprising: a message analysis module and a statistics module;
  • the packet analysis module is configured to: after receiving a user event packet, obtain the dimension information of the current state of the user from the currently saved user basic information, and send the obtained current dimension information of the user to the statistics module;
  • the statistics module is configured to: after receiving the dimension information of the current state of the user sent by the ⁇ text analysis module, accumulate the count value of the event-related indicator in the corresponding statistical object instance according to the dimension information and the event type of the current state of the user.
  • the device further includes a storage module, configured to save user basic information and a statistical object instance, where the user basic information includes dimension information of a current state of the user.
  • the device further includes a collecting module, configured to receive a user event packet, and when the user event packet carries the dimension in which the event changes, the storage module is updated according to the dimension carried in the user event packet. Saved user basic information.
  • the device further includes: a timer and a clearing module; wherein, the timer is configured to trigger the clearing module after the timeout;
  • the clearing module is used to save the statistics after being triggered by the timer, and clear all statistical object instances.
  • the device further includes a calculation module, configured to further analyze and calculate the statistical result according to the user requirement after the statistics are completed, and output the operation result.
  • the user event-based user behavior statistics method and device provided by the present invention, after receiving the user event message, accumulate the count value of the event-related indicator in the corresponding statistical object instance according to the dimension information and the event type of the current state of the user.
  • user behavior can be classified and compressed according to user dimension attributes and event types, that is, statistics of user behavior multi-dimensional and combined dimensions can be realized, thereby saving system resources; in addition, for example, in a mobile communication system, The specific location area must belong to a specific routing area, and the combination of the location area and the routing area without the affiliation relationship will inevitably result in no user events. Therefore, the solution of the present invention can automatically implement the culling of invalid dimensional space events. .
  • the index corresponding to the dimension information is calculated according to the current dimension information of the user state.
  • the statistical object instance corresponding to the index is searched according to the index corresponding to the dimension information, so that the statistical object instance corresponding to the dimension information can be quickly found.
  • the user analyzes the object, further analyzes and calculates the statistical result, and outputs the operation result for the user, so that the second operation can be realized on the basis of the original statistical result. Further meet user needs.
  • FIG. 1 is a schematic flowchart of a user behavior statistics method based on user events according to the present invention
  • FIG. 2 is a schematic diagram of original statistical results of Embodiment 1;
  • FIG. 3 is a schematic diagram of a result of a dimension combination query of Embodiment 1;
  • FIG. 4 is a schematic diagram showing an output result of the activation success rate of the first embodiment
  • FIG. 5 is a schematic structural diagram of a user behavior statistics device based on user events according to the present invention. detailed description
  • the event statistics method based on the user behavior of the present invention includes the following steps: Step 101: After receiving a user event packet, obtain the dimension information of the current state of the user from the currently saved basic user information;
  • the user event message includes a user identifier, an event type, and an execution result
  • the currently saved user basic information can be found according to the user identifier, that is, the user identifier is index information of the currently saved user basic information
  • the user basic information includes the dimension information of the current state of the user; the dimension information of the current state of the user refers to specific information of all dimensions of the current state of the user; after receiving the user event packet, the current identifier of the user is used to find the current user identifier according to the user event packet.
  • the saved user basic information if not found, indicates that the user event message of the user is received for the first time, the basic information of the user is saved, and after receiving the user event message again, the basic information of the user is first. Update based on the second save;
  • the method may further include:
  • the saved user basic information is updated according to the dimension carried in the user event packet;
  • the user basic information carried in the user event packet includes the dimension of the user's current change. For the dimension that has not changed, the user basic information carried in the user event packet may not be included. If all the dimensions of the user are changed, the user basic information carried in the user event packet includes all the current dimensions of the user; if the basic information of the user carried in the user event packet includes the current change of the user Dimensions, only the changed dimensions of the saved basic information of the user are updated, and for the dimension that has not changed, no modification is made;
  • the user carried in the user event packet is basically The information does not contain the dimension of the user.
  • the dimension information in the saved user basic information is not updated, and the dimension information of the current state of the user is directly obtained from the currently saved user information.
  • Step 102 Add the count value of the event-related indicator in the corresponding statistical object instance according to the dimension information and the event type of the current state of the user;
  • the corresponding statistical object instance is searched according to the dimension information of the currently saved user state, and if the corresponding statistical object instance is found, the count value of the event related indicator in the statistical object instance is incremented by 1 according to the event type, if not Find the corresponding statistical object instance, create a new statistical object instance, and increase the count value of the event-related indicator in the statistical object instance by 1 according to the event type;
  • the dimension information of the user state includes specific information of multiple dimensions.
  • a hash algorithm or a message digest algorithm fifth edition (MD5) may be used.
  • other algorithms for digital signatures first calculate an index corresponding to the dimension information, and then use an index to find a corresponding statistical object instance; the index may be a feature value;
  • a dimension information corresponds to a statistical object instance, where the statistical object instance includes specific information of the dimension and a count value of the event-related indicator; wherein, the counter can be counted by the counter; for the count value of the event-related indicator,
  • the event type corresponds to the count value of a set of related indicators.
  • a statistical object instance may include the count value of related indicators of various event types. In the actual application process, the event type that needs to be counted may be selected according to requirements, and then allocated according to the need. Counter of related indicators; For step 102, for example, the types of events to be counted are activation and paging.
  • the counters for activating related indicators in the statistical object instance namely: a counter for counting the number of successful activations and a number of statistical activation failures.
  • the counter, the counter of the paging related indicator also has two, namely: a counter for counting the number of successful paging times and a counter for counting the number of paging failures.
  • step 101 can aggregate multiple events occurring in the same dimensional space into one statistical record. For example, suppose the total number of events occurring in a statistical period is X, and the average number of occurrences of events in each dimensional space For P (P ⁇ 1), the number of statistical object instances is X/P. Therefore, the higher the number of events occurring in each dimension space, the fewer the number of statistical object instances.
  • the statistical period is very short.
  • the average number of occurrences of events in each dimension space is 1, that is, all events that occur are not repeated, the number of statistical object instances is equal to the number of events.
  • the number of events that occur in a typical unit time is fixed. Therefore, you can set the statistics period to control the total number of events to a predictable range.
  • the process of steps 101-102 may be referred to as a process of original statistics.
  • the statistical results are further analyzed and operated according to the user's attention object, and the operation result is output; wherein, the output mode may be Graphically, the user can visually see the result of the operation; the user needs to be an event statistics under a certain dimension of interest. As a result, it may also be an event statistical result or the like under the combination of dimensions.
  • the user event message restarts statistics, so that the user can further analyze and calculate the statistical result, so as to better meet the user's needs.
  • the application scenario of this embodiment is: statistics of the activation success rate of the SGSN.
  • the dimension information of the user in this embodiment includes: a location area identifier (LAI), a routing area identifier (RAI, a routing area identity), a service area identifier (S AI, a service area identity), an APN, and a wireless connection.
  • LAI location area identifier
  • RAI routing area identifier
  • S AI service area identifier
  • APN APN
  • RAT Radio Access Technology
  • RNC Radio Network Controller
  • events that need to be counted are attachment, activation, deactivation, and paging, etc., correspondingly configured for statistics a counter of the number of times of attachment success, the number of attachment failures, the number of activation successes, the number of activation failures, the number of successful deactivations, the number of failed failures, the number of successful paging attempts, the number of failed pagings, and the like, and a method for calculating an index corresponding to the dimensional information, For example: Hash algorithm, set the statistical period to 15 minutes.
  • the SGSN After receiving the user event packet, the SGSN finds the saved user basic information according to the user identifier carried in the user event packet. If the user event packet carries the dimension of the event change, the SGSN carries the content according to the user event packet.
  • the message may be a message of an event such as attaching, activating, deactivating, and paging; when the user's geographic location, and/or access mode, and/or access point change, the user's dimensional information The change may occur. In this embodiment, specifically, when one or several of the LAI, LAI, RAI, SAI, APN, RAT, and RNC names are changed, the user's dimension information is changed. Chemical
  • the index corresponding to the dimension information is calculated, and according to the index corresponding to the dimension information, the statistical object instance corresponding to the index is searched. If the corresponding statistical object instance is found, the statistical object is determined according to the event type. The count value of the event-related indicator in the instance is increased by 1. If the corresponding statistical object instance is not found, a new statistical object instance is created, and according to the event type, the count value of the event-related indicator in the statistical object instance is incremented by one. The statistics are saved every 15 minutes, and then all the statistics instances are cleared. The statistics of the newly reported user event packets are restarted. The original statistical result is shown in Figure 2. Only the activation is listed in Figure 2. The count value of the related indicator, namely: the number of activation successes and the number of activation failures.
  • the selected time period is: 16:00:00 to 18:15:00, according to the original statistical results, you can get as shown in Figure 3.
  • the dimension combines the query results, and according to the query result, the activation success rate is obtained, and the output result as shown in FIG. 4 is obtained; in practical application, the dimension of interest can be selected by using Structured Query Language (SQL, Structured Query Language) or Dimensional combination, then calculate the activation success rate. Among them, the calculation formula of the statistical activation success rate is:
  • Activation success rate number of activation successes / (number of successful activations + number of activation failures) *100;
  • the number of activation successes and the number of activation failures are the number of activation successes and activation failures of the dimension or dimension combination query results of interest at that time. frequency.
  • the application scenario of this embodiment is: Statistics of the bearer update success rate of the Gateway General Packet Radio Service Support Node (GGSN).
  • GGSN Gateway General Packet Radio Service Support Node
  • the dimension information of the user in this embodiment includes: LAI, RAI, SAL APN, RAT, And the RNC name, etc.; the events to be counted are activated, deactivated, and bearer updated, etc., correspondingly, configured to count the number of successful activations, the number of activation failures, the number of successful deactivations, the number of deactivation failures, and the number of successful update attempts.
  • a counter that carries the number of update failures, and sets a method for calculating an index corresponding to the dimension information for example, a hash algorithm, and sets the statistics period to 15 minutes.
  • the GGSN After receiving the user event packet, the GGSN finds the saved user basic information according to the user identifier carried in the user event packet. If the user event packet carries the dimension of the event change, the GGSN carries the content according to the user event packet.
  • the text may be a message that activates, deactivates, and carries updates, etc.; when the user's geographic location, and/or access method, and/or access point change, the user's dimensional information changes.
  • the user's dimension information is changed;
  • the dimension information of the currently saved user state, the index corresponding to the dimension information is calculated, and then the index corresponding to the dimension information is used.
  • the statistical object instance and according to the event type, the count value of the event-related indicator in the statistical object instance is incremented by 1, and the statistical result is saved every 15 minutes, and then all the statistical instances are cleared, and the newly reported user event message is re-renewed.
  • the original statistical results obtained are similar to the original statistical results shown in Figure 2.
  • Bearer update success rate number of successful update of the bearer / (the number of successes of the bearer update + the number of failed bearer updates) *100;
  • the number of successes of the bearer update and the number of failures of the bearer update are respectively the number of successes of the bearer update and the number of failed bearer updates of the dimension or dimension combination query result in the period of time.
  • the present invention further provides a user behavior statistics device based on a user event.
  • the device includes: a message analysis module 51 and a statistics module 52; wherein, the message analysis module 51, After receiving a user event message, the dimension information of the user's current state is obtained from the currently saved user basic information, and the obtained current dimension information of the user is sent to the statistics module 52;
  • the statistic module 52 is configured to: after receiving the dimension information of the current state of the user sent by the packet analysis module 51, accumulate the count value of the event-related indicator in the corresponding statistical object instance according to the dimension information and the event type of the current state of the user.
  • the device may further include a storage module 53 configured to store user basic information and a statistical object instance, where the user basic information includes dimension information of a current state of the user.
  • the device may further include a collection module 54 configured to receive a user event message, and when the user event message carries the dimension in which the event changes, the storage module 53 is updated according to the dimension carried in the user event message. Saved user basic information.
  • the statistic module 52 is specifically configured to: search for a corresponding statistical object instance according to the dimension information of the currently saved user state, and if the corresponding statistical object instance is found, according to the event type, the event related indicator in the statistical object instance is The count value is incremented by 1. If the corresponding statistical object instance is not found, a new statistical object instance is created, and the count value of the event-related indicator in the statistical object instance is incremented by one according to the event type.
  • the device may further include: a timer and a clearing module; wherein
  • a timer configured to trigger a clearing module after a timeout
  • the clearing module is used to save the statistics after being triggered by the timer, and then clear all statistical object instances.
  • the storage module 53 is further configured to save a statistical result.
  • the device may further include: a calculation module, configured to further analyze and calculate the statistical result according to the user requirement after the statistics are completed, and output the operation result.
  • a calculation module configured to further analyze and calculate the statistical result according to the user requirement after the statistics are completed, and output the operation result.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

A method for user behaviors statistics based on user events is disclosed in the present invention, which includes: acquiring dimensionality information of current state of a user from user basic information after receiving a user event message; accumulating counts value of event relative indexes in a corresponding statistical object example according to the dimensionality information and event types of the current state of the user (102). An apparatus for user behaviors statistics based on user events is simultaneously disclosed in the present invention. The method and apparatus of the present invention enable to compress the user behaviors according to the dimensionality space, enable to save system resources, also enable to flexibly analyze and count user behaviors in any dimensionality or combined dimensionalities based on the statistical results of user behaviors according to the user dimensionalities, and also enable to automatically remove the invalid dimensionality space event.

Description

一种基于用户事件的用户行为统计方法及装置 技术领域  User behavior statistics method and device based on user event
本发明涉及通信领域的统计技术, 特别是指一种基于用户事件的用户 行为统计方法及装置。 背景技术  The invention relates to statistical technology in the field of communication, in particular to a user behavior statistical method and device based on user events. Background technique
随着移动网络的发展, 运营商的关注对象, 已经从承载赢利模式向内 容服务赢利模式转变, 因此, 传统的性能统计对象, 已经不能满足运营商 对移动业务进行精细化运营的要求, 应运而生的用户行为分析成为运营商 的关注目标和提高赢利能力的基础。 用户行为分析可以通过对用户的呼叫 记录和媒体报文内容进行统计, 而这些呼叫记录和媒体报文所包含的内容 已远远超过传统的性能统计对象, 在呼叫记录和媒体报文的基础上进行统 计和分析, 能够对系统性能、 用户行为等一系列指标进行深层分析, 获得 更有价值的信息。  With the development of the mobile network, the operator's concern has changed from the bearer profit model to the content service profit model. Therefore, the traditional performance statistics object can no longer meet the operator's requirements for the refined operation of the mobile service. The analysis of user behavior has become the focus of operators' attention and the basis for improving profitability. User behavior analysis can be performed by counting the user's call records and media message content, and these call records and media messages contain far more content than traditional performance statistics objects, based on call records and media messages. Statistics and analysis enable in-depth analysis of a range of metrics such as system performance and user behavior to obtain more valuable information.
对于一个移动用户, 他的业务行为具有多种属性, 比如: 用户位置必 定归属于某个位置区、 路由区、 服务区等, 其接入方式必定归属为某种接 入方式, 比如第二代移动通信技术(2G, Second Generation )、 第三代移动 通信技术 (3G , 3rd-Generation )、 或第四代移动通信技术 (4G , Fourth Generation ) , 其接入点必然归属某个接入点名称 ( APN , Access Point Name )„在以下的描述中,将与事件相关的用户位置、接入方式和归属 APN 等属性, 称为维度, 将用户的业务行为类型, 称为事件, 将特定业务过程 的统计结果, 称为指标。  For a mobile user, his business behavior has multiple attributes, such as: The user location must belong to a certain location area, routing area, service area, etc., and the access method must be attributed to some access method, such as the second generation. Mobile communication technology (2G, Second Generation), third-generation mobile communication technology (3G, 3rd-Generation), or fourth-generation mobile communication technology (4G, Fourth Generation), whose access point must belong to an access point name (APN, Access Point Name) „ In the following description, attributes such as user location, access method, and home APN related to the event are called dimensions, and the type of business behavior of the user is called an event, and the specific business process is called. The statistical results are called indicators.
在用户行为的分析应用中, 运营商需要能够从多个维度或组合维度、 多指标对用户行为进行分析, 举个例子来说, 对于通用分组无线服务技术 服务支持节点 (SGSN, Serving GPRS Support Node ), 运营商关注的维度, 可能为路由区、 位置区、 服务区、 跟踪区、 接入点、 接入方式、 业务类型、 用户类别以及终端类型等一系列维度中某个特定或组合维度, 关注指标包 含附着用户数、 激活用户数、 附着成功率、 激活成功率、 寻呼成功率、 时 延、 服务质量(QoS, Quality of Service ), 以及终端类型分布等一系列统计 结果, 因此, 要求统计系统能对统计结果自由组合, 实现灵活查询。 In the analysis of user behavior, operators need to be able to analyze user behavior from multiple dimensions or combined dimensions and multiple metrics, for example, for general packet wireless service technology. Serving GPRS Support Node (SGSN), the dimension that the operator pays attention to, may be routing area, location area, service area, tracking area, access point, access mode, service type, user category, and terminal type. A specific or combined dimension in the series dimension, the concern indicators include the number of attached users, the number of activated users, the attach success rate, the activation success rate, the paging success rate, the delay, the quality of service (QoS), and the terminal type. A series of statistical results such as distribution, therefore, the statistical system is required to freely combine statistical results to achieve flexible query.
对于这种多维度、 多指标灵活运算的统计分析需求, 通常的处理方法 是: 在统计系统建立一个关注指标的笛卡尔模型, 具体地, 假设用户信息 中存在 M个维度, 运营商关注的指标涉及其中的 N个维度, 其中, N≤M, 以 D1 D2 Dn表示 N个维度,对应的各维元素数分别为 N 、 N2 For the statistical analysis needs of this multi-dimensional, multi-index flexible operation, the usual processing method is: Establish a Cartesian model of the attention indicator in the statistical system. Specifically, assume that there are M dimensions in the user information, and the indicators that the operator pays attention to. Involving N dimensions, where N≤M, D 1 D 2 D n represents N dimensions, and the corresponding number of dimensions is N, N 2
Nn, 则对于笛卡尔模型的记录总数, 可以表示为: N n , then the total number of records for the Cartesian model, can be expressed as:
N=NixN2x xNn N=NixN 2 x xN n
然而, 对于移动通信领域, 用户相关的维度数通常都比较大, 比如: SGSN维度包括路由区、 位置区、接入点以及服务区等, 如果按照上述计算 公式, 则对应的记录总数将非常巨大, 按照这种方法分配内存及进行运算 操作, 现有系统的资源和性能通常很难满足要求, 因此, 需要对上述方法 进行改进, 现有技术中有如下两种解决方法:  However, for the field of mobile communications, the number of user-related dimensions is usually large, for example: SGSN dimensions include routing area, location area, access point, and service area. If the above formula is used, the total number of records corresponding to it will be very large. According to the method of allocating memory and performing arithmetic operations, the resources and performance of the existing system are often difficult to meet the requirements. Therefore, the above method needs to be improved. The following two solutions are available in the prior art:
第一, 针对上述模型, 根据维度的关联关系, 对维度空间进行压缩。 举个例子来说, 网络模型中的某个固定位置区, 必定归属于特定的路由区, 对于其它的非关联路由区, 则该位置区与其它非关联路由区不可能出现组 合。 通过这种方法, 可以将某些不可能出现的维度组合剔除, 从而实现维 度空间的压缩。 这种处理方法, 虽然可以节约部分内存资源, 但是, 维度 压缩方法过于复杂, 如果网元的组网模型发生变化时, 则难以实现自动处 理。  First, for the above model, the dimensional space is compressed according to the relationship of the dimensions. For example, a fixed location area in the network model must belong to a specific routing area. For other non-associated routing areas, it is impossible for the location area to be combined with other non-associated routing areas. In this way, some combinations of dimensions that are unlikely to occur can be eliminated, thereby achieving compression of the dimensional space. This method can save some memory resources. However, the dimensional compression method is too complicated. If the network model of the network element changes, it is difficult to implement automatic processing.
第二, 根据预定义的模型, 对运营商关注的维度和指标, 建立固定的 统计模型, 分别进行数据统计分析。 这种统计方法比较适合实时监控, 可 以获得比较高的压缩比, 但是, 由于该方法基于固定模型和固定指标, 统 计功能单一, 难以满足维度的灵活组合要求。 Second, according to the predefined model, a fixed statistical model is established for the dimensions and indicators of the operator's attention, and statistical analysis is performed separately. This statistical method is more suitable for real-time monitoring, In order to obtain a relatively high compression ratio, however, since the method is based on a fixed model and a fixed index, the statistical function is single, and it is difficult to meet the flexible combination requirements of the dimensions.
综上所述, 现有的用户行为统计方法, 不能实现基于事件的用户行为 的多维度统计和组合多维度统计。 发明内容  In summary, the existing user behavior statistics method cannot implement multi-dimensional statistics and combined multi-dimensional statistics of event-based user behavior. Summary of the invention
有鉴于此, 本发明的主要目的在于提供一种基于用户事件的用户行为 统计方法及装置, 能实现基于事件的用户行为的多维度统计和组合多维度 统计。  In view of this, the main object of the present invention is to provide a user behavior statistical method and apparatus based on user events, which can implement multi-dimensional statistics and combined multi-dimensional statistics of event-based user behavior.
为达到上述目的, 本发明的技术方案是这样实现的:  In order to achieve the above object, the technical solution of the present invention is achieved as follows:
本发明提供了一种基于用户事件的用户行为统计方法, 该方法包括: 收到一个用户事件报文后, 从当前保存的用户基本信息中获取用户当 前状态的维度信息;  The present invention provides a user behavior statistics method based on user events, the method includes: after receiving a user event message, obtaining dimension information of a current state of the user from the currently saved basic user information;
根据用户当前状态的维度信息和事件类型, 将对应的统计对象实例中 的事件相关指标的计数值累加。  The count value of the event-related indicator in the corresponding statistical object instance is accumulated according to the dimension information and the event type of the current state of the user.
上述方案中, 在从当前保存的用户基本信息中获取用户当前状态的维 度信息之前, 该方法进一步包括:  In the foregoing solution, before obtaining the dimension information of the current state of the user from the currently saved user basic information, the method further includes:
当用户事件报文中携带本次事件发生变化的维度时, 根据用户事件报 文中携带的用户维度更新保存的用户基本信息。  When the user event packet carries the dimension in which the event changes, the saved user basic information is updated according to the user dimension carried in the user event packet.
上述方案中, 所述根据用户当前状态的维度信息和事件类型, 将对应 的统计对象实例中的事件相关指标的计数值累加, 为:  In the above solution, the sum of the event-related indicators in the corresponding statistical object instance is accumulated according to the dimension information and the event type of the current state of the user, and is:
根据当前保存的用户状态的维度信息, 查找对应的统计对象实例, 如 果找到对应的统计对象实例, 则根据事件类型, 将统计对象实例中的事件 相关指标的计数值加 1 , 如果未找到对应的统计对象实例, 则创建一个新的 统计对象实例, 并根据事件类型, 将统计对象实例中的事件相关指标的计 数值加 1。 上述方案中, 所述根据当前保存的用户状态的维度信息, 查找对应的 统计对象实例, 为: According to the dimension information of the currently saved user state, the corresponding statistical object instance is searched. If the corresponding statistical object instance is found, the count value of the event related indicator in the statistical object instance is incremented by 1 according to the event type, if no corresponding corresponding is found. For the statistical object instance, a new statistical object instance is created, and the count value of the event-related indicator in the statistical object instance is incremented by one according to the event type. In the foregoing solution, the searching for the corresponding statistical object instance according to the dimension information of the currently saved user state is:
根据当前保存的用户状态的维度信息, 计算维度信息对应的索引; 根据维度信息对应的索引, 查找索引对应的统计对象实例。  The index corresponding to the dimension information is calculated according to the dimension information of the currently saved user state; and the statistical object instance corresponding to the index is searched according to the index corresponding to the dimension information.
上述方案中, 该方法进一步包括:  In the above solution, the method further includes:
定时器超时后, 保存统计结果, 并清除所有统计对象实例, 重新开始 统计。  After the timer expires, save the statistics and clear all statistical object instances to restart statistics.
上述方案中, 该方法进一步包括:  In the above solution, the method further includes:
原始统计完成后, 根据用户需求, 对统计结果进行进一步分析和运算, 并输出运算结果。  After the original statistics are completed, the statistical results are further analyzed and calculated according to the user's requirements, and the operation results are output.
本发明还提供了一种基于用户事件的用户行为统计装置, 该装置包括: 报文分析模块及统计模块; 其中,  The present invention also provides a user behavior statistics device based on a user event, the device comprising: a message analysis module and a statistics module;
报文分析模块, 用于收到一个用户事件报文后, 从当前保存的用户基 本信息中获取用户当前状态的维度信息, 并将获取到的用户当前的维度信 息发送给统计模块;  The packet analysis module is configured to: after receiving a user event packet, obtain the dimension information of the current state of the user from the currently saved user basic information, and send the obtained current dimension information of the user to the statistics module;
统计模块, 用于收到 "^文分析模块发送的用户当前状态的维度信息后, 根据用户当前状态的维度信息和事件类型, 将对应的统计对象实例中的事 件相关指标的计数值累加。  The statistics module is configured to: after receiving the dimension information of the current state of the user sent by the ^ text analysis module, accumulate the count value of the event-related indicator in the corresponding statistical object instance according to the dimension information and the event type of the current state of the user.
上述方案中, 该装置进一步包括存储模块, 用于保存用户基本信息及 统计对象实例, 所述用户基本信息包含用户当前状态的维度信息。  In the above solution, the device further includes a storage module, configured to save user basic information and a statistical object instance, where the user basic information includes dimension information of a current state of the user.
上述方案中, 该装置进一步包括釆集模块, 用于收到用户事件报文, 且当用户事件报文中携带本次事件发生变化的维度时, 根据用户事件报文 中携带的维度更新存储模块保存的用户基本信息。  In the foregoing solution, the device further includes a collecting module, configured to receive a user event packet, and when the user event packet carries the dimension in which the event changes, the storage module is updated according to the dimension carried in the user event packet. Saved user basic information.
上述方案中, 该装置进一步包括: 定时器及清除模块; 其中, 定时器, 用于在超时后, 触发清除模块; 清除模块, 用于被定时器触发后, 保存统计结果, 并清除所有统计对 象实例。 In the above solution, the device further includes: a timer and a clearing module; wherein, the timer is configured to trigger the clearing module after the timeout; The clearing module is used to save the statistics after being triggered by the timer, and clear all statistical object instances.
上述方案中, 该装置进一步包括计算模块, 用于在统计完成后, 根据 用户需求, 对统计结果进行进一步分析和运算, 并输出运算结果。  In the above solution, the device further includes a calculation module, configured to further analyze and calculate the statistical result according to the user requirement after the statistics are completed, and output the operation result.
本发明提供的基于用户事件的用户行为统计方法及装置, 收到用户事 件报文后, 根据用户当前状态的维度信息和事件类型, 将对应的统计对象 实例中的事件相关指标的计数值累加, 如此, 能将用户行为按用户维度属 性和事件类型, 进行归类和压缩, 即: 能实现用户行为多维度和组合维度 的统计, 进而能节约系统资源; 另外, 例如在移动通信系统中, 一个特定 的位置区必定归属于一个特定的路由区, 两个没有隶属关系的位置区和路 由区组合, 必然不会有用户事件发生, 因此, 本发明的方案还能自动实现 无效维度空间事件的剔除。  The user event-based user behavior statistics method and device provided by the present invention, after receiving the user event message, accumulate the count value of the event-related indicator in the corresponding statistical object instance according to the dimension information and the event type of the current state of the user. In this way, user behavior can be classified and compressed according to user dimension attributes and event types, that is, statistics of user behavior multi-dimensional and combined dimensions can be realized, thereby saving system resources; in addition, for example, in a mobile communication system, The specific location area must belong to a specific routing area, and the combination of the location area and the routing area without the affiliation relationship will inevitably result in no user events. Therefore, the solution of the present invention can automatically implement the culling of invalid dimensional space events. .
根据当前的用户状态的维度信息, 计算维度信息对应的索引; 根据维 度信息对应的索引, 查找索引对应的统计对象实例, 如此, 能快速地找到 维度信息对应的统计对象实例。  The index corresponding to the dimension information is calculated according to the current dimension information of the user state. The statistical object instance corresponding to the index is searched according to the index corresponding to the dimension information, so that the statistical object instance corresponding to the dimension information can be quickly found.
除此以外, 在原始统计完成后, 根据用户需求, 针对用户关注对象, 对统计结果进行进一步分析和运算, 并为用户输出运算结果, 如此, 能在 原始统计结果的基础上实现二次运算, 进一步满足用户需求。 附图说明  In addition, after the original statistics are completed, according to the user's needs, the user analyzes the object, further analyzes and calculates the statistical result, and outputs the operation result for the user, so that the second operation can be realized on the basis of the original statistical result. Further meet user needs. DRAWINGS
图 1为本发明基于用户事件的用户行为统计方法流程示意图; 图 2为实施例一的原始统计结果示意图;  1 is a schematic flowchart of a user behavior statistics method based on user events according to the present invention; FIG. 2 is a schematic diagram of original statistical results of Embodiment 1;
图 3为实施例一的维度组合查询结果示意图;  3 is a schematic diagram of a result of a dimension combination query of Embodiment 1;
图 4为实施例一统计的激活成功率的输出结果示意图;  4 is a schematic diagram showing an output result of the activation success rate of the first embodiment;
图 5为本发明基于用户事件的用户行为统计装置结构示意图。 具体实施方式 FIG. 5 is a schematic structural diagram of a user behavior statistics device based on user events according to the present invention. detailed description
下面结合附图及具体实施例对本发明再作进一步详细的说明。  The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
本发明基于用户行为的事件统计方法, 如图 1所示, 包括以下步骤: 步骤 101: 收到一个用户事件报文后, 从当前保存的用户基本信息中获 取用户当前状态的维度信息;  The event statistics method based on the user behavior of the present invention, as shown in FIG. 1 , includes the following steps: Step 101: After receiving a user event packet, obtain the dimension information of the current state of the user from the currently saved basic user information;
这里, 所述用户事件报文包含用户标识、 事件类型及执行结果, 可以 根据用户标识找到当前保存的用户基本信息, 即: 用户标识为当前保存的 用户基本信息的索引信息; 所述当前保存的用户基本信息包含用户当前状 态的维度信息; 所述用户当前状态的维度信息是指用户当前状态的所有维 度的具体信息; 收到用户事件报文后, 根据用户事件报文中的用户标识查 找当前保存的用户基本信息, 如果没有找到, 则说明是第一次收到该用户 的用户事件报文, 保存该用户基本信息, 再次收到该用户事件报文后, 则 该用户基本信息在第一次保存的基础上进行更新;  Here, the user event message includes a user identifier, an event type, and an execution result, and the currently saved user basic information can be found according to the user identifier, that is, the user identifier is index information of the currently saved user basic information; The user basic information includes the dimension information of the current state of the user; the dimension information of the current state of the user refers to specific information of all dimensions of the current state of the user; after receiving the user event packet, the current identifier of the user is used to find the current user identifier according to the user event packet. The saved user basic information, if not found, indicates that the user event message of the user is received for the first time, the basic information of the user is saved, and after receiving the user event message again, the basic information of the user is first. Update based on the second save;
在从当前保存的用户基本信息中获取用户当前状态的维度信息之前, 该方法还可以进一步包括:  Before obtaining the dimension information of the current state of the user from the currently saved user basic information, the method may further include:
当用户事件报文中携带本次事件发生变化的维度时, 根据用户事件报 文中携带的维度更新保存的用户基本信息;  When the user event packet carries the dimension in which the event changes, the saved user basic information is updated according to the dimension carried in the user event packet;
其中, 当用户的维度信息发生变化时, 用户事件报文中携带的用户基 本信息包含该用户当前发生变化的维度, 对于未发生变化的维度, 可以不 包含在用户事件报文携带的用户基本信息中, 如果该用户的所有维度都发 生变化时, 则用户事件报文中携带的用户基本信息包含该用户当前的所有 维度; 如果所述用户事件报文携带的用户基本信息包含该用户当前发生变 化的维度, 则只将保存的该用户基本信息中的发生变化的维度进行更新, 而对于未发生变化的维度, 则不做任何修改;  When the user's dimension information changes, the user basic information carried in the user event packet includes the dimension of the user's current change. For the dimension that has not changed, the user basic information carried in the user event packet may not be included. If all the dimensions of the user are changed, the user basic information carried in the user event packet includes all the current dimensions of the user; if the basic information of the user carried in the user event packet includes the current change of the user Dimensions, only the changed dimensions of the saved basic information of the user are updated, and for the dimension that has not changed, no modification is made;
如果用户的维度没有发生变化时, 则用户事件报文中携带的用户基本 信息不会包含用户的维度, 相应的, 在收到用户事件报文后, 不会更新保 存的用户基本信息中的维度信息, 直接从当前保存的用户信息中获取用户 当前状态的维度信息。 If the user's dimension does not change, the user carried in the user event packet is basically The information does not contain the dimension of the user. Correspondingly, after receiving the user event packet, the dimension information in the saved user basic information is not updated, and the dimension information of the current state of the user is directly obtained from the currently saved user information.
步骤 102: 根据用户当前状态的维度信息和事件类型, 将对应的统计对 象实例中的事件相关指标的计数值加累加;  Step 102: Add the count value of the event-related indicator in the corresponding statistical object instance according to the dimension information and the event type of the current state of the user;
具体地, 根据当前保存的用户状态的维度信息, 查找对应的统计对象 实例, 如果找到对应的统计对象实例, 则根据事件类型, 将统计对象实例 中的事件相关指标的计数值加 1 , 如果未找到对应的统计对象实例, 则创建 一个新的统计对象实例, 并根据事件类型, 将统计对象实例中的事件相关 指标的计数值加 1 ;  Specifically, the corresponding statistical object instance is searched according to the dimension information of the currently saved user state, and if the corresponding statistical object instance is found, the count value of the event related indicator in the statistical object instance is incremented by 1 according to the event type, if not Find the corresponding statistical object instance, create a new statistical object instance, and increase the count value of the event-related indicator in the statistical object instance by 1 according to the event type;
所述根据当前保存的用户状态的维度信息, 查找对应的统计对象实例 , 具体为:  And searching for the corresponding statistical object instance according to the dimension information of the currently saved user state, specifically:
根据当前保存的用户状态的维度信息, 计算维度信息对应的索引; 根据维度信息对应的索引, 查找索引对应的统计对象实例;  Calculating an index corresponding to the dimension information according to the dimension information of the currently saved user state; and searching for the statistical object instance corresponding to the index according to the index corresponding to the dimension information;
其中, 由于用户状态的维度信息包含多个维度的具体信息, 为了能够 快速地找到维度信息对应的统计对象实例, 可以釆用哈希 (Hash ) 算法、 或消息摘要算法第五版(MD5 )、 或其它用于数字签名的算法先计算维度信 息对应的索引, 进而利用索引找到对应的统计对象实例; 所述索引可以是 一个特征值;  The dimension information of the user state includes specific information of multiple dimensions. In order to quickly find the instance of the statistical object corresponding to the dimension information, a hash algorithm or a message digest algorithm fifth edition (MD5) may be used. Or other algorithms for digital signatures first calculate an index corresponding to the dimension information, and then use an index to find a corresponding statistical object instance; the index may be a feature value;
一个维度信息对应一个统计对象实例, 所述统计对象实例包含维度的 具体信息及事件相关指标的计数值; 其中, 可以通过计数器实现事件相关 指标的计数; 对于所述事件相关指标的计数值, 每种事件类型对应一套相 关指标的计数值, 一个统计对象实例中可以包含多种事件类型的相关指标 的计数值; 在实际应用过程中, 可以根据需要选择需要统计的事件类型, 再据此分配相关指标的计数器; 对于步骤 102, 举个例子来说, 需要统计的事件类型为激活和寻呼, 相 应的, 统计对象实例中激活相关指标的计数器有两个, 即: 统计激活成功 次数的计数器及统计激活失败次数的计数器, 寻呼相关指标的计数器也有 两个, 即: 统计寻呼成功次数的计数器及统计寻呼失败次数的计数器, 当 收到的用户事件报文中的事件类型为激活, 执行结果为激活成功时, 则将 相应统计对象实例中的统计激活成功次数的计数器的数值加 1。 A dimension information corresponds to a statistical object instance, where the statistical object instance includes specific information of the dimension and a count value of the event-related indicator; wherein, the counter can be counted by the counter; for the count value of the event-related indicator, The event type corresponds to the count value of a set of related indicators. A statistical object instance may include the count value of related indicators of various event types. In the actual application process, the event type that needs to be counted may be selected according to requirements, and then allocated according to the need. Counter of related indicators; For step 102, for example, the types of events to be counted are activation and paging. Correspondingly, there are two counters for activating related indicators in the statistical object instance, namely: a counter for counting the number of successful activations and a number of statistical activation failures. The counter, the counter of the paging related indicator also has two, namely: a counter for counting the number of successful paging times and a counter for counting the number of paging failures. When the event type in the received user event message is activated, the execution result is activated. On success, the value of the counter for the number of successful statistics activations in the corresponding statistical object instance is incremented by one.
依据用户业务的属性, 设置一个维度信息, 所述用户业务的属性包含 用户的位置区、 路由区、 服务区、 接入方式以及接入点等等, 一个维度信 息对应一个维度空间, 通过步骤 101和 102, 可以将同一个维度空间发生的 多个事件, 聚合为一个统计记录, 举个例子来说, 假设一个统计周期内发 生的事件总次数是 X, 在每个维度空间的事件平均发生次数为 P ( P≥1 ), 则 统计对象实例的个数为 X/P,因此,在每个维度空间的事件发生的次数越高, 统计对象实例数越少。 例如, 对于一个网元, 假设在一个统计周期内, 比 如 15 分钟, 每秒钟事件发生数为 10000, 则 15 分钟内事件发生总数为 10000*60*15=9000000,如果每个维度空间各类事件的平均发生次数为 100, 则对应的统计对象实例将为: 9000000/100=90000, 压缩比为 1/100。  And setting a dimension information according to the attribute of the user service, where the attribute of the user service includes a location area, a routing area, a service area, an access mode, an access point, and the like of the user, and one dimension information corresponds to one dimension space, and step 101 is performed. And 102, can aggregate multiple events occurring in the same dimensional space into one statistical record. For example, suppose the total number of events occurring in a statistical period is X, and the average number of occurrences of events in each dimensional space For P (P≥1), the number of statistical object instances is X/P. Therefore, the higher the number of events occurring in each dimension space, the fewer the number of statistical object instances. For example, for a network element, assuming that the number of events per second is 10000 in a statistical period, such as 15 minutes, the total number of events in 15 minutes is 10000*60*15=9000000, if each dimension space The average number of occurrences of the event is 100, and the corresponding statistical object instance will be: 9000000/100=90000, and the compression ratio is 1/100.
当然, 在极限情况下, 比如统计周期非常短, 当在每个维度空间的事 件平均发生次数为 1 时, 即: 发生的所有事件都不重复, 则统计对象实例 的个数等于事件发生数。 对于一个网元来说, 一般单位时间内发生的事件 数固定, 因此, 可以通过设置统计周期, 将事件总数控制在一个可以预知 的范围。  Of course, in the limit case, for example, the statistical period is very short. When the average number of occurrences of events in each dimension space is 1, that is, all events that occur are not repeated, the number of statistical object instances is equal to the number of events. For a network element, the number of events that occur in a typical unit time is fixed. Therefore, you can set the statistics period to control the total number of events to a predictable range.
步骤 101~102的过程可以称为原始统计的过程, 在原始统计完成后, 根据用户需求, 针对用户关注对象, 对统计结果进行进一步分析和运算, 并输出运算结果; 其中, 输出的方式可以釆用图形方式, 能让用户很直观 的看到运算结果; 所述用户需要可以是关注的某个维度下的某个事件统计 结果, 还可以是维度组合下的某个事件统计结果等。 The process of steps 101-102 may be referred to as a process of original statistics. After the original statistics are completed, according to the user's requirements, the statistical results are further analyzed and operated according to the user's attention object, and the operation result is output; wherein, the output mode may be Graphically, the user can visually see the result of the operation; the user needs to be an event statistics under a certain dimension of interest. As a result, it may also be an event statistical result or the like under the combination of dimensions.
在实际应用过程中, 可以设置统计周期, 比如: 设置统计周期为 15分 钟, 每隔 15分钟, 定时器超时后, 将该段时间的统计结果保存到磁盘, 之 后清除所有统计实例, 对新上报的用户事件报文重新开始统计, 以便用户 可以对统计结果进行进一步地分析和运算, 从而能更好的满足用户需求。  During the actual application, you can set the statistics period. For example, set the statistics period to 15 minutes. After every 15 minutes, after the timer expires, save the statistics of the period to disk. Then clear all statistics instances and report the new statistics. The user event message restarts statistics, so that the user can further analyze and calculate the statistical result, so as to better meet the user's needs.
实施例一  Embodiment 1
本实施例的应用场景是: SGSN的激活成功率的统计。  The application scenario of this embodiment is: statistics of the activation success rate of the SGSN.
本实施例中用户的维度信息包含: 位置区识别码( LAI , Location Area Identity )、路由区域识别码( RAI , Routing Area Identity )、服务区标识( S AI , Service Area Identity )、 APN、 无线接入技术 ( RAT , Radio Access Technology ), 以及无线网络控制器 (RNC, Radio Network Controller )名 称等; 需要统计的事件为附着、 激活、 去活、 以及寻呼等, 相应的, 分 别配置用于统计附着成功次数、 附着失败次数、 激活成功次数、 激活失 败次数、 去活成功次数、 去活失败次数、 寻呼成功次数、 寻呼失败次数 等的计数器, 并设置计算维度信息对应的索引的方法, 比如: 哈希算法, 设置统计周期为 15分钟。  The dimension information of the user in this embodiment includes: a location area identifier (LAI), a routing area identifier (RAI, a routing area identity), a service area identifier (S AI, a service area identity), an APN, and a wireless connection. Incoming technology (RAT, Radio Access Technology), and the name of the radio network controller (RNC, Radio Network Controller); events that need to be counted are attachment, activation, deactivation, and paging, etc., correspondingly configured for statistics a counter of the number of times of attachment success, the number of attachment failures, the number of activation successes, the number of activation failures, the number of successful deactivations, the number of failed failures, the number of successful paging attempts, the number of failed pagings, and the like, and a method for calculating an index corresponding to the dimensional information, For example: Hash algorithm, set the statistical period to 15 minutes.
SGSN 收到用户事件报文后, 根据用户事件报文中携带的用户标识找 到保存的用户基本信息, 如果用户事件报文中携带本次事件发生变化的维 度时, 根据用户事件报文中携带的维度更新保存的用户基本信息; 如果没 有携带维度信息时, 则不更新保存的用户基本信息中的维度信息; 其中, 用户事件报文为现有传递的报文, 在本实施例中, 用户事件报文可以是附 着、 激活、 去活、 以及寻呼等事件的报文; 当用户所处的地理位置、 和 /或 接入方式、 和 /或接入点等发生变化时, 用户的维度信息会发生变化, 在本 实施例中, 具体地, 可以是 LAI、 LAI、 RAI、 SAI、 APN、 RAT, 以及 RNC 名称等其中的一个或几个发生变化时, 则认为用户的维度信息发生了变 化; After receiving the user event packet, the SGSN finds the saved user basic information according to the user identifier carried in the user event packet. If the user event packet carries the dimension of the event change, the SGSN carries the content according to the user event packet. The user information of the user information saved in the dimension update; if the dimension information is not carried, the dimension information in the saved basic information of the user is not updated; wherein the user event packet is an existing message, in this embodiment, the user event The message may be a message of an event such as attaching, activating, deactivating, and paging; when the user's geographic location, and/or access mode, and/or access point change, the user's dimensional information The change may occur. In this embodiment, specifically, when one or several of the LAI, LAI, RAI, SAI, APN, RAT, and RNC names are changed, the user's dimension information is changed. Chemical
之后根据当前保存的用户状态的维度信息,计算维度信息对应的索引, 再根据维度信息对应的索引, 查找索引对应的统计对象实例, 如果找到对 应的统计对象实例时, 根据事件类型, 将统计对象实例中的事件相关指标 的计数值加 1 , 如果未找到对应的统计对象实例时,创建一个新的统计对象 实例, 并根据事件类型, 将统计对象实例中的事件相关指标的计数值加 1 , 并每隔 15分钟, 保存统计结果, 之后清除所有统计实例, 对新上报的用户 事件报文重新开始统计, 则得到如图 2所示的原始统计结果示意图, 在图 2 中只列出了激活相关指标的计数值, 即: 激活成功次数及激活失败次数。  Then, according to the dimension information of the currently saved user state, the index corresponding to the dimension information is calculated, and according to the index corresponding to the dimension information, the statistical object instance corresponding to the index is searched. If the corresponding statistical object instance is found, the statistical object is determined according to the event type. The count value of the event-related indicator in the instance is increased by 1. If the corresponding statistical object instance is not found, a new statistical object instance is created, and according to the event type, the count value of the event-related indicator in the statistical object instance is incremented by one. The statistics are saved every 15 minutes, and then all the statistics instances are cleared. The statistics of the newly reported user event packets are restarted. The original statistical result is shown in Figure 2. Only the activation is listed in Figure 2. The count value of the related indicator, namely: the number of activation successes and the number of activation failures.
选择关注的维度或维度组合, 比如: 选择的维度组合为 (LAI=32432, Select the dimension or combination of dimensions of interest, such as: The selected dimension combination is (LAI=32432,
RAI=3256, SAI=3247, APN=xcom.net, RAT=UTRAN ), 选择的时间段为: 16:00:00到 18:15:00, 根据原始统计结果, 则可以得到如图 3所示的维度组 合查询结果, 再根据查询结果, 统计激活成功率, 则得到如图 4所示的输 出结果; 在实际应用时, 可以利用结构化查询语言(SQL, Structured Query Language )选择关注的维度或维度组合, 之后再计算出激活成功率。 其中, 统计激活成功率的计算公式为: RAI=3256, SAI=3247, APN=xcom.net, RAT=UTRAN), the selected time period is: 16:00:00 to 18:15:00, according to the original statistical results, you can get as shown in Figure 3. The dimension combines the query results, and according to the query result, the activation success rate is obtained, and the output result as shown in FIG. 4 is obtained; in practical application, the dimension of interest can be selected by using Structured Query Language (SQL, Structured Query Language) or Dimensional combination, then calculate the activation success rate. Among them, the calculation formula of the statistical activation success rate is:
激活成功率 =激活成功次数 / (激活成功次数 +激活失败次数) *100; 这里, 激活成功次数、 激活失败次数分别为该段时间下关注的维度或 维度组合查询结果的激活成功次数与激活失败次数。  Activation success rate = number of activation successes / (number of successful activations + number of activation failures) *100; Here, the number of activation successes and the number of activation failures are the number of activation successes and activation failures of the dimension or dimension combination query results of interest at that time. frequency.
从上面的描述中可以看出, 可以实现 SGSN任意维度或维度组合的指 标分析和对比。  As can be seen from the above description, metric analysis and comparison of any dimension or combination of dimensions of the SGSN can be achieved.
实施例二  Embodiment 2
本实施例的应用场景是: 网关通用分组无线服务技术支持节点 ( GGSN, Gateway GPRS Support Node ) 的承载更新成功率的统计。  The application scenario of this embodiment is: Statistics of the bearer update success rate of the Gateway General Packet Radio Service Support Node (GGSN).
本实施例中用户的维度信息包含: LAI、 RAI、 SAL APN、 RAT, 以 及 RNC名称等; 需要统计的事件为激活、 去活、 以及承载更新等, 相应 的, 分别配置用于统计激活成功次数、 激活失败次数、 去活成功次数、 去活失败次数、 承载更新成功次数、 承载更新失败次数等的计数器, 并 设置计算维度信息对应的索引的方法, 比如: 哈希算法, 设置统计周期 为 15分钟。 The dimension information of the user in this embodiment includes: LAI, RAI, SAL APN, RAT, And the RNC name, etc.; the events to be counted are activated, deactivated, and bearer updated, etc., correspondingly, configured to count the number of successful activations, the number of activation failures, the number of successful deactivations, the number of deactivation failures, and the number of successful update attempts. A counter that carries the number of update failures, and sets a method for calculating an index corresponding to the dimension information, for example, a hash algorithm, and sets the statistics period to 15 minutes.
GGSN 收到用户事件报文后, 根据用户事件报文中携带的用户标识找 到保存的用户基本信息, 如果用户事件报文中携带本次事件发生变化的维 度时, 根据用户事件报文中携带的维度更新保存的用户基本信息; 如果没 有携带维度时, 则不更新保存的用户基本信息中的维度信息; 其中, 用户 事件报文为现有传递的报文, 在本实施例中, 用户事件报文可以是激活、 去活、 以及承载更新等事件的报文; 当用户所处的地理位置、 和 /或接入方 式、 和 /或接入点等发生变化时, 用户的维度信息会发生变化, 在本实施例 中, 具体地, 可以是 LAI、 LAI、 RAI、 SAI、 APN、 RAT, 以及 RNC名 称等其中的一个或几个发生变化时, 则认为用户的维度信息发生了变化; 之后根据当前保存的用户状态的维度信息,计算维度信息对应的索引, 再根据维度信息对应的索引, 查找索引对应的统计对象实例, 如果找到对 应的统计对象实例时, 根据事件类型, 将统计对象实例中的事件相关指标 的计数值加 1 , 如果未找到对应的统计对象实例时,创建一个新的统计对象 实例, 并根据事件类型, 将统计对象实例中的事件相关指标的计数值加 1 , 并每隔 15分钟, 保存统计结果, 之后清除所有统计实例, 对新上报的用户 事件报文重新开始统计, 得到的原始统计结果与图 2所示的原始统计结果 类似。  After receiving the user event packet, the GGSN finds the saved user basic information according to the user identifier carried in the user event packet. If the user event packet carries the dimension of the event change, the GGSN carries the content according to the user event packet. The user information of the user information saved in the dimension update; if the dimension is not carried, the dimension information in the saved basic information of the user is not updated; wherein the user event packet is an existing message, in this embodiment, the user event report The text may be a message that activates, deactivates, and carries updates, etc.; when the user's geographic location, and/or access method, and/or access point change, the user's dimensional information changes. In this embodiment, specifically, when one or several of the LAI, LAI, RAI, SAI, APN, RAT, and RNC names change, the user's dimension information is changed; The dimension information of the currently saved user state, the index corresponding to the dimension information is calculated, and then the index corresponding to the dimension information is used. Find the statistical object instance corresponding to the index. If the corresponding statistical object instance is found, add the count value of the event-related indicator in the statistical object instance to 1 according to the event type. If the corresponding statistical object instance is not found, create a new one. The statistical object instance, and according to the event type, the count value of the event-related indicator in the statistical object instance is incremented by 1, and the statistical result is saved every 15 minutes, and then all the statistical instances are cleared, and the newly reported user event message is re-renewed. Starting the statistics, the original statistical results obtained are similar to the original statistical results shown in Figure 2.
选择关注的维度或维度组合, 根据原始统计结果, 可以得到关注的维 度或维度组合查询结果, 再根据查询结果, 可以统计承载更新成功率, 在 实际应用时, 可以利用 SQL选择关注的维度或维度组合, 之后再计算出承 载更新成功率。 其中, 承载更新激活成功率的计算公式为: Select the dimension or combination of dimensions of interest, and according to the original statistical result, you can get the dimension or dimension combination query result, and then according to the query result, you can count the success rate of the bearer update. In actual application, you can use SQL to select the dimension or dimension of interest. Combine, then calculate Load update success rate. The calculation formula for the success rate of the bearer update activation is:
承载更新成功率 =承载更新成功次数 / (承载更新成功次数 +承载更新 失败次数) *100;  Bearer update success rate = number of successful update of the bearer / (the number of successes of the bearer update + the number of failed bearer updates) *100;
这里, 承载更新成功次数、 承载更新失败次数分别为该段时间下关注 的维度或维度组合查询结果的承载更新成功次数与承载更新失败次数。  Here, the number of successes of the bearer update and the number of failures of the bearer update are respectively the number of successes of the bearer update and the number of failed bearer updates of the dimension or dimension combination query result in the period of time.
从上面的描述中可以看出, 可以实现 GGSN任意维度或维度组合的指 标分析和对比。  As can be seen from the above description, FFT analysis and comparison of any dimension or combination of dimensions of the GGSN can be achieved.
为实现上述方法, 本发明还提供了一种基于用户事件的用户行为统计 装置, 如图 5所示, 该装置包括: 报文分析模块 51、 及统计模块 52; 其中, 报文分析模块 51 , 用于收到一个用户事件报文后, 从当前保存的用户 基本信息中获取用户当前状态的维度信息, 并将获取到的用户当前的维度 信息发送给统计模块 52;  In order to implement the above method, the present invention further provides a user behavior statistics device based on a user event. As shown in FIG. 5, the device includes: a message analysis module 51 and a statistics module 52; wherein, the message analysis module 51, After receiving a user event message, the dimension information of the user's current state is obtained from the currently saved user basic information, and the obtained current dimension information of the user is sent to the statistics module 52;
统计模块 52,用于收到报文分析模块 51发送的用户当前状态的维度信 息后, 根据用户当前状态的维度信息和事件类型, 将对应的统计对象实例 中的事件相关指标的计数值累加。  The statistic module 52 is configured to: after receiving the dimension information of the current state of the user sent by the packet analysis module 51, accumulate the count value of the event-related indicator in the corresponding statistical object instance according to the dimension information and the event type of the current state of the user.
该装置还可以进一步包括存储模块 53 , 用于保存用户基本信息及统计 对象实例, 所述用户基本信息包含用户当前状态的维度信息。  The device may further include a storage module 53 configured to store user basic information and a statistical object instance, where the user basic information includes dimension information of a current state of the user.
该装置还可以进一步包括釆集模块 54, 用于收到用户事件报文, 且当 用户事件报文中携带本次事件发生变化的维度时, 根据用户事件报文中携 带的维度更新存储模块 53保存的用户基本信息。  The device may further include a collection module 54 configured to receive a user event message, and when the user event message carries the dimension in which the event changes, the storage module 53 is updated according to the dimension carried in the user event message. Saved user basic information.
所述统计模块 52, 具体用于: 根据当前保存的用户状态的维度信息, 查找对应的统计对象实例, 如果找到对应的统计对象实例, 则根据事件类 型, 将统计对象实例中的事件相关指标的计数值加 1 , 如果未找到对应的统 计对象实例, 则创建一个新的统计对象实例, 并根据事件类型, 将统计对 象实例中的事件相关指标的计数值加 1。 该装置还可以进一步包括: 定时器及清除模块; 其中, The statistic module 52 is specifically configured to: search for a corresponding statistical object instance according to the dimension information of the currently saved user state, and if the corresponding statistical object instance is found, according to the event type, the event related indicator in the statistical object instance is The count value is incremented by 1. If the corresponding statistical object instance is not found, a new statistical object instance is created, and the count value of the event-related indicator in the statistical object instance is incremented by one according to the event type. The device may further include: a timer and a clearing module; wherein
定时器, 用于在超时后, 触发清除模块;  a timer, configured to trigger a clearing module after a timeout;
清除模块, 用于被定时器触发后, 保存统计结果, 之后清除所有统计 对象实例。  The clearing module is used to save the statistics after being triggered by the timer, and then clear all statistical object instances.
所述存储模块 53 , 还用于保存统计结果。  The storage module 53 is further configured to save a statistical result.
该装置还可以进一步包括: 计算模块, 用于在统计完成后, 根据用户 需求, 对统计结果进行进一步分析和运算, 并输出运算结果。  The device may further include: a calculation module, configured to further analyze and calculate the statistical result according to the user requirement after the statistics are completed, and output the operation result.
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围, 凡在本发明的精神和原则之内所作的任何修改、 等同替换和改进 等, 均应包含在本发明的保护范围之内。  The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included. Within the scope of protection of the present invention.

Claims

权利要求书 Claim
1、一种基于用户事件的用户行为统计方法,其特征在于,该方法包括: 收到一个用户事件报文后, 从当前保存的用户基本信息中获取用户当 前状态的维度信息;  A user behavior statistics method based on a user event, the method comprising: after receiving a user event message, obtaining dimension information of a current state of the user from the currently saved user basic information;
根据用户当前状态的维度信息和事件类型, 将对应的统计对象实例中 的事件相关指标的计数值累加。  The count value of the event-related indicator in the corresponding statistical object instance is accumulated according to the dimension information and the event type of the current state of the user.
2、 根据权利要求 1所述的方法, 其特征在于, 在从当前保存的用户基 本信息中获取用户当前状态的维度信息之前, 该方法进一步包括:  2. The method according to claim 1, wherein the method further comprises: before acquiring the dimension information of the current state of the user from the currently saved user basic information, the method further comprising:
当用户事件报文中携带本次事件发生变化的维度时, 根据用户事件报 文中携带的用户维度更新保存的用户基本信息。  When the user event packet carries the dimension in which the event changes, the saved user basic information is updated according to the user dimension carried in the user event packet.
3、 根据权利要求 1或 2所述的方法, 其特征在于, 所述根据用户当前 状态的维度信息和事件类型, 将对应的统计对象实例中的事件相关指标的 计数值累加, 为:  The method according to claim 1 or 2, wherein the sum of the event-related indicators in the corresponding statistical object instance is accumulated according to the dimension information and the event type of the current state of the user, as follows:
根据当前保存的用户状态的维度信息, 查找对应的统计对象实例, 如 果找到对应的统计对象实例, 则根据事件类型, 将统计对象实例中的事件 相关指标的计数值加 1 , 如果未找到对应的统计对象实例, 则创建一个新的 统计对象实例, 并根据事件类型, 将统计对象实例中的事件相关指标的计 数值加 1。  According to the dimension information of the currently saved user state, the corresponding statistical object instance is searched. If the corresponding statistical object instance is found, the count value of the event related indicator in the statistical object instance is incremented by 1 according to the event type, if no corresponding corresponding is found. For the statistical object instance, a new statistical object instance is created, and the count value of the event-related indicator in the statistical object instance is incremented by one according to the event type.
4、 根据权利要求 3所述的方法, 其特征在于, 所述根据当前保存的用 户状态的维度信息, 查找对应的统计对象实例, 为:  The method according to claim 3, wherein the searching for the corresponding statistical object instance according to the dimension information of the currently saved user state is:
根据当前保存的用户状态的维度信息, 计算维度信息对应的索引; 根据维度信息对应的索引, 查找索引对应的统计对象实例。  The index corresponding to the dimension information is calculated according to the dimension information of the currently saved user state; and the statistical object instance corresponding to the index is searched according to the index corresponding to the dimension information.
5、 根据权利要求 1所述的方法, 其特征在于, 该方法进一步包括: 定时器超时后, 保存统计结果, 并清除所有统计对象实例, 重新开始 统计。 The method according to claim 1, wherein the method further comprises: after the timer expires, saving the statistical result, and clearing all the statistical object instances, and restarting the statistics.
6、 根据权利要求 1、 2或 5所述的方法, 其特征在于, 该方法进一步 包括: 6. The method of claim 1, 2 or 5, wherein the method further comprises:
原始统计完成后, 根据用户需求, 对统计结果进行进一步分析和运算, 并输出运算结果。  After the original statistics are completed, the statistical results are further analyzed and calculated according to the user's requirements, and the operation results are output.
7、一种基于用户事件的用户行为统计装置,其特征在于,该装置包括: 报文分析模块及统计模块; 其中,  A user behavior statistics device based on user events, characterized in that the device comprises: a message analysis module and a statistics module;
报文分析模块, 用于收到一个用户事件报文后, 从当前保存的用户基 本信息中获取用户当前状态的维度信息, 并将获取到的用户当前的维度信 息发送给统计模块;  The packet analysis module is configured to: after receiving a user event packet, obtain the dimension information of the current state of the user from the currently saved user basic information, and send the obtained current dimension information of the user to the statistics module;
统计模块, 用于收到 "^文分析模块发送的用户当前状态的维度信息后, 根据用户当前状态的维度信息和事件类型, 将对应的统计对象实例中的事 件相关指标的计数值累加。  The statistics module is configured to: after receiving the dimension information of the current state of the user sent by the ^ text analysis module, accumulate the count value of the event-related indicator in the corresponding statistical object instance according to the dimension information and the event type of the current state of the user.
8、 根据权利要求 7所述的装置, 其特征在于, 该装置进一步包括存储 模块, 用于保存用户基本信息及统计对象实例, 所述用户基本信息包含用 户当前状态的维度信息。  The device according to claim 7, wherein the device further comprises a storage module, configured to store user basic information and a statistical object instance, wherein the user basic information includes dimension information of a current state of the user.
9、 根据权利要求 8所述的装置, 其特征在于, 该装置进一步包括釆集 模块, 用于收到用户事件报文, 且当用户事件报文中携带本次事件发生变 化的维度时, 根据用户事件报文中携带的维度更新存储模块保存的用户基 本信息。  The device according to claim 8, wherein the device further comprises a collection module, configured to receive a user event message, and when the user event message carries a dimension in which the event changes, according to the The dimension information carried in the user event packet updates the basic user information saved by the storage module.
10、 根据权利要求 7、 8或 9所述的装置, 其特征在于, 该装置进一步 包括: 定时器及清除模块; 其中,  The device according to claim 7, 8 or 9, wherein the device further comprises: a timer and a clearing module;
定时器, 用于在超时后, 触发清除模块;  a timer, configured to trigger a clearing module after a timeout;
清除模块, 用于被定时器触发后, 保存统计结果, 并清除所有统计对 象实例。  The clearing module is used to save the statistics after being triggered by the timer, and clear all statistical object instances.
11、 根据权利要求 7、 8或 9所述的装置, 其特征在于, 该装置进一步 包括计算模块, 用于在统计完成后, 根据用户需求, 对统计结果进行进一 步分析和运算, 并输出运算结果。 11. Apparatus according to claim 7, 8 or 9 wherein the apparatus is further The calculation module is configured to further analyze and calculate the statistical result according to the user requirement after the statistics are completed, and output the operation result.
PCT/CN2011/071904 2010-09-13 2011-03-17 Method and apparatus for user behaviors statistics based on user events WO2012034388A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010285034.1 2010-09-13
CN201010285034.1A CN101951623B (en) 2010-09-13 2010-09-13 User behavior statistical method and device based on user events

Publications (1)

Publication Number Publication Date
WO2012034388A1 true WO2012034388A1 (en) 2012-03-22

Family

ID=43454949

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/071904 WO2012034388A1 (en) 2010-09-13 2011-03-17 Method and apparatus for user behaviors statistics based on user events

Country Status (2)

Country Link
CN (1) CN101951623B (en)
WO (1) WO2012034388A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101951623B (en) * 2010-09-13 2014-11-05 中兴通讯股份有限公司 User behavior statistical method and device based on user events
CN102307315B (en) * 2011-04-22 2014-01-29 赛特斯信息科技股份有限公司 User behavior analysis device in Internet protocol television (IPTV) system, and system for realizing analysis application
CN105653568A (en) * 2014-12-04 2016-06-08 中兴通讯股份有限公司 Method and apparatus analyzing user behaviors
CN107168776B (en) * 2017-05-16 2020-09-22 广州视源电子科技股份有限公司 Event statistical method, device, equipment and storage medium
CN107451247B (en) * 2017-07-28 2021-03-30 北京小米移动软件有限公司 User identification method and device
CN112333233B (en) * 2020-09-23 2023-11-24 北京达佳互联信息技术有限公司 Event information reporting method and device, electronic equipment and storage medium
CN112579861A (en) * 2020-12-11 2021-03-30 北京字节跳动网络技术有限公司 Counting method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040064443A1 (en) * 2002-09-30 2004-04-01 David Taniguchi System and method for performing click stream analysis
US20060161816A1 (en) * 2004-12-22 2006-07-20 Gula Ronald J System and method for managing events
CN101087465A (en) * 2007-07-25 2007-12-12 华为技术有限公司 A statistical method and device of access events
CN101951623A (en) * 2010-09-13 2011-01-19 中兴通讯股份有限公司 User behavior statistical method and device based on user events

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100518076C (en) * 2004-01-02 2009-07-22 联想(北京)有限公司 Journal accounting method and system
CN101527812A (en) * 2008-03-07 2009-09-09 上海贝尔阿尔卡特股份有限公司 Method for automatically counting customer event information and program reception information in network television system
CN101465809B (en) * 2009-01-16 2012-11-14 中国人民解放军信息工程大学 Method, equipment and system for managing network flux

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040064443A1 (en) * 2002-09-30 2004-04-01 David Taniguchi System and method for performing click stream analysis
US20060161816A1 (en) * 2004-12-22 2006-07-20 Gula Ronald J System and method for managing events
CN101087465A (en) * 2007-07-25 2007-12-12 华为技术有限公司 A statistical method and device of access events
CN101951623A (en) * 2010-09-13 2011-01-19 中兴通讯股份有限公司 User behavior statistical method and device based on user events

Also Published As

Publication number Publication date
CN101951623B (en) 2014-11-05
CN101951623A (en) 2011-01-19

Similar Documents

Publication Publication Date Title
WO2012034388A1 (en) Method and apparatus for user behaviors statistics based on user events
US11695680B2 (en) Method and system for providing communication analysis of user equipment based on network data analysis
CN101384054B (en) Method for network exception condition monitoring through performance data
GB2577804A (en) Improvements in and relating to telecommunications networks
CN111263409B (en) Method, system and related equipment for providing metadata information of network function service
EP4109933A1 (en) Terminal behavior data obtaining method and apparatus, terminal behavior data sending method and apparatus, and network device
CA2578602A1 (en) Rule based data collection and management in a wireless communications network
EP3764595A1 (en) Communication method and device
EP2857992A1 (en) Online data processing method, device and system
US20140164409A1 (en) Generating And Using Temporal Data Partition Revisions
Jiang et al. A general framework for efficient continuous multidimensional top-k query processing in sensor networks
WO2011035605A1 (en) Storing method of performance data and system thereof
WO2021186221A1 (en) Resource efficient network performance analytics
WO2013016978A1 (en) Method and equipment for subscribing radio link failure report
WO2011140874A1 (en) Method and apparatus for evaluating behavior of user equipment in standby state
WO2012034445A1 (en) Method and device for measuring system performance in real time
WO2017084618A1 (en) Method for monitoring node communication of shared storage cluster file system, and monitoring node
CN112073329B (en) Distributed current limiting method and device, electronic equipment and storage medium
WO2012071810A1 (en) Method and device for storing network management performance non-granularity data rapidly
WO2011140886A1 (en) Method and apparatus for inter-system reselection frequency statistics
EP2432273B1 (en) Method and system for reporting measurement report between network elements
US20220353145A1 (en) Network entities for supporting analytics generation in a mobile network
CN115550138A (en) Alarm processing method and device, electronic equipment and storage medium
KR20120001343A (en) System and method for managing and processing 3g network load distribution
CN100473238C (en) Method for counting base station performance data

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: 11824459

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11824459

Country of ref document: EP

Kind code of ref document: A1