Patent ID: 8922633

Claim:
A method for detecting transition of an in-vivo device from one section of the gastrointestinal system to another, comprising: receiving a stream of image frames, each of the image frames comprising an image captured by an in in-vivo device traversing the GI tract and related non-image data; calculating frame scores, a frame score for each image frame; calculating a sequence of distances between the frame scores and a reference function, ƒ, by shifting the reference function across the frame scores and, after each shifting, calculating a distance between the frame scores and the reference function, wherein calculating a distance comprises calculating a difference between all frame scores and the shifted reference function; and associating, based on the sequence of distances, a particular frame score with a time at which the in-vivo device transitioned from a first section of the gastrointestinal system to a second section of the gastrointestinal system.