Automated Peer-Comparison Clustering for Energy Utilities
Exact Baseline Match with Built-In Quality Scoring
My Role
- 22 checks scoring every cluster 0–100
- Failing clusters auto-broadened or suppressed
- Validation against client baseline, user by user
Approach at a Glance
Details- 1Automated Population Filter
- 2Feature Engineering from Raw Data
- 3Size-Balanced Clusters
- 4Quality Scoring
- 5Fallback and Monitoring
- 6Validation Against the Baseline
Executive Summary
An engine that automates peer-comparison clustering for an energy-analytics company that works with utilities across several continents. Peer comparison shows households how their energy use compares with similar homes. To do that, every utility's customers have to be grouped into clusters of truly comparable households.
The client's clustering already worked in production, but onboarding each new utility was slow and manual: review cycles, logic tweaks and reruns, on data whose quality varies by region. Our engine does the whole process automatically, from raw enrollment data to finished clusters, and adds what the manual process never had:
- 22 quality checks, a 0–100 score for every cluster and a serving decision for each.
- Automatic fallback for clusters that don't pass.
- Health monitoring for pilot rollouts.
On the client's own baseline, the engine reproduced the existing clustering exactly: 10,100 users, 37 clusters, 19 feature groups, the same median cluster size of 288, and zero users placed differently. On top of that it scored the clusters at 99.7 out of 100 on average. The POC was accepted, and we completed the follow-up phase as well. I wrote the proposal and was the architect and tech lead, with an ML engineer, an integration engineer, a business analyst, QA, DevOps and a PM.
Client Profile
The client provides energy analytics to utilities, and peer comparison is one of its customer-engagement features: "you used 12% more than similar homes nearby" is only credible if "similar homes" really are similar.
Onboarding a new utility dataset was the bottleneck:
- Manual and slow: each dataset went through several review cycles, logic adjustments and reruns before clustering was ready.
- Uneven data: property attributes such as dwelling type or living area are complete in some regions and missing in others.
- Hard to scale: every new utility added effort, which limited how fast the feature could roll out.
- No quality signal: there was no systematic way to tell whether a cluster was good enough to show to customers.
Technical Approach
-
Automated Population Filter – Only homes that can be compared fairly are kept: no solar, all-electric, smart (AMI) meters and a valid heating fuel. On the client's data this filtered ~299K enrollment records down to ~205K eligible households.
-
Feature Engineering from Raw Data – Features that used to be prepared by hand are derived automatically:
- geographic clusters from latitude and longitude with k-means;
- heating fuel (electric or not);
- dwelling group mapped from raw dwelling codes (single-family, multi-unit, mobile, unknown);
- living-area bands binned from raw square footage.
-
Size-Balanced Clusters – Each combination of features forms a peer group, and groups that are too large are split into size-balanced sub-clusters of about 288 homes, so every comparison has a meaningful but not oversized peer set.
-
Quality Scoring – 22 checks across 6 quality areas score every cluster from 0 to 100 and assign it a serving band. They cover size, feature consistency and the share of unknown attributes, among others. Behaviour and compactness checks use monthly energy usage and switch on automatically when usage data is available.
-
Fallback and Monitoring – Clusters that fail are automatically broadened or suppressed, so customers never see a weak comparison. Pilot-level checks monitor the health of a rollout as a whole. Results are exported as cluster and user files for the client's platform.
-
Validation Against the Baseline – We ran the engine on the exact users of the client's reference clustering and compared it group by group, cluster by cluster and user count by user count.
Business Outcome
Onboarding peer comparison for a new utility no longer depends on manual review cycles. The engine builds the clusters from raw data, scores their quality and handles weak clusters automatically. Validated on the client's own baseline, it matched the existing clustering exactly, with an average quality score of 99.7/100 and every cluster fit to serve. The POC was accepted, and the follow-up phase was completed.
Technologies
Planning something similar?
Tell me about it on a short call. New projects can start within 2 weeks