Electronic book sorting recommendation method, electronic device and storage medium
By obtaining the list of interactive books during the user interaction period, constructing a training sample group based on the interaction depth value and type, and training the ranking push model, the existing technology solves the problem of similar e-book recommendation content and failure to consider the interaction depth, and achieves a more accurate personalized recommendations.
Patent Information
- Application Number
- CN202011481357.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-15
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2040-12-15
AI Technical Summary
The existing e-book recommendation method is mainly based on the similarity of book content, resulting in users reading a large number of books with similar content, unable to effectively expand the reading scope, and unable to make targeted recommendations based on the user's depth of interaction with different books, resulting in recommended content that is inconsistent with the user's experience. The demand matching is not high.
By obtaining the list of interactive books during the user's interaction period, determining the interaction depth value based on the interaction duration and interaction type, using bucket mapping to convert the interaction depth value into an interaction weight value, constructing a training sample group and training the sorting push model, realizing the e-book Sorting recommendations.
This method can make personalized ranking recommendations based on the user's depth of interaction with different books, improve the accuracy of recommendation results, and facilitate the construction of multiple training sample groups through bucket mapping to enhance the difference and accuracy of recommendations.
Smart Images

Figure CN112464101B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computers, and in particular to an electronic book sorting and recommendation method, an electronic device and a storage medium. Background Art
[0002] Books in the form of e-books are loved by a large number of users due to their advantages such as easy access. Most book reading platforms recommend books based on the content similarity of the full text of the book. In the prior art, several books with high similarity in content to books that the user has read before are generally recommended and displayed to the user.
[0003] However, the inventors found in the process of implementing the present invention that the above recommendation method has at least the following defects: recommending based on the similarity of book content easily leads to users reading a large number of books with similar content, which is not conducive to expanding the user's reading range. In addition, in the book recommendation process, it is impossible to make targeted recommendations based on the different depths of user interaction with different books. In short, the existing book recommendation method is relatively simple, resulting in a low match between the recommended content and user needs. Summary of the invention
[0004] In view of the above problems, the present invention is proposed to provide an e-book ranking recommendation method, electronic device and storage medium that overcome the above problems or at least partially solve the above problems.
[0005] According to one aspect of the present invention, a method for recommending and sorting electronic books and pushing electronic books is provided, comprising:
[0006] Obtain a list of interactive books for the reading user corresponding to the interactive period;
[0007] For the interactive books in the interactive book list, determining the interaction depth value of the interactive book according to the interaction duration and / or interaction type of the reading user corresponding to the interactive book;
[0008] According to a preset bucket mapping relationship, the interaction depth value of the interactive book is mapped to an interaction weight value corresponding to the bucket interval;
[0009] A plurality of training sample groups are constructed according to the interaction weight values of the respective interactive books in the interactive book list, a ranking push model is trained by the plurality of training sample groups, and a ranking recommendation of electronic books is performed based on the ranking push model.
[0010] According to another aspect of the present invention, there is provided an electronic device, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus;
[0011] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform the following operations:
[0012] Obtain a list of interactive books for the reading user corresponding to the interactive period;
[0013] For the interactive books in the interactive book list, determining the interaction depth value of the interactive book according to the interaction duration and / or interaction type of the reading user corresponding to the interactive book;
[0014] According to a preset bucket mapping relationship, the interaction depth value of the interactive book is mapped to an interaction weight value corresponding to the bucket interval;
[0015] A plurality of training sample groups are constructed according to the interaction weight values of the respective interactive books in the interactive book list, a ranking push model is trained by the plurality of training sample groups, and a ranking recommendation of electronic books is performed based on the ranking push model.
[0016] According to another aspect of the present invention, a computer storage medium is provided, wherein the storage medium stores at least one executable instruction, and the executable instruction enables the processor to perform the following operations:
[0017] Obtain a list of interactive books for the reading user corresponding to the interactive period;
[0018] For the interactive books in the interactive book list, determining the interaction depth value of the interactive book according to the interaction duration and / or interaction type of the reading user corresponding to the interactive book;
[0019] According to a preset bucket mapping relationship, the interaction depth value of the interactive book is mapped to an interaction weight value corresponding to the bucket interval;
[0020] A plurality of training sample groups are constructed according to the interaction weight values of the respective interactive books in the interactive book list, a ranking push model is trained by the plurality of training sample groups, and a ranking recommendation of electronic books is performed based on the ranking push model.
[0021] In the electronic book ranking recommendation method, electronic device and storage medium provided by the present invention, first, the interactive book list corresponding to the interactive time period of the reading user is obtained, and the interactive depth value of the interactive book is determined for the interactive books in the interactive book list; then, according to the preset bucket mapping relationship, the interactive depth value of the interactive book is mapped to the interactive weight value corresponding to the bucket interval; finally, a training sample group is constructed according to the interactive weight value of each interactive book to train the ranking push model, thereby realizing the ranking recommendation of the electronic book. It can be seen that this method can construct a training sample group according to the interactive depth value of each interactive book, so that the ranking push model obtained by training can perform different ranking recommendations according to the different interactive depth values of the books, thereby taking into account the influence of the interaction depth in the ranking recommendation process, making the ranking result more accurate. In addition, the interaction depth value that is not easy to compare can be converted into an interaction weight value that is easy to compare through the bucket mapping method, so as to facilitate the construction of multiple training sample groups.
[0022] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0024] Figure 1 A flowchart of a method for recommending and sorting e-books and pushing e-books according to an embodiment of the present invention is shown;
[0025] Figure 2 A flowchart of a method for recommending and pushing electronic books according to another embodiment of the present invention is shown;
[0026] Figure 3 A schematic structural diagram of an electronic device according to another embodiment of the present invention is shown. DETAILED DESCRIPTION
[0027] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0028] Embodiment 1
[0029] Figure 1 FIG. 1 is a flow chart showing a method for recommending and sorting e-books and pushing e-books according to an embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:
[0030] Step S110: Obtaining a list of interactive books corresponding to the interactive period of the reading user.
[0031] The interactive period refers to a period of time defined by a start time period and an end time period. During the interactive period, user behavior is continuously monitored, and a list of interactive books corresponding to the interactive period of the reading user is obtained based on the monitoring results. The interactive book list is used to store at least one e-book that the reading user has interacted with during the interactive period. The so-called interaction includes: the user has triggered various preset types of interactive operations such as click operations, search operations, and browse operations on the e-book. The types and number of interactive operations can be flexibly set by technicians in this field according to business scenarios.
[0032] Step S120: for the interactive books in the interactive book list, determine the interaction depth value of the interactive book according to the interaction duration and / or interaction type of the reading user with respect to the interactive book.
[0033] Specifically, for each interactive book, the interaction time and / or interaction type of the reading user corresponding to the interactive book is determined. The interaction time mainly refers to the reading time. The longer the reading time, the greater the interaction depth value. In addition, the interaction types include: reading interaction type, download interaction type, payment interaction type and other types. Different weights can be set in advance for different interaction types, and the interaction depth value of the interactive book is determined according to the weighted results of the interaction operations corresponding to each interaction type.
[0034] In short, the interaction depth value of an interactive book is used to reflect the degree of interaction of the reading user with the interactive book: the larger the interaction depth value, the deeper the reading user's interaction with the interactive book, that is, the greater the preference and the more interested.
[0035] Step S130: According to the preset bucket mapping relationship, the interaction depth value of the interactive book is mapped to the interaction weight value corresponding to the bucket interval.
[0036] Specifically, a bucket mapping relationship is pre-established, and the bucket mapping relationship is used to map continuous, inconveniently compared interaction depth values to discrete, easily comparable interaction weight values. The bucket mapping relationship sets multiple bucket intervals, as well as the numerical range of the interaction depth value corresponding to each bucket interval and the interaction weight value corresponding to the bucket interval.
[0037] Accordingly, based on the above bucket mapping relationship, the interaction depth values of the interactive books are converted into interaction weight values corresponding to the bucket intervals, so as to facilitate comparison of the interaction weight values in subsequent steps.
[0038] Step S140: construct multiple training sample groups according to the interaction weight values of the interactive books in the interactive book list, train the ranking push model through the multiple training sample groups, and perform ranking recommendation of electronic books based on the ranking push model.
[0039] Among them, a training sample group can be a training sample pair containing two interactive books, or a training sample list containing multiple interactive books, and the present invention does not limit this. In specific implementation, the training sample group is labeled according to the comparison result between the interaction weight values of multiple training samples (i.e., interactive books) in the training sample group. The sorting push model is trained based on each labeled training sample group. Among them, the sorting push model can be various models such as a neural network model, and the present invention does not limit this. When recommending e-books through the sorting push model, the different interaction depths of users for different e-books can be fully considered, thereby improving the accuracy of the recommendation results.
[0040] It can be seen that this method can construct a training sample group according to the interaction depth value of each interactive book, so that the trained sorting and push model can make different sorting recommendations according to the different interaction depth values of the books, thereby considering the influence of the interaction depth in the sorting and recommendation process, making the sorting result more accurate. In addition, the bucket mapping method can convert the interaction depth values that are not easy to compare into interaction weight values that are easy to compare, thereby facilitating the construction of multiple training sample groups.
[0041] Embodiment 2
[0042] Figure 2 FIG. 2 is a flow chart showing a method for ranking and recommending electronic books provided by another embodiment of the present invention. Figure 2 As shown, the method comprises the following steps:
[0043] Step S210: Obtaining a list of interactive books corresponding to the interactive period of the reading user.
[0044] The interactive period refers to a period of time defined by a start time period and an end time period. During the interactive period, user behavior is continuously monitored, and a list of interactive books corresponding to the interactive period of the reading user is obtained based on the monitoring results. The interactive book list is used to store at least one e-book that the reading user has interacted with during the interactive period. The so-called interaction includes: the user has triggered various preset types of interactive operations such as click operations, search operations, and browse operations on the e-book. The types and number of interactive operations can be flexibly set by technicians in this field according to business scenarios.
[0045] Step S220: for the interactive books in the interactive book list, determine the interaction depth value of the interactive book according to the interaction duration and / or interaction type of the reading user with respect to the interactive book.
[0046] Specifically, for each interactive book, the interaction time and / or interaction type of the reading user corresponding to the interactive book is determined. Among them, the interaction time mainly refers to the reading time. The longer the reading time, the greater the interaction depth value. In addition, the interaction types include: reading interaction type, downloading interaction type, payment interaction type and other types. Different weights can be set in advance for different interaction types, and the interaction depth value of the interactive book can be determined according to the weighted results of the interaction operations corresponding to each interaction type. In short, the interaction depth value of the interactive book is used to reflect the degree of interaction of the reading user with the interactive book: the larger the interaction depth value, the deeper the interaction of the reading user with the interactive book, that is, the greater the preference and the more interested.
[0047] In the specific implementation, in order to ensure the comprehensiveness of the sample, it is necessary to obtain the interactive book list for multiple reading users in multiple interactive time periods. Therefore, in order to distinguish different reading users and different interactive time periods, the list identifier of the interactive book list needs to include the user identifier and the time period information, wherein the user identifier can be the user ID of the reading user, and the time period information is jointly identified by the starting time point and the ending time point. Therefore, each reading user as a sample contains at least one interactive book in the interactive book list within an interactive time period. Then, for each interactive book included in the interactive book list, the interaction time and / or interaction type generated by the user for the interactive book within the preset time length is monitored. Among them, the preset time length can be three days or seven days. Since the reading of a book takes a long time, the preset time length needs to be set slightly longer. By continuously monitoring the interaction time and interaction type of each interactive behavior triggered by the user for the interactive book within the preset time length, the interaction depth value of the user corresponding to the interactive book is determined. For example, the longer the interaction time, the greater the interaction depth value; for another example, different weights can be set in advance for each type of interaction behavior, so as to perform weighted operations on each interaction behavior according to the interaction type, and determine the interaction depth value based on the weighted results. For example, the weights of the following interaction types decrease in sequence: paid interaction type, download type, add to bookshelf type, browse free chapter type, etc.
[0048] Step S230: According to the preset bucket mapping relationship, the interaction depth value of the interactive book is mapped to the interaction weight value corresponding to the bucket interval.
[0049] Specifically, a bucket mapping relationship is pre-established, and the bucket mapping relationship is used to map continuous, inconveniently compared interaction depth values into discrete, easily comparable interaction weight values. The bucket mapping relationship sets multiple bucket intervals, as well as the numerical range of the interaction depth value corresponding to each bucket interval and the interaction weight value corresponding to the bucket interval. Accordingly, based on the above bucket mapping relationship, the interaction depth value of the interactive book is converted into the interaction weight value corresponding to the bucket interval, so as to facilitate comparison of the interaction weight value in subsequent steps.
[0050] In specific implementation, the interaction weight value of the interactive book is determined in the following manner: First, query the preset bucket mapping relationship to determine the bucket interval corresponding to the interaction depth value of the interactive book. The bucket mapping relationship is used to set the numerical range of the interaction depth value corresponding to each bucket interval and the interaction weight value corresponding to each bucket interval. Then, query the interaction weight value corresponding to the bucket interval corresponding to the interaction depth value of the interactive book, and use the queried interaction weight value as the interaction weight value of the interactive book. The interaction depth value is a continuous value, and the interaction weight value is a discrete value.
[0051] For example, if the reading user does not interact with the book, the interaction depth value of the interactive book is 0 (specifically marked as a negative sample). When the reading user interacts with the book, the interaction depth value is positive (specifically marked as a positive sample), and the specific value is determined according to the interaction duration and / or interaction type. In a specific implementation, 18 data buckets can be set, and each data bucket corresponds to a different bucket interval: the bucket interval of the first data bucket is (0-10], and the interactive books whose interaction depth values belong to the interval of (0-10] will fall into the first data bucket, and the interaction weight value corresponding to the first data bucket is 1, and all the interactive books falling into the first data bucket have an interaction weight value of 1; the bucket interval of the second data bucket is (10-300], and the interactive books whose interaction depth values belong to the interval of (10-300] will fall into the second data bucket, and the interaction weight value corresponding to the second data bucket is 2, and all the interactive books falling into the second data bucket have an interaction weight value of 2... Similarly, the interaction weight value of the 18th data bucket is 18, and all the interactive books falling into the 18th data bucket have an interaction weight value of 18. It can be seen that by means of data bucketing, the continuous and inconvenient to compare interaction depth values are converted into discrete and easy to compare interaction weight values.
[0052] The difference between interaction depths can be better reflected by bucket mapping. In the process of implementing the present invention, the inventors found that since the interaction depth value is usually determined according to the interaction duration, if the continuous interaction depth values are directly compared, it is often impossible to effectively explore the differences between different books. For example, assuming that Book 1 interacted for 299 minutes, the corresponding interaction depth value is 299; Book 2 interacted for 300 minutes, and the corresponding interaction depth value is 300. If the training sample group is constructed directly based on the interaction depth value, the difference in the interaction depth value between Book 2 and Book 1 is 1, but in fact, the interaction depth of Book 1 and Book 2 belongs to the same bucket interval, and there is little meaning in comparing the two.
[0053] Step S240: construct multiple training sample groups according to the interaction weight value of each interactive book in the interactive book list.
[0054] Specifically, according to the interaction weight value of each interactive book in the interactive book list, each interactive book in the interactive book list is combined into multiple training sample groups, and each training sample group is labeled according to the comparison result between the interaction weight values of at least two training samples included in each training sample group. In a specific implementation, multiple interactive books with different interaction weight values are determined as a training sample group, and the training sample group is labeled according to the comparison result between the interaction weight values of multiple interactive books in the training sample group.
[0055] The training sample group in this embodiment can be constructed in many ways, for example, it can be a training sample pair consisting of two interactive book samples, or it can be a training sample list consisting of multiple interactive book samples, which is not limited in the present invention.
[0056] Taking the training sample pairs as an example, when constructing the training sample pairs, multiple positive samples can be sorted according to the interaction weight values, and then the positive samples obtained after sorting can be combined in pairs to obtain multiple training sample pairs. Specifically, since the Pointwise algorithm is more suitable for processing samples with shorter interaction time, and has poor fitting performance for samples with longer interaction time, in this embodiment, the sorting recommendation model can be trained by the Pairwise algorithm and / or the Listwise algorithm. In order to better adapt to the above algorithms, several positive samples with interaction depth values greater than the preset depth threshold can be screened, and training sample pairs can be constructed based on the screened positive samples, so as to focus on learning the characteristics of samples with longer interaction time. The differences between samples in terms of interaction depth can be expressed in the form of training sample pairs.
[0057] In the process of implementing the present invention, the inventor found that if the interaction depth values of two books are directly compared, the comparison result will not truly reflect the degree of difference between the two. For example, assuming that book one in the first training sample group interacted for 290 minutes, the corresponding interaction depth value is 290; book two interacted for 300 minutes, and the corresponding interaction depth value is 300. If the first training sample group is constructed directly based on the interaction depth value, the difference in the interaction depth value between book two and book one is 10; assuming that book three in the second training sample group interacted for 1 minute, the corresponding interaction depth value is 1; book four interacted for 11 minutes, and the corresponding interaction depth value is 11. If the second training sample group is constructed directly based on the interaction depth value, the difference in the interaction depth value between book three and book four is also 10. In the above method, the difference between the first training sample group and the second training sample group is the same, but in the case of a longer interaction time, the interaction depth of 290 minutes and the interaction depth of 300 minutes are obviously not much different; and in the case of a shorter interaction time, the interaction depth of 1 minute and the interaction depth of 11 minutes are more obviously different. Therefore, when constructing the training sample group directly based on the interaction depth value, it cannot accurately reflect the degree of difference between the samples.
[0058] In order to solve the above problem, this embodiment maps the continuous interaction depth value to a discrete interaction weight value through bucket mapping. After bucket mapping, Book 1 and Book 2 belong to the same bucket interval. Therefore, their interaction weight values are equal. In this case, there is no need to construct the two into a training sample group. It can be seen that after bucket mapping, it can ensure that the constructed training sample group can better reflect the differences between samples.
[0059] Step S250: training a ranking push model through a plurality of training sample groups, and performing ranking recommendation of e-books based on the ranking push model.
[0060] Specifically, the training sample group is labeled according to the comparison result between the interaction weight values of multiple training samples (i.e., interactive books) in the training sample group. The sorting push model is trained based on each labeled training sample group. In specific implementation, multiple training sample groups are trained by a sorting algorithm to obtain a sorting push model. Among them, the sorting algorithm includes: a sorting algorithm based on sample pairs and / or a sorting algorithm based on sample lists.
[0061] The sorting push model in this embodiment may be a neural network model, which includes a network layer and a fully connected layer. Accordingly, the above sorting algorithm is mainly used for training in the fully connected layer.
[0062] In addition, the training sample group in this embodiment is mainly used to learn the sorting information between samples based on the Pairwise algorithm and / or the Listwise algorithm. However, in practical applications, when the training sample pairs are relatively sparse, directly using the Pairwise algorithm and / or the Listwise algorithm may lead to overfitting problems. In order to solve this problem, in an improved implementation method, pre-training is first performed using the Pointwise algorithm, and then the pre-training model is fine-tuned using the Pairwise algorithm and / or the Listwise algorithm to obtain the above-mentioned sorting recommendation model. In addition, through the pre-training process, the sample vectors and sample weights corresponding to each training sample will be obtained at the network layer. Accordingly, in the fine-tuning process, the sample vectors and sample weights obtained in the pre-training process can be directly shared.
[0063] In addition, the inventors discovered during the implementation of the present invention that the transfer relationship between books can effectively reflect the importance of books. Therefore, in an improved implementation method, during the training of the above-mentioned ranking recommendation model, the transfer weight determined according to the transfer relationship between interactive books is further used as a sample attribute feature of the interactive books, thereby improving the accuracy of the model.
[0064] Accordingly, when constructing multiple training sample groups according to the interaction weight values of each interactive book in the interactive book list, it is further implemented in the following manner: first, determine the transfer relationship between each interactive book in the interactive book list, and generate a book transfer graph corresponding to the interactive book list according to the transfer relationship between the interactive books; then, calculate the transfer weight of each interactive book according to the book transfer graph, and use the transfer weight as the sample feature of the training sample corresponding to the interactive book. The above-mentioned book transfer graph is generated according to the user's reading behavior data. The book transfer graph includes multiple transfer nodes, each of which corresponds to an interactive book. Since the user has the behavior of jumping from the first interactive book to the second interactive book during the reading process, the transfer relationship between each transfer node is established based on the book jump behavior (also called book transfer behavior) triggered by the user, wherein the transfer relationship includes: transfer direction, for example, transfer in or transfer out.
[0065] Specifically, when determining the transfer relationship between each interactive book in the interactive book list and generating a book transfer graph corresponding to the interactive book list according to the transfer relationship between the interactive books, it is achieved in the following manner: for the first interactive book in the interactive book list, detect whether the reading user interacts with the second interactive book in the process of reading the first interactive book; if so, determine the second transfer node corresponding to the second interactive book as the transfer-out type transfer node of the first transfer node corresponding to the first interactive book; and determine the first transfer node corresponding to the first interactive book as the transfer-in type transfer node of the second transfer node corresponding to the second interactive book. Among them, the first interactive book can be any book in the interactive book list. In the specific implementation, it is necessary to determine the interactive time period for the reading user to interact with the first interactive book. The interactive time period may be in hours or days. Since books belong to long-interaction business objects, the interactive time period will last for a long time. In addition, during the interactive time period, the user may interact with other books incrementally. For example, while reading Journey to the West, the user also downloaded Romance of the Three Kingdoms or Water Margin for interspersed reading. Accordingly, the number of second interactive books can be one or more, and all newly added interactive books during the interactive time period when the reading user reads the first interactive book are regarded as second interactive books. It can be seen that the user switches from the first interactive book to the second interactive book during the reading process. Therefore, for the first interactive book, the transfer node corresponding to the second interactive book is a transfer-out transfer node; for the second interactive book, the transfer node corresponding to the first interactive book is a transfer-in transfer node. For the transfer node corresponding to any interactive book, it may include both multiple transfer-in transfer nodes and multiple transfer-out transfer nodes.
[0066] Accordingly, when calculating the transfer weight of each interactive book according to the book transfer graph, the transfer node corresponding to any interactive book included in the book transfer graph is used as the target transfer node, and the transfer-in transfer node corresponding to the target transfer node and the transfer-out transfer node corresponding to the target transfer node are determined; the transfer weight of the interactive book corresponding to the target transfer node is calculated according to the transfer-in transfer node and the transfer-out transfer node. In addition, the number of transfer-out transfer nodes of each transfer-in transfer node and the transfer weight of the transfer-out transfer node of each transfer-in transfer node can be further determined for each transfer-in transfer node corresponding to the target transfer node, and the transfer weight of the interactive book corresponding to the target transfer node can be calculated in combination with the number of transfer-out transfer nodes of each transfer-in transfer node and the transfer weight of the transfer-out transfer node of each transfer-in transfer node.
[0067] In specific implementation, the transfer weight of the interactive book corresponding to the target transfer node can be calculated based on the preset damping coefficient, the total number of transfer nodes included in the book transfer graph, the transfer weight of each incoming transfer node corresponding to the target transfer node, and / or the transfer weight of each outgoing transfer node corresponding to the target transfer node. For example, the transfer weight of the interactive book corresponding to the target transfer node can be calculated based on the ratio between the sum of the transfer weights of each incoming transfer node corresponding to the target transfer node and the sum of the transfer weights of each outgoing transfer node corresponding to the target transfer node. Of course, those skilled in the art can also flexibly set various methods to calculate the transfer weight of the interactive book corresponding to the target transfer node, and the present invention does not limit the specific calculation details.
[0068] In an optional implementation, the transfer weight Pr(u) of the interactive book corresponding to the target transfer node u can be calculated by the following formula:
[0069]
[0070] Wherein, d is the damping coefficient, and the specific value can be flexibly set according to the actual situation. N is the total number of transfer nodes contained in the book transfer graph. In actual situations, N can be the total number of all transfer nodes contained in the book transfer graph, or the number of associated transfer nodes that have an input or output relationship with the target transfer node. In the latter method, the value of N is determined according to the number of associated transfer nodes corresponding to the target transfer node. Wherein, the associated transfer nodes include: directly associated transfer nodes and indirectly associated transfer nodes. Specifically, directly associated transfer nodes refer to: input transfer nodes and output transfer nodes corresponding to the target transfer nodes; indirectly associated transfer nodes refer to: input transfer nodes and / or output transfer nodes corresponding to the directly associated transfer nodes of the target transfer nodes.
[0071] Among them, V in the above formula represents any transfer node in the set Iu, and the set Iu is used to store each incoming transfer node corresponding to the target transfer node, Pr(V) represents the transfer weight of the transfer node V, and |O(V)| represents the number of outgoing transfer nodes corresponding to the transfer node V. Through the above formula, the transfer weight value of the interactive book corresponding to the target transfer node u can be calculated.
[0072] In addition, it should be emphasized that the above-mentioned interactive book list can be a list corresponding to one reading user or a list corresponding to multiple reading users, and the present invention does not limit this. Accordingly, when the interactive book list is a list corresponding to multiple reading users, the above-mentioned book transfer diagram can reflect the transfer status of multiple users, so that the result is more in line with the needs of most users.
[0073] In summary, this method can construct a training sample group according to the interaction depth value of each interactive book, so that the sorting push model obtained by training can make different sorting recommendations according to the different interaction depth values of the books, thereby taking into account the influence of the interaction depth in the sorting recommendation process, making the sorting result more accurate. In addition, the interaction depth values that are not easy to compare can be converted into interaction weight values that are easy to compare through bucket mapping, thereby facilitating the construction of multiple training sample groups. Moreover, in this embodiment, the transfer relationship between books is further considered in the training process, so as to facilitate the accurate determination of the importance of books based on the transfer relationship between books, thereby making the sorting result more accurate.
[0074] Embodiment 3
[0075] An embodiment of the present application provides a non-volatile computer storage medium, which stores at least one executable instruction. The computer executable instruction can execute the electronic book sorting recommendation and book sorting push method in any of the above method embodiments.
[0076] The executable instructions may be used to cause the processor to perform the following operations:
[0077] Obtain a list of interactive books for the reading user corresponding to the interactive period;
[0078] For the interactive books in the interactive book list, determining the interaction depth value of the interactive book according to the interaction duration and / or interaction type of the reading user corresponding to the interactive book;
[0079] According to a preset bucket mapping relationship, the interaction depth value of the interactive book is mapped to an interaction weight value corresponding to the bucket interval;
[0080] A plurality of training sample groups are constructed according to the interaction weight values of the respective interactive books in the interactive book list, a ranking push model is trained by the plurality of training sample groups, and a ranking recommendation of electronic books is performed based on the ranking push model.
[0081] In an optional implementation, the executable instruction causes the processor to perform the following operations:
[0082] Querying a preset bucket mapping relationship to determine a bucket interval corresponding to the interaction depth value of the interactive book; wherein the bucket mapping relationship is used to set a numerical range of the interaction depth value corresponding to each bucket interval and an interaction weight value corresponding to each bucket interval;
[0083] Querying the interaction weight value corresponding to the bucket interval corresponding to the interaction depth value of the interactive book, and using the queried interaction weight value as the interaction weight value of the interactive book;
[0084] The interaction depth value is a continuous value, and the interaction weight value is a discrete value.
[0085] In an optional implementation, the executable instruction causes the processor to perform the following operations:
[0086] According to the interaction weight values of the interactive books in the interactive book list, the interactive books in the interactive book list are combined into multiple training sample groups, and each training sample group is labeled according to the comparison result between the interaction weight values of at least two training samples included in each training sample group.
[0087] In an optional implementation, the executable instruction causes the processor to perform the following operations:
[0088] The plurality of training sample groups are trained by a sorting algorithm to obtain the sorting push model; wherein the sorting algorithm includes: a sorting algorithm based on sample pairs and / or a sorting algorithm based on sample lists.
[0089] In an optional implementation, the executable instruction causes the processor to perform the following operations:
[0090] Determine the transfer relationship between each interactive book in the interactive book list, and generate a book transfer graph corresponding to the interactive book list according to the transfer relationship between the interactive books;
[0091] According to the book transition graph, the transition weight of each interactive book is calculated, and the transition weight is used as the sample feature of the training sample corresponding to the interactive book.
[0092] In an optional implementation, the executable instruction causes the processor to perform the following operations:
[0093] For a first interactive book in the interactive book list, detecting whether a reading user interacts with a second interactive book during the process of reading the first interactive book;
[0094] If so, determining the second transfer node corresponding to the second interactive book as an outgoing transfer node of the first transfer node corresponding to the first interactive book;
[0095] Furthermore, the first transfer node corresponding to the first interactive book is determined as an incoming transfer node of the second transfer node corresponding to the second interactive book.
[0096] In an optional implementation, the executable instruction causes the processor to perform the following operations:
[0097] Taking a transfer node corresponding to any interactive book included in the book transfer graph as a target transfer node, determining an incoming transfer node corresponding to the target transfer node, and an outgoing transfer node corresponding to the target transfer node;
[0098] The transfer weight of the interactive book corresponding to the target transfer node is calculated according to the transfer-in transfer node and the transfer-out transfer node.
[0099] In an optional implementation, the executable instruction causes the processor to perform the following operations:
[0100] The transfer weight of the interactive book corresponding to the target transfer node is calculated based on a preset damping coefficient, the total number of transfer nodes included in the book transfer graph, the transfer weights of each incoming transfer node corresponding to the target transfer node, and / or the transfer weights of each outgoing transfer node corresponding to the target transfer node.
[0101] Embodiment 4
[0102] Figure 3 A schematic structural diagram of an electronic device according to another embodiment of the present invention is shown. The specific embodiment of the present invention does not limit the specific implementation of the electronic device.
[0103] like Figure 3 As shown, the electronic device may include: a processor (processor) 302 , a communication interface (Communications Interface) 304 , a memory (memory) 306 , and a communication bus 308 .
[0104] The processor 302, the communication interface 304, and the memory 306 communicate with each other via the communication bus 308. The communication interface 304 is used to communicate with other devices such as a client or other server network elements. The processor 302 is used to execute the program 310, which can specifically execute the relevant steps in the above-mentioned electronic book sorting recommendation and book sorting push method embodiment.
[0105] Specifically, the program 310 may include program codes, which include computer operation instructions.
[0106] The processor 302 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention. The one or more processors included in the electronic device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.
[0107] The memory 306 is used to store the program 310. The memory 306 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0108] The program 310 may be specifically configured to enable the processor 302 to perform the following operations:
[0109] Obtain a list of interactive books for the reading user corresponding to the interactive period;
[0110] For the interactive books in the interactive book list, determining the interaction depth value of the interactive book according to the interaction duration and / or interaction type of the reading user corresponding to the interactive book;
[0111] According to a preset bucket mapping relationship, the interaction depth value of the interactive book is mapped to an interaction weight value corresponding to the bucket interval;
[0112] A plurality of training sample groups are constructed according to the interaction weight values of the respective interactive books in the interactive book list, a ranking push model is trained by the plurality of training sample groups, and a ranking recommendation of electronic books is performed based on the ranking push model.
[0113] In an optional implementation, the executable instruction causes the processor to perform the following operations:
[0114] Querying a preset bucket mapping relationship to determine a bucket interval corresponding to the interaction depth value of the interactive book; wherein the bucket mapping relationship is used to set a numerical range of the interaction depth value corresponding to each bucket interval and an interaction weight value corresponding to each bucket interval;
[0115] Querying the interaction weight value corresponding to the bucket interval corresponding to the interaction depth value of the interactive book, and using the queried interaction weight value as the interaction weight value of the interactive book;
[0116] The interaction depth value is a continuous value, and the interaction weight value is a discrete value.
[0117] In an optional implementation, the executable instruction causes the processor to perform the following operations:
[0118] According to the interaction weight values of the interactive books in the interactive book list, the interactive books in the interactive book list are combined into multiple training sample groups, and each training sample group is labeled according to the comparison result between the interaction weight values of at least two training samples included in each training sample group.
[0119] In an optional implementation, the executable instruction causes the processor to perform the following operations:
[0120] The plurality of training sample groups are trained by a sorting algorithm to obtain the sorting push model; wherein the sorting algorithm includes: a sorting algorithm based on sample pairs and / or a sorting algorithm based on sample lists.
[0121] In an optional implementation, the executable instruction causes the processor to perform the following operations:
[0122] Determine the transfer relationship between each interactive book in the interactive book list, and generate a book transfer graph corresponding to the interactive book list according to the transfer relationship between the interactive books;
[0123] According to the book transition graph, the transition weight of each interactive book is calculated, and the transition weight is used as the sample feature of the training sample corresponding to the interactive book.
[0124] In an optional implementation, the executable instruction causes the processor to perform the following operations:
[0125] For a first interactive book in the interactive book list, detecting whether a reading user interacts with a second interactive book during the process of reading the first interactive book;
[0126] If so, determining the second transfer node corresponding to the second interactive book as an outgoing transfer node of the first transfer node corresponding to the first interactive book;
[0127] Furthermore, the first transfer node corresponding to the first interactive book is determined as an incoming transfer node of the second transfer node corresponding to the second interactive book.
[0128] In an optional implementation, the executable instruction causes the processor to perform the following operations:
[0129] Taking a transfer node corresponding to any interactive book included in the book transfer graph as a target transfer node, determining an incoming transfer node corresponding to the target transfer node, and an outgoing transfer node corresponding to the target transfer node;
[0130] The transfer weight of the interactive book corresponding to the target transfer node is calculated according to the transfer-in transfer node and the transfer-out transfer node.
[0131] In an optional implementation, the executable instruction causes the processor to perform the following operations:
[0132] The transfer weight of the interactive book corresponding to the target transfer node is calculated based on a preset damping coefficient, the total number of transfer nodes included in the book transfer graph, the transfer weights of each incoming transfer node corresponding to the target transfer node, and / or the transfer weights of each outgoing transfer node corresponding to the target transfer node.
[0133] The algorithm and display provided herein are not inherently related to any particular computer, virtual system or other device. Various general purpose systems can also be used together with the teachings based on this. According to the above description, it is obvious that the structure required for constructing such systems. In addition, the present invention is not directed to any specific programming language either. It should be understood that various programming languages can be utilized to realize the content of the present invention described herein, and the description of the above specific languages is for disclosing the best mode of the present invention.
[0134] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0135] Similarly, it should be understood that in order to streamline the present disclosure and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, various features of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the intention that the claimed invention requires more features than those explicitly recited in each claim. More specifically, as reflected in the claims below, inventive aspects lie in less than all the features of the individual embodiments disclosed above. Therefore, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, with each claim itself serving as a separate embodiment of the present invention.
[0136] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.
[0137] In addition, those skilled in the art will appreciate that, although some embodiments herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, in the claims below, any one of the claimed embodiments may be used in any combination.
[0138] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc., does not indicate any order. These words may be interpreted as names.
Claims
1. A method for ranking and recommending e-books. include: Obtain a list of interactive books for the reading user corresponding to the interactive period; For the interactive books in the interactive book list, determining the interaction depth value of the interactive book according to the interaction duration and / or interaction type of the reading user corresponding to the interactive book; According to a preset bucket mapping relationship, the interaction depth value of the interactive book is mapped to an interaction weight value corresponding to the bucket interval; Constructing a plurality of training sample groups according to the interaction weight values of the interactive books in the interactive book list, wherein the transfer relationship between the interactive books in the interactive book list is determined, and a book transfer graph corresponding to the interactive book list is generated according to the transfer relationship between the interactive books; calculating the transfer weight of each interactive book according to the book transfer graph, and using the transfer weight as the sample feature of the training sample corresponding to the interactive book; The ranking push model is trained by using the multiple training sample groups, and the ranking recommendation of the e-book is performed based on the ranking push model.
2. The method according to claim 1, in, Mapping the interaction depth value of the interactive book to an interaction weight value corresponding to the bucket interval according to the preset bucket mapping relationship includes: Querying a preset bucket mapping relationship to determine a bucket interval corresponding to the interaction depth value of the interactive book; wherein the bucket mapping relationship is used to set a numerical range of the interaction depth value corresponding to each bucket interval and an interaction weight value corresponding to each bucket interval; Querying the interaction weight value corresponding to the bucket interval corresponding to the interaction depth value of the interactive book, and using the queried interaction weight value as the interaction weight value of the interactive book; The interaction depth value is a continuous value, and the interaction weight value is a discrete value.
3. The method according to claim 1 or 2, in, The step of constructing a plurality of training sample groups according to the interaction weight values of the interactive books in the interactive book list comprises: According to the interaction weight values of the interactive books in the interactive book list, the interactive books in the interactive book list are combined into multiple training sample groups, and each training sample group is labeled according to the comparison result between the interaction weight values of at least two training samples included in each training sample group.
4. The method according to any one of claims 1-2, in, The training of the sorting push model by using the multiple training sample groups includes: The plurality of training sample groups are trained by a sorting algorithm to obtain the sorting push model; wherein the sorting algorithm includes: a sorting algorithm based on sample pairs and / or a sorting algorithm based on sample lists.
5. The method according to claim 1, in, The step of determining the transfer relationship between the interactive books in the interactive book list and generating a book transfer graph corresponding to the interactive book list according to the transfer relationship between the interactive books comprises: For a first interactive book in the interactive book list, detecting whether a reading user interacts with a second interactive book during the process of reading the first interactive book; If so, determining the second transfer node corresponding to the second interactive book as an outgoing transfer node of the first transfer node corresponding to the first interactive book; Furthermore, the first transfer node corresponding to the first interactive book is determined as an incoming transfer node of the second transfer node corresponding to the second interactive book.
6. The method according to claim 5, in, Calculating the transfer weight of each interactive book according to the book transfer graph includes: Taking a transfer node corresponding to any interactive book included in the book transfer graph as a target transfer node, determining an incoming transfer node corresponding to the target transfer node, and an outgoing transfer node corresponding to the target transfer node; The transfer weight of the interactive book corresponding to the target transfer node is calculated according to the transfer-in type transfer node and the transfer-out type transfer node.
7. The method according to claim 6, in, The calculating the transfer weight of the interactive book corresponding to the target transfer node according to the transfer-in transfer node and the transfer-out transfer node comprises: The transfer weight of the interactive book corresponding to the target transfer node is calculated based on a preset damping coefficient, the total number of transfer nodes included in the book transfer graph, the transfer weights of each incoming transfer node corresponding to the target transfer node, and / or the transfer weights of each outgoing transfer node corresponding to the target transfer node.
8. An electronic device, include: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform the following operations: Obtain a list of interactive books for the reading user corresponding to the interactive period; For the interactive books in the interactive book list, determining the interaction depth value of the interactive book according to the interaction duration and / or interaction type of the reading user corresponding to the interactive book; According to a preset bucket mapping relationship, the interaction depth value of the interactive book is mapped to an interaction weight value corresponding to the bucket interval; Constructing a plurality of training sample groups according to the interaction weight values of the interactive books in the interactive book list, wherein the transfer relationship between the interactive books in the interactive book list is determined, and a book transfer graph corresponding to the interactive book list is generated according to the transfer relationship between the interactive books; calculating the transfer weight of each interactive book according to the book transfer graph, and using the transfer weight as the sample feature of the training sample corresponding to the interactive book; The ranking push model is trained by using the multiple training sample groups, and the ranking recommendation of the e-book is performed based on the ranking push model.
9. The electronic device according to claim 8, in, The executable instructions cause the processor to perform the following operations: Querying a preset bucket mapping relationship to determine a bucket interval corresponding to the interaction depth value of the interactive book; wherein the bucket mapping relationship is used to set a numerical range of the interaction depth value corresponding to each bucket interval and an interaction weight value corresponding to each bucket interval; Querying the interaction weight value corresponding to the bucket interval corresponding to the interaction depth value of the interactive book, and using the queried interaction weight value as the interaction weight value of the interactive book; The interaction depth value is a continuous value, and the interaction weight value is a discrete value.
10. The electronic device according to claim 9, in, The executable instructions cause the processor to perform the following operations: According to the interaction weight values of the interactive books in the interactive book list, the interactive books in the interactive book list are combined into multiple training sample groups, and each training sample group is labeled according to the comparison result between the interaction weight values of at least two training samples included in each training sample group.
11. The electronic device according to any one of claims 8 to 10, in, The executable instructions cause the processor to perform the following operations: The plurality of training sample groups are trained by a sorting algorithm to obtain the sorting push model; wherein the sorting algorithm includes: a sorting algorithm based on sample pairs and / or a sorting algorithm based on sample lists.
12. The electronic device according to claim 8, in, The executable instructions cause the processor to perform the following operations: For a first interactive book in the interactive book list, detecting whether a reading user interacts with a second interactive book during the process of reading the first interactive book; If so, determining the second transfer node corresponding to the second interactive book as an outgoing transfer node of the first transfer node corresponding to the first interactive book; Furthermore, the first transfer node corresponding to the first interactive book is determined as an incoming transfer node of the second transfer node corresponding to the second interactive book.
13. The electronic device according to claim 12, in, The executable instructions cause the processor to perform the following operations: Taking a transfer node corresponding to any interactive book included in the book transfer graph as a target transfer node, determining an incoming transfer node corresponding to the target transfer node, and an outgoing transfer node corresponding to the target transfer node; The transfer weight of the interactive book corresponding to the target transfer node is calculated according to the transfer-in type transfer node and the transfer-out type transfer node.
14. The electronic device according to claim 13, in, The executable instructions cause the processor to perform the following operations: The transfer weight of the interactive book corresponding to the target transfer node is calculated based on a preset damping coefficient, the total number of transfer nodes included in the book transfer graph, the transfer weights of each incoming transfer node corresponding to the target transfer node, and / or the transfer weights of each outgoing transfer node corresponding to the target transfer node.
15. A computer storage medium, wherein at least one executable instruction is stored in the storage medium, and the executable instruction enables a processor to execute the method according to any one of claims 1 to 7.
