A method and computer program product are disclosed for automatically encoding a complex system architecture for a pattern recognition classifier. A plurality of subclassifier states are defined as a plurality of sets of state variables, each set of variables corresponding to a subclassifier state. A set of rules are then determined for a state machine governing transitions between the plurality of subclassifier states. The plurality of sets of state variables and the determined rules are encoded into a configuration file. This configuration file is provided to a generic classifier system, including a state machine and a predefined generic classifier object.