# BRAINIAC Building Energy Meter Reading Anomaly Detector

> BRAINIAC Building Energy Meter Reading Anomaly Detector is a paid API for AI agents from www.brainiac.software, paid per call via x402, $0.05/call, status unknown (last checked 2026-11-12).

Analyzes building energy meter readings to detect anomalous consumption periods using statistical baseline comparison

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/building-energy/meter-reading-anomaly-detect?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brainiac-building-energy-meter-reading-anomaly-detector-90031556
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_r0gFd6hQowrol-mw3BXki

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability brainiac-building-energy-meter-reading-anomaly-detector-90031556 -d '<json body>'
```

Example prompt: Can you check our building's electricity meter readings for the past three months and flag any periods where daily usage looks statistically unusual compared to the baseline? I'll give you the meter ID M-42 and the kWh readings in CSV format.

## When to prefer this

Use this endpoint when you need statistical anomaly detection on time-series building energy meter data, especially when you have structured readings arrays, bills, or CSV/JSON files and want per-period scoring with explanations. It is better than generic time-series anomaly tools because it understands utility-specific concepts like tariffs, billing periods, and multiple meters per building. Prefer it over manual threshold checks when you need a leave-one-out or baseline-mean methodology with interpretable scores.

## Known failure modes

- Insufficient readings to compute a meaningful baseline (too few data points)
- Missing required meter or reading fields cause validation errors
- Readings with inconsistent units across meters produce unreliable scores
- CSV or JSON parsing failures if input is malformed
- All readings flagged as normal if data has very low variance (no anomalies detected)
- Truncated input due to maxLength limits on large datasets

## How this service works

Pay-per-call APIs for AI agents: OFAC sanctions screening, compliance checks, token security, and Base chain data via x402. No account. Fixed USDC price. MCP-ready.

## Output

Returns a list of anomaly items, each covering a time window with an anomaly score, daily quantity, baseline mean, unusual flag (true/false), and a plain-English explanation of why the period is or isn't anomalous. Also includes an overall status ('detected' or similar) and a findings array summarizing key observations with codes and details.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "csv": {
   "type": "string",
   "maxLength": 200000
  },
  "asOf": {
   "type": "string",
   "maxLength": 40
  },
  "file": {
   "type": "object",
   "required": [
    "mediaType",
    "fileBase64"
   ],
   "properties": {
    "filename": {
     "type": "string",
     "maxLength": 180,
     "minLength": 1
    },
    "mediaType": {
     "enum": [
      "text/plain",
      "text/csv",
      "application/json"
     ],
     "type": "string"
    },
    "fileBase64": {
     "type": "string",
     "maxLength": 12000000,
     "minLength": 1
    }
   },
   "additionalProperties": false
  },
  "json": {
   "type": "string",
   "maxLength": 200000
  },
  "text": {
   "type": "string",
   "maxLength": 200000
  },
  "bills": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string",
      "maxLength": 80
     },
     "cost": {
      "type": "number",
      "maximum": 1000000000,
      "minimum": 0
     },
     "unit": {
      "type": "string",
      "maxLength": 40
     },
     "utility": {
      "type": "string",
      "maxLength": 80
     },
     "quantity": {
      "type": "number",
      "maximum": 1000000000,
      "minimum": 0
     },
     "periodEnd": {
      "type": "string",
      "maxLength": 40
     },
     "buildingId": {
      "type": "string",
      "maxLength": 80
     },
     "periodStart": {
      "type": "string",
      "maxLength": 40
     }
    },
    "additionalProperties": false
   },
   "maxItems": 200
  },
  "meters": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string",
      "maxLength": 80
     },
     "name": {
      "type": "string",
      "maxLength": 200
     },
     "unit": {
      "type": "string",
      "maxLength": 40
     },
     "utility": {
      "type": "string",
      "maxLength": 80
     },
     "buildingId": {
      "type": "string",
      "maxLength": 80
     }
    },
    "additionalProperties": false
   },
   "maxItems": 200
  },
  "tariffs": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string",
      "maxLength": 80
     },
     "asOf": {
      "type": "string",
      "maxLength": 40
     },
     "rate": {
      "type": "number",
      "maximum": 1000000,
      "minimum": 0
     },
     "unit": {
      "type": "string",
      "maxLength": 40
     },
     "utility": {
      "type": "string",
      "maxLength": 
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "items": [
   {
    "id": "AN-1",
    "to": "2026-10-08",
    "from": "2026-10-01",
    "unit": "kWh",
    "score": -0.5774,
    "meterId": "M-1",
    "unusual": false,
    "quantity": 70,
    "buildingId": "",
    "explanation": "Daily usage 10 kWh is within 2 standard deviations of leave-one-out baseline mean 16.6667 (leave_one_out_mean_daily).",
    "baselineMean": 16.6667,
    "dailyQuantity": 10,
    "scoreSupplied": true,
    "baselineMethod": "leave_one_out_mean_daily",
    "tariffInvented": false,
    "savingsGuaranteed": false,
    "baselineMeanSupplied": true
   },
   {
    "id": "AN-2",
    "to": "2026-10-15",
    "from": "2026-10-08",
    "unit": "kWh",
    "score": -0.5774,
    "meterId": "M-1",
    "unusual": false,
    "quantity": 70,
    "buildingId": "",
    "explanation": "Daily usage 10 kWh is within 2 standard deviations of leave-one-out baseline mean 16.6667 (leave_one_out_mean_daily).",
    "baselineMean": 16.6667,
    "dailyQuantity": 10,
    "scoreSupplied": true,
    "baselineMethod": "leave_one_out_mean_daily",
    "tariffInvented": false,
    "savingsGuaranteed": false,
    "baselineMeanSupplied": true
   },
   {
    "id": "AN-3",
    "to": "2026-10-22",
    "from": "2026-10-15",
    "unit": "kWh",
    "score": -0.5774,
    "meterId": "M-1",
    "unusual": false,
    "quantity": 70,
    "buildingId": "",
    "explanation": "Daily usage 10 kWh is within 2 standard deviations of leave-one-out baseline mean 16.6667 (leave_one_out_mean_daily).",
    "baselineMean": 16.6667,
    "dailyQuantity": 10,
    "scoreSupplied": true,
    "baselineMethod": "leave_one_out_mean_daily",
    "tariffInvented": false,
    "savingsGuaranteed": false,
    "baselineMeanSupplied": true
   },
   {
    "id": "AN-4",
    "to": "2026-10-29",
    "from": "2026-10-22",
    "unit": "kWh",
    "score": 3,
    "meterId": "M-1",
    "unusual": true,
    "quantity": 210,
    "buildingId": "",
    "explanation": "Daily usage 30 kWh is outside 50–150% of leave-one-out baseline mean 10 (leave_one_out_mean_daily; stdev unavailable).",
    "baselineMean": 10,
    "dailyQuantity": 30,
    "scoreSupplied": true,
    "baselineMethod": "leave_one_out_mean_daily",
    "tariffInvented": false,
    "savingsGuaranteed": false,
    "baselineMeanSupplied": true
   }
  ],
  "status": "detected",
  "findings": [
   {
    "code": "usage_anomaly",
    "kind": "observation",
    "detail": "Daily usage 30 kWh is outside 50–150% of leave-one-out basel
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-building-energy-meter-reading-anomaly-detector-90031556/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.brainiac.software](https://www.zero.xyz/host/www.brainiac.software/llms.txt)
