Interaction Analysis using Switching Structured