International Journal of Electrical and Computer Engineering (IJECE) Vol. 12, No. 1, February 2022, pp. 1011~1017 ISSN: 2088-8708, DOI: 10.11591/ijece.v12i1.pp1011-1017 1011 Journal homepage: http://ijece.iaescore.com Efficient organization of nodes in wireless sensor networks (clustering location-based LEACH) Mohammed Réda El Ouadi, Abderrahim Hasbi Mohammadia School of Engineers, Mohammed V University, Rabat, Morocco Article Info ABSTRACT Article history: Received Mar 24, 2021 Revised Aug 13, 2021 Accepted Aug 29, 2021 The rapid development of connected devices and wireless communication has enabled several researchers to study wireless sensor networks and propose methods and algorithms to improve their performance. Wireless sensor networks (WSN) are composed of several sensor nodes deployed to collect and transfer data to base station (BS). Sensor node is considered as the main element in this field, characterized by minimal capacities of storage, energy, and computing. In consequence of the important impact of the energy on network lifetime, several researches are interested to propose different mechanisms to minimize energy consumption. In this work, we propose a new enhancement of low-energy adaptive clustering hierarchy (LEACH) protocol, named clustering location-based LEACH (CLOC- LEACH), which represents a continuity of our previous published work location-based LEACH (LOC-LEACH). The proposed protocol organizes sensor nodes into four regions, using clustering mechanism. In addition, an efficient concept is adopted to choose cluster head. CLOC-LEACH considers the energy as the principal metric to choose cluster heads and uses a gateway node to ensure the inter-cluster communication. The simulation with MATLAB shows that our contribution offers better performance than LEACH and LOC-LEACH, in terms of stability, energy consumption and network lifetime. Keywords: Clustering Energy consumption LEACH Network lifetime Wireless sensor networks This is an open access article under the CC BY-SA license. Corresponding Author: Mohammed Réda El Ouadi Mohammadia School of Engineers, Mohammed V University Rabat, Morocco Email: elouadi.mr@gmail.com 1. INTRODUCTION Recently, wireless sensor networks (WSNs) have been rapid progress, through their use in different fields and domains such as military domain [1], [2], health application [3], security surveillance [4], smart home [5] and another similar area. WSNs are composed of multiple sensor nodes, which are used to collect data from a real environment, as shown in Figure 1. Sensor nodes have minimal energy, communication, and computing capabilities [6]. Generally, it is difficult to replace or change their batteries, once they are exhausted [7]. Thus, the mission to conserve the sensor nodes energy is the important challenge to be solved in WSN, due to the direct impact on the WSN lifetime [7], [8]. Random organization of nodes in the sensor area is not an efficient concept to conserve energy and provide load balancing between nodes. One of the principal methods used to organize sensor nodes is clustering, which consists of organizing nodes in groups (clusters) [9], with compliance with certain metrics. Clusters are composed of sensor nodes and one of them is elected leader and called cluster head (CH). The CH is the essential element in this concept, responsible to make a special task such as: collect data from all other cluster nodes, aggregate data and transmit it directly to Base