Blog · Power distribution

Find the loss, not the village: AI for power distribution losses in Pakistan

A transformer cannot tell who paid. An AI the distribution company owns can.

A high voltage power line tower against the setting sun in Kandiaro, Sindh, Pakistan
Photo: Saeed Ahmed Abbasi, Kandiaro, Sindh · Pexels

3 December 2026 · Muhammad Umar · Cofounder, Pakistan Stack

On Nov 25, Pesco switched off 71 transformers in Lower Dir.
1,678 consumers lost power in one recovery drive.

A transformer cannot tell who paid.
Everyone on it goes dark.

The loss is national.
In six months, distribution company losses added Rs112 billion to circular debt.

A company knows the power it sends into each feeder, and the power it bills.
When they do not match, teams go out on drives to find where it went.

An audit found 160 Fesco feeders that billed more power than they received.
Meters, feeders and bills sit apart. No one sees the whole path.

This is work AI can do.
It matches power sent with power billed, every transformer, every month.

It points to the one connection losing power, not the whole village.
An engineer approves every action.

The grid and billing records stay inside the company, inside Pakistan.
An AI you own learns every month. A rented one learns for its vendor.

Pakistan Stack aims to save $2 billion in automated decision making.

Those are the lines of our film on this problem.
What follows is the problem, how it runs today, and the design that solves it.

The problem

On 26 November 2026, Dawn reported that Peshawar Electric Supply Company had disconnected 71 transformers in the Samarbagh and Lal Qila subdivisions of Lower Dir.
Those transformers serve 1,678 consumers.

The company said 3,811 registered consumers in the two subdivisions owed Rs158 million, and that more than half of them were in default.
247 News carried the same figures the same day.

The company also said it was working with the district administration so that consumers who pay on time are spared.
That is the hard part, because a transformer is one switch for everyone connected to it.

The loss is national.
The Finance Division's report on federal state owned enterprises for July to December 2025 puts the circular debt flow from distribution company inefficiencies at Rs112 billion, a figure The Express Tribune reported on 6 October 2026.

The records do not always meet.
An audit for the financial year 2024 to 2025 found that 160 of the 1,394 feeders at Faisalabad Electric Supply Company had billed more units than they received, The News reported on 25 November 2026.

The difference was 30.8 million units, valued at Rs1.26 billion, as ProPakistani also reported.
The company pointed to dual supply arrangements and load moved between feeders during faults, and the auditors asked for a comparison feeder by feeder.

How it runs today

A distribution company measures the energy it sends into each feeder at the grid station.
It measures what it bills at each consumer's meter.

The gap between the two is the loss, and it is usually read for a whole feeder, once a month.
Where inside the feeder the energy went is found by teams in the field.

Meter data, billing, the network map and inspection records sit in separate systems.
No one system follows a unit of energy from the grid station to the bill.

What the AI does

It computes energy in against energy billed for every feeder and every transformer, every month.
When a transformer's balance crosses its threshold, it joins the meter load, the tamper events, the billing history and the inspection record into one ranked list of likely causes.

So the answer comes down to a connection.
The company acts on the one connection losing power, and the consumers who paid keep their supply.

It catches the opposite error too.
A feeder that bills more than it received shows up in the same balance, in the month it happens.

How it is deployed

Each distribution company runs its own system over its own grid and billing records.
It reads the systems the company already runs and changes none of them.

Agents draft and people decide, by name.
The subdivision engineer approves the ranked causes and the inspection visits, the inspection officer approves the case file, and the revenue officer approves any billing correction.

Every approval is recorded with the role, the time and a written reason.
Every confirmed cause becomes the record the next ranking reads.

Why the company owns it

Those records map every home and every payment in a district.
They stay inside the company and inside Pakistan.

An AI you rent learns for its vendor.
One you own learns for you, and every month makes it sharper.

So the system runs inside the company, air gapped where it needs to be, on open weight models and software it owns.

The reference design

The full design is published in the open as the Sovereign AI Architecture for Distribution Loss and Theft Reduction in Pakistan.
Its object model, from the grid station and the feeder to the meter, the billing account and the recovery, is the Pakistan Stack ontology for Power and Utilities.

This piece is written from public reports and that open design.

The goal

This is one problem in one industry.
Pakistan Stack exists to transform Pakistan's state owned enterprises and government institutions with AI, with autonomy for every institution and less bureaucracy in every decision.

Our ambitious goal is to save $2 billion in automated decision making.

Start here

Bring one operation and one team. Ship your first ontology.

Start with a guided trial on your own data, inside your own walls.