start of structured learning of neighborhood boundaries