CN112000886B - User behavior recording method, device, equipment and readable storage medium - Google Patents

User behavior recording method, device, equipment and readable storage medium Download PDF

Info

Publication number
CN112000886B
CN112000886B CN202010820954.2A CN202010820954A CN112000886B CN 112000886 B CN112000886 B CN 112000886B CN 202010820954 A CN202010820954 A CN 202010820954A CN 112000886 B CN112000886 B CN 112000886B
Authority
CN
China
Prior art keywords
user behavior
character string
user
string representing
increment
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
CN202010820954.2A
Other languages
Chinese (zh)
Other versions
CN112000886A (en
Inventor
胡滨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202010820954.2A priority Critical patent/CN112000886B/en
Publication of CN112000886A publication Critical patent/CN112000886A/en
Application granted granted Critical
Publication of CN112000886B publication Critical patent/CN112000886B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the application discloses a user behavior recording method, a device, equipment and a readable storage medium, and relates to the technical field of user behavior analysis and data storage. The specific implementation scheme is as follows: acquiring the associated information of the user behavior to be recorded; generating a character string representing a starting point of the associated information of the user behavior; calculating the increment of the associated information of the user behavior relative to the starting point, and generating a character string representing the increment; and splicing the character string representing the starting point and the character string representing the increment to obtain the record of the associated information of the user behavior. According to the method and the device, the storage space of the associated information of the user behavior can be reduced.

Description

User behavior recording method, device, equipment and readable storage medium
Technical Field
The present application relates to computer technology, and more particularly, to the field of user behavior analysis and data storage technology.
Background
An important goal of internet products is to analyze user behavior and to best recommend content of interest to the user. With this goal, it is important how to efficiently record user behavior.
Currently, the storage space required for recording the user behavior is large, for example, a timestamp is generally adopted when the access time in the user behavior is recorded, for example 1592045760, when the user accesses the product at 2020/6/13/18:56:0, a plurality of timestamps 1592045760, 1592045770, 1592045780 occupy a large storage space when the user needs to record at a plurality of time points.
Disclosure of Invention
The embodiment of the application provides a user behavior recording method, device, equipment and readable storage medium.
In a first aspect, an embodiment of the present application provides a method for recording user behavior, including:
acquiring the associated information of the user behavior to be recorded;
generating a character string representing a starting point of the associated information of the user behavior;
calculating the increment of the associated information of the user behavior relative to the starting point, and generating a character string representing the increment;
and splicing the character string representing the starting point and the character string representing the increment to obtain the record of the associated information of the user behavior.
In a second aspect, an embodiment of the present application further provides a user behavior recording apparatus, including:
the acquisition module is used for acquiring the associated information of the user behaviors needing to be recorded;
A generation module for generating a character string representing a starting point of the associated information of the user behavior;
the computing module is used for computing the increment of the associated information of the user behavior relative to the starting point and generating a character string representing the increment;
and the splicing module is used for splicing the character string representing the starting point and the character string representing the increment to obtain the record of the associated information of the user behavior.
In a third aspect, an embodiment of the present application provides an electronic device, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a user behavior recording method as provided in any one of the embodiments.
In a fourth aspect, embodiments of the present application provide a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform a user behavior recording method provided by any of the embodiments.
According to the method and the device, the storage space of the associated information of the user behavior can be reduced.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
Drawings
The drawings are for better understanding of the present solution and do not constitute a limitation of the present application. Wherein:
FIG. 1 is a flow chart of a first method of user behavior recording in an embodiment of the present application;
FIG. 2 is a flow chart of a second method of user behavior recording in an embodiment of the present application;
FIG. 3 is a flow chart of a third method of user behavior recording in an embodiment of the present application;
FIG. 4 is a flow chart of a fourth method of user behavior recording in an embodiment of the present application;
FIG. 5 is a flowchart of a fifth method of user behavior recording in an embodiment of the present application;
FIG. 6 is a block diagram of a user behavior recording apparatus in an embodiment of the present application;
fig. 7 is a block diagram of an electronic device in an embodiment of the present application.
Detailed Description
Exemplary embodiments of the present application are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present application to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a flowchart of a first method for recording user behavior in an embodiment of the present application, where the embodiment of the present application is applicable to a case of recording network access behavior of a user. The method is executed by a user behavior recording device, and the device is realized by software and/or hardware and is specifically configured in electronic equipment with certain data operation capability.
The user behavior recording method shown in fig. 1 comprises the following steps:
s110, acquiring the associated information of the user behavior to be recorded.
The associated information of the user behavior may be behavior information of the user when accessing the network, such as accessing a website or using a networkable application. Optionally, points are buried in the application accessed by the user to collect relevant information of the user behavior. Illustratively, the associated information of the user behavior includes at least one of a user behavior time and user behavior content. Of course, the associated information of the user behavior is not limited thereto, and any behavior information related to the user accessing the network is within the protection scope of the present embodiment.
S120, generating a character string of the starting point of the associated information representing the user behavior.
The associated information of the user behavior comprises at least one information, for example comprising only the user behavior time or the user behavior content, or comprising both the user behavior time and the user behavior content. Based on this, the starting point of the associated information of each user behavior is obtained according to the kind of the associated information of the user behavior. The starting point is a preset reference starting point of the related information of the user behavior, for example, the starting point of the user behavior time is a set moment; when the content is numbered, the starting point of the user behavior content is the starting number.
Optionally, any character string can be randomly generated to represent the starting point, and the generated character string is bound with the starting point to establish a corresponding relation; the corresponding character string can be generated based on the substantial content of the starting point, and the generated character string can represent the substantial content of the starting point, so that the readability is high. Wherein the character string comprises at least one character.
S130, calculating the increment of the associated information of the user behavior relative to the starting point, and generating a character string representing the increment.
The associated information of the user behavior is the same as the record unit adopted by the corresponding starting point, and the increment of the associated information of the user behavior relative to the starting point is calculated based on the same record unit. Alternatively, the recording unit is a time unit, a number, a unit, or the like. In the case where the recording unit is omitted, the increment is generally a number.
Optionally, any character string can be randomly generated to represent the increment, and the generated character string is bound with the increment to establish a corresponding relation; corresponding strings may also be generated based on the incremental substantive content, where the generated strings can characterize the substantive content of the starting point, e.g., the strings are digital themselves. Wherein the character string comprises at least one character.
And S140, splicing the character string representing the starting point and the character string representing the increment to obtain the record of the associated information of the user behavior.
In an alternative embodiment, the whole character string representing the starting point is spliced with the whole character string representing the increment, so that the internal integrity of the two character strings is not damaged, for example, the character string ABC representing the starting point is spliced with the character string DEF representing the increment to obtain ABCDEF. In another alternative embodiment, each character in the character string representing the starting point and each character in the character string representing the increment are spliced according to a set cross splicing rule, so that the internal integrity of the two character strings is destroyed, and the associated information of the user behavior is better encrypted and prevented from being read. For example, the character string ABC representing the starting point and the character string DEF representing the increment are spliced according to a rule of intersecting each other one by one, to obtain ADBECF.
It should be noted that, in order to clearly distinguish the starting point from the increment, a separator such as a space may be added between the character string representing the starting point and the character string representing the increment. When the character types of the two character strings are different, for example, the character string representing the starting point is english letter, and the character string representing the increment is data, the character strings can be distinguished by the character type, and no separator is necessarily added.
In the embodiment, the increment of the associated information of the user behavior is calculated by taking the starting point as a reference, so that the associated information of the user behavior is expressed into a character string form of the starting point plus the increment, and the compressed record of the associated information of the user behavior is realized; compared with the complete content of the associated information representing the user behavior, the data storage space is effectively reduced, and the storage and service resources are reduced.
In the above embodiment and the following embodiments, the splicing of the character string representing the starting point and the character string representing the increment to obtain the record of the associated information of the user behavior includes: for each user behavior in the associated information of at least two user behaviors, splicing the character string representing the starting point and the character string representing the increment to obtain a record of the associated information of each user behavior; and splicing the records of the associated information of each user behavior to obtain the records of the associated information of the user behavior.
The embodiment is suitable for the situation of recording the associated information of at least two user behaviors, wherein the associated information of each user behavior is expressed in a character string form of starting point plus increment, and then the associated information of each user behavior is spliced in sequence. Optionally, the splicing is performed according to the time sequence of acquiring the associated information of the user behavior, or the splicing is performed according to the set time sequence, for example, the character string representing the time of the user behavior is spliced before the character string representing the content of the user behavior, so as to form a character string.
According to the embodiment, the records of the associated information of different types of user behaviors are spliced, so that the associated information of multiple user behaviors is represented by one character string, and the data storage space is further reduced.
Fig. 2 is a flowchart of a second method for recording user behavior in an embodiment of the present application according to an embodiment of the present application, where the case of recording user behavior time is optimized based on the technical solutions of the foregoing embodiments.
The user behavior recording method as shown in fig. 2 includes:
s210, acquiring at least one user behavior time required to be recorded.
The user behavior time is the time when the user behavior is collected.
S220, generating a character string representing the starting point of at least one user behavior time.
The starting point of the at least one user behavior time may be the same. Illustratively, the starting point 2020, defining the user behavior time, is 6 months 13 days: year_base 2020, monta_base 6, day_base 13, abbreviated as y2020m6d13. As can be seen, the present example generates a corresponding string based on the substantial content of the starting point, which can characterize the substantial content of the starting point.
S230, calculating the increment of each user action time relative to the starting point, and generating at least one character string representing each increment.
Illustratively, a user action time of 14 days, 6/2020, is 1 day from the above starting point, and a string representing 1 day of the increment, such as day1, is generated. As can be seen, the present example generates a corresponding string based on the delta substantive content, which is capable of characterizing the delta substantive content. The embodiment generates a character string representing the corresponding increment based on each user behavior time, thereby obtaining at least one character string.
In generating at least one string representing each increment, optionally, generating a string representing a set time interval; calculating the number of set time intervals covered by each increment; and splicing the character string representing the set time interval and the number of the set time intervals covered by each increment to obtain the character string representing each increment.
The set time interval may be 1 minute, 1 hour, and 1 day, depending on the service requirements. The character strings (including at least one character) representing different set time intervals are different, for example, the character string representing 1 minute is m, and the character string representing 1 hour is h. Assuming that the increment is 1 hour and the set time interval is 1 minute, the number of set time intervals covered by the increment is 60 (1 hour equals 60 minutes), and m60 is obtained by concatenating m and 60.
The embodiment flexibly represents the increment by setting the time interval and adopting different time intervals, thereby representing the user behavior time in the interested time dimension. The starting point and the set time interval in the embodiment are adjustable, so that the flexibility of the user behavior time representation is further improved. The larger the set time interval is, the larger the compression degree is, and the smaller the occupied storage space is; and the smaller the set time interval is, the more fine granularity can be represented for the user behavior time. Thus, by adjusting the appropriate set time interval, a balance is achieved that saves storage space and fine granularity represents user behavior time.
S240, sequentially splicing the character string representing the starting point and at least one character string to obtain at least one record of the user behavior time.
When the user behavior time is 1, the character string representing the increment is spliced before the character string representing the starting point. Based on the above example, when the user behavior time is 1 point on 13 days of 6 months in 2020, the character string representing the starting point is y2020m6d13, and the character string representing the increment of 1 hour is m60, the y2020m6d13m60 is obtained by stitching.
When the user behavior time is at least two, the character strings representing the starting point are spliced before all the character strings representing the increment, and the at least two character strings representing the increment can be spliced according to the time sequence. Based on the above example, the user behavior time includes 1 point and 2 points on 13 days of 2020, the character string representing the starting point is y2020m6d13, the character string representing the increment of 1 hour is m60, the character string representing the increment of 2 hours is m120, and then y2020m6d13m60m120 is obtained by stitching.
In the embodiment, the user behavior time is expressed in the form of a character string of starting point plus increment, so that the storage space of the user behavior time is reduced. Further, when the user behavior time is at least two, only one character string representing the starting point is needed, each user behavior time is represented only by an increment, and the storage space is further compressed along with the increase of the user behavior time.
Fig. 3 is a flowchart of a third method for recording user behavior in an embodiment of the present application according to an embodiment of the present application, where the case of recording user behavior time is optimized based on the technical solutions of the foregoing embodiments.
The user behavior recording method as shown in fig. 3 includes:
s310, acquiring user behavior content to be recorded.
User behavior content is web content accessed by a user, such as a certain article or a certain live room. The number of user behavior content is at least one. Each user behavior content is recorded by adopting the method provided by the embodiment.
S320, generating a character string representing the starting number of the user behavior content.
When the content is numbered, the starting point of the user behavior content is the starting number. Illustratively, the starting number of the user behavior content is 1231231566, and the character string p representing the starting number is randomly generated. Further, let p= 1231231566, the generated character string p is bound to the starting number 1231231566 to establish a correspondence.
S330, calculating the increment of the number of the user behavior content relative to the starting number, and obtaining a character string representing the increment.
In this embodiment, the starting point and the increment are both numbered, and the increment is obtained by subtracting the starting number from the number of the user behavior content. Illustratively, the user behavior content is numbered 1231231567 and 1231231568, and the increment is 1 and 2 relative to the initial number 1231231566, respectively, and the increment is directly used as the character string representing the increment.
And S340, splicing the character string representing the starting point and the character string representing the increment to obtain the record of the behavior content of the user.
Following the above example, the string p representing the starting number and strings 1 and 2 representing the increment are concatenated to obtain a record p1p2 of the user behavior content.
Also included after S340 is: and splicing the records of the user behavior content and the records of the user behavior time to obtain the records of the associated information of the user behavior.
Alternatively, the user may access the same numbered content at different points in time, and repeatedly recording the content is meaningless and takes up space, but introduces the frequency of access of the content. Optionally, counting the access frequency of the user behavior content in the set duration. And splicing the character string representing the user behavior content and the access frequency of the user behavior content to obtain the record of the final user behavior content.
The set duration may be set autonomously, for example, 10 minutes. It is sometimes necessary to record specific time of each access, and multiple user behavior times may be recorded in combination with the frequency of access to the user behavior content. For example, when the user accesses p1 at 1 and 2 points of 13 days of 6 months in 2020, the splice is y2020m6d13m60m120 p1 (2). In order to avoid confusion between the access frequency and the character string representing the increment, brackets are used as separators to show the distinction.
According to the embodiment, the user behavior content is expressed in the form of the character string of the starting point plus the increment, so that the compression record of the user behavior content is realized, and the storage space of the user behavior content is reduced.
Fig. 4 is a flowchart of a fourth method for recording user behavior in an embodiment of the present application according to an embodiment of the present application, where the recording process of a user access tag is optimized based on the technical solutions of the foregoing embodiments.
The user behavior recording method as shown in fig. 4 includes:
s410, acquiring the associated information of the user behavior to be recorded.
S420, generating a character string of the starting point of the associated information representing the user behavior.
S430, calculating the increment of the associated information of the user behavior relative to the starting point, and generating a character string representing the increment.
S440, splicing the character string representing the starting point and the character string representing the increment to obtain the record of the associated information of the user behavior.
S410-S440 are described in detail in the above embodiments, and are not described here again.
S450, acquiring a user access tag to be recorded, and generating a character string representing the user access tag.
The tags herein are tags of web content, such as tags for basketball and games. Optionally, the user access tag, i.e. the user access tag, is extracted from the user access content.
Optionally, any character string can be randomly generated to represent the user access tag, and the generated character string is bound with the user access tag to establish a corresponding relationship; the corresponding character string can be generated based on the essential content of the user access tag, and the generated character string can represent the essential content of the user access tag, so that the readability is high. Wherein the character string comprises at least one character. Illustratively, the string representing the james tag is ta and the string representing the Du Lante tag is tb.
S460, splicing the character string representing the user access tag and the access frequency of the user access tag to obtain the record of the user access tag.
Similar to the content of the user behavior in the above embodiment, the user accesses the same tag at different time points, so that it is meaningless and occupies space to repeatedly record the tags, and the access frequency of the tags is introduced. Optionally, counting the access frequency of the user to the tag within the set time. And splicing the character string representing the user access tag and the access frequency of the user access tag to obtain the record of the user access tag. Illustratively, accessing the james tag 5 times is denoted as ta5.
The set duration may be set autonomously, for example, 10 minutes. It is sometimes desirable to record specific times of each access, and multiple user behavior times may be recorded in combination with the frequency of access of the user to the tag. For example, if the user accesses the james tag 2 times at 1 and 2 points of 13 months of 2020, the splice is y2020m6d13m60m120ta2.
S470, splicing the record of the user access label and the record of the associated information of the user behavior.
Optionally, the record of the association information of the user behavior includes a record of a time of the user behavior. For example, a user accesses Du Lante tag 1 time at 0 point 1 and 1 point 40 point of 13 months in 2020, a user accesses james tag 1 time at 3 points 20 points of 13 months in 2020, and a user accesses james tag 2 times at 8 points 20 points of 13 months in 2020, and y2020m6d13m1m100tb1m200ta1m500ta2 is spliced.
Optionally, the recording of the associated information of the user behavior includes recording of a time of the user behavior and recording of content of the user behavior. Illustratively, the user accesses Du Lante tag 1 time at 0 point 1 and 1 point 40 points on month 13 of 2020; the user accesses the james tag 1 time at 3 points 20 minutes on 6/13/2020, while accessing p100 and p3004 (p represents a numbered character string); the user accesses the james tag 2 times at 8 points and 20 points of 6 months and 13 days in 2020, and accesses p100 and p3004 simultaneously, and splices the two to obtain y2020m6d13m1m100tb1m200ta1p100p3004m500ta2p100p3004.
It should be noted that S450 and S460 need to be performed before S470, and may be performed before, after, or at the time of S410-S440.
Fig. 5 is a flowchart of a fifth user behavior recording method according to an embodiment of the present application, where the recording process of the user access path is optimized based on the technical solutions of the foregoing embodiments.
The user behavior recording method as shown in fig. 5 includes:
s510, acquiring the associated information of the user behavior to be recorded.
S520, generating a character string of the starting point of the associated information representing the user behavior.
S530, calculating the increment of the associated information of the user behavior relative to the starting point, and generating a character string representing the increment.
S540, splicing the character string representing the starting point and the character string representing the increment to obtain the record of the associated information of the user behavior.
S510-S540 are detailed in the above embodiments, and are not described here again.
S550, acquiring a user access path to be recorded.
The user access path refers to a network path that the user accesses, and for example, the user access path includes: the user enters the home page, posts bar, content details page (see a specific content).
S560, determining the character string length representing the user access path according to the access frequency of the user access path, wherein the character string length is shortened along with the increase of the access frequency.
The access frequency of the user access path may be obtained by counting the access frequency of a plurality of users to the user access path in a history period, and the history period may be the first 1 month or the first 1 year.
S570, generating a character string matched with the character string length to obtain a record of the user access path.
The embodiment represents the whole user access path of at least one hierarchy as a character string (including at least one character), and determines the length of the character string according to the access frequency of the user access path, for example: the "top page→content detail page" with higher frequency is denoted as a; the "home page- & gt bar- & gt content detail page" with higher frequency is denoted as b; the "home page→bar→essence post→content detail page" with lower frequency is denoted as ab. It can be seen that the higher the access frequency, the shorter the string length, thereby reducing the memory space of the user access path.
S580, the record of the user access path and the record of the associated information of the user behavior are spliced.
Optionally, the record of the association information of the user behavior includes a record of a time of the user behavior. For example, the user accesses the "home page→content detail page" at 3 points and 20 points of 13 days of 6 months of 2020, and the user accesses the "home page→content detail page" and the "home page→bar→content detail page" at 8 points and 20 points of 13 days of 6 months of 2020, and the y2020m6d13m200 (a) m500 (a, b) is spliced. In order to avoid confusion between the character string representing the user access path and the character string representing the time interval, brackets are used as separators to show the distinction. Meanwhile, in order to avoid confusion between character strings representing different user access paths, commas are used as separators to show distinction.
Optionally, the recording of the associated information of the user behavior includes recording of a time of the user behavior and recording of content of the user behavior. Illustratively, the user accesses p100 and p3004 (p represents the character string of the starting number) in "top page→content detail page" at 3 points of 13 th month of 2020, the user accesses p100 and p3004 in "top page→content detail page" at 8 points of 13 th month of 2020, and accesses p100 and p3004 in "top page→bar→content detail page", and the y2020m6d13m200 (ap 100p 3004) m500 (ap 100p3004, bp100p 3004) is spliced.
Further, the record of the user access path, the record of the associated information of the user behavior and the record of the user access tag are spliced. Illustratively, the user accesses Du Lante tag 1 time at 0 point 1 and 1 point 40 points on month 13 of 2020; the user accesses the james tag 1 time at 3 points 20 minutes on 6/13/2020, while accessing p100 and p3004 (p represents a numbered character string from scratch) in "first page→content detail page"; the user accesses the james tag 2 times at 8 points and 20 points on 6 and 13 months in 2020, simultaneously accesses p100 and p3004 in the "home page→content detail page" and accesses p100 and p3004 in the "home page→bar→content detail page", and splices to obtain y2020m6d13m1m100tb1m200ta1 (ap 100p 3004) m500ta2 (ap 100p3004, bp100p 3004).
It should be noted that S550 and S570 need to be performed before S580, and may be performed before, after, or at the time of S510-S540.
On the basis of the above embodiment, a separator is added in the record of the associated information of the user behavior. Optionally, a separator is added between records of association information of different kinds of user behaviors, or a separator is added between records of association information of user behaviors, user access tags and user access paths. Alternatively, a separator may be added inside the record of the same user behavior association information, the record of the user access tag, or the record of the user access path, for example, a separator may be added between a character string representing a starting point and a character string representing an increment. The character string confusion is avoided through the separator, so that the record is clearer.
Fig. 6 is a block diagram of a user behavior recording apparatus according to an embodiment of the present application, where the embodiment of the present application is applicable to a case of recording a network access behavior of a user, and the apparatus is implemented by using software and/or hardware and is specifically configured in an electronic device having a certain data computing capability.
A user behavior recording apparatus 600 as shown in fig. 6, comprising: an acquisition module 601, a generation module 602, a calculation module 603 and a splicing module 604; wherein,
the acquiring module 601 is configured to acquire association information of a user behavior to be recorded;
a generation module 602, configured to generate a character string representing a starting point of the associated information of the user behavior;
a calculating module 603, configured to calculate an increment of the associated information of the user behavior with respect to the starting point, and generate a character string representing the increment;
and the splicing module 604 is used for splicing the character string representing the starting point and the character string representing the increment to obtain a record of the associated information of the user behavior.
In the embodiment of the application, the increment of the associated information of the user behavior is calculated by taking the starting point as a reference, so that the associated information of the user behavior is expressed into a character string form of the starting point plus the increment, and the compression record of the associated information of the user behavior is realized; compared with the complete content of the associated information representing the user behavior, the data storage space is effectively reduced, and the storage and service resources are reduced.
Optionally, the splicing module 604 includes: the first splicing unit is used for splicing the character string representing the starting point and the character string representing the increment for the associated information of each user behavior in the associated information of at least two user behaviors to obtain records of the associated information of each user behavior; and the second splicing unit is used for splicing the records of the associated information of each user behavior to obtain the records of the associated information of the user behavior.
Optionally, the associated information of the user behavior includes at least one user behavior time; the calculation module 603 is specifically configured to calculate an increment of each user behavior time relative to the starting point, and generate at least one character string representing each increment; the splicing module 604 is specifically configured to sequentially splice the character string representing the starting point and the at least one character string, so as to obtain at least one record of the user behavior time.
Optionally, the calculating module 603 is specifically configured to, when generating at least one character string representing each increment: generating a character string representing the set time interval; calculating the number of set time intervals covered by each increment; and splicing the character string representing the set time interval and the number of the set time intervals covered by each increment to obtain the character string representing each increment.
Optionally, the associated information of the user behavior includes user behavior content; the generating module 602 is specifically configured to generate a character string representing a starting number of the behavior content of the user; the calculation module 603 is specifically configured to calculate an increment of the number of the content of the user behavior relative to the starting number, and obtain a character string representing the increment.
Optionally, the apparatus 600 further includes: the tag acquisition module is used for acquiring a user access tag to be recorded and generating a character string representing the user access tag; the label record generation module is used for splicing the character string representing the user access label and the access frequency of the user access label to obtain the record of the user access label; and the label splicing module is used for splicing the record of the user access label and the record of the associated information of the user behavior.
Optionally, the apparatus 600 further includes: the path acquisition module is used for acquiring a user access path to be recorded; the determining module is used for determining the length of the character string representing the user access path according to the access frequency of the user access path, and the length of the character string is shortened along with the increase of the access frequency; the path record generation module is used for generating a character string matched with the character string in length to obtain a record of the user access path; and the path splicing module is used for splicing the record of the user access path and the record of the associated information of the user behavior.
Optionally, the apparatus 600 further includes: and the separator adding module is used for adding separators in the records of the associated information of the user behaviors after splicing the character strings representing the starting points and the character strings representing the increment to obtain the records of the associated information of the user behaviors.
The user behavior recording device can execute the user behavior recording method provided by any embodiment of the application, and has the corresponding functional modules and beneficial effects of executing the user behavior recording method.
According to embodiments of the present application, an electronic device and a readable storage medium are also provided.
As shown in fig. 7, a block diagram of an electronic device implementing the user behavior recording method according to an embodiment of the present application is shown. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the application described and/or claimed herein.
As shown in fig. 7, the electronic device includes: one or more processors 701, memory 702, and interfaces for connecting the various components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions executing within the electronic device, including instructions stored in or on memory to display graphical information of the GUI on an external input/output device, such as a display device coupled to the interface. In other embodiments, multiple processors and/or multiple buses may be used, if desired, along with multiple memories and multiple memories. Also, multiple electronic devices may be connected, each providing a portion of the necessary operations (e.g., as a server array, a set of blade servers, or a multiprocessor system). One processor 701 is illustrated in fig. 7.
Memory 702 is a non-transitory computer-readable storage medium provided herein. The memory stores instructions executable by the at least one processor to cause the at least one processor to perform the user behavior recording method provided herein. The non-transitory computer readable storage medium of the present application stores computer instructions for causing a computer to execute the user behavior recording method provided by the present application.
The memory 702 is used as a non-transitory computer readable storage medium, and may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the user behavior recording method in the embodiment of the present application (e.g., including the acquisition module 601, the generation module 602, the calculation module 603, and the splicing module 604 shown in fig. 6). The processor 701 executes various functional applications of the server and data processing, i.e., a method of implementing the user behavior recording in the above-described method embodiment, by running non-transitory software programs, instructions, and modules stored in the memory 702.
Memory 702 may include a storage program area that may store an operating system, at least one application program required for functionality, and a storage data area; the storage data area may store data created by use of an electronic device implementing the user behavior recording method, and the like. In addition, the memory 702 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory 702 optionally includes memory remotely located relative to processor 701, which may be connected via a network to an electronic device performing the user behavior recording method. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device performing the user behavior recording method may further include: an input device 703 and an output device 704. The processor 701, the memory 702, the input device 703 and the output device 704 may be connected by a bus or otherwise, in fig. 7 by way of example.
The input device 703 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device performing the user behavior recording method, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, a joystick, one or more mouse buttons, a track ball, a joystick, etc. input devices. The output device 704 may include a display apparatus, auxiliary lighting devices (e.g., LEDs), and haptic feedback devices (e.g., vibration motors), among others. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device may be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASIC (application specific integrated circuit), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
These computing programs (also referred to as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented in a high-level procedural and/or object-oriented programming language, and/or in assembly/machine language. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), the internet, and blockchain networks.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present application may be performed in parallel, sequentially, or in a different order, provided that the desired results of the technical solutions disclosed in the present application can be achieved, and are not limited herein.
The above embodiments do not limit the scope of the application. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application are intended to be included within the scope of the present application.

Claims (16)

1. A user behavior recording method, comprising:
acquiring the associated information of the user behavior to be recorded;
generating a character string representing a starting point of the associated information of the user behavior;
calculating the increment of the associated information of the user behavior relative to the starting point, and generating a character string representing the increment;
splicing the character string representing the starting point and the character string representing the increment to obtain a record of the associated information of the user behavior;
wherein the method further comprises:
acquiring a user access path to be recorded;
determining a character string length representing the user access path according to the access frequency of the user access path, wherein the character string length is shortened along with the increase of the access frequency;
generating a character string matched with the character string length to obtain a record of the user access path;
And splicing the record of the user access path and the record of the associated information of the user behavior.
2. The method of claim 1, wherein the concatenating the string representing the starting point and the string representing the increment results in a record of the associated information of the user behavior, comprising:
for each user behavior in the associated information of at least two user behaviors, splicing the character string representing the starting point and the character string representing the increment to obtain a record of the associated information of each user behavior;
and splicing the records of the associated information of each user behavior to obtain the records of the associated information of the user behavior.
3. The method of claim 1, wherein the association information of the user behavior comprises at least one user behavior time;
the calculating the increment of the associated information of the user behavior relative to the starting point and generating a character string representing the increment comprises the following steps:
calculating an increment of each of the user behavior times relative to the starting point, and generating at least one character string representing each of the increments;
the step of splicing the character string representing the starting point and the character string representing the increment to obtain a record of the associated information of the user behavior, which comprises the following steps:
And sequentially splicing the character string representing the starting point and the at least one character string to obtain the record of the at least one user behavior time.
4. A method according to claim 3, wherein said generating at least one string representing each of said increments comprises:
generating a character string representing the set time interval;
calculating the number of the set time intervals of each incremental coverage;
and splicing the character string representing the set time interval and the number of the set time intervals covered by each increment to obtain the character string representing each increment.
5. The method of any of claims 1-4, wherein the associated information of the user behavior comprises user behavior content;
the generating a character string representing the starting point of the associated information of the user behavior comprises:
generating a character string representing the starting number of the user behavior content;
the calculating the increment of the associated information of the user behavior relative to the starting point and generating a character string representing the increment comprises the following steps:
and calculating the increment of the number of the user behavior content relative to the starting number, and obtaining a character string representing the increment.
6. The method of any one of claims 1-4, further comprising:
acquiring a user access tag to be recorded, and generating a character string representing the user access tag;
splicing the character string representing the user access tag with the access frequency of the user access tag to obtain a record of the user access tag;
and splicing the record of the user access tag and the record of the associated information of the user behavior.
7. The method according to any one of claims 1-4, further comprising, after said concatenating the character string representing the starting point and the character string representing the increment, obtaining a record of the associated information of the user behavior:
and adding separators in the record of the associated information of the user behavior.
8. A user behavior recording apparatus comprising:
the acquisition module is used for acquiring the associated information of the user behaviors needing to be recorded;
a generation module for generating a character string representing a starting point of the associated information of the user behavior;
the computing module is used for computing the increment of the associated information of the user behavior relative to the starting point and generating a character string representing the increment;
The splicing module is used for splicing the character string representing the starting point and the character string representing the increment to obtain a record of the associated information of the user behavior;
wherein the apparatus further comprises:
the path acquisition module is used for acquiring a user access path to be recorded;
a determining module, configured to determine a string length representing the user access path according to an access frequency of the user access path, where the string length shortens with an increase in the access frequency;
the path record generation module is used for generating a character string matched with the character string in length to obtain a record of the user access path;
and the path splicing module is used for splicing the record of the user access path and the record of the associated information of the user behavior.
9. The apparatus of claim 8, wherein the stitching module comprises:
the first splicing unit is used for splicing the character string representing the starting point and the character string representing the increment for the associated information of each user behavior in the associated information of at least two user behaviors to obtain records of the associated information of each user behavior;
and the second splicing unit is used for splicing the records of the associated information of each user behavior to obtain the records of the associated information of the user behavior.
10. The apparatus of claim 8, wherein the association information of the user behavior comprises at least one user behavior time;
the computing module is specifically configured to compute an increment of each user behavior time relative to the starting point, and generate at least one character string representing each increment;
the splicing module is specifically configured to splice the character string representing the starting point and the at least one character string in sequence, so as to obtain a record of the at least one user behavior time.
11. The apparatus of claim 10, wherein the computing module, when generating at least one string representing each of the increments, is specifically configured to:
generating a character string representing the set time interval;
calculating the number of the set time intervals of each incremental coverage;
and splicing the character string representing the set time interval and the number of the set time intervals covered by each increment to obtain the character string representing each increment.
12. The apparatus of any of claims 8-11, wherein the associated information of the user behavior comprises user behavior content;
the generation module is specifically used for generating a character string representing the starting number of the behavior content of the user;
And the calculation module is specifically used for calculating the increment of the number of the user behavior content relative to the starting number to obtain a character string representing the increment.
13. The apparatus of any of claims 8-11, further comprising:
the tag acquisition module is used for acquiring a user access tag to be recorded and generating a character string representing the user access tag;
the label record generation module is used for splicing the character string representing the user access label and the access frequency of the user access label to obtain the record of the user access label;
and the label splicing module is used for splicing the record of the user access label and the record of the associated information of the user behavior.
14. The apparatus of any of claims 8-11, further comprising:
and the separator adding module is used for adding separators in the records of the related information of the user behaviors after splicing the character strings representing the starting points and the character strings representing the increment to obtain the records of the related information of the user behaviors.
15. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
The memory stores instructions executable by the at least one processor to enable the at least one processor to perform a user behavior recording method of any one of claims 1-7.
16. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform a user behavior recording method of any one of claims 1-7.
CN202010820954.2A 2020-08-14 2020-08-14 User behavior recording method, device, equipment and readable storage medium Active CN112000886B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010820954.2A CN112000886B (en) 2020-08-14 2020-08-14 User behavior recording method, device, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010820954.2A CN112000886B (en) 2020-08-14 2020-08-14 User behavior recording method, device, equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN112000886A CN112000886A (en) 2020-11-27
CN112000886B true CN112000886B (en) 2024-02-02

Family

ID=73472502

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010820954.2A Active CN112000886B (en) 2020-08-14 2020-08-14 User behavior recording method, device, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN112000886B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011001207A1 (en) * 2009-06-29 2011-01-06 Nds Limited Receiving and recording of content and of timing information
CN108763537A (en) * 2018-05-31 2018-11-06 河南科技大学 A kind of increment mechanical reptile method based on Time Perception
CN110633277A (en) * 2019-08-13 2019-12-31 平安科技(深圳)有限公司 Time sequence data storage method and device, computer equipment and storage medium
CN111291424A (en) * 2020-02-19 2020-06-16 望海康信(北京)科技股份公司 Identification number generation method and device, computer equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9805082B2 (en) * 2008-09-10 2017-10-31 Sap Se Recording information about an item

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011001207A1 (en) * 2009-06-29 2011-01-06 Nds Limited Receiving and recording of content and of timing information
CN108763537A (en) * 2018-05-31 2018-11-06 河南科技大学 A kind of increment mechanical reptile method based on Time Perception
CN110633277A (en) * 2019-08-13 2019-12-31 平安科技(深圳)有限公司 Time sequence data storage method and device, computer equipment and storage medium
CN111291424A (en) * 2020-02-19 2020-06-16 望海康信(北京)科技股份公司 Identification number generation method and device, computer equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
具有访问时间完整性的Web日志方法;张川, 肖金升, 周振, 胡运发;计算机应用与软件(02);全文 *
基于可变时间窗口的增量数据抽取模型;刘杰;王桂玲;左小将;;计算机科学(11);全文 *

Also Published As

Publication number Publication date
CN112000886A (en) 2020-11-27

Similar Documents

Publication Publication Date Title
US10013329B2 (en) Dynamic tracing using ranking and rating
CN105447139B (en) Data acquisition statistical method and system, terminal and service equipment thereof
CN107729475B (en) Webpage element acquisition method, device, terminal and computer-readable storage medium
CN107562620A (en) One kind buries an automatic setting method and device
CN111552633A (en) Interface abnormal call testing method and device, computer equipment and storage medium
CN111813623B (en) Page monitoring method and device, electronic equipment and storage medium
JP7132999B2 (en) METHOD AND APPARATUS FOR VERIFYING OPERATIONAL STATE OF APPLICATION
CN111309547A (en) Webpage information acquisition method and device and electronic equipment
CN113765873B (en) Method and device for detecting abnormal access traffic
CN110908880B (en) Buried point code injection method, event reporting method and related equipment thereof
CN111935506B (en) Method and apparatus for determining repeating video frames
CN111796997A (en) Log information processing method and device and electronic equipment
CN109062762A (en) Formatted log method for pushing and device
CN111241396B (en) Information pushing method and device, electronic equipment and storage medium
CN111460296B (en) Method and apparatus for updating event sets
CN111581518A (en) Information pushing method and device
CN103399957A (en) Searching method, system and engine as well as client
CN112003834A (en) Abnormal behavior detection method and device
CN113051095B (en) Method and device for reproducing operation errors of client, electronic equipment and storage medium
CN112667795B (en) Dialogue tree construction method and device, dialogue tree operation method, device and system
CN112000886B (en) User behavior recording method, device, equipment and readable storage medium
CN114518984A (en) Reporting method and device of embedded point information, storage medium and terminal equipment
CN112383825A (en) Video recommendation method and device, electronic equipment and medium
CN112307384A (en) Page snapshot display method and device, electronic equipment and storage medium
CN111985760A (en) Data content evaluation method and device, electronic equipment and storage 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