Submitted:
08 July 2025
Posted:
11 July 2025
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. Literature Review
- Reliability: The guarantee that data packets are delivered successfully. High interference directly degrades reliability.
- Timeliness (Latency): The time taken for a packet to travel from sensor to sink. As noted by [26], some critical medical alerts require latency below 200ms.
- Data Accuracy: Ensuring the delivered data is not corrupted.
- Lack of Focus on Interference-Centric Hybrid Models: While hybrid models exist, they often focus on energy conservation in the context of routing or clustering. Few studies have developed hybrid models specifically targeting the dynamic channel assignment problem using a combination of classical graph-coloring heuristics and adaptive metaheuristics.
- Predominance of Full-Network Adaptation: Most existing models, when faced with a topology change, resort to a full reassignment of resources across the entire network. The concept of lightweight, localized recoloring where only the nodes directly affected by a change are adapted is significantly underexplored.
- Limited Comparative Analysis: There is a scarcity of comprehensive, side-by-side comparisons of different hybrid combinations (e.g., Greedy+SA vs. RLF+GA) evaluated under realistic, dynamic mobility patterns and assessed across a balanced set of metrics including conflict rate, energy, latency, and packet loss.
3. Methodology
3.1. Hybrid Simulation Framework Architecture
- Sensor Nodes (Node classes): Represent the fundamental network entities. An abstract base class Node defines common attributes like node_id, position, and energy. This is extended by two concrete classes: StaticNode and MobileNode, reflecting the different device types in a hospital setting. This class hierarchy allows for polymorphism in the simulation logic.
- Network (Network class): Acts as a container for all nodes and serves as the environment model. It manages the spatial relationships between nodes, computes interference graphs, and maintains a history of performance metrics for later analysis.
- Base Station (BaseStation class): Functions as the centralized controller and intelligence of the network. It implements the Observer design pattern, "listening" for mobility events from MobileNode instances. Upon receiving a notification of a topology change, it assesses the new interference landscape and triggers the appropriate adaptation algorithm. This decouples the nodes' movement from the adaptation logic, promoting modularity.
- Algorithm Modules (Algorithm classes): The core logic for channel assignment is encapsulated using the Strategy design pattern. Abstract base classes, ColoringAlgorithm and AdaptationAlgorithm, define a common interface for initial coloring and dynamic adaptation, respectively. Concrete strategy classes (e.g., GreedyColoring, RLFColoring, SimulatedAnnealingAdaptation, GeneticAlgorithmAdaptation) implement this interface. This design allows the simulation to be easily configured with any combination of initial coloring and adaptation algorithms without changing the core simulation logic.
- Metric Recorder: Integrated within the Network class, this component logs key performance indicators (KPIs) at each discrete simulation step. Time-series data for each metric is stored, facilitating the generation of comparative performance graphs.

3.2. Simulation Environment and Parameters

3.3. Network and Energy Models
3.3.1. Interference Model
3.3.2. Energy Consumption Model
- Communication Energy (ENERGY_MESSAGE): A small, fixed cost is deducted every time a node sends a message (e.g., when a mobile node notifies the base station of its new position). This represents the energy for radio transmission.
- Computation Energy (Algorithmic Costs): The energy costs for running the algorithms (ENERGY_GREEDY, ENERGY_RLF, ENERGY_SA, ENERGY_GA) are estimates representing their relative computational complexity. For instance, ENERGY_RLF (10.0 mJ) is set higher than ENERGY_GREEDY (5.0 mJ) to reflect RLF's higher computational demand. Similarly, ENERGY_GA (1.5 mJ) is higher than ENERGY_SA (1.0 mJ) because it involves managing a population of solutions. These costs are crucial for evaluating the trade-off between achieving a better channel assignment and conserving node energy. For the initial coloring algorithms, this cost is distributed evenly among all nodes in the network. For adaptation, the cost is borne solely by the mobile node performing the computation.
3.4. Initial Channel Assignment Heuristics
3.4.1. Greedy Algorithm
- Logic: Its primary advantage is its low computational complexity, but its performance is highly dependent on the initial ordering of the nodes, often leading to suboptimal channel usage.
- Computational Complexity: O(V*Δ), where V is the number of vertices and Δ is the maximum degree of the graph.
- Input: Network G = (V, E), Number of Channels K
- Output: A channel assignment for all nodes in V
- 1: for each node u in V do
- 2: neighbor_channels ← {channel of v | (u,v) in E and v is colored}
- 3: for channel c from 0 to K-1 do
- 4: if c is not in neighbor_channels then
- 5: u.channel ← c
- 6: break
- 7: end if
- 8: end for
- 9: end for
3.4.2. Recursive Largest First (RLF) Algorithm
- Logic: It works by iteratively building sets of nodes that can share the same color. In each iteration, it selects an uncolored node with the highest degree (most neighbors). This node becomes the first member of a new color class. It then greedily adds other uncolored nodes to this class, ensuring that no two nodes in the class are neighbors. This process is repeated until all nodes are colored.
- Computational Complexity: Typically, O(V²), as it may require multiple passes over the node set.
- Input: Network G = (V, E), Number of Channels K
- Output: A channel assignment for all nodes in V
- 1: Uncolored_Nodes ← V
- 2: c ← 0
- 3: while Uncolored_Nodes is not empty do
- 4: Color_Class ← {}
- 5: // Select node with max degree in the remaining graph
- 6: u ← node in Uncolored_Nodes with max degree
- 7: Add u to Color_Class
- 8: Remove u from Uncolored_Nodes
- 9:
- 10: // Add more nodes to the current color class
- 11: for each node v in Uncolored_Nodes do
- 12: // Check if v is not a neighbor to any node already in Color_Class
- 13: if (v,w) is not in E for all w in Color_Class then
- 14: Add v to Color_Class
- 15: Remove v from Uncolored_Nodes
- 16: end if
- 17: end for
- 18:
- 19: // Assign the current channel to all nodes in the class
- 20: for each node x in Color_Class do
- 21: x.channel ← c
- 22: end for
- 23: c ← c + 1
- 24: end while
3.5. Metaheuristic Adaptation Algorithms
3.5.1. Simulated Annealing (SA) Adaptation
- Logic: Starting with the mobile node's current (conflicting) channel, SA iteratively explores new random channels. A new channel is always accepted if it reduces the number of conflicts. If it does not, it may still be accepted based on a probability P = exp(-ΔC / T), where ΔC is the change in the number of conflicts and T is the current "temperature." The temperature starts high and is gradually lowered according to a "cooling schedule." This allows the algorithm to escape local optima early on and converge to a good solution as the temperature drops.
-
Fitness Function: The cost function is simply the number of conflicts a given channel assignment for the mobile node would create. The goal is to minimize this cost.Algorithm 3 is focused on Simulated Annealing (SA) Adaptation where the input and output data are as follows:
- Input: Network G, mobile_node m, Initial Temperature T_max, Cooling Rate α
- Output: An updated channel for m
- 1: current_channel ← m.channel
- 2: best_channel ← current_channel
- 3: T ← T_max
- 4: for i from 1 to MAX_ITERATIONS do
- 5: new_channel ← random channel from 0 to K-1
- 6: current_cost ← count_conflicts(m, current_channel)
- 7: new_cost ← count_conflicts(m, new_channel)
- 8:
- 9: if new_cost < current_cost then
- 10: current_channel ← new_channel
- 11: else if random(0,1) < exp((current_cost - new_cost) / T) then
- 12: current_channel ← new_channel
- 13: end if
- 14:
- 15: if count_conflicts(m, current_channel) < count_conflicts(m, best_channel) then
- 16: best_channel ← current_channel
- 17: end if
- 18:
- 19: T ← T * α // Cool down
- 20: end for
- 21: m.channel ← best_channel
3.5.2. Genetic Algorithm (GA) Adaptation
- Logic:
- 1)
- Representation: A "chromosome" is an integer representing a channel number.
- 2)
- Initialization: A population of POP_SIZE chromosomes (random channels) is created.
- 3)
- Fitness Function: The fitness of a chromosome (channel) is calculated as 1 / (1 + num_conflicts). A conflict-free channel will have a fitness of 1.0.
- 4)
- Evolution: For a set number of GENERATIONS, a new population is created through:
- Selection: Parents are selected from the current population using roulette wheel selection, where individuals with higher fitness have a higher probability of being chosen.
- Crossover: Two parents produce two offspring. A simple swap crossover is used.
- Mutation: Each offspring has a small probability (MUTATION_RATE) of being changed to a new random channel.
- The best chromosome from the final population is chosen as the new channel for the mobile node.
- Input: Network G, mobile_node m, Population Size N, Generations G_max
- Output: An updated channel for m
- 1: Population ← Initialize N random channels
- 2: for i from 1 to G_max do
- 3: // Calculate fitness for each individual in the population
- 4: Fitness_Scores ← [1 / (1 + count_conflicts(m, channel)) for channel in Population]
- 5:
- 6: New_Population ← {}
- 7: for j from 1 to N/2 do
- 8: // Select two parents based on fitness
- 9: parent1 ← RouletteWheelSelect(Population, Fitness_Scores)
- 10: parent2 ← RouletteWheelSelect(Population, Fitness_Scores)
- 11:
- 12: // Crossover and Mutation
- 13: child1, child2 ← Crossover(parent1, parent2)
- 14: Mutate(child1)
- 15: Mutate(child2)
- 16: Add child1, child2 to New_Population
- 17: end for
- 18: Population ← New_Population
- 19: end for
- 20:
- 21: // Return the best individual from the final population
- 22: Final_Fitness_Scores ← [1 / (1 + count_conflicts(m, channel)) for channel in Population]
- 23: best_channel ← channel in Population with max fitness
- 24: m.channel ← best_channel
3.6. Performance Metrics Selection
- Average Conflict Rate: This is the primary metric for measuring the effectiveness of interference mitigation. It is calculated as the total number of conflicting links divided by the total number of nodes. A lower value indicates a more stable and efficient channel assignment.
- Total Energy Remaining: This metric tracks the aggregate energy of all nodes in the network over time. It directly measures the energy cost of the different algorithmic strategies, highlighting the trade-off between computational effort and energy conservation.
- Adaptation Latency: This measures the simulated time taken for the SA or GA algorithm to execute upon detecting a conflict. It is a critical metric for assessing the suitability of the framework for real-time applications where rapid adaptation is essential.
- Packet Loss Rate: This metric provides a tangible measure of the impact of interference on data delivery. In the simulation, it is modeled as being proportional to the number of conflicts, representing the increased probability of packet collisions and corruption in a congested channel.
4. Simulation Results




5. Summary and Conclusions
- The Mandate for Adaptability in Dynamic Environments: The most salient finding is the stark performance gap between adaptive and non-adaptive strategies. The static strategies (None_RLF, None_Greedy) failed to maintain network stability, with conflict and packet loss rates escalating uncontrollably with each mobility event. This has profound practical implications: in a clinical setting, such a network would be functionally useless, as the integrity of life-critical data could not be guaranteed. This finding establishes that for mission-critical applications like patient monitoring, where node mobility is a given, an intelligent and responsive adaptation mechanism is not an optional enhancement but a mandatory architectural component.
- The Synergistic Value of the Hybrid Approach: The research highlighted that the choice of both the initial heuristic and the adaptation algorithm matters. The superior performance of the GA_RLF and SA_RLF combinations over their Greedy-based counterparts demonstrates a clear synergistic effect. RLF's more globally aware initial assignment provides a higher-quality starting point, reducing the search space that the metaheuristic needs to explore. The poor performance of SA_Greedy, which resulted in the highest final conflict rate of all adaptive strategies, powerfully illustrates this point: even a capable metaheuristic cannot fully rescue a poor initial conFiguretion. For network engineers, the implication is that system design should focus on this interplay, investing in a robust initial setup to maximize the efficiency of subsequent real-time optimizations.
- Energy Trade-offs Justified: The results revealed that the best-performing strategies also incurred the highest direct computational energy costs. However, this must be interpreted within a broader cost-benefit framework. The small, predictable energy expenditure of SA or GA adaptations prevents the much larger, unpredictable, and ultimately catastrophic energy drain that would result from packet retransmissions in a high-conflict network. The practical implication is that "energy efficiency" in a dynamic WSN should not be defined simply as minimizing computational work, but rather as "intelligently investing energy to maximize reliability and overall network lifetime." This justifies the use of more computationally intensive algorithms if they deliver substantial gains in network performance.
- Feasibility for Real-Time Applications: The measured adaptation latencies for both SA (0.05 ms) and GA (0.1 ms) were orders of magnitude below the typical latency thresholds for real-time healthcare applications (e.g., < 200 ms). This finding is critical as it confirms the practical feasibility of the proposed framework. It demonstrates that the computational overhead of localized metaheuristic adaptation does not introduce prohibitive delays, ensuring that the network can respond to changes in a timely manner and deliver critical data without compromising patient safety.
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Song, H.; Park, M. Adaptive channel allocation using graph partitioning in dense WBAN environments. Applied Sciences 2022, 12, 5152. [Google Scholar]
- Chowdary, V.R.; Mallikarjuna, R. WBAN scheduling techniques: A survey. Journal of Healthcare Engineering 2022, 1–18. [Google Scholar]
- Li, B.; et al. A survey of mobility management and MAC protocols in WBANs. IEEE Communications Surveys & Tutorials 2021, 23, 104–130. [Google Scholar]
- Othman, M.; et al. Energy-efficient communication protocol using metaheuristics for patient-centric healthcare. Computers in Biology and Medicine 2021, 132, 104339. [Google Scholar]
- Ahmed, T.; Basu, D. Robust interference-aware routing in dynamic WSNs for remote monitoring. IEEE Internet of Things Journal 2023, 10, 2123–2135. [Google Scholar]
- Alharbi, A.; Al-Ahmadi, A.; Al-Shehri, W. Efficient channel allocation for coexisting WBANs using hybrid graph coloring and optimization. Sensors 2020, 20, 7165. [Google Scholar]
- Kumar, V.; Arora, A. Survey and comparative study of graph coloring in WSN channel allocation. Wireless Personal Communications 2022, 125, 321–340. [Google Scholar]
- Hassan, A.; Chickadel, Z. A review of graph coloring for channel assignment. Journal of Computer Networks and Communications 2011, 1–13. [Google Scholar]
- Djenouri, D.; Bagaa, M. Energy-aware scheduling using coloring heuristics in IoMT. Internet of Medical Things 2020, 4, 215–226. [Google Scholar]
- Orden, D.; et al. Graph coloring based channel assignment for WLANs. Computer Networks 2018, 132, 137–148. [Google Scholar]
- Yeh, W.; et al. A GA-based approach for channel assignment in wireless access networks. IEEE Transactions on Wireless Communications 2007, 6, 2914–2923. [Google Scholar]
- Nasr, M.; Yeh, W.; Ahmed, A. A hybrid GA-SA algorithm for dynamic channel assignment in 5G networks. IEEE Transactions on Vehicular Technology 2022, 71, 5240–5252. [Google Scholar]
- Wang, J.; et al. An adaptive resource allocation framework for mobile e-health systems. IEEE Journal on Selected Areas in Communications 2024, 42, 112–125. [Google Scholar]
- Liu, J.; et al. Dynamic resource allocation in wireless body sensor networks using bio-inspired algorithms. IEEE Access 2021, 9, 22984–22995. [Google Scholar]
- Ferreira, A.; et al. Efficient hybrid SA-DSATUR method for e-health WSNs. Ad Hoc Networks 2024, 155, 102898. [Google Scholar]
- Mehboob, U.; et al. A survey of genetic algorithms in wireless networks. Mobile Networks and Applications 2014, 19, 276–290. [Google Scholar]
- Sinha, R.; Mandal, S. GA-based self-healing WSNs in mission-critical healthcare. Future Generation Computer Systems 2021, 117, 373–384. [Google Scholar]
- Umashankar, S.; et al. A hybrid approach for cluster head selection in WSN using simulated annealing. Journal of King Saud University-Computer and Information Sciences 2021, 33, 708–716. [Google Scholar]
- Zeng, Y.; Wang, C. Dynamic channel allocation for heterogeneous WSNs using SA and GA. Journal of Network and Computer Applications 2020, 168, 102763. [Google Scholar]
- Azami, M.; Ranjbar, M.; Shokouhi Rostami, A.; Amiri, A.J. Increasing the network life time by simulated annealing algorithm in WSN with point coverage. arXiv 2013, arXiv:1305.2966. [Google Scholar]
- Ghosh, S.; Roy, A. Interference-aware channel assignment in healthcare IoT using genetic programming. Computer Communications 2023, 200, 123–137. [Google Scholar]
- Kavitha, V.; Velusamy, R.L. A review on meta-heuristic algorithms for solving dynamic channel allocation problem in wireless networks. Journal of Ambient Intelligence and Humanized Computing 2020, 11, 2895–2904. [Google Scholar]
- Larhlimi, M.; Lmkaiti, M.; Lachgar, M.; Ouchitachen, H.; Darif, A.; Mouncif, H. Genetic algorithm for energy-efficient coverage scheduling in dynamic WSNs. International Journal of Advanced Computer Science and Applications 2025, 16, 45–53. [Google Scholar]
- Alkholidi, A.; Meda, S.; Mitezi, V.; Baraj, A. Measurement and Analysis of Radiofrequency Radiation Exposure: Impacts on Human Health - A Case Study. Journal of Transactions in Systems Engineering 2024, 2, 235–255. [Google Scholar]
- Singh, S.; et al. A review on bio-inspired algorithms for WSNs. Journal of Network and Computer Applications 2020, 168, 102760. [Google Scholar]
- Xie, Y.; Yu, S.; Zhou, B. Nest-based scheduling for interference mitigation in dense WBANs. Digital Communications and Networks 2020, 6, 514–523. [Google Scholar] [CrossRef]
| Parameter | Value | Justification |
| Ward Size | 50 × 50 m | Represents a typical medium-sized hospital department or ICU. |
| Node Count | 100 | Simulates a dense network environment, creating significant potential for interference. |
| Static/Mobile Ratio | 80% / 20% | Reflects a realistic mix of fixed bedside equipment and mobile wearable sensors. |
| Channels Available | 16 | Corresponds to the number of non-overlapping channels in the IEEE 802.15.4 (ZigBee) 2.4 GHz band. |
| Interference Radius | 10 m | A conservative estimate for 2.4 GHz indoor signal propagation, considering attenuation from walls and bodies. |
| Mobility Model | Random Walk | A standard mobility model for simulating unpredictable movement in a confined area. |
| Max Displacement | ±5 m | Constrains movement to realistic speeds for pedestrian and equipment mobility within a ward. |
| Ward Size | 50 × 50 m | Represents a typical medium-sized hospital department or ICU. |
| SA/GA Parameters |
See §4.5 | Tuned for a balance between solution quality and computational cost. |
| Algorithm Strategy | Final Conflict Rate | Final Packet Loss Rate | Total Energy Consumed (mJ) | Average Adaptation Latency (ms) |
| GA_RLF | 0.00 | 0.000 | 17.5 | 0.100 |
| SA_RLF | 0.01 | 0.005 | 14.2 | 0.050 |
| None_RLF | 0.02 | 0.010 | 11.0 | 0.000 |
| GA_Greedy | 0.00 | 0.000 | 12.5 | 0.100 |
| SA_Greedy | 0.05 | 0.025 | 9.8 | 0.050 |
| None_Greedy | 0.03 | 0.015 | 6.0 | 0.000 |
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 (http://creativecommons.org/licenses/by/4.0/).