Sparse coding aims to model data vectors as sparse linear combinations of basis elements, but a majority related studies are restricted continuous without spatial or temporal structure. A new model-based (MSC) method is proposed provide an effective and flexible framework for learning features from different types: continuous, discrete, categorical, modeling types correlations: temporal. The sp...