Recommendation Algorithm Based on Restricted Boltzmann Machine and Item Type

Fan He, Na Li, Zhigang ZhangProceedings of the 2018 3rd International Conference on Automation, Mechanical Control and Computational Engineering (AMCCE 2018) 2018

Abstract

Because of the sparsity of the ratings in the recommendation system, the calculation of the neighbors will be affected. The common method is to predict the missing ratings and calculate the neighbors with the prediction ratings. However, due to the deviation between prediction ratings and true ratings, it will also lead to the inaccuracy of nearest neighbors. In order to solve this problem, we use RBM to predict the missing ratings. Considering that the type or label of the item has certain influence on the rating, we introduce the type similarity of the item to modify the original neighbors. So that we get the neighbors which is closer to the target user. In this paper, the new model is applied to the MovieLens data set. The result shows that the results of the new model are better than collaborative filtering based on RBM and collaborative filtering based on SVD.

Introduction

The "Achilles' heel" of modern collaborative filtering (CF) systems is the pervasive problem of data sparsity. In typical recommendation environments, the number of items far exceeds the number of ratings provided by any single user. This sparsity makes it difficult to identify "nearest neighbors"—users with similar tastes—because there is often insufficient overlapping data to calculate reliable similarity scores.

While techniques like Singular Value Decomposition (SVD) and Restricted Boltzmann Machines (RBM) are often employed to fill in these missing values, they are not infallible. Small errors in initial rating predictions can propagate through the system, leading to inaccurate neighbor selection and ultimately poor recommendations. This paper proposes a hybrid approach, RBM_ITCF, which mitigates these issues by integrating item metadata (genres/types) into the neighbor selection process.

Methodology: The RBM_ITCF Model

The proposed algorithm combines deep learning-based rating prediction with a refined similarity measure that accounts for item categories.

1. Rating Prediction with Real-value RBM (R_RBM)

Traditional RBMs often use binary units or complex "softmax" layers to represent discrete ratings. In this work, the authors utilize a Real-value RBM (R_RBM). By normalizing ratings (1–5) into a continuous 0–1 range, the model becomes more computationally efficient and better suited for the nature of rating data.

Structure of a Restricted Boltzmann Machine (RBM) showing the visible layer (v), hidden layer (h), and the weight matrix (W) connecting them.

As shown in Figure 3, the RBM consists of a visible layer $v$ representing the user ratings and a hidden layer $h$ that captures latent features. The weights $W$ represent the correlations between these layers.

2. Dual-Similarity Calculation

To refine the search for neighbors, the algorithm calculates two distinct similarity scores:

  • Rating Similarity: Computed using the standard Pearson correlation coefficient on the predicted ratings from the R_RBM.
  • Item Type Similarity: This is the core innovation. By creating a binary matrix of item types (e.g., Action, Sci-Fi), the model uses the Jaccard correlation coefficient to determine how much two users' categorical interests overlap.

3. Refined Neighbor Selection

The algorithm filters potential neighbors based on a threshold for item-type similarity. Only users who share a high degree of categorical interest (e.g., a threshold of 0.8) are considered. This ensures that the "neighbors" are not just statistically similar in ratings but also share fundamental content preferences.

Experimental Setup and Results

The model was evaluated using the MovieLens dataset, containing 100,000 ratings from 943 users across 1,682 movies. Movies were categorized into 18 distinct genres.

Performance Metrics

The primary metric used was Root Mean Squared Error (RMSE). A lower RMSE indicates that the predicted ratings are closer to the actual user ratings.

Key Findings

  • Superior Accuracy: RBM_ITCF consistently outperformed standard CF, SVD-based CF, and standard RBM-based CF.
  • Optimal Hyperparameters: Empirical testing revealed that the model performs best with 90 hidden units and 30 neighbors.
  • The Threshold Effect: The item-type similarity threshold is critical. Setting it too high (above 0.8) reduces the neighbor pool too much, causing RMSE to rise. A threshold of 0.8 was found to be the "sweet spot" for this dataset.

Conclusion

By grounding rating predictions in stable item metadata, the RBM_ITCF algorithm provides a robust solution to the data sparsity problem. The use of Real-value RBMs ensures computational efficiency, while the Jaccard-based item type similarity prevents the model from being misled by noisy rating data. Future research will focus on scaling this approach to larger datasets and incorporating more granular metadata like actors and directors.

Summary updated

BibTeX
@inproceedings{he2018recommendation,
  author = {Fan He and Na Li and Zhigang Zhang},
  title = {{Recommendation Algorithm Based on Restricted Boltzmann Machine and Item Type}},
  booktitle = {Proceedings of the 2018 3rd International Conference on Automation, Mechanical Control and Computational Engineering (AMCCE 2018)},
  year = {2018},
  doi = {10.2991/amcce-18.2018.42},
}
Figure