Every arsenic filter runs out. A saturated one looks and tastes exactly like a working one. Kotodin tells each family when.

Try it: kotodin-cyan.vercel.app · Code (MIT): github.com/ayushgade06/kotodin · SDGs: 6.1, 3.9, 6.b

Inspiration

About 17.5 million people in Bangladesh drink water above the national arsenic standard of 50 µg/L (MICS 2019). Household filters with replaceable adsorbent media are one answer, and student teams such as the one behind PureHusk are building new low-cost ones.

But studies keep reaching the same ending. In one 622-person study, 95% of households had abandoned their filter a year after field support ended (Sanchez et al., 2016).

The cruel detail is that a saturated filter looks exactly like a working one, because arsenic has no colour or taste. Well arsenic ranges from under 10 to over 500 µg/L, so a fixed "change it every three months" schedule is dangerously late for some families and wastefully early for others.

Kotodin (কতদিন) means "how many days?" in Bangla. That is the one question every family with a filter should be able to answer.

What it does

Kotodin turns every filter into a forecast and runs the maintenance around it.

  • Program dashboard: a Visit this week queue ranked by exposure × urgency. Each entry has a plain reason ("Overdue 5 days · 180 µg/L well · 6 people"). There is also a status map, a sortable table, a pouch-stock forecast, export/import, and WhatsApp sharing of the visit list.
  • Household forecast: a cautious replace-by date with a low–mid–high band and a capacity chart. "How is this calculated?" shows the formula with the household's real numbers substituted.
  • Fleet calibration: when a field test catches a breakthrough, Kotodin compares how much arsenic that pouch actually held with what the lab-based model predicted. After three such tests, the median ratio k rescales every filter in the program. In the demo, one failing test moves k from 1.00 to 0.70, and three more households move into this week's visits.
  • Bangla family card: a QR sticker on the filter opens a phone card with a big Bangla countdown ("১৫ দিন বাকি") and three plain instructions. Its numbers live in the URL fragment, so there is no server, no account and no personal data.
  • Design Lab: for filter designers. Pick a pouch mass and media parameters to see the replacement interval and yearly cost across all 3,534 wells in the national survey. It can also answer "how big must the pouch be so 90% of families change it at most monthly?"

How we built it

A pure TypeScript forecasting engine (no React, fully unit-tested) sits under a static React app.

  • A build script downloads the DPHE/BGS National Hydrochemical Survey CSV, handles below-detection values, and writes a compact 48 KB (gzipped) well file.
  • Program data lives in the browser (localStorage, versioned and validated). Everything shown is recomputed from state and today's date.
  • The app is an installable offline PWA, because field work happens on patchy connections.

The model:

$$q_e = \frac{q_{max}\, b\, C}{1 + b\, C} \quad\rightarrow\quad Q = m \cdot q_e \cdot \text{derate} \cdot f_{BT} \cdot k \quad\rightarrow\quad \text{days} = \frac{Q}{C \times \text{litres/day}}$$

The model is computed for low, mid and high parameter sets, and the replace-by date uses the low band. For example, a 1 kg pouch on a 180 µg/L well serving 6 people (30 L/day) gives 16 / 77 / 235 days, so the replace-by date is day 16.

Challenges we ran into

  • Uncertain science. Published capacities for iron-modified rice-husk media vary by more than 10×. Instead of hiding that, Kotodin shows bands, labels every parameter as an assumption, and learns from field tests.
  • Privacy without a backend. Households are codes, and the family card is stateless.
  • Bangla done properly. Self-hosted Noto Sans Bengali, Bangla numerals and dates via Intl, and checks that conjuncts render correctly.
  • Honest demo data. The 40 demo households are synthetic, but they sit on real survey wells with their real arsenic values, and every program screen says so.

Accomplishments that we're proud of

  • 43 unit/component tests plus end-to-end flows on desktop and mobile. The engine's golden test reproduces a hand calculation (24.3 days).
  • The Design Lab sweeps all 3,534 wells in about 3 ms.
  • Headline finding: at a 250 g pouch (central estimate), 75.5% of the 1,487 survey wells above 10 µg/L would need a new pouch more often than monthly. That is about 13 pouches (৳1,968) per household per year. A 394 g pouch gets 90% of households to monthly or longer.
  • The data sanity check matches BGS's own figure: 27.4% of shallow wells exceed 50 µg/L (BGS: ~27%).

What we learned

The hardest part of a water filter isn't the filter: it's knowing when it has stopped working. Showing uncertainty honestly is more useful than one confident number.

Limitations (read before trusting a number)

Kotodin is a planning aid, not a safety certification: only a water test confirms water is safe.

  • The model has not been validated against a real filter program, and the media parameters are literature-based placeholders.
  • Langmuir equilibrium capacity is only a proxy for a flow-through pouch, and water use is assumed.
  • Survey values are single samples from 1998–99.
  • The family card can't know about tests logged after it was printed.

What's next for Kotodin

  • Plug in measured isotherms (for example, from PureHusk's planned lab testing).
  • Run a field pilot to validate and calibrate the model.
  • Add SMS reminders for families without smartphones.
  • Add multi-device sync for program teams.

Independent student project, not affiliated with or endorsed by KeebsforWater, PureHusk, BGS or DPHE. Code written with substantial help from an AI coding assistant (Anthropic's Claude). Survey data: contains British Geological Survey materials © UKRI.

Built With

Share this project:

Updates

Submission history