CN110740358B - Method and device for acquiring viewing path information - Google Patents

Method and device for acquiring viewing path information Download PDF

Info

Publication number
CN110740358B
CN110740358B CN201910821652.4A CN201910821652A CN110740358B CN 110740358 B CN110740358 B CN 110740358B CN 201910821652 A CN201910821652 A CN 201910821652A CN 110740358 B CN110740358 B CN 110740358B
Authority
CN
China
Prior art keywords
viewing
path
information
content identification
user
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
CN201910821652.4A
Other languages
Chinese (zh)
Other versions
CN110740358A (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.)
Ud Network Co ltd
Original Assignee
Ud Network 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 Ud Network Co ltd filed Critical Ud Network Co ltd
Priority to CN201910821652.4A priority Critical patent/CN110740358B/en
Publication of CN110740358A publication Critical patent/CN110740358A/en
Application granted granted Critical
Publication of CN110740358B publication Critical patent/CN110740358B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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

Abstract

The application is applicable to the technical field of computers, and provides a method for acquiring viewing path information, which comprises the following steps: acquiring a user log of each user watching a video; sequencing the user logs based on the viewing time information to obtain a user log sequence of each user and a corresponding complete viewing path; determining key content identification information in the complete viewing path based on log type information in the user log sequence; extracting a first viewing path from all the complete viewing paths based on the key content identification information, and counting the number of the first viewing paths; determining first viewing path information based on the first viewing path and the number of first viewing paths. According to the scheme, the first watching path and the number of the first watching paths containing the key content identification information can be flexibly obtained, the obtained watching paths are more comprehensive, and the obtained first watching paths and the number of the first watching paths can be comprehensively analyzed.

Description

Method and device for acquiring viewing path information
Technical Field
The application belongs to the technical field of computers, and particularly relates to a method and a device for acquiring viewing path information.
Background
In order to improve products better, a video website or a web television mainly analyzes four aspects during data analysis, namely visitor analysis, flow channel analysis, content analysis and conversion analysis. The path analysis is an important part in content analysis, and the path analysis is to acquire a viewing path of a user according to browsing and viewing behaviors of the user. The current way to get the viewing path is to get a path from the user to the system to the exit in time sequence. However, in this way, only the complete path of the user viewing the content can be obtained, and the obtained viewing path information is limited, so that the analysis result is not comprehensive.
Disclosure of Invention
The embodiment of the application provides a method and a device for acquiring viewing path information, which can solve the problem that only a complete path of content viewed by a user can be acquired, and the acquired viewing path information is limited, so that the analysis result is incomplete.
In a first aspect, an embodiment of the present application provides a method for acquiring viewing path information, including:
acquiring a user log of each user watching a video; the user log comprises user identification information, log type information, content identification information and viewing time information; the log type information identifies a behavior of the user;
sequencing the user logs based on the viewing time information to obtain a user log sequence of each user and a corresponding complete viewing path; the complete watching path is a content identification sequence generated by sequencing the content identification information based on the watching time information; the content identification information of the content identification sequence corresponds to the user logs in the user log sequence one by one;
determining key content identification information in the complete viewing path based on log type information in the user log sequence; the key content identification information is used for identifying preset video watching behaviors;
extracting a first viewing path from all the complete viewing paths based on the key content identification information, and counting the number of the first viewing paths; the first watching path comprises the key content identification information;
determining first viewing path information based on the first viewing path and the number of the first viewing paths; the first viewing path information includes the first viewing path and the number thereof.
Further, after the determining first viewing path information based on the first viewing path and the number of the first viewing paths, further comprising:
detecting whether all the first watching paths contain invalid watching paths based on a preset invalid path detection condition;
when an invalid viewing path is detected, updating the first viewing path information based on the information of the invalid viewing path to obtain second viewing path information; the second viewing path information includes effective viewing paths and the number thereof.
Further, the detecting whether all the first viewing paths include an invalid viewing path based on a preset invalid path detection condition includes:
when detecting that at least two pieces of continuous content identification information identical exist in a third viewing path and a fourth viewing path in the first viewing path, detecting whether the third viewing path and the fourth viewing path are invalid paths based on a preset invalid path detection condition.
Further, the extracting a first viewing path from all the complete viewing paths based on the key content identification information and counting the number of the first viewing paths includes:
and extracting a first viewing path containing a plurality of content identification information from all the complete viewing paths based on the key content identification information, and counting the number of the first viewing paths.
Further, the determining key content identification information in the full viewing path based on log type information in the user log sequence includes:
and when the log type information in the user log sequence identifies that the user behavior is any one of live broadcast, on-demand broadcast and review, marking the log type information in the user log sequence as key content identification information.
In a second aspect, an embodiment of the present application provides an apparatus for acquiring viewing path information, including:
a first acquisition unit configured to acquire a user log of each user viewing a video; the user log comprises user identification information, log type information, content identification information and viewing time information; the log type information identifies a behavior of the user;
the first processing unit is used for sequencing the user logs based on the viewing time information to obtain a user log sequence of each user and a corresponding complete viewing path; the complete watching path is a content identification sequence generated by sequencing the content identification information based on the watching time information; the content identification information of the content identification sequence corresponds to the user logs in the user log sequence one by one;
the second processing unit is used for determining key content identification information in the complete viewing path based on log type information in the user log sequence; the key content identification information is used for identifying preset video watching behaviors;
a third processing unit, configured to extract a first viewing path from all the complete viewing paths based on the key content identification information, and count the number of the first viewing paths; the first watching path comprises the key content identification information;
a fourth processing unit, configured to determine first viewing path information based on the first viewing path and the number of the first viewing paths; the first viewing path information includes the first viewing path and the number thereof.
Further, the device for acquiring viewing path information further includes:
the detection unit is used for detecting whether all the first watching paths contain invalid watching paths based on a preset invalid path detection condition;
the updating unit is used for updating the first watching path information based on the information of the invalid watching path to obtain second watching path information when the invalid watching path is detected; the second viewing path information includes effective viewing paths and the number thereof.
Further, the detection unit is specifically configured to:
when detecting that at least two pieces of continuous content identification information identical exist in a third viewing path and a fourth viewing path in the first viewing path, detecting whether the third viewing path and the fourth viewing path are invalid paths based on a preset invalid path detection condition.
Further, the third processing unit is specifically configured to:
and extracting a first viewing path containing a plurality of content identification information from all the complete viewing paths based on the key content identification information, and counting the number of the first viewing paths.
Further, the second processing unit is specifically configured to:
and when the log type information in the user log sequence identifies that the user behavior is any one of live broadcast, on-demand broadcast and review, marking the log type information in the user log sequence as key content identification information.
In a third aspect, an embodiment of the present application provides a terminal device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the processor implements the method for obtaining the viewing path according to the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the method for obtaining a viewing path according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a computer program product, which, when running on a terminal device, causes the terminal device to execute the method for acquiring viewing path information according to any one of the first aspect.
In the embodiment of the application, a user log of each user watching a video is obtained; sequencing the user logs based on the viewing time information to obtain a user log sequence of each user and a corresponding complete viewing path; determining key content identification information in the complete viewing path based on log type information in the user log sequence; extracting a first viewing path from all the complete viewing paths based on the key content identification information, and counting the number of the first viewing paths; determining first viewing path information based on the first viewing path and the number of first viewing paths. According to the scheme, the first watching path containing the key content identification information and the quantity information of each path can be flexibly obtained, so that the obtained watching paths are more comprehensive, and the obtained first watching paths and the quantity thereof can be comprehensively analyzed.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flow chart of a method for acquiring viewing path information according to a first embodiment of the present application;
fig. 2 is a schematic flow chart of another method for acquiring viewing path information according to a second embodiment of the present application;
fig. 3 is a schematic diagram of a viewing path information obtaining apparatus according to a third embodiment of the present application;
fig. 4 is a schematic structural diagram of a viewing path information acquiring apparatus according to a fourth embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
Referring to fig. 1, fig. 1 is a schematic flow chart of a method for acquiring a viewing path according to a first embodiment of the present application. In this embodiment, an execution main body of the method for acquiring a viewing path is a device having a function of acquiring a viewing path, for example, a device such as a mobile phone, a tablet computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA), a server, and the like. The method for acquiring the viewing path as shown in fig. 1 may include:
s101: acquiring a user log of each user watching a video; the user log comprises user identification information, log type information, content identification information and viewing time information; the log type information identifies a behavior of the user.
The user can watch videos through a video playing platform or a video playing system, the video playing platform can be an integrated playing control platform, and the video playing system can be an IPTV system, an OTT internet video system, or an interactive digital television system, which is not limited herein. The method comprises the steps that a user watches data generated by a video to form a user log, wherein the user log can comprise user identification information, log type information, content identification information and viewing time information, the log type information identifies the behavior of the user, and the user can watch live broadcast, request broadcast and browse on a video directory page in the process of watching the video, so that the behavior of the user can be watching live broadcast, requesting broadcast, reviewing video, browsing the page and the like; the content identification information is used to identify the content browsed by the user, for example, the content identification P1 identifies that the content browsed by the user is a movie a; the viewing time information is time information of the user browsing the content, for example, the user browses the a movie for ten minutes.
The method comprises the steps that a device obtains a user log of each user watching a video, wherein the user log can be generated when the user watches the video through a local device or other devices, and then the device transmits and obtains the user log.
S102: sequencing the user logs based on the viewing time information to obtain a user log sequence of each user and a corresponding complete viewing path; the complete watching path is a content identification sequence generated by sequencing the content identification information based on the watching time information; the content identification information of the content identification sequence corresponds to the user logs in the user log sequence one to one.
The equipment sorts the user logs of each user according to the time sequence based on the acquired viewing time information to obtain the user log sequence of each user and the corresponding complete viewing path. The user log sequence comprises user logs arranged according to the time sequence, the complete watching path is a content identification sequence generated by sequencing content identification information based on the watching time information, and the content identification information in each user log can be extracted from the first user log sequence, so that the content identification information of the content identification sequence corresponds to the user logs in the user log sequence one by one.
S103: determining key content identification information in the complete viewing path based on log type information in the user log sequence; the key content identification information is used for identifying preset video watching behaviors.
The device determines whether content identification information corresponding to the log type information is key content identification information or not based on the log type information in the user log sequence, when the log type information in the first user log sequence is preset type information, the content identification information corresponding to the log type information is key content identification information, and the key content identification information is used for identifying preset video watching behaviors. Because the content identification information of the content identification sequence is in one-to-one correspondence with the user logs in the user log sequence, the content identification information in the complete viewing path corresponding to the key content identification information in the user log sequence is also the key content identification information.
Further, S103 may include: and when the log type information in the user log sequence identifies that the user behavior is any one of live broadcast, on-demand broadcast and review, marking the log type information in the user log sequence as key content identification information.
The device determines whether content identification information corresponding to the log type information is key content identification information or not based on the log type information in the user log sequence, and when the log type information in the user log sequence identifies that the user behavior is any one of live broadcast, on-demand broadcast and review, the content identification information corresponding to the log type information is the key content identification information, and the key content identification information is used for identifying preset video watching behavior. Because the content identification information of the content identification sequence is in one-to-one correspondence with the user logs in the user log sequence, the content identification information in the complete viewing path corresponding to the key content identification information in the user log sequence is also the key content identification information.
S104: extracting a first viewing path from all the complete viewing paths based on the key content identification information, and counting the number of the first viewing paths; the first viewing path includes the key content identification information.
And presetting a path extraction strategy in the equipment, wherein the preset path extraction strategy is used for extracting the first viewing path from the complete viewing path. The device extracts a first viewing path from all the complete viewing paths based on the key content identification information and a preset path extraction strategy, wherein the first viewing path comprises the key content identification information, and counts the number of the first viewing paths. For example, when a path whose path end point is the key content identification information is extracted from the complete viewing path, that is, the first viewing path, and the key content identification information is p4, it may be extracted that the path a is { p1, p2, p3, p4}, the path B is { p1, p4, p3, p2, p4}, the path p4 is the path end point, and the path A, B is the first viewing path, and the frequency of occurrence of the first viewing path is counted. That is, the device finally acquires the first viewing path and the number thereof corresponding to each piece of key content identification information.
Further, S104 may include: and extracting a first viewing path containing a plurality of content identification information from all the complete viewing paths based on the key content identification information, and counting the number of the first viewing paths.
The device extracts a first viewing path from all the complete viewing paths based on the key content identification information, and a path extraction strategy is preset in the device and used for extracting the first viewing path containing the plurality of content identification information from the complete viewing paths. The device extracts a first watching path from all the complete watching paths based on the key content identification information and a preset path extraction strategy, wherein the first watching path comprises the key content identification information, the first watching path comprises a plurality of content identification information, the number of the content identification information can be set, and the preset content number is at least 2. And counts the number of first viewing paths. For example, a path whose path end point is the key content identification information is extracted from the complete viewing path, where the path includes a preset number of content identification information, that is, the path is the first viewing path, and the number of occurrences of the first viewing path is counted.
S105: determining first viewing path information based on the first viewing path and the number of the first viewing paths; the first viewing path information includes the first viewing path and the number thereof.
The equipment stores the first viewing path and the number of the first viewing path in a correlation mode to obtain first viewing path information, wherein the first viewing path information comprises the first viewing path and the number of the first viewing path. In the present embodiment, the first viewing path information may be represented in the form of a set, the first viewing path information set being PathCollection, i.e., { (code)i,pathij,numsij),...}i,...},(codei,pathij,numsij) Indicates a piece of path data, nums thereinijCode representing ith key content identification informationiThe jth first viewing pathijQuantity of (a) }iAll first viewing paths representing the ith key content identification information.
In the embodiment of the application, a user log of each user watching a video is obtained; sequencing the user logs based on the viewing time information to obtain a first user log sequence of each user and a corresponding complete viewing path; determining key content identification information in the complete viewing path based on log type information in the user log sequence; extracting a first viewing path from all the complete viewing paths based on the key content identification information, and counting the number of the first viewing paths; determining first viewing path information based on the first viewing path and the number of first viewing paths. According to the scheme, the first watching path containing the key content identification information and the quantity information of each path can be flexibly obtained, so that the obtained watching paths are more comprehensive, and the obtained first watching paths and the quantity thereof can be comprehensively analyzed.
Referring to fig. 2, fig. 2 is a schematic flow chart of another method for acquiring viewing path information according to a second embodiment of the present application. In this embodiment, an execution main body of the method for acquiring a viewing path is a device having a function of acquiring a viewing path, for example, a device such as a mobile phone, a tablet computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA), a server, and the like. In order to further acquire accurate viewing path data and eliminate invalid paths, the present embodiment differs from the first embodiment in S206 to S208, where S201 to S205 in the present embodiment are the same as S101 to S105 in the first embodiment, and S206 to S208 are executed after S205, as shown in fig. 3, and S206 to S208 are specifically as follows:
s206: and detecting whether all the first watching paths contain invalid watching paths or not based on a preset invalid path detection condition.
Since the first viewing path in the first viewing path information counted in the first embodiment often has an invalid path, and the definition of the invalid path may be defined in advance, may be a repeated path, and in short, is a path without an analysis reference value, a method is provided in this embodiment to eliminate the invalid path. The device stores preset invalid path detection conditions, and the preset invalid path detection conditions are used for detecting invalid viewing paths in the first viewing paths. The device detects whether all the first watching paths contain invalid watching paths based on a preset invalid path detection condition, and marks the first watching paths as invalid paths when the first watching paths meet the preset invalid path detection condition.
Further, in order to accurately detect an invalid path, S206 may include detecting whether a third viewing path and a fourth viewing path in the first viewing path are invalid paths based on a preset invalid path detection condition when it is detected that the same at least two consecutive pieces of the content identification information exist in the third viewing path and the fourth viewing path.
In this embodiment, the invalid path may be defined as a circular path, i.e., a circular path in which the departure point and the destination point of one of the two paths are the destination point and the departure point of the other path. For example, path a is { p1, p2, p3, p4}, path B is { p1, p4, p3, p2, p4}, and both paths pass through p2 and p3 in reverse order, so the two paths are in circulation with each other. When detecting the invalid path, the two paths must be compared with each other to determine whether they are circular paths, that is, it is detected whether the third viewing path and the fourth viewing path in the first viewing path are circular paths. In this embodiment, a reference path is determined at the time of alignment. The device acquires a third viewing path from the first viewing path, namely, the third viewing path is taken as the reference path mentioned above, and acquires a fourth viewing path, other than the third viewing path, from the first viewing path, wherein the fourth viewing path is used for comparing with the third viewing path to determine whether the fourth viewing path is an invalid path. For example, a null set newPathList is set, the most numerous paths are taken as the third viewing paths, and the third viewing paths are put into the newPathList, and the fourth viewing path and the third viewing path in the newPathList are compared with each other. When the fourth path is an effective viewing path, the fourth path is put into a set newPathList, and the viewing path in the first viewing path is sequentially compared with the effective viewing path in the set newPathList.
Based on the meaning of the invalid path in this embodiment, it is necessary that the starting point and the ending point of a certain segment of the two paths are the ending point and the starting point of the other segment, that is, when there are at least two identical pieces of adjacent content identification information in any two paths, the invalid path can be further determined. The equipment detects whether the same at least two adjacent content identification information exists in the fourth watching path and the third watching path, and when the same at least two adjacent content identification information exists in the fourth watching path and the third watching path, the equipment detects whether the fourth path is an invalid path based on a preset invalid path detection condition, namely detects that the starting point and the end point of a certain section of the third watching path and the fourth watching path are the end point and the starting point of the other section. The specific detection method may be, for example, sequentially traversing the content identification information in the fourth viewing path, and if the content identification information in the fourth viewing path exists in the third viewing path, the position index of the content identification information in the third viewing element is stored in the sequence continaindexseq, and the position index refers to a position in the third viewing path. And finally, traversing the sequence conteninindexseq, and if the previous value of the two previous and next values is larger than the next value in the sequence, indicating that the third viewing path and the fourth viewing path are circular paths.
S207: when an invalid viewing path is detected, updating the first viewing path information based on the information of the invalid viewing path to obtain second viewing path information; the second viewing path information includes effective viewing paths and the number thereof.
When the device detects an invalid viewing path, deleting the invalid viewing path in the first viewing path to obtain a target viewing path, specifically, when an invalid viewing path is detected, deleting the invalid viewing path, and when the first viewing path is detected not to be the invalid viewing path, the path can be called as the valid viewing path. Since the target viewing path is obtained after the first viewing path deletes the invalid viewing path, the device may obtain all valid viewing paths and the number thereof from the first viewing path information, and obtain second viewing path information based on the target viewing path and the number thereof, the second viewing path information including the valid viewing paths and the number thereof.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Referring to fig. 3, fig. 3 is a schematic view of an apparatus for acquiring viewing path information according to a third embodiment of the present application. The units included are used to perform the steps in the corresponding embodiments of fig. 1-2. Please refer to the related description of the embodiments in fig. 1-2. For convenience of explanation, only the portions related to the present embodiment are shown. Referring to fig. 3, the viewing path acquisition means 3 includes:
a first obtaining unit 310, configured to obtain a user log of videos watched by each user; the user log comprises user identification information, log type information, content identification information and viewing time information; the log type information identifies a behavior of the user;
a first processing unit 320, configured to sort the user logs based on the viewing time information, so as to obtain a user log sequence of each user and a complete viewing path corresponding to the user log sequence; the complete watching path is a content identification sequence generated by sequencing the content identification information based on the watching time information; the content identification information of the content identification sequence corresponds to the user logs in the user log sequence one by one;
a second processing unit 330, configured to determine, based on log type information in the user log sequence, key content identification information in the complete viewing path; the key content identification information is used for identifying preset video watching behaviors;
a third processing unit 340, configured to extract a first viewing path from all the complete viewing paths based on the key content identification information, and count the number of the first viewing paths; the first watching path comprises the key content identification information;
a fourth processing unit 350, configured to determine first viewing path information based on the first viewing path and the number of the first viewing paths; the first viewing path information includes the first viewing path and the number thereof.
Further, the viewing path information acquiring apparatus 3 further includes:
the detection unit is used for detecting whether all the first watching paths contain invalid watching paths based on a preset invalid path detection condition;
the updating unit is used for updating the first watching path information based on the information of the invalid watching path to obtain second watching path information when the invalid watching path is detected; the second viewing path information includes effective viewing paths and the number thereof.
Further, the detection unit is specifically configured to:
when detecting that at least two pieces of continuous content identification information identical exist in a third viewing path and a fourth viewing path in the first viewing path, detecting whether the third viewing path and the fourth viewing path are invalid paths based on a preset invalid path detection condition.
Further, the third processing unit 340 is specifically configured to:
and extracting a first viewing path containing a plurality of content identification information from all the complete viewing paths based on the key content identification information, and counting the number of the first viewing paths.
Further, the second processing unit 330 is specifically configured to:
and when the log type information in the user log sequence identifies that the user behavior is any one of live broadcast, on-demand broadcast and review, marking the log type information in the user log sequence as key content identification information.
Fig. 4 is a schematic structural diagram of a viewing path information acquiring apparatus according to a fourth embodiment of the present application. As shown in fig. 4, the viewing path information acquiring apparatus 4 of this embodiment includes: at least one processor 40 (only one is shown in fig. 4), a memory 41, and a computer program 42 stored in the memory 41 and operable on the at least one processor 40, wherein the processor 40 executes the computer program 42 to implement the steps in any of the above-mentioned embodiments of the method for acquiring viewing path information. Such as steps 101 to 105 shown in fig. 1. Alternatively, the processor 40, when executing the computer program 42, implements the functions of the modules/units in the above-mentioned device embodiments, such as the functions of the modules 310 to 350 shown in fig. 3.
Illustratively, the computer program 42 may be partitioned into one or more modules/units that are stored in the memory 41 and executed by the processor 40 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used for describing the execution process of the computer program 42 in the viewing path information acquiring device 4. For example, the computer program 42 may be divided into a first acquiring unit, a processing unit, a second processing unit, a third processing unit, and a fourth processing unit, and each unit has the following specific functions:
a first acquisition unit configured to acquire a user log of each user viewing a video; the user log comprises user identification information, log type information, content identification information and viewing time information; the log type information identifies a behavior of the user;
the first processing unit is used for sequencing the user logs based on the viewing time information to obtain a user log sequence of each user and a corresponding complete viewing path; the complete watching path is a content identification sequence generated by sequencing the content identification information based on the watching time information; the content identification information of the content identification sequence corresponds to the user logs in the user log sequence one by one;
the second processing unit is used for determining key content identification information in the complete viewing path based on log type information in the user log sequence; the key content identification information is used for identifying preset video watching behaviors;
a third processing unit, configured to extract a first viewing path from all the complete viewing paths based on the key content identification information, and count the number of the first viewing paths; the first watching path comprises the key content identification information;
a fourth processing unit, configured to determine first viewing path information based on the first viewing path and the number of the first viewing paths; the first viewing path information includes the first viewing path and the number thereof.
The memo prompting device may include, but is not limited to, a processor 40, a memory 41. Those skilled in the art will appreciate that fig. 4 is only an example of the viewing path information obtaining device 4, and does not constitute a limitation to the viewing path information obtaining device 4, and may include more or less components than those shown, or combine some components, or different components, for example, an input/output device, a network access device, and the like.
The Processor 40 may be a Central Processing Unit (CPU), and the Processor 40 may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 41 may be an internal storage unit of the viewing path information obtaining device 4 in some embodiments, for example, a hard disk or a memory of the viewing path information obtaining device 4. The memory 41 may also be an external storage device of the viewing path information obtaining device 4 in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like equipped on the viewing path information obtaining device 4. Further, the memory 41 may also include both an internal storage unit and an external storage device of the acquisition device 4 of the viewing path information. The memory 41 is used for storing an operating system, an application program, a Boot Loader (Boot Loader), data, and other programs, such as program codes of the computer programs. The memory 41 may also be used to temporarily store data that has been output or is to be output.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
An embodiment of the present application further provides a network device, where the network device includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, the processor implementing the steps of any of the various method embodiments described above when executing the computer program.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the above-mentioned method embodiments.
The embodiments of the present application provide a computer program product, which when running on a mobile terminal, enables the mobile terminal to implement the steps in the above method embodiments when executed.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing apparatus/terminal apparatus, a recording medium, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other ways. For example, the above-described apparatus/network device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A method for acquiring viewing path information, comprising:
acquiring a user log of each user watching a video; the user log comprises user identification information, log type information, content identification information and viewing time information; the log type information identifies a behavior of the user;
sequencing the user logs according to the time sequence based on the viewing time information to obtain a user log sequence of each user and a corresponding complete viewing path; the complete watching path is a content identification sequence generated by sequencing the content identification information based on the watching time information; the content identification information is used for identifying the content browsed by the user, and the content identification information of the content identification sequence corresponds to the user logs in the user log sequence one by one;
determining key content identification information in the complete viewing path based on log type information in the user log sequence; the key content identification information is used for identifying preset video watching behaviors;
extracting a first viewing path from all the complete viewing paths based on the key content identification information, and counting the number of the first viewing paths; the first watching path comprises the key content identification information;
determining first viewing path information based on the first viewing path and the number of the first viewing paths; the first viewing path information includes the first viewing path and the number thereof.
2. The method for acquiring viewing path information according to claim 1, further comprising, after said determining first viewing path information based on the first viewing path and the number of the first viewing paths:
detecting whether all the first watching paths contain invalid watching paths based on a preset invalid path detection condition;
when an invalid viewing path is detected, updating the first viewing path information based on the information of the invalid viewing path to obtain second viewing path information; the second viewing path information includes effective viewing paths and the number thereof.
3. The method for acquiring viewing path information according to claim 2, wherein the detecting whether all the first viewing paths include an invalid viewing path based on a preset invalid path detection condition includes:
when detecting that at least two pieces of continuous content identification information identical exist in a third viewing path and a fourth viewing path in the first viewing path, detecting whether the third viewing path and the fourth viewing path are invalid paths based on a preset invalid path detection condition.
4. The method for acquiring viewing path information according to claim 1, wherein the extracting a first viewing path from all the complete viewing paths based on the key content identification information and counting the number of the first viewing paths includes:
and extracting a first viewing path containing a plurality of content identification information from all the complete viewing paths based on the key content identification information, and counting the number of the first viewing paths.
5. The method for acquiring viewing path information according to claim 1, wherein the determining key content identification information in the complete viewing path based on the log type information in the user log sequence comprises:
and when the log type information in the user log sequence identifies that the user behavior is any one of live broadcast, on-demand broadcast and review, marking the log type information in the user log sequence as key content identification information.
6. An acquisition apparatus of viewing path information, comprising:
a first acquisition unit configured to acquire a user log of each user viewing a video; the user log comprises user identification information, log type information, content identification information and viewing time information; the log type information identifies a behavior of the user;
the first processing unit is used for sequencing the user logs according to the time sequence based on the viewing time information to obtain a user log sequence of each user and a corresponding complete viewing path; the complete watching path is a content identification sequence generated by sequencing the content identification information based on the watching time information; the content identification information is used for identifying the content browsed by the user, and the content identification information of the content identification sequence corresponds to the user logs in the user log sequence one by one;
the second processing unit is used for determining key content identification information in the complete viewing path based on log type information in the user log sequence; the key content identification information is used for identifying preset video watching behaviors;
a third processing unit, configured to extract a first viewing path from all the complete viewing paths based on the key content identification information, and count the number of the first viewing paths; the first watching path comprises the key content identification information;
a fourth processing unit, configured to determine first viewing path information based on the first viewing path and the number of the first viewing paths; the first viewing path information includes the first viewing path and the number thereof.
7. The apparatus for acquiring viewing path information according to claim 6, further comprising:
the detection unit is used for detecting whether all the first watching paths contain invalid watching paths based on a preset invalid path detection condition;
the updating unit is used for updating the first watching path information based on the information of the invalid watching path to obtain second watching path information when the invalid watching path is detected; the second viewing path information includes effective viewing paths and the number thereof.
8. The apparatus for acquiring viewing path information according to claim 7, wherein the detecting unit is specifically configured to:
when detecting that at least two pieces of continuous content identification information identical exist in a third viewing path and a fourth viewing path in the first viewing path, detecting whether the third viewing path and the fourth viewing path are invalid paths based on a preset invalid path detection condition.
9. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 5 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 5.
CN201910821652.4A 2019-09-02 2019-09-02 Method and device for acquiring viewing path information Active CN110740358B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910821652.4A CN110740358B (en) 2019-09-02 2019-09-02 Method and device for acquiring viewing path information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910821652.4A CN110740358B (en) 2019-09-02 2019-09-02 Method and device for acquiring viewing path information

Publications (2)

Publication Number Publication Date
CN110740358A CN110740358A (en) 2020-01-31
CN110740358B true CN110740358B (en) 2021-11-19

Family

ID=69267766

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910821652.4A Active CN110740358B (en) 2019-09-02 2019-09-02 Method and device for acquiring viewing path information

Country Status (1)

Country Link
CN (1) CN110740358B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103686210A (en) * 2013-12-17 2014-03-26 广东威创视讯科技股份有限公司 Method and system for achieving audio and video transcoding in real time
CN106658083A (en) * 2015-10-30 2017-05-10 北京国双科技有限公司 Watching channel path counting method and watching channel path counting device
CN107222484A (en) * 2017-06-12 2017-09-29 北京经纬中天信息技术有限公司 Support the stream media server system of multi-protocols input and output
CN109587525A (en) * 2017-09-29 2019-04-05 深圳市中兴微电子技术有限公司 Service push method and system, set-top box, business service platform and storage medium
CN109729428A (en) * 2017-10-30 2019-05-07 北京国双科技有限公司 Television channel video audience statistics method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101757878B1 (en) * 2015-12-10 2017-07-14 삼성전자주식회사 Contents processing apparatus, contents processing method thereof, server, information providing method of server and information providing system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103686210A (en) * 2013-12-17 2014-03-26 广东威创视讯科技股份有限公司 Method and system for achieving audio and video transcoding in real time
CN106658083A (en) * 2015-10-30 2017-05-10 北京国双科技有限公司 Watching channel path counting method and watching channel path counting device
CN107222484A (en) * 2017-06-12 2017-09-29 北京经纬中天信息技术有限公司 Support the stream media server system of multi-protocols input and output
CN109587525A (en) * 2017-09-29 2019-04-05 深圳市中兴微电子技术有限公司 Service push method and system, set-top box, business service platform and storage medium
CN109729428A (en) * 2017-10-30 2019-05-07 北京国双科技有限公司 Television channel video audience statistics method and device

Also Published As

Publication number Publication date
CN110740358A (en) 2020-01-31

Similar Documents

Publication Publication Date Title
CN110222265B (en) Information pushing method, system, user terminal and server
US20100067867A1 (en) System and method for searching video scenes
CN110262918B (en) Process crash analysis method and device, distributed equipment and storage medium
CN108563651B (en) Multi-video target searching method, device and equipment
CN111259271A (en) Comment information display method and device, electronic equipment and computer readable medium
CN111815375B (en) User portrayal method and device in advertisement putting
CN110674345A (en) Video searching method and device and server
CN113407773A (en) Short video intelligent recommendation method and system, electronic device and storage medium
CN108399321B (en) Software local plagiarism detection method based on dynamic instruction dependence graph birthmark
CN110796053B (en) Video detection method and device, electronic equipment and computer readable storage medium
CN107748772B (en) Trademark identification method and device
CN110430448B (en) Bullet screen processing method and device and electronic equipment
CN116015842A (en) Network attack detection method based on user access behaviors
CN113076961B (en) Image feature library updating method, image detection method and device
CN102306178A (en) Video recommendation method and device
CN110740358B (en) Method and device for acquiring viewing path information
CN112561636A (en) Recommendation method, recommendation device, terminal equipment and medium
CN109710626B (en) Data warehousing management method and device, electronic equipment and storage medium
CN107729407B (en) User behavior analysis method and server
CN108012164B (en) Video playing method and device and electronic equipment
CN109033469B (en) Ranking method and device of search results, terminal and computer storage medium
WO2018077059A1 (en) Barcode identification method and apparatus
CN101441666A (en) Video copy monitoring method and system based on content
CN113221845A (en) Advertisement auditing method, device, equipment and storage medium
CN115086700A (en) Push processing method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant