Intelligent novel recommendation method and system and storage medium
By building a reading preference model and performing intelligent query matching in the novel resource library, it solves the problem of difficulty in actively recommending novels on existing platforms, and improves the reading rate and user experience of novels.
Patent Information
- Application Number
- CN202410653624.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-24
- Publication Date
- 2024-09-17
AI Technical Summary
It is difficult for existing novel platforms to proactively recommend novels based on user habits and preferences, making it difficult for users to quickly find works that match their interests among a large number of novels, which reduces reading rates and user experience.
By obtaining user reading data, a reading preference model is constructed, and based on this, intelligent query matching is performed in the novel resource library to push novel data that meets the user's interests.
It increases the reading rate of the novel resource library, meets users' reading needs, changes the platform from passive to active recommendation, and improves user experience.
Smart Images

Figure CN118656527A
Abstract
Description
Technical Field
[0001] The present disclosure belongs to the field of data intelligence, and specifically relates to a novel intelligent recommendation method, system and storage medium. Background Art
[0002] The growing development of mobile novel reading has changed the form of traditional paper reading and also got rid of the location restrictions of novel libraries. Users can read novels online at any time and any place. However, the number of novels on the novel platform is huge and the types are wide. It is difficult for users to quickly and accurately find a novel that suits their interests. For the platform, it prolongs the user's decision-making time and steps, and reduces the user experience. And because each user has different interests and hobbies, there are large differences in the choice of novels. The existing novel platforms are generally based on the classification of books, and then users actively search according to the book classification. This requires users to know the category and title of the novel in advance, but there are so many novels on the platform, and users know very few novels. Therefore, novels of the same type are often difficult to retrieve, resulting in a low reading rate. That is, the existing novel platform is passive and cannot effectively recommend novels based on user habits and preferences, which is difficult to meet user needs. Summary of the invention
[0003] In view of the deficiencies in the prior art, the purpose of the present invention is to provide a novel intelligent recommendation method, which can actively recommend novels in a novel resource library to users based on their preferences, thereby improving the reading rate of novels in the resource library and satisfying the reading needs of users.
[0004] To achieve the above objectives, the present disclosure provides the following technical solutions: A novel intelligent recommendation method comprises the following steps: S100: Obtain user reading data; S200: Determining the user's reading preference based on the user's reading data; S300: performing query matching in the novel resource library based on the user's reading preferences, and pushing the query-matched novel data to the user.
[0005] Preferably, in step S100, obtaining user reading data includes the following steps: S101: Collect user reading data; S102: Clean and integrate user reading data.
[0006] Preferably, in step S200, determining the user's reading preference based on the user's reading data includes the following steps: S201: Constructing a reading preference model; S202: Visually interpret the model output.
[0007] Preferably, in step S300, the novel resource library includes primary classification, secondary classification and tertiary classification.
[0008] The present disclosure also provides a computer storage medium, wherein the computer storage medium comprises: a memory for storing a plurality of computer instructions; A processor is used to execute computer instructions to implement the method as described above.
[0009] The present disclosure also provides a novel intelligent recommendation system, comprising: Acquisition module, used to obtain user reading data; A judgment module, used to judge the user's reading preference based on the user's reading data; The query matching module is used to perform query matching in the novel resource library based on the user's reading preferences, and push the query-matched novel data to the user.
[0010] The present disclosure also provides a mobile terminal, wherein the mobile terminal includes the intelligent recommendation system as described above.
[0011] Compared with the prior art, the present invention has the following beneficial effects: The present disclosure can transform the existing novel resource library from passive to active, from user-initiated retrieval to active recommendation by the resource library, thereby increasing the reading rate of novels in the resource library while satisfying the reading needs of users. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 This is a flowchart of a novel intelligent recommendation method provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0013] The specific embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings. Although the specific 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 described 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.
[0014] It should be noted that certain words are used in the specification and claims to refer to specific components. Those skilled in the art should understand that technicians may use different nouns to refer to the same component. This specification and claims do not use the difference in nouns as a way to distinguish components, but use the difference in the functions of the components as the criterion for distinction. As mentioned throughout the specification and claims, "including" or "comprising" is an open term, so it should be interpreted as "including but not limited to". The subsequent description of the specification is a preferred embodiment of the present disclosure, but the description is based on the general principles of the specification and is not used to limit the scope of the present disclosure. The scope of protection of the present disclosure shall be determined by the attached claims.
[0015] To facilitate understanding of the embodiments of the present disclosure, further explanation will be given below using specific embodiments as examples in conjunction with the accompanying drawings, and each of the accompanying drawings does not constitute a limitation on the embodiments of the present disclosure.
[0016] In one embodiment, if Figure 1 As shown, the present disclosure provides a novel intelligent recommendation method, comprising the following steps: S100: Obtaining user novel reading data; Obtaining user novel reading data includes the following steps: S101: User reading data collection; In this step, you first need to embed data collection code in the client of the novel reading platform (such as APP, web browser plug-in, etc.) to capture user reading behavior events, such as clicks, slides, dwell time, chapter switching, bookmark addition, etc.
[0017] This embodiment designs the following data collection code based on JavaScript to capture the basic behavior of users in the process of novel reading: Javascript / / Assume there is an HTML element containing novel content, such as a div with ID "novel-content" const contentElement = document.getElementById('novel-content'); / / Initialize the user reading data object to temporarily store user behavior let userReadingData = { chapterId: null, / / Current chapter ID startTime: null, / / timestamp when the user starts reading the current chapter endTime: null, / / Timestamp when the user finishes reading the current chapter scrollPosition: [], / / Array that records the user's scroll position interactionEvents: [] / / An array that records user interaction events (such as clicks, bookmark additions, etc.) }; / / Listen for page loading completion events and initialize data collection window.addEventListener('load', function() { / / Get the initial chapter ID (assuming it is obtained from DOM or route parameters) const initialChapterId = ...; / / The actual code should be filled with the acquisition method userReadingData.chapterId = initialChapterId; userReadingData.startTime = Date.now(); / / Register necessary event listeners registerEventListeners(); }); function registerEventListeners() { / / Listen for scroll events and record scroll positions contentElement.addEventListener('scroll', function(event) { const scrollTop = event.target.scrollTop; userReadingData.scrollPosition.push({ time: Date.now(), position:scrollTop}); }); / / Listen for chapter switching events, update chapter ID and timestamp / / Assume that there are global events or custom events that can monitor chapter switching document.addEventListener('chapterChange', function(event) { const newChapterId = event.detail.id; userReadingData.endTime = Date.now(); / / Store or send the collected reading data (such as sending to the server) saveOrSendReadingData(userReadingData); / / Clear old data and prepare to record the reading behavior of the new chapter userReadingData = { chapterId: newChapterId, startTime: Date.now(), scrollPosition: [], interactionEvents: [] }; }); / / Listen for user interaction events (such as clicks, bookmark additions, etc.) / / Assume there is a custom event `interactionEvent` indicating that such an event occurs document.addEventListener('interactionEvent', function(event) { const eventData = { type: event.detail.type, / / event type (such as 'click', 'bookmark_add', etc.) timestamp: Date.now(), targetInfo: event.detail.targetInfo / / Relevant information of the target element }; userReadingData.interactionEvents.push(eventData); }); } function saveOrSendReadingData(data) { / / This is where you can send data to the server (e.g. using the Fetch API or XHR) / / Or temporarily store locally (such as using localStorage or IndexedDB), the actual implementation depends on the project requirements } After obtaining the user's basic reading behavior, it is also necessary to connect to the server-side interface of the reading platform to regularly synchronize user reading records, book information, account status and other data.
[0018] S102: User reading data cleaning and integration.
[0019] In this step, after collecting the user's reading data, the data format needs to be standardized first, that is, the reading data from different sources and in different formats are uniformly converted into a standard format that is easy to analyze (such as CSV, JSON, SQL database table, etc.) to eliminate redundant, missing or erroneous data. Specifically, the Min-Max standardization and Z-score standardization methods can be used for format standardization. This method is a prior art and will not be described in detail here.
[0020] Secondly, after completing the standardization of the data format, it is necessary to associate the reading behavior of the same user on different devices or platforms to form a cross-platform user reading profile.
[0021] Specifically, the reading behaviors of the same user on different devices or platforms can be associated by performing the following steps: 1. User identification and unification: For example, a unified user account system can be established, requiring users to log in with the same account on various platforms. In this way, the user's reading behavior can be associated with the same account.
[0022] 2. Data Identifier Mapping: First, during the data integration process, user identifiers from different platforms (such as user ID, device ID, cookie ID, etc.) are mapped to a unified internal user ID. This can be achieved by establishing a mapping table, using a hash function, or leveraging the services of a data management platform (DMP).
[0023] Secondly, define and implement user association rules, such as matching rules based on login information, device fingerprints, email addresses, phone numbers, etc., to determine whether data records on different platforms belong to the same user.
[0024] 3. Data fusion and merging: First, import user reading data from different platforms into a unified data warehouse or data lake to ensure standardized data formats, unified timestamps, etc.
[0025] Secondly, based on the user ID mapping results, the reading behavior records of the same user are merged into the same user profile.
[0026] S200: Determining the user's reading preference based on the user's reading data; In this step, first, it is necessary to collect statistics on the user's reading data based on the reading archive, wherein the reading data includes but is not limited to the following data categories: Categories, themes, and authors of books / articles read.
[0027] The start and end time of reading, reading duration, and reading frequency.
[0028] Interactive behaviors such as marking, annotating, and highlighting during the reading process.
[0029] Search keywords, browsing paths, click-through rates, and bounce rates.
[0030] Users’ feedback on content, such as rating, commenting, collecting, and sharing.
[0031] User attribute data: including demographic information (such as age, gender, geographic location, etc.), registration information (such as registration time, membership level, etc.), device information (such as device type used, operating system, etc.).
[0032] Time series data: records how users’ reading behavior changes over time in order to capture the evolving trends of interests.
[0033] Secondly, it is necessary to identify the user's reading preferences based on the collected data. Execute the following method: 1. Organize and clean the collected data, including: 1.1 Standardized data format: unify the formats and standards of various types of data to facilitate subsequent processing.
[0034] 1.2 Handling missing values: Use reasonable methods (such as interpolation, deletion, or model prediction) to fill or handle missing data points.
[0035] 1.3 Denoising and outlier detection: Identify and remove abnormal reading behavior records, such as abnormal peaks of large amounts of reading in a short period of time, reading records generated by non-human behavior, etc.
[0036] 2. Build a user reading preference model, including: 2.1 Content labeling: Assign detailed labels or themes to books / articles, such as science fiction, history, suspense, urban, romance, etc., in order to quantify users' reading choices.
[0037] 2.2 Calculate the preference measure, including: Count reading frequency: Calculate the number of times a user reads each category, tag, or specific author to directly reflect the strength of their preference.
[0038] Measuring reading depth: Measure the user's involvement in a certain type of content through indicators such as reading completion rate, number of repeated readings, and reading time.
[0039] Statistical interaction indicators: Statistics on users’ positive interactive behaviors such as rating, commenting, and sharing of content, reflecting their preference and recognition of specific content.
[0040] 2.3 Cluster analysis: Group users with similar reading behavior patterns into the same group to reveal group preference patterns. This can be achieved using any of K-means, hierarchical clustering, DBSCAN, and spectral clustering.
[0041] 2.4 User portrait construction: Integrate the user's basic attributes, reading preferences, behavioral characteristics and other information to form a personalized user description. Specifically, the user portrait can be constructed through the following steps: 2.4.1 Collect comprehensive user data, including: Basic attributes: including static information such as age, gender, occupation, educational background, geographic location, and registration time.
[0042] Reading preferences: categories, themes, authors, average ratings, content and frequency of collections / shares / comments of books / articles that users frequently read.
[0043] Behavioral characteristics: dynamic behavioral data such as reading time, reading frequency, reading time period, reading device preference, reading interruptions, search keywords, and recommendation click-through rate.
[0044] 2.4.2 Clean the data to remove invalid, duplicate or erroneous data.
[0045] 2.4.3 Construct user portrait dimensions, including: Demographic characteristics: Based on basic attributes, describe the macro characteristics of users, such as "23-34 years old female, college degree, white-collar worker, living in a first-tier city."
[0046] Content preference characteristics: Based on reading history, the topics, styles, authors, etc. that users pay most attention to are extracted, such as "passionate about science fiction novels, preferring the works of Liu Cixin and Arthur Clarke, and particularly interested in topics such as artificial intelligence and space exploration."
[0047] Behavioral pattern characteristics: summarize the user's behavioral habits, such as "active reading in the evening, longer reading time on weekends, preference for reading using mobile apps, and often checking related materials while reading."
[0048] 2.4.4 Quantitative key indicators: For features that are difficult to describe directly, such as reading preference diversity, reading depth, interactive activity, etc., corresponding quantitative indicators can be calculated. For example, the entropy value of the reading ratio of each topic can be calculated to measure the diversity of reading preferences, or the reading completion rate and average reading time can be used to evaluate the reading depth.
[0049] 2.4.5 Build a personalized user description template: This embodiment designs a description framework including the above-mentioned dimensional information so as to systematically display user information. The description framework is specifically shown as follows: User ID: Basic properties: age: gender: Profession: Education: Geographical location: Reading Preferences: Main areas of focus: [Topic 1], [Topic 2], [Topic N] Favorite author: [Author 1], [Author 2], [Author N] Average rating: [rating range] Interactive behavior: often [collect / share / comment] content Behavioral characteristics: Reading time: [Main reading time] Device preference: [common reading device] Reading depth: [Reading depth quantitative indicators] Search Preferences: [Typical search keywords or topics] Recommended response: [click rate / feedback] Special interests / hobbies: 3. Visualize the model output: Use visualization tools such as bar charts, line charts, heat maps, and Sankey diagrams to intuitively present the user reading preference distribution, interest change trajectory, group preference comparison, and other results output by the model.
[0050] Exemplarily, users can be classified into primary and secondary categories based on their reading data. First, the user's gender is determined based on the male and female categories in the user classification, and the determination result is used as the primary classification, corresponding to arrays b1 and b2 respectively. For example, if the gender is determined to be male, it corresponds to array b1; if it is determined to be female, it corresponds to array b2.
[0051] Furthermore, on the basis of completing the first-level classification, it is necessary to further judge the user's reading preference based on the user's reading data, and use the judgment result as the second-level classification. For example, if the user's gender is male and the novel he reads belongs to category 1, then the corresponding array is b11, if the novel he reads belongs to category 2, then the corresponding array is b12, and so on (category 3 corresponds to array b13, category 4 corresponds to array b14, category 5 corresponds to array b15, category 6 corresponds to array b16, category 7 corresponds to array b17, category 8 corresponds to array b18). If the user's gender is female and the novel he reads belongs to category a, then the corresponding array is b21, if the novel he reads belongs to category b, then the corresponding array is b22, and so on (category c corresponds to array b23, category d corresponds to array b24, category e corresponds to array b25, category f corresponds to array b26, category g corresponds to array b27).
[0052] Furthermore, based on the above example, obtaining user reading data and user classification can be achieved through the following code, the specific example is as follows: / / Define the first-level classification array String[] b1 = {"male"}; String[] b2 = {"female"}; / / Define the secondary classification array String[] b11 = {"Category 1"}; String[] b12 = {"Category 2"}; String[] b13 = {"Category 3"}; String[] b14 = {"Category 4"}; String[] b15 = {"Category 5"}; String[] b16 = {"Category 6"}; String[] b17 = {"Category 7"}; String[] b18 = {"Category 8"}; String[] b21 = {"Category a"}; String[] b22 = {"Category b"}; String[] b23 = {"Category c"}; String[] b24 = {"Category d"}; String[] b25 = {"Category e"}; String[] b26 = {"Category f"}; String[] b27 = {"Category g"]; / / Get user reading data Map<String, String> userData = new HashMap<>(); userData.put("gender", "male"); userData.put("Reading Preferences", "Category 1"); / / Classify users by gender String gender = userData.get("gender"); String[] category = (gender.equals("male")) b1 : b2; / / Secondary classification based on reading preference String preference = userData.get("Reading preference"); String[] subCategory = null; if (category[0].equals("male")) { switch (preference) { case "Category 1": subCategory = b11; break; case "Category 2": subCategory = b12; break; case "Category 3": subCategory = b13; break; case "Category 4": subCategory = b14; break; case "Category 5": subCategory = b15; break; case "Category 6": subCategory = b16; break; case "Category 7": subCategory = b17; break; case "Category 8": subCategory = b18; break; } } else { switch (preference) { case "category a": subCategory = b21; break; case "Category b": subCategory = b22; break; case "Category c": subCategory = b23; break; case "Category d": subCategory = b24; break; case "Category e": subCategory = b25; break; case "Category f": subCategory = b26; break; case "Category g": subCategory = b27; break; } } / / Output classification results System.out.println("First level category: " + category[0]); System.out.println("Secondary Category: " + subCategory[0]); S300: performing query matching in the novel resource library based on the user's reading preferences, and pushing the query-matched novel data to the user.
[0053] In this step, the novel resource library is divided into three categories, including primary classification, secondary classification and tertiary classification, and different classifications correspond to different arrays. Among them, the primary classification includes two major categories, male-oriented novels and female-oriented novels, corresponding to arrays a1 and a2 respectively; further, the next level of the primary classification is the secondary classification, for example, male-oriented novels include categories 1, 2, 3, 4, 5, 6, 7, 8 and other novel types, corresponding to arrays a11, a12, a13, a14, a15, a16, a17 and a18 respectively; female-oriented novels include categories a, b, c, d, e, f, g, etc. The novel types correspond to arrays a21, a22, a23, a24, a25, a26 and a27 respectively; further, the next level of the secondary classification is the third level classification, for example, category 1 includes category 11, category 12, category 13, corresponding to arrays a111, a112 and a113 respectively; category c includes category c1, category c2, category c3 and other novels, corresponding to arrays a231, a232 and a233 respectively. Specifically, the above classification can be exemplarily displayed by Table 1: Table 1
[0054] Furthermore, based on the user classification and novel resource library, intelligent recommendations can be made to users. For example, a user reads or learns about a novel. According to historical data (i.e., users who have read or learned about this novel in the past are basically female), the user is female, corresponding to array b2, and the novel belongs to category c, corresponding to array b23, that is, the user classification is b2-b23, then query matching is performed in the novel resource library based on the user classification. First, a first-level query matching is performed. According to the gender type of the user to whom the books in the novel resource library belong, the female-frequency novels are first matched, that is, array a2; secondly, a second-level query matching is performed. According to the type field of the books in the novel resource library, the novel is further matched to array a23 because the novel belongs to urban romance. After matching array a23, the three-level classifications under category c include category c1, category c2, category c3, etc., then the user may like all the three-level classifications associated with category c. According to the keyword of this novel, category c1, the third-level classification has the highest weight and should be prioritized over the other two keywords, and the order is category c1, category c2, category c3, or category c1, category c3, category c2. Assuming that novels ①, ②, ③, and ④ are retrieved from the novel resource library, among which the keywords of novels ① and ② in the three-level classification are category c1, the keywords of novel ③ in the three-level classification are category c2, and the keywords of novel ④ in the three-level classification are category c3, then the novels recommended to the user in the above order are: novel ①, novel ②, novel ③, novel ④.
[0055] Below, this embodiment takes the aforementioned novel as an example, and describes the above novel intelligent recommendation process in combination with code: / / Define the first-level classification array String[] a1 = {"Male-oriented novels"}; String[] a2 = {"Female novels"]; / / Define the secondary classification array String[] a11 = {"Category 1"}; String[] a12 = {"Category 2"}; String[] a13 = {"Category 3"}; String[] a14 = {"Category 4"}; String[] a15 = {"Category 5"}; String[] a16 = {"Category 6"}; String[] a17 = {"Category 7"}; String[] a18 = {"Category 8"]; String[] a21 = {"Category a"}; String[] a22 = {"Category b"}; String[] a23 = {"Category c"}; String[] a24 = {"Category d"}; String[] a25 = {"Category e"}; String[] a26 = {"Category f"}; String[] a27 = {"Category g}"; / / Define a three-level classification array String[] a111 = {"Category 11"}; String[] a112 = {"Category 12"}; String[] a113 = {"Category 13"]; String[] a231 = {"Category c1"}; String[] a232 = {"Category c2"}; String[] a233 = {"Category c3"; / / Get the novel information read by the user String novel = "A certain novel"; / / Determine the user's gender based on historical data String gender = (Users who have read this novel in the past are basically female)? "female" : "male"; / / Determine the user's secondary classification based on the novel type String category2 = null; for (int i = 0; i < a1.length; i++) { for (int j = 0; j < a1[i].length(); j++) { if (novel.contains(a1[i][j])) { category2 = a1[i][j]; break; } } } if (category2 == null) { for (int i = 0; i < a2.length; i++) { for (int j = 0; j < a2[i].length(); j++) { if (novel.contains(a2[i][j])) { category2 = a2[i][j]; break; } } } } / / Perform a tertiary classification match based on the user's secondary classification String[] category3 = null; if (gender.equals("female") && category2.equals("Category c")) { category3 = a23; } else if (gender.equals("male") && category2.equals("Category 2")) { category3 = a12; } if (category3!= null) { / / Sort the three-level categories and recommend related novels Arrays.sort(category3); String[] novels = {"novel ①", "novel ②", "novel ③", "novel ④"}; for (int i = 0; i <novels.length; i++) { for (int j = 0; j <category3.length; j++) { if (novels[i].contains(category3[j])) { System.out.println(novels[i]); break; } } } } In another embodiment, the present disclosure further provides a novel intelligent recommendation system, comprising: Acquisition module, used to obtain user reading data; A judgment module, used to judge the user's reading preference based on the user's reading data; The query matching module is used to perform query matching in the novel resource library based on the user's reading preferences, and push the query-matched novel data to the user.
[0056] In another embodiment, the present disclosure further provides a mobile terminal, wherein the mobile terminal includes the intelligent recommendation system as described above.
[0057] In another embodiment, the present disclosure further provides a computer storage medium, the computer storage medium comprising: a memory for storing a plurality of computer instructions; A processor is used to execute computer instructions to implement any of the above methods.
[0058] The above embodiments are only for illustrating the technical concept and features of the present disclosure, and their purpose is to enable people familiar with the technology to understand the content of the present disclosure and implement it accordingly, and they cannot be used to limit the protection scope of the present disclosure. Any equivalent changes or modifications made according to the spirit of the present disclosure should be included in the protection scope of the present disclosure.
Claims
1. A novel intelligent recommendation method, The following steps are involved: S100: Obtain user reading data; S200: Determining the user's reading preference based on the user's reading data; S300: performing query matching in the novel resource library based on the user's reading preferences, and pushing the query-matched novel data to the user.
2. The method according to claim 1, in, Preferably, in step S100, obtaining user reading data includes the following steps: S101: Collect user reading data; S102: Clean and integrate user reading data.
3. The method according to claim 1, in, In step S200, determining the user's reading preference based on the user's reading data includes the following steps: S201: Constructing a reading preference model; S202: Visually interpret the model output.
4. The method according to claim 1, in, In step S300, the novel resource library includes primary classification, secondary classification and tertiary classification.
5. A novel intelligent recommendation system, include: Acquisition module, used to obtain user reading data; A judgment module, used to judge the user's reading preference based on the user's reading data; The query matching module is used to perform query matching in the novel resource library based on the user's reading preferences, and push the query-matched novel data to the user.
6. A mobile terminal, in, The mobile terminal includes the intelligent recommendation system as claimed in claim 5.
7. A computer storage medium, in, The computer storage medium comprises: a memory for storing a plurality of computer instructions; A processor, configured to execute computer instructions to implement the method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Novel recommendation method and device
CN110852794A
Novel reading method and system based on intelligent wearable device, and medium
CN117235247A
Method for recommending book club and apparatus thereof
KR102114913B1
Cited By
Intelligent novel indexing method and system based on big data
CN120744024A
Personalized novel recommendation engine construction method and device for digital reading platform
CN122470738A
