Achieving diverse product recommendations

Ensuring all users and objects get exposure

In this blog post, you’ll learn about some examples of decision processes you can use in recommender systems: do you see any usage for recommending less popular products as a way to improve your business? You will see it now!

The Use Case

Let’s imagine a use case where you are building a MOOC platform (like Udemy/Coursera). Your CEO means to increase student engagement and recurrence in the platform, and wants to know the preferred courses for each student.

Your team of Data Scientists, after brainstorming, decides you should build a model which predicts the affinity each user has for each course, and build a decision process on top of it. Your marketing team is able to send a fixed amount of newsletters per week with limited slots, of the best courses for each user, at no associated cost.

Data

MOOCs websites, being online services, can easily generate a lot of user data with no major acquisition effort. For this example, the most relevant characteristics are:

  • Person: student and its characteristics, such as age, location, interests, gaps in knowledge, …
  • Product: course and its metadata (category, duration, price, knowledge area)
  • User-course interactivity (clicks on other courses)
  • External Market Indicators: how popular is each area and what is the coverage of that type of content in other competitor services

Model

The focus of this blog post is not to explore data sources, so let’s assume we have a model that takes in this data.

There are three major groups of models for recommendation systems: content-based, collaborative filtering, and hybrid. At NILG.AI, we have built content-based algorithms for a lot of our clients, as they allow you to compare products by their characteristics, reducing cold start in new products.

For more details when comparing these types of models, we recommend an in-depth article such as this one.

Decision Process

Now towards the main topic of the blog post: how do you go from a list of affinities per user to an actual recommendation in the newsletters? There are multiple options for creating the final newsletter:

Rule-based approaches: 

  • This is typically the first step in organizations that don’t use machine learning: for example, sort courses for each user based on the overall popularity in the areas in which he has expressed interest for.
  • Pros: easy to implement, can add business knowledge explicitly
  • Cons: non-personalized. The implemented business rules also lead to a dependency in changing them over time, if the business evolves.

Recommend Top-K courses to each student (Course to Student).

  • In this method, each student is recommended the top-K courses for him, according to the calculated affinity.
  • Pros: we maximize opening rates.
  • Cons: some courses may not be at the top of any user, achieving low visibility. This happens in new courses as well, that won’t get as much attention

Recommend Top-K students to each course (Student to Course).

  • In this strategy, each course is assigned to the top-K students, according to their affinity.
  • Pros: we ensure each course receives a relevant number of leads. This is a more business-oriented approach
  • Cons: overall opening rate per user can be reduced.

Urgency trade-off of individual vs. overall affinity

  • In this strategy, you calculate how much you would lose if you don’t send a course to a user. This is based, for instance, on the difference between affinity and the maximum affinity from the rest of the users. This is based, for instance, on the difference between affinity and the maximum affinity from the rest of the users. The maximum affinity is the best you can do for that user. By recommending matches where the difference between affinity and maximum affinity is largest, that user is the most relevant one for the course.
  • Pros: promotes a better distribution of leads across courses.
  • Cons: we may be missing top matches.

Randomly recommend courses

  • In this strategy, you randomly recommend courses (or semi-random, within a certain group). For improving your model constantly, and exposing the user to out-of-the-box recommendations, it might be a viable strategy at a smaller percentage of the recommendations, unless it hurts your sales by a lot.
  • Pros: more diversity for learning the algorithm.
  • Cons: less relevant recommendations.

There is no actual best rule for this: one approach we have followed in the past was to run a  hybrid approach, where you combine sections of the newsletter using different strategies. You need to test out these proportions in different AB Tests.

So… it does make sense that you can end up recommending less popular products to improve your business: you are giving exposure to less popular courses, preventing them from ending up in a feedback loop. If the courses are rarely recommended, they don’t get a lot of sales/clicks. If they don’t get a lot of sales/clicks, they are rarely recommended!

Model Evaluation

To measure if the model is doing well, besides the technical metrics (Lift, ROC AUC, Average Precision, …) there are some business KPIs you can measure. These KPIs, for these types of businesses, are typically based on positive feedback signals, such as click rates and sales. Some are more short-term but lead to a less relevant intent signal (such as clicks).

For instance, you can focus on:

  • User-centric: such as the clicks per newsletter and the unsubscription rates.
  • Business-centric: click rates per course and course exposure. Course exposure is a measure of the diversity of the sent recommendations – if there’s a distribution where the initially more popular courses get more exposure, but the remaining ones also get some exposure, this will be highlighted within this metric.

Take into consideration that, while some KPIs might increase, others might decrease: for instance, you can dramatically increase course exposure rate but decrease the overall experience: this would happen if you randomly recommend a course, for instance.

Using strategies such as Student to Course recommendations, you should be improving your business-centric KPIs and decreasing your user-centric KPIs, when compared to a baseline. On the other hand, Course to Student is an approach that is more user-centric. There’s always a trade-off you need to consider and discuss with the business teams.

AB Testing

Regarding AB Testing Strategies: you will need to experiment with the proportion type of each strategy if you want to use the hybrid strategy as mentioned above. The number of groups should be dependent on the number of active users you have and the time you want to run these experiments for.

Note that in many cases, there’s a budget associated with course recommendation (for instance, you can only recommend N courses per week, due to a maximum number of sales, caused by digital license issues). In this case, AB Testing can lead to unreliable conclusions due to cannibalization bias:  the recommendations in one strategy are influencing the others, breaking the rules of standard AB Testing. We’ll talk more about this later in another blog post!

Conclusions

There’s a lot to be done after having a prediction of how much a student likes a certain product. It’s up to the Data Scientists to help define these constraints, together with the rest of the team. With a huge diversity of approaches to follow, there’s really not a “best solution”. You should quickly iterate to generate value, while continuously running R&D activities and monitoring the performance of the current approach.
Remember that before jumping into the complexities of building personalized recommendations, it’s equally crucial to have a solid eCommerce. We recommend our partner Pipecodes in case you’re looking to improve your eCommerce.

Is this the solution you need? If so, contact us. Otherwise, contact us anyway, and let’s find a better solution together!

Like this story?

Subscribe to Our Newsletter

Special offers, latest news and quality content in your inbox.

Signup single post

Consent(Required)
This field is for validation purposes and should be left unchanged.

Recommended Articles

Article
AI City Intelligence

Imagine being able to make better decisions about where to live, where to establish a new business, or how to understand the changing dynamics of urban neighborhoods. Access to detailed, up-to-date information about city environments allows us to answer these questions with greater confidence, but the challenge lies in accessing and analyzing the right data. […]

Read More
Article
EcoRouteAI: Otimização de Ecopontos com Inteligência Artificial

O Plano Estratégico para os Resíduos Urbanos (PERSU) 2030 definiu metas ambiciosas para a gestão de resíduos em Portugal, com o objetivo de aumentar a reciclagem e melhorar a sustentabilidade ambiental. No entanto, os atuais índices de reciclagem e separação de resíduos ainda estão aquém do necessário, tanto a nível nacional quanto europeu, criando desafios […]

Read More
Article
NILG.AI named Most-Reviewed AI Companies in Portugal by The Manifest

The artificial intelligence space has been showcasing many amazing technologies and solutions. AI is at its peak, and many businesses are using it to help propel their products and services to the top! You can do it, too, with the help of one of the best AI Companies in Portugal: NILG.AI. We focus on your […]

Read More