Developers realize data patterns in various forms. Though an architect might be contiuing his analysis assuming it is "X" design pattern, in reality the implementation may not reflect the same.
If we could dynamically discover the design pattern from the running of the system and match it with a standard template, we could probably infer that..
Look in terms of this paper
Probabilistic state machines could help may be?
Store design pattern is a state machine, and compare it against an inferred state machine?