Structural inference