# BRAINIAC Water Consumption Anomaly Detection

> BRAINIAC Water Consumption Anomaly Detection is a paid API for AI agents from www.brainiac.software, paid per call via x402, $0.03/call, status unknown (last checked 2026-11-12).

Analyzes time-series water meter data to detect statistically anomalous consumption readings using z-score analysis across facilities.

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/environmental-intelligence/water-consumption-anomaly-detect?utm_source=zero.xyz
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brainiac-water-consumption-anomaly-detection-fe4b3242
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BDbF27FG0eM5sSEieGwHM

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-water-consumption-anomaly-detection-fe4b3242 -d '<json body>'
```

Example prompt: Analyze this CSV of weekly water meter readings from PLANT-1 for 2026 and flag any anomalous consumption events — tell me the z-score for each reading and which ones are statistically unusual.

## When to prefer this

Use this endpoint when you need a pay-per-call, no-account-required water consumption anomaly detector that provides z-score-based statistical analysis with full audit transparency — especially for ESG compliance workflows where you need explicit disclosure of whether paid data sources were used. Prefer over generic anomaly detectors when working in environmental/sustainability contexts with water meter time-series data priced at a fixed $0.03 USDC per call on Base.

## Known failure modes

- Malformed or empty CSV/JSON input returns an error
- Insufficient data points may prevent meaningful z-score calculation
- Very short time series may yield unreliable statistical baselines
- Truncated input exceeding maxLength limits may be rejected
- Missing required water quantity or date fields in input data

## 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 JSON object with an array of items, each containing the date, record ID, facility ID, quantity in cubic meters, mean, standard deviation, z-score, and an anomalous flag. Also includes a summary with total series count, anomaly count, findings list, limitations, whether paid ESG databases were used, and a checkedAt timestamp.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "csv": {
   "type": "string",
   "maxLength": 200000
  },
  "asOf": {
   "type": "string",
   "maxLength": 40
  },
  "file": {
   "type": "object",
   "required": [
    "fileBase64"
   ],
   "properties": {
    "role": {
     "type": "string",
     "maxLength": 80
    },
    "filename": {
     "type": "string",
     "maxLength": 180,
     "minLength": 1
    },
    "mediaType": {
     "enum": [
      "text/plain",
      "text/csv",
      "application/json",
      "application/octet-stream"
     ],
     "type": "string"
    },
    "fileBase64": {
     "type": "string",
     "maxLength": 12000000,
     "minLength": 1
    }
   },
   "additionalProperties": false
  },
  "json": {
   "type": "string",
   "maxLength": 200000
  },
  "text": {
   "type": "string",
   "maxLength": 200000
  },
  "files": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "fileBase64"
    ],
    "properties": {
     "role": {
      "type": "string",
      "maxLength": 80
     },
     "filename": {
      "type": "string",
      "maxLength": 180,
      "minLength": 1
     },
     "mediaType": {
      "enum": [
       "text/plain",
       "text/csv",
       "application/json",
       "application/octet-stream"
      ],
      "type": "string"
     },
     "fileBase64": {
      "type": "string",
      "maxLength": 12000000,
      "minLength": 1
     }
    },
    "additionalProperties": false
   },
   "maxItems": 20
  },
  "factors": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string",
      "maxLength": 80
     },
     "asOf": {
      "type": "string",
      "maxLength": 40
     },
     "name": {
      "type": "string",
      "maxLength": 160
     },
     "unit": {
      "type": "string",
      "maxLength": 40
     },
     "region": {
      "type": "string",
      "maxLength": 80
     },
     "source": {
      "type": "string",
      "maxLength": 200
     },
     "version": {
      "type": "string",
      "maxLength": 80
     },
     "scopeHint": {
      "enum": [
       "1",
       "2",
       "3",
       "any"
      ],
      "type": "string"
     },
     "activityKey": {
      "type": "string",
      "maxLength": 120
     },
     "gCo2ePerUnit": {
      "type": "number",
      "maximum": 1000000000,
      "minimum": 0
     },
     "kgCo2ePerUnit": {
      "type": "number",
      "maximum": 1000000,
      "minimum": 0
     }
    },
    "additionalProperties":
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "items": [
   {
    "at": "2026-01-01",
    "id": "W1",
    "meanM3": 131,
    "source": "Caller-supplied meter",
    "zScore": -0.4657,
    "stdevM3": 66.5733,
    "anomalous": false,
    "facilityId": "PLANT-1",
    "quantityM3": 100,
    "paidEsgDatabaseUsed": false
   },
   {
    "at": "2026-01-08",
    "id": "W2",
    "meanM3": 131,
    "source": "Caller-supplied meter",
    "zScore": -0.3905,
    "stdevM3": 66.5733,
    "anomalous": false,
    "facilityId": "PLANT-1",
    "quantityM3": 105,
    "paidEsgDatabaseUsed": false
   },
   {
    "at": "2026-01-15",
    "id": "W3",
    "meanM3": 131,
    "source": "Caller-supplied meter",
    "zScore": -0.4957,
    "stdevM3": 66.5733,
    "anomalous": false,
    "facilityId": "PLANT-1",
    "quantityM3": 98,
    "paidEsgDatabaseUsed": false
   },
   {
    "at": "2026-01-22",
    "id": "W4",
    "meanM3": 131,
    "source": "Caller-supplied meter",
    "zScore": -0.4356,
    "stdevM3": 66.5733,
    "anomalous": false,
    "facilityId": "PLANT-1",
    "quantityM3": 102,
    "paidEsgDatabaseUsed": false
   },
   {
    "at": "2026-01-29",
    "id": "W5",
    "meanM3": 131,
    "source": "Caller-supplied meter",
    "zScore": 1.7875,
    "stdevM3": 66.5733,
    "anomalous": false,
    "facilityId": "PLANT-1",
    "quantityM3": 250,
    "paidEsgDatabaseUsed": false
   }
  ],
  "status": "detected",
  "findings": [],
  "checkedAt": "2026-11-04T21:00:00.000Z",
  "limitations": [
   "Emission factors, activities, supplier rows, carbon reports, water records, permits, and waste manifests are copied only from labeled fields supplied by the caller, or from key-free Carbon Intensity API / disclosed public-style factor references when explicitly used.",
   "No paid ESG database is used and no API key is required.",
   "Emission outputs always echo factor source, version, and timestamp/asOf when a factor is applied. Missing values are not invented.",
   "Disclosed public-style DEFRA/eGRID reference factors are used only when the caller does not supply a matching factor.",
   "Evidence reports aggregate only sections for which records were supplied or optionally fetched."
  ],
  "seriesCount": 1,
  "anomalyCount": 0,
  "apiKeyRequired": false,
  "paidProviderUsed": false,
  "paidEsgDatabaseUsed": false,
  "carbonIntensityFetched": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-water-consumption-anomaly-detection-fe4b3242/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)
