<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Sowmya Kumar on Medium]]></title>
        <description><![CDATA[Stories by Sowmya Kumar on Medium]]></description>
        <link>https://medium.com/@sowmyakumar10?source=rss-9b64b6a1f452------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Zx2Eyvp5FFqDG0cNTVK0cw.jpeg</url>
            <title>Stories by Sowmya Kumar on Medium</title>
            <link>https://medium.com/@sowmyakumar10?source=rss-9b64b6a1f452------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 09:28:32 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sowmyakumar10/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Four reasons for a custom-tailored forecasting solution for supply chains]]></title>
            <link>https://medium.com/data-science-at-microsoft/four-reasons-for-a-custom-tailored-forecasting-solution-for-supply-chains-43f20d48220a?source=rss-9b64b6a1f452------2</link>
            <guid isPermaLink="false">https://medium.com/p/43f20d48220a</guid>
            <category><![CDATA[time-series-analysis]]></category>
            <category><![CDATA[forecasting]]></category>
            <category><![CDATA[moving-average]]></category>
            <category><![CDATA[time-series-forecasting]]></category>
            <category><![CDATA[supply-chain]]></category>
            <dc:creator><![CDATA[Sowmya Kumar]]></dc:creator>
            <pubDate>Tue, 12 Jul 2022 07:18:24 GMT</pubDate>
            <atom:updated>2022-07-12T16:21:56.404Z</atom:updated>
            <content:encoded><![CDATA[<p>Forecasting is a subset of predictive analytics, which generally involves building models that can provide plausible descriptions of the past while making use of those learnings to predict events in the future. With predictive analytics, the enterprise learns from its cumulative experience (in the form of data) and takes action to apply what it has learned. But because of a dynamic time component that adds some complications to the forecasting problem, time series forecasting may be overlooked, depriving organizations of the fruits of this powerful predictive tool.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FE5T3CiRVJE3_LPGSFdgwg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@yasamine?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Yasamine June</a> on <a href="https://unsplash.com/?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a>.</figcaption></figure><p>Forecasting finds applications in multiple business domains because the use of forecasting strategies has been shown to support the supply chain, sales, and marketing operations by:</p><ul><li>Increasing customer satisfaction</li><li>Improving labor planning</li><li>Optimizing accuracy by time</li></ul><p>Despite these successes, <a href="https://www.gartner.com/en/supply-chain/role/supply-chain-planning-leaders">Gartner</a> indicates that 60 percent of companies are dissatisfied with the fit between their supply planning objectives and supply planning capability.</p><h3><strong>What is forecasting in supply chain management?</strong></h3><p>Forecasting is a key element in supply chain management, whether we are ordering finished products or raw materials that must be assembled. There is a balance to achieve between when a supplier has a product ready and when it is ordered. To deliver orders faster and cheaper, for example, we must have inventory in stock. But being agile and responding to demand changes is also critical to the supply chain. Tracking inventory velocity over time involves being able to keep the bestsellers in stock while also staying ahead of production.</p><p>Key factors to consider may include:</p><ul><li>Lead times of product and suppliers</li><li>Turnover rate of products</li><li>Transit times by ocean or air</li><li>Warehouse receiving times</li><li>Storage costs</li></ul><p>Supply chain forecasting is based largely on evaluating supply. But demand also plays into it — factors such as seasons, supply chain trends, the economy, and global events can all lead to spikes or slower sales, which can affect inventory control.</p><p>There are several off-the-shelf tools available to apply forecasting to any time series. It’s important to be cautious about interpreting the meaning of the results when using these tools to produce forecasts, however, and there are some challenges that we must keep in mind that a ready-to-use tool cannot solve. This means there is not a one-size-fits-all approach, and each time series application depends on different scenarios. In this article I highlight four of these scenarios to keep in mind while solving a forecasting problem at scale.</p><h3><strong>When the data is too granular and noisy</strong></h3><p>Forecasting in different domains comes with different challenges. One of the goals of forecasting in the supply chain is to ensure that a product of a specific SKU is available at the right location and at the right time. This means having visibility into the number of units of each SKU that are needed at a certain location. So, if we have 10 SKUs for each of 100 products selling at 100 locations, we are talking about forecasting 100,000 time series at once. And if we add a time grain element such as daily or weekly, which is a usual requirement for a supply chain, then we are looking at these 100,000 time series at daily and weekly grains. This introduces plenty of noise.</p><p>An off-the-shelf forecasting tool can produce a forecast from a more generic time series that has less noise along with fewer crests and troughs. However, this same tool does not make it easy to handle a dataset with a lower grain and lot of noise.</p><p><em>How to address:</em> Imputation/correction techniques can be used to handle noisy data. The <a href="https://en.wikipedia.org/wiki/Exponential_smoothing">exponential</a> and <a href="https://en.wikipedia.org/wiki/Moving_average">moving average</a> approaches are two of the more simple and popular techniques for smoothing a dataset. <a href="https://en.wikipedia.org/wiki/Anomaly_detection">Anomaly detection</a> is another technique that can be used in a two-part process to first detect anomalies and then apply smoothing techniques to them afterward.</p><h3><strong>By varying the length of the time series</strong></h3><p>When we plan to forecast, we must consider the levels at which we want to forecast:</p><ol><li>Product: Groups of products, different types of products, items, SKUs.</li><li>Location: Regions, countries, warehouses, stores.</li><li>Time: Year, quarter, month, week, day, hour.</li></ol><p>These are all examples of what is called “grain.” To reflect them reliably in a forecast, understanding the data hierarchies involved and the business relevance for why a forecast is needed becomes key.</p><p>Understanding the history of a time series can vary depending on the length of time a product is on the shelf or alive in the market. Because different products can be launched at different points of time and in different locations, predicting the related time series can become challenging even when there is history to understand the patterns.</p><p><em>How to address:</em> Time series with less history can be dealt with by finding an older product that is similar to the new one and then mimicking a percentage of its historical sales data, enabling the application of your preferred forecasting technique.</p><h3><strong>With longer horizons</strong></h3><p>How far ahead would we like to forecast? This is called the <em>horizon</em>. Do we want to forecast a few days, weeks, or even months into the future? Models perform better with more historical data depending on the forecasting horizon needed. But often, products are new, or new product variations are launched frequently, which makes the forecasting task more difficult owing to a more limited history.</p><p><em>How to address:</em> This is a hard challenge. One of the ways to address it is to reconsider the forecast grain and use aggregation-disaggregation methods to provide the forecast with the requested grain.</p><p>For example, if we have a request to forecast at a monthly level for one year (i.e., 12 months), one way to approach it is to disaggregate the history from monthly to weekly and then apply modeling techniques to produce a forecast at the weekly level and then aggregate to a monthly level to deliver the forecast.</p><h3><strong>With supply chain disruptions and changes in demand patterns</strong></h3><p>Covid-19 wreaked havoc on supply chain forecasting in more ways than many could think of previously. This is not new information but addressing it has become more important than ever.</p><p>Online shopping became a favorite during lockdown, with online orders doubling compared to the previous year but crippling many supply chains that support ecommerce. Ecommerce merchants who source supplies from China saw increases in their lead times stretch from days to months. Staffing issues, new health regulations, and increases in shipping costs created bottlenecks at borders everywhere. This has extended from 2021 well into 2022.</p><p>The long-awaited <a href="https://en.wikipedia.org/wiki/Brexit">Brexit</a> also made an impact on cross-border sales in the European Union and United Kingdom as suppliers contended with new regulations and adjusted their supply chain models accordingly. Additionally, the <a href="https://en.wikipedia.org/wiki/2022_Russian_invasion_of_Ukraine">Russian invasion of Ukraine</a> in 2022 has resulted in regional manufacturers being unable to source raw materials that typically come from Ukraine, Russia, and Belarus.</p><p>Global logistic networks can be quite vulnerable to political instability, natural disasters, and regulatory changes. All of these are happening more frequently and with increased severity, as has become common knowledge.</p><p>Trends come and go, but without appropriate stocking levels, we can miss out on spikes in demand altogether. For ecommerce as well as brick-and-mortar locations, managing these demands is a complex undertaking, as customers can switch the channels where they shop and thereby create more challenging decisions for suppliers about where to stock inventory.</p><p>As a result, these disruptions and trend changes can have a significant impact on producing reliable forecasts. This is because these discontinuities cause crests and troughs in the historical data. When this historical data is fed as input into the model, it takes these patterns into account to create forecasts that are driven by these variations, but in fact we do not want these disruptions to be reflected in future forecasts.</p><p><em>How to address:</em> Apply corrections such as smoothing techniques and others as described above to rectify past data so as to lessen the impact on forecast results.</p><h3><strong>Conclusion</strong></h3><p>A ready forecasting solution is built to address multiple forecasting scenarios, and in this way is built to generalize most common scenarios. But as complexity increases in the supply chain — such as increases in the number of products, more variations in products, supply chain disruptions, and changes in trends — generalization might not work if the solution is simply used as-is and without adjustments.</p><p>In this article I have highlighted four significant scenarios to keep in mind while planning to buy a forecasting solution or build one from scratch in house. Developing a solution to address each of these scenarios should be considered alongside a ready-made tool.</p><p>Managing to provide an accurate forecast is not easy owing to supply chain disruptions, trend changes, and other complexities involved. This is an ongoing challenge that industrial data science experts continue to work on and share knowledge among the community.</p><p><em>Sowmya Ramesh Kumar is on </em><a href="https://www.linkedin.com/in/sowmya-kumar-87b91916/"><em>LinkedIn</em></a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=43f20d48220a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science-at-microsoft/four-reasons-for-a-custom-tailored-forecasting-solution-for-supply-chains-43f20d48220a">Four reasons for a custom-tailored forecasting solution for supply chains</a> was originally published in <a href="https://medium.com/data-science-at-microsoft">Data Science + AI at Microsoft</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Technical debt in Machine Learning: Pay off this “high interest rate credit card” sooner rather…]]></title>
            <link>https://medium.com/data-science-at-microsoft/technical-debt-in-machine-learning-pay-off-this-high-interest-rate-credit-card-sooner-rather-34396d525dff?source=rss-9b64b6a1f452------2</link>
            <guid isPermaLink="false">https://medium.com/p/34396d525dff</guid>
            <category><![CDATA[technical-debt]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[mlops]]></category>
            <dc:creator><![CDATA[Sowmya Kumar]]></dc:creator>
            <pubDate>Tue, 24 May 2022 07:17:32 GMT</pubDate>
            <atom:updated>2022-05-24T07:17:32.782Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Technical debt in Machine Learning: Pay off this “high interest rate credit card” sooner rather than later</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l7FSuNCDbF2nrpB1BHXN9Q.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@towfiqu999999?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Towfiqu barbhuiya</a> on <a href="https://unsplash.com/?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a>.</figcaption></figure><p>Machine Learning (ML) and Artificial Intelligence (AI) are of mainstream prominence now, as implementation of these technologies has grown exponentially in recent years. New research in ML and a related area, Deep Learning, continues to explode across industries and use cases. As a result, ML and AI have moved well beyond the proof-of-concept stage using only academic, sample datasets in sandbox environments to supporting actual business-critical processes in a variety of industries in the space of only a few years.</p><p>One of the biggest challenges in such a fast-moving environment is the rapid buildup of <a href="https://en.wikipedia.org/wiki/Technical_debt">technical debt</a>. Because organizations often prioritize the fast implementation of technology in production environments to realize business impact, technical debt inevitably accrues, and ML and AI systems are not immune.</p><p><em>Technical debt</em> is a concept introduced by <a href="https://en.wikipedia.org/wiki/Ward_Cunningham">Ward Cunningham</a>. Just as in the financial world, debt is necessary for speed and building new systems. In this way, debt is inevitable but financial debt of the “bad kind” can cause serious outcomes to the financial health of individuals, companies, and economies — and likewise technical debt for the engineering health of ML and AI projects. Cunningham explains that doing things “quick and dirty” can introduce many complications in the code. This is part of the costs and interest we pay for incurring the debt.</p><p>Here are three fantastic ML/AI papers that explore this issue:</p><ul><li><a href="https://research.google/pubs/pub43146/">Machine Learning: The High Interest Credit Card of Technical Debt</a>, NIPS’14</li><li><a href="https://proceedings.neurips.cc/paper/2015/file/86df7dcfd896fcaf2674f757a2463eba-Paper.pdf">Hidden Technical Debt in Machine Learning Systems</a>, NIPS’15</li><li><a href="https://research.google/pubs/pub45742/">What’s your ML test score?</a>, NIPS’16</li></ul><p>Other extensive research is also underway, both in the academic and practitioner spheres.</p><p>Technical debt in ML and AI occurs in three aspects: 1) code dependencies, 2) data dependencies, and 3) system dependencies. I review each one in turn.</p><h3>Code dependencies</h3><p>Traditional software engineering practice has shown that employing strong abstraction boundaries using encapsulation and modular design helps to create maintainable code in which it is easy to make isolated changes and improvements. Unfortunately, it is difficult to enforce strict abstraction boundaries for ML systems by requiring these systems to adhere to specific intended behavior. Indeed, arguably the most important reason for using an ML system is precisely that the desired behavior cannot be effectively implemented in software logic without having a dependency on external data. The resulting erosion of boundaries can cause significant increases in technical debt. What follows are some of the issues of this form.</p><h4>Entanglement</h4><p>An ML package is a tool for mixing data sources together. That is, ML models are machines for creating entanglement and making the isolation of improvements effectively impossible. This is referred to as the CACE (pronounced as “cake”) Principle: <strong>Changing Anything Changes Everything.</strong> Nothing is independent.</p><p><strong>How to pay it off.</strong> There are two methods:</p><ol><li>Isolate models and service ensembles by maintaining a balance of cost between managing separate models and enforcing modularity, which might reduce entanglement.</li><li>Develop methods of gaining deep insights into the behavior of model predictions by developing a visualization tool and metrics across many dimensions.</li></ol><h4>Hidden feedback loops</h4><p>Systems that learn from real-world behavior are intended to be part of a feedback loop. For example, a system for predicting the click-through rate (CTR) of news headlines on a website likely relies on user clicks as training labels, which in turn depends on previous predictions from the model. This leads to issues in analyzing system performance.</p><p><strong>How to pay it off.</strong> Look carefully for hidden feedback loops and remove them whenever feasible.</p><h3>Data dependencies</h3><p>Dependencies on different systems, including input features from another ML model, can create complexity that is harder to untangle than code dependencies. Whereas code dependencies can be detected using linkage graphs and analysis, data dependencies can go unseen if there is no visibility across the system.</p><p>Data dependencies can creep into an ML model in several ways:</p><ul><li><strong>Legacy features.</strong> The most common is that a feature <em>Z</em> is included in a model early in its development. As time goes on, other features are added that make <em>Z</em> mostly or entirely redundant, but this is not detected.</li><li><strong>Bundled features.</strong> Sometimes, a set of features is evaluated and found to be beneficial. Under the burden of a deadline or something similar, however, all the features in the bundle are added to the model together. This dynamic can hide features that add little or no value.</li><li><strong>ǫ-features.</strong> ML researchers naturally find satisfaction in improving model accuracy. It can be tempting to add a new feature to a model to improve accuracy even when the accuracy gain is very small or when the complexity overhead might be high.</li></ul><p><strong>How to pay it off.</strong> Remove features from the model that offer only little or no loss in accuracy. Test features from time to time to ascertain whether they are contributing to accuracy or are just mixing with other features in ways that dilute the weight of their effects. Another approach is to regularly evaluate the effect of removing individual features from a given model and then act on this information whenever possible.</p><h3>System dependencies</h3><p>It is sadly common for systems that incorporate ML methods to end up with high-debt design patterns. Here are some system anti-design patterns that should be avoided or refactored wherever possible.</p><h4>Glue code</h4><p>ML researchers tend to develop general-purpose solutions as self-contained packages that are designed to serve as a single learning system that solves many problems. This approach is highly engineered to supply one large-scale problem with many experimental solutions. Although these generic systems are helpful, it can become difficult to manage the massive amount of supporting code that gets added outside of the general-purpose packages. It also becomes costly for long-term maintenance. In this way, the glue code pattern implicitly embeds this additional construction in supporting code instead of in the principally designed components.</p><p><strong>How to pay it off.</strong> Glue code can be reduced by choosing to re-implement specific algorithms within the broader system architecture. At first, this might seem like a high cost to pay — re-implementing an ML package in C++ or Java that is already available in R or MATLAB. But the resulting system will have less glue code to integrate in the overall system.</p><h4>Pipeline jungles</h4><p>As a special case of glue code, <em>pipeline jungles</em> often appear in data preparation. They can evolve organically as new signals are identified and as new information sources are added. Without care, however, this system can become a jungle of scrapes, joins, and sampling steps — often with intermediate files as output. Managing these pipelines, finding errors, and recovering from failures can be difficult and costly. Testing such pipelines requires expensive end-to-end integration tests.</p><p><strong>How to pay it off.</strong> Pipeline jungles can be avoided by thinking holistically about data collection and feature extraction. The clean-slate approach of scrapping a pipeline jungle and redesigning from the beginning is indeed a big investment of engineering effort, but it can help reduce ongoing costs and speed further innovation.</p><h3>Measuring debt and paying it off</h3><p>Technical debt is a great metaphor but unfortunately it does not provide strict metrics that can be tracked over time. We want our teams to move faster and deliver quicker results, but we also want them to establish low debt good practices that will keep the cost of agility under control.</p><p>Some questions to consider include:</p><ol><li>Does improving one model or signal degrade others?</li><li>How quickly can we onboard new members to the team with our existing codebase and architecture?</li><li>How easily can an entirely new algorithm be tested at full scale?</li></ol><p>Some of the approaches that teams should always consider as good practice include:</p><ul><li>Code refactoring</li><li>Unit test enhancements</li><li>Dead code and comments erasure</li><li>Dependencies reduction</li><li>Review of documentation</li></ul><p>Paying down ML-related technical debt requires dedicated time and a specific commitment that can be achieved by a shift in mindset and team culture. Recognizing, prioritizing, and rewarding the effort involved in reducing technical debt should be an important pillar to consider for the long-term health of successful data science teams.</p><p><em>Sowmya Ramesh Kumar is on </em><a href="https://www.linkedin.com/in/sowmya-kumar-87b91916/"><em>LinkedIn</em></a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34396d525dff" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science-at-microsoft/technical-debt-in-machine-learning-pay-off-this-high-interest-rate-credit-card-sooner-rather-34396d525dff">Technical debt in Machine Learning: Pay off this “high interest rate credit card” sooner rather…</a> was originally published in <a href="https://medium.com/data-science-at-microsoft">Data Science + AI at Microsoft</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>