Intelligent Behavior Utilizing Light-weight Diagnosis