🔬 Capsule Endoscopy Small Bowel Transit Simulator
A simulator for the transit of a capsule endoscope in the small bowel to diagnose occult bleeding.
Obscure GI Bleeding — The Mid-Gut Blind Spot
Obscure gastrointestinal bleeding (OGIB) is defined as bleeding of unclear origin that persists or recurs after a negative bidirectional endoscopic evaluation — a normal EGD and a normal colonoscopy. In roughly three-quarters of these cases, the culprit lesion lies in the small bowel, a ~6-metre stretch of gut that conventional endoscopes simply cannot reach.
- ~5%: OGIB share of all GI bleeds (of all GI bleeding presentations)
- ~75%: Small-bowel source (of confirmed OGIB cases)
- ~6 m: Small bowel length (20 ft, largely unreachable by EGD/colonoscopy)
- 60–70%: CE diagnostic yield (identifies a bleeding source)
Why the mid-gut goes unseen
Standard upper endoscopy (EGD) reliably visualizes the esophagus, stomach, and only the first and second portions of the duodenum — roughly the first 60–100 cm of a gut that is many metres long. Colonoscopy, from the opposite direction, reaches the colon and can sometimes intubate a short segment of the terminal ileum, perhaps another 10–20 cm. Between these two examined zones lies the jejunum and most of the ileum: an unexamined "mid-gut" of several metres that is looped, mobile, and mesenterically tethered, making it inaccessible to push endoscopes without specialized, time-intensive techniques.
When a patient continues to bleed — manifesting as iron-deficiency anemia, recurrent melena, or intermittent hematochezia — after both scopes have returned normal, guidelines from the American College of Gastroenterology (ACG) and the American Society for Gastrointestinal Endoscopy (ASGE) recommend small bowel capsule endoscopy (CE) as the next, first-line investigation before more invasive options such as deep (balloon-assisted) enteroscopy.
OGIB is now more precisely termed "suspected small bowel bleeding" in current guidelines once the mid-gut is implicated — reflecting that capsule endoscopy has shifted the diagnostic paradigm from "obscure" to "localized but hard to reach."
Overt vs. occult presentations
OGIB is clinically split into two patterns that guide urgency and work-up:
• Overt OGIB — visible bleeding (melena or hematochezia) continues or recurs after negative bidirectional endoscopy. This carries higher acuity and often prompts more urgent capsule study, sometimes preceded by CT angiography if bleeding is brisk.
• Occult OGIB — bleeding is detected only indirectly, via iron-deficiency anemia or a positive fecal occult blood test, without visible blood loss. This is the more common presentation and typically allows an elective, outpatient capsule study.
Common small-bowel bleeding sources found on capsule study include vascular lesions (angiodysplasia), NSAID-induced ulcers and erosions, small bowel tumors (GIST, adenocarcinoma, carcinoid, lymphoma), Crohn's disease ulceration, and, in younger patients, Meckel's diverticulum.
Before the capsule: ruling out red flags
A capsule study is not the very first step for every anemic patient — clinicians first confirm that upper and lower endoscopy were adequate and complete, that celiac disease and other proximal causes have been excluded, and that the patient has no contraindication to capsule ingestion, most importantly known or suspected bowel obstruction, strictures, fistulae, or swallowing disorders.
In patients with known Crohn's disease, prior abdominal surgery, radiation enteritis, or NSAID-induced stricturing disease, the risk of capsule retention within a narrowed segment is substantially elevated. For these higher-risk patients, a dissolvable "patency capsule" is used first to confirm that the small bowel lumen is patent enough for a real capsule to pass safely — a screening step covered in Stage 5.
Capsule Ingestion & Gastric Transit
The patient swallows a single-use, disposable capsule about the size of a large vitamin pill — no sedation, no tube, no hospital stay. From the moment it passes the pylorus, everything that happens to the capsule is driven entirely by the gut's own motility, not by any propulsion of its own.
- 26×11 mm: Capsule dimensions (~3 g, single-use, disposable)
- 140–172°: Field of view (per camera, LED illuminated)
- ~45 min: Median gastric transit (range roughly 30 min–2 h)
- 8–12 h: Battery life (model-dependent, silver-oxide cell)
Anatomy of the capsule endoscope
The modern small-bowel capsule packs a remarkable amount of engineering into a swallowable shell: a CMOS image sensor, one or two wide-angle lenses with white-LED illumination, an ASIC image-processing chip, a radiofrequency transmitter, and a silver-oxide battery, all sealed in a biocompatible polymer shell that survives the acid of the stomach and the enzymes of the small bowel.
Images are transmitted in real time to an array of sensor leads taped to the patient's abdomen, which feed a small recording device worn on a belt. The patient goes about ordinary activities — no hospitalization is required — and returns the recorder after 8 or more hours so the images can be downloaded and compiled into a reviewable video.
Because the capsule is untethered and passively swept along by gut motility, ingestion itself requires no sedation or endoscopic skill — a nurse or physician simply hands the patient the capsule with a glass of water, exactly like taking a large pill.
Crossing the stomach
After swallowing, the capsule reaches the stomach within seconds via peristaltic esophageal contraction. Once in the gastric lumen it tumbles freely in gastric fluid, propelled by antral contractions roughly three times per minute, until it is swept toward the pylorus and squeezed through into the duodenum.
Gastric transit time is more variable than small bowel transit: median values around 45 minutes are typical, but transit can range from under 30 minutes to well over an hour, and is prolonged by gastroparesis, diabetes, prior gastric surgery, opioid medication, or simply patient anxiety altering motility. If gastric emptying is delayed beyond roughly an hour on real-time viewing, or in patients at high risk of delayed transit, the capsule can instead be placed endoscopically directly into the duodenum using a delivery device, bypassing the stomach entirely.
Preparation and bowel cleanliness
Image quality depends heavily on a clean small bowel lumen. Patients typically fast for 8–12 hours before the procedure, and many protocols now add a split-dose polyethylene glycol (PEG) bowel preparation the evening before or morning of the study — mirroring colonoscopy prep — because residual food debris, [], and bile staining can obscure small lesions and reduce diagnostic yield. A simethicone dose is often added just before ingestion to reduce light-scattering bubbles.
Once the capsule passes the pylorus, the diagnostically critical phase of the study begins: an unpredictable, multi-hour passive journey through several metres of looped, mobile small bowel.
Peristalsis-Driven Transit Through the Small Bowel
With no motor, wheels, or steering of its own, the capsule depends entirely on the coordinated, wave-like contractions of the small bowel — peristalsis — to move it forward. This passive nature is both the technology's greatest strength (safety, simplicity) and its central limitation (unpredictable, variable-speed transit that a physician cannot control in real time).
- ~4 h: Mean small bowel transit (typical range ~2–6 h)
- 2 fps: Standard capture rate (fixed-rate capsules)
- up to 6 fps: Adaptive capture rate (newer motion-sensing capsules)
- 50,000–100,000+: Images per study (compiled into a reviewable video)
Peristalsis as the only engine
Small bowel motility consists of migrating motor complexes and segmental contractions that mix and propel luminal contents distally in coordinated waves. The capsule is simply carried along with this flow, the way a twig floats down a river current — it cannot resist a slow patch of bowel, cannot reverse to re-examine a missed area, and cannot speed up to "catch up" on battery time.
This produces highly variable transit speed along the journey: the duodenum and proximal jejunum are typically crossed quickly, transit often slows through mid small bowel loops, and the terminal ileum can be traversed rapidly just before the ileocecal valve. Because transit is passive and non-uniform, a lesion can be viewed for a fraction of a second in one patient and for several seconds in another, and the same lesion can be missed entirely if it lies on the far side of a fold at the exact instant a frame is captured.
Roughly 20 feet of small bowel must be surveyed frame-by-frame with no ability to reposition or re-inspect — a fundamental trade-off versus a wired endoscope, exchanged in return for a completely non-invasive, unsedated outpatient test.
Adaptive frame-rate imaging
Earlier capsule generations captured images at a fixed 2 frames per second for the entire study, regardless of whether the capsule was moving quickly or sitting nearly still. Because a full 8-hour recording at even 2 fps still generates over 50,000 frames, and because much of that time is spent with the capsule barely moving (gastric residence, ileal pauses), fixed-rate designs waste both battery and storage on redundant, near-duplicate frames.
Newer capsule systems use motion- and image-adaptive frame rate control: onboard software detects the rate of scene change between consecutive frames and increases capture rate — up to about 4–6 fps — when the capsule is moving quickly through a segment, while dropping back to a lower rate when the image is static. This conserves battery life for the segments that matter most (increasing the odds the capsule reaches the cecum before power runs out) while still capturing rapidly transited areas at higher temporal resolution.
From raw frames to a reviewable study
Although the recording spans 8 or more hours, the images are compiled by proprietary software into a compressed video that a gastroenterologist typically reviews in 30–60 minutes, often at 10–25 frames per second of playback with software-assisted "quality control" or AI-flagged frames to guide attention.
Readers correlate visual landmarks — the pylorus, the abrupt villous/paneth-cell mucosal change in the terminal ileum, the ileocecal valve — with elapsed recording time to make a rough anatomic localization of any finding, since the capsule does not carry a GPS-like positioning system. Some external sensor-array systems can approximate capsule location using signal strength triangulation, but this remains an estimate rather than a precise coordinate.
Detecting the Bleeding Source
Every captured frame is a candidate for the single lesion that explains months of unexplained anemia or recurrent bleeding. Reviewers — increasingly aided by deep-learning detection algorithms — scan tens of thousands of images for the visual signatures of vascular malformations, mucosal ulceration, and neoplasms.
- ~30–50%: Angiodysplasia (of positive CE findings — most common cause)
- ~10–25%: Ulcers / erosions (often NSAID-related or Crohn's)
- ~5–10%: Small bowel tumors (GIST, adenocarcinoma, carcinoid, lymphoma)
- ~89%: Sensitivity for significant lesions (pooled meta-analysis estimates)
Angiodysplasia — the leading culprit
Angiodysplasias (vascular ectasias) are the most frequently identified cause of small-bowel bleeding on capsule study, accounting for roughly a third to half of positive findings. They appear as small, flat, bright-red lesions just a few millimetres across, often with a characteristic fern-like or spider-like pattern of ectatic mucosal capillaries. They are thought to arise from chronic, low-grade venous outflow obstruction at the submucosal level, are more common with age, and are associated with conditions such as chronic kidney disease, aortic stenosis (Heyde syndrome), and von Willebrand disease.
Because they are flat and only millimetres in size, angiodysplasias are exactly the kind of lesion easiest to miss on a single rapidly-transited frame — reinforcing why capture rate, bowel cleanliness, and careful frame-by-frame review all materially affect diagnostic yield.
When capsule endoscopy identifies an angiodysplasia or other treatable lesion, it can be directly targeted with argon plasma coagulation via balloon-assisted enteroscopy, converting a purely diagnostic test into an actionable treatment plan.
Ulcers, erosions, and inflammatory disease
Small bowel ulcers and erosions are the second most common finding, frequently attributable to chronic NSAID use — NSAIDs are directly toxic to small bowel mucosa independent of their gastric effects — or to Crohn's disease, which classically produces aphthous ulcers, cobblestoning, and skip lesions that can extend anywhere from the duodenum to the terminal ileum.
Distinguishing an NSAID enteropathy from early Crohn's disease on capsule images alone can be difficult; clinical history, inflammatory markers, and sometimes cross-sectional imaging (CT or MR enterography) are used alongside capsule findings to reach a diagnosis. Because Crohn's disease also raises the risk of stricture and capsule retention, patients with a known or suspected inflammatory bowel disease history are the population most likely to undergo patency-capsule screening before the diagnostic capsule (see Stage 5).
Tumors and AI-assisted reading
Though less common than vascular and inflammatory lesions, small bowel tumors — gastrointestinal stromal tumors (GISTs), adenocarcinoma, carcinoid (neuroendocrine) tumors, and lymphoma — are disproportionately important to detect because they typically require surgical or oncologic management rather than endoscopic therapy. Tumors may appear as polypoid masses, ulcerated nodules, or subtle mucosal bulges that are easy to overlook amid thousands of otherwise unremarkable frames.
Deep convolutional neural networks trained on large annotated capsule-image datasets have shown sensitivity and specificity for ulcers, erosions, and vascular lesions comparable to or exceeding expert human readers in retrospective studies, and are increasingly integrated into commercial reading software to flag high-probability frames, shorten reading time, and reduce the miss rate for subtle lesions — while final interpretation and clinical correlation remain the responsibility of the reviewing physician.
Common small-bowel bleeding sources identified on capsule endoscopy
| Product | Indication | Trial Design | Key Result |
|---|---|---|---|
| Angiodysplasia (vascular ectasia) | ~30–50% of positive findings | Flat, red, fern-like submucosal capillary malformation, a few mm across | Treatable via argon plasma coagulation at balloon enteroscopy |
| NSAID / ischemic ulcers & erosions | ~10–25% of positive findings | Direct mucosal toxicity from chronic NSAID use or ischemia | Managed medically; NSAID cessation often curative |
| Crohn's disease ulceration | Variable, higher in known IBD | Aphthous ulcers, cobblestoning, skip lesions duodenum→ileum | Guides immunosuppressive / biologic therapy |
| Small bowel tumors | ~5–10% of positive findings | GIST, adenocarcinoma, carcinoid, lymphoma — polypoid or ulcerated mass | Directs surgical / oncologic referral |
Completion Rate, Retention Risk & Battery Life
A capsule study is only as useful as its completeness: the capsule must physically reach the cecum, on camera, before its battery runs out. When it does not — or worse, when it becomes physically trapped somewhere along the way — the diagnostic and safety calculus of the whole test changes.
- ~15–20%: Incomplete small bowel exam (capsule does not reach cecum before battery ends)
- ~1–2%: Retention risk, general population (overall across indications)
- ~5–13%: Retention risk, Crohn's / strictures (known or suspected stricturing disease)
- ~30 h: Patency capsule dissolution (if retained proximal to a stricture)
The race against the battery
Capsule batteries are designed to last roughly 8–12 hours depending on the model, camera count, and frame rate used. For a study to be "complete," the capsule must transit the entire small bowel and be visualized entering the cecum before the battery is exhausted. If the capsule is still in the ileum — or worse, still in the stomach — when recording stops, the study is incomplete and part of the small bowel goes unexamined, exactly the diagnostic gap the test was meant to close.
Incomplete small bowel examinations occur in roughly 15–20% of studies, most often due to delayed gastric emptying (which eats into the available small-bowel transit window) or unusually slow small bowel motility. Strategies to reduce incompletion include real-time viewers that let staff confirm the capsule has left the stomach promptly, prokinetic agents in select patients, and optimized bowel preparation.
Because gastric transit alone can consume up to a quarter of total battery life in patients with delayed emptying, endoscopic delivery of the capsule directly into the duodenum is sometimes used specifically to preserve battery time for the small bowel itself.
Capsule retention — when the capsule cannot pass
Capsule retention is defined as the capsule remaining anywhere in the GI tract for two weeks or more, or requiring endoscopic or surgical intervention to remove it. In an unselected population undergoing capsule endoscopy for general indications, retention occurs in roughly 1–2% of studies. That risk rises substantially — commonly cited in the range of about 5% to as high as 13% — in patients with known or suspected Crohn's disease, prior small bowel surgery, radiation enteritis, or NSAID stricturing enteropathy, where fixed luminal narrowing can physically trap the capsule.
A retained capsule is not always a pure complication: its very inability to pass often confirms and localizes a clinically significant stricture that itself needed to be identified and treated, whether by endoscopic dilation, medical therapy, or surgical resection. Most retained capsules are eventually removed via balloon-assisted enteroscopy or, less often, surgery, and asymptomatic retention can sometimes be managed with observation alone.
The patency capsule — screening before the real thing
For patients judged at elevated risk of retention — particularly those with known Crohn's disease, prior obstructive symptoms, abdominal radiation, or extensive small bowel surgery — a dissolvable "patency capsule" (e.g., the Agile patency capsule) is used first. It is identical in size to the diagnostic capsule but is constructed from a lactose/barium body with a timer plug that begins to dissolve if the capsule remains stationary for about 30 hours, eventually disintegrating into fragments small enough to pass safely, or being detected and passed intact.
If the patency capsule is recovered intact or confirmed (radiographically or via an integrated RFID tag) to have passed into the colon within roughly 30 hours, the small bowel lumen is presumed patent and the diagnostic capsule can proceed safely. If it fails to progress and dissolves in place, this signals a clinically significant stricture, and capsule endoscopy is deferred in favor of cross-sectional imaging (CT/MR enterography) or a different endoscopic strategy — averting a true retention event before it can occur.
Putting it together — diagnostic yield in context
Across the full pipeline — indication, ingestion, transit, detection, and completion — small bowel capsule endoscopy identifies a probable bleeding source in roughly 60–70% of patients with obscure/suspected small bowel bleeding, a substantial improvement over the diagnostic dead-end that a negative bidirectional endoscopy previously represented. When a clinically significant lesion is found, therapy can often be directed precisely to it via balloon-assisted enteroscopy, reducing rebleeding and transfusion requirements.
The technology's core trade-off remains unchanged since its introduction in the early 2000s: capsule endoscopy exchanges the active control, biopsy capability, and therapeutic reach of a wired endoscope for a completely non-invasive, unsedated, single-pass survey of an organ that was previously unreachable in routine practice — at the cost of passive, uncontrollable transit and a real, if small, risk of retention.
A simulator for the transit of a capsule endoscope in the small bowel to diagnose occult bleeding.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install