smart event class detection