Back to portfolio

Data Engineering / SQL + Python

Smart-Meter Data Quality & Billing Insights

A repeatable SQL and Python pipeline that cleans AI-based meter reading data so downstream billing analytics start from a trusted, normalized dataset.

Role
Operations & Billing Analyst
Timeline
February 2023 to March 2024
Client
Bharat Smart Services

Tools

SQLPythonPandasExcel

Improved data accuracy by 20% on key billing fields

Standardized 4 inconsistent input formats

Reduced downstream rework across dashboards

Visual

Dashboard preview

Sample output view from the workflow.

Visual

Data pipeline diagram

Ingest, validation, and transformation flow across the working dataset.

Overview

A validation pipeline that ingests raw AI-based meter readings, applies documented validation rules, flags suspicious records for review, and writes a clean table that downstream reporting consumes.

Business problem

AI-based meter readings arrived from several sources with inconsistent formats, duplicates, and occasional misreads. Billing analysis built directly on this data inherited those issues and each report kept re-fixing the same problems.

Responsibilities

  • Documented each input format and defined validation rules with the billing team
  • Built cleaning logic in SQL with a Python wrapper for harder transformations
  • Implemented duplicate detection, missing-value handling, and outlier checks
  • Created a review queue for suspicious records requiring operational review
  • Wrote data-quality documentation and runbooks for the pipeline

Dataset

Anonymized AI-based smart-meter readings arriving from multiple ingest sources, including consumption values, meter identifiers, timestamps, and account references.

Approach

Profiled each input to catalog format quirks, defined shared validation rules with billing, and built a layered pipeline: SQL for structural cleaning and joins, Python for outlier detection and format normalization, and Excel for review handoff.

Solution

A pipeline that ingests raw readings, applies validation, flags edge cases, and writes a clean, audited table. Suspicious rows land in a review queue that operations can action.

Results

Data accuracy improved by about 20% on key billing fields, downstream dashboards stopped breaking on bad rows, and the review queue gave operations a clear handle on edge cases.

Challenges

Turning tacit tribal knowledge about acceptable readings into concrete, testable validation rules required several rounds of workshops.

Limitations

The pipeline handles most known formats but new upstream sources still require a short onboarding step to add validation rules.

Lessons learned

Writing validation rules down made them maintainable. The pipeline was as much a communication artifact as it was code.

Future improvements

Add unit tests around each rule, a schema-drift monitor, and a lightweight ML scorer for ambiguous reads instead of a hard threshold.

Next

Want to talk through a similar project?

Get in touch