Reading the Mood: Emotion-Guided Book-to-Music Recommendation via CGANs and LLMs
Organizations: School of Electrical & Computer Engineering National Technical University of Athens Zografou, 15780, Greece · Department of Digital Industry Technologies National & Kapodistrian University of Athens Evripos Complex, Psachna, 34400, Greece
Abstract
Background music that matches the mood of a text has been shown to make readers feel more immersed and improve their reading experience, motivating recommender systems that pair books with mood-matched music. In this direction, we present Sentiment Aware Generative Adversarial Network for Cross Domain Recommendation (SAGA-CDR), a two-phase cross-domain recommendation framework that personalizes music suggestions and emotionally aligns them with the book being read. In the first phase, transformer-based sentiment embeddings are constructed from user reviews and mapped across domains via a Conditional Generative Adversarial Network, whose mask-conditioned generator handles missing sentiment components and injects stochasticity for richer preference transfer. A compact rating neural network then fuses sentiment-specific interaction scores with a collaborative filtering prior to predict music ratings. In the second phase, large language models classify each book into a valence-arousal emotional quadrant, and candidate tracks are filtered to match that quadrant. Experiments on both the English Amazon and Chinese Douban datasets show that SAGA-CDR achieves the best rating prediction accuracy on Amazon (RMSE 0.98) and the lowest RMSE on Douban (0.91), with ranking performance competitive with the strongest sentiment-aware baseline, even in cross-lingual settings.
Figures & tables
| Book | Music | Q | LLM reasoning (summary) | Rating |
|---|---|---|---|---|
| The Heroin Diaries (Nikki Sixx) | “Sing Sing Death House” – The Distillers | Q2 | Addiction, despair, turmoil, and self-destruction. | 4.8 |
| Foley Is Good (Mick Foley) | “I Can’t Stop” – Al Green | Q1 | Celebratory, energetic, positive, and triumphant mood. | 4.75 |
| Franny and Zooey (J.D. Salinger) | “Is This Desire?” – PJ Harvey | Q3 | Introspective, somber, emotionally fragile, and existential. | 4.7 |
| The Seven Storey Mountain (Thomas Merton) | “Prelude to a Kiss” – Duke Ellington | Q4 | Reflective spiritual journey, transformation, and inner peace. | 4.6 |
| Method | RMSE | MAE | ||
|---|---|---|---|---|
| SAGA-CDR | 0.9806 0.0078 | — | 0.6097 0.0145 | — |
| CDR-SAFM | 1.1204 0.0018 | 0.0006 † | 0.6674 0.0069 | 0.0145 † |
| EMCDR | 4.6179 0.0129 | 0.0000 † | 4.5115 0.0129 | 0.0000 † |
| PTUPCDR | 4.6742 0.0084 | 0.0000 † | 4.5011 0.0147 | 0.0000 † |
| Method | MAP | NDCG | MRR | HR | |
|---|---|---|---|---|---|
| 1 | SAGA-CDR | .8907 .0005 | .8907 .0005 | .8907 .0005 | .8907 .0005 |
| SAFM | .8902 .0019 ( ) | .8902 .0019 ( ) | .8902 .0019 ( ) | .8902 .0019 ( ) | |
| EMCDR | .8859 .0007 ( ) | .8859 .0007 ( ) | .8859 .0007 ( ) | .8859 .0007 ( ) | |
| PTUPCDR | .8861 .0012 ( ) | .8861 .0012 ( ) | .8861 .0012 ( ) | .8861 .0012 ( ) | |
| 3 | SAGA-CDR | .8946 .0011 | .9026 .0014 | .9075 .0012 | .9254 .0020 |
| SAFM | .8947 .0019 ( ) | .9027 .0020 ( ) | .9071 .0020 ( ) | .9255 .0021 ( ) |
| Pred. | |||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Method | RMSE | MAE | MAP | NDCG | HR | MRR | MAP | NDCG | HR | MRR | MAP | NDCG | HR | MRR | MAP | NDCG | HR | MRR | |
| pre-tr. | SAFM | 0.9169 | 0.6925 | 0.9118 | 0.9118 | 0.9118 | 0.9118 | 0.8848 | 0.9085 | 0.9775 | 0.9433 | 0.8769 | 0.9098 | 0.9839 | 0.9447 | 0.8704 | 0.9121 | 0.9839 | 0.9447 |
| EMCDR | 4.0819 | 3.9763 | 0.8341 | 0.8341 | 0.8341 | 0.8341 | 0.7963 | 0.8371 | 0.9637 | 0.8953 | 0.7850 | 0.8411 | 0.9798 | 0.8990 | 0.7790 | 0.8487 | 0.9833 | 0.8995 | |
| PTUPCDR | 4.0793 | 3.9735 | 0.8272 | 0.8272 | 0.8272 | 0.8272 | 0.7877 | 0.8306 | 0.9672 | 0.8924 | 0.7785 | 0.8357 | 0.9781 | 0.8948 | 0.7742 | 0.8444 | 0.9833 | 0.8956 | |
| no-pre. | SAFM | 0.9151 | 0.6928 | 0.9084 | 0.9084 | 0.9084 | 0.9084 | 0.8866 | 0.9097 | 0.9781 | 0.9417 | 0.8775 | 0.9097 | 0.9833 | 0.9429 | 0.8720 | 0.9131 | 0.9839 | 0.9430 |
| EMCDR | 3.5591 | 3.2499 | 0.8750 | 0.8750 | 0.8750 | 0.8750 | 0.8426 | 0.8758 | 0.9764 | 0.9236 | 0.8346 | 0.8792 | 0.9816 | 0.9248 | 0.8258 | 0.8820 | 0.9833 | 0.9251 | |
| Rating | Ranking | |||||
|---|---|---|---|---|---|---|
| Variant | RMSE | MAE | @1 | MAP@10 | NDCG@10 | MRR@10 |
| Full model | 0.981 | 0.610 | .8907 | .9004 | .9095 | .9078 |
| noise | 0.973 | 0.636 | .8857 † | .8979 † | .9075 † | .9049 † |
| mask | 0.974 | 0.621 | .8857 † | .8979 † | .9075 † | .9049 † |
| 1.002 | 0.640 † | .8858 † | .8979 † | .9076 † | .9049 † | |
| 0.973 | 0.625 | .8857 † | .8979 † | .9075 † | .9049 † | |