Oil, Gas, and Data Ebook free download pdf pdf

Oil, Gas, and Data

  High-Performance Data Tools in the Production of Industrial Power Daniel Cowles

Oil, Gas, and Data

  by Daniel Cowles Copyright © 2015 O’Reilly Media, Inc. All rights reserved. Printed in the United States of America. Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472. O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions are also available for most titles ( . For more information, contact our corporate/institutional sales department: 800-998-9938 or

  corporate@oreilly.com.

  Editor: Tim McGovern Production Editor: Kara Ebrahim Interior Designer: David Futato Cover Designer: Ellie Volckhausen April 2015: First Edition

Revision History for the First Edition

  2015-04-10: First Release The O’Reilly logo is a registered trademark of O’Reilly Media, Inc. Oil, Gas,

  

and Data, the cover image, and related trade dress are trademarks of O’Reilly

Media, Inc.

  While the publisher and the author have used good faith efforts to ensure that the information and instructions contained in this work are accurate, the publisher and the author disclaim all responsibility for errors or omissions, including without limitation responsibility for damages resulting from the use of or reliance on this work. Use of the information and instructions contained in this work is at your own risk. If any code samples or other technology this work contains or describes is subject to open source licenses or the intellectual property rights of others, it is your responsibility to ensure that your use thereof complies with such licenses and/or rights. 978-1-491-92289-7 [LSI]

Introduction

  When you hear “innovation in oil and gas,” your first thoughts might go to hardware — bigger, faster, deeper drilling; more powerful pumping equipment; and bigger transport — or to the “shale revolution” — unconventional wells, hydraulic fracturing, horizontal drilling, and other enhanced oil recovery (EOR) techniques. But, just like any other industry where optimization is important — and due to large capital investment and high cost of error, it’s perhaps even more important in oil and gas than in most other industries — the potential benefits of predictive analytics, data science, and machine learning, along with rapid increases in computer processing power and speed, greater and cheaper storage, and advances in digital imaging and processing, have driven innovation and created a rich and disruptive movement among oil and gas companies and their suppliers.

  The truth is, the oil and gas industry has been dealing with large amounts of

  

  

  data longer than most, some even calling it the “original big data industr Large increases in the quantity, resolution, and frequency of seismic data, and advances in “Internet-of-Things"-like network-attached sensors, devices, and appliances, are being combined with large amounts of historical data — both outside variables, capital project planning itself is rife with uncertainty, and large-scale projects often face significant overages. “In 2011, upstream offshore oil and gas projects…around 28% had a cost blowout of more than 50% and the root cause of that is…they got the numbers wrong,” says Dominic Thasarathar, who watches the energy sector for the Thought Leadership team at Autodesk. “Their costs have gone up, they’re dealing in everything from frontier environments to difficulties raising finance.” According to the International Energy Agency, capital investments in energy projects have more than doubled since 2000, and are expected to grow by $2 trillion annually by 2035, so accurately predicting cost versus benefit is

  

  extremely important. “Where we see big data fitting in,” continues Thasarathar, “is…if you look at the performance for those big projects, it’s pretty much a horror story in terms of how it’s dropped off over the last 15– 20 years, and the root cause of that is, there’s so much that project teams need to understand and assimilate in terms of information to make the right decision.” But exploration and production aren’t the only areas that can benefit from innovative data and data science driven solutions. From health, safety, and environmental, to cyber security, to transportation and manufacturing — opportunities to create greater efficiencies exist throughout the entire

Overview

  The oil and gas industry is traditionally broken down into three broader categories: upstream, which includes exploration, discovery, and both land and sea drilling and production; midstream, which includes transportation, wholesale markets, and manufacturing and refinement of crude; and

  downstream, which is primarily concerned with the delivery of refined

  products to the consumer. The majority of big and fast data related innovation is found upstream, in the discovery and exploration phase, where risk and uncertainty are high, conditions can be — to put it mildly — challenging, and where failure is very expensive.

  The industry is a mature and unique one, built on experience and hard-won knowledge, and employing the world’s leading geological scientists and engineers. They’re very good at what they do, and they’ve been doing it for a long time, but there is an imperative to add more big data and data science skills like machine learning and predictive analytics into the mix, skills that oil companies haven’t traditionally and broadly had in-house. According to Boaz Nur, former VP of Energy at data science startup Kaggle, energy analysts think big data and analytics are the next frontier in oil and gas, but much any algorithm you want to talk about in machine learning, they have been using it. But, they have been using these in limited cases, to limited value, and the goal is now for people like us (data scientists) to build this into a more valuable product.” He says that the oil and gas industry is unique in terms of the complexity of the data and models, and that turnkey solutions from other traditional big data industries can’t be easily applied here. “It’s a complex challenge. It’s not the same as the other big data players,” says Priyadarshy, who has worked widely on big data projects in the news, media, Internet, and insurance spaces. “The complexity in the oil and gas industry outweighs any other.” Because of that complexity, Priyadarshy stresses the need for domain area expertise when dealing with petrotechnical data, and he has his own definition of the skills a data scientist should have for the space. “You need a person who has domain expertise, a person who is a computer scientist, and a business person — these three actually form a real domain data scientist” for the oil and gas space.

  Another complication is legacy and historical data: some is digital, but much is still found in binder and paper form. From a predictive modeling standpoint, there’s value to be had, but dealing with old systems and documents, often at isolated physical properties, or — as often happens in the are additional barriers to fully digitizing operations. “One of the factors the rigs have to cope with is what they call a black start,” says Stidolph. “If your rig goes down, it means you’ve lost everything: you’ve lost all power generation, all connectivity, all systems of every type. You need a flashlight and you need a manual to be able to see how to get this thing operational again.” Many of these rigs are in hazardous and remote environments, so off- the-shelf connectivity solutions aren’t typically sufficient. But, challenges and cultural resistance aside, big data methods are changing how the industry does business, and these changes will ultimately result in a changed oil and gas industry.

Upstream

  As previously mentioned, oil and gas has long been familiar with large and diverse datasets, and improvements in technology and methodology are driving an exponential increase in the amount of data being collected. In the exploration space, for example, due to advances in seismic acquisition methodology, storage capabilities, and processing power, data gathered via offshore seismic acquisition has gotten both bigger — due to increased resolution — and faster, due to increase in frequency and rate of acquisition. The result is 4D data (x/y/z space, and time) at a far higher resolution, providing far better understanding of subsurface deposits and reservoirs than previously possible. Wide azimuth towed streamer acquisition (WATS) — seismic exploration using multiple ships deploying a miles-wide array of acoustic equipment — allows companies like Chevron and BP to create high- resolution topographic maps under the earth and beneath salt canopies, and

  

  locate new oil fields that may not have been found otherwise. Time-lapse seismic data acquisition also allows them to see how reservoirs are behaving as oil begins to flow, allowing them to optimize production once it begins. As the world’s energy demands continue to grow, and exploration efforts move

Well Optimization and Mature Wells

  Although a lot of recent press and activity focus on the “shale boom” and other unconventional extraction techniques, according to Halliburton, 70% of

  

  the world’s oil and gas comes from mature wells mature well is usually defined as one where peak production levels have been reached, and extraction rates are on the decline, or when the majority of the relatively “easy to get” hydrocarbons that the well will ultimately deliver have been extracted. Typically in wells the early oil and gas is easier and cheaper to extract, and the industry hasn’t been enthusiastic about optimizing extraction, holding a common belief that there is an “economic limit” where it costs more to get the resources out of the ground than they’re worth on the market. However, modern EOR techniques have become more efficient, and sensor data and predictive models play a part in that. These wells have a wide range of factors that make them more complicated — poor flow, poor rock formations, bore cracks, complex geological conditions — but they still have a lot to offer in terms of hydrocarbons. In an industry where small margins mean large sums of money, getting the most from mature and end-of-life wells at the lowest cost is another area where improved use of data can have a significant impact on results. Again according to Halliburton, a 1% increase

Remote Sensors and Network Attached Devices/I of T

  There is already a lot of application and ongoing interest in network-attached devices, appliances, and Internet of Things-like connected devices in the oil and gas space. Halliburton’s Priyadarshy prefers the term “emerging technology devices,” to the “Internet of Things” label, which causes some confusion and resistance in the industry. In any event, remoteness, geographic breadth of facilities and pipelines, hazardous environments, and inaccessibility of many aspects of the oil and gas production cycle make it highly disposed to automation and remote monitoring and optimization. Remotely monitored and controlled devices can help lower cost, effort, and error in resource tracking, and can decrease workforce overhead, improve logistics, and drive well and operations automation and optimization. It’s a big piece of the “digital oilfield” concept, and one that the industry has already embraced. Sensors of all kinds are already used throughout the detection, production, and manufacturing cycle to better understand and monitor processes and gather data. Sensors can capture fluid pressure, velocity and flow,

  The data gathered from all these devices will be valuable for predictive analytics and other applications: from well sensor data that can be analyzed to help optimize productivity, to operations data that can monitor and calibrate operational systems, to transportation data that can help identify bottlenecks and inefficiencies, to workforce data that can help drive safety. But, as Halliburton’s Priyadarshy points out, with those benefits also come some new challenges; for example, sensor data veracity in different physical environments: “Imagine a situation where you build a sensor for Texas weather. If you were to take it to some Middle Eastern country like Kuwait, where temperatures are [significantly] higher…if the sensor starts sending data and you are trying to predict based on what you know from Texas, then you may be in deep trouble.”

Security

  As discussed, there is significant pressure to lower costs and optimize, and remote-controlled and network-attached devices of all types are a means to that end. The downside is, the more connected you are, the more vulnerable you are to network intrusions, intentional or otherwise. And while remote monitoring is also crucial to improved security, it can open holes itself. “There are gains from the automation; you can get more protection, you can do better sensing of what’s happening along your line, there’s lots and lots of opportunities for managing and monitoring the line using automation,” says industrial and oil and gas cyber-security expert Eric Byres, “but your automation system, which is supposed to be protecting your pipeline, [can become] the problem.” A series of events and attacks have made the oil and gas industry keenly aware of the need to dramatically improve their cyber-security. After 9/11, the industry became more concerned about intentional and coordinated attacks, but it wasn’t until the Stuxnet worm attack in 2010 that they started to really address the problem. Stuxnet hit an Iranian nuclear facility in 2010, causing the failure of uranium-enriching centrifuges. Written specifically to vulnerable to attack, and beyond any human disaster, the repercussions could be environmentally catastrophic as well as disruptive to business. Since Stuxnet, there have been other attacks, including the Shamoon virus that hit Saudi Aramco in 2012. Initiated by a “disgruntled insider,” Shamoon wiped out the contents of between 30,000 and 55,000 Saudi Aramco workstations. These attacks, coupled with environmental and PR disasters like Deepwater Horizon, have given the industry all the motivation it needs to get serious about security. “I do think the oil and gas industry is ahead of all the other companies [in terms of security],” continues Byres. “There is a real serious attempt to try and get security under control…that’s the good news.” But while the majors like Shell, Exxon, Chevron, Total, and in particular BP (where Paul Dorey was an early and vocal security advocate) have become very serious about security, you’re only as strong as your weakest link, and the industry is dependent on and tightly integrated with suppliers, contractors, and vendors, many with less sophisticated approaches to security. “That terrifies the guys at BP, that’s why they started becoming evangelists in 2006, 2005 — because they realized they could do a good job on their site, and gain nothing because of the integration to all the other companies around them. The other companies were so insecure.” And it’s not just production that is threatened. The Night Dragon attacks —

and sold as scrap metal. They started making them heavy enough to sink the boats that were used to carry them off, and the thefts stopped. But anecdotes aside, security is now primary for oil and gas IT, and while prevention is still important, most now agree that 100% impenetrability is unlikely, and rapid detection is the most important security tool. This is an area where data science and threat analytics can possibly help. Applying machine learning and pattern recognition to noisy and ever-larger data streams can preemptively detect anomalies and identify attacks. But Byres thinks the complexity of the problem means the industry is a ways off from really leveraging big data and data science solutions in the security space: “There is an opportunity, there’s no question…but we’re still a few years away before anyone uses it effectively.”

Health, Safety, and Environment

  There is also a lot of optimism around the ways big data can help in the health, safety, and environmental space (HSE), and around the ways that predictive analytics and machine learning can be applied to anticipate well and manufacturing downtimes, malfunctions, accidents, and spills. As increasing energy demand pushes oil and gas production into untapped frontiers and deeper waters, with ever harsher and unpredictable environments, the potential for ecological, human, economic, and public relations disaster increases. So, companies are highly incentivized to do everything they can to anticipate and proactively address potential problems. This is a space where historical data can be analyzed to predict future issues, and where models can also tie in new data sources, like weather.

  In addition, unconventional resource plays have introduced a whole new set of environmental and safety concerns, from water, air, and soil pollution to earthquakes. There is thought to be a significant opportunity to tune and improve all aspects of unconventional drilling to reduce the harmful side effects. Data science and predictive models can help drive optimization of fluid injection and more accurate drilling, and by incorporating ever more

High-Performance Computing and Beyond

  To handle the massive increase in the amount of data — for example, in 2013

   —

  companies have turned to expensive high-performance computing centers, and are building out data science expertise in-house, or engaging data science partners. Some of the largest private supercomputing facilities in the world are now run by oil companies, with Italian energy company Eni, France- based Total Group, and now BP all recently building HPC centers capable of

  

  greater than 2 petaflops. ni — which utilizes a CPU/GPU cluster — claims upward of 3 petaflops, while BP — whose facility cost upwards of $100 million — claims 3.8 petaflops of computing power and 23.5 petabytes of disk space, all geared toward processing seismic imaging and hydrocarbon

  

  exploration data. PU processing is now commonplace for seismic data- crunching, and Intel, with their Xeon Phi processor, claims similar or better cost/benefit performance. As falling crude prices impact IT spending, and with cloud computing prices dropping almost as fast as that of crude, it seems that open-source distributed data management computing, in the cloud or on commodity hardware, could demonstrate “how to store and process seismic data in a Hadoop cluster” on

   commodity hardware.

More Cloud and Mobile

  Cloud-based processing of large datasets is also driving innovation and disruption in the supply chain, and allowing for an untethered workforce. Products like Autodesk’s ReCap allow customers to create large (many billion) point-cloud datasets, and render them as 3D models to mobile devices quickly. In the oil and gas manufacturing space, this can mean visualizing wells or facilities on-site via tablet or mobile device. “It’s advances like the cloud that allow things like ReCap to be able to crunch those numbers and stitch photographs together,” says Autodesk’s Thasarathar. And using the cloud to crunch those datasets is becoming attractive to oil and gas companies for a few different reasons. Not only does it allow them to lessen their capital investment in soon-to-be-obsolete hardware, but they can also move the infrastructure cost/benefit burden to the cloud provider. “The fact that they can do it on demand, and you pay for what you use…that consumption-based business model is incredibly attractive to the industry,” says Thasarathar.

Midstream and Downstream

  Primarily because there is less uncertainty, and the cost of failure is lower, there is less innovative data science activity in the midstream and downstream sectors, but there is opportunity there as well. Many of the same principles and techniques apply, especially in midstream activities like crude transport and pipeline security and safety, refinery maintenance, and failure monitoring, logistics, and people and resource management.

Emerging Tech

  Things are changing within the sector, where cluster compute platforms, massive and affordable storage, and new techniques have enabled companies to evolve their existing tools and methods. Data science as a practice is being adopted within the industry, but many companies lack the needed internal data science resources. While they have abundant expertise in geosciences and engineering, among other things, they don’t typically have big and unstructured data, machine learning, predictive analytics, artificial intelligence, or other data science specific expertise. “They’re recognizing that they have a lot of data, both historical as well as new, that they aren’t getting everything they can out of,” says Kaggle’s Nur. So oil and gas related companies are taking different approaches, building out data science teams internally or turning to outside companies for expertise. Let’s take a look at some of these outside companies.

Hortonworks

  Hortonworks is a leading provider of Hadoop solutions, well known in the tech sector, but relatively new to oil and gas. They bring technical expertise and provide solutions with a toolset that oil and gas isn’t familiar with, and they bring an open-source approach to a sector that isn’t known for its openness or its willingness to share. But that’s changing as the industry starts to understand the potential in data science and predictive analytics. “They all want to get into a modern data architecture, and they realize Hadoop is a cornerstone for that,” says Ofer Mendelevitch, Hortonwork’s Director of Data Science. Hortonworks sees opportunities to provide insight throughout the upstream sector, from using predictive analytics to improve production optimization by providing a better sense of when a well might go down, to being better able to predict and proactively handle safety and environmental hazards, to providing a broader and more multidimensional dashboard, including services like weather and social feeds.

  Mendelevitch also sees potential in niche cases, like automatically processing LAS (Log ASCII Standard) files, using algorithms and fitting curves to identify redundancy and greatly reduce work currently done manually. In addition, with a lot of buzz around data security and Internet of Things, they

Kaggle

  Kaggle, a startup with roots as an analytics competition platform, is another tech sector company to have brought data science expertise to the oil and gas space. Kaggle took a different approach, hoping to provide expertise to the oil and gas sector by leveraging its large data science competition community and platform to provide expertise to an industry who might not always have the data science skills in-house to find the solution. Though this business model ultimately did not pan out, Kaggle did achieve successes using data science and well logs, production data, and completion data to optimize drilling parameters like well spacing, orientation, length, and more. “Of course all these decisions they have to make have an economic cost component to them,” said Boaz Nur, former VP of Energy at Kaggle. “The

  

  longer you drill the well, the more it costs; the more proppant e, the more it costs; the more fluid you use, the more it costs…there is some sort of optimal solution,” Nur continues. “We ingest all the data…and we basically come up with that optimal solution. By helping guide them, they’re able to think about the parameters that are most important. Our strategy is to find where data science solutions add the most value, where the challenging problems are, and where data science is the most applicable solution.”

SparkBeyond

  Unlike some pure data science oriented startups, SparkBeyond uses domain area experts to work with their data scientist team, to help ask the right questions and pick the right inputs for their models and machine learning. They emphasize the value of expertise, and stress sound methodology when building complex models. They use Apache Spark, yes, but many other tools as well, and apply a broad multidisciplinary approach and diverse datasets to their oil and gas sector work, a sector full of uncertainty throughout the entire production chain. In addition to standard seismic, production, operational, and log data, they pull from a variety of other sources. “You need to incorporate weather data and APIs with geological data, financial data with news articles to see how geopolitical events can affect (production) cycles,” says Sagie Davidovich, SparkBeyond’s CEO. They also incorporate data from other energy sectors, since it has a direct impact on oil and gas cost/benefit models. Currently most of the work they do is in the unconventional well space, which makes building models challenging because of the relatively small and incomplete sample set for wells of the shale boom era. “Wells drilled since, say 2009, 2010…are very different from the wells drilled 20 years ago,” says actual economic success can take years to prove. So, in the meantime, SparkBeyond works hard to remain transparent and to build models that are easy to understand. Says Davidovich: “What we learned is that being 30– 40% more successful than our competitors is only the first step to get in the door, then you go through other steps.” But they’re seeing things change, partly due to external forces. “If you think about it, the big data hype actually creates a lot of pressure on companies to introduce predictive analytics…and the oil and gas industry is no different,” says Davidovich, and that’s an exciting prospect to him. “There are so many new undiscovered opportunities to bring more certainty to this space, which affects every aspect of our lives.” Adds Maor: “What’s even more interesting is, when our client actually acts on this…when the insights we deliver drive action to change the world in a meaningful way.”

WellWiki

  Joel Gehman started thehen he was a grad student, at a time when the Pennsylvania Marcellus Formation and debates around fracking first appeared in mainstream consciousness. Hoping to become the Wikipedia for wells, WellWiki scrapes public databases to compile a wiki of North American well info. They then combine the database feed with contributions from the community to create a structured dataset tied to user- driven narrative content. The goal is to have information on all the wells — 4 million by Gehman’s estimate — drilled in North America since the Drake Well in 1859. Neither a watchdog nor industry-backed entity, WellWiki remains neutral while trying to provide information and bring transparency to a fragmented and controversial space. “I think of it as giving wells biographies.” Gehman says, “Every well has a story.” While the data was generally publically available, Gehman found it difficult to consume in its nonstandardized form. He wants to harmonize the data and information, which is regulated and recorded inconsistently by state and province in the United States and Canada. Landowners, community members, citizens, journalists, and attorneys have used the site.

Other Disruptors

  There are other relatively new technologies beginning to be adopted that may impact niche segments of the industry. 3D printing has the potential to bring disruption to the supply chain. Drones are beginning to be used to acquire aerial images and remote-sensor data. Crowd-funding platforms like crudefunders.com allow individuals to participate directly in the oil business. DIY spill cleanup and monitoring organizations have sprung up in the aftermath of the Deepwater Horizon spill.

Summary

  “It’s early times, but one of the important things to remember is this is iterative, [it’s] low hanging fruit at first, but over time you can really dial in models to become really good at predicting, safety, or maintenance,” says Hortonwork’s Mendelevitch, and the capabilities of these new tools and platforms are in turn changing the way oil and gas does business; for example, cheaper storage allows them to change retention policies, and keep more data longer. “In the past, a lot of this data was thrown away pretty quickly, because the cost of storing it was very high. That’s the disruptive part of Hadoop — data storage is so inexpensive.” “It’s really important to understand the industry well and the pain points of the industry in order to develop the appropriate solutions,” says Kaggle’s Nur, adding that cultural differences don’t matter if you deliver. “If you have a solution that creates value, and is proven, then clients will use it.” Despite it’s massive size, the oil and gas industry operates on small margins, and depends on efficiency and optimization for profitability. Given extraordinary capital costs, a wide and deep array of risk, and high cost of error, machine learning and predictive analytics — driven by faster,

Innovation in Tough Economic Times

  Recently, of course, oil prices have plummeted. The question is, how will lower crude prices affect investments in innovation and data science? At a time when margins are being squeezed even further, and vendors up and down the supply chain are being asked to cut back, will resources be found for new investment? The consensus seems to be: yes, at first, projects will be cut. But then, innovation becomes a necessity. “The first reaction is usually, we’ll look at our suppliers, and we’ll look at our staff, and we’ll look at our freelance contractors, and we’ll ask them all to take a haircut,” says Lockheed’s Stidolph, “and then they’ll look and see ‘Have we got any projects we can suspend or defer?'…but then they have to look at how they can be smarter, and collaborate more, share drilling rigs, move the data more efficiently, mine it harder.” Autodesk’s Thasarathar also sees opportunity in collaboration, and shared IP, as well as a chance to get leaner and smarter: “Once the dust has settled on the initial kneejerk of ‘cut capital spending by 20%’ or whatever it might be…I think they’re going to look to the supply chains to deliver those costs that are going to be cut…and one way to do that is through innovation and technology.” But the current drop in prices may require more than a “haircut,” as falling prices are causing a steady decline in

  Halliburton’s Priyadarshy sees the commitment to big data as a long-term play: “Data projects are an investment, it’s not like you can get the return tomorrow. You have to invest in it, you have to build a team, and you have to come up with a plan,” he says. “Think of it like building a startup within a company.”

Post-Mortem

  The falling price of crude is already having an impact on data science forays into the industry. Kaggle — mentioned earlier in this article — recently

  

  eliminated their energy-industry consulting business. n addition to falling prices, it’s possible that petro companies were uncomfortable with Kaggle’s “competition-based” business model, which could require them to share their private data with the data science community. While Kaggle’s innovative algorithms and predictive expertise may very well have contributed insights and improved efficiencies to the century-old effort of supplying petroleum to the industrial world, it seems that not enough companies were willing to make that leap quite yet, particularly given the current environment. In the data era, however, we look forward to seeing more experiments — and successes — in this high-stakes industry.

  

   Mar. 2015.

  

   , 22

  Oct. 2013. Web. 20 Mar. 2015.

   HPCWire.com.

  Tabor Communications, Inc., 20 Nov. 2013. Web. 20 Mar. 2015.

  BP.com. British Petroleum, 22 Dec.

  2014. Web. 20 Mar. 2015.

   Cloudera.com. 25 Jan. 2012. Web. 20 Feb. 2015.

  Wikipedia.com. Wiki Foundation, 2 Feb.

  2015. Web. 20 Mar. 2015.

   Mar. 2015.

About the Author

Dan Cowles is a writer, filmmaker, and data geek who has worked in the

  tech sector for the last 20+ years. Dan is interested in human beings and their stories, and all manner and method of telling them. He lives in Berkeley, California, with his wife and son.

  1.

  a.

  b.

  c.

  d.

  e.

  f.

  g.

  h. i. j. k. i. iii. v. l. m.