• No results found

High Rating Recent Preferences Based Recommendation System

N/A
N/A
Protected

Academic year: 2021

Share "High Rating Recent Preferences Based Recommendation System"

Copied!
6
0
0

Loading.... (view fulltext now)

Full text

(1)

Procedia Computer Science 70 ( 2015 ) 259 – 264

1877-0509 © 2015 The Authors. Published by Elsevier B.V. This is an open access article under the CC BY-NC-ND license (http://creativecommons.org/licenses/by-nc-nd/4.0/).

Peer-review under responsibility of the Organizing Committee of ICECCS 2015 doi: 10.1016/j.procs.2015.10.085

ScienceDirect

4

th

International Conference on Eco-friendly Computing and Communication Systems,

ICECCS 2015

High Rating Recent Preferences Based Recommendation System

Sanjeev Dhawan

a

, Kulvinder Singh

b

, Jyoti

c

a,b,c

Department of Computer Engineering, University Institute of Engineering and Technology, Kurukshetra University, Kurukshetra, Haryana, INDIA. E-mail (s): a

[email protected],b

[email protected], c

[email protected]

Abstract

The availability of huge amount of information on Web makes it difficult for users to dissect relevant information from the unnecessary and irrelevant information. This paper highly facilitates the filtering of irrelevant over-abundant stuff in automotive manner. It efficiently plummet the complexity of search space for users and hence attract more users on web and ultimately increases the earn benefits of site holders. In this paper, an attempt has been made to design a high rating recent preferences based recommendation system by using Item-to-Item collaborative filtering. The movie data set is used to provide users’ recommendations based on ratings, and classified data. Classification is done in WEKA data mining tool using J48 pruned tree based classifier. The recommendations contain only high rated movies and according to users’ recent interest. Similarity, index is measured by using Pearson correlation, Cosine based similarity and Euclidean distance based similarity. The design challenges and choice guidelines are also discussed.

© 2014 The Authors. Published by Elsevier B.V.

Peer-review under responsibility of organizing committee of the International Conference on Eco-friendly Computing and Communication Systems (ICECCS 2015).

Keywords: collaborative filtering; cosine based similarity; euclidean distance; item-to-item similarity; pearson correlation; recommendations

1. Introduction

In this modern era, when everybody is highly dependent on internet for day-to-day requirements, there is an urgent need for handling the chaotic content available on Omni-present Web to make users comfortable in surfing for what they actually want, and make Website holders benefit with increased number of users because of better handling of information. Consequently, remarkable endeavours have been done by researchers to identify

© 2015 The Authors. Published by Elsevier B.V. This is an open access article under the CC BY-NC-ND license (http://creativecommons.org/licenses/by-nc-nd/4.0/).

(2)

automotive information filtering systems. One of the most renowned filtering systems is search engines which have extended an extensive approval by making easier search of an item for people. On the next, there are recommender systems which are gaining fame because of their efficiency in sinking the complications of search space for users1. Because of elevated availability of likewise items on Web, discovering infallible and apposite information by effectively choosing the product, the users are exposed to, has a vital importance. Instead of making large sized epitome, recommenders assist to alleviate preference models. There exist numerous different recommenders like content based2, collaborative3, hybrid, mobile4, preference-based5, personalized6, and many more. In this paper, an item-to-item collaborative filtering based recommender is developed which uses Pearson, Cosine based, and Euclidean distance based similarity measures and generate movie recommendations for users. The top three movies are recommended, which have high ratings (>=3) and are according to recent taste of like-minded users. Data is movie dataset which is first classified in WEKA data mining tool using J48 tree based classifier, tested by 10-fold cross validation, and then recommendations are generated. The implementation of recommender design is done in Java on Eclipse integrated development environment. This paper aims to address a few issues on recommenders and broaden the research on collaborative filtering. Section 2 discusses about design issues, problem analysis and design guidelines. Section 3 defines the workflow of proposed approach, and finally section 4 concludes the paper.

2. Problem Analysis

The research tries to focus mainly to uncover some of the drawbacks present in the existing systems. The main objective of this research is to build a collaborative filtering recommender system that is able to compute the item-to item similarity between any two movies using three different similarity measures: Pearson similarity, Cosine based similarity and Euclidean distance measure7,8,9. The main goal is to integrate all three measures in a single system such that the new system can be applied to any application. The new recommender will generate high rated recommendations only, i.e. the movies which are rated greater than equal to three will be recommended to users to improve the quality of recommendations. The users will be recommended with items which are most recent in choice by similar minded users.

2.1. Design Guidelines for Recommendation System

There are many works in the literature that make accessible many guiding principles of many facets of constructing a recommender system. But they deliver general principles that should guide the making of a recommender once the initial technical decisions have been made. In this section, the following questions are addressed:

x How to make a sensible select when begin with designing the system? x Procedures: Which recommendation procedure to apply?

x Design: How to deploy system, whether distributed or centralized? x User summary: The knowledge about users?

x Users: Active users and their objectives? x Records: Type of dataset and its features? x Use: Where can we apply the recommender?

x Why to develop: The motives towards making a recommender? x Categories: The type of suggestions provided by recommender? x Metrics: Performance measures and metrics?

x Item ratings: The type of ratings given by users?

Taking into concern, the above mentioned questions, a methodical execution for the construct of recommendation system is done in Java.

(3)

2.2. Design Choices for Recommendation System

In this section, firstly a discussion is carried out about, the choices taken in this research for the employment of the recommendation systems and the reasons why they were made. Secondly, a conversation about the method conceded, that was selected and a summary about why this research elected for it.

x Procedure: The procedure used for developing a recommendation system is item-to-item collaborative filtering. The approach is elected to investigate and compare the advantages and pitfalls of the various types of recommendation systems10. The analysis shows that the content based filtering suffers from various limitations like limited content analysis, cold start problem, over-specialization problem, new user problem etc.

x Classification scheme: The classification strategy turned out to be best for movie data is J48 tree based classifier. The comparison of three classifiers which are Zero R rule, Naïve Bayes, and J48 tree is done in WEKA11, based upon true positive rate, false positive rate, precision and recall, error rate etc.

x Why to develop: The main goal of recommender that is intended to build is to provide users easy access to find high rated items which are according to recent taste.

x Categories: It will provide a list of single type of items, not mixed type.

x Performance metric: Correctness, recent items, high rating recommendations and transparency. x User summary: Demographic information about users, user-id, age, gender, occupation and zip code. x Ratings: User-item ratings are explicit.

x Data volume: 100000 ratings by 943 users on 1682 items. Each user has rated at least 20 movies. Users and items are numbered consecutively from 1. The data is randomly ordered. The time stamps are UNIX seconds since 1/1/1970 UTC. Data is obtained from movielens12.

x Items: Information about the items (movies); this is a list of movie id, movie title, release date, video release date, IMDB URL, unknown, Action, Adventure, Animation, Children's, Comedy, Crime, Documentary, Drama, Fantasy, Film-Noir, Horror, Musical, Mystery, Romance, Sci-Fi, Thriller, War, Western. The last 19 fields are the genres, a ‘1’ indicates the movie is of that genre, a ‘0’ indicates it is not; movies can be in several genres at once.

x Similarity measures: Pearson correlation, Cosine-based, Euclidean distance.

3. Workflow of the Proposed Approach

The process of generating recommendations is defined in flow charts given below:

3.1. Computing Similarity

Create hash-map of movie-rate-table for all movie pairs.

Find users who have rated both of the two movies (for each pair)

ݏ݈݅݉݅ܽݎ݅ݐݕ ൌ σ ሾሺݎܽݐ݅݊݃ͳሾ݅ሿ െ ܽݒ݁ݎܽ݃݁ͳሻ ൈ ሺݎܽݐ݅݊݃ʹሾ݅ሿ െ ܽݒ݁ݎܽ݃݁ʹሻሿ௜ ξσ ሺݎܽݐ݅݊݃ͳሾ݅ሿ െ ܽݒ݁ݎܽ݃݁ͳሻଶ

௜ ൈ ξσ ሺݎܽݐ݅݊݃ʹሾ݅ሿ െ ܽݒ݁ݎܽ݃݁ʹሻ௜ ଶ

Compute Pearson correlation based similarity

(4)

Continued

3.2. Generating High Rating Recent Preferences based Recommendations

݀݅ݏݐܽ݊ܿ݁ ൌ ξ෍ሺݎܽݐ݅݊݃ͳሾ݅ሿ െ ݎܽݐ݅݊݃ʹሾ݅ሿሻଶ

ݏ݈݅݉݅ܽݎ݅ݐݕ ൌ ͳ ሺͳ ൅ ݀݅ݏݐܽ݊ܿ݁ሻൗ

Compute Euclidean distance based similarity

ݏ݈݅݉݅ܽݎ݅ݐݕ ൌ σ ሾሺݎܽݐ݅݊݃ͳሾ݅ሿሻ ൈ ሺݎܽݐ݅݊݃ʹሾ݅ሿሻሿ௜ ξσ ሺݎܽݐ݅݊݃ͳሾ݅ሿሻଶ

௜ ൈ ξσ ሺݎܽݐ݅݊݃ʹሾ݅ሿሻ௜ ଶ

Compute cosine based similarity

Output similarity values

Movie lens data: 100000 ratings by 943 users for 1642 movies

Classified data in 5 classes: bad, ok, average, good, excellent

1. Hash-map :

a. Read the data file and put each line in the file into an array list.

b. Get movies rated by each user and put results into map and put ratings for each movie into

hash-map.

2. Training:

a. Segment the ratings data set into training data and test data by randomly taking 70% of ratings as

training data and 30% as test data.

3. Similarity:

a. Compute item-to –item similarity between all pairs of movies using item-based collaborative filtering

algorithm.

b. The similarity is computed by Pearson correlation, Cosine based similarity and Euclidean distance

measure.

c. Create an excel sheet and store each movie pair similarity values in excel workbook.

d. Analyse Pearson correlation, Cosine based similarity and Euclidean distance similarity.

4. Prediction:

a. Predict user ratings for a movie, based on item similarity and users’ ratings on similar movies.

b. Compute Mean Absolute Error.

c. Choose top ten movies high rated by users, from array list based on similarity.

d. Display top 3 movies based on the recent choice.

(5)

3.3. Problem Execution

x Data is classified using J48 classifier.

x Then, data is trained by making base class and test class.

x Then item-based collaborative filtering is done. Consequently, recommendations are generated and errors are computed.

The experimental results for user-id: 7, with age: 57 and sex: M as list of movies that can be recommended are given in table 1 and table 2 (with total no. of movies in recommend list: 201). The mean absolute error for this user is 0.8312.

Table 1: Recommendations list for user (movies with average ratings >= 3)

Movie name Year Average Rating

Stalingrad 1993 3.1666

Contact 1997 3.8.353

Star Trek: Generations 1994 3.33620

Stargate 1994 3.14173

Pulp Fiction 1994 4.06091

Mission: Impossible 1996 3.31395

Firm 1993 3.27814

Father of the Bridge 1950 3.58333

Bad Boys 1995 3.10526

Farinelli: il castrato 1994 3.11764

Table 2: Top 3 Recommendations Based Upon Recent Preference

Movie Name Year Average Rating

Pulp Fiction 1994 4.06091

Stalingrad 1993 3.1666

Bad Boys 1995 3.10526

4. Conclusion and Future Scope

This paper executes a high rating recent preferences based recommender. Therefore, this approach has performed a better recommender than simple collaborative filtering based recommender as it gives high rating recommendations which are in accordance with users’ recent preferences and taste. The advantages of high rating recent preferences based recommender approach over simple collaborative filter are:

x The recommendations will be highly based upon users’ interest. The predicted items will be those which are rated on average greater than equal to three, by other users in past, so that users may not suffer from low rated product recommendations. This will improve quality of recommendations.

x The recommendations will be according to recent preferences of users keeping in mind that users’ interest may change over time. The outdated users’ inclination will be filtered off, keeping pace with users’ current choice based on time.

x The above two very important factors will not only improve the quality of recommendations, but due to better accuracy results, it will attract more users on website later on.

(6)

preference based hybrid recommender. Also, the performance can be enhanced by distributing the recommender algorithm over multi-core, multi-thread online systems. One can directly implement the technique in distributive manner on Apache Spark or Mahout. In this research, an attempt has been made to provide good recommendations to users for movies. The same approach can be used for making recommendations for other shopping sites and social websites in future.

References

1. Resnick P, Varian H. Recommender Systems. Communications of the ACM 1997; 40-3.

2. Rana C, Jain S. Building a Book Recommender System Using Time based Content Filtering. WSEAS Transaction on Systems, Scopus 2012; 11-2.p. 27-33.

3. Linden G, Smith B, York J.Amazon.com Recommendations: Item-to-Item Collaborative Filtering. IEEE 2003.p. 76-80. 4. Liu C, Sun C, Fang M. The Design of an Open Hybrid Recommendation System for Mobile Commerce. IEEE 2008.p. 129-134.

5. Chuang H, Wang L, Pan C.A Study on the Comparison between Content-based and Preference-based Recommendation Systems. In proc. SKG, IEEE 2008.p. 477-480.

6. Sun Z, Luo N, Kuang W. One Real Time Personalized Recommendation System based on Slope One Algorithm. ICFSKD, IEEE 2011. 7. http://en.wikipedia.org/wiki/Pearson_productmoment_correlation_coefficient, accessed on 13-May-2015 at 05:00 pm.

8. http://en.wikipedia.org/wiki/Cosine_similarity, accessed on 13-May-2015 at 06:00 pm. 9. http://en.wikipedia.org/wiki/Euclidean_distance, accessed on 14-May-2015 at 09:00 pm.

10. Jyoti, Dev P, Dhawan S, Singh K. Automotive Tools for Making Effective Recommendations for E-commerce Websites: An In-depth Comparative Study. IOSR-JCE 2015. p. 53-58.

11. Jyoti, Dhawan S, Singh K. Analyzing User Ratings for Classifying Online Movie Data using Various Classifiers to Generate Recommendations. In proc. ABLAZE, IEEE 2015.p. 295-300

References

Related documents

Copies of the latest audit findings, including the Risk Management Plan and Safety Plan are available to 

The test response function of the 3PL model is defined as in the 1PL and the 2PL models: it is the sum of the item response functions over all items in the test, and it predicts

The nanohardness and elastic moduli (Graph 1) of two bulk fill and two incremental fill resin composites evaluated in this study showed Filtek Bulk Fill with good hardness

After evaluating, and tuning, the performance of in-band underlay and out-band D2D commu- nications when used as direct transmission link among cellular users, in Chapter 6 we

micans females were successfully established more often on thicker phloem and they also tended to be successful on vigorously growing trees.. Stressed or destroyed vigorous

STRUCTURE USING LIGHT WEIGHT (NATURAL PUMICE

We emphasize that the lobate shape of the northern edge of the bare surface area (Fig. 7) is consistent with the outline of a lava flow unit. Evaluation of the second of the

What is more, according to Article 340 9 of the Criminal Code of Ukraine, “If public prosecutor refuses to prosecute on behalf of the State in court, presiding