Skip to content

Amazon Personalize – How to get “Trending Now” results per country?

0

Hi everyone,

I’m working on a use case involving Trending Now / popular items and Next Best Action in Amazon Personalize. I want the model to return different trending items per country, based purely on user interactions — without hard-coding country tags on items.

What I’ve done so far:

I prepared the following datasets:

Item Interactions Dataset

Contains:

USER_ID

ITEM_ID

TIMESTAMP

EVENT_TYPE

LOCALE (e.g., PL, DE, FR)

LOCALE is marked as a categorical field in the schema.

Users Dataset

Each user has:

RESIDENCE (country of residence, e.g., PL / DE / FR)

RESIDENCE is also marked as categorical.

Filters

I created filters like this:

INCLUDE ItemId WHERE Items.LOCALE IN ("PL")

(and similar for DE, FR)

The problem:

Even though:

Users from different countries interact with different items,

LOCALE in item interactions differs per user,

Users have different RESIDENCE,

Filters load correctly,

…I still get almost identical Trending Now results for every country, even for:

users that exist in the data (PL/DE/FR),

brand-new users (cold start).

It looks as if Personalize is not learning per-country trends, even though the underlying interaction data is clearly different across regions.

My assumptions / questions:

Does Personalize ignore categorical fields in the interactions dataset unless the same fields also exist in the Items dataset?

Should LOCALE be moved to the Items dataset instead of only being present in item interactions?

Does Trending Now require something else (like itemAgeCutOff or popularity metadata) to make country-level patterns show up?

Does filtering by Users.RESIDENCE work only when the Items dataset contains matching availability fields?

Goal:

I want Personalize to:

learn popularity patterns per country based solely on interaction data,

and then let me filter by country to serve country-specific trending items.

Question:

How can I correctly configure datasets / schemas / filters so that Amazon Personalize produces different Trending Now results for different countries?

Has anyone implemented region-based trending with Personalize successfully?

Thanks in advance for any help!

asked a year ago192 views

1 Answer
0

The Trending-Now recipe in Amazon Personalize identifies items that are rapidly becoming more popular among users by analyzing interaction data. Based on your scenario, there are a few key points to understand about how this recipe works and how to achieve country-specific trending items.

First, the Trending-Now recipe only uses the Item interactions dataset for generating recommendations - it doesn't use data in Items or Users datasets when determining what's trending. This explains why you're seeing similar trending items across countries despite having different user interactions per country.

To achieve country-specific trending items, you should:

  1. Move the LOCALE field to your Items dataset instead of keeping it only in the interactions dataset. The Trending-Now recipe doesn't consider categorical fields in the interactions dataset for determining trends.

  2. Use filters properly to get country-specific recommendations. While the Trending-Now recipe doesn't use Items dataset for generating recommendations, you can still filter recommendations based on data in this dataset. Your filter approach (INCLUDE ItemId WHERE Items.LOCALE IN ("PL")) would work if LOCALE is in the Items dataset.

  3. When calling GetRecommendations, you'll need to pass the appropriate filter and filter values to restrict results to items relevant to a specific country.

The Trending-Now recipe automatically evaluates your interactions data every two hours (by default, though this frequency is configurable) and identifies trending items. You don't need to retrain the model to consider new items.

For your use case, I recommend:

  • Adding LOCALE as a field in your Items dataset
  • Creating filters based on the Items.LOCALE attribute
  • Applying these filters when calling GetRecommendations to get country-specific trending items

This approach should allow you to get different trending items per country based on the underlying interaction patterns.
Sources
Trending-Now recipe - Amazon Personalize
How new data influences real-time recommendations - Amazon Personalize
Filtering real-time recommendations - Amazon Personalize
VIDEO_ON_DEMAND use cases - Amazon Personalize

answered a year ago

  • Can I use other recipes that can handle this use case?

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.