<?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 Joseph Gartner on Medium]]></title>
        <description><![CDATA[Stories by Joseph Gartner on Medium]]></description>
        <link>https://medium.com/@joseph-gartner?source=rss-d02ce97287bd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*BNNSpHQVKFt-DGdW4dXDMg.jpeg</url>
            <title>Stories by Joseph Gartner on Medium</title>
            <link>https://medium.com/@joseph-gartner?source=rss-d02ce97287bd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 17:13:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@joseph-gartner/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[ChatGPT: Crossing the Minimum Viable Model Threshold for Computer Language]]></title>
            <link>https://ai.plainenglish.io/chatgpt-crossing-the-minimum-viable-model-threshold-for-computer-language-e743e8baa936?source=rss-d02ce97287bd------2</link>
            <guid isPermaLink="false">https://medium.com/p/e743e8baa936</guid>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Joseph Gartner]]></dc:creator>
            <pubDate>Sat, 11 Feb 2023 16:46:48 GMT</pubDate>
            <atom:updated>2023-02-14T04:12:13.101Z</atom:updated>
            <content:encoded><![CDATA[<p>If you are even a casual follower of tech news, you will likely have heard about <a href="https://openai.com/blog/chatgpt/">ChatGPT</a>. If you work in tech, your LinkedIn feed almost certainly has frequent posts about the potential impact this new technology will have. What is interesting, is that ChatGPT really isn’t new technology, rather it is the refinement and combination of existing techniques that are bringing the chatbot about the threshold of the Minimum Viable Model (MVM). Reading OpenAI’s own description of ChatGPT, this model is an iterative improvement on a previous model they previously released.</p><p>The technology curve is characterized by a rapid uptick caused by new techniques, followed by periods of fine-tuning (depicted below). As with other technology examples in the past, the moment when a technology crosses the threshold of commercial viability is often during a fine-tuning phase, and young companies push hard to hit this threshold of “minimum viable product”. While overall performance improves more slowly at these times, it is typically the case that fine-tuning activities are needed to cross the threshold.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HijFylsTsAdebFoW2LC1eg.png" /><figcaption>The Characteristic Curve of Technology Development. (Illustrated by Author)</figcaption></figure><p>Technology adoption has become a new fact of life. Desktop computers were not commonplace in the office until the 1980s. That technology has been replaced first by laptops, and further still by smartphones. When I was born, the internet had not yet come into existence; now people go on trips to unplug. There is great uncertainty surrounding what will happen as a result of this new technology, it’s helpful to look at other seminal moments in AI to give us clues as to what will occur.</p><p>As the article title suggests, this is not the first time this has or will occur. For a tactile example, I suggest reading Gary Kasparov’s 2017 book “<a href="https://www.goodreads.com/en/book/show/31934455">Deep Thinking: Where Machine Intelligence Ends and Human Creativity Begins</a>”. Kasparov, widely recognized as one of the <a href="https://www.chess.com/article/view/best-chess-players-of-all-time">greatest chess players</a> of all time, was the first world chess champion to lose a match series to a computer. His book masterfully recaps the history of chess computers and shows the emotion and uncertainty of watching a machine surpass you in a skill you’ve spent a lifetime developing.</p><p>This development follows the characteristic curve from above. As Kasparov details, there are many ways in which computers can become more adept at playing chess. For reasons of simplicity, I will put them into the groups of improvements to computer hardware and improvements to the code running on this hardware. For many years, building specialized hardware fell entirely to universities, as the gap between the MVM and the state of the art of too large. As these experiments improved both hardware and algorithms, IBM took the lead in building chess computers. Their creation, Deep Blue, would ultimately be the machine to take the first computer world championship.</p><p>Enough time has passed since this occurred to assess predictions about the impact of these thinking machines. At the time, people predicted that no human would bother to play chess in an era where computers could beat the world champion. That prediction <a href="https://www.nytimes.com/2022/06/17/crosswords/chess/chess-is-booming.html">has not panned out</a>. What we have seen is that Chess engines offer an insurmountable advantage in games, have democratized access to chess knowledge, and ultimately have proven to be an indispensable tool for world-class performers.</p><p>ChatGPT inherits a similar timeline. For many years, the idea of a machine language model was a highly academic pursuit. As breakthroughs continued to happen, the cutting edge became sole ownership of FAANG companies. Google, generally thought of as the overall leader, has made notable contributions including both in <a href="https://research.google/pubs/?area=data-mining-and-modeling">algorithms</a> and specialized <a href="https://cloud.google.com/tpu/docs/tpus">hardware</a>. As the MVM threshold has been passed, the technology will transition from theoretically viable to ubiquitous.</p><p>The splash this new technology is creating is significant. Microsoft has made an estimated $10B <a href="https://www.reuters.com/technology/microsoft-talks-invest-10-bln-chatgpt-owner-semafor-2023-01-10/">investment</a> in this technology. For many years, Google has been considered the uncontested leader of search, but layering in ChatGPT has the potential to <a href="https://www.nytimes.com/2022/12/21/technology/ai-chatgpt-google-search.html">reinvent the search experience</a>. It should not be understated how important this is, as search represents a significant component of how many people acquire new information. In writing this article, I execute no less than 30 Google searches for gathering links, checking facts, and even a spelling check (is it loose or lose).</p><p>Scrolling through LinkedIn, posts about ChatGPT may give you whiplash as they wildly swing from its potential to revolutionize a given field, to posts pointing to edge cases declaring ChatGPT is “broken”. The latter set of posts is all free test engineering work as ChatGPT 2.0 is under development. The underlying output is generally too good to be dismissed, and the attention is the signal that large companies need to invest heavily and make these technologies viable.</p><p>So what will change?</p><ol><li>As stated, internet search will be the top priority. While Bing has rolled this out already, I suspect there will be a few months of iteration and refinement until this really takes off, and Google is already fighting back with Bard. My suspicion is that if Bing can ride current momentum, it has a chance of peeling off a significant portion of Google’s current search dominance.</li><li>Content creation will change rapidly. Much like chess bots being indispensable tools in the arsenals of chess grandmasters, content creators will have a <a href="https://gutenberghub.com/chatgpt-quick-overview/">new tool that they must master in order to remain in business</a>. It will also mean the best writers underlying skill sets change. As an example, newspapers have traditionally needed strong writing skills. These technologies will be capable of generating summaries quickly with little to no effort (this is already happening in sports for articles summarizing games). Writers will now be prized for their investigation and editorial skills much more than their ability to synthesize text.</li><li>Knowledge workers are on notice. As Lex Fridman notes, “<a href="https://twitter.com/lexfridman/status/1622280318861418497">Humans are an API to ChatGPT</a>”. ChatGPT is already <a href="https://www.pcmag.com/news/chatgpt-passes-google-coding-interview-for-level-3-engineer-with-183k-salary">really good at writing code</a>. I develop healthcare models to improve health outcomes and equity in my current role. Though I have spent a lot of time developing an understanding of the process of building models, many of the mechanics are automated by my company’s software. My team and I still have much work to do; instead of spending most of our time thinking about the mechanics of machine learning, we instead interface with healthcare stakeholders to make these models successful. As tools and technologies improve, these critical thinking skills will only be further emphasized. All programmers, data scientists, and analysts will need to know how to use these tools.</li></ol><p>ChatGPT stands on the shoulders of giants. It does not take away the efforts or accomplishments of the team that built it, but it is worth recognizing the years of work that proceeded this breakthrough. In 25 years, I believe we will look back at this moment as another “deep blue” instance. The difference here is that the model is no longer playing games, but living in the real world.</p><p>ChatGPT stands on the shoulders of giants. It does not take away the efforts or accomplishments of the team that built it, but it is worth recognizing the years of work that proceeded this breakthrough. In 25 years, I believe we will look back at this moment as another “deep blue” instance. The difference here is that the model is no longer playing games, but living in the real world.</p><p><em>More content at </em><a href="https://plainenglish.io/"><strong><em>PlainEnglish.io</em></strong></a><em>. Sign up for our </em><a href="http://newsletter.plainenglish.io/"><strong><em>free weekly newsletter</em></strong></a><em>. Follow us on </em><a href="https://twitter.com/inPlainEngHQ"><strong><em>Twitter</em></strong></a>, <a href="https://www.linkedin.com/company/inplainenglish/"><strong><em>LinkedIn</em></strong></a><em>, </em><a href="https://www.youtube.com/channel/UCtipWUghju290NWcn8jhyAw"><strong><em>YouTube</em></strong></a><em>, and </em><a href="https://discord.gg/GtDtUAvyhW"><strong><em>Discord</em></strong></a><strong><em>.</em></strong></p><p><strong><em>Interested in scaling your software startup</em></strong><em>? Check out </em><a href="https://circuit.ooo/?utm=publication-post-cta"><strong><em>Circuit</em></strong></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e743e8baa936" width="1" height="1" alt=""><hr><p><a href="https://ai.plainenglish.io/chatgpt-crossing-the-minimum-viable-model-threshold-for-computer-language-e743e8baa936">ChatGPT: Crossing the Minimum Viable Model Threshold for Computer Language</a> was originally published in <a href="https://ai.plainenglish.io/">Artificial Intelligence in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Importance of Interpretability in Healthcare AI]]></title>
            <link>https://medium.com/data-science/the-importance-of-interpretability-in-healthcare-ai-cab3eb46b67?source=rss-d02ce97287bd------2</link>
            <guid isPermaLink="false">https://medium.com/p/cab3eb46b67</guid>
            <category><![CDATA[interpretable-ai]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[editors-pick]]></category>
            <category><![CDATA[model-interpretability]]></category>
            <dc:creator><![CDATA[Joseph Gartner]]></dc:creator>
            <pubDate>Wed, 02 Dec 2020 15:28:13 GMT</pubDate>
            <atom:updated>2020-12-15T21:50:44.319Z</atom:updated>
            <content:encoded><![CDATA[<h4><a href="https://towardsdatascience.com/tagged/model-interpretability">Model Interpretability</a></h4><h4>An once of empathy is worth 10 pounds of optimization.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/754/0*IXZ7GpTB2d3GojOD.png" /><figcaption>AI should free the mind, not constrain it with complexity. [<a href="https://openclipart.org/detail/277439/brain-unlock">Source</a>]</figcaption></figure><p>It’s a Thursday morning. You were up late last night iterating on your customer churn model, vetting new features, tweaking hyperparameters for your algorithm, and since no one else was in the office, singing along to Taylor Swift at full blast. It was a perfect evening. Several of the new features added lift, and you struck a great balance between performance and avoiding overtraining. You’ve just produced the best ROC curve that anyone on the team has ever made for this problem. You roll into the office, excited to share the good news with the folks that make the calls based on your models-the customer success team. To your surprise, they’re not happy with your model and want you to get back to the drawing board.</p><p>When situations like this occur, it’s easy to think, “The model is great; they just don’t get it.” Most of us have had this thought before, but it has no place in the mind of a data scientist who wants to succeed. As data scientists, it’s our job to solve problems logically with evidence. Too often, we inadvertently make the most complicated model we can imagine. This approach generally leads to Thursday mornings that feel a lot like the one above. So how can we combat this tendency? I find it’s best to take the opposite approach and start by asking stakeholders simple questions. Here are a few questions I tend to ask:</p><ul><li>If you had to make this prediction, how well do you think you’d do?</li><li>If you feel you’d do well, what factors would you base your decisions on?</li><li>Are we capturing all of these factors in the data?</li></ul><p>Stakeholders tend to favor models that reflect their preexisting insights and are therefore easily interpretable. The best initial model will typically account for a small number of features that reflect the intuitions of the folks on the ground. Once you get buy-in, iterating on the model to add new information should be a journey you take together. Aligning with stakeholder intuition is the sugar that helps the medicine of complexity go down.</p><h3>Empathy Topples Digital Dictators</h3><p>As data scientists, the output of our work has serious ramifications for the work of other human beings. The tools we create often dictate workflows of end users, so it’s essential we have a detailed understanding of how these people are interacting with them. Stakeholders generally lack training in advanced statistics but often rely on the models we create. Because a small design decision on our end may radically impair their ability to leverage predictions, clearly understand intended workflows, connect with the right person, or potentially even perform the core functions of their jobs effectively, we must anticipate both their needs and perspectives to iterate accordingly.</p><p>As models are increasingly used to direct human work, we should aspire to engineer in aspects of an effective, empathetic leader. Your tool must clearly communicate the reasoning behind its predictions and support stakeholder goals. If the people working with it are unable to interpret its decisions or feel constrained by its suggestions, they will inevitably come to resent it as one would a terrible boss. This comparison may seem extreme, but increasingly, <a href="https://www.theverge.com/2020/2/27/21155254/automation-robots-unemployment-jobs-vs-human-google-amazon">human work is being directed by robot supervisors </a>that can set unrealistic goals and workflow patterns in pursuit of optimization. If you’re working on systems like these, aim to make your robot a <a href="https://www.imdb.com/title/tt0097165/">John Keating </a>, not a <a href="https://www.imdb.com/title/tt0070509/">Charles Kingsfield </a>. There’s nothing worse than end users regarding the fruit of your labor as an uncaring dictator.</p><h3>Boots on the Ground</h3><p>We need to empathize with the people who use our tools. All too often, these people are overlooked, and AI projects fail to reach a deployed state, stumbling into a common pitfall despite boasting impressive performance metrics. Developing ML models in hermetically sealed environments is simply an anti-pattern that directly contributes to failure and frustration.</p><p>In pursuit of successful deployments predicated on empathy, consider the possibilities of the opposite extreme: spending every waking moment observing firsthand how ML models are impacting decisions. Dr. Chris White put this approach to the test when he dove headfirst into a warzone to improve data-mining tools. In 2010, He <a href="https://www.popsci.com/man-who-lit-dark-web/">deployed to Afghanistan</a> to understand how military personnel in the field were collecting, analyzing, and using data to influence decision making. You might be able to push unclear algorithms onto folks in the white-collared world, but that won’t fly with a Marine unit at a forward outpost.</p><p>Understanding the perspective of the boots on the ground made all the difference. Dr. White’s data-mining tools were purpose-built for warfare and incredibly successful. This experience stuck with Dr. White and informed his approach while he oversaw <a href="https://www.darpa.mil/program/memex">DARPA’s Memex program </a>. The broad purpose of the Memex program was to produce a search engine that included the dark web, organized search results into logical clusters of information, and stored knowledge across user sessions. In practice, the program was building one of the best tools in the world for combatting human trafficking. Dr. White’s experience overseas drove home the importance of usability. Memex’s tools underwent continual user testing, with a binary evaluation standard: does this tool help-yes or no? The program was ultimately deemed a success, and directly resulted in tools that are still widely used today to bolster human trafficking investigations.</p><p>Healthcare data scientists have it comparatively easy; instead of dodging bullets in a warzone, we merely have to embed with the folks using our tools in an office or hospital setting. Given the COVID-19 Pandemic, this might not be a viable option, but compromises are certainly possible. Before you show stakeholders a set of results, you should be in the habit of interacting with predictions. If a predictive model suggests the opportunity for an intervention with a patient, is it crystal-clear why a caregiver should follow through? If you can’t surface decision logic, it’s highly unlikely that caregivers will be receptive to your model’s predictions.</p><p>You should know how stakeholders interact with your predictions, and if you or your team make the UI for the predictions, you should participate in user testing sessions. It can be exceedingly challenging to swallow your pride in the face of disappointing feedback, but it’s critically important to see this as an opportunity to improve the tool. In the case that your predictions are embedded in a system that you didn’t create, it’s still important to work with users to understand their interactions with scores. While you might not have the same ability to effect change, you should still be on the hunt for opportunities to make your predictions more actionable.</p><h3>More Than “Nice to Have”</h3><p>In a lot of work environments, clear decision logic is a “nice to have” for auditing purposes, but at the end of the day performance reigns supreme. While this paradigm can cause serious headaches for the people using AI and ML tools, it often plays to the strengths of data scientists. Many data scientists get into the field because they are mathematically inclined. We like puzzles, we like challenging optimization problems, and we love arguing about the arcane details of algorithms. It can certainly feel like Interpretability is just a concession made for interacting with the plebeians, but that’s ultimately a naive perspective. When you’re having thoughts like these, it’s a good idea to keep this Einstein quote in mind, “If you can’t explain it simply, you don’t understand it well enough.”</p><p>For a great example of interpretability’s importance, look no further than <a href="https://hackernoon.com/dogs-wolves-data-science-and-why-machines-must-learn-like-humans-do-41c43bc7f982">this study of image classifiers differentiating between dogs and wolves </a>. When the decision logic of these seemingly accurate dog v wolf classifiers was examined, a simple fact was revealed: the neural network had learned to determine the difference between snow and grass. It just so happens that most pictures of wolves are taken in snowy climates. As soon as the decision logic of these algorithms surfaced, it became apparent that the background-not the object itself-was the driving factor. This finding improved image classification on the whole, and it probably wouldn’t have happened without an intimate understanding of how the algorithms worked and the need to explain it.</p><p>As data scientists, we should continue to be the nerds we are. Burn the midnight oil, take risks on tricky math, and keep singing “Shake it Off” like no one is listening. But we should also endeavor to be humanists who cherish the opportunity to get new perspectives on our models. In short, learn to love your Thursday mornings, your models will be better for them.</p><p><em>Originally published at </em><a href="https://closedloop.ai/the-importance-of-interpretability-in-healthcare-ai/"><em>https://closedloop.ai</em></a><em> on December 2, 2020.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cab3eb46b67" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/the-importance-of-interpretability-in-healthcare-ai-cab3eb46b67">The Importance of Interpretability in Healthcare AI</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data Science in Black Swan Times, Part 1: Understand your Causal Chain]]></title>
            <link>https://medium.com/data-science/data-science-in-black-swan-times-part-1-understand-your-causal-chain-9d45355c8e2c?source=rss-d02ce97287bd------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d45355c8e2c</guid>
            <category><![CDATA[probability]]></category>
            <category><![CDATA[causality]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Joseph Gartner]]></dc:creator>
            <pubDate>Thu, 08 Oct 2020 14:36:12 GMT</pubDate>
            <atom:updated>2020-10-09T14:43:18.470Z</atom:updated>
            <content:encoded><![CDATA[<h3>Data Science in Black Swan Times</h3><h4>Part 1: Understand your Causal Chain</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*OvTUdZiuDU_e4M4R.jpg" /><figcaption>Photo credit Dick Daniels: <a href="https://commons.wikimedia.org/wiki/File:Black_Swan_(Cygnus_atratus)_RWD.jpg">https://commons.wikimedia.org/wiki/File:Black_Swan_(Cygnus_atratus)_RWD.jpg</a></figcaption></figure><p>In his book “The Black Swan”, Author Nassim Taleb describes black swan events as those that are unpredictable, carry drastic consequences, and people retrospectively describe as completely predictable. I think it’s reasonable to apply all three conditions to the pandemic caused by COVID-19. During these times, practically every part of ordinary life is altered. This raises the question of the validity of most predictive models. It’s during times like these that assessing the underlying assumption of your models is particularly important, and having a background is statistics is helpful.</p><h3>Revisiting the Chain Rule</h3><p>Before I was a data scientist, I was a particle physicist. Particle physics is unique in that you study phenomena that are invisible to the human eye. Signal is exceedingly rare. Signal events are identified by combining signatures left in various electronic detectors, with the resulting electronic signature being well described as a random event. While machine learning is being leveraged to more effectively identify the signal of these types of rare events, these techniques were not quickly adopted. The reason for this fact, aside from the stubbornness of physicists, is that in this field the underlying chain of events are well modeled. Understanding variations in these underlying processes are interesting in their own right, as it can indicate the presence of a new physical phenomena.</p><p>Classifying random, often rare, events is one of the tasks that machine learning is best suited for, and its most ubiquitous application. Unlike the above scenario, however, machine learning is often applied in scenarios where the the intermediary steps are not well studied. In most cases, an effective model for the end outcome is useful, even if every step in the causal chain isn’t perfectly understood. And while an electron traveling through gas at the speed of light sounds difficult to model, it doesn’t even scratch the surface of the complications presented by human behavior.</p><p>As an example, consider a model applied to a Medicare population that is trying to predict if a member will have an inpatient admission due to influenza. As a feature set, you will leverage a patients medical billing history, along with demographic information. While it may seem like this is a straight forward event, there are actually multiple events that happen along the way. First, a person needs to be exposed to influenza. Second, this exposure leads to an infection severe enough to merit an inpatient admission. Of course, even this picture is an oversimplification, but it’s useful for illustrative purposes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/934/0*12QllOD4wmkLooYy.png" /><figcaption>Image by Author</figcaption></figure><p>When we train a model, it’s simply learning P(I|M), not modeling the intermediary steps along the way. Most of the time, this is OK, because it is reasonable to assume that most individuals will be exposed to influenza every flu season, and the real thing we are learning is P(I|E, M). During these times of social distancing, that original assumption is not well founded. In normal times, P(E|M) will be modeled as a high constant. During the pandemic, however, this assumption will not hold true. The second step in the causal chain, P(I|E,M), will likely be largely unchanged during these times.</p><h3>Understanding Implications</h3><p>All of this is a bit theoretical, but these ideas have real world implication on the effectiveness of the model. Social distancing measures have made the initial assumption about P(E|M) invalid. The knock on effect is that the entire healthcare system is observing a drastic decrease in utilization. The real question is, do you need to retrain your model? The answer is that it depends on context, specifically context surrounding the deployment of the model.</p><p>One use case for a flu model might be used by a hospital department to try to predict overall load on inpatient resources. The output of our model will give us probabilities of various members of our population having an inpatient admission, which when combined with some simple arithmetic (or some fancy Monte Carlo simulations) can produce predictions on expected hospital load. This is an example of a model deployment that would be completely invalidated by the violation of the initial link in the causal chain. The fix for this will be pretty complicated. As we state above, P(E|M) can be modeled as a high constant in normal times. The effects social distancing measures have on this distribution are very uneven. While it will be a net decrease, some groups are less able to self isolate. You’ll probably need to retrain the model incorporating current data.</p><p>A completely separate use case would be to take predictions based on a population, and identify individuals who are most likely to have an acute complication if they were to contract influenza. These days, most people are rightfully cautious about going to the hospital for non-acute care. This behavior is prudent for most people. That said, for those people who are most at risk for flu complications, it is still a good idea to get a flu shot. For most people, knowing if they are better off getting the flu shot is a tough call to make, and most will default to staying at home. In this case, the causal model stays in tact. Even though the probability of an individual being exposed to influenza is not well modeled, in this application it’s not a primary point of consideration. A care management team leveraging this model is actually trying to communicate the second step in the causal chain P(I | E, M). Even taking the math out, you can imagine what a care manager communicating to a member might sound like: “While we want you to keep safe, we think that <strong>if you were to get the flu this year, then you are at risk for a bad</strong> reaction.” A care manager would reasonably convey the second part of the causal model without affording any thought to doing so. In this case, the model is doing its job, and its application in this context will be unaffected.</p><h3>What Next?</h3><p>If context doesn’t put your model in the dust bin, it doesn’t mean you should treat it with scrutiny. In my next article, I’ll discuss data drift, and look at how we can evaluate if the underlying conditions of a model have changed to a degree that you need to retrain the model.</p><p><em>Originally published at </em><a href="https://closedloop.ai/data-science-in-black-swan-times-part-1-understand-your-causal-chain/"><em>https://closedloop.ai</em></a><em> on October 8, 2020.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d45355c8e2c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/data-science-in-black-swan-times-part-1-understand-your-causal-chain-9d45355c8e2c">Data Science in Black Swan Times, Part 1: Understand your Causal Chain</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[3 Tangible Steps in Combating Prejudice In Data Science — ClosedLoop.ai]]></title>
            <link>https://medium.com/data-science/3-tangible-steps-in-combating-prejudice-in-data-science-closedloop-ai-fb514b4d8400?source=rss-d02ce97287bd------2</link>
            <guid isPermaLink="false">https://medium.com/p/fb514b4d8400</guid>
            <category><![CDATA[algorithmic-bias]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Joseph Gartner]]></dc:creator>
            <pubDate>Fri, 18 Sep 2020 21:18:33 GMT</pubDate>
            <atom:updated>2020-09-24T18:39:13.878Z</atom:updated>
            <content:encoded><![CDATA[<h3>3 Tangible Steps in Combating Prejudice In Data Science — ClosedLoop.ai</h3><h4>We all want our algorithms to be fair, but sometimes, it’s tough to know how to start.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oP0LaPDicFHUXEq6Trva-A.jpeg" /><figcaption>Image by <a href="https://pixabay.com/users/geralt-9301/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=4389372">Gerd Altmann</a> from <a href="https://pixabay.com/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=4389372">Pixabay</a></figcaption></figure><p>When we think of prejudice, we tend to think of the most obvious ways that it shows itself. The current zeitgeist has surfaced the harm done by passive acceptance of injustice. As a data scientist, you have an important responsibility in making progress toward fairness. Often, the drive will have to come from you as the practitioner. It can be difficult to know how to approach this issue. I’m going to focus on three concrete ways in which you can work towards eliminating bias from your data science decisions.</p><h3>1. Measure Fairness in a Meaningful Way</h3><p>Say the word “accuracy” in reference to a machine learning model, and data scientists will come out of the woodwork to explain why it’s not the right metric. They’ll continue by listing a half dozen better ways of quantifying effectiveness. It’s doubtful those same semantic warriors are as well versed in <a href="https://dl.acm.org/doi/pdf/10.1145/3194770.3194776">ways of measuring fairness </a>in ML models. We want our models to be fair just like we want our models to be effective and performant. Consequently, we measure fairness. What you report about a model reflects your priorities, and measuring fairness should be a priority.</p><p>Measuring fairness in models can be challenging. In an attempt to avoid introducing bias in our models, many datasets will not include demographic information. This is a great illustration of good intentions leading to bad results. You should record demographic information, even if it’s withheld from the model. Without this information, it’s not possible to measure how your model performs across these lines. If your company is not recording this information, consider advocating on behalf of doing so.</p><p>Once you have the ability to measure fairness, you’ll need to choose the right metric. <a href="https://towardsdatascience.com/a-new-metric-for-quantifying-machine-learning-fairness-in-healthcare-closedloop-ai-fc07b9c83487">In a previous post</a>, I discussed a metric for quantifying bias in healthcare called group benefit equality, and drilled into a somewhat technical description of why I believe it is the most appropriate measure in the context of healthcare. If you detect prejudice in your algorithm, provides a nice description of how you can use SHAP scores to start quantifying why the decision is biased in the way that it is.</p><h3>2. Don’t Let Your Data Get WEIRD</h3><p>Researchers in the social sciences often have issues generalizing their theories. One reason is that they conduct experiments on college students, which represents a narrow band of society. The description for these data sets are WEIRD: Western, Educated, Industrialized, Rich, and Democratic. Such a phenomenon is okay if you’re only trying to make predictions about those groups. When you try applying social theory to other parts of the world, underlying assumptions about norms break down. Most datasets we use have similar assumptions about how an individual will generate data, and can often lead to inequality.</p><p>This effect can be particularly bad in healthcare. There are pronounced differences between the way rich and poor people use health systems. For example, poorer individuals use ambulatory services to get rides to normal appointments. This is difficult to anticipate when you’ve never lacked access to a car. Oftentimes, subject matter experts (SMEs) will be keenly aware of such phenomena. Collaborating with SMEs is extremely valuable for brainstorming ways to account for such effects, particularly in the feature engineering stage.</p><p>The things that aren’t recorded by the data are an even greater challenge to deal with. Healthcare professionals know that a huge portion of what determines your health is based on your home and work environments. Just a few examples of health factors tied to wealth and zip code are access to healthy food, exposure to harmful chemicals, and easy access to green space. Accounting for these effects are difficult, but can often be the key for gaining insights to why a group measures low in fairness measures.</p><h3>3. Focus on Real World Effects</h3><p>One of the biggest aspects that differentiates great data scientists from the rest is their ability to understand how their model impacts the real world. The reason this is so important, is that understanding the intended use has an impact on how you define the group you make predictions about, and how you define your outcome. While focusing on intended consequences will make you a good data scientist, considering unintended consequences will make you a great data scientist.</p><p>For example, you might consider building a model to predict if a person will be hospitalized due to a heart attack. One reasonable step might be to limit your population to those individuals who have a previous diagnosis of a heart condition. Filtering the population in this way is a double edged sword. While it will make your model more precise, it will also filter out those individuals living with no previous diagnosis. If a person is getting regular checkups, it is more probable that the conditions building up to a heart attack are recorded. By excluding individuals who have unusual usage patterns, you end up building a model that will direct resources to individuals who are already getting the best care.</p><p>One of the best aspects of working on data science is that healthcare provider’s and patient’s interests align. Healthcare providers want to predict severe medical complications so that interventions can be applied. As an example, if you note that a person is a risk for a fall related injury, the intervention might be to get them a step-stool. It’s deadly simple and really effective. Win-win. Many of the known inequalities in healthcare are impactable. Actively engaging with SMEs should guide your modeling efforts to help make those efforts more effective. Your models have the potential to make people healthier, help the bottom line, and create a more equitable healthcare plan. That’s a big of win-win-win as there is.</p><p><em>Originally published at </em><a href="https://closedloop.ai/3-tangible-steps-in-combating-prejudice-in-data-science/"><em>https://closedloop.ai</em></a><em> on September 18, 2020.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fb514b4d8400" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/3-tangible-steps-in-combating-prejudice-in-data-science-closedloop-ai-fb514b4d8400">3 Tangible Steps in Combating Prejudice In Data Science — ClosedLoop.ai</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Quantifying the Impact of the CV19 Index — ClosedLoop.ai]]></title>
            <link>https://joseph-gartner.medium.com/quantifying-the-impact-of-the-cv19-index-closedloop-ai-88d2abc9483?source=rss-d02ce97287bd------2</link>
            <guid isPermaLink="false">https://medium.com/p/88d2abc9483</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[covid19]]></category>
            <dc:creator><![CDATA[Joseph Gartner]]></dc:creator>
            <pubDate>Fri, 27 Mar 2020 17:58:48 GMT</pubDate>
            <atom:updated>2020-04-03T13:54:08.189Z</atom:updated>
            <content:encoded><![CDATA[<h3>Quantifying the Impact of the CV19 Index — ClosedLoop.ai</h3><p>ClosedLoop has recently published the COVID-19 Vulnerability Index (CV19 Index), an open-source tool for predicting vulnerability to complications arising from the COVID-19 virus. <a href="https://towardsdatascience.com/open-source-data-science-to-fight-covid-19-corona-virus-95bf4ebcb52c">In my last post </a>, I discussed a lot of the “what” questions surrounding the model. If you haven’t read that one, you might want to read it first to get an understanding of what the CV19 Index is, how it was made, and how the model performs. In this post, I’d like to turn my attention to another important question, “Why is a CV19 Index important?”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/578/1*FD6n1xugNIA-r8D72cHXUQ.png" /><figcaption>Figure 1 — Percentages of the medicare population that are effected by various CDC risk factors.</figcaption></figure><p>The CV19 index expresses risk for an individual to have a complication from COVID-19 as a probability. When I say a complication, I generally mean something that would force the person to go to the hospital, and put additional stress on the system. The primary reason this is so important is that the potentially susceptible population is quite large, as is the number of people having a complicating risk factor as described in Figure 1. My colleague, Carol McCall, wrote an excellent article detailing how <a href="https://medium.com/@carol.mccall/coronavirus-could-delivering-toilet-paper-really-save-the-healthcare-system-42c529d982a2">well planned intervention strategies</a> are a key factor in mitigating the worst effects of COVID-19. For many, it’s a challenge to understand how having a risk probability is more useful than the CDC general guidelines. By having a more precise estimation of a person’s risk, we can prioritize outreach to those who most need it.</p><h3>Combating Scarcity</h3><p>The <em>Washington Post </em>has produced an <a href="https://www.washingtonpost.com/graphics/2020/world/corona-simulator/">excellent visualization </a>of the spread of the disease under varying levels of interpersonal contact. However, that visual tells an incomplete story. In the Post’s model, everyone who catches COVID-19 gets better. It is an unfortunate fact of the matter, some people who contract COVID-19 will perish. Others will need resources that our hospitals can provide; assuming the hospital systems are not overburdened. Let’s let the following diagram represent a population of adults over the age of 40:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/464/0*htRYOWRB_FfcVidZ.png" /><figcaption>Figure 2 — A visualization of the population. Some individuals, if infected will need hospitalization (red). Some individuals will not (blue). We do not know if a person will need hospitalization unless they become infected.</figcaption></figure><p>As the label suggests, red dots are individuals who, if infected, will need to be hospitalized based on complication from COVID-19. Blue dots represent those who will combat the infection without needing hospitalization. While it is still important that we all contribute to efforts to combat the spread of COVID-19, it’s possible for us to enact interventions to help further isolate specifically those folks who are at risk. The difficulty is identifying those who will become infected to target them for interventions. One way of doing so would be to follow the <a href="https://www.cdc.gov/coronavirus/2019-ncov/specific-groups/people-at-higher-risk.html">general guidelines </a>coming from the CDC:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/464/0*WzW5tEXnM_E-n8GL.png" /><figcaption>Figure 3 — The medicare population, segmented by the CDC guidelines.</figcaption></figure><p>If we look at the Medicare population, the CDC guidelines apply to over half of those individuals. In our representation, these guidelines will identify those individuals who would eventually need hospitalization. The issue is, without a more granular approach, targeting inside this group is still done randomly within this population. Without further granularity, drawing from people within this target group would look like the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/526/0*OVRA2sn6WeFGL677.png" /><figcaption>Figure 4 — A visual representation of an intervention schedule from randomly drawing within the “CDC at risk” group.</figcaption></figure><p>We can see, in a week of interventions, many individuals who would have been hospitalized receive an intervention that potentially keeps them safe. Still, many individuals who would not eventually be hospitalized are targeted for interventions as well. Increasing the number of red dots in this chart means fewer people in the hospital.</p><h3>Using the CV19 Index</h3><p>The CV19 Index allows us to further assess risk by drawing upon past experience of looking at how interacting complications and age combine. Instead of a hard boundary, we now attach a risk probability:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/464/0*F3T1bnyrpyDxa36i.png" /><figcaption>Figure 5 — Assigning probabilities to who will be effected. Here, dot size is the probability of hospitalization the model assigns to an individual.</figcaption></figure><p>Here, the size of an individual dot corresponds to the predicted probability of having a complication. The real effect can be seen if we look at an intervention schedule driven by such prioritization.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/526/0*6c46jEinokh7B-vh.png" /><figcaption>Figure 6 — Intervention schedule based on probabilities.</figcaption></figure><p>The effect is subtle, but there are seven more individuals who would need hospitalization that are contacted in this scenario. This corresponds to a 29% increase in the number of effective interventions. Using the CV19 Index means that more energy and effort are expended on individuals who will eventually be hospitalized because of COVID-19. This directly leads to less hospitalizations and deaths.</p><h3>Extrapolation</h3><p>The above visualizations were made in an attempt to illustrate the underlying issue of why a granular, data-driven model should be used as a part of an effective intervention strategy for combating COVID-19. The question becomes, what will the eventual impact be? While it’s impossible to know for sure, if we make some assumptions, we can make a good estimate. We’ll assume that we’re applying this data to the Medicare population of an HMO with 250,000 Medicare-eligible members. We’ll also assume that any intervention would be 50% effective, and that within this population, and the prevalence of COVID related hospitalizations are 10%. We can then compare how we would do over time using the CV19 Index vs. randomly sampling using the CDC guidelines.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/510/0*kdcT7LSBeYlyHQah.png" /><figcaption>Figure 7 — Extrapolation of successful interventions based on two strategies for identifying COVID-19 risk.</figcaption></figure><p>The above image shows projections for the number of successful interventions over the course of a 3-week period. If interventions are concentrated more heavily on those who will eventually have complications, we can decrease the load that hospitals encounter. These reductions will directly translate to saving people’s lives.</p><p><em>Originally published at </em><a href="https://closedloop.ai/quantifying-the-impact-of-the-cv19-index/"><em>https://closedloop.ai</em></a><em> on March 27, 2020.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=88d2abc9483" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Open Source Data Science to Fight COVID-19 (Corona Virus)]]></title>
            <link>https://medium.com/data-science/open-source-data-science-to-fight-covid-19-corona-virus-95bf4ebcb52c?source=rss-d02ce97287bd------2</link>
            <guid isPermaLink="false">https://medium.com/p/95bf4ebcb52c</guid>
            <category><![CDATA[covid19]]></category>
            <category><![CDATA[supervised-learning]]></category>
            <category><![CDATA[feature-engineering]]></category>
            <dc:creator><![CDATA[Joseph Gartner]]></dc:creator>
            <pubDate>Tue, 17 Mar 2020 21:47:48 GMT</pubDate>
            <atom:updated>2020-03-18T14:46:08.908Z</atom:updated>
            <content:encoded><![CDATA[<h4>Building models to find the most vulnerable.</h4><p>With the spread of COVID-19 becoming an ever more assertive force in our lives, the healthcare data science community has an opportunity to play an important role in the mitigation of this emerging pandemic. <a href="https://www.history.com/news/spanish-flu-pandemic-response-cities">History has shown </a>response to such diseases can drastically alter the worst effects of such diseases. Many cities have imposed social distancing measures, closing any place where large numbers of people gather, and further measures can be taken to help isolate and protect the most vulnerable among the population. In order to do so, we must first identify who is at greatest risk, which motivated my team to create an open sourced project, the <a href="https://github.com/closedloop-ai/cv19index">COVID-19 Vulnerability Index</a>.</p><p>The CV19 Index is an open source, AI-based predictive model that identifies people who are likely to have a heightened vulnerability to severe complications from COVID-19. The CV19 Index is intended to help hospitals, federal / state / local public health agencies and other healthcare organizations in their work to identify, plan for, respond to, and reduce the impact of COVID-19 in their communities. In this post, we’ll be going over the high level details of this open sourced project. For a more detailed description of the data selection and model building, please see our <a href="https://arxiv.org/abs/2003.07347">white paper</a>.</p><p><strong>Step 1 — Making a Labeled Data Set</strong></p><p>Data on COVID-19 hospitalizations does not yet exist. While data begins to emerge, we can look at the affected populations and events that serve as proxies for the real event. Given that the disease’s worst outcomes are concentrated on the elderly, we can focus on medicare billing data. Instead of predicting COVID-19 hospitalizations, we can instead predict proxy medical events, specifically hospitalizations due to respiratory infections. Examples include Pneumonia, Influenza, and Acute bronchitis. We identify these labels by parsing medical billing data and searching for specific ICD-10 codes that describe these types of events. All predictions are made on a specific day. From a particular day, we look back in time 15 months for features. We exclude any events happening within three months of the prediction date, due to the lag in medical claims data reporting. Any diagnoses within the last year become the features we use in all of our models.</p><p><strong>Step 2 — Models</strong></p><p>There are hosts of model considerations that need to be made with these kinds of projects. Ultimately, we wanted these models to balance being as effective as possible, and still accessible to healthcare data scientists as quickly as possible. One of the reasons for choosing the data that we used is because medicare claims data is widely available to healthcare data scientists. If your organization has access to additional data sources, you may observe performance increases by incorporating such information. Balancing those considerations led us to create 3 models based on the ease of adoption and model effectiveness.</p><p>The first, is a logistic regression model using a small number of features. At ClosedLoop, we use the standard Python data science stack. The motivation for a very simple model is that it can be ported to environments like R or SAS without having to read or write a line of python. At low alert rates, the model performs close to parity with the more sophisticated versions of the model. The aforementioned white paper has all of the weights for the limited feature set, so it can be ported over by hand.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*7Ms5Cyj3w52F0eB-.png" /><figcaption>ROC graph comparing the performance of all three models.</figcaption></figure><p>The next two models are both made using XGBoost. <a href="https://www.kaggle.com/general/25913">XGBoost consistently gives the best performance </a>for making predictions on well structured data, and given the right data transformation, medical billing data has that structure. The first XGBoost model is featured in our open sourced package. A pickled version of the model exists, so you simply need to build a data transformation pipeline that will get your billing data into the format specified in the repo. If you can build a function that will parse your data for a specific code, then you can simply iterate through all of the codes. That’s the reason we selected a limited feature set for the open sourced model. It’s very effective, while still requiring only a reasonable level of lift from the data pipeline standpoint. We’re also giving healthcare organizations access to our model within the platform. This version of the model uses full diagnosis history, plus a large set of engineered features. Note, the ROC curve shows that the open source version has nearly identical performance as the version contained in our platform.</p><p><strong>Conclusion</strong></p><p>The whole world is participating in a fight against this pandemic. The healthcare data science community can have a big impact on combating this disease. There have been many excellent efforts to use <a href="https://coronavirus.jhu.edu/map.html">data visualization </a>and <a href="https://www.washingtonpost.com/graphics/2020/world/corona-simulator/">monte carlo simulations </a>to help combat the spread of this pandemic. We feel our model addresses a complimentary and important aspect of health policy, identifying those most at risk. By combining the efforts of these and many other excellent efforts in the healthcare technology space, we hope to mitigate the effects of this terrible disease.</p><p>If reading this article has given you ideas for ways in which you’d like to contribute, we encourage you to fork our repository. If you are in the healthcare data science community, please do use the tool, and if you want to get in touch, feel free to head over to <a href="https://closedloop.ai/cv19index/">https://closedloop.ai/cv19index </a>for more information.</p><p><em>Originally published at </em><a href="https://closedloop.ai/open-source-data-science-to-fight-covid-19-corona-virus/"><em>https://closedloop.ai</em></a><em> on March 17, 2020.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=95bf4ebcb52c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/open-source-data-science-to-fight-covid-19-corona-virus-95bf4ebcb52c">Open Source Data Science to Fight COVID-19 (Corona Virus)</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A New Metric for Quantifying Machine Learning Fairness in Healthcare — ClosedLoop.ai]]></title>
            <link>https://medium.com/data-science/a-new-metric-for-quantifying-machine-learning-fairness-in-healthcare-closedloop-ai-fc07b9c83487?source=rss-d02ce97287bd------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc07b9c83487</guid>
            <dc:creator><![CDATA[Joseph Gartner]]></dc:creator>
            <pubDate>Mon, 02 Mar 2020 21:33:16 GMT</pubDate>
            <atom:updated>2020-04-09T18:44:19.755Z</atom:updated>
            <content:encoded><![CDATA[<h3>A New Metric for Quantifying Machine Learning Fairness in Healthcare — ClosedLoop.ai</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*hCPvkEX1jvKMdBn5.jpg" /></figure><p>Several recent, high profile cases of unfair AI algorithms have highlighted the vital need to address bias early in the development of any AI system. For the most part, bias does not come into algorithms due to malicious intent by the individual creating the algorithm. Bias comes from a lack of diligence in ensuring that the AI system is fair for everyone. In order to combat bias, it must be measured in a way that is relevant for the context of the problem. Within healthcare, the ‘gold standard’ for bias detection is not appropriate. Because of this, ClosedLoop has developed a new metric for measuring bias within healthcare.</p><p>Recently, there has been a great deal of effort to measure and combat algorithmic bias. In their 2018 paper[1], Verma and Rubin present a rich selection of fairness metrics, as well as defining the basic statistical measures that all fairness measures use. Each of these metrics has strengths and weaknesses, and the context in which the algorithm is deployed dictates which metrics are appropriate. Often, the approach to fairness draws upon the legal standard of <em>disparate impact </em>[2][3] . Disparate impact occurs when the predicted outcomes are different for different groups. Some examples of when this metric is used are recidivism[4], hiring[5][6], and loan applications[2]. This standard metric accounts for only one factor: the rate at which the algorithm predicts a person should benefit from a particular classification.</p><p>In the context of healthcare, the standard of disparate impact is entirely inappropriate. The above examples have a common characteristic; every individual the algorithm applies to would benefit from a positive label. People don’t apply for parole, a job, or a loan if they don’t care about the outcome. In healthcare, and particularly population health, predictions are used to allocate resources, but the benefit can vary for different groups. Only those individuals that will suffer from a particular outcome benefit from the intervention from the model. In most cases prevalence of particular outcomes has significant variance across gender, racial, and socioeconomic groupings. Obvious examples are breast cancer, with less than 1% of cases occurring in men[7], or sickle cell disease disproportionately impacting black Americans[8]. Less obvious cases are fall injuries, with a higher prevalence among females[9], or suicide rates, with high fluctuation across gender and racial lines[10]. For many other diseases, more subtle differences occur but with variations that are still statistically significant. A common sense notion of fairness certainly wouldn’t expect an even number of males and females to be identified as having high risk for breast cancer, but this is exactly what metrics based on <em>disparate</em> <em>impact</em> optimize for. Consequently, ClosedLoop has developed a new metric for quantifying fairness that is uniquely suited to healthcare.</p><h3>Group Benefit Equality</h3><p>We propose a new method for measuring fairness called “Group Benefit Equality”. Group benefit equality aims to measure the rate at which a particular event is predicted to occur within a subgroup compared to the rate at which it actually occurs. Suppose there is a predictor with predicted labels <em>y’</em>, and true outcomes <em>y</em>. A group benefits from the algorithm by having the attention of providers afforded to those individuals in the case that they have a positive prediction (<em>y’</em>=1). A predictor is considered to have perfect group benefit equality in the case that:</p><p>P(<em>y’</em>=1 | C=<em>c</em>) = P(<em>y</em>=1 | C=<em>c</em>) for all <em>c</em> in C</p><p>Here, <em>c</em> is a subgroup of the partitioning variable C, and C can be any partition that should be examined for protection, including race, gender, age, Medicaid status (a proxy for income), and disability status. Group benefit equality can be transformed as the ratio P(<em>y’</em>=1 | C=<em>c</em>)/P(<em>y</em>=1 | C=<em>c</em>). In terms of standard accuracy measures, Group Benefit Equality is (tp + fp)/(tp+fn), where tp are the number of True Positives, fp is the number of False Positives, and fn are the number of False Negatives. If this ratio fluctuates low, it means that the subgroup is being flagged for intervention at a lower rate than the prevalence of the event within the subgroup. If this number is sufficiently lower than 1.0, that means that the model has the potential to harm this subgroup by denying them resources. As a result, steps should be taken to either reduce this bias or account for it in the allocation of resources. If this ratio fluctuates high, it means that resources are being allocated to this group at higher rates than the group needs. As long as it does not cause the first type of fluctuation in another group, this type of fluctuation is acceptable. The threshold of 0.8 for flagging a group as potentially biased is used, which comes from the legal standard for disparate impact.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/454/0*mF8mD1j1dAVsspC9.png" /><figcaption>Figure 1 — Group benefit equality for a model predicting severe fall related injuries in Medicare recipients, partitioned by gender.</figcaption></figure><p>To see how this metric is used, we evaluate its application in a model built to predict Severe Fall-Related Injuries within the next 30 days for medicare patients. Figure 1 depicts group benefit equality for a model that predicts severe fall related injuries. The prevalence in a sample of 2010 medicare records is observed to be .843% for the entire sample. If we partition by gender, we observe .975% in females and .686% in males. For the purpose of consistency, a threshold is selected such that group benefit equality is very nearly 1.0 for the entire sample, (in this case, a decision threshold of p&gt;=.071 results in a group benefit equality of 1.005). This threshold means that the model would flag roughly the same number of individuals as being at risk as the observed occurrence of injury. Table 1 summarizes performance and fairness for this threshold. Note that the prevalence within the female sub-population is roughly 1.5 the rate observed in men. One can see that the model predictions reflect this inequality. The value for disparate impact is .569, well below the standard threshold of .8; this would mean that by this standard this model is biased against males. If instead, group benefit equality is calculated, the score of .875 is observed. While there is room for improvement in servicing this sub-population, one would not classify this model as biased against men.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/896/1*vkh69kPduBycPK0eftCtUQ.png" /></figure><h3>Comparison to Existing Metrics</h3><p>Group Benefit Equality is similar to an existing measure “Equality of Opportunity”. Equality of Opportunity occurs when the sensitivity for the two groups are the same (tp/(tp+fn)). Our metric differs by this mathematically by the presence of the false positive term in the numerator. If such a similar term exists, why would one elect to report fairness using a different metric? The strength of group benefit equality is its transparency and ease of explanation. One huge strength of group benefit equality is having a default objective for tuning the decision threshold. Even if most providers elect to operate at slightly higher alarm rates than the prevalence for an event, we set the threshold so that benefit equality is 1.0 for the population. For equal opportunity, no such guideline is defined. Not having a default level for equality of opportunity presents an opportunity for practitioners to vary their decision threshold to levels that makes their model fairness look better.</p><p>Group benefit equality also benefits from being a more intuitive explanation of fairness. This metric directly measures the alerts raised for a group versus their rate of occurrence. While one can look at the equal opportunity for all subgroups, there is no clear threshold for what constitutes unacceptable bias. The analogy would be the difference between a Pearson correlation or a residual sum of squared errors in regression. While both quantify the models performance, the former is significantly easier to understand and explain; unsurprisingly, it is the metric most individuals use to describe a regression model. In order to achieve this effect, many fairness metrics are presented as the quotient of a protected subgroup to a base subgroup[2]. As the goal of healthcare is to deliver interventions to those individuals who need it, choosing reference subgroups means that models will make fairness evaluations blind to instances where the base class has an alarm rate that is too low. In most cases, males are the base class for gender, so using that approach, fairness evaluations would be completely blind to potential shortcomings for that subgroup.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/455/0*Br23Tng43phq4Ci4.png" /><figcaption>Figure 2 — Group benefit equality for a model predicting severe fall related injuries in Medicare recipients, partitioned by Age.</figcaption></figure><p>A final strength of this model is an intrinsically economic view of alerts. Figure 1 depicts group benefit equality for several age groups within the data set. Looking at this figure, one can see that there is a score that is quite low for those individuals who are within the 65–74 year range. The model was built on medicare billing data, so this cohort actually represents the largest group within the data. Looking at the distribution, the fact that the lower prediction rate within this subgroup is directly caused by elevated prediction rates within the 18–64 and 85–100 groups. Due to the fact this model comes from Medicare data, the individuals in the 18–64 year range are typically disabled with serious medical complications. The other group, 85–100, is simply the oldest and most naturally susceptible group to these types of injuries. In this way, the explanation that being biased to predicting our most at risk groups at too high a rate makes the lower predictions within the bulk of our population more understandable.</p><h3>Case Study</h3><p>In an effort to combat COVID-19, ClosedLoop built an open sourced tool for quantifying vulnerability to severe complications due to a COVID-19 infection, called the <a href="https://towardsdatascience.com/open-source-data-science-to-fight-covid-19-corona-virus-95bf4ebcb52c">CV19 Index</a>. COVID-19 is known to have elevated mortality rates in older individuals. ClosedLoop built multiple instances of the CV19 Index. One model was trained on the Medicare population, and one on a Medicaid Population. These two populations have very distinct dynamics, so looking at fairness across lines of age is a natural breakdown for this measure. The first instance of the model was trained on a 5% sample of the Medicare population. Group Benefit Equality on this population is shown in Figure 3. Interestingly, at a 3% alert rate on a blended population, this model under-predicts for the group that is young. To understand this, it’s important to remember the Medicare is primarily individuals who are above the age of 65. Medicare does allow individuals who are below this age to be included, but these individuals have serious medical conditions. A consequence is that when this model is applied to the general population, it overestimates younger individuals health vulnerability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/401/0*U_J2DfVvJdUEcCbb.png" /><figcaption>Figure 3 — Group Benefit Equality for a COVID-19 model built on Medicare data.</figcaption></figure><p>Similarly, we can examine the performance of the model trained on Medicaid data on the general population, depicted in Figure 4. Interestingly, the exact opposite groups are triggered at lower levels. The exact opposite dynamic is at play. Individuals who are above 65 are typically on Medicare, not Medicaid. However, some individuals with serious medical needs are dual eligible. The consequence is quite clear, and an illustrative example of why applying models to the same populations are very important.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/413/0*OcsAyLfHd4DiAPG0.png" /><figcaption>Figure 4 — Group Benefit Equality for a COVID-19 model measured on a general population for a model trained on Medicaid data.</figcaption></figure><p>In order to have a model that performed on the general population, we created a blended model, depicted in Figure 5. The models were blended by switching from the Medicaid to Medicare model once an individual turns 65, and scaling the Medicaid predictions. Here, we observe generally good performance across most age groups. For the youngest population subgroups, this is fairly intuitive. Most young people will not have serious complications from COVID-19, and in cases when they do, the data supports the notion that it is less predictable. As further information emerges surrounding younger individuals experiencing such complications, it is a high priority to incorporate into these models.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/454/0*azDluW7Jz4UJS_xR.png" /><figcaption>Figure 5 — Group Benefit Equality measured on a general population for an ensemble of models coming from Medicare and Medicaid data.</figcaption></figure><h3>Conclusions</h3><p>No single metric is a silver bullet against algorithmic bias. Practitioners should calculate several bias metrics, like group benefit equality and equality of opportunity in conjunction and think critically about the impacts of any difference that may be observed. With that said, it is helpful to have a single metric that is easy to explain, benefits from a transparent procedure, and has well defined target value and thresholds for when a model is potentially biased. Group benefit equality uniquely satisfies all of these requirements, and is the best metric in healthcare for quantifying algorithmic fairness.</p><h3>References</h3><p>[1] Verma, Sahil, and Julia Rubin. “Fairness definitions explained.” <em>2018 IEEE/ACM International Workshop on Software Fairness (FairWare)</em>. IEEE, 2018.</p><p>[2] IBM Cloud. “Fairness Metrics Overview”. <a href="https://cloud.ibm.com/docs/ai-openscale?topic=ai-openscale-anlz_metrics_fairness">https://cloud.ibm.com/docs/ai-openscale?topic=ai-openscale-anlz_metrics_fairness</a></p><p>[3] Feldman, Michael, et al. “Certifying and removing disparate impact.” <em>proceedings of the 21th ACM SIGKDD international conference on knowledge discovery and data mining</em>. 2015.</p><p>[4] Chouldechova, Alexandra. “Fair prediction with disparate impact: A study of bias in recidivism prediction instruments.” <em>Big data</em> 5.2 (2017): 153–163.</p><p>[5] Dastin, Jeffery. “Amazon Scraps Secret AI Recruiting Tool That Showed Bias Against Women”. <a href="https://www.reuters.com/article/us-amazon-com-jobs-automation-insight/amazon-scraps-secret-ai-recruiting-tool-that-showed-bias-against-women-idUSKCN1MK08G">https://www.reuters.com/article/us-amazon-com-jobs-automation-insight/amazon-scraps-secret-ai-recruiting-tool-that-showed-bias-against-women-idUSKCN1MK08G</a></p><p>[6] Ajunwa, Ifeoma, et al. “Hiring by algorithm: predicting and preventing disparate impact.” <em>Available at SSRN</em> (2016).</p><p>[7] Anderson, William F., et al. “Male breast cancer: a population-based comparison with female breast cancer.” <em>Journal of Clinical Oncology</em> 28.2 (2010): 232.</p><p>[8] Centers for Disease Control and Prevention. “Data &amp; Statistics on Sickle Cell Disease”. <a href="https://www.cdc.gov/ncbddd/sicklecell/data.html">https://www.cdc.gov/ncbddd/sicklecell/data.html</a></p><p>[9] Stevens, Judy A., and Ellen D. Sogolow. “Gender differences for non-fatal unintentional fall related injuries among older adults.” <em>Injury prevention</em> 11.2 (2005): 115–119.</p><p>[10] Curtin, Sally C., and Warner, Margaret. “Suicide Rates for Females and Males by Race and Ethnicity: United States, 1999 and 2014”. National Center for Health Statistics. <a href="https://www.cdc.gov/nchs/data/hestat/suicide/rates_1999_2014.htm">https://www.cdc.gov/nchs/data/hestat/suicide/rates_1999_2014.htm</a></p><p><em>Originally published at </em><a href="https://closedloop.ai/a-new-metric-for-quantifying-fairness-in-healthcare/"><em>https://closedloop.ai</em></a><em> on March 2, 2020.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc07b9c83487" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/a-new-metric-for-quantifying-machine-learning-fairness-in-healthcare-closedloop-ai-fc07b9c83487">A New Metric for Quantifying Machine Learning Fairness in Healthcare — ClosedLoop.ai</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>