A device and method for mapping, diagnosing and treating the intestinal
tract is provided using a capsule passing through the intestinal tract.
Further, a capsule tracking system is provided for tracking a capsule's
location along the length of an intestinal tract as various treatment
and/or sensing modalities are employed. In one variation, an acoustic
signal is used to determine the location of the capsule. A map of sensed
information may be derived from the pass of a capsule. Capsules may be
subsequently passed through to treat the intestinal tract at a determined
location along its length. One variation uses an electrical stimulation
capsule to treat and/or diagnose a condition in the intestinal tract.