Summary of the invention
Main purpose of the present invention is the detection method and the device that provide a kind of television channel number of users, to solve the not statistical uncertainty true problem of prior art to television channel number of users.
To achieve these goals, according to an aspect of the present invention, a kind of detection method of television channel number of users is provided.The detection method of this television channel number of users comprises: the rating record obtaining television channel, and wherein, rating record comprises the end reproduction time of the user ID of user, the initial reproduction time of television channel and the television channel playing television channel; The playing duration of television channel is calculated according to the initial reproduction time of television channel and the end reproduction time of television channel; Judge whether the playing duration of television channel is greater than Preset Time; If judge that the playing duration of television channel is greater than Preset Time, user behavior corresponding for user ID is labeled as the normal play behavior of television channel; The broadcasting behavior detecting television channel is the number of the user ID of normal play behavior.
Further, after the user behavior that user ID is corresponding is labeled as the normal play behavior of television channel, the detection method of this television channel number of users also comprises: the rating record of traversal television channel; The record of the rating of television channel is converted into the broadcasting behavior record of television channel, and wherein, the broadcasting behavior record of television channel comprises user ID, the user behavior that user ID is corresponding, the corresponding relation of user ID and user behavior corresponding to user ID; By the broadcasting behavior record of television channel stored in presetting database.
Further, by the broadcasting behavior record of television channel stored in presetting database in after, the detection method of this television channel number of users also comprises: traversal presetting database; Broadcasting behavior record identical for user behavior corresponding for same user ID is merged; The broadcasting behavior record of the television channel after merging in presetting database is sorted according to user ID.
Further, detecting the broadcasting behavior of television channel is that the number of the user ID of normal play behavior comprises: the broadcasting behavior record of television channel in traversal presetting database; Often detect that the broadcasting behavior of a television channel is normal play behavior, user ID corresponding for the normal play behavior of television channel is carried out one-accumulate; The number of the user ID corresponding to normal play behavior of statistics television channel.
Further, the title of television channel is also comprised in the rating record of television channel, after the broadcasting behavior detecting television channel is the number of the user ID of normal play behavior, the detection method of this television channel number of users also comprises: generate chart according to the title that the broadcasting behavior of television channel is the number of the user ID of normal play behavior and television channel, wherein, the abscissa of chart is the title of television channel, the number of the ordinate of chart to be the broadcasting behavior of television channel the be user ID of normal play behavior; Export chart.
To achieve these goals, according to a further aspect in the invention, a kind of checkout gear of television channel number of users is provided.The checkout gear of this television channel number of users comprises: acquisition module, for obtaining the rating record of television channel, wherein, rating record comprises the end reproduction time of the user ID of user, the initial reproduction time of television channel and the television channel playing television channel; Computing module, for calculating the playing duration of television channel according to the initial reproduction time of television channel and the end reproduction time of television channel; Judge module, for judging whether the playing duration of television channel is greater than Preset Time; Mark module, for when judging that the playing duration of television channel is greater than Preset Time, is labeled as the normal play behavior of television channel by user behavior corresponding for user ID; Detection module, for detecting the number that the broadcasting behavior of television channel is the user ID of normal play behavior.
Further, the checkout gear of this television channel number of users also comprises: the first spider module, for traveling through the rating record of television channel; Conversion module, for the record of the rating of television channel being converted into the broadcasting behavior record of television channel, wherein, the broadcasting behavior record of television channel comprises user ID, the user behavior that user ID is corresponding, the corresponding relation of user ID and user behavior corresponding to user ID; Memory module, for by the broadcasting behavior record of television channel stored in presetting database.
Further, the checkout gear of this television channel number of users also comprises: the second spider module, for traveling through presetting database; Merge module, for being merged by broadcasting behavior record identical for user behavior corresponding for same user ID; Order module, for sorting the broadcasting behavior record of the television channel after merging in presetting database according to user ID.
Further, detection module comprises: the 3rd spider module, for traveling through the broadcasting behavior record of television channel in presetting database; Accumulator module, for often detecting that the broadcasting behavior of a television channel is normal play behavior, carries out one-accumulate by user ID corresponding for the normal play behavior of television channel; Statistical module, the number of the user ID that the normal play behavior for adding up television channel is corresponding.
Further, the checkout gear of this television channel number of users also comprises: generation module, for according to the broadcasting behavior of television channel being the number of the user ID of normal play behavior and the title generation chart of television channel, wherein, the abscissa of chart is the title of television channel, the number of the ordinate of chart to be the broadcasting behavior of television channel the be user ID of normal play behavior; Output module, for exporting chart.
By the present invention, adopt the rating record obtaining television channel, wherein, rating record comprises the end reproduction time of the user ID of user, the initial reproduction time of television channel and the television channel playing television channel; The playing duration of television channel is calculated according to the initial reproduction time of television channel and the end reproduction time of television channel; Judge whether the playing duration of television channel is greater than Preset Time; If judge that the playing duration of television channel is greater than Preset Time, user behavior corresponding for user ID is labeled as the normal play behavior of television channel; The broadcasting behavior detecting television channel is the number of the user ID of normal play behavior, solves the not statistical uncertainty true problem of prior art to television channel number of users.This invention is by comparing the playing duration of television channel and Preset Time, mark user behavior, the playing duration of television channel is greater than the normal play behavior that user behavior corresponding to the user ID of Preset Time is labeled as this television channel, added up by the number of user ID of the normal play behavior to user behavior being television channel, and then reach the effect of accurate statistics television channel number of users.
Embodiment
It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.Below with reference to the accompanying drawings and describe the present invention in detail in conjunction with the embodiments.
The application's scheme is understood better in order to make those skilled in the art person, below in conjunction with the accompanying drawing in the embodiment of the present application, technical scheme in the embodiment of the present application is clearly and completely described, obviously, described embodiment is only the embodiment of the application's part, instead of whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not making the every other embodiment obtained under creative work prerequisite, all should belong to the scope of the application's protection.
It should be noted that, term " first ", " second " etc. in the specification of the application and claims and above-mentioned accompanying drawing are for distinguishing similar object, and need not be used for describing specific order or precedence.Should be appreciated that the data used like this can be exchanged, in the appropriate case so that the embodiment of the application described herein.In addition, term " comprises " and " having " and their any distortion, intention is to cover not exclusive comprising, such as, contain those steps or unit that the process of series of steps or unit, method, system, product or equipment is not necessarily limited to clearly list, but can comprise clearly do not list or for intrinsic other step of these processes, method, product or equipment or unit.
The present invention aims to provide a kind of detection method and device of television channel number of users.
Fig. 1 is the flow chart of the detection method of television channel number of users according to the embodiment of the present invention.As shown in Figure 1, the detection method of this television channel number of users comprises following step S101 to step S105:
Step S101, obtains the rating record of television channel.
Preferably the number of users of the television channel of Web TV is analyzed in the detection method of the television channel number of users of this embodiment, Web TV can comprise IPTV, digital video broadcasting TV, internet television etc., preferably adopt IPTV in this embodiment, utilize the Set Top Box collection of this IPTV and return the rating daily record that user plays television channel.The rating daily record of this television channel is made up of one or more of rating record, wherein, the rating record of this television channel comprises the information such as the end reproduction time of the user ID of user, the initial reproduction time of television channel and the television channel playing television channel.Obtain the rating record of television channel mainly in order to obtain the initial reproduction time of television channel and the end reproduction time of video from the rating record of television channel, thus obtain the playing duration of television channel, wherein, the playing duration of television channel is the difference of the end reproduction time of television channel and the initial reproduction time of television channel.Such as, television channel is HNTV, HNTV comprises 10 rating records in the rating daily record on January 1st, 2014, wherein, have recorded the time of the initial broadcasting HNTV of user corresponding to user ID and terminate to play the time of HNTV in any rating record.May a corresponding user ID, the also corresponding multiple user ID of possibility in these 10 rating records.
Step S102, calculates the playing duration of television channel according to the initial reproduction time of television channel and the end reproduction time of television channel.
After the rating record obtaining television channel, the initial reproduction time of this television channel and the end reproduction time of this television channel is have recorded in the rating record of the rating record of television channel, calculate the playing duration of television channel according to the initial reproduction time of television channel and the end reproduction time of television channel, namely the playing duration of television channel equals the difference of the end reproduction time of television channel and the initial reproduction time of television channel.Such as, the initial reproduction time recorded in any rating record in 10 rating records of HNTV is 09:00, and end reproduction time is 09:15, then the playing duration of this HNTV is 15 minutes.
Step S103, judges whether the playing duration of television channel is greater than Preset Time.
After calculating the playing duration of television channel according to the initial reproduction time of television channel and the end reproduction time of television channel, judge whether the playing duration of television channel is greater than Preset Time.Wherein, Preset Time is determined according to concrete analysis demand, and this Preset Time can be 1 minute, also can be 5 seconds.Preferably Preset Time is defined as 5 seconds in this embodiment.Such as, in 10 rating records of HNTV, in any rating record, the initial reproduction time of record is 09:00, end reproduction time is 09:15, it is then 15 minutes by calculating the playing duration of this HNTV, judge the playing duration (15 minutes) of HNTV and the magnitude relationship of Preset Time (5 seconds), the playing duration (15 minutes) that can obtain HNTV is greater than Preset Time (5 seconds).
Step S104, if judge that the playing duration of television channel is greater than Preset Time, is labeled as the normal play behavior of television channel by user behavior corresponding for user ID.
When judging that the playing duration of television channel is greater than Preset Time, user behavior corresponding for user ID is labeled as the normal play behavior of television channel, namely the time that the user that this user ID is corresponding watches this television channel is greater than Preset Time, and the user behavior of this user is the normal play behavior of this television channel.When judging that the playing duration of television channel is not more than Preset Time, then prove that user corresponding to this user ID watches this television channel and fail to reach Preset Time, other television channels are switched to immediately after may just arriving this television channel, do not watch the content of this television channel, now the user behavior of this user is labeled as trick play behavior.Such as, the initial reproduction time that in 10 rating records of HNTV, in any rating record, user A is corresponding is 09:00, end reproduction time is 09:15, it is then 15 minutes by calculating the playing duration of this HNTV, through judging that the playing duration (15 minutes) obtaining HNTV is greater than Preset Time (5 seconds), then the behavior of this user A is normal play behavior.
Preferably, after the user behavior that user ID is corresponding is labeled as the normal play behavior of television channel, the detection method of the television channel number of users of this embodiment also comprises: the rating record of traversal television channel; The record of the rating of television channel is converted into the broadcasting behavior record of television channel, and wherein, the broadcasting behavior record of television channel comprises user ID, the user behavior that user ID is corresponding, the corresponding relation of user ID and user behavior corresponding to user ID; By the broadcasting behavior record of television channel stored in presetting database.Such as, the initial reproduction time that in 10 rating records of HNTV, in any rating record, user A is corresponding is 09:00, end reproduction time is 09:15, it is 15 minutes by calculating the playing duration of this HNTV, through judging that the playing duration (15 minutes) obtaining HNTV is greater than Preset Time (5 seconds), then the behavior of this user A is normal play behavior, then the behavior (i.e. normal play behavior) of user A and user A is put behavior record stored in presetting database as a drilling.By that analogy, other 9 rating records of HNTV are carried out similar process.
Preferably, by the broadcasting behavior record of television channel stored in presetting database in after, the detection method of the television channel number of users of this embodiment also comprises: traversal presetting database; Broadcasting behavior record identical for user behavior corresponding for same user ID is merged; The broadcasting behavior record of the television channel after merging in presetting database is sorted according to user ID.Such as, behavior record is put in corresponding 3 drillings of user A, and user behavior is respectively normal play behavior, trick play behavior, normal play behavior; Behavior record is put in corresponding 2 drillings of user B, and user behavior is respectively normal play behavior, trick play behavior; Behavior record is put in corresponding 2 drillings of user C, and user behavior is respectively normal play behavior, normal play behavior; Behavior record is put in corresponding 3 drillings of user D, and user behavior is respectively normal play behavior, trick play behavior, normal play behavior.The broadcasting behavior record identical by the user behavior corresponding to the same user ID in presetting database merges, and obtain corresponding 2 drillings of user A and put behavior record, user behavior is respectively normal play behavior, trick play behavior; Behavior record is put in corresponding 2 drillings of user B, and user behavior is respectively normal play behavior, trick play behavior; Behavior record is put in corresponding 1 drilling of user C, and user behavior is respectively normal play behavior; Behavior record is put in corresponding 2 drillings of user D, and user behavior is respectively normal play behavior, trick play behavior.Broadcasting behavior record identical for user behavior corresponding for same user ID in presetting database merges by this embodiment, is conducive to the number of users that accurate statistics has same subscriber behavior, thus reaches the effect of this television channel number of users of accurate analysis.
Preferably, after broadcasting behavior record identical for user behavior corresponding for the same user ID in presetting database is merged, the broadcasting behavior record of the television channel after merging is sorted according to user ID.The broadcasting behavior record of the television channel after this embodiment can be combined according to user ID carries out ascending order arrangement, and the broadcasting behavior record of the television channel after also can being combined according to user ID carries out descending.The broadcasting behavior record of the television channel after merging is carried out statistical computation fast according to the user ID broadcasting behavior record be conducive in presetting database that carries out sorting by the detection method of the television channel number of users of this embodiment.
Step S105, the broadcasting behavior detecting television channel is the number of the user ID of normal play behavior.
Preferably, this embodiment detects the broadcasting behavior of television channel is that the number of the user ID of normal play behavior comprises: the broadcasting behavior record of television channel in traversal presetting database; Often detect that the broadcasting behavior of a television channel is normal play behavior, user ID corresponding for the normal play behavior of television channel is carried out one-accumulate; The number of the user ID corresponding to normal play behavior of statistics television channel.Such as, in presetting database, 10 drillings of HNTV are let pass as record is after duplicate removal and sequence, and obtain corresponding 2 drillings of user A and put behavior record, user behavior is respectively normal play behavior, trick play behavior; Behavior record is put in corresponding 2 drillings of user B, and user behavior is respectively normal play behavior, trick play behavior; Behavior record is put in corresponding 1 drilling of user C, and user behavior is respectively normal play behavior; Behavior record is put in corresponding 2 drillings of user D, and user behavior is respectively normal play behavior, trick play behavior.Then through detection computations, to obtain user behavior be the number of users of normal play behavior is 4, is respectively user A, user B, user C and user D.
Preferably, the title of television channel is also comprised in the rating record of television channel, after the broadcasting behavior detecting television channel is the number of the user ID of normal play behavior, the detection method of this television channel number of users also comprises: generate chart according to the title that the broadcasting behavior of television channel is the number of the user ID of normal play behavior and television channel, wherein, the abscissa of chart is the title of television channel, the number of the ordinate of chart to be the broadcasting behavior of television channel the be user ID of normal play behavior; Export chart.This embodiment graphically shows the number of users of television channel intuitively, is conducive to the number of users that user directly analyzes television channel from chart, and can analyze which television channel attraction user according to number of users.The more television channel quality of number of users is better, compares and attracts user, and the less television channel of number of users is low by user's favorable rating, needs the program quality strengthening television channel, the program of rational schedule television channel.
The detection method of the television channel number of users of this embodiment adopts the rating record obtaining television channel, and wherein, rating record comprises the end reproduction time of the user ID of user, the initial reproduction time of television channel and the television channel playing television channel; The playing duration of television channel is calculated according to the initial reproduction time of television channel and the end reproduction time of television channel; Judge whether the playing duration of television channel is greater than Preset Time; If judge that the playing duration of television channel is greater than Preset Time, user behavior corresponding for user ID is labeled as the normal play behavior of television channel; The broadcasting behavior detecting television channel is the number of the user ID of normal play behavior, solves the not statistical uncertainty true problem of prior art to television channel number of users, reaches the effect that accurate statistics analyzes television channel number of users.
From above description, can find out, the detection method of the television channel number of users of the embodiment of the present invention marks user behavior by adopting to compare the playing duration of television channel and Preset Time, the playing duration of television channel is greater than the normal play behavior that user behavior corresponding to the user ID of Preset Time is labeled as this television channel, added up by the number of user ID of the normal play behavior to user behavior being television channel, solve the not statistical uncertainty true problem of prior art to television channel number of users, and then reach the effect of accurate statistics television channel number of users.
It should be noted that, can perform in the computer system of such as one group of computer executable instructions in the step shown in the flow chart of accompanying drawing, and, although show logical order in flow charts, but in some cases, can be different from the step shown or described by order execution herein.
The embodiment of the present invention additionally provides a kind of checkout gear of television channel number of users.It should be noted that, the checkout gear of this television channel number of users may be used for the detection method of the television channel number of users performing the embodiment of the present invention.
Fig. 2 is the schematic diagram of the checkout gear of television channel number of users according to the embodiment of the present invention.As shown in Figure 2, the checkout gear of this television channel number of users comprises: acquisition module 10, computing module 20, judge module 30, mark module 40 and detection module 50.
Acquisition module 10, for obtaining the rating record of television channel, wherein, rating record comprises the end reproduction time of the user ID of user, the initial reproduction time of television channel and the television channel playing television channel.
Computing module 20, for calculating the playing duration of television channel according to the initial reproduction time of television channel and the end reproduction time of television channel.
Judge module 30, for judging whether the playing duration of television channel is greater than Preset Time.
Mark module 40, for when judging that the playing duration of television channel is greater than Preset Time, is labeled as the normal play behavior of television channel by user behavior corresponding for user ID.
Detection module 50, for detecting the number that the broadcasting behavior of television channel is the user ID of normal play behavior.
Particularly, detection module 50 comprises: the 3rd spider module, for traveling through the broadcasting behavior record of television channel in presetting database; Accumulator module, for often detecting that the broadcasting behavior of a television channel is normal play behavior, carries out one-accumulate by user ID corresponding for the normal play behavior of television channel; Statistical module, the number of the user ID that the normal play behavior for adding up television channel is corresponding.
Preferably, the checkout gear of this television channel number of users can also comprise: the first spider module, for traveling through the rating record of television channel; Conversion module, for the record of the rating of television channel being converted into the broadcasting behavior record of television channel, wherein, the broadcasting behavior record of television channel comprises user ID, the user behavior that user ID is corresponding, the corresponding relation of user ID and user behavior corresponding to user ID; Memory module, for by the broadcasting behavior record of television channel stored in presetting database; Second spider module, for traveling through presetting database; Merge module, the broadcasting behavior record for the normal play behavior by user behavior corresponding for same user ID being television channel merges; Order module, for sorting the broadcasting behavior record of the television channel after merging in presetting database according to user ID; Generation module, for according to the broadcasting behavior of television channel being the number of the user ID of normal play behavior and the title generation chart of television channel, wherein, the abscissa of chart is the title of television channel, the number of the ordinate of chart to be the broadcasting behavior of television channel the be user ID of normal play behavior; Output module, for exporting chart.
The checkout gear of the television channel number of users of this embodiment comprises acquisition module 10, computing module 20, judge module 30, mark module 40 and detection module 50.The not statistical uncertainty true problem of prior art to television channel number of users is solved by the checkout gear of the television channel number of users of this embodiment.
Obviously, those skilled in the art should be understood that, above-mentioned of the present invention each module or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on network that multiple calculation element forms, alternatively, they can realize with the executable program code of calculation element, thus, they can be stored and be performed by calculation element in the storage device, or they are made into each integrated circuit modules respectively, or the multiple module in them or step are made into single integrated circuit module to realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.