Detect Energy Theft Faster with Genie
Summary
- Energy theft detection: Machine learning models flag suspicious accounts and help investigators interpret risk signals for faster revenue recovery.
- Business process automation: Databricks Apps automate the complete workflow from incident detection through investigation and dispatch-ready reporting.
- Revenue protection at scale: Energy providers can recover approximately 70% of their theft exposure through ML and AI processes on the Databricks Data and AI platform.
Detect Energy Theft Faster with Genie

In this demo, Databricks showcases a closed-loop AI business process for energy theft detection and revenue protection hosted on a Databricks App. You’ll see how energy providers can manage their own ML Models to flag suspicious accounts suspicious accounts, help investigators interpret risk signals, generate dispatch-ready reports, answer executive questions with trusted analytics, and automate board-level reporting on a single governed platform.
What you’ll learn from watching:
How to identify and prioritize likely energy theft cases from ML models in Databricks
How business users can interact with data intelligent Databricks Apps
How to embed AI in the business process to accelerate revenue recovery
How to deliver trusted KPI answers with Genie Agents
Learn more about Databricks for Energy in our industry forum: https://events.databricks.com/FY27Q2-IF-VirtualEnergyForum
Chapters
0:00Energy theft challenge1:08Quantifying revenue risk2:07Executive visibility3:18Querying with Genie3:54Governance fundamentals4:44Investigation workbench5:35AI-enabled triage7:21Integrated workflows8:09Platform architecture10:34AI governance and control13:01Rapid application building14:02Multi-agent automation14:59Future opportunities
FAQs
How does machine learning detect energy theft?
ML models analyze consumption patterns and anomalies to flag suspicious accounts that may indicate energy theft. In the UK alone, 1.4 billion pounds is stolen annually from energy retailers, making detection critical. This video shows how investigators can then use Genie and business apps to investigate flagged cases.
What is the revenue impact of energy theft detection?
Energy providers implementing ML and AI processes on Databricks have recovered approximately 70% of their theft exposure. For a market leader with significant market share, automating detection and investigation processes can recover millions of pounds in annual revenue.
How do Databricks Apps accelerate investigations?
This video demonstrates how custom Databricks Apps let revenue protection analysts triage high-risk flagged accounts and generate dispatch-ready reports. By combining ML models with app-based workflows, organizations can move faster from detection to action.
How does Genie help with fraud investigation?
Genie allows managers and analysts to ask natural language questions of telemetry data, generating trusted analytics for board-level reporting and strategic decisions. The combination of ML detection, Genie analytics and automation creates a closed-loop AI business process for energy theft protection.
Full transcript
0:00 Energy theft challenge
With data bricks, organizations like those you've heard about today and thousands more embed AI into their business processes at scale on our unified, open, governed, and AI flexible data intelligence platform. I'm a data brick solutions architect focusing on all of the exciting challenges and opportunities that lie ahead in the energy space here in the UK. I it is my role today to demonstrate to you one such of these closed loop AI business processes on data bricks end to end where we have seen our customers deliver a fairer future faster in energy markets.
Many years back when I was working in energy in Australia, I was tasked to support the revenue protection team building out anomaly detection machine learning pipelines to better predict cases of energy theft in an attempt to reclaim lost revenues due to fraudulent activity. And since moving to the UK, I was naturally curious to compare the numbers surrounding energy theft, find out who's the cheekier market, if you will.
And while I won't dig into that evaluation today, what I did learn was that the Retail Energy Code Authority, Reco and Capgeemini, recently reported that 1. 4 billion Great British pounds is stolen from energy retailers and suppliers each and every year. Now, let's imagine we in the room today work for the fictitious UKI gas company, UKI Gas, and we're sitting pretty cruisy on a 27. 3% market share. However, as a market leader in this space, that could mean our revenue exposure numbers sit at around £323 million per year.
1:08 Quantifying revenue risk
That's a cost for inaction for energy theft on 6. 2 million per week. On data bricks, we've seen energy suppliers reclaim about 70% of their theft exposure by implementing machine learning and AI processes. So our exam question which we will deep dive into together today. How might UKI gas turn 323 million of loss exposure into recovered revenue faster with data intelligence? Well, let me show you. Let's start with meeting the revenue protection team.
Here we have and. is a revenue protection analyst whose responsibility it is to triage the high-risk flagged accounts from the machine learning model process on data bricks. Every day that delays an investigation is another flagged account that could be stolen revenue. And meet, who manages as the head of fraud and intelligence. It's Suz's role to manage the effectiveness of the machine learning and AIdriven business process around energy theft recovery.
2:07 Executive visibility
And she needs to tell the CFO exactly how much revenue we're recovering against our number without waiting for a report. Let's dive into Suz's dashboard. Here in Suz's executive dashboard, she can see all of the relevant revenue protection KPIs around her energy theft exposure for the year, what she's recovered year to date, and the effectiveness of her machine learning model process. However, Sus's favorite part of this dashboard is not that she's tracking very well against her number, but it's when her CFO approaches her with a question that her dashboard is not designed to answer.
Here she relies on databicks genie. Genie is datab bicks's marketleading texttosql agent that knows the language of your business and trusts in it to respond with a trusted answer to her CFO's question. The semantics and KPIs are defined once in Unity catalog and these genie spaces are curated with additional context like space level instructions and curated examples to guide accurate and consistent answers with benchmarks feedback and continuous improvement processes.
3:18 Querying with Genie
Let's go and fire off a question here to data bicks genie. Now when a question is asked to Genie, Genie will be looking at all of the metadata in Unity catalog alongside all of the context that's grounded in UC business semantics like metric views as well as Genie ontology, the way in which the terms of your business link together and important metadata is acquired. Whenever Genie returns a response to and the CFO, they can double click into how Genie arrived at that answer. sees here the revenue recovered measure was actually used from the theft detection metric semantic layer which we call a unity catalog metric view.
3:54 Governance fundamentals
So Genie hasn't simply made this up. It knows the language of your business through the semantics defined once in unity catalog. So with data bricks genie we define the trusted answers. We govern the metrics and the context and the ontology within the Genie space. And we ensure that user identity is managed so that all access controls are respected and users only see the data that they are actually governed and allowed to see.
4:44 Investigation workbench
Now, let's pivot away from Suz's experience to investigation workbench. triages all of the flagged cases for energy theft. Here in his investigation workbench, can see all of the flagged accounts from Suz's data science team which is served to him here via lakebase which supports this application with a Postgress transactional layer on datab bricks enabling low latency serving of insights for and the energy theft protection team.
When Robbie clicks into one of these open high-risk accounts that he's been advised to close, he immediately sees all of the composite risk score of machine learning models broken down by the various signals from the machine learning models to indicate the likelihood of energy theft in this account. But Robbie isn't a data scientist. He doesn't really know what these signals mean. So this time a more effective model is used to produce an LLM case summary to help interpret these inputs in natural language from these inputs. believes this to be a high-risisk case of energy theft upon looking at the consumption profile changes.
5:35 AI-enabled triage
So instead of sending countless emails and looking up organizational knowledge, he fires off another LLM call to this model to generate a field dispatch report. No more wasted weeks compiling property research, revisiting previous inspection notes, and producing compliance actions and safety precautions. This AI enabled business process generates the field dispatch investigation report in seconds based on knowledge in the lakehouse.
Here we are seeing the intersection of OLTP transactional processing, your datab bricks lakehouse knowledge as well as using AI models served to you by datab bricks to be able to accelerate the business process. So Robbie goes ahead and schedules this investigation. Now the investigation results are in and it turns out that this was a case of energy theft by a meter tampering amongst a number of neighbors. So here we can close that business process for confirmed theft. £3,500 were recovered and neighbors were banding together in an area I won't mention as to not to offend anyone here.
So let's just say Melbourne, Australia and confirm that case to be closed. You'll see here we've just added another £3,500 to our number. Although we write to lakebase here to carry out the business process and converge the transactional with the analytical world, this data bricks app could also integrate into service now or Salesforce to carry out the business process in your existing enterprise applications. Today, Robbiey's workbench is a mix of claude and Amazon Nova models served by data bricks model serving, but tomorrow it could be Gemini or Open AI or any other model.
7:21 Integrated workflows
This here is an example of a closed loop AI business process served by Lakebase and AI model serving with Unity AI gateway on data bricks. So what's behind all this? Show me the architecture from left to right. We process millions of meters in our medallion architecture with data engineering on lakeflow to develop our silver model features as well as our business aggregation layout. We have then used MLflow to train and host two machine learning pipelines specialized for energy theft use case developed by Suz's team.
8:09 Platform architecture
We have an isolation forest consumption anomaly score model as well as an LTSM encoder looking for sudden steps down and sudden changes in energy consumption. We then reverse ETL the outputs of these machine learning models into lakebase our low latency operational store allowing us to read write transactions for our business process directly from this application. You've also seen how we interact with our data with data bricks genie how we can use genie spaces to be the agent that delivers trusted answers to our plain English questions.
And what you're seeing today here on the far right is a databicks app. An app built in your favorite application framework hosted on databicks respecting all of the Unity catalog governance rules and access controls throughout the entire process. Today Robbie's workbench employs a mix of anthropic claude and Amazon Nova models all served by data bricks model serving. But tomorrow these could be Gemini or OpenAI or any other model. one config change to change the model.
Every call goes through the same Unity AI gateway which you can set up with PII blocking, budgets, guard rails, rate limits, access controls, and full audit logging. Regardless of which model that you choose to use, the entire architecture here runs on serverless compute. You are only ever paying for what you consume with no cluster management, no infrastructure overhead and everything is grounded in Unity catalog across the access controls and data governance that decide which data that you can see all the way to talking to your data with Genie through to the business semantics that Genie and other parts of the platform here would rely on to produce the KPIs and analytics as well as AI governance.
Now what do I mean here by AI governance? Let's dive in. Because all of the models and AI model serving endpoints are registered in a single space in Unity catalog alongside all of the data sets with PII label fields in our Unity catalog. I can see all of the lineage of the PII fields as they traverse through our machine learning model into our scored output and even the Unity AI gateways that they call because of the open-source ethos of data bricks and Unity catalog APIs being open source.
10:34 AI governance and control
We have a feature of bring your own lineage where here I can actually see all of the PowerBI reports that are also using these PII fields. Now let's pivot away from endtoend lineage to Unity AI gateway and AI governance. Through Unity AI gateway there is multi-AI governance and cost control controlling access spend observability across agents, tools, models, LLMs and MCPs. And we can see here who made a particular call, how many input and output tokens, did they have the right access controls to make that call?
And what does this call cost? Because every single call routes through data bricks, your data never leaves the security perimeter. External providers cannot access your tables, PII or prompts. And customers get access to the newest model capabilities with the same security perimeter and trust for their most sensitive data. You can even see here what my return on investment is in terms of my AI cost per investigation.
We have a number of budgets set up for the different models across Bedrock Nova Light across Claude Sonnet on the foundation model APIs and the Llama GPT OSS models that I mentioned as well as well as a total monthly AI cost. So I can not only monitor my token usage and trace it against how effective this use case is to work out a TCO and a costbenefit analysis. But I'm actually enforcing these budgets. And with Omniant, I can even bring this level of governance right down to the coding tools, not just into the application as well.
This here is production ready market leading AI governance and it's open across whatever models come forward into the future as well. I'd like to highlight something with Genie code and omnient a meta harness for all of your AI agents available in your data bricks workspace today. I built this entire application in two days. This isn't a monthsl long project. It's a pattern that you can replicate quickly with your Aentic data intelligence platform on data bricks.
13:01 Rapid application building
And with Genie app builder announced at Summit coming to your workspaces soon, we'll be able to do this process even more quickly to build reusable agents and vibe code business applications, all governed by Unity catalog. and would now like to augment their small revenue protection team with an AI agent. spends two to three days per month assembling a revenue protection board pack for the CFO when she could instead be improving the effectiveness of a machine learning model and AI enabled business process.
Here she uses datab bricks agent bricks to develop a multi- aent supervisor that generates the board pack automatically. This is a multi- aent supervisor which integrates and orchestrates a range of genie questions producing the output of those questions as the results of the KPIs for the month but then also call external models to write the narrative of model performance. Here we're seeing calls from both Genie Gemini and Bedrock produce the revenue protection board report for June.
14:02 Multi-agent automation
We can see here all of the KPIs, an overview, the narrative, as well as the model performance and board recommendations for what to do next within multi- aent supervisor. Similarly to Genie, we can see the traces within every single result and how they were derived. You see here those metric views were used once again grounded once in Unity catalog but used everywhere by our AI agents. Whilst today we have been talking about energy theft and the revenue protection team at UKI gas, these capabilities, this architecture and the closed loop AI business processes that we can create here on data bricks are a blueprint to implement any agentic workbench in the problems that you're solving for across energy trading and other energy use cases.
14:59 Future opportunities
I would encourage you to think about similar kinds of detection and similar kind of use cases in your space because the energy and utilities landscape is rapidly transforming and the challenges and opportunities have never been greater with the tools that we have at our disposal. Our data consumers are demanding AI embedded applications and development at speed. But we need to harness these with governance in mind. So with data bricks as your agentic lakehouse platform, you can address these opportunities with openness and AI flexibility on your side alongside enterprise governance and cost optimization in mind.
And we look forward to partnering with you to deliver a range of valued driving use cases in energy and utilities.
Learn more about the Databricks Data and AI platform.
The information provided herein is for general informational purposes only and may not reflect the most current product capabilities or configurations.