Pycon Tanzania 2026

From Pixels to Public Health: Python Pipelines for Satellite-Driven Malaria Surveillance

PyCon Long Talk, 30 min Python Core & Tooling Advanced
Thursday 26 November 11:30 to 12:00 Main Hall, Binary Labs, Dar es Salaam

Malaria control in Tanzania increasingly depends on subnational decisions: targeting interventions district by district rather than nationwide. Many drivers of transmission such as rainfall, temperature, vegetation and surface water, are observable from satellites. Turning that imagery into indicators health programs can use is a data engineering challenge. This talk presents a reproducible Python workflow for that task, developed at the Ifakara Health Institute with the Malaria Atlas Project Dar Node.

National malaria averages hide large differences between districts. Programs need local, regularly updated evidence on where risk is rising. Satellite data can provide it, but raw imagery is large, noisy and disconnected from the administrative units and health records that decision-makers use.
The approach. The talk walks through a working pipeline built in Python:
• Querying and filtering satellite collections with the Earth Engine Python API
• Computing environmental indicators over time and aggregating them to districts and regions
• Harmonizing boundary files and health data that rarely match cleanly
• Handling gaps, cloud cover and low-quality records
• Exporting clean outputs that feed statistical models and interactive dashboards
Each step is shown with code and the design decision behind it, including what failed and why.
Python is often taught through generic datasets. This talk shows Python solving a high-stakes problem in an African context, with constraints local practitioners will recognize.

#Python Core