DPBD: Disentangling Preferences via Borrowing Duration for Book Recommendation
Abstract
1. Introduction
- We incorporate library lending policies and personalized user-level normalization to filter out anomalous borrowing duration and dynamically adjust attention weights, thereby enhancing the precision of user interest modeling.
- We design parallel item-level and feature-level self-attention networks. One is used to capture item transitions, while the other is used to uncover feature evolution, thereby jointly leveraging both item and attribute signals.
- We evaluate DPBD through comprehensive experiments on two real-world university library datasets, showing outperformance against state-of-the-art baselines across multiple metrics.
2. Related Works
2.1. Book Recommendation
2.2. Sequential Recommendation
3. Proposed Method
3.1. Problem Definition
3.2. Embedding Layer
3.3. Item-Level Sequence Modeling
3.3.1. Borrowing-Duration Modeling
- A reader’s interest in an unfamiliar book can be inferred from other readers’ interactions with the same book.
- Within the normal borrowing window, borrowing duration is positively correlated with interest intensity.
- Any borrowing duration exceeding the maximum allowable period is considered maliciously overdue (e.g., forgotten returns or system update delays).
3.3.2. Item-Level Self-Attention Layer
3.4. Feature-Level Sequence Modeling
3.4.1. Gated Fusion Layer
3.4.2. Feature-Level Self-Attention Layer
3.5. Preference Fusion and Prediction
4. Experiment
- RQ1: Can DPBD outperform the current mainstream recommendation algorithms on baseline tasks?
- RQ2: Do the innovative components of DPBD contribute to its performance?
- RQ3: How do hyperparameters affect DPBD’s performance?
4.1. Datasets
4.2. Baseline Methods
- Content-Based Recommendation Model (CBR) [36]: It recommends items similar to a user’s historical preferences by analyzing item features (e.g., book authors, categories, and abstracts) to calculate similarity.
- Item-Based Collaborative Filtering (ItemCF) [37]: It computes co-occurrence similarity between items under the assumption that users who liked item A will also like item B, making it adept at uncovering item–item relationships.
- User-Based Collaborative Filtering (UserCF) [38]: It identifies users with similar preferences and recommends items liked by those peers, based on the hypothesis that similar users enjoy similar items.
- GRU4Rec [22]: It pioneered the application of gated recurrent units (GRUs) in sequential recommendation tasks. It models temporal dependencies in user behavior sequences through GRU networks, effectively capturing short-term interest dynamics.
- Caser [16]: It introduces convolutional neural networks for sequence modeling, using horizontal convolutions to extract item-specific features and vertical convolutions to capture cross-item transition patterns.
- SR-GNN [25]: It represents user histories as directed item graphs and employs graph neural networks to learn complex transition relationships, followed by an attention mechanism to generate recommendations.
- SASRec [4]: It employs a unidirectional Transformer architecture to model user behavior sequences and Captures long-term dependencies through self-attention mechanisms while preserving sequential order via positional encoding.
- BERT4Rec [6]: It incorporates a bidirectional Transformer architecture, adopting BERT’s masked language modeling approach. It also learns richer sequence representations by randomly masking items in sequences and predicting the masked items.
- TiSASRec [5]: It builds on SASRec by embedding both absolute positional cues and relative time-interval information directly into its attention mechanism.
4.3. Metrics for Evaluation
4.4. Experimental Setup
5. Results and Discussion
5.1. Overall Performance (RQ1)
5.2. Blation Studies (RQ2)
- w/o Time (WT): It removes borrowing-time modeling and uses only the original attention scores.
- w/o Fusion (WGF): It removes the gated fusion layer in feature-level sequence modeling, replacing it with a simple average over all features.
- w/o Feature (WF): It removes feature-level sequence modeling and its associated fully connected layer, retaining only item-level sequence modeling.
- w/o Both (WB): It removes borrowing-time modeling and feature-level sequence modeling, which reduce the model to SASRec.
5.3. Hyperparameter Study (RQ3)
6. Conclusions
Author Contributions
Funding
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Ramakrishnan, G.; Saicharan, V.; Chandrasekaran, K.; Rathnamma, M.; Ramana, V.V. Collaborative filtering for book recommendation system. In Soft Computing for Problem Solving: SocProS 2018; Springer: Berlin/Heidelberg, Germany, 2020; Volume 2, pp. 325–338. [Google Scholar]
- Mathew, P.; Kuriakose, B.; Hegde, V. Book Recommendation System through content based and collaborative filtering method. In Proceedings of the 2016 International Conference on Data Mining and Advanced Computing (SAPIENCE), Ernakulam, India, 16–18 March 2016; IEEE: New York, NY, USA, 2016; pp. 47–52. [Google Scholar]
- Mooney, R.J.; Roy, L. Content-based book recommending using learning for text categorization. In Proceedings of the Fifth ACM Conference on Digital Libraries, San Antonio, TX, USA, 2–7 June 2000; pp. 195–204. [Google Scholar]
- Kang, W.C.; McAuley, J. Self-attentive sequential recommendation. In Proceedings of the 2018 IEEE International Conference on Data Mining, Singapore, 17–20 November 2018; pp. 197–206. [Google Scholar]
- Li, J.; Wang, Y.; McAuley, J. Time interval aware self-attention for sequential recommendation. In Proceedings of the 13th International Conference on Web Search and Data Mining, Houston, TX, USA, 3–7 February 2020; pp. 322–330. [Google Scholar]
- Sun, F.; Liu, J.; Wu, J.; Pei, C.; Lin, X.; Ou, W.; Jiang, P. BERT4Rec: Sequential recommendation with bidirectional encoder representations from transformer. In Proceedings of the 28th ACM International Conference on Information and Knowledge Management, Beijing, China, 3–7 November 2019; pp. 1441–1450. [Google Scholar]
- Vaz, P.C.; Ribeiro, R.; de Matos, D.M. Understanding temporal dynamics of ratings in the book recommendation scenario. In Proceedings of the 2013 International Conference on Information Systems and Design of Communication, Lisboa, Portugal, 11–12 July 2013; pp. 11–15. [Google Scholar]
- Jing, M.; Yu, Y. CF Recommending Model Based on Borrowing-time Scores and Its Application. Libr. Inf. Serv. 2012, 56, 117–120. [Google Scholar]
- Jomsri, P. Book recommendation system for digital library based on user profiles by using association rule. In Proceedings of the Fourth edition of the International Conference on the Innovative Computing Technology (INTECH 2014), Luton, UK, 13–15 August 2014; IEEE: New York, NY, USA, 2014; pp. 130–134. [Google Scholar]
- Goldberg, D.; Nichols, D.; Oki, B.M.; Terry, D. Using collaborative filtering to weave an information tapestry. Commun. ACM 1992, 35, 61–70. [Google Scholar] [CrossRef]
- Sarwar, B.; Karypis, G.; Konstan, J.; Riedl, J. Item-based collaborative filtering recommendation algorithms. In Proceedings of the 10th International Conference on World Wide Web, Hong Kong, China, 1–5 May 2001; pp. 285–295. [Google Scholar]
- Tewari, A.S.; Kumar, A.; Barman, A.G. Book recommendation system based on combine features of content based filtering, collaborative filtering and association rule mining. In Proceedings of the 2014 IEEE International Advance Computing Conference (IACC), Gurgaon, India, 21–22 February 2014; IEEE: New York, NY, USA, 2014; pp. 500–503. [Google Scholar]
- Ding, Y.; Zhang, Y.; Fu, Q.; Zhou, J.; Huang, Z. Precise Book Recommendation Based on SOM Neural Network and Ranking Factorization Machine. Inf. Stud. Theory Appl. 2019, 42, 133–138+170. [Google Scholar]
- LIU, Y. Deep Learning Recommendation Algorithm Based on Reader Preference Analysis. J. Southwest Univ. Nat. Sci. Ed. 2023, 45, 201–209. [Google Scholar]
- Huang, Y.; Zhang, W.; Zhang, S. Personalized Recommendation of Online Book Resources Based on Deep Distance Decomposition. Inf. Sci. 2021, 39, 76–81. [Google Scholar]
- Zhang, F. A personalized time-sequence-based book recommendation algorithm for digital libraries. IEEE Access 2016, 4, 2714–2720. [Google Scholar] [CrossRef]
- Fang, H.; Zhang, D.; Shu, Y.; Guo, G. Deep learning for sequential recommendation: Algorithms, influential factors, and evaluations. ACM Trans. Inf. Syst. (TOIS) 2020, 39, 1–42. [Google Scholar] [CrossRef]
- Wang, S.; Hu, L.; Wang, Y.; Cao, L.; Sheng, Q.Z.; Orgun, M. Sequential recommender systems: Challenges, progress and prospects. arXiv 2019, arXiv:2001.04830. [Google Scholar] [CrossRef]
- Rendle, S.; Freudenthaler, C.; Schmidt-Thieme, L. Factorizing personalized markov chains for next-basket recommendation. In Proceedings of the 19th International Conference on World Wide Web, Raleigh, NC, USA, 26–30 April 2010; pp. 811–820. [Google Scholar]
- He, R.; McAuley, J. Fusing similarity models with markov chains for sparse sequential recommendation. In Proceedings of the 2016 IEEE 16th International Conference on Data Mining (ICDM), Barcelona, Spain, 12–15 December 2016; IEEE: New York, NY, USA, 2016; pp. 191–200. [Google Scholar]
- Wu, C.Y.; Ahmed, A.; Beutel, A.; Smola, A.J.; Jing, H. Recurrent recommender networks. In Proceedings of the Tenth ACM International Conference on Web Search and Data Mining, Cambridge, UK, 6–10 February 2017; pp. 495–503. [Google Scholar]
- Hidasi, B.; Karatzoglou, A.; Baltrunas, L.; Tikk, D. Session-based recommendations with recurrent neural networks. arXiv 2015, arXiv:1511.06939. [Google Scholar]
- Tang, J.; Wang, K. Personalized top-n sequential recommendation via convolutional sequence embedding. In Proceedings of the Eleventh ACM International Conference on Web Search and Data Mining, Los Angeles, CA, USA, 5–9 February 2018; pp. 565–573. [Google Scholar]
- Yuan, F.; Karatzoglou, A.; Arapakis, I.; Jose, J.M.; He, X. A simple convolutional generative network for next item recommendation. In Proceedings of the Twelfth ACM International Conference on Web Search and Data Mining, Melbourne, Australia, 11–15 February 2019; pp. 582–590. [Google Scholar]
- Wu, S.; Tang, Y.; Zhu, Y.; Wang, L.; Xie, X.; Tan, T. Session-based recommendation with graph neural networks. In Proceedings of the AAAI Conference on Artificial Intelligence, Honolulu, HI, USA, 27 January–1 February 2019; Volume 33, pp. 346–353. [Google Scholar]
- Zhang, M.; Wu, S.; Yu, X.; Liu, Q.; Wang, L. Dynamic graph neural networks for sequential recommendation. IEEE Trans. Knowl. Data Eng. 2022, 35, 4741–4753. [Google Scholar] [CrossRef]
- Wang, C.; Zhang, M.; Ma, W.; Liu, Y.; Ma, S. Make it a chorus: Knowledge-and time-aware item modeling for sequential recommendation. In Proceedings of the 43rd International ACM SIGIR Conference on Research and Development in Information Retrieval, Virtual Event, China, 25–30 July 2020; pp. 109–118. [Google Scholar]
- Ma, Z.; Liu, J.; Luo, X.; Huang, Z.; Zhu, Q.; Che, W. Advancing Tool-Augmented Large Language Models via Meta-Verification and Reflection Learning. arXiv 2025, arXiv:2506.04625. [Google Scholar]
- Zhang, J.C.; Zain, A.M.; Zhou, K.Q.; Chen, X.; Zhang, R.M. A review of recommender systems based on knowledge graph embedding. Expert Syst. Appl. 2024, 250, 123876. [Google Scholar] [CrossRef]
- Liu, Q.; Wu, X.; Wang, Y.; Zhang, Z.; Tian, F.; Zheng, Y.; Zhao, X. Llm-esr: Large language models enhancement for long-tailed sequential recommendation. Adv. Neural Inf. Process. Syst. 2024, 37, 26701–26727. [Google Scholar]
- Zhai, J.; Zheng, X.; Wang, C.D.; Li, H.; Tian, Y. Knowledge prompt-tuning for sequential recommendation. In Proceedings of the 31st ACM International Conference on Multimedia, Ottawa, ON, Canada, 29 October–3 November 2023; pp. 6451–6461. [Google Scholar]
- Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, Ł.; Polosukhin, I. Attention is all you need. In Advances in Neural Information Processing Systems; NIPS Foundation: La Jolla, CA, USA, 2017; Volume 30. [Google Scholar]
- Liu, C.; Li, X.; Cai, G.; Dong, Z.; Zhu, H.; Shang, L. Noninvasive self-attention for side information fusion in sequential recommendation. In Proceedings of the the AAAI Conference on Artificial Intelligence, Virtually, 2–9 February 2021; Volume 35, pp. 4249–4256. [Google Scholar]
- Ba, J.L.; Kiros, J.R.; Hinton, G.E. Layer normalization. arXiv 2016, arXiv:1607.06450. [Google Scholar] [CrossRef]
- Srivastava, N.; Hinton, G.; Krizhevsky, A.; Sutskever, I.; Salakhutdinov, R. Dropout: A simple way to prevent neural networks from overfitting. J. Mach. Learn. Res. 2014, 15, 1929–1958. [Google Scholar]
- Pazzani, M.J.; Billsus, D. Content-based recommendation systems. In The Adaptive Web: Methods and Strategies of Web Personalization; Springer: Berlin/Heidelberg, Germany, 2007; pp. 325–341. [Google Scholar]
- Linden, G.; Smith, B.; York, J. Amazon. com recommendations: Item-to-item collaborative filtering. IEEE Internet Comput. 2003, 7, 76–80. [Google Scholar] [CrossRef]
- Wang, J.; De Vries, A.P.; Reinders, M.J. Unifying user-based and item-based collaborative filtering approaches by similarity fusion. In Proceedings of the 29th Annual International ACM SIGIR Conference on Research and Development in Information Retrieval, Seattle, WA, USA, 6–11 August 2006; pp. 501–508. [Google Scholar]
Dataset | University A | University B |
---|---|---|
# Users | 4343 | 6042 |
# Books | 37,384 | 46,374 |
# Interactions | 81,171 | 124,674 |
Avg Actions/User | 18.70 | 20.63 |
Avg Actions/Books | 2.17 | 2.69 |
Sparsity | 99.95% | 99.96% |
Dataset | Metric | CBRec | ItemCF | UserCF | GRU4Rec | Caser | BERT4Rec | SASRec | TiSASRec | DPBD | Improve |
---|---|---|---|---|---|---|---|---|---|---|---|
Univ. A | HR@1 | 0.0185 | 0.0204 | 0.0227 | 0.0242 | 0.0449 | 0.0704 | 0.0721 | 0.0761 | 0.0865 | 13.67% |
HR@5 | 0.0246 | 0.0264 | 0.0285 | 0.0311 | 0.0517 | 0.0874 | 0.0864 | 0.0904 | 0.1021 | 12.94% | |
HR@10 | 0.0284 | 0.0302 | 0.0327 | 0.0394 | 0.0532 | 0.0996 | 0.1011 | 0.1041 | 0.1138 | 9.32% | |
NDCG@1 | 0.0157 | 0.0169 | 0.0187 | 0.0202 | 0.0401 | 0.0626 | 0.0644 | 0.0684 | 0.0781 | 14.18% | |
NDCG@5 | 0.0215 | 0.0235 | 0.0243 | 0.0274 | 0.0467 | 0.0744 | 0.0754 | 0.0815 | 0.0911 | 11.78% | |
NDCG@10 | 0.0254 | 0.0272 | 0.0291 | 0.0345 | 0.0452 | 0.0869 | 0.0887 | 0.0927 | 0.0985 | 6.26% | |
Univ. B | HR@1 | 0.0201 | 0.0221 | 0.0239 | 0.0274 | 0.0468 | 0.0734 | 0.0750 | 0.0781 | 0.0904 | 15.75% |
HR@5 | 0.0264 | 0.0303 | 0.0314 | 0.0334 | 0.0534 | 0.0948 | 0.1004 | 0.1043 | 0.1169 | 12.08% | |
HR@10 | 0.0326 | 0.0321 | 0.0336 | 0.0407 | 0.0559 | 0.1047 | 0.1132 | 0.1234 | 0.1312 | 6.32% | |
NDCG@1 | 0.0164 | 0.0185 | 0.0198 | 0.0225 | 0.0417 | 0.0674 | 0.0681 | 0.0721 | 0.0814 | 12.90% | |
NDCG@5 | 0.0227 | 0.0254 | 0.0265 | 0.0282 | 0.0483 | 0.0844 | 0.0906 | 0.0911 | 0.0987 | 8.34% | |
NDCG@10 | 0.0271 | 0.0284 | 0.0304 | 0.0361 | 0.0479 | 0.0938 | 0.0968 | 0.0991 | 0.1072 | 8.17% |
Model | Dataset | |||
---|---|---|---|---|
Univ. A | Univ. B | |||
HR@10 | HDCG@10 | HR@10 | HDCG@10 | |
(A) DPBD | 0.1138 | 0.0985 | 0.1312 | 0.1072 |
(B) w/o Time | 0.1072 | 0.0913 | 0.1247 | 0.1011 |
(C) w/o Fusion | 0.1114 | 0.0961 | 0.1281 | 0.1048 |
(D) w/o Feature | 0.1051 | 0.0919 | 0.1214 | 0.0997 |
(E) w/o Both | 0.1011 | 0.0887 | 0.1132 | 0.0968 |
p | Univ. A | Univ. B | ||||
---|---|---|---|---|---|---|
1 | 0.1138 | 0.1130 | 0.1116 | 0.1261 | 0.1312 | 0.1294 |
2 | 0.1118 | 0.1110 | 0.1009 | 0.1251 | 0.1302 | 0.1274 |
3 | 0.1074 | 0.1063 | 0.1044 | 0.1240 | 0.1277 | 0.1251 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Liao, Z.; Chen, L.; Qi, Y.; Li, F. DPBD: Disentangling Preferences via Borrowing Duration for Book Recommendation. Big Data Cogn. Comput. 2025, 9, 222. https://doi.org/10.3390/bdcc9090222
Liao Z, Chen L, Qi Y, Li F. DPBD: Disentangling Preferences via Borrowing Duration for Book Recommendation. Big Data and Cognitive Computing. 2025; 9(9):222. https://doi.org/10.3390/bdcc9090222
Chicago/Turabian StyleLiao, Zhifang, Liping Chen, Yuelan Qi, and Fei Li. 2025. "DPBD: Disentangling Preferences via Borrowing Duration for Book Recommendation" Big Data and Cognitive Computing 9, no. 9: 222. https://doi.org/10.3390/bdcc9090222
APA StyleLiao, Z., Chen, L., Qi, Y., & Li, F. (2025). DPBD: Disentangling Preferences via Borrowing Duration for Book Recommendation. Big Data and Cognitive Computing, 9(9), 222. https://doi.org/10.3390/bdcc9090222