✅
International Knowledge Platform
Serving Researchers Since 2012

A Movie Recommendation System Using Machine Learning-Based Collaborative Filtering

DOI : 10.5281/zenodo.24135660
Download Full-Text PDF Cite this Publication

Text Only Version

A Movie Recommendation System Using Machine Learning-Based Collaborative Filtering

Atharv Mane, Audamber Karad, Amar Tamboli, and Rushikesh Kulkarni

Department of Computer Science and Engineering Bhagwant Institute of Technology, Barshi, Maharashtra, India

Abstract – Movie platforms contain large catalogs, making it difficult for users to select films that match their interests. This paper proposes a movie recommendation system that uses machine-learning-based collaborative filtering only. The system learns from historical usermovie ratings rather than using content-based similarity, genre matching, or a hybrid content model. After cleaning the rating data, it builds a useritem interaction matrix and trains collaborative models such as K-nearest neighbors (KNN) and matrix factorization using singular value decomposition (SVD). The trained model estimates ratings for movies a user has not rated and ranks candidates to produce a top-N recommendation list. MovieLens is proposed as a public dataset for implementation and reproducible evaluation. The system can be evaluated using mean absolute error (MAE), root mean squared error (RMSE), Precision@K, and Recall@K. No numerical experimental results are claimed because the models have not been run on a dataset as part of preparing this document. The proposed design provides a clear ML-only workflow and can be extended through parameter tuning, cold-start strategies, and user-interface development.

Keywords – Machine learning, movie recommendation, collaborative filtering, K-nearest neighbors, matrix factorization, singular value decomposition, MovieLens

  1. INTRODUCTION

    Online movie platforms provide many choices, and users may spend significant time finding films they are likely to enjoy. A recommender system addresses this problem by predicting which unseen movies a user may rate positively.

    This paper focuses exclusively on machine-learning-based collaborative filtering. The models learn from usermovie rating interactions. Content-based filtering, genre/text similarity, and hybrid combinations with content features are outside the scope of this design.

    The proposed workflow prepares rating data, trains collaborative ML models, predicts ratings for unseen usermovie pairs, and ranks the candidate movies. The paper presents the related work, methodology, evaluation plan, comparison, and future improvements.

  2. LITERATURE REVIEW

    Collaborative filtering uses patterns in user-item interactions to generate recommendations. Sarwar et al. presented item-based collaborative filtering, in which item similarities are derived from users' rating behavior [1]. This provides a useful neighborhood-based baseline, although performance depends on sufficient overlapping ratings.

    Koren, Bell, and Volinsky discussed matrix-factorization methods for recommender systems [2]. Such methods learn latent user and item factors from observed ratings and can estimate preferences even when users have not rated every item. Their performance depends on data quality, regularization, and parameter selection.

    GroupLens distributes MovieLens datasets containing user ratings and movie identifiers, enabling repeatable recommender-system experiments [3]. This paper proposes evaluating KNN collaborative filtering and SVD-based matrix factorization using the same data split. The document does not claim that either method is superior before experiments are run.

  3. PROPOSED MACHINE LEARNING METHODOLOGY

    1. Dataset: Use a specified MovieLens release with user IDs, movie IDs, and rating values. The main model input is the rating interaction; movie descriptions, genre text, image features, and content similarity are not used.

    2. Preprocessing: Remove invalid or duplicate rating rows where appropriate, check rating ranges, and split the interaction records into training, validation, and test sets. A fixed random seed or a time-based split should be recorded. The test set must not be used to tune model parameters.

    3. UserItem Matrix: Represent users as rows and movies as columns, with observed ratings as matrix entries. Missing entries represent unrated movies and must not be treated as explicit zero ratings.

    4. Model 1 K-Nearest Neighbors Collaborative Filtering: Train a neighborhood model using user-rating patterns. An item-based variant identifies movies with similar rating histories; a user-based variant identifies users with similar rating patterns. Predict a target rating from relevant neighbors, with safeguards for sparse neighborhoods.

    5. Model 2 Matrix Factorization (SVD): Learn latent vectors for users and movies from the training ratings. Estimate a rating using the user and item latent factors, optionally with user/item biases. Tune the number of factors and regularization on validation data.

    6. Recommendation Generation: For a selected user, estimate ratings for movies not present in that user's training history, sort candidates by predicted rating, and return the top N. Already-rated movies should be excluded from the final list.

    7. Algorithm: (1) Load usermovie ratings; (2) validate and clean the data; (3) create training, validation, and test sets; (4) build the useritem matrix; (5) train KNN and SVD models; (6) tune parameters on validation data; (7) predict ratings for unseen movies; (8) rank candidates; (9) evaluate the final model on the untouched test set.

  4. SYSTEM ARCHITECTURE

    The architecture contains rating-data input, data cleaning and splitting, useritem matrix construction, collaborative ML model training, rating prediction, and top-N output. KNN and SVD should first be evaluated independently. The model selected for deployment should be based on measured validation and test results rather than assumptions.

  5. RESULTS AND DISCUSSION

    No model execution or measured dataset output was supplied for this paper. Therefore, this section does not invent accuracy or error values. The proposed comparison is an experimental plan rather than a claim of completed results.

    KNN collaborative filtering is relatively interpretable because recommendations can be linked to neighboring users or movies, but it may be affected by sparse rating overlap. SVD-based matrix factorization learns compact latent factors and can model broader rating patterns, but it requires training and parameter tuning. Both approaches rely on historical interactions and can struggle with users or movies that have no ratings.

    Evaluate rating prediction using MAE and RMSE. For top-N recommendations, report Precision@K and Recall@K, and optionally NDCG@K. Compare KNN and SVD on the same test split, report parameter settings and dataset version, and discuss results only after running the experiment.

  6. COMPARATIVE ANALYSIS

    ML method

    Strength

    Limitation

    KNN collaborative

    Neighborhood-based and interpretable

    Needs rating overlap

    SVD matrix factorization

    Learns latent user/item patterns

    Needs training and tuning

  7. CONCLUSION AND FUTURE WORK

This paper described a movie ecommendation system based only on machine-learning collaborative filtering. It uses usermovie rating interactions to train KNN and SVD models, predict ratings for unseen movies, and rank a personalized recommendation list. It intentionally excludes content-based filtering, metadata similarity, and hybrid content-based scoring.

Future work includes implementation on a fixed MovieLens dataset, fair comparison and tuning of KNN and SVD, handling cold-start users and movies, improving scalability, and building a web interface. Any claim about which model performs best should be supported by reproducible test results.

REFERENCES

  1. B. M. Sarwar, G. Karypis, J. A. Konstan, and J. Riedl, Item-Based Collaborative Filtering Recommendation Algorithms, in Proceedings of the 10th International Conference on World Wide Web, 2001, pp. 285295, doi: 10.1145/371920.372071.

  2. Y. Koren, R. Bell, and C. Volinsky, Matrix Factorization Techniques for Recommender Systems, Computer, vol. 42, no. 8, pp. 30 37, Aug. 2009, doi: 10.1109/MC.2009.263.

  3. GroupLens Research, MovieLens Datasets. [Online]. Available: https://grouplens.org/datasets/movielens/. Accessed: Oct. 30, 2026.

ACKNOWLEDGMENT

The authors acknowledge the CSE department and the developers of the publicly available MovieLens datasets. Project guide details may be added before submission.