Abstract
Collaborative filtering is one of the most widely used approaches in recommendation systems. To enhance the performance of collaborative filtering, it is important to accurately identify similar users or items using a user-item rating matrix. Most similarity measures used in user-based collaborative filtering calculate similarity using the co-rated items between users. However, they suffer from the cold-start problem, because the user-item rating matrix is generally very sparse. To address this issue, this study proposes new similarity measures that exploit item genre information. The proposed similarity measures utilize either the number of rated items per genre or the average rating of genres and they were evaluated by different rating prediction methods including methods to aggregate the predicted ratings for multiple genres to which the item belongs. In addition, this study also proposed an approach to hybridize the proposed similarity measure with conventional similarity measures that do not exploit item genre information. The performance of the proposed similarity measures and the hybrid similarity measures was evaluated using three metrics such as MAE, F1, and NDCG and the empirical results revealed which proposed measures were superior to the others and confirmed the effectiveness and usefulness of the hybrid similarity measures.
Keywords
Introduction
A recommendation system is a type of information filtering system that aims to provide relevant items to users. In many commercial areas, searching for appropriate or preferred items can be a difficult task for users, especially when the number of items is very large. For this reason, recommendation systems have been commonly used in many commercial systems such as movies, books, e-commerce, and online learning.1,2 In general, recommendation systems gather a large amount of explicit and implicit data that can reflect users’ preferences or define the characteristics of items and make predictions about users’ tastes. Because such systems often rely on sensitive behavioral data, privacy-preserving learning frameworks have recently attracted increasing attention in related intelligent systems research. 3
Collaborative filtering (CF) is one of the most frequently used in recommendation systems and is regarded as one of the best techniques for building recommendation systems. 4 In CF, there are three approaches; memory-based, model-based and hybrid. Memory-based methods use similarity metrics between users or items and predict new ratings based on average ratings between pairs of similar users or items.5,6 Meanwhile, model-based methods develop a model that can provide recommendations based on a historical user-item database.7,8 Memory-based methods are simple, easy to implement, and interpretable, as they directly use the data without requiring additional model training. However, they suffer from scalability issues, particularly with large datasets, as similarity calculations need to be performed for all users or items. On the other hand, model-based methods can handle larger datasets more efficiently and are better at generalizing to unseen users or items. These methods often provide more accurate predictions than memory-based approaches, especially in sparse datasets. However, they require more computational resources due to the need for training complex models and can be more difficult to interpret compared to memory-based methods.
The hybrid approach integrates both memory-based and model-based methods, combining the strengths of each to improve recommendation performance. It addresses the scalability issues of memory-based methods while maintaining interpretability and improves the accuracy of model-based methods by refining predictions. This makes hybrid methods particularly useful in large-scale, real-world recommendation systems, as they balance efficiency and prediction quality. Beyond conventional CF methods, optimization-based intelligent approaches have also been explored in related prediction tasks to improve feature selection and predictive performance. 9
In general, memory-based methods are popular in commercial recommendation systems 10 due to their simplicity, ease of implementation, and interpretability. One of the primary advantages of memory-based CF is its straightforward approach, where recommendations are generated based on the similarity between users or items. This makes it particularly useful in environments where transparency and ease of understanding are essential, such as personalized product or movie recommendations. However, memory-based CF has notable limitations when applied to large-scale commercial systems. As the number of users and items increases, the method faces scalability challenges because similarity calculations need to be performed for every user or item. Despite these limitations, memory-based CF remains a popular choice in commercial applications with relatively smaller datasets or when real-time computational efficiency is crucial.
Memory-based CF is typically based on processing the user-item matrix that contains the ratings assigned by each user to items and it can be divided into user-based CF (UBCF) and item-based CF (IBCF) depending on whether ratings of items are predicted from similar users or similar items. In UBCF, ratings of items for each user are predicted based on the ratings of similar other users based on the assumption that if user
The quality of recommendations by UBCF highly depends on a similarity metric to find similar users for each user. Therefore, many researchers have proposed new similarity measures to improve recommendation performance. In some studies, the recommendation performance was enhanced by modifying or combining traditional similarity measures such as Pearson correlation coefficient, cosine, Jaccard and mean squared difference.10–12 Other studies have proposed new similarity measures to capture different aspects of rating preferences. The similarity measure, named PIP in Ahn 13 combines three different similarity measures to reflect the proximity, impact and popularity of user ratings.
Various similarity metrics for UBCF have been proposed, but they are still poor in sparse datasets, especially for cold-start users. The cold-start problem is a well-known challenge in collaborative filtering-based recommendation systems, occurring when there is insufficient data for new users or items. 14 This problem can lead to poor performance in recommendation accuracy, as collaborative filtering methods rely heavily on user-item interaction data to compute similarities and make predictions.
One possible approach to alleviate this issue is to utilize genre or category information. Genre information can be easily obtained for movies, music and books and the number of genres is much smaller than the number of items. Hence, a user-genre matrix is considerably less sparse than a user-item matrix. In addition, genre preference is one of an important characteristic that infers users’ behaviors. However, incorporating genre information in similarity calculation is difficult to find in similarity measures for UBCF, while there are some similarity measures to utilize genre information for IBCF.
This study suggests new similarity measures based on the gerne information of items for UBCF to enhance recommendation quality. The main contributions of this study are summarized as follows.
This study proposes new genre-based similarity measures to consider genre-specific information such as the relative frequency or mean rating for each genre. This study comprehensively compares the performance of several proposed similarity measures obtained by different combinations of used genre-specific information and the order of differences in genre-specific information between users. This study proposes a scaling method for the proposed similarity measures to combine them with other similarity measures that do not use genre information This study validates the effectiveness of hybridization of the proposed genre-based similarity measure and other similarity measures.
The rest of the paper is organized as follows. First, a brief review of memory-based CF and similarity measures for UBCF is provided in Section 2. The proposed genre-based similarity measures and the method to combine the proposed measures with other similarity measures are explained in Section 3. The experimental procedures and results are presented in Section 4. Finally, implications and conclusions of the study are presented in Section 5.
A collaborative filtering recommendation has been widely used in many commercial systems.15,16 CF filters out items that a user might like on the basis of preferences or reactions by similar users. In this section, we first discuss the definition of the CF problem. Among collaborative filtering approaches, we describe memory-based collaborative filtering, especially user-based collaborative filtering, because the aim of this study is to propose new similarity measures for UBCF. Then, we review related work including some limitations of traditional similarity approaches and advanced similarity measures to enhance the performance of recommendation.
Collaborative filtering problem
Memory-based collaborative filtering utilizes users’ historical preferences on a set of items to predict the ratings of unrated items. Let
Representative similarity measures such as the Pearson correlation coefficient (PCC), cosine similarity (COS), and the mean squared differences (MSD) have also been widely used in recommendation systems.17,18 COS measures the angle between two rating vectors, with a smaller angle indicating greater similarity. 15 However, COS does not account for differences in users’ rating scales and always yields a similarity of 1 when only one item is co-rated. Additionally, it primarily considers the direction of rating vectors while ignoring their ignores the lengths.
To consider the preference of the user’s rating, the adjusted cosine similarity measure (ACOS) has been proposed. In COS, raw rating values are directly used, which can lead to misleading similarity scores when users have different rating tendencies. However, ACOS mitigates this issue by centering ratings around each user’s mean rating before computing similarity. 13 This adjustment removes individual biases in rating scales, making similarity comparisons more reliable. Specifically, by subtracting the user’s average rating from each rating, ACOS ensures that similarity is based on relative rather than absolute ratings, leading to a more accurate measure of users’ preferences.
PCC, one of the popular similarity measures for CF, estimates the similarity between users as the ratio of the cross product of overrating or underrating of means divided by the product of the sum of squares of the mean rating difference. 19 Unlike COS, the range of cosine similarity is -1 to 1 where -1 indicates a negative correlation between users, 0 indicates the neural correlation between users and +1 indicates a positive correlation between users. PCC also has not only limitations similar to COS, but also it cannot be defined on a pair of users with only one common item.
To consider the influence of positive and negative ratings in the similarity calculation, the constrained Pearson correlation coefficient (CPCC) has been proposed. 20 CPCC introduces a constraint to mitigate the impact of small sample sizes and biases in rating distributions. Unlike PCC, CPCC replaces the user’s mean rating with a fixed reference value, often the global average rating or a predefined neutral rating (e.g., the middle of the rating scale).
Another enhancement to PCC considers the number of co-rated items between users, as similarity estimates are generally more reliable when users have more commonly rated items. To address this, the weighted Pearson correlation coefficient (WPCC) 21 and sigmoid function-based Pearson correlation (SPCC) 22 have been proposed. WPCC improves PCC by assigning higher weights to user pairs with more co-rated items, enhancing the reliability of similarity estimates. Meanwhile, PCC can produce extreme similarity scores (close to -1 or 1) even when only a few items are co-rated, leading to overconfident predictions. SPCC mitigates this issue by applying a sigmoid function to smooth similarity scores, reducing extreme values and improving stability.
JAC and MSD are other widely used similarity measures in CF. JAC mainly focuses on the number of co-rated items of two users. 23 JAC only considers the ratio of the cardinality of co-rated items to the cardinality of all items rated by both users, so it cannot reflect ratings. MSD is calculated by the ratio of sum square of the difference of ratings on co-rated items to the cardinality of co-rated items. 6 Unlike JAC, MSD does not consider the number of co-rated items. Moreover, MSD assumes a linear relationship between users or items, which may not always be true in real-world scenarios. It is also highly sensitive to outliers; if a few ratings significantly deviate from the mean, they can disproportionately influence the similarity calculation, leading to inaccurate predictions. This is particularly problematic in sparse datasets, where few ratings may be available to normalize or correct these outliers. To compensate for the limitations of JAC and MSD, a new similarity measure that combines JAC and MSD, called JMSD. JMSD combines the benefits of both, ensuring similarity is not overestimated due to minimal co-rated items while still incorporating actual rating values for better accuracy.
In addition to the studies that found ways to improve or enhance the traditional similarity measures, the studies proposing a new similarity measure for UBCF have been steadily conducted. Liu et al. 24 developed the Proximity, Impact, and Popularity (PIP) similarity based on the three terms such as the proximity, impact, and popularity indicators. The proximity factor considers whether the two ratings are in agreement or not from the perspective of sentiments (positive or negative) to give a penalty to ratings in disagreement and the impact factor considers how strongly an item is preferred or disliked by users. The popularity factors give larger weights for ratings that are far from the average rating of a co-rated item. The final PIP score for co-rated items is calculated as the product of these three factors.
Additionally, PIP has several limitations: it is complex, linear, and unnormalized. To address these issues, 24 proposed an improved version called Preference Strength Similarity (PSS), which adopts a nonlinear function and considers only the distance between two ratings. Like PIP, PSS consists of three similarity factors: proximity, significance, and singularity. The PSS score for co-rated items is computed as the product of these factors, and the overall similarity between two users is obtained by summing the PSS scores of their co-rated items. Furthermore, Liu et al. 24 introduced the new heuristic similarity model (NHSM), which integrates multiple factors influencing user similarity. NHSM combines the strengths of PIP and PSS while mitigating their weaknesses. Unlike traditional measures, it accounts for rating sentiment, preference strength, and co-rated item count, making it a more robust similarity measure for recommendation systems.
Sun et al. 12 developed the triangle similarity (TRI) that considers both the length and the angle of rating vectors between them and proposed the new similarity measure that integrates the triangle and Jaccard similarity (TMJ) to overcome the limitation of TRI that it only considers the co-rating users.
To address the issue in traditional similarity measures, where they sometimes select users who have not rated the target item as
Gazdar and Hidri 26 proposed a new similarity measure, called OS, by transforming intuitive and qualitative conditions that a similarity measure should satisfy into relevant mathematical equations, such as integral equations, systems of linear differential equations, and nonlinear systems. OS consists of two factors: the percentage of non-common ratings (PNCR), which accounts for the number of co-rated items, and the absolute difference of ratings (ADF), which uses a basic similarity expression for all items rated by both users.
Despite the advancements in traditional and recent similarity measures, they still face issues such as the cold-start problem and data sparsity. These problems can lead to unreliable similarity values, as similarity is typically derived from ratings on common items.
Genre-based similarity measures
The cold-start problem, an important problem in recommendation systems, refers to the problem that arises when a recommendation system meets new users or items. Even if it is not a cold-start situation, data sparsity is common in recommendation systems, which leads to unreasonable recommendations due to reduced coverage and neighbor transitivity, because users in general rate only a limited number of items. One possible approach to address the cold-start and data sparsity problems is to utilize category or genre information. For many products and items, category or genre information is available and easily obtained and it can be used to abate the cold-start and data sparsity problems.
In Zhang and Song, 27 a genre-based CF algorithm was developed using the genres of items. This algorithm selects neighbors based on the user’s genre preference, comparable to those of others in the set of all users and calculates the similarity between items.
Barman et al. 28 proposed a new similarity measure based on item genre, named CatSim to improve the performance of IBCF. CatSim first constructs a bipartite graph with nodes representing items and genres. An edge is created between an item node and a genre node when the item belongs to the genre, with the edge weight inversely proportional to the number of genres the item belongs to. Specifically, the bipartite graph structure enables the effective capture of relationships between items and their associated genres, leading to more accurate similarity estimates by considering both item-to-item and item-to-genre connections. This structure helps address limitations of traditional IBCF models by incorporating category-level information, thereby improving recommendation quality, particularly in sparse datasets.
Lin et al. 29 proposed a new method of similarity calculation based on both item rating and genre. In this study, the proposed similarity is defined as the weighted average of similarity using item ratings and similarity using genre information. For similarity calculation using item ratings, it uses JAC and ACOS. To incorporate genre information, the similarity based on genres is defined by a formula that combines JAC with the distance between items based on their genre representations. JAC measures the similarity between the sets of genres associated with two items, while the distance component captures the dissimilarity between the genre representations of the items.
Proposed genre-based similarity measures
Proposed similarity measures
Unlike various similarity measures for UBCF, the proposed similarity measures calculate the similarity between users comparing users’ ratings by genres, not by items. It is possible to use the number of rated items per genre that can be used for similarity calculation because individual items are categorized by genre. To take into account the number of rated items per genre in similarity measures, the relative frequency of rated items for each genre is obtained as follows:
First, we proposed different similarity measures according to the types of genre-specific information used in the similarity calculation. Table 1 lists the proposed similarity measures. In names of similarity measures,
Description of the proposed genre-based similarity measures.
.
The proposed similarity measures are computed using the relative frequency or average rating values of common genres between users. For a user pair
This study also proposed the rating prediction method utilizing genre information of items. This method estimates the rating of an unknown item using the average ratings of genres to which the item belongs instead of the overall mean rating of a user. The predicted rating of item
Figure 1 illustrates the overall framework of the proposed recommendation method. The conventional UBCF procedure is maintained, while the similarity computation stage is replaced by the proposed genre-based similarity measures and the final rating prediction stage can optionally employ genre-based aggregation.

Overall framework of the proposed genre-based recommendation method.
Algorithm 1 summarizes the computational procedure of the proposed method, including preprocessing of genre statistics, similarity computation, neighborhood selection, and the two alternative rating prediction strategies.
The proposed rating prediction method estimates ratings for each genre an item belongs to and then aggregates them to compute the final rating. Consequently, the computation time increases linearly with the number of genres per item. However, since most content types—such as movies, music, books, and online marketplace products—are typically classified under a small number of categories, this increase in computation time is minimal. In fact, among the four datasets used in this study, the three datasets with expert-classified genre information have an average of fewer than two genres per item. Therefore, the additional computational burden of the proposed aggregation step is practically negligible in many real-world applications.
The proposed genre-based similarity measures have the advantage that it is possible to calculate the similarity between more pairs of users compared to other similarity measures defined on the common rating items of two users. However, the proposed measures cannot fully utilize the ratings of items because they extract the features based on the genre from ratings of items. One possible way to address this issue is to combine the proposed measures in combination with other similarity measures defined on the common rating items of two users as follows:
Figure 2 shows the distributions of similarity values obtained by some traditional similarity measures and the selected proposed measures for the

Distributions of similarity values for
To overcome the problem that some genre-based similarity measures provide similarity values very close to 1 for most pairs of users, we suggest a rescaling method. All proposed similarity measures can be represented as
To determine the appropriate
Figure 3 shows the distributions of

Distributions of similarity values after rescaling for
Data
For our experimental study, we used four datasets:
The properties of these four datasets in terms of the number of users, number of items, number of genres, number of ratings and density are summarized in Table 2.
Description of datasets.
Description of datasets.
In this study, we mainly used three different types of evaluation metrics to compare the performance of different similarity metrics including the proposed measures. The first evaluation metric is the mean absolute error (MAE) which calculates the average error between the true ratings and predicted ratings. MAE is defined as follows:
The second evaluation metric we used was F1, which is the harmonic mean of the precision and recall. Unlike MAE, F1 measures the performance of recommendations. To obtain F1, the precision and recall are computed first. Precision is the ratio of the number of items that are actually relevant among the items predicted relevant to the user to the total number of items that are predicted relevant to the user and recall is the ratio of the number of items that are actually relevant among the items predicted relevant to the user to the total number of items that are actually relevant to the user.
In this study, the set of items that are actually relevant to the user (
The last evaluation metric is the normalized discounted cumulative gain (NDCG), which is one of metrics used to evaluate the ranking quality.
30
NDCG is the ratio of discounted cumulative gain (DCG) of the recommended order to DCG of the ideal order. DCG and NDCG are usually used to evaluate the quality of recommendations with the top
In our experiments, first, we investigated the superior similarity metric among the proposed similarity measures using two different rating prediction approaches. In addition, we also evaluated the performance of hybrid similarity measures combining the genre-based similarity measure and the other similarity measure that does not incorporate genre information varying with
In addition, the number of nearest neighbors in the rating prediction,
Similar to most researchers, for evaluation, we conducted 5-fold cross-validation by randomly choosing different training and test sets. For each fold, each dataset was divided into 80 % of the data for the training and 20 % for the testing.
All experiments were conducted using Python, and the proposed similarity and rating prediction functions can be accessed via this link (URL: http://bit.ly/4hTmg9C).
Experimental results
Performance of the proposed similarity measures
Figures 4 to 6 show the evaluation results for different genre-based similarity measures. In each subfigure of these figures, the left side displays the results for the genre-based similarity measures using the absolute difference while the right side shows the results for the genre-based similarity measures using the squared difference.

MAE of the proposed similarity measures by the conventional rating prediction method. (a)

F1 of the proposed similarity measures by the conventional rating prediction method. (a)

Comparing the performance of the genre-based similarity measures using the absolute difference with the genre-based similarity measures using the squared difference, the absolute difference provides a better performance than the squared difference for MAE and F1. For
In terms of
Next, we compared the different rating prediction methods. Figures 7 to 9 show the evaluation results for the selected genre-based similarity measures (

MAE of the proposed similarity measures depending on the prediction methods. (a)

F1 of the proposed similarity measures depending on the prediction methods. (a)

Meanwhile,
A similar tendency is observed for
Therefore, the higher MAE of
In addition,
However, determining whether
Nevertheless, in practical recommendation systems, users are typically exposed to ranked recommendation lists rather than the predicted rating values themselves. Therefore, when MAE and ranking-based metrics such as F1 or
At the same time, if genre information is inaccurate or incomplete,
As observed in the results described in Section 4.4.1, one of
Figures 10 to 12 provide the performance of the hybrid similarity measures using MAE, F1 and

MAE of the hybrid similarity measures: Orig. (a)

F1 of the hybrid similarity measures: Orig. (a)

In general, the proposed similarity measures outperform the most traditional similarity measures such as COS, PCC, and MSD, and OS, regardless of the evaluation metrics and the datasets. On the other hand, JMSD, NHSM, RJAC, and TMJ achieved lower MAE and higher F1 than the proposed measures, and JMSD and NHSM provided higher
In addition, Figures 13 and 14 show the results for the hybrid similarity measures by

F1 of the hybrid similarity measures: Max. (a)

Even when
Table 3 summarizes the performance evaluation of the hybrid similarity measures by
Summary of the performance evaluation for the hybrid similarity measures by
Moreover, in terms of computational cost, the proposed similarity measures require significantly less computation time than the comparison methods. Figure 15 illustrates the time required for similarity computation, showing that the proposed measures are considerably more efficient. In particular, compared to NHSM—the most computationally expensive method—the proposed measures require only a marginal amount of time. Unlike traditional similarity measures, which rely on individual item ratings, the proposed approach utilizes rating frequencies and average ratings by genre. Since the number of genres is typically much smaller than the number of items, this results in faster similarity computation. Consequently, the proposed similarity measures are not only computationally efficient but also suitable for integration with other similarity measures to enhance recommendation performance.

Computation times for the similarity measures. (a)
In this study, new genre-based similarity measures are suggested by utilizing item genre information. The proposed similarity measures exploit either the number of rated items per genre or the average rating of genres to obtain similarity between users. The number of genres is typically much smaller than the number of items, so the proposed similarity measures reliably calculate the similarity between users with a few co-rated items.
Among the proposed similarity measures, the methods based on both the relative rating frequency of genres and the average rating of genres generally outperformed the other variants. In particular, the mean-centered versions, namely
In terms of the rating prediction approach, estimating the rating of an unrated item as the maximum value among the predicted ratings for each genre achieved higher F1 and
Furthermore, we suggested the hybridization of two different similarity measures: one uses item genre information and the other does not use item genre information. A scaling method to match scales of different similarity measures was proposed to properly calculate the similarity using the hybrid similarity measure. Through this method, it is possible to obtain reliable hybrid similarity measures and a comprehensive study revealed that combining the similarity measures can enhance the recommendation performance. Considering the short computation time in the similarity calculation by the proposed measures, it can be seen that the benefits of the hybridization are greater than the effort involved in additional computational cost to obtain similarities by the proposed similarity measures.
Future studies may extend the proposed framework in several directions. First, the hybridization of different similarity measures could be further improved by adaptively adjusting their weights according to factors such as the number of co-rated items. Second, the current scaling method relies mainly on the interquartile range of similarity distributions, and more robust scaling strategies incorporating additional distributional statistics may yield better performance. Third, the proposed method assumes that item genre metadata are sufficiently reliable. Although this assumption is often reasonable in domains where metadata are curated by providers, user-generated tagging environments may contain inaccurate or incomplete labels. Future research could therefore investigate confidence-aware genre weighting schemes or robust similarity measures that explicitly account for metadata uncertainty.
Another limitation of this study is that the proposed model does not explicitly consider temporal changes in user preferences. In practice, users’ interests and rating behaviors may evolve over time, causing their preferences for specific genres to shift. Since the primary focus of this study was to examine how genre information can enhance conventional similarity measures, the proposed method was developed under a static-preference assumption. Future research could extend the model by incorporating temporal dynamics, such as time-decay weighting or recency-sensitive similarity adjustment, to improve recommendation accuracy and adaptability in dynamic environments.
Footnotes
Acknowledgement
This study was supported by the Research Program funded by the SeoulTech(Seoul National University of Science and Technology).
Funding
This study was supported by the Research Program funded by the SeoulTech (Seoul National University of Science and Technology).
Declaration of conflicting interests
The authors declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
