Wireless Sensor Networks (WSNs) have profound applications in diverse areas. Industrial monitoring and control is one of the main applications of WSNs. In order to improve the quality of service of the network while reporting sensed information to the base station, grouping is one of the best known strategies available. A Group Head (GH) present in each group helps in aggregation of information with that of the other group members before reporting to the base station. In many existing methods many group head selection algorithms based on residual energy or quality of service or other factors exist. In this study, we propose a Cognitive Group Leader Selection Algorithm (CGLSA) for the efficient working of grouped WSNs. CGLSA assesses each group for the requirement on the type of GH selection would enhance the operation of WSN. The efficiency of the proposed system is proven by the simulation in the network simulator.