Next Article in Journal
A Noise-Robust Intelligent Change Detection Framework via Deep Feature Restoration and Posterior Probability Modeling
Previous Article in Journal
Acoustic Distance-Based System for In-Swarm Low-Cost Underwater Navigation
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Systematic Evaluation of Top-K Neighborhood in Emotion-Aware Literature Book Recommendation

by
Elena-Ruxandra Luţan
* and
Costin Bădică
Department of Computers and Information Technology, University of Craiova, 200585 Craiova, Romania
*
Author to whom correspondence should be addressed.
Electronics 2026, 15(16), 3710; https://doi.org/10.3390/electronics15163710
Submission received: 8 July 2026 / Revised: 14 August 2026 / Accepted: 16 August 2026 / Published: 19 August 2026
(This article belongs to the Special Issue Recommendation Systems: Recent Advances and Future Directions)

Abstract

Literature books recommender systems often overlook the vital affective dimensions that dictate reading preferences. To address this, we present an emotion-aware recommendation framework that leverages latent emotional profiles extracted from user reviews. By constructing an emotional embedding space, the system maps the affective resonance of books and aligns them with historical user preferences. This study specifically investigates the sensitivity of neighborhood size, defined as the number of nearest neighbors ( T o p - K ), and emotional similarity evaluation thresholds ( τ ) within affective-based collaborative filtering. Through a systematic empirical evaluation across four nested datasets, we demonstrate that affective recommendation alignment is highly dependent on neighborhood size. Our findings identify T o p - K = 3 as an effective neighborhood parameter, successfully balancing highly affective aligned item acquisition while neutralizing the data noise introduced by larger user clusters. Robustness analysis shows that the proposed framework maintains high affective recommendation alignment under strict similarity constraints.

1. Introduction

Recommender systems in the domain of literature primarily rely on collaborative filtering, which identifies user preferences based on shared interaction histories. However, these methods frequently fail to account for the latent affective dimensions of reading, the emotional state or mood that drives user preference [1]. While item-based features such as genre and author serve as a baseline for similarity, they do not fully capture the qualitative user experience. User reviews represent a critical but underutilized resource in this context, as they contain rich semantic information encompassing opinions, preferences, and emotional reactions [2,3]. Emotion-aware recommender systems seek to bridge this gap by explicitly incorporating users’ affective states and emotional preferences into the recommendation process [4].
Recent advances in affective computing have seen a transition toward transformer-based emotion recognition models and fine-grained sentiment analysis techniques that capture deep contextual nuances [5,6]. While these neural architectures offer high predictive power, they often function as black boxes, demand substantial computational resources, and can overfit to the kind of noisy or informal text that is commonplace in literary reviews. In contrast, lexicon-based emotion frameworks such as structured affective word lists provide high interpretability, computational efficiency and transparent mapping of emotional dimensions.
This paper presents a recommendation framework that integrates latent emotional profiles extracted from user reviews. By adopting a lexicon-driven methodology, we ensure emotional profiles that bridge the gap between interpretable affective analysis and neighborhood-based collaborative filtering. Furthermore, this approach constructs an emotional embedding space to characterize the affective resonance of literary works, aligning them with the user’s historical emotional preferences.
We investigate the affective alignment dynamics within neighborhood-based collaborative filtering. While several studies have examined the influence of neighborhood size on recommendation performance [7,8], the specific dynamics of affect-based filtering when using emotion-aware data remain underexplored [9,10]. This work addresses the above gap through a systematic evaluation of varying neighborhood sizes ( T o p - K { 1 , 3 , 5 , 7 , 10 } ), guided by the following research questions:
  • RQ1: How does recommendation affective alignment vary systematically with neighborhood size when user similarity is computed exclusively from affective embeddings derived from user reviews?
  • RQ2: Does an effective neighborhood size ( T o p - K ) exist?
  • RQ3: How do emotional similarity thresholds ( τ ) influence the affective alignment of recommendations generated across varying neighborhood sizes ( T o p - K )?
Our contributions are twofold: we first establish a robust mechanism for mapping literary works to emotional profiles, then provide an empirical analysis of how these profiles improve affective alignment of the recommendations across varying neighborhood sizes and similarity thresholds. The main contributions can be summarized as follows:
  • Proposal of a model for representing books and modeling user preferences, which integrates emotions identified in social media reviews and the collaborative filtering recommendation method.
  • Systematic evaluation of neighborhood size ( T o p - K ) on recommendation affective alignment, demonstrating that affective recommendation alignment varies systematically when user similarity is calculated using emotional embeddings.
  • Identification of T o p - K = 3 as an effective neighborhood parameter which balances personalized candidate acquisition against mitigation of noise introduced by larger neighborhoods with less affective alignment.
  • A systematic analysis of model robustness through a comparative analysis across four nested datasets and similarity thresholds ( τ ), confirming that the system maintains high affective recommendation alignment even under stringent threshold constraints.
  • A performance comparison against prior approaches [11,12], demonstrating measurable improvements in terms of affective recommendation alignment.

2. Related Work

Modern collaborative filtering frameworks frequently integrate auxiliary data sources such as text, features, or scenarios in order to mitigate sparsity and improve baseline representations. For instance, Karabila et al. [13] designed a model fusing collaborative filtering with a sequential Bi-LSTM network to extract user sentiment from textual reviews, substantially raising personalization accuracy. Similarly, the Emotion-Aware Recommender System (EARS) [4] constructs multi-channel user profiles by optimizing a matrix factorization pipeline using explicit ratings, implicit social networks, and review-driven emotional indicators. Sun and Liu [14] mapped interaction matrices into low-dimensional latent spaces using a hybrid K-Nearest Neighbors (KNN) and non-negative matrix factorization algorithm called KNNCNMF, speeding up execution via efficient dot product similarity. Additionally, handling complex cross-domain environments, Liu et al. [15] introduced MultiFS, an automated multi-scenario feature selection framework that uses hierarchical gate vectors to isolate domain-exclusive features and resolve data distribution imbalances.
Beyond broad feature fusion, the recent literature has shifted from flat similarity pairs towards advanced topological and hierarchical neighborhood definitions. Within graph neural networks, Yan et al. [16] introduced SNE–GCN, which leverages an attention-based mechanism to explicitly aggregate second-order neighbors with first-order edges. This approach enriches node representations while preventing over-smoothing. Alternatively, hierarchical trees and adaptive profiles have been used to capture complex proximity paths; for example, Koohi and Kiani [17] developed a parameter-free neighbor-finding method via subspace clustering that organizes users into a three-level tree based on item interest categories, enabling a specialized metric to discover hidden but indirectly similar users. User context can also be used to dynamically adjust neighbor profiles; Subramaniyaswamy and Logesh [18] proposed an Adaptive KNN (AKNN) model backed by a domain ontology, which splits users into the distinct categories of minion (new users) and prominent (old users) in order to eliminate cold-start limitations.
Crucially, the ultimate performance of these systems remains tightly bound to hyperparameter calibration, particularly regarding the selection and scalability of neighborhood sizes. Examining these baseline limits, Airen and Agrawal [19] evaluated multiple KNN variants on the MovieLens-100K dataset, demonstrating that predictive accuracy stabilizes once the user neighborhood reaches a fixed threshold of K = 40 neighbors, although the model faces severe runtime bottlenecks at scale. The risk of rigid neighborhood boundaries is also highly evident in cross-domain settings; Kim and Cho [20] applied a KNN collaborative pipeline to restore missing subsurface log data, noting that the optimal neighborhood size K varies drastically per data instance and that standard error calculations fail to isolate a reliable value. Finally, Dokoupil and Peska [8] investigated the structural impacts of fluctuating cluster sizes on collaborative algorithms, demonstrating that different similarity metrics yield entirely separate neighborhood statistics as scales expand. Collectively, these studies establish that the size of a user neighborhood acts as a vital structural determinant of performance rather than a passive hyperparameter, motivating our investigation.

3. System Design

We propose a system for obtaining book recommendations using a collaborative filtering technique and limited neighborhood sizes.
In what follows, we introduce the data model of our proposed system. The book space B refers to the set of books and the review space R to the set of reviews, while the review space R B refers to the set of reviews for book B, B B . The user space U refers to the set of users, while the book space B U refers to the set of books reviewed by user U, U U . Finally, the emotion space E refers to the set of 35 predefined emotions from [21], as defined in Equation (1).
E = { adequate ,   alone ,   angry ,   anxious ,   apathetic ,   attached ,   attracted ,   average , belittled ,   bored ,   burdened ,   cheated ,   codependent ,   demoralized ,   derailed , ecstatic ,   embarrassed ,   entitled ,   esteemed ,   fearful ,   fearless ,   focused ,   free , happy ,   hated ,   independent ,   lost ,   loved ,   lustful ,   obsessed ,   powerless ,   sad , safe ,   singled out ,   surprise }
A book B is defined as a tuple (Equation (2)):
B = ( I D B , E M B ) , B B
where I D B represents the unique identifier of the book and E M B refers to the Book Emotional Representation (Equation (3)), a 35-dimensional vector in which each element e m i represents the density of emotion e i E across the set of reviews.
E M B = [ e m 1 , e m 2 , , e m 35 ]
The input space I refers to the set of inputs for the system. An input I is defined as a triple (Equation (4)):
i n p u t = ( B , U , E M - r e v )
where B B , U U , and E M - r e v is a 35-dimensional vector (Equation (5)):
E M - r e v = [ f r 1 , f r 2 , , f r 35 ]
with f r i representing the density of emotion e i E within the review text.
The reviews corresponding to user U are defined as a set (Equation (6)):
I U = { ( B , U , E M - r e v ) I } .
A user U is defined as a tuple (Equation (7)):
U = ( I D U , E M U ) , U U
where I D U represents the unique user ID and E M U represents the emotional profile of user U (Equation (8)):
E M U = ( B , U , E M - r e v ) I U E M - r e v .
Next, we detail the computational pipeline stages. The first step is to apply data cleaning to the reviews, which includes lowercasing, punctuation normalization, tokenization, and stopword removal. Next, the emotional features are extracted. For this, the cleaned text is processed by using an external lexicon-based mapping method to classify the affective content. The lexicon is defined in [21], and has been incorporated and evaluated in prior emotion analysis and psycholinguistic research as a standard source for establishing affective word lists [22,23]. The lexicon contains a set of words and the associated emotions. As a result, each book review is represented as a vector (Equation (9)):
E M - r e v = [ f r 1 , f r 2 , , f r 35 ]
where f r i is the frequency of linguistic markers for emotion e i E identified within the review.
Each component e m i of the Book Emotional Representation is a normalized value representing the relative frequency of the emotions extracted from the book B review corpus R B (Equation (10)):
e m i = f i k = 1 35 f k , e m i [ 0 , 1 ] .
The recommendation strategy focuses on retrieving books that align with the preferences of emotionally similar users.
Two users, A and B, share a degree of similarity based on their commonly reviewed books and the similarity of the reviews identified within the shared reviews. This similarity is computed using the cosine similarity (Equation (11)):
s i m ( A , B ) = E M A ( A B ) · E M B ( A B ) | | E M A ( A B ) | | · | | E M B ( A B ) | |
where E M A ( A B ) (Equation (12)) and E M B ( A B ) (Equation (13)) are the user emotion vectors on shared books:
E M A ( A B ) = ( B , U , E M - r e v ) I A B B A B E M - r e v ,
E M B ( A B ) = ( B , U , E M - r e v ) I B B B A B E M - r e v .
For new users, similarity is computed exclusively based on the book currently being reviewed, which is commonly reviewed by the target user and the t o p - K similar users. In contrast, for registered users, similarity calculation also incorporates previously reviewed books from historical data.
The collaborative filtering recommendation algorithm is presented in Algorithm 1. The algorithm receives as input a user review ( B , U , E M - r e v ) .
First, the scores for all users are computed depending on their shared emotions with user U for the commonly reviewed books. Next, the T o p - K most similar users are determined. To select the T o p - K neighbors, candidate users are ranked in descending order based on their similarity scores. In case of identical scores, the candidates are randomly selected with probabilities proportional to the number of reviews available for each candidate in the dataset.
The book preferences of the T o p - K similar users are determined and stored within an array called b o o k s . The preferences of the T o p - K similar users refer to the books that the users have positively reviewed and rated with 4 or 5 stars. In cases where the reviewed book has no prior reviewers, no overlapping user history can be established to find similar users, resulting in an empty list of recommendation candidates ( l e n ( b o o k s ) = 0 ).
We identify three major use cases of performing recommendations, depending on the number of requested recommendations n R E C and the number of recommendation candidates identified l e n ( b o o k s ) :
(i)
l e n ( b o o k s ) = n R E C : The number of recommendation candidates is equal to the number of requested recommendations, which means that the entire list of candidates will be recommended to the user.
(ii)
l e n ( b o o k s ) > n R E C : The number of recommendation candidates is greater than the number of requested recommendations, which means that the system will select n R E C candidates from b o o k s and provide them as recommendations. The n R E C candidates are randomly selected with probabilities proportional to both the similarity of the neighborhood user and the specific rating assigned within the review.
(iii)
l e n ( b o o k s ) < n R E C : The number of recommendation candidates is smaller than the number of requested recommendations, meaning that the b o o k s list does not contain enough candidates to satisfy the number of recommendations requested n R E C . We identify two sub-cases:
a.
l e n ( b o o k s ) = 0 : The recommendation list will be filled with n R E C completely random books from the dataset.
b.
l e n ( b o o k s ) > 0 : The recommendation list will contain the b o o k s identified as candidates based on similar users’ preferences, and will be completed with n R E C l e n ( b o o k s ) random books from the dataset.
Algorithm 1 Neighbor-Based Collaborative Filtering Recommendation Algorithm
Require:  t o p - K , n R E C , B , U
  1: Get user input review ( B , U , E M - r e v )
  2: for each u s e r U U  do
  3:        s c o r e [ u s e r ] s i m ( E M u s e r , E M U )
  4: end for
  5: Create list of t o p - K most similar users of U based on s c o r e
  6: Identify b o o k s enjoyed by similar users
  7: if  l e n ( b o o k s ) = = n R E C   then
  8:       Recommend b o o k s
  9: else
10:       if  l e n ( b o o k s ) > n R E C  then
11:             Recommend n R E C random books from b o o k s
12:       else
13:             while  l e n ( b o o k s ) < n R E C  do
14:                  Add in b o o k s random book from the books dataset B b o o k s
15:             end while
16:             Recommend b o o k s
17:       end if
18: end if

4. Experimental Results and Discussion

4.1. Dataset Overview

The experimental datasets were collected from the Goodreads website for purely academic purposes using our customized web scraper.
The experimental datasets correspond to the top 100, 500, 1000, and 2000 books tagged by users as “Best Books Ever” in the Goodreads website. Considering that each dataset contains a top list of the specific books category, it follows:
D a t a s e t 1 D a t a s e t 2 D a t a s e t 3 D a t a s e t 4
For experiments, the Goodreads datasets were split into 80% training and 20% testing using stochastic sampling and preservation of the per-book review distribution. The algorithm for the splitting procedure is described in Algorithm 2. The training reviews are used to create the emotional profile of the books, while the testing reviews are used to simulate a population of users writing reviews and seeking book recommendations.
Algorithm 2 Training–Testing Dataset partitioning considering per-book review distribution
Require: Reviews Dataset R , Books Dataset B , Target Test Ratio r = 0.20
Ensure: Training Partition R train , Testing Partition R test
  1: R train , R test
  2: for each book b B  do
  3:        R b { review R review . book _ id = b . i d }
  4:        N b | R b |
  5:        k b N b × r
  6:        I test RandomSampleIndices ( [ 0 , N b ] , count = k b )
  7:       for  i = 0  to  N b 1  do
  8:           if  i I test  then
  9:               R test R test { R b [ i ] }
10:           else
11:               R train R train { R b [ i ] }
12:           end if
13:       end for
14: end for
15: return  R train , R test
The statistics of the reviews datasets are presented in Table 1. We observe that as the size of the dataset increases, the deviation of the number of training–testing reviews increases. This is due to the fact that the books are ordered within the “Best Books Ever” category based on book popularity in terms of users interactions, which means that lower-ranking books have a smaller number of reviews.
We classify the experimental subjects into two distinct categories: registered users and new users. Registered users represent individuals who are considered to have previously interacted with the system by writing reviews from the training dataset, allowing the system to model their long-term preferences. Conversely, new users represent a cold-start scenario, having no prior interactions with the system. Table 2 presents the average user type statistics across the experimental scenarios along with the standard deviations.

4.2. Experimental Setup

To evaluate the performance of the proposed system, we employ Monte Carlo cross-validation (ten iterations). In each iteration, the reviews corpus is partitioned into 80% training reviews and 20% testing reviews, preserving the per-book review distribution.
We define the following parameters for a rigorous definition of our evaluation system:
The training reviews space  T r R refers to the total number of input reviews which are used for defining the emotional book representation E M B .
The testing reviews space  T s t R refers to the total number of input reviews seeking recommendations.
A recommendation  f ( i n p u t ) is the output returned by the recommendation algorithm as a set of n R E C books B B (Equation (14)):
f : T s t R B n R E C , f ( i n p u t ) = ( r 1 , r 2 , , r n R E C ) .
We use the following performance measures to evaluate our system: Coverage, Randomness Degree Assessment, and Affective Alignment Rate. While traditional collaborative filtering evaluation relies on historical item ratings evaluated via ranking metrics, our framework focuses on evaluating affective alignment and retrieval of user emotions. A limitation of this approach is that it evaluates the consistency of alignment with the emotional profile rather than the validation of independent predictive preference.
The Coverage (catalog coverage) determines the proportion of books from B that the system is able to recommend at least once across one iteration using the recommendation algorithm (Equation (15)).
C o v e r a g e = i n p u t T s t R f ( i n p u t ) | B |
The Randomness Degree Assessment (RDA) determines the level of stochastic influence in the recommendation process by categorizing results into three distinct categories:
  • General Recommendation (GRL) corresponds to the case in which the set of books enjoyed by similar users contains at least n R E C books; this is Algorithm 1 use case l e n ( b o o k s ) n R E C .
  • Random Fill Recommendation (RF) corresponds to the case in which the set of books enjoyed by similar users contains books, but they are fewer in number than n R E C , meaning that the list of recommendations needs to be completed using a set of random books from the dataset; this is Algorithm 1 use case 0 < l e n ( b o o k s ) < n R E C .
  • Fully Random Recommendation (FR) corresponds to the case in which the set of books enjoyed by similar users is empty, and the user is recommended a completely random set of n R E C books; this is Algorithm 1 use case l e n ( b o o k s ) = 0 .
The Affective Alignment Rate ( A A R ) shows the proportion of recommendations f ( i n p u t ) identified as recommendations with affective alignment based on the user’s emotional history. A recommendation r x , x { 1 , 2 , , n R E C } is considered to possess affective alignment if the emotional profile of the recommended book matches the emotional profile of the user above a certain similarity threshold τ . The similarity is computed using the cosine similarity (Equation (16)). To improve readability, the Affective Alignment Rate is reported as a percentage (Equation (17)).
A A R = ( B , U , E M - r e v ) T s t R x = 1 n R E C I ( E M U · E M r x | | E M U | | · | | E M r x | | τ ) | T s t R | · n R E C
A A R ( % ) = A A R 100

4.3. Experimental Results

In order to rigorously evaluate the proposed system, we conduct a comprehensive neighborhood size sensitivity analysis and benchmark analysis. We consider the T o p - K similar users K { 1 , 3 , 5 , 7 , 10 } and number of requested recommendations n R E C = 5 .

4.3.1. Coverage

For the coverage evaluation measure, we obtain 100% across all test scenarios. This means that regardless of the dataset used (Dataset i, i { 1 , 2 , 3 , 4 } ) or number of similar users considered ( T o p - K { 1 , 3 , 5 , 7 , 10 } ), all of the books from the dataset were suggested as recommendations at least once across all experimental scenarios. However, it is important to note that this 100% coverage is partly sustained by the system’s fallback mechanism (Algorithm 1, line 13), which introduces stochastic selection when the recommendation candidate pool is sparse.

4.3.2. Randomness Degree Assessment ( R D A )

The R D A statistics (Table 3) reveal a significant performance shift when transitioning from T o p - K = 1 to T o p - K = 3 . At T o p - K = 1 , the system exhibits a high reliance on stochastic recommendation strategies ( R F and F R ), suggesting that a single-neighbor neighborhood is insufficient to populate the requested list of n R E C = 5 recommendations with personalized content. This indicates that a T o p - K = 1 configuration frequently requires the inclusion of non-personalized random items in order to meet the recommendation volume requirement.
Conversely, expanding the neighborhood to T o p - K = 3 results in an increase in G R L and concomitant decline in stochastic fallback ( F R and R F ). This trend persists as T o p - K increases, demonstrating that larger neighborhood sizes provide a broader candidate pool; in this way, the system’s ability to extract personalized neighbor-derived recommendations is enhanced.
The marginal gains in personalized recommendation coverage between T o p - K = 7 and T o p - K = 10 are significantly lower than the initial improvements observed when transitioning from T o p - K = 1 to T o p - K = 3 . While metrics such as GRL percentage continue to exhibit upward trends at higher T o p - K values, larger neighborhood sizes risk introducing noise dilution by incorporating users with weak similar or low affective alignment. Consequently, we identify T o p - K { 3 , 5 } as the most effective parameter range in terms of balancing strong GRL performance with the precision of the candidate set.
Furthermore, we observe that G R L improves as the corpus volume increases. As the underlying book catalog grows across datasets, the system gains access to a more diverse spectrum of neighbor-reviewed items, reducing the system’s dependence on random selection. It is also noteworthy that the G R L % , R F % and F R % rates remain relatively consistent for fixed T o p - K values across experimental datasets. This observation implies that the system’s reliance on stochastic filling is primarily a function of neighborhood sparsity—the degree of overlap in book preferences between users—rather than the absolute size of the catalog.

4.3.3. Affective Alignment Rate

For lower threshold values τ < 0.5 , all recommendations are identified as having affective alignment, as the permissive nature of the threshold admits items with negligible emotional alignment. Consequently, Table 4 reports the A A R results for τ 0.5 . All reported values represent the mean across Monte Carlo cross-validation (ten iterations), including standard deviation, computed across all experimental datasets and varying Top-K neighborhood sizes.
We observe that the results on Datasets 1 and 2 are slightly better than those on Datasets 3 and 4, which is expected considering the nested dataset structure D a t a s e t 1 D a t a s e t 2 D a t a s e t 3 D a t a s e t 4 . This suggests that Datasets 1 and 2 contain a higher density of emotionally distinct reviews, allowing the model to form more precise neighborhood clusters compared to the potentially noisier Datasets 3 and 4.
As τ increases, the A A R values systematically decrease; this is attributed to the increasingly stringent requirements for emotional similarity between the recommended items and the target user’s profile.
Nevertheless, the consistent A A R ( % ) 50 % at high thresholds ( τ 0.9 ) demonstrates the efficacy of the proposed emotional collaborative filtering approach in providing recommendations that are highly aligned with the user’s emotional profile.
Regarding the neighborhood size T o p - K , the results indicate that T o p - K = 1 consistently produces the lowest A A R . This is expected because the system’s reliance on a single most similar user limits the candidate pool, frequently forcing the inclusion of non-affective aligned items. The same phenomenon is further evidenced by the R D A results. Conversely, increasing T o p - K expands the candidate set, facilitating more robust aggregation of preferences from a wider spectrum of similar users, thereby increasing the probability of identifying items with greater affective alignment.
Notably, at high thresholds ( τ 0.9 ), the A A R values across all neighborhood sizes ( T o p - K { 1 , 3 , 5 , 7 , 10 } ) plateau within overlapping standard deviations across all datasets. This indicates that affective recommendation alignment is robust to neighborhood size under strict emotional constraints.
In order to better visualize the trade-offs across neighborhood sizes and threshold levels, we plot the average A A R scores alongside their standard deviation intervals in Figure 1, Figure 2 and Figure 3 (corresponding to τ { 0.7 , 0.8 , 0.9 } ). As illustrated by the prominent green trajectory, our empirical evaluation reveals that T o p - K = 3 achieves the highest A A R score most frequently across the datasets and τ thresholds, closely followed by T o p - K = 5 . Consequently, we identify T o p - K = 3 as an effective neighborhood parameter that maintains stable performance levels while operating within a narrow and high-fidelity user cluster. This configuration provides sufficient information for targeted recommendations without expanding into larger neighborhood sizes that risk noise dilution. These visual and numerical findings reveal that a narrow T o p - K = 3 neighborhood maintains greater affective recommendation alignment, as restricting aggregation to the three most similar users minimizes the noise and dilution of affective alignment that is associated with broader neighborhoods.

4.3.4. Statistical Analysis

To rigorously evaluate the trade-offs across neighborhood sizes, we conduct two-sided paired significance tests comparing the baseline T o p - K = 3 configuration against alternative configurations ( T o p - K { 1 , 5 , 7 , 10 } ) across all datasets, iterations, and similarity thresholds ( τ ), with the results shown in Table 5. The N A values indicate configurations in which both T o p - K = 3 and alternative configurations achieved 100% Affective Alignment Rate across all iterations, resulting in an undefined paired test.
For each pairwise test, the null hypothesis ( H 0 ) states that there is no difference in mean performance between T o p - K = 3 and alternative configurations ( H 0 : μ o p - K = 3 μ T o p - K = 0 ), while the alternative hypothesis ( H 1 ) states that a significant difference exists ( H 1 : μ o p - K = 3 μ T o p - K 0 ). The unit of analysis is the mean Affective Alignment Rate score per iteration. To satisfy the paired-sample requirement, the exact same N = 10 Monte Carlo cross-validation data partitions were evaluated across all T o p - K configurations. Approximate normality of the paired differences ( Δ = X T o p - K = 3 X T o p - K ) was confirmed using Shapiro–Wilk tests ( α = 0.05 ). To control the family-wise error rates, p-values were adjusted using the Holm–Bonferroni procedure applied independently within each experimental dataset ( p adj ). The reported 95% confidence intervals are unadjusted for multiple testing in order to reflect sample-level precision. All statistical tests, multiple testing corrections, 95 % confidence intervals, and effect size calculations were executed in Python (v3.12.13) using scipy.stats (v1.16.3) and statsmodels (v0.14.6).
As illustrated by the performance trends and confirmed by our statistical analysis, T o p - K = 3 frequently establishes itself as a competitive parameter. Specifically, at stricter thresholds ( τ 0.8 and 0.9 ), pairwise comparisons confirm that T o p - K = 3 yields statistically significant improvements ( p < 0.05 , highlighted in green in Table 5), especially on larger size datasets. While certain configurations show statistically indistinguishable performance ( p 0.05 , shown in red), T o p - K = 3 is consistently shown to be an effective parameter at the highest thresholds τ .

4.3.5. Comparative Analysis Against Non-Emotional Baselines

To evaluate whether emotional representations enhance affective alignment compared to non-emotional recommendation mechanisms, we benchmark the T o p - K = 3 affective model against three non-emotional baselines:
  • Popularity-based recommendation: Selects globally popular items regardless of affective user history.
  • Random recommendation: Uniformly selects items across the item space.
  • Genre-based recommendation: Leverages non-emotional structural item metadata (genres).
All models were evaluated across the experimental datasets and affective strictness thresholds ( τ { 0.5 , 0.6 , 0.7 , 0.8 , 0.9 } ) using Affective Alignment Rate ( A A R ) as the evaluation measure. Table 6 and Table 7 report the A A R values and statistical pairwise comparisons using paired t-tests with Holm–Bonferroni correction ( N = 10 Monte Carlo iterations).
T o p - K = 3 demonstrates statistically significant superiority ( p adj < 0.001 ) over the Random baseline across nearly all thresholds and datasets, reaching performance gains up to Δ = + 8.356 at τ = 0.9 . When compared against the Popularity baseline, T o p - K = 3 yields affective alignment gains at stricter thresholds ( τ 0.7 ), outperforming Popularity by up to Δ = + 23.588 on Dataset 1 ( p adj < 0.001 ). At lower strictness thresholds ( τ 0.6 ), Popularity achieves slight superiority, reflecting that broadly popular items cover wide emotional baselines when affective constraints are loose.
While the naive non-emotional baselines (Random and Popularity) drop sharply in A A R as τ increases, T o p - K = 3 maintains significantly higher A A R scores at medium-to-high strictness levels ( τ 0.7 ). This proves that explicit emotional modeling does not merely filter items to satisfy affective criteria arbitrarily; rather, it identifies items that have both affective alignment and relevance to the user.
Comparison against the Genre baseline reveals a nuanced trade-off: while T o p - K = 3 reliably outpaces the naive heuristics, the non-emotional Genre baseline achieves higher raw alignment scores across all configurations ( Δ < 0 , p adj < 0.001 ). This indicates that coarse metadata categories (book genres) naturally encode implicit affective clusters, serving as a highly competitive non-emotional proxy.

4.3.6. Comparative Analysis Against Prior Work

We further compare the proposed collaborative filtering system against prior work [11], utilizing the exact same dataset to evaluate the trade-offs between content-based and collaborative filtering in terms of catalog coverage. In addition, a comparison using Dataset 3 and the collaborative filtering technique considers both single-source Goodreads reviews (SS) and multi-source Goodreads and Amazon reviews (MS) [12].
The evaluation of catalog coverage against [11] reveals a distinct divergence between the two paradigms as the dataset size increases. While the content-based approach exhibits a clear decay in coverage, dropping from 95% to 84% as the dataset size increases, the collaborative filtering algorithm maintains robust 100% coverage across all test tiers. However, this high coverage is partly sustained by the algorithm’s fallback mechanism, which introduces randomized item selection to handle sparse recommendation pools. Consequently, while content-based filtering becomes progressively constrained to a concentrated subset of items, the collaborative filtering results should be interpreted with consideration of this fallback behavior.
Next, to assess the structural behavior and exploration capabilities of our algorithm, we compare its Randomness-Degree Assessment against prior benchmarks established in [12].
A comparison of our current findings with the results presented in [12] demonstrates an improvement in the system’s ability to generate personalized recommendations. While [12] reported that multi-source reviews achieved a G R L of 81 % , with stochastic fallback rates of 5 % ( R F ) and 14 % ( F R ), respectively, our current model presents higher affective alignment scores under larger neighborhood size configurations. Specifically, by increasing the neighborhood size to T o p - K = 10 , we observe an increase in G R L to 84 % , accompanied by a reduction in stochastic fallback to 3 % for R F and 13 % for F R . These results suggest that optimizing the neighborhood size ( T o p - K ) effectively leverages the available data to enhance personalized recommendations beyond the limits identified in previous work.

5. Conclusions

In this contribution, we present an emotion-aware collaborative filtering framework designed to capture the latent affective dimensions of reading by extracting emotional embedding spaces from social media reviews. Unlike traditional metadata models, in this system the similarity between users is computed exclusively based on the emotions they share with respect to the same book(s). To validate the proposed framework, we conduct a neighborhood size sensitivity analysis alongside extensive evaluations across four book datasets of varying sizes collected from the Goodreads website.
With respect to RQ1, our systematic evaluations demonstrate that recommendation affective alignment varies dynamically and predictably with neighborhood size ( T o p - K { 1 , 3 , 5 , 7 , 10 } ) when relying solely on affective embeddings. The results confirm that calculating user similarity from emotional text data provides a structurally sound signal for collaborative filtering pipelines.
For RQ2, our neighborhood size sensitivity analysis identifies T o p - K = 3 as an effective neighborhood parameter. This tightly constrained cluster size successfully balances acquisition of candidate users with affective alignment against mitigation of the semantic noise introduced by larger neighborhoods with lower affective alignment.
Finally, for RQ3, the evaluation demonstrates that the framework maintains high affective recommendation alignment even under stringent emotional similarity thresholds ( τ ). At high thresholds ( τ 0.9 ), the Affective Alignment Rate values across all neighborhood sizes ( T o p - K { 1 , 3 , 5 , 7 , 10 } ) plateau within overlapping standard deviations across experimental datasets. Notably, T o p - K = 3 achieves the highest A A R score most frequently across datasets and τ levels, closely followed by T o p - K = 5 . This identifies T o p - K = 3 as an effective neighborhood parameter that maintains stable performance levels while operating within a narrow high-fidelity user cluster. Moreover, when comparing the results with former experiments utilizing multi-source reviews, we observe an increase in personalized recommendations ( G R L ) from the previously reported 81 % to 84 % , alongside a decrease in stochastic fallback rates. This indicates that these neighborhood dimensions can effectively leverage data depth even beneath strict thresholds.
While the proposed framework demonstrates robust stability and adaptability under stringent threshold constraints, several pathways remain for future exploration. Moving forward, we intend to expand our experimental studies to evaluate the system’s sensitivity across different recommendation list lengths ( n R E C ). Additionally, we plan to broaden our evaluation framework to measure further metrics, specifically focusing on how neighborhood adjustments affect the diversity and novelty of the recommended items.

Author Contributions

Conceptualization, E.-R.L. and C.B.; methodology, E.-R.L.; software, E.-R.L.; validation, E.-R.L. and C.B.; formal analysis, E.-R.L. and C.B.; investigation, E.-R.L.; resources, E.-R.L.; data curation, E.-R.L.; writing—original draft preparation, E.-R.L.; writing—review and editing, E.-R.L. and C.B.; visualization, E.-R.L.; supervision, C.B.; project administration, E.-R.L. and C.B.; funding acquisition, C.B. All authors have read and agreed to the published version of the manuscript.

Funding

This work was (partially) supported by RExQTCS: Romanian Excellence Quantum Technologies enhancing Cybersecurity, a grant of the Ministry of Education and Research, CCCDI–UEFISCDI, project number PN-IV-P6-6.1-CoEx-2024-0214, within PNCDI IV.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data presented in this study are available on request from the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Hossein Arabi, V.B.; Shuib, N.L.M. A Context-Aware Personalized Hybrid Book Recommender System. J. Web Eng. 2020, 19, 405–428. [Google Scholar] [CrossRef] [Scilit]
  2. Alatrash, R.; Priyadarshini, R. Fine-grained Sentiment-enhanced Collaborative Filtering-based Hybrid Recommender System. J. Web Eng. 2023, 22, 983–1036. [Google Scholar] [CrossRef] [Scilit]
  3. Tamada, T.; Saga, R. Book Recommender System Using CNN Capturing Feature of Synopses and Reviews. In Proceedings of the HCI International 2022–Late Breaking Papers: Interacting with eXtended Reality and Artificial Intelligence; Chen, J.Y.C., Fragomeni, G., Degen, H., Ntoa, S., Eds.; Springer: Cham, Switzerland, 2022; pp. 518–530. [Google Scholar] [CrossRef] [Scilit]
  4. Qian, Y.; Zhang, Y.; Ma, X.; Yu, H.; Peng, L. EARS: Emotion-aware recommender system based on hybrid information fusion. Inf. Fusion 2019, 46, 141–146. [Google Scholar] [CrossRef] [Scilit]
  5. Devlin, J.; Chang, M.W.; Lee, K.; Toutanova, K. BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers); ACL: Stroudsburg, PA, USA, 2019; pp. 4171–4186. [Google Scholar] [CrossRef] [Scilit]
  6. Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, Ł.; Polosukhin, I. Attention is All you Need. In Proceedings of the NIPS’17: Proceedings of the 31st International Conference on Neural Information Processing Systems; Curran Associates, Inc.: Red Hook, NY, USA, 2017; pp. 6000–6010. [Google Scholar]
  7. Ai, J.; Cai, Y.; Su, Z.; Peng, D.; Zhao, F. Measuring similarity based on user activeness in recommender systems to improve algorithm scalability. Eng. Appl. Artif. Intell. 2023, 126, 106842. [Google Scholar] [CrossRef] [Scilit]
  8. Dokoupil, P.; Peska, L. The Effect of Similarity Metric and Group Size on Outlier Selection & Satisfaction in Group Recommender Systems. In Proceedings of the Adjunct Proceedings of the 31st ACM Conference on User Modeling, Adaptation and Personalization; ACM: New York, NY, USA, 2023; pp. 296–301. [Google Scholar] [CrossRef] [Scilit]
  9. Kim, T.Y.; Ko, H.; Kim, S.H.; Kim, H.D. Modeling of Recommendation System Based on Emotional Information and Collaborative Filtering. Sensors 2021, 21, 1997. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  10. Kweon, W.; Kang, S.; Jang, S.; Yu, H. Top-Personalized-K Recommendation. In Proceedings of the ACM Web Conference 2024; ACM: New York, NY, USA, 2024; pp. 3388–3399. [Google Scholar] [CrossRef] [Scilit]
  11. Luțan, E.R.; Bădică, C. Systematic Features Selection in Content-Based Filtering Books Recommender System. In Proceedings of the 2025 IEEE International Conference on Systems, Man, and Cybernetics (SMC); IEEE: Piscataway, NJ, USA, 2025; pp. 6708–6713. [Google Scholar] [CrossRef] [Scilit]
  12. Luţan, E.R.; Bădică, C. Literature Books Recommender System using Collaborative Filtering and Multi-Source Reviews. In Proceedings of the 19th Conference on Computer Science and Intelligence Systems FedCSIS 2024; Polish Information Processing Society: Warsaw, Poland, 2024; pp. 225–230. [Google Scholar] [CrossRef] [Scilit]
  13. Karabila, I.; Darraz, N.; El-Ansari, A.; Alami, N.; El Mallahi, M. Enhancing Collaborative Filtering-Based Recommender System Using Sentiment Analysis. Future Internet 2023, 15, 235. [Google Scholar] [CrossRef] [Scilit]
  14. Sun, Y.; Liu, Q. Collaborative filtering recommendation based on K-nearest neighbor and non-negative matrix factorization algorithm. J. Supercomput. 2024, 81, 79. [Google Scholar] [CrossRef] [Scilit]
  15. Liu, D.; Yang, C.; Tang, X.; Wang, Y.; Lyu, F.; Luo, W.; He, X.; Ming, Z.; Zhao, X. MultiFS: Automated Multi-Scenario Feature Selection in Deep Recommender Systems. In Proceedings of the 17th ACM International Conference on Web Search and Data Mining; ACM: New York, NY, USA, 2024; pp. 434–442. [Google Scholar] [CrossRef] [Scilit]
  16. Yan, T.; Cao, L.; Chai, P.; Yu, S. Improving collaborative filtering with SNE–GCN: A second-order neighbor enhanced graph convolutional network. Multimed. Syst. 2024, 30, 160. [Google Scholar] [CrossRef] [Scilit]
  17. Koohi, H.; Kiani, K. A new method to find neighbor users that improves the performance of Collaborative Filtering. Expert Syst. Appl. 2017, 83, 30–39. [Google Scholar] [CrossRef] [Scilit]
  18. Subramaniyaswamy, V.; Logesh, R. Adaptive KNN based Recommender System through Mining of User Preferences. Wirel. Pers. Commun. 2017, 97, 2229–2247. [Google Scholar] [CrossRef] [Scilit]
  19. Airen, S.; Agrawal, J. Movie Recommender System Using K-Nearest Neighbors Variants. Natl. Acad. Sci. Lett. 2022, 45, 75–82. [Google Scholar] [CrossRef] [Scilit]
  20. Kim, M.J.; Cho, Y. Imputation of missing values in well log data using k-nearest neighbor collaborative filtering. Comput. Geosci. 2024, 193, 105712. [Google Scholar] [CrossRef] [Scilit]
  21. DeRose, S.J. The Compass DeRose Guide to Emotion Words. 2005. Available online: http://www.derose.net/derose/steve/resources/emotionwords/ewords.html (accessed on 10 June 2026).
  22. Citron, F.M.M.; Weekes, B.S.; Ferstl, E.C. How are affective word ratings related to lexicosemantic properties? Evidence from the Sussex Affective Word List. Appl. Psycholinguist. 2014, 35, 313–331. [Google Scholar] [CrossRef] [Scilit]
  23. Årup Nielsen, F. A New ANEW: Evaluation of a Word List for Sentiment Analysis in Microblogs. In Proceedings of the ESWC2011 Workshop on ‘Making Sense of Microposts’: Big Things Come in Small Packages; Cornell University: Ithaca, NY, USA, 2011; pp. 93–98. [Google Scholar]
Figure 1. Comparison of Affective Alignment Rate ( A A R ) across datasets for τ 0.7 . The highlighted green trajectory represents T o p - K = 3 , illustrating performance relative to the considered T o p - K configurations.
Figure 1. Comparison of Affective Alignment Rate ( A A R ) across datasets for τ 0.7 . The highlighted green trajectory represents T o p - K = 3 , illustrating performance relative to the considered T o p - K configurations.
Electronics 15 03710 g001
Figure 2. Comparison of Affective Alignment Rate ( A A R ) across datasets for τ 0.8 . The highlighted green trajectory represents the effective neighborhood parameter T o p - K = 3 .
Figure 2. Comparison of Affective Alignment Rate ( A A R ) across datasets for τ 0.8 . The highlighted green trajectory represents the effective neighborhood parameter T o p - K = 3 .
Electronics 15 03710 g002
Figure 3. Comparison of Affective Alignment Rate ( A A R ) across datasets for τ 0.9 . The highlighted green trajectory represents the effective neighborhood parameter T o p - K = 3 .
Figure 3. Comparison of Affective Alignment Rate ( A A R ) across datasets for τ 0.9 . The highlighted green trajectory represents the effective neighborhood parameter T o p - K = 3 .
Electronics 15 03710 g003
Table 1. Review dataset statistics (average values per ten iterations ± standard deviation).
Table 1. Review dataset statistics (average values per ten iterations ± standard deviation).
DatasetTotalTrainingTesting
Dataset 113,95711,149 ± 42808 ± 4
Dataset 270,40156,223 ± 714,178 ± 7
Dataset 3129,713103,593 ± 5626,119 ± 56
Dataset 4245,015195,637.9 ± 5549,377 ± 55
Table 2. User type statistics (average values per ten iterations ± standard deviation).
Table 2. User type statistics (average values per ten iterations ± standard deviation).
DatasetReg. UserNew UserReg. User%New User%
Dataset 12133 ± 17675 ± 1876 ± 0.624 ± 0.6
Dataset 211,119 ± 283060 ± 3078 ± 0.122 ± 0.2
Dataset 320,700 ± 725419 ± 3379 ± 0.221 ± 0.1
Dataset 438,943 ± 6510,434 ± 42 78 ± 0.121 ± 0.1
Table 3. Randomness Degree Assessment ( R D A ) statistics (average values per ten iterations ± standard deviation).
Table 3. Randomness Degree Assessment ( R D A ) statistics (average values per ten iterations ± standard deviation).
DatasetKGRLGRL%RFRF%FRFR%
Dataset 11982 ± 2935 ± 1.0832 ± 2330 ± 0.8995 ± 2035 ± 0.7
31979 ± 2770 ± 1.0400 ± 2314 ± 0.8430 ± 1315 ± 0.4
52266 ± 1681 ± 0.6178 ± 116 ± 0.4364 ± 1113 ± 0.4
72349 ± 1284 ± 0.4106 ± 54 ± 0.2354 ± 1113 ± 0.4
102384 ± 1285 ± 0.476 ± 73 ± 0.3349 ± 1112 ± 0.4
Dataset 216507 ± 3646 ± 0.33018 ± 5621 ± 0.44653 ± 6033 ± 0.4
310,645 ± 3875 ± 0.31252 ± 219 ± 0.12281 ± 5216 ± 0.4
511,516 ± 5281 ± 0.4693 ± 275 ± 0.21969 ± 5714 ± 0.4
711,783 ± 5283 ± 0.4517 ± 174 ± 0.11878 ± 5013 ± 0.3
1011,929 ± 4884 ± 0.4422 ± 133 ± 0.11827 ± 4513 ± 0.3
Dataset 3113,031 ± 8050 ± 0.34740 ± 9118 ± 0.38348 ± 7132 ± 0.3
319,907 ± 8376 ± 0.21993 ± 538 ± 0.24220 ± 6316 ± 0.2
521,254 ± 7980 ± 0.21185 ± 345 ± 0.13681 ± 6415 ± 0.3
721,696 ± 7183 ± 0.2909 ± 293 ± 0.13515 ± 5514 ± 0.2
1021,941 ± 7184 ± 0.2738 ± 273 ± 0.13440 ± 5213 ± 0.2
Dataset 4125,361 ± 9651 ± 0.28084 ± 6916 ± 0.115,932 ± 10532 ± 0.2
337,100 ± 8475 ± 0.13742 ± 638 ± 0.18535 ± 3817 ± 0.1
539,501 ± 8280 ± 0.12453 ± 435 ± 0.17423 ± 4115 ± 0.1
740,393 ± 8182 ± 0.11923 ± 374 ± 0.17061 ± 2914 ± 0.1
1040,905 ± 7783 ± 0.11590 ± 273 ± 0.16883 ± 2414 ± 0.1
Table 4. Affective Alignment Rate ( A A R ) statistics (%) (average values per ten iterations ± standard deviation), showing comparisons between T o p - K configurations across datasets and τ thresholds. The bold values indicate the top performance achieved by our setting ( T o p - K = 3 ) across different T o p - K configurations.
Table 4. Affective Alignment Rate ( A A R ) statistics (%) (average values per ten iterations ± standard deviation), showing comparisons between T o p - K configurations across datasets and τ thresholds. The bold values indicate the top performance achieved by our setting ( T o p - K = 3 ) across different T o p - K configurations.
DatasetK τ 0.5 τ 0.6 τ 0.7 τ 0.8 τ 0.9
Dataset 11100.0 ± 0.099.9 ± 0.097.9 ± 0.288.1 ± 0.255.7 ± 0.5
3100.0 ± 0.099.9 ± 0.097.9 ± 0.188.3 ± 0.356.2 ± 0.5
5100.0 ± 0.099.9 ± 0.098.0 ± 0.188.2 ± 0.355.9 ± 0.5
7100.0 ± 0.099.9 ± 0.098.0 ± 0.288.3 ± 0.455.8 ± 0.4
10100.0 ± 0.099.8 ± 0.198.0 ± 0.288.1 ± 0.456.0 ± 0.5
Dataset 21100.0 ± 0.099.6 ± 0.097.8 ± 0.188.1 ± 0.252.6 ± 0.2
3100.0 ± 0.099.7 ± 0.097.8 ± 0.188.4 ± 0.153.4 ± 0.2
5100.0 ± 0.099.7 ± 0.097.8 ± 0.088.4 ± 0.153.3 ± 0.2
7100.0 ± 0.099.7 ± 0.097.8 ± 0.088.3 ± 0.253.1 ± 0.2
10100.0 ± 0.099.7 ± 0.097.8 ± 0.188.2 ± 0.252.8 ± 0.2
Dataset 3199.9 ± 0.099.2 ± 0.096.6 ± 0.186.0 ± 0.151.1 ± 0.2
399.9 ± 0.099.2 ± 0.096.8 ± 0.186.7 ± 0.252.2 ± 0.2
599.9 ± 0.099.2 ± 0.096.8 ± 0.186.6 ± 0.152.0 ± 0.2
799.9 ± 0.099.2 ± 0.096.8 ± 0.186.5 ± 0.151.8 ± 0.2
1099.9 ± 0.099.2 ± 0.096.8 ± 0.186.5 ± 0.151.6 ± 0.2
Dataset 4199.8 ± 0.099.0 ± 0.096.1 ± 0.084.9 ± 0.149.0 ± 0.1
399.8 ± 0.099.1 ± 0.096.4 ± 0.085.8 ± 0.150.5 ± 0.1
599.8 ± 0.099.1 ± 0.096.4 ± 0.085.8 ± 0.150.4 ± 0.2
799.8 ± 0.099.1 ± 0.096.4 ± 0.185.8 ± 0.150.3 ± 0.1
1099.8 ± 0.099.1 ± 0.096.4 ± 0.185.7 ± 0.150.0 ± 0.1
Table 5. Pairwise statistical comparisons between baseline T o p - K = 3 and alternative T o p - K { 1 , 5 , 7 , 10 } configurations across datasets and τ thresholds. Each cell displays the mean difference ( Δ = X ¯ T o p - K = 3 X ¯ T o p - K ), unadjusted 95 % confidence interval [ CI lower , CI upper ] , and Holm–Bonferroni adjusted p-value ( p adj ) from paired t-tests (Monte Carlo cross-validation N = 10 iterations). p-value corrections are calculated independently per dataset. Cells highlighted in green indicate statistical significance ( p adj < 0.05 ), while orange indicates moderate significance statistical significance ( 0.05 p adj < 0.10 ) and red indicates non-significance ( p adj 0.10 ). A positive Δ indicates that baseline T o p - K = 3 achieved higher affective alignment than the comparison configuration. N A indicates configurations with perfect scores (100% Affective Alignment Rate) across all iterations, making paired testing uncomputable.
Table 5. Pairwise statistical comparisons between baseline T o p - K = 3 and alternative T o p - K { 1 , 5 , 7 , 10 } configurations across datasets and τ thresholds. Each cell displays the mean difference ( Δ = X ¯ T o p - K = 3 X ¯ T o p - K ), unadjusted 95 % confidence interval [ CI lower , CI upper ] , and Holm–Bonferroni adjusted p-value ( p adj ) from paired t-tests (Monte Carlo cross-validation N = 10 iterations). p-value corrections are calculated independently per dataset. Cells highlighted in green indicate statistical significance ( p adj < 0.05 ), while orange indicates moderate significance statistical significance ( 0.05 p adj < 0.10 ) and red indicates non-significance ( p adj 0.10 ). A positive Δ indicates that baseline T o p - K = 3 achieved higher affective alignment than the comparison configuration. N A indicates configurations with perfect scores (100% Affective Alignment Rate) across all iterations, making paired testing uncomputable.
DatasetK τ = 0.5 τ = 0.6 τ = 0.7 τ = 0.8 τ = 0.9
Dataset 11 N A 0.005
[ 0.027 , 0.018 ]
( p adj = 1.000 )
0.020
[ 0.162 , 0.122 ]
( p adj = 1.000 )
+ 0.256
[ 0.023 , 0.489 ]
( p adj = 0.485 )
+ 0.499
[ 0.135 , 0.862 ]
( p adj = 0.203 )
5 N A 0.006
[ 0.046 , 0.034 ]
( p adj = 1.000 )
0.036
[ 0.150 , 0.079 ]
( p adj = 1.000 )
+ 0.102
[ 0.174 , 0.378 ]
( p adj = 1.000 )
+ 0.326
[ 0.082 , 0.570 ]
( p adj = 0.215 )
7 N A 0.011
[ 0.049 , 0.028 ]
( p adj = 1.000 )
0.057
[ 0.181 , 0.067 ]
( p adj = 1.000 )
+ 0.053
[ 0.267 , 0.373 ]
( p adj = 1.000 )
+ 0.402
[ 0.010 , 0.795 ]
( p adj = 0.553 )
10 N A + 0.030
[ 0.014 , 0.074 ]
( p adj = 1.000 )
0.089
[ 0.174 , 0.004 ]
( p adj = 0.553 )
+ 0.236
[ 0.149 , 0.620 ]
( p adj = 1.000 )
+ 0.180
[ 0.067 , 0.428 ]
( p adj = 1.000 )
Dataset 21 0.004
[ 0.010 , 0.003 ]
( p adj = 1.000 )
+ 0.015
[ 0.008 , 0.038 ]
( p adj = 1.000 )
+ 0.078
[ 0.002 , 0.153 ]
( p adj = 0.627 )
+ 0.343
[ 0.192 , 0.493 ]
( p adj = 0.010 )
+ 0.878
[ 0.731 , 1.025 ]
( p adj < 0.001 )
5 0.006
[ 0.013 , 0.000 ]
( p adj = 0.634 )
0.018
[ 0.035 , 0.002 ]
( p adj = 0.524 )
+ 0.023
[ 0.033 , 0.079 ]
( p adj = 1.000 )
+ 0.008
[ 0.137 , 0.152 ]
( p adj = 1.000 )
+ 0.101
[ 0.076 , 0.277 ]
( p adj = 1.000 )
7 0.008
[ 0.015 , 0.000 ]
( p adj = 0.634 )
0.005
[ 0.029 , 0.020 ]
( p adj = 1.000 )
0.003
[ 0.070 , 0.064 ]
( p adj = 1.000 )
+ 0.127
[ 0.044 , 0.299 ]
( p adj = 1.000 )
+ 0.303
[ 0.175 , 0.430 ]
( p adj = 0.008 )
10 0.003
[ 0.011 , 0.004 ]
( p adj = 1.000 )
0.008
[ 0.029 , 0.014 ]
( p adj = 1.000 )
+ 0.019
[ 0.026 , 0.064 ]
( p adj = 1.000 )
+ 0.179
[ 0.052 , 0.305 ]
( p adj = 0.173 )
+ 0.631
[ 0.533 , 0.729 ]
( p adj < 0.001 )
Dataset 31 + 0.019
[ 0.009 , 0.030 ]
( p adj = 0.038 )
+ 0.051
[ 0.029 , 0.072 ]
( p adj = 0.006 )
+ 0.228
[ 0.169 , 0.287 ]
( p adj < 0.001 )
+ 0.681
[ 0.534 , 0.828 ]
( p adj < 0.001 )
+ 1.142
[ 1.016 , 1.268 ]
( p adj < 0.001 )
5 0.004
[ 0.016 , 0.008 ]
( p adj = 1.000 )
0.026
[ 0.062 , 0.010 ]
( p adj = 1.000 )
+ 0.021
[ 0.026 , 0.069 ]
( p adj = 1.000 )
+ 0.083
[ 0.070 , 0.236 ]
( p adj = 1.000 )
+ 0.268
[ 0.098 , 0.438 ]
( p adj = 0.067 )
7 0.004
[ 0.016 , 0.008 ]
( p adj = 1.000 )
+ 0.002
[ 0.023 , 0.028 ]
( p adj = 1.000 )
+ 0.021
[ 0.046 , 0.089 ]
( p adj = 1.000 )
+ 0.174
[ 0.054 , 0.295 ]
( p adj = 0.095 )
+ 0.414
[ 0.301 , 0.527 ]
( p adj < 0.001 )
10 0.009
[ 0.014 , 0.005 ]
( p adj = 0.015 )
0.005
[ 0.033 , 0.023 ]
( p adj = 1.000 )
+ 0.018
[ 0.050 , 0.087 ]
( p adj = 1.000 )
+ 0.195
[ 0.074 , 0.316 ]
( p adj = 0.063 )
+ 0.654
[ 0.532 , 0.777 ]
( p adj < 0.001 )
Dataset 41 + 0.016
[ 0.004 , 0.029 ]
( p adj = 0.230 )
+ 0.067
[ 0.043 , 0.090 ]
( p adj = 0.002 )
+ 0.284
[ 0.254 , 0.313 ]
( p adj < 0.001 )
+ 0.891
[ 0.806 , 0.975 ]
( p adj < 0.001 )
+ 1.445
[ 1.314 , 1.576 ]
( p adj < 0.001 )
5 0.009
[ 0.020 , 0.002 ]
( p adj = 0.789 )
0.010
[ 0.034 , 0.015 ]
( p adj = 1.000 )
0.031
[ 0.063 , 0.000 ]
( p adj = 0.530 )
+ 0.000
[ 0.045 , 0.046 ]
( p adj = 1.000 )
+ 0.081
[ 0.057 , 0.219 ]
( p adj = 1.000 )
7 0.011
[ 0.025 , 0.003 ]
( p adj = 0.789 )
0.018
[ 0.044 , 0.008 ]
( p adj = 0.945 )
0.049
[ 0.091 , 0.008 ]
( p adj = 0.313 )
0.023
[ 0.085 , 0.039 ]
( p adj = 1.000 )
+ 0.136
[ 0.004 , 0.268 ]
( p adj = 0.489 )
10 0.017
[ 0.027 , 0.006 ]
( p adj = 0.091 )
0.017
[ 0.034 , 0.001 ]
( p adj = 0.558 )
0.007
[ 0.046 , 0.033 ]
( p adj = 1.000 )
+ 0.119
[ 0.012 , 0.226 ]
( p adj = 0.401 )
+ 0.464
[ 0.313 , 0.615 ]
( p adj = 0.001 )
Table 6. Comparisons of Affective Alignment Rate  A A R (%) (average values per ten iterations ± standard deviation) between T o p - K = 3 and baselines (Popularity, Random, and Genre) across datasets and τ thresholds.
Table 6. Comparisons of Affective Alignment Rate  A A R (%) (average values per ten iterations ± standard deviation) between T o p - K = 3 and baselines (Popularity, Random, and Genre) across datasets and τ thresholds.
DatasetMethod τ 0.5 τ 0.6 τ 0.7 τ 0.8 τ 0.9
Dataset 1 T o p - K = 3 100.0 ± 0.099.9 ± 0.097.9 ± 0.188.3 ± 0.356.2 ± 0.5
Popularity100.0 ± 0.099.6 ± 0.096.0 ± 0.071.5 ± 0.032.6 ± 0.0
Random100.0 ± 0.099.9 ± 0.097.9 ± 0.187.4 ± 0.254.2 ± 0.3
Genres100.0 ± 0.0100.0 ± 0.099.4 ± 0.091.8 ± 0.271.1 ± 0.2
Dataset 2 T o p - K = 3 100.0 ± 0.099.7 ± 0.097.8 ± 0.188.4 ± 0.153.4 ± 0.2
Popularity100.0 ± 0.099.7 ± 0.097.6 ± 0.087.2 ± 0.050.3 ± 0.0
Random100.0 ± 0.099.6 ± 0.097.3 ± 0.186.1 ± 0.147.8 ± 0.2
Genres100.0 ± 0.099.9 ± 0.099.0 ± 0.093.8 ± 0.170.1 ± 0.2
Dataset 3 T o p - K = 3 99.9 ± 0.099.2 ± 0.096.8 ± 0.186.7 ± 0.252.2 ± 0.2
Popularity100.0 ± 0.099.5 ± 0.097.5 ± 0.086.9 ± 0.044.4 ± 0.0
Random99.8 ± 0.099.0 ± 0.095.7 ± 0.183.3 ± 0.145.6 ± 0.2
Genres100.0 ± 0.099.7 ± 0.098.1 ± 0.191.3 ± 0.166.3 ± 0.1
Dataset 4 T o p - K = 3 99.8 ± 0.099.1 ± 0.096.4 ± 0.085.8 ± 0.150.5 ± 0.1
Popularity99.9 ± 0.099.3 ± 0.096.2 ± 0.075.0 ± 0.032.9 ± 0.0
Random99.8 ± 0.098.8 ± 0.095.0 ± 0.081.3 ± 0.142.1 ± 0.1
Genres100.0 ± 0.099.7 ± 0.098.3 ± 0.091.8 ± 0.167.1 ± 0.1
Table 7. Pairwise statistical comparisons between T o p - K = 3 and baselines (Popularity, Random, and Genre) across datasets and τ thresholds. Each cell displays the mean difference ( Δ = X ¯ T o p - K = 3 X ¯ b a s e l i n e ), 95 % confidence interval [ CI lower , CI upper ] , and Holm–Bonferroni adjusted p-value ( p adj ) from paired t-tests (Monte Carlo cross-validation N = 10 iterations). Cells highlighted in green indicate that T o p - K = 3 performed significantly better ( Δ > 0 , p adj < 0.05 ), red indicates that T o p - K = 3 performed significantly worse ( Δ < 0 , p adj < 0.05 ), and gray indicates no statistically significant difference ( p adj 0.05 ). N A indicates configurations with perfect scores across all iterations, making paired testing uncomputable.
Table 7. Pairwise statistical comparisons between T o p - K = 3 and baselines (Popularity, Random, and Genre) across datasets and τ thresholds. Each cell displays the mean difference ( Δ = X ¯ T o p - K = 3 X ¯ b a s e l i n e ), 95 % confidence interval [ CI lower , CI upper ] , and Holm–Bonferroni adjusted p-value ( p adj ) from paired t-tests (Monte Carlo cross-validation N = 10 iterations). Cells highlighted in green indicate that T o p - K = 3 performed significantly better ( Δ > 0 , p adj < 0.05 ), red indicates that T o p - K = 3 performed significantly worse ( Δ < 0 , p adj < 0.05 ), and gray indicates no statistically significant difference ( p adj 0.05 ). N A indicates configurations with perfect scores across all iterations, making paired testing uncomputable.
DatasetMethod τ = 0.5 τ = 0.6 τ = 0.7 τ = 0.8 τ = 0.9
Dataset 1Popularity N A + 0.224
[ 0.195 , 0.252 ]
( p adj < 0.001 )
+ 1.898
[ 1.801 , 1.996 ]
( p adj < 0.001 )
+ 16.790
[ 16.574 , 17.007 ]
( p adj < 0.001 )
+ 23.588
[ 23.227 , 23.949 ]
( p adj < 0.001 )
Random N A 0.017
[ 0.057 , 0.023 ]
( p adj = 0.735 )
0.003
[ 0.143 , 0.137 ]
( p adj = 0.962 )
+ 0.908
[ 0.619 , 1.197 ]
( p adj < 0.001 )
+ 2.051
[ 1.636 , 2.466 ]
( p adj < 0.001 )
Genres N A 0.136
[ 0.166 , 0.105 ]
( p adj < 0.001 )
1.482
[ 1.581 , 1.383 ]
( p adj < 0.001 )
3.521
[ 3.712 , 3.330 ]
( p adj < 0.001 )
14.916
[ 15.312 , 14.521 ]
( p adj < 0.001 )
Dataset 2Popularity 0.021
[ 0.025 , 0.016 ]
( p adj < 0.001 )
0.084
[ 0.101 , 0.068 ]
( p adj < 0.001 )
+ 0.221
[ 0.172 , 0.270 ]
( p adj < 0.001 )
+ 1.155
[ 1.059 , 1.250 ]
( p adj < 0.001 )
+ 3.140
[ 2.978 , 3.303 ]
( p adj < 0.001 )
Random + 0.009
[ 0.003 , 0.016 ]
( p adj = 0.032 )
+ 0.104
[ 0.085 , 0.122 ]
( p adj < 0.001 )
+ 0.540
[ 0.475 , 0.606 ]
( p adj < 0.001 )
+ 2.315
[ 2.214 , 2.416 ]
( p adj < 0.001 )
+ 5.679
[ 5.444 , 5.913 ]
( p adj < 0.001 )
Genres 0.020
[ 0.024 , 0.016 ]
( p adj < 0.001 )
0.249
[ 0.271 , 0.228 ]
( p adj < 0.001 )
1.142
[ 1.199 , 1.085 ]
( p adj < 0.001 )
5.358
[ 5.439 , 5.276 ]
( p adj < 0.001 )
16.636
[ 16.844 , 16.428 ]
( p adj < 0.001 )
Dataset 3Popularity 0.055
[ 0.065 , 0.044 ]
( p adj < 0.001 )
0.316
[ 0.339 , 0.294 ]
( p adj < 0.001 )
0.675
[ 0.728 , 0.622 ]
( p adj < 0.001 )
0.160
[ 0.280 , 0.041 ]
( p adj = 0.042 )
+ 7.836
[ 7.703 , 7.970 ]
( p adj < 0.001 )
Random + 0.088
[ 0.073 , 0.102 ]
( p adj < 0.001 )
+ 0.263
[ 0.227 , 0.298 ]
( p adj < 0.001 )
+ 1.088
[ 1.021 , 1.155 ]
( p adj < 0.001 )
+ 3.413
[ 3.252 , 3.574 ]
( p adj < 0.001 )
+ 6.661
[ 6.479 , 6.843 ]
( p adj < 0.001 )
Genres 0.057
[ 0.069 , 0.045 ]
( p adj < 0.001 )
0.469
[ 0.490 , 0.449 ]
( p adj < 0.001 )
1.301
[ 1.351 , 1.252 ]
( p adj < 0.001 )
4.588
[ 4.702 , 4.474 ]
( p adj < 0.001 )
14.033
[ 14.147 , 13.919 ]
( p adj < 0.001 )
Dataset 4Popularity 0.080
[ 0.088 , 0.073 ]
( p adj < 0.001 )
0.227
[ 0.246 , 0.208 ]
( p adj < 0.001 )
+ 0.212
[ 0.180 , 0.245 ]
( p adj < 0.001 )
+ 10.773
[ 10.714 , 10.831 ]
( p adj < 0.001 )
+ 17.575
[ 17.478 , 17.673 ]
( p adj < 0.001 )
Random + 0.055
[ 0.044 , 0.067 ]
( p adj < 0.001 )
+ 0.286
[ 0.261 , 0.311 ]
( p adj < 0.001 )
+ 1.415
[ 1.373 , 1.458 ]
( p adj < 0.001 )
+ 4.518
[ 4.421 , 4.614 ]
( p adj < 0.001 )
+ 8.356
[ 8.225 , 8.488 ]
( p adj < 0.001 )
Genres 0.143
[ 0.150 , 0.135 ]
( p adj < 0.001 )
0.586
[ 0.607 , 0.564 ]
( p adj < 0.001 )
1.906
[ 1.948 , 1.865 ]
( p adj < 0.001 )
5.960
[ 6.033 , 5.888 ]
( p adj < 0.001 )
16.658
[ 16.770 , 16.546 ]
( p adj < 0.001 )
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.

Share and Cite

MDPI and ACS Style

Luţan, E.-R.; Bădică, C. Systematic Evaluation of Top-K Neighborhood in Emotion-Aware Literature Book Recommendation. Electronics 2026, 15, 3710. https://doi.org/10.3390/electronics15163710

AMA Style

Luţan E-R, Bădică C. Systematic Evaluation of Top-K Neighborhood in Emotion-Aware Literature Book Recommendation. Electronics. 2026; 15(16):3710. https://doi.org/10.3390/electronics15163710

Chicago/Turabian Style

Luţan, Elena-Ruxandra, and Costin Bădică. 2026. "Systematic Evaluation of Top-K Neighborhood in Emotion-Aware Literature Book Recommendation" Electronics 15, no. 16: 3710. https://doi.org/10.3390/electronics15163710

APA Style

Luţan, E.-R., & Bădică, C. (2026). Systematic Evaluation of Top-K Neighborhood in Emotion-Aware Literature Book Recommendation. Electronics, 15(16), 3710. https://doi.org/10.3390/electronics15163710

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop