This document provides ingestible capsule devices and methods for using the ingestible capsule devices to treat a patient. For example, this document provides ingestible capsule devices that can deliver probiotics with high viability to a focal gastrointestinal target site using a time-based delivery system.