Item recommendation method, device, equipment and storage medium based on user data
By using the user portrait system to generate item recommendation lists in unmanned stores, it solves the problem of users having difficulty finding target items in unmanned stores, improves purchasing efficiency and experience, and combines offline item management and online user portrait systems to provide accurate recommend.
Patent Information
- Application Number
- CN202110419856.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-19
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2041-04-19
AI Technical Summary
Due to the lack of store assistant guidance in unmanned stores, it is difficult for users to find target items quickly, resulting in low purchasing efficiency and poor shopping experience.
By obtaining user identity information, querying the pre-built user portrait system, determining the user's behavioral preference label data, and generating a list of target recommended items based on these data and item information, pushing item information to user terminal devices, combining offline item management and offline Use the user portrait system to provide accurate item recommendations.
It improves the user's shopping efficiency and experience in unmanned stores, reduces the time to find items, enhances the acquisition of item activity information, and improves the shopping experience.
Smart Images

Figure CN113077317B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of Internet technology, and in particular, to a method, device, equipment and storage medium for recommending items based on user data. Background Art
[0002] With the continuous development of Internet technology, online consumption behavior is becoming more and more popular. However, online consumption can never completely replace offline consumption. Therefore, unmanned stores have gradually emerged in life. After entering the unmanned store, users can choose suitable items based on their needs.
[0003] In the prior art, in offline stores, item recommendations are mainly made by store clerks. However, in unmanned stores, since there are no store clerks, if the user is not clear about the placement of items in the store, he or she needs to find the target item in a certain order.
[0004] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art: since there is no clerk to guide in unmanned stores, it may take a lot of time to find the target item, and the user may not be able to obtain the activity information of some items in time, resulting in low shopping efficiency and poor shopping experience for users. Summary of the invention
[0005] The embodiments of the present application provide an item recommendation method, device, equipment and storage medium based on user data, which are used to solve the problems of low shopping efficiency and poor shopping experience for users in existing unmanned stores.
[0006] According to a first aspect of the present application, an embodiment of the present application provides an item recommendation method based on user data, which is applied to an electronic device, and the method includes:
[0007] Acquiring identity information of a user entering a target area, wherein items in the target area are managed by the electronic device;
[0008] Querying a pre-built user portrait system to determine at least one behavior preference label data of a target user corresponding to the user identity information, wherein the user portrait system stores attribute information and historical behavior information of each user;
[0009] Determine a target recommended item list according to the at least one behavior preference label data and information of each item in the target area;
[0010] Push information of each item in the target recommended item list to the terminal device of the target user.
[0011] In a possible design of the first aspect, querying a pre-built user portrait system to determine at least one behavior preference label data of a target user corresponding to the user identity information includes:
[0012] According to the user identity information, query the user portrait system to obtain the historical behavior information of the target user;
[0013] Determine at least one behavior tag of the target user according to the historical behavior information of the target user and a preset user portrait tag list;
[0014] Based on the term frequency-inverse text frequency TF-IDF algorithm, N candidate behavior tags with the highest weight values are selected from the at least one behavior tag, where N is an integer greater than or equal to 1;
[0015] Eliminate the candidate behavior tags that are not related to the items in the target area from the N candidate behavior tags to obtain at least one behavior preference tag data of the target user.
[0016] Optionally, determining at least one behavior tag of the target user according to the historical behavior information of the target user and a preset user portrait tag list includes:
[0017] Processing the historical behavior information to determine all items operated by the target user;
[0018] At least one behavior tag of the target user is determined based on a preset user portrait tag list and all items operated by the target user.
[0019] Optionally, the step of selecting N candidate behavior tags with top weight values from the at least one behavior tag based on a TF-IDF algorithm includes:
[0020] Analyze all items operated by the target user to determine the total number of behavior tags of the target user and the number of occurrences of each behavior tag;
[0021] Determine the word frequency of each behavior tag according to the total number of behavior tags of the target user and the number of occurrences of each behavior tag;
[0022] Determine the reverse file frequency of each behavior tag according to the total number of users in the user portrait system and the number of users carrying each behavior tag;
[0023] Determine the weight value of each behavior tag based on the word frequency of each behavior tag and the reverse file frequency of each behavior tag;
[0024] According to the weight value of each behavior tag, N candidate behavior tags with top weight values are screened out from the at least one behavior tag.
[0025] In another possible design of the first aspect, determining a target recommended item list according to the at least one behavior preference label data and information about each item in the target area includes:
[0026] Determine at least one preferred category of the target user according to the at least one behavior preference label data and information of each item in the target area;
[0027] For each preferred category, obtaining characteristic information of each item in the preferred category within a preset time period;
[0028] Obtaining a recommendation value for each item in the preferred category according to feature information of each item in the preferred category within a preset time period and the target user's attention to each item;
[0029] The target recommended item list of the target user is determined according to the recommendation degree value of each item under each preferred category.
[0030] Optionally, determining at least one preferred category of the target user according to the at least one behavior preference label data and information of each item in the target area includes:
[0031] Determine, according to a preset association relationship between tags and categories, each item category corresponding to the at least one behavior preference tag data;
[0032] At least one preference category of the target user is determined according to information of each item category corresponding to the at least one behavior preference tag data and each item in the target area.
[0033] Optionally, obtaining the recommendation value of each item in the preferred category according to the feature information of each item in the preferred category within a preset time period and the target user's attention to each item includes:
[0034] Determine a recommendation model corresponding to the preferred category;
[0035] The characteristic information of each item under the preferred category within a preset time period and the target user's attention to each item are input into a recommendation model corresponding to the preferred category to obtain a recommendation value of each item under the preferred category.
[0036] Optionally, before determining the recommendation degree model corresponding to the preferred category, the method further includes:
[0037] For each category in the target area, obtaining feature information of each item in the category within a target time period and information on the attention of each user in the target user group to each item;
[0038] Inputting the characteristic information of each item in the category and the attention information of each user in the target user group to each item into a pre-built logistic regression function to obtain the weight value of each variable in the logistic regression function;
[0039] The weight values of the variables in the logistic regression function are substituted into the logistic regression function to obtain a recommendation model corresponding to the category.
[0040] In another possible design of the first aspect, the method further includes:
[0041] Obtaining order information of the target user;
[0042] According to the item information in the order information, the historical behavior information of the target user in the user portrait system is updated.
[0043] According to a second aspect of the present application, an embodiment of the present application provides an item recommendation device based on user data, comprising:
[0044] an acquisition module, used to acquire identity information of a user entering a target area, wherein items in the target area are managed by the item recommendation device based on user data;
[0045] A query module, used to query a pre-built user portrait system to determine at least one behavior preference label data of a target user corresponding to the user identity information, wherein the user portrait system stores attribute information and historical behavior information of each user;
[0046] A processing module, configured to determine a target recommended item list according to the at least one behavior preference label data and information of each item in the target area;
[0047] The push module is used to push the information of each item in the target recommended item list to the terminal device of the target user.
[0048] In a possible design of the second aspect, the query module is specifically used to:
[0049] According to the user identity information, query the user portrait system to obtain the historical behavior information of the target user;
[0050] Determine at least one behavior tag of the target user according to the historical behavior information of the target user and a preset user portrait tag list;
[0051] Based on the term frequency-inverse text frequency TF-IDF algorithm, N candidate behavior tags with the highest weight values are selected from the at least one behavior tag, where N is an integer greater than or equal to 1;
[0052] Eliminate the candidate behavior tags that are not related to the items in the target area from the N candidate behavior tags to obtain at least one behavior preference tag data of the target user.
[0053] Optionally, the query module is used to determine at least one behavior tag of the target user according to the historical behavior information of the target user and a preset user portrait tag list, specifically:
[0054] The query module is specifically used for:
[0055] Processing the historical behavior information to determine all items operated by the target user;
[0056] At least one behavior tag of the target user is determined based on a preset user portrait tag list and all items operated by the target user.
[0057] Optionally, the query module is used to filter out N candidate behavior tags with top weight values from the at least one behavior tag based on a term frequency-inverse text frequency (TF-IDF) algorithm, specifically:
[0058] The query module is specifically used for:
[0059] Analyze all items operated by the target user to determine the total number of behavior tags of the target user and the number of occurrences of each behavior tag;
[0060] Determine the word frequency of each behavior tag according to the total number of behavior tags of the target user and the number of occurrences of each behavior tag;
[0061] Determine the reverse file frequency of each behavior tag according to the total number of users in the user portrait system and the number of users carrying each behavior tag;
[0062] Determine the weight value of each behavior tag based on the word frequency of each behavior tag and the reverse file frequency of each behavior tag;
[0063] According to the weight value of each behavior tag, N candidate behavior tags with top weight values are screened out from the at least one behavior tag.
[0064] In another possible design of the second aspect, the processing module is specifically configured to:
[0065] Determine at least one preferred category of the target user according to the at least one behavior preference label data and information of each item in the target area;
[0066] For each preferred category, obtaining characteristic information of each item in the preferred category within a preset time period;
[0067] Obtaining a recommendation value for each item in the preferred category according to feature information of each item in the preferred category within a preset time period and the target user's attention to each item;
[0068] The target recommended item list of the target user is determined according to the recommendation degree value of each item under each preferred category.
[0069] Optionally, the processing module is used to determine at least one preferred category of the target user according to the at least one behavior preference label data and the information of each item in the target area, specifically:
[0070] The processing module is specifically used for:
[0071] Determine, according to a preset association relationship between tags and categories, each item category corresponding to the at least one behavior preference tag data;
[0072] At least one preference category of the target user is determined according to information of each item category corresponding to the at least one behavior preference tag data and each item in the target area.
[0073] Optionally, the processing module is used to obtain the recommendation value of each item in the preferred category according to the characteristic information of each item in the preferred category within a preset time period and the attention of the target user to each item, specifically:
[0074] The processing module is specifically used for:
[0075] Determine a recommendation model corresponding to the preferred category;
[0076] The characteristic information of each item under the preferred category within a preset time period and the target user's attention to each item are input into a recommendation model corresponding to the preferred category to obtain a recommendation value of each item under the preferred category.
[0077] Optionally, the processing module is further used to:
[0078] For each category in the target area, obtaining feature information of each item in the category within a target time period and information on the attention of each user in the target user group to each item;
[0079] Inputting the characteristic information of each item in the category and the attention information of each user in the target user group to each item into a pre-built logistic regression function to obtain the weight value of each variable in the logistic regression function;
[0080] The weight values of the variables in the logistic regression function are substituted into the logistic regression function to obtain a recommendation model corresponding to the category.
[0081] In a possible design of the second aspect, the acquisition module is further used to acquire the order information of the target user;
[0082] The processing module is also used to update the historical behavior information of the target user in the user portrait system according to the item information in the order information.
[0083] According to the third aspect of the present application, an embodiment of the present application provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method described in the first aspect and various possible designs is implemented.
[0084] According to the fourth aspect of the present application, an embodiment of the present application provides a computer-readable storage medium, in which computer execution instructions are stored. When the computer execution instructions are executed by a processor, they are used to implement the method described in the first aspect and various possible designs.
[0085] According to the fifth aspect of the present application, an embodiment of the present application provides a computer program product, including: a computer program, the computer program is stored in a readable storage medium, at least one processor of an electronic device can read the computer program from the readable storage medium, and the at least one processor executes the computer program so that the electronic device executes the method described in the first aspect.
[0086] The method, device, equipment and storage medium for recommending items based on user data provided in the embodiments of the present application obtain the identity information of the user entering the target area, query the pre-built user portrait system, determine at least one behavior preference label data of the target user corresponding to the user identity information, the user portrait system stores the attribute information of each user and the historical behavior information of each user, determine the target recommended item list based on at least one behavior preference label data and the information of each item in the target area, and push the information of each item in the target recommended item list to the terminal device of the target user. In this technical solution, the items in the target area are managed by an electronic device, and the electronic device can combine the offline target area scene with the online user portrait system, so that the user can timely understand the placement of items in the target area and the activity information of the items, thereby improving the user's shopping efficiency and shopping experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0087] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0088] Figure 1 A schematic diagram of an application scenario of the item recommendation method based on user data provided in an embodiment of the present application;
[0089] Figure 2 A flowchart of a first embodiment of a method for recommending items based on user data provided by the present application;
[0090] Figure 3 A flowchart of a second embodiment of the item recommendation method based on user data provided by the present application;
[0091] Figure 4 A flowchart of a third embodiment of the item recommendation method based on user data provided by the present application;
[0092] Figure 5 A schematic diagram of the association between certain label data and certain categories in the target area;
[0093] Figure 6 A flowchart of a fourth embodiment of the item recommendation method based on user data provided by the present application;
[0094] Figure 7 A schematic diagram of the structure of an embodiment of an item recommendation device based on user data provided by the present application;
[0095] Figure 8 A schematic diagram of the structure of an electronic device embodiment provided in this application.
[0096] The above drawings have shown clear embodiments of the present disclosure, which will be described in more detail below. These drawings and text descriptions are not intended to limit the scope of the present disclosure in any way, but to illustrate the concepts of the present disclosure to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0097] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0098] First, the terms involved in the embodiments of the present application are explained:
[0099] User portrait system
[0100] The user portrait system is a system that takes users as analysis objects, processes user information through various methods, and then describes user behavior information and attribute characteristics. It can provide analysts with comprehensive, accurate and instructive information, thereby optimizing operational strategies.
[0101] In actual applications, the presentation of user portraits mainly includes: user static portraits, user behavior portraits, and a combination of user static and dynamic behavior portraits. Among them, the data source of user static portraits is mainly filled in by users or calculated through certain algorithms; user behavior portraits are mainly data generated by user behavior, such as registration, browsing, clicking, purchasing, signing, evaluation, collection, attention and other behavior data.
[0102] In the e-commerce field, high-quality, multi-dimensional data in e-commerce platforms record a large amount of users' online behaviors. User portraits are label models of users' basic attributes, purchasing power, behavioral characteristics, social networks, psychological characteristics, interests and hobbies obtained by analyzing these data, thereby guiding and driving business scenarios and operations, and discovering and seizing huge business opportunities among massive users.
[0103] The following first explains the application scenario of the embodiment of the present application
[0104] An unmanned store refers to a store where all or part of the business processes are intelligently automated through technical means, with reduced or no human intervention. This means that there is no longer a division of labor and cooperation between shopping guides, cashiers, security guards and other practitioners in the store. Therefore, in actual applications, users may spend a lot of time looking for target items because they are not clear about the location of items in the store. At the same time, they cannot obtain activity information of some items in a timely manner, resulting in low shopping efficiency and poor shopping experience for users.
[0105] In response to this problem, the technical conception process of the embodiment of the present application is as follows: The inventor has found in practice that in the face of user operation behaviors in online stores, item recommendations are mainly based on the user portrait system. Specifically, by analyzing the user's online purchase behavior and user information, the user's behavior label can be obtained to recommend items. On this basis, the inventor has found that if the item recommendation method based on user data (user portrait system) can be applied to offline unmanned store scenarios, it can improve the user's shopping efficiency and thus improve the shopping experience.
[0106] Furthermore, by applying the item recommendation method based on user data (user portrait system) to offline manned store scenarios, the workload of store clerks can be reduced, the user's shopping efficiency can be improved, and the shopping experience can be improved. It can be understood that the items in the embodiments of the present application are mainly items that can be sold.
[0107] Based on the above technical conception process, the embodiment of the present application provides an item recommendation method based on user data, by obtaining the identity information of the user entering the target area, querying the pre-built user portrait system, determining at least one behavior preference label data of the target user corresponding to the user identity information, the user portrait system stores the attribute information of each user and the historical behavior information of each user, and then according to at least one behavior preference label data and the information of each item in the target area, determine the target recommended item list, and finally push the information of each item in the target recommended item list to the terminal device of the target user. Optionally, the items in the target area are managed by an electronic device. Therefore, the technical solution combines the offline target area scene with the online user portrait system, and can plan activity plans by analyzing the user's online operation behavior. It can also analyze the offline purchase behavior of users within the service range of the target area, and link online activities with offline activities, so that the item recommendation information can be pushed more accurately when the user enters the target area, so that the user can timely understand the placement of items in the target area and the activity information of the items.
[0108] For example, Figure 1 Schematic diagram of an application scenario of the item recommendation method based on user data provided in an embodiment of the present application. Figure 1As shown, the application scenario may include: a target area 11, an information collection device 111 provided at an entrance 110 of the target area 11, an information processing device 12 communicating with the information collection device 111, and a data storage device 13 communicating with the information processing device 12. The information processing device 12 has a database for storing user identity information, and the data storage device 13 stores a user portrait system, which stores attribute information of each registered user and historical behavior information of each user.
[0109] Optionally, the target area 11 may be an area where an offline unmanned store is located, or an area where an offline manned store is located. The embodiment of the present application does not limit the specific implementation of the target area, which may be determined according to actual needs and will not be elaborated here.
[0110] In an embodiment of the present application, when a user enters the target area 11, the information collection device 111 first collects the identity information of the user and then transmits it to the information processing device 12. The information processing device 12 can determine whether the user is a registered user by querying its own database. When the user is a registered user, the user portrait system of the data storage device 13 can be called to determine at least one behavioral preference label data of the user, and then combined with the item information in the target area 11, a target recommended item list is determined, and finally the information of each item in the target recommended item list is pushed to the user's terminal device, so that the user can timely understand the item placement information and activity information in the target area, thereby improving the user's shopping experience.
[0111] It should be noted that the attached Figure 1 This is only a schematic diagram of an application scenario provided by the embodiment of the present application. Figure 1 does not limit the equipment included in Figure 1 The positional relationship between the devices in the Figure 1 In the embodiment, the data storage device 13 can be an external memory relative to the information processing device 12. In other cases, the data storage device 13 can also be placed in the information processing device 12, and the embodiments of the present application do not limit this.
[0112] In the embodiments of the present application, the above-mentioned information processing device 12 can be implemented by a terminal device or a server. As long as it is a device that can execute the computer program corresponding to the item recommendation method based on user data provided in the present application, it can be implemented and is not limited here.
[0113] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0114] Figure 2 This is a flow chart of the first embodiment of the item recommendation method based on user data provided by this application. Figure 2 As shown, the item recommendation method based on user data may include the following steps:
[0115] S201, obtaining identity information of a user entering a target area, wherein items in the target area are managed by an electronic device.
[0116] In the embodiment of the present application, in order to identify the identity of the user entering the target area, an information collection device may be provided at the entrance and exit of the target area. For example, for unmanned stores such as offline unmanned supermarkets, information collection devices are usually provided at the entrance and exit of the unmanned stores, for example, face collection devices such as cameras, information collection devices such as barcode scanners, etc., which can collect the identity information of users entering the unmanned stores.
[0117] The following explanation is made using the unmanned store as the target area. The specific implementation for manned store scenarios is similar and is not limited here.
[0118] For example, when the entrance of an unmanned store is equipped with a face capture device such as a camera, the face capture device can capture images of offline users entering the unmanned store, and through face detection technology, detect and locate the face area of the video data collected by the camera, and determine the user's facial information by analyzing the face area, and then query a known database to determine that the user's facial information corresponds to the user identity information of the target user.
[0119] Exemplarily, information collection devices such as scanners can also be set up at the entrances and exits of unmanned stores. For e-commerce companies that have stores both online and offline, users can also use online registered accounts as identity information for entering unmanned stores, that is, input the online registered account into the scanner, so that the information processing equipment can collect the identity information of users entering the unmanned store.
[0120] It is understandable that in the embodiment of the present application, if the user has registered in the database, then when the user enters the unmanned store, the user identity information can be determined by querying the database. Optionally, the user identity information can be represented by a personal identification number (PIN), so the user information in the following user portrait system is represented by a PIN and a user tag.
[0121] Optionally, in an embodiment of the present application, when the user identity information cannot be searched in the database, it is necessary to guide the user to register the identity information based on a preset guidance registration strategy, and collect the online and / or offline item operation behavior information of the target user corresponding to the user identity information.
[0122] S202: query a pre-built user portrait system to determine at least one behavior preference label data of the target user corresponding to the user identity information.
[0123] Among them, the user portrait system stores the attribute information and historical behavior information of each user.
[0124] Exemplarily, in an embodiment of the present application, the user portrait system is a system constructed by analyzing the attribute information and historical behavior information of each user. Therefore, the portrait information of each user in the user portrait system corresponds to at least one user tag. Therefore, based on the acquired user identity information, a query can be made in the pre-constructed user portrait system to obtain at least one behavior preference label data of the target user corresponding to the user identity information, which lays the foundation for subsequent matching of a target item recommendation list that can be pushed to the target user in the unmanned store.
[0125] Optionally, the behavior preference label data is data used to characterize the behavior preferences of the target user. Based on the behavior preference label data, the items that the target user is interested in can be determined from a large number of items, and then the items can be recommended in a targeted manner.
[0126] S203: Determine a target recommended item list according to at least one behavior preference label data and information of each item in the target area.
[0127] Illustratively, in an embodiment of the present application, for an application scenario of an unmanned store, after the information processing device determines at least one behavioral preference label data of the target user, it is also necessary to determine a list of target recommended items that the user is most likely to order based on what items are placed in the unmanned store and the price or activity information of each item.
[0128] For example, each behavioral preference label data of a user may correspond to a different item category (category), and usually a user will choose items with a high price and good user reviews. Therefore, different items under the same category have different recommendation levels. Therefore, in this embodiment, determining the target recommended item list is the process of determining multiple items ranked at the top in recommendation level.
[0129] S204: Push information of each item in the target recommended item list to the terminal device of the target user.
[0130] Optionally, in order to enable all users entering the unmanned store to obtain information about some items, the information processing device can push the information of each item in the target recommended item list determined for each target user to the target user's terminal device in the form of a notification message or text message, so that the target user can obtain activity information of some items on the basis of timely understanding information such as the location of the items, which can provide guidance information for the target user.
[0131] Exemplarily, the information of each item in the target recommended item list pushed to the target user may include but is not limited to shelf location, price, item details page, promotional activities and other information. The specific form of the item information can be determined according to the actual scenario and will not be elaborated here.
[0132] The method for recommending items based on user data provided in the embodiment of the present application obtains the identity information of the user entering the target area, queries the pre-built user portrait system, determines at least one behavior preference label data of the target user corresponding to the user identity information, and stores the attribute information and historical behavior information of each user in the user portrait system. According to at least one behavior preference label data and the information of each item in the target area, the target recommended item list is determined, and the information of each item in the target recommended item list is pushed to the terminal device of the target user. This technical solution combines the offline target area scene with the online user portrait system, so that users can timely understand the placement of items in the target area and the activity information of the items, thereby improving the user's shopping efficiency and shopping experience.
[0133] Based on the above embodiments, Figure 3 This is a flow chart of the second embodiment of the item recommendation method based on user data provided by this application. Figure 3 As shown, the above S202 can be implemented by the following steps:
[0134] S301. Query the user portrait system based on the user identity information to obtain the historical behavior information of the target user.
[0135] For example, in this embodiment, after the information processing device obtains the user identity information, it can call the user portrait system to extract the historical behavior information of the target user from the user portrait system. Optionally, the historical behavior information may include browsing behavior information, attention behavior information, ordering behavior information, and add-to-cart behavior information.
[0136] Optionally, the historical behavior information may be online behavior information of the target user, or may be collected offline behavior information, which is not limited in the embodiments of the present application.
[0137] S302: Determine at least one behavior tag of the target user based on the historical behavior information of the target user and a preset user portrait tag list.
[0138] Optionally, the information processing device may process the historical behavior information, determine all items operated by the target user, and then determine at least one behavior tag of the target user based on a preset user portrait tag list and all items operated by the target user.
[0139] Exemplarily, Table 1 is a preset user portrait tag list. Optionally, the user portrait tag list can be determined by analyzing the user's historical behavior information, which can be various. The following Table 1 is determined by analyzing the behavior information of all collectible users. Some users may only correspond to a part of the tags, and the embodiment of the present application does not limit it.
[0140] Table 1 List of preset user portrait tags
[0141]
[0142]
[0143] Optionally, in actual applications, since the subsequent item recommendation degree is calculated based on the user's preference behavior label data, each user's preference behavior label can also be quantified. For example, under the [Love Beauty] label, the quantification standard can also be divided into: 1: heavy lover; 2: moderate lover; 3: light lover; -1: non-lovers, etc. Different quantification standards correspond to different weights, which can be used in the subsequent calculation of the recommendation degree.
[0144] S303 : Based on the TF-IDF algorithm, select N candidate behavior tags with top weight values from at least one behavior tag.
[0145] Exemplarily, in order to determine the behavior tag with the greatest relevance to the target user from at least one behavior tag involved in the target user, in the embodiment of the present application, the term frequency-inverse text frequency TF-IDF algorithm commonly used in the field of text processing can be used to filter out N candidate behavior tags ranked first in weight from all behavior tags of the target user, where N is an integer greater than or equal to 1. The TF-IDF algorithm is used in the field of text processing to extract keywords from an article, and in the present embodiment, it is used to measure the criticality of a behavior tag to a user.
[0146] In the embodiments of the present application, term frequency (TF) refers to the frequency of occurrence of items with a certain type of tag in all items purchased by the user. Inverse document frequency (IDF) is an indicator used to measure the general importance of a word. In the present application, for a certain tag, IDF is equal to the number of all users divided by (the number of users with the tag + 1), and then the base 10 logarithm of the quotient is obtained.
[0147] Exemplarily, in this embodiment, S303 can be implemented by the following steps:
[0148] A1. Analyze all items operated by the target user to determine the total number of behavior tags the target user has and the number of occurrences of each behavior tag.
[0149] For example, after obtaining the user's historical behavior information from the user portrait system, analyzing the user's historical behavior information can determine all the items operated by the target user. Secondly, based on the characteristics of these items, the user behavior label corresponding to each item can be determined, and then the total number of behavior labels the target user has and the number of occurrences of each behavior label can be determined.
[0150] A2. Determine the word frequency of each behavior tag based on the total number of behavior tags of the target user and the number of occurrences of each behavior tag.
[0151] In this embodiment, for each behavior tag, the word frequency of each behavior tag can be determined using the following formula, namely:
[0152]
[0153] A3. Determine the reverse file frequency of each behavior tag based on the total number of users in the user portrait system and the number of users carrying each behavior tag.
[0154] Optionally, the inverse document frequency (IDF) is used to characterize the ability to distinguish categories. In this embodiment, IDF is used to characterize the ability to distinguish the target user's behavior label from other users. For each behavior label, it is mainly determined by the total number of users in the user portrait system and the number of users carrying the behavior label. The specific formula is as follows:
[0155]
[0156] A4. Determine the weight value of each behavior tag according to the word frequency of each behavior tag and the reverse file frequency of each behavior tag.
[0157] Exemplarily, TF-IDF can evaluate the importance of a behavior tag to the target user. The importance of a behavior tag to the target user increases in direct proportion to the number of times it appears in all items operated by the target user, but at the same time it decreases in inverse proportion to the frequency of its appearance in the user portrait system. Various forms of TF-IDF weighting can be used as a measure or rating of the degree of relevance between the behavior tag and the target user. Therefore, in this embodiment, after determining the word frequency of each behavior tag and the reverse file frequency of each behavior tag, the word frequency of each behavior tag and the reverse file frequency of the corresponding behavior tag can be multiplied to obtain the weight value of each behavior tag.
[0158] A5. According to the weight value of each behavior tag, select N candidate behavior tags with the highest weight value from at least one behavior tag.
[0159] For example, the higher the weight value of the behavior tag, the more important the behavior tag is to the target user. Therefore, for all the behavior tags of the target user, at least one of the above behavior tags can be sorted in descending order according to the weight value, and N candidate behavior tags with the highest weight value can be selected. The specific value of N is not limited in the embodiment of the present application, and it can be determined according to the actual scenario and is not limited here.
[0160] S304: Eliminate candidate behavior tags that are not related to items in the target area from the N candidate behavior tags to obtain at least one behavior preference tag data of the target user.
[0161] For example, since the function of real-time item push in the embodiment of the present application is mainly based on the scenario of offline unmanned stores, the selection criteria for tags should remove some tags that are not very relevant to offline unmanned supermarkets, such as: mobile phone APP dependent users, night owls, luxury goods lovers, etc.
[0162] For example, in unmanned store scenarios, luxury goods are usually not sold, and have little to do with the use of mobile phone apps or labels such as night owls. Therefore, these labels that are irrelevant or not strongly related to scenarios such as unmanned sales can be removed from the determined candidate behavior labels, and then at least one behavior preference label data of the target user can be determined.
[0163] The method for recommending items based on user data provided in the embodiment of the present application obtains the historical behavior information of the target user by querying the user portrait system according to the user identity information, and then determines at least one behavior label of the target user according to the historical behavior information of the target user and the preset user portrait label list, and selects N candidate behavior labels with the highest weight value from at least one behavior label based on the TF-IDF algorithm, and finally removes the candidate behavior labels that are not related to the items in the target area from the N candidate behavior labels to obtain at least one behavior preference label data of the target user. In this technical solution, at least one preference behavior label data of the target user can be accurately determined based on the user portrait system and the TF-IDF algorithm, laying the foundation for the subsequent determination of the target recommended items.
[0164] Based on the above embodiments, Figure 4 This is a flow chart of the third embodiment of the item recommendation method based on user data provided by this application. Figure 4 As shown, the above S203 can be implemented by the following steps:
[0165] S401. Determine at least one preferred category of a target user based on at least one behavior preference label data and information of each item in a target area.
[0166] For example, in actual applications, items in each store are classified according to item attributes. Therefore, after determining at least one behavioral preference label data of the target user, a correspondence between each behavioral preference label data and each item in the target area can be established, thereby determining at least one preferred category of the target user.
[0167] Optionally, in a possible design, S401 may be implemented by the following steps:
[0168] According to the preset association relationship between the label and the category, each item category corresponding to at least one behavior preference label data is determined, and according to the information of each item category corresponding to at least one behavior preference label data and each item in the target area, at least one preference category of the target user is determined.
[0169] Specifically, the information processing device may store preset associations between tags and categories. Once at least one behavioral preference tag data of the target user is determined, the preset associations between tags and categories may be queried to determine the item categories corresponding to each behavioral preference tag data, and then, based on the information of each item in the target area, determine whether each item category is on sale or in stock in the target area, and then determine at least one preferred category that can be selected.
[0170] For example, Figure 5 This is a schematic diagram of the relationship between some label data and some categories in the target area. Figure 5 As shown, in actual applications, the item category information corresponding to the label "beauty lovers" is "cosmetics", the item category information corresponding to the label "foodies" is "snacks" and "snack foods", the item category information corresponding to the label "snack lovers" is "snack foods", the item category information corresponding to the label "pet lovers" is "pet supplies", the item category information corresponding to the label "tea lovers" is "beverages - tea", the item category information corresponding to the label "health lovers" is "beverages - tea" and "medicinal food", etc.
[0171] Optional, in Figure 5 In the association relationship shown, assuming that a preference label data of the target user is "foodie", it can be determined that the item categories corresponding to the "foodie" are "snacks" and "treats", and then, among the items on sale in the target area, it can be determined that the target user's preference categories include at least "snacks" and "treats".
[0172] Understandably, Figure 5 Only the correspondence between some tags and some item categories is given in the figure. In actual applications, more correspondences can be included, which will not be described here.
[0173] S402: For each preferred category, obtain characteristic information of each item in the preferred category within a preset time period.
[0174] Optionally, in actual applications, since the user's purchase behavior is not only based on the user's own behavioral preferences, but also based on the characteristic information of the item within a preset time period, specifically, the characteristic information of the item refers to all user behaviors for the item within the preset time period, which may include the user's online behavior and the user's offline behavior. In order to more accurately calculate the probability of each item under each preferred category being successfully recommended to the user, it is necessary to obtain the characteristic information of each item within the preset time period.
[0175] Exemplarily, Table 2 is a characteristic data table of three items within a preset time period. As shown in Table 2, the characteristic information of the item may include: the item's own attributes and the item's popularity. Among them, the item's own attributes may include: item name, item category, pricing, profit, etc. The item's popularity can be characterized by the following data: number of views (online), number of purchases (online), average purchase interval (online), average purchase interval (offline), most recent purchase (offline), cumulative number of purchases (offline), continuous purchase degree, user item attention, etc. It can be understood that only part of the attributes of the item and part of the factors of popularity are shown in the following Table 2, and the embodiments of the present application do not limit them.
[0176] Table 2 Characteristic data of three items in the preset time period
[0177]
[0178]
[0179] Optionally, the following explains the attributes of the item and the factors involved in its popularity. The item name is the primary key of the item feature data table, and each item has a unique key (KEY); the category to which the item belongs should be consistent with the category marked when the target area is allocated; the item's pricing and profit are consistent with those kept in the archives when the target area is allocated and sold online.
[0180] The number of views (online) is the number of times the item's detail page is clicked online; the number of purchases (online) is the number of times the item is successfully purchased online. It is understandable that since the amount of offline data may not be large enough, the number of online views and purchases can be used as feature information for regression.
[0181] The Average Purchase Interval (Online) represents the average time interval between online sales of this item within a preset time period (for example, 30 days in history), and the Average Purchase Interval (Offline) represents the average time interval between offline sales of this item within a preset time period (for example, 30 days in history). Since the frequency of online sales is generally greater than offline sales, the time unit of the Average Purchase Interval (Online) is minutes, and the time unit of the Average Purchase Interval (Online) is days.
[0182] The most recent purchase (offline) and cumulative purchase count (offline) are the time data and sales count of this item in an offline store within a preset time period (for example, the past 30 days).
[0183] Optionally, the continuous purchase degree of an item can be given by the formula Calculate, where C is the number of days the item is purchased consecutively (for example, purchased for two consecutive days or more), and D is the total number of days the item is purchased.
[0184] The user's attention to an item is calculated based on the target user's historical operation information. The target user's historical operation information can be found in the user portrait system based on the user ID, and the historical operation information includes online operation information and offline operation information, which represents the user's attention to the item.
[0185] Optionally, the historical operation information of the target user may include: online browsing of items, online collection of items, online sharing of items, and online or offline purchase of items. Therefore, the user's attention to an item is the sum of the attention components corresponding to different behaviors.
[0186] For example, for a target behavior in the historical operation information, such as the behavior of browsing items online, the behavior of collecting items online, the behavior of sharing items online, or the behavior of purchasing items online or offline, the attention component corresponding to the target behavior can be calculated by the following formula:
[0187] P=Q*T*H*TF*IDF
[0188] Where Q is the weight value of the target behavior (determined based on the user's most recent online or offline behavior on the target item), which can be assigned different weight values. The larger the weight value, the greater the user's attention to the item; T is the number of times the target behavior occurs; H is the time attenuation coefficient from the user's target behavior (offline or online behavior) on the target item to the user entering the target area (Newton's thermodynamics formula is used here). Specifically, H = e (-0.1556*D) , D is the number of days in the past for the target behavior; TF is the frequency of the target user performing the target behavior, and IDF is the inverse frequency of the target user performing the target behavior.
[0189] S403: Obtain a recommendation value of each item in the preferred category according to feature information of each item in the preferred category within a preset time period and the target user's attention to each item.
[0190] In an embodiment of the present application, a recommendation model for each preference category may be loaded on the information processing device. Thus, when the information processing device obtains the characteristic information of each item under the target user's preference category within a preset time period and the target user's attention to each item, for each preference category, the recommendation value of each item under the preference category may be calculated by using the characteristic information of each item within a preset time period, the target user's attention to each item, and the recommendation model.
[0191] Exemplarily, in a possible design of the present application, for each preference category, the information processing device may first determine a recommendation model corresponding to the preference category, and then input the characteristic information of each item under the preference category within a preset time period and the target user's attention to each item into the recommendation model corresponding to the preference category, thereby obtaining the recommendation value of each item under the preference category.
[0192] Optionally, in actual applications, in order to promptly determine the recommendation value of each item in the user's preferred category when the user enters the target area, before determining the recommendation model corresponding to the preferred category, the information processing device can first obtain the characteristic information of each item in the category within the target time period and the attention information of each user in the target user group to each item for each category in the target area, and then input the characteristic information of each item in the category and the attention information of each user in the target user group to each item into a pre-constructed logistic regression function to obtain the weight value of each variable in the logistic regression function, and finally substitute the weight value of each variable in the logistic regression function into the logistic regression function to obtain the recommendation model corresponding to the category.
[0193] For example, since different categories have different consumption characteristics, different logistic regression functions should be constructed according to different types of items:
[0194]
[0195] Among them, P is the predicted recommendation degree of the target item, β0~β n They are parameters X0~X n The weight value, X0~X n It is the characteristic information of the target item or the attention information of each user in the target user group to the target item.
[0196] It is understandable that when using the pre-built logistic regression function to train the recommendation model of each category, relevant data of many different users will be used for training. Therefore, in order to remove the impact of the dimension on data calculation, the characteristic values of the feature information corresponding to the item are normalized before training. For example: Y = (x-MinValue) / (MaxValue-MinValue), where x is the feature information of the item corresponding to a user before normalization, Y is the feature information of the item corresponding to the user after normalization, MinValue is the minimum value of the feature information in the target user group, and MaxValue is the maximum value of the feature information in the target user group.
[0197] Optionally, the parameters X0 to X1 can be determined by substituting the characteristic information of each item in the category determined in S402 within a preset time period and the attention of each user in the target user group to each item into the above logistic regression function. n The corresponding weight values β0~β n , and then we can get the recommendation model corresponding to each category.
[0198] Correspondingly, in the alternative recommended item categories, a certain recommendation degree model can be used to calculate the recommendation degree (P∈[1,0]) of each item in different categories. The larger P is, the greater the possibility that the user of this type will purchase this item.
[0199] S404: Determine a target recommended item list for the target user according to the recommendation degree value of each item in each preferred category.
[0200] For example, since the greater the recommendation value of each item in each category, the greater the possibility that the user will purchase the item, the items in the category can be sorted in descending order, and the top items can be used as target recommended items and added to the target recommended item list.
[0201] It is understandable that if an item corresponds to multiple tags (for example, the tags corresponding to tea bags include health experts and beverages), then when calculating the item recommendation, the recommendation of each category should be multiplied by the weight value of each behavior tag for weighting.
[0202] The method for recommending items based on user data provided in the embodiment of the present application determines at least one preferred category of the target user based on at least one behavior preference label data and the information of each item in the target area, obtains the characteristic information of each item in the preference category within a preset time period for each preferred category, obtains the recommendation value of each item in the preference category based on the characteristic information of each item in the preference category within a preset time period and the target user's attention to each item, and finally determines the target recommended item list of the target user based on the size of the recommendation value of each item in each preference category. In this technical solution, the target recommendation list is determined based on the user's preference label data and the item information in the target area, which improves the accuracy of item recommendation and lays a foundation for improving the user's shopping efficiency and shopping experience.
[0203] Based on the above embodiments, Figure 6 This is a flow chart of the fourth embodiment of the item recommendation method based on user data provided by this application. Figure 6 As shown, the item recommendation method based on user data may also include the following steps:
[0204] S601: Obtain order information of target users.
[0205] For example, in actual applications, the settlement system in the target area can be connected to the information processing device, so that when a user places an order in the target area, the information processing device can obtain the order information of the target, thereby analyzing the behavior information of the target user, further enriching the content information of the user portrait system.
[0206] S602: Update the historical behavior information of the target user in the user portrait system according to the item information in the order information.
[0207] Exemplarily, the information processing device can determine the offline behavior information of the target user, such as purchase time and purchased items, based on the item information in the order information, and store it in the data storage space corresponding to the above-mentioned user portrait system, such as a data warehouse, so as to enrich the historical behavior data of the target user.
[0208] The method for recommending items based on user data provided in the embodiment of the present application obtains the target user's order information and updates the target user's historical behavior information in the user portrait system according to the item information in the order information. In this technical solution, the target user's historical behavior information in the user portrait system can be updated in real time based on the target user's order information, enriching the information in the user portrait system and laying a foundation for improving the accuracy of item recommendations.
[0209] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0210] Figure 7 This is a schematic diagram of the structure of an embodiment of the device for recommending items based on user data provided by the present application. Figure 7 As shown, the item recommendation device based on user data may include:
[0211] An acquisition module 701 is used to acquire the identity information of a user entering a target area, and items in the target area are managed by the item recommendation device based on user data;
[0212] A query module 702 is used to query a pre-built user portrait system to determine at least one behavior preference tag data of a target user corresponding to the user identity information, wherein the user portrait system stores attribute information and historical behavior information of each user;
[0213] A processing module 703 is used to determine a target recommended item list according to the at least one behavior preference label data and information of each item in the target area;
[0214] The push module 704 is used to push the information of each item in the target recommended item list to the terminal device of the target user.
[0215] In a possible design of the embodiment of the present application, the query module 702 is specifically used to:
[0216] According to the user identity information, query the user portrait system to obtain the historical behavior information of the target user;
[0217] Determine at least one behavior tag of the target user according to the historical behavior information of the target user and a preset user portrait tag list;
[0218] Based on the term frequency-inverse text frequency TF-IDF algorithm, N candidate behavior tags with the highest weight values are selected from the at least one behavior tag, where N is an integer greater than or equal to 1;
[0219] Eliminate the candidate behavior tags that are not related to the items in the target area from the N candidate behavior tags to obtain at least one behavior preference tag data of the target user.
[0220] Optionally, the query module 702 is used to determine at least one behavior tag of the target user according to the historical behavior information of the target user and a preset user portrait tag list, specifically:
[0221] The query module 702 is specifically used for:
[0222] Processing the historical behavior information to determine all items operated by the target user;
[0223] At least one behavior tag of the target user is determined based on a preset user portrait tag list and all items operated by the target user.
[0224] Optionally, the query module 702 is used to filter out N candidate behavior tags with the highest weight values from the at least one behavior tag based on a term frequency-inverse text frequency TF-IDF algorithm, specifically:
[0225] The query module 702 is specifically used for:
[0226] Analyze all items operated by the target user to determine the total number of behavior tags of the target user and the number of occurrences of each behavior tag;
[0227] Determine the word frequency of each behavior tag according to the total number of behavior tags of the target user and the number of occurrences of each behavior tag;
[0228] Determine the reverse file frequency of each behavior tag according to the total number of users in the user portrait system and the number of users carrying each behavior tag;
[0229] Determine the weight value of each behavior tag based on the word frequency of each behavior tag and the reverse file frequency of each behavior tag;
[0230] According to the weight value of each behavior tag, N candidate behavior tags with top weight values are screened out from the at least one behavior tag.
[0231] In another possible design of the embodiment of the present application, the processing module 703 is specifically used to:
[0232] Determine at least one preferred category of the target user according to the at least one behavior preference label data and information of each item in the target area;
[0233] For each preferred category, obtaining characteristic information of each item in the preferred category within a preset time period;
[0234] Obtaining a recommendation value for each item in the preferred category according to feature information of each item in the preferred category within a preset time period and the target user's attention to each item;
[0235] The target recommended item list of the target user is determined according to the recommendation degree value of each item under each preferred category.
[0236] Optionally, the processing module 703 is used to determine at least one preferred category of the target user according to the at least one behavior preference label data and the information of each item in the target area, specifically:
[0237] The processing module 703 is specifically used for:
[0238] Determine, according to a preset association relationship between tags and categories, each item category corresponding to the at least one behavior preference tag data;
[0239] At least one preference category of the target user is determined according to information of each item category corresponding to the at least one behavior preference tag data and each item in the target area.
[0240] Optionally, the processing module 703 is configured to obtain a recommendation value of each item in the preferred category according to the feature information of each item in the preferred category within a preset time period and the target user's attention to each item, specifically:
[0241] The processing module 703 is specifically used for:
[0242] Determine a recommendation model corresponding to the preferred category;
[0243] The characteristic information of each item under the preferred category within a preset time period and the target user's attention to each item are input into a recommendation model corresponding to the preferred category to obtain a recommendation value of each item under the preferred category.
[0244] Optionally, the processing module 703 is further used to:
[0245] For each category in the target area, obtaining feature information of each item in the category within a target time period and information on the attention of each user in the target user group to each item;
[0246] Inputting the characteristic information of each item in the category and the attention information of each user in the target user group to each item into a pre-built logistic regression function to obtain the weight value of each variable in the logistic regression function;
[0247] The weight values of the variables in the logistic regression function are substituted into the logistic regression function to obtain a recommendation model corresponding to the category.
[0248] In a possible design of the embodiment of the present application, the acquisition module 701 is further used to acquire the order information of the target user;
[0249] The processing module 703 is also used to update the historical behavior information of the target user in the user portrait system according to the item information in the order information.
[0250] The device provided in the embodiment of the present application can be used to execute the technical solution described in the method embodiment. Its implementation principle and technical effects are similar and will not be repeated here.
[0251] It should be noted that it should be understood that the division of the various modules of the above device is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software called by processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software called by processing elements, and some modules can be implemented in the form of hardware. For example, the processing module can be a separately established processing element, or it can be integrated in a chip of the above device. In addition, it can also be stored in the memory of the above device in the form of program code, and called and executed by a processing element of the above device. The implementation of other modules is similar. In addition, these modules can be fully or partially integrated together, or they can be implemented independently. The processing element described here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.
[0252] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state disk (SSD)), etc.
[0253] Figure 8 This is a schematic diagram of the structure of an electronic device embodiment provided by this application. Figure 8As shown, the electronic device may include: a processor 801, a memory 802, a communication interface 803 and a system bus 804, wherein the memory 802 and the communication interface 803 are connected to the processor 801 through the system bus 804 and communicate with each other, the memory 802 is used to store computer programs, the communication interface 803 is used to communicate with other devices, and the processor 801 implements the technical solution described in the above method embodiment when executing the computer program.
[0254] In this Figure 8 In the embodiment, the processor 801 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0255] The memory 802 may include a random access memory (RAM), may include a read-only memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0256] The communication interface 803 is used to implement the communication between the database access device and other devices (such as the client, the read-write library and the read-only library).
[0257] The system bus 804 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The system bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0258] Optionally, an embodiment of the present application further provides a computer-readable storage medium, in which computer execution instructions are stored. When the computer execution instructions are executed on a computer, the computer executes the technical solution described in the above method embodiment.
[0259] Optionally, an embodiment of the present application further provides a chip for running instructions, wherein the chip is used to execute the technical solution described in the above method embodiment.
[0260] According to an embodiment of the present application, the present application also provides a computer program product, including: a computer program, the computer program is stored in a readable storage medium, at least one processor of an electronic device can read the computer program from the readable storage medium, and at least one processor executes the computer program so that the electronic device executes the solution provided by any of the above embodiments.
[0261] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the application disclosed herein. This application is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0262] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A method for recommending items based on user data, applied to electronic devices, characterized in that: The method comprises: Acquire the identity information of a user entering a target area of an offline store, where items in the target area are managed by the electronic device; Querying a pre-built online user portrait system to determine at least one behavior preference tag data of the target user corresponding to the user identity information, wherein the online user portrait system stores attribute information of each user and historical behavior information of each user, wherein the historical behavior information includes the online operation behavior of the user and the offline purchase behavior of the user; Determine a target recommended item list according to the at least one behavior preference label data and information of each item in the target area; Pushing the placement information and activity information of each item in the target recommended item list to the terminal device of the target user; The step of determining a target recommended item list according to the at least one behavior preference tag data and information about each item in the target area includes: Determine at least one preferred category of the target user according to the at least one behavior preference label data and information of each item in the target area; For each preferred category, obtaining characteristic information of each item under the preferred category within a preset time period, wherein the characteristic information refers to online and offline user behaviors of the item within the preset time period, and the characteristic information of the item at least includes the item's own attributes; Obtaining a recommendation value for each item in the preferred category according to feature information of each item in the preferred category within a preset time period and the target user's attention to each item; The target recommended item list of the target user is determined according to the recommendation degree value of each item under each preferred category.
2. The method according to claim 1, characterized in that The querying of a pre-built online user portrait system to determine at least one behavior preference label data of a target user corresponding to the user identity information includes: According to the user identity information, query the user portrait system to obtain the historical behavior information of the target user; Determine at least one behavior tag of the target user according to the historical behavior information of the target user and a preset user portrait tag list; Based on the term frequency-inverse text frequency TF-IDF algorithm, N candidate behavior tags with the highest weight values are selected from the at least one behavior tag, where N is an integer greater than or equal to 1; Eliminate the candidate behavior tags that are not related to the items in the target area from the N candidate behavior tags to obtain at least one behavior preference tag data of the target user.
3. The method according to claim 2, characterized in that The step of determining at least one behavior tag of the target user according to the historical behavior information of the target user and a preset user portrait tag list includes: Processing the historical behavior information to determine all items operated by the target user; At least one behavior tag of the target user is determined based on a preset user portrait tag list and all items operated by the target user.
4. The method according to claim 2, characterized in that: The method of selecting N candidate behavior tags with the highest weight values from the at least one behavior tag based on the TF-IDF algorithm includes: Analyze all items operated by the target user to determine the total number of behavior tags of the target user and the number of occurrences of each behavior tag; Determine the word frequency of each behavior tag according to the total number of behavior tags of the target user and the number of occurrences of each behavior tag; Determine the reverse file frequency of each behavior tag according to the total number of users in the user portrait system and the number of users carrying each behavior tag; Determine the weight value of each behavior tag based on the word frequency of each behavior tag and the reverse file frequency of each behavior tag; According to the weight value of each behavior tag, N candidate behavior tags with top weight values are screened out from the at least one behavior tag.
5. The method according to claim 1, characterized in that Determining at least one preferred category of the target user according to the at least one behavior preference tag data and information of each item in the target area includes: Determine, according to a preset association relationship between tags and categories, each item category corresponding to the at least one behavior preference tag data; At least one preference category of the target user is determined according to information of each item category corresponding to the at least one behavior preference tag data and each item in the target area.
6. The method according to claim 1, characterized in that The obtaining of the recommendation value of each item in the preferred category according to the characteristic information of each item in the preferred category within a preset time period and the attention degree of the target user to each item includes: Determine a recommendation model corresponding to the preferred category; The characteristic information of each item under the preferred category within a preset time period and the target user's attention to each item are input into a recommendation model corresponding to the preferred category to obtain a recommendation value of each item under the preferred category.
7. The method according to claim 6, characterized in that Before determining the recommendation degree model corresponding to the preferred category, the method further includes: For each category in the target area, obtaining feature information of each item in the category within a target time period and information on the attention of each user in the target user group to each item; Inputting the characteristic information of each item in the category and the attention information of each user in the target user group to each item into a pre-built logistic regression function to obtain the weight value of each variable in the logistic regression function; The weight values of the variables in the logistic regression function are substituted into the logistic regression function to obtain a recommendation model corresponding to the category.
8. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: Obtaining order information of the target user; According to the item information in the order information, the historical behavior information of the target user in the user portrait system is updated.
9. An item recommendation device based on user data, characterized in that: include: An acquisition module, used to acquire identity information of a user entering a target area of an offline store, wherein items in the target area are managed by the item recommendation device based on user data; A query module, used to query a pre-built online user portrait system to determine at least one behavior preference tag data of a target user corresponding to the user identity information, wherein the online user portrait system stores attribute information of each user and historical behavior information of each user, wherein the historical behavior information includes the online operation behavior of the user and the offline purchase behavior of the user; A processing module, configured to determine a target recommended item list according to the at least one behavior preference label data and information of each item in the target area; A push module, used to push the placement information and activity information of each item in the target recommended item list to the terminal device of the target user; The processing module is specifically used for: Determine at least one preferred category of the target user according to the at least one behavior preference label data and information of each item in the target area; For each preferred category, obtaining characteristic information of each item under the preferred category within a preset time period, wherein the characteristic information refers to online and offline user behaviors of the item within the preset time period, and the characteristic information of the item at least includes the item's own attributes; Obtaining a recommendation value for each item in the preferred category according to feature information of each item in the preferred category within a preset time period and the target user's attention to each item; The target recommended item list of the target user is determined according to the recommendation degree value of each item under each preferred category.
10. An electronic device comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the method according to any one of claims 1 to 8 is implemented.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 8 when executed by a processor.
12. A computer program product comprising: A computer program, characterized in that when the computer program is executed by a processor, it is used to implement the method according to any one of claims 1 to 8.
