
ABSTRACT
Background: In community health programs across sub-Saharan Africa, the gap between data collected and data that actually reaches decision-makers is wide—and costly. In rural and peri-urban Kenya, community health volunteers (CHVs) generate thousands of records daily, yet conventional data pipelines built for high-resource environments routinely fail under the weight of intermittent connectivity, ageing hardware, and unreliable power supply.
Objective: We present a systematic, end-to-end optimization of a community health data pipeline serving approximately 500 CHVs across a 3,000 km² catchment in Western Kenya and the Rift Valley, documenting the technical strategies employed and quantifying their impact.
Methods: The pipeline integrated CouchDB for offline-first mobile data collection, a Python-based ETL layer, PostgreSQL for analytics storage, and Apache Superset for visualization. We collected three months of pre-optimization baseline data, implemented a suite of targeted optimizations across synchronization, ETL processing, mobile application design, and server configuration, then monitored outcomes over a further three-month period. Pre–post comparisons used t-tests and chi-square tests; qualitative data were gathered from structured interviews with 50 randomly sampled CHVs.
Results: Synchronization success rates rose from 67% to 94% (p < 0.001). Median end-to-end processing time fell from 8.2 to 2.1 seconds (−74%). Data completeness improved from 78% to 96%, and error rates dropped from 12% to 3%. Bandwidth per synchronization session decreased by 85%, directly prolonging battery life for field workers. Program enrollment grew 16% during the evaluation period with no additional infrastructure expenditure. CHVs reported markedly greater confidence in data reliability and reduced time spent on administrative tasks.
Conclusions: Thoughtful, context-aware pipeline optimization—prioritizing incremental synchronization, intelligent batching, compression, and multi-layered validation—can transform the effectiveness of health information systems in resource-constrained settings without costly infrastructure investment. The framework and strategies documented here are directly adaptable by other low- and middle-income country (LMIC) programs.