This paper presents a case-based planning and beliefs, desires, intentions (CBP–BDI) planning model which incorporates a novel artificial neural network. The CBP–BDI model, which is integrated within an agent, is the core of a multi-agent system that allows managing the security in industrial environments. The BDI model integrates within a CBP engine of reasoning that incorporates artificial neural network-based techniques, and in this way it is possible to adapt past experiences to generate new plans. The proposed model uses self-organized maps to calculate optimum routes for the security guards. Besides, some technologies of ambient intelligence such as radio-frequency identification and Wi-Fi are used to develop the intelligent environment that has been tested and analysed in this paper.