XenonStack

DataOps

XenonStack Use Case Big Data Analytics Platform for Oil and Gas

| Published | Updated

Big data analytics platform for oil and gas: files and refinery sensors, batch and stream ingestion, models on BigQuery, real-time predictions

Key takeaway

  • How an oil and gas big data analytics platform joins batch files and live sensor streams for real-time predictions, and what to check before you build.
. #}

A big data analytics platform for oil and gas collects data from batch files and live machine sensors, stores it in one place and runs analytics and machine learning on it so teams can act on predictions in real time. It turns raw feeds from refinery machines and industry data sources into information that engineers and managers can use.

This page is for data, operations and engineering leaders in energy. It covers the problem, the data flow, how predictive models are built and deployed, where AI agents fit and what to check before you start.

What does an oil and gas analytics platform do?

The platform first collects data through the APIs and files of many sources and integrates it into the application, even when the volume is very large. It then plans storage for data that is constantly updated, processes the raw data into relevant information, and visualises it. Analytics applications are built on top of that foundation.

Two-column diagram. Batch path: EBCDIC files, SQL Server, Beam on Dataflow, data lake. Streaming path: machine sensors, Pub/Sub, BigQuery, models.

In the design described here, the sources are of two kinds. Batch sources are a monthly subscription to an FTP server that delivers oil and gas files for the state of Texas, plus historical data held in SQL Server. Streaming sources are sensors attached to refinery machines.

What problems does it have to solve?

  • Predictions in real time. A prediction is only useful if it arrives before the event.
  • Large volumes. Sensors and industry feeds produce data continuously.
  • Monitoring and security. Live data needs real-time monitoring and protection.
  • Quality and storage. Data from different sources must be clean, consistent and stored for reuse.
  • Integration and analytics. Batch and streaming data must meet in one place before analysis.

How does the data flow through the platform?

  1. Batch collection. Both batch sources hold files in EBCDIC. The EBCDIC article on Wikipedia explains that EBCDIC is an eight-bit encoding developed by IBM for its System/360 mainframes and that hundreds of variants exist, so files must be decoded with the right code page. Apache Beam pipelines running on Cloud Dataflow read both sources and write to a data lake.
  2. Streaming collection. Code deployed on the sensor writes the state of each machine to Google Pub/Sub. The Pub/Sub overview describes it as an asynchronous and scalable messaging service that separates the services producing messages from the services processing them.
  3. Storage. Both flows land in BigQuery, so historical and live data can be queried together.
  4. Analytics. Models are trained on the data in BigQuery, and machine learning and deep learning algorithms run on incoming data to meet the targets set for them.

The Apache Beam overview says Beam defines pipelines that handle both batch and streaming work, and that the same classes represent bounded and unbounded data. That is why one tool can serve both source types.

How are predictive models built and deployed?

Predictive analytics takes a proactive approach built on statistical techniques and models. A prediction is a warning signal before an event occurs, and the practice involves deciding what to predict, collecting the right data, creating a model, applying real-time predictions and finally deploying the application. Typical uses include risk management, fraud detection, disaster management and cyber security.

  1. Explore the data in a notebook environment and draw graphs from BigQuery.
  2. Create a sampled dataset and build a TensorFlow wide and deep model on that small sample.
  3. Pre-process the full data at scale with Dataflow.
  4. Train on a managed machine learning service, tune the hyperparameters and create the model.
  5. Deploy the trained model as a microservice for real-time and batch prediction.
  6. Deploy a web application that consumes the machine learning service.
  7. Move the model to the data in Bigtable.

How do batch and streaming data compare?

QuestionBatch sourcesStreaming sources
ExampleMonthly industry files and historical recordsMachine states from refinery sensors
FormatEBCDIC files that need decodingMessages written by code on the sensor
TransportFTP and SQL Server, read by Beam on DataflowPub/Sub topic
Main useHistory for training and trend analysisLive monitoring and real-time prediction
Main riskWrong decoding or missing monthsLate, duplicate or missing messages

Where do AI agents fit?

Models raise a warning, but someone still has to decide what to do about it. An AI agent can read the prediction, retrieve the machine history and maintenance record, propose an action and route it to an engineer for approval. The agent should work within the limits the operator sets, and every action should leave a record. ElixirData is XenonStack's Context OS, a platform for governed context and decision records that agents depend on.

What should you check before you build?

  • Source rights. Confirm that you may use each subscription dataset the way you plan to.
  • Encoding. Test EBCDIC decoding on a sample file before loading the full history.
  • Ownership. Name who owns data quality for each source.
  • Latency. Decide how fast a prediction must arrive to be useful, then test that path end to end.
  • Action rules. Decide which predictions trigger an automatic step and which need a person.

To map one decision your agents make from this data, and the data and policy it depends on, book a Context Workshop. See what happens in the workshop.

Frequently asked questions

What is a big data analytics platform for oil and gas?

It is a platform that collects batch and streaming data from industry sources and refinery machines, stores it centrally and applies analytics and machine learning to support real-time decisions.

Why are EBCDIC files a problem?

EBCDIC is a separate encoding from ASCII, and many variants exist. Files must be decoded with the correct code page before analysis, or characters will be wrong.

What role does Pub/Sub play?

Sensors write machine states to Pub/Sub, which delivers them to the services that process them without the sensors waiting for those services.

What is predictive analytics?

It is a proactive approach that uses statistical techniques and models to give a warning signal before an event occurs.

Where does an AI agent add value?

An agent can read a prediction, gather the related machine history, propose an action and send it to an engineer for approval, within limits the operator sets.

Ready to put AI agents to work? See an ElixirClaw demo: the agentic OS to build, orchestrate and govern AI agents across your enterprise systems.

Table of Contents

Get the latest articles in your inbox

Subscribe Now

Interested in Solving your Challenges with XenonStack Team
Get Started

Get Started with your requirements and primary focus, that will help us to make your solution

Please Select your Industry
Banking
Fintech
Payment Providers
Wealth Management
Discrete Manufacturing
Semiconductor
Machinery Manufacturing / Automation
Appliances / Electrical / Electronics
Elevator Manufacturing
Defense & Space Manufacturing
Computers & Electronics / Industrial Machinery
Motor Vehicle Manufacturing
Food and Beverages
Distillery & Wines
Beverages
Shipping
Logistics
Mobility (EV / Public Transport)
Energy & Utilities
Hospitality
Digital Gaming Platforms
SportsTech with AI
Public Safety - Explosives
Public Safety - Firefighting
Public Safety - Surveillance
Public Safety - Others
Media Platforms
City Operations
Airlines & Aviation
Defense Warfare & Drones
Robotics Engineering
Drones Manufacturing
AI Labs for Colleges
AI MSP / Quantum / AGI Institutes
Retail Apparel and Fashion

Proceed Next