Abstract. In the philosophy of behavior-based robotics, design of complex behavior needs the interaction of basic behaviors that are easily implemented. Action selection mechanism selects the most appropriate behavior among them to achieve goals of robot. Usually, robot might have one or more goals that conflict each other and needs a mechanism to coordinate them. Bayesian network represents the dependencies among variables with directed acyclic graph and infers posterior probability using prior knowledge. This paper proposes a method to improve behavior network, action selection mechanism that uses the graph of behaviors, goals and sensors with activation spreading, using goal inference mechanism of Bayesian network learned automatically. Experimental results on Khepera mobile robot show that the proposed method can generate more appropriate behaviors.