Pattern-based methodology for characterization of layered geological formations