IP Library Granted Patent US 12,423,368
Granted Patent B2
US 12,423,368 · App. 18/441,389 · Granted Sep 23, 2025

Recommendation method and apparatus, training method and apparatus, device, and recommendation system

Inventors: Jieming Zhu (Shenzhen, CN); Zhou Zhao (Hangzhou, CN); Shengyu Zhang (Hangzhou, CN); Xiuqiang He (Shenzhen, CN); Li Qian (Shenzhen, CN)
Assignee: Huawei Technologies Co., Ltd.
G06F16/9535G06V10/40
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,423,368
App. No.
18/441,389
Granted
Sep 23, 2025
Kind
B2
Abstract

Examples of recommendation methods and apparatus are described. In one example method, a plurality of images are obtained, where each image includes one candidate interface and one type of candidate content presented by using the candidate interface. Image feature data of each image is obtained, and input for a prediction model is determined based on user feature data of a target user and the image feature data. Then, a degree of preference of the target user for each image is predicted by using the prediction model. At least one of a candidate interface or candidate content that are included in the plurality of images is selected based on the degree of preference. Recommendation is then performed to the user based on the selected candidate content or candidate interface.

Claims (75)

1. A method, comprising:

obtaining a plurality of images, wherein each image comprises one candidate interface and one type of candidate content presented by using the candidate interface, and each image comprises a plurality of regions;

obtaining image feature data of each image, wherein the image feature data of each image comprises a plurality of local eigenvectors that correspond to the plurality of regions respectively;

predicting, by using a prediction model, a degree of preference of a target user for each image based on user feature data of the target user and the image feature data, wherein input for the prediction model is determined based on the user feature data and the image feature data; and

selecting, based on the degree of preference, at least one of a candidate interface or candidate content from candidate interfaces and candidate content that are comprised in the plurality of images, to perform recommendation.

2. The method according to claim 1 , wherein;

the predicting, by using a prediction model, a degree of preference of a target user for each image based on user feature data of the target user and the image feature data comprises:

for each image, obtaining N word vectors based on candidate content in the image, wherein each word vector represents one word in the candidate content, and N is a positive integer;

for each word vector, calculating, by using a model of an attention mechanism, an attention weight of each of the plurality of local eigenvectors based on the word vector and the plurality of local eigenvectors, wherein the attention weight indicates a degree to which the target user pays attention to a region represented by a respective local eigenvector when the target user reads a word represented by each word vector;

performing fusion on each word vector and the plurality of local eigenvectors based on the attention weight of each of the plurality of local eigenvectors to obtain a first fusion eigenvector, wherein one first fusion eigenvector is correspondingly obtained for each word vector; and

predicting, by using the prediction model, the degree of preference of the target user for each image based on a user eigenvector and N first fusion eigenvectors corresponding to the N word vectors, wherein input for the prediction model is determined based on the user eigenvector and the N first fusion eigenvectors, and the user eigenvector represents the user feature data of the target user.

3. The method according to claim 2 , wherein the predicting, by using the prediction model, the degree of preference of the target user for each image based on the user eigenvector and N first fusion eigenvectors corresponding to the N word vectors comprises:

for each image, processing, by using a model of a self-attention mechanism, the N first fusion eigenvectors corresponding to the N word vectors to obtain N semantic-enhanced eigenvectors, wherein each first fusion eigenvector corresponds to one semantic-enhanced eigenvector; and

predicting, by using the prediction model, the degree of preference of the target user for each image based on the user eigenvector and the N semantic-enhanced eigenvectors, wherein input for the prediction model is determined based on the user eigenvector and the N semantic-enhanced eigenvectors.

4. The method according to claim 3 , wherein the predicting, by using the prediction model, the degree of preference of the target user for each image based on the user eigenvector and the N semantic-enhanced eigenvectors comprises:

for each image, performing fusion on the N semantic-enhanced eigenvectors by using a model of an additive attention mechanism to obtain a second fusion eigenvector; and

predicting, by using the prediction model, the degree of preference of the target user for each image based on the user eigenvector and the second fusion eigenvector, wherein input for the prediction model is determined based on the user eigenvector and the second fusion eigenvector.

5. The method according to claim 1 , wherein the image feature data of each image comprises a global eigenvector, and the global eigenvector represents the image.

6. The method according to claim 5 , wherein the predicting, by using a prediction model, a degree of preference of a target user for each image based on user feature data of the target user and the image feature data comprises:

for each image, obtaining a content eigenvector based on the candidate content in the image, wherein the content eigenvector represents the candidate content;

determining a weight of the content eigenvector and a weight of the global eigenvector based on the content eigenvector and the global eigenvector;

performing fusion on the content eigenvector and the global eigenvector based on the weight of the content eigenvector and the weight of the global eigenvector to obtain a third fusion eigenvector; and

predicting, by using the prediction model, the degree of preference of the target user for each image based on a user eigenvector and the third fusion eigenvector, wherein input for the prediction model is determined based on the user eigenvector and a third fusion vector, and the user eigenvector represents the user feature data of the target user.

7. The method according to claim 1 , wherein the selecting, based on the degree of preference, at least one of a candidate interface or candidate content from candidate interfaces and candidate content that are comprised in the plurality of images, to perform recommendation comprises:

selecting, based on the degree of preference, a type of candidate content from the candidate content comprised in the plurality of images as target candidate content; and

selecting, based on the degree of preference, a candidate interface from candidate interfaces of images that comprise the target candidate content as a target candidate interface, to recommend the target candidate content by using the target candidate interface.

8. The method according to claim 7 , wherein after the selecting, based on the degree of preference, a candidate interface from candidate interfaces of images that comprise the target candidate content as a target candidate interface, the method further comprises:

sending the target candidate content and metadata of the target candidate interface to a terminal device, wherein the terminal device displays the target candidate interface based on the metadata, and recommends the target candidate content to the target user by using the target candidate interface.

9. A method, comprising:

obtaining a plurality of sample images, wherein each sample image comprises one sample candidate interface and one type of sample candidate content presented by using the sample candidate interface, and each sample image comprises a plurality of regions;

obtaining image feature data of each sample image, wherein the image feature data of each sample image comprises a plurality of local eigenvectors that correspond to the plurality of regions respectively;

predicting, by using a prediction model, a degree of preference of a sample user for each sample image based on user feature data of the sample user and the image feature data, wherein input for the prediction model is determined based on the user feature data and the image feature data; and

adjusting the prediction model based on the degree of preference and historical click-through data of the sample user for the sample candidate content.

10. The method according to claim 9 , wherein;

the predicting, by using a prediction model, a degree of preference of a sample user for each sample image based on user feature data of the sample user and the image feature data comprises:

for each sample image, obtaining N word vectors based on the sample candidate content in each sample image, wherein each word vector represents one word in the sample candidate content, and N is a positive integer;

for each word vector, calculating, by using a model of an attention mechanism, an attention weight of each of the plurality of local eigenvectors based on the word vector and the plurality of local eigenvectors, wherein the attention weight indicates a degree to which the sample user pays attention to a region represented by a respective local eigenvector when the sample user reads a word represented by each word vector;

performing fusion on each word vector and the plurality of local eigenvectors based on the attention weight of each of the plurality of local eigenvectors to obtain a first fusion eigenvector, wherein one first fusion eigenvector is correspondingly obtained for each word vector; and

predicting, by using the prediction model, the degree of preference of the sample user for each sample image based on user eigenvector and N first fusion eigenvectors corresponding to the N word vectors, wherein input for the prediction model is determined based on the user eigenvector and the N first fusion eigenvectors, and the user eigenvector represents the user feature data of the sample user.

11. The method according to claim 10 , wherein the predicting, by using the prediction model, the degree of preference of the sample user for each sample image based on the user eigenvector and N first fusion eigenvectors corresponding to the N word vectors comprises:

for each sample image, processing, by using a model of a self-attention mechanism, the N first fusion eigenvectors corresponding to the N word vectors to obtain N semantic-enhanced eigenvectors, wherein each first fusion eigenvector corresponds to one semantic-enhanced eigenvector; and

predicting, by using the prediction model, the degree of preference of the sample user for each sample image based on the user eigenvector and the N semantic-enhanced eigenvectors, wherein input for the prediction model is determined based on the user eigenvector and the N semantic-enhanced eigenvectors.

12. The method according to claim 11 , wherein the predicting, by using the prediction model, the degree of preference of the sample user for each sample image based on the user eigenvector and the N semantic-enhanced eigenvectors comprises:

for each sample image, performing fusion on the N semantic-enhanced eigenvectors by using a model of an additive attention mechanism to obtain a second fusion eigenvector; and

predicting, by using the prediction model, the degree of preference of the sample user for each sample image based on the user eigenvector and the second fusion eigenvector, wherein input for the prediction model is determined based on the user eigenvector and the second fusion eigenvector.

13. The method according to claim 9 , wherein the image feature data of each sample image comprises a global eigenvector, and the global eigenvector represents the sample image.

14. The method according to claim 13 , wherein the predicting, by using a prediction model, a degree of preference of a sample user for each sample image based on user feature data of the sample user and the image feature data comprises:

for each sample image, obtaining a content eigenvector based on the sample candidate content in each sample image, wherein the content eigenvector represents the sample candidate content;

determining a weight of the content eigenvector and a weight of the global eigenvector based on the content eigenvector and the global eigenvector;

performing fusion on the content eigenvector and the global eigenvector based on the weight of the content eigenvector and the weight of the global eigenvector to obtain a third fusion eigenvector; and

predicting, by using the prediction model, the degree of preference of the sample user for each sample image based on a user eigenvector and the third fusion eigenvector, wherein input for the prediction model is determined based on the user eigenvector and a third fusion vector, and the user eigenvector represents the user feature data of the sample user.

15. A computer device, comprising one or more memories and one or more processors, wherein the one or more memories are coupled to the one or more processors and store computer-readable instructions for execution by the one or more processor to:

obtain a plurality of images, wherein each image comprises one candidate interface and one type of candidate content presented by using the candidate interface, and each image comprises a plurality of regions;

obtain image feature data of each image, wherein the image feature data of each image comprises a plurality of local eigenvectors that correspond to the plurality of regions respectively;

predict, by using a prediction model, a degree of preference of a target user for each image based on user feature data of the target user and the image feature data, wherein input for the prediction model is determined based on the user feature data and the image feature data; and

select, based on the degree of preference, at least one of a candidate interface or candidate content from candidate interfaces and candidate content that are comprised in the plurality of images, to perform recommendation.

16. A device, comprising one or more memories and one or more processors, wherein the one or more memories are coupled to the one or more processors and store computer-readable instructions for execution by the one or more processor to:

obtain a plurality of sample images, wherein each sample image comprises one sample candidate interface and one type of sample candidate content presented by using the sample candidate interface, and each sample image comprises a plurality of regions;

obtain image feature data of each sample image, wherein the image feature data of each sample image comprises a plurality of local eigenvectors that correspond to the plurality of regions respectively;

predict, by using a prediction model, a degree of preference of a sample user for each sample image based on user feature data of the sample user and the image feature data, wherein input for the prediction model is determined based on the user feature data and the image feature data; and

adjust the prediction model based on the degree of preference and historical click-through data of the sample user for the sample candidate content.

17. A non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer-readable instructions for execution by at least one processor to:

obtain a plurality of images, wherein each image comprises one candidate interface and one type of candidate content presented by using the candidate interface, and each image comprises a plurality of regions;

obtain image feature data of each image, wherein the image feature data of each image comprises a plurality of local eigenvectors that correspond to the plurality of regions respectively;

predict, by using a prediction model, a degree of preference of a target user for each image based on user feature data of the target user and the image feature data, wherein input for the prediction model is determined based on the user feature data and the image feature data; and

select, based on the degree of preference, at least one of a candidate interface or candidate content from candidate interfaces and candidate content that are comprised in the plurality of images, to perform recommendation.

18. A recommendation system, comprising a terminal device and a server, wherein the server comprises one or more first processors and one or more first memories coupled to the one or more first processors, and the terminal device comprises one or more second processors and one or more second memories coupled to the one or more second processors; and wherein:

the one or more first memories store programming instructions for execution by the one or more first processors to:

obtain a plurality of images, wherein each image comprises one candidate interface and one type of candidate content presented by using the candidate interface, and each image comprises a plurality of regions;

obtain image feature data of each image, wherein the image feature data of each image comprises a plurality of local eigenvectors that correspond to the plurality of regions respectively;

predict, by using a prediction model, a degree of preference of a target user for each image based on user feature data of the target user and the image feature data, wherein input for the prediction model is determined based on the user feature data and the image feature data; and

send, based on the degree of preference, target candidate content and metadata of a target candidate interface to a terminal device, wherein the terminal device displays the target candidate interface based on the metadata, and recommends the target candidate content to the target user by using the target candidate interface; and

the one or more second memories store programming instructions for execution by the one or more second processors to:

receive target candidate content and metadata of a target candidate interface from the server; and

display the target candidate interface based on the metadata, and recommend the target candidate content to a target user by using the target candidate interface.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 28, 2025
From: ZHU, JIEMING; ZHAO, ZHOU; ZHANG, SHENGYU; HE, XIUQIANG; QIAN, LI
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 071244/0637 →
Priority Claims (1)
CN 202110963660.X · Aug 20, 2021 · national
Continuity (2)
Continuation PCTCN2022105075 · Jul 12, 2022
Related Publication 20240184837A1 · Jun 6, 2024
References Cited (31)
US 7991715B2 · Schiff · 2011 [cited by examiner]
US 9432421B1 · Mott et al. · 2016 [cited by applicant]
US 9858295B2 · Murphy-Chutorian · 2018 [cited by examiner]
US 10417277B2 · Murphy-Chutorian · 2019 [cited by examiner]
US 11151196B2 · Kußmaul · 2021 [cited by examiner]
US 11281844B2 · Smith · 2022 [cited by examiner]
US 11307749B1 · Comer · 2022 [cited by examiner]
US 11709996B2 · Kannan · 2023 [cited by examiner]
US 11750866B2 · Punja · 2023 [cited by examiner]
US 11783199B2 · Chen · 2023 [cited by examiner]
US 20160055541A1 · Calistri-Yeh · 2016 [cited by applicant]
US 20190220694A1 · Biswas et al. · 2019 [cited by applicant]
US 20200008227A1 · Lee · 2020 [cited by examiner]
US 20220222920A1 · Huang · 2022 [cited by examiner]
CN 102831234A · 2012 [cited by applicant]
CN 108415996A · 2018 [cited by applicant]
CN 109740068A · 2019 [cited by applicant]
CN 109947510A · 2019 [cited by applicant]
CN 110457588A · 2019 [cited by applicant]
CN 110737783A · 2020 [cited by applicant]
CN 111651692A · 2020 [cited by applicant]
CN 112100504A · 2020 [cited by applicant]
CN 113806631A · 2021 [cited by applicant]
CN 110955821B · 2024 [cited by applicant]
WO 2018000585A1 · 2018 [cited by applicant]
International Search Report and Written Opinion in International Appln. No. PCT/CN2022/105075, mailed on Oct. 10, 2022, 17 pages (with English translation). [cited by applicant]
Wu et al., “Neural News Recommendation with Multi-Head Self-Attention,” Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Langua… [cited by applicant]
Wang et al., “Fine-grained Interest Matching for Neural News Recommendation,” Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, Jul. 5-10, 2020, pp. 836-845. [cited by applicant]
Ge et al., “Image Matters: Visually modeling user behaviors using Advanced Model Server,” CoRR, submitted on Sep. 4, 2018, arXiv:1711.06505v3, 9 pages. [cited by applicant]
Wu et al., “Explainable Social Contextual Image Recommendation with Hierarchical Attention,” CoRR, submitted on Jul. 10, 2018, arXiv:1806.00723v2, 14 pages. [cited by applicant]
Extended European Search Report in European Appln. No. 22857473.7, mailed on Sep. 17, 2024, 10 pages. [cited by applicant]