Abstract
Internet of Things (IoT) sensor networks comprise diminutive sensor units primarily designed for monitoring phenomena within a designated area. However, reaching the complete potential of this kind of network is extremely difficult due to several challenges, including the fact that the data transmitted by the sensor nodes contains a large amount of duplicates. Data aggregation can be employed to address this issue in routing packets from nodes that send data to the base station (BS). In this study, a novel, hybrid data aggregation framework for IoT sensor networks is proposed by integrating Self-Organizing Maps (SOMs) with the Firefly Optimization Algorithm (FOA). The core motivation for this integration is to address persistent challenges in IoT sensor networks, chiefly energy efficiency, network longevity, and the reliability of data transmission. By combining the adaptive, unsupervised clustering capabilities of SOMs with the robust, multi-objective optimization properties of the FOA, the method aims to achieve more intelligent, adaptive, and practical solutions for real-world IoT systems. This work presents an innovative framework that synergistically leverages the strengths of FOA and SOM, offering a new methodology that addresses key challenges in scalable and energy-efficient IoT sensor network clustering. The suggested algorithm’s validity has been verified using an experimental analysis performed in MATLAB. Experimental results show the proposed method extends network lifetime by 15% and reduces energy consumption by 10% compared to FOA, SOM, and LEACH benchmarks. A notable classification rate was attained after implementing and testing the proposed method using the Intel Berkeley Research Lab dataset.
1. Introduction
The rapid expansion of IoT deployments has fundamentally changed how data is gathered, processed, and sent across distributed sensor networks. Contemporary IoT applications, including smart cities and industrial monitoring systems, produce extensive volumes of diverse data, necessitating effective aggregation methods to guarantee optimal network performance, energy efficiency, and data integrity. Data aggregation has become an essential process that entails systematic collection, processing, integration, and transmission of data from various distributed sensor nodes to diminish redundancy, reduce energy consumption, and improve the overall network performance while preserving data integrity and quality of service standards.
The importance of efficient data aggregation in IoT sensor networks is particularly clear when acknowledging the inherent constraints of conventional Wireless Sensor Networks (WSNs), such as limited battery life, restricted computational resources, bandwidth constraints, and the necessity to sustain network connectivity despite node failures and environmental fluctuations. Recent studies indicate that cluster-based data aggregation methods can markedly improve the network efficiency and lifetime. Notably, ref. [1] introduced a cluster-based data aggregation framework tailored for IoT sensor networks by employing the FOA. This approach demonstrated significant enhancements in energy efficiency and network performance relative to traditional clustering techniques. This study laid the groundwork for bio-inspired optimization methods in IoT data aggregation by illustrating how the natural luminescent activity of fireflies may be converted into efficient clustering and routing strategies.
Expanding the use of firefly optimization to tree-based energy-efficient data aggregation techniques in IoT settings introduced a hierarchical strategy that enhances both data-routing pathways and energy consumption patterns. The tree-based approach [2] tackles essential issues with data transmission latency and energy distribution across network nodes, showcasing notable enhancements in network longevity and data delivery efficacy. This study emphasized the adaptability of firefly optimization in managing various network topologies and aggregation procedures, facilitating the development of more advanced optimization methods in IoT sensor networks. The researchers used adaptive brightness parameters that are altered dynamically according to node energy levels and data traffic patterns, leading to more equitable energy consumption throughout the network hierarchy [2].
The substantial validation of firefly-based optimization in WSNs has been demonstrated through various research initiatives. Mosavvar and Ghaffari [3] performed an extensive study on data aggregation with the Firefly Algorithm (FA) in conventional WSNs, defining foundational principles and performance metrics that have impacted later research in IoT applications. In the suggested methodology, sensor nodes are separated into multiple regions by clustering. Within each cluster, nodes exhibit periodic activity and inactivity. Factors such as energy and distance are considered in the selection of active nodes. Consequently, nodes with greater residual energy and increased distance will be identified as active nodes [3].
In addition to the optimization capabilities of the FOA, SOMs have emerged as potent unsupervised learning instruments for data grouping and pattern detection in sensor networks [4,5]. SOMs present distinct benefits in data aggregation contexts by employing adaptive clustering techniques that proficiently categorize analogous data patterns while minimizing the dimensionality and computing demands [6,7]. The use of SOMs in WSNs has demonstrated favorable outcomes across multiple applications, such as energy-efficient clustering algorithms [7,8], distributed data processing [9], and network security enhancement [10].
Although FOA and SOM strategies have individually succeeded in optimizing various facets of sensor networks, a substantial research gap remains in utilizing their combined capabilities for enhancing data aggregation comprehensively. The integration of these complementary approaches presents an opportunity to create hybrid solutions that can simultaneously optimize multiple network parameters while maintaining adaptive learning capabilities [11]. This combination may overcome the shortcomings of current methods by merging the global optimization advantages of FOA with the pattern recognition and clustering abilities of SOMs.
The examination of the FOA indicates that it is incapable of identifying optimal solutions. Furthermore, when firefly particles become ensnared in the local minimum, they are unable to get rid of it and exhibit a diminished convergence rate. To address these limitations, we have suggested the integration of a SOM and the FOA. Consequently, the rate of convergence and the precision of the outcomes have improved; also, the issue with the convergence of solutions to local optima and the entrapment in local minima has been largely addressed. This research aims to explore the beneficial potential of integrating SOMs with the FOA to develop an improved data aggregation framework for IoT sensor networks and overcome the significant issues of energy efficiency, network longevity, and data transmission reliability in contemporary IoT implementations by taking advantage of the multi-objective optimization capability of FOA and the adaptive clustering capability of SOMs. The proposed method is anticipated to enhance intelligent data aggregation approaches and offer realistic solutions for real-world IoT applications.
The subsequent sections are structured as follows: Section 2 analyzes relevant literature. The proposed method is detailed in Section 3. Section 4 establishes the results and discussion derived from simulating the suggested model and contrasts this model with alternative models. Ultimately, Section 5 delineates the conclusion of the research.
2. Related Works
The topic of efficient data aggregation in IoT sensor networks has garnered significant research interest because of its essential function in enhancing network performance, prolonging the network lifespan, and minimizing energy usage. The clustering paradigm has arisen as a crucial method for data aggregation in sensor networks. The integration of multiple optimization strategies has demonstrated encouraging outcomes in tackling intricate data aggregation issues. Mohammadi et al. [11] introduced FA-SOM, a hybrid methodology that employs self-organizing neural networks as clustering techniques, augmented by optimization through the FA. The firefly optimization process initially identifies cluster centers using data-clustering operations, subsequently adjusting the initial weights of the SOM neural network based on the identified cluster centers [11].
SOMs have arisen as a potent unsupervised machine learning method for data aggregation in WSNs. Abdalkafor et al. [5] performed an extensive study on the implementation of SOM, Hierarchical Agglomerative Clustering (HAC), and Radial Basis Function (RBF) algorithms for data aggregation in WSNs. Their research revealed that an SOM offers enhanced clustering efficacy when integrated with suitable preprocessing techniques, such as balanced distribution methods and normalization processes [5]. The efficacy of SOMs in managing high-dimensional complex datasets has been especially significant in WSN applications. Ihsan et al. [4] introduced an innovative data aggregation approach utilizing SOMs that was aimed at minimizing redundant data and eradicating outliers in WSN environments. Their methodology utilized cosine similarity metrics to enhance the grouping of sensor nodes according to the data density and similarity attributes. The application of interquartile range (IQR) analysis for outlier elimination was crucial in improving the data quality prior to the SOM-processing phase [4].
The FA has proven to be exceptionally effective for addressing NP-hard optimization issues associated with WSN clustering and data aggregation. Zivkovic et al. [12] devised an updated iteration of the FA aimed at optimizing the longevity of WSNs by refining cluster formation and Cluster Head (CH) selection methodologies. Their research indicated that metaheuristic algorithms, especially the enhanced FA, exhibit superior and more consistent performance relative to conventional methods, such as LEACH, the basic FA, and particle swarm optimization, when assessed on identical network infrastructure models. Pakdel and Fotohi [13] presented the EM-FIREFLY approach, employing the FA for power management in WSNs. Their methodology tackled the significant problem of non-homogeneous power consumption, especially impacting nodes adjacent to base stations that undergo accelerated energy depletion due to continuous data transmission activities. The method utilized four principal criteria: residual energy, noise rate, number of hops, and distance to identify optimal CHs with high desirability based on fitness functions [13].
The integration of multiple optimization algorithms has shown potential for addressing complex routing challenges in IoT networks. Hosseinzadeh et al. [14] introduced a hybrid delay-aware clustered routing methodology that integrates the Aquila Optimizer and FA to tackle the NP-hard characteristics of clustered routing issues. Their research revealed that conventional cluster-based routing techniques frequently experience disproportionate power consumption, resulting in early network failure. The authors devised a clustering strategy based on swarm intelligence that attained a more equitable distribution of cluster heads, leading to enhanced energy efficiency. The study emphasized the necessity of accounting for many aspects, such as residual energy, average distances, hop count, and node equilibrium, in the design of routing protocols for IoT platforms [14].
Abdalkafor and Aliesawi [15] performed an extensive investigation illustrating the substantial effects of data aggregation algorithms on the performance of WSNs regarding energy efficiency, accuracy, and latency. Their study employed SOMs and HAC algorithms with the Intel Berkeley Research Lab Dataset, thereby creating baseline performance measures for assessing aggregation efficacy [15]. The integration of fuzzy logic in WSN data aggregation has demonstrated encouraging outcomes. Bhushan et al. [16] devised the Fuzzy Attribute-based Joint Integrated Scheduling and Tree Formation (FAJIT) method, which resolves parent node selection issues in heterogeneous networks. Their methodology employs fuzzy logic for tree construction and parent node selection, leveraging min–max normalization to provide normalized weights for graph edges, hence enhancing the energy efficiency relative to conventional distributed techniques [16]. The quality and efficiency of the incoming data are improved by obtaining aggregated data that is free from errors and noise. This necessitates the application of precise algorithms that efficiently eliminate mistakes and noise from the data before aggregation, such as the Accurate Data Aggregation Created by Neural Network and Data Classification Processed Through Machine Learning (ACNM) technique [17] for WSNs, which aims to improve data accuracy and efficiency by eliminating errors and noise before aggregation. It reduces the network delay and overhead by optimizing computation periods, reducing redundant data transmissions, and controlling the transmission rate [17].
Recent advancements have unveiled more advanced clustering methodologies that tackle deployment structure issues. Krishnasamy et al. [18] introduced a heuristic angular clustering framework for secure statistical data aggregation, offering Radial-Shaped Clustering (RSC) as an alternative to conventional square or rectangular deployment configurations. The RSC methodology categorizes deployment architecture into several virtual concentric rings, each of which is further partitioned into sectors that operate as clusters. The node nearest the middle of each sector is designated as the CH, and data aggregation is executed using angular inclination routing [18].
Researchers have established weighted K-means clustering as an improved methodology. Surya and Suresh [19] introduced an extended weighted K-means algorithm integrated with key performance indicators for data aggregation challenges. Their methodology acknowledges that each variable in a dataset possesses varying degrees of significance, and clustering results can be markedly enhanced by allocating suitable weights that comprehensively reflect their impact on cluster dynamics. This methodology employs a feature evaluation function to produce vectors derived from feature weights via reduction functions, framing the problem as a multi-objective optimization challenge [19].
Several clustering-based strategies have been devised to enhance data aggregation efficiency. Tanushree et al. [20] introduced a hierarchical cluster-based data aggregation method using fault tolerance features to enhance network longevity. Their methodology employs LEACH clustering with numerous drains to mitigate communication costs and avert network isolation after CH failures. The strategy employs Virtual Cluster Heads (VCHs) as auxiliary nodes to provide uninterrupted data transfer in the event of primary cluster head failure [20]. Energy-efficient clustering systems have been augmented by diverse optimization techniques. Roy et al. [21] concentrated on minimizing intra-cluster communication by permitting non-cluster head nodes to send control frames prior to comprehensive data delivery to designate cluster heads, thereby exhibiting enhanced stability and network longevity in LEACH simulations [21]. Al-Humidi et al. [22] created a lightweight data transmission (LDT) system employing centralized control algorithms for optimal cluster head selection, functioning in rounds with specific phases for initialization, clustering, aggregation, and data transmission [22].
Advanced routing and aggregation techniques have integrated multi-objective optimization strategies. Sharifi and Barati [23] introduced a two-level energy-efficient routing and clustering approach that incorporates many factors, such as residual energy, centrality, and proximity to the sink for the selection of CHs. Their methodology establishes rendezvous zones with backbone nodes that create tree structures for effective data transmission, providing two separate methods for data transmission contingent upon the location of the source CH in relation to the sink [23]. Particle Swarm Optimization (PSO) has been utilized for clustering and routing challenges in sensor networks. Ruan and Huang [24] formulated a PSO-based Uneven Dynamic Clustering Multi-hop Routing Protocol (PUDCRP), which utilizes enhanced PSO algorithms to dynamically ascertain CH positions and facilitates energy-efficient routing via multi-faceted fitness functions [24]. Wang et al. [25] introduced Energy Centers Searching using PSO (EC-PSO) to mitigate energy depletion and identify appropriate energy centers for CH selection, employing varied techniques throughout network phases.
Moreover, Manuel et al. [26] emphasized that current sensor network research incorporates a variety of technologies to enhance previous studies that focused on cost-effectiveness, time efficiency, and new approaches. The authors recognized deficiencies in prior models, especially regarding the necessity for improvements in energy management inside WSNs. The study classified its technique into three primary categories: optimization-based, parameter-based, and methodology-based. The authors made it a priority to integrate the energy limitations of sensor hubs and the clustering model features as an effective strategy for maintaining the power efficiency of WSNs [26]. Table 1 represents a summary of the related works.
Table 1.
Summarization table on the related works.
Study [27] employed a meta-heuristic known as the FA and contrasted its outcomes with those of the established Energy Aware clustering algorithm. The application of the firefly method in clustering shows enhancements in performance metrics, such as the packet delivery ratio between network nodes and the network longevity. The improvement in the packet delivery ratio, relative to the basic approach, signifies a decrease in packet loss within the network. A similar study [3] indicated that the lifespan of WSNs can be extended through the selection of appropriate CHs and the application of the FA as a data aggregation method in WSNs. The proposed strategy entailed segmenting sensor nodes into distinct regions by applying clustering algorithms. Each cluster exhibited a pattern of alternating inactive and active nodes, with the selection of active nodes determined by factors such as energy and distance. The methodology utilized in this study involved identifying nodes that demonstrated increased distance and elevated residual energy as active nodes.
Study [12] presented an improved variant of the FA to extend the network’s longevity. This version enhanced the processes of cluster formation and CH selection. Furthermore, they performed an evaluation to determine the efficacy of the improved FA, contrasting LEACH, the foundational FA, with particle swarm optimization. All algorithms were assessed using the same network architectural framework, and simulations demonstrated that the proposed metaheuristic surpasses rival algorithms in both performance and consistency. Study [13] employed the FA and assessed its efficacy according to four criteria: noise level, residual energy, distance, and hop count. The EM-FIREFLY approach delineates the selection of the most optimal CH by utilizing a fitness function and transmits data packets through these CHs to the sink. The evaluation outcomes indicate the effectiveness of the EM-FIREFLY approach concerning the criterion of maximum comparative load and network lifespan.
In another study, researchers proposed a firefly optimization method and an aquila optimization methodology to identify the requisite interim and CH nodes for transportation, acknowledging the NP-hard nature of clustered route construction. Researchers have evaluated the efficacy of this hybrid clustering and transmission methodology with the following metrics: residual energy, average distances, hop count, and node balancing. The proposed method has demonstrated efficacy, yielding at least an 18% enhancement in the system energy consumption and a minimum 25% augmentation in the packet delivery ratio [14]. The authors of [28] utilized the FA and hesitant fuzzy approaches to propose a unique CH selection strategy. The suggested method employs three qualities of sensor nodes to calculate the score of each individual node for the purpose of identifying the ideal CHs. Three instances were developed and evaluated to characterize the performance of the proposed strategy. The simulation results demonstrate that the proposed strategy improves the energy efficiency and prolongs the network lifespan.
In another investigation, the researcher presented an innovative data aggregation technique by employing the FOA to reduce the energy usage and extend the network’s lifespan. This study explores the correlation between the BS, which acts as the tree’s root, and the mediator node, which operates as a collector of its subordinate nodes. The goal is to construct an aggregate tree that reduces the distances between nodes. This technique yielded superior outcomes for the energy consumption, network durability, packet delivery ratio, and latency when compared with the Harris Hawks optimization and R-Leach algorithms [2]. A viable strategy to mitigate the challenges associated with energy consumption and network longevity entails the judicious selection of CHs within each cluster. The open shortest path routing protocol is employed to identify the route or link that expends the minimal energy or load necessary for data transmission between nodes. This study presents a hybrid method that integrates particle swarm optimization (PSO) with the FA for energy optimization. This hybrid technology conserves network power, hence prolonging the network lifespan [29].
Although widely applied, the Firefly Algorithm has faced substantial criticism. Scholars argue that the FA and other metaphor-driven heuristics, such as the Grey Wolf Optimizer and Bat Algorithm, rely on reformulations of previously established principles, especially those underlying PSO [30,31]. Critics further contend that such algorithms often introduce redundant terminology without offering robust theoretical justification for their design [32].
Nevertheless, contemporary hybrid metaheuristic research suggests that the FA’s real value lies less in its standalone application and more in its capacity to enhance other algorithms through integration. By merging distinct optimization methods, hybrid systems leverage the complementary strengths of each. For example, coupling the FA’s dynamic exploration–exploitation mechanisms with the structural learning capabilities of SOMs enables the maintenance of topological data integrity while adaptively optimizing clustering parameters for both global search diversity and local refinement.
In this study, the FA is not presented as a novel or independent solution but rather as a practical heuristic within a hybrid FA–SOM framework designed for adaptive and energy-efficient data aggregation. The integration takes advantage of the FA’s simplicity and adaptability alongside SOM’s stable spatial clustering, overcoming each method’s limitations when used in isolation. This hybrid approach is particularly suitable for dynamic environments, such as IoT sensor networks, where network and data conditions frequently change. The resulting model offers self-regulation, topology-aware optimization, delivering reliable aggregation performance in complex, data-driven contexts.
WSNs apply various data aggregation techniques aligned with specific network characteristics and requirements. Each protocol offers distinct advantages and limitations. Table 2 provides a comparative overview of existing data aggregation strategies alongside the proposed hybrid SOM-FOA methodology, demonstrating its relative strengths in energy efficiency and accuracy.
Table 2.
Comparison of data aggregation techniques [33,34].
3. Proposed Method
This paper proposes an innovative hybrid framework that integrates SOMs and FOA to tackle the critical issues of energy efficiency, network lifetime, and data transmission reliability in IoT sensor networks. The framework leverages the adaptive clustering features of SOMs and the multi-parameter optimization capabilities of FOA to efficiently aggregate and transmit sensor data, with the objectives of reducing redundancy, optimizing resource use, and improving real-world applicability in contemporary IoT environments. In the initial phase of the proposed methodology, SOMs are employed to dynamically cluster sensor nodes according to their spatial locations, commonalities in sensed data, and current resource conditions, including energy levels and connectivity. In contrast to static clustering methods, SOMs dynamically restructure the network into clusters that correspond to variations in the node distribution, data patterns, and network conditions. This yields clusters that are optimally balanced regarding the load and spatial distribution, which is essential for reducing duplicated transmissions and maximizing the network resource efficiency.
Following the formation of clusters using the SOM method, the next phase utilizes the FOA to pinpoint the best CHs within each cluster. The FOA is ideally equipped for this purpose owing to its capacity to identify optimal solutions inside intricate, multi-parameter environments. The FOA assesses each prospective node through a fitness function that integrates essential criteria, including the residual energy, signal-to-noise ratio, distance to the base station, and the number of hops needed for data transmission. The FOA’s light attraction mechanism is adapted so that nodes with higher fitness—those more suited to serve as CHs—attract other nodes and are more likely to be selected. This dynamic and distributed optimization ensures that CHs are chosen not just for their location but for their ability to prolong the network lifetime and maintain robust communication links. CHs are responsible for aggregating data from their respective cluster members. The CHs subsequently transmit the consolidated data to the BS.
3.1. Firefly Optimization Algorithm
The suggested technique integrates the flexible grouping capabilities of SOMs with the optimization powers of the FOA to efficiently collect and transmit sensor data, with the objective of reducing superfluous data, optimizing resource utilization, and improving practical applications in contemporary IoT environments. By using sensor nodes analogous to fireflies and light intensity (fitness) as a measure of solution quality, the FA is employed to identify a specific number of nodes that have at least one neighboring node within a threshold distance, therefore facilitating the strategic election of CHs. The array (lightIntensity) stores the fitness (light intensity) of each firefly. The light intensity (fitness) of each firefly is determined by evaluating the intended function. An exceptionally luminous firefly interacts with others inside the specified search space to identify the optimal solution. Figure 1 illustrates the flowchart of the proposed methodology. The fitness value is a variable parameter derived from the residual energy, signal-to-noise ratio, inter-node distance, and HoP count. The algorithm progressively adjusts the locations of the fireflies to enhance the quality of the solutions (Equation (1)). The election of the CHs is executed in a completely decentralized manner using a fitness function. This technique employs a principle of great attraction to identify an appropriate CH. Prior to calculating the fitness function, it is necessary to determine the residual energy, signal-to-noise ratio, inter-node distance, and HoP count (Equations (2)–(5)). Consequently, the objective fitness function for nodes demonstrating the highest attraction is calculated in accordance with Equation (6).
Figure 1.
Flowchart of the suggested approach.
Each solution is verified against every solution , = 1, 2, …, , starting from = 1. = 1 which represents the attractiveness, and γ = 1 which illustrates the absorption coefficient for all simulations. is a parameter utilized for randomization, where ∈ [0, 1]. In our methodology, the value of is 0.2. r represents the distance between firefly i and firefly .
which gives the residual energy of node i with relation to the aggregate residual energy of all nodes within the cluster. represents residual energy of node i. N illustrates total number of nodes in the cluster.
which gives the signal-to-noise ratio of node i in relation to the overall SINR of all nodes inside the cluster. represents Signal-to-Interference-plus-Noise Ratio of node i. N illustrates total number of nodes in the cluster.
which gives the distance between two nodes in relation to the aggregate distances across all nodes within the cluster. represents distance between node i and node j.
which gives the HoP count between two nodes in relation to the total HoP counts across all nodes within the cluster. illustrates number of hops required to reach from node i to node j.
The pseudocode of the Firefly Algorithm is given in Algorithm 1.
| Algorithm 1. Pseudocode of the Firefly Algorithm |
|
The pseudocode SOM method is given in Algorithm 2.
| Algorithm 2. Pseudocode of SOM method |
|
3.2. Data Collection
The Intel Berkeley Research Lab dataset is an open-source collection compiled at the Intel Berkeley Research Lab. The capturing period spanned from 28 February to 5 April 2004. Figure 2 illustrates that the Intel lab dataset comprises eight features as observational variables, whereas the recorded sensed data instances total 2,313,682. The dataset was gathered utilizing 54 Mica 2 Dot sensors in conjunction with weather sensors deployed at the Intel Berkeley Research Lab. These sensors measure temperature, humidity, and light weather characteristics every 31 s [35].
Figure 2.
Sensor nodes deployed to collect the Intel Berkeley Research Lab dataset.
3.3. Data Pre-Processing
To ascertain the precise specifications and total repeats for each sensor, the utilization of each sensor for measuring the temperature, humidity, and light was conducted to facilitate subsequent steps and identify the suitable algorithms and functions that would ultimately enhance the efficacy of the data aggregation strategy, thereby minimizing the aforementioned excess data. Figure 3 illustrates the measurement frequencies of the three occurrences over 54 sensors (Mote IDs).
Figure 3.
The measurement frequencies of 54 sensors.
3.4. Distance Calculation
The FOA demands accurate calculation of the distance between two nodes (or fireflies) to ascertain the degree of attraction one firefly exerts upon another (Equation (7)). The appeal of the environment influences the communication of fireflies throughout the search space, guiding them toward the optimal choices.
where r represents the distance between fireflies. Each firefly informally pursues superior solutions by attracting brighter fireflies, as the brightness of a firefly correlates with the effectiveness of the solution it embodies in the optimization problem. The distance calculation ensures that this communication is flexible and responsive to the varying brightnesses of fireflies.
Employing Equation (8) is essential for calculating the distance between two sets of points, which is fundamental in assessing the relative attractiveness of fireflies. Their advancement within the search space is directed by their allure. As the algorithm progresses, it repeatedly recalculates the distances between fireflies, enabling it to adapt dynamically to their changing positions. This ensures that the inquiry is timely and adept at thoroughly examining the issue space. In this equation, d represents the number of dimensions, whereas and are the coordinates of fireflies i and j in the k-th dimension [1].
3.5. Cluster Formation with Self-Organizing Maps
SOMs are an unsupervised learning approach designed to generate a low-dimensional representation of high-dimensional data while maintaining the data’s topological characteristics. In the realm of IoT sensor networks, SOMs can be utilized to create clusters of sensor nodes according to their attributes, including data patterns, energy levels, and proximities.
Steps for cluster formation with SOMs:
- Initialization: SOMs commence with a preliminary weight matrix, wherein each sensor node in the SOM is linked to a weight vector that matches the dimensionality of the input data.
- Input data representation: Each sensor node i is denoted by a feature vector:
- 3.
- Finding the Best Matching Unit (BMU): For each input vector , the SOM determines the BMU, which is defined as the sensor node with the weight vector most analogous to the input vector. Similarity is frequently quantified by the Euclidean distance:
- 4.
- Updating weights: Once the BMU is identified, the weights of the BMU and its adjacent sensor nodes are modified to align more closely with the input vector. The weight update formula is specified as follows:
- 5.
- Iteration: Steps 3 and 4 are reiterated for a predetermined number of iterations or until the weight vectors achieve convergence. Eventually, the sensor nodes will arrange into clusters that reflect the fundamental structure of the input data.
- 6.
- Cluster formation: Following training, sensor nodes with analogous weight vectors are combined into clusters. Each cluster signifies a collection of sensor nodes that exhibit analogous properties derived from the attributes utilized in the input vector.
3.6. Data Aggregation and Energy Consumption
In conventional IoT sensor networks, duplicate sensor coverage and linked sensing frequently result in redundant data transmission, causing excessive energy consumption and network congestion. Effective data aggregation methods are essential to alleviate these problems. Static clustering or suboptimal CH selection may lead to disproportionate energy usage and diminished network longevity. The proposed method combines SOM-based adaptive clustering with FOA-driven CH selection and data aggregation to solve these issues.
Upon electing CHs, these nodes are tasked with accumulating data from their respective cluster members. The aggregation process aims to eliminate redundant and associated data, thus minimizing the transmission overhead. The CHs subsequently relay the aggregated data to the BS, enhancing the communication energy efficiency and data delivery dependability. The energy for the aggregated data in these nodes is calculated using Equation (12):
where denotes the packet length, while signifies the energy consumed for aggregated data is calculated using Equation (13). Energy usage is a critically important subject. Effectively managing and depicting the energy consumption of the sensor nodes is essential in the proposed method for accurately estimating the network’s efficiency and longevity. The following formulas are utilized to assess the quantity of energy consumed:
where lp signifies the duration of the transmitted or received packet, whilst d indicates the distance between the destination and the transmitter. The value of is ascertained utilizing Equation (17) [1]:
The energy overhead introduced by cluster formation using the integrated SOM and FOA in IoT sensor networks is estimated to range between 5% and 12% of the total per-round energy expenditure, depending on network density and re-clustering frequency. This overhead arises primarily from data exchanges and network adaptation processes associated with cluster head selection and cluster membership updates. Notably, these additional energy costs are largely offset by improved data aggregation efficiency and reduced redundant transmissions-benefits which translate into extended network lifetime and enhanced overall energy utilization across nodes. Recent simulation-based studies consistently demonstrate that the proposed SOM–FOA hybrid approach achieves superior performance compared to traditional clustering methods, validating the practical value of the incurred overhead in optimizing IoT sensor network operations [1,3,13]. Table 3 summarizes the mathematical notation.
Table 3.
Summary of mathematical notation.
4. Simulation and Results
This paper presents a novel hybrid architecture that combines SOMs and the FOA to address the significant challenges of energy efficiency and network longevity in IoT sensor networks. The framework utilizes the adaptive clustering attributes of SOMs and the multi-parameter optimization functions of the FOA to effectively consolidate and transmit sensor data, aiming to minimize redundancy, optimize resource utilization, and enhance practical applicability in modern IoT settings. SOMs are utilized to dynamically cluster sensor nodes based on their spatial placements, similarities in sensed data, and prevailing resource conditions, such as energy levels and connectivity. This produces clusters that are ideally balanced regarding the load and spatial distribution, which is crucial for minimizing redundant transmissions and optimizing network resource efficiency. Subsequent to the establishment of clusters using SOM, the ensuing phase employs the FOA to identify the optimal CHs inside each cluster. The FOA is well-suited for this task due to its ability to discern optimal solutions within complex, multi-parameter contexts.
4.1. Simulation Environment
We applied the MATLAB 2024b simulator to conduct data simulation and analysis.
Table 4 provides a brief overview of the simulation parameters and variables incorporated in this methodology. Figure 4 depicts the sensor nodes distribution in the Intel Berkeley Research Lab. The value denotes the energy consumed per bit in the transmitter or receiving circuit. The parameters and are derived from the fundamental model of the sender circuit. The variable represents the allure of firefly j to firefly i, which diminishes as the distance between them increases. Typically, should be a value ranging from 0 to 1. The parameter γ dictates the pace at which attraction wanes as the distance from the communicating firefly increases. Generally, it ranges from 0.01 to 100 in most applications. Our proposed FOA uses values of = 1 and γ = 1 for all simulations. is a parameter utilized for randomization, where ∈ [0, 1]. In our methodology, the value of is 0.2. The FOA parameters were selected based on a literature review [1,2,3] and thorough empirical tuning through simulations, crucially balancing exploration and exploitation to optimize convergence speed and solution quality for efficient data aggregation in IoT sensor networks. To assess the effectiveness of the proposed method in comparison with the SOM method, FOA and LEACH, we employ the following metrics: accuracy and error, residual energy, throughput, and network lifetime.
Table 4.
Simulation parameters.
Figure 4.
Sensor nodes distribution in Intel Berkeley Research Lab.
4.2. Accuracy and Error Comparison of Algorithms
The proposed method, SOM-FOA, demonstrates the highest accuracy of the four, suggesting superior performance in accurately forecasting or aggregating data (Figure 5). The enhanced performance is due to adaptive clustering and optimization approaches that improve data management. Results indicate that the SOM-FOA achieved an accuracy of 68% and an error rate of 31%, while SOM alone showed 67% accuracy and 31% error, demonstrating comparable performance. The minimal difference between SOM-FOA and SOM can be attributed to their shared reliance on SOM-based clustering; however, the integration of the FOA has the potential to deliver greater benefits in more complex or larger-scale network scenarios.
Figure 5.
Accuracy and error comparisons of algorithms.
4.3. Residual Energy per Round
Although SOMs efficiently organize data, energy consumption patterns are contingent upon the network structure and frequency of node activations. Energy is expended in data processing and communication, resulting in a progressive depletion of residual energy as rounds advance. The suggested SOM-FOA method improves the conventional SOM technique by refining the initial clustering procedure. SOM-FOA helps with the selection of the optimal number of clusters and positions for the CHs, leading to more effective energy management. Through the optimization of grouping, SOM-FOA diminishes the energy burden on individual sensors. The SOM-FOA technique has a markedly superior level of residual energy relative to FOA, SOM, and LEACH over the rounds (Figure 6). This signifies that the optimization process using SOM-FOA efficiently distributes the energy load throughout the network.
Figure 6.
Residual energy per round.
4.4. Throughput with Number of Nodes
The performance of different algorithms greatly influences how well IoT systems work, affecting factors such as real-time monitoring and energy use. The SOM-FOA approach consistently demonstrates superior throughput across all node quantities. The optimization offered by SOM guarantees the more efficient formation of clusters, resulting in enhanced data transmission rates. Both SOM and SOM-FOA demonstrate exceptional scalability, with the throughput augmented in accordance with the rise in the number of nodes. Nonetheless, SOM-FOA demonstrates enhanced scalability, exhibiting considerable advancements in throughput (Figure 7). The throughput is determined in kilobits per second (Kbps) using Equation (18):
Figure 7.
Throughput with number of nodes.
4.5. Network Lifetime
The lifetime is a crucial parameter when assessing the performance of IoT sensor networks. It denotes the period in which the network can function efficiently, enabling nodes to interact and execute their sensing activities. The SOM-FOA method integrates SOMs’ advantages with FOA’s optimization potential. This hybrid methodology optimizes the cluster head selection and routing pathways utilizing real-time measurements, hence enhancing the overall network efficiency. The suggested technique consistently adjusts to fluctuating network conditions, facilitating more efficient management of energy resources. This adaptability is crucial for sustaining network performance in dynamic contexts where node circumstances may vary. SOM-FOA exhibits superior performance for network longevity (Figure 8). The network lifetime is ascertained utilizing Equation (19):
Figure 8.
Network lifetime.
The principal parameters influencing the network lifetime performance, and , denote the initial energy of the nodes and the total energy necessary for data transmission, reception, and aggregation, respectively (Equation (20)).
5. Conclusions and Future Work
This research introduces an innovative hybrid framework that enhances data aggregation in IoT sensor networks through the integration of SOMs and the FOA. This integration was motivated by the urgent issues encountered in IoT networks, such as data redundancy, energy efficiency, and the necessity for dependable data transfer. Our research proved that the integration of the adaptive clustering capabilities of SOMs with FOA’s resilient optimization approaches considerably improves the performance of data aggregation.
The experimental research, performed through MATLAB simulations, has yielded persuasive proof of the efficacy of our proposed strategy. The findings indicate a significant decrease in energy usage, enhanced throughput, and prolonged network longevity. The implementation of our approach on the Intel Berkeley Research Lab dataset resulted in a high classification rate, thereby confirming its practical applicability in real-world contexts. Our research highlights the efficacy of hybrid approaches in tackling the complex challenges associated with IoT sensor networks. By utilizing the advantages of both SOMs and the FOA, we have established a foundation for more sophisticated and adaptable data aggregation methodologies. This study paves the way for further research on improving network protocols and increasing the overall effectiveness of IoT systems, helping them reach their full potential in various applications. The applications of the current methodology may be expanded in future to evaluate the efficiency of the proposed approach in comparison with other PSO versions and recent algorithms, or by including statistical measurements. Future research should focus on advancing innovative data aggregation, including IoT scalability and cluster head selection in heterogeneous networks, as well as the applicability of this approach to different contexts or datasets. Concrete future experiments will involve systematic measurement and comparative analysis of the energy consumed during both clustering and data transmission phases, using varied network scales and different re-clustering intervals to robustly validate the energy efficiency and scalability of the proposed SOM-FOA approach.
Author Contributions
H.S.A. contributed in terms of conceptualization, formal analysis, methodology, experimentations, validation, visualization, writing the original draft, and final review and editing; F.B. led the conceptualization, project administration, and supervision. All authors have read and agreed to the published version of the manuscript.
Funding
The project was funded by KAU Endowment (WAQF) at king Abdulaziz University, Jeddah, Saudi Arabia. The authors, therefore, acknowledge with thanks WAQF and the Deanship of Scientific Research (DSR) for technical and financial support.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.
Conflicts of Interest
The authors declare no conflicts of interest.
Correction Statement
This article has been republished with a minor correction to the existing affiliation information. This change does not affect the scientific content of the article.
References
- Alshehri, H.; Bajaber, F. A Cluster-Based Data Aggregation in IoT Sensor Networks Using the Firefly Optimization Algorithm. J. Comput. Netw. Commun. 2024, 2024, 8349653. [Google Scholar] [CrossRef] [Scilit]
- Zhang, L. A Tree-Based Energy-Aware Data Aggregation Method in the Internet of Things Using the Firefly Optimization Algorithm. Multiscale Multidiscip. Model. Exp. Des. 2023, 6, 223–233. [Google Scholar] [CrossRef] [Scilit]
- Mosavvar, I.; Ghaffari, A. Data Aggregation in Wireless Sensor Networks Using Firefly Algorithm. Wirel. Pers. Commun. 2018, 104, 307–324. [Google Scholar] [CrossRef] [Scilit]
- Ullah, I.; Youn, H.Y. A Novel Data Aggregation Scheme Based on Self-Organized Map for WSN. J. Supercomput. 2019, 75, 3975–3996. [Google Scholar] [CrossRef] [Scilit]
- Abdalkafor, A.S.; Aliesawi, S. Applying of (SOM, HAC, and RBF) Algorithms for Data Aggregation in Wireless Sensors Networks. Bull. Electr. Eng. Inform. 2022, 11, 354–363. [Google Scholar] [CrossRef] [Scilit]
- Wang, L.; Yan, Z.; Yan, H.; Liu, J.; Liu, J.; Wang, Y. Load aggregation method for electric vehicle based on som neural network clustering. In Proceedings of the IEEE/IAS Industrial and Commercial Power Systems Asia, Chongqing, China, 7–9 July 2023; pp. 908–912. [Google Scholar]
- George, M.N.; Shelly, S. Energy-Efficient LEACH Approach Employing SOM and K-Means. In Proceedings of the IEEE Recent Advances in Intelligent Computational Systems (RAICS), Kothamangalam, Kerala, India, 16–18 May 2024; pp. 1–6. [Google Scholar]
- Merah, M.; Aliouat, Z.; Kara-Mohamed, C. An energy efficient self organizing map based clustering protocol for iot networks. In Proceedings of the IEEE 9th International Conference on Sciences of Electronics, Technologies of Information and Telecommunications (SETIT), Hammamet, Tunisia, 28–30 May 2022; pp. 197–203. [Google Scholar]
- Panwar, A.; Nanda, S.J. Data Analysis in Wireless Sensor Networks with Distributed Self Organizing Map. In Proceedings of the IEEE 1st International Conference on Advances in Signal Processing, Power, Communication, and Computing (ASPCC), Bhubaneswar, India, 19–21 December 2024; pp. 61–66. [Google Scholar]
- Zhang, X.; Shen, W.; Cui, L. Network Information Security Technology and Application Based on SOM-BP Neural Network. In Proceedings of the 2024 IEEE 13th International Conference on Communication Systems and Network Technologies (CSNT), Jabalpur, India, 6–7 April 2024; pp. 329–333. [Google Scholar]
- Mohammadi, M.; Mobarakeh, M.I. An integrated clustering algorithm based on firefly algorithm and self-organized neural network. Prog. Artif. Intell. 2022, 11, 207–217. [Google Scholar] [CrossRef] [Scilit]
- Zivkovic, M.; Bacanin, N.; Tuba, E.; Strumberger, I.; Bezdan, T.; Tuba, M. Wireless Sensor Networks Life Time Optimization Based on the Improved Firefly Algorithm. In Proceedings of the 2020 International Wireless Communications and Mobile Computing (IWCMC), Limassol, Cyprus, 15–19 June 2020; pp. 1176–1181. [Google Scholar]
- Pakdel, H.; Fotohi, R. A firefly algorithm for power management in wireless sensor networks (WSNs). J. Supercomput. 2021, 77, 9411–9432. [Google Scholar] [CrossRef] [Scilit]
- Hosseinzadeh, M.; Ionescu-Feleaga, L.; Ionescu, B.-Ș.; Sadrishojaei, M.; Kazemian, F.; Rahmani, A.M.; Khan, F. A Hybrid Delay Aware Clustered Routing Approach Using Aquila Optimizer and Firefly Algorithm in Internet of Things. Mathematics 2022, 10, 4331. [Google Scholar] [CrossRef] [Scilit]
- Abdalkafor, A.S.; Aliesawi, S.A. The impact of data aggregation strategy on a performance of wireless sensor networks (WSNs). In Proceedings of the 14th International Conference on Developments in eSystems Engineering (DeSE) IEEE, Sharjah, United Arab Emirates, 7–10 December 2021; pp. 217–222. [Google Scholar]
- Bhushan, S.; Kumar, M.; Kumar, P.; Stephan, T.; Shankar, A.; Liu, P. FAJIT: A fuzzy-based data aggregation technique for energy efficiency in wireless sensor network. Complex Intell. Syst. 2021, 7, 997–1007. [Google Scholar] [CrossRef] [Scilit]
- Sudha, C.; Suresh, D.; Nagesh, A. Accurate data aggregation created by neural network and data classification processed through machine learning in wireless sensor networks. Theor. Comput. Sci. 2022, 925, 25–36. [Google Scholar] [CrossRef] [Scilit]
- Krishnasamy, L.; Dhanaraj, R.K.; Ganesh Gopal, D.; Reddy Gadekallu, T.; Aboudaif, M.K.; Abouel Nasr, E. A Heuristic Angular Clustering Framework for Secured Statistical Data Aggregation in Sensor Networks. Sensors 2020, 20, 4937. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Surya, S.; Suresh, K. A novel Hybrid technique for solving Data Aggregation problem based on Extended Weighted K-means algorithm and Key Performance Indicators. In Proceedings of the IEEE 2nd Mysore Sub Section International Conference (MysuruCon), Mysuru, India, 16–17 October 2022; pp. 1–8. [Google Scholar]
- Tanushree, M.; Roopa, H.; Vani, V. Hierarchical Cluster Based Data Aggregation with Fault Tolerance to Extend Network Lifetime. In Proceedings of the Second International Conference on Inventive Research in Computing Applications (ICIRCA), Coimbatore, India, 15–17 July 2020; pp. 785–789. [Google Scholar] [CrossRef] [Scilit]
- Roy, N.R.; Chandra, P. EEDAC-WSN: Energy efficient data aggregation in clustered WSN. In Proceedings of the International Conference on Automation, Computational and Technology Management (ICACTM) IEEE, London, UK, 24–26 April 2019; pp. 586–592. [Google Scholar]
- Al-Humidi, N.; Chowdhary, V. Lightweight data transmission scheme based on data aggregation technique in wireless sensor networks. In Proceedings of the International Conference on Communication and Information Processing (ICCIP), Pune, India, 17–18 May 2019. [Google Scholar]
- Sharifi, S.S.; Barati, H. A method for routing and data aggregating in cluster-based wireless sensor networks. Int. J. Commun. Syst. 2021, 34, e4754. [Google Scholar] [CrossRef] [Scilit]
- Ruan, D.; Huang, J. A PSO-Based Uneven Dynamic Clustering Multi-Hop Routing Protocol for Wireless Sensor Networks. Sensors 2019, 19, 1835. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Wang, J.; Gao, Y.; Liu, W.; Sangaiah, A.K.; Kim, H.-J. An Improved Routing Schema with Special Clustering Using PSO Algorithm for Heterogeneous Wireless Sensor Network. Sensors 2019, 19, 671. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Manuel, A.J.; Deverajan, G.G.; Patan, R.; Gandomi, A.H. Optimization of Routing-Based Clustering Approaches in Wireless Sensor Network: Review and Open Research Issues. Electronics 2020, 9, 1630. [Google Scholar] [CrossRef] [Scilit]
- Manshahia, M.S.; Dave, M.; Singh, S. Firefly Algorithm-Based Clustering Technique for Wireless Sensor Networks. In Proceedings of the International Conference on Wireless Communications, Signal Processing and Networking (WiSPNET), Chennai, India, 23–25 March 2016; pp. 1273–1276. [Google Scholar] [CrossRef] [Scilit]
- Rayenizadeh, M.; Kuchaki Rafsanjani, M.; Borumand Saeid, A. Cluster Head Selection Using Hesitant Fuzzy and Firefly Algorithm in Wireless Sensor Networks. Evol. Syst. 2022, 13, 65–84. [Google Scholar] [CrossRef] [Scilit]
- Battar, S.; Kumar, R. A Hybrid Approach to Increase Network Lifetime in WSN Using PSO and Firefly Optimization. In Proceedings of the IEEE International Conference on Electrical, Computer and Communication Technologies (ICECCT), Coimbatore, India, 20–22 February 2019; pp. 1–7. [Google Scholar] [CrossRef] [Scilit]
- Christian, L.; Camacho, V.; Thomas, S.; Marco, D. Grey Wolf, Firefly and Bat Algorithms: Three Widespread Algorithms that Do Not Contain Any Novelty. In Proceedings of the International Conference on Swarm Intelligence (ANTS), Barcelona, Spain, 26–28 October 2020; pp. 122–133. [Google Scholar] [CrossRef] [Scilit]
- Christian, L.; Camacho, V.; Marco, D.; Thomas, S. Exposing the grey wolf, moth-flame, whale, firefly, bat, and antlion algorithms: Six misleading optimization techniques inspired by bestial metaphors. Int. Trans. Oper. Res. Wiley 2022, 30, 2945–2971. [Google Scholar] [CrossRef] [Scilit]
- Aranha, C.; Villalón, C.L.C.; Campelo, F.; Dorigo, M.; Ruiz, R.; Sevaux, M.; Sörensen, K.; Stützle, T. Metaphor-based metaheuristics, a call for action: The elephant in the room. Swarm Intell. 2022, 16, 1–6. [Google Scholar] [CrossRef] [Scilit]
- Sumedha, S.; Samarth, A. Issues of data aggregation methods in wireless sensor network: A survey. Proc. Comput. Sci. 2015, 49, 194–201. [Google Scholar] [CrossRef] [Scilit]
- Choudhari, R.; Uday, R. Data Aggregation Approaches in WSNs. In Proceedings of the International Conference on Computer Communication and Informatics (ICCCI), Coimbatore, India, 27–29 January 2021; pp. 1–6. [Google Scholar]
- The Intel Berkeley Research Lab Dataset. Available online: https://db.csail.mit.edu/labdata/labdata.html (accessed on 7 July 2025).
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).







