Object recommendation attribute determination method and apparatus, electronic device, and program product
By calculating the environmental and object similarity between candidate objects and historical objects, recommendation attributes are determined, which solves the problem of inaccurate user preference mining under changing environments and improves the accuracy of recommendations.
Patent Information
- Application Number
- CN202211566750.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-07
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2042-12-07
AI Technical Summary
Existing technologies struggle to accurately uncover user preferences in situations with an infinite variety of environmental information, leading to inaccurate intelligent recommendations.
By acquiring the current user's historical behavior records and a set of candidate objects, the similarity between environmental vector features and object vector features is calculated to determine the recommended attributes of the candidate objects.
It improves recommendation accuracy in changing environments by taking into account user preferences in different environments, thus enhancing the accuracy of recommendation results.
Smart Images

Figure CN115878894B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of artificial intelligence technology, specifically to a method, apparatus, electronic device, and program product for determining object recommendation attributes. Background Technology
[0002] With the rapid development of artificial intelligence technology, intelligent recommendation is playing an increasingly important role. The main task of intelligent recommendation is to analyze user preferences and recommend suitable options accordingly. For example, the route planning function of electronic maps can recommend navigation routes based on user preferences. Some users prefer routes with many highways, while others prefer routes with fewer tolls; these preferences can be extracted from users' historical navigation behavior.
[0003] Existing technologies mostly rely on statistical methods to obtain user preferences, such as statistical analysis of attributes of historically selected objects to obtain values like the mean and median to determine user preferences. However, this statistical approach is unsuitable for situations with an infinite variety of environmental information. For example, in route planning, there are infinitely many possibilities regarding route time, distance, and congestion. Existing statistical methods cannot cover all these scenarios and therefore cannot accurately describe user preferences in different environments. Therefore, a solution is needed to mine user preferences even with an infinite variety of environmental information, thereby assigning more accurate recommendation attributes to candidate objects. Summary of the Invention
[0004] This disclosure provides a method, apparatus, electronic device, and program product for determining object recommendation attributes.
[0005] In a first aspect, this disclosure provides a method for determining object recommendation attributes, comprising:
[0006] Obtain the current user's historical behavior record set and the candidate object set to be recommended to the current user; the historical behavior record set includes at least one historical object set, and the historical object set includes at least one historical selected object of the current user;
[0007] Determine a first similarity between the candidate object set and the historical object set, and determine a second similarity between a candidate object in the candidate object set and a historical selected object in the historical object set;
[0008] Recommended attributes of the candidate objects in the candidate object set are determined based on the first similarity and the second similarity.
[0009] Further, determining the first similarity between the candidate object set and the historical object set includes:
[0010] The first similarity is determined based on the environmental vector features of the candidate object set and the environmental vector features of the historical object set; wherein, the environmental vector features of the candidate object set are determined based on the attribute distribution information of at least one preset attribute of the candidate object in the candidate object set; and the environmental vector features of the historical object set are determined based on the attribute distribution information of at least one preset attribute of the historical object in the historical object set.
[0011] Further, determining the second similarity between candidate objects in the candidate object set and historical selected objects in the historical object set includes:
[0012] The second similarity is determined based on the object vector features of the candidate objects and the object vector features of the historically selected objects; wherein, the object vector features of the candidate objects are determined based on the relative position of the preset attributes of the candidate objects in the attribute distribution information of each candidate object in the candidate object set; the object vector features of the historically selected objects are determined based on the relative position of the preset attributes of the historically selected objects in the attribute distribution information of each historical object in the historical object set.
[0013] Furthermore, the method also includes:
[0014] Obtain the preset attributes of the candidate objects in the candidate object set, and obtain the preset attributes of the historical objects in the historical object set;
[0015] The environmental vector features of the candidate object set are characterized by the preset attributes of the candidate objects, and the environmental vector features of the historical object set are characterized by the preset attributes of the historical objects. Each vector of the environmental vector features of the candidate object set corresponds to a preset attribute sequence in which the same preset attribute of the candidate object is ordered. Each vector of the environmental vector features of the historical object set corresponds to a preset attribute sequence in which the same preset attribute of the historical object is ordered.
[0016] Furthermore, the method also includes:
[0017] The object vector features of the candidate objects are characterized by the preset attributes of the candidate objects and the environmental vector features of the candidate object set, and the object vector features of the historical selected objects are characterized by the preset attributes of the historical selected objects and the environmental vector features of the historical object set; wherein, each element of the object vector feature of the candidate object includes the sorting position of the preset attribute in the preset attribute sequence of the environmental vector features of the candidate object set; each element of the object vector feature of the historical selected object includes the sorting position of the preset attribute in the preset attribute sequence of the environmental vector features of the historical object set.
[0018] Furthermore, the candidate objects and the historical selected objects include objects that cannot be discretely described.
[0019] Furthermore, the candidate objects and the historical selected objects constitute navigation routes.
[0020] Secondly, this disclosure provides an object recommendation method, comprising: using the method described in the first aspect to determine the object recommendation attributes of candidate objects in a candidate object set, and selecting at least one candidate object from the candidate object set based on the object recommendation attributes, and pushing it to the current user.
[0021] Thirdly, this disclosure provides a navigation method, comprising: using the method described in the first aspect to determine the object recommendation attributes of each candidate navigation route in a candidate navigation route set, and providing a recommended navigation route for the navigated object based on the object recommendation attributes.
[0022] Fourthly, this disclosure provides a model training method, comprising:
[0023] Obtain a set of historical sample behavior records and a set of candidate sample objects for the sample user; the set of historical sample behavior records includes at least one set of historical sample objects, and the set of historical sample objects includes at least one historical selected sample object of the sample user;
[0024] The first similarity between the candidate sample object set and the historical sample object set is determined using a similarity prediction model to be trained, and the second similarity between the candidate sample object in the candidate sample object set and the historical selected sample object in the historical sample object set is determined.
[0025] Based on the first similarity and the second similarity, the predicted recommendation attributes of the candidate sample objects in the candidate sample object set are determined;
[0026] The predicted recommendation attributes of the candidate sample objects are used as one of the inputs to the object recommendation model to be trained, and the predicted objects are determined from the set of candidate sample objects.
[0027] The model parameters of the similarity prediction model and the object recommendation model are adjusted based on the differences between the predicted object and the target object in the candidate sample object set; the target object is the object selected by the sample user from the candidate sample object set.
[0028] Fifthly, this disclosure provides an object recommendation method, which includes:
[0029] Obtain the user's historical behavior record set and candidate object set; the historical behavior record set includes at least one historical object set, and the historical object set includes at least one historical selected object of the user;
[0030] A first similarity between the candidate object set and the historical object set is determined using a similarity prediction model, and a second similarity between the candidate objects in the candidate object set and the historical selected objects in the historical object set is determined.
[0031] The recommended attributes of the candidate objects in the candidate object set are determined based on the first similarity and the second similarity.
[0032] The recommended attributes of the candidate objects are used as one of the inputs to the object recommendation model to determine the predicted object from the set of candidate objects.
[0033] The predicted object is recommended to the current user.
[0034] Sixthly, this disclosure provides an object recommendation attribute determination apparatus, comprising:
[0035] The first acquisition module is configured to acquire a set of historical behavior records of the current user and a set of candidate objects to be recommended to the current user; the set of historical behavior records includes at least one set of historical objects, and the set of historical objects includes at least one historical selected object of the current user;
[0036] The first determining module is configured to determine a first similarity between the candidate object set and the historical object set, and to determine a second similarity between a candidate object in the candidate object set and a historical selected object in the historical object set;
[0037] The second determining module is configured to determine the recommended attributes of the candidate objects in the candidate object set based on the first similarity and the second similarity.
[0038] The function can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above function.
[0039] In one possible design, the above-described device includes a memory and a processor. The memory stores one or more computer instructions that support the device in performing the corresponding methods described above, and the processor is configured to execute the computer instructions stored in the memory. The device may also include a communication interface for communicating with other devices or communication networks.
[0040] In a seventh aspect, embodiments of this disclosure provide an electronic device including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the method described in any of the preceding aspects.
[0041] Eighthly, embodiments of this disclosure provide a computer-readable storage medium for storing computer instructions used by any of the above-described devices, which, when executed by a processor, are used to implement the methods described in any of the above aspects.
[0042] Ninthly, embodiments of this disclosure provide a computer program product comprising computer instructions which, when executed by a processor, are used to implement the methods described in any of the preceding aspects.
[0043] The technical solutions provided in this disclosure may have the following beneficial effects:
[0044] In this embodiment of the disclosure, when determining the recommendation attributes of an object, a set of candidate objects to be recommended to the current user and a set of the current user's historical behavior records are obtained. The set of historical behavior records includes at least one set of historical objects that the current user has encountered and selected in the past, and this set of historical objects includes historically selected objects chosen by the current user. Based on this set of historical behavior records, a first similarity between the candidate object set and the historical object set can be determined, and then a second similarity between each candidate object in the candidate object set and historically selected objects in the historical object set can be determined. The recommendation attributes of the candidate objects are then determined based on the first and second similarities. This embodiment of the disclosure determines the first similarity between the current environment (the candidate object set currently faced by the current user) and the historical environment (the historical object set previously faced by the current user), and then determines the second similarity between the historically selected objects chosen by the current user in each historical environment and the candidate objects, and then determines the recommendation attributes of the candidate objects based on the first and second similarities. The above method takes into account the different preferences of the current user when facing different environments, so it is particularly suitable for recommendation scenarios with an infinite number of environments. In addition, it also considers the similarity between the current user's historical selected objects and candidate objects, and determines the object recommendation attributes by combining environmental similarity and object similarity, which improves the accuracy of recommendation results.
[0045] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0046] Other features, objects, and advantages of this disclosure will become more apparent from the following detailed description of non-limiting embodiments, taken in conjunction with the accompanying drawings. In the drawings:
[0047] Figure 1 A flowchart illustrating a method for determining object recommendation attributes according to an embodiment of the present disclosure is shown;
[0048] Figure 2 A flowchart illustrating a model training method according to an embodiment of the present disclosure is shown;
[0049] Figure 3 A flowchart illustrating an object recommendation method according to an embodiment of the present disclosure is shown;
[0050] Figure 4A A schematic diagram illustrating an implementation of an object recommendation process according to an embodiment of the present disclosure is shown.
[0051] Figure 4B This illustration shows an application diagram of an object recommendation process according to an embodiment of the present disclosure;
[0052] Figure 5A structural block diagram of an object recommendation attribute determination apparatus according to an embodiment of the present disclosure is shown.
[0053] Figure 6 A flowchart of a model training apparatus according to an embodiment of the present disclosure is shown;
[0054] Figure 7 A flowchart of an object recommendation device according to an embodiment of the present disclosure is shown;
[0055] Figure 8 This is a schematic diagram of the structure of an electronic device suitable for implementing an object recommendation attribute determination method, an object recommendation method, a navigation method, and / or a model training method according to an embodiment of the present disclosure. Detailed Implementation
[0056] In the following, exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings to enable those skilled in the art to readily implement them. Furthermore, for clarity, portions unrelated to the description of the exemplary embodiments have been omitted from the drawings.
[0057] In this disclosure, it should be understood that terms such as “comprising” or “having” are intended to indicate the presence of features, figures, steps, behaviors, components, parts or combinations thereof disclosed in this specification, and do not preclude the possibility of the presence or addition of one or more other features, figures, steps, behaviors, components, parts or combinations thereof.
[0058] It should also be noted that, unless otherwise specified, the embodiments and features described in this disclosure can be combined with each other. This disclosure will now be described in detail with reference to the accompanying drawings and embodiments.
[0059] The details of the embodiments of this disclosure are described in detail below through specific examples.
[0060] Figure 1 A flowchart illustrating a method for determining object recommendation attributes according to an embodiment of this disclosure is shown. Figure 1 As shown, the method for determining the recommended attributes of this object includes the following steps:
[0061] In step S101, the current user's historical behavior record set and the candidate object set to be recommended to the current user are obtained; the historical behavior record set includes at least one historical object set, and the historical object set includes at least one historical selected object of the current user;
[0062] In step S102, a first similarity is determined between the candidate object set and the historical object set, and a second similarity is determined between the candidate objects in the candidate object set and the historical selected objects in the historical object set.
[0063] In step S103, the recommended attributes of the candidate objects in the candidate object set are determined based on the first similarity and the second similarity.
[0064] In this embodiment, the method for determining object recommendation attributes can be executed on a server. An object can be an object that can be described using attributes and can be recommended to a user. Object attributes can include various types, and a recommendation attribute can be one of them. For example, if the object is a product, its attributes can include, but are not limited to, price, production date, etc., while if the object is a navigation route, its attributes can include, but are not limited to, distance, duration, number of traffic lights, highway length, etc. Recommendation attributes can be attributes used to quantify the current user's preference for an object; different users can have different recommendation attributes for the same object. The recommendation system can recommend target objects that better meet the user's needs based on the object's recommendation attributes and / or other attributes.
[0065] The historical behavior record set may include one or more historical object sets that have been presented to the current user and selected by the current user in the past. This historical object set can be understood as a set of candidate objects that the current user has faced, and it includes at least one historically selected object that the current user actually selected when faced with that set. It is understood that the historical object set may also include other historical objects that were not selected by the current user.
[0066] The candidate object set can be a set of candidate objects that may meet the current user's current needs, and is to be pushed to the current user by the recommendation system for the current user to choose from. This candidate object set may include at least one candidate object. To save user time and improve user experience, the recommendation system can select one or more candidate objects that the current user is most likely to choose from the candidate objects based on the current user's preferences, and then push them to the current user. Therefore, this disclosure proposes the above method to determine the current user's preference for each candidate object from the candidate object set, and to characterize the magnitude of this preference using object recommendation attributes, thereby recommending one or more candidate objects that are most likely to be selected by the current user based on these object recommendation attributes.
[0067] In order to determine the current user's preference for all or some of the candidate objects in the candidate object set, this embodiment of the disclosure determines a first similarity between the candidate object set and each of all or some of the historical object sets in the historical behavior record set, and determines a second similarity between each candidate object in the candidate object set and each historical selected object in each historical object set, and then determines the recommended attributes of each candidate object in the candidate object set for the current user based on the first similarity and the second similarity.
[0068] It should be noted that in this embodiment, the first similarity is used to characterize the similarity between the current user's current environment (i.e., the current set of candidate objects) and the historical environments the current user has faced in the past (i.e., the historical set of objects). The second similarity is used to characterize the similarity between each candidate object available for selection in the current environment and the historical selected object in the historical environment. When both the first and second similarities for a target object in the candidate object set are high, it can be considered that the current user's current environment (i.e., the candidate object set) is similar to the historical environment (i.e., the historical object set), and that the target object is relatively similar to the historical selected object in the historical object set. In this case, it can be considered that the current user has a high degree of preference for the target object, and the recommendation attribute of the target object can be set higher to indicate a greater inclination to recommend the target object to the user. That is, for each candidate object in the candidate object set, its recommendation attribute is used to characterize the current user's degree of preference for the candidate object, and the degree of preference depends on the similarity between the candidate object set and the historical object set, as well as the similarity between the candidate object and the historical selected object in the historical object set.
[0069] In this embodiment of the disclosure, when determining the recommendation attributes of an object, a set of candidate objects to be recommended to the current user and a set of the current user's historical behavior records are obtained. The set of historical behavior records includes at least one set of historical objects that the current user has encountered and selected in the past, and this set of historical objects includes historically selected objects chosen by the current user. Based on this set of historical behavior records, a first similarity between the candidate object set and the historical object set can be determined, and then a second similarity between each candidate object in the candidate object set and historically selected objects in the historical object set can be determined. The recommendation attributes of the candidate objects are then determined based on the first and second similarities. This embodiment of the disclosure determines the first similarity between the current environment (the candidate object set currently faced by the current user) and the historical environment (the historical object set previously faced by the current user), and then determines the second similarity between the historically selected objects chosen by the current user in each historical environment and the candidate objects, and then determines the recommendation attributes of the candidate objects based on the first and second similarities. The above method takes into account the different preferences of the current user when facing different environments, so it is particularly suitable for recommendation scenarios with an infinite number of environments. In addition, it also considers the similarity between the current user's historical selected objects and candidate objects, and determines the object recommendation attributes by combining environmental similarity and object similarity, which improves the accuracy of recommendation results.
[0070] In an optional implementation of this embodiment, step S102, namely the step of determining the first similarity between the candidate object set and the historical object set, further includes the following steps:
[0071] The first similarity is determined based on the environmental vector features of the candidate object set and the environmental vector features of the historical object set; wherein, the environmental vector features of the candidate object set are determined based on the attribute distribution information of at least one preset attribute of the candidate object in the candidate object set; and the environmental vector features of the historical object set are determined based on the attribute distribution information of at least one preset attribute of the historical object in the historical object set.
[0072] In this optional implementation, in order to calculate the similarity between the candidate object set (the current environment) and the historical object set (the different historical environments), the embodiments of this disclosure represent the candidate object set and the historical object set using vector features, and use environment vector features to represent the current environment (i.e., the candidate object set) and the historical environment (i.e., the historical object set).
[0073] In some embodiments, the current environment faced by the candidate object set is characterized by the preset attributes of each candidate object in the candidate object set, and the historical environment faced by the historical object set is characterized by the preset attributes of each historical object in the historical object set.
[0074] In some embodiments, preset attributes may include multiple attributes. The current environment corresponding to the candidate object set can be represented by a vector matrix composed of multiple preset attributes of multiple candidate objects. Each row or column of this vector matrix corresponds to one of the preset attributes of all or some candidate objects in the candidate object set, and the preset attributes of the row or column are arranged in order of size, height, length, etc. Therefore, each row or column in this vector matrix is composed of the attribute distribution information of the preset attributes of each candidate object in the candidate object set. Thus, the environmental vector feature of the current environment corresponding to the candidate object set can also be understood as being determined by the attribute distribution information of the preset attributes of the candidate objects.
[0075] Similarly, the historical environment corresponding to a set of historical objects can also be represented by a vector matrix composed of multiple preset attributes of multiple historical objects. Each row or column of this vector matrix corresponds to one of the preset attributes of all or some of the historical objects in the set, and the preset attributes of that row or column are arranged in order of size, height, length, etc. Therefore, each row or column in this vector matrix is composed of the attribute distribution information of the preset attributes of each historical object in the set, and the environmental vector characteristics of the historical environment corresponding to the set of historical objects can be understood as being determined by the attribute distribution information of the preset attributes of the historical objects.
[0076] It should be noted that multiple preset attributes in the environmental vector features corresponding to the historical object set and the environmental vector features corresponding to the candidate object set are consistent, and the preset attribute corresponding to the corresponding row or column is the same. Attribute distribution information can be understood as the distribution of preset attributes of all or part of the objects (historical objects or candidate objects) belonging to the same set (historical object set or candidate object set) according to quantitative values such as size, level, and duration. For example, the attribute distribution information of the preset attribute - time of a navigation route can be a distribution from longest to shortest time. It can be understood that the sorting of preset attributes can be based on the quantitative value of the preset attribute, and this quantitative value can be a quantitative value that corresponds to the influence of user preferences, such as price, time, distance, etc.
[0077] In some embodiments, the preset attributes of an object can be set based on the different objects and actual needs, and are not limited here. For example, when the object is a product to be recommended, the preset attributes may include, but are not limited to, the product's price, brand, production date, user reviews, etc., while when the object is a navigation route to be recommended, the preset attributes may include, but are not limited to, the total duration, total distance, number of traffic lights, congestion conditions, length of highway sections, etc.
[0078] The first similarity can be determined based on the similarity between the environmental vector features of the historical object set and the environmental vector features of the candidate object set.
[0079] In summary, the embodiments of this disclosure utilize the preset attributes of each object in the set to characterize the environment currently faced by the user, such as the historical environment corresponding to the historical object set and the current environment corresponding to the candidate object. This enables the calculation of similarity between the current environment and the different environments faced in the past, thereby taking into account the relationship between the current environment and the different environments faced in the past when determining the recommended attributes of the object, thus improving the accuracy of the recommended attributes of the object.
[0080] In an optional implementation of this embodiment, step S102, namely the step of determining the second similarity between the candidate objects in the candidate object set and the historical selected objects in the historical object set, further includes the following steps:
[0081] The second similarity is determined based on the object vector features of the candidate objects and the object vector features of the historically selected objects; wherein, the object vector features of the candidate objects are determined based on the relative position of the preset attributes of the candidate objects in the attribute distribution information of each candidate object in the candidate object set; the object vector features of the historically selected objects are determined based on the relative position of the preset attributes of the historically selected objects in the attribute distribution information of each historical object in the historical object set.
[0082] In this optional implementation, candidate objects and historical objects can also be characterized by preset attributes. To account for the potential impact of different environments on the currently selected object, this embodiment of the disclosure, while using preset attributes of objects in the set of objects to be selected to characterize the environment, also characterizes the individual objects in the set using preset attributes. The resulting object vector feature is the representation of the object within the environment of the object set. In other words, the object vector feature of a candidate object is the vector representation of the candidate object in the current environment corresponding to the candidate object set, while the object vector feature of a historically selected object is the vector representation of the historically selected object in the historical environment corresponding to the historical object set.
[0083] After the vector representation of the object set and the vector representation of the object in the object set are described above, the user's preference for each candidate object in the candidate object set can be determined based on the vector representation of the object set and the vector representation of the object in the vector set.
[0084] In some embodiments, the vector representation of an object in an object set can be determined by the relative position of the object's preset attribute in the attribute distribution information of the preset attributes of each object in the object set. That is, the object vector feature of a candidate object can be represented by the position of the candidate object's preset attribute in the distribution of the quantized values of the preset attribute of each candidate object in the candidate object set, and the object vector feature of a historical object can be represented by the position of the historical object's preset attribute in the distribution of the quantized values of the preset attribute of each historical object in the historical object set.
[0085] For example, consider a navigation route. For one preset attribute—time—the value of the element corresponding to time in the vector feature of the navigation route can be determined by comparing that time with the times of all navigation routes in the set and its position within that set. For instance, if navigation route A has a time of 1 hour, and its time is ranked 4th in the time distribution of all navigation routes in the set (from shortest to longest), then the value of the vector element corresponding to that time in the vector feature of navigation route A can be set to 4. After obtaining the corresponding vector element values for other preset attributes in the same way, the vector feature of navigation route A can be obtained. This is just an example; the specific value of the vector element corresponding to the preset attribute in the vector feature of navigation route A can be set based on actual needs, and no specific restrictions are imposed here.
[0086] The second similarity can be determined based on the similarity between the object vector features of historically selected objects and the object vector features of candidate objects.
[0087] In an optional implementation of this embodiment, the method further includes the following steps:
[0088] Obtain the preset attributes of the candidate objects in the candidate object set, and obtain the preset attributes of the historical objects in the historical object set;
[0089] The environmental vector features of the candidate object set are characterized by the preset attributes of the candidate objects, and the environmental vector features of the historical object set are characterized by the preset attributes of the historical objects. Each vector of the environmental vector features of the candidate object set corresponds to a preset attribute sequence in which the same preset attribute of the candidate object is ordered. Each vector of the environmental vector features of the historical object set corresponds to a preset attribute sequence in which the same preset attribute of the historical object is ordered.
[0090] In this optional implementation, as described above, the environmental vector features of the candidate object set are represented by the attribute distribution information of the preset attributes of each candidate object in the candidate object set, while the environmental vector features of the historical object set are represented by the attribute distribution information of the preset attributes of each historical object in the historical object set.
[0091] To determine the first similarity, we can first obtain the preset attributes of each candidate object in the candidate object set, and the preset attributes of each historical object in the historical object set. Then, based on the preset attributes of the objects, we can characterize the environmental vector features of the candidate object set and the historical object set.
[0092] In some embodiments, when there are multiple preset attributes, the environmental vector features represented by the preset attributes of an object can include multiple vectors, each vector corresponding to the same preset attribute, and each vector including a preset attribute sequence of preset attributes of each object (candidate object or historical object) arranged in order. That is, each vector of the environmental vector features of the candidate object set corresponds to a preset attribute sequence including the same preset attribute of each candidate object arranged in order, and each vector of the environmental vector features of the historical object set corresponds to a preset attribute sequence including the same preset attribute of each historical object arranged in order.
[0093] In an optional implementation of this embodiment, the method further includes the following steps:
[0094] The object vector features of the candidate objects are characterized by the preset attributes of the candidate objects and the environmental vector features of the candidate object set, and the object vector features of the historical selected objects are characterized by the preset attributes of the historical selected objects and the environmental vector features of the historical object set; wherein, each element of the object vector feature of the candidate object includes the sorting position of the preset attribute in the preset attribute sequence of the environmental vector features of the candidate object set; each element of the object vector feature of the historical selected object includes the sorting position of the preset attribute in the preset attribute sequence of the environmental vector features of the historical object set.
[0095] In this optional implementation, as described above, the object vector feature of a candidate object is represented by the relative position of its preset attribute within the attribute distribution information of the preset attributes of each candidate object in the candidate object set. Similarly, the object vector feature of a historical object is represented by the relative position of its preset attribute within the attribute distribution information of the preset attributes of each historical object in the historical object set. The selected historical object is one of the historical objects in the historical object set.
[0096] To determine the second similarity, given that the environmental vector features of the candidate object set and the historical object set have been fully characterized, the object vector features of the candidate object can be characterized using the preset attributes of the candidate object and the environmental vector features of the candidate object set, while the object vector features of the historical selected object can be characterized using the preset attributes of the historical selected object and the environmental vector features of the historical object set.
[0097] In some embodiments, when there are multiple preset attributes, the object vector feature represented by the preset attributes of an object and the environment vector feature of the object set can be a vector including multiple vector elements. Each vector element corresponds to the same preset attribute, and each vector element includes the sorting position of the preset attribute of each object (candidate object or historical object) in the preset attribute sequence after the preset attributes of each object in the object set are arranged in order. That is, each vector element of the object vector feature of a candidate object corresponds to the sorting position of the preset attribute of the candidate object in the preset attribute sequence after the preset attributes of each candidate object are arranged in order, and each vector element of the object vector feature of a historical object corresponds to the sorting position of the preset attribute of the historical object in the preset attribute sequence after the preset attributes of each historical object are arranged in order.
[0098] In an optional implementation of this embodiment, the candidate objects and the historical selected objects include objects that cannot be discretely described.
[0099] In this optional implementation, as described above, the objects targeted by this disclosure can be an infinite number of types of objects. These objects cannot be exhaustively enumerated, and a unique identifier (ID) cannot be assigned to each object. In other words, this disclosure can determine recommended object attributes for objects that cannot be discretely enumerated. Because these objects cannot be discretely enumerated, they cannot be described using the ID column, and therefore can be called non-discretely describable objects. For example, navigation routes are non-discretely describable objects and do not have a fixed ID. This disclosure determines recommended object attributes for the current user based on the similarity between the candidate object set and the historical object set, as well as the similarity between the candidate object and historically selected objects in the historical object set. Furthermore, when calculating similarity, preset attributes of the candidate object and historical objects are used to characterize the environmental vector features of the candidate object set, the environmental vector features of the historical object set, the object vector features of the candidate object, and the object vector features of the historical object. This method does not require objects to be uniquely identified by ID, and objects may not have a unique identifier. Therefore, this method is applicable to both discretely describable objects (i.e., objects that can be uniquely identified by ID) and non-discretely describable objects.
[0100] In an optional implementation of this embodiment, the candidate object and the historical selected object are navigation routes.
[0101] In this optional implementation, the navigation route is an object that cannot be discretely described; therefore, the embodiments of this disclosure are applicable to the determination of the recommended attributes of the navigation route.
[0102] According to an embodiment of the present disclosure, the object recommendation method uses the above-described object recommendation attribute determination method to determine the object recommendation attributes of candidate objects in a candidate object set, and selects at least one candidate object from the candidate object set based on the object recommendation attributes, and pushes it to the current user.
[0103] In this embodiment, the object recommendation method can be executed on a terminal or a server. The terminal can be a mobile phone, iPad, computer, smartwatch, vehicle, etc. In this embodiment, for the current set of candidate objects, such as a navigation route set, object recommendation attributes are determined, and then one or more candidate objects that the current user may be more inclined to choose are selected from the candidate object set based on the object recommendation attributes and pushed to the current user.
[0104] In some embodiments, object recommendation attributes can be used as one factor in selecting from the candidate object set. Besides object recommendation attributes, other attributes can also be used to jointly determine the candidate objects to be recommended to the current user. The candidate objects pushed to the current user can be a subset of the candidate objects in the candidate object set, and can be pushed to the current user after being sorted by recommendation score from highest to lowest.
[0105] The process of determining the recommended attributes of candidate objects in the candidate object set can be found in the description of the method for determining recommended attributes of objects above, and will not be repeated here.
[0106] According to a navigation method of one embodiment of the present disclosure, the navigation method uses the above-described object recommendation attribute determination method to determine the object recommendation attributes of each candidate navigation route in the candidate navigation route set, and provides a recommended navigation route for the navigated object based on the object recommendation attributes.
[0107] In this embodiment, the navigation method can be executed on a terminal or a server. The terminal can be a mobile phone, iPad, computer, smartwatch, vehicle, etc. In this embodiment, for the current set of navigation routes, the object recommendation attribute determination method described above is used to determine the object recommendation attribute of each candidate navigation route in the candidate navigation route set. Then, based on the object recommendation attribute, one or more candidate navigation routes that the current user may prefer are selected from the candidate navigation route set and pushed to the navigating object.
[0108] The object being navigated can be a user, mobile phone, iPad, computer, smartwatch, vehicle, robot, etc. When providing navigation services to the object being navigated, the object recommendation attributes of the candidate navigation routes obtained from the path planning can be obtained based on the above method. Then, based on the object recommendation attributes, one or more recommended candidate navigation routes can be provided to the object being navigated for selection. For details, please refer to the description of the method for determining object recommendation attributes above, which will not be repeated here.
[0109] Figure 2 A flowchart illustrating a model training method according to an embodiment of this disclosure is shown. Figure 2 As shown, the model training method includes the following steps:
[0110] In step S201, a set of historical sample behavior records and a set of candidate sample objects of the sample user are obtained; the set of historical sample behavior records includes at least one set of historical sample objects, and the set of historical sample objects includes at least one historical selected sample object of the sample user;
[0111] In step S202, the first similarity between the candidate sample object set and the historical sample object set is determined using the similarity prediction model to be trained, and the second similarity between the candidate sample object in the candidate sample object set and the historical selected sample object in the historical sample object set is determined.
[0112] In step S203, the predicted recommendation attributes of the candidate sample objects in the candidate sample object set are determined based on the first similarity and the second similarity.
[0113] In step S204, the predicted recommendation attribute of the candidate sample object is used as one of the inputs to the object recommendation model to be trained, and the predicted object is determined from the set of candidate sample objects.
[0114] In step S205, the model parameters of the similarity prediction model and the object recommendation model are adjusted based on the differences between the predicted object and the target object in the candidate sample object set; the target object is the object selected by the sample user from the candidate sample object set.
[0115] In this embodiment, the model training method can be executed on a server. An object can be an object that can be described using attributes and can be recommended to users. The object's attributes can include various types, and a recommendation attribute can be one of them. For example, if the object is a product, its attributes can include, but are not limited to, price, production date, etc., while if the object is a navigation route, its attributes can include, but are not limited to, distance, duration, number of traffic lights, highway length, etc. Recommendation attributes can be attributes used to quantify the degree of preference of sample users for an object; different users can have different recommendation attributes for the same object. The recommendation system can recommend target objects that better meet the user's needs based on the object's recommendation attributes and / or other attributes.
[0116] The historical sample behavior record set may include one or more historical sample object sets that have been presented to the sample user and selected by the user in the past. This historical sample object set can be understood as a set of candidate sample objects that the sample user has faced, and it includes at least one historically selected sample object that the sample user actually selected when faced with this historical sample object set. It is understood that this historical sample object set may also include other historical sample objects that were not selected by the sample user.
[0117] The candidate sample object set is similar to the historical sample object set. It is also the set of objects that the sample user has faced and selected, and the required candidate sample objects are selected from it. For easy distinction, the candidate sample objects selected by the sample user can be called target objects.
[0118] In this embodiment of the disclosure, the similarity prediction model to be trained is used to predict the similarity between the historical sample object set and the candidate sample object set, while the object recommendation model determines the predicted object that the sample user may choose from the candidate sample object set based on the recommendation attributes of the candidate sample object. The goal of training the object recommendation model is to make the predicted object consistent with the target object actually selected by the sample user.
[0119] The recommended attributes of candidate sample objects are determined by the first similarity between the candidate sample object set and the historical sample object set predicted by the similarity prediction model, and the second similarity between each candidate sample object in the candidate sample object set and the historical selected sample object in the historical sample object set.
[0120] The object recommendation attribute is used to characterize the sample user's preference for an object, and the object recommendation model predicts one or more candidate sample objects that the sample user is most likely to select based on the object recommendation attribute.
[0121] The process of determining the recommended attributes of an object can be found in the description of the method for determining the recommended attributes of an object above, and will not be repeated here.
[0122] The input to an object recommendation model can include object recommendation attributes and other relevant information, such as other attributes of the object. The specific settings can be configured according to actual needs and are not limited here.
[0123] In this embodiment of the disclosure, the similarity prediction model used to determine similarity in the object recommendation attribute determination process and the object recommendation model can be trained together, thereby making the prediction results of the object recommendation model more accurate.
[0124] In this embodiment of the disclosure, the similarity prediction model employs an attention mechanism module. The attention mechanism module is primarily used in deep learning models, whereby it can selectively focus on a portion of all information, thereby achieving the goal of ignoring useless information and utilizing useful information.
[0125] This embodiment employs a dual attention mechanism module, which consists of two attention mechanism modules, used respectively for determining the first similarity and the second similarity.
[0126] Other details in this embodiment can be found in the description of the object recommendation attribute determination method above, and will not be repeated here.
[0127] In an optional implementation of this embodiment, determining the first similarity between the candidate sample object set and the historical sample object set includes:
[0128] The first similarity is determined based on the environmental vector features of the candidate sample object set and the environmental vector features of the historical sample object set; wherein, the environmental vector features of the candidate sample object set are determined based on the attribute distribution information of at least one preset attribute of the candidate sample object in the candidate sample object set; and the environmental vector features of the historical sample object set are determined based on the attribute distribution information of at least one preset attribute of the historical sample object in the historical sample object set.
[0129] In an optional implementation of this embodiment, determining the second similarity between candidate sample objects in the candidate sample object set and historical selected sample objects in the historical sample object set includes:
[0130] The second similarity is determined based on the object vector features of the candidate sample objects and the object vector features of the historical selected sample objects; wherein, the object vector features of the candidate sample objects are determined based on the relative position of the preset attributes of the candidate sample objects in the attribute distribution information of each candidate sample object in the candidate sample object set; the object vector features of the historical selected sample objects are determined based on the relative position of the preset attributes of the historical selections in the attribute distribution information of each historical sample object in the historical sample object set.
[0131] In an optional implementation of this embodiment, the method further includes:
[0132] Obtain the preset attributes of the candidate sample objects in the candidate sample object set, and obtain the preset attributes of the historical sample objects in the historical sample object set;
[0133] The environmental vector features of the candidate sample object set are characterized by the preset attributes of the candidate sample objects, and the environmental vector features of the historical sample object set are characterized by the preset attributes of the historical sample objects; each vector of the environmental vector features of the candidate sample object set corresponds to a preset attribute sequence including the same preset attribute of the candidate sample object in sequential order; each vector of the environmental vector features of the historical sample object set corresponds to a preset attribute sequence including the same preset attribute of the historical sample object in sequential order.
[0134] In an optional implementation of this embodiment, the method further includes:
[0135] The object vector features of the candidate sample objects are characterized using the preset attributes of the candidate sample objects and the environmental vector features of the candidate sample object set; the object vector features of the historical selected sample objects are characterized using the preset attributes of the historical selected sample objects and the environmental vector features of the historical sample object set; wherein, each element of the object vector feature of the candidate sample object includes the sorting position of the preset attribute in the preset attribute sequence of the environmental vector features of the candidate sample object set; each element of the object vector feature of the historical selected sample object includes the sorting position of the preset attribute in the preset attribute sequence of the environmental vector features of the historical sample object set.
[0136] In an optional implementation of this embodiment, the candidate sample object and the historical selected sample object include non-discrete descriptive objects.
[0137] In an optional implementation of this embodiment, the candidate sample object and the historical selected sample object are navigation routes.
[0138] For details on the above optional implementation methods, please refer to the description of the method for determining the recommended attributes of an object above, which will not be repeated here.
[0139] Figure 3 A flowchart illustrating an object recommendation method according to an embodiment of this disclosure is shown. Figure 3 As shown, the object recommendation method includes the following steps:
[0140] In step S301, the user's historical behavior record set and candidate object set are obtained; the historical behavior record set includes at least one historical object set, and the historical object set includes at least one historical selected object of the user;
[0141] In step S302, a first similarity between the candidate object set and the historical object set is determined using a similarity prediction model, and a second similarity between the candidate objects in the candidate object set and the historical selected objects in the historical object set is determined.
[0142] In step S303, the recommended attributes of the candidate objects in the candidate object set are determined based on the first similarity and the second similarity;
[0143] In step S304, the recommendation attribute of the candidate object is used as one of the inputs to the object recommendation model to determine the predicted object from the candidate object set;
[0144] In step S305, the predicted object is recommended to the current user.
[0145] In this embodiment, the object recommendation method can be executed on a terminal or a server. The terminal can be a mobile phone, iPad, computer, smartwatch, vehicle, etc. In this embodiment, for the current set of candidate objects, such as a navigation route set, object recommendation attributes are determined, and then one or more candidate objects that the current user may be more inclined to choose are selected from the candidate object set based on the object recommendation attributes and pushed to the current user.
[0146] In some embodiments, object recommendation attributes can be used as one factor in selecting from the candidate object set. Besides object recommendation attributes, other attributes can also be used to jointly determine the candidate objects to be recommended to the current user. The candidate objects pushed to the current user can be a subset of the candidate objects in the candidate object set, and can be pushed to the current user after being sorted by recommendation score from highest to lowest.
[0147] The process of determining the object recommendation attributes of candidate objects in the candidate object set, as well as other details, can be found in the description of the object recommendation attribute determination method and model training method above, and will not be repeated here.
[0148] Object recommendation models can predict one or more candidate objects that the current user is most likely to select from a set of candidate objects based on object recommendation attributes and other relevant information, such as other attributes of the object, and then push the predicted objects to the current user. This can improve the efficiency of the current user's selection and save the user's time.
[0149] Figure 4A This diagram illustrates an implementation of an object recommendation process according to an embodiment of the present disclosure. This method utilizes user historical behavior records to predict the user's preference for each object in the current candidate object set, thereby optimizing the recommendation performance of the recommendation system and improving the user experience. This method is applicable to recommendation tasks for all describable objects.
[0150] like Figure 4A As shown, this method includes seven steps, with the numbers in the lower left corner representing the step number. First, it acquires the user's historical behavior records. Then, it calculates the environment vector features and the object vector features for each object in the current candidate object set, respectively. Based on these two types of environment vector features, an environment similarity matrix can be calculated. Its physical meaning is the similarity between the environment of the current candidate object set and the environment of the historical records; the higher the similarity, the greater the influence of the historical records on user preferences. Similarly, based on the two types of object vector features, an object similarity matrix can be calculated. Its physical meaning is the similarity between the objects in the current candidate set and the objects selected by the user in the past; the higher the similarity, the greater the influence of the historically selected objects on user preferences. The environment similarity matrix and the object similarity matrix can ultimately generate recommendation attributes representing the magnitude of preferences, thus enabling application in object recommendation systems.
[0151] In steps 3 and 5 of obtaining the similarity matrix, an attention mechanism is used, which filters users' historical behavior records through similarity calculation.
[0152] Before introducing the specific steps, let's first introduce the relevant definitions:
[0153] T = {t1, t2, ..., t} i ,…,tN} represents the set of candidate objects, N represents the number of objects, and t i Let T' represent the i-th object. T' is the current set of candidate objects.
[0154] t i = <f1,f2,…,f M Each object can be described by M preset attributes, where M is a natural number greater than or equal to 1.
[0155] T c ={t c1 ,t c2 ,…,t ck} is a subset of set T, consisting of the user's historical selections. c There is at least one element in the set, i.e., K is greater than or equal to 1.
[0156] H={(T1,T 1c ),(T2,T 2c ),…,(T D ,T DC )} represents the set of user historical behavior records, T1……T D This represents a set of historical objects. The number of objects selected by the user, K, can vary across different historical object sets.
[0157] The detailed steps are described below.
[0158] Step 1: Data Preparation Steps
[0159] The user's historical behavior record set H can be obtained from historical logs.
[0160] Step 2: Obtain environmental vector features:
[0161] This step mainly involves obtaining the environmental vector features corresponding to the candidate object set.
[0162] For a set of candidate objects or a set of historical objects T, the environmental vector features S can be obtained in the following two steps:
[0163] AT can be represented as an object attribute matrix, where each row represents an object and each column represents a preset attribute. Superscripts represent object numbers, and subscripts represent attribute numbers.
[0164]
[0165] b. Sort each column of T sequentially to obtain the environment vector matrix S. For example, each column can be sorted by the quantized value of a preset attribute from largest to smallest or smallest to largest. As shown below, after sorting each column, the order of the objects will be disordered, so "?" is used to replace the superscript. It should be clear that the sorting between columns does not interfere with each other. For example, the object with the largest attribute 1 may be object 1, and the object with the largest attribute 2 may be object 3.
[0166]
[0167] Performing the above operations on the current candidate object set T′ yields the current environment vector matrix S′. Performing the above operations on the historical object set in each record of the historical behavior record set H yields the historical environment vector matrix set S. H ={S1,S2,…,S D}
[0168] Step 3: Obtain the environment similarity matrix:
[0169] This step primarily obtains the similarity between the current environment and historical environments. Environment vector features are equivalent to the distribution of different preset attributes across all objects in a set of objects.
[0170] For S H Each historical environment vector matrix can be compared with the current environment vector matrix S′ to obtain an environment similarity value. This can be achieved by converting the matrices into 1D vectors and performing an inner product, or by inputting the two matrices into an object similarity prediction model and obtaining a value at the output layer. The method or model for calculating similarity is not restricted here. Calculating the similarity between all historical environment vector matrices and the current environment matrix separately can construct a 1×D environment similarity matrix Sim. s =[e1 e2…e D ].
[0171] Step 4: Obtain object vector features:
[0172] This step primarily obtains the vector representation of the object within the environment matrix. Object vector features can include the object's position within the environment, such as its position in terms of time or distance (e.g., first in distance, third in time, etc.). The vector features also include the position of each of the object's preset attributes within various distributions. If there are 10 historical behavior records, there are corresponding 10 historical environments.
[0173] For a set of candidate objects or a set of historical objects T, step 2 yields its environment vector matrix S. Then, for the i-th object t... i = <f1,f2,…,f M >, let r i = <rank1,rank2,…,rank M> represents the object vector features under the environment vector matrix. Where, rank i This represents the property f of the object. i The ranking of all objects in the object collection, i.e., f i The ranking of the i-th column in S.
[0174] For T′, we can obtain the representation of each candidate object in the environment vector matrix S′, denoted as the set R′={r′1,r′2,…,r′ N For each set of historical objects T in the set of historical behavior records H. i Calculate the object T selected by the user ic In the environment vector matrix S i ∈S H The object vector features are denoted as set R. i ={r1,r2,…,r K}, each R i The set R = {R1, R2, ..., R} is composed of {R1, R2, ..., R}. D}
[0175] Step 5: Obtain the object similarity matrix:
[0176] This step primarily obtains the similarity between candidate objects in the current candidate object set and objects selected by the user in the historical behavior record set.
[0177] Based on the set of historical objects in historical behavior records, the environmental vector features R of the user-selected object. i ={r1,r2,…,r K}, and the environmental vector features R′={r′1,r′2,…,r′} of the current candidate object set. N The similarity matrix between the current candidate object and the selected object in the historical object set can be calculated, as shown below:
[0178]
[0179] in The similarity between objects is calculated based on vectors r1 and r′1, and so on. This can be achieved through vector dot product, or by inputting two vectors into the object similarity prediction model and obtaining a single value at the output layer. The method or model for calculating similarity is not restricted here. Summing each row of matrix A yields the similarity vector between each candidate object in the current candidate set and the historical object set. 1 ,b 2 ,…,b N >, among which
[0180] The above vectors can be calculated for both the current candidate object and all historical object sets. These vectors can form an object similarity matrix of dimension D×N, where the superscript represents the candidate object index in the current candidate object set and the subscript represents the index of the historical object set, as shown below:
[0181]
[0182] Step 6: Preference value generation
[0183] Sim, the environmental similarity matrix obtained in step 3 s Sim, the object similarity matrix obtained in step 5 t Performing matrix multiplication, we get:
[0184]
[0185] Then, by summing each column of matrix B, we can obtain the user's preference value for each candidate: P = [p1 p2 …p N ],in
[0186] Step 7 Application:
[0187] The preference value P of the candidate object generated in step 6 can be used as the recommendation attribute of the candidate object and added to the recommendation task to optimize the recommendation system.
[0188] If the method chosen for calculating similarity in steps 3 and 5 is a trainable similarity prediction model, then steps 1 to 6 can be added to the recommendation system as modules, so that the model parameters in steps 3 and 5 can be trained together.
[0189] The above-described solution proposed in this disclosure can be applied to a navigation route recommendation system, thereby improving route recommendation-related metrics.
[0190] In the application of navigation route recommendation, the object is the navigation route. The attributes of the object can include, but are not limited to, nearly 20 main attributes such as estimated arrival time, route length, traffic lights, and toll. Steps 3 and 5 use a trainable similarity prediction model to determine the similarity.
[0191] like Figure 4B As shown, the dashed box encloses the recommendation attribute determination framework proposed in this embodiment. The final recommendation attribute values obtained are added to the original route recommendation model for route scoring. This framework can be trained together with the route recommendation model, and the model parameters of the similarity prediction model in steps 3 and 5 can be updated together with the model parameters of the route recommendation model.
[0192] The following are embodiments of the apparatus disclosed herein, which can be used to execute embodiments of the method disclosed herein.
[0193] Figure 5 This diagram illustrates a structural block diagram of an object recommendation attribute determination device according to an embodiment of the present disclosure. This device can be implemented as part or all of an electronic device through software, hardware, or a combination of both. Figure 5 As shown, the object recommendation attribute determination device includes:
[0194] The first acquisition module 501 is configured to acquire a set of historical behavior records of the current user and a set of candidate objects to be recommended to the current user; the set of historical behavior records includes at least one set of historical objects, and the set of historical objects includes at least one historical selected object of the current user;
[0195] The first determining module 502 is configured to determine a first similarity between the candidate object set and the historical object set, and to determine a second similarity between the candidate objects in the candidate object set and the historical selected objects in the historical object set;
[0196] The second determining module 503 is configured to determine the recommended attributes of the candidate objects in the candidate object set based on the first similarity and the second similarity.
[0197] In this embodiment, the object recommendation attribute determination device can be executed on a server. An object can be an object that can be described using attributes and can be recommended to a user. The object's attributes can include various types, and a recommendation attribute can be one of them. For example, if the object is a product, its attributes may include, but are not limited to, price, production date, etc., while if the object is a navigation route, its attributes may include, but are not limited to, distance, duration, number of traffic lights, highway length, etc. The recommendation attribute can be an attribute used to quantify the current user's preference for the object; different users can have different recommendation attributes for the same object. The recommendation system can recommend target objects that better meet the user's needs based on the object's recommendation attributes and / or other attributes.
[0198] The historical behavior record set may include one or more historical object sets that have been presented to the current user and selected by the current user in the past. This historical object set can be understood as a set of candidate objects that the current user has faced, and it includes at least one historically selected object that the current user actually selected when faced with that set. It is understood that the historical object set may also include other historical objects that were not selected by the current user.
[0199] The candidate object set can be a set of candidate objects that may meet the current user's current needs, and is to be pushed to the current user by the recommendation system for selection. This candidate object set may include at least one candidate object. To save user time and improve user experience, the recommendation system can select one or more candidate objects that the current user is most likely to choose from the candidate objects based on the current user's preferences, and then push them to the current user. Therefore, embodiments of this disclosure propose the above-described apparatus for determining the current user's preference for each candidate object from the candidate object set, characterizing the magnitude of this preference using object recommendation attributes, and then recommending one or more candidate objects that are most likely to be selected by the current user based on these object recommendation attributes.
[0200] In order to determine the current user's preference for all or some of the candidate objects in the candidate object set, this embodiment of the disclosure determines a first similarity between the candidate object set and each of all or some of the historical object sets in the historical behavior record set, and determines a second similarity between each candidate object in the candidate object set and each historical selected object in each historical object set, and then determines the recommended attributes of each candidate object in the candidate object set for the current user based on the first similarity and the second similarity.
[0201] It should be noted that in this embodiment, the first similarity is used to characterize the similarity between the current user's current environment (i.e., the current set of candidate objects) and the historical environments the current user has faced in the past (i.e., the historical set of objects). The second similarity is used to characterize the similarity between each candidate object available for selection in the current environment and the historical selected object in the historical environment. When both the first and second similarities for a target object in the candidate object set are high, it can be considered that the current user's current environment (i.e., the candidate object set) is similar to the historical environment (i.e., the historical object set), and that the target object is relatively similar to the historical selected object in the historical object set. In this case, it can be considered that the current user has a high degree of preference for the target object, and the recommendation attribute of the target object can be set higher to indicate a greater inclination to recommend the target object to the user. That is, for each candidate object in the candidate object set, its recommendation attribute is used to characterize the current user's degree of preference for the candidate object, and the degree of preference depends on the similarity between the candidate object set and the historical object set, as well as the similarity between the candidate object and the historical selected object in the historical object set.
[0202] In this embodiment of the disclosure, when determining the recommendation attributes of an object, a set of candidate objects to be recommended to the current user and a set of the current user's historical behavior records are obtained. The set of historical behavior records includes at least one set of historical objects that the current user has encountered and selected in the past, and this set of historical objects includes historically selected objects chosen by the current user. Based on this set of historical behavior records, a first similarity between the candidate object set and the historical object set can be determined, and then a second similarity between each candidate object in the candidate object set and historically selected objects in the historical object set can be determined. The recommendation attributes of the candidate objects are then determined based on the first and second similarities. This embodiment of the disclosure determines the first similarity between the current environment (the candidate object set currently faced by the current user) and the historical environment (the historical object set previously faced by the current user), and then determines the second similarity between the historically selected objects chosen by the current user in each historical environment and the candidate objects, and then determines the recommendation attributes of the candidate objects based on the first and second similarities. The above method takes into account the different preferences of the current user when facing different environments, so it is particularly suitable for recommendation scenarios with an infinite number of environments. In addition, it also considers the similarity between the current user's historical selected objects and candidate objects, and determines the object recommendation attributes by combining environmental similarity and object similarity, which improves the accuracy of recommendation results.
[0203] In an optional implementation of this embodiment, the first determining module includes:
[0204] The first determining submodule is configured to determine the first similarity based on the environmental vector features of the candidate object set and the environmental vector features of the historical object set; wherein, the environmental vector features of the candidate object set are determined based on the attribute distribution information of at least one preset attribute of the candidate object in the candidate object set; and the environmental vector features of the historical object set are determined based on the attribute distribution information of at least one preset attribute of the historical object in the historical object set.
[0205] In an optional implementation of this embodiment, the second determining module includes:
[0206] The second determining submodule is configured to determine the second similarity based on the object vector features of the candidate objects and the object vector features of the historically selected objects; wherein, the object vector features of the candidate objects are determined based on the relative position of the preset attributes of the candidate objects in the attribute distribution information of each candidate object in the candidate object set; and the object vector features of the historically selected objects are determined based on the relative position of the preset attributes of the historically selected objects in the attribute distribution information of each historical object in the historical object set.
[0207] In an optional implementation of this embodiment, the apparatus further includes:
[0208] The second acquisition module is configured to acquire preset attributes of the candidate objects in the candidate object set and to acquire preset attributes of the historical objects in the historical object set.
[0209] The first characterization module is configured to characterize the environmental vector features of the candidate object set using preset attributes of the candidate objects, and to characterize the environmental vector features of the historical object set using preset attributes of the historical objects; each vector of the environmental vector features of the candidate object set corresponds to a preset attribute sequence including the same preset attribute of the candidate object in sequential order; each vector of the environmental vector features of the historical object set corresponds to a preset attribute sequence including the same preset attribute of the historical object in sequential order.
[0210] In an optional implementation of this embodiment, the apparatus further includes:
[0211] The second characterization module is configured to characterize the object vector features of the candidate objects using the preset attributes of the candidate objects and the environmental vector features of the candidate object set, and to characterize the object vector features of the historically selected objects using the preset attributes of the historically selected objects and the environmental vector features of the historically selected objects set; wherein each element of the object vector features of the candidate objects includes the sorting position of the preset attribute in the preset attribute sequence of the environmental vector features of the candidate object set; and each element of the object vector features of the historically selected objects includes the sorting position of the preset attribute in the preset attribute sequence of the environmental vector features of the historically selected objects set.
[0212] In an optional implementation of this embodiment, the candidate objects and the historical selected objects include objects that cannot be discretely described.
[0213] In an optional implementation of this embodiment, the candidate object and the historical selected object are navigation routes.
[0214] The object recommendation attribute determination device in this embodiment corresponds to the object recommendation attribute determination method described above. For details, please refer to the description of the object recommendation attribute determination method above, which will not be repeated here.
[0215] According to an embodiment of the present disclosure, the object recommendation apparatus uses the aforementioned object recommendation attribute determining device to determine the object recommendation attributes of candidate objects in a candidate object set, and selects at least one candidate object from the candidate object set based on the object recommendation attributes, and pushes it to the current user.
[0216] In this embodiment, the object recommendation device can be executed on a terminal or a server. The terminal can be a mobile phone, iPad, computer, smartwatch, vehicle, etc. In this embodiment, for the current set of candidate objects, such as a set of navigation routes, object recommendation attributes are determined, and then one or more candidate objects that the current user may be more inclined to choose are selected from the candidate object set based on the object recommendation attributes and pushed to the current user.
[0217] In some embodiments, object recommendation attributes can be used as one factor in selecting from the candidate object set. Besides object recommendation attributes, other attributes can also be used to jointly determine the candidate objects to be recommended to the current user. The candidate objects pushed to the current user can be a subset of the candidate objects in the candidate object set, and can be pushed to the current user after being sorted by recommendation score from highest to lowest.
[0218] The process of determining the object recommendation attributes of candidate objects in the candidate object set can be found in the description of the object recommendation attribute determination device above, and will not be repeated here.
[0219] According to one embodiment of the present disclosure, the navigation device uses the aforementioned object recommendation attribute determining device to determine the object recommendation attribute of each candidate navigation route in the candidate navigation route set, and provides a recommended navigation route for the navigable object based on the object recommendation attribute.
[0220] In this embodiment, the navigation device can be executed on a terminal or a server. The terminal can be a mobile phone, iPad, computer, smartwatch, vehicle, etc. In this embodiment, for the current set of navigation routes, the object recommendation attribute determination device described above is used to determine the object recommendation attribute of each candidate navigation route in the candidate navigation route set. Then, based on the object recommendation attribute, one or more candidate navigation routes that the current user may prefer are selected from the candidate navigation route set and pushed to the navigating object.
[0221] The object being navigated can be a user, mobile phone, iPad, computer, smartwatch, vehicle, robot, etc. When providing navigation services to the object being navigated, the device can obtain the object recommendation attributes of the candidate navigation routes obtained from the path planning, and then provide one or more recommended candidate navigation routes for the object being navigated to choose from based on the object recommendation attributes. For details, please refer to the description of the object recommendation attribute determination device above, which will not be repeated here.
[0222] Figure 6 A flowchart of a model training apparatus according to an embodiment of the present disclosure is shown. Figure 6 As shown, the model training device includes:
[0223] The third acquisition module 601 is configured to acquire a set of historical sample behavior records and a set of candidate sample objects of the sample user; the set of historical sample behavior records includes at least one set of historical sample objects, and the set of historical sample objects includes at least one historical selected sample object of the sample user.
[0224] The third determining module 602 is configured to use a similarity prediction model to be trained to determine a first similarity between the candidate sample object set and the historical sample object set, and to determine a second similarity between a candidate sample object in the candidate sample object set and a historical selected sample object in the historical sample object set.
[0225] The fourth determining module 603 is configured to determine the predicted recommendation attribute of the candidate sample object in the candidate sample object set based on the first similarity and the second similarity;
[0226] The fifth determining module 604 is configured to use the predicted recommendation attribute of the candidate sample object as one of the inputs to the object recommendation model to be trained, and to determine the predicted object from the set of candidate sample objects.
[0227] The parameter adjustment module 605 is configured to adjust the model parameters of the similarity prediction model and the object recommendation model based on the differences between the predicted object and the target object in the candidate sample object set; the target object is the object selected by the sample user from the candidate sample object set.
[0228] In this embodiment, the model training device can be executed on a server. An object can be an object that can be described using attributes and can be recommended to users. The attributes of an object can include various types, and a recommendation attribute can be one of them. For example, if the object is a product, its attributes can include, but are not limited to, price, production date, etc., while if the object is a navigation route, its attributes can include, but are not limited to, distance, duration, number of traffic lights, highway length, etc. Recommendation attributes can be attributes used to quantify the degree of preference of sample users for an object; different users can have different recommendation attributes for the same object. The recommendation system can recommend target objects that better meet the user's needs based on the object's recommendation attributes and / or other attributes.
[0229] The historical sample behavior record set may include one or more historical sample object sets that have been presented to the sample user and selected by the user in the past. This historical sample object set can be understood as a set of candidate sample objects that the sample user has faced, and it includes at least one historically selected sample object that the sample user actually selected when faced with this historical sample object set. It is understood that this historical sample object set may also include other historical sample objects that were not selected by the sample user.
[0230] The candidate sample object set is similar to the historical sample object set. It is also the set of objects that the sample user has faced and selected, and the required candidate sample objects are selected from it. For easy distinction, the candidate sample objects selected by the sample user can be called target objects.
[0231] In this embodiment of the disclosure, the similarity prediction model to be trained is used to predict the similarity between the historical sample object set and the candidate sample object set, while the object recommendation model determines the predicted object that the sample user may choose from the candidate sample object set based on the recommendation attributes of the candidate sample object. The goal of training the object recommendation model is to make the predicted object consistent with the target object actually selected by the sample user.
[0232] The recommended attributes of candidate sample objects are determined by the first similarity between the candidate sample object set and the historical sample object set predicted by the similarity prediction model, and the second similarity between each candidate sample object in the candidate sample object set and the historical selected sample object in the historical sample object set.
[0233] The object recommendation attribute is used to characterize the sample user's preference for an object, and the object recommendation model predicts one or more candidate sample objects that the sample user is most likely to select based on the object recommendation attribute.
[0234] The process of determining the recommended attributes of an object can be found in the description of the object recommended attribute determination device above, and will not be repeated here.
[0235] The input to an object recommendation model can include object recommendation attributes and other relevant information, such as other attributes of the object. The specific settings can be configured according to actual needs and are not limited here.
[0236] In this embodiment of the disclosure, the similarity prediction model used to determine similarity in the object recommendation attribute determination process and the object recommendation model can be trained together, thereby making the prediction results of the object recommendation model more accurate.
[0237] Other details in this embodiment can be found in the description of the object recommendation attribute determination device above, and will not be repeated here.
[0238] Figure 7 A flowchart of an object recommendation device according to an embodiment of the present disclosure is shown. Figure 7 As shown, the object recommendation device includes:
[0239] The fourth acquisition module 701 is configured to acquire a set of historical behavior records of the user and a set of candidate objects; the set of historical behavior records includes at least one set of historical objects, and the set of historical objects includes at least one historical selected object of the user;
[0240] The sixth determining module 702 is configured to use a similarity prediction model to determine a first similarity between the candidate object set and the historical object set, and to determine a second similarity between a candidate object in the candidate object set and a historical selected object in the historical object set;
[0241] The seventh determining module 703 is configured to determine the recommended attributes of the candidate objects in the candidate object set based on the first similarity and the second similarity;
[0242] The eighth determining module 704 is configured to use the recommendation attributes of the candidate objects as one of the inputs to the object recommendation model to determine the predicted object from the candidate object set;
[0243] The recommendation module 705 is configured to recommend the predicted object to the current user.
[0244] In this embodiment, the object recommendation device can be executed on a terminal or a server. The terminal can be a mobile phone, iPad, computer, smartwatch, vehicle, etc. In this embodiment, for the current set of candidate objects, such as a set of navigation routes, object recommendation attributes are determined, and then one or more candidate objects that the current user may be more inclined to choose are selected from the candidate object set based on the object recommendation attributes and pushed to the current user.
[0245] In some embodiments, object recommendation attributes can be used as one factor in selecting from the candidate object set. Besides object recommendation attributes, other attributes can also be used to jointly determine the candidate objects to be recommended to the current user. The candidate objects pushed to the current user can be a subset of the candidate objects in the candidate object set, and can be pushed to the current user after being sorted by recommendation score from highest to lowest.
[0246] The process of determining the object recommendation attributes of candidate objects in the candidate object set, as well as other details, can be found in the description of the object recommendation attribute determination device and the model training device above, and will not be repeated here.
[0247] Object recommendation models can predict one or more candidate objects that the current user is most likely to select from a set of candidate objects based on object recommendation attributes and other relevant information, such as other attributes of the object, and then push the predicted objects to the current user. This can improve the efficiency of the current user's selection and save the user's time.
[0248] Figure 8 This is a schematic diagram of the structure of an electronic device suitable for implementing an object recommendation attribute determination method, an object recommendation method, a navigation method, and / or a model training method according to an embodiment of the present disclosure.
[0249] like Figure 8 As shown, the electronic device 800 includes a processing unit 801, which can be implemented as a CPU, GPU, FPGA, NPU, or other processing unit. The processing unit 801 can execute various processes according to any of the above-described methods of this disclosure, based on a program stored in the read-only memory (ROM) 802 or a program loaded from the storage portion 808 into the random access memory (RAM) 803. The RAM 803 also stores various programs and data required for the operation of the electronic device 800. The processing unit 801, ROM 802, and RAM 803 are interconnected via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0250] The following components are connected to I / O interface 805: an input section 806 including a keyboard, mouse, etc.; an output section 807 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a LAN card, modem, etc. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to I / O interface 805 as needed. A removable medium 811, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on drive 810 as needed so that computer programs read from it can be installed into storage section 808 as needed.
[0251] In particular, according to embodiments of this disclosure, any of the methods described above in the embodiments of this disclosure can be implemented as a computer software program. For example, embodiments of this disclosure include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program containing program code for performing any of the methods in the embodiments of this disclosure. In such an embodiment, the computer program can be downloaded and installed from a network via communication section 809, and / or installed from removable medium 811.
[0252] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0253] The units or modules described in the embodiments of this disclosure can be implemented in software or hardware. The described units or modules can also be located in a processor, and the names of these units or modules do not necessarily constitute a limitation on the unit or module itself.
[0254] In another aspect, this disclosure also provides a computer-readable storage medium, which may be a computer-readable storage medium included in the apparatus described in the above embodiments; or it may be a standalone computer-readable storage medium not assembled into a device. The computer-readable storage medium stores one or more programs, which are used by one or more processors to perform the methods described in this disclosure.
[0255] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of the invention involved in this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the inventive concept. For example, technical solutions formed by substituting the above-described features with (but not limited to) technical features disclosed in this disclosure that have similar functions.
Claims
1. A method for determining recommended attributes of an object, wherein, include: Get the current user's historical behavior records and the set of candidate objects to be recommended to the current user; The historical behavior record set includes at least one set of historical objects presented to the current user for selection. The set of historical objects includes at least one historically selected object of the current user. The candidate object and the historically selected object are navigation routes. A first similarity is determined between the candidate object set and the historical object set, and a second similarity is determined between the candidate objects in the candidate object set and the historical selected objects in the historical object set; wherein, the first similarity is used to characterize the similarity between the current environment faced by the current user and the historical environment faced by the current user in the past, the current environment being the current set of candidate objects to be selected, and the historical environment being the historical set of objects to be selected in the past; the second similarity is used to characterize the similarity between each candidate object available for selection by the current user in the current environment and the historical selected object selected by the current user in the historical environment; Based on the first similarity and the second similarity, the recommended attributes of the candidate objects in the candidate object set are determined, and the recommended attributes are used to provide recommended navigation routes for the navigated object.
2. The method according to claim 1, wherein, Determining the first similarity between the candidate object set and the historical object set includes: The first similarity is determined based on the environmental vector features of the candidate object set and the environmental vector features of the historical object set; wherein, the environmental vector features of the candidate object set are determined based on the attribute distribution information of at least one preset attribute of the candidate object in the candidate object set; and the environmental vector features of the historical object set are determined based on the attribute distribution information of at least one preset attribute of the historical object in the historical object set.
3. The method according to claim 1, wherein, Determining the second similarity between candidate objects in the candidate object set and historical selected objects in the historical object set includes: The second similarity is determined based on the object vector features of the candidate objects and the object vector features of the historically selected objects; wherein, the object vector features of the candidate objects are determined based on the relative position of the preset attributes of the candidate objects in the attribute distribution information of each candidate object in the candidate object set; the object vector features of the historically selected objects are determined based on the relative position of the preset attributes of the historically selected objects in the attribute distribution information of each historical object in the historical object set.
4. The method according to any one of claims 1-3, wherein, The method further includes: Obtain the preset attributes of the candidate objects in the candidate object set, and obtain the preset attributes of the historical objects in the historical object set; The environmental vector features of the candidate object set are characterized by the preset attributes of the candidate objects, and the environmental vector features of the historical object set are characterized by the preset attributes of the historical objects. Each vector of the environmental vector features of the candidate object set corresponds to a preset attribute sequence in which the same preset attribute of the candidate object is ordered. Each vector of the environmental vector features of the historical object set corresponds to a preset attribute sequence in which the same preset attribute of the historical object is ordered.
5. The method according to claim 4, wherein, The method further includes: The object vector features of the candidate objects are characterized by the preset attributes of the candidate objects and the environmental vector features of the candidate object set, and the object vector features of the historical selected objects are characterized by the preset attributes of the historical selected objects and the environmental vector features of the historical object set; wherein, each element of the object vector feature of the candidate object includes the sorting position of the preset attribute in the preset attribute sequence of the environmental vector features of the candidate object set; each element of the object vector feature of the historical selected object includes the sorting position of the preset attribute in the preset attribute sequence of the environmental vector features of the historical object set.
6. The method according to any one of claims 1-3 and 5, wherein, The candidate objects and the historical selected objects include objects that cannot be discretely described.
7. An object recommendation method, comprising: The method described in any one of claims 1-6 is used to determine the object recommendation attributes of candidate objects in the candidate object set, and to select at least one candidate object from the candidate object set based on the object recommendation attributes and push it to the current user.
8. A navigation method, comprising: The method described in any one of claims 1-6 is used to determine the object recommendation attributes of each candidate navigation route in the candidate navigation route set, and a recommended navigation route is provided to the navigated object based on the object recommendation attributes.
9. A model training method, wherein, include: Obtain the historical sample behavior records of the sample users and the candidate sample object set; The historical sample behavior record set includes at least one set of historical sample objects presented to the current user for selection. The set of historical sample objects includes at least one historical selected sample object of the sample user. The candidate sample object and the historical selected sample object are navigation routes. A first similarity is determined between the candidate sample object set and the historical sample object set using a similarity prediction model to be trained, and a second similarity is determined between candidate sample objects in the candidate sample object set and historically selected sample objects in the historical sample object set; wherein, the first similarity is used to characterize the similarity between the current environment faced by the user and the historical environments faced by the user in the past, the current environment being the current set of candidate objects to be selected, and the historical environment being the historical set of objects to be selected in the past; the second similarity is used to characterize the similarity between each candidate object available for selection by the user in the current environment and the historically selected object selected by the user in the historical environment; Based on the first similarity and the second similarity, the predicted recommendation attributes of the candidate sample objects in the candidate sample object set are determined, and the recommendation attributes are used to provide recommended navigation routes for the navigated object; The predicted recommendation attributes of the candidate sample objects are used as one of the inputs to the object recommendation model to be trained, and the predicted objects are determined from the set of candidate sample objects. The model parameters of the similarity prediction model and the object recommendation model are adjusted based on the differences between the predicted object and the target object in the candidate sample object set; the target object is the object selected by the sample user from the candidate sample object set.
10. An object recommendation method, wherein, include: Obtain the user's historical behavior record set and candidate object set; the historical behavior record set includes at least one historical object set, the historical object set includes at least one historical selected object presented to the current user for selection by the user, and the candidate object and the historical selected object are navigation routes; A first similarity is determined between the candidate object set and the historical object set using a similarity prediction model, and a second similarity is determined between the candidate objects in the candidate object set and the historical selected objects in the historical object set; wherein, the first similarity is used to characterize the similarity between the current environment faced by the user and the historical environments faced by the user in the past, the current environment being the current set of candidate objects to be selected, and the historical environment being the historical set of objects to be selected in the past; the second similarity is used to characterize the similarity between each candidate object available for selection by the user in the current environment and the historical selected objects selected by the user in the historical environment; Based on the first similarity and the second similarity, the recommended attributes of the candidate objects in the candidate object set are determined, and the recommended attributes are used to provide recommended navigation routes for the navigated object; The recommended attributes of the candidate objects are used as one of the inputs to the object recommendation model to determine the predicted object from the set of candidate objects. The predicted object is recommended to the user.
11. An object recommendation attribute determination device, wherein, include: The first acquisition module is configured to acquire the current user's historical behavior records and the set of candidate objects to be recommended to the current user. The historical behavior record set includes at least one set of historical objects presented to the current user for selection. The set of historical objects includes at least one historically selected object of the current user. The candidate object and the historically selected object are navigation routes. The first determining module is configured to determine a first similarity between the candidate object set and the historical object set, and to determine a second similarity between candidate objects in the candidate object set and historically selected objects in the historical object set; wherein, the first similarity is used to characterize the similarity between the current environment faced by the current user and the historical environments faced by the current user in the past, the current environment being the current set of candidate objects to be selected, and the historical environment being the historical set of objects to be selected in the past; the second similarity is used to characterize the similarity between each candidate object available for selection by the current user in the current environment and the historically selected object selected by the current user in the historical environment; The second determining module is configured to determine the recommended attributes of the candidate objects in the candidate object set based on the first similarity and the second similarity, the recommended attributes being used to provide recommended navigation routes for the navigated object.
12. An electronic device, wherein, The method includes a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the method according to any one of claims 1-10.
13. A computer program product comprising computer instructions, wherein, When executed by a processor, the computer instructions implement the method described in any one of claims 1-10.
Citation Information
Patent Citations
Method and system for constructing recommendation object candidate set
CN110569446A
Search method and device, electronic equipment and storage medium
CN111523962A
