Related search recommendation method, device and electronic device
The click prediction model utilizes the sharing and download parameters of search results to estimate the click rate of relevant search result items, which solves the problem of poor quality of relevant search recommendations in the existing technology and improves the quality of recommendations.
Patent Information
- Application Number
- CN202010951959.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-09
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2040-09-09
AI Technical Summary
The quality of related search recommendations in the existing technology is poor and cannot effectively reflect the quality of query words, resulting in poor recommendation results.
Adopt a pre-trained click prediction model, use the sharing parameters and download parameters of search results as model input parameters, and sort related search result items based on click rate prediction to improve the quality of recommendations.
Higher-quality related search result items are obtained through the click prediction model, which improves the quality of related search recommendations and solves the problem of poor recommendation quality in the existing technology.
Smart Images

Figure CN114238705B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of software technology, and in particular to a related search recommendation method, device and electronic equipment. Background Art
[0002] In the search scenario, in addition to displaying the search results corresponding to the query terms, the search results page also makes related search recommendations based on the query terms. Related search recommendations usually provide related search results items that are related to the query terms and have good search results, namely related search recommendation terms. If a user clicks on a related search result item, the search engine will search for the related search result item as the query term and display the search results.
[0003] In the prior art, a certain number of query words with the highest query PV (the total number of times a query word is queried by all users within a period of time) are usually selected as candidate sets based on the user's query log, and an inverted index is established using the candidate set, and the data is updated every day. When a user enters a query word, the inverted index is used to recall the relevant search results, and the order of the recalled relevant search results is adjusted according to the PV value of the relevant search results and the text similarity between the relevant search results and the query words, and the final results are recommended to the user. However, the query word PV cannot well reflect the query word quality, and the related search recommendations based on this have the technical problem of poor quality. Summary of the invention
[0004] The embodiments of the present invention provide a related search recommendation method, device and electronic device, which are used to solve the technical problem of poor related search recommendation quality in the prior art and improve the quality of related search result items.
[0005] An embodiment of the present invention provides a related search recommendation method, comprising:
[0006] Get a set of relevant search results corresponding to the query term;
[0007] sorting the relevant search result items in the relevant search result item set based on the target query word input by the user and the pre-trained click prediction model;
[0008] Based on the ranking results, obtaining target-related search results of the target query term, and recommending the target-related search results in the search results page of the target query term;
[0009] The click prediction model is obtained by training the first characteristic parameter when the relevant search result item is used as a query word as a model input parameter, and the first characteristic parameter includes a sharing parameter and / or a download parameter of the search result.
[0010] Optionally, obtaining a set of relevant search result items corresponding to the query term includes:
[0011] Based on historical query logs, a reverse index is established between the query terms entered by the user and the relevant search results items clicked by the user;
[0012] Obtain a candidate word set corresponding to the query word according to the inverse index result;
[0013] The relevant search result item set is obtained based on the candidate word set.
[0014] Optionally, obtaining a set of relevant search result items corresponding to the query term includes:
[0015] Based on the historical query logs, a co-occurrence word set between the query words input by the user is established, wherein the co-occurrence word set includes one or more of the following query words: query words searched by the same user within a preset time range, different query words corresponding to the same search result that have been opened, and query words whose semantic similarity is greater than a similarity threshold;
[0016] Based on the co-occurring word set, a set of relevant search result items corresponding to the query word is obtained.
[0017] Optionally, the establishing of a co-occurrence word set between query words input by the user based on the historical query log includes:
[0018] Based on the historical query logs, the historical query logs of the same user are reconstructed into a session, and the query logs searched within the preset time range are merged into the same session;
[0019] The query words appearing in the same session are written into the co-occurrence word set as session co-occurrence words.
[0020] Optionally, the establishing of a co-occurrence word set between query words input by the user based on the historical query log includes:
[0021] Based on the historical query logs in which the search results have been shared and / or downloaded, multiple query words corresponding to the same search result and the number of occurrences of each query word are obtained;
[0022] Based on the multiple query words and the number of occurrences of each query word, obtaining a result co-occurrence word set;
[0023] The result co-occurrence word set is written into the co-occurrence word set.
[0024] Optionally, the establishing of a co-occurrence word set between query words input by the user based on the historical query log includes:
[0025] Obtaining a semantic vector of each candidate word in the candidate word set, wherein the semantic vector is obtained based on the word segmentation of the candidate word and the target image corresponding to the candidate word, and target images corresponding to similar semantic vectors are similar;
[0026] Performing semantic recall on the first related search candidate word set based on the similarity between the semantic vectors;
[0027] The semantically recalled candidate words are written into the co-occurrence word set.
[0028] Optionally, the model input parameters of the click prediction model also include:
[0029] The related search result item is used as the second characteristic parameter when the related search recommendation word is in the search result page.
[0030] Optionally, the training method of the click prediction model includes:
[0031] Based on historical query logs, obtain the query terms entered by the user and the relevant search results items clicked by the user;
[0032] Obtaining text matching features between the query term and the relevant search result items;
[0033] Constructing a training sample based on the query term, the relevant search result item, the text matching feature, the first feature parameter, and the second feature parameter;
[0034] The click prediction model is trained based on a plurality of the training samples.
[0035] Optionally, constructing a training sample based on the query term, the relevant search result item, the text matching feature, the first feature parameter, and the second feature parameter further includes:
[0036] When the relevant search result item is obtained as a query word, a third characteristic parameter of the advertisement position in the search result page;
[0037] A training sample is constructed based on the query term, the relevant search result item, the text matching feature, the first feature parameter, the second feature parameter and the third feature parameter.
[0038] Optionally, the related search results include related searches of pictures and / or videos.
[0039] Optionally, the sorting of the relevant search result items in the relevant search result item set based on the target query word input by the user and the pre-trained click prediction model includes:
[0040] Inputting the target query word and each relevant search result item in the relevant search result item set into the click prediction model, and obtaining the click rate of each relevant search result item through the click prediction model;
[0041] All relevant search result items are sorted according to the click-through rates to obtain a sorting result.
[0042] The embodiment of the present invention further provides a related search recommendation device, comprising:
[0043] An acquisition unit, used to acquire a set of relevant search result items corresponding to the query term;
[0044] A ranking unit, used to rank the relevant search result items in the relevant search result item set based on the target query word input by the user and the pre-trained click prediction model;
[0045] A recommendation unit, configured to obtain target-related search results of the target query word based on the ranking result, and recommend the target-related search results in the search result page of the target query word;
[0046] The click prediction model is obtained by training the first characteristic parameter when the relevant search result item is used as a query word as a model input parameter, and the first characteristic parameter includes a sharing parameter and / or a download parameter of the search result.
[0047] Optionally, the acquisition unit is used to:
[0048] Based on historical query logs, a reverse index is established between the query terms entered by the user and the relevant search results items clicked by the user;
[0049] Obtain a candidate word set corresponding to the query word according to the inverse index result;
[0050] The relevant search result item set is obtained based on the candidate word set.
[0051] Optionally, the acquisition unit is further used for:
[0052] Based on the historical query logs, a co-occurrence word set between the query words input by the user is established, wherein the co-occurrence word set includes one or more of the following query words: query words searched by the same user within a preset time range, different query words corresponding to the same search result that have been opened, and query words whose semantic similarity is greater than a similarity threshold;
[0053] Based on the co-occurring word set, a set of relevant search result items corresponding to the query word is obtained.
[0054] Optionally, the acquisition unit is further used for:
[0055] Based on the historical query logs, the historical query logs of the same user are reconstructed into a session, and the query logs searched within the preset time range are merged into the same session;
[0056] The query words appearing in the same session are written into the co-occurrence word set as session co-occurrence words.
[0057] Optionally, the acquisition unit is further used for:
[0058] Based on the historical query logs in which the search results have been shared and / or downloaded, multiple query words corresponding to the same search result and the number of occurrences of each query word are obtained;
[0059] Based on the multiple query words and the number of occurrences of each query word, obtaining a result co-occurrence word set;
[0060] The result co-occurrence word set is written into the co-occurrence word set.
[0061] Optionally, the acquisition unit is further used for:
[0062] Obtaining a semantic vector of each candidate word in the candidate word set, wherein the semantic vector is obtained based on the word segmentation of the candidate word and the target image corresponding to the candidate word, and target images corresponding to similar semantic vectors are similar;
[0063] Performing semantic recall on the first related search candidate word set based on the similarity between the semantic vectors;
[0064] The semantically recalled candidate words are written into the co-occurrence word set.
[0065] Optionally, the model input parameters of the click prediction model also include:
[0066] The related search result item is used as the second characteristic parameter when the related search recommendation word is in the search result page.
[0067] Optionally, the device further comprises a training unit, wherein the training unit is used to:
[0068] Based on historical query logs, obtain the query terms entered by the user and the relevant search results items clicked by the user;
[0069] Obtaining text matching features between the query term and the relevant search result items;
[0070] Constructing a training sample based on the query term, the relevant search result item, the text matching feature, the first feature parameter, and the second feature parameter;
[0071] The click prediction model is trained based on a plurality of the training samples.
[0072] Optionally, the training unit is further used for:
[0073] When the relevant search result item is obtained as a query word, a third characteristic parameter of the advertisement position in the search result page;
[0074] A training sample is constructed based on the query term, the relevant search result item, the text matching feature, the first feature parameter, the second feature parameter and the third feature parameter.
[0075] Optionally, the related search results include related searches of pictures and / or videos.
[0076] Optionally, the sorting unit is used to:
[0077] Inputting the target query word and each relevant search result item in the relevant search result item set into the click prediction model, and obtaining the click rate of each relevant search result item through the click prediction model;
[0078] All relevant search result items are sorted according to the click-through rates to obtain a sorting result.
[0079] The above one or more technical solutions in the embodiments of the present invention have at least the following technical effects:
[0080] An embodiment of the present invention provides a related search recommendation method, which obtains a click prediction model for related search result items by pre-training sharing parameters and / or download parameters of corresponding search results when related search result items are used as query words as model input parameters. Since the sharing parameters and / or download parameters can better reflect the quality of the query words, higher quality related search result items can be estimated through the click prediction model. Therefore, when a user inputs a target query word, the related search result items corresponding to the target query word are sorted and recommended based on the pre-selected trained click prediction model, and high-quality related search recommendations can be obtained, which solves the technical problem of poor quality of related search recommendations in the prior art and improves the quality of related search recommendations. BRIEF DESCRIPTION OF THE DRAWINGS
[0081] Figure 1 A flowchart of a related search recommendation method provided by an embodiment of the present invention;
[0082] Figure 2 A schematic diagram of a flow chart of a first method for training a click prediction model provided by an embodiment of the present invention;
[0083] Figure 3 A schematic diagram of a flow chart of a second click prediction model training method provided by an embodiment of the present invention;
[0084] Figure 4A schematic diagram of a flow chart of a third click prediction model training method provided by an embodiment of the present invention;
[0085] Figure 5 A block diagram of a related search recommendation device provided by an embodiment of the present invention;
[0086] Figure 6 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0087] In the technical solution provided in the embodiment of the present invention, a related search recommendation method is provided, which sorts the related search result items based on the user's sharing and downloading of the search results of the query term, obtains high-quality related search result items for related search recommendation, thereby solving the technical problem of poor quality of related search recommendation in the prior art.
[0088] The main implementation principles, specific implementation methods and corresponding beneficial effects of the technical solutions of the embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0089] Example 1
[0090] This embodiment provides a related search recommendation method, which is applied to related search recommendations in image, video and / or web page search scenarios. Figure 1 , the method includes the following S11 to S15.
[0091] S11. Obtain a set of relevant search result items corresponding to the query term.
[0092] Among them, the relevant search results are the relevant search recommendations provided in the search results page corresponding to the query word. For example, after searching for the query word "apple", the search results page will display the search results that hit "apple" and the keywords related to "apple" such as "Apple Conference" and "Apple Store". The relevant search item set can be obtained from the existing relevant search result item database, or according to the user's clicks on the relevant search result items after the query word query in the historical query log. For example, after the user searches for "single-chip microcomputer", the click rate of "51 single-chip microcomputer" in the related search exceeds a certain threshold, then the relevant search result item "51 single-chip microcomputer" can be written into the relevant search result item set corresponding to the query word "single-chip microcomputer".
[0093] S13. Sort the relevant search result items in the relevant search result item set based on the target query term input by the user and the pre-trained click prediction model.
[0094] The click prediction model is obtained by training the first characteristic parameter when the relevant search result item is used as a query word as a model input parameter, and the first characteristic parameter includes a sharing parameter and / or a download parameter of the search result. For example, assuming that for the relevant search result item A1 of the query word A, the download rate of the search result when A1 is used as a query can be obtained as the first click parameter, and A, A1 and the first click parameter of A1 are used as model input parameters, and the click situation of A1 in the search result page after the user queries A is used as a label for model training, and the click prediction model is obtained by training. For the specific training method of the click prediction model, please refer to any training method provided in the following embodiments 2-4.
[0095] For the pre-trained click prediction model, the target query term and each relevant search result item in the set of relevant search result items can be input into the click prediction model, and the click prediction model can be used to estimate the click rate of each relevant search result item, and then all relevant search result items are sorted according to the click rate to obtain the sorting result. For example: assuming that the target query term input by the user is "Chengdu in August", and the corresponding set of relevant search result items includes relevant search result items: "Is Chengdu suitable for travel in August", "What to bring to Chengdu in August", "Travel in Chengdu in August", etc., then "Chengdu in August" and each corresponding relevant search result item can be input into the click prediction model, and the click prediction model will estimate the click rate of each relevant search result item, and then all relevant search result items are sorted according to the click rate to obtain the sorting result.
[0096] S15. Based on the ranking result, target-related search result items of the target query word are obtained, and the target-related search result items are recommended in the search result page of the target query word.
[0097] Specifically, S15 can select the top n related search results as the target related search results. Further, secondary filtering can be performed on the basis of obtaining the top n related search results, such as filtering the candidate results according to the blacklist, and obtaining the filtered related search results as the target related search results.
[0098] During the specific implementation, when S11 obtains a set of relevant search result items for the target query, this embodiment also uses a reverse sort index and / or establishes co-occurrence terms to obtain the set of relevant search result items.
[0099] Reverse index
[0100] Based on historical query logs, a reverse index is established between the query term input by the user and the related search result items clicked by the user; a candidate word set corresponding to the query term is obtained according to the reverse index result; and a related search result item set corresponding to the query term is obtained based on the candidate set.
[0101] Among them, the establishment of the inverted index can first sort the relevant search results based on the characteristic parameters of the query terms and relevant search results obtained from the historical query logs. The sorting method can be a weighted sum of the parameter values of the relevant search results, and the weighting method can be manually specified according to the application scenario. In the image search scenario, it is divided into two fine-grained scenarios: related search recommendations and query business extensions. Among them, the relevant search recommendations will focus on user click-through rate, sharing rate and download rate in terms of weight. The query business extension focuses on the query term advertising display volume, click volume, and click-through rate in terms of weight. Based on the weighted scores obtained, the final relatively high-scoring related search results are saved as a candidate word set for the query term, and the candidate word set is used as a related search candidate item set. Furthermore, the word selection set can also be used as a candidate word for subsequent semantic vector recall.
[0102] Building co-occurring words
[0103] Based on historical query logs, a co-occurrence word set between query words input by users is established, wherein the co-occurrence word set includes one or more of the following query words: query words searched by the same user within a preset time range, different query words corresponding to the same search result that have been opened, and query words whose semantic similarity is greater than a similarity threshold; based on the co-occurrence word set, a set of related search result items corresponding to the query words is obtained.
[0104] When establishing a co-occurring word set, one or more of the following co-occurring word sets can be used:
[0105] ①. Session co-occurrence: Based on historical query logs, the session of the same user's historical query logs is reconstructed, and the query logs searched within the preset time range are merged into the same session; the query words appearing in the same session are written into the co-occurrence word set as session co-occurrence words. For example, the historical query logs are sorted by user ID + time, and the session is divided based on the 30-minute standard. The specific method is that if the interval between two logs representing two consecutive behaviors of the same user is more than 30 minutes, the two behaviors are considered to belong to two sessions. If the interval between two logs representing two consecutive behaviors of the same user is within 30 minutes, the two behaviors are considered to belong to one session and merged. After the merger, the query words that co-occur in the same session are regarded as a co-occurrence word set.
[0106] ② Result co-occurrence: Based on the historical query logs that have performed sharing and / or downloading operations on the search results, multiple query terms corresponding to the same search result and the number of occurrences of each query term are obtained; based on multiple query terms and the number of occurrences of each query term, a result co-occurrence term set is obtained; and the result co-occurrence term set is written into the co-occurrence term set. For example: for the pictures obtained by the image search, when the user clicks-share, clicks-download, or clicks-share-download, the <picture id, query term> is saved, and the <picture id, query term 1, query term 2…> sequence is further obtained. Based on this sequence, <query term m, query term n, number of co-occurrences k> can be obtained, and the result pairs with k values greater than a certain threshold are saved as the result co-occurrence set.
[0107] ③Semantic co-occurrence, obtain the semantic vector of each candidate word in the first set of related search candidate words, wherein the semantic vector is obtained based on the word segmentation of the candidate word and the target image corresponding to the candidate word, and the target images corresponding to similar semantic vectors are similar; semantic recall is performed on the first set of related search candidate words based on the similarity between the semantic vectors; and the semantically recalled candidate words are written into the co-occurrence word set. Specifically, when obtaining the semantic vector, the word segmentation vector of the candidate word can be passed through the convolutional neural network of text semantics and the convolutional neural network of image semantics and then passed into the fully connected layer to obtain the final embedding vector as the semantic vector of the candidate word, so that the obtained semantic vectors can not only represent the similarity of text semantics, but also represent the similarity from the perspective of image results, which is more in line with the application of image search scenarios. After obtaining the semantic vector of each query word, the semantic vector is indexed by an artificial neural network ANN, and each query word is used to find semantically similar query words through the ANN method, thereby obtaining a set of semantic co-occurrence words.<c0,c1,c2…,cn> .
[0108] The co-occurrence word set established by any one or more of the above session co-occurrence, result co-occurrence, and semantic co-occurrence is used as a related search candidate set.
[0109] A set of relevant search result candidate items is established based on the inverted index and / or co-occurrence words, and S13 is executed to sort the relevant search result items in the relevant search result item set based on the target query word through the pre-trained click prediction model, so as to obtain the target relevant search result item of the target query word.
[0110] Specifically, for the set of related search candidates obtained from the co-occurrence word set, they can be sorted by the click prediction model (also known as Key-Value index), and the dictionary data of the query word and the related search result items can be obtained based on the index, and then the query can be performed based on the dictionary data to obtain the target related search result items corresponding to the target query word. For the set of related search candidates obtained from the reverse index, the related search result items corresponding to the target query word can be first searched therefrom, and then the click prediction model can be used to sort the related search result items corresponding to the target query word, and the target related search result items can be obtained based on the sorting result.
[0111] Example 2
[0112] The embodiment of the present invention provides a method for training a click prediction model. The trained click prediction model is used to predict the click rate of each relevant search result item under a given query term, and to sort the relevant search result items based on the click rate. Figure 2 , the training methods of the click estimation model include:
[0113] S21, based on the historical query log, obtaining the first characteristic parameter when the relevant search result item is used as the query word;
[0114] S23, using the first characteristic parameter as a model input parameter to construct a training sample;
[0115] S25. Obtain a click prediction model based on training samples.
[0116] The historical query log may be a query log of an image, video or web page, and correspondingly, the query result, i.e., the search result, may be a search result of an image, video or web page. For different query logs, the training method provided in this embodiment may be used to train a web page click prediction model, an image click prediction model, or a video click prediction model.
[0117] Related search results refer to the recommended words related to the query words displayed on the search results page after searching for the query words, also known as related search recommended words. For example: after a user enters the query word "total solar eclipse" and clicks on the search, the related search interface of the search results page for "total solar eclipse" will display related search results such as "total solar eclipse meaning", "2020 total solar eclipse schedule", and "total solar eclipse schedule". If the user clicks on "2020 total solar eclipse schedule", the related search results will be searched with the related search results as the query word and the search results will be displayed.
[0118] The first characteristic parameter is a statistical parameter of the search result page and its related content corresponding to the relevant search result item as the query word. When S21 obtains the first characteristic parameter based on the historical query log, the historical query log within the predetermined time window can be selected for statistics to obtain the first characteristic parameter. Among them, the predetermined time window can be customized, such as the past week, the past month, the past quarter, the past six months, the past year, etc. In the predetermined time window, statistics are collected on the query word entered by the user search and the relevant search result items displayed on the search result page of the query word, as well as the user's clicks on the relevant search result items. When selecting a time window, the training data and the test data are obtained from different time windows to avoid the problem of feature "crossing" due to overlapping time windows in subsequent statistical features. For example: assuming that the total time window is n, the training data time window size is n1, and the test data time window size is n2, where the n1 window does not overlap with the n2 window.
[0119] Specifically, the first characteristic parameter includes a sharing parameter and / or a download parameter of the search result in the search result page.
[0120] Sharing parameters include any one or both of the following parameters of the search results when the relevant search result item is used as the user's query term:
[0121] The total number of shares of the search results within the predetermined time window;
[0122] The average share rate of search results within a predetermined time window;
[0123] Download parameters, including any one or both of the following parameters of the search results when the relevant search result item is used as the user's query term:
[0124] The total number of downloads of the search results within a predetermined time window;
[0125] The average download rate of the search results within a predetermined time window.
[0126] As an optional implementation manner, the first characteristic parameter may further include any one or more of the following parameters:
[0127] The total PV number of relevant search result items within the predetermined time window;
[0128] Any of the following parameters of the search results when the relevant search result item is used as a user query term:
[0129] The total number of large image pages displayed during the predefined time window;
[0130] The total number of clicks on the search results within the predefined time window;
[0131] The average click-through rate of search results within a predetermined time window;
[0132] After S11 obtains the first feature parameter, S23 is further executed to construct a training sample. Specifically, S23 can construct a training sample based on the historical query log and the first feature parameter obtained by statistics. Each historical query log has a query term input by the user, the relevant search result items displayed after searching for the query term, and the click status of the relevant search result items. The query term, relevant search result items and their first feature parameters corresponding to a historical query log can be used as model input parameters, and whether the relevant search result item is clicked can be used as a label to complete the construction of a training sample.
[0133] After a large number of training samples are obtained, S25 is executed to obtain a click prediction model based on the training samples. Since the sharing parameters and / or download parameters can better reflect the quality of the query words, this embodiment uses the sharing parameters and / or download parameters as model input parameters when training the click prediction model, and can associate the click prediction with the quality of the query words. When the query words are used as relevant search results, the click prediction model can predict and obtain relevant search results of higher quality.
[0134] Example 3
[0135] Please refer to Figure 3 , an embodiment of the present invention provides a method for training a click prediction model, the method comprising:
[0136] S31, based on the historical query log, obtaining the first characteristic parameter when the relevant search result item is used as the query word;
[0137] S32, based on the historical query log, obtaining the relevant search result item as a second characteristic parameter when the relevant search recommendation word is used in the search result page;
[0138] S33, using the first characteristic parameter and the second characteristic parameter as model input parameters to construct a training sample;
[0139] S35. Obtain a click prediction model based on training samples.
[0140] The training method of this embodiment adds a second characteristic parameter as a model input parameter on the basis of Embodiment 2, and the execution process of the remaining method steps is the same as that of Embodiment 1.
[0141] The second characteristic parameter is a statistical parameter when the relevant search result item is used as a relevant search recommendation word (i.e., the relevant search result item itself) in the search result page, reflecting the quality of the relevant search result item. Specifically, the second characteristic parameter may include one or more of the following parameters:
[0142] The total number of related search results displayed in different positions (top / middle / bottom) of the related search interface on the search results page;
[0143] Total number of clicks on relevant search results in different positions (top / middle / bottom) of the relevant search interface on the search results page;
[0144] The average click-through rate of relevant search results in different positions (top / middle / bottom) of the relevant search interface in the search results page.
[0145] In the specific implementation process, for each historical query log, the query term entered by the user in the log, the first characteristic parameter and the second characteristic parameter of the relevant search result item obtained by statistics are used as model input parameters, and the user's clicks on the relevant search result item are used as labels to complete the construction of the training sample, and then the model training of the click prediction model is performed based on a large number of training samples. By combining the first characteristic parameter reflecting the quality of the query term and the second characteristic parameter reflecting the relevant search result as the relevant search recommendation term itself, as the model input parameters of the model training, the click prediction model obtained by training can make the click prediction of the relevant search result item more accurate.
[0146] Furthermore, when constructing training samples for the click prediction model, the third characteristic parameter of the ad space in the search results page can be further obtained when the relevant search result item is used as a query term, and the third characteristic parameter is used together with the second characteristic parameter and the first characteristic parameter as a model input parameter, so that the click prediction model obtained by training based on the model input parameters can also predict the display and clicks of the ad space, thereby improving the display quality of advertisements on the search results page.
[0147] The third characteristic parameter may specifically include one or more of the following statistical parameters of the advertisement slot in the search result page when the relevant search result item is used as the query word:
[0148] Number of times each ad slot is displayed on the search results page;
[0149] Number of clicks on each ad slot on the search results page;
[0150] Click-through rate for each ad slot on the search results page.
[0151] Example 4
[0152] Please refer to Figure 4 , an embodiment of the present invention provides a method for training a click prediction model, the method comprising:
[0153] S41, based on the historical query log, obtaining a first characteristic parameter when a relevant search result item is used as a query term;
[0154] S42, based on the historical query log, obtaining the relevant search result item as a second characteristic parameter when the relevant search recommendation word is used in the search result page;
[0155] S43, obtaining text matching features between the query term and relevant search result items;
[0156] S44, constructing a training sample based on the query term, the relevant search result items, the text matching feature, the first feature parameter and the second feature parameter;
[0157] S45. Train the click prediction model based on the training samples.
[0158] This embodiment adds text matching features between query terms and related search result items as model input parameters on the basis of embodiment 3, and the execution process of the remaining method steps is the same as that of embodiment 2.
[0159] The text matching feature is used to characterize the similarity between the query term and the relevant search result items. The text matching feature includes one or more of the following features:
[0160] The number of [adjectives, nouns, verbs] contained in the query;
[0161] The number of [adjectives, nouns, verbs] contained in the relevant search results;
[0162] The number of [adjectives, nouns, verbs] contained in the query and related search results;
[0163] The length of the query term and the relevant search result items, the difference between the lengths of the query term and the relevant search result items, and / or the absolute value of the difference between the lengths of the query term and the relevant search result items;
[0164] · The union length, intersection length and / or Jaccard distance of the query term and the relevant search result items].
[0165] In the specific implementation process, for each historical query log, the query term entered by the user in the log, the first feature parameter and the second feature parameter of the relevant search result items obtained by statistics, and the text matching feature between the query term and the relevant search result items are used as model input parameters, and the user's clicks on the relevant search result items are used as labels to complete the construction of training samples, and then the model training of the click prediction model is performed based on a large number of training samples. During model training, by adding the text matching feature of the similarity between the query term and the relevant search result items as the model input parameter, the click prediction model obtained by training can obtain the correlation between the query term and the relevant search result items, thereby increasing the accuracy of click prediction.
[0166] The above-mentioned embodiments 2-4 respectively increase the model input parameters during the training of the click prediction model from the three dimensions of query word quality, relevant search result item quality and text matching features, so as to improve the quality of the click prediction model obtained through training. It should be noted that the model input parameters of the click prediction model are not limited to the above-mentioned three dimensions, but also include one or more parameters such as query words, relevant search result items, the third characteristic parameter of the ad slot, and user ID.
[0167] According to the characteristic parameters obtained by statistics in the above embodiments 2-4, nonlinear transformation can be further performed on each display amount, click amount, display number and click number. The transformation formula is: new =log(N old ,k), where N new represents the transformed parameters, N old represents the parameters before transformation, and k represents the logarithmic base. At the same time, all statistics are discretized by limiting the accuracy, and the transformation formula is: v new =round(v old ,k), where k represents the number of decimal places, usually thousandths, v new represents the transformed parameters, v old represents the parameter before transformation. At the same time, the statistical value is smoothed and weighted according to the time difference. The specific formula is: new =v old *rt, where rt represents the weight factor, and the calculation method of rt is: rt = 1-(1-α)*(Δd-1.0) / (MaxD-1.0), where α is a hyperparameter, Δd represents the difference in dates (based on the current date, when counting data d days away from the current date, the date difference between the two is Δd), MaxD represents the maximum date difference, when Δd equals MaxD, the weight is 0, and when Δd is 1, the weight is 1. Through the above transformation processing, the transformed parameters are calculated, which is conducive to improving the efficiency of model training. It should be noted that for related search candidates that are long-tail query terms, their feature parameters are sparse, that is, a large number of statistical values are 0, and sparse feature storage can be used to save storage space.
[0168] In the above embodiments, on the one hand, a variety of characteristic parameters of relevant search results are obtained, and relevant search clicks are predicted based on them, especially the sharing rate, download rate and other information of the search results, which helps to improve the click-through rate prediction effect. On the other hand, by adopting the inverted index, session co-occurrence, result co-occurrence, and semantic co-occurrence multi-way recall method to obtain a set of relevant search result items, it is possible to provide relevant search result items that are textually dissimilar but semantically similar, which helps to improve the quality of related search recommendations and the click-through rate of related recommendations. On the third hand, this embodiment also uses the extended results of the query as a supplementary query request for commercial advertisements, which increases the display of commercial advertisements on the search results page and increases product revenue.
[0169] A related search recommendation method is provided in accordance with the above embodiment. The present invention also provides a related search recommendation device. Figure 5 , the device comprises:
[0170] An acquisition unit 51 is used to acquire a set of relevant search result items corresponding to the query word;
[0171] A sorting unit 52, configured to sort the relevant search result items in the relevant search result item set based on the target query word input by the user and the pre-trained click prediction model;
[0172] A recommendation unit 53, configured to obtain target-related search results of the target query word based on the ranking result, and recommend the target-related search results in the search result page of the target query word;
[0173] The click prediction model is obtained by training the first feature parameter when the relevant search result item is used as a query word as a model input parameter, and the first feature parameter includes a sharing parameter and / or a download parameter of the search result.
[0174] As an optional implementation, the acquisition unit 51 is used to: establish a reverse index between the query term input by the user and the related search result items clicked by the user based on the historical query log; obtain a set of candidate terms corresponding to the query term according to the reverse index result; and obtain the set of related search result items based on the candidate term set.
[0175] As an optional implementation, the acquisition unit 51 is also used to: establish a co-occurrence word set between query words input by the user based on historical query logs, wherein the co-occurrence word set includes one or more of the following query words: query words searched by the same user within a preset time range, different query words corresponding to the same search result that have been opened, and query words whose semantic similarity is greater than a similarity threshold; based on the co-occurrence word set, obtain a set of related search result items corresponding to the query words.
[0176] When acquiring the co-occurring word set, the acquisition unit 51 may also acquire the co-occurring word set in any one or more of the following ways:
[0177] Method 1: Based on historical query logs, the historical query logs of the same user are reconstructed into a session, and the query logs searched within the preset time range are merged into the same session; the query words appearing in the same session are written into the co-occurrence word set as session co-occurrence words.
[0178] Method 2: Optionally, the acquisition unit is also used to: obtain multiple query terms corresponding to the same search result and the number of occurrences of each query term based on historical query logs that have performed sharing and / or download operations on search results; obtain a result co-occurrence word set based on the multiple query terms and the number of occurrences of each query term; and write the result co-occurrence word set into the co-occurrence word set.
[0179] Method three: obtaining a semantic vector for each candidate word in the candidate word set, wherein the semantic vector is obtained based on the word segmentation of the candidate word and the target image corresponding to the candidate word, and target images corresponding to similar semantic vectors are similar; performing semantic recall on the first related search candidate word set based on the similarity between the semantic vectors; and writing the semantically recalled candidate words into the co-occurrence word set.
[0180] As an optional implementation manner, the model input parameters of the click prediction model also include:
[0181] The related search result item is used as the second characteristic parameter when the related search recommendation word is in the search result page.
[0182] As an optional implementation, the device also includes a training unit 54, which is used to: obtain the query term input by the user and the related search result item clicked by the user based on the historical query log; obtain the text matching feature between the query term and the related search result item; construct a training sample based on the query term, the related search result item, the text matching feature, the first feature parameter and the second feature parameter; and train the click prediction model based on multiple training samples.
[0183] As an optional implementation, the training unit 54 is also used to: obtain the third characteristic parameter of the advertising position in the search result page when the relevant search result item is used as a query word; and construct a training sample based on the query word, the relevant search result item, the text matching feature, the first characteristic parameter, the second characteristic parameter and the third characteristic parameter.
[0184] As an optional implementation, the related search results include related searches of pictures and / or videos.
[0185] As an optional implementation, the sorting unit 52 is used to: input the target query term and each relevant search result item in the relevant search result item set into the click prediction model, and obtain the click rate of each relevant search result item through the click prediction model; sort all relevant search result items according to the size of the click rate to obtain a sorting result.
[0186] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0187] Figure 5 1 is a block diagram of an electronic device 800 for implementing a related search recommendation method according to an exemplary embodiment. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0188] Reference Figure 5 , the electronic device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / display (I / O) interface 812 , a sensor component 814 , and a communication component 816 .
[0189] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
[0190] The memory 804 is configured to store various types of data to support operations on the device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0191] The power supply component 806 provides power to the various components of the electronic device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 800.
[0192] The multimedia component 808 includes a screen that provides a display interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0193] The audio component 810 is configured to present and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for presenting audio signals.
[0194] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0195] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the electronic device 800. For example, the sensor assembly 814 can detect the open / closed state of the device 800, the relative positioning of components, such as the display and keypad of the electronic device 800, and the sensor assembly 814 can also detect the position change of the electronic device 800 or a component of the electronic device 800, the presence or absence of contact between the user and the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and the temperature change of the electronic device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0196] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0197] In an exemplary embodiment, the electronic device 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.
[0198] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by a processor 820 of an electronic device 800 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0199] A non-temporary computer-readable storage medium, when the instructions in the storage medium are executed by the processor of a mobile terminal, enables the mobile terminal to execute a related search recommendation method, the method comprising: obtaining a set of related search result items corresponding to a query word; sorting the related search result items in the set of related search result items based on a target query word input by a user and a pre-trained click prediction model; obtaining a target related search result item of the target query word based on the sorting result, and recommending the target related search result item in the search result page of the target query word; wherein the click prediction model is obtained by training the first feature parameter when the related search result item is used as a query word as a model input parameter, and the first feature parameter includes a sharing parameter and / or a download parameter of the search result.
[0200] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.
[0201] It should be understood that the present invention is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims. The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present invention shall be included in the scope of protection of the present invention.
Claims
1. A related search recommendation method, characterized in that: include: Get a set of relevant search results corresponding to the query term; sorting the relevant search result items in the relevant search result item set based on the target query word input by the user and the pre-trained click prediction model; Based on the ranking results, obtaining target-related search results of the target query term, and recommending the target-related search results in the search results page of the target query term; The click prediction model is obtained by training the first feature parameter when the relevant search result item is used as the query word as the model input parameter, and the first feature parameter includes the sharing parameter and / or download parameter of the search result; The model input parameters of the click prediction model also include: a second feature parameter when the relevant search result item is used as a relevant search recommendation word in the search result page, the second feature parameter is a statistical parameter when the relevant search result item is used as a relevant search recommendation word in the search result page, reflecting the quality of the relevant search result item; and also includes a third feature parameter of the advertising position in the search result page when the relevant search result item is used as a query word, and the third feature parameter is used together with the second feature parameter and the first feature parameter as a model input parameter; so that the click prediction model obtained by training based on the model input parameters can also predict the display and click of the advertising position, thereby improving the display quality of advertisements on the search result page.
2. The method according to claim 1, characterized in that The step of obtaining a set of related search result items corresponding to the query term includes: Based on historical query logs, a reverse index is established between the query terms entered by the user and the relevant search results items clicked by the user; Obtain a candidate word set corresponding to the query word according to the inverse index result; The relevant search result item set is obtained based on the candidate word set.
3. The method according to claim 1, characterized in that The step of obtaining a set of related search result items corresponding to the query term includes: Based on the historical query logs, a co-occurrence word set between the query words input by the user is established, wherein the co-occurrence word set includes one or more of the following query words: query words searched by the same user within a preset time range, different query words corresponding to the same search result that have been opened, and query words whose semantic similarity is greater than a similarity threshold; Based on the co-occurring word set, a set of relevant search result items corresponding to the query word is obtained.
4. The method according to claim 3, characterized in that The step of establishing a co-occurrence word set between query words input by the user based on the historical query log includes: Based on the historical query logs, the historical query logs of the same user are reconstructed into a session, and the query logs searched within the preset time range are merged into the same session; The query words appearing in the same session are written into the co-occurrence word set as session co-occurrence words.
5. The method according to claim 3, characterized in that The step of establishing a co-occurrence word set between query words input by the user based on the historical query log includes: Based on the historical query logs in which the search results have been shared and / or downloaded, multiple query words corresponding to the same search result and the number of occurrences of each query word are obtained; Based on the multiple query words and the number of occurrences of each query word, obtaining a result co-occurrence word set; The result co-occurrence word set is written into the co-occurrence word set.
6. The method according to claim 3, characterized in that The step of establishing a co-occurrence word set between query words input by the user based on the historical query log includes: Obtaining a semantic vector of each candidate word in the candidate word set, wherein the semantic vector is obtained based on the word segmentation of the candidate word and the target image corresponding to the candidate word, and target images corresponding to similar semantic vectors are similar; Performing semantic recall on the first related search candidate word set based on the similarity between the semantic vectors; The semantically recalled candidate words are written into the co-occurrence word set.
7. The method according to claim 1, characterized in that The second characteristic parameter may include one or more of the following parameters: The total number of related search results displayed in different positions (top / middle / bottom) of the related search interface on the search results page; The total number of clicks on the relevant search results in different positions (top / middle / bottom) of the relevant search interface in the search results page; The average click-through rate of relevant search results in different positions (top / middle / bottom) of the relevant search interface in the search results page; The third characteristic parameter may specifically include one or more of the following statistical parameters of the advertisement slot in the search result page when the relevant search result item is used as the query word: The number of times each ad slot is displayed on the search results page; Number of clicks on each ad slot on the search results page; The click-through rate of each ad slot on the search results page.
8. A related search recommendation device, characterized in that: include: An acquisition unit, used to acquire a set of relevant search result items corresponding to the query term; A ranking unit, used to rank the relevant search result items in the relevant search result item set based on the target query word input by the user and the pre-trained click prediction model; A recommendation unit, configured to obtain target-related search results of the target query word based on the ranking result, and recommend the target-related search results in the search result page of the target query word; The click prediction model is obtained by training the first feature parameter when the relevant search result item is used as the query word as the model input parameter, and the first feature parameter includes the sharing parameter and / or download parameter of the search result; The model input parameters of the click prediction model also include: a second characteristic parameter when the relevant search result item is used as a relevant search recommendation word in the search result page, the second characteristic parameter is a statistical parameter when the relevant search result item is used as a relevant search recommendation word in the search result page, reflecting the quality of the relevant search result item; It also includes obtaining a third characteristic parameter of an ad space in a search result page when a relevant search result item is used as a query term, and using the third characteristic parameter together with the second characteristic parameter and the first characteristic parameter as a model input parameter; so that a click prediction model obtained by training based on the model input parameters can also predict the display and clicks of the ad space, thereby improving the display quality of advertisements on the search result page.
9. An electronic device, characterized in that: The invention comprises a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors to execute the operation instructions corresponding to the method according to any one of claims 1 to 7 contained in the one or more programs.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method as described in any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Method and device for providing recommended word
CN102799591A
Search term recommendation method and device
CN103729351A
Input association recommendation method and apparatus for optimizing commercial word promotion
CN108319376A
Search recommendation method, CTR estimation model training method, device and apparatus
CN110390052A
Recommendation word display method and device, equipment and computer readable storage medium
CN110532351A
