CN108959053B - Method and device for generating user behavior log - Google Patents

Method and device for generating user behavior log Download PDF

Info

Publication number
CN108959053B
CN108959053B CN201810752934.9A CN201810752934A CN108959053B CN 108959053 B CN108959053 B CN 108959053B CN 201810752934 A CN201810752934 A CN 201810752934A CN 108959053 B CN108959053 B CN 108959053B
Authority
CN
China
Prior art keywords
behavior information
behavior
generation time
information
chain
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
CN201810752934.9A
Other languages
Chinese (zh)
Other versions
CN108959053A (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.)
Hisense Visual Technology Co Ltd
Original Assignee
Hisense Visual Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Visual Technology Co Ltd filed Critical Hisense Visual Technology Co Ltd
Priority to CN201810752934.9A priority Critical patent/CN108959053B/en
Publication of CN108959053A publication Critical patent/CN108959053A/en
Application granted granted Critical
Publication of CN108959053B publication Critical patent/CN108959053B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3438Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment monitoring of user actions

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method and a device for generating a user behavior log, wherein the method comprises the following steps: acquiring behavior information of a user and scene information corresponding to the behavior information; acquiring the generation time of the behavior information from the scene information corresponding to the behavior information; if the interval duration of the generation time of the behavior information with the later generation time and the generation time of the previous behavior information is less than or equal to a first preset duration, serially connecting the behavior information with the later generation time and the previous behavior information in the same behavior information chain according to the sequence of the corresponding generation time; generating scene behavior information according to the behavior information chain and scene information corresponding to the behavior information in the behavior information chain; and extracting keywords from the scene behavior information to generate a user behavior log. The user behavior log generated by the generation method is low in data redundancy, and by adopting the user behavior log, the user behavior is analyzed, so that the process is simpler, the calculated amount is smaller, the efficiency is higher, and the applicability is better.

Description

Method and device for generating user behavior log
Technical Field
The invention relates to the technical field of user behavior logs, in particular to a method and a device for generating a user behavior log.
Background
At present, with the development of internet technology, more and more users meet the demands of their work, life, leisure and entertainment through various application software installed in terminal equipment. Meanwhile, suppliers of various application software can also push contents concerned by users to the users through user behavior logs generated in the terminal equipment so as to improve the experience effect of the users.
However, in the prior art, the user behavior log generated in the terminal device is single isolated behavior information of the user uploaded by a single application respectively, for example: the following behavior information uploaded by certain shopping application software: clicking an icon of the shopping application software on a homepage of the terminal equipment by a user, clicking a certain icon on a homepage of the shopping application software by the user and the like; some chat application software uploads the following behavior information: and clicking the icon of the chat application software on the desktop of the terminal equipment by the user, clicking a certain contact icon in the chat application software by the user and the like. That is to say, any operation of any application in the terminal device by the user generates a user behavior log correspondingly, the user behavior logs are recorded as single isolated behavior information, and there is no correlation between the behavior information, so that the user behavior logs received by a background server of the terminal device are relatively messy and redundant; when the user behavior is analyzed and summarized subsequently according to the existing user behavior log, the data calculation amount is large, the process is complicated, and the efficiency is low.
Therefore, in the existing method for generating the user behavior log, the generated user behavior log is relatively redundant in a messy way; when the user behavior log is analyzed and summarized subsequently, the data calculation amount is large, the process is complicated, and the efficiency is low.
Disclosure of Invention
The invention provides a method and a device for generating a user behavior log, which aim to solve the problem that the generated user behavior log is relatively messy and redundant in the conventional method for generating the user behavior log.
In a first aspect, the present invention provides a method for generating a user behavior log, where the method includes: acquiring behavior information of a user and scene information corresponding to the behavior information; acquiring the generation time of the behavior information from the scene information corresponding to the behavior information; if the interval duration of the generation time of the behavior information with the later generation time and the generation time of the previous behavior information is less than or equal to a first preset duration, serially connecting the behavior information with the later generation time and the previous behavior information in the same behavior information chain according to the sequence of the corresponding generation time; generating scene behavior information according to the behavior information chain and scene information corresponding to the behavior information in the behavior information chain; and extracting keywords from the scene behavior information to generate a user behavior log.
Further, generating scenario behavior information according to the behavior information chain and scenario information corresponding to the behavior information in the behavior information chain, specifically including: determining valid behavior information contained in the behavior information chain; and generating scene behavior information according to the effective behavior information and the scene information corresponding to the effective behavior information.
Further, the generation method further comprises: and if the interval duration of the generation time of the behavior information with the later generation time and the generation time of the previous behavior information is greater than the first preset duration, respectively connecting the behavior information with the later generation time and the previous behavior information in series in different behavior information chains.
Further, the process of determining the effective behavior information included in the behavior information chain specifically includes: determining a child behavior information chain contained in the behavior information chain, wherein the child behavior information chain contains at least two pieces of behavior information, the interval duration between the generation time of the first piece of behavior information and the generation time of the last piece of behavior information is less than or equal to a second preset duration, and all the behavior information contained in the child behavior information chain is the same; and determining the last behavior information in the child behavior information chain as effective behavior information.
Further, the generation method further comprises: and for each piece of behavior information which does not belong to any one of the sub-behavior information chains in the behavior information chain, if the interval duration between the generation time of the piece of behavior information and the generation time of the next piece of behavior information is greater than or equal to a third preset duration, determining the piece of behavior information as valid behavior information.
In a second aspect, the present invention further provides a device for generating a user behavior log, where the device includes: the behavior information acquisition module is used for acquiring behavior information of a user and scene information corresponding to the behavior information; the generation time acquisition module is used for acquiring the generation time of the behavior information from the scene information corresponding to the behavior information; the behavior information chain generation module is used for serially connecting the behavior information with the generation time later and the behavior information with the generation time earlier in the same behavior information chain according to the sequence of the corresponding generation time if the interval time between the generation time of the behavior information with the generation time later and the generation time of the behavior information before the behavior information is less than or equal to a first preset time; the scene behavior information generating module is used for generating scene behavior information according to the behavior information chain and the scene information corresponding to the behavior information in the behavior information chain; and the user behavior log generation module is used for extracting keywords from the scene behavior information to generate a user behavior log.
Further, the generating device further comprises a valid behavior information determining module, configured to perform the following operations: determining valid behavior information contained in the behavior information chain; and deleting invalid behavior information contained in the behavior information chain, wherein the invalid behavior information is all behavior information except the valid behavior information in the behavior information chain.
Further, the behavior information chain generating module is further configured to: and if the interval duration of the generation time of the behavior information with the later generation time and the generation time of the previous behavior information is greater than the first preset duration, respectively connecting the behavior information with the later generation time and the previous behavior information in series in different behavior information chains.
Further, the valid behavior information determining module is configured to determine valid behavior information included in the behavior information chain, and specifically includes: the effective behavior information determination module is used for executing the following operations: determining a child behavior information chain contained in the behavior information chain, wherein the child behavior information chain contains at least two pieces of behavior information, the interval duration between the generation time of the first piece of behavior information and the generation time of the last piece of behavior information is less than or equal to a second preset duration, and all the behavior information contained in the child behavior information chain is the same; and determining the last behavior information in the child behavior information chain as effective behavior information.
Further, the effective behavior information determination module is further configured to: and for each piece of behavior information which does not belong to any one of the sub-behavior information chains in the behavior information chain, if the interval duration between the generation time of the piece of behavior information and the generation time of the next piece of behavior information is greater than or equal to a third preset duration, determining the piece of behavior information as valid behavior information.
The technical scheme provided by the embodiment of the invention can have the following beneficial effects: the invention provides a method and a device for generating a user behavior log. According to the generation method, behavior information of a user and scene information corresponding to the behavior information are obtained in real time, the behavior information which is correlated with each other is connected in series to form a behavior information chain, the behavior information contained in the behavior information chain and the scene information corresponding to the behavior information are determined to be scene behavior information, and finally after keyword extraction processing is carried out on the scene behavior information, the generated keywords are determined to be a user behavior log.
Therefore, the method for generating the user behavior log provided by the embodiment of the invention can be used for generating the user behavior log, and associating the behavior information with the association relationship together, so that the behavior information is not isolated any more. Therefore, on one hand, after the user behavior log is uploaded to the background server, the data redundancy of the user behavior log is reduced, and the load of the background server is reduced; on the other hand, according to the user behavior log, when the user behavior is analyzed, the processing process is simple, the data calculation amount is greatly reduced, the analysis rate is improved, and the analysis efficiency is further improved.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious to those skilled in the art that other drawings can be obtained according to the drawings without any inventive exercise.
Fig. 1 is a schematic flowchart of a method for generating a user behavior log according to an embodiment of the present invention;
fig. 2 is a block diagram of a structure of a device for generating a user behavior log according to an embodiment of the present invention.
Detailed Description
In the prior art, the user behavior log generated in the terminal device is the single isolated behavior information of the user uploaded by a single application respectively. That is to say, in the prior art, a user behavior log is generated by a user corresponding to any operation applied to any one of the terminal devices, the existing user behavior log records single isolated behavior information, and there is no association between the behavior information, so that the user behavior log received by a background server of the terminal device is relatively messy and redundant, and when the user behavior is subsequently analyzed and summarized according to the existing user behavior log, the data calculation amount is relatively large, the process is relatively complicated, and the efficiency is relatively low. In order to solve the problem, the invention provides a method and a device for generating a user behavior log.
The following describes a method and an apparatus for generating a user behavior log according to the present invention in detail with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a method for generating a user behavior log according to an embodiment of the present invention. As can be seen from fig. 1, the generation method includes:
step 101, acquiring behavior information of a user and scene information corresponding to the behavior information.
The behavior information of the user is information of the user operating various applications in the terminal device, for example, taking the case that the user watches a certain movie (subsequently, the movie is defined as a target movie), the user firstly clicks an icon of certain video software (subsequently, the video software is defined as the target video software) on a home page of the smart television, clicks a movie classification icon on a first page in the target video software, enters a movie classification page, clicks an icon of the target movie on the movie classification page, and then the user can watch the target movie subsequently. And in order to obtain a better viewing effect, after clicking the icon of the target movie, the user clicks the setting icon simultaneously in the viewing process of the target movie, and in the setting classification page, the image mode, the brightness and the contrast of the target movie are adjusted by adjusting the functional items such as the image mode, the brightness, the contrast and the like. In this process, the following behavior information is generated: the user clicks the icon of the target video software, the user clicks the movie classification icon, the user clicks the icon of the target movie, the user clicks the setting icon, and the user adjusts the image mode, the brightness, the contrast and the like.
The scene information corresponding to the behavior information of the user comprises: the generation time of the behavior information of the user, the device information of the terminal device when the user behavior occurs, and the like. The device information of the terminal device includes attribute information of the terminal device and parameter information of the terminal device, for example: when a user behavior occurs, information of application software currently running at the frontmost end in the terminal device, content currently displayed on a display screen of the terminal device, current parameter values of various functional items in the terminal device, and the like.
And 102, generating a behavior information chain according to the behavior information and scene information corresponding to the behavior information.
After the behavior information of the user and the scene information corresponding to each piece of behavior information are acquired, the generation time of the behavior information can be extracted from the scene information corresponding to each piece of behavior information, that is, the generation time of the behavior information can be determined according to the scene information corresponding to the behavior information.
After the terminal equipment is started, a user behavior log reporting service (service) is automatically started, and after the terminal equipment is started, the behavior information of the user and scene information corresponding to the behavior information are acquired in real time. For example: after the first piece of behavior information and the scene information corresponding to the piece of behavior information are obtained, the generation time of the first piece of behavior information is determined according to the scene information. The second piece of behavior information and the scene information corresponding to the behavior information are obtained, and the generation time of the second piece of behavior information is determined according to the scene information; then, calculating the interval duration of the generation time of the second piece of behavior information and the generation time of the first piece of behavior information, and comparing the size relation between the interval duration and a first preset duration; and if the interval duration is less than or equal to a first preset duration, the second piece of behavior information and the first piece of behavior information are considered to have correlation, and the second piece of behavior information and the first piece of behavior information are connected in series according to the sequence of the generation time. Then, after acquiring a piece of behavior information and scene information corresponding to the piece of behavior information and determining the generation time of the piece of behavior information according to the scene information, calculating the interval duration between the generation time of the piece of behavior information and the generation time of the previous piece of behavior information; comparing the interval duration with a first preset duration; and if the interval duration is less than or equal to a first preset duration, serially connecting the behavior information and the previous behavior information according to the sequence of the corresponding generation time, and stopping serially connecting the behavior information and the previous behavior information until the interval duration of the generation time of the behavior information and the generation time of the previous behavior information is greater than the first preset duration after acquiring a certain behavior information. Then, all behavior information before the behavior information is connected in series to form a first behavior information chain according to the sequence of the corresponding generation time, then the behavior information is used as the initial behavior information of a second behavior information chain, and the step of comparing the size relation between the interval duration between the generation time of the behavior information with the later generation time and the generation time of the behavior information before the generation time and the first preset duration and the subsequent steps are repeatedly executed until the user behavior log reporting service is stopped after the terminal device is powered off.
Based on this, the process of generating the behavior information chain according to the behavior information and the scene information corresponding to the behavior information specifically includes: acquiring the generation time of the behavior information from the scene information corresponding to the behavior information; if the interval duration of the generation time of the behavior information with the later generation time and the generation time of the previous behavior information is less than or equal to a first preset duration, serially connecting the behavior information with the later generation time and the previous behavior information in the same behavior information chain according to the sequence of the corresponding generation time; or, if the interval duration between the behavior information with the later generation time and the generation time of the previous behavior information is longer than the first preset duration, respectively connecting the behavior information with the later generation time and the previous behavior information in series in different behavior information chains.
It should be noted that, in practical applications, a series of behaviors generated by a user through continuous operation in a short time indicate that the behaviors are correlated; and in a longer interval time, two behaviors generated by the user operation indicate that the two behaviors are unrelated. For example: when a user watches TV, the user continuously operates the volume + key of the remote controller three times within one minute to adjust the volume of the TV, which means that the user continuously clicks the volume + key three times with relevance; twenty minutes after the user clicks the volume + key, the user clicks the home page key to enter the television home page, and the two unrelated behaviors are represented when the user clicks the volume + key and the user clicks the home page key. Therefore, in the embodiment of the present application, the relevance between two behaviors is determined according to the generation time of the front and back behavior information.
And 103, determining effective behavior information contained in the behavior information chain, and deleting ineffective behavior information contained in the behavior information chain.
Some behavior information is invalid behavior information in behavior information generated after a user operates an application of a terminal device, and if a user behavior log is generated by the invalid behavior information, the user behavior log has no referential property for subsequent user behavior analysis, but influences the analysis speed and reduces the efficiency. Therefore, after the behavior information chain is generated, it is necessary to determine valid behavior information included in the behavior information chain, and delete invalid behavior information included in the behavior information chain, so that when a user behavior log generated later is used for subsequent user behavior analysis, the calculated data amount can be reduced, the analysis speed is increased, and the analysis efficiency is further increased, where the invalid behavior information is all behavior information except the valid behavior information in the behavior information chain.
In specific implementation, the effective behavior information contained in the behavior information chain is determined, and the determination can be realized by the following method: determining a child behavior information chain contained in the behavior information chain, wherein the child behavior information chain contains at least two pieces of behavior information, the interval duration between the generation time of the first piece of behavior information and the generation time of the last piece of behavior information is less than or equal to a second preset duration, and all the behavior information contained in the child behavior information chain is the same; determining the last behavior information in the child behavior information chain as effective behavior information, namely if the same repeated operation is performed on the same application of the terminal equipment by a user for multiple times within a time period less than or equal to a second preset time length, so that multiple pieces of same behavior information are generated within the time period less than or equal to the second preset time length, determining one piece of behavior information with the latest time among the multiple pieces of behavior information as the effective behavior information; and for each piece of behavior information which does not belong to any one of the sub-behavior information chains in the behavior information chain, if the interval duration between the generation time of the piece of behavior information and the generation time of the next piece of behavior information is greater than or equal to a third preset duration, determining the piece of behavior information as valid behavior information.
And 104, generating scene behavior information according to the behavior information chain and scene information corresponding to the behavior information in the behavior information chain.
And after effective behavior information contained in each behavior information chain is determined, deleting invalid behavior information contained in the behavior information chain, and determining all effective behavior information contained in the behavior information chain and scene information corresponding to each effective behavior information as a piece of scene behavior information.
And 105, extracting keywords from the scene behavior information to generate a user behavior log.
In specific implementation, an open source project HanLP (han Language processing) toolkit can be adopted to extract keywords from the scenario behavior information, each piece of scenario behavior information is input into a keyword processing interface of the open source project HanLP toolkit, a series of keywords corresponding to the scenario behavior information are obtained after the scenario behavior information is subjected to keyword extraction processing, and all the keywords corresponding to the scenario behavior information are determined to be a user behavior log.
For example, taking the example that the user watches the target movie, the behavior information of the user includes: the user clicks the icon of the target video software, the user clicks the movie classification icon, the user clicks the icon of the target movie, the user clicks the setting icon, and the user adjusts the image mode, the brightness, the contrast and the like. The behavior information is connected in series to form a behavior information chain, and the behavior information is effective behavior information. The scene information corresponding to the behavior information includes: the time for the user to click the icon of the target movie is 23 points 55 minutes at night, the brightness value of the brightness item after adjustment is 40, and the contrast value of the contrast item after adjustment is 35. Then, the scenario behavior information generated by the behavior information and the scenario information corresponding to the behavior information is input to a keyword processing interface of the open source project HanLP toolkit, and after keyword extraction processing is performed, the following keywords can be obtained: the keywords can be determined as a log of user behavior by user ID, name of target movie, movie image mode, brightness of 40, contrast of 35, and time of 23 pm and 55 pm.
In addition, after each user behavior log is generated, the data persistence of the user behavior log is carried out and the user behavior log is uploaded to a background server of the terminal device, so that the behavior of the user can be analyzed and summarized according to the user behavior log stored in the background server in the following process, and each user behavior log is generated by a series of effective behavior information which is correlated with each other, so that when the user behavior log is adopted to analyze the behavior of the user, the calculated data amount can be greatly reduced, the analysis rate is improved, and the analysis efficiency is further improved.
According to the method for generating the user behavior log, the behavior information of the user and the scene information corresponding to the behavior information are obtained in real time, the behavior information which is correlated with each other is connected in series to form a behavior information chain, invalid behavior information contained in the behavior information chain is eliminated, all valid behavior information contained in the behavior information chain and the scene information corresponding to the valid behavior information are determined to be the scene behavior information, and finally the generated keywords are determined to be the user behavior log after the keyword extraction processing is carried out on the scene behavior information. Therefore, according to the method for generating the user behavior log provided by the embodiment of the invention, the generated user behavior log associates the behavior information with the association relationship together, so that the behavior information is not isolated any more, the invalid behavior information is removed, and the effectiveness of the user behavior log is improved. Therefore, on one hand, after the user behavior log is uploaded to the background server, the data redundancy of the user behavior log is reduced, and the load of the background server is reduced; on the other hand, according to the user behavior log, when the user behavior is analyzed, the processing process is simple, the data calculation amount is greatly reduced, the analysis rate is improved, and the analysis efficiency is further improved.
Corresponding to the method for generating the user behavior log, the embodiment of the invention also discloses a device for generating the user behavior log.
Referring to fig. 2, fig. 2 is a block diagram illustrating a structure of a device for generating a user behavior log according to an embodiment of the present invention. As can be seen from fig. 2, the generating device includes:
a behavior information obtaining module 201, configured to obtain behavior information of a user and scene information corresponding to the behavior information; a generation time obtaining module 202, configured to obtain generation time of the behavior information from scene information corresponding to the behavior information; the behavior information chain generating module 203 is configured to, if the interval duration between the generation time of the behavior information after the generation time and the generation time of the previous behavior information is less than or equal to a first preset duration, serially connect the behavior information after the generation time and the previous behavior information in the same behavior information chain according to the sequence of the corresponding generation times; the contextual behavior information generating module 204 is configured to generate contextual behavior information according to the behavior information chain and the contextual information corresponding to the behavior information in the behavior information chain; the user behavior log generating module 205 is configured to perform keyword extraction on the scenario behavior information to generate a user behavior log.
Further, the generating device further includes a valid behavior information determining module 206, configured to perform the following operations: determining valid behavior information contained in the behavior information chain; and deleting invalid behavior information contained in the behavior information chain, wherein the invalid behavior information is all behavior information except the valid behavior information in the behavior information chain.
Further, the behavior information chain generating module 203 is further configured to: and if the interval duration of the generation time of the behavior information with the later generation time and the generation time of the previous behavior information is greater than the first preset duration, respectively connecting the behavior information with the later generation time and the previous behavior information in series in different behavior information chains.
Further, the effective behavior information determining module 206 is configured to determine the effective behavior information included in the behavior information chain, and specifically includes: the effective behavior information determination module 206 is configured to perform the following operations: determining a child behavior information chain contained in the behavior information chain, wherein the child behavior information chain contains at least two pieces of behavior information, the interval duration between the generation time of the first piece of behavior information and the generation time of the last piece of behavior information is less than or equal to a second preset duration, and all the behavior information contained in the child behavior information chain is the same; and determining the last behavior information in the child behavior information chain as effective behavior information.
Further, the effective behavior information determination module 206 is further configured to: and for each piece of behavior information which does not belong to any one of the sub-behavior information chains in the behavior information chain, if the interval duration between the generation time of the piece of behavior information and the generation time of the next piece of behavior information is greater than or equal to a third preset duration, determining the piece of behavior information as valid behavior information.
By adopting the device for generating the user behavior log provided by the embodiment of the invention, the steps in the method for generating the user behavior log can be implemented, and the same beneficial effects can be obtained. According to the device for generating the user behavior log, the generated user behavior log associates the behavior information with the association relationship, so that the behavior information is not isolated any more, invalid behavior information is removed, and the effectiveness of the user behavior log is improved. Therefore, on one hand, after the user behavior log is uploaded to the background server, the data redundancy of the user behavior log is reduced, and the load of the background server is reduced; on the other hand, according to the user behavior log, when the user behavior is analyzed, the processing process is simple, the data calculation amount is greatly reduced, the analysis rate is improved, and the analysis efficiency is further improved.
In a specific implementation, the present invention further provides a computer storage medium, where the computer storage medium may store a program, and when the program is executed, the program may include some or all of the steps in each embodiment of the method for generating a user behavior log provided by the present invention. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a Random Access Memory (RAM).
Those skilled in the art will readily appreciate that the techniques of the embodiments of the present invention may be implemented as software plus a required general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
The same and similar parts in the various embodiments in this specification may be referred to each other. Especially, for the embodiment of the user behavior log generation device, since it is basically similar to the embodiment of the method, the description is simple, and the relevant points can be referred to the description in the embodiment of the method.
The above-described embodiments of the present invention should not be construed as limiting the scope of the present invention.

Claims (9)

1. A method for generating a user behavior log is characterized by comprising the following steps:
acquiring behavior information of a user and scene information corresponding to the behavior information, wherein the scene information comprises: the generation time of the user behavior information and the equipment information of the terminal equipment when the user behavior occurs;
acquiring the generation time of the behavior information from the scene information corresponding to the behavior information;
if the interval duration of the generation time of the behavior information with the later generation time and the generation time of the previous behavior information is less than or equal to a first preset duration, serially connecting the behavior information with the later generation time and the previous behavior information in the same behavior information chain according to the sequence of the corresponding generation time;
generating scene behavior information according to the behavior information chain and scene information corresponding to the behavior information in the behavior information chain;
extracting keywords from the scene behavior information to generate a user behavior log;
generating scenario behavior information according to the behavior information chain and scenario information corresponding to the behavior information in the behavior information chain, specifically comprising:
determining valid behavior information contained in the behavior information chain;
and generating scene behavior information according to the effective behavior information and the scene information corresponding to the effective behavior information.
2. The generation method of claim 1, further comprising:
and if the interval duration of the generation time of the behavior information with the later generation time and the generation time of the previous behavior information is greater than the first preset duration, respectively connecting the behavior information with the later generation time and the previous behavior information in series in different behavior information chains.
3. The method according to claim 1, wherein the process of determining valid behavior information included in the behavior information chain specifically includes:
determining a child behavior information chain contained in the behavior information chain, wherein the child behavior information chain contains at least two pieces of behavior information, the interval duration between the generation time of the first piece of behavior information and the generation time of the last piece of behavior information is less than or equal to a second preset duration, and all the behavior information contained in the child behavior information chain is the same;
and determining the last behavior information in the child behavior information chain as effective behavior information.
4. The generation method of claim 3, further comprising:
and for each piece of behavior information which does not belong to any one of the sub-behavior information chains in the behavior information chain, if the interval duration between the generation time of the piece of behavior information and the generation time of the next piece of behavior information is greater than or equal to a third preset duration, determining the piece of behavior information as valid behavior information.
5. An apparatus for generating a user behavior log, comprising:
the behavior information acquisition module is used for acquiring behavior information of a user and scene information corresponding to the behavior information, wherein the scene information comprises: the generation time of the user behavior information and the equipment information of the terminal equipment when the user behavior occurs;
the generation time acquisition module is used for acquiring the generation time of the behavior information from the scene information corresponding to the behavior information;
the behavior information chain generation module is used for serially connecting the behavior information with the generation time later and the behavior information with the generation time earlier in the same behavior information chain according to the sequence of the corresponding generation time if the interval time between the generation time of the behavior information with the generation time later and the generation time of the behavior information before the behavior information is less than or equal to a first preset time;
the scene behavior information generating module is used for generating scene behavior information according to the behavior information chain and the scene information corresponding to the behavior information in the behavior information chain; the method specifically comprises the following steps: determining valid behavior information contained in the behavior information chain; generating scene behavior information according to the effective behavior information and scene information corresponding to the effective behavior information;
and the user behavior log generation module is used for extracting keywords from the scene behavior information to generate a user behavior log.
6. The generation apparatus of claim 5, further comprising a valid behavior information determination module to:
determining valid behavior information contained in the behavior information chain;
and deleting invalid behavior information contained in the behavior information chain, wherein the invalid behavior information is all behavior information except the valid behavior information in the behavior information chain.
7. The generation apparatus of claim 5, wherein the behavior information chain generation module is further to:
and if the interval duration of the generation time of the behavior information with the later generation time and the generation time of the previous behavior information is greater than the first preset duration, respectively connecting the behavior information with the later generation time and the previous behavior information in series in different behavior information chains.
8. The generation apparatus as claimed in claim 6, wherein the effective behavior information determination module is configured to determine the effective behavior information included in the behavior information chain, and specifically includes:
the effective behavior information determination module is used for executing the following operations:
determining a child behavior information chain contained in the behavior information chain, wherein the child behavior information chain contains at least two pieces of behavior information, the interval duration between the generation time of the first piece of behavior information and the generation time of the last piece of behavior information is less than or equal to a second preset duration, and all the behavior information contained in the child behavior information chain is the same;
and determining the last behavior information in the child behavior information chain as effective behavior information.
9. The generation apparatus of claim 8, wherein the valid behavior information determination module is further to:
and for each piece of behavior information which does not belong to any one of the sub-behavior information chains in the behavior information chain, if the interval duration between the generation time of the piece of behavior information and the generation time of the next piece of behavior information is greater than or equal to a third preset duration, determining the piece of behavior information as valid behavior information.
CN201810752934.9A 2018-07-10 2018-07-10 Method and device for generating user behavior log Active CN108959053B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810752934.9A CN108959053B (en) 2018-07-10 2018-07-10 Method and device for generating user behavior log

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810752934.9A CN108959053B (en) 2018-07-10 2018-07-10 Method and device for generating user behavior log

Publications (2)

Publication Number Publication Date
CN108959053A CN108959053A (en) 2018-12-07
CN108959053B true CN108959053B (en) 2021-12-14

Family

ID=64483650

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810752934.9A Active CN108959053B (en) 2018-07-10 2018-07-10 Method and device for generating user behavior log

Country Status (1)

Country Link
CN (1) CN108959053B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112783743B (en) * 2021-01-26 2023-04-28 深圳融安网络科技有限公司 Log generation method, terminal equipment and storage medium
CN114239496B (en) * 2021-11-12 2023-10-24 北京卓思天成数据咨询股份有限公司 Service state generation method, device, equipment and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102760124A (en) * 2011-04-25 2012-10-31 阿里巴巴集团控股有限公司 Pushing method and system for recommended data
US8624742B2 (en) * 2011-03-09 2014-01-07 Samsung Electronics Co., Ltd. Apparatus and method for monitoring keyboard input
CN104462320A (en) * 2014-12-01 2015-03-25 中国联合网络通信集团有限公司 Method and device for realizing classification of network users
CN105898576A (en) * 2016-06-17 2016-08-24 青岛海信传媒网络技术有限公司 Data recommending method based on television application, and data server
CN107885742A (en) * 2016-09-29 2018-04-06 腾讯科技(深圳)有限公司 Service recommendation method and device
CN108121749A (en) * 2016-11-30 2018-06-05 北京国双科技有限公司 Website user's behavior analysis method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8624742B2 (en) * 2011-03-09 2014-01-07 Samsung Electronics Co., Ltd. Apparatus and method for monitoring keyboard input
CN102760124A (en) * 2011-04-25 2012-10-31 阿里巴巴集团控股有限公司 Pushing method and system for recommended data
CN104462320A (en) * 2014-12-01 2015-03-25 中国联合网络通信集团有限公司 Method and device for realizing classification of network users
CN105898576A (en) * 2016-06-17 2016-08-24 青岛海信传媒网络技术有限公司 Data recommending method based on television application, and data server
CN107885742A (en) * 2016-09-29 2018-04-06 腾讯科技(深圳)有限公司 Service recommendation method and device
CN108121749A (en) * 2016-11-30 2018-06-05 北京国双科技有限公司 Website user's behavior analysis method and device

Also Published As

Publication number Publication date
CN108959053A (en) 2018-12-07

Similar Documents

Publication Publication Date Title
US11055340B2 (en) System and method for creating synopsis for multimedia content
CN106792242B (en) Method and device for pushing information
US9805022B2 (en) Generation of topic-based language models for an app search engine
US10664516B2 (en) Search system, method and apparatus
TWI436226B (en) Apparatus and method for real-time new event detection on video streams
CN107835439B (en) Bullet screen pushing method, electronic equipment and computer readable storage medium
US10897658B1 (en) Techniques for annotating media content
CN111324804B (en) Search keyword recommendation model generation method, keyword recommendation method and device
EP4092545A1 (en) Content recommendation method and device
CN108959053B (en) Method and device for generating user behavior log
CN114154013A (en) Video recommendation method, device, equipment and storage medium
CN110249324B (en) Maintaining session identifiers for content selection across multiple web pages
CN113779381A (en) Resource recommendation method and device, electronic equipment and storage medium
US20150052126A1 (en) Method and system for recommending relevant web content to second screen application users
CN106899879B (en) Multimedia data processing method and device
US9098863B2 (en) Compressed analytics data for multiple recurring time periods
CN111443967B (en) Image processing method and device
CN113449144A (en) Video processing method and device and electronic equipment
US10366138B2 (en) Method and apparatus for generating a web page
CN113365138B (en) Content display method and device, electronic equipment and storage medium
CN113515670B (en) Film and television resource state identification method, equipment and storage medium
WO2015012714A1 (en) Method for checking websites for real-time target audio and/or video (av) content
CN111491198B (en) Small video searching method and device
CN113778717A (en) Content sharing method, device, equipment and storage medium
CN112650595A (en) Communication content processing method and related device

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
CB02 Change of applicant information

Address after: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218

Applicant after: Hisense Video Technology Co., Ltd

Address before: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218

Applicant before: HISENSE ELECTRIC Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant