Book purchase prediction method based on user and article popularity change trend

Through the prediction method based on the changing trend of user and item popularity, combined with the Wide&Deep model, the problem of inaccurate purchasing decisions in the library management system is solved, a more accurate and efficient book demand forecast is achieved, and the rational utilization of resources is ensured.

CN118674487AActive Publication Date: 2024-09-20HEFEI SONGLI INFORMATION TECHNOLOGY CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

It is difficult for existing book management systems to accurately capture market dynamics and changes in user preferences, resulting in inaccurate book purchasing decisions, and the recommendation system ignores long-term trends in popularity, resulting in irrational use of resources.

Method used

Using a prediction method based on user and item popularity trends, through data collection, one-hot encoding, sliding window processing and Wide&Deep model improvement, combined with user and item characteristics, the book demand is predicted and the purchase quantity is adjusted.

Benefits of technology

It improves the accuracy and efficiency of book procurement, ensures rational use of resources, and adapts to market changes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118674487A
    Figure CN118674487A
Patent Text Reader

Abstract

The invention discloses a book purchase prediction method based on user and article popularity change trends. The method collects data. User and book information is collected, the user information comprises user gender and borrowing records, the preference state of a user for books of the same type is obtained through the category of the books and keyword label information, the borrowing starting and ending time is convenient for counting the borrowing number of the books in a time period, and the borrowing popularity trend of the books is obtained. According to the method, user and book information is collected through data, book categories and keyword tags are processed through one-hot coding, continuous features are processed in a sliding window mode, and the popularity change trend is captured. According to the method, a recommendation field Wideamp is combined; the Deep model is improved, the Wide part is used for capturing interaction of large-scale sparse features, and the Deep part is used for learning deep feature expression of users and books. And finally, adjusting the number of books needing to be purchased according to the predicted value so as to provide an auxiliary decision for book purchasing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of big data and collaborative filtering recommendation systems, and in particular to a book purchase prediction method based on user and item popularity change trends. Background Art

[0002] In existing book management systems, purchasing decisions mainly rely on traditional statistical analysis and empirical judgment, which has certain limitations. Due to the rapid changes in market dynamics and user preferences, traditional methods often have difficulty accurately capturing these changes. In addition, existing recommendation systems mainly focus on the short-term popularity of books, while ignoring the long-term trends in popularity and user responses to these trends, resulting in some books being in short supply or in oversupply, causing irrational use of book resources. Summary of the invention

[0003] To solve the above problems, the present invention provides a book purchasing prediction method based on the changing trend of user and item popularity, which can more comprehensively predict the market demand for books and improve the accuracy and efficiency of purchasing.

[0004] The present invention adopts the following technical solution to achieve the above-mentioned invention object: a book purchase prediction method based on the changing trend of user and item popularity, the method comprising the following steps:

[0005] 1) Data collection. The data collected includes user and book information. User information includes user gender and borrowing records, in order to capture the user's borrowing trend of books; book information includes category, search times, borrowing start and end time, book keyword tags and number of books. The user's preference for books of the same type is obtained through the book category and keyword tag information. The borrowing start and end time is convenient for counting the number of books borrowed in the time period to obtain the borrowing popularity trend of the book.

[0006] 2) Item category feature processing. Book categories and keyword tags are encoded by one-hot encoding, converting categorical variables into a form that computers can understand and process, so that the model can use this information for learning. Each category is represented as a vector in which only one element is 1 and the rest are 0. The position of this element represents the index of the category, so each category has a unique code.

[0007] 3) Continuous feature processing of items. Use the sliding window method to measure the trend of popularity changes. This method is based on a fixed-length time window and captures its trend by calculating the popularity changes of items in each window. The following are the general steps for measuring the trend of popularity changes using the sliding window method:

[0008] Select window size: First, you need to select an appropriate window size, that is, the time span of each slide △t. The window size can be adjusted according to the characteristics and needs of the data. The average length of time users borrow books can be used as the window size.

[0009] Build sliding windows: Divide the entire time range into multiple windows based on the selected window size. Each window contains a continuous period of data.

[0010] Calculate the popularity index: In each window, calculate the current search count as the search popularity of the current window to form a search popularity vector. In addition, calculate the borrowing trend based on the start and end time of borrowing. If the borrowing cycle overlaps with the current window, it will be counted as borrowing popularity. Count the borrowing popularity of each book in the current window to form a borrowing popularity vector. Finally, calculate the number of borrowed books in the current window, where the maximum number of borrowed books is the label.

[0011] 4) User feature processing: Encode the user’s gender and borrowing record features using one-hot encoding.

[0012] 5) Improve the output layer of the Wide&Deep model by changing the output layer of the model from the softmax or sigmoid function in the classification problem to a linear output layer suitable for the regression problem, which directly outputs a real value.

[0013] 6) The loss function of the Wide&Deep model uses mean square error to calculate the loss of the number of volumes required for prediction and the actual maximum number of volumes.

[0014] 7) During model training, the Wide part inputs the borrowing records of users and books to capture the interaction of large-scale sparse features. The Deep part mainly learns the feature vectors of items and users to learn the deep feature expressions of users and books.

[0015] 8) Adjust the output range: According to the requirements of the maximum and minimum number of books in all current books, the output range of the model may need to be adjusted.

[0016] 9) Purchase forecast: After the model training is completed, the demand for each book is predicted. If the predicted value is greater than 80% of the current maximum quantity of the book, it is recommended to increase the quantity of the book appropriately. The increase can be based on the following formula:

[0017] Specific number of additional volumes = current data * n

[0018] Beneficial effects:

[0019] The present invention collects data including user and book information, uses one-hot encoding to process book categories and keyword tags, and uses a sliding window method to process continuous features to capture popularity change trends. This method combines and improves the Wide&Deep model in the recommendation field. The Wide part is used to capture the interaction of large-scale sparse features, and the Deep part is used to learn the deep feature expressions of users and books. The quantity of books to be purchased is adjusted according to the predicted value, thereby providing auxiliary decision-making for book purchases. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 This is a structural diagram of the improved Wide&Deep model based on the changing trend of user and item popularity in the present invention.

[0021] Figure 2 The present invention is a flowchart of a book purchase prediction method based on user and item popularity change trends. DETAILED DESCRIPTION

[0022] The invention will be further described in detail below in conjunction with the accompanying drawings.

[0023] like Figure 1 and Figure 2 As shown, the present invention provides a book purchase prediction method based on the changing trend of user and item popularity, and the method comprises the following steps:

[0024] 1) Data collection. The data collected includes user and book information. User information includes user gender and borrowing records, in order to capture the user's borrowing trend of books; book information includes category, search times, borrowing start and end time, book keyword tags and number of books. The user's preference for books of the same type is obtained through the book category and keyword tag information. The borrowing start and end time is convenient for counting the number of books borrowed in the time period to obtain the borrowing popularity trend of the book.

[0025] 2) Item category feature processing. Book categories and keyword tags are encoded by one-hot encoding, converting categorical variables into a form that computers can understand and process, so that the model can use this information for learning. Each category is represented as a vector in which only one element is 1 and the rest are 0. The position of this element represents the index of the category, so each category has a unique code.

[0026] 3) Continuous feature processing of items. Use the sliding window method to measure the trend of popularity changes. This method is based on a fixed-length time window and captures its trend by calculating the popularity changes of items in each window. The following are the general steps for measuring the trend of popularity changes using the sliding window method:

[0027] Select window size: First, you need to select an appropriate window size, that is, the time span of each slide △t. The window size can be adjusted according to the characteristics and needs of the data. The average length of time users borrow books can be used as the window size.

[0028] Build sliding windows: Divide the entire time range into multiple windows based on the selected window size. Each window contains a continuous period of data.

[0029] Calculate the popularity index: In each window, calculate the current search count as the search popularity of the current window to form a search popularity vector. In addition, calculate the borrowing trend based on the start and end time of borrowing. If the borrowing cycle overlaps with the current window, it will be counted as borrowing popularity. Count the borrowing popularity of each book in the current window to form a borrowing popularity vector. Finally, calculate the number of borrowed books in the current window, where the maximum number of borrowed books is the label.

[0030] 4) User feature processing: Encode the user’s gender and borrowing record features using one-hot encoding.

[0031] 5) Improve the output layer of the Wide&Deep model by changing the output layer of the model from the softmax or sigmoid function in the classification problem to a linear output layer suitable for the regression problem, which directly outputs a real value.

[0032] 6) The loss function of the Wide&Deep model uses mean square error to calculate the loss of the number of volumes required for prediction and the actual maximum number of volumes.

[0033] 7) During model training, the Wide part inputs the borrowing records of users and books to capture the interaction of large-scale sparse features. The Deep part mainly learns the feature vectors of items and users to learn the deep feature expressions of users and books.

[0034] 8) Adjust the output range: According to the requirements of the maximum and minimum number of books in all current books, the output range of the model may need to be adjusted.

[0035] 9) Purchase forecast: After the model training is completed, the demand for each book is predicted. If the predicted value is greater than 80% of the current maximum quantity of the book, it is recommended to increase the quantity of the book appropriately. The increase can be based on the following formula:

[0036] Specific number of additional volumes = current data * n

[0037] The above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.

Claims

1. A book purchase prediction method based on the changing trend of user and item popularity, characterized in that: The method comprises the following steps: 1) Data collection; The collection includes user and book information, where user information includes user gender and borrowing records, in order to capture the user's borrowing trend of books; book information includes category, search times, borrowing start and end time, book keyword tags and number of books, through the book category and keyword tag information to obtain the user's preference for books of the same type, borrowing start and end time is convenient for counting the number of books borrowed in the time period, to obtain the borrowing popularity trend of the book; 2) Item category feature processing; Encode book categories and keyword tags through one-hot encoding, convert categorical variables into a form that computers can understand and process, so that the model can use this information for learning. Each category is represented as a vector in which only one element is 1 and the rest are 0. The position of this element represents the index of the category, so each category has a unique code. 3) Continuous feature processing of items; The sliding window method is used to measure the popularity change trend. This method is based on a fixed-length time window and captures its trend by calculating the popularity change of the item in each window. The following are the general steps for measuring the popularity change trend using the sliding window method: Select window size: First, you need to select a suitable window size, that is, the time span of each slide △t. The window size can be adjusted according to the characteristics and needs of the data. The average length of time users borrow books can be used as the window size. Build sliding windows: Divide the entire time range into multiple windows based on the selected window size, and each window contains a continuous period of data; Calculate popularity index: In each window, calculate the current search count as the search popularity of the current window to form a search popularity vector. In addition, calculate the borrowing trend based on the start and end time of borrowing. If the borrowing period overlaps with the current window, it will be counted as borrowing popularity. Count the borrowing popularity of each book in the current window to form a borrowing popularity vector. Finally, calculate the number of borrowed books in the current window, where the maximum number of borrowed books is the label. 4) User feature processing: Encode the user's gender and borrowing record features using one-hot encoding; 5) Improve the output layer of the Wide&Deep model by changing the output layer of the model from the softmax or sigmoid function in the classification problem to a linear output layer suitable for the regression problem, which directly outputs a real value; 6) The loss function of the Wide & Deep model uses mean square error to calculate the loss of the number of volumes required for prediction and the actual maximum number of volumes; 7) During model training, the Wide part inputs the borrowing records of users and books to capture the interaction of large-scale sparse features, and the Deep part mainly learns the feature vectors of items and users to learn the deep feature expressions of users and books; 8) Adjust the output range: According to the requirements of the maximum and minimum number of books in all current books, the output range of the model may need to be adjusted; 9) Purchase forecast: After the model training is completed, the demand for each book is predicted. If the predicted value is greater than 80% of the current maximum quantity of the book, it is recommended to increase the quantity of the book appropriately according to the following formula: The specific number of volumes to be added = current data * n.

Citation Information

Patent Citations

  • Book configuration method based on big data and a server

    CN109871481A

  • Book recommendation method and device based on user borrowing behavior-interest prediction

    CN113590945A

  • Sales prediction method, system and device, and storage medium

    CN116681463A

  • Method for book recommendation for purchasing in library and apparatus for performing the same

    KR102134544B1