1. A method of generating data models in a mobile device, comprising: receiving in a processor of the mobile device a full classifier model that identifies a plurality of test conditions; using device-specific information of the mobile device to identify mobile device-specific test conditions in the plurality of test conditions that are relevant to classifying a behavior of the mobile device; generating in the mobile device a lean classifier model that includes only the identified mobile device-specific test conditions; and using the generated lean classifier model in the mobile device to classify the behavior of the mobile device.