Design a machine learning model to predict the next trending product. What data sources would you use?
Instruction: Detail the model architecture and the rationale behind the selection of each data source.
Updated
Example answer
I would first turn “trending” into a measurable decision. For illustration, suppose a retailer wants a weekly shortlist of existing products likely to show strong unit-demand growth over the next four weeks. We would agree the eligible products, growth definition, minimum volume and shortlist size before training. This does not cover inventing a new product that has no available record.
I would build product-week rows containing only information available at the scoring date: lagged sales and growth, availability, price, planned promotions, product category and age. Stockouts can suppress observed sales, so I would distinguish demand assumptions from recorded purchases. Permitted on-site search and view trends may add early signals; external search or public discussion data needs known coverage, access rights and protection against manipulation. More sources are not automatically better.
The target would use the agreed future four-week outcome, with enough elapsed time for that label to become observable. I would start with a recent-growth or seasonal baseline, then try a gradient-boosted regression or ranking model using the same historical feature cutoffs. Text-derived signals would need their own validated transformation and version.
I would backtest at successive weekly cutoffs and evaluate shortlist quality on a separate final period, including sparse and newly listed products. Compare the value and cost of acting on the list, not just prediction error. Report uncertainty, review exceptions and monitor drift after a limited rollout. A promotional intervention can itself change demand, so predictive success alone does not show that the resulting purchasing decision improved profit.