1. An information processing apparatus comprising: characteristic amount calculating means for calculating a characteristic amount for each of a plurality of n different image patterns; specifying means for specifying a best-matching image pattern among the plurality of n image patterns for each of frames forming a learning moving picture and having temporal continuity; computing means for computing a collocation probability Pij indicating a probability that, for a frame located at a position where a temporal distance to a frame for which a first image pattern Xi is specified among the plurality of n image patterns is within a predetermined threshold τ, a second image pattern Xj is specified among the plurality of n image patterns; and grouping means for grouping the plurality of n image patterns by using the computed collocation probability Pij.