automatic model structure identification