CN113312553B - User tag determining method and device - Google Patents

User tag determining method and device Download PDF

Info

Publication number
CN113312553B
CN113312553B CN202110649366.1A CN202110649366A CN113312553B CN 113312553 B CN113312553 B CN 113312553B CN 202110649366 A CN202110649366 A CN 202110649366A CN 113312553 B CN113312553 B CN 113312553B
Authority
CN
China
Prior art keywords
user
tag
time
determining
time interval
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
CN202110649366.1A
Other languages
Chinese (zh)
Other versions
CN113312553A (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 Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information 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 Jingdong Century Trading Co Ltd, Beijing Wodong Tianjun Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN202110649366.1A priority Critical patent/CN113312553B/en
Publication of CN113312553A publication Critical patent/CN113312553A/en
Priority to PCT/CN2022/087295 priority patent/WO2022257604A1/en
Application granted granted Critical
Publication of CN113312553B publication Critical patent/CN113312553B/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)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a method and a device for determining a user tag, and relates to the technical field of computers. One embodiment of the method comprises the following steps: responding to an acquisition request for the user tag, and determining the type of the user tag according to a time interval indicated in the acquisition request; if the user tag type is the offline tag type, determining a first user tag from a plurality of offline tags in a database according to the user number and the time interval, and sending the first user tag to a requester; if the user tag type is the real-time tag type, determining real-time user behavior data corresponding to the user number in the time interval, determining a second user tag according to the real-time user behavior data, and sending the second user tag to the requester. According to the method and the device for determining the user label, the computing efficiency of the user label is improved, computing resources are saved, the response time of determining the user label is shortened, the application scene is expanded, and the high-concurrency query request can be met.

Description

User tag determining method and device
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for determining a user tag.
Background
With the continuous development of the internet industry, the number of users of the internet platform is also increased sharply, and the requirements of the platform for personalized operation of the users are also more and more prominent. Thus, there is a need to determine user tags for the user's behavior over a period of time in order to make corresponding personalized recommendations.
The prior art has at least the following problems:
In the existing method for determining the user tag through real-time calculation, the technical problems of lower calculation efficiency and more calculation resource waste exist; in the method for determining the user tag by responding to the query, the technical problems of long response time, less applicable scenes and difficulty in meeting the high-concurrency query demand exist.
Disclosure of Invention
In view of the above, the embodiment of the invention provides a method and a device for determining a user tag, which can provide different query modes for different types of user tag query requests, effectively improve the calculation efficiency of the user tag, save calculation resources, shorten the response time for determining the user tag, expand the application scene and can meet high-concurrency query requests.
To achieve the above object, according to a first aspect of an embodiment of the present invention, there is provided a method for determining a user tag, including:
Responding to an acquisition request for the user tag, and determining the type of the user tag according to a time interval indicated in the acquisition request;
if the user tag type is the offline tag type, determining a first user tag from a plurality of offline tags in a database according to the user number and the time interval, and sending the first user tag to a requester;
if the user tag type is the real-time tag type, determining real-time user behavior data corresponding to the user number in the time interval, determining a second user tag according to the real-time user behavior data, and sending the second user tag to the requester.
Further, the step of generating the offline label includes:
acquiring user behavior data corresponding to a plurality of user numbers, and determining offline data according to a time interval to which the user behavior data belong;
and calculating a tag value according to user behavior data corresponding to different user numbers in a first time interval determined from the offline data, and generating offline tags corresponding to different user numbers according to the tag value and tag conditions.
Further, the method further comprises the following steps:
Determining a time interval between the moment of generating the offline label and the current moment;
And if the time interval is greater than or equal to the time length threshold, acquiring newly-increased user behavior data in the time interval, and updating the offline label according to the newly-increased user behavior data.
Further, the method further comprises the following steps:
determining real-time user behavior data according to a time interval to which the user behavior data belong;
And cleaning the real-time user behavior data according to the label value corresponding to the off-line label, and placing the cleaned real-time user behavior data in a database.
Further, the method further comprises the following steps:
And recording the corresponding relation between the user numbers and the real-time user behavior data in a query engine.
Further, the method further comprises the following steps: if the user tag type includes an offline tag type and a real-time tag type,
Determining a first user tag corresponding to the user number from a database according to a time interval corresponding to the offline tag type, and judging whether the first user tag meets a tag condition indicated in the acquisition request or not;
If yes, the first user tag is sent to a requester;
If not, determining real-time user behavior data corresponding to the user number in a time interval corresponding to the real-time tag type and first offline data corresponding to the first user tag, determining a target user tag according to the real-time user behavior data and the first offline data, and sending the target user tag to a requester.
Further, the method further comprises the following steps: if the first user tag does not meet the tag condition indicated in the acquisition request,
And determining real-time user behavior data corresponding to the user numbers in a time interval corresponding to the real-time tag types, updating the first user tag according to the real-time user behavior data, and sending the updated first user tag to the requester.
According to a second aspect of an embodiment of the present invention, there is provided a user tag determining apparatus, including:
The tag type determining module is used for responding to an acquisition request aiming at the user tag and determining the type of the user tag according to a time interval indicated in the acquisition request;
The tag determining module is used for determining a first user tag from a plurality of offline tags in the database according to the user number and the time interval if the user tag type is the offline tag type, and sending the first user tag to the requester; if the user tag type is the real-time tag type, the method is used for determining real-time user behavior data corresponding to the user number in the time interval, determining a second user tag according to the real-time user behavior data, and sending the second user tag to the requester.
According to a third aspect of an embodiment of the present invention, there is provided an electronic apparatus including:
One or more processors;
Storage means for storing one or more programs,
The one or more programs, when executed by the one or more processors, cause the one or more processors to implement a method of determining a user tag as described above.
According to a fourth aspect of embodiments of the present invention, there is provided a computer readable medium having stored thereon a computer program which when executed by a processor implements a method of determining a user tag as any one of the above.
One embodiment of the above invention has the following advantages or benefits: because the user tag type is determined according to the time interval indicated in the acquisition request by responding to the acquisition request for the user tag; if the user tag type is the offline tag type, determining a first user tag from a plurality of offline tags in a database according to the user number and the time interval, and sending the first user tag to a requester; if the user tag type is a real-time tag type, determining real-time user behavior data corresponding to the user number in a time interval, determining a second user tag according to the real-time user behavior data, and sending the second user tag to a requester. The method solves the technical problems that the user tag is low in calculation efficiency and high in calculation resource waste in the prior method through a real-time calculation mode, and the user tag is long in response time and low in applicable scene through a response query mode, and is difficult to meet the high-concurrency query requirement, so that the method achieves the technical effects of improving the calculation efficiency of the user tag, saving the calculation resource, shortening the response time of determining the user tag, expanding the applicable scene and meeting the high-concurrency query request.
Further effects of the above-described non-conventional alternatives are described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
Fig. 1 is a schematic diagram of main flow of a method for determining a user tag according to a first embodiment of the present invention;
Fig. 2 is a schematic diagram of a main flow of a method for determining a user tag according to a second embodiment of the present invention;
fig. 3 is a schematic diagram of main modules of a user tag determination apparatus provided according to an embodiment of the present invention;
FIG. 4 is an exemplary system architecture diagram in which embodiments of the present invention may be applied;
fig. 5 is a schematic diagram of a computer system suitable for use in implementing an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention will now be described with reference to the accompanying drawings, in which various details of the embodiments of the present invention are included to facilitate understanding, and are to be considered merely exemplary. Accordingly, those 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 invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a schematic diagram of main flow of a method for determining a user tag according to a first embodiment of the present invention; as shown in fig. 1, the method for determining a user tag according to the embodiment of the present invention mainly includes:
Step S101, in response to the acquisition request for the user tag, determining the user tag type according to the time interval indicated in the acquisition request.
Specifically, according to the embodiment of the present invention, user behavior data is divided into offline data and real-time data according to a time interval (e.g., data generated on the same day is real-time data, data generated before the same day is offline data; it should be noted that the division of the time interval is only an example), and offline labels are obtained by calculating offline data; real-time tags need to be determined using real-time data calculations. Through the arrangement, the user tag type is determined according to the time interval indicated in the acquisition request, and then different modes are adopted for determining different types of user tags and the user tags are sent to the requesting party.
Step S102, if the user tag type is the offline tag type, determining a first user tag from a plurality of offline tags in the database according to the user number and the time interval, and sending the first user tag to the requester.
According to the embodiment of the invention, if the acquisition request indicates the offline label type, the corresponding label is determined from the database only according to the user number corresponding to the acquisition request, and by the arrangement, the response time is obviously shortened, the application scene is expanded, and the method and the device can be suitable for meeting the high concurrent query requirement.
Specifically, according to an embodiment of the present invention, the step of generating the offline label includes:
acquiring user behavior data corresponding to a plurality of user numbers, and determining offline data according to a time interval to which the user behavior data belong;
and calculating a tag value according to user behavior data corresponding to different user numbers in a first time interval determined from the offline data, and generating offline tags corresponding to different user numbers according to the tag value and tag conditions.
Through the arrangement, the offline label is directly generated aiming at the offline data, so that the response time is shortened later, and the high-concurrency query requirement is met. According to a specific implementation manner of the embodiment of the invention, the offline labels can be calculated in advance according to the service requirements for the offline data of different service types, so that the waste of calculation resources is avoided.
Further, according to an embodiment of the present invention, the method further includes:
Determining a time interval between the moment of generating the offline label and the current moment;
And if the time interval is greater than or equal to the time length threshold, acquiring newly-increased user behavior data in the time interval, and updating the offline label according to the newly-increased user behavior data.
Because the user tag indicates a corresponding time interval (for example, a high net value user indicates that the accumulated consumption limit exceeds 5000 yuan in the last half year, and the numerical value is only an example), the generated offline tag needs to be updated in time along with the time, and the real-time performance and the accuracy of the generated offline tag are improved through the setting.
Step S103, if the user tag type is the real-time tag type, determining real-time user behavior data corresponding to the user number in the time interval, determining a second user tag according to the real-time user behavior data, and sending the second user tag to the requester.
If the user tag type is represented as the real-time tag type, only a time interval corresponding to the real-time tag type is indicated in the current acquisition request. Therefore, the number of the real-time user behavior data corresponding to the part of the time interval is not huge, through the setting, after the real-time user behavior data is determined according to the user number and the corresponding time interval, real-time calculation can be performed, the user label (namely the second user label) is rapidly determined, the corresponding user label is sent to the requester, and the method and the device can be suitable for high-concurrency user label acquisition requirements while rapidly responding.
Specifically, according to an embodiment of the present invention, the method further includes:
determining real-time user behavior data according to a time interval to which the user behavior data belong;
And cleaning the real-time user behavior data according to the label value corresponding to the off-line label, and placing the cleaned real-time user behavior data in a database.
The user tag only indicates a time interval, and also constrains tag conditions, and whether the tag conditions of response are met can be judged according to the tag values of the offline tags (aiming at the tag corresponding to the net value user, if the tag values show that the accumulated consumption limit exceeds 5000 yuan in the last half year, real-time behavior data are not required to be acquired any more).
Further, according to an embodiment of the present invention, in the process of placing the real-time user behavior data after the cleaning process in the database, the method further includes:
And recording the corresponding relation between the user numbers and the real-time user behavior data in a query engine.
Through the arrangement, the corresponding relation between the user number and the real-time user behavior data is recorded in the query engine, so that when a user sends an acquisition request to the query engine, if the user tag type is a real-time tag, the corresponding user real-time behavior data can be quickly queried, and the response time for determining the user tag is further shortened.
Preferably, according to an embodiment of the present invention, further comprising: if the user tag type includes an offline tag type and a real-time tag type,
Determining a first user tag corresponding to the user number from a database according to a time interval corresponding to the offline tag type, and judging whether the first user tag meets a tag condition indicated in the acquisition request or not;
If yes, the first user tag is sent to a requester;
If not, determining real-time user behavior data corresponding to the user number in a time interval corresponding to the real-time tag type and first offline data corresponding to the first user tag, determining a target user tag according to the real-time user behavior data and the first offline data, and sending the target user tag to a requester.
If the time interval indicated in the acquisition request sent by the user not only covers the time interval corresponding to the real-time tag type, but also includes the time interval corresponding to the offline tag type, at this time, it is preferentially judged whether the tag value corresponding to the first user tag (the user tag calculated in advance) meets the tag condition indicated in the acquisition request; if yes, only the first user tag is required to be sent to the requesting party; if not, the real-time user behavior data is required to be acquired again, and the target user label is calculated by combining the data corresponding to the first user label, so that the accuracy of the user label is met, the response time is shortened as much as possible, the waste of calculation resources is avoided, and the user experience is improved.
Illustratively according to embodiments of the present invention, there is further provided: if the first user tag does not meet the tag condition indicated in the acquisition request,
And determining real-time user behavior data corresponding to the user numbers in a time interval corresponding to the real-time tag types, updating the first user tag according to the real-time user behavior data, and sending the updated first user tag to the requester.
Furthermore, according to the embodiment of the invention, the first user tag can be updated by directly utilizing the real-time user behavior data, so that the response time is further shortened, and the computing resources are saved.
According to the technical scheme of the embodiment of the invention, the user tag type is determined according to the time interval indicated in the acquisition request by responding to the acquisition request for the user tag; if the user tag type is the offline tag type, determining a first user tag from a plurality of offline tags in a database according to the user number and the time interval, and sending the first user tag to a requester; if the user tag type is the real-time tag type, determining real-time user behavior data corresponding to the user number in the time interval, determining a second user tag according to the real-time user behavior data, and sending the second user tag to the requester, so that the technical problems of low calculation efficiency, more calculation resource waste, long response time, less applicable scene and difficulty in meeting the high-concurrency query requirement in the existing method are solved, the calculation efficiency of the user tag is improved, the calculation resource is saved, the response time of determining the user tag is shortened, the applicable scene is expanded, and the technical effects of meeting the high-concurrency query requirement are achieved.
Fig. 2 is a schematic diagram of a main flow of a method for determining a user tag according to a second embodiment of the present invention; as shown in fig. 2, the method for determining a user tag according to the embodiment of the present invention mainly includes:
Step S201, user behavior data corresponding to a plurality of user numbers are obtained, and offline data are determined according to a time interval to which the user behavior data belong.
Through the arrangement, the offline label is directly generated aiming at the offline data, so that the response time is shortened later, and the high-concurrency query requirement is met.
Step S202, calculating a tag value according to user behavior data corresponding to different user numbers in a first time interval determined from the offline data, and generating offline tags corresponding to different user numbers according to the tag value and tag conditions.
According to a specific implementation manner of the embodiment of the invention, the offline labels can be calculated in advance according to the service requirements for the offline data of different service types, so that the waste of calculation resources is avoided.
Step S203, determining real-time user behavior data according to a time interval to which the user behavior data belongs; and cleaning the real-time user behavior data according to the label value corresponding to the off-line label, and placing the cleaned real-time user behavior data in a database.
The user tag only indicates a time interval, and also constrains tag conditions, and whether the tag conditions of response are met can be judged according to the tag values of the offline tags (aiming at the tag corresponding to the net value user, if the tag values show that the accumulated consumption limit exceeds 5000 yuan in the last half year, real-time behavior data are not required to be acquired any more).
Further, according to an embodiment of the present invention, in the process of placing the real-time user behavior data after the cleaning process in the database, the method further includes:
And recording the corresponding relation between the user numbers and the real-time user behavior data in a query engine.
Through the arrangement, the corresponding relation between the user number and the real-time user behavior data is recorded in the query engine, so that when a user sends an acquisition request to the query engine, if the user tag type is the real-time tag type, the corresponding user real-time behavior data can be quickly queried, and the response time for determining the user tag is further shortened.
In step S204, in response to the acquisition request for the user tag, the user tag type is determined according to the time interval indicated in the acquisition request.
Specifically, according to the embodiment of the present invention, user behavior data is divided into offline data and real-time data according to a time interval (e.g., data generated on the same day is real-time data, data generated before the same day is offline data; it should be noted that the division of the time interval is only an example), and offline labels are obtained by calculating offline data; real-time tags need to be determined using real-time data calculations. Through the arrangement, the user tag type is determined according to the time interval indicated in the acquisition request, and then different modes are adopted for determining different types of user tags and the user tags are sent to the requesting party.
Further, according to an embodiment of the present invention, the method further includes:
Determining a time interval between the moment of generating the offline label and the current moment;
And if the time interval is greater than or equal to the time length threshold, acquiring newly-increased user behavior data in the time interval, and updating the offline label according to the newly-increased user behavior data.
Because the user tag indicates a corresponding time interval (for example, a high net value user indicates that the accumulated consumption limit exceeds 5000 yuan in the last half year, and the numerical value is only an example), the generated offline tag needs to be updated in time along with the time, and the real-time performance and the accuracy of the generated offline tag are improved through the setting.
In step S205, if the user tag type is the offline tag type, the first user tag is determined from the database according to the user number and the time interval, and the first user tag is sent to the requester.
According to the embodiment of the invention, if the acquisition request indicates the offline label type, the corresponding label is determined from the plurality of offline labels in the database only according to the user number corresponding to the acquisition request, and by the arrangement, the response time is obviously shortened, the application scene is expanded, and the method and the device can be suitable for meeting the high-concurrency query requirement.
Step S206, if the user tag type comprises an offline tag type and a real-time tag type, determining a first user tag corresponding to the user number from a database according to a time interval corresponding to the offline tag type, and judging whether the first user tag meets the tag condition indicated in the acquisition request; if yes, the first user tag is sent to a requester; if not, determining real-time user behavior data corresponding to the user number in a time interval corresponding to the real-time tag type and first offline data corresponding to the first user tag, determining a target user tag according to the real-time user behavior data and the first offline data, and sending the target user tag to a requester.
If the time interval indicated in the acquisition request sent by the user not only covers the time interval corresponding to the real-time tag, but also includes the time interval corresponding to the offline tag, at this time, it is preferentially judged whether the tag value corresponding to the first user tag (the user tag calculated in advance) meets the tag condition indicated in the acquisition request; if yes, only the first user tag is required to be sent to the requesting party; if not, the real-time user behavior data is required to be acquired again, and the target user label is calculated by combining the data corresponding to the first user label, so that the accuracy of the user label is met, the response time is shortened as much as possible, the waste of calculation resources is avoided, and the user experience is improved.
Specifically, according to the embodiment of the present invention, if the type of the user tag determined according to the acquisition request is only a real-time tag type, only real-time user behavior data corresponding to the user number in the time interval is required to be determined, a second user tag is determined according to the real-time user behavior data, and the second user tag is sent to the requester.
Further, according to an embodiment of the present invention, if the first user tag does not satisfy the tag condition indicated in the acquisition request, the method further includes:
And determining real-time user behavior data corresponding to the user numbers in a time interval corresponding to the real-time tag types, updating the first user tag according to the real-time user behavior data, and sending the updated first user tag to the requester.
Furthermore, according to the embodiment of the invention, the first user tag can be updated by directly utilizing the real-time user behavior data, so that the response time is further shortened, and the computing resources are saved.
According to the technical scheme of the embodiment of the invention, the user tag type is determined according to the time interval indicated in the acquisition request by responding to the acquisition request for the user tag; if the user tag type is the offline tag type, determining a first user tag from a plurality of offline tags in a database according to the user number and the time interval, and sending the first user tag to a requester; if the user tag type is the real-time tag type, determining real-time user behavior data corresponding to the user number in the time interval, determining a second user tag according to the real-time user behavior data, and sending the second user tag to the requester, so that the technical problems of low calculation efficiency, more calculation resource waste, long response time, less applicable scene and difficulty in meeting the high-concurrency query requirement in the existing method are solved, the calculation efficiency of the user tag is improved, the calculation resource is saved, the response time of determining the user tag is shortened, the applicable scene is expanded, and the technical effects of meeting the high-concurrency query requirement are achieved.
Fig. 3 is a schematic diagram of main modules of a user tag determination apparatus provided according to an embodiment of the present invention; as shown in fig. 3, the apparatus 300 for determining a user tag according to the embodiment of the present invention mainly includes:
The tag type determining module 301 is configured to determine, in response to an acquisition request for a user tag, a user tag type according to a time interval indicated in the acquisition request.
Specifically, according to the embodiment of the present invention, user behavior data is divided into offline data and real-time data according to a time interval (e.g., data generated on the same day is real-time data, data generated before the same day is offline data; it should be noted that the division of the time interval is only an example), and offline labels are obtained by calculating offline data; real-time tags need to be determined using real-time data calculations. Through the arrangement, the user tag type is determined according to the time interval indicated in the acquisition request, and then different modes are adopted for determining different types of user tags and the user tags are sent to the requesting party.
The tag determining module 302 is configured to determine a first user tag from a plurality of offline tags in the database according to the user number and the time interval if the user tag type is an offline tag type, and send the first user tag to the requester; if the user tag type is the real-time tag type, the method is used for determining real-time user behavior data corresponding to the user number in the time interval, determining a second user tag according to the real-time user behavior data, and sending the second user tag to the requester.
According to the embodiment of the invention, if the acquisition request indicates the offline label type, the corresponding label is determined from the database only according to the user number corresponding to the acquisition request, and by the arrangement, the response time is obviously shortened, the application scene is expanded, and the method and the device can be suitable for meeting the high concurrent query requirement. If the user tag type is represented as the real-time tag type, only a time interval corresponding to the real-time tag type is indicated in the current acquisition request. Therefore, the number of the real-time user behavior data corresponding to the part of the time interval is not huge, through the setting, after the real-time user behavior data is determined according to the user number and the corresponding time interval, real-time calculation can be performed, the user label (namely the second user label) is rapidly determined, the corresponding user label is sent to the requester, and the method and the device can be suitable for high-concurrency user label acquisition requirements while rapidly responding.
According to the embodiment of the invention, if the acquisition request indicates the offline label type, the corresponding label is determined from the database only according to the user number corresponding to the acquisition request, and by the arrangement, the response time is obviously shortened, the application scene is expanded, and the method and the device can be suitable for meeting the high concurrent query requirement.
Specifically, according to an embodiment of the present invention, the above-mentioned user tag determining apparatus 300 further includes an offline tag generating module, configured to:
acquiring user behavior data corresponding to a plurality of user numbers, and determining offline data according to a time interval to which the user behavior data belong;
and calculating a tag value according to user behavior data corresponding to different user numbers in a first time interval determined from the offline data, and generating offline tags corresponding to different user numbers according to the tag value and tag conditions.
Through the arrangement, the offline label is directly generated aiming at the offline data, so that the response time is shortened later, and the high-concurrency query requirement is met. According to a specific implementation manner of the embodiment of the invention, the offline labels can be calculated in advance according to the service requirements for the offline data of different service types, so that the waste of calculation resources is avoided.
Further, according to an embodiment of the present invention, the offline label generating module is further configured to:
Determining a time interval between the moment of generating the offline label and the current moment;
And if the time interval is greater than or equal to the time length threshold, acquiring newly-increased user behavior data in the time interval, and updating the offline label according to the newly-increased user behavior data.
Because the user tag indicates a corresponding time interval (for example, a high net value user indicates that the accumulated consumption limit exceeds 5000 yuan in the last half year, and the numerical value is only an example), the generated offline tag needs to be updated in time along with the time, and the real-time performance and the accuracy of the generated offline tag are improved through the setting.
Specifically, according to an embodiment of the present invention, the tag determining module 302 further includes:
determining real-time user behavior data according to a time interval to which the user behavior data belong;
And cleaning the real-time user behavior data according to the label value corresponding to the off-line label, and placing the cleaned real-time user behavior data in a database.
The user tag only indicates a time interval, and also constrains tag conditions, and whether the tag conditions of response are met can be judged according to the tag values of the offline tags (aiming at the tag corresponding to the net value user, if the tag values show that the accumulated consumption limit exceeds 5000 yuan in the last half year, real-time behavior data are not required to be acquired any more).
Further, according to an embodiment of the present invention, the above-mentioned user tag determining apparatus 300 further includes a recording module, configured to:
And recording the corresponding relation between the user numbers and the real-time user behavior data in a query engine.
Through the arrangement, the corresponding relation between the user number and the real-time user behavior data is recorded in the query engine, so that when a user sends an acquisition request to the query engine, if the user tag type is a real-time tag, the corresponding user real-time behavior data can be quickly queried, and the response time for determining the user tag is further shortened.
Preferably, according to an embodiment of the present invention, the tag determination module 302 is further configured to: if the user tag type includes an offline tag type and a real-time tag type:
Determining a first user tag corresponding to the user number from a database according to a time interval corresponding to the offline tag type, and judging whether the first user tag meets a tag condition indicated in the acquisition request or not;
If yes, the first user tag is sent to a requester;
If not, determining real-time user behavior data corresponding to the user number in a time interval corresponding to the real-time tag type and first offline data corresponding to the first user tag, determining a target user tag according to the real-time user behavior data and the first offline data, and sending the target user tag to a requester.
If the time interval indicated in the acquisition request sent by the user not only covers the time interval corresponding to the real-time tag, but also includes the time interval corresponding to the offline tag, at this time, it is preferentially judged whether the tag value corresponding to the first user tag (the user tag calculated in advance) meets the tag condition indicated in the acquisition request; if yes, only the first user tag is required to be sent to the requesting party; if not, the real-time user behavior data is required to be acquired again, and the target user label is calculated by combining the data corresponding to the first user label, so that the accuracy of the user label is met, the response time is shortened as much as possible, the waste of calculation resources is avoided, and the user experience is improved.
Illustratively, according to an embodiment of the invention, the tag determination module 302 is further configured to: if the first user tag does not meet the tag condition indicated in the acquisition request:
And determining real-time user behavior data corresponding to the user numbers in a time interval corresponding to the real-time tag types, updating the first user tag according to the real-time user behavior data, and sending the updated first user tag to the requester.
Furthermore, according to the embodiment of the invention, the first user tag can be updated by directly utilizing the real-time user behavior data, so that the response time is further shortened, and the computing resources are saved.
According to the technical scheme of the embodiment of the invention, the user tag type is determined according to the time interval indicated in the acquisition request by responding to the acquisition request for the user tag; if the user tag type is the offline tag type, determining a first user tag from a plurality of offline tags in a database according to the user number and the time interval, and sending the first user tag to a requester; if the user tag type is the real-time tag type, determining real-time user behavior data corresponding to the user number in the time interval, determining a second user tag according to the real-time user behavior data, and sending the second user tag to the requester, so that the technical problems of low calculation efficiency, more calculation resource waste, long response time, less applicable scene and difficulty in meeting the high-concurrency query requirement in the existing method are solved, the calculation efficiency of the user tag is improved, the calculation resource is saved, the response time of determining the user tag is shortened, the applicable scene is expanded, and the technical effects of meeting the high-concurrency query requirement are achieved.
Fig. 4 shows an exemplary system architecture 400 to which the user tag determination method or the user tag determination apparatus of the embodiment of the present invention may be applied.
As shown in fig. 4, a system architecture 400 may include terminal devices 401, 402, 403, a network 404, and a server 405 (this architecture is merely an example, and the components contained in a particular architecture may be tailored to the application specific case). The network 404 is used as a medium to provide communication links between the terminal devices 401, 402, 403 and the server 405. The network 404 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
A user may interact with the server 405 via the network 404 using the terminal devices 401, 402, 403 to receive or send messages or the like. Various communication client applications, such as a data processing class application, a shopping class application, a web browser application, a search class application, an instant messaging tool, a mailbox client, social platform software, etc., may be installed on the terminal devices 401, 402, 403, as just examples.
The terminal devices 401, 402, 403 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 405 may be a server providing various services, such as a server (by way of example only) that utilizes terminal devices 401, 402, 403 (performs determination of user tags/performs data processing) for users. The server may perform analysis and other processing on the received data such as the acquisition request, and feed back the processing results (e.g., the first user tag, the second user tag—only an example) to the terminal device.
It should be noted that, the method for determining the user tag according to the embodiment of the present invention is generally executed by the server 405, and accordingly, the device for determining the user tag is generally disposed in the server 405.
It should be understood that the number of terminal devices, networks and servers in fig. 4 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 5, there is illustrated a schematic diagram of a computer system 500 suitable for use in implementing a terminal device or server in accordance with an embodiment of the present invention. The terminal device or server shown in fig. 5 is only an example, and should not impose any limitation on the functions and scope of use of the embodiments of the present invention.
As shown in fig. 5, the computer system 500 includes a Central Processing Unit (CPU) 501, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 502 or a program loaded from a storage section 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the system 500 are also stored. The CPU501, ROM 502, and RAM 503 are connected to each other through a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
The following components are connected to the I/O interface 505: an input section 506 including a keyboard, a mouse, and the like; an output portion 507 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker, and the like; a storage portion 508 including a hard disk and the like; and a communication section 509 including a network interface card such as a LAN card, a modem, or the like. The communication section 509 performs communication processing via a network such as the internet. The drive 510 is also connected to the I/O interface 505 as needed. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as needed so that a computer program read therefrom is mounted into the storage section 508 as needed.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 509, and/or installed from the removable media 511. The above-described functions defined in the system of the present invention are performed when the computer program is executed by a Central Processing Unit (CPU) 501.
The computer readable medium shown in the present invention may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules involved in the embodiments of the present invention may be implemented in software or in hardware. The described modules may also be provided in a processor, for example, as: a processor includes a tag type determination module and a tag determination module. The names of these modules do not constitute a limitation of the unit itself in some cases, for example, the tag type determining module may also be described as "a module for determining the type of the user tag from the time interval indicated in the acquisition request in response to the acquisition request for the user tag".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be present alone without being fitted into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to include: responding to an acquisition request for the user tag, and determining the type of the user tag according to a time interval indicated in the acquisition request; if the user tag type is the offline tag type, determining a first user tag from a plurality of offline tags in a database according to the user number and the time interval, and sending the first user tag to a requester; if the user tag type is the real-time tag type, determining real-time user behavior data corresponding to the user number in the time interval, determining a second user tag according to the real-time user behavior data, and sending the second user tag to the requester.
According to the technical scheme of the embodiment of the invention, the user tag type is determined according to the time interval indicated in the acquisition request by responding to the acquisition request for the user tag; if the user tag type is the offline tag type, determining a first user tag from a plurality of offline tags in a database according to the user number and the time interval, and sending the first user tag to a requester; if the user tag type is the real-time tag type, determining real-time user behavior data corresponding to the user number in the time interval, determining a second user tag according to the real-time user behavior data, and sending the second user tag to the requester, so that the technical problems of low calculation efficiency, more calculation resource waste, long response time, less applicable scene and difficulty in meeting the high-concurrency query requirement in the existing method are solved, the calculation efficiency of the user tag is improved, the calculation resource is saved, the response time of determining the user tag is shortened, the applicable scene is expanded, and the technical effects of meeting the high-concurrency query requirement are achieved.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives can occur depending upon design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (9)

1. A method for determining a user tag, comprising:
Determining a user tag type according to a time interval indicated in an acquisition request in response to the acquisition request for the user tag, wherein the time interval comprises a first time interval and a second time interval different from the first time interval, determining that the user tag type is an offline tag type when the time interval indicated in the acquisition request is the first time interval, and determining that the user tag type is a real-time tag type when the time interval indicated in the acquisition request is the second time interval;
If the user tag type is an offline tag type, determining a first user tag from a plurality of offline tags in a database according to a user number and the first time interval, and sending the first user tag to a requester;
If the user tag type is a real-time tag type, determining real-time user behavior data corresponding to the user number in the second time interval, determining a second user tag according to the real-time user behavior data, transmitting the second user tag to the requester,
The step of generating the offline label comprises the following steps:
acquiring user behavior data corresponding to a plurality of user numbers, and determining offline data according to a time interval to which the user behavior data belong;
and calculating a tag value according to user behavior data corresponding to different user numbers in the first time interval, which are determined from the offline data, and generating the offline tags corresponding to different user numbers according to the tag value and tag conditions.
2. The method of determining a user tag of claim 1, further comprising:
Determining a time interval between the moment of generating the offline label and the current moment;
And if the time interval is greater than or equal to a time length threshold, acquiring newly-increased user behavior data in the time interval, and updating the offline label according to the newly-increased user behavior data.
3. The method of determining a user tag of claim 1, further comprising:
Determining real-time user behavior data according to a second time interval to which the user behavior data belong;
And cleaning the real-time user behavior data according to the label value corresponding to the off-line label, and placing the cleaned real-time user behavior data in a database.
4. A method of determining a user tag according to claim 3, further comprising:
and recording the corresponding relation between the user numbers and the real-time user behavior data in a query engine.
5. The method of determining a user tag of claim 1, further comprising: if the user tag type comprises an offline tag type and a real-time tag type, determining a first user tag corresponding to the user number from a database according to a first time interval corresponding to the offline tag type, and judging whether the first user tag meets the tag condition indicated in the acquisition request or not;
if yes, the first user tag is sent to the requester;
if not, determining real-time user behavior data corresponding to the user number and first offline data corresponding to the first user tag in a second time interval corresponding to the real-time tag type, determining a target user tag according to the real-time user behavior data and the first offline data, and sending the target user tag to the requester.
6. The method of determining a user tag of claim 5, further comprising: if the first user tag does not satisfy the tag condition indicated in the acquisition request,
And determining real-time user behavior data corresponding to the user numbers in a second time interval corresponding to the real-time tag types, updating the first user tag according to the real-time user behavior data, and sending the updated first user tag to a requester.
7. A user tag determining apparatus, comprising:
the tag type determining module is used for determining a user tag type according to a time interval indicated in the acquisition request in response to the acquisition request for the user tag, wherein the time interval comprises a first time interval and a second time interval different from the first time interval, the user tag type is determined to be an offline tag type when the time interval indicated in the acquisition request is the first time interval, and the user tag type is determined to be a real-time tag type when the time interval indicated in the acquisition request is the second time interval;
the tag determining module is used for determining a first user tag from a plurality of offline tags in the database according to the user number and the first time interval and sending the first user tag to a requester if the user tag type is an offline tag type; if the user tag type is a real-time tag type, the method is used for determining real-time user behavior data corresponding to the user number in the second time interval, determining a second user tag according to the real-time user behavior data, transmitting the second user tag to the requester,
The step of generating the offline label comprises the following steps:
acquiring user behavior data corresponding to a plurality of user numbers, and determining offline data according to a time interval to which the user behavior data belong;
and calculating a tag value according to user behavior data corresponding to different user numbers in the first time interval, which are determined from the offline data, and generating the offline tags corresponding to different user numbers according to the tag value and tag conditions.
8. An electronic device, comprising: one or more processors;
Storage means for storing one or more programs,
When executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-6.
9. A computer readable medium having a computer program stored thereon, characterized in that,
The program, when executed by a processor, implements the method of any of claims 1-6.
CN202110649366.1A 2021-06-10 2021-06-10 User tag determining method and device Active CN113312553B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110649366.1A CN113312553B (en) 2021-06-10 2021-06-10 User tag determining method and device
PCT/CN2022/087295 WO2022257604A1 (en) 2021-06-10 2022-04-18 Method and apparatus for determining user tag

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110649366.1A CN113312553B (en) 2021-06-10 2021-06-10 User tag determining method and device

Publications (2)

Publication Number Publication Date
CN113312553A CN113312553A (en) 2021-08-27
CN113312553B true CN113312553B (en) 2024-06-18

Family

ID=77378111

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110649366.1A Active CN113312553B (en) 2021-06-10 2021-06-10 User tag determining method and device

Country Status (2)

Country Link
CN (1) CN113312553B (en)
WO (1) WO2022257604A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113312553B (en) * 2021-06-10 2024-06-18 北京沃东天骏信息技术有限公司 User tag determining method and device
CN116456496B (en) * 2023-06-15 2023-11-14 阿里巴巴(中国)有限公司 Resource scheduling method, storage medium and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104917733A (en) * 2014-03-13 2015-09-16 张永杰 Time interval attribute recognition method and system
CN110866040A (en) * 2018-08-27 2020-03-06 京东数字科技控股有限公司 User portrait generation method, device and system
CN111881221A (en) * 2020-07-07 2020-11-03 上海中通吉网络技术有限公司 Method, device and equipment for customer portrait in logistics service

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180189791A1 (en) * 2016-12-30 2018-07-05 Qatar University Qstp-B Methods and system for addressing locations with personalized and user-selected tags
CN111754268A (en) * 2020-06-29 2020-10-09 深圳市酷开软件技术有限公司 OTT big data-based user label generation method, management system and storage medium
CN112668969B (en) * 2020-12-25 2022-07-08 江苏满运物流信息有限公司 User tag processing method, system, electronic device and storage medium
CN113312553B (en) * 2021-06-10 2024-06-18 北京沃东天骏信息技术有限公司 User tag determining method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104917733A (en) * 2014-03-13 2015-09-16 张永杰 Time interval attribute recognition method and system
CN110866040A (en) * 2018-08-27 2020-03-06 京东数字科技控股有限公司 User portrait generation method, device and system
CN111881221A (en) * 2020-07-07 2020-11-03 上海中通吉网络技术有限公司 Method, device and equipment for customer portrait in logistics service

Also Published As

Publication number Publication date
CN113312553A (en) 2021-08-27
WO2022257604A1 (en) 2022-12-15

Similar Documents

Publication Publication Date Title
CN113312553B (en) User tag determining method and device
CN112948498A (en) Method and device for generating global identification of distributed system
US11228537B2 (en) Resource processing method and system, storage medium and electronic device
CN113760982B (en) Data processing method and device
CN113742389A (en) Service processing method and device
CN112685481B (en) Data processing method and device
CN113220705A (en) Slow query identification method and device
CN112688982B (en) User request processing method and device
CN114612212A (en) Business processing method, device and system based on risk control
CN113282455A (en) Monitoring processing method and device
CN110019671B (en) Method and system for processing real-time message
CN109213815B (en) Method, device, server terminal and readable medium for controlling execution times
CN113434754A (en) Method and device for determining recommended API (application program interface) service, electronic equipment and storage medium
CN112783914A (en) Statement optimization method and device
CN112749204A (en) Method and device for reading data
CN112711572A (en) Online capacity expansion method and device suitable for sub-warehouse and sub-meter
CN113362097B (en) User determination method and device
CN112784139B (en) Query method, device, electronic equipment and computer readable medium
CN110866002A (en) Method and device for processing sub-table data
CN117061497A (en) Data providing method and device
CN113778909B (en) Method and device for caching data
CN113538026B (en) Service amount calculation method and device
CN113760179A (en) Data processing method and device
CN117271596A (en) Message processing method and device
CN110019352B (en) Method and apparatus for storing data

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