Resource recommendation method and device, equipment and medium

By acquiring and dynamically updating object characteristics and combining resource characteristics, the recommendation system can recommend resources more accurately, solving the problem of insufficient resource recommendation accuracy in the existing technology and achieving a more efficient personalized recommendation effect.

CN118733876APending Publication Date: 2024-10-01BEIJING BAIDU NETCOM SCI & TECH CO LTD

Patent Information

Application Number
CN202410782825.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing resource recommendation systems have challenges in improving the accuracy of resource recommendation, especially because object-side features are usually static and difficult to dynamically reflect the behavior patterns and preferences of the target object.

Method used

By obtaining the historical trajectory sequence and current trajectory data of the target object, the object characteristics are dynamically obtained, combined with the resource characteristics of the candidate resources, the target resource is determined and recommended to the target object. This method uses the sequentially arranged historical trajectory data and current trajectory data in the historical trajectory sequence to dynamically update object features and improve the accuracy and personalization of resource recommendations.

Benefits of technology

The accuracy of resource recommendation and personalized recommendation effect are improved. Dynamic object features can better reflect the behavior patterns and preferences of the target object, enhance the correlation with current resources, and reduce the risk of model overfitting and cold start problems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733876A_ABST
    Figure CN118733876A_ABST
Patent Text Reader

Abstract

The invention provides a resource recommendation method and device, equipment and a storage medium, and relates to the technical field of artificial intelligence, in particular to the technical fields of big data, intelligent recommendation and the like. The resource recommendation method comprises the steps of obtaining a historical track sequence of a target object; the historical track sequence comprises multiple pieces of historical track data arranged in sequence, the historical track data are used for representing resources targeted by historical behaviors of the target object, and the historical behaviors occur within a preset duration before the current moment; obtaining object features of the target object based on the historical track sequence and current track data of the target object; the current track data is used for representing resources targeted by the current behavior of the target object at the current moment; and based on the object features and the resource features of the candidate resources, determining a target resource in the candidate resources, and recommending the target resource to the target object.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of artificial intelligence technology, specifically to technical fields such as big data and intelligent recommendation, and in particular to a resource recommendation method, device, equipment and medium. Background Art

[0002] The resource recommendation system recommends target resources for a target object based on the object-side features of the target object and the resource-side features of the candidate resources.

[0003] How to improve the accuracy of the recommended target resources is a problem that needs to be solved. Summary of the invention

[0004] The present disclosure provides a resource recommendation method, apparatus, device and medium.

[0005] According to one aspect of the present disclosure, a resource recommendation method is provided, comprising: obtaining a historical trajectory sequence of a target object; the historical trajectory sequence comprises a plurality of historical trajectory data arranged in order, the historical trajectory data being used to characterize resources targeted by historical behaviors of the target object, the historical behaviors occurring within a preset time period before a current moment; obtaining object features of the target object based on the historical trajectory sequence and current trajectory data of the target object; the current trajectory data being used to characterize resources targeted by current behaviors of the target object at the current moment; determining a target resource from the candidate resources based on the object features and resource features of candidate resources, and recommending the target resource to the target object.

[0006] According to another aspect of the present disclosure, a resource recommendation device is provided, comprising: a first acquisition module, configured to acquire a historical trajectory sequence of a target object; the historical trajectory sequence comprises a plurality of historical trajectory data arranged in sequence, the historical trajectory data being used to characterize resources targeted by historical behaviors of the target object, the historical behaviors occurring within a preset time period before a current moment; a second acquisition module, configured to acquire object features of the target object based on the historical trajectory sequence and current trajectory data of the target object; the current trajectory data being used to characterize resources targeted by current behaviors of the target object at the current moment; and a recommendation module, configured to determine a target resource from the candidate resources based on the object features and resource features of the candidate resources, and recommend the target resource to the target object.

[0007] According to another aspect of the present disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute any method as described in any of the above aspects.

[0008] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute any one of the methods according to any one of the above aspects.

[0009] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, wherein when the computer program is executed by a processor, the computer program implements any one of the methods described in any one of the above aspects.

[0010] According to the technical solution of the present disclosure, the accuracy of resource recommendation can be improved.

[0011] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0013] Figure 1 is a schematic diagram according to a first embodiment of the present disclosure;

[0014] Figure 2 is a schematic diagram of an application scenario for implementing the resource recommendation method of an embodiment of the present disclosure;

[0015] Figure 3 is a structural diagram of a recommendation model provided according to an embodiment of the present disclosure;

[0016] Figure 4 is a schematic diagram according to a second embodiment of the present disclosure;

[0017] Figure 5 is a schematic diagram of a process for determining a behavior type according to an embodiment of the present disclosure;

[0018] Figure 6 is a schematic diagram according to a third embodiment of the present disclosure;

[0019] Figure 7 It is a schematic diagram of an electronic device used to implement the resource recommendation method of the embodiment of the present disclosure. DETAILED DESCRIPTION

[0020] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0021] In the related art, object-side features are usually basic features of the target object, and these basic features are static features that remain unchanged for a long time. Therefore, the accuracy of target resources recommended based on these basic features needs to be improved.

[0022] In order to improve the accuracy of resource recommendation, the present disclosure provides the following embodiments.

[0023] Figure 1 is a schematic diagram according to the first embodiment of the present disclosure. This embodiment provides a resource recommendation method, the method comprising:

[0024] 101. Obtain a historical trajectory sequence of a target object; the historical trajectory sequence includes a plurality of historical trajectory data arranged in order, the historical trajectory data is used to characterize a resource targeted by a historical behavior of the target object, and the historical behavior occurs within a preset time period before a current moment.

[0025] 102. Acquire object features of the target object based on the historical trajectory sequence and current trajectory data of the target object; the current trajectory data is used to characterize the resource targeted by the current behavior of the target object at the current moment.

[0026] 103. Based on the object characteristics and resource characteristics of the candidate resources, determine a target resource from the candidate resources, and recommend the target resource to the target object.

[0027] The historical trajectory sequence is a sequence composed of a series of historical trajectory data, and these historical trajectory data are arranged in order, such as arranging them from early to late based on the occurrence time of the historical trajectory data.

[0028] The historical trajectory data is used to characterize the resources targeted by the historical behavior of the target object, and may specifically be resource identification information (ID), resource name, etc. Taking the live broadcast scene as an example, the historical trajectory data may include the ID of the live broadcast room that the user has historically clicked.

[0029] Historical behavior refers to the behavior that occurred within a preset time (such as 8 hours) before the current moment. Assuming that the live broadcast room IDs clicked by the user during this period are id1, id2, id3... from morning to night, the historical trajectory sequence is {id1, id2, id3...}.

[0030] The current trajectory data is used to characterize the resource targeted by the current behavior of the target object, and may specifically be resource identification information (ID), resource name, etc. Taking the live broadcast scene as an example, the current trajectory data may include the ID of the live broadcast room currently clicked by the user.

[0031] The current behavior refers to the behavior of the target object at the current moment. For example, if the live broadcast room id clicked at the current moment is id3, then the current trajectory data is id3.

[0032] After obtaining the historical trajectory sequence and the current trajectory data, the object features of the target object can be obtained based on these two pieces of information. For example, the historical trajectory sequence and the current trajectory data can be cross-processed at the feature level, and the features obtained after the cross-processing are used as the object features.

[0033] Candidate resources refer to resources that can be recommended to a target object. There are usually multiple resources. Generally, one or more of the multiple candidate resources need to be selected as target resources to be recommended to the target object.

[0034] Resource features are used to characterize candidate resources and can be pre-extracted. For example, the information of the candidate resource (such as ID, name, category) is input into a pre-trained feature extraction network, and the output is the resource features of the candidate resource.

[0035] After obtaining the object features and resource features, the target resource is determined based on the two features. Taking the selection of a target resource as an example, specifically, the similarity between the object features and the resource features of each candidate resource can be calculated, and the candidate resource with the highest similarity can be used as the target resource. Alternatively, the recommendation score can be calculated based on the object features and the resource features of each candidate resource, and the candidate resource with the highest recommendation score can be used as the target resource.

[0036] After acquiring the target resource, recommend the target resource to the target object.

[0037] In this embodiment, since the historical behavior occurs within a preset time before the current moment, the historical behavior is constantly updated as time goes by. Therefore, the historical behavior is dynamic and timely. Therefore, the historical trajectory data and historical trajectory sequence obtained based on the historical behavior are also dynamic and timely. Therefore, the object features obtained based on the historical trajectory sequence are also dynamic and timely. Therefore, compared with the static object feature method commonly used, more accurate object features can be obtained to improve the resource recommendation effect. In addition, since the historical trajectory sequence contains a series of historical trajectory data arranged in order, it can reflect the behavior patterns, preferences and trends of the target object, which can further enhance the representation ability of the object features, thereby further enhancing the resource recommendation effect. In addition, obtaining object features based on the historical trajectory sequence and the current trajectory data can reflect the correlation between the target object behavior and the current resources, further improve the expression ability of the object features, and further enhance the resource recommendation effect.

[0038] In order to better understand the embodiments of the present disclosure, application scenarios to which the embodiments of the present disclosure can be applied are described.

[0039] Figure 2 It is a schematic diagram of an application scenario for implementing the resource recommendation method of an embodiment of the present disclosure.

[0040] like Figure 2 As shown, a user terminal 201 can install a recommended application (Application, APP), such as an e-commerce APP, a live broadcast APP, etc. These APPs interact with the server, which is deployed on the server 202. The server can be a local server or a cloud server, a single server or a server cluster. The user terminal and the server can be connected via a wired network and / or a wireless network.

[0041] Taking the target object as a user as an example, the object feature is specifically the user feature. After the user starts the APP, the server can obtain the user's user features, input the user features and the resource features of the candidate resources into the recommendation model, determine the target resource from the candidate resources based on the recommendation model, and display the target resource to the user through the APP.

[0042] The recommendation model can obtain the target resource based on the similarity between the object feature and the resource feature. Alternatively, the recommendation score of the candidate resource can be calculated based on the object feature and the resource feature, and the target resource can be determined based on the recommendation score.

[0043] In this embodiment, the target resource is determined based on the recommendation score. Compared with the single characterization method of similarity, it can better associate resources and objects and improve the accuracy of resource recommendation.

[0044] Figure 3Schematic diagram of a recommendation model provided according to an embodiment of the present disclosure. This embodiment takes the use of a recommendation model to calculate a recommendation score as an example.

[0045] like Figure 3 As shown, the recommendation model is specifically a multi-task learning model, which includes a shared layer shared by multiple tasks and a dedicated layer dedicated to each task.

[0046] Specifically, the object features and the resource features are input into a pre-trained recommendation model; the object features and the resource features are processed using the recommendation model to output task values ​​of multiple dimensions; and the recommendation score is determined based on the task values ​​of the multiple dimensions.

[0047] In this embodiment, the recommendation score is determined based on the task values ​​of multiple dimensions, so that the recommendation score can contain information of multiple dimensions, better associate resources and objects, and improve the accuracy and relevance of model recommendations.

[0048] This embodiment takes two tasks as an example, and the two tasks are used to calculate the click-through rate (CTR) and the conversion rate (CVR). CTR = number of clicks / number of impressions; CVR = number of conversions / number of clicks.

[0049] The shared layer includes the input expert network and the shared expert network; the dedicated layer of each task is represented by a CTR tower and a CVR tower, each tower includes at least one multilayer perceptron (MLP). In addition, there can be multiple shared expert networks, and the model can also include a gating network (not shown in the figure), which provides weighted weights for different shared expert networks.

[0050] The recommendation score of this embodiment takes CTCVR as an example. CTCVR is the click-through conversion rate, and its calculation formula is: CTCVR=CTR*CVR.

[0051] like Figure 3 As shown, object features and resource features are input into the recommendation model as input features. After being processed by the recommendation model, output values ​​corresponding to multiple tasks are obtained, which are CTR and CVR in this embodiment. Then, CTCVR is calculated based on CTR and CVR, and the candidate resource with the largest CTCVR is recommended to the user as the target resource.

[0052] In combination with the above application scenarios, the present disclosure also provides the following embodiments.

[0053] Figure 4 is a schematic diagram according to the second embodiment of the present disclosure. This embodiment provides a resource recommendation method, the method comprising:

[0054] 401. Obtain a historical trajectory sequence of a target object; the historical trajectory sequence includes a plurality of historical trajectory data arranged in order, the historical trajectory data is used to characterize a resource targeted by a historical behavior of the target object, and the historical behavior occurs within a preset time period before a current moment.

[0055] 402 . Encode each historical trajectory data in the historical trajectory sequence to obtain each historical trajectory feature, and encode the current trajectory data to obtain a current trajectory feature.

[0056] For example, the historical trajectory sequence is the ID of the live broadcast room clicked by the user, such as {id1, id2, id3...}. Each ID in the sequence is encoded to obtain the encoding of each ID, which can be expressed as {f1, f2, f3...} as each historical trajectory feature; similarly, if the current trajectory data is id3, id3 can be encoded to obtain the current trajectory feature f3.

[0057] 403. Perform cross processing on the historical trajectory features and the current trajectory features to obtain cross features; and use a sequence composed of the cross features as the object feature.

[0058] Among them, the cross processing can be a fusion processing method such as splicing and addition. In this embodiment, splicing is taken as an example, and each cross feature can be expressed as: contact(f1,f3), contact(f2,f3), contact(f3,f3), contact() represents the splicing operation.

[0059] Accordingly, the object feature is a sequence of: {contact(f1,f3), contact(f2,f3), contact(f3,f3)...}.

[0060] 404. Determine a recommendation score for the candidate resource based on the object feature and the resource feature.

[0061] Among them, the object features and the resource features can be input into a pre-trained recommendation model; the object features and the resource features can be processed using the recommendation model to output task values ​​in multiple dimensions; and the recommendation score can be determined based on the task values ​​in the multiple dimensions.

[0062] refer to Figure 3 , you can use Figure 3 The recommendation model shown obtains recommendation scores based on object features and resource features.

[0063] like Figure 3As shown in FIG, the task values ​​of multiple dimensions include: CTR and CVR, and the recommendation score is CTCVR. After the object features and resource features are input into the recommendation model, the output of the recommendation model includes CTR and CVR, and CTCVR is calculated based on CTR and CVR.

[0064] 405. Determine a target resource from the candidate resources based on the recommendation score, and recommend the target resource to the target object.

[0065] After obtaining the recommendation score of each candidate resource, the candidate resource with the largest recommendation score is used as the target resource, and the target resource is recommended to the target object.

[0066] In this embodiment, each historical trajectory feature and the current trajectory feature are cross-processed to obtain each cross feature, and each cross feature is composed into a sequence as the object feature. Since the object feature is a feature sequence, it can better reflect the dynamic behavior of the object and is time-effective. This can improve the prediction accuracy and generalization of the model, realize personalized recommendation, reduce the risk of model overfitting and improve the cold start problem.

[0067] The above historical behaviors and current behaviors all take live broadcast room clicks as an example. However, the target object may generate multiple types of behaviors. For example, in addition to live broadcast room clicks, it can also be product clicks, attention, interaction and other behaviors. The problem of what type of behavior to adopt needs to be solved, that is, the problem of what type of behavior to adopt for the above historical behaviors and current behaviors needs to be solved.

[0068] Figure 5 is a schematic diagram of a process for determining a behavior type according to an embodiment of the present disclosure, such as Figure 5 As shown, the method includes:

[0069] 501. Acquire a test cross feature based on a historical test data sequence corresponding to a first behavior and current test data corresponding to a second behavior; the first behavior and the second behavior are selected from a plurality of preset types of behaviors.

[0070] 502. Evaluate the test cross-feature to obtain an importance index of the test cross-feature.

[0071] 503. If the importance index meets a preset condition, the first behavior is used as the historical behavior, and the second behavior is used as the current behavior.

[0072] Taking the live broadcast scenario as an example, various preset types of behaviors may include:

[0073] Product card clicks, attention, interactions, shopping bag clicks and live broadcast room viewing time.

[0074] The first behavior and the second behavior are selected from the above five preset types of behaviors, and can be the same or different. For example, the first behavior is selected as "product card click" and the second behavior is selected as "live broadcast room viewing time".

[0075] Test data, similar to trajectory data, is used to characterize the resources targeted by the target object’s behavior. Trajectory data is used in the recommendation phase, and test data is used in the testing phase.

[0076] Similar to trajectory data, test data is divided into historical test data and current test data. Current test data is the test data at the current test moment, and historical test data is the test data within a preset time period before the current test moment.

[0077] For example, the first behavior is "item card click" and the second behavior is "live broadcast room viewing time". The historical test data is used to represent the product card information, which can be the product logo clicked by the target object, represented by item1, item2, etc. The current test data is used to represent the current live broadcast room viewing time, represented by t. The test cross feature is obtained based on {item1, item2, item3...} and t.

[0078] The cross-features in the test phase are also cross-features at the feature level. For example, after encoding each historical test data in the sequence, each historical test feature is obtained; after encoding the current test data, the current test feature is obtained; and after cross-processing (such as splicing) each historical test feature and the current test feature, each test cross-feature is obtained.

[0079] For example, based on the above example, multiple test cross features can be composed into the following sequence: {contact(f(item1),f(t)), contact(f(item2),f(t)), contact(f(item3),f(t))...}; where f(item1) is the encoding feature of item1, f(t) is the encoding feature of t, contact(f(item1),f(t)) means concatenating f(item1) and f(t), and the rest are similar.

[0080] When evaluating the test cross-features, specifically, the sequence composed of the test cross-features can be used as the test object features, and the resource features of the candidate resources are input into the recommendation model. The output of the recommendation model includes task values ​​of multiple dimensions. After that, the importance index is calculated based on the task value of at least one dimension. The importance index can be specifically selected as the area under the curve (AUC). AUC is the area under the ROC curve. The closer it is to 1, the stronger the prediction ability of the model. ROC curve is the abbreviation of receiver operating characteristic curve. It is a line connecting the points under specific stimulation conditions, with the false alarm probability obtained by the subjects under different judgment criteria as the horizontal coordinate and the hit probability as the vertical coordinate.

[0081] Taking CTCVR as an example, after the test object features and resource features are input into the recommendation model, the recommendation model output includes CTR prediction value and CVR prediction value. Based on the CTR prediction value and CVR prediction value, the CTCVR prediction value can be calculated, and then the AUC as the importance indicator can be calculated based on the CTCVR true value.

[0082] After obtaining the importance index, k (k is a preset value, a positive integer) behaviors with larger importance indexes and / or behaviors corresponding to the test cross-characteristics whose importance index is greater than a preset threshold can be taken as the finally selected behaviors, that is, the first behavior at this time is taken as the historical behavior of the recommendation stage, and the second behavior at this time is taken as the current behavior of the recommendation stage.

[0083] In this embodiment, by obtaining and evaluating test cross-features, and determining historical behaviors and current behaviors based on importance indicators obtained by the evaluation, more important object features can be selected in the recommendation stage, thereby improving the accuracy of resource recommendations.

[0084] The above recommendation model is pre-trained. Similar to the recommendation stage, in the training stage, the training samples include resource feature samples on the resource side and cross feature samples on the object side. The cross feature samples are cross feature sequences with high importance selected based on the above test process. After adding cross features, only the model parameters of the network layer corresponding to the cross features can be initialized, while the model parameters of the other network layers remain unchanged. For example, see Figure 3 , only the network parameters of the input expert network connected to the input features can be randomly initialized, while the model parameters of the remaining network layers remain unchanged.

[0085] This achieves the initialization of the model's hot and cold starts, allowing the model to converge as quickly as possible within a limited number of samples.

[0086] In addition, after training the model offline, a small traffic test can be conducted first. Based on the results of the small traffic test, the importance of cross-features can be further evaluated, and more important cross-features can be selected. After that, the historical trajectory data sequence and current trajectory data of the corresponding behavior type in the recommendation phase are obtained based on the more important cross-features, and resource recommendations are made based on these data.

[0087] The above-mentioned trajectory data includes "live broadcast room viewing time". Since the time is a data representing continuity with a long value range, the time can be bucketed. For example, the time in the first range is divided into the first bucket, and the time in the second range is divided into the second bucket. When encoding, the bucket information (such as the bucket number) to which it belongs is used for encoding. For example, if the first time and the second time belong to the same bucket, the characteristics of the two time after encoding are the same.

[0088] Trajectory data can also include identifiers (id) and tags (tags). For this type of data, one-hot encoding, embedding layer or feature hashing can be used for encoding.

[0089] In this way, the characteristics of the above trajectory data can be obtained simply and efficiently.

[0090] Figure 6 This is a schematic diagram according to the third embodiment of the present disclosure. This embodiment provides a resource recommendation device, the device 600 includes: a first acquisition module 601, a second acquisition module 602 and a recommendation module 603.

[0091] The first acquisition module 601 is used to acquire a historical trajectory sequence of a target object; the historical trajectory sequence includes a plurality of historical trajectory data arranged in order, the historical trajectory data is used to characterize the resources targeted by the historical behavior of the target object, and the historical behavior occurs within a preset time period before the current moment; the second acquisition module 602 is used to acquire the object features of the target object based on the historical trajectory sequence and the current trajectory data of the target object; the current trajectory data is used to characterize the resources targeted by the current behavior of the target object at the current moment; the recommendation module 603 is used to determine a target resource from the candidate resources based on the object features and the resource features of the candidate resources, and recommend the target resource to the target object.

[0092] In this embodiment, since the historical behavior occurs within a preset time before the current moment, the historical behavior is constantly updated as time goes by. Therefore, the historical behavior is dynamic and timely. Therefore, the historical trajectory data and historical trajectory sequence obtained based on the historical behavior are also dynamic and timely. Therefore, the object features obtained based on the historical trajectory sequence are also dynamic and timely. Therefore, compared with the static object feature method commonly used, more accurate object features can be obtained to improve the resource recommendation effect. In addition, since the historical trajectory sequence contains a series of historical trajectory data arranged in order, it can reflect the behavior patterns, preferences and trends of the target object, which can further enhance the representation ability of the object features, thereby further enhancing the resource recommendation effect. In addition, obtaining object features based on the historical trajectory sequence and the current trajectory data can reflect the correlation between the target object behavior and the current resources, further improve the expression ability of the object features, and further enhance the resource recommendation effect.

[0093] In some embodiments, the second acquisition module 602 is further used to:

[0094] Encoding each historical trajectory data in the historical trajectory sequence to obtain each historical trajectory feature;

[0095] Encoding the current trajectory data to obtain current trajectory features;

[0096] Cross-processing the historical trajectory features and the current trajectory features to obtain cross-features;

[0097] The sequence composed of the various intersection features is used as the object feature.

[0098] In this embodiment, each historical trajectory feature and the current trajectory feature are cross-processed to obtain each cross feature, and each cross feature is composed into a sequence as the object feature. Since the object feature is a feature sequence, it can better reflect the dynamic behavior of the object and is time-effective. This can improve the prediction accuracy and generalization of the model, realize personalized recommendation, reduce the risk of model overfitting and improve the cold start problem.

[0099] In some embodiments, the recommendation module 602 is further configured to:

[0100] Determining a recommendation score for the candidate resource based on the object feature and the resource feature;

[0101] Based on the recommendation score, determining a target resource from the candidate resources;

[0102] The target resource is recommended to the target object.

[0103] In this embodiment, the target resource is determined based on the recommendation score. Compared with the single characterization method of similarity, it can better associate resources and objects and improve the accuracy of resource recommendation.

[0104] In some embodiments, the recommendation module 602 is further configured to:

[0105] Inputting the object features and the resource features into a pre-trained recommendation model;

[0106] The recommendation model is used to process the object features and the resource features to output task values ​​in multiple dimensions;

[0107] The recommendation score is determined based on the task values ​​of the multiple dimensions.

[0108] In this embodiment, the recommendation score is determined based on the task values ​​of multiple dimensions, so that the recommendation score can contain information of multiple dimensions, better associate resources and objects, and improve the accuracy and relevance of model recommendations.

[0109] In some embodiments, the apparatus 600 may further include: a determination module.

[0110] A determination module is used to obtain a test cross-feature based on a historical test data sequence corresponding to a first behavior and current test data corresponding to a second behavior; the first behavior and the second behavior are selected from multiple preset types of behaviors; the test cross-feature is evaluated to obtain an importance index of the test cross-feature; if the importance index meets a preset condition, the first behavior is used as the historical behavior and the second behavior is used as the current behavior.

[0111] In this embodiment, by obtaining and evaluating test cross-features, and determining historical behaviors and current behaviors based on importance indicators obtained by the evaluation, more important object features can be selected in the recommendation stage, thereby improving the accuracy of resource recommendations.

[0112] It can be understood that in the embodiments of the present disclosure, the same or similar contents in different embodiments can be referenced to each other.

[0113] It can be understood that the “first”, “second”, etc. in the embodiments of the present disclosure are only used for distinction and do not indicate the degree of importance, time sequence, etc.

[0114] In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0115] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0116] Figure 7 A schematic block diagram of an example electronic device 700 that can be used to implement an embodiment of the present disclosure is shown. The electronic device 700 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, servers, blade servers, mainframe computers, and other suitable computers. The electronic device 700 can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0117] like Figure 7 As shown, the electronic device 700 includes a computing unit 701, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 702 or a computer program loaded from a storage unit 707 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the electronic device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0118] Multiple components in the electronic device 700 are connected to the I / O interface 705, including: an input unit 706, such as a keyboard, a mouse, etc.; an output unit 707, such as various types of displays, speakers, etc.; a storage unit 708, such as a disk, an optical disk, etc.; and a communication unit 709, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 709 allows the electronic device 700 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0119] The computing unit 701 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 701 performs the various methods and processes described above, such as the resource recommendation method. For example, in some embodiments, the resource recommendation method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 708. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 700 via the ROM 702 and / or the communication unit 709. When the computer program is loaded into the RAM 703 and executed by the computing unit 701, one or more steps of the resource recommendation method described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured to perform the resource recommendation method in any other appropriate manner (e.g., by means of firmware).

[0120] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0121] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0122] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0123] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0124] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0125] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.

[0126] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0127] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A resource recommendation method, comprising: Acquire a historical trajectory sequence of a target object; the historical trajectory sequence includes a plurality of historical trajectory data arranged in order, the historical trajectory data is used to characterize a resource targeted by a historical behavior of the target object, and the historical behavior occurs within a preset time period before a current moment; Based on the historical trajectory sequence and the current trajectory data of the target object, acquiring the object feature of the target object; the current trajectory data is used to characterize the resource targeted by the current behavior of the target object at the current moment; Based on the object characteristics and resource characteristics of the candidate resources, a target resource is determined from the candidate resources, and the target resource is recommended to the target object.

2. The method according to claim 1, wherein: The acquiring the object feature of the target object based on the historical trajectory sequence and the current trajectory data of the target object includes: Encoding each historical trajectory data in the historical trajectory sequence to obtain each historical trajectory feature; Encoding the current trajectory data to obtain current trajectory features; Cross-processing the historical trajectory features and the current trajectory features to obtain cross-features; The sequence composed of the various intersection features is used as the object feature.

3. The method according to claim 1, wherein: The determining a target resource from the candidate resources based on the object characteristics and the resource characteristics of the candidate resources, and recommending the target resource to the target object includes: Determining a recommendation score for the candidate resource based on the object feature and the resource feature; Based on the recommendation score, determining a target resource from the candidate resources; The target resource is recommended to the target object.

4. The method according to claim 3, wherein: The determining the recommendation score of the candidate resource based on the object feature and the resource feature includes: Inputting the object features and the resource features into a pre-trained recommendation model; The recommendation model is used to process the object features and the resource features to output task values ​​in multiple dimensions; The recommendation score is determined based on the task values ​​of the multiple dimensions.

5. The method according to claim 1, further comprising: Acquire a test cross feature based on a historical test data sequence corresponding to the first line and current test data corresponding to the second line; The first behavior and the second behavior are selected from a plurality of preset types of behaviors; Evaluating the test cross-feature to obtain an importance index of the test cross-feature; If the importance index meets a preset condition, the first behavior is used as the historical behavior, and the second behavior is used as the current behavior.

6. A resource recommendation device, comprising: A first acquisition module is used to acquire a historical trajectory sequence of a target object; the historical trajectory sequence includes a plurality of historical trajectory data arranged in order, the historical trajectory data is used to characterize the resources targeted by the historical behavior of the target object, and the historical behavior occurs within a preset time before the current moment; A second acquisition module is used to acquire the object characteristics of the target object based on the historical trajectory sequence and the current trajectory data of the target object; the current trajectory data is used to characterize the resources targeted by the current behavior of the target object at the current moment; The recommendation module is used to determine a target resource from the candidate resources based on the object characteristics and the resource characteristics of the candidate resources, and recommend the target resource to the target object.

7. The device according to claim 6, wherein: The second acquisition module is further used for: Encoding each historical trajectory data in the historical trajectory sequence to obtain each historical trajectory feature; Encoding the current trajectory data to obtain current trajectory features; Cross-processing the historical trajectory features and the current trajectory features to obtain cross-features; The sequence composed of the various intersection features is used as the object feature.

8. The device according to claim 6, wherein: The recommendation module is further used to: Determining a recommendation score for the candidate resource based on the object feature and the resource feature; Based on the recommendation score, determining a target resource from the candidate resources; The target resource is recommended to the target object.

9. The device according to claim 8, wherein: The recommendation module is further used to: Inputting the object features and the resource features into a pre-trained recommendation model; The recommendation model is used to process the object features and the resource features to output task values ​​in multiple dimensions; The recommendation score is determined based on the task values ​​of the multiple dimensions.

10. The apparatus according to claim 6, further comprising: A determination module, configured to obtain a test cross feature based on a historical test data sequence corresponding to the first line and current test data corresponding to the second line; The first behavior and the second behavior are selected from a plurality of preset types of behaviors; the test cross-feature is evaluated to obtain an importance index of the test cross-feature; If the importance index meets a preset condition, the first behavior is used as the historical behavior, and the second behavior is used as the current behavior.

11. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 5.

12. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-5.

13. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Recommendation method and device, storage medium and electronic equipment

    CN113742590A

  • Method, device and equipment for determining recommended object and computer storage medium

    CN114817692A

  • Interest point recommendation method and system based on hierarchical recurrent neural network

    CN115774819A

  • Information recommendation method and device, equipment, storage medium and program product

    CN116628349A

  • Resource recommendation method and device and electronic equipment

    CN118051667A

Cited By

  • Recommendation decision obtaining method and device, electronic equipment and storage medium

    CN121301656A