Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention is clearer,, the embodiment of the invention is described in further details below in conjunction with embodiment and accompanying drawing.At this, illustrative examples of the present invention and explanation thereof are used to explain the present invention, but not as a limitation of the invention.
Embodiment one:
Please refer to Fig. 2, the method for statisticsing audience rating of the embodiment of the invention mainly comprises the following steps:
201: according to the channel ID of the analysis condition that sets in advance, analyze period zero-time A, analyze concluding time period B, minimum rating duration or minimum rating duration percentage T and rating whether continuously, determine rating condition A<b﹠amp; B>a and arrive condition t 〉=T retrieves each bar basic data in the audience information table successively according to described rating condition and arrival condition, obtains meeting whole basic datas of described condition;
202: the user profile analysis condition of the set-top box ID of the basic data that obtains according to described retrieval and the analysis condition that sets in advance is searched user information database, obtains meeting the user profile of described condition;
203: the computing formula according to analysis indexes in the analysis condition that sets in advance and described analysis indexes correspondence is carried out analytical calculation to described qualified user profile, obtains the analysis indexes result.
Wherein, the user profile analysis condition of the analysis condition that the basis in the step 202 sets in advance is searched user information database, and the step that obtains meeting the user profile of described condition can be before step 201, and the present invention does not limit its sequencing.
According to present embodiment, t analyzes under the continuous rating condition to analyze interior effectively rating duration sum of period under interior effectively rating duration of period or the discontinuous rating condition.The rating condition is meant that the user watches continuously in the period that at designated analysis program has reached minimum rating duration (user watches that the program duration can not add up as this minimum rating duration) continuously; Discontinuous rating condition is meant that the user watches in the period that at designated analysis program surpasses certain hour but is less than the rating duration of appointment, but at designated analysis in the period, spectators repeatedly watch program, and watch that repeatedly the duration sum of program satisfies the rating duration of user's appointment.
According to other embodiment, described T can be minimum rating duration percentage, and when T was minimum rating duration percentage, described t was for analyzing in the period effectively the rating duration or analyzing in the period effectively rating duration sum and the percentage of analyzing the period duration.
When T was minimum rating duration in the analysis condition that sets in advance, t was the effective rating duration of the user under the continuous rating condition, then
Or t is the effective rating duration of the user sum under the discontinuous rating condition, then
Wherein, n is that a certain user is analyzing the number of times of watching a certain channel program in the period.
When T was the minimum rating duration percentage of the analysis condition that sets in advance, t was user's effective rating duration or the effective rating duration of a user sum and the percentage of analyzing the period duration, and:
When described t when analyzing in the period effectively rating duration and minimum rating duration percentage:
When described t when analyzing in the period effectively rating duration sum and minimum rating duration percentage:
Wherein, n is that a certain user is analyzing the number of times of watching a certain channel program in the period.
According to present embodiment, basic data can be obtained by any enforceable mode, for example can manually obtain from set-top box, also can also return automatically according to the passback condition from set-top box from set-top box by bilateral network passback in real time automatically.
Figure 3 shows that set-top box returns the method flow diagram that viewing behavior writes down automatically according to the passback condition, this method comprises the following steps:
301: gather viewing behavior, generate the viewing behavior record;
302: judge whether described viewing behavior record has satisfied the passback condition, if, then send described viewing behavior record (step 303), continue next step; If not, then store described viewing behavior record (step 304), return;
305: according to described viewing behavior record formation base data, this basic data comprises: channel ID, set-top box ID, rating period zero-time a, rating period concluding time b;
306: described basic data is saved in the audience information table.
Wherein, the passback condition is the maximum storage data volume that the passback of viewing behavior record requires, and perhaps the viewing behavior record returns the longest passback time interval that requires.
Wherein, the step according to viewing behavior record formation base data comprises:
Described viewing behavior record is carried out verification and form conversion;
The classification that viewing behavior after the conversion is write down according to channel ID, set-top box ID, rating period zero-time a and rating period concluding time b is converted to basic data.
According to present embodiment, also need to set in advance analysis condition, so that filter basic data and user profile, satisfactory user is extract according to this analysis condition, carry out the calculating of viewing-data and the statistics of audience ratings.
Wherein, whether continuously analysis condition comprised channel ID, analyzed period zero-time A, analyzed concluding time period B, minimum rating duration or minimum rating duration percentage T, rating, and these analysis conditions and rating condition and arrival condition one are used from the filtration basic data.
T wherein can be provided with according to statistical requirements, for example can be set to 1 minute, 3 minutes or 5 minutes.
Figure 4 shows that the embodiment of the invention retrieves the method flow diagram of the basic data in the audience information table according to the analysis condition that sets in advance and rating condition and arrival condition, in this embodiment, the T that sets in advance is minimum rating duration, as shown in Figure 4, the method for the basic data in the embodiment of the invention retrieval audience information table comprises the following steps:
401: search article one basic data according to the analysis condition that sets in advance, whether continuously this analysis condition comprises channel ID at least, analyze period zero-time A, analyze concluding time period B, minimum rating duration T and rating;
402: judge whether the channel ID in the described basic data equates with channel ID in the described analysis condition, if carry out next step, otherwise search next bar basic data (step 403);
404: judge whether rating period zero-time a and rating period concluding time b in the described basic data satisfy rating condition A<b﹠amp; B>a is if then carry out next step, otherwise search next bar basic data (step 403);
405: continuously whether according to rating is calculated effective rating duration t;
406: judge whether described effective rating duration satisfies arrival condition t 〉=T, if then carry out next step, otherwise search next bar basic data (step 403);
407: extract the set-top box ID of described basic data, and preserve this set-top box ID;
408: judge whether to arrive the last item basic data, if then finish, otherwise search next bar basic data (step 403).
According to present embodiment; do not limit the sequencing of above-mentioned 402,404 and 406 determining step; as long as according to the analysis condition that sets in advance; the basic data that satisfies this analysis condition and arrival condition and rating condition is retrieved from the audience information table, all be contained in protection scope of the present invention.
According to the method for above-mentioned retrieval audience information table, owing to only used a rating condition A<b﹠amp; B>a has just comprised four kinds of time distribution situations shown in Figure 1A-Fig. 1 D, therefore, the basic data that only needs run-down audience information table can will satisfy this rating condition screens, so that the statistical work of further screening and carrying out data has improved statistical efficiency greatly and has saved system resource.Again owing to adopted formula
Calculate effective rating duration, also in conserve system resources, improved statistical efficiency.
In the embodiment shown in fig. 4, set in advance minimum rating duration T, so when judging whether to satisfy the arrival condition, earlier continuously whether according to rating is selected the computing formula of effective rating duration t, calculate effective rating duration or effective rating duration sum according to the formula of selecting, so that relatively judge.And according to other embodiment, also can set in advance minimum rating duration percentage T, at this moment, when judging whether to satisfy the arrival condition, also want the rating selection computing formula according to whether continuously earlier, calculate the percentage of effective rating duration or effective rating duration sum and the duration of analysis period again according to the formula of selecting, so that relatively judge.Concrete computing formula describes aforementioned, does not repeat them here.
In addition, analysis condition also comprises user profile analysis conditions such as target group, area, these analysis conditions are used for the aforementioned basic data user information corresponding that filters out is carried out further filtering screening, so that carry out the calculating and the statistics of every analysis indexes according to the user profile behind this filtering screening.This method comprises the following steps:
After obtaining qualified basic data according to preceding method, according to finding these set-top box ID and user profile analysis condition user information corresponding in personal information table from database of the set-top box ID of this basic data and user profile analysis condition, area table, the audience information table (it is referred to as user information database), comprise personal information, target group, area etc., write down this qualified data then.
According to present embodiment, search qualified basic data and search qualified user profile according to the analysis condition that sets in advance according to the user profile analysis condition in the analysis condition that sets in advance, can carry out simultaneously, perhaps be regardless of before and after the order carry out, the present invention not with this as restriction.
So, can carry out further filtering screening to described user profile, obtain qualified user profile according to user profile analysis conditions such as the target group in the analysis condition that sets in advance, areas.
In addition, in order further to improve statistical efficiency, this embodiment of the invention can also be in advance according to the property calculation attribute weights of the personage's attribute list in the database, and these personage's attribute weights are saved in weight table in the database, so that carry out using when index is calculated.
At this moment, can add personage's attribute weights according to the computing formula computational analysis index of user profile and analysis indexes correspondence the time, this method comprises:
Search weight table according to the user profile that above-mentioned steps extracts, obtain personage's attribute weights;
Computing formula computational analysis index according to described user profile, personage's attribute weights and analysis indexes correspondence.
Wherein, analysis indexes also is one of analysis condition that sets in advance, and is pre-set according to statistical requirements by the statistician, so that select the computing formula of this analysis indexes correspondence to carry out the calculating and the statistics of index.
Here need to prove that weighting is the core link in the viewing-data processing procedure.In viewing-data was handled, the purpose of weighting was the deviation of the composition of sample and general structure is proofreaied and correct, to obtain the data that can accurately reflect overall viewership.
Illustrate, suppose that certain city's total population is 100,000, wherein the male sex accounts for 48%, and the women accounts for 52%; The given figure of sampling is 1000 people, sex structure has taken place to depart from overall sex structure in sample, be respectively the male sex 420 people, women 580 people, cause male sex's weights (number of the representative in overall of a male sex in the sample) different with women's weights, that is male sex number=48000/420=114.3 in male sex's weights=overall male sex's number/sample; Female population=52000/580=89.6 in women's weights=overall female population/sample.Suppose and watch in the sample that certain program number is 500 people, wherein the male sex 180, the women 320, then: the women watches number * women's weights=180 * 114.3+320 * 89.6=49246 people in number * weights+sample for the=sample male sex watches totally to watch this program number, then this program audience rating=49264/100000=49.3%, rather than 500/1000=50%.
Weight variable has only one (sex) in the last example, also may be with age, town and country etc. as weights in the reality.
According to said method and step, after the user profile that will meet the analysis condition that sets in advance extracts, can calculate every index according to the computing formula of analysis indexes and analysis indexes correspondence.
At digital TV field; analysis indexes is according to client's needs; perhaps be provided with and calculate according to operator's needs; the present invention not with this as restriction; just list the application that is illustrated statistical method of the present invention for two example two, and the calculating of the analysis indexes that any above-mentioned statistical method according to the present invention is implemented should be contained within protection scope of the present invention all.
Example one, analysis indexes are arrival rate:
Wherein, the viewer ship summation that satisfies the arrival condition continuously can the result according to retrieval obtain from database, satisfy the number summation of watching program at designated analysis in the time period continuously, analysis condition is: user-selected target group, area, date, analysis time section, channel.
Wherein, the viewer ship summation of discontinuous satisfied arrival condition also can the result according to retrieval obtain from database, it satisfies at designated analysis watches program in the time period, and watch that the Pgmtime sum satisfies the arrival condition, analysis condition is: user-selected target group, area, date, time period, channel.
Wherein, totally spread to size of population sample total number just.
Wherein, calculate kind according to user-selected index and can from weight table, take out the respective weights value.
Example two, analysis indexes are audience ratings:
That is to say:
Wherein, the total duration of spectators' rating satisfies condition and is user-selected target group, area, date, time period, channel in the specific period.
Wherein, weight is to calculate kind according to user-selected index, takes out the respective weights value from weight table.
Wherein, total duration of this period is meant total duration of specific period of totally spreading to population.
According to embodiments of the invention, the statistical system of the above-mentioned statistical method embodiment of the invention realizes, during concrete operations, can be operated according to following step by the statistician:
Analysis condition and preservation are set;
Open analysis condition and begin and analyze;
According to the information of importing in the analysis condition, the target group who from analysis condition, take out to set, area, date, time period, channel, arrival condition, effective information such as rating condition, analysis indexes and being saved in the temporary variable;
Whether need discontinuous data computing time, if, then delete the arrival condition in the described temporary variable, carry out next step, otherwise directly carry out next step;
Connect database, the information of the analysis condition of described temporary variable is satisfied in search from area table, channel information table, personal information table, audience information table, weight table;
The information that searches is deposited in the intermediate variable;
According to the analysis indexes of choosing, the intermediate variable that uses the corresponding calculated formula and search begins to analyze;
The output analysis result.
According to the said method of the embodiment of the invention, can carry out the calculating and the statistics of every index to the rating record of set-top box passback, not only improve statistical efficiency, and saved system resource, avoided resource waste and blocked up.
Embodiment two:
Fig. 5 is the composition frame chart of the Digital Television statistical system of the statistical method of realization the above embodiment of the present invention, and as shown in Figure 5, Digital Television statistical system of the present invention comprises statistical server, and this statistical server comprises:
Basic data imports unit 51, be used for basic data being imported to the audience information table of database according to statistical requirements, the basic data here also is meant user's viewing-data, generally by the set-top box collection, and can feed back to Digital Television statistical system of the present invention by variety of way, as above-mentioned embodiment one described mode,, be elaborated in the time of will illustrating set-top box below according to the feedback system of the embodiment of the invention.Above-mentioned statistical requirements can be the requirement of timing statistics section, illustrates, and the audience ratings that add up June, then basic data imports the basic data importing of unit 51 with the viewing behavior record in the 1 day June in the data center server to June 30.Right in addition, owing to various possible reasons cause and may basic data not have the concluding time,, can handle according to preset program for the basic data that does not have the concluding time, as surpassing a default time, then be considered as invalidation etc.
Database 52, be used for broadcasting data, family information, information about firms, set-top box information, weights information, advertising rates and described basic data information etc. by the form storage of form, wherein, the basic data information storage is in the audience information table of database, weights information is precalculated according to personage's property value, be stored in the weight table of database, wherein, broadcast data, family information, information about firms, set-top box information, advertising rates etc. and can pass through Operation and Maintenance Unit 57 typings.
Analysis condition is provided with unit 53, is used for according to statistical demand analysis condition being set.Continuously whether this analysis condition comprises channel ID, analyzes period zero-time A, analyzes concluding time period B, minimum rating duration or minimum rating duration percentage T, rating, user profile analysis condition, analysis indexes etc.
Retrieval unit 54, be used for according to the analysis condition that sets in advance channel ID, analyze period zero-time A, analyze concluding time period B, minimum rating duration or minimum rating duration percentage T, whether continuously rating and rating condition A<b﹠amp; B>a and arrive condition t 〉=T retrieves each the bar basic data in the audience information table successively, obtains meeting the set-top box ID in whole basic datas of described condition;
Search unit 55, be used for searching user information database, obtain meeting the user profile of described condition according to the user profile analysis condition of described set-top box ID and the analysis condition that sets in advance;
Analysis indexes computing unit 56 is used for calculating the analysis indexes result according to the computing formula of described user profile and described analysis indexes correspondence;
Wherein, described each bar basic data all comprises set-top box ID, rating period zero-time a, rating period concluding time b and channel ID; When T was minimum rating duration, t was effective rating duration under the continuous rating condition or the effective rating duration sum under the discontinuous rating condition; When T was minimum rating duration percentage, t was effective rating duration or the effective rating duration sum under the discontinuous rating condition and the percentage of analyzing the period duration under the continuous rating condition.
Wherein,, do not repeat them here in above stated specification for the computing formula of t.
Operation and Maintenance Unit 57 is used for the operation that the data to described database 52 increase, delete, revise.
According to present embodiment, this statistical system also comprises set-top box and data center server.
The composition of audience rating statistical system of the Digital Television of the embodiment of the invention is described below in conjunction with Fig. 6, and as shown in Figure 6, digital television receiving rate statistical system of the present invention mainly comprises set-top box 61, data center server 62 and statistical server 63, wherein:
This statistical server 63 is used for the basic data that data center server 62 stores is imported to as requested the audience information table of database, filter this basic data according to the analysis condition that sets in advance, arrival condition, effective rating condition etc., and according to the analysis condition filter user information that sets in advance, obtain meeting the user profile of the analysis condition that sets in advance, according to the computing formula of analysis indexes and this analysis indexes correspondence the described user profile that screens is carried out the calculating and the statistics of every index again, and generate the audience rating data output of desired form.This part describes in aforementioned, does not repeat them here.
Set-top box 61 is used to write down, store the effective original viewing-data that passes through after screening, and when reaching the passback condition, initiate connection request by digital television bidirectional network from trend data center server 62, to return original viewing-data to data center server 62.
According to one embodiment of the invention, set-top box 61 comprises viewing behavior collecting unit 71, memory cell 72, judging unit 73 and viewing behavior record passback unit 74, as shown in Figure 7, and wherein:
Viewing behavior collecting unit 71 is used to gather user's viewing behavior data, generates the viewing behavior record and is stored in described memory cell 72, and this viewing behavior record comprises: normal rating record, null record, business model record, standby record.
Above-mentioned record can adopt different ONID, TSID, SERVICEID to be combined into line identifier, has comprised set-top box at each state change information constantly, has reflected user's various viewing behaviors.The variation of set-top box state comprises the incision of current broadcast items/swap out, and start/shutdown enters/withdraw from data broadcasting, enters/withdraw from stock information, enters/withdraw from NVOD, enters/withdraw from recreation, enters/withdraw from Email etc.Statistical server keeps above-mentioned three pairing the rendition lists of field combination and business model numbering, if being combined in the table of three fields do not define in the data record that receives, promptly is considered as invalid data, does not do the calculating of rating index.
Normal rating record is meant the user under the situation of normal TV reception, same channel program is watched continuously reach certain hour length, constitutes one time viewing behavior, produces normal rating record.This time span can be passed through front end as the threshold interval parameter, is provided with as the data central server, and is stored in the set-top box.
Null record is meant that the user changes continuously and changes the platform time of staying in the platform at every turn and surpass preset threshold value at interval that note is done null record during this period of time.The ONID of null record is that 0x0000, TSID are that 0x0000, SERVICEID are 0x0000.
The business model record is meant the record of the reflection viewing behavior that the user produces when entering the various function service of set-top box, function service comprises EPG program guide, VOD/NVOD rating, data broadcasting, recreation, stock, Email or the like.
Above-mentionedly just illustrate, because the otherness of various places digital TV network operator, set-top box production firm is very big, the not mentioned or not exhaustive part of business model record will be resolved through consultation by each side.Simultaneously, the business model record may be revised accordingly along with the variation fast-developing and that investigation needs of domestic value added service of digital television.And protection scope of the present invention is not limited thereto, and any equalization of doing according to spirit of the present invention changes, and all should be contained in protection scope of the present invention.
The standby record is to be produced by user's remote closing set top box operations, or is write down at set intervals by system the information reckoning unused time roughly last time of open state.
According to the foregoing description, the present invention segments by type to the rating incident, except that changing the station information of incision, the channel that swaps out, also comprise open and close machine record, business model record and satisfaction information, personal information etc., dissimilar incidents is represented by different primitive network ID, transport stream ID and the combination of service ID.Wherein switching on and shutting down, change platform, business model etc. and reflected objective STB working status, i.e. user's viewership; And information such as satisfaction, personnel can reflect who is seeing, how is estimating.Thereby except drawing objective audience ratings index, more can accept user feedback, the subjective assessment that obtains the user is expanded application such as to provide personalized service.
72 of memory cell are used to store parameter preset, the state parameter that comprises the passback condition, and store each bar viewing behavior record successively according to the time order and function order that described record produces.This memory cell 72 can adopt nonvolatile memory to realize, is reserved with enough memory spaces, and new rating incident then is recorded in it in memory earlier when also being the generation of viewing behavior record.
The parameter preset of storage comprises in the memory cell 72 of set-top box 61: threshold interval, the passback condition, the interval of renewal unused time record, the IP address of data center server, port numbers, the time-delays that reconnect after the connection failure etc., this parameter preset can expand and revise according to demand.Wherein, threshold interval, the passback condition, the interval of renewal unused time record, parameters such as the time-delay that reconnects after the connection failure can be revised by data center server, also can upgrade by updating set-top box software; And data center server IP address, port numbers are preferably upgraded by updating set-top box software owing to consider safety factor.
According to present embodiment; above-mentioned threshold interval is to be used for the rating incident is effectively judged; for example; the user browses each channel through regular meeting in the process that televiews; each channel stops very short time in navigation process; should not judge that the user watches these channels this moment, and passing such data in real time back is garbages, has wasted Internet resources and has increased the weight of load of server again.Set-top box among the present invention has been preset the parameter of threshold interval, can the flexible definition user stop how long be designated as once effectively rating record at a channel.Do such processing at the set-top box end and can significantly reduce hash, reduce memory space and save the network bandwidth.This parameter can be upgraded when updating set-top box software, also can be upgraded it by data center server according to communication protocol in the process of passback.
According to present embodiment, above-mentioned passback condition comprises the maximum storage data volume that reaches passback and require, the longest passback time interval that reaches the passback requirement.Because the statistics of audience ratings there is no need real-time calculating, according to service needed, in the regular hour section, obtain audience information and get final product, thus according to the set-top box of the embodiment of the invention, adopted first storage viewing behavior record, again according to the mode of passback condition passback.This passback condition can be controlled flexibly by parameter is set in the software, can trigger passback mechanism when the record data amount is accumulated to a certain degree, also can trigger passback mechanism when the distance passback last time time reaches certain intervals length.Parameter can be upgraded when updating set-top box software, also can be upgraded it by data center server according to communication protocol in the process of passback.Under the extreme case, be made as the passback of per second or every record and can reach with the identical real-time passback effect of the patent application in the background technology.
With respect to real-time passback, the benefit that the present invention adopts storage earlier to return again comprises: (1) each audience information that produces only is 16 bytes, the expense that the encapsulation of handshaking information that each passback produces and IP bag etc. causes is much larger than this, server constantly is in the connection procedure of foundation and disconnection and each set-top box under the situation of a large amount of clients, causes waste of network resources.Top-rated TV show begin or situation such as end under a large number of users produce in the short time change station information even may cause the server overload paralysis; Storage is again under the situation of passback, and the time that different user reaches the passback condition distributes more average, and bandwidth availability ratio is higher.(2) though set-top box provides the IP network interface, but still will be subjected to the restriction of user family's IP network access way, passback in real time needs online at any time, according to the situation that local networks are disposed, may produce the expense of IP Access Network; Non real-time mode can be finished passback with less bandwidth cost when the user surfs the Net, needn't online at any time.(3) passback in real time when each channel of user's fast browsing, can produce a large amount of to calculate audience ratings useless change station information, storage earlier of the present invention is the scheme of passback again, when storage, distinguish valid data and invalid data, and only returned valid data, then can improve this defective.
The state parameter of set-top box comprises: set-top box numbering, intelligent card numbers, set-top box IP address, data quantity transmitted etc. not.
The memory cell 72 of set-top box 61 also will be complied with the time order and function order of record generation store each bar record successively, and covering data the earliest circulate if the memory block is full.The current up-to-date position indicator pointer that writes of system log (SYSLOG) and last time the end of transmission position indicator pointer, data between the two are the data to be transferred of this passback.If data to be transferred takes whole memory space, promptly current write pointer and last time end of transmission hands coincide, the data that newly write still cover data the earliest, at this moment data record the earliest will be dropped, and only keep the record that upgrades.Last time, end of transmission pointer moved after writing pointer with current, memory block full scale note set simultaneously, and next passback will pass the data of whole memory block.
According to other embodiments of the invention, set-top box 61 can also comprise a clock synchronization unit (figure do not show), is used for the clock synchronization with digital television system, with the time interocclusal record rating event time of digital television system.According to the DVB standard, contain timetable TDT in the digital TV transmission stream, set-top box when operate as normal and system clock synchronous, press the DVB standard and from timetable, extract the temporal information of 5 bytes, this time is that the user watches the time point of incident accurately, avoided because of adopting time that statistical server receives viewing-data as the rating time, the network delay that may cause, congested, packet loss, server are busy etc., and situation produces error message even drop-out.
It is synchronous with system clock that set-top box starts the back, is recorded as the start incident; The user writes down this channel cut-in timing when changing operations such as platform, judges then that the user does not swap out in threshold interval then to be judged to the platform incident of changing, and writes down cut-in timing and primitive network ID, transport stream ID and service ID, otherwise does not write down or be designated as null record; The user uses NVOD, and data broadcasting produces the business model record during value-added services such as stock, represent different service application by the combination of above-mentioned three ID.The user can produce the evaluation record of personnel and satisfaction by the operation set-top box menu when watching.Set-top box is upgraded the unused time value every a bit of time and is the current time, and the shutdown record that this time saves as last time is extracted in set-top box start next time under the situation of shutdown suddenly such as outage like this.Reaching certain whole rating records that set-top box can be deposited by the network passback when pre-conditioned.End of transmission empties the memory block.Set-top box is initiated to connect to server in the transmission course, and report self ID and store status and self parameters, server acknowledge require set-top box passback data or upgrade its parameter.Disconnect after finishing and connecting.
Judging unit 73 is used to judge whether viewing behavior record has arrived the passback condition, about the viewing behavior record and the passback condition is aforementioned explains, does not repeat them here.
If the result who judges then initiates the request of connecting by viewing behavior record passback unit to data center server 62 for being, the viewing behavior record is passed back to data center server 62 automatically.
If the result who judges then continues to gather the viewing behavior data by set-top box 61 for not, generate the viewing behavior recorded and stored to memory cell 72.
Viewing behavior record passback unit 74 is used for recording described data center server 62 according to the judged result transmission viewing behavior of described judging unit 73.To elaborate again below for the interaction flow of set-top box 61 with data center server 62.
Please refer to Fig. 8 again, set-top box comprises according to the step that the passback condition returns the viewing behavior record automatically:
801: gather the viewing behavior data, generate viewing behavior record and preservation;
802: judged whether to reach the maximum duration interval that passback requires, if then carry out step 803, otherwise carry out step 804;
803: return described viewing behavior record;
804: judged whether to reach the maximum storage data volume that passback requires, if then carry out step 803, otherwise carry out step 801.
Data center server 62 is used for the original viewing-data that receiving set up box 61 is uploaded, and also is the viewing behavior record, carry out verification and format conversion after, the formation base data are prepared warehouse-in.
According to present embodiment, this data center server 62 comprises viewing behavior recorder unit 91, Data Format Transform and verification unit 92, data center 93 and set-top box parameter amending unit 94, as shown in Figure 9, and wherein:
Viewing behavior recorder unit 91 is used for the viewing behavior record of viewing behavior record passback unit 74 passbacks of receiving set up box 61.
Data Format Transform and verification unit 92 are used for described viewing behavior record is carried out verification and form conversion, and the formation base storage specifically comprises the following steps: to data center
(1) message information that comprises the viewing behavior record of collator top box 61 passbacks is got rid of improper information (comprising information such as mess code, mistake);
(2) demand according to consumer premise is converted to basic data with described message information according to keywords such as area, channels;
(3) basic data after the conversion is stored in data center with document form and preserves the wait warehouse-in.
Data center 93 is used to store described basic data, and this basic data has comprised channel ID, set-top box ID, rating period zero-time a, rating period concluding time b.
Set-top box parameter is revised unit 94 and is used for the parameter of set-top box is made amendment, and revisable parameter comprises threshold interval, passback condition, the interval of renewal unused time record, the time-delay that reconnects after the connection failure etc.
Please refer to Figure 10 again, data center server 62 comprises the following steps: with the interaction flow of set-top box 61
Set-top box 61 reaches the maximum storage data volume or returned the time interval apart from last time in the storage data volume and reaches default the longest passback during the time interval, initiates connections from trend data center server 62.When set-top box 61 is connected with data center server 62, send request link order (step 1001), this request link order has comprised self identification, IP address, operational factor, information such as transmitted data amount not, wherein, self identification is meant this user's of energy unique identification number, can be intelligent card numbers, MAC Address or factory serial number.
The identity of 62 pairs of set-top box 61 of data center server is confirmed, according to the action that will carry out, sends corresponding instruction and replys.
Set-top box 61 receives the instruction (step 1002) that data center server 62 sends, decision instruction type (step 1003).
In most cases, data center server 62 sends the instruction (2) of fetching data, after receiving, set-top box 61 begins to send data command (step 1004) passback, after data center server 62 receives, then transmitting and receiving data is confirmed instruction, set-top box 61 receives this and confirms instruction (step 1005), content according to above-mentioned affirmation instruction judges whether to send data successes (step 1006), if, then set-top box 61 will be fetched data and be moved the byte number (step 1007) that is passed behind the pointer, otherwise continue to send data to data center server 62.
In the time need making an amendment to the parameter of set-top box 61, data center server 62 sends after connecting foundation parameter instruction (4) is set, set-top box 61 is received this instruction, revises self parameter (step 1008), and to data center server 62 transmissions affirmation instruction (step 1009) is set.If successfully be provided with, then send command content and confirm to instruct for successful parameter is provided with, data center server 62 is received successfully and is confirmed, can send out the instruction of fetching data; If failure is set, the return instruction content is provided with the affirmation instruction for the parameter of failure, and data center server 62 is received to fail and confirmed, then retransmits parameter instruction is set.
In order to satisfy the storage request of mass data, the data center server of the embodiment of the invention can be taked the server cluster load-balancing technique.
The present invention has defined a whole set of and has utilized digital TV set-top box to carry out the agreement and the standard of audience rating investigating and some expanded application.The set-top box that much possesses the IP network access function has been arranged in the market.Adopt the solution of the present invention can on existing hardware platform, realize fully by revising the set-top box embedded software, do not need the change of hardware, general its memory capacity of set-top box product all leaves certain more than needed, if the built-in insufficient memory of set-top box may need the extension storage chip.
The workflow summary is: it is synchronous with system clock that set-top box starts the back, is recorded as the start incident; The user writes down this channel cut-in timing when changing operations such as platform, judges then that the user does not swap out in threshold interval then to be judged to the platform incident of changing, and writes down cut-in timing and primitive network ID, transport stream ID and service ID, otherwise does not write down or be designated as null record; The user uses NVOD, and data broadcasting produces the business model record during value-added services such as stock, represent different service application by the combination of above-mentioned three ID.The user can produce the evaluation record of personnel and satisfaction by the operation set-top box menu when watching.Set-top box is upgraded the unused time value every a bit of time and is the current time, and the shutdown record that this time saves as last time is extracted in set-top box start next time under the situation of shutdown suddenly such as outage like this.Reaching certain whole rating records that set-top box can be deposited by the network passback when pre-conditioned.End of transmission empties the memory block.
Set-top box is initiated to connect to data center server in the transmission course, report self ID and store status and self parameters, and data center server is replied and is required set-top box passback data or upgrade its parameter.Disconnect after finishing and connecting.Data center server carries out verification and format conversion to received data, prepares warehouse-in.Statistical server is then according to the basic data after statistical requirements importing data center server process verification and the format conversion, according to the broadcast data of storing in the database, family information, information about firms, set-top box information, advertising rates information etc., described basic data is converted to viewing-data preserves.The analysis platform of statistical server comprises that again according to analysis condition analysis indexes, specific sample, broadcast time, area and channel etc. carry out index analysis to described viewing-data, output audience ratings chart.Investigation, the statistics of audience ratings have so promptly been finished.
Above-described specific embodiment; purpose of the present invention, technical scheme and beneficial effect are further described; institute is understood that; the above only is specific embodiments of the invention; and be not intended to limit the scope of the invention; within the spirit and principles in the present invention all, any modification of being made, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.