In this paper, the authors are to propose an improved role based trust management system for wireless sensor networks. The paper is attained using an interactive artificial bee colony algorithm which is used for path optimization. Also the paper is to guarantee to provide robust and trustworthiness among the clusters formed in the wireless sensor network. The reputation among the sensor nodes is assured using the trust model. One of the main concerns of WSN, that have attracted research scholars, is the property to guarantee a less amount of security in a limited environment. Trust among the communicative nodes is one of the major issues that have to be given importance in wireless sensor network. A number of research works have concentrated on only Trust Management (TM) techniques without considering their roles.