










Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!











The decision as to where to go, what to do, what to buy, what book to read, what song to listen to or what movie to watch etc. are made by people based on their different interest. The choices are many but time to explore the choices are limited. To solve this problem, filtering the information to suit individual user at a particular time is important. Recommender systems are important tools in making user-specific suggestions which invariably aids their decision making.
Human beings love to travel to new places for leisure, academics or for business etc. Getting the right information and at the right time about the places of interest could help them save time and cost regardless of the motive for such a trip. Information about a previous user experience and rating of a facility are now enormous and are key to recommending these places of interest to would-be travelers. This has helped travelers make informed choices about where to go and sometimes when to or not to go.
A very important tool in getting such useful information in terms of reliable suggestions is a recommender system. Using some generated users review and ranking, recommendations can be made based on certain interest and preferences. A good number of recommender system today use the user-provided ratings or review(Chen, Chen, & Wang, n.d.). Recommender systems have become a very valuable tool for users and have found successes in e-commerce, travel advisory and so on (Miguel, 2014).
Presently, most recommender system make use of the user-supplied ratings to infer user preference. However, the ratings may not be a true representation of the position of a user because they are limited to some predefined options. What does better in this sense is the review. With the review option, users are given the freedom to express themselves rather than select from a defined rating. This project work, places emphasis on user reviews, and provide a comprehensive and truer position of the user in the survey of hotels and it attempts to use the valuable information in reviews to solve the disparity between the ratings and review.
In this project work, our recommender system first implements a model which extracts reviews and scores them and then uses the scores as new ratings in presenting a recommendation using the knowledge graph. That is, present the recommendation in a graphical model consisting of edges and vertices. The representation of such enormous volume of data in a flexible yet
powerful format like a graph based representation is vital. In many practical applications, graph based representation including the Knowledge Graph (KG) are now used because of its flexibility, easy-to-analyze-and-understand nature.
Interconnection of different internet enable devices called internet-of-things (IoT) and the increase in the number of internet users has greatly and exponentially increased the volume of data available online today. This data keeps growing as we spend more and more time of both our professional and private lives on the Internet.
Researchers and companies all over the world are all collecting information large volume of data from their customers or service users with the goal of using such data to improve the services rendered of improve on their product offerings and by this means increase their overall profits.
Certainly, going by the vast amount of data available it is becoming increasingly difficult for a regular user of the internet to effectively use this data, by navigating through them, to their advantage. For instance, a user who wants to find out which hotel to lodge during a scheduled vacation will be overwhelmed by the volume of data available about various hotels thereby finding it difficult to make a selection from the options presented.
Recommender systems are tools that are designed to help users make informed and best decisions within a certain sphere (Pettersen & Tvete, 2016).
Textual or other forms of recommendation are good but presenting a recommendation graphically is better. This can be likened to choosing between a command prompt approach and a graphical user interface approach. Presenting the advantages of using a graph database system for a recommender system is one of the motivation of this project work. A widely or most used graph database application called the Neo4j, will be introduced. Neo4j’s Graph Platform is explicitly enhanced to map, analyze, store and traverse systems of connected data to reveal unseen contexts and hidden relationships. The toughest challenge of some applications including the recommender system are tackled by the intelligent powers of Neo4j done by mapping data points and the connections between them.
The overall reliability of the recommender system is dependent on the input data. Many recommender system rely on the defined ratings scale for example choosing between integer numbers 1 to 5 where 1 represents a very bad experience and 5 represents very good experience.
The dataset used in this project experiment is the “Datafiniti_Hotel_Reviews”. This dataset is a list of about 2,000 hotels and 10,000 reviews from Datafiniti's Business Database updated between January 2018 and September 2018. Each hotel listing includes a variation of the term Hotels within the Category field. All fields within this dataset have been flattened, with some omitted, to streamline your data analysis. This version is a sample of a large dataset.
The review.text column was passed through a sentiment analysis. The motivation behind this is to avoid the inconsistency found in the rating vis-à-vis the review text. For example, a user rates a hotel 4 but at the same time passed some negative comments about the same hotel.
1.3.2 Language
English language only is considered in this project work for the simple reason that the English language represents the documents in the corpuses used.
1.3.3 Structure of report
The remaining part of this report is structured as follows:
Chapter 2 gives an introduction to the field of recommender system and underlying theory and the background of this thesis. Chapter 3 is a study of related work and how this is done differently. Chapter 4 is the analysis which gives a detailed description of the method employed in this research. Chapter 5 evaluates the developed system to verify that it provides reliable recommendation. Chapter 6 is the conclusion and suggestion for future work.
In this chapter, the reader is provided with a more comprehensive understanding in this field of study. The first section gives an historical background of the recommender system followed by a section which attempts to define a recommender system. Section 2.1.2 gives types of recommender system. 2.1. describes the knowledge acquisition and finally, we discuss the Natural language processing tool as used in the sentiment analysis.
Recommender systems have gained wide acceptance and usage in various fields and in a number of ways stretching from e-commerce and social networks to health (Ebadi, 2016). Recommender systems are software tools that are developed to assist users make choices that are considered the best within a certain domain (Pettersen & Tvete, 2016). Generating meaningful and useful suggestions remains the main goal of recommender system (Thunestveit, 2016). Recommender systems are implemented for certain reasons as suggested by (Ricci, Shapira, & Rokach, 2015) and includes the following: Increase sales. When the system gets familiar with a user, it can suggest more precise products, increasing the chance of the user buying in the process. Increase diversity. The system can suggest items that the user may not have initially sort after, but may possibly be attracted to. Increase satisfaction. Satisfaction of a user may be improved if items suggested is found interesting and relevant as well. Better understand what customers need. Acquired information may be used to better improve on future products as the needs of the customer is better understood.
Recommender systems are those used by merchants to increase their profit by recommending carefully selected items to users and bringing relevant items to the attention of the users (Kembellec, Chartron, & Saleh, 2014). Recommendation systems help to realize new items which may be pleasing to a user from a pool of variety of other items that is available (Calda & Carvalho, 2014). Recommender systems is as a tool for online users which helps them cope with the surplus amount of information available online (Cung & Jedidi, 2014).
The primary goal of a recommender system is to increase product sales. Recommender systems are employed by suppliers or traders to raise their income. By recommending carefully selected
and after that makes new suggestions dependent on this comparison. Collaborative recommender frameworks can contrast in the manner in which a rating is characterized. An example of this are the common suggestions you get after purchasing items online on an e-commerce site. Messages like “Users who bought this item also bought:” (Wietreck, 2018).
While collaborative recommender put together their suggestion over things with respect to the way that other users have delighted in them, content-based sifting attempts to create a client profile which will be applied to forecast the client's feelings about things not yet displayed. In the event that these frameworks work appropriately or not will firmly rely upon the profile ability to speak to the inclinations of the client. The profiles can be gotten from the feelings of the clients with respect to the things or can be specifically given by the client (Miguel, 2014). Simply put, the system learns for the user profile and then presents as a way of recommendation, suggested items. A typical case for this recommender framework are the motion picture recommendations on Netflix. On the off chance that the client viewed a film of the sort comedy once or even gave positive criticism (through voting or remarks) for that motion picture, the client will get recommendations with a similar mark (Wietreck, 2018).
Demographic recommender system is simply based on information regarding the user, for instance, the sex, the age, the occupation and the location of the user or even cultural background and so on (Verma, 2015). These classifications is the basis upon which this type of recommender system are built. Demographic recommender frameworks can be utilized in a wide scope of applications however mostly takes care of the new client issue. This issue shows up when a model of a client does not exist as at yet e. g. a scenario where the user has never used the recommender system before. Since the interests of clients are unclear, recommendations can be made dependent on the demographic data of the current user (Wietreck, 2018).
Knowledge-based recommender systems are especially valuable with regards to things that are not obtained frequently. For example, land, cars, the travel industry demands, financial services, or costly extravagance merchandise (Kembellec et al., 2014). In this type of system there exists fundamental info about the relation between the needs of a user and specific item(s). This relationship or link between the user and the item is then stored as a user profile.
Research in Machine Learning has long demonstrated that the mix of techniques as a rule accomplishes preferable outcomes over every strategy independently, which is additionally valid in recommender Systems (Ebadi, 2016). Hybrid recommender system combines any of the other types of systems to achieve better results. A unique but yet important standpoint of the cross breed recommender system is the consideration of algorithms that spread diverse parts of the data and the subject issue so as to deliver enhanced recommendations (Ebadi, 2016).
The new-user problem are solved by the hybrid recommender system by the methods depicted by (Burke, 2002) in summary as shown in the table below:
Hybridization method Description Weighted The scores (or votes) of a number or recommendation methods are consolidated together to create a solitary suggestion. Switching The system switches between the recommendation strategies contingent upon the present circumstance. Mixed Recommendations from different recommenders are offered simultaneously Feature combination Features from various recommendation data sources are brought together into a solitary recommendation algorithm. Cascade One recommender refines the recommendations given by another.
Feature augmentation Output from one technique is passed as an input feature to another. Meta-level The model learned by one recommender is used as input of another. Table 2.1: Hybridization
Knowledge graph is a key feature in this project work, hence, we will describe graph and the elements making up the knowledge graph in this section.
Every one of the strategies referenced has demonstrated a few methods to compute a recommendation. There is a typical point among every one of those strategies: the significance to relate the things or item with one another. Definitely, in either user-to-user or item-to-item system, the center of the procedure is to discover relationship between components. The users are juxtaposed with one another, just as the items. In doing this, the graph model is used as it is
KGs being actual graphs, in the proper mathematical sense, allow for the application of various graph-computing techniques and algorithms (for example, shortest path computations, or network analysis), which add additional intelligence over the stored data. They are easy to extend over time as the schema is not strict or prohibitive in the same way as it is for SQL. This in itself is a pointer to the fact that KG is smart.
Growth – Due to the flexible structure of KG, the ontology can be extended and reviewed as new data arrives. This factor makes it convenient to store and manage data in a KG if you have use cases where regular updates and data growth are important, particularly when data is arriving from diverse, heterogeneous sources. A KG can support a continuously running data pipeline that keeps adding new knowledge to the graph, refining it as new information arrives.
KGs are also able to capture diverse meta-data annotations such as provenance or versioning information, which make them ideal for working with a dynamic dataset. There is an increasing need to account for the provenance of data and include it so that the knowledge can be assessed by its consumers in terms of credibility and trustworthiness. A KG can answer what it knows, and also how and why it knows it.
There are several known graph algorithms. Some of these algorithms will be discussed and used in the implementation of the recommender system.
A tree that connects all vertices together and has the minimum length is called the minimum spanning tree (Cung & Jedidi, 2014). This means that spanning tree of G is a subgraph T that is connected, acyclic and includes all of the vertices. The early algorithm for solving the minimum spanning tree problem was made by Otakar Borůvka in 1926. Prim’s algorithm was invented by Jarnik in 1930 and rediscovered by Prim in 1957.
The algorithm works as listed below:
Figure 2.1: Minimum Spanning tree
While the Minimum spanning tree does not allow cycles, The Hamiltonian cycle is an outstanding general algorithm that can be utilized to decide the shortest path of a cycle. Obviously, the weights of the vertices must be resolved. Other theorems are actually based on the Hamiltonian cycle (Cung & Jedidi, 2014).
This is the measure of similarity between two vectors. It is the cosine of the edge between two n- dimensional vectors in an n-dimensional space. It represents the dot product of the two vectors divided by the result of the two vectors' magnitude (Cung & Jedidi, 2014). The computation is done using the formula below where output ranges between -1 and 1. -1 being perfectly dissimilar and 1 is the direct opposite, i.e., perfectly similar:
The system must have some knowledge about the user to deliver good recommendations. The knowledge about the use may be of the form of general demographic information or specific information about the need for which a recommendation is sought.
As mentioned in chapter one of this project work, the recommender system implemented is not based on the review rating scale (1 to 5) because of the inconsistency identified when compared with the review text, rather, it is implemented on the review which is first passed through a natural language processing method called the sentiment analysis which is also referred to as opinion mining. This generally refers to a process of deriving useful information from unstructured text.
Natural language processing is a branch of artificial intelligence which enables computers to comprehend, decode and manipulate natural human language. With the development of natural language processing computers communicate with humans in their own language. A very good example is the ability of NLP to make it possible for computers to read text, hear speech, interpret it, measure sentiment and decide the parts that are important and the parts that are not. The following are major functions of the NLP:
Content categorization. This involves a linguistic-based summary of documents, which includes searching and indexing, content alerts and detection of word or sentence duplication.
Topic discovery and modeling. Ability to read through and classify text into topics for optimization and forecasting.
Contextual extraction. Structured information are pulled automatically from unstructured text- based sources.
Sentiment analysis. Humans can write down text while they are in certain types of mood and or when they have some form of subjective opinions, with sentiments analysis, the computer can detect correctly such mood.
Speech-to-text and text-to-speech conversion. Voice detection and translation to text is done with NLP. Also, text could be transformed to voice too.
Document summarization. Synopses can be automatically generated from large bodies of text.
Machine translation. Translation of text or speech written in one language to another language.
In detecting sentiments from some unstructured text, there is a need to classify the text as positive sentiments or negative sentiments. So, given a set of classes, we aim to determine what classes they belong. This approach is used to classify the text reviews from our dataset into “positive” and “negative”. For example, a user searches for hotels with positive feedbacks before making a choice of what hotel to lodge. A couple of algorithms are used in classifying text. Some of the algorithm are:
Naïve Bayes Bayes theorem is given as follows:
where P(c | x ) is the probability that c holds given the observed training data x , P( x | c) the probability of observing x given some world where c holds. P(c) is the initial probability that c holds and P( x ) is the probability that x holds, given no knowledge of which hypothesis holds. In summary, this means that
predicted class to each node, is repeated for each child node and continued recursively until it is impossible to continue.
The statistical processes behind classification and regression in tree analysis is very similar, as we will see, but it is important to clearly distinguish the two. For a response variable which has classes, often 0-1 binary, we want to organize the dataset into groups by the response variable - classification. When our response variable is instead numeric or continuous we wish to use the data to predict the outcome, and will use regression trees in this situation. A richer mathematical explanation follows, but, essentially, a classification tree splits the data based on homogeneity, where categorizing based on similar data, filtering out the “noise" makes it more “pure" - hence the concept of a purity criterion. In the case where the response variable does not have classes, a regression model is fit to each of the independent variables, isolating these variables as nodes where their inclusion decreases error.
Gini Index
Entropy