{"id":19260,"date":"2022-12-16T08:45:00","date_gmt":"2022-12-16T07:45:00","guid":{"rendered":"https:\/\/www.ntnu.no\/blogger\/cius\/?p=19260"},"modified":"2022-12-13T14:50:55","modified_gmt":"2022-12-13T13:50:55","slug":"we-built-an-ai-tool-to-help-avoid-environmental-disasters","status":"publish","type":"post","link":"https:\/\/www.ntnu.no\/blogger\/cius\/2022\/we-built-an-ai-tool-to-help-avoid-environmental-disasters\/","title":{"rendered":"We built an AI tool to help avoid environmental disasters"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Artificial intelligence helps us more and more with decision-making in fields such as medicine, transportation, and information retrieval. In collaboration with Equinor, Norway\u2019s biggest oil and gas company, we have now added another field to the list: Interpreting integrity logs from oil and gas wells. Together, we built an AI-based assistant for Equinor\u2019s log interpreters that they are now using in their daily work.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In short, well integrity interpretation is a safety-critical task to make sure that oil and gas reservoirs cannot leak. Well integrity interpreters analyse complex sonic and ultrasonic measurements made in the well to determine whether it is properly sealed or not. Failure to do this task can lead to <a href=\"https:\/\/en.wikipedia.org\/wiki\/Deepwater_Horizon_explosion\">serious disasters&nbsp;such as the <em>Deepwater Horizon<\/em> explosion<\/a> which led to <a href=\"https:\/\/en.wikipedia.org\/wiki\/Deepwater_Horizon_oil_spill\">one of the largest environmental catastrophes in history<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"767\" src=\"https:\/\/www.ntnu.no\/blogger\/cius\/wp-content\/uploads\/sites\/79\/2022\/12\/DeepWaterHorizon_PhotoUnitedStatesCoastGuard-1024x767.jpg\" alt=\"Firefighting boats tackling the Deep Horizon oil platform fire.\" class=\"wp-image-19263\" srcset=\"https:\/\/www.ntnu.no\/blogger\/cius\/wp-content\/uploads\/sites\/79\/2022\/12\/DeepWaterHorizon_PhotoUnitedStatesCoastGuard-1024x767.jpg 1024w, https:\/\/www.ntnu.no\/blogger\/cius\/wp-content\/uploads\/sites\/79\/2022\/12\/DeepWaterHorizon_PhotoUnitedStatesCoastGuard-300x225.jpg 300w, https:\/\/www.ntnu.no\/blogger\/cius\/wp-content\/uploads\/sites\/79\/2022\/12\/DeepWaterHorizon_PhotoUnitedStatesCoastGuard-768x575.jpg 768w, https:\/\/www.ntnu.no\/blogger\/cius\/wp-content\/uploads\/sites\/79\/2022\/12\/DeepWaterHorizon_PhotoUnitedStatesCoastGuard.jpg 1379w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Firefighting ships after the Deepwater Horizon explosion. Photo: United States Coast Guard.<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Our assisted interpretation tool<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The tool acts as a helpful colleague who, at the click of a button, can offer an interpretation of a given well integrity log. The interpreter can then use this automatic interpretation as a basis for their own. In the end, however, the human interpreter makes the final judgements and takes responsibility for the result.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Building this tool was a joint project between CIUS and Equinor involving researchers from both sides, with extensive experience with machine learning on well integrity logs, and experienced well log interpretation experts with lots of domain knowledge, who would also be among the end-users of the tool.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Our machine learning problem<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Building this tool was not straightforward. To explain why, I first need to explain the machine learning technique it is based on. We use a <em>supervised<\/em> machine learning algorithm that learns its task by looking at matching examples of input and output. The process is analogous to a <em>very<\/em> na\u00efve child with no understanding of the world being trained to recognise animals by looking at pictures of individual animals while being told which animal is which.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">With no understanding of the world around it, this child can easily end up learning associations that work for the training pictures but don\u2019t work in general \u2014 for example, <em>any animal sticking its tongue out with its mouth open is a dog<\/em>. The problem gets even harder if some of the animal pictures are unclear, or if the child occasionally gets told the wrong animal for a picture.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"741\" height=\"368\" src=\"https:\/\/www.ntnu.no\/blogger\/cius\/wp-content\/uploads\/sites\/79\/2022\/12\/Dog_Goat_ErlendViggen.png\" alt=\"Two pictures side by side of a dog and a goat - both with their tongues sticking out.\" class=\"wp-image-19267\" srcset=\"https:\/\/www.ntnu.no\/blogger\/cius\/wp-content\/uploads\/sites\/79\/2022\/12\/Dog_Goat_ErlendViggen.png 741w, https:\/\/www.ntnu.no\/blogger\/cius\/wp-content\/uploads\/sites\/79\/2022\/12\/Dog_Goat_ErlendViggen-300x149.png 300w\" sizes=\"auto, (max-width: 741px) 100vw, 741px\" \/><figcaption class=\"wp-element-caption\">Animals I found at home (left) and on the Internet (right). With their tongues out and their mouths open, both are obviously dogs \u2014 right? Photos: Quynh Trang Nguyen\/NTNU, Linnaea Mallette via publicdomainpictures.net.<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">For our tool, the input is not animal pictures, but previous well integrity logs, and the \u2018answer key\u2019 is not animal names, but expert interpretations of those logs. As in every complex interpretation task, different interpreters will disagree to some degree. Even individual interpreters are not perfectly consistent from day to day. Hence, the machine learning algorithm will get a somewhat inconsistent answer key. To train the algorithm better, it is important to improve the consistency as much as possible.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Furthermore, the input well log data is complex \u2014 it contains a lot of different types of information, and much of it is often not predictive of what the interpretation should be. Some of the data is even junk, with a regular pattern that lets human interpreters easily identify and disregard it. However, machine learning algorithms are na\u00efve, and can\u2019t disregarding the junk data as easily!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Improving the machine learning<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In this collaboration project between CIUS and Equinor, we made some major strides compared to our previously published work, which significantly improved the quality of the automatic interpretations. On the input side, we developed a simple and sufficiently robust method to identify and filter out the junk data. Furthermore, we improved our methods to break down the log data before feeding it to the machine learning algorithm.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On the output side, however, the close collaboration with Equinor\u2019s well log interpretation experts unlocked some major improvements over previous CIUS work based on older Equinor logs. Since those logs, Equinor has developed and adopted a much better interpretation system than what is commonly used in the industry, where interpretations are made using an inherently subjective rating scale. While this approach works, the subjectivity leads to inconsistencies that can trip up the machine learning. Equinor\u2019s new annotation system, however, specifies <em>what<\/em> is behind the casing. This allows for more precision and objectivity, which reduces inconsistencies and benefits the machine learning.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"454\" height=\"446\" src=\"https:\/\/www.ntnu.no\/blogger\/cius\/wp-content\/uploads\/sites\/79\/2022\/12\/Log_ErlendViggen.png\" alt=\"Screenshot of spreadsheet with well log data in colour-coded rows.\" class=\"wp-image-19266\" srcset=\"https:\/\/www.ntnu.no\/blogger\/cius\/wp-content\/uploads\/sites\/79\/2022\/12\/Log_ErlendViggen.png 454w, https:\/\/www.ntnu.no\/blogger\/cius\/wp-content\/uploads\/sites\/79\/2022\/12\/Log_ErlendViggen-300x295.png 300w, https:\/\/www.ntnu.no\/blogger\/cius\/wp-content\/uploads\/sites\/79\/2022\/12\/Log_ErlendViggen-70x70.png 70w\" sizes=\"auto, (max-width: 454px) 100vw, 454px\" \/><figcaption class=\"wp-element-caption\">The 30 classes of Equinor\u2019s current cement log interpretation scheme; I rephrased some descriptions for brevity.<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Furthermore, the project\u2019s well log interpretation experts constructed a very high-quality set of logs for training and testing the machine learning. They took previously interpreted Equinor logs, excluded logs that were too ambiguous to serve as training examples, and performed an extra quality control to improve the internal consistency of the dataset.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The tool today<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">During the project, we integrated the assisted interpretation tool into the software used by Equinor\u2019s well log interpreters so that they could easily use it as part of their daily workflow. As a result, Equinor\u2019s interpreters now makes extensive use of the tool, which Equinor is currently maintaining and expanding.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Equinor also plans to release the source code of this tool for the use of other companies. Their aim is to benefit the entire industry by providing a tool to improve safety.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Want to know more?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If you are interested in getting a more technical overview of our improvements and the implementation, I have <a href=\"https:\/\/erlend-viggen.no\/new-adventures-in-assisted-well-log-interpretation\/\">a more detailed post on my personal research blog<\/a> for you as well. You can also get the full picture from <a href=\"https:\/\/doi.org\/10.2118\/209529-PA\">an article that we recently published in the journal SPE Drilling &amp; Completion<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Artificial intelligence helps us more and more with decision-making in fields such as medicine, transportation, and information retrieval. In collaboration with Equinor, Norway\u2019s biggest oil and gas company, we have now added another field to the list: Interpreting integrity logs from oil and gas wells. Together, we built an AI-based assistant for Equinor\u2019s log interpreters that they are now using in their daily work.<\/p>\n","protected":false},"author":433,"featured_media":19263,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[107,106,150,165,147,149],"class_list":["post-19260","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oilgas","tag-ai","tag-artificial-intelligence","tag-equinor","tag-oil-well","tag-petroleum-well","tag-well-log"],"_links":{"self":[{"href":"https:\/\/www.ntnu.no\/blogger\/cius\/wp-json\/wp\/v2\/posts\/19260","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ntnu.no\/blogger\/cius\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ntnu.no\/blogger\/cius\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ntnu.no\/blogger\/cius\/wp-json\/wp\/v2\/users\/433"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ntnu.no\/blogger\/cius\/wp-json\/wp\/v2\/comments?post=19260"}],"version-history":[{"count":4,"href":"https:\/\/www.ntnu.no\/blogger\/cius\/wp-json\/wp\/v2\/posts\/19260\/revisions"}],"predecessor-version":[{"id":19269,"href":"https:\/\/www.ntnu.no\/blogger\/cius\/wp-json\/wp\/v2\/posts\/19260\/revisions\/19269"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ntnu.no\/blogger\/cius\/wp-json\/wp\/v2\/media\/19263"}],"wp:attachment":[{"href":"https:\/\/www.ntnu.no\/blogger\/cius\/wp-json\/wp\/v2\/media?parent=19260"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ntnu.no\/blogger\/cius\/wp-json\/wp\/v2\/categories?post=19260"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ntnu.no\/blogger\/cius\/wp-json\/wp\/v2\/tags?post=19260"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}