Personalized resource recommendation method for libraries based on user portrait

Through a personalized resource recommendation method based on user portraits, combined with borrowing and browsing records, a book recommendation list is generated, which solves the problem of libraries being unable to accurately recommend, satisfies users' general and time-sensitive reading needs, and improves the accuracy of recommendations performance and user satisfaction.

CN118245682BActive Publication Date: 2024-09-24TIANJIN MEDICAL UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410620647.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-20
Publication Date
2024-09-24
Estimated Expiration
2044-05-20

AI Technical Summary

Technical Problem

In the existing technology, libraries cannot make accurate book recommendations based on users' actual needs and preferences. Especially when users do not have clear borrowing goals, they cannot meet users' time-sensitive reading needs.

Method used

Using a personalized resource recommendation method based on user portraits, by generating user portraits and similar user portraits, combined with borrowing and browsing records, a collection of books to be recommended is generated, and sorted according to borrowing status to provide personalized book recommendations.

Benefits of technology

It can simultaneously meet users' general reading and time-sensitive reading needs. The recommended book order is more in line with users' actual needs, improving the accuracy of recommendations and user satisfaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118245682B
    Figure CN118245682B
Patent Text Reader

Abstract

The personalized resource recommendation method for libraries based on user portraits proposed in this application relates to the field of information recommendation technology. First, similar users are obtained based on the user's basic information and historical borrowing information, and the types of books that the similar users are interested in are expanded to form a first set of books to be recommended. Secondly, a second set of books to be recommended is generated based on the user's time-sensitive browsing information. The set of books to be recommended is generated for the user through the above two dimensions, which can simultaneously meet the user's general reading preferences and time-sensitive reading preferences. In addition, the order of book recommendations in the set of books to be recommended is adjusted according to the tag information in the user's reading portrait, and the order of book recommendations is further adjusted based on the borrowing status of the book, so that the order of book recommendations can be more in line with the actual needs of the user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of information recommendation, and in particular relates to a personalized resource recommendation method for a library based on user portraits. Background Art

[0002] In the prior art, when a user does not have a clear book borrowing target, the library cannot make accurate book recommendations based on the user's actual needs and preferences. Therefore, there is an urgent need for a book recommendation method that can comprehensively consider the user's reading preferences and time-sensitive reading needs, so as to meet both the user's general reading needs and the user's time-sensitive reading needs. Summary of the invention

[0003] The purpose of the present invention is to provide a personalized library resource recommendation method based on user portraits to solve the technical problem in the prior art that book recommendations do not meet user needs.

[0004] A personalized resource recommendation method for libraries based on user portraits, the method comprising:

[0005] S1: Generate a first portrait of a first user, obtain N reference portraits that meet a preset similarity requirement with the first portrait, and determine a second user set based on the N reference portraits;

[0006] S2: generating a first borrowed book portrait and a first set of books to be recommended according to the borrowed book list of the second user set;

[0007] S3: Acquire the first browsing record of the first user within a preset time period, and generate a second borrowed book portrait;

[0008] S4: determining a second set of books to be recommended according to the second borrowed book portrait;

[0009] S5: generating a set of books to be recommended according to the first set of books to be recommended and the second set of books to be recommended;

[0010] S6: sorting the books in the to-be-recommended book set according to the first borrowed book portrait and the second borrowed book portrait, thereby generating a first to-be-recommended book list;

[0011] S7: adjusting the first list of books to be recommended according to the borrowing status of the books, thereby obtaining a recommended book list, and sending the recommended book list to the terminal of the first user;

[0012] Wherein, the S1 includes the following sub-steps:

[0013] S11: Obtaining basic information and borrowing history information of the first user, and generating a first portrait of the first user;

[0014] S12: Obtaining basic information and borrowing history information of the N second users, and generating N reference portraits;

[0015] S13: Calculating the cosine similarity between the first portrait and the N reference portraits, and determining the reference portrait whose cosine similarity is greater than a threshold as the first reference portrait;

[0016] S14: determining a second user set according to a correspondence between each of the second users and each of the first reference portraits;

[0017] The S6 comprises the following sub-steps:

[0018] S61: Generate a first tag set based on the first borrowed book portrait and the second borrowed book portrait;

[0019] S62: inputting the first tag set into a borrowed book category prediction model, and outputting N borrowed book categories to form a first borrowed book category set;

[0020] S63: Calculate the similarity between each book in the to-be-recommended book set and the first borrowed book category set, and perform a sorting operation according to the similarity to generate the first to-be-recommended book list.

[0021] Preferably, S2 includes:

[0022] S21: Obtaining historical borrowing records of each second user in the second user set within a preset time period, and generating a borrowed book set;

[0023] S22: generating a first book portrait for each book in the borrowed book collection, and performing K-MEANS clustering on the N first book portraits to obtain N first cluster centers;

[0024] S23: for each of the first cluster centers, expand the same type of books to obtain N first expanded book sets;

[0025] S24: Determine a first set of books to be recommended based on the N first extended book sets; generate the first borrowed book portrait based on the cluster center portraits corresponding to the N first cluster centers.

[0026] Preferably, S3 includes:

[0027] S31: Acquire a first browsing record set of the first user within a preset time period;

[0028] S32: extracting a first keyword set from the first browsing record set, and generating the second borrowed book portrait based on the first keyword set.

[0029] Preferably, S4 includes:

[0030] S41: Calculating the cosine similarity between the second borrowed book portrait and the second book portrait of each book in the library;

[0031] S42: Generate the second set of books to be recommended using the books corresponding to the second book portraits whose cosine similarity exceeds a preset threshold.

[0032] Preferably, S5 includes:

[0033] The books in the first and second to-be-recommended book sets are integrated to form the to-be-recommended book set.

[0034] Preferably, the S7 includes:

[0035] S71: for the first book in the first list of recommended books, obtain the borrowing status information, if it has not been borrowed, continue to process other books, if it has been borrowed, go to step S72;

[0036] S72: Obtain the borrower and borrowing time of the first book, and predict the first book return time based on the borrower's historical borrowing record. If there are still books to be processed, proceed to step S71, otherwise proceed to step S73;

[0037] S73: Based on the borrowing status information and the first book return time, the first list of books to be recommended is adjusted to obtain a recommended book list.

[0038] Wherein, N is an integer greater than or equal to 2

[0039] The present application proposes a personalized resource recommendation method for libraries based on user portraits. First, similar users are obtained based on the user's basic information and historical borrowing information, and the types of books that the similar users are interested in are expanded to form a first set of books to be recommended. Secondly, a second set of books to be recommended is generated based on the user's time-sensitive browsing information. The above two dimensions generate a set of books to be recommended for the user, which can simultaneously meet the user's general reading preferences and time-sensitive reading preferences. In addition, the order of book recommendations in the set of books to be recommended is adjusted according to the tag information in the user's reading portrait, and the order of book recommendations is further adjusted based on the borrowing status of the book, so that the order of book recommendations can be more in line with the actual needs of the user. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the implementation methods of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for the implementation methods or the description of the prior art. Obviously, the drawings in the following description are only exemplary, and for ordinary technicians in this field, other implementation drawings can be derived from the provided drawings without creative work.

[0041] Figure 1 It is an execution flow chart of the personalized resource recommendation method for libraries based on user portraits of the present invention. DETAILED DESCRIPTION

[0042] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0043] The present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments, wherein the illustrative embodiments and descriptions are only used to explain the present invention but are not intended to limit the present invention.

[0044] The following is a detailed description of the method for recommending personalized library resources based on user portraits of the present invention.

[0045] This embodiment proposes a personalized resource recommendation method for libraries based on user portraits. The specific process is as follows: Figure 1 As shown, the following steps are included:

[0046] S1: Generate a first portrait of a first user, obtain N reference portraits that meet a preset similarity requirement with the first portrait, and determine a second user set based on the N reference portraits.

[0047] In this step, the first user is the user for whom book recommendations are to be made, and the N second users are other library users who have a history of borrowing books.

[0048] The S1 comprises the following sub-steps:

[0049] S11: Obtain basic information and borrowing history information of the first user, and generate a first portrait of the first user.

[0050] In order to better express the reading habits of the first user, in this step, it is necessary to obtain the basic information and borrowing history information of the first user respectively. The basic information includes the age, gender, education level, major studied, etc. of the first user, and the borrowing history information includes the book borrowing history of the first user within a preset time period.

[0051] S12: Obtain basic information and borrowing history information of N second users, and generate N reference portraits.

[0052] A corresponding reference portrait is generated for each of the second users, and the reference portrait is generated based on the basic information and historical borrowing information of the second user.

[0053] S13: Calculate the cosine similarity between the first portrait and the N reference portraits, and determine the reference portrait whose cosine similarity is greater than a threshold as the first reference portrait.

[0054] Specifically, the first portrait and the reference portrait may be represented as vectors, and the cosine similarity between the vectors may be calculated.

[0055] S14: Determine a second user set according to the correspondence between each of the second users and each of the first reference portraits.

[0056] Since each of the first reference portraits corresponds one-to-one to one of the second users, a second user set can be determined based on the correspondence between the two, thereby preparing for the subsequent acquisition of a borrowed book list of the second user set.

[0057] S2: Generate a first borrowed book portrait and a first set of books to be recommended according to the borrowed book list of the second user set.

[0058] The S2 comprises the following sub-steps:

[0059] S21: Obtain historical borrowing records of each second user in the second user set within a preset time period to generate a borrowed book set.

[0060] The preset time period may preferably be set to 1 year, because the user's reading preferences may change over time.

[0061] S22: Generate a first book portrait for each book in the borrowed book collection, and perform K-MEANS clustering on the N first book portraits to obtain N first cluster centers.

[0062] The first book portrait corresponding to each book can be described from the dimensions of subject area, genre, content characteristics, reader age group, publisher, etc. Each of the first cluster centers includes a cluster center portrait.

[0063] S23: For each of the first cluster centers, expand the same type of books to obtain N first expanded book sets.

[0064] In order to provide readers with a richer book borrowing list, book category expansion can be performed for the book portraits corresponding to the N first clustering centers obtained, that is, books with a high degree of match with the book portraits are matched among the existing books in the library to form N first extended book sets.

[0065] S24: Determine a first set of books to be recommended based on the N first extended book sets; generate the first borrowed book portrait based on the cluster center portraits corresponding to the N first cluster centers.

[0066] In this step, the N first extended book sets are integrated and pre-processed to form the first to-be-recommended book set.

[0067] The book preprocessing includes operations such as deduplication of identical books and removal of books blacklisted by the first user.

[0068] The first borrowed book portrait is obtained after integrating the N cluster center portraits. The integration processing refers to extracting N tags from the N cluster center portraits and integrating the N tags to form the first borrowed book portrait.

[0069] S3: Obtain a first browsing record of the first user within a preset time period, and generate a second borrowed book portrait.

[0070] Readers' reading preferences often have a certain timeliness. For example, if a reader has watched a certain film or TV work within a certain period of time, he or she may want to read the book corresponding to the film or TV work. For example, if a reader is reviewing for a certain exam within a certain period of time, he or she may want to borrow the book corresponding to the exam. The above-mentioned timeliness reading preferences of readers are often reflected in the user's browser search history, shopping browsing history, etc. Therefore, in this step, the user's second borrowing book profile can be generated through the user's browsing history information within a preset time period.

[0071] The S3 comprises the following sub-steps:

[0072] S31: Acquire a first browsing record set of the first user within a preset time period.

[0073] The preset time period may be set to, for example, 3 months. The first browsing record includes, but is not limited to, the browser search record, browsing record, shopping search record, browsing record, purchase record, etc. of the first user.

[0074] S32: extracting a first keyword set from the first browsing record set, and generating the second borrowed book portrait based on the first keyword set.

[0075] For search records, semantic segmentation and recognition can be performed to extract important information, such as the names of film and television works, the names of exams, etc. For browsing records, key information in web pages can be extracted through a preset keyword recognition model, and the keyword recognition model can use a keyword extraction model commonly used in the art.

[0076] S4: Determine a second set of books to be recommended according to the second borrowed book portrait.

[0077] The S4 comprises the following sub-steps:

[0078] S41: Calculate the cosine similarity between the second borrowed book portrait and the second book portrait of each book in the library.

[0079] S42: Generate the second set of books to be recommended using the books corresponding to the second book portraits whose cosine similarity exceeds a preset threshold.

[0080] S5: Generate a set of books to be recommended according to the first set of books to be recommended and the second set of books to be recommended.

[0081] The books in the first set of books to be recommended and the books in the second set of books to be recommended are integrated to form the set of books to be recommended. The integration includes operations such as deduplication of duplicate books and removal of books from the user blacklist.

[0082] S6: Sort the books in the to-be-recommended book set according to the first borrowed book portrait and the second borrowed book portrait, thereby generating a first to-be-recommended book list.

[0083] The S6 comprises the following sub-steps:

[0084] S61: Generate a first tag set based on the first borrowed book portrait and the second borrowed book portrait.

[0085] The first and second borrowed book portraits are respectively composed of a plurality of tags, and this step extracts the tags and combines them into the first tag set.

[0086] S62: Input the first tag set into a borrowed book category prediction model, and output N borrowed book categories to form a first borrowed book category set.

[0087] The borrowed book category prediction model is used to predict the book category that the user may be interested in based on the first tag set. The borrowed book category prediction model is trained in the following way:

[0088] First, sample data is obtained, which includes multiple user tag sets and categories of books of interest.

[0089] Secondly, the label set of each sample data is used as input, and the category of the book of interest is used as output to train a convolutional neural network model, thereby obtaining the borrowed book category prediction model.

[0090] S63: Calculate the similarity between each book in the to-be-recommended book set and the first borrowed book category set, and perform a sorting operation according to the similarity to generate the first to-be-recommended book list.

[0091] The specific method for calculating the similarity may be to perform cosine similarity calculation on the category of each book and the first borrowed book category set.

[0092] Preferably, the book corresponding to the second borrowed book portrait is set to be placed at the top, so as to meet the user's preference for timely reading.

[0093] S7: adjusting the first list of books to be recommended according to the borrowing status of the books to obtain a recommended book list, and sending the recommended book list to the terminal of the first user.

[0094] Since the books in the first list of books to be recommended may have been borrowed by others and thus do not meet the borrowing conditions, it is necessary to adjust the order of the first list of books to be recommended according to the borrowing status of the books.

[0095] The S7 comprises the following sub-steps:

[0096] S71: For the first book in the first list of books to be recommended, obtain borrowing status information. If it has not been borrowed, continue to process other books. If it has been borrowed, proceed to step S72.

[0097] S72: Obtain the borrower and borrowing time of the first book, and predict the first book return time based on the borrower's historical borrowing record. If there are still books to be processed, go to step S71, otherwise go to step S73.

[0098] S73: Based on the borrowing status information and the first book return time, the first list of books to be recommended is adjusted to obtain a recommended book list.

[0099] Specifically, for books that have not been borrowed, their ranking in the first list of recommended books may not be adjusted. For books that have been borrowed, their ranking in the first list of recommended books is adjusted according to their corresponding first return time, wherein the adjustment range of the ranking is positively correlated with the time difference between the first return time and the present. That is, the smaller the time difference, the smaller the range of the backward adjustment of the order of the book.

[0100] The present application proposes a personalized resource recommendation method for libraries based on user portraits. First, similar users are obtained based on the user's basic information and historical borrowing information, and the types of books that the similar users are interested in are expanded to form a first set of books to be recommended. Secondly, a second set of books to be recommended is generated based on the user's time-sensitive browsing information. The above two dimensions generate a set of books to be recommended for the user, which can simultaneously meet the user's general reading preferences and time-sensitive reading preferences. In addition, the order of book recommendations in the set of books to be recommended is adjusted according to the tag information in the user's reading portrait, and the order of book recommendations is further adjusted based on the borrowing status of the book, so that the order of book recommendations can be more in line with the actual needs of the user.

[0101] The above description is only a preferred embodiment of the present invention, so all equivalent changes or modifications made according to the structure, characteristics and principles described in the scope of the patent application of the present invention are included in the scope of the patent application of the present invention.

Claims

1. A personalized library resource recommendation method based on user portraits, characterized by: The method includes: S1: Generate a first profile of a first user, obtain N reference profiles that meet a preset similarity requirement with the first profile, and determine a second user set based on the N reference profiles; S2: generating a first borrowed book portrait and a first set of books to be recommended based on the borrowed book list of the second user set; S3: Obtaining a first browsing record of the first user within a preset time period and generating a second borrowed book profile; S4: Determine a second set of books to be recommended based on the second borrowed book portrait; S5: generating a set of books to be recommended according to the first set of books to be recommended and the second set of books to be recommended; S6: Sort the books in the set of books to be recommended according to the first borrowed book portrait and the second borrowed book portrait, thereby generating a first list of books to be recommended; S7: adjusting the first list of books to be recommended according to the borrowing status of the books, thereby obtaining a list of recommended books, and sending the list of recommended books to the terminal of the first user; Wherein, the S1 includes the following sub-steps: S11: Obtaining basic information and borrowing history information of the first user, and generating a first profile of the first user; S12: Obtain basic information and borrowing history information of N second users and generate N reference profiles; S13: Calculating the cosine similarity between the first portrait and the N reference portraits, and determining the reference portrait whose cosine similarity is greater than a threshold as the first reference portrait; S14: Determine a second user set based on the correspondence between each second user and each first reference profile; The S6 comprises the following sub-steps: S61: Generate a first tag set based on the first borrowed book portrait and the second borrowed book portrait; S62: Inputting the first tag set into a borrowed book category prediction model, outputting N borrowed book categories to form a first borrowed book category set; S63: Calculating the similarity between each book in the set of books to be recommended and the first set of borrowed book categories, and performing a sorting operation based on the similarity to generate the first list of books to be recommended; Wherein, N is an integer greater than or equal to 2; The S2 includes: S21: Obtain historical borrowing records of each second user in the second user set within a preset time period to generate a borrowed book set; S22: generating a first book portrait for each book in the borrowed book collection, and performing K-MEANS clustering on the N first book portraits to obtain N first cluster centers; S23: For each of the first cluster centers, perform book category expansion to obtain N first expanded book sets; S24: Determine a first set of books to be recommended based on the N first extended book sets; generate the first borrowed book portrait based on the cluster center portraits corresponding to the N first cluster centers; S3 includes: S31: Obtaining a first browsing record set of the first user within a preset time period; S32: extracting a first keyword set from the first browsing record set, and generating the second borrowed book portrait based on the first keyword set; The S7 includes: S71: For the first book in the first list of recommended books, obtain borrowing status information. If it has not been borrowed, continue processing other books. If it has been borrowed, proceed to step S72. S72: Obtain the borrower and borrowing time of the first book, and predict the first return time based on the borrower's historical borrowing record. If there are still books to be processed, proceed to step S71; otherwise, proceed to step S73. S73: Based on the borrowing status information and the first book return time, the first list of books to be recommended is adjusted to obtain a recommended book list.

2. The method for recommending personalized library resources based on user portraits according to claim 1 is characterized in that: The S4 includes: S41: Calculating the cosine similarity between the second borrowed book portrait and the second book portrait of each book in the library; S42: Generate the second set of books to be recommended using the books corresponding to the second book portraits whose cosine similarity exceeds a preset threshold.

3. The method for recommending personalized library resources based on user portraits according to claim 2 is characterized in that: The S5 includes: The books in the first set of books to be recommended and the second set of books to be recommended are integrated to form the set of books to be recommended.