From building predictions to planning-unit totals: machine learning and Bayesian recalibration of non-durable buildings under incomplete surveys
Description
Analysis code and non-confidential outputs for the article. The study uses a complete municipal inventory of 207,404 buildings in 33 wards of Rangpur City Corporation, Bangladesh, to test how machine-learning predictions of non-durable buildings, recalibrated with Bayesian hierarchical (BYM2) models, support ward totals under incomplete surveys. The Python scripts cover feature construction, machine-learning benchmarks, Bayesian models, nested recalibration, incomplete-survey experiments, a dependence simulation and figures. The data comprise fold and survey-design assignments, performance metrics, posterior summaries and diagnostics, ward-level predictive summaries and open-footprint matching results. No building-level records are included; the inventory may be requested from Rangpur City Corporation.
Files
Steps to reproduce
Obtain the municipal layers from Rangpur City Corporation and place them under DATA_ROOT as described in README.md. Download the Copernicus GLO-30 tile listed in data/open_data_manifest.csv; the scripts fetch the Microsoft and Overture footprints. Install Python 3.14 with requirements_cpu.txt (requirements_gpu.txt for the MLP and GraphSAGE models). Run the scripts in code/ in the README order. Seeds are fixed; data/folds and data/survey/designs.json allow the splits to be checked.