Learn About Recommendation Engine like You’d Read a Fairy Tale

Muhammad Danish Farooq
Virtual Force Inc.
Published in
8 min readOct 4, 2022
Fig 1. We are surrounded by all sort of recommendations

Recommendation engines nowadays function as the key to the success of any online business. All in all, recommender systems can be a powerful tool for any e-commerce business, and rapid future developments in the field will increase their business value even further, to want to create a much better process for customer satisfaction and retention

In this Blog, I’ll trying to explain the concept of a Recommendation Engine, the idea behind it, how it collects the useful information, different types of collecting information, how it differs from the prediction,

Fig 2. Illustration of the process of a recommendation system.:(Source)

Recommender System:

A recommender system, or a recommendation system (sometimes replace ‘system’ with a word like a platform or associate engine), could be a sub-taxon of knowledge filtering systems, that seeks to predict the “rating” or “preference” a user would provide to associate an item.

The explosive growth within the quantity of accessible digital data and therefore the variety of holiday makers to the web have created a possible challenge of knowledge overload that hinders timely access to things of interest on the web. Information retrieval systems, like Google, DevilFinder and Altavista have partially solved this drawback however prioritization and personalization (where a system maps obtainable content to user’s interests and preferences) of knowledge were absent. This has inflated the demand for recommender systems ever before.

Recommender system creates a similarity between the user and things and exploits the similarity between user/item to form recommendations.

In today’s digital world:

A recommendation engine is one of the foremost powerful tools for selling. A recommender system is nothing but a data filtering system composed of machine learning algorithms that predict a given customer’s ratings or preferences for an item. A recommendation engine helps to handle the challenge of knowledge overload within the e-commerce area. Thus, it will facilitate in saving loads of browsing time for patrons, because the recommendation engine directs the user to a product he’s able to love. Its personalization features improve client engagement and retention.

History:

Starting from Insects:

Ants 1st unfolded severally searching for food and are a unit exhibiting social navigation, a sort of advice system. Whenever any of the ants goes out and explores a special part of the house or if he notices anything that it thinks the community would love, it lets everyone in the community know about it. That is not only restricted to ants.

Beginning from Early life:

Even before we have a tendency to have ideas like language and writing, cavemen virtually actually went through an equivalent method. In fact, if there have been some sensible cave, recognizing a brand new plant growing outside their cave, are wondering if this one is sweet to eat, or if it’s deadly and toxic. Now, if someone is starving, there is very little alternative. He might grab it and eat it, and see what happens. However, if another person is wise and perceives the teachings of recommender systems, may wait for someone else who is much hungrier , or more dumb , goes and grabs that fruit and tries it. If the person who eats the fruit enjoys eating it and does not face any adverse effects, the other person would grab it for himself too. On the other hand, if the person faced any negative consequences of eating that fruit, he would have won a hard-earned lesson and would not eat that fruit.

Present Age:

The idea of critics goes too old, those people who would tell what they thought we should always see or not see, the good storytellers or poets, or artists, or actors. And in fact, critics are building selections while not having to travel through the long method of seeing everything that they see.

Information Retrieval and Filtering:

Fig 3. Difference between information retrieval and filtering (Source)

Information retrieval:

Information retrieval evolved in response to the requirement to be able to raise questions about an oversized assortment of documents.

In earlier times the constant technology applied to libraries and their card catalogs or maybe to firms that area unit building indexes of the planet-wide net. The principles are unit constant. you have got a static content-based. We don’t publish new web pages as often as people navigate to them. however, we’ve got dynamic info. That info required is what we tend to typically decide a question and a limb interest that we wish a solution to. attributable to this balance, we tend to pay our time and invest it in compartmentalizing everything we will have in this content base. We tend to build up catalogs of the library. Within the recent days, we’ve had 3 completely different card catalogs, one by author, one by subject, one by title. If a book had multiple authors, we’d place multiple cards in this catalog, in order that after you came in, I would search for a book by stinkpot, somebody may quickly look it up, offer you the solution, so pass on to future questions.

Fig 4. Simple example of Information retrieval (Source)

Information filtering:

We gained a retardant of streams of data that were quickly ever-changing. Currently get a number of these streams, your email is returning in with, maybe half a dozen or a dozen completely different messages returning in the Associate in Nursing hour. you are making an attempt to follow the news wire, and it appears that there is a brand new article announced each minute, however you do not care regarding all of the articles announced. you only wish for those areas that are most relevant to you. data filtering saw that the assumptions of data retrieval were reversed. The information required here is just about static.

Fig 5. Simple example of Information filtering (Source)

Recommendation and Predictions:

Fig 6. Cycle for generating recommendations from data

Prediction: “a statement about what will happen or might happen in the future”

Predictions are about anticipating what an individual user is likely to do in the future.

It estimates that how much you’ll like an item that is:

  • Often scaled to match some rating scale
  • Often tied to search browsing for specific products

Recommendation: “the act of saying that someone or something is good and deserves to be chosen”

Recommendations are used to personalize the content of communications. Great recommendations engage users and make them feel like the brand is tailored to their unique interests and desires. Suggestions for items you might like:

  • Often presented in the form of “top n lists”
  • Also sometimes just placed in front of you

Pros and cons of Prediction and Recommendation:

Prediction:

  • Pros: Helps quantify items.
  • Cons: Provides something falsifiable

Recommendation:

  • Pros:Provides good choices
  • Cons: perceived as top-n, can result in failure to explore

How Explicit are the Predictions or Recommendations Vs Organic?

The balance between organic (presenting 5 results, or showing user ratings) and explicit (suggesting top 5 or stating your predicted rating) is something you have to balance for as you design recommendation systems.

Recommendation Engine — Examples:

Following are a few examples of famous and popular platforms that are working on the rule of recommendation system:

  • Facebook — “People You May Know”
  • Netflix — “Other Movies You May Enjoy”
  • LinkedIn — “Jobs You May Be Interested In”
  • Amazon — “Customers who bought this item also bought …”
  • Google — “Visually Similar Images”
  • YouTube — “Recommended Videos”
  • Waze — “Best Route”

What kind of problems can be solved through the recommender system?

Following are some examples of the problems that could be solved using recommendation system:

  • It can help to find the right product.
  • Increment in the user engagement. For example, there’s 40% more click on google news due to recommendations.
  • Provides items to the right user. On Amazon, 35 % of products get sold due to recommendation.
  • It helps to form the content more personalized. In the case of Netflix the most of the rented movies are from recommendations. In Netflix 60+% of the movies watched are recommended

Wrong methods which can recommend items to users:

  • Which are most popular among all the users?
  • Based on their preferences (user features)
  • Recommend items to them based on the segment they belong to

The main drawback here is that we tend to be unable to tailor recommendations that support the particular interest of the users. It’s like Amazon is recommending you purchase a laptop computer simply because it’s been bought by the bulk of the patrons. However, Amazon (or the other massive firm) doesn’t suggest merchandise victimization the higher than mentioned approach.

How is a recommendation Engine Built?

Fig 7. Guide to build recommendation engine in python:(source)

Preferences Information collection:

Fig 8. Programmer sought:(Source)

This is the first and most crucial step for building a recommendation engine. This phase collects relevant information of users to generate a user profile or model for the prediction tasks including user’s attribute, behaviors or content of the resources the user accesses. The preferences can be divided into two main categories:

  1. Explicit
  2. Implicit
Fig 9. Experience.sap.com:(Source)

Explicit data ( Direct from User ):

It is data that is provided by choices. For example the data collected by:

  1. Customer Rating
  2. Feedback
  3. Demographics
  4. Ephemeral wants
Fig 10. Collection of information on Netflix: (source)

In the above , Netflix is collecting the data explicitly in the form of ratings given by users to different movies.

What’s the Rating Provided?

Fig 11. Three major ingredient for ratings
  • Consumption — During or immediately after experiencing the item
  • Memory — — sometime after the experience
  • Expectation — -The item has not been experienced

Difficulties faced through rating:

  • Are ratings reliable and accurate?
  • Do users’ preferences change?
  • What will a rating mean?

Implicit data (Inferred from user activity):

Actions say a lot. In Implicit feedback user action is for some other purpose, not expressing a preference. It is info that’s not provided by design however gathered from accessible knowledge streams like:

  1. Search history
  2. Clicks
  3. Order history
  4. Navigation history
  5. Time spent on some web site
Fig 12. A snippet of an account at Amazon.com (source)

In the above, the order history of a user is recorded by Amazon which is an example of implicit mode of data collection.

Hybrid feedback:

The strengths of both implicit and explicit feedback can be combined in a hybrid system to minimize their weaknesses and get a best-performing system. This can be achieved by using implicit data to check on explicit rating or allow the user to give explicit feedback only when he chooses to express explicit interest.

Conclusion:

  • Recommenders mine what users say and what they do to learn preferences
  • Ratings provides explicit expressions of preference
  • Implicit data benefits from greater volume
Fig 13. Slide share.com: (source)

Characteristic of explicit and implicit feedback:

Table 1: Comparison of Implicit vs Explicit Feedback

--

--