CN113312553A - Method and device for determining user label - Google Patents

Method and device for determining user label Download PDF

Info

Publication number
CN113312553A
CN113312553A CN202110649366.1A CN202110649366A CN113312553A CN 113312553 A CN113312553 A CN 113312553A CN 202110649366 A CN202110649366 A CN 202110649366A CN 113312553 A CN113312553 A CN 113312553A
Authority
CN
China
Prior art keywords
user
tag
time
determining
real
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.)
Pending
Application number
CN202110649366.1A
Other languages
Chinese (zh)
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/CN113312553A/en
Publication of CN113312553A publication Critical patent/CN113312553A/en
Priority to PCT/CN2022/087295 priority patent/WO2022257604A1/en
Pending legal-status Critical Current

Links

Images

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 label, and relates to the technical field of computers. One embodiment of the method comprises: 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; if the user tag type is an 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 a requester; and 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. The embodiment improves the calculation efficiency of the user label, saves the calculation resource, shortens the response time for determining the user label, expands the applicable scenes and can meet the high-concurrency query request.

Description

Method and device for determining user label
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device 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 demands of the platform for personalized operation of the users are more and more prominent. Therefore, the user tags need to be determined according to the behaviors of the users in a period of time so as to facilitate corresponding personalized recommendation.
The prior art has at least the following problems:
the prior method for determining the user label through real-time calculation has the technical problems of low calculation efficiency and more calculation resource waste; the method for determining the user label by responding to the query has the technical problems of long response time, less applicable scenes and difficulty in meeting the high-concurrency query requirement.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for determining a user tag, which can provide different query modes for different types of user tag query requests, effectively improve the computation efficiency of the user tag, save computing resources, shorten the response time for determining the user tag, expand the applicable scenarios, and satisfy highly concurrent query requests.
In order to achieve the above object, according to a first aspect of the embodiments of the present invention, there is provided a method for determining a user tag, including:
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;
if the user tag type is an 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 a requester;
and 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 belongs;
and calculating a label value according to the user behavior data corresponding to different user numbers determined from the offline data in the first time interval, and generating offline labels corresponding to different user numbers according to the label value and the label condition.
Further, still include:
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 threshold, acquiring newly-added user behavior data in the time interval, and updating the offline label according to the newly-added user behavior data.
Further, still include:
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 tag values corresponding to the offline tags, and placing the cleaned real-time user behavior data in a database.
Further, still include:
and recording the corresponding relation between the user number and the real-time user behavior data in the query engine.
Further, still include: if the user tag types include an offline tag type and a real-time tag type,
determining a first user label corresponding to the user number from a database according to a time interval corresponding to the type of the offline label, and judging whether the first user label meets a label condition indicated in the acquisition request;
if so, sending the first user label to the requester;
if not, determining real-time user behavior data corresponding to the user number in the time interval corresponding to the real-time tag type and first off-line data corresponding to the first user tag, determining a target user tag according to the real-time user behavior data and the first off-line data, and sending the target user tag to the requester.
Further, still include: 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 number in a time interval corresponding to the real-time tag type, 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 the embodiments of the present invention, there is provided an apparatus for determining a user tag, 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 the 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 and sending the first user tag to the requester if the user tag type is the offline tag type; and 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 a third aspect of embodiments of the present invention, there is provided an electronic apparatus, including:
one or more processors;
a storage device for storing one or more programs,
when executed by 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 any one of the above-described user tag determination methods.
One embodiment of the above invention has the following advantages or benefits: the user tag type is determined according to the time interval indicated in the acquisition request by responding to the acquisition request aiming at the user tag; if the user tag type is an 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 a requester; if the user label type is the real-time label type, the real-time user behavior data corresponding to the user number in the time interval is determined, the second user label is determined according to the real-time user behavior data, the second user label is sent to the requester, the user label type is divided into an offline label type and a real-time label type through the time interval, and the corresponding user label can be rapidly determined and sent to the user according to the user label type corresponding to the user acquisition request. Therefore, the technical problems that the calculation efficiency is low and the calculation resource waste is high when the user label is determined in a real-time calculation mode and the technical problems that the response time is long, the applicable scenes are few and the high-concurrency query requirement is difficult to meet when the user label is determined in a response query mode in the existing method are solved, and the technical effects of improving the calculation efficiency of the user label, saving the calculation resource, shortening the response time for determining the user label, expanding the applicable scenes and meeting the high-concurrency query request are achieved.
Further effects of the above-mentioned non-conventional alternatives will be 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 a main flow of a user tag determination method provided according to a first embodiment of the present invention;
fig. 2 is a schematic diagram of a main flow of a user tag determination method 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 employed;
fig. 5 is a schematic block diagram of a computer system suitable for use in implementing a terminal device or server of an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as 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 a main flow of a user tag determination method provided according to a first embodiment of the present invention; as shown in fig. 1, the method for determining a user tag provided by the embodiment of the present invention mainly includes:
step S101, in response to an acquisition request for a user tag, determining a user tag type according to a time interval indicated in the acquisition request.
Specifically, according to the embodiment of the present invention, the user behavior data is divided into offline data and real-time data according to the time interval (for example, the data generated on the current day is the real-time data, and the data generated before the current day is the offline data); real-time data calculations are needed to determine for real-time tags. Through the setting, 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 sending the user tags to the requester.
Step S102, if the user label type is the off-line label type, determining a first user label from a plurality of off-line labels in the database according to the user number and the time interval, and sending the first user label to a requester.
According to the embodiment of the invention, if the acquisition request indicates the type of the off-line label, the corresponding label is determined from the database only according to the user number corresponding to the acquisition request, and through the setting, the response time is obviously shortened, the applicable scene is expanded, and the high-concurrency query requirement can be met.
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 belongs;
and calculating a label value according to the user behavior data corresponding to different user numbers determined from the offline data in the first time interval, and generating offline labels corresponding to different user numbers according to the label value and the label condition.
Through the arrangement, the offline label is directly generated aiming at the offline data, so that the subsequent shortening of the response time is facilitated, and the high-concurrency query requirement is met. According to a specific implementation manner of the embodiment of the present invention, the offline label can be calculated in advance for the offline data of different service types according to the service requirement, so as to avoid the waste of computing resources.
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 threshold, acquiring newly-added user behavior data in the time interval, and updating the offline label according to the newly-added user behavior data.
Because the corresponding time interval is indicated in the user tag (for example, a high-net-value user indicates that the cumulative consumption amount 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 lapse of time.
Step S103, if the user label type is the real-time label type, determining real-time user behavior data corresponding to the user number in the time interval, determining a second user label according to the real-time user behavior data, and sending the second user label to the requester.
If the user tag type is represented as a real-time tag type, only the time interval corresponding to the real-time tag type is indicated in the current acquisition request. Therefore, the quantity of the real-time user behavior data corresponding to the partial time interval is not huge, and by means of the setting, after the real-time user behavior data are determined according to the user number and the corresponding time interval, real-time calculation can be conducted, the user label (namely, the second user label) is determined quickly, the corresponding user label is sent to the requester, and the method and the device can be suitable for the high-concurrency user label acquisition requirement while fast response is achieved.
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 belongs;
and cleaning the real-time user behavior data according to the tag values corresponding to the offline tags, and placing the cleaned real-time user behavior data in a database.
The user label only indicates a time interval, label conditions are also restricted, whether the label conditions of response are met or not can be judged according to the label value of the offline label, (for the label corresponding to the net value user, if the label value shows that the accumulated consumption amount in the last half year exceeds 5000 yuan, real-time behavior data do not need to be acquired again).
Further, according to the 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 number and the real-time user behavior data in the query engine.
Through the setting, the corresponding relation between the user number and the real-time user behavior data is recorded in the query engine, so that when the user sends an acquisition request to the query engine, if the type of the user tag is the real-time tag, the corresponding user real-time behavior data can be rapidly queried, and the response time for determining the user tag is further shortened.
Preferably, according to the embodiment of the present invention, the method further includes: if the user tag types include an offline tag type and a real-time tag type,
determining a first user label corresponding to the user number from a database according to a time interval corresponding to the type of the offline label, and judging whether the first user label meets a label condition indicated in the acquisition request;
if so, sending the first user label to the requester;
if not, determining real-time user behavior data corresponding to the user number in the time interval corresponding to the real-time tag type and first off-line data corresponding to the first user tag, determining a target user tag according to the real-time user behavior data and the first off-line data, and sending the target user tag to the 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 comprises the time interval corresponding to the offline tag type, at this time, 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 is preferentially judged; if yes, only the first user label is sent to the requesting party; if not, the real-time user behavior data needs 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 the embodiment of the invention, the method further comprises the following steps: 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 number in a time interval corresponding to the real-time tag type, 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 label can be directly updated by using 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 aiming at the user tag; if the user tag type is an 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 a requester; if the user label type is the real-time label type, the real-time user behavior data corresponding to the user number in the time interval is determined, the second user label is determined according to the real-time user behavior data, and the second user label is sent to the requester, so the technical problems that the existing method is low in calculation efficiency, high in calculation resource waste, long in response time, few in applicable scene and difficult to meet the high-concurrency query requirement are solved, the calculation efficiency of the user label is improved, the calculation resource is saved, the response time for determining the user label is shortened, the applicable scene is expanded, and the technical effect of meeting the high-concurrency query requirement is achieved.
Fig. 2 is a schematic diagram of a main flow of a user tag determination method 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, obtaining 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 belongs.
Through the arrangement, the offline label is directly generated aiming at the offline data, so that the subsequent shortening of the response time is facilitated, and the high-concurrency query requirement is met.
Step S202, calculating a label value according to the user behavior data corresponding to different user numbers determined from the offline data in the first time interval, and generating offline labels corresponding to different user numbers according to the label value and the label condition.
According to a specific implementation manner of the embodiment of the present invention, the offline label can be calculated in advance for the offline data of different service types according to the service requirement, so as to avoid the waste of computing resources.
Step S203, determining real-time user behavior data according to the time interval to which the user behavior data belongs; and cleaning the real-time user behavior data according to the tag values corresponding to the offline tags, and placing the cleaned real-time user behavior data in a database.
The user label only indicates a time interval, label conditions are also restricted, whether the label conditions of response are met or not can be judged according to the label value of the offline label, (for the label corresponding to the net value user, if the label value shows that the accumulated consumption amount in the last half year exceeds 5000 yuan, real-time behavior data do not need to be acquired again).
Further, according to the 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 number and the real-time user behavior data in the query engine.
Through the setting, the corresponding relation between the user number and the real-time user behavior data is recorded in the query engine, so that when the 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 rapidly queried, and the response time for determining the user tag is further shortened.
Step S204, responding to the acquisition request aiming at the user tag, and determining the type of the user tag according to the time interval indicated in the acquisition request.
Specifically, according to the embodiment of the present invention, the user behavior data is divided into offline data and real-time data according to the time interval (for example, the data generated on the current day is the real-time data, and the data generated before the current day is the offline data); real-time data calculations are needed to determine for real-time tags. Through the setting, 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 sending the user tags to the requester.
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 threshold, acquiring newly-added user behavior data in the time interval, and updating the offline label according to the newly-added user behavior data.
Because the corresponding time interval is indicated in the user tag (for example, a high-net-value user indicates that the cumulative consumption amount 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 lapse of time.
Step S205, if the user tag type is the offline tag type, determining a first user tag from 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 type of the offline label, only the corresponding label needs to be determined from the multiple offline labels in the database according to the user number corresponding to the acquisition request, so that the response time is obviously shortened, the applicable scene is expanded, and the high-concurrency query requirement can be met.
Step S206, if the user label type comprises an offline label type and a real-time label type, determining a first user label corresponding to the user number from a database according to a time interval corresponding to the offline label type, and judging whether the first user label meets the label condition indicated in the acquisition request; if so, sending the first user label to the requester; if not, determining real-time user behavior data corresponding to the user number in the time interval corresponding to the real-time tag type and first off-line data corresponding to the first user tag, determining a target user tag according to the real-time user behavior data and the first off-line data, and sending the target user tag to the 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, 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 is preferentially judged; if yes, only the first user label is sent to the requesting party; if not, the real-time user behavior data needs 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 user tag type determined according to the acquisition request is only the real-time tag type, only the real-time user behavior data corresponding to the user number in the time interval needs to be determined, the 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 the 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 number in a time interval corresponding to the real-time tag type, 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 label can be directly updated by using 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 aiming at the user tag; if the user tag type is an 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 a requester; if the user label type is the real-time label type, the real-time user behavior data corresponding to the user number in the time interval is determined, the second user label is determined according to the real-time user behavior data, and the second user label is sent to the requester, so the technical problems that the existing method is low in calculation efficiency, high in calculation resource waste, long in response time, few in applicable scene and difficult to meet the high-concurrency query requirement are solved, the calculation efficiency of the user label is improved, the calculation resource is saved, the response time for determining the user label is shortened, the applicable scene is expanded, and the technical effect of meeting the high-concurrency query requirement is 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 an embodiment of the present invention mainly includes:
a tag type determining module 301, configured to, in response to an acquisition request for a user tag, determine a user tag type according to a time interval indicated in the acquisition request.
Specifically, according to the embodiment of the present invention, the user behavior data is divided into offline data and real-time data according to the time interval (for example, the data generated on the current day is the real-time data, and the data generated before the current day is the offline data); real-time data calculations are needed to determine for real-time tags. Through the setting, 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 sending the user tags to the requester.
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 and send the first user tag to the requester if the user tag type is the offline tag type; and 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 embodiment of the invention, if the acquisition request indicates the type of the off-line label, the corresponding label is determined from the database only according to the user number corresponding to the acquisition request, and through the setting, the response time is obviously shortened, the applicable scene is expanded, and the high-concurrency query requirement can be met. If the user tag type is represented as a real-time tag type, only the time interval corresponding to the real-time tag type is indicated in the current acquisition request. Therefore, the quantity of the real-time user behavior data corresponding to the partial time interval is not huge, and by means of the setting, after the real-time user behavior data are determined according to the user number and the corresponding time interval, real-time calculation can be conducted, the user label (namely, the second user label) is determined quickly, the corresponding user label is sent to the requester, and the method and the device can be suitable for the high-concurrency user label acquisition requirement while fast response is achieved.
According to the embodiment of the invention, if the acquisition request indicates the type of the off-line label, the corresponding label is determined from the database only according to the user number corresponding to the acquisition request, and through the setting, the response time is obviously shortened, the applicable scene is expanded, and the high-concurrency query requirement can be met.
Specifically, according to the embodiment of the present invention, the apparatus 300 for determining a user tag further includes an offline tag generation 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 belongs;
and calculating a label value according to the user behavior data corresponding to different user numbers determined from the offline data in the first time interval, and generating offline labels corresponding to different user numbers according to the label value and the label condition.
Through the arrangement, the offline label is directly generated aiming at the offline data, so that the subsequent shortening of the response time is facilitated, and the high-concurrency query requirement is met. According to a specific implementation manner of the embodiment of the present invention, the offline label can be calculated in advance for the offline data of different service types according to the service requirement, so as to avoid the waste of computing resources.
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 threshold, acquiring newly-added user behavior data in the time interval, and updating the offline label according to the newly-added user behavior data.
Because the corresponding time interval is indicated in the user tag (for example, a high-net-value user indicates that the cumulative consumption amount 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 lapse of time.
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 belongs;
and cleaning the real-time user behavior data according to the tag values corresponding to the offline tags, and placing the cleaned real-time user behavior data in a database.
The user label only indicates a time interval, label conditions are also restricted, whether the label conditions of response are met or not can be judged according to the label value of the offline label, (for the label corresponding to the net value user, if the label value shows that the accumulated consumption amount in the last half year exceeds 5000 yuan, real-time behavior data do not need to be acquired again).
Further, according to the embodiment of the present invention, the apparatus 300 for determining a user tag further includes a recording module, configured to:
and recording the corresponding relation between the user number and the real-time user behavior data in the query engine.
Through the setting, the corresponding relation between the user number and the real-time user behavior data is recorded in the query engine, so that when the user sends an acquisition request to the query engine, if the type of the user tag is the real-time tag, the corresponding user real-time behavior data can be rapidly queried, and the response time for determining the user tag is further shortened.
Preferably, according to the embodiment of the present invention, the tag determining module 302 is further configured to: if the user tag type comprises an offline tag type and a real-time tag type:
determining a first user label corresponding to the user number from a database according to a time interval corresponding to the type of the offline label, and judging whether the first user label meets a label condition indicated in the acquisition request;
if so, sending the first user label to the requester;
if not, determining real-time user behavior data corresponding to the user number in the time interval corresponding to the real-time tag type and first off-line data corresponding to the first user tag, determining a target user tag according to the real-time user behavior data and the first off-line data, and sending the target user tag to the 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, 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 is preferentially judged; if yes, only the first user label is sent to the requesting party; if not, the real-time user behavior data needs 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, the tag determination module 302 is further configured to: 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 number in a time interval corresponding to the real-time tag type, 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 label can be directly updated by using 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 aiming at the user tag; if the user tag type is an 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 a requester; if the user label type is the real-time label type, the real-time user behavior data corresponding to the user number in the time interval is determined, the second user label is determined according to the real-time user behavior data, and the second user label is sent to the requester, so the technical problems that the existing method is low in calculation efficiency, high in calculation resource waste, long in response time, few in applicable scene and difficult to meet the high-concurrency query requirement are solved, the calculation efficiency of the user label is improved, the calculation resource is saved, the response time for determining the user label is shortened, the applicable scene is expanded, and the technical effect of meeting the high-concurrency query requirement is 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 can be applied.
As shown in fig. 4, the 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 included in a particular architecture may be adapted according to application specific circumstances). The network 404 serves as a medium for providing communication links between the terminal devices 401, 402, 403 and the server 405. Network 404 may include various types of connections, such as wire, wireless communication links, or fiber optic cables, to name a few.
A user may use terminal devices 401, 402, 403 to interact with a server 405 over a network 404 to receive or send messages or the like. The terminal devices 401, 402, 403 may have installed thereon various communication client applications, such as a data processing type application, a shopping type application, a web browser application, a search type application, an instant messaging tool, a mailbox client, social platform software, etc. (by way of example only).
The terminal devices 401, 402, 403 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 405 may be a server that provides various services, such as a server (for example only) that users use the terminal devices 401, 402, 403 (to determine/perform data processing on user tags). The server may analyze and perform other processing on the received data such as the acquisition request, and feed back a processing result (e.g., a first user tag, a second user tag-just an example) to the terminal device.
It should be noted that the method for determining the user tag provided by the embodiment of the present invention is generally executed by the server 405, and accordingly, the means 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, a block diagram of a computer system 500 suitable for use with a terminal device or server implementing an embodiment of the invention is shown. The terminal device or the server shown in fig. 5 is only an example, and should not bring any limitation to the functions and the 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 that 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 necessary for the operation of the system 500 are also stored. The CPU 501, ROM 502, and RAM 503 are connected to each other via 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 portion 506 including a keyboard, a mouse, and the like; an output portion 507 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; 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 driver 510 is also connected to the I/O interface 505 as necessary. 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 necessary, so that a computer program read out therefrom is mounted into the storage section 508 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the 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 illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 509, and/or installed from the removable medium 511. The computer program performs the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 501.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination 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 present invention, 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, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. 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 flowchart 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 described in the embodiments of the present invention may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor includes a tag type determination module and a tag determination module. The names of these modules do not in some cases constitute a limitation on the unit itself, for example, the tag type determination module may also be described as "a module for determining the user tag type 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 separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise: 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; if the user tag type is an 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 a requester; and 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 aiming at the user tag; if the user tag type is an 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 a requester; if the user label type is the real-time label type, the real-time user behavior data corresponding to the user number in the time interval is determined, the second user label is determined according to the real-time user behavior data, and the second user label is sent to the requester, so the technical problems that the existing method is low in calculation efficiency, high in calculation resource waste, long in response time, few in applicable scene and difficult to meet the high-concurrency query requirement are solved, the calculation efficiency of the user label is improved, the calculation resource is saved, the response time for determining the user label is shortened, the applicable scene is expanded, and the technical effect of meeting the high-concurrency query requirement is achieved.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for determining a user tag, comprising:
responding to an acquisition request aiming at a 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 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 time interval, and sending the first user tag to a requester;
and if the user tag type is a 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.
2. The method of claim 1, wherein the step of generating the offline label comprises:
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 belongs;
and calculating a label value according to the user behavior data corresponding to different user numbers determined from the offline data in a first time interval, and generating the offline labels corresponding to different user numbers according to the label value and label conditions.
3. The method of determining a user tag according to claim 2, 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 the time length threshold, acquiring newly added user behavior data in the time interval, and updating the offline label according to the newly added user behavior data.
4. The method of determining a user tag according to claim 2, further comprising:
determining real-time user behavior data according to the time interval to which the user behavior data belongs;
and cleaning the real-time user behavior data according to the tag value corresponding to the off-line tag, and placing the cleaned real-time user behavior data in a database.
5. The method of determining a user tag according to claim 4, further comprising:
and recording the corresponding relation between the user number and the real-time user behavior data in a query engine.
6. The method for determining the user tag according to claim 1, further comprising: if the user tag type includes an offline tag type and a real-time tag type,
determining a first user label corresponding to the user number from a database according to a time interval corresponding to the type of the offline label, and judging whether the first user label meets a label condition indicated in the acquisition request;
if yes, the first user label is sent to the 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 off-line data corresponding to the first user tag, determining a target user tag according to the real-time user behavior data and the first off-line data, and sending the target user tag to the requester.
7. The method of claim 6, 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 number in a time interval corresponding to the real-time tag type, updating the first user tag according to the real-time user behavior data, and sending the updated first user tag to a requester.
8. An apparatus for determining a user tag, comprising:
the tag type determining module is used for responding to an acquisition request aiming at a 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 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 offline tag type; and if the user tag type is a 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.
9. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-7.
10. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-7.
CN202110649366.1A 2021-06-10 2021-06-10 Method and device for determining user label Pending CN113312553A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110649366.1A CN113312553A (en) 2021-06-10 2021-06-10 Method and device for determining user label
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 CN113312553A (en) 2021-06-10 2021-06-10 Method and device for determining user label

Publications (1)

Publication Number Publication Date
CN113312553A true CN113312553A (en) 2021-08-27

Family

ID=77378111

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110649366.1A Pending CN113312553A (en) 2021-06-10 2021-06-10 Method and device for determining user label

Country Status (2)

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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022257604A1 (en) * 2021-06-10 2022-12-15 北京沃东天骏信息技术有限公司 Method and apparatus for determining user tag

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116456496B (en) * 2023-06-15 2023-11-14 阿里巴巴(中国)有限公司 Resource scheduling method, storage medium and electronic equipment

Citations (6)

* 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
US20180189791A1 (en) * 2016-12-30 2018-07-05 Qatar University Qstp-B Methods and system for addressing locations with personalized and user-selected tags
CN110866040A (en) * 2018-08-27 2020-03-06 京东数字科技控股有限公司 User portrait generation method, device and system
CN111754268A (en) * 2020-06-29 2020-10-09 深圳市酷开软件技术有限公司 OTT big data-based user label generation method, management system and storage medium
CN111881221A (en) * 2020-07-07 2020-11-03 上海中通吉网络技术有限公司 Method, device and equipment for customer portrait in logistics service
CN112668969A (en) * 2020-12-25 2021-04-16 江苏满运物流信息有限公司 User tag processing method, system, electronic device and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113312553A (en) * 2021-06-10 2021-08-27 北京沃东天骏信息技术有限公司 Method and device for determining user label

Patent Citations (6)

* 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
US20180189791A1 (en) * 2016-12-30 2018-07-05 Qatar University Qstp-B Methods and system for addressing locations with personalized and user-selected tags
CN110866040A (en) * 2018-08-27 2020-03-06 京东数字科技控股有限公司 User portrait generation method, device and system
CN111754268A (en) * 2020-06-29 2020-10-09 深圳市酷开软件技术有限公司 OTT big data-based user label generation method, management system and storage medium
CN111881221A (en) * 2020-07-07 2020-11-03 上海中通吉网络技术有限公司 Method, device and equipment for customer portrait in logistics service
CN112668969A (en) * 2020-12-25 2021-04-16 江苏满运物流信息有限公司 User tag processing method, system, electronic device and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022257604A1 (en) * 2021-06-10 2022-12-15 北京沃东天骏信息技术有限公司 Method and apparatus for determining user tag

Also Published As

Publication number Publication date
WO2022257604A1 (en) 2022-12-15

Similar Documents

Publication Publication Date Title
CN108536650B (en) Method and device for generating gradient lifting tree model
CN108933695B (en) Method and apparatus for processing information
CN112527649A (en) Test case generation method and device
WO2022257604A1 (en) Method and apparatus for determining user tag
CN110706093A (en) Accounting processing method and device
CN110866040A (en) User portrait generation method, device and system
CN113742389A (en) Service processing method and device
CN110928594A (en) Service development method and platform
CN113220705A (en) Slow query identification method and device
CN113779412B (en) Message touch method, node and system based on blockchain network
CN115905322A (en) Service processing method and device, electronic equipment and storage medium
CN113722007B (en) Configuration method, device and system of VPN branch equipment
CN113590447B (en) Buried point processing method and device
CN115858905A (en) Data processing method and device, electronic equipment and storage medium
CN114049065A (en) Data processing method, device and system
CN114612212A (en) Business processing method, device and system based on risk control
CN113127561B (en) Method and device for generating service single number, electronic equipment and storage medium
CN112688982B (en) User request processing method and device
CN109087097B (en) Method and device for updating same identifier of chain code
CN114257521A (en) Flow prediction method, device, electronic equipment and storage medium
CN113722193A (en) Method and device for detecting page abnormity
US10372436B2 (en) Systems and methods for maintaining operating consistency for multiple users during firmware updates
CN113362097B (en) User determination method and device
CN109388536B (en) Data collection method and device
CN113760179A (en) Data processing method and device

Legal Events

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