Code and model weights for:
Phosphate Dominance, Geochemical Bistability, and Seasonal Dynamics in Bangladesh Groundwater Arsenic: National-Scale Mechanism Partitioning and Rapid Risk Screening
Md Rakib Hasan, Mst Anika Khatun Rupa, Fazla Zawadul Arabi, Shoumik Zubyer, Anwar Zahid
Water Research (2026)
This repository contains the analysis code and trained model for a national-scale study of groundwater arsenic mechanisms in Bangladesh. We analysed 1,807 groundwater samples from 988 locations across all seven physiographic zones, collected in both dry and wet seasons.
Key findings:
src/
h1_geochemistry/ # H1: Multi-mechanism analysis (phosphate vs reductive)
h2_depth/ # H2: Depth-stratified geochemical transitions
h3_seasonal/ # H3: Seasonal forcing, SEM, entropy diagnostics
h4_arsenicfm/ # H4: ArseniCFM multi-modal screening model
models/
arsenicfm_best.pt # Trained ArseniCFM weights (94K params)
embeddings/
prithvi_pca64_embeddings.npy # Prithvi-100M embeddings (1807 x 64)
sentinel_statistical_embeddings.npy # Sentinel-2 statistical features (1807 x 64)
prithvi_pca_model.pkl # Fitted PCA model (768 -> 64 dim)
figures/
make_figures.py # Scripts to reproduce all manuscript figures
The geochemical dataset (bangladesh_groundwater_arsenic_1807samples.csv, 1,807 samples x 45 features) is archived on Zenodo:
DOI will be updated upon acceptance.
git clone https://github.com/rakibhhridoy/bangladesh-groundwater-arsenic.git
cd bangladesh-groundwater-arsenic
pip install -r requirements.txt
requirements.txt for full listpython src/h1_geochemistry/main.py
python src/h2_depth/main.py
python src/h3_seasonal/main.py
python src/h4_arsenicfm/main.py
python src/h4_arsenicfm/prithvi_encoder.py --install # first time only
python src/h4_arsenicfm/prithvi_encoder.py --test
Three-encoder multi-modal fusion model (~94,000 parameters):
@article{Hasan2026_arsenic,
title = {Phosphate Dominance, Geochemical Bistability, and Seasonal Dynamics
in Bangladesh Groundwater Arsenic: National-Scale Mechanism
Partitioning and Rapid Risk Screening},
author = {Hasan, Md Rakib and Rupa, Mst Anika Khatun and Arabi, Fazla Zawadul
and Zubyer, Shoumik and Zahid, Anwar},
journal = {Water Research},
year = {2026}
}
MIT License. See LICENSE for details.
3 commits
Python
100.0%
Code and model weights for:
Phosphate Dominance, Geochemical Bistability, and Seasonal Dynamics in Bangladesh Groundwater Arsenic: National-Scale Mechanism Partitioning and Rapid Risk Screening
Md Rakib Hasan, Mst Anika Khatun Rupa, Fazla Zawadul Arabi, Shoumik Zubyer, Anwar Zahid
Water Research (2026)
This repository contains the analysis code and trained model for a national-scale study of groundwater arsenic mechanisms in Bangladesh. We analysed 1,807 groundwater samples from 988 locations across all seven physiographic zones, collected in both dry and wet seasons.
Key findings:
src/
h1_geochemistry/ # H1: Multi-mechanism analysis (phosphate vs reductive)
h2_depth/ # H2: Depth-stratified geochemical transitions
h3_seasonal/ # H3: Seasonal forcing, SEM, entropy diagnostics
h4_arsenicfm/ # H4: ArseniCFM multi-modal screening model
models/
arsenicfm_best.pt # Trained ArseniCFM weights (94K params)
embeddings/
prithvi_pca64_embeddings.npy # Prithvi-100M embeddings (1807 x 64)
sentinel_statistical_embeddings.npy # Sentinel-2 statistical features (1807 x 64)
prithvi_pca_model.pkl # Fitted PCA model (768 -> 64 dim)
figures/
make_figures.py # Scripts to reproduce all manuscript figures
The geochemical dataset (bangladesh_groundwater_arsenic_1807samples.csv, 1,807 samples x 45 features) is archived on Zenodo:
DOI will be updated upon acceptance.
git clone https://github.com/rakibhhridoy/bangladesh-groundwater-arsenic.git
cd bangladesh-groundwater-arsenic
pip install -r requirements.txt
requirements.txt for full listpython src/h1_geochemistry/main.py
python src/h2_depth/main.py
python src/h3_seasonal/main.py
python src/h4_arsenicfm/main.py
python src/h4_arsenicfm/prithvi_encoder.py --install # first time only
python src/h4_arsenicfm/prithvi_encoder.py --test
Three-encoder multi-modal fusion model (~94,000 parameters):
@article{Hasan2026_arsenic,
title = {Phosphate Dominance, Geochemical Bistability, and Seasonal Dynamics
in Bangladesh Groundwater Arsenic: National-Scale Mechanism
Partitioning and Rapid Risk Screening},
author = {Hasan, Md Rakib and Rupa, Mst Anika Khatun and Arabi, Fazla Zawadul
and Zubyer, Shoumik and Zahid, Anwar},
journal = {Water Research},
year = {2026}
}
MIT License. See LICENSE for details.
3 commits
Python
100.0%