{"id":8872,"date":"2021-01-12T09:12:03","date_gmt":"2021-01-12T14:12:03","guid":{"rendered":"https:\/\/demand-planning.com\/?p=8872"},"modified":"2021-01-14T07:50:38","modified_gmt":"2021-01-14T12:50:38","slug":"updating-machine-learning-models-to-adapt-to-demand-shifts","status":"publish","type":"post","link":"https:\/\/demand-planning.com\/2021\/01\/12\/updating-machine-learning-models-to-adapt-to-demand-shifts\/","title":{"rendered":"Updating Machine Learning Models To Adapt To Demand Shifts"},"content":{"rendered":"<span class=\"cb-itemprop\" itemprop=\"reviewBody\"><hr \/>\n<p><strong>Even before the pandemic, foward-thinking retailers leveraged AI and machine learning technology (ML) for demand forecasting. In the post-Covid world, however, those ML models have failed to provide accurate predictions because they don&#8217;t know that the data they use is now obsolete due to changing demand patterns. How can we upgrade them to the new reality?<\/strong><\/p>\n<p>There are six possible ways to get a more accurate forecast:<\/p>\n<p>1 &#8211; <em><strong>Gathering data on new market behavior:<\/strong> <\/em>As dynamics within the new market stabilize, use that data set to create a new model for forecasting demand.<\/p>\n<p>2- <em><strong>Use a feature engineering approach:<\/strong><\/em> Track external data sources like price indices, market states, latest news developments, exchange rates, and related financial\/economic factors. Using these, models can generate more accurate predictive outputs.<\/p>\n<p>3 &#8211; <strong><em>Factor in up-to-date<\/em> <em>POS data<\/em><\/strong>: Analyzing recent <a href=\"https:\/\/ibf.org\/knowledge\/glossary\/pos-data-213\">POS data<\/a> can allow us to observe and react to real-time shifts in patterns of demand, improving forecast reliability. Depending on a given product\u2019s classification, the appropriate range for a <a href=\"https:\/\/ibf.org\/knowledge\/glossary\/pos-data-213\">POS data<\/a> set might be between a month to two months.<\/p>\n<p>4 &#8211; <em><strong>Use the transfer learning approach<\/strong><\/em>: If we possess any data sets relating to historical pandemics or behavior based on similar principles, we\u2019re able to use that data within the context of this present-day pandemic.<\/p>\n<p>5 &#8211;<em><strong> Utilize a model for information cascades:<\/strong> <\/em>Merge the cascade modeling with current <a href=\"https:\/\/ibf.org\/knowledge\/glossary\/pos-data-213\">POS data<\/a> sets to create a demand forecasting model that is able to recognize aggregated consumer behavior patterns and predict herd patterns for future sales.<\/p>\n<p>6 &#8211; <em><strong>Leverage NLP (natural language processing) technology:<\/strong><\/em> NLP analyzes actual consumer comments and posts from an array of social media sources, from media platforms to popular social media sites. NLP can use sentiment analysis algorithms to collect and analyze conversations and discussions from real customers. This gives an unfiltered look at consumers\u2019 behavioral patterns, preferences and attitudes.<\/p>\n<p>If you are looking for a way to improve your current ML models and thinking of building a demand forecasting feature from scratch, this will help you to choose the best approach depending on your business type.<\/p>\n<p>A data scientist generally works with historical data, and it\u2019s impossible to predict such drastic changes as a worldwide pandemic. But as a general rule, you should prioritize flexibility in retraining your models, add more external factors as predictors, and account for a short-term perspective as long-term models become less relevant.<\/p>\n<p>We tackled this problem with pre-Covid models for a restaurant business. Here is an example from our dashboard:<\/p>\n<div id=\"attachment_8873\" style=\"width: 748px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-8873\" class=\"size-full wp-image-8873\" src=\"https:\/\/demand-planning.com\/wp-content\/uploads\/2021\/01\/forecasting-dashboard.png\" alt=\"forecasting dashboard\" width=\"738\" height=\"356\" srcset=\"https:\/\/demand-planning.com\/wp-content\/uploads\/2021\/01\/forecasting-dashboard.png 738w, https:\/\/demand-planning.com\/wp-content\/uploads\/2021\/01\/forecasting-dashboard-300x145.png 300w\" sizes=\"(max-width: 738px) 100vw, 738px\" \/><p id=\"caption-attachment-8873\" class=\"wp-caption-text\">Forecasting dashboard showing normal revenue before the pandemic.<\/p><\/div>\n<div id=\"attachment_8874\" style=\"width: 717px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-8874\" class=\"size-full wp-image-8874\" src=\"https:\/\/demand-planning.com\/wp-content\/uploads\/2021\/01\/forecasting-dashboard-2.png\" alt=\"forecasting dashboard showing revenue\" width=\"707\" height=\"348\" srcset=\"https:\/\/demand-planning.com\/wp-content\/uploads\/2021\/01\/forecasting-dashboard-2.png 707w, https:\/\/demand-planning.com\/wp-content\/uploads\/2021\/01\/forecasting-dashboard-2-300x148.png 300w\" sizes=\"(max-width: 707px) 100vw, 707px\" \/><p id=\"caption-attachment-8874\" class=\"wp-caption-text\">Forecasting dashboard revealing revenue post-lockdown.<\/p><\/div>\n<p>&nbsp;<\/p>\n<p>In this case, we rebuild our models from scratch, losing a degree of accuracy. At this point, the historical data are not relevant anymore and we wait for new statistics and patterns inside the data.<\/p>\n<p>Not every demand forecasting article on the internet fits the particular needs of your business and industry. Effective approaches vary dramatically depending on business types &#8211; here are some of the distinctions and varying ways to address demand forecasting:<\/p>\n<h2><strong>Small vs Large Businesses<\/strong><\/h2>\n<p>Small and large businesses should be approaching forecasting in completely different manners. First of all, the acceptance criteria for huge businesses is significantly smoother than for small businesses. We can have a higher error for prediction in quantity, as high sales volume allows for greater tolerance for error. When it comes to historical data, large businesses have a higher volume of collected data, making it easier to identify patterns in customer behavior. With small businesses, it\u2019s often necessary to test your hypothesis to prove the correlations between sales volume and predictors.<\/p>\n<div id=\"attachment_8875\" style=\"width: 748px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-8875\" class=\"size-full wp-image-8875\" src=\"https:\/\/demand-planning.com\/wp-content\/uploads\/2021\/01\/demand-volatility.png\" alt=\"Chart showing demand volatility\" width=\"738\" height=\"252\" srcset=\"https:\/\/demand-planning.com\/wp-content\/uploads\/2021\/01\/demand-volatility.png 738w, https:\/\/demand-planning.com\/wp-content\/uploads\/2021\/01\/demand-volatility-300x102.png 300w\" sizes=\"(max-width: 738px) 100vw, 738px\" \/><p id=\"caption-attachment-8875\" class=\"wp-caption-text\">Demand for a product at a large business, showing clear demand patterns.<\/p><\/div>\n<div id=\"attachment_8876\" style=\"width: 748px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-8876\" class=\"size-full wp-image-8876\" src=\"https:\/\/demand-planning.com\/wp-content\/uploads\/2021\/01\/demand-volatility-2.png\" alt=\"Image of a company's sales history\" width=\"738\" height=\"248\" srcset=\"https:\/\/demand-planning.com\/wp-content\/uploads\/2021\/01\/demand-volatility-2.png 738w, https:\/\/demand-planning.com\/wp-content\/uploads\/2021\/01\/demand-volatility-2-300x101.png 300w\" sizes=\"(max-width: 738px) 100vw, 738px\" \/><p id=\"caption-attachment-8876\" class=\"wp-caption-text\">Demand for a small business showing erratic sales patterns.<\/p><\/div>\n<h2><strong>Online vs Offline<\/strong><\/h2>\n<p>Online sales allow for a greater range of predictors and external factors in your modeling. It\u2019s not necessary to have a POS (point of sale) system, as you\u2019re able to collect all relevant data from the website. You know more information about customers and collect their historical purchases. With different predictors, you can apply a wider range of machine learning models: Gradient Boosting, Random Forest, SVR, Multiple Regression, KNN, etc. With offline sales, you are often limited to historical sales only. The best approach here is to use Time Series Analysis.<\/p>\n<h2><strong>The USA vs Europe<\/strong><\/h2>\n<p>Regional differences play a huge factor in predictive modeling, as varying locations will have different behaviors both in specific sales and general cultural factors. It\u2019s worth noting that certain regions\u2019 consumers are influenced to different degrees by marketing campaigns. Additionally, holidays vary by region, and you\u2019ll need to decide whether to add this feature to the model or not. Take into account different legal constraints (limit for product amount) etc.<\/p>\n<h2><strong>Perishable vs Non-Perishable Products<\/strong><\/h2>\n<p>Finally, it\u2019s crucial to factor product type within your demand modeling. With perishable products, you need to set up the right metrics to penalize the model when the prediction is much higher than the real value, as the consequences for excess inventory are significant. You need to be careful with data preparation and work with outlier detection because this prediction should be extremely sensitive to any changes.<\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>The pandemic has made us all hyper-aware of the limitations and constraints of forecasting models, but the best practices in forecasting are the same whether we&#8217;re in a pandemic or not. You should always be striving to fit your particular business model and business needs to your forecasting tools, to attract new customers, increase your revenue, and expand your market share.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-8866 size-medium alignleft\" src=\"https:\/\/demand-planning.com\/wp-content\/uploads\/2021\/01\/Predictive-Analytics-In-Business-Forecasting-2-235x300.jpg\" alt=\"\" width=\"235\" height=\"300\" srcset=\"https:\/\/demand-planning.com\/wp-content\/uploads\/2021\/01\/Predictive-Analytics-In-Business-Forecasting-2-235x300.jpg 235w, https:\/\/demand-planning.com\/wp-content\/uploads\/2021\/01\/Predictive-Analytics-In-Business-Forecasting-2-803x1024.jpg 803w, https:\/\/demand-planning.com\/wp-content\/uploads\/2021\/01\/Predictive-Analytics-In-Business-Forecasting-2-768x980.jpg 768w, https:\/\/demand-planning.com\/wp-content\/uploads\/2021\/01\/Predictive-Analytics-In-Business-Forecasting-2-1204x1536.jpg 1204w, https:\/\/demand-planning.com\/wp-content\/uploads\/2021\/01\/Predictive-Analytics-In-Business-Forecasting-2-1605x2048.jpg 1605w, https:\/\/demand-planning.com\/wp-content\/uploads\/2021\/01\/Predictive-Analytics-In-Business-Forecasting-2-scaled.jpg 2006w\" sizes=\"(max-width: 235px) 100vw, 235px\" \/><strong>To find about more about practical applications of machine learning models, pick up a copy of Eric Wilson&#8217;s new book, <em><a href=\"https:\/\/ibf.org\/books\/predictive-analytics-for-business-forecasting-and-planning-111\">Predictive Analytics For Business Forecasting &amp; Planning<\/a>.\u00a0<\/em>Written in easy-to-understand language, it breaks down how machine learning and predictive analytics can be applied in your organization to improve forecast accuracy and gain unprecedented insight. <a href=\"https:\/\/ibf.org\/books\/predictive-analytics-for-business-forecasting-and-planning-111\">Get your copy<\/a>.\u00a0<\/strong><\/p>\n<\/span>","protected":false},"excerpt":{"rendered":"<p>Even before the pandemic, foward-thinking retailers leveraged AI and machine learning technology (ML) for demand forecasting. In the post-Covid world, however, those ML models have failed to provide accurate predictions because they don&#8217;t know that the data they use is now obsolete due to changing demand patterns. How can we upgrade them to the new [&hellip;]<\/p>\n","protected":false},"author":37228,"featured_media":8880,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[390],"tags":[512,342,532],"class_list":{"0":"post-8872","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-advanced-analytics","8":"tag-covid-19","9":"tag-machine-learning","10":"tag-uncertainty"},"_links":{"self":[{"href":"https:\/\/demand-planning.com\/wp-json\/wp\/v2\/posts\/8872"}],"collection":[{"href":"https:\/\/demand-planning.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/demand-planning.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/demand-planning.com\/wp-json\/wp\/v2\/users\/37228"}],"replies":[{"embeddable":true,"href":"https:\/\/demand-planning.com\/wp-json\/wp\/v2\/comments?post=8872"}],"version-history":[{"count":0,"href":"https:\/\/demand-planning.com\/wp-json\/wp\/v2\/posts\/8872\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/demand-planning.com\/wp-json\/wp\/v2\/media\/8880"}],"wp:attachment":[{"href":"https:\/\/demand-planning.com\/wp-json\/wp\/v2\/media?parent=8872"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/demand-planning.com\/wp-json\/wp\/v2\/categories?post=8872"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/demand-planning.com\/wp-json\/wp\/v2\/tags?post=8872"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}