Domain-independent generation and classification of behavior traces