{"id":1577,"date":"2021-02-19T20:56:23","date_gmt":"2021-02-20T01:56:23","guid":{"rendered":"http:\/\/josephpcohen.com\/w\/?p=1577"},"modified":"2023-06-11T20:06:49","modified_gmt":"2023-06-12T00:06:49","slug":"gifsplanation","status":"publish","type":"post","link":"https:\/\/josephpcohen.com\/w\/gifsplanation\/","title":{"rendered":"Counterfactual Explanations for Chest X-rays"},"content":{"rendered":"<p><a href=\"http:\/\/josephpcohen.com\/w\/wp-content\/uploads\/Cardiomegaly-XRV.gif\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-1580\" src=\"http:\/\/josephpcohen.com\/w\/wp-content\/uploads\/Cardiomegaly-XRV.gif\" alt=\"\" width=\"558\" height=\"304\" \/><\/a><\/p>\n<p><iframe loading=\"lazy\" title=\"Gifsplanation via Latent Shift Talk - MIDL2021\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/1fxSDP8DheI?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen><\/iframe><\/p>\n<p>The goal of a prediction explanation method is to identify features which are relevant to the prediction of a neural network and convey that information to the user.<\/p>\n<p>The method shown above is called Latent Shift. This method looks at what pixels change when the image is simulated to have more or less of the specific pathology. Each frame of this video is simulated. The video starts with the pathology removed and proceeds to add the pathology before reversing and starting the loop over again.<\/p>\n<p>Demo webpage: <a href=\"https:\/\/mlmed.org\/gifsplanation\">https:\/\/mlmed.org\/gifsplanation<\/a><\/p>\n<p>Source code: <a href=\"https:\/\/github.com\/mlmed\/gifsplanation\">https:\/\/github.com\/mlmed\/gifsplanation<\/a><\/p>\n<p>Paper: <a href=\"https:\/\/arxiv.org\/abs\/2102.09475\">https:\/\/arxiv.org\/abs\/2102.09475<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>The goal of a prediction explanation method is to identify features which are relevant to the prediction of a neural network and convey that information <a class=\"mh-excerpt-more\" href=\"https:\/\/josephpcohen.com\/w\/gifsplanation\/\" title=\"Counterfactual Explanations for Chest X-rays\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":1578,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[16,23],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Counterfactual Explanations for Chest X-rays - Joseph Paul Cohen PhD<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/josephpcohen.com\/w\/gifsplanation\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Counterfactual Explanations for Chest X-rays - Joseph Paul Cohen PhD\" \/>\n<meta property=\"og:description\" content=\"The goal of a prediction explanation method is to identify features which are relevant to the prediction of a neural network and convey that information [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/josephpcohen.com\/w\/gifsplanation\/\" \/>\n<meta property=\"og:site_name\" content=\"Joseph Paul Cohen PhD\" \/>\n<meta property=\"article:published_time\" content=\"2021-02-20T01:56:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-06-12T00:06:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/josephpcohen.com\/w\/wp-content\/uploads\/PC_Dataset-10201199918783419519779794936126082408474409-Cardiomegaly-1-XRV-DenseNet121-all-latentshift-max.png\" \/>\n\t<meta property=\"og:image:width\" content=\"223\" \/>\n\t<meta property=\"og:image:height\" content=\"223\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Joseph Paul Cohen\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Joseph Paul Cohen\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/josephpcohen.com\/w\/gifsplanation\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/josephpcohen.com\/w\/gifsplanation\/\"},\"author\":{\"name\":\"Joseph Paul Cohen\",\"@id\":\"https:\/\/josephpcohen.com\/w\/#\/schema\/person\/e25d0d5746952220f35d182ca7aa8684\"},\"headline\":\"Counterfactual Explanations for Chest X-rays\",\"datePublished\":\"2021-02-20T01:56:23+00:00\",\"dateModified\":\"2023-06-12T00:06:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/josephpcohen.com\/w\/gifsplanation\/\"},\"wordCount\":116,\"publisher\":{\"@id\":\"https:\/\/josephpcohen.com\/w\/#\/schema\/person\/e25d0d5746952220f35d182ca7aa8684\"},\"articleSection\":[\"Featured\",\"Medical\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/josephpcohen.com\/w\/gifsplanation\/\",\"url\":\"https:\/\/josephpcohen.com\/w\/gifsplanation\/\",\"name\":\"Counterfactual Explanations for Chest X-rays - Joseph Paul Cohen PhD\",\"isPartOf\":{\"@id\":\"https:\/\/josephpcohen.com\/w\/#website\"},\"datePublished\":\"2021-02-20T01:56:23+00:00\",\"dateModified\":\"2023-06-12T00:06:49+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/josephpcohen.com\/w\/gifsplanation\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/josephpcohen.com\/w\/gifsplanation\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/josephpcohen.com\/w\/gifsplanation\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/josephpcohen.com\/w\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Counterfactual Explanations for Chest X-rays\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/josephpcohen.com\/w\/#website\",\"url\":\"https:\/\/josephpcohen.com\/w\/\",\"name\":\"Joseph Paul Cohen PhD\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/josephpcohen.com\/w\/#\/schema\/person\/e25d0d5746952220f35d182ca7aa8684\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/josephpcohen.com\/w\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/josephpcohen.com\/w\/#\/schema\/person\/e25d0d5746952220f35d182ca7aa8684\",\"name\":\"Joseph Paul Cohen\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/josephpcohen.com\/w\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/a810b57939e75247f570c9094e7bd16e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/a810b57939e75247f570c9094e7bd16e?s=96&d=mm&r=g\",\"caption\":\"Joseph Paul Cohen\"},\"logo\":{\"@id\":\"https:\/\/josephpcohen.com\/w\/#\/schema\/person\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Counterfactual Explanations for Chest X-rays - Joseph Paul Cohen PhD","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/josephpcohen.com\/w\/gifsplanation\/","og_locale":"en_US","og_type":"article","og_title":"Counterfactual Explanations for Chest X-rays - Joseph Paul Cohen PhD","og_description":"The goal of a prediction explanation method is to identify features which are relevant to the prediction of a neural network and convey that information [...]","og_url":"https:\/\/josephpcohen.com\/w\/gifsplanation\/","og_site_name":"Joseph Paul Cohen PhD","article_published_time":"2021-02-20T01:56:23+00:00","article_modified_time":"2023-06-12T00:06:49+00:00","og_image":[{"width":223,"height":223,"url":"https:\/\/josephpcohen.com\/w\/wp-content\/uploads\/PC_Dataset-10201199918783419519779794936126082408474409-Cardiomegaly-1-XRV-DenseNet121-all-latentshift-max.png","type":"image\/png"}],"author":"Joseph Paul Cohen","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Joseph Paul Cohen","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/josephpcohen.com\/w\/gifsplanation\/#article","isPartOf":{"@id":"https:\/\/josephpcohen.com\/w\/gifsplanation\/"},"author":{"name":"Joseph Paul Cohen","@id":"https:\/\/josephpcohen.com\/w\/#\/schema\/person\/e25d0d5746952220f35d182ca7aa8684"},"headline":"Counterfactual Explanations for Chest X-rays","datePublished":"2021-02-20T01:56:23+00:00","dateModified":"2023-06-12T00:06:49+00:00","mainEntityOfPage":{"@id":"https:\/\/josephpcohen.com\/w\/gifsplanation\/"},"wordCount":116,"publisher":{"@id":"https:\/\/josephpcohen.com\/w\/#\/schema\/person\/e25d0d5746952220f35d182ca7aa8684"},"articleSection":["Featured","Medical"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/josephpcohen.com\/w\/gifsplanation\/","url":"https:\/\/josephpcohen.com\/w\/gifsplanation\/","name":"Counterfactual Explanations for Chest X-rays - Joseph Paul Cohen PhD","isPartOf":{"@id":"https:\/\/josephpcohen.com\/w\/#website"},"datePublished":"2021-02-20T01:56:23+00:00","dateModified":"2023-06-12T00:06:49+00:00","breadcrumb":{"@id":"https:\/\/josephpcohen.com\/w\/gifsplanation\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/josephpcohen.com\/w\/gifsplanation\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/josephpcohen.com\/w\/gifsplanation\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/josephpcohen.com\/w\/"},{"@type":"ListItem","position":2,"name":"Counterfactual Explanations for Chest X-rays"}]},{"@type":"WebSite","@id":"https:\/\/josephpcohen.com\/w\/#website","url":"https:\/\/josephpcohen.com\/w\/","name":"Joseph Paul Cohen PhD","description":"","publisher":{"@id":"https:\/\/josephpcohen.com\/w\/#\/schema\/person\/e25d0d5746952220f35d182ca7aa8684"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/josephpcohen.com\/w\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/josephpcohen.com\/w\/#\/schema\/person\/e25d0d5746952220f35d182ca7aa8684","name":"Joseph Paul Cohen","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/josephpcohen.com\/w\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/a810b57939e75247f570c9094e7bd16e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a810b57939e75247f570c9094e7bd16e?s=96&d=mm&r=g","caption":"Joseph Paul Cohen"},"logo":{"@id":"https:\/\/josephpcohen.com\/w\/#\/schema\/person\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/josephpcohen.com\/w\/wp-json\/wp\/v2\/posts\/1577"}],"collection":[{"href":"https:\/\/josephpcohen.com\/w\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/josephpcohen.com\/w\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/josephpcohen.com\/w\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/josephpcohen.com\/w\/wp-json\/wp\/v2\/comments?post=1577"}],"version-history":[{"count":8,"href":"https:\/\/josephpcohen.com\/w\/wp-json\/wp\/v2\/posts\/1577\/revisions"}],"predecessor-version":[{"id":1721,"href":"https:\/\/josephpcohen.com\/w\/wp-json\/wp\/v2\/posts\/1577\/revisions\/1721"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/josephpcohen.com\/w\/wp-json\/wp\/v2\/media\/1578"}],"wp:attachment":[{"href":"https:\/\/josephpcohen.com\/w\/wp-json\/wp\/v2\/media?parent=1577"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/josephpcohen.com\/w\/wp-json\/wp\/v2\/categories?post=1577"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/josephpcohen.com\/w\/wp-json\/wp\/v2\/tags?post=1577"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}