Library book pushing method and system based on behavior analysis
By collecting and analyzing reader behavior data in real time, we build interest models and clustering portraits, and combine natural language processing and book quality indicators to generate personalized book recommendations, which solves the library's challenges in personalized recommendations and improves reader experience and services. quality.
Patent Information
- Application Number
- CN202410733298.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2044-06-06
AI Technical Summary
It is difficult for modern libraries to meet the personalized needs of readers, especially with the explosive growth of information volume. It is difficult for readers to quickly find the resources they need in the massive information, and traditional recommendation methods are inefficient.
By collecting readers' behavioral data in real time, we build interest models and clustering portraits, combine natural language processing and push technology to generate personalized book recommendation lists, use book quality indicators and recommendation scores to calculate fusion recommendation scores, and determine target recommended books.
It realizes personalized book recommendations, improves readers' reading experience and library service quality, ensures that recommended books meet readers' interests and needs, and improves recommendation accuracy and user satisfaction.
Smart Images

Figure CN118747235A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information processing technology, and in particular to a library book push method and system based on behavior analysis. Background Art
[0002] With the continuous advancement of information technology, the functions of traditional libraries have undergone tremendous changes. Modern libraries are not only a place for storing and borrowing books, but also an important platform for information acquisition and knowledge exchange. In order to improve readers' borrowing experience and enhance the service quality of libraries, modern libraries need to provide more refined and personalized services to enhance readers' experience and satisfaction.
[0003] Modern libraries not only provide traditional book lending services, but also provide a variety of services such as electronic resources, information retrieval, reading promotion, and cultural activities. The diversification of these services requires libraries to have stronger management and service capabilities. As readers' demand for knowledge and information increases, the demand for personalized services is becoming increasingly prominent. Different readers have differences in reading interests, information acquisition methods, and knowledge fields. How to meet readers' personalized needs has become an important challenge facing libraries. In particular, the explosive growth of information volume makes it difficult for readers to quickly find the required resources in the massive amount of information. Libraries need to provide efficient information screening and recommendation services to help readers quickly obtain the required information. Summary of the invention
[0004] In view of this, the present invention provides a library book push method and system based on behavior analysis, which aims to realize personalized book recommendations by collecting and analyzing readers' behavior data, combining natural language processing and push technology, thereby improving readers' borrowing experience and the service quality of the library, and has broad application prospects and practical value.
[0005] To achieve the above object, the present invention provides the following technical solutions:
[0006] In a first aspect, the present invention provides a library book push method based on behavior analysis, comprising the following steps:
[0007] Through the library's lending system, readers' behavior data is collected in real time, and interest models are built based on the readers' behavior data to analyze readers' interest preferences and behavior patterns;
[0008] Perform cluster analysis based on the readers' interest preferences and behavior patterns to generate cluster portraits of different readers;
[0009] Based on the collected reader behavior data and the library's local resources, the quality index data of each book is calculated, and a relationship map between clustering portraits and book quality index data is constructed;
[0010] Interact with readers through the Q&A interface of the lending system, extract search keywords from the Q&A, and generate a personalized book recommendation list based on the extracted search keywords and combined with the readers' interest model and behavior data;
[0011] According to the quality index data of the books and the recommendation scores output by the recommendation model, the fusion recommendation scores of each book in the book recommendation list are calculated, and the target recommended books are determined according to the fusion recommendation scores.
[0012] As a further solution of the present invention, real-time collection of readers' behavior data includes readers' borrowing behavior data, access behavior data, search behavior data and payment behavior data; wherein the borrowing behavior data includes borrowing time, return time and renewal times; the access behavior data includes visit time and frequency; the search behavior data includes search keywords and query records; and the payment behavior data includes download records of paid electronic resources.
[0013] As a further solution of the present invention, when constructing an interest model based on reader behavior data, the following steps are included:
[0014] Collect behavioral data: collect readers' borrowing behavior data, access behavior data, search behavior data, and payment behavior data;
[0015] Extract features: Analyze the collected behavior data, extract borrowing behavior features, and extract borrowing keywords and themes from the content of borrowed books;
[0016] Constructing interest vectors: Constructing interest vectors for each reader based on the extracted borrowing behavior features and the borrowing keywords and themes of the borrowed book content; where each dimension of the interest vector represents a theme, and the interest weights of each reader on different themes and the weights of borrowing keywords are calculated;
[0017] Integrate interest vectors: Integrate the calculated weights of each topic and borrowing keyword into an interest vector to form a comprehensive interest vector, and use the integrated interest vector to build a reader's interest model;
[0018] Optimize interest model: Use matrix decomposition to decompose reader and book rating matrices into feature matrices, mine potential interest features, and optimize interest models.
[0019] As a further solution of the present invention, the extracted borrowing behavior features include borrowing frequency, borrowing duration, search keywords and access behavior; wherein, the borrowing frequency is calculated by calculating the number of times each reader borrows books of different categories in different time periods; the borrowing duration is the statistical borrowing duration of each book; the search keywords are the search terms entered by the readers into the borrowing system; and the access behavior is the statistical frequency and access duration of the readers' page visits.
[0020] As a further solution of the present invention, when calculating the interest weight of each reader for different book categories, the weighted sum of the borrowing frequency and borrowing duration of each subject is calculated as the interest weight of the subject; the calculation formula of the interest weight is:
[0021] Interest Weight 历史 =α×borrowing frequency 历史 +b×borrowing time 历史
[0022] Among them, α is the borrowing frequency weight, and b is the borrowing duration weight;
[0023] When calculating the weight of a reader's borrowing keyword, the weight of each borrowing keyword in the reader's behavior data is calculated. The calculation formula for the borrowing keyword weight is:
[0024] Keyword weight k = T k ×I k
[0025] Among them, T k is the frequency of keyword k in the reader behavior data, I k is the inverse document frequency of keyword k in all reader behavior data.
[0026] As a further solution of the present invention, when generating clustering portraits of different readers, the following steps are included:
[0027] Standardize the readers' interest preferences and behavior patterns, perform cluster analysis on the obtained reader feature data, and calculate the cluster label of each reader;
[0028] Perform feature analysis on each cluster according to the cluster label, extract common features, and generate a cluster portrait.
[0029] As a further solution of the present invention, the quality index data of each book includes the number of borrowing times and the borrowing and returning time.
[0030] As a further solution of the present invention, when calculating the quality index data of each book, the following steps are included:
[0031] Extract the borrowing times, borrowing and returning time and user rating data of each book from the library system; the total number of times each book is borrowed is recorded as Bi ; The average of all borrowing time of books is recorded as T i ; The average rating of the book is recorded as S i ;
[0032] The quality score Q is obtained by weighting the number of borrowing times, borrowing and returning time, and user rating data. i , the calculation formula is:
[0033] Q i =ω1·B i +ω2·T i +ω3·S i
[0034] Among them, ω1, ω2 and ω3 are the weight of borrowing times, the weight of borrowing and returning time, and the weight of the average score, respectively.
[0035] As a further solution of the present invention, when constructing a relationship map between clustering portraits and book quality index data, the following steps are included:
[0036] Perform cluster analysis based on readers’ interest models and behavior data to generate the average feature vector of each cluster, representing the portraits of different types of readers;
[0037] Associate each cluster portrait with the book quality index data and draw a relationship map. In the relationship map, each node represents a reader cluster or a book, and the edge weight represents the degree of interest of the readers in the cluster in the book.
[0038] Using the calculated quality index data Q i The characteristic vectors in the reader clustering portrait are used to determine the weights of the edges in the graph through cosine similarity, and the relationship graph between the clustering portrait and the book quality index data is obtained.
[0039] As a further solution of the present invention, when extracting search keywords and generating a personalized book recommendation list, the following steps are included:
[0040] Through the question-and-answer interface of the borrowing system, the text entered by the reader is analyzed to extract the search keywords;
[0041] Based on the extracted search keywords, combined with the reader's interest model and behavior data, the similarity between the search keywords and the reader's interest vector is calculated. The calculation formula is:
[0042]
[0043] Among them, θ is the search keyword vector, γ is the reader's interest vector;
[0044] Based on the similarity score, books that are highly relevant to the search keywords and readers' interests are selected from the library resources to generate a personalized recommendation list.
[0045] As a further solution of the present invention, when calculating the fusion recommendation score, the following steps are included:
[0046] Calculate the recommendation score R of each book based on the reader's behavior data and interest model i ;
[0047] Quality index data Q of comprehensive books i And the recommendation score R output by the recommendation model i , calculate the fusion recommendation score F of each book i , the calculation formula is:
[0048] F i =σ·Q i +τR i
[0049] Among them, σ is the weight of the book quality index, and τ is the weight of the recommendation model output score;
[0050] According to the fusion recommendation score F i Sort the books and select the books with the highest scores as the target recommended books.
[0051] In a second aspect, the present invention also provides a library book push system based on behavior analysis, comprising the following modules:
[0052] The data collection module is used to collect the readers' behavior data in real time, including: a borrowing system interface connected to the library's borrowing system for collecting borrowing data; and a data collector for monitoring and recording the readers' click and browsing behaviors in the library system;
[0053] The interest model building module is used to build an interest model for each reader based on the collected reader behavior data, and analyze interest preferences and behavior patterns;
[0054] Cluster analysis module, used to perform cluster analysis on readers' interest models and generate cluster portraits of different readers;
[0055] Book quality assessment module, used to calculate the quality index data of each book;
[0056] The relationship map construction module is used to construct a relationship map between clustering portraits and book quality index data, and associate reader groups with book quality;
[0057] The question-and-answer interaction module interacts with readers through the question-and-answer interface of the borrowing system and extracts search keywords in the questions and answers;
[0058] The list generation module is used to generate a personalized book recommendation list based on the extracted search keywords and combined with the reader's interest model and behavior data;
[0059] The fusion recommendation score calculation module is used to calculate the fusion recommendation score of each book in the book recommendation list, and determine the target recommended book based on the book's quality indicator data and the recommendation score output by the recommendation model.
[0060] As a further solution of the present invention, the data collection module includes: a lending system interface connected to the library lending system for collecting lending data; and a data collector for monitoring and recording readers' clicks and browsing behaviors in the library system.
[0061] Compared with the prior art, the library book push method and system based on behavior analysis of the present invention builds a reader interest model by comprehensively collecting and analyzing reader behavior data, and generates a personalized book recommendation list in combination with the quality indicators of library books, which has the following beneficial effects:
[0062] 1. By collecting readers' behavioral data in real time (including borrowing, access, search and payment behaviors), we can accurately build readers' interest models to ensure that the recommended books are more in line with readers' interests and enhance readers' reading experience; using multi-dimensional data such as borrowing frequency, borrowing duration, search keywords and access behavior, we can comprehensively analyze readers' reading habits and interest preferences to ensure the accuracy and comprehensiveness of the interest model.
[0063] 2. Dynamic adjustment and precise recommendation are achieved: the readers’ interest models and behavior patterns are dynamically changing. The present invention can update the readers’ behavior data and interest models in real time, ensuring that the recommendation system can adjust in time and reflect the latest readers’ interests, thereby increasing the timeliness and accuracy of the recommendations. By clustering the readers’ interest models, clustering portraits of different reader groups are generated, and the recommendation strategies are further refined to ensure that readers in the same group can receive more precise and common recommendations.
[0064] 3. By calculating the quality index data of each book, an objective basis for book quality evaluation is provided for the recommendation system. Combined with the recommendation score output by the recommendation model, it ensures that the recommended books are not only in line with the readers' interests; by constructing a relationship map between clustering portraits and book quality index data, the relationship between reader groups and books is intuitively displayed, and the edge weights in the map are calculated using cosine similarity to further optimize the recommendation results and improve the scientificity and rationality of the recommendation algorithm.
[0065] 4. Intelligent interaction has been achieved: With the help of the question-and-answer interaction module, it interacts with readers through the question-and-answer interface, extracts search keywords, and further combines readers' interest models and behavior data to generate a personalized book recommendation list, making the recommendation process more intelligent and interactive; by integrating the recommendation score calculation module, it comprehensively considers the quality indicator data of the book and the recommendation score output by the recommendation model to ensure that the final recommended books are in line with readers' interests and have high reading value, thereby improving the satisfaction of the recommended books.
[0066] In summary, the present invention generates a personalized recommendation list by accurately collecting and analyzing reader behavior data, building a dynamically updated interest model, and combining the quality indicators of books, which greatly improves the accuracy of library book recommendations and user satisfaction, and has significant application value and promotion prospects.
[0067] These and other aspects of the present invention will be more clearly understood in the following description of the embodiments. It should be understood that the above general description and the following detailed description are only exemplary and explanatory and cannot limit the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or related technologies, the following briefly introduces the drawings required for use in the exemplary embodiments or related technical descriptions. The drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation to the present invention. In the drawings:
[0069] Figure 1 The present invention is a flowchart of a method for pushing books to a library based on behavior analysis according to an embodiment of the present invention.
[0070] Figure 2 The present invention is a flowchart of constructing an interest model in a library book push method based on behavior analysis in an embodiment of the present invention.
[0071] Figure 3 The present invention is a flowchart of calculating the quality index data of each book in a library book push method based on behavior analysis in an embodiment of the present invention.
[0072] Figure 4 The present invention is a flowchart of constructing a relationship map in a library book push method based on behavior analysis in an embodiment of the present invention.
[0073] Figure 5 The present invention is a flowchart of generating a personalized book recommendation list in a library book push method based on behavior analysis in an embodiment of the present invention.
[0074] Figure 6The present invention is a flowchart of calculating a fusion recommendation score in a library book push method based on behavior analysis in an embodiment of the present invention. DETAILED DESCRIPTION
[0075] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0076] In some of the processes described in the specification and claims of the present invention and the above-mentioned figures, multiple operations that appear in a specific order are included, but it should be clearly understood that these operations may not be executed in the order in which they appear in this article or executed in parallel. The serial numbers of the operations, such as 101, 102, etc., are only used to distinguish different operations, and the serial numbers themselves do not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be executed in sequence or in parallel. It should be noted that the descriptions of "first", "second", etc. in this article are used to distinguish different messages, devices, modules, etc., do not represent the order of precedence, and do not limit the "first" and "second" to be different types.
[0077] The following will be combined with the drawings in the exemplary embodiments of the present invention to clearly and completely describe the technical solutions in the exemplary embodiments of the present invention. Obviously, the exemplary embodiments described are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0078] Due to the explosive growth of information, it is difficult for readers to quickly find the required resources in the massive amount of information. Libraries need to provide efficient information screening and recommendation services to help readers quickly obtain the required information. In view of this, the present invention provides a library book push method and system based on behavior analysis, which aims to collect and analyze readers' behavior data, combine natural language processing and push technology, and can realize personalized book recommendations, thereby improving readers' borrowing experience and library service quality, and has broad application prospects and practical value.
[0079] The technical solution of the present invention is further described below in conjunction with specific embodiments:
[0080] See also Figure 1 As shown, a library book push method based on behavior analysis provided by an embodiment of the present invention includes the following steps:
[0081] Step S10: Collect the reader's behavior data in real time through the library's lending system, build an interest model based on the reader's behavior data, and analyze the reader's interest preferences and behavior patterns;
[0082] Step S20: Perform cluster analysis based on the readers' interest preferences and behavior patterns obtained through analysis to generate cluster portraits of different readers;
[0083] Step S30: Calculate the quality index data of each book based on the collected reader behavior data and the local resources of the library, and construct a relationship map between the clustering portrait and the book quality index data; wherein the quality index data of each book includes the number of borrowing times and the borrowing and returning time;
[0084] Step S40: Interact with the reader through the question-and-answer interface of the lending system, extract search keywords in the question-and-answer, and generate a personalized book recommendation list based on the extracted search keywords and the reader's interest model and behavior data;
[0085] Step S50: Calculate the fused recommendation score of each book in the book recommendation list according to the quality indicator data of the book and the recommendation score output by the recommendation model, and determine the target recommended book according to the fused recommendation score.
[0086] In this embodiment, in step S10, the real-time collection of readers' behavior data includes readers' borrowing behavior data, access behavior data, search behavior data and payment behavior data; wherein the borrowing behavior data includes borrowing time, return time and renewal times; the access behavior data includes visit time and frequency; the search behavior data includes search keywords and query records; and the payment behavior data includes download records of paid electronic resources.
[0087] The embodiment of the present invention provides a library book push method based on behavior analysis, which collects various types of behavior data of readers in real time, constructs interest models and behavior patterns, performs cluster analysis to generate reader portraits, and constructs a relationship map based on the quality indicator data of books. In the interaction with readers, the system extracts search keywords, generates a personalized recommendation list based on the reader's interest model, and finally determines the target recommended books by integrating the recommendation scores. This method not only improves the accuracy of recommendations and user satisfaction, but also improves the utilization efficiency of library resources, and has significant application value and promotion prospects.
[0088] When the library book push method based on behavior analysis is executed, the reader's behavior data is first collected in real time, and the borrowing time, return time and renewal times of each reader's borrowing behavior data are recorded in real time through the library lending system to reflect the reader's use frequency and duration of different books; and the access behavior data, search behavior data and payment behavior data are collected to record the time and frequency of readers' visits to the library, the readers' search keywords and query records in the library system, and the readers' download records of paid electronic resources.
[0089] If the behavior data of three readers are collected by the library book push method based on behavior analysis according to the embodiment of the present invention, it is assumed that the behavior data of the readers collected in real time is:
[0090] (1) Reader A borrowed 5 books in a certain month. The average borrowing time for each book was 15 days, including 2 renewals.
[0091] (2) Reader B visits the library three times in a week, and each visit lasts about 2 hours.
[0092] (3) Reader C searched for “artificial intelligence technology” and “machine learning algorithm” in the library system several times and downloaded several related paid electronic resources.
[0093] Then, when performing cluster analysis and generating cluster portraits of different readers, the clustering algorithm is used to classify readers based on the collected behavioral data to form cluster portraits of different interest groups. Through analysis, it is found that reader A and several other readers belong to the "science and technology book lovers" group because they frequently borrow and search for science and technology books. Reader B is classified as a "literary book lover" group because his borrowing and access records show a high interest in literary works.
[0094] Then, the book quality index data is calculated. When constructing the relationship map, the borrowing times and borrowing and returning time of each book are calculated as its quality index data; a relationship map between the reader clustering portrait and the book quality index data is constructed to improve the accuracy of the recommendation through these associated data. Then, the relationship map can be constructed as follows:
[0095] ① Book X has been borrowed 30 times in the past year, with an average borrowing time of 20 days.
[0096] ②Book Y has been borrowed 10 times, with an average borrowing time of 15 days.
[0097] Through the relationship map, we can find that among the "science and technology book lovers" group, the borrowing frequency and borrowing time of book X are both high, indicating that the book is popular among this group.
[0098] When interacting with readers through the question-and-answer interface to generate a personalized recommendation list, readers enter the keywords they are interested in in the question-and-answer interface of the borrowing system. The system extracts these keywords and combines them with the aforementioned interest model and behavior data to generate a personalized recommendation list. Then, reader D enters "blockchain technology" in the question-and-answer interface. Combined with his past borrowing and search records, the system recommends several related books, such as "Blockchain Revolution" and "Blockchain Technology Detailed Explanation".
[0099] When calculating the fusion recommendation score and determining the target recommended books, the fusion recommendation score of each book is calculated based on the quality indicator data of the book and the recommendation score output by the recommendation model, and the book with the highest score is selected as the target recommended book. Finally, through calculation, the book "Blockchain Revolution" has the highest fusion recommendation score, and the system finally recommends this book to reader D.
[0100] In step S10 of this embodiment, see Figure 2 As shown in the figure, when building an interest model based on reader behavior data, the following steps are included:
[0101] Step S101, collecting behavior data: collecting readers' borrowing behavior data, access behavior data, search behavior data and payment behavior data;
[0102] Step S102, extracting features: analyzing the collected behavior data, extracting borrowing behavior features, and extracting borrowing keywords and themes from the content of the borrowed books;
[0103] Step S103, constructing an interest vector: constructing an interest vector for each reader according to the extracted borrowing behavior characteristics and the borrowing keywords and themes of the borrowed book content; wherein each dimension of the interest vector represents a theme, and the interest weights of each reader on different themes and the weights of the borrowing keywords are calculated;
[0104] Step S104, integrating interest vectors: integrating the calculated weights of each subject and borrowing keyword into an interest vector to form a comprehensive interest vector, and using the integrated interest vector to construct a reader's interest model;
[0105] Step S105, optimizing the interest model: using matrix decomposition to decompose the reader and book rating matrices into feature matrices, mining potential interest features, and optimizing the interest model.
[0106] In this embodiment, the following reader behavior data is collected in real time through the library's lending system:
[0107] Borrowing behavior data: including borrowing time, return time, number of renewals, types of books borrowed, borrowing frequency and borrowing duration.
[0108] Access behavior data: including visit time, visit frequency, visited pages, and visit duration.
[0109] Search behavior data: including search keywords and query records.
[0110] Payment behavior data: including download records of paid electronic resources.
[0111] The library's lending system collects the above-mentioned behavioral data through log records and database queries, and analyzes the collected behavioral data, wherein the extracted borrowing behavior features include borrowing frequency, borrowing duration, search keywords, and access behavior; wherein the borrowing frequency is calculated by calculating the number of times each reader borrows books of different categories in different time periods; the borrowing duration is the statistical borrowing duration of each book; the search keyword is the search term entered by the reader into the lending system; and the access behavior is the statistical frequency and access duration of the reader's page visits.
[0112] In step S103 of this embodiment, when calculating the interest weight of each reader for different book categories, the weighted sum of the borrowing frequency and borrowing duration of each subject is calculated as the interest weight of the subject; the calculation formula of the interest weight is:
[0113] Interest Weight 历史 =α×borrowing frequency 历史 +b×borrowing time 历史
[0114] Among them, α is the borrowing frequency weight, and b is the borrowing duration weight;
[0115] When calculating the weight of a reader's borrowing keyword, the weight of each borrowing keyword in the reader's behavior data is calculated. The calculation formula for the borrowing keyword weight is:
[0116] Keyword weight k = T k ×I k
[0117] Among them, T k is the frequency of keyword k in the reader behavior data, I k is the inverse document frequency of keyword k in all reader behavior data.
[0118] In step S20 of this embodiment, when generating cluster portraits of different readers, the following steps are included:
[0119] Standardize the readers' interest preferences and behavior patterns, perform cluster analysis on the obtained reader feature data, and calculate the cluster label of each reader;
[0120] Perform feature analysis on each cluster according to the cluster label, extract common features, and generate a cluster portrait.
[0121] In step S30 of this embodiment, see Figure 3 As shown, the calculation of the quality index data for each book includes the following steps:
[0122] Step S301: extract the borrowing times, borrowing and returning time and user rating data of each book from the library system; the total number of times each book is borrowed is recorded as B i ; The average of all borrowing time of books is recorded as T i ; The average rating of the book is recorded as S i ;
[0123] Step S302: weight the number of borrowing times, borrowing and returning time, and user rating data to obtain a quality score Q i , the calculation formula is:
[0124] Q i =ω1·B i +ω2·T i +ω3·S i
[0125] Among them, ω1, ω2 and ω3 are the weight of borrowing times, the weight of borrowing and returning time, and the weight of the average score, respectively.
[0126] In step S30 of this embodiment, see Figure 4 As shown in the figure, when constructing the relationship map between clustering portraits and book quality index data, the following steps are included:
[0127] Step S311: Perform cluster analysis based on the reader's interest model and behavior data to generate an average feature vector for each cluster, representing the portraits of different types of readers;
[0128] Step S312: associate each cluster portrait with the book quality index data and draw a relationship map. In the relationship map, each node represents a reader cluster or a book, and the weight of the edge represents the degree of interest of the readers in the cluster in the book.
[0129] Step S313: Using the calculated quality index data Q i The characteristic vectors in the reader clustering portrait are used to determine the weights of the edges in the graph through cosine similarity, and the relationship graph between the clustering portrait and the book quality index data is obtained.
[0130] Generate reader portraits through cluster analysis and calculation of quality indicators, and establish a relationship map between them and the data of books to better understand readers' interests and preferences, and optimize the library's book recommendation system. When generating cluster portraits of different readers and calculating the quality indicator data of each book, follow the above steps. If the reader's preferences, borrowing frequency and ratings, as well as the borrowing times, borrowing and returning time and user rating data of each book extracted from the library system are:
[0131] Reader A: prefers fiction books, borrows frequently, and rates them positively;
[0132] Reader B: prefers science and technology books, borrows them less frequently, and has strict grading;
[0133] Book X: Novels, borrowed 50 times, average borrowing time 7 days, average rating 4.5;
[0134] Book Y: Science and Technology, borrowed 30 times, average borrowing time 14 days, average rating 3.8.
[0135] Then, when generating cluster portraits of different readers, the interest preferences and behavior pattern data of readers A and B are standardized, and K-means clustering is used to cluster readers A and B into two different categories respectively, and features are extracted to generate two reader portraits (A is a high-frequency novel lover, and B is a low-frequency technology lover).
[0136] Then, when calculating the quality index data of each book, extract the borrowing times, average duration and rating of books X and Y; if the weights are set as: ω1 = 0.5, ω2 = 0.3, ω3 = 0.2; the calculated quality score Q i for:
[0137] Book X: Q X =0.5·50+0.3·7+0.2·4.5≈27.4;
[0138] Book Y:Q Y =0.5·30+0.3·14+0.2·3.8≈19.76.
[0139] Through the above steps, an accurate reader portrait can be generated and the quality index of the book can be calculated. The relationship map can be constructed using these data to achieve a comprehensive analysis of the reader's interests and the quality of the book. The method of the present invention can not only help the library optimize the book recommendation system, but also provide readers with more personalized reading suggestions, thereby improving the borrowing rate and reader satisfaction.
[0140] In step S40 of this embodiment, see Figure 5 As shown, when extracting search keywords and generating a personalized book recommendation list, the following steps are included:
[0141] Step S401: Analyze the text input by the reader through the question-and-answer interface of the borrowing system and extract search keywords. Specifically, the system first receives the text input by the reader through the question-and-answer interface of the borrowing system, parses the input text using NLP, and extracts keywords related to book search. These keywords may be subject terms, book titles, author names, or other related words.
[0142] Step S402: Calculate the similarity between the search keyword and the reader's interest vector based on the extracted search keyword and the reader's interest model and behavior data. The calculation formula is:
[0143]
[0144] Among them, θ is the search keyword vector and γ is the reader's interest vector.
[0145] When calculating the similarity between the search keyword and the reader's interest vector, the system converts the extracted search keyword into a vector representation, denoted as θ. At the same time, the system calls the reader's interest model from the database to obtain the reader's interest vector γ, and calculates the similarity between the search keyword vector and the reader's interest vector using the above similarity calculation formula.
[0146] Step S403: Select books that are highly relevant to the search keywords and the reader's interests from the library resources according to the similarity scores, and generate a personalized recommendation list.
[0147] In step S50 of this embodiment, see Figure 6 As shown, the calculation of the fusion recommendation score includes the following steps:
[0148] Step S501: Calculate the recommendation score R of each book based on the reader's behavior data and interest model. i ;
[0149] Step S502: Comprehensive book quality index data Q i And the recommendation score E output by the recommendation model i , calculate the fusion recommendation score F of each book i , the calculation formula is:
[0150] F i =σ·Q i +τR i
[0151] Among them, σ is the weight of the book quality index, and τ is the weight of the recommendation model output score;
[0152] Step S503: According to the fusion recommendation score F i Sort the books and select the books with the highest scores as the target recommended books.
[0153] For example, if a reader enters the following text in the question-and-answer interface of the borrowing system: "I am very interested in science fiction novels recently. Can you recommend some?", according to the above steps, the system will perform the following operations:
[0154] (1) Keyword extraction: The system extracts the keyword "science fiction" from the input text through NLP.
[0155] (2) Calculate similarity: Convert "science fiction" into a vector θ; extract the reader's interest vector γ from the database (assuming that the reader's interests include science fiction); then calculate the similarity, assuming the result is 0.85.
[0156] (3) Generate a recommendation list: The system selects books related to “science fiction” from the library resources and generates a preliminary recommendation list based on the similarity scores.
[0157] (4) Fusion recommendation score: First, the system calculates the recommendation score of each book based on the reader's behavior data and interest model. After comprehensively considering the quality index of each book (such as highly rated science fiction novels) and the recommendation score, the fusion recommendation score is calculated. Assuming that the quality index score of a book is 0.9, the recommendation score is 0.8, the weight σ = 0.6, τ = 0.4, then the fusion recommendation score F = 0.6 0.9 + 0.4 0.8 = 0.86, then the books can be sorted according to the fusion recommendation score, and the books with the highest scores can be selected as the final recommendation.
[0158] This embodiment implements personalized book recommendations based on reader input, interest models, and behavior data. The system not only considers keyword matching, but also integrates the reader's interests and the quality of the book to ensure that the recommended books are both in line with the reader's interests and of high quality, which can effectively improve the user's reading experience and satisfaction.
[0159] Through the above-mentioned manner, the library book push method based on behavior analysis of the present invention can comprehensively collect readers' borrowing behavior, access behavior, search behavior and payment behavior data, extract borrowing frequency, borrowing time, search keywords, access behavior and other features from the collected data, and extract borrowing keywords and themes from the book content, based on the extracted features, calculate the weight of each theme and keyword, form the reader's interest vector, integrate the weights of each theme and keyword into a comprehensive interest vector, and optimize the interest model through a matrix decomposition method, cluster readers according to the interest model, generate cluster portraits, calculate book quality indicators, and construct a relationship map between cluster portraits and book quality indicators, so as to facilitate interaction with readers through a question-and-answer interface, extract search keywords, generate a personalized recommendation list in combination with interest models and behavior data, integrate book quality indicator data and recommendation model scores, calculate fusion recommendation scores, and determine recommended books. Not only does it improve the accuracy of recommendations, but it can also dynamically adapt to changes in readers' interests and provide personalized and high-quality book recommendation services.
[0160] It should be understood that, although described in a certain order, these steps are not necessarily performed in sequence in the above order. Unless there is clear explanation in this article, the execution of these steps does not have strict order restriction, and these steps can be performed in other orders. Moreover, a part of the steps of the present embodiment may include a plurality of steps or a plurality of stages, and these steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a part of the steps or stages in other steps or other steps.
[0161] In an embodiment, the present invention also provides a library book push system based on behavior analysis, which aims to build a personalized book recommendation mechanism by collecting and analyzing reader behavior data. The system includes the following components:
[0162] The data collection module is used to collect readers' behavior data in real time, including: a borrowing system interface connected to the library's borrowing system for collecting borrowing data; and a data collector for monitoring and recording readers' clicks and browsing behaviors in the library system; wherein, the borrowing system interface collects readers' borrowing records including borrowing time, book type, borrowing frequency and other data; the data collector is used to obtain detailed behavior data such as visited pages, browsing time, number of clicks, etc. During data collection, a reader logged into the library system, borrowed several history books and browsed several articles on world history in the system. The data collection module can record this information in real time and transmit it to the system's central database;
[0163] The interest model building module is used to build an interest model for each reader based on the collected reader behavior data, and analyze interest preferences and behavior patterns;
[0164] The cluster analysis module is used to perform cluster analysis on readers' interest models and generate cluster portraits of different readers. It can identify groups of readers with similar interest preferences and describe the common characteristics of each reader group through the generated cluster portraits.
[0165] The book quality assessment module is used to calculate the quality indicator data of each book, including user ratings, number of borrowings, number of reviews, etc., and comprehensively evaluate the overall quality of the book by combining various indicators; for example: a history book "A Brief History of the World" has a high rating among readers and is borrowed many times, so the system calculates high-quality indicator data for it.
[0166] The relationship map construction module is used to construct a relationship map between cluster portraits and book quality indicator data, and associate reader groups with book quality; illustratively, the system associates the history enthusiast group with the high-quality history book "A Brief History of the World" in the relationship map.
[0167] The question-and-answer interaction module interacts with readers through the question-and-answer interface of the borrowing system, extracts search keywords in the questions and answers, and further understands readers' immediate interests and needs. Suppose a reader asks "recommend books about World War II" in the question-and-answer interface, the system can extract the keyword "World War II".
[0168] The list generation module is used to generate a personalized book recommendation list based on the extracted search keywords and combined with the reader's interest model and behavior data, giving priority to high-quality books related to the reader's current interests; for example, the system recommends high-quality books about World War II, such as "The Complete History of World War II", based on the keyword "World War II" and the reader's interest model.
[0169] The fusion recommendation score calculation module is used to calculate the fusion recommendation score of each book in the book recommendation list, and determine the target recommended book based on the quality index data of the book and the recommendation score output by the recommendation model. Assuming that the final target recommended book is "The Complete History of World War II", "The Complete History of World War II" not only meets the current search needs of reader A (keyword "World War II"), but also has a high quality index. It is finally determined as a recommended book and pushed to readers.
[0170] The library book push system based on behavior analysis in this embodiment builds a personalized interest model based on the precise analysis of the reader's behavior data, and realizes personalized book recommendations for each reader. Through the question-answer interaction module, the system can obtain the reader's immediate needs in real time and provide more accurate recommendations. Combined with the book quality evaluation, the system ensures that the recommended books not only meet the reader's interests, but also have high quality. Using the cluster analysis module, the system can identify reader groups with similar interests and provide support for group recommendations. Through this library book push system, the library can better meet the personalized needs of readers, improve readers' reading experience and satisfaction, and thus improve the utilization efficiency of library resources.
[0171] In this embodiment, the library book push system based on behavior analysis adopts the steps of the aforementioned library book push method based on behavior analysis during execution. Therefore, the operation process of the library book push system based on behavior analysis will not be described in detail in this embodiment.
[0172] In an embodiment, a computer device is also provided in an embodiment of the present invention, including at least one processor and a memory communicatively connected to the at least one processor, the memory storing instructions executable by the at least one processor, the instructions being executed by the at least one processor so that the at least one processor executes the library book push method based on behavior analysis, and the processor implements the steps in the above-mentioned embodiment of the library book push method based on behavior analysis when executing the instructions.
[0173] In an embodiment of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the steps of the library book push method based on behavior analysis.
[0174] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be realized by instructing the relevant hardware through a computer program represented by computer instructions, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory.
[0175] Non-volatile memory may include read-only memory, magnetic tape, floppy disk, flash memory or optical storage, etc. Volatile memory may include random access memory or external cache memory. As an illustration and not limitation, RAM may be in various forms, such as static random access memory or dynamic random access memory, etc.
[0176] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A library book push method based on behavior analysis, characterized in that: The method comprises the following steps: Through the library's lending system, readers' behavior data is collected in real time, and interest models are built based on the readers' behavior data to analyze readers' interest preferences and behavior patterns; Perform cluster analysis based on the readers' interest preferences and behavior patterns to generate cluster portraits of different readers; Based on the collected reader behavior data and the library's local resources, the quality index data of each book is calculated, and a relationship map between clustering portraits and book quality index data is constructed; Interact with readers through the Q&A interface of the lending system, extract search keywords from the Q&A, and generate a personalized book recommendation list based on the extracted search keywords and combined with the readers' interest model and behavior data; According to the quality index data of the books and the recommendation scores output by the recommendation model, the fusion recommendation scores of each book in the book recommendation list are calculated, and the target recommended books are determined according to the fusion recommendation scores.
2. The method for pushing books to a library based on behavior analysis as claimed in claim 1, characterized in that: The real-time collection of readers' behavior data includes readers' borrowing behavior data, access behavior data, search behavior data and payment behavior data; wherein the borrowing behavior data includes borrowing time, return time and renewal times; the access behavior data includes visit time and frequency; the search behavior data includes search keywords and query records; and the payment behavior data includes download records of paid electronic resources.
3. The method for pushing books to a library based on behavior analysis as claimed in claim 2, characterized in that: When building an interest model based on reader behavior data, the following steps are included: Collect readers' borrowing behavior data, access behavior data, search behavior data, and payment behavior data; Analyze the collected behavioral data, extract borrowing behavior characteristics, and extract borrowing keywords and themes from the content of borrowed books; Based on the extracted borrowing behavior characteristics and the borrowing keywords and themes of the borrowed book content, an interest vector for each reader is constructed; each dimension of the interest vector represents a theme, and the interest weights of each reader on different themes and the weights of the borrowing keywords are calculated; Integrate the calculated weights of each topic and borrowing keyword into an interest vector to form a comprehensive interest vector, and use the integrated interest vector to build a reader's interest model; Matrix factorization is used to decompose reader and book rating matrices into feature matrices to mine potential interest features and optimize the interest model.
4. The method for pushing books to a library based on behavior analysis as claimed in claim 3, characterized in that: The extracted borrowing behavior features include borrowing frequency, borrowing duration, search keywords and access behavior; wherein, the borrowing frequency is calculated by calculating the number of times each reader borrows books of different categories in different time periods; the borrowing duration is the statistical borrowing duration of each book; the search keywords are the search terms entered by readers into the borrowing system; and the access behavior is the statistical frequency and access duration of readers visiting the page.
5. The method for pushing books to a library based on behavior analysis as claimed in claim 4, characterized in that: When calculating the interest weight of each reader for different book categories, the weighted sum of borrowing frequency and borrowing duration of each subject is calculated as the interest weight of the subject; the calculation formula for the interest weight is: Interest Weight 历史 =α×borrowing frequency 历史 +b×borrowing time 历史 Among them, α is the borrowing frequency weight, and b is the borrowing duration weight; When calculating the weight of a reader's borrowing keyword, the weight of each borrowing keyword in the reader's behavior data is calculated. The calculation formula for the borrowing keyword weight is: Keyword weight k =T k ×I k Among them, T k is the frequency of keyword k in the reader behavior data, I k is the inverse document frequency of keyword k in all reader behavior data.
6. The method for pushing books to a library based on behavior analysis as claimed in claim 5, characterized in that: The calculation of the quality index data for each book includes the following steps: Extract the borrowing times, borrowing and returning time and user rating data of each book from the library system; the total number of times each book is borrowed is recorded as B i ; The average of all borrowing time of books is recorded as T i ; The average rating of the book is recorded as S i ; The quality score Q is obtained by weighting the number of borrowing times, borrowing and returning time, and user rating data. i , the calculation formula is: Q i =ω1·B i +ω2·T i +ω3·S i Among them, ω1, ω2 and ω3 are the weight of borrowing times, the weight of borrowing and returning time, and the weight of the average score, respectively.
7. The method for pushing books to a library based on behavior analysis as claimed in claim 6, characterized in that: When constructing the relationship map between clustering portraits and book quality index data, the following steps are included: Perform cluster analysis based on readers’ interest models and behavior data to generate the average feature vector of each cluster, representing the portraits of different types of readers; Associate each cluster portrait with the book quality index data and draw a relationship map. In the relationship map, each node represents a reader cluster or a book, and the edge weight represents the degree of interest of the readers in the cluster in the book. Using the calculated quality index data Q i The characteristic vectors in the reader clustering portrait are used to determine the weights of the edges in the graph through cosine similarity, and the relationship graph between the clustering portrait and the book quality index data is obtained.
8. The method for pushing books to a library based on behavior analysis as claimed in claim 7, characterized in that: When extracting search keywords and generating a personalized book recommendation list, the following steps are included: Through the question-and-answer interface of the borrowing system, the text entered by the reader is analyzed to extract the search keywords; Based on the extracted search keywords, combined with the reader's interest model and behavior data, the similarity between the search keywords and the reader's interest vector is calculated. The calculation formula is: Among them, θ is the search keyword vector, γ is the reader's interest vector; Based on the similarity score, books that are highly relevant to the search keywords and readers' interests are selected from the library resources to generate a personalized recommendation list.
9. The method for pushing books to a library based on behavior analysis as claimed in claim 8, characterized in that: The calculation of the fusion recommendation score includes the following steps: Calculate the recommendation score R of each book based on the reader's behavior data and interest model i ; Quality index data Q of comprehensive books i And the recommendation score R output by the recommendation model i , calculate the fusion recommendation score F of each book i , the calculation formula is: F i =σ·Q i +τR i Among them, σ is the weight of the book quality index, and τ is the weight of the recommendation model output score; According to the fusion recommendation score F i Sort the books and select the books with the highest scores as the target recommended books.
10. A library book push system based on behavior analysis, characterized in that: The system is used to execute the library book push method based on behavior analysis as described in any one of claims 1 to 9, comprising: The data collection module is used to collect the readers' behavior data in real time, including: a borrowing system interface connected to the library's borrowing system for collecting borrowing data; and a data collector for monitoring and recording the readers' click and browsing behaviors in the library system; The interest model building module is used to build an interest model for each reader based on the collected reader behavior data, and analyze interest preferences and behavior patterns; Cluster analysis module, used to perform cluster analysis on readers' interest models and generate cluster portraits of different readers; Book quality assessment module, used to calculate the quality index data of each book; The relationship map construction module is used to construct a relationship map between clustering portraits and book quality index data, and associate reader groups with book quality; The question-and-answer interaction module interacts with readers through the question-and-answer interface of the borrowing system and extracts search keywords in the questions and answers; The list generation module is used to generate a personalized book recommendation list based on the extracted search keywords and combined with the reader's interest model and behavior data; The fusion recommendation score calculation module is used to calculate the fusion recommendation score of each book in the book recommendation list, and determine the target recommended book based on the book's quality indicator data and the recommendation score output by the recommendation model.
Citation Information
Patent Citations
University library-oriented books personalized recommendation method and system
CN106202184A
Personalized pushing method based on user reading preference statistics of reading time
CN106777139A
Book recommendation method, computing device and storage medium
CN113987353A
Book recommendation retrieval system based on knowledge graph and reader portrait
CN116595246A
Library robot data processing method and device, equipment and medium
CN116644181A
Cited By
Intelligent recommendation method and system for educational books
CN119066271A
Library activity design method and system based on big data analysis
CN119295012A
Method, device and equipment for pushing electronic book data
CN119669448A
Scene-driven library reader behavior data number-real fusion management method
CN119831811A
Digital library resource accurate pushing method combined with user behavior sequence mining
CN121094220A
