Method and device for drawing user portrait
By acquiring and analyzing interface operation data, calculating object feature scores, and selecting the best feature values to draw user portraits, it solves the problem of being unable to draw user portraits when key data is missing, and achieves accurate user portrait drawing and preference analysis in the absence of data. .
Patent Information
- Application Number
- CN201910425163.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-05-21
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2039-05-21
AI Technical Summary
The existing technology cannot draw user portraits in the absence of key data such as collections, orders, clicks, and views, resulting in inaccurate user preference analysis and poor user experience.
By obtaining the interface stay data, interface cursor data or interface click data, determine the dwell time of the target object, calculate the object feature score, select the best feature values to draw the user portrait, and use these data to accurately extract the user portrait even in the absence of key data. .
In the absence of key data, it is still possible to accurately draw user portraits, improve user experience, and enhance the accuracy of user preference analysis.
Smart Images

Figure CN111984839B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method and device for drawing a user portrait. Background Art
[0002] With the rapid development of computer technology, various network platforms such as media, learning and life services are also developing continuously and have been integrated into people's lives.
[0003] In order to better help users obtain information from the Internet accurately and efficiently, it is necessary to analyze users based on relevant data to obtain user portraits, so that users can obtain information that meets their preferences or satisfies their demands. Currently, user portraits are mainly obtained through the following methods:
[0004] 1. Analyze the user's demands or preferences based on the user's collection or ordering data to obtain a user portrait;
[0005] 2. Analyze user demands or preferences based on data such as user clicks or views to derive a user portrait.
[0006] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art:
[0007] It has limitations. If key data such as collection, ordering, click and view are missing, it is impossible to draw a user portrait. Summary of the invention
[0008] In view of this, an embodiment of the present invention provides a method and device for drawing a user portrait, which can accurately extract data for drawing a user portrait when key data is missing.
[0009] To achieve the above objective, according to one aspect of an embodiment of the present invention, a method for drawing a user portrait is provided.
[0010] A method for drawing a user portrait in an embodiment of the present invention includes: obtaining interface dwell data, interface cursor data or interface click data; determining a target object and a dwell time of the target object based on the interface dwell data, the interface cursor data or the interface click data; calculating a feature score of an object feature of the target object according to the dwell time of the target object; selecting an optimal feature value from the object features according to the feature score, and drawing a user portrait based on the optimal feature value.
[0011] Optionally, obtaining interface stay data, interface cursor data or interface click data includes: monitoring user operation instructions on the interface; wherein the operation instructions include sliding interface instructions, moving cursor instructions or clicking instructions; obtaining interface stay data according to the sliding interface instructions; obtaining interface cursor data according to the moving cursor instructions; obtaining interface click data according to the click instructions.
[0012] Optionally, the target object includes a non-viewing object and a viewing object; and determining the target object and the dwell time of the target object based on the interface dwell data, the interface cursor data or the interface click data includes: determining the non-viewing object and the dwell time of the non-viewing object based on the interface dwell data or the interface cursor data; determining the viewing object based on the interface click data, and selecting the highest dwell time as the dwell time of the viewing object.
[0013] Optionally, the target object also includes a historical object; and before calculating the feature score of the object feature of the target object based on the stay duration of the target object, it also includes: extracting the historical objects of the same type as the non-viewing object or the viewing object from the historical behavior data, and selecting the highest stay duration as the stay duration of the historical object.
[0014] Optionally, the object feature includes a discrete feature and a continuous feature; and calculating a feature score of the object feature of the target object according to the stay time of the target object includes:
[0015] The discrete feature score of the target object is calculated according to the residence time of the target object; wherein the discrete feature score is calculated using the following formula:
[0016] Among them, P is the discrete feature score, N is the discrete number, M1 is the residence time corresponding to the discrete feature, and T is the total residence time of all the target objects;
[0017] The continuous feature score of the target object is calculated according to the residence time of the target object; wherein the continuous feature score is calculated using the following formula:
[0018] Among them, C is the continuous feature score, S is the value of the continuous feature, M2 is the residence time corresponding to the continuous feature, and T is the total residence time of all the target objects.
[0019] Optionally, selecting the best feature from the object features according to the feature score includes: selecting the value of the discrete feature with the highest discrete feature score as the best feature value; and selecting the value of the continuous feature with the continuous feature score closest to the expected average value as the best feature value.
[0020] Optionally, the method further includes: determining an attention score of the target object according to the number of the best feature values possessed by the target object.
[0021] To achieve the above objective, according to another aspect of an embodiment of the present invention, a device for drawing a user portrait is provided.
[0022] A device for drawing a user portrait in an embodiment of the present invention includes: an acquisition module, used to acquire interface dwell data, interface cursor data or interface click data; a determination module, used to determine a target object and the dwell time of the target object based on the interface dwell data, the interface cursor data or the interface click data; a calculation module, used to calculate a feature score of an object feature of the target object according to the dwell time of the target object; and a selection module, used to select an optimal feature value from the object feature according to the feature score, and draw a user portrait based on the optimal feature value.
[0023] Optionally, the acquisition module is also used to: monitor the user's operation instructions on the interface; wherein the operation instructions include sliding interface instructions, moving cursor instructions or clicking instructions; acquiring interface stay data according to the sliding interface instructions; acquiring interface cursor data according to the moving cursor instructions; acquiring interface click data according to the click instructions.
[0024] Optionally, the target object includes a non-viewing object and a viewing object; and the determination module is also used to: determine the non-viewing object and the dwell time of the non-viewing object based on the interface dwell data or the interface cursor data; determine the viewing object based on the interface click data, and select the highest dwell time as the dwell time of the viewing object.
[0025] Optionally, the target object also includes a historical object; and the determination module is further used to: extract the historical object of the same type as the non-viewing object or the viewing object from the historical behavior data, and select the highest stay duration as the stay duration of the historical object.
[0026] Optionally, the object features include discrete features and continuous features; and the calculation module is further used for:
[0027] The discrete feature score of the target object is calculated according to the residence time of the target object; wherein the discrete feature score is calculated using the following formula:
[0028] Among them, P is the discrete feature score, N is the discrete number, M1 is the residence time corresponding to the discrete feature, and T is the total residence time of all the target objects;
[0029] The continuous feature score of the target object is calculated according to the residence time of the target object; wherein the continuous feature score is calculated using the following formula:
[0030] Wherein, C is the continuous feature score, S is the value of the continuous feature, M2 is the residence time corresponding to the continuous feature, and T is the total residence time of all the target objects;
[0031] The selection module is also used for:
[0032] Selecting the value of the discrete feature with the highest discrete feature score as the optimal feature value;
[0033] The value of the continuous feature whose continuous feature score is closest to the expected average value is selected as the optimal feature value.
[0034] Optionally, the device further comprises an analysis module, configured to:
[0035] The attention score of the target object is determined according to the number of the best feature values possessed by the target object.
[0036] To achieve the above objective, according to another aspect of an embodiment of the present invention, an electronic device for drawing a user portrait is provided.
[0037] An electronic device for drawing a user portrait according to an embodiment of the present invention includes: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement a method for drawing a user portrait according to an embodiment of the present invention.
[0038] To achieve the above objective, according to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided.
[0039] A computer-readable storage medium according to an embodiment of the present invention stores a computer program, which, when executed by a processor, implements a method for drawing a user portrait according to an embodiment of the present invention.
[0040] An embodiment of the above invention has the following advantages or beneficial effects: because it adopts the method of obtaining interface dwell data, interface cursor data or interface click data according to the user's operation instructions on the interface; determining the target object and the dwell time of the target object based on the interface dwell data, interface cursor data or interface click data; calculating the feature score of the object feature of the target object according to the dwell time; selecting the best feature value from the object feature according to the feature score, and drawing the user portrait based on the best feature value, the technical problem that the user portrait cannot be drawn if key data such as collection, ordering, click and view are missing is overcome, and the technical effect of accurately drawing the user portrait can be achieved by extracting data for drawing the user portrait in the absence of key data.
[0041] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0043] Figure 1 is a schematic diagram of main steps of a method for drawing a user portrait according to an embodiment of the present invention;
[0044] Figure 2 is a schematic diagram of the main process of a method for drawing a user portrait according to a reference embodiment of the present invention;
[0045] Figure 3 is a schematic diagram of the main process of a method for drawing a user portrait according to another reference embodiment of the present invention;
[0046] Figure 4 is a schematic diagram of main modules of an apparatus for drawing a user portrait according to an embodiment of the present invention;
[0047] Figure 5 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0048] Figure 6 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0049] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0050] It should be pointed out that the embodiments of the present invention and the technical features therein may be combined with each other without conflict.
[0051] In the era of big data, abstracting each specific information of users into labels and using these labels to concretize the user image, that is, drawing user portraits, can help users accurately and efficiently obtain information from the Internet, such as which type of objects a user prefers or which fields he pays more attention to. The existing methods of drawing user portraits need to be analyzed based on key data such as user collections, orders, clicks and views. For groups such as new users, these key data do not exist, and user portraits cannot be drawn. In addition, for objects corresponding to ordered or viewed data, users may not need or pay attention to them anymore. If only the user's collection or click data is analyzed, the number of corresponding objects is limited, and there is a lack of object comparison. It is impossible to accurately determine why the user selected the object among multiple objects, which has limitations. In addition, the objects recommended based on the analysis results are mostly of similar types, which are relatively simple and have a poor user experience.
[0052] To this end, an embodiment of the present invention proposes a method and device for drawing a user portrait, which can extract data for drawing the user portrait based on the user's operating behaviors such as clicking, collecting, viewing or page dwelling, and combined with the user's dwelling time. In the absence of key data, the method and device can accurately draw the user portrait, thereby analyzing the user preferences and improving the user experience.
[0053] Figure 1 It is a schematic diagram of the main steps of the method for drawing a user portrait according to an embodiment of the present invention.
[0054] like Figure 1 As shown, the method for drawing a user portrait in an embodiment of the present invention mainly includes the following steps:
[0055] Step S101: Acquire interface dwell data, interface cursor data or interface click data.
[0056] The operation instruction may include a sliding interface instruction, a moving cursor instruction, or a clicking instruction, wherein the sliding interface instruction may represent the user's flipping behavior, the moving cursor instruction may represent the user's browsing behavior, and the clicking instruction may represent the user's clicking behavior. For mobile terminals such as mobile phones or tablets, the operation instruction may only be a sliding interface instruction or a clicking instruction. For personal terminals such as computers, the operation instruction may be a sliding interface instruction, a moving cursor instruction, or a clicking instruction.
[0057] When drawing a user portrait, the embodiment of the present invention no longer relies solely on historical data, but can also analyze the user's real-time operation behavior to accurately draw the user portrait. It should be noted that the object in the embodiment of the present invention can be text, pictures, or products.
[0058] In an embodiment of the present invention, step S101 can be implemented in the following ways: monitoring the user's operation instructions on the interface; obtaining interface stay data according to the sliding interface instruction; obtaining interface cursor data according to the moving cursor instruction; obtaining interface click data according to the click instruction.
[0059] When the user browses the interface, the user's operation instructions on the interface can be monitored so as to obtain target objects that may meet the user's demands or meet the user's preferences based on the user's detailed behavior.
[0060] Specifically, the interface data corresponding to the stop interface, the data corresponding to the cursor stop area, or the data corresponding to the clicked location can be obtained according to the user's operation instruction. For example, if there is a stop between two sliding interfaces, the user stops the cursor at a certain location, or the user clicks a certain location on the interface, the corresponding interface data is obtained.
[0061] Step S102: determining the target object and the dwell time of the target object based on the interface dwell data, the interface cursor data or the interface click data.
[0062] After obtaining the interface data, the target object that may meet the user's demands or meet the user's preferences can be inferred based on the interface data, and the dwell time of the target object can be determined, which can represent the time the user stays for the target object.
[0063] In the embodiment of the present invention, the target object may include a non-viewing object and a viewing object. The interface dwell data is the data obtained due to the presence of a dwell between two sliding interfaces of the user, which corresponds to the non-viewing object; the interface cursor data is the data obtained due to the user leaving the cursor at a certain place, which corresponds to the non-viewing object; the interface click data is the data obtained due to the user clicking at a certain place on the interface, which corresponds to the viewing object.
[0064] Specifically, the above step S102 can be implemented in the following ways: determine the non-viewing object and the dwell time of the non-viewing object based on the interface dwell data and the interface cursor data; determine the viewing object based on the interface click data, and select the highest dwell time as the dwell time of the viewing object.
[0065] It should be noted that when selecting non-viewing objects, a preset number of objects with the longest stay time can be selected as non-viewing objects, or objects with a stay time exceeding a preset time can be selected as non-viewing objects, for example, 5 objects with the longest stay time or objects with a stay time exceeding 5 seconds can be selected. The stay time of the viewing object can be set to the maximum stay time, which can be the highest value among the stay times of the non-viewing objects, or a preset time based on actual needs or historical experience. In addition, when determining non-viewing objects based on interface stay data, objects located at preset positions such as the center, middle or upper part of the resident interface can be selected as non-viewing objects.
[0066] In addition, the target object may also include a historical object. The method for drawing a user portrait in the embodiment of the present invention may also include: extracting historical objects of the same type as the non-viewing object or the viewing object from the historical behavior data, and selecting the highest stay duration as the stay duration of the historical object.
[0067] In order to enrich the composition of the target object, historical objects of the same type as the non-viewing object or the viewing object can also be extracted from the historical behavior data as the target object. The historical behavior data refers to the user's historical collection behavior or historical shopping cart behavior data. It should be noted that the residence time of the historical object can be set to the maximum residence time, which can be the highest value among the residence times of the non-viewing objects, or can be a preset time based on actual needs or historical experience.
[0068] Step S103: Calculate the feature score of the object feature of the target object according to the residence time of the target object.
[0069] After obtaining the target object that may meet the user's demands or preferences, the target object can be analyzed to determine the features that the user may be concerned about. The degree of user attention to the object features can be quantified, that is, the feature score of the object features can be calculated. The feature score can provide data support for the user's user profile and improve the user experience.
[0070] In the embodiment of the present invention, object features may include discrete features and continuous features. Discrete features refer to features whose values can be listed one by one, such as fields, styles, performance or colors. Continuous features refer to features whose values are any point in an interval, such as the number of comments or the number of followers. Accordingly, feature scores include discrete feature scores and continuous feature scores.
[0071] The above step S103 can be implemented in the following ways: calculating the discrete feature score of the target object according to the stay time of the target object; and calculating the continuous feature score of the target object according to the stay time of the target object.
[0072] The discrete feature score is calculated using the following formula: Among them, P is the discrete feature score, N is the discrete number, M1 is the residence time corresponding to the discrete feature, and T is the total residence time of all target objects; the continuous feature score is calculated using the following formula: Among them, C is the continuous feature score, S is the value of the continuous feature, M2 is the residence time corresponding to the continuous feature, and T is the total residence time of all target objects.
[0073] It should be noted that the discrete number refers to the number of target objects with the same discrete feature among all target objects, for example, the number of target objects with the same brand among all target objects.
[0074] Step S104: Select the best feature value from the object features according to the feature score, and draw a user portrait based on the best feature value.
[0075] Since the feature score reflects the user's attention to the object features of the target object, the value of the object feature with a higher degree of attention can be selected as the optimal feature value. A user portrait can be drawn based on the optimal feature value, so that data used to draw the user portrait can still be extracted in the absence of key data.
[0076] The above step S104 can be implemented in the following manner: select the value of the discrete feature with the highest discrete feature score as the optimal feature value; and select the value of the continuous feature with the continuous feature score closest to the expected average value as the optimal feature value.
[0077] It should be noted that for continuous feature scores, if the difference between the continuous feature score of a target object and the expected average value of the continuous feature scores of all target objects is the smallest (i.e., closest to the expected average value), then the value of the continuous feature corresponding to the continuous feature score can be used as the optimal feature value of the target object. Both discrete feature scores and continuous feature scores are calculated based on the length of stay, which can reflect the user's attention to the object features. Specifically, the higher the discrete feature score, the higher the user's attention, and the closer the continuous feature score is to the expected average value, the higher the user's attention.
[0078] In an embodiment of the present invention, the method for drawing a user portrait may further include: determining an attention score of the target object according to the number of best feature values possessed by the target object.
[0079] The method for drawing a user portrait in an embodiment of the present invention can also quantify the user's preference for the target object, that is, after determining the target object and the length of time the target object stays, the attention score of the target object is calculated. The attention score reflects how many user-preferred object features the target object has, thereby reflecting the user's preference for the target object. The higher the attention score, the higher the user's preference for the target object.
[0080] In addition to helping users obtain information accurately and efficiently, the attention score of the target object can also verify the user's user portrait, that is, verify whether the object characteristics of the target object with a higher attention score are consistent with the user portrait, thereby improving the accuracy of the drawn user portrait and thus improving the user experience.
[0081] It can be seen from the method of drawing a user portrait according to an embodiment of the present invention that the technical means of obtaining interface dwell data, interface cursor data or interface click data according to the user's operation instructions on the interface; determining the target object and the dwell time of the target object based on the interface dwell data, interface cursor data or interface click data; calculating the feature score of the object feature of the target object according to the dwell time; selecting the best feature value from the object feature according to the feature score, and drawing the user portrait based on the best feature value, overcomes the technical problem that the user portrait cannot be drawn if key data such as collection, ordering, clicking and viewing are missing, thereby achieving the technical effect of being able to extract data for drawing the user portrait and accurately drawing the user portrait in the absence of key data.
[0082] Figure 2 It is a schematic diagram of the main process of a method for drawing a user portrait according to a reference embodiment of the present invention.
[0083] like Figure 2 As shown, the method for drawing a user portrait in the embodiment of the present invention can be implemented with reference to the following process:
[0084] Step S201: monitor the user's operation instructions on the interface:
[0085] The operation instruction may include a sliding interface instruction, a cursor moving instruction, or a clicking instruction;
[0086] Step S202: Acquire interface stay data, interface cursor data or interface click data corresponding to the sliding interface instruction, moving cursor instruction or clicking instruction;
[0087] Step S203: determining the non-viewing object and the duration of the non-viewing object's stay based on the interface stay data and the interface cursor data;
[0088] Step S204: determining the viewing object based on the interface click data, and selecting the maximum stay duration as the stay duration of the viewing object;
[0089] Step S205: extracting historical objects of the same type as the non-viewing object or the viewing object from the historical behavior data, and selecting the highest stay duration as the stay duration of the historical object;
[0090] Step S206: Calculate the discrete feature score and the continuous feature score of the target object according to the residence time of the target object;
[0091] Step S207: selecting the discrete feature value with the highest discrete feature score and the continuous feature value with the continuous feature score closest to the expected average value as the optimal feature values;
[0092] Step S208: Draw a user portrait based on the optimal feature value;
[0093] Step S209: Determine the attention score of the target object according to the number of the best feature values of the target object:
[0094] The attention score can be used to verify the user portrait, that is, to verify whether the object characteristics of the target object with a higher attention score are consistent with the user portrait.
[0095] Figure 3 It is a schematic diagram of the main process of a method for drawing a user portrait according to another reference embodiment of the present invention.
[0096] like Figure 3 As shown, the method for drawing a user portrait in the embodiment of the present invention can also be implemented with reference to the following process:
[0097] Step S301: monitor the time and sliding position of the user's scroll bar each time:
[0098] The sliding interface instruction can be reflected by the user sliding the scroll bar. Through the sliding position of the user's sliding scroll bar each time, it can be sensed whether the user slides the interface and whether the user stays;
[0099] Step S302: Obtain object information of the object corresponding to the sliding position:
[0100] The object corresponding to the sliding position is the non-viewing object, which is the target object that the user may prefer. The object information is the dwelling time and object characteristics of the target object;
[0101] Step S303: reporting the object information obtained in step S302 to the database;
[0102] Step S304: Feature analysis:
[0103] When performing feature analysis, a preset number of non-viewing objects with the longest stay time or non-viewing objects with a stay time exceeding the preset time are obtained from the database as target objects, and object information of the non-viewing objects is obtained. At the same time, the viewing objects and historical objects are taken as target objects. The stay time of the non-viewing objects is their actual stay time, and the stay time of the viewing objects and historical objects is the selected maximum stay time, and the feature score of the object feature of the target object is calculated based on the stay time. This calculation process is the same as step S103 and will not be repeated here;
[0104] Step S305: extracting data for drawing user portraits:
[0105] The best feature value is extracted from the object feature according to the feature score. The implementation method of step S305 is the same as that of step S104, which will not be described in detail here.
[0106] It should be noted that the process of reporting the object information to the database in step S303 can be performed synchronously with the process of obtaining the object information from the database in step S304, that is, the above steps S301 to S305 can be performed synchronously with the normal use of the user.
[0107] In order to further explain the technical idea of the embodiment of the present invention, the technical solution of the present invention is now described in combination with specific application scenarios.
[0108] Assume that when analyzing a user's preferences, there are 5 non-viewed objects (product 1, product 2, product 3, product 4, and product 5), 2 viewed objects (clicked product 1 and clicked product 2), and 2 historical objects (collected product 1 and collected product 2). Brand, style, and color are selected as discrete features, and number of comments and price are selected as continuous features. The 9 products, their residence time, and object characteristics are shown in Table 1.
[0109] Table 1
[0110] Length of stay brand shape color Number of comments price Product 1 1.5 A 4.5 red 200 3500 Product 2 2 B 5 black 300 4500 Product 3 1.7 A 5.5 black 500 2500 Product 4 2.3 C 5.5 black 200 3500 Product 5 2.5 C 5.5 black 300 3500 Click Product 1 2.5 C 5.5 black 300 2500 Click Product 2 2.5 A 5.5 black 500 2500 Favorite product 1 2.5 C 5.5 black 300 3500 Favorite product 2 2.5 A 5.5 black 500 2500
[0111] We perform weighted calculations on each object feature, using the dwell time as the weight, to obtain the feature score of each product (i.e., brand score, style score, color score, comment score, and price score), and select the best feature value. The number of best feature values for each product is its attention score.
[0112] The value of the discrete feature with the highest discrete feature score is taken as the optimal feature value. The discrete feature score is calculated using the following formula: Among them, P is the discrete feature score; N is the discrete number; M1 is the residence time corresponding to the discrete feature, and T is the total residence time of all target objects;
[0113] The value of the continuous feature whose continuous feature score is closest to the expected average value is taken as the optimal feature value. The continuous feature score is calculated using the following formula: Among them, C is the continuous feature score, S is the value of the continuous feature, M2 is the residence time corresponding to the continuous feature, and T is the total residence time of all target objects.
[0114] Take clicking on product 1 as an example:
[0115] T=1.5+2+1.7+2.3+2.5+2.5+2.5+2.5+2.5=20;
[0116] Brand C appears in 4 out of 9 products. The dwell time M1 of the 4 products is 2.3+2.5+2.5+2.5=9.8. The brand score of clicking on product 1 is 9.8 / 20=0.49. In addition, the brand score of other products corresponding to brand C is also 0.49.
[0117] Similarly, the styles of clicked product 1 are divided into (1.7+2.3+2.5+2.5+2.5+2.5+2.5) / 20=16.5 / 20=0.825;
[0118] Similarly, the color of clicked product 1 is (2+1.7+2.3+2.5+2.5+2.5+2.5+2.5) / 20=18.5 / 20=0.925;
[0119] For the review score of clicked product 1, the average value of user expected reviews is (1.5*200+2*300+1.7*500+2.3*200+2.5*300+2.5*300+2.5*500+2.5*300+2.5*500) / 20=348, 300-348=-48, so the review score of clicked product 1 is 48;
[0120] For the price score of clicked product 1, the average expected price of users is (1.5*3500+2*4500+1.7*2500+2.3*3500+2.5*3500+2.5*2500+2.5*2500+2.5*3500+2.5*2500) / 20=3140, the price score of clicked product 1=2500-3140=-640, so the price score of clicked product 1 is 640;
[0121] Among them, the brand score, style score and color score have the highest scores among the 9 products, and the comment separation score is the closest. Therefore, the values corresponding to the brand score, style score, color score and comment score are the best feature values, and the attention score for clicking product 1 is 4.
[0122] The brand score, style score, color score, comment score and price score of the other 8 products are calculated in the above way. The brand score, style score, color score, comment score, price score and attention score of these 9 products are shown in Table 2, among which the best feature value is marked with background color.
[0123] Table 2
[0124]
[0125]
[0126] The best feature values extracted through the above steps are: brand "C", style "5.5", color "black", number of comments "300" and price "3500". The above data is the data used to draw the user portrait.
[0127] In addition, after drawing the user portrait, the object characteristics of the target object with a higher attention score can be compared with the user portrait to verify the user portrait.
[0128] Figure 4 4 is a schematic diagram of main modules of an apparatus for drawing a user portrait according to an embodiment of the present invention.
[0129] like Figure 4 As shown, the device 400 for drawing a user portrait according to an embodiment of the present invention includes: an acquisition module 401 , a determination module 402 , a calculation module 403 and a selection module 404 .
[0130] in,
[0131] The acquisition module 401 is used to acquire interface stay data, interface cursor data or interface click data according to the user's operation instruction on the interface;
[0132] A determination module 402, configured to determine a target object and a dwell time of the target object based on the interface dwell data, the interface cursor data or the interface click data;
[0133] A calculation module 403, configured to calculate a feature score of an object feature of the target object according to the residence time of the target object;
[0134] The selection module 404 is used to select the best feature value from the object features according to the feature score, and draw a user portrait based on the best feature value.
[0135] In an embodiment of the present invention, the acquisition module 401 is also used to: monitor the user's operation instructions on the interface; wherein the operation instructions include sliding interface instructions, moving cursor instructions or click instructions; obtain interface stay data according to the sliding interface instructions; obtain interface cursor data according to the moving cursor instructions; obtain interface click data according to the click instructions.
[0136] In the embodiment of the present invention, the target object may include a non-viewing object and a viewing object.
[0137] The determination module 402 can also be used to: determine the non-viewing object and the dwell time of the non-viewing object based on the interface dwell data or the interface cursor data; determine the viewing object based on the interface click data, and select the highest dwell time as the dwell time of the viewing object.
[0138] In the embodiment of the present invention, the target object may also include a history object.
[0139] The determination module 402 may also be used to extract the historical objects of the same type as the non-viewing objects or the viewing objects from the historical behavior data, and select the highest stay duration as the stay duration of the historical objects.
[0140] In the embodiment of the present invention, the object features may include discrete features and continuous features.
[0141] The calculation module 403 may also be used to calculate a discrete feature score of the target object according to the residence time of the target object; wherein the discrete feature score is calculated using the following formula:
[0142] Among them, P is the discrete feature score, N is the discrete number, M1 is the residence time corresponding to the discrete feature, and T is the total residence time of all the target objects;
[0143] The continuous feature score of the target object is calculated according to the residence time of the target object; wherein the continuous feature score is calculated using the following formula:
[0144] Among them, C is the continuous feature score, S is the value of the continuous feature, M2 is the residence time corresponding to the continuous feature, and T is the total residence time of all the target objects.
[0145] The selection module 404 can also be used to:
[0146] Selecting the value of the discrete feature with the highest discrete feature score as the optimal feature value;
[0147] The value of the continuous feature whose continuous feature score is closest to the expected average value is selected as the optimal feature value.
[0148] In addition, the device 400 for drawing a user portrait may further include an analysis module (not shown in the figure) for:
[0149] The attention score of the target object is determined according to the number of the best feature values possessed by the target object.
[0150] It can be seen from the device for drawing a user portrait according to an embodiment of the present invention that the technical means of obtaining interface dwell data, interface cursor data or interface click data according to the user's operating instructions on the interface; determining the target object and the dwell time of the target object based on the interface dwell data, interface cursor data or interface click data; calculating the feature score of the object feature of the target object according to the dwell time; selecting the best feature value from the object feature according to the feature score, and drawing the user portrait based on the best feature value, overcomes the technical problem that the user portrait cannot be drawn if key data such as collection, ordering, clicking and viewing are missing, thereby achieving the technical effect of being able to extract data for drawing the user portrait and accurately drawing the user portrait in the absence of key data.
[0151] Figure 5 An exemplary system architecture 500 is shown to which the method for drawing a user portrait or the apparatus for drawing a user portrait according to an embodiment of the present invention can be applied.
[0152] like Figure 5 As shown, system architecture 500 may include terminal devices 501, 502, 503, a network 504 and a server 505. Network 504 is used to provide a medium for communication links between terminal devices 501, 502, 503 and server 505. Network 504 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0153] Users can use terminal devices 501, 502, 503 to interact with server 505 through network 504 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 501, 502, 503, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc.
[0154] The terminal devices 501 , 502 , and 503 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
[0155] The server 505 may be a server that provides various services, such as a backend management server that provides support for shopping websites browsed by users using the terminal devices 501, 502, and 503. The backend management server may analyze and process the received data such as product information query requests, and feed back the processing results (such as target push information and product information) to the terminal device.
[0156] It should be noted that the method for drawing a user portrait provided in the embodiment of the present invention is generally executed by the server 505 , and accordingly, the device for drawing a user portrait is generally arranged in the server 505 .
[0157] It should be understood that Figure 5 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0158] Reference below Figure 6 , which shows a schematic diagram of the structure of a computer system 600 of a terminal device suitable for implementing an embodiment of the present invention. Figure 6 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0159] like Figure 6 As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0160] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.
[0161] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the central processing unit (CPU) 601, the above-mentioned functions defined in the system of the present invention are executed.
[0162] It should be noted that 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 above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0163] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0164] The modules involved in the embodiments of the present invention may be implemented in software or hardware. The modules described may also be set in a processor, for example, they may be described as: a processor including an acquisition module, a determination module, a calculation and module selection module. The names of these modules do not, in some cases, constitute limitations on the modules themselves, for example, the calculation module may also be described as "a module for calculating a feature score of an object feature of the target object based on the residence time of the target object".
[0165] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: step S101: obtaining interface dwell data, interface cursor data or interface click data; step S102: determining the target object and the dwell time of the target object based on the interface dwell data, interface cursor data or interface click data; step S103: calculating the feature score of the object feature of the target object according to the dwell time of the target object; step S104: selecting the best feature value from the object feature according to the feature score, and drawing a user portrait based on the best feature value.
[0166] According to the technical solution of the embodiment of the present invention, the technical means of obtaining interface dwell data, interface cursor data or interface click data according to the user's operation instructions on the interface; determining the target object and the dwell time of the target object based on the interface dwell data, interface cursor data or interface click data; calculating the feature score of the object feature of the target object according to the dwell time; selecting the best feature value from the object feature according to the feature score, and drawing the user portrait based on the best feature value overcomes the technical problem that the user portrait cannot be drawn if key data such as collection, ordering, clicking and viewing are missing, thereby achieving the technical effect of being able to extract data for drawing the user portrait and accurately drawing the user portrait in the absence of key data.
[0167] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for drawing a user portrait, characterized in that: include: Get interface stay data, interface cursor data or interface click data; Determine a target object and a dwell time of the target object based on the interface dwell data, the interface cursor data or the interface click data; Calculating a feature score of the object feature of the target object according to the stay time of the target object; Selecting the best feature value from the object features according to the feature score, and drawing a user portrait based on the best feature value; The object features include discrete features and continuous features; as well as Calculating the feature score of the object feature of the target object according to the residence time of the target object includes: The discrete feature score of the target object is calculated according to the residence time of the target object; wherein the discrete feature score is calculated using the following formula: Among them, P is the discrete feature score, N is the discrete number, M1 is the residence time corresponding to the discrete feature, and T is the total residence time of all the target objects; The continuous feature score of the target object is calculated according to the residence time of the target object; wherein the continuous feature score is calculated using the following formula: Wherein, C is the continuous feature score, S is the value of the continuous feature, M2 is the residence time corresponding to the continuous feature, and T is the total residence time of all the target objects; Selecting the best feature value from the object feature according to the feature score includes: Selecting the value of the discrete feature with the highest discrete feature score as the optimal feature value; and The value of the continuous feature whose continuous feature score is closest to the expected average value is selected as the optimal feature value.
2. The method according to claim 1, characterized in that: Obtaining interface dwell data, interface cursor data, or interface click data includes: Monitoring the user's operation instructions on the interface; wherein the operation instructions include sliding interface instructions, moving cursor instructions or clicking instructions; Acquire interface stay data according to the sliding interface instruction; Acquire interface cursor data according to the cursor movement instruction; The interface click data is acquired according to the click instruction.
3. The method according to claim 1, characterized in that The target objects include non-viewing objects and viewing objects; as well as Determining the target object and the dwell time of the target object based on the interface dwell data, the interface cursor data or the interface click data includes: Determine the non-viewing object and the duration of the non-viewing object's stay based on the interface stay data or the interface cursor data; The viewing object is determined based on the interface click data, and the maximum stay duration is selected as the stay duration of the viewing object.
4. The method according to claim 3, characterized in that The target objects also include historical objects; and Before calculating the feature score of the object feature of the target object according to the residence time of the target object, the following further includes: The historical objects of the same type as the non-viewing object or the viewing object are extracted from the historical behavior data, and the highest stay duration is selected as the stay duration of the historical objects.
5. The method according to claim 1, characterized in that The method further comprises: The attention score of the target object is determined according to the number of the best feature values possessed by the target object.
6. A device for drawing a user portrait, characterized in that: include: An acquisition module is used to acquire interface dwell data, interface cursor data or interface click data; A determination module, configured to determine a target object and a dwell time of the target object based on the interface dwell data, the interface cursor data or the interface click data; A calculation module, used to calculate a feature score of an object feature of the target object according to the residence time of the target object; A selection module, configured to select an optimal feature value from the object features according to the feature score, and draw a user portrait based on the optimal feature value; The object features include discrete features and continuous features; and The calculation module is also used for: The discrete feature score of the target object is calculated according to the residence time of the target object; wherein the discrete feature score is calculated using the following formula: Among them, P is the discrete feature score, N is the discrete number, M1 is the residence time corresponding to the discrete feature, and T is the total residence time of all the target objects; The continuous feature score of the target object is calculated according to the residence time of the target object; wherein the continuous feature score is calculated using the following formula: Wherein, C is the continuous feature score, S is the value of the continuous feature, M2 is the residence time corresponding to the continuous feature, and T is the total residence time of all the target objects; The selection module is also used for: Selecting the value of the discrete feature with the highest discrete feature score as the optimal feature value; and The value of the continuous feature whose continuous feature score is closest to the expected average value is selected as the optimal feature value.
7. An electronic device for drawing a user portrait, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 5.
8. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
