CN104301759B - The acquisition methods and acquisition device of rating duration - Google Patents

The acquisition methods and acquisition device of rating duration Download PDF

Info

Publication number
CN104301759B
CN104301759B CN201410589703.2A CN201410589703A CN104301759B CN 104301759 B CN104301759 B CN 104301759B CN 201410589703 A CN201410589703 A CN 201410589703A CN 104301759 B CN104301759 B CN 104301759B
Authority
CN
China
Prior art keywords
time
rating duration
viewing
rating
target time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410589703.2A
Other languages
Chinese (zh)
Other versions
CN104301759A (en
Inventor
胡信
杨倩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201410589703.2A priority Critical patent/CN104301759B/en
Publication of CN104301759A publication Critical patent/CN104301759A/en
Application granted granted Critical
Publication of CN104301759B publication Critical patent/CN104301759B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44213Monitoring of end-user related data
    • H04N21/44222Analytics of user selections, e.g. selection of programs or purchase activity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25866Management of end-user data
    • H04N21/25891Management of end-user data being end-user preferences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47217End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Social Psychology (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Human Computer Interaction (AREA)
  • Computer Graphics (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)

Abstract

The invention discloses a kind of acquisition methods and acquisition device of rating duration.Wherein, this method includes:The acquisition request for obtaining rating duration is received, wherein, obtaining request includes the target time section of rating duration to be obtained;All time slices in target time section are obtained, wherein, time slice is the period for being split to obtain to the viewing time of user according to presetting granularity;The quantity of timing statisticses fragment, obtain the rating duration of target time section.By the present invention, solve the problems, such as that the statistical efficiency of rating duration in the prior art is low, realize the effect for the statistical efficiency for improving rating duration.

Description

The acquisition methods and acquisition device of rating duration
Technical field
The present invention relates to network technique field, in particular to a kind of acquisition methods and acquisition device of rating duration.
Background technology
Between each behavioral data is recorded at the beginning of a user certain viewing in the viewing behavior data of IPTV user And the end time, the rating duration of arbitrary period can be calculated based on these behavioral datas.
Wherein, IPTV is Internet Protocol Television, i.e. IPTV, is had using broadband The infrastructure of line television network, using domestic television set as primary terminal electrical equipment, provided by internet protocol including electricity Depending on a variety of digital media services including program.
Above-mentioned rating duration refers in specific time period, the viewing time sum of the viewing behavior of all users.For example, The a certain period is being chosen (with 19:00:00-19:30:Exemplified by 00) in the case of, viewing behavior of the user in this period can go out Existing four kinds of situations, as shown in Figure 1:The first situation, using user A as representative, A viewing behavior is from 18:45:00 starts, to 19: 05:00 terminates, and its this viewing behavior fell within the selected period for last 5 minutes;Second of situation, using user B as representative, B Viewing behavior from 19:05:00 starts, to 19:25:00 terminates, and its whole viewing time all fell within the selected period;The third Situation, using user C as representative, C viewing behavior is from 19:25:00 starts, to 19:50:00 terminates, its this viewing behavior Most start to fall within 5 minutes within the selected period;4th kind of situation, using user D as representative, D viewing behavior is from 18:45:00 starts, To 19:50:00 terminates, and includes the selected period in the viewing time section of its this viewing behavior.Summary situation, selected 19:00:00-19:30:In 00, a length of 60 minutes during rating (A is 5 minutes, and B is 20 minutes, and C is 5 minutes, and D is 30 points Clock).
Specifically, at the beginning of certain period between be st, the end time of arbitrary period is ed, the viewing behavior of user is opened Time beginning is ust, if ust<St, then st is taken as zero-computing time, conversely, then taking ust to be used as zero-computing time The end time of the viewing behavior at family is ued, if ued<Ed, then ued is taken as calculating the end time, it is on the contrary then take ed conducts Calculate the end time.The calculating end time of each user is finally taken to subtract zero-computing time as the time difference, then by institute The time difference for having user is added, and obtains the rating duration of the period.
Above-mentioned computational methods will be to the end time of ust and viewing behavior between at the beginning of the viewing behavior of each user Ued obtains zero-computing time and calculates the end time after making a decision, also subtract zero-computing time with the calculating end time, All obtained time differences are added again, efficiency is very low, especially in a case of a considerable amount of data, using above-mentioned computational methods The rating duration of arbitrary period is calculated, efficiency is very low.
For rating duration in the prior art statistical efficiency it is low the problem of, not yet propose effective solution at present.
The content of the invention
For rating duration in correlation technique statistical efficiency it is low the problem of, not yet propose effective solution at present, Therefore, it is a primary object of the present invention to provide a kind of acquisition methods and acquisition device of rating duration, to solve the above problems.
To achieve these goals, according to an aspect of the invention, there is provided a kind of acquisition methods of rating duration, are somebody's turn to do Acquisition methods include:The acquisition request for obtaining rating duration is received, wherein, obtaining request includes the mesh of rating duration to be obtained Mark the period;All time slices in target time section are obtained, wherein, time slice is to user's according to presetting granularity Viewing time is split the obtained period;The quantity of timing statisticses fragment, obtain the rating duration of target time section.
Further, all time slices obtained in target time section include:Read from database in target Between exist in section viewing behavior all users viewing behavior data, wherein, viewing behavior data include the rating of user Time;The viewing time of user is split according to presetting granularity, obtains time slice.
Further, the unit of presetting granularity includes one of the following:Minute, second and millisecond.
Further, the quantity of timing statisticses fragment, obtaining the rating duration of target time section includes:For each timeslice Section sets an identifier;The sum of identifier is counted, obtains the rating duration of target time section.
Further, the sum of identifier is counted, obtaining the rating duration of target time section includes:Obtain in the object time The total n of the identifier of all time slices in section;Rating duration L is calculated according to equation below, wherein, formula is:L=n × c, c are the period corresponding to presetting granularity.
To achieve these goals, according to another aspect of the present invention, there is provided a kind of acquisition device of rating duration, should Acquisition device includes:Receiving module, the acquisition request of rating duration is obtained for receiving, wherein, acquisition request includes to be obtained Rating duration target time section;First acquisition module, for obtaining all time slices in target time section, its In, time slice is the period for being split to obtain to the viewing time of user according to presetting granularity;Statistical module, for uniting The quantity of time slice is counted, obtains the rating duration of target time section.
Further, the first acquisition module includes:Read module, for being read from database in target time section internal memory In the viewing behavior data of all users of viewing behavior, wherein, viewing behavior data include the viewing time of user;Segmentation Module, for splitting according to presetting granularity to the viewing time of user, obtain time slice.
Further, the unit of presetting granularity includes one of the following:Minute, second and millisecond.
Further, statistical module includes:Setup module, for setting an identifier for each time slice;Statistics Submodule, for counting the sum of identifier, obtain the rating duration of target time section.
Further, statistic submodule includes:Second acquisition module, for obtaining institute's having time in target time section The total n of the identifier of fragment;Computing module, for calculating rating duration L according to equation below, wherein, formula is:L=n × C, c are the period corresponding to presetting granularity.
Using the embodiment of the present invention, the viewing time of user is split to obtain time slice according to presetting granularity, After receiving the acquisition request for obtaining rating duration, the sum of the time slice in target time section need to be only counted, you can Obtain the rating duration of target time section, at the beginning of the viewing behavior without judging user between and viewing behavior end time To obtain zero-computing time and calculate the end time, and subtract zero-computing time with the calculating end time and obtain the time difference, All time differences, which are added, again can just obtain the rating duration of target time section, eliminate substantial amounts of judgement and calculating process, Especially in the case where data volume is larger, the statistical efficiency of rating duration can be improved.Pass through the above embodiment of the present invention, solution Determined rating duration in the prior art statistical efficiency it is low the problem of, realize the effect of the statistical efficiency for improving rating duration.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, forms the part of the application, this hair Bright schematic description and description is used to explain the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the schematic diagram according to the statistical method of the rating duration of prior art;
Fig. 2 is the flow chart of the acquisition methods of rating duration according to embodiments of the present invention;
Fig. 3 is a kind of flow chart of the acquisition methods of optional rating duration according to embodiments of the present invention;And
Fig. 4 is the schematic diagram of the acquisition device of rating duration according to embodiments of the present invention.
Embodiment
First, the part noun or term occurred during the embodiment of the present invention is described is applied to following solution Release:
Rating duration:In specific time period, the viewing time sum of all users that viewing behavior be present.
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention Accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people The every other embodiment that member is obtained under the premise of creative work is not made, it should all belong to the model that the present invention protects Enclose.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, " Two " etc. be for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so use Data can exchange in the appropriate case, so as to embodiments of the invention described herein can with except illustrating herein or Order beyond those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, be not necessarily limited to for example, containing the process of series of steps or unit, method, system, product or equipment Those steps or unit clearly listed, but may include not list clearly or for these processes, method, product Or the intrinsic other steps of equipment or unit.
Fig. 2 is the flow chart of the acquisition methods of rating duration according to embodiments of the present invention, the acquisition methods as shown in Figure 2 Comprise the following steps:
Step S202, receive the acquisition request for obtaining rating duration.
Wherein, obtaining request includes the target time section of rating duration to be obtained.
Step S204, obtain all time slices in target time section.
Wherein, time slice is period for being split to obtain to the viewing time of user according to presetting granularity, user Viewing time be user viewing behavior duration, e.g., user using IPTV viewing TV programme duration.
Step S206, the quantity of timing statisticses fragment, obtain the rating duration of target time section.
Using the embodiment of the present invention, the viewing time of user is split to obtain time slice according to presetting granularity, After receiving the acquisition request for obtaining rating duration, the sum of the time slice in target time section need to be only counted, you can Obtain the rating duration of target time section, at the beginning of the viewing behavior without judging user between and viewing behavior end time To obtain zero-computing time and calculate the end time, and subtract zero-computing time with the calculating end time and obtain the time difference, All time differences, which are added, again can just obtain the rating duration of target time section, eliminate substantial amounts of judgement and calculating process, Especially in the case where data volume is larger, the statistical efficiency of rating duration can be improved.Pass through the above embodiment of the present invention, solution Determined rating duration in the prior art statistical efficiency it is low the problem of, realize the effect of the statistical efficiency for improving rating duration.
According to the above embodiment of the present invention, all time slices obtained in target time section can include:From data The viewing behavior data for all users that viewing behavior in target time section be present are read in storehouse, wherein, viewing behavior data Include the viewing time of user;The viewing time of user is split according to presetting granularity, obtains time slice.
Specifically, the viewing behavior number for all users that viewing behavior in target time section be present is read from database According to when obtaining the rating for all users that viewing behavior in target time section be present from the viewing behavior data read Between, then the viewing time of all users is split according to presetting granularity, obtain in target time section institute sometimes Between fragment.
For example, target time section is 9:00 to 10:00, user A are from 8:50 begin to use IPTV watch news program, and 9:30 stop using IPTV, and user B is 9:15 begin to use IPTV to watch entertainment, and 10:10 stop using IPTV, use Family C is 8:00 begins to use IPTV to watch TV play, and 8:50 stop using IPTV.According to the above embodiment of the present invention, use The viewing time of family C viewing behavior is not in target time section, without reading user C viewing behavior number from database According to.To count the rating duration in the target time section, user A viewing behavior data and user B are read from database Viewing behavior data, and obtain from user A viewing behavior data and user B viewing behavior data user A rating Time (i.e. 8:50 to 9:30) and user B viewing time (i.e. 9:15 to 10:10), then according to presetting granularity to user A's Viewing time and user B viewing time are split, obtain time slices of the user A in target time section (i.e. user A's Viewing time is 9:00 to 9:Time slice between 30) and time slices of the user B in target time section (i.e. user B's Viewing time is 9:15 to 10:Time slice between 00), time slices of the user A in target time section and user B are existed Time slice in target time section is added, that is, obtains all time slices in target time section.
By the above embodiment of the present invention, can the viewing time of the only user to meeting target time section split, Without handling the viewing time of whole users in database, can reduce needs data volume to be processed, shortens and obtains The time of time slice is taken, improves the acquisition efficiency of rating duration.
In the above embodiment of the present invention, the unit of presetting granularity can include one of following units:Minute, second with And millisecond.
Specifically, presetting granularity can be 10 minutes, 5 minutes, 1 minute, 10 seconds, 5 seconds, 1 second, 10 milliseconds, 5 millis Second and 1 millisecond etc..
In the above embodiment of the present invention, the essence of the rating duration got can be adjusted by different presetting granularities Degree, when not needing point-device statistical result, selects larger presetting granularity (e.g., 10 minutes), can shorten to user Viewing time segmentation processing time, so as to improve the acquisition efficiency of rating duration.When needing accurate statistical result, Less presetting granularity (e.g., 10 milliseconds) can be selected, the precision for the rating duration for ensureing to get meets required precision.
According to the above embodiment of the present invention, the quantity of timing statisticses fragment, the rating duration for obtaining target time section can be with Including:For each time slice, one identifier is set;The sum of identifier is counted, obtains the rating duration of target time section.
Wherein, the identifier of each time slice can be identical or different.
Specifically, one identifier is set for each time slice, in the quantity of timing statisticses fragment, only need to counts mark Know the sum of symbol so that statistics enhanced convenience is quick.
In above-described embodiment, by setting identifier, all time slices in target time section can be easily obtained Quantity, improve obtain target time section in rating duration efficiency.
Fig. 3 is a kind of flow chart of the acquisition methods of optional rating duration according to embodiments of the present invention.Below with one Second is used as exemplified by presetting granularity, and above-described embodiment is discussed in detail with reference to Fig. 3.As shown in figure 3, this method can include following step Suddenly:
Step S302, to setting an identifier between at the beginning of the viewing behavior of all users in target time section (i.e. Viewcount).
Wherein, at the beginning of the viewing behavior of the viewing time of user including user between and viewing behavior end time, Viewing time such as user is 8:50 to 9:30, then at the beginning of viewing behavior between be 8:50, the end time of viewing behavior is 9:30。
Step S304, at the beginning of the viewing behavior between after each second one identifier is all set, until user Untill the end time of viewing behavior.
Wherein, each identifier can be identical.
Step S306, the sum of all identifiers in target time section is counted, is obtained according to the sum of all identifiers Rating duration in target time section.
Specifically, after the viewing time for getting all users that viewing behavior in target time section be present, to this One identifier Viewcount is set between at the beginning of the viewing behavior of the user in viewing time, and in the rating row of user Each second after between at the beginning of all sets an identifier Viewcount, until at the end of the viewing behavior of user Between untill terminate the setting;Count the sum (mark i.e. in above-described embodiment of the identifier Viewcount in target time section The sum of symbol), the result of gained is numerical value corresponding to rating duration in target time section, and the rating duration is using the second to be single Position.
In the above embodiment of the present invention, the sum of identifier is counted, the rating duration for obtaining target time section can be with Including:Obtain the total n of the identifier of all time slices in target time section;Rating duration is calculated according to equation below L, wherein, formula is:L=n × c, c are the period corresponding to presetting granularity.
Specifically, the sum of the identifier of all time slices in target time section got is multiplied by default grain Period corresponding to degree, acquired results are numerical value corresponding to rating duration in the target time section, the rating duration with The unit of presetting granularity is unit.
By the above embodiment of the present invention, at the beginning of the viewing behavior without judging user between and viewing behavior end Time subtracts zero-computing time with the calculating end time and obtains the time to obtain zero-computing time and calculate the end time Difference, then all time differences are added to the rating duration that can just obtain target time section, eliminate and largely judge and calculated Journey, you can the rating duration in target time section is obtained, especially in the case where data volume is larger, it is possible to increase rating duration Statistical efficiency.
It should be noted that can be in such as one group of computer executable instructions the flow of accompanying drawing illustrates the step of Performed in computer system, although also, show logical order in flow charts, in some cases, can be with not The order being same as herein performs shown or described step.
Fig. 4 is the schematic diagram of the acquisition device of rating duration according to embodiments of the present invention, as shown in figure 4, the acquisition fills Putting to include:Receiving module 10, the first acquisition module 30 and statistical module 50.
Wherein, receiving module 10 is used to receive the acquisition request for obtaining rating duration, wherein, acquisition request includes to be obtained Rating duration target time section;First acquisition module 30 is used to obtain all time slices in target time section, its In, time slice is the period for being split to obtain to the viewing time of user according to presetting granularity;Statistical module 50 is used for The quantity of timing statisticses fragment, obtain the rating duration of target time section.
Wherein, the viewing time of user is the duration of the viewing behavior of user, and e.g., user uses IPTV viewing TVs The duration of program.
Using the embodiment of the present invention, the viewing time of user is split to obtain time slice according to presetting granularity, After receiving the acquisition request for obtaining rating duration, the sum of the time slice in target time section need to be only counted, you can Obtain the rating duration of target time section, at the beginning of the viewing behavior without judging user between and viewing behavior end time To obtain zero-computing time and calculate the end time, and subtract zero-computing time with the calculating end time and obtain the time difference, All time differences, which are added, again can just obtain the rating duration of target time section, eliminate substantial amounts of judgement and calculating process, Especially in the case where data volume is larger, the statistical efficiency of rating duration can be improved.Pass through the above embodiment of the present invention, solution Determined rating duration in the prior art statistical efficiency it is low the problem of, realize the effect of the statistical efficiency for improving rating duration.
According to the above embodiment of the present invention, the first acquisition module can include:Read module, for being read from database The viewing behavior data of all users of viewing behavior in target time section be present, wherein, viewing behavior data include using The viewing time at family;Split module, for splitting according to presetting granularity to the viewing time of user, obtain time slice.
Specifically, the viewing behavior number for all users that viewing behavior in target time section be present is read from database According to when obtaining the rating for all users that viewing behavior in target time section be present from the viewing behavior data read Between, then the viewing time of all users is split according to presetting granularity, obtain in target time section institute sometimes Between fragment.
By the above embodiment of the present invention, can the viewing time of the only user to meeting target time section split, Without handling the viewing time of whole users in database, can reduce needs data volume to be processed, shortens and obtains The time of time slice is taken, improves the acquisition efficiency of rating duration.
In the above-described embodiments, the unit of presetting granularity can include one of the following:Minute, second and millisecond.
Specifically, presetting granularity can be 10 minutes, 5 minutes, 1 minute, 10 seconds, 5 seconds, 1 second, 10 milliseconds, 5 millis Second and 1 millisecond etc..
In the above embodiment of the present invention, the essence of the rating duration got can be adjusted by different presetting granularities Degree, when not needing point-device statistical result, selects larger presetting granularity (e.g., 10 minutes), can shorten to user Viewing time segmentation processing time, so as to improve the acquisition efficiency of rating duration.When needing accurate statistical result, Less presetting granularity (e.g., 10 milliseconds) can be selected, the precision for the rating duration for ensureing to get meets required precision.
According to the above embodiment of the present invention, statistical module can include:Setup module, for being set for each time slice One identifier;Statistic submodule, for counting the sum of identifier, obtain the rating duration of target time section.
Wherein, the identifier of each time slice can be identical or different.
Specifically, one identifier is set for each time slice, in the quantity of timing statisticses fragment, only need to counts mark Know the sum of symbol so that statistics enhanced convenience is quick.
In above-described embodiment, by setting identifier, all time slices in target time section can be easily obtained Quantity, improve obtain target time section in rating duration efficiency.
In the above-described embodiments, statistic submodule can include:Second acquisition module, for obtaining in target time section All time slices identifier total n;Computing module, for calculating rating duration L according to equation below, wherein, it is public Formula is:L=n × c, c are the period corresponding to presetting granularity.
Specifically, the sum of the identifier of all time slices in target time section got is multiplied by default grain Period corresponding to degree, acquired results are numerical value corresponding to rating duration in the target time section, the rating duration with The unit of presetting granularity is unit.
By the above embodiment of the present invention, at the beginning of the viewing behavior without judging user between and viewing behavior end Time subtracts zero-computing time with the calculating end time and obtains the time to obtain zero-computing time and calculate the end time Difference, then all time differences are added to the rating duration that can just obtain target time section, eliminate and largely judge and calculated Journey, you can the rating duration in target time section is obtained, especially in the case where data volume is larger, it is possible to increase rating duration Statistical efficiency.
Modules provided in the present embodiment are identical with the application method that the corresponding step of embodiment of the method is provided, should Can also be identical with scene.It is noted, of course, that the scheme that above-mentioned module is related to can be not limited in embodiment of the method Content and scene, and above-mentioned module may operate in terminal or mobile terminal, can be realized by software or hardware.
As can be seen from the above description, the present invention realizes following technique effect:
Using the embodiment of the present invention, the viewing time of user is split to obtain time slice according to presetting granularity, After receiving the acquisition request for obtaining rating duration, the sum of the time slice in target time section need to be only counted, you can Obtain the rating duration of target time section, at the beginning of the viewing behavior without judging user between and viewing behavior end time To obtain zero-computing time and calculate the end time, and subtract zero-computing time with the calculating end time and obtain the time difference, All time differences, which are added, again can just obtain the rating duration of target time section, eliminate substantial amounts of judgement and calculating process, Especially in the case where data volume is larger, the statistical efficiency of rating duration can be improved.Pass through the above embodiment of the present invention, solution Determined rating duration in the prior art statistical efficiency it is low the problem of, realize the effect of the statistical efficiency for improving rating duration.
Obviously, those skilled in the art should be understood that above-mentioned each module of the invention or each step can be with general Computing device realize that they can be concentrated on single computing device, or be distributed in multiple computing devices and formed Network on, alternatively, they can be realized with the program code that computing device can perform, it is thus possible to they are stored Performed in the storage device by computing device, either they are fabricated to respectively each integrated circuit modules or by they In multiple modules or step be fabricated to single integrated circuit module to realize.So, the present invention is not restricted to any specific Hardware and software combines.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies Change, equivalent substitution, improvement etc., should be included in the scope of the protection.

Claims (4)

  1. A kind of 1. acquisition methods of rating duration, it is characterised in that including:
    The acquisition request for obtaining rating duration is received, wherein, it is described to obtain the mesh for asking to include the rating duration to be obtained Mark the period;
    Obtain all time slices in the target time section, wherein, the time slice be according to presetting granularity to The viewing time at family is split the obtained period;
    The quantity of the time slice is counted, obtains the rating duration of the target time section,
    Wherein, all time slices obtained in the target time section include:Read from database in the target Between exist in section viewing behavior all users viewing behavior data, wherein, the viewing behavior data include institute State the viewing time of user;The viewing time of the user is split according to the presetting granularity, obtains the timeslice Section,
    Wherein, the quantity of the time slice is counted, obtaining the rating duration of the target time section includes:For each institute State time slice and one identifier is set;The sum of the identifier is counted, when obtaining the rating of the target time section It is long,
    Wherein, the sum of the identifier is counted, obtaining the rating duration of the target time section also includes:Obtain in institute State the total n of the identifier of all time slices in target time section;The rating is calculated according to equation below Duration L, wherein, the formula is:L=n × c, the c are the period corresponding to the presetting granularity.
  2. 2. acquisition methods according to claim 1, it is characterised in that the unit of the presetting granularity includes one of the following: Minute, second and millisecond.
  3. A kind of 3. acquisition device of rating duration, it is characterised in that including:
    Receiving module, the acquisition request of rating duration is obtained for receiving, wherein, it is described obtain request include it is to be obtained described The target time section of rating duration;
    First acquisition module, for obtaining all time slices in the target time section, wherein, the time slice is The period for being split to obtain to the viewing time of user according to presetting granularity;
    Statistical module, for counting the quantity of the time slice, the rating duration of the target time section is obtained,
    Wherein, first acquisition module includes:Read module, for being read from database in the target time section internal memory In the viewing behavior data of all users of viewing behavior, wherein, the viewing behavior data include the user's Viewing time;Split module, for splitting according to the presetting granularity to the viewing time of the user, when obtaining described Between fragment,
    Wherein, the statistical module includes:Setup module, for setting an identifier for each time slice;Statistics Submodule, for counting the sum of the identifier, the rating duration of the target time section is obtained,
    Wherein, the statistic submodule includes:Second acquisition module, it is all described in the target time section for obtaining The total n of the identifier of time slice;Computing module, for calculating the rating duration L according to equation below, wherein, The formula is:L=n × c, the c are the period corresponding to the presetting granularity.
  4. 4. acquisition device according to claim 3, it is characterised in that the unit of the presetting granularity includes one of the following: Minute, second and millisecond.
CN201410589703.2A 2014-10-28 2014-10-28 The acquisition methods and acquisition device of rating duration Active CN104301759B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410589703.2A CN104301759B (en) 2014-10-28 2014-10-28 The acquisition methods and acquisition device of rating duration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410589703.2A CN104301759B (en) 2014-10-28 2014-10-28 The acquisition methods and acquisition device of rating duration

Publications (2)

Publication Number Publication Date
CN104301759A CN104301759A (en) 2015-01-21
CN104301759B true CN104301759B (en) 2018-02-02

Family

ID=52321291

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410589703.2A Active CN104301759B (en) 2014-10-28 2014-10-28 The acquisition methods and acquisition device of rating duration

Country Status (1)

Country Link
CN (1) CN104301759B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108574859B (en) * 2017-03-08 2020-10-27 北京国双科技有限公司 Viewing behavior statistical method and device
CN110019398B (en) * 2017-12-14 2022-12-02 北京京东尚科信息技术有限公司 Method and apparatus for outputting data

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102348131A (en) * 2010-07-26 2012-02-08 中兴通讯股份有限公司 IPTV system and viewing information statistical method thereof

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100469140C (en) * 2006-01-06 2009-03-11 腾讯科技(深圳)有限公司 A method, terminal and server for quick skip in the online playing
JP5175518B2 (en) * 2007-10-19 2013-04-03 株式会社東芝 Viewing habit learning device
CN101355686B (en) * 2008-09-24 2010-09-08 中辉世纪传媒发展有限公司 Method and system for statistic of audience rating
US9154856B2 (en) * 2013-01-17 2015-10-06 Hewlett-Packard Development Company, L.P. Video segmenting
CN104023278B (en) * 2013-03-01 2018-08-10 联想(北京)有限公司 Streaming medium data processing method and electronic equipment

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102348131A (en) * 2010-07-26 2012-02-08 中兴通讯股份有限公司 IPTV system and viewing information statistical method thereof

Also Published As

Publication number Publication date
CN104301759A (en) 2015-01-21

Similar Documents

Publication Publication Date Title
CN103686237B (en) Recommend the method and system of video resource
CN107172452B (en) Live broadcast room recommendation method and device
CN108900923A (en) Recommend the method and apparatus of live streaming template
CN106993234A (en) Barrage display methods and device
CN105163142B (en) A kind of user preference determines method, video recommendation method and system
CN110324680B (en) Video pushing method and device, server, client and storage medium
CN109348248A (en) A kind of data processing method, system and the device of game live streaming
CN108924650A (en) A kind of message prompt method, device, electronic equipment and storage medium
CN104053023A (en) Method and device for determining video similarity
CN107222762A (en) A kind of method and apparatus of recommendation of the channels
CN104301759B (en) The acquisition methods and acquisition device of rating duration
CN113961763A (en) Method, apparatus and readable storage medium for processing out-of-order data
CN106303591B (en) A kind of video recommendation method and device
CN109688217B (en) Message pushing method and device and electronic equipment
CN110248217B (en) User data synchronization method and device
CN105956061B (en) Method and device for determining similarity between users
CN108419135A (en) Similarity determines method, apparatus and electronic equipment
CN105550334B (en) A kind of video recommendation method and device
CN105141982B (en) A kind of method and device for the EPG generating popular program
US20150227850A1 (en) Data Processing Method and Device Applicable to Network Application
CN103489119B (en) A kind of monitoring of the advertisement method, apparatus and system
CN104506892B (en) Data adjustment method and device
CN108347579B (en) Bandwidth control method and device
CN106791962B (en) User interest video determining method and video server
CN108124197B (en) Method and device for identifying terminal access behavior

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Television-watching time duration obtaining method and device

Effective date of registration: 20190531

Granted publication date: 20180202

Pledgee: Shenzhen Black Horse World Investment Consulting Co.,Ltd.

Pledgor: BEIJING GRIDSUM TECHNOLOGY Co.,Ltd.

Registration number: 2019990000503

CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing

Patentee after: BEIJING GRIDSUM TECHNOLOGY Co.,Ltd.

Address before: 100086 Beijing city Haidian District Shuangyushu Area No. 76 Zhichun Road cuigongfandian 8 layer A

Patentee before: BEIJING GRIDSUM TECHNOLOGY Co.,Ltd.

PP01 Preservation of patent right
PP01 Preservation of patent right

Effective date of registration: 20240604

Granted publication date: 20180202