<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Aneesh Hebbar</title>
    <description>The latest articles on DEV Community by Aneesh Hebbar (@aneesh_hebbar_b79b2b92751).</description>
    <link>https://dev.to/aneesh_hebbar_b79b2b92751</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4164721%2Fb4e7cace-44a9-4e98-9e3e-ba96b5a7803e.png</url>
      <title>DEV Community: Aneesh Hebbar</title>
      <link>https://dev.to/aneesh_hebbar_b79b2b92751</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/aneesh_hebbar_b79b2b92751"/>
    <language>en</language>
    <item>
      <title>Meterminder</title>
      <dc:creator>Aneesh Hebbar</dc:creator>
      <pubDate>Sun, 25 Oct 2026 09:22:35 +0000</pubDate>
      <link>https://dev.to/aneesh_hebbar_b79b2b92751/meterminder-f7f</link>
      <guid>https://dev.to/aneesh_hebbar_b79b2b92751/meterminder-f7f</guid>
      <description>&lt;h1&gt;
  
  
  MeterMinder: Finding the Electricity Readings Worth a Second Look ⚡
&lt;/h1&gt;

&lt;p&gt;&lt;em&gt;An open-source AI prototype for exploring energy consumption and investigating unusual usage patterns.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;This is a submission for the &lt;a href="https://dev.to/challenges/hacktoberfest-week3-2026-10-19"&gt;Hacktoberfest Open-Source AI Challenge Week 3: Slow and Steady&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;Electricity data can tell us how much energy was consumed. But when you have thousands of meter readings, figuring out which hours deserve a closer look can become another tedious task.&lt;/p&gt;

&lt;p&gt;I built &lt;strong&gt;MeterMinder&lt;/strong&gt;, an &lt;strong&gt;AI-assisted energy-analysis&lt;/strong&gt; prototype that helps users &lt;strong&gt;explore electricity-consumption data&lt;/strong&gt; and &lt;strong&gt;identify readings&lt;/strong&gt; worth &lt;strong&gt;investigating&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The &lt;strong&gt;goal&lt;/strong&gt; is simple instead of &lt;strong&gt;manually scrolling&lt;/strong&gt; &lt;strong&gt;through&lt;/strong&gt; &lt;strong&gt;rows&lt;/strong&gt; of &lt;strong&gt;meter data&lt;/strong&gt;, a user should be able to &lt;strong&gt;upload&lt;/strong&gt; a &lt;strong&gt;compatible hourly-reading CSV&lt;/strong&gt;, &lt;strong&gt;understand&lt;/strong&gt; the &lt;strong&gt;consumption patterns&lt;/strong&gt;, and &lt;strong&gt;review&lt;/strong&gt; a &lt;strong&gt;ranked list&lt;/strong&gt; of readings &lt;strong&gt;flagged&lt;/strong&gt; by a &lt;strong&gt;machine-learning model&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Here's what MeterMinder currently does:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Explore consumption:&lt;/strong&gt; Upload hourly readings, inspect consumption trends, and examine peak-usage periods.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check data quality:&lt;/strong&gt; Identify duplicate readings, missing values, and gaps in hourly timestamps.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Generate experimental anomaly scores:&lt;/strong&gt; Use TabPFN to score compatible readings and sort them for investigation.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Inspect individual readings:&lt;/strong&gt; View timestamps, observed values, model scores, and neighbouring readings to understand the surrounding context.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Evaluate the model:&lt;/strong&gt; Compare TabPFN against a simpler baseline using held-out, labelled energy data.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The initial prototype focuses on hourly smart-meter CSV files rather than electricity-bill PDFs. It is designed for people who manage or investigate building energy use and need a quicker starting point than manually inspecting an entire time series.&lt;/p&gt;

&lt;p&gt;One &lt;strong&gt;distinction&lt;/strong&gt; matters: an &lt;strong&gt;unusual reading&lt;/strong&gt; is not &lt;strong&gt;necessarily wasted electricity&lt;/strong&gt;. It could represent &lt;strong&gt;legitimate building activity&lt;/strong&gt;, an &lt;strong&gt;equipment schedule&lt;/strong&gt;, or &lt;strong&gt;something worth investigating&lt;/strong&gt;. &lt;strong&gt;MeterMinder&lt;/strong&gt; currently helps &lt;strong&gt;surface patterns&lt;/strong&gt;; it does not establish their physical cause or guarantee energy savings.&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Demo video:&lt;/strong&gt; [&lt;a href="https://youtu.be/WpRzZSBcMzY" rel="noopener noreferrer"&gt;https://youtu.be/WpRzZSBcMzY&lt;/a&gt;]&lt;/p&gt;

&lt;p&gt;The walkthrough demonstrates the current workflow:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open MeterMinder and choose the demo-data option.&lt;/li&gt;
&lt;li&gt;Inspect the selected building, time range, data coverage, and consumption chart.&lt;/li&gt;
&lt;li&gt;Generate experimental TabPFN anomaly scores using the saved model.&lt;/li&gt;
&lt;li&gt;Review the ranked readings and inspect an individual reading's context.&lt;/li&gt;
&lt;li&gt;Open the Model Performance page to see how TabPFN compares with the baseline.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The demo uses a 14-day window containing 336 hourly readings from a building in the LEAD evaluation dataset.&lt;/p&gt;

&lt;p&gt;The current application is a prototype, and the anomaly scores are experimental. The demo illustrates the working analysis pipeline rather than claiming that the detector is ready for operational energy-management decisions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;GitHub repository:&lt;/strong&gt; [&lt;a href="https://github.com/Aneesh-0108/meterminder" rel="noopener noreferrer"&gt;https://github.com/Aneesh-0108/meterminder&lt;/a&gt;]&lt;/p&gt;

&lt;p&gt;The repository includes the Streamlit application, data-validation utilities, feature-engineering pipeline, TabPFN inference code, benchmark scripts, and tests.&lt;/p&gt;

&lt;p&gt;The raw Kaggle competition files, credentials, and local fitted-model reference are not included in the repository.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I Built It
&lt;/h2&gt;

&lt;p&gt;I built MeterMinder with Python, Pandas, Streamlit, scikit-learn, and Prior Labs' TabPFN Client.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why TabPFN?
&lt;/h3&gt;

&lt;p&gt;Energy-consumption readings are structured, tabular data. I wanted to investigate whether a tabular foundation model could identify unusual usage patterns more effectively than a simpler baseline.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;MeterMinder&lt;/strong&gt; uses the hosted &lt;code&gt;tabpfn-client&lt;/code&gt; API with the &lt;code&gt;v3.5_default&lt;/code&gt; classifier. I fitted the model once using a deterministic sample of 20,000 labelled readings spanning 200 buildings from the LEAD dataset. I then saved the account-bound model reference and feature schema so subsequent predictions could reuse the fitted model rather than repeat the training request for every upload.&lt;/p&gt;

&lt;p&gt;The feature pipeline generates 24 ordered features from the readings, timestamps, historical lags, rolling statistics, and missing-reading information. It handles timestamp gaps and missing readings explicitly, rather than silently treating missing measurements as zero.&lt;/p&gt;

&lt;p&gt;For the demo, the saved model was loaded and used to score 336 eligible readings from a 14-day window. All 336 returned finite scores. The model was not refitted for this prediction run.&lt;/p&gt;

&lt;h3&gt;
  
  
  What did the evaluation show?
&lt;/h3&gt;

&lt;p&gt;I evaluated the model on a separate sample of 2,500 readings from 20 held-out buildings. The sample contains 55 labelled anomalies, or 2.2% of the readings.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;Baseline&lt;/th&gt;
&lt;th&gt;TabPFN v3.5&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;ROC-AUC&lt;/td&gt;
&lt;td&gt;0.6480&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0.7170&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Average Precision&lt;/td&gt;
&lt;td&gt;0.03431&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0.04204&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Both metrics show that TabPFN performed better than the baseline on this particular sample. Average Precision is especially useful here because anomalous readings are rare.&lt;/p&gt;

&lt;p&gt;However, the results also revealed a limitation I do not want to hide.&lt;/p&gt;

&lt;p&gt;When I examined fixed-size review queues, TabPFN found:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Number of readings reviewed&lt;/th&gt;
&lt;th&gt;Baseline anomalies found&lt;/th&gt;
&lt;th&gt;TabPFN anomalies found&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Top 25&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Top 50&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Top 100&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The model therefore showed better overall ranking metrics, but its top-ranked alerts were not reliably useful at these small review budgets. Its selected classification threshold also failed to transfer well to the held-out buildings.&lt;/p&gt;

&lt;p&gt;This is why MeterMinder presents its scores as experimental signals for investigation rather than confirmed anomalies. The current evaluation is limited and does not establish that the model will generalize to arbitrary buildings or real-world energy-management settings.&lt;/p&gt;

&lt;p&gt;The prototype's next technical challenge is to improve the consistency of its anomaly rankings across unseen buildings and establish whether those rankings actually save users time.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Does Open Innovation Matter?
&lt;/h2&gt;

&lt;p&gt;Open innovation matters here because it gives developers access to a tabular foundation model that can be incorporated into a specific, inspectable prediction workflow.&lt;/p&gt;

&lt;p&gt;Rather than treating an LLM as a general-purpose answer generator, I could use TabPFN for structured-data classification and compare its behaviour against an explicit baseline. The preprocessing, feature engineering, train/validation separation, metrics, and application code are all visible parts of the system that can be tested and improved.&lt;/p&gt;

&lt;p&gt;It also made experimentation approachable for a student project. The hosted TabPFN Client let me test a model on a small, controlled training sample without first setting up local model-weight inference on my CPU-only laptop. The saved-model reference then allowed subsequent demo predictions without fitting the model again.&lt;/p&gt;

&lt;p&gt;There is an important trade-off: &lt;strong&gt;the current version uses hosted inference, not fully local inference&lt;/strong&gt;. The readings submitted for prediction are processed by Prior Labs, so the project does not yet provide an entirely offline or local-data-only workflow.&lt;/p&gt;

&lt;p&gt;The longer-term direction is to investigate a suitable local deployment, subject to the model's licensing and hardware requirements. For now, the implementation makes the model integration and its limitations explicit.&lt;/p&gt;

&lt;h2&gt;
  
  
  Alignment with the UN Sustainable Development Goals 🌍
&lt;/h2&gt;

&lt;p&gt;MeterMinder aligns with &lt;strong&gt;UN Sustainable Development Goal 7: Affordable and Clean Energy&lt;/strong&gt;, particularly Target 7.3, which focuses on &lt;strong&gt;improving energy efficiency&lt;/strong&gt;, and &lt;strong&gt;Goal 12: Responsible Consumption and Production&lt;/strong&gt;, which promotes the &lt;strong&gt;efficient use of resources&lt;/strong&gt;. By &lt;strong&gt;helping&lt;/strong&gt; &lt;strong&gt;users&lt;/strong&gt; &lt;strong&gt;explore electricity consumption patterns and investigate unusual meter readings&lt;/strong&gt;, &lt;strong&gt;MeterMinder&lt;/strong&gt; aims to &lt;strong&gt;support&lt;/strong&gt; more &lt;strong&gt;informed energy-management decisions&lt;/strong&gt;. As the project is still a prototype, its contribution is a potential one; actual energy savings and emissions reductions would need to be validated through real-world use.&lt;/p&gt;

&lt;p&gt;Learn more: &lt;a href="https://sdgs.un.org/goals/goal7" rel="noopener noreferrer"&gt;UN SDG 7&lt;/a&gt; · &lt;a href="https://sdgs.un.org/goals/goal12" rel="noopener noreferrer"&gt;UN SDG 12&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Prize Categories
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Best Use of TabPFN:&lt;/strong&gt; TabPFN v3.5 is the core predictive model used to classify energy readings. I fitted it on labelled data, reused the saved fitted-model reference for inference, and compared its results against a simpler baseline on held-out buildings.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
    </item>
    <item>
      <title>Invosorter</title>
      <dc:creator>Aneesh Hebbar</dc:creator>
      <pubDate>Sat, 17 Oct 2026 08:23:56 +0000</pubDate>
      <link>https://dev.to/aneesh_hebbar_b79b2b92751/invosorter-27e</link>
      <guid>https://dev.to/aneesh_hebbar_b79b2b92751/invosorter-27e</guid>
      <description>&lt;h2&gt;
  
  
  I Built a Local Invoice Sorter With Gemma 4 — and Learned Why Validation Matters
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;This is my submission for the &lt;a href="https://dev.to/challenges/hacktoberfest-week2-2026-10-12"&gt;Hacktoberfest Open-Source AI Challenge Week 2: Side Hustle&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;I built &lt;strong&gt;Invosorter&lt;/strong&gt;, a small application that extracts information from Indian invoices and receipts using a locally running Gemma model.&lt;/p&gt;

&lt;p&gt;The idea is simple: instead of manually typing every invoice into a spreadsheet, upload the document, extract its fields, review the result, and export it to CSV or Excel.&lt;/p&gt;

&lt;p&gt;I had two kinds of users in mind: freelancers managing expenses and small shop owners keeping purchase records.&lt;/p&gt;

&lt;p&gt;The application currently extracts fields such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Vendor name, invoice number, date and GSTIN&lt;/li&gt;
&lt;li&gt;Taxable amount, CGST, SGST and IGST&lt;/li&gt;
&lt;li&gt;Gross invoice total, TDS and net payable amount when available&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It also checks totals, flags suspicious GSTIN structures, distinguishes inferred values from extracted ones, and lets users correct records before exporting.&lt;/p&gt;

&lt;p&gt;The goal isn't to replace an accountant or claim that an invoice is tax-compliant. It's to reduce repetitive data entry while making extraction errors easier to notice and correct.&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://youtu.be/EbeYEw0Z8TU" rel="noopener noreferrer"&gt;https://youtu.be/EbeYEw0Z8TU&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The demo shows the complete workflow: uploading an invoice, processing it locally, reviewing extracted fields, correcting a suspicious GSTIN, and downloading the resulting CSV and Excel files.&lt;/p&gt;

&lt;p&gt;The current prototype processes only the first page of a PDF. Full multipage invoice processing isn't supported yet.&lt;/p&gt;

&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://github.com/Aneesh-0108/invosorter" rel="noopener noreferrer"&gt;https://github.com/Aneesh-0108/invosorter&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The project is built with Python, Streamlit, Ollama and Gemma 4 E2B. The repository includes the extraction pipeline, validation logic, batch processing, an evaluation script and unit tests.&lt;/p&gt;

&lt;p&gt;To run it locally, follow the setup instructions in the README.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I Built It
&lt;/h2&gt;

&lt;p&gt;I started with a synthetic Indian finance dataset containing invoices and a purchase register with known values. This gave me something important: a way to compare model output against expected answers instead of deciding whether an extraction looked plausible.&lt;/p&gt;

&lt;p&gt;The main pipeline is:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Convert a PDF's first page to an image when needed.&lt;/li&gt;
&lt;li&gt;Pass the invoice image to Gemma 4 E2B running locally through Ollama.&lt;/li&gt;
&lt;li&gt;Request structured JSON using a defined schema.&lt;/li&gt;
&lt;li&gt;Validate fields and check whether the tax amounts reconcile with the invoice total.&lt;/li&gt;
&lt;li&gt;Flag suspicious records and allow manual corrections.&lt;/li&gt;
&lt;li&gt;Export the results to CSV or Excel.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;One of the most useful lessons was discovering that valid JSON doesn't mean correct information.&lt;/p&gt;

&lt;p&gt;For example, Gemma confused the letter &lt;code&gt;I&lt;/code&gt; with the digit &lt;code&gt;1&lt;/code&gt; in a seller's GSTIN. The extracted string looked almost identical to the original. Instead of silently correcting it, I added structural validation to flag suspicious values while preserving the model's original output.&lt;/p&gt;

&lt;p&gt;I also separated gross invoice total, TDS and net payable amount. They represent different financial concepts, and treating TDS as a negative additional tax would have produced misleading data.&lt;/p&gt;

&lt;h3&gt;
  
  
  What I found during testing
&lt;/h3&gt;

&lt;p&gt;I evaluated the extractor on four synthetic invoices covering intra-state and inter-state GST cases.&lt;/p&gt;

&lt;p&gt;The first three had no mismatches among their scored fields. The fourth matched 10 of 11 scored fields; the GSTIN's &lt;code&gt;I&lt;/code&gt; versus &lt;code&gt;1&lt;/code&gt; error was caught and flagged. Some comparisons remained unscorable because the purchase register didn't contain corresponding ground-truth fields.&lt;/p&gt;

&lt;p&gt;I also experimented with Tesseract OCR instead of passing the image directly to Gemma.&lt;/p&gt;

&lt;p&gt;On one invoice, Tesseract read CGST and SGST as ₹1,639 instead of ₹1,539. The OCR-assisted path also confused the buyer with the seller. Python's arithmetic validation caught the inconsistency in the tax total.&lt;/p&gt;

&lt;p&gt;That experiment convinced me not to make OCR the default just because it is fast. It was useful to compare both approaches and understand how an early recognition error can propagate through an AI pipeline.&lt;/p&gt;

&lt;h3&gt;
  
  
  What I learned
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Multimodal models can extract structured information directly from document images.&lt;/li&gt;
&lt;li&gt;JSON schemas make model integration more predictable, but don't guarantee semantic correctness.&lt;/li&gt;
&lt;li&gt;Deterministic validation can catch inconsistencies that an AI model misses.&lt;/li&gt;
&lt;li&gt;A human review step is useful when an incorrect field has financial consequences.&lt;/li&gt;
&lt;li&gt;Ground-truth evaluation is much more informative than looking at a few successful outputs.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why Does Open Innovation Matter?
&lt;/h2&gt;

&lt;p&gt;I chose Gemma because I wanted to experiment with a model that I could run and integrate locally, rather than making every invoice dependent on a hosted AI API.&lt;/p&gt;

&lt;p&gt;The application sends inference requests to the local Ollama endpoint. It doesn't need to send invoice contents to a remote model service, and it doesn't incur a per-invoice cloud inference API charge. The initial model and software downloads still require an internet connection.&lt;/p&gt;

&lt;p&gt;Local inference also gave me room to experiment with the extraction pipeline, inspect failure cases, write my own validation rules and decide what happens when the model returns a suspicious value.&lt;/p&gt;

&lt;p&gt;There is a trade-off. I'm running this on a CPU-only laptop, and inference currently takes roughly one to two minutes per invoice in my observed runs. This is a prototype, not a claim of production-grade speed.&lt;/p&gt;

&lt;p&gt;For this project, open innovation meant being able to learn from the model's failures and build around them, not just use the model for a successful demo.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Comes Next
&lt;/h2&gt;

&lt;p&gt;I'd like to improve support for multipage PDFs, evaluate more varied invoices, and continue measuring whether OCR-assisted extraction is useful on different document layouts.&lt;/p&gt;

&lt;p&gt;The most important takeaway for me was that getting an AI model to return data is only the beginning. Building a useful application also means measuring errors, handling uncertainty, validating outputs and letting the user make the final correction.&lt;/p&gt;

</description>
      <category>hf26challenge</category>
    </item>
  </channel>
</rss>
